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.
- package/README.md +3 -3
- package/dist/api/audits/index.d.ts +342 -342
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.d.ts +161 -161
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/users/index.d.ts +791 -791
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +4 -0
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.d.ts +128 -128
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/batch/index.js.map +1 -1
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cli/index.d.ts +173 -167
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +427 -409
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +5 -5
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +7 -6
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +7 -6
- package/dist/core/index.native.js.map +1 -1
- package/dist/datetime/index.js.map +1 -1
- package/dist/fake/index.js.map +1 -1
- package/dist/file/index.js.map +1 -1
- package/dist/lock/redis/index.js.map +1 -1
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/index.browser.js +26 -5
- package/dist/orm/index.browser.js.map +1 -1
- package/dist/orm/index.d.ts +115 -90
- package/dist/orm/index.d.ts.map +1 -1
- package/dist/orm/index.js +37 -12
- package/dist/orm/index.js.map +1 -1
- package/dist/redis/index.js.map +1 -1
- package/dist/retry/index.js.map +1 -1
- package/dist/router/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +6 -6
- package/dist/scheduler/index.js.map +1 -1
- package/dist/security/index.d.ts +28 -28
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +155 -155
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cache/index.js.map +1 -1
- package/dist/server/cookies/index.browser.js.map +1 -1
- package/dist/server/cookies/index.js.map +1 -1
- package/dist/server/core/index.browser.js.map +1 -1
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/health/index.d.ts +17 -17
- package/dist/server/helmet/index.js.map +1 -1
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/multipart/index.js.map +1 -1
- package/dist/server/rate-limit/index.js.map +1 -1
- package/dist/server/security/index.d.ts +9 -9
- package/dist/server/security/index.js.map +1 -1
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/thread/index.js.map +1 -1
- package/dist/topic/core/index.js.map +1 -1
- package/dist/vite/index.js.map +1 -1
- package/dist/websocket/index.browser.js.map +1 -1
- package/dist/websocket/index.d.ts +7 -7
- package/dist/websocket/index.js.map +1 -1
- package/package.json +3 -3
- package/src/api/users/index.ts +4 -0
- package/src/cli/apps/AlephaCli.ts +31 -14
- package/src/cli/apps/AlephaPackageBuilderCli.ts +2 -1
- package/src/cli/assets/appRouterTs.ts +1 -1
- package/src/cli/commands/{ViteCommands.ts → build.ts} +2 -105
- package/src/cli/commands/{ChangelogCommands.ts → changelog.ts} +7 -22
- package/src/cli/commands/clean.ts +14 -0
- package/src/cli/commands/{DrizzleCommands.ts → db.ts} +10 -117
- package/src/cli/commands/{DeployCommands.ts → deploy.ts} +1 -1
- package/src/cli/commands/dev.ts +57 -0
- package/src/cli/commands/format.ts +17 -0
- package/src/cli/commands/{CoreCommands.ts → init.ts} +2 -40
- package/src/cli/commands/lint.ts +17 -0
- package/src/cli/commands/root.ts +32 -0
- package/src/cli/commands/run.ts +24 -0
- package/src/cli/commands/test.ts +42 -0
- package/src/cli/commands/typecheck.ts +19 -0
- package/src/cli/commands/{VerifyCommands.ts → verify.ts} +1 -13
- package/src/cli/defineConfig.ts +10 -1
- package/src/cli/index.ts +16 -7
- package/src/cli/services/GitMessageParser.ts +1 -1
- package/src/core/Alepha.ts +7 -4
- package/src/orm/index.browser.ts +1 -1
- package/src/orm/index.ts +10 -6
- package/src/orm/providers/{PostgresTypeProvider.ts → DatabaseTypeProvider.ts} +25 -3
- package/src/cli/commands/BiomeCommands.ts +0 -29
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha349 from "alepha";
|
|
2
2
|
import { Alepha, KIND, Primitive, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
|
-
import * as
|
|
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:
|
|
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:
|
|
38
|
-
id:
|
|
39
|
-
createdAt:
|
|
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:
|
|
44
|
+
type: alepha349.TString;
|
|
45
45
|
/**
|
|
46
46
|
* Specific action performed (e.g., "login", "logout", "create", "update", "delete").
|
|
47
47
|
*/
|
|
48
|
-
action:
|
|
48
|
+
action: alepha349.TString;
|
|
49
49
|
/**
|
|
50
50
|
* Severity level of the event.
|
|
51
51
|
*/
|
|
52
|
-
severity:
|
|
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:
|
|
56
|
+
userId: alepha349.TOptional<alepha349.TString>;
|
|
57
57
|
/**
|
|
58
58
|
* User realm for multi-tenant support.
|
|
59
59
|
*/
|
|
60
|
-
userRealm:
|
|
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:
|
|
64
|
+
userEmail: alepha349.TOptional<alepha349.TString>;
|
|
65
65
|
/**
|
|
66
66
|
* Resource type affected (e.g., "user", "order", "file").
|
|
67
67
|
*/
|
|
68
|
-
resourceType:
|
|
68
|
+
resourceType: alepha349.TOptional<alepha349.TString>;
|
|
69
69
|
/**
|
|
70
70
|
* Resource ID affected.
|
|
71
71
|
*/
|
|
72
|
-
resourceId:
|
|
72
|
+
resourceId: alepha349.TOptional<alepha349.TString>;
|
|
73
73
|
/**
|
|
74
74
|
* Human-readable description of the event.
|
|
75
75
|
*/
|
|
76
|
-
description:
|
|
76
|
+
description: alepha349.TOptional<alepha349.TString>;
|
|
77
77
|
/**
|
|
78
78
|
* Additional metadata/context as JSON.
|
|
79
79
|
*/
|
|
80
|
-
metadata:
|
|
80
|
+
metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
|
|
81
81
|
/**
|
|
82
82
|
* Client IP address.
|
|
83
83
|
*/
|
|
84
|
-
ipAddress:
|
|
84
|
+
ipAddress: alepha349.TOptional<alepha349.TString>;
|
|
85
85
|
/**
|
|
86
86
|
* Client user agent.
|
|
87
87
|
*/
|
|
88
|
-
userAgent:
|
|
88
|
+
userAgent: alepha349.TOptional<alepha349.TString>;
|
|
89
89
|
/**
|
|
90
90
|
* Session ID if applicable.
|
|
91
91
|
*/
|
|
92
|
-
sessionId:
|
|
92
|
+
sessionId: alepha349.TOptional<alepha349.TString>;
|
|
93
93
|
/**
|
|
94
94
|
* Request ID for correlation.
|
|
95
95
|
*/
|
|
96
|
-
requestId:
|
|
96
|
+
requestId: alepha349.TOptional<alepha349.TString>;
|
|
97
97
|
/**
|
|
98
98
|
* Whether the action was successful.
|
|
99
99
|
*/
|
|
100
|
-
success:
|
|
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:
|
|
104
|
+
errorMessage: alepha349.TOptional<alepha349.TString>;
|
|
105
105
|
}>>;
|
|
106
|
-
declare const auditEntitySchema:
|
|
107
|
-
id:
|
|
108
|
-
createdAt:
|
|
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:
|
|
113
|
+
type: alepha349.TString;
|
|
114
114
|
/**
|
|
115
115
|
* Specific action performed (e.g., "login", "logout", "create", "update", "delete").
|
|
116
116
|
*/
|
|
117
|
-
action:
|
|
117
|
+
action: alepha349.TString;
|
|
118
118
|
/**
|
|
119
119
|
* Severity level of the event.
|
|
120
120
|
*/
|
|
121
|
-
severity:
|
|
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:
|
|
125
|
+
userId: alepha349.TOptional<alepha349.TString>;
|
|
126
126
|
/**
|
|
127
127
|
* User realm for multi-tenant support.
|
|
128
128
|
*/
|
|
129
|
-
userRealm:
|
|
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:
|
|
133
|
+
userEmail: alepha349.TOptional<alepha349.TString>;
|
|
134
134
|
/**
|
|
135
135
|
* Resource type affected (e.g., "user", "order", "file").
|
|
136
136
|
*/
|
|
137
|
-
resourceType:
|
|
137
|
+
resourceType: alepha349.TOptional<alepha349.TString>;
|
|
138
138
|
/**
|
|
139
139
|
* Resource ID affected.
|
|
140
140
|
*/
|
|
141
|
-
resourceId:
|
|
141
|
+
resourceId: alepha349.TOptional<alepha349.TString>;
|
|
142
142
|
/**
|
|
143
143
|
* Human-readable description of the event.
|
|
144
144
|
*/
|
|
145
|
-
description:
|
|
145
|
+
description: alepha349.TOptional<alepha349.TString>;
|
|
146
146
|
/**
|
|
147
147
|
* Additional metadata/context as JSON.
|
|
148
148
|
*/
|
|
149
|
-
metadata:
|
|
149
|
+
metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
|
|
150
150
|
/**
|
|
151
151
|
* Client IP address.
|
|
152
152
|
*/
|
|
153
|
-
ipAddress:
|
|
153
|
+
ipAddress: alepha349.TOptional<alepha349.TString>;
|
|
154
154
|
/**
|
|
155
155
|
* Client user agent.
|
|
156
156
|
*/
|
|
157
|
-
userAgent:
|
|
157
|
+
userAgent: alepha349.TOptional<alepha349.TString>;
|
|
158
158
|
/**
|
|
159
159
|
* Session ID if applicable.
|
|
160
160
|
*/
|
|
161
|
-
sessionId:
|
|
161
|
+
sessionId: alepha349.TOptional<alepha349.TString>;
|
|
162
162
|
/**
|
|
163
163
|
* Request ID for correlation.
|
|
164
164
|
*/
|
|
165
|
-
requestId:
|
|
165
|
+
requestId: alepha349.TOptional<alepha349.TString>;
|
|
166
166
|
/**
|
|
167
167
|
* Whether the action was successful.
|
|
168
168
|
*/
|
|
169
|
-
success:
|
|
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:
|
|
173
|
+
errorMessage: alepha349.TOptional<alepha349.TString>;
|
|
174
174
|
}>;
|
|
175
|
-
declare const auditEntityInsertSchema:
|
|
176
|
-
id:
|
|
177
|
-
createdAt:
|
|
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:
|
|
182
|
+
type: alepha349.TString;
|
|
183
183
|
/**
|
|
184
184
|
* Specific action performed (e.g., "login", "logout", "create", "update", "delete").
|
|
185
185
|
*/
|
|
186
|
-
action:
|
|
186
|
+
action: alepha349.TString;
|
|
187
187
|
/**
|
|
188
188
|
* Severity level of the event.
|
|
189
189
|
*/
|
|
190
|
-
severity:
|
|
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:
|
|
194
|
+
userId: alepha349.TOptional<alepha349.TString>;
|
|
195
195
|
/**
|
|
196
196
|
* User realm for multi-tenant support.
|
|
197
197
|
*/
|
|
198
|
-
userRealm:
|
|
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:
|
|
202
|
+
userEmail: alepha349.TOptional<alepha349.TString>;
|
|
203
203
|
/**
|
|
204
204
|
* Resource type affected (e.g., "user", "order", "file").
|
|
205
205
|
*/
|
|
206
|
-
resourceType:
|
|
206
|
+
resourceType: alepha349.TOptional<alepha349.TString>;
|
|
207
207
|
/**
|
|
208
208
|
* Resource ID affected.
|
|
209
209
|
*/
|
|
210
|
-
resourceId:
|
|
210
|
+
resourceId: alepha349.TOptional<alepha349.TString>;
|
|
211
211
|
/**
|
|
212
212
|
* Human-readable description of the event.
|
|
213
213
|
*/
|
|
214
|
-
description:
|
|
214
|
+
description: alepha349.TOptional<alepha349.TString>;
|
|
215
215
|
/**
|
|
216
216
|
* Additional metadata/context as JSON.
|
|
217
217
|
*/
|
|
218
|
-
metadata:
|
|
218
|
+
metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
|
|
219
219
|
/**
|
|
220
220
|
* Client IP address.
|
|
221
221
|
*/
|
|
222
|
-
ipAddress:
|
|
222
|
+
ipAddress: alepha349.TOptional<alepha349.TString>;
|
|
223
223
|
/**
|
|
224
224
|
* Client user agent.
|
|
225
225
|
*/
|
|
226
|
-
userAgent:
|
|
226
|
+
userAgent: alepha349.TOptional<alepha349.TString>;
|
|
227
227
|
/**
|
|
228
228
|
* Session ID if applicable.
|
|
229
229
|
*/
|
|
230
|
-
sessionId:
|
|
230
|
+
sessionId: alepha349.TOptional<alepha349.TString>;
|
|
231
231
|
/**
|
|
232
232
|
* Request ID for correlation.
|
|
233
233
|
*/
|
|
234
|
-
requestId:
|
|
234
|
+
requestId: alepha349.TOptional<alepha349.TString>;
|
|
235
235
|
/**
|
|
236
236
|
* Whether the action was successful.
|
|
237
237
|
*/
|
|
238
|
-
success:
|
|
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:
|
|
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:
|
|
251
|
-
page:
|
|
252
|
-
size:
|
|
253
|
-
sort:
|
|
254
|
-
type:
|
|
255
|
-
action:
|
|
256
|
-
severity:
|
|
257
|
-
userId:
|
|
258
|
-
userRealm:
|
|
259
|
-
resourceType:
|
|
260
|
-
resourceId:
|
|
261
|
-
success:
|
|
262
|
-
from:
|
|
263
|
-
to:
|
|
264
|
-
search:
|
|
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:
|
|
273
|
-
type:
|
|
274
|
-
action:
|
|
275
|
-
severity:
|
|
276
|
-
userId:
|
|
277
|
-
userRealm:
|
|
278
|
-
userEmail:
|
|
279
|
-
resourceType:
|
|
280
|
-
resourceId:
|
|
281
|
-
description:
|
|
282
|
-
metadata:
|
|
283
|
-
ipAddress:
|
|
284
|
-
userAgent:
|
|
285
|
-
sessionId:
|
|
286
|
-
requestId:
|
|
287
|
-
success:
|
|
288
|
-
errorMessage:
|
|
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:
|
|
314
|
-
id:
|
|
315
|
-
createdAt:
|
|
316
|
-
type:
|
|
317
|
-
action:
|
|
318
|
-
severity:
|
|
319
|
-
userId:
|
|
320
|
-
userRealm:
|
|
321
|
-
userEmail:
|
|
322
|
-
resourceType:
|
|
323
|
-
resourceId:
|
|
324
|
-
description:
|
|
325
|
-
metadata:
|
|
326
|
-
ipAddress:
|
|
327
|
-
userAgent:
|
|
328
|
-
sessionId:
|
|
329
|
-
requestId:
|
|
330
|
-
success:
|
|
331
|
-
errorMessage:
|
|
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:
|
|
437
|
-
page:
|
|
438
|
-
size:
|
|
439
|
-
sort:
|
|
440
|
-
type:
|
|
441
|
-
action:
|
|
442
|
-
severity:
|
|
443
|
-
userId:
|
|
444
|
-
userRealm:
|
|
445
|
-
resourceType:
|
|
446
|
-
resourceId:
|
|
447
|
-
success:
|
|
448
|
-
from:
|
|
449
|
-
to:
|
|
450
|
-
search:
|
|
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:
|
|
453
|
-
id:
|
|
454
|
-
createdAt:
|
|
455
|
-
type:
|
|
456
|
-
action:
|
|
457
|
-
severity:
|
|
458
|
-
userId:
|
|
459
|
-
userRealm:
|
|
460
|
-
userEmail:
|
|
461
|
-
resourceType:
|
|
462
|
-
resourceId:
|
|
463
|
-
description:
|
|
464
|
-
metadata:
|
|
465
|
-
ipAddress:
|
|
466
|
-
userAgent:
|
|
467
|
-
sessionId:
|
|
468
|
-
requestId:
|
|
469
|
-
success:
|
|
470
|
-
errorMessage:
|
|
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:
|
|
478
|
-
id:
|
|
477
|
+
params: alepha349.TObject<{
|
|
478
|
+
id: alepha349.TString;
|
|
479
479
|
}>;
|
|
480
|
-
response:
|
|
481
|
-
id:
|
|
482
|
-
createdAt:
|
|
483
|
-
type:
|
|
484
|
-
action:
|
|
485
|
-
severity:
|
|
486
|
-
userId:
|
|
487
|
-
userRealm:
|
|
488
|
-
userEmail:
|
|
489
|
-
resourceType:
|
|
490
|
-
resourceId:
|
|
491
|
-
description:
|
|
492
|
-
metadata:
|
|
493
|
-
ipAddress:
|
|
494
|
-
userAgent:
|
|
495
|
-
sessionId:
|
|
496
|
-
requestId:
|
|
497
|
-
success:
|
|
498
|
-
errorMessage:
|
|
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:
|
|
506
|
-
type:
|
|
507
|
-
action:
|
|
508
|
-
severity:
|
|
509
|
-
userId:
|
|
510
|
-
userRealm:
|
|
511
|
-
userEmail:
|
|
512
|
-
resourceType:
|
|
513
|
-
resourceId:
|
|
514
|
-
description:
|
|
515
|
-
metadata:
|
|
516
|
-
ipAddress:
|
|
517
|
-
userAgent:
|
|
518
|
-
sessionId:
|
|
519
|
-
requestId:
|
|
520
|
-
success:
|
|
521
|
-
errorMessage:
|
|
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:
|
|
524
|
-
id:
|
|
525
|
-
createdAt:
|
|
526
|
-
type:
|
|
527
|
-
action:
|
|
528
|
-
severity:
|
|
529
|
-
userId:
|
|
530
|
-
userRealm:
|
|
531
|
-
userEmail:
|
|
532
|
-
resourceType:
|
|
533
|
-
resourceId:
|
|
534
|
-
description:
|
|
535
|
-
metadata:
|
|
536
|
-
ipAddress:
|
|
537
|
-
userAgent:
|
|
538
|
-
sessionId:
|
|
539
|
-
requestId:
|
|
540
|
-
success:
|
|
541
|
-
errorMessage:
|
|
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:
|
|
549
|
-
userId:
|
|
548
|
+
params: alepha349.TObject<{
|
|
549
|
+
userId: alepha349.TString;
|
|
550
550
|
}>;
|
|
551
|
-
query:
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
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:
|
|
567
|
-
id:
|
|
568
|
-
createdAt:
|
|
569
|
-
type:
|
|
570
|
-
action:
|
|
571
|
-
severity:
|
|
572
|
-
userId:
|
|
573
|
-
userRealm:
|
|
574
|
-
userEmail:
|
|
575
|
-
resourceType:
|
|
576
|
-
resourceId:
|
|
577
|
-
description:
|
|
578
|
-
metadata:
|
|
579
|
-
ipAddress:
|
|
580
|
-
userAgent:
|
|
581
|
-
sessionId:
|
|
582
|
-
requestId:
|
|
583
|
-
success:
|
|
584
|
-
errorMessage:
|
|
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:
|
|
592
|
-
resourceType:
|
|
593
|
-
resourceId:
|
|
591
|
+
params: alepha349.TObject<{
|
|
592
|
+
resourceType: alepha349.TString;
|
|
593
|
+
resourceId: alepha349.TString;
|
|
594
594
|
}>;
|
|
595
|
-
query:
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
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:
|
|
610
|
-
id:
|
|
611
|
-
createdAt:
|
|
612
|
-
type:
|
|
613
|
-
action:
|
|
614
|
-
severity:
|
|
615
|
-
userId:
|
|
616
|
-
userRealm:
|
|
617
|
-
userEmail:
|
|
618
|
-
resourceType:
|
|
619
|
-
resourceId:
|
|
620
|
-
description:
|
|
621
|
-
metadata:
|
|
622
|
-
ipAddress:
|
|
623
|
-
userAgent:
|
|
624
|
-
sessionId:
|
|
625
|
-
requestId:
|
|
626
|
-
success:
|
|
627
|
-
errorMessage:
|
|
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:
|
|
635
|
-
from:
|
|
636
|
-
to:
|
|
637
|
-
userRealm:
|
|
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:
|
|
640
|
-
total:
|
|
641
|
-
byType:
|
|
642
|
-
bySeverity:
|
|
643
|
-
info:
|
|
644
|
-
warning:
|
|
645
|
-
critical:
|
|
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:
|
|
648
|
-
recentFailures:
|
|
649
|
-
id:
|
|
650
|
-
createdAt:
|
|
651
|
-
type:
|
|
652
|
-
action:
|
|
653
|
-
severity:
|
|
654
|
-
userId:
|
|
655
|
-
userRealm:
|
|
656
|
-
userEmail:
|
|
657
|
-
resourceType:
|
|
658
|
-
resourceId:
|
|
659
|
-
description:
|
|
660
|
-
metadata:
|
|
661
|
-
ipAddress:
|
|
662
|
-
userAgent:
|
|
663
|
-
sessionId:
|
|
664
|
-
requestId:
|
|
665
|
-
success:
|
|
666
|
-
errorMessage:
|
|
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:
|
|
675
|
-
type:
|
|
676
|
-
description:
|
|
677
|
-
actions:
|
|
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:
|
|
685
|
-
types:
|
|
686
|
-
actions:
|
|
687
|
-
resourceTypes:
|
|
688
|
-
userRealms:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
1064
|
-
path:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
1123
|
-
path:
|
|
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:
|
|
1211
|
-
id: PgAttr<PgAttr<
|
|
1212
|
-
createdAt: PgAttr<PgAttr<
|
|
1213
|
-
type:
|
|
1214
|
-
action:
|
|
1215
|
-
severity: PgAttr<
|
|
1216
|
-
userId:
|
|
1217
|
-
userRealm:
|
|
1218
|
-
userEmail:
|
|
1219
|
-
resourceType:
|
|
1220
|
-
resourceId:
|
|
1221
|
-
description:
|
|
1222
|
-
metadata:
|
|
1223
|
-
ipAddress:
|
|
1224
|
-
userAgent:
|
|
1225
|
-
sessionId:
|
|
1226
|
-
requestId:
|
|
1227
|
-
success: PgAttr<
|
|
1228
|
-
errorMessage:
|
|
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:
|
|
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
|