alepha 0.14.1 → 0.14.2

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 (97) hide show
  1. package/README.md +3 -3
  2. package/dist/api/audits/index.d.ts +342 -342
  3. package/dist/api/audits/index.d.ts.map +1 -1
  4. package/dist/api/audits/index.js.map +1 -1
  5. package/dist/api/files/index.js.map +1 -1
  6. package/dist/api/jobs/index.d.ts +161 -161
  7. package/dist/api/jobs/index.js.map +1 -1
  8. package/dist/api/parameters/index.js.map +1 -1
  9. package/dist/api/users/index.d.ts +791 -791
  10. package/dist/api/users/index.d.ts.map +1 -1
  11. package/dist/api/users/index.js +4 -0
  12. package/dist/api/users/index.js.map +1 -1
  13. package/dist/api/verifications/index.d.ts +128 -128
  14. package/dist/api/verifications/index.d.ts.map +1 -1
  15. package/dist/batch/index.js.map +1 -1
  16. package/dist/cache/core/index.js.map +1 -1
  17. package/dist/cli/index.d.ts +173 -167
  18. package/dist/cli/index.d.ts.map +1 -1
  19. package/dist/cli/index.js +427 -409
  20. package/dist/cli/index.js.map +1 -1
  21. package/dist/command/index.d.ts +5 -5
  22. package/dist/command/index.js.map +1 -1
  23. package/dist/core/index.browser.js.map +1 -1
  24. package/dist/core/index.d.ts.map +1 -1
  25. package/dist/core/index.js +7 -6
  26. package/dist/core/index.js.map +1 -1
  27. package/dist/core/index.native.js +7 -6
  28. package/dist/core/index.native.js.map +1 -1
  29. package/dist/datetime/index.js.map +1 -1
  30. package/dist/fake/index.js.map +1 -1
  31. package/dist/file/index.js.map +1 -1
  32. package/dist/lock/redis/index.js.map +1 -1
  33. package/dist/logger/index.js.map +1 -1
  34. package/dist/mcp/index.js.map +1 -1
  35. package/dist/orm/index.browser.js +26 -5
  36. package/dist/orm/index.browser.js.map +1 -1
  37. package/dist/orm/index.d.ts +115 -90
  38. package/dist/orm/index.d.ts.map +1 -1
  39. package/dist/orm/index.js +37 -12
  40. package/dist/orm/index.js.map +1 -1
  41. package/dist/redis/index.js.map +1 -1
  42. package/dist/retry/index.js.map +1 -1
  43. package/dist/router/index.js.map +1 -1
  44. package/dist/scheduler/index.d.ts +6 -6
  45. package/dist/scheduler/index.js.map +1 -1
  46. package/dist/security/index.d.ts +28 -28
  47. package/dist/security/index.d.ts.map +1 -1
  48. package/dist/security/index.js.map +1 -1
  49. package/dist/server/auth/index.d.ts +155 -155
  50. package/dist/server/auth/index.js.map +1 -1
  51. package/dist/server/cache/index.js.map +1 -1
  52. package/dist/server/cookies/index.browser.js.map +1 -1
  53. package/dist/server/cookies/index.js.map +1 -1
  54. package/dist/server/core/index.browser.js.map +1 -1
  55. package/dist/server/core/index.js.map +1 -1
  56. package/dist/server/health/index.d.ts +17 -17
  57. package/dist/server/helmet/index.js.map +1 -1
  58. package/dist/server/links/index.browser.js.map +1 -1
  59. package/dist/server/links/index.js.map +1 -1
  60. package/dist/server/multipart/index.js.map +1 -1
  61. package/dist/server/rate-limit/index.js.map +1 -1
  62. package/dist/server/security/index.d.ts +9 -9
  63. package/dist/server/security/index.js.map +1 -1
  64. package/dist/server/swagger/index.js.map +1 -1
  65. package/dist/thread/index.js.map +1 -1
  66. package/dist/topic/core/index.js.map +1 -1
  67. package/dist/vite/index.js.map +1 -1
  68. package/dist/websocket/index.browser.js.map +1 -1
  69. package/dist/websocket/index.d.ts +7 -7
  70. package/dist/websocket/index.js.map +1 -1
  71. package/package.json +3 -3
  72. package/src/api/users/index.ts +4 -0
  73. package/src/cli/apps/AlephaCli.ts +31 -14
  74. package/src/cli/apps/AlephaPackageBuilderCli.ts +2 -1
  75. package/src/cli/assets/appRouterTs.ts +1 -1
  76. package/src/cli/commands/{ViteCommands.ts → build.ts} +2 -105
  77. package/src/cli/commands/{ChangelogCommands.ts → changelog.ts} +7 -22
  78. package/src/cli/commands/clean.ts +14 -0
  79. package/src/cli/commands/{DrizzleCommands.ts → db.ts} +10 -117
  80. package/src/cli/commands/{DeployCommands.ts → deploy.ts} +1 -1
  81. package/src/cli/commands/dev.ts +57 -0
  82. package/src/cli/commands/format.ts +17 -0
  83. package/src/cli/commands/{CoreCommands.ts → init.ts} +2 -40
  84. package/src/cli/commands/lint.ts +17 -0
  85. package/src/cli/commands/root.ts +32 -0
  86. package/src/cli/commands/run.ts +24 -0
  87. package/src/cli/commands/test.ts +42 -0
  88. package/src/cli/commands/typecheck.ts +19 -0
  89. package/src/cli/commands/{VerifyCommands.ts → verify.ts} +1 -13
  90. package/src/cli/defineConfig.ts +10 -1
  91. package/src/cli/index.ts +16 -7
  92. package/src/cli/services/GitMessageParser.ts +1 -1
  93. package/src/core/Alepha.ts +7 -4
  94. package/src/orm/index.browser.ts +1 -1
  95. package/src/orm/index.ts +10 -6
  96. package/src/orm/providers/{PostgresTypeProvider.ts → DatabaseTypeProvider.ts} +25 -3
  97. package/src/cli/commands/BiomeCommands.ts +0 -29
@@ -1,6 +1,6 @@
1
- import * as alepha381 from "alepha";
1
+ import * as alepha349 from "alepha";
2
2
  import { Alepha, KIND, Primitive, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
3
- import * as alepha_orm84 from "alepha/orm";
3
+ import * as alepha_orm71 from "alepha/orm";
4
4
  import { Page } from "alepha/orm";
5
5
  import * as alepha_server0 from "alepha/server";
6
6
  import { ServerRequest } from "alepha/server";
@@ -23,7 +23,7 @@ import "postgres";
23
23
  /**
24
24
  * Audit severity levels for categorizing events.
25
25
  */
26
- declare const auditSeveritySchema: alepha381.TUnsafe<"info" | "warning" | "critical">;
26
+ declare const auditSeveritySchema: alepha349.TUnsafe<"info" | "warning" | "critical">;
27
27
  type AuditSeverity = Static<typeof auditSeveritySchema>;
28
28
  /**
29
29
  * Audit log entity for tracking important system events.
@@ -34,212 +34,212 @@ type AuditSeverity = Static<typeof auditSeveritySchema>;
34
34
  * - When it happened (createdAt)
35
35
  * - Context and details (metadata, ipAddress, userAgent)
36
36
  */
37
- declare const audits: alepha_orm84.EntityPrimitive<alepha381.TObject<{
38
- id: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_PRIMARY_KEY>, typeof alepha_orm84.PG_DEFAULT>;
39
- createdAt: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_CREATED_AT>, typeof alepha_orm84.PG_DEFAULT>;
37
+ declare const audits: alepha_orm71.EntityPrimitive<alepha349.TObject<{
38
+ id: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_PRIMARY_KEY>, typeof alepha_orm71.PG_DEFAULT>;
39
+ createdAt: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_CREATED_AT>, typeof alepha_orm71.PG_DEFAULT>;
40
40
  /**
41
41
  * Audit event type (e.g., "auth", "user", "payment", "system").
42
42
  * Used for categorizing and filtering audit events.
43
43
  */
44
- type: alepha381.TString;
44
+ type: alepha349.TString;
45
45
  /**
46
46
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
47
47
  */
48
- action: alepha381.TString;
48
+ action: alepha349.TString;
49
49
  /**
50
50
  * Severity level of the event.
51
51
  */
52
- severity: alepha_orm84.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm84.PG_DEFAULT>;
52
+ severity: alepha_orm71.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm71.PG_DEFAULT>;
53
53
  /**
54
54
  * User ID who performed the action (null for system events).
55
55
  */
56
- userId: alepha381.TOptional<alepha381.TString>;
56
+ userId: alepha349.TOptional<alepha349.TString>;
57
57
  /**
58
58
  * User realm for multi-tenant support.
59
59
  */
60
- userRealm: alepha381.TOptional<alepha381.TString>;
60
+ userRealm: alepha349.TOptional<alepha349.TString>;
61
61
  /**
62
62
  * User email at the time of the event (denormalized for history).
63
63
  */
64
- userEmail: alepha381.TOptional<alepha381.TString>;
64
+ userEmail: alepha349.TOptional<alepha349.TString>;
65
65
  /**
66
66
  * Resource type affected (e.g., "user", "order", "file").
67
67
  */
68
- resourceType: alepha381.TOptional<alepha381.TString>;
68
+ resourceType: alepha349.TOptional<alepha349.TString>;
69
69
  /**
70
70
  * Resource ID affected.
71
71
  */
72
- resourceId: alepha381.TOptional<alepha381.TString>;
72
+ resourceId: alepha349.TOptional<alepha349.TString>;
73
73
  /**
74
74
  * Human-readable description of the event.
75
75
  */
76
- description: alepha381.TOptional<alepha381.TString>;
76
+ description: alepha349.TOptional<alepha349.TString>;
77
77
  /**
78
78
  * Additional metadata/context as JSON.
79
79
  */
80
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
80
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
81
81
  /**
82
82
  * Client IP address.
83
83
  */
84
- ipAddress: alepha381.TOptional<alepha381.TString>;
84
+ ipAddress: alepha349.TOptional<alepha349.TString>;
85
85
  /**
86
86
  * Client user agent.
87
87
  */
88
- userAgent: alepha381.TOptional<alepha381.TString>;
88
+ userAgent: alepha349.TOptional<alepha349.TString>;
89
89
  /**
90
90
  * Session ID if applicable.
91
91
  */
92
- sessionId: alepha381.TOptional<alepha381.TString>;
92
+ sessionId: alepha349.TOptional<alepha349.TString>;
93
93
  /**
94
94
  * Request ID for correlation.
95
95
  */
96
- requestId: alepha381.TOptional<alepha381.TString>;
96
+ requestId: alepha349.TOptional<alepha349.TString>;
97
97
  /**
98
98
  * Whether the action was successful.
99
99
  */
100
- success: alepha_orm84.PgAttr<alepha381.TBoolean, typeof alepha_orm84.PG_DEFAULT>;
100
+ success: alepha_orm71.PgAttr<alepha349.TBoolean, typeof alepha_orm71.PG_DEFAULT>;
101
101
  /**
102
102
  * Error message if the action failed.
103
103
  */
104
- errorMessage: alepha381.TOptional<alepha381.TString>;
104
+ errorMessage: alepha349.TOptional<alepha349.TString>;
105
105
  }>>;
106
- declare const auditEntitySchema: alepha381.TObject<{
107
- id: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_PRIMARY_KEY>, typeof alepha_orm84.PG_DEFAULT>;
108
- createdAt: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_CREATED_AT>, typeof alepha_orm84.PG_DEFAULT>;
106
+ declare const auditEntitySchema: alepha349.TObject<{
107
+ id: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_PRIMARY_KEY>, typeof alepha_orm71.PG_DEFAULT>;
108
+ createdAt: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_CREATED_AT>, typeof alepha_orm71.PG_DEFAULT>;
109
109
  /**
110
110
  * Audit event type (e.g., "auth", "user", "payment", "system").
111
111
  * Used for categorizing and filtering audit events.
112
112
  */
113
- type: alepha381.TString;
113
+ type: alepha349.TString;
114
114
  /**
115
115
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
116
116
  */
117
- action: alepha381.TString;
117
+ action: alepha349.TString;
118
118
  /**
119
119
  * Severity level of the event.
120
120
  */
121
- severity: alepha_orm84.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm84.PG_DEFAULT>;
121
+ severity: alepha_orm71.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm71.PG_DEFAULT>;
122
122
  /**
123
123
  * User ID who performed the action (null for system events).
124
124
  */
125
- userId: alepha381.TOptional<alepha381.TString>;
125
+ userId: alepha349.TOptional<alepha349.TString>;
126
126
  /**
127
127
  * User realm for multi-tenant support.
128
128
  */
129
- userRealm: alepha381.TOptional<alepha381.TString>;
129
+ userRealm: alepha349.TOptional<alepha349.TString>;
130
130
  /**
131
131
  * User email at the time of the event (denormalized for history).
132
132
  */
133
- userEmail: alepha381.TOptional<alepha381.TString>;
133
+ userEmail: alepha349.TOptional<alepha349.TString>;
134
134
  /**
135
135
  * Resource type affected (e.g., "user", "order", "file").
136
136
  */
137
- resourceType: alepha381.TOptional<alepha381.TString>;
137
+ resourceType: alepha349.TOptional<alepha349.TString>;
138
138
  /**
139
139
  * Resource ID affected.
140
140
  */
141
- resourceId: alepha381.TOptional<alepha381.TString>;
141
+ resourceId: alepha349.TOptional<alepha349.TString>;
142
142
  /**
143
143
  * Human-readable description of the event.
144
144
  */
145
- description: alepha381.TOptional<alepha381.TString>;
145
+ description: alepha349.TOptional<alepha349.TString>;
146
146
  /**
147
147
  * Additional metadata/context as JSON.
148
148
  */
149
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
149
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
150
150
  /**
151
151
  * Client IP address.
152
152
  */
153
- ipAddress: alepha381.TOptional<alepha381.TString>;
153
+ ipAddress: alepha349.TOptional<alepha349.TString>;
154
154
  /**
155
155
  * Client user agent.
156
156
  */
157
- userAgent: alepha381.TOptional<alepha381.TString>;
157
+ userAgent: alepha349.TOptional<alepha349.TString>;
158
158
  /**
159
159
  * Session ID if applicable.
160
160
  */
161
- sessionId: alepha381.TOptional<alepha381.TString>;
161
+ sessionId: alepha349.TOptional<alepha349.TString>;
162
162
  /**
163
163
  * Request ID for correlation.
164
164
  */
165
- requestId: alepha381.TOptional<alepha381.TString>;
165
+ requestId: alepha349.TOptional<alepha349.TString>;
166
166
  /**
167
167
  * Whether the action was successful.
168
168
  */
169
- success: alepha_orm84.PgAttr<alepha381.TBoolean, typeof alepha_orm84.PG_DEFAULT>;
169
+ success: alepha_orm71.PgAttr<alepha349.TBoolean, typeof alepha_orm71.PG_DEFAULT>;
170
170
  /**
171
171
  * Error message if the action failed.
172
172
  */
173
- errorMessage: alepha381.TOptional<alepha381.TString>;
173
+ errorMessage: alepha349.TOptional<alepha349.TString>;
174
174
  }>;
175
- declare const auditEntityInsertSchema: alepha_orm84.TObjectInsert<alepha381.TObject<{
176
- id: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_PRIMARY_KEY>, typeof alepha_orm84.PG_DEFAULT>;
177
- createdAt: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_CREATED_AT>, typeof alepha_orm84.PG_DEFAULT>;
175
+ declare const auditEntityInsertSchema: alepha_orm71.TObjectInsert<alepha349.TObject<{
176
+ id: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_PRIMARY_KEY>, typeof alepha_orm71.PG_DEFAULT>;
177
+ createdAt: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_CREATED_AT>, typeof alepha_orm71.PG_DEFAULT>;
178
178
  /**
179
179
  * Audit event type (e.g., "auth", "user", "payment", "system").
180
180
  * Used for categorizing and filtering audit events.
181
181
  */
182
- type: alepha381.TString;
182
+ type: alepha349.TString;
183
183
  /**
184
184
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
185
185
  */
186
- action: alepha381.TString;
186
+ action: alepha349.TString;
187
187
  /**
188
188
  * Severity level of the event.
189
189
  */
190
- severity: alepha_orm84.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm84.PG_DEFAULT>;
190
+ severity: alepha_orm71.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm71.PG_DEFAULT>;
191
191
  /**
192
192
  * User ID who performed the action (null for system events).
193
193
  */
194
- userId: alepha381.TOptional<alepha381.TString>;
194
+ userId: alepha349.TOptional<alepha349.TString>;
195
195
  /**
196
196
  * User realm for multi-tenant support.
197
197
  */
198
- userRealm: alepha381.TOptional<alepha381.TString>;
198
+ userRealm: alepha349.TOptional<alepha349.TString>;
199
199
  /**
200
200
  * User email at the time of the event (denormalized for history).
201
201
  */
202
- userEmail: alepha381.TOptional<alepha381.TString>;
202
+ userEmail: alepha349.TOptional<alepha349.TString>;
203
203
  /**
204
204
  * Resource type affected (e.g., "user", "order", "file").
205
205
  */
206
- resourceType: alepha381.TOptional<alepha381.TString>;
206
+ resourceType: alepha349.TOptional<alepha349.TString>;
207
207
  /**
208
208
  * Resource ID affected.
209
209
  */
210
- resourceId: alepha381.TOptional<alepha381.TString>;
210
+ resourceId: alepha349.TOptional<alepha349.TString>;
211
211
  /**
212
212
  * Human-readable description of the event.
213
213
  */
214
- description: alepha381.TOptional<alepha381.TString>;
214
+ description: alepha349.TOptional<alepha349.TString>;
215
215
  /**
216
216
  * Additional metadata/context as JSON.
217
217
  */
218
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
218
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
219
219
  /**
220
220
  * Client IP address.
221
221
  */
222
- ipAddress: alepha381.TOptional<alepha381.TString>;
222
+ ipAddress: alepha349.TOptional<alepha349.TString>;
223
223
  /**
224
224
  * Client user agent.
225
225
  */
226
- userAgent: alepha381.TOptional<alepha381.TString>;
226
+ userAgent: alepha349.TOptional<alepha349.TString>;
227
227
  /**
228
228
  * Session ID if applicable.
229
229
  */
230
- sessionId: alepha381.TOptional<alepha381.TString>;
230
+ sessionId: alepha349.TOptional<alepha349.TString>;
231
231
  /**
232
232
  * Request ID for correlation.
233
233
  */
234
- requestId: alepha381.TOptional<alepha381.TString>;
234
+ requestId: alepha349.TOptional<alepha349.TString>;
235
235
  /**
236
236
  * Whether the action was successful.
237
237
  */
238
- success: alepha_orm84.PgAttr<alepha381.TBoolean, typeof alepha_orm84.PG_DEFAULT>;
238
+ success: alepha_orm71.PgAttr<alepha349.TBoolean, typeof alepha_orm71.PG_DEFAULT>;
239
239
  /**
240
240
  * Error message if the action failed.
241
241
  */
242
- errorMessage: alepha381.TOptional<alepha381.TString>;
242
+ errorMessage: alepha349.TOptional<alepha349.TString>;
243
243
  }>>;
244
244
  type AuditEntity = Static<typeof audits.schema>;
245
245
  //#endregion
@@ -247,21 +247,21 @@ type AuditEntity = Static<typeof audits.schema>;
247
247
  /**
248
248
  * Query schema for searching and filtering audit logs.
249
249
  */
250
- declare const auditQuerySchema: alepha381.TObject<{
251
- page: alepha381.TOptional<alepha381.TInteger>;
252
- size: alepha381.TOptional<alepha381.TInteger>;
253
- sort: alepha381.TOptional<alepha381.TString>;
254
- type: alepha381.TOptional<alepha381.TString>;
255
- action: alepha381.TOptional<alepha381.TString>;
256
- severity: alepha381.TOptional<alepha381.TUnsafe<"info" | "warning" | "critical">>;
257
- userId: alepha381.TOptional<alepha381.TString>;
258
- userRealm: alepha381.TOptional<alepha381.TString>;
259
- resourceType: alepha381.TOptional<alepha381.TString>;
260
- resourceId: alepha381.TOptional<alepha381.TString>;
261
- success: alepha381.TOptional<alepha381.TBoolean>;
262
- from: alepha381.TOptional<alepha381.TString>;
263
- to: alepha381.TOptional<alepha381.TString>;
264
- search: alepha381.TOptional<alepha381.TString>;
250
+ declare const auditQuerySchema: alepha349.TObject<{
251
+ page: alepha349.TOptional<alepha349.TInteger>;
252
+ size: alepha349.TOptional<alepha349.TInteger>;
253
+ sort: alepha349.TOptional<alepha349.TString>;
254
+ type: alepha349.TOptional<alepha349.TString>;
255
+ action: alepha349.TOptional<alepha349.TString>;
256
+ severity: alepha349.TOptional<alepha349.TUnsafe<"info" | "warning" | "critical">>;
257
+ userId: alepha349.TOptional<alepha349.TString>;
258
+ userRealm: alepha349.TOptional<alepha349.TString>;
259
+ resourceType: alepha349.TOptional<alepha349.TString>;
260
+ resourceId: alepha349.TOptional<alepha349.TString>;
261
+ success: alepha349.TOptional<alepha349.TBoolean>;
262
+ from: alepha349.TOptional<alepha349.TString>;
263
+ to: alepha349.TOptional<alepha349.TString>;
264
+ search: alepha349.TOptional<alepha349.TString>;
265
265
  }>;
266
266
  type AuditQuery = Static<typeof auditQuerySchema>;
267
267
  //#endregion
@@ -269,23 +269,23 @@ type AuditQuery = Static<typeof auditQuerySchema>;
269
269
  /**
270
270
  * Schema for creating a new audit log entry.
271
271
  */
272
- declare const createAuditSchema: alepha381.TObject<{
273
- type: alepha381.TString;
274
- action: alepha381.TString;
275
- severity: alepha381.TOptional<alepha381.TUnsafe<"info" | "warning" | "critical">>;
276
- userId: alepha381.TOptional<alepha381.TString>;
277
- userRealm: alepha381.TOptional<alepha381.TString>;
278
- userEmail: alepha381.TOptional<alepha381.TString>;
279
- resourceType: alepha381.TOptional<alepha381.TString>;
280
- resourceId: alepha381.TOptional<alepha381.TString>;
281
- description: alepha381.TOptional<alepha381.TString>;
282
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
283
- ipAddress: alepha381.TOptional<alepha381.TString>;
284
- userAgent: alepha381.TOptional<alepha381.TString>;
285
- sessionId: alepha381.TOptional<alepha381.TString>;
286
- requestId: alepha381.TOptional<alepha381.TString>;
287
- success: alepha381.TOptional<alepha381.TBoolean>;
288
- errorMessage: alepha381.TOptional<alepha381.TString>;
272
+ declare const createAuditSchema: alepha349.TObject<{
273
+ type: alepha349.TString;
274
+ action: alepha349.TString;
275
+ severity: alepha349.TOptional<alepha349.TUnsafe<"info" | "warning" | "critical">>;
276
+ userId: alepha349.TOptional<alepha349.TString>;
277
+ userRealm: alepha349.TOptional<alepha349.TString>;
278
+ userEmail: alepha349.TOptional<alepha349.TString>;
279
+ resourceType: alepha349.TOptional<alepha349.TString>;
280
+ resourceId: alepha349.TOptional<alepha349.TString>;
281
+ description: alepha349.TOptional<alepha349.TString>;
282
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
283
+ ipAddress: alepha349.TOptional<alepha349.TString>;
284
+ userAgent: alepha349.TOptional<alepha349.TString>;
285
+ sessionId: alepha349.TOptional<alepha349.TString>;
286
+ requestId: alepha349.TOptional<alepha349.TString>;
287
+ success: alepha349.TOptional<alepha349.TBoolean>;
288
+ errorMessage: alepha349.TOptional<alepha349.TString>;
289
289
  }>;
290
290
  type CreateAudit = Static<typeof createAuditSchema>;
291
291
  //#endregion
@@ -310,25 +310,25 @@ interface AuditTypeDefinition {
310
310
  declare class AuditService {
311
311
  protected readonly alepha: Alepha;
312
312
  protected readonly log: alepha_logger0.Logger;
313
- protected readonly repo: alepha_orm84.Repository<alepha381.TObject<{
314
- id: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_PRIMARY_KEY>, typeof alepha_orm84.PG_DEFAULT>;
315
- createdAt: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_CREATED_AT>, typeof alepha_orm84.PG_DEFAULT>;
316
- type: alepha381.TString;
317
- action: alepha381.TString;
318
- severity: alepha_orm84.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm84.PG_DEFAULT>;
319
- userId: alepha381.TOptional<alepha381.TString>;
320
- userRealm: alepha381.TOptional<alepha381.TString>;
321
- userEmail: alepha381.TOptional<alepha381.TString>;
322
- resourceType: alepha381.TOptional<alepha381.TString>;
323
- resourceId: alepha381.TOptional<alepha381.TString>;
324
- description: alepha381.TOptional<alepha381.TString>;
325
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
326
- ipAddress: alepha381.TOptional<alepha381.TString>;
327
- userAgent: alepha381.TOptional<alepha381.TString>;
328
- sessionId: alepha381.TOptional<alepha381.TString>;
329
- requestId: alepha381.TOptional<alepha381.TString>;
330
- success: alepha_orm84.PgAttr<alepha381.TBoolean, typeof alepha_orm84.PG_DEFAULT>;
331
- errorMessage: alepha381.TOptional<alepha381.TString>;
313
+ protected readonly repo: alepha_orm71.Repository<alepha349.TObject<{
314
+ id: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_PRIMARY_KEY>, typeof alepha_orm71.PG_DEFAULT>;
315
+ createdAt: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_CREATED_AT>, typeof alepha_orm71.PG_DEFAULT>;
316
+ type: alepha349.TString;
317
+ action: alepha349.TString;
318
+ severity: alepha_orm71.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm71.PG_DEFAULT>;
319
+ userId: alepha349.TOptional<alepha349.TString>;
320
+ userRealm: alepha349.TOptional<alepha349.TString>;
321
+ userEmail: alepha349.TOptional<alepha349.TString>;
322
+ resourceType: alepha349.TOptional<alepha349.TString>;
323
+ resourceId: alepha349.TOptional<alepha349.TString>;
324
+ description: alepha349.TOptional<alepha349.TString>;
325
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
326
+ ipAddress: alepha349.TOptional<alepha349.TString>;
327
+ userAgent: alepha349.TOptional<alepha349.TString>;
328
+ sessionId: alepha349.TOptional<alepha349.TString>;
329
+ requestId: alepha349.TOptional<alepha349.TString>;
330
+ success: alepha_orm71.PgAttr<alepha349.TBoolean, typeof alepha_orm71.PG_DEFAULT>;
331
+ errorMessage: alepha349.TOptional<alepha349.TString>;
332
332
  }>>;
333
333
  /**
334
334
  * Registry of audit types and their allowed actions.
@@ -433,237 +433,237 @@ declare class AuditController {
433
433
  * Find audit entries with filtering and pagination.
434
434
  */
435
435
  readonly findAudits: alepha_server0.ActionPrimitiveFn<{
436
- query: alepha381.TObject<{
437
- page: alepha381.TOptional<alepha381.TInteger>;
438
- size: alepha381.TOptional<alepha381.TInteger>;
439
- sort: alepha381.TOptional<alepha381.TString>;
440
- type: alepha381.TOptional<alepha381.TString>;
441
- action: alepha381.TOptional<alepha381.TString>;
442
- severity: alepha381.TOptional<alepha381.TUnsafe<"info" | "warning" | "critical">>;
443
- userId: alepha381.TOptional<alepha381.TString>;
444
- userRealm: alepha381.TOptional<alepha381.TString>;
445
- resourceType: alepha381.TOptional<alepha381.TString>;
446
- resourceId: alepha381.TOptional<alepha381.TString>;
447
- success: alepha381.TOptional<alepha381.TBoolean>;
448
- from: alepha381.TOptional<alepha381.TString>;
449
- to: alepha381.TOptional<alepha381.TString>;
450
- search: alepha381.TOptional<alepha381.TString>;
436
+ query: alepha349.TObject<{
437
+ page: alepha349.TOptional<alepha349.TInteger>;
438
+ size: alepha349.TOptional<alepha349.TInteger>;
439
+ sort: alepha349.TOptional<alepha349.TString>;
440
+ type: alepha349.TOptional<alepha349.TString>;
441
+ action: alepha349.TOptional<alepha349.TString>;
442
+ severity: alepha349.TOptional<alepha349.TUnsafe<"info" | "warning" | "critical">>;
443
+ userId: alepha349.TOptional<alepha349.TString>;
444
+ userRealm: alepha349.TOptional<alepha349.TString>;
445
+ resourceType: alepha349.TOptional<alepha349.TString>;
446
+ resourceId: alepha349.TOptional<alepha349.TString>;
447
+ success: alepha349.TOptional<alepha349.TBoolean>;
448
+ from: alepha349.TOptional<alepha349.TString>;
449
+ to: alepha349.TOptional<alepha349.TString>;
450
+ search: alepha349.TOptional<alepha349.TString>;
451
451
  }>;
452
- response: alepha381.TPage<alepha381.TObject<{
453
- id: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_PRIMARY_KEY>, typeof alepha_orm84.PG_DEFAULT>;
454
- createdAt: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_CREATED_AT>, typeof alepha_orm84.PG_DEFAULT>;
455
- type: alepha381.TString;
456
- action: alepha381.TString;
457
- severity: alepha_orm84.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm84.PG_DEFAULT>;
458
- userId: alepha381.TOptional<alepha381.TString>;
459
- userRealm: alepha381.TOptional<alepha381.TString>;
460
- userEmail: alepha381.TOptional<alepha381.TString>;
461
- resourceType: alepha381.TOptional<alepha381.TString>;
462
- resourceId: alepha381.TOptional<alepha381.TString>;
463
- description: alepha381.TOptional<alepha381.TString>;
464
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
465
- ipAddress: alepha381.TOptional<alepha381.TString>;
466
- userAgent: alepha381.TOptional<alepha381.TString>;
467
- sessionId: alepha381.TOptional<alepha381.TString>;
468
- requestId: alepha381.TOptional<alepha381.TString>;
469
- success: alepha_orm84.PgAttr<alepha381.TBoolean, typeof alepha_orm84.PG_DEFAULT>;
470
- errorMessage: alepha381.TOptional<alepha381.TString>;
452
+ response: alepha349.TPage<alepha349.TObject<{
453
+ id: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_PRIMARY_KEY>, typeof alepha_orm71.PG_DEFAULT>;
454
+ createdAt: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_CREATED_AT>, typeof alepha_orm71.PG_DEFAULT>;
455
+ type: alepha349.TString;
456
+ action: alepha349.TString;
457
+ severity: alepha_orm71.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm71.PG_DEFAULT>;
458
+ userId: alepha349.TOptional<alepha349.TString>;
459
+ userRealm: alepha349.TOptional<alepha349.TString>;
460
+ userEmail: alepha349.TOptional<alepha349.TString>;
461
+ resourceType: alepha349.TOptional<alepha349.TString>;
462
+ resourceId: alepha349.TOptional<alepha349.TString>;
463
+ description: alepha349.TOptional<alepha349.TString>;
464
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
465
+ ipAddress: alepha349.TOptional<alepha349.TString>;
466
+ userAgent: alepha349.TOptional<alepha349.TString>;
467
+ sessionId: alepha349.TOptional<alepha349.TString>;
468
+ requestId: alepha349.TOptional<alepha349.TString>;
469
+ success: alepha_orm71.PgAttr<alepha349.TBoolean, typeof alepha_orm71.PG_DEFAULT>;
470
+ errorMessage: alepha349.TOptional<alepha349.TString>;
471
471
  }>>;
472
472
  }>;
473
473
  /**
474
474
  * Get a single audit entry by ID.
475
475
  */
476
476
  readonly getAudit: alepha_server0.ActionPrimitiveFn<{
477
- params: alepha381.TObject<{
478
- id: alepha381.TString;
477
+ params: alepha349.TObject<{
478
+ id: alepha349.TString;
479
479
  }>;
480
- response: alepha381.TObject<{
481
- id: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_PRIMARY_KEY>, typeof alepha_orm84.PG_DEFAULT>;
482
- createdAt: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_CREATED_AT>, typeof alepha_orm84.PG_DEFAULT>;
483
- type: alepha381.TString;
484
- action: alepha381.TString;
485
- severity: alepha_orm84.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm84.PG_DEFAULT>;
486
- userId: alepha381.TOptional<alepha381.TString>;
487
- userRealm: alepha381.TOptional<alepha381.TString>;
488
- userEmail: alepha381.TOptional<alepha381.TString>;
489
- resourceType: alepha381.TOptional<alepha381.TString>;
490
- resourceId: alepha381.TOptional<alepha381.TString>;
491
- description: alepha381.TOptional<alepha381.TString>;
492
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
493
- ipAddress: alepha381.TOptional<alepha381.TString>;
494
- userAgent: alepha381.TOptional<alepha381.TString>;
495
- sessionId: alepha381.TOptional<alepha381.TString>;
496
- requestId: alepha381.TOptional<alepha381.TString>;
497
- success: alepha_orm84.PgAttr<alepha381.TBoolean, typeof alepha_orm84.PG_DEFAULT>;
498
- errorMessage: alepha381.TOptional<alepha381.TString>;
480
+ response: alepha349.TObject<{
481
+ id: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_PRIMARY_KEY>, typeof alepha_orm71.PG_DEFAULT>;
482
+ createdAt: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_CREATED_AT>, typeof alepha_orm71.PG_DEFAULT>;
483
+ type: alepha349.TString;
484
+ action: alepha349.TString;
485
+ severity: alepha_orm71.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm71.PG_DEFAULT>;
486
+ userId: alepha349.TOptional<alepha349.TString>;
487
+ userRealm: alepha349.TOptional<alepha349.TString>;
488
+ userEmail: alepha349.TOptional<alepha349.TString>;
489
+ resourceType: alepha349.TOptional<alepha349.TString>;
490
+ resourceId: alepha349.TOptional<alepha349.TString>;
491
+ description: alepha349.TOptional<alepha349.TString>;
492
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
493
+ ipAddress: alepha349.TOptional<alepha349.TString>;
494
+ userAgent: alepha349.TOptional<alepha349.TString>;
495
+ sessionId: alepha349.TOptional<alepha349.TString>;
496
+ requestId: alepha349.TOptional<alepha349.TString>;
497
+ success: alepha_orm71.PgAttr<alepha349.TBoolean, typeof alepha_orm71.PG_DEFAULT>;
498
+ errorMessage: alepha349.TOptional<alepha349.TString>;
499
499
  }>;
500
500
  }>;
501
501
  /**
502
502
  * Create a new audit entry.
503
503
  */
504
504
  readonly createAudit: alepha_server0.ActionPrimitiveFn<{
505
- body: alepha381.TObject<{
506
- type: alepha381.TString;
507
- action: alepha381.TString;
508
- severity: alepha381.TOptional<alepha381.TUnsafe<"info" | "warning" | "critical">>;
509
- userId: alepha381.TOptional<alepha381.TString>;
510
- userRealm: alepha381.TOptional<alepha381.TString>;
511
- userEmail: alepha381.TOptional<alepha381.TString>;
512
- resourceType: alepha381.TOptional<alepha381.TString>;
513
- resourceId: alepha381.TOptional<alepha381.TString>;
514
- description: alepha381.TOptional<alepha381.TString>;
515
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
516
- ipAddress: alepha381.TOptional<alepha381.TString>;
517
- userAgent: alepha381.TOptional<alepha381.TString>;
518
- sessionId: alepha381.TOptional<alepha381.TString>;
519
- requestId: alepha381.TOptional<alepha381.TString>;
520
- success: alepha381.TOptional<alepha381.TBoolean>;
521
- errorMessage: alepha381.TOptional<alepha381.TString>;
505
+ body: alepha349.TObject<{
506
+ type: alepha349.TString;
507
+ action: alepha349.TString;
508
+ severity: alepha349.TOptional<alepha349.TUnsafe<"info" | "warning" | "critical">>;
509
+ userId: alepha349.TOptional<alepha349.TString>;
510
+ userRealm: alepha349.TOptional<alepha349.TString>;
511
+ userEmail: alepha349.TOptional<alepha349.TString>;
512
+ resourceType: alepha349.TOptional<alepha349.TString>;
513
+ resourceId: alepha349.TOptional<alepha349.TString>;
514
+ description: alepha349.TOptional<alepha349.TString>;
515
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
516
+ ipAddress: alepha349.TOptional<alepha349.TString>;
517
+ userAgent: alepha349.TOptional<alepha349.TString>;
518
+ sessionId: alepha349.TOptional<alepha349.TString>;
519
+ requestId: alepha349.TOptional<alepha349.TString>;
520
+ success: alepha349.TOptional<alepha349.TBoolean>;
521
+ errorMessage: alepha349.TOptional<alepha349.TString>;
522
522
  }>;
523
- response: alepha381.TObject<{
524
- id: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_PRIMARY_KEY>, typeof alepha_orm84.PG_DEFAULT>;
525
- createdAt: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_CREATED_AT>, typeof alepha_orm84.PG_DEFAULT>;
526
- type: alepha381.TString;
527
- action: alepha381.TString;
528
- severity: alepha_orm84.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm84.PG_DEFAULT>;
529
- userId: alepha381.TOptional<alepha381.TString>;
530
- userRealm: alepha381.TOptional<alepha381.TString>;
531
- userEmail: alepha381.TOptional<alepha381.TString>;
532
- resourceType: alepha381.TOptional<alepha381.TString>;
533
- resourceId: alepha381.TOptional<alepha381.TString>;
534
- description: alepha381.TOptional<alepha381.TString>;
535
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
536
- ipAddress: alepha381.TOptional<alepha381.TString>;
537
- userAgent: alepha381.TOptional<alepha381.TString>;
538
- sessionId: alepha381.TOptional<alepha381.TString>;
539
- requestId: alepha381.TOptional<alepha381.TString>;
540
- success: alepha_orm84.PgAttr<alepha381.TBoolean, typeof alepha_orm84.PG_DEFAULT>;
541
- errorMessage: alepha381.TOptional<alepha381.TString>;
523
+ response: alepha349.TObject<{
524
+ id: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_PRIMARY_KEY>, typeof alepha_orm71.PG_DEFAULT>;
525
+ createdAt: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_CREATED_AT>, typeof alepha_orm71.PG_DEFAULT>;
526
+ type: alepha349.TString;
527
+ action: alepha349.TString;
528
+ severity: alepha_orm71.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm71.PG_DEFAULT>;
529
+ userId: alepha349.TOptional<alepha349.TString>;
530
+ userRealm: alepha349.TOptional<alepha349.TString>;
531
+ userEmail: alepha349.TOptional<alepha349.TString>;
532
+ resourceType: alepha349.TOptional<alepha349.TString>;
533
+ resourceId: alepha349.TOptional<alepha349.TString>;
534
+ description: alepha349.TOptional<alepha349.TString>;
535
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
536
+ ipAddress: alepha349.TOptional<alepha349.TString>;
537
+ userAgent: alepha349.TOptional<alepha349.TString>;
538
+ sessionId: alepha349.TOptional<alepha349.TString>;
539
+ requestId: alepha349.TOptional<alepha349.TString>;
540
+ success: alepha_orm71.PgAttr<alepha349.TBoolean, typeof alepha_orm71.PG_DEFAULT>;
541
+ errorMessage: alepha349.TOptional<alepha349.TString>;
542
542
  }>;
543
543
  }>;
544
544
  /**
545
545
  * Get audit entries for a specific user.
546
546
  */
547
547
  readonly findByUser: alepha_server0.ActionPrimitiveFn<{
548
- params: alepha381.TObject<{
549
- userId: alepha381.TString;
548
+ params: alepha349.TObject<{
549
+ userId: alepha349.TString;
550
550
  }>;
551
- query: alepha381.TObject<{
552
- type: alepha381.TOptional<alepha381.TString>;
553
- search: alepha381.TOptional<alepha381.TString>;
554
- action: alepha381.TOptional<alepha381.TString>;
555
- severity: alepha381.TOptional<alepha381.TUnsafe<"info" | "warning" | "critical">>;
556
- sort: alepha381.TOptional<alepha381.TString>;
557
- userRealm: alepha381.TOptional<alepha381.TString>;
558
- resourceType: alepha381.TOptional<alepha381.TString>;
559
- resourceId: alepha381.TOptional<alepha381.TString>;
560
- success: alepha381.TOptional<alepha381.TBoolean>;
561
- page: alepha381.TOptional<alepha381.TInteger>;
562
- size: alepha381.TOptional<alepha381.TInteger>;
563
- from: alepha381.TOptional<alepha381.TString>;
564
- to: alepha381.TOptional<alepha381.TString>;
551
+ query: alepha349.TObject<{
552
+ page: alepha349.TOptional<alepha349.TInteger>;
553
+ type: alepha349.TOptional<alepha349.TString>;
554
+ size: alepha349.TOptional<alepha349.TInteger>;
555
+ sort: alepha349.TOptional<alepha349.TString>;
556
+ action: alepha349.TOptional<alepha349.TString>;
557
+ severity: alepha349.TOptional<alepha349.TUnsafe<"info" | "warning" | "critical">>;
558
+ userRealm: alepha349.TOptional<alepha349.TString>;
559
+ resourceType: alepha349.TOptional<alepha349.TString>;
560
+ resourceId: alepha349.TOptional<alepha349.TString>;
561
+ success: alepha349.TOptional<alepha349.TBoolean>;
562
+ from: alepha349.TOptional<alepha349.TString>;
563
+ to: alepha349.TOptional<alepha349.TString>;
564
+ search: alepha349.TOptional<alepha349.TString>;
565
565
  }>;
566
- response: alepha381.TPage<alepha381.TObject<{
567
- id: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_PRIMARY_KEY>, typeof alepha_orm84.PG_DEFAULT>;
568
- createdAt: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_CREATED_AT>, typeof alepha_orm84.PG_DEFAULT>;
569
- type: alepha381.TString;
570
- action: alepha381.TString;
571
- severity: alepha_orm84.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm84.PG_DEFAULT>;
572
- userId: alepha381.TOptional<alepha381.TString>;
573
- userRealm: alepha381.TOptional<alepha381.TString>;
574
- userEmail: alepha381.TOptional<alepha381.TString>;
575
- resourceType: alepha381.TOptional<alepha381.TString>;
576
- resourceId: alepha381.TOptional<alepha381.TString>;
577
- description: alepha381.TOptional<alepha381.TString>;
578
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
579
- ipAddress: alepha381.TOptional<alepha381.TString>;
580
- userAgent: alepha381.TOptional<alepha381.TString>;
581
- sessionId: alepha381.TOptional<alepha381.TString>;
582
- requestId: alepha381.TOptional<alepha381.TString>;
583
- success: alepha_orm84.PgAttr<alepha381.TBoolean, typeof alepha_orm84.PG_DEFAULT>;
584
- errorMessage: alepha381.TOptional<alepha381.TString>;
566
+ response: alepha349.TPage<alepha349.TObject<{
567
+ id: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_PRIMARY_KEY>, typeof alepha_orm71.PG_DEFAULT>;
568
+ createdAt: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_CREATED_AT>, typeof alepha_orm71.PG_DEFAULT>;
569
+ type: alepha349.TString;
570
+ action: alepha349.TString;
571
+ severity: alepha_orm71.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm71.PG_DEFAULT>;
572
+ userId: alepha349.TOptional<alepha349.TString>;
573
+ userRealm: alepha349.TOptional<alepha349.TString>;
574
+ userEmail: alepha349.TOptional<alepha349.TString>;
575
+ resourceType: alepha349.TOptional<alepha349.TString>;
576
+ resourceId: alepha349.TOptional<alepha349.TString>;
577
+ description: alepha349.TOptional<alepha349.TString>;
578
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
579
+ ipAddress: alepha349.TOptional<alepha349.TString>;
580
+ userAgent: alepha349.TOptional<alepha349.TString>;
581
+ sessionId: alepha349.TOptional<alepha349.TString>;
582
+ requestId: alepha349.TOptional<alepha349.TString>;
583
+ success: alepha_orm71.PgAttr<alepha349.TBoolean, typeof alepha_orm71.PG_DEFAULT>;
584
+ errorMessage: alepha349.TOptional<alepha349.TString>;
585
585
  }>>;
586
586
  }>;
587
587
  /**
588
588
  * Get audit entries for a specific resource.
589
589
  */
590
590
  readonly findByResource: alepha_server0.ActionPrimitiveFn<{
591
- params: alepha381.TObject<{
592
- resourceType: alepha381.TString;
593
- resourceId: alepha381.TString;
591
+ params: alepha349.TObject<{
592
+ resourceType: alepha349.TString;
593
+ resourceId: alepha349.TString;
594
594
  }>;
595
- query: alepha381.TObject<{
596
- type: alepha381.TOptional<alepha381.TString>;
597
- search: alepha381.TOptional<alepha381.TString>;
598
- action: alepha381.TOptional<alepha381.TString>;
599
- severity: alepha381.TOptional<alepha381.TUnsafe<"info" | "warning" | "critical">>;
600
- sort: alepha381.TOptional<alepha381.TString>;
601
- userId: alepha381.TOptional<alepha381.TString>;
602
- userRealm: alepha381.TOptional<alepha381.TString>;
603
- success: alepha381.TOptional<alepha381.TBoolean>;
604
- page: alepha381.TOptional<alepha381.TInteger>;
605
- size: alepha381.TOptional<alepha381.TInteger>;
606
- from: alepha381.TOptional<alepha381.TString>;
607
- to: alepha381.TOptional<alepha381.TString>;
595
+ query: alepha349.TObject<{
596
+ page: alepha349.TOptional<alepha349.TInteger>;
597
+ type: alepha349.TOptional<alepha349.TString>;
598
+ size: alepha349.TOptional<alepha349.TInteger>;
599
+ sort: alepha349.TOptional<alepha349.TString>;
600
+ action: alepha349.TOptional<alepha349.TString>;
601
+ severity: alepha349.TOptional<alepha349.TUnsafe<"info" | "warning" | "critical">>;
602
+ userId: alepha349.TOptional<alepha349.TString>;
603
+ userRealm: alepha349.TOptional<alepha349.TString>;
604
+ success: alepha349.TOptional<alepha349.TBoolean>;
605
+ from: alepha349.TOptional<alepha349.TString>;
606
+ to: alepha349.TOptional<alepha349.TString>;
607
+ search: alepha349.TOptional<alepha349.TString>;
608
608
  }>;
609
- response: alepha381.TPage<alepha381.TObject<{
610
- id: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_PRIMARY_KEY>, typeof alepha_orm84.PG_DEFAULT>;
611
- createdAt: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_CREATED_AT>, typeof alepha_orm84.PG_DEFAULT>;
612
- type: alepha381.TString;
613
- action: alepha381.TString;
614
- severity: alepha_orm84.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm84.PG_DEFAULT>;
615
- userId: alepha381.TOptional<alepha381.TString>;
616
- userRealm: alepha381.TOptional<alepha381.TString>;
617
- userEmail: alepha381.TOptional<alepha381.TString>;
618
- resourceType: alepha381.TOptional<alepha381.TString>;
619
- resourceId: alepha381.TOptional<alepha381.TString>;
620
- description: alepha381.TOptional<alepha381.TString>;
621
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
622
- ipAddress: alepha381.TOptional<alepha381.TString>;
623
- userAgent: alepha381.TOptional<alepha381.TString>;
624
- sessionId: alepha381.TOptional<alepha381.TString>;
625
- requestId: alepha381.TOptional<alepha381.TString>;
626
- success: alepha_orm84.PgAttr<alepha381.TBoolean, typeof alepha_orm84.PG_DEFAULT>;
627
- errorMessage: alepha381.TOptional<alepha381.TString>;
609
+ response: alepha349.TPage<alepha349.TObject<{
610
+ id: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_PRIMARY_KEY>, typeof alepha_orm71.PG_DEFAULT>;
611
+ createdAt: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_CREATED_AT>, typeof alepha_orm71.PG_DEFAULT>;
612
+ type: alepha349.TString;
613
+ action: alepha349.TString;
614
+ severity: alepha_orm71.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm71.PG_DEFAULT>;
615
+ userId: alepha349.TOptional<alepha349.TString>;
616
+ userRealm: alepha349.TOptional<alepha349.TString>;
617
+ userEmail: alepha349.TOptional<alepha349.TString>;
618
+ resourceType: alepha349.TOptional<alepha349.TString>;
619
+ resourceId: alepha349.TOptional<alepha349.TString>;
620
+ description: alepha349.TOptional<alepha349.TString>;
621
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
622
+ ipAddress: alepha349.TOptional<alepha349.TString>;
623
+ userAgent: alepha349.TOptional<alepha349.TString>;
624
+ sessionId: alepha349.TOptional<alepha349.TString>;
625
+ requestId: alepha349.TOptional<alepha349.TString>;
626
+ success: alepha_orm71.PgAttr<alepha349.TBoolean, typeof alepha_orm71.PG_DEFAULT>;
627
+ errorMessage: alepha349.TOptional<alepha349.TString>;
628
628
  }>>;
629
629
  }>;
630
630
  /**
631
631
  * Get audit statistics.
632
632
  */
633
633
  readonly getStats: alepha_server0.ActionPrimitiveFn<{
634
- query: alepha381.TObject<{
635
- from: alepha381.TOptional<alepha381.TString>;
636
- to: alepha381.TOptional<alepha381.TString>;
637
- userRealm: alepha381.TOptional<alepha381.TString>;
634
+ query: alepha349.TObject<{
635
+ from: alepha349.TOptional<alepha349.TString>;
636
+ to: alepha349.TOptional<alepha349.TString>;
637
+ userRealm: alepha349.TOptional<alepha349.TString>;
638
638
  }>;
639
- response: alepha381.TObject<{
640
- total: alepha381.TInteger;
641
- byType: alepha381.TRecord<"^.*$", alepha381.TInteger>;
642
- bySeverity: alepha381.TObject<{
643
- info: alepha381.TInteger;
644
- warning: alepha381.TInteger;
645
- critical: alepha381.TInteger;
639
+ response: alepha349.TObject<{
640
+ total: alepha349.TInteger;
641
+ byType: alepha349.TRecord<"^.*$", alepha349.TInteger>;
642
+ bySeverity: alepha349.TObject<{
643
+ info: alepha349.TInteger;
644
+ warning: alepha349.TInteger;
645
+ critical: alepha349.TInteger;
646
646
  }>;
647
- successRate: alepha381.TNumber;
648
- recentFailures: alepha381.TArray<alepha381.TObject<{
649
- id: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_PRIMARY_KEY>, typeof alepha_orm84.PG_DEFAULT>;
650
- createdAt: alepha_orm84.PgAttr<alepha_orm84.PgAttr<alepha381.TString, typeof alepha_orm84.PG_CREATED_AT>, typeof alepha_orm84.PG_DEFAULT>;
651
- type: alepha381.TString;
652
- action: alepha381.TString;
653
- severity: alepha_orm84.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm84.PG_DEFAULT>;
654
- userId: alepha381.TOptional<alepha381.TString>;
655
- userRealm: alepha381.TOptional<alepha381.TString>;
656
- userEmail: alepha381.TOptional<alepha381.TString>;
657
- resourceType: alepha381.TOptional<alepha381.TString>;
658
- resourceId: alepha381.TOptional<alepha381.TString>;
659
- description: alepha381.TOptional<alepha381.TString>;
660
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
661
- ipAddress: alepha381.TOptional<alepha381.TString>;
662
- userAgent: alepha381.TOptional<alepha381.TString>;
663
- sessionId: alepha381.TOptional<alepha381.TString>;
664
- requestId: alepha381.TOptional<alepha381.TString>;
665
- success: alepha_orm84.PgAttr<alepha381.TBoolean, typeof alepha_orm84.PG_DEFAULT>;
666
- errorMessage: alepha381.TOptional<alepha381.TString>;
647
+ successRate: alepha349.TNumber;
648
+ recentFailures: alepha349.TArray<alepha349.TObject<{
649
+ id: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_PRIMARY_KEY>, typeof alepha_orm71.PG_DEFAULT>;
650
+ createdAt: alepha_orm71.PgAttr<alepha_orm71.PgAttr<alepha349.TString, typeof alepha_orm71.PG_CREATED_AT>, typeof alepha_orm71.PG_DEFAULT>;
651
+ type: alepha349.TString;
652
+ action: alepha349.TString;
653
+ severity: alepha_orm71.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm71.PG_DEFAULT>;
654
+ userId: alepha349.TOptional<alepha349.TString>;
655
+ userRealm: alepha349.TOptional<alepha349.TString>;
656
+ userEmail: alepha349.TOptional<alepha349.TString>;
657
+ resourceType: alepha349.TOptional<alepha349.TString>;
658
+ resourceId: alepha349.TOptional<alepha349.TString>;
659
+ description: alepha349.TOptional<alepha349.TString>;
660
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
661
+ ipAddress: alepha349.TOptional<alepha349.TString>;
662
+ userAgent: alepha349.TOptional<alepha349.TString>;
663
+ sessionId: alepha349.TOptional<alepha349.TString>;
664
+ requestId: alepha349.TOptional<alepha349.TString>;
665
+ success: alepha_orm71.PgAttr<alepha349.TBoolean, typeof alepha_orm71.PG_DEFAULT>;
666
+ errorMessage: alepha349.TOptional<alepha349.TString>;
667
667
  }>>;
668
668
  }>;
669
669
  }>;
@@ -671,21 +671,21 @@ declare class AuditController {
671
671
  * Get registered audit types.
672
672
  */
673
673
  readonly getTypes: alepha_server0.ActionPrimitiveFn<{
674
- response: alepha381.TArray<alepha381.TObject<{
675
- type: alepha381.TString;
676
- description: alepha381.TOptional<alepha381.TString>;
677
- actions: alepha381.TArray<alepha381.TString>;
674
+ response: alepha349.TArray<alepha349.TObject<{
675
+ type: alepha349.TString;
676
+ description: alepha349.TOptional<alepha349.TString>;
677
+ actions: alepha349.TArray<alepha349.TString>;
678
678
  }>>;
679
679
  }>;
680
680
  /**
681
681
  * Get distinct values for filters.
682
682
  */
683
683
  readonly getFilterOptions: alepha_server0.ActionPrimitiveFn<{
684
- response: alepha381.TObject<{
685
- types: alepha381.TArray<alepha381.TString>;
686
- actions: alepha381.TArray<alepha381.TString>;
687
- resourceTypes: alepha381.TArray<alepha381.TString>;
688
- userRealms: alepha381.TArray<alepha381.TString>;
684
+ response: alepha349.TObject<{
685
+ types: alepha349.TArray<alepha349.TString>;
686
+ actions: alepha349.TArray<alepha349.TString>;
687
+ resourceTypes: alepha349.TArray<alepha349.TString>;
688
+ userRealms: alepha349.TArray<alepha349.TString>;
689
689
  }>;
690
690
  }>;
691
691
  }
@@ -1023,7 +1023,7 @@ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]:
1023
1023
  declare module "alepha" {
1024
1024
  interface Env extends Partial<Static<typeof envSchema$1>> {}
1025
1025
  }
1026
- declare const envSchema$1: alepha381.TObject<{
1026
+ declare const envSchema$1: alepha349.TObject<{
1027
1027
  /**
1028
1028
  * Main configuration for database connection.
1029
1029
  * Accept a string in the format of a Postgres connection URL.
@@ -1031,11 +1031,11 @@ declare const envSchema$1: alepha381.TObject<{
1031
1031
  * or
1032
1032
  * Example: postgres://user:password@localhost:5432/database?sslmode=require
1033
1033
  */
1034
- DATABASE_URL: alepha381.TOptional<alepha381.TString>;
1034
+ DATABASE_URL: alepha349.TOptional<alepha349.TString>;
1035
1035
  /**
1036
1036
  * In addition to the DATABASE_URL, you can specify the postgres schema name.
1037
1037
  */
1038
- POSTGRES_SCHEMA: alepha381.TOptional<alepha381.TString>;
1038
+ POSTGRES_SCHEMA: alepha349.TOptional<alepha349.TString>;
1039
1039
  }>;
1040
1040
  /**
1041
1041
  * Bun PostgreSQL provider using Drizzle ORM with Bun's native SQL client.
@@ -1060,8 +1060,8 @@ declare const envSchema$1: alepha381.TObject<{
1060
1060
  /**
1061
1061
  * Configuration options for the Bun SQLite database provider.
1062
1062
  */
1063
- declare const bunSqliteOptions: alepha381.Atom<alepha381.TObject<{
1064
- path: alepha381.TOptional<alepha381.TString>;
1063
+ declare const bunSqliteOptions: alepha349.Atom<alepha349.TObject<{
1064
+ path: alepha349.TOptional<alepha349.TString>;
1065
1065
  }>, "alepha.postgres.bun-sqlite.options">;
1066
1066
  type BunSqliteProviderOptions = Static<typeof bunSqliteOptions.schema>;
1067
1067
  declare module "alepha" {
@@ -1098,7 +1098,7 @@ declare module "alepha" {
1098
1098
  declare module "alepha" {
1099
1099
  interface Env extends Partial<Static<typeof envSchema>> {}
1100
1100
  }
1101
- declare const envSchema: alepha381.TObject<{
1101
+ declare const envSchema: alepha349.TObject<{
1102
1102
  /**
1103
1103
  * Main configuration for database connection.
1104
1104
  * Accept a string in the format of a Postgres connection URL.
@@ -1106,21 +1106,21 @@ declare const envSchema: alepha381.TObject<{
1106
1106
  * or
1107
1107
  * Example: postgres://user:password@localhost:5432/database?sslmode=require
1108
1108
  */
1109
- DATABASE_URL: alepha381.TOptional<alepha381.TString>;
1109
+ DATABASE_URL: alepha349.TOptional<alepha349.TString>;
1110
1110
  /**
1111
1111
  * In addition to the DATABASE_URL, you can specify the postgres schema name.
1112
1112
  *
1113
1113
  * It will monkey patch drizzle tables.
1114
1114
  */
1115
- POSTGRES_SCHEMA: alepha381.TOptional<alepha381.TString>;
1115
+ POSTGRES_SCHEMA: alepha349.TOptional<alepha349.TString>;
1116
1116
  }>;
1117
1117
  //#endregion
1118
1118
  //#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
1119
1119
  /**
1120
1120
  * Configuration options for the Node.js SQLite database provider.
1121
1121
  */
1122
- declare const nodeSqliteOptions: alepha381.Atom<alepha381.TObject<{
1123
- path: alepha381.TOptional<alepha381.TString>;
1122
+ declare const nodeSqliteOptions: alepha349.Atom<alepha349.TObject<{
1123
+ path: alepha349.TOptional<alepha349.TString>;
1124
1124
  }>, "alepha.postgres.node-sqlite.options">;
1125
1125
  type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
1126
1126
  declare module "alepha" {
@@ -1207,25 +1207,25 @@ declare module "alepha" {
1207
1207
  /**
1208
1208
  * Resource schema for audit log responses.
1209
1209
  */
1210
- declare const auditResourceSchema: alepha381.TObject<{
1211
- id: PgAttr<PgAttr<alepha381.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1212
- createdAt: PgAttr<PgAttr<alepha381.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1213
- type: alepha381.TString;
1214
- action: alepha381.TString;
1215
- severity: PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
1216
- userId: alepha381.TOptional<alepha381.TString>;
1217
- userRealm: alepha381.TOptional<alepha381.TString>;
1218
- userEmail: alepha381.TOptional<alepha381.TString>;
1219
- resourceType: alepha381.TOptional<alepha381.TString>;
1220
- resourceId: alepha381.TOptional<alepha381.TString>;
1221
- description: alepha381.TOptional<alepha381.TString>;
1222
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
1223
- ipAddress: alepha381.TOptional<alepha381.TString>;
1224
- userAgent: alepha381.TOptional<alepha381.TString>;
1225
- sessionId: alepha381.TOptional<alepha381.TString>;
1226
- requestId: alepha381.TOptional<alepha381.TString>;
1227
- success: PgAttr<alepha381.TBoolean, typeof PG_DEFAULT>;
1228
- errorMessage: alepha381.TOptional<alepha381.TString>;
1210
+ declare const auditResourceSchema: alepha349.TObject<{
1211
+ id: PgAttr<PgAttr<alepha349.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1212
+ createdAt: PgAttr<PgAttr<alepha349.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1213
+ type: alepha349.TString;
1214
+ action: alepha349.TString;
1215
+ severity: PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
1216
+ userId: alepha349.TOptional<alepha349.TString>;
1217
+ userRealm: alepha349.TOptional<alepha349.TString>;
1218
+ userEmail: alepha349.TOptional<alepha349.TString>;
1219
+ resourceType: alepha349.TOptional<alepha349.TString>;
1220
+ resourceId: alepha349.TOptional<alepha349.TString>;
1221
+ description: alepha349.TOptional<alepha349.TString>;
1222
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
1223
+ ipAddress: alepha349.TOptional<alepha349.TString>;
1224
+ userAgent: alepha349.TOptional<alepha349.TString>;
1225
+ sessionId: alepha349.TOptional<alepha349.TString>;
1226
+ requestId: alepha349.TOptional<alepha349.TString>;
1227
+ success: PgAttr<alepha349.TBoolean, typeof PG_DEFAULT>;
1228
+ errorMessage: alepha349.TOptional<alepha349.TString>;
1229
1229
  }>;
1230
1230
  type AuditResource = Static<typeof auditResourceSchema>;
1231
1231
  //#endregion
@@ -1268,7 +1268,7 @@ type AuditResource = Static<typeof auditResourceSchema>;
1268
1268
  * }
1269
1269
  * ```
1270
1270
  */
1271
- declare const AlephaApiAudits: alepha381.Service<alepha381.Module>;
1271
+ declare const AlephaApiAudits: alepha349.Service<alepha349.Module>;
1272
1272
  //#endregion
1273
1273
  export { $audit, AlephaApiAudits, AuditController, AuditEntity, AuditLogOptions, AuditPrimitive, AuditPrimitiveOptions, AuditQuery, AuditResource, AuditService, AuditSeverity, AuditStats, AuditTypeDefinition, CreateAudit, auditEntityInsertSchema, auditEntitySchema, auditQuerySchema, auditResourceSchema, auditSeveritySchema, audits, createAuditSchema };
1274
1274
  //# sourceMappingURL=index.d.ts.map