alepha 0.15.3 → 0.15.4

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 (90) hide show
  1. package/dist/api/audits/index.d.ts +332 -332
  2. package/dist/api/audits/index.d.ts.map +1 -1
  3. package/dist/api/audits/index.js +8 -0
  4. package/dist/api/audits/index.js.map +1 -1
  5. package/dist/api/files/index.js +1 -0
  6. package/dist/api/files/index.js.map +1 -1
  7. package/dist/api/jobs/index.d.ts +151 -151
  8. package/dist/api/jobs/index.d.ts.map +1 -1
  9. package/dist/api/jobs/index.js +3 -0
  10. package/dist/api/jobs/index.js.map +1 -1
  11. package/dist/api/keys/index.d.ts +195 -195
  12. package/dist/api/keys/index.d.ts.map +1 -1
  13. package/dist/api/notifications/index.browser.js +1 -0
  14. package/dist/api/notifications/index.browser.js.map +1 -1
  15. package/dist/api/notifications/index.js +1 -0
  16. package/dist/api/notifications/index.js.map +1 -1
  17. package/dist/api/parameters/index.d.ts +260 -260
  18. package/dist/api/parameters/index.d.ts.map +1 -1
  19. package/dist/api/parameters/index.js +10 -0
  20. package/dist/api/parameters/index.js.map +1 -1
  21. package/dist/api/users/index.d.ts +10 -10
  22. package/dist/api/users/index.d.ts.map +1 -1
  23. package/dist/api/users/index.js +11 -0
  24. package/dist/api/users/index.js.map +1 -1
  25. package/dist/api/verifications/index.d.ts +128 -128
  26. package/dist/api/verifications/index.d.ts.map +1 -1
  27. package/dist/batch/index.d.ts +4 -4
  28. package/dist/cli/index.d.ts +5 -0
  29. package/dist/cli/index.d.ts.map +1 -1
  30. package/dist/cli/index.js +19 -2
  31. package/dist/cli/index.js.map +1 -1
  32. package/dist/email/index.d.ts +13 -13
  33. package/dist/email/index.d.ts.map +1 -1
  34. package/dist/email/index.js +10554 -2
  35. package/dist/email/index.js.map +1 -1
  36. package/dist/lock/core/index.d.ts +6 -1
  37. package/dist/lock/core/index.d.ts.map +1 -1
  38. package/dist/lock/core/index.js +9 -1
  39. package/dist/lock/core/index.js.map +1 -1
  40. package/dist/react/auth/index.browser.js +2 -1
  41. package/dist/react/auth/index.browser.js.map +1 -1
  42. package/dist/react/auth/index.js +2 -1
  43. package/dist/react/auth/index.js.map +1 -1
  44. package/dist/react/core/index.d.ts +3 -3
  45. package/dist/react/router/index.d.ts +10 -0
  46. package/dist/react/router/index.d.ts.map +1 -1
  47. package/dist/react/router/index.js +16 -6
  48. package/dist/react/router/index.js.map +1 -1
  49. package/dist/redis/index.d.ts +19 -19
  50. package/dist/scheduler/index.d.ts +13 -1
  51. package/dist/scheduler/index.d.ts.map +1 -1
  52. package/dist/scheduler/index.js +42 -4
  53. package/dist/scheduler/index.js.map +1 -1
  54. package/dist/server/compress/index.d.ts.map +1 -1
  55. package/dist/server/compress/index.js +1 -0
  56. package/dist/server/compress/index.js.map +1 -1
  57. package/dist/server/core/index.d.ts +9 -9
  58. package/dist/server/links/index.js +1 -1
  59. package/dist/server/links/index.js.map +1 -1
  60. package/dist/vite/index.d.ts +2 -1
  61. package/dist/vite/index.d.ts.map +1 -1
  62. package/dist/vite/index.js +28 -2
  63. package/dist/vite/index.js.map +1 -1
  64. package/dist/websocket/index.d.ts +34 -34
  65. package/dist/websocket/index.d.ts.map +1 -1
  66. package/package.json +6 -3
  67. package/src/api/audits/controllers/AdminAuditController.ts +8 -0
  68. package/src/api/files/controllers/AdminFileStatsController.ts +1 -0
  69. package/src/api/jobs/controllers/AdminJobController.ts +3 -0
  70. package/src/api/notifications/controllers/AdminNotificationController.ts +1 -0
  71. package/src/api/parameters/controllers/AdminConfigController.ts +10 -0
  72. package/src/api/users/controllers/AdminIdentityController.ts +3 -0
  73. package/src/api/users/controllers/AdminSessionController.ts +3 -0
  74. package/src/api/users/controllers/AdminUserController.ts +5 -0
  75. package/src/cli/commands/build.ts +1 -0
  76. package/src/cli/providers/ViteDevServerProvider.ts +31 -0
  77. package/src/email/index.workerd.ts +36 -0
  78. package/src/email/providers/WorkermailerEmailProvider.ts +221 -0
  79. package/src/lock/core/primitives/$lock.ts +13 -1
  80. package/src/react/auth/services/ReactAuth.ts +3 -1
  81. package/src/react/router/atoms/ssrManifestAtom.ts +7 -0
  82. package/src/react/router/providers/ReactServerProvider.ts +14 -4
  83. package/src/react/router/providers/SSRManifestProvider.ts +7 -0
  84. package/src/scheduler/index.workerd.ts +43 -0
  85. package/src/scheduler/providers/CronProvider.ts +53 -6
  86. package/src/scheduler/providers/WorkerdCronProvider.ts +102 -0
  87. package/src/server/compress/providers/ServerCompressProvider.ts +6 -0
  88. package/src/server/links/providers/ServerLinksProvider.spec.ts +332 -0
  89. package/src/server/links/providers/ServerLinksProvider.ts +1 -1
  90. package/src/vite/tasks/generateCloudflare.ts +38 -2
@@ -1,8 +1,8 @@
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
3
  import * as alepha_server0 from "alepha/server";
4
4
  import { ServerRequest } from "alepha/server";
5
- import * as alepha_orm12 from "alepha/orm";
5
+ import * as alepha_orm0 from "alepha/orm";
6
6
  import { Page } from "alepha/orm";
7
7
  import * as alepha_logger0 from "alepha/logger";
8
8
  import "drizzle-orm/d1";
@@ -232,7 +232,7 @@ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]:
232
232
  /**
233
233
  * Audit severity levels for categorizing events.
234
234
  */
235
- declare const auditSeveritySchema: alepha381.TUnsafe<"info" | "warning" | "critical">;
235
+ declare const auditSeveritySchema: alepha349.TUnsafe<"info" | "warning" | "critical">;
236
236
  type AuditSeverity = Static<typeof auditSeveritySchema>;
237
237
  /**
238
238
  * Audit log entity for tracking important system events.
@@ -243,212 +243,212 @@ type AuditSeverity = Static<typeof auditSeveritySchema>;
243
243
  * - When it happened (createdAt)
244
244
  * - Context and details (metadata, ipAddress, userAgent)
245
245
  */
246
- declare const audits: alepha_orm12.EntityPrimitive<alepha381.TObject<{
247
- id: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha381.TString, typeof alepha_orm12.PG_PRIMARY_KEY>, typeof alepha_orm12.PG_DEFAULT>;
248
- createdAt: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha381.TString, typeof alepha_orm12.PG_CREATED_AT>, typeof alepha_orm12.PG_DEFAULT>;
246
+ declare const audits: alepha_orm0.EntityPrimitive<alepha349.TObject<{
247
+ id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha349.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
248
+ createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha349.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
249
249
  /**
250
250
  * Audit event type (e.g., "auth", "user", "payment", "system").
251
251
  * Used for categorizing and filtering audit events.
252
252
  */
253
- type: alepha381.TString;
253
+ type: alepha349.TString;
254
254
  /**
255
255
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
256
256
  */
257
- action: alepha381.TString;
257
+ action: alepha349.TString;
258
258
  /**
259
259
  * Severity level of the event.
260
260
  */
261
- severity: alepha_orm12.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm12.PG_DEFAULT>;
261
+ severity: alepha_orm0.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm0.PG_DEFAULT>;
262
262
  /**
263
263
  * User ID who performed the action (null for system events).
264
264
  */
265
- userId: alepha381.TOptional<alepha381.TString>;
265
+ userId: alepha349.TOptional<alepha349.TString>;
266
266
  /**
267
267
  * User realm for multi-tenant support.
268
268
  */
269
- userRealm: alepha381.TOptional<alepha381.TString>;
269
+ userRealm: alepha349.TOptional<alepha349.TString>;
270
270
  /**
271
271
  * User email at the time of the event (denormalized for history).
272
272
  */
273
- userEmail: alepha381.TOptional<alepha381.TString>;
273
+ userEmail: alepha349.TOptional<alepha349.TString>;
274
274
  /**
275
275
  * Resource type affected (e.g., "user", "order", "file").
276
276
  */
277
- resourceType: alepha381.TOptional<alepha381.TString>;
277
+ resourceType: alepha349.TOptional<alepha349.TString>;
278
278
  /**
279
279
  * Resource ID affected.
280
280
  */
281
- resourceId: alepha381.TOptional<alepha381.TString>;
281
+ resourceId: alepha349.TOptional<alepha349.TString>;
282
282
  /**
283
283
  * Human-readable description of the event.
284
284
  */
285
- description: alepha381.TOptional<alepha381.TString>;
285
+ description: alepha349.TOptional<alepha349.TString>;
286
286
  /**
287
287
  * Additional metadata/context as JSON.
288
288
  */
289
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
289
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
290
290
  /**
291
291
  * Client IP address.
292
292
  */
293
- ipAddress: alepha381.TOptional<alepha381.TString>;
293
+ ipAddress: alepha349.TOptional<alepha349.TString>;
294
294
  /**
295
295
  * Client user agent.
296
296
  */
297
- userAgent: alepha381.TOptional<alepha381.TString>;
297
+ userAgent: alepha349.TOptional<alepha349.TString>;
298
298
  /**
299
299
  * Session ID if applicable.
300
300
  */
301
- sessionId: alepha381.TOptional<alepha381.TString>;
301
+ sessionId: alepha349.TOptional<alepha349.TString>;
302
302
  /**
303
303
  * Request ID for correlation.
304
304
  */
305
- requestId: alepha381.TOptional<alepha381.TString>;
305
+ requestId: alepha349.TOptional<alepha349.TString>;
306
306
  /**
307
307
  * Whether the action was successful.
308
308
  */
309
- success: alepha_orm12.PgAttr<alepha381.TBoolean, typeof alepha_orm12.PG_DEFAULT>;
309
+ success: alepha_orm0.PgAttr<alepha349.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
310
310
  /**
311
311
  * Error message if the action failed.
312
312
  */
313
- errorMessage: alepha381.TOptional<alepha381.TString>;
313
+ errorMessage: alepha349.TOptional<alepha349.TString>;
314
314
  }>>;
315
- declare const auditEntitySchema: alepha381.TObject<{
316
- id: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha381.TString, typeof alepha_orm12.PG_PRIMARY_KEY>, typeof alepha_orm12.PG_DEFAULT>;
317
- createdAt: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha381.TString, typeof alepha_orm12.PG_CREATED_AT>, typeof alepha_orm12.PG_DEFAULT>;
315
+ declare const auditEntitySchema: alepha349.TObject<{
316
+ id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha349.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
317
+ createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha349.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
318
318
  /**
319
319
  * Audit event type (e.g., "auth", "user", "payment", "system").
320
320
  * Used for categorizing and filtering audit events.
321
321
  */
322
- type: alepha381.TString;
322
+ type: alepha349.TString;
323
323
  /**
324
324
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
325
325
  */
326
- action: alepha381.TString;
326
+ action: alepha349.TString;
327
327
  /**
328
328
  * Severity level of the event.
329
329
  */
330
- severity: alepha_orm12.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm12.PG_DEFAULT>;
330
+ severity: alepha_orm0.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm0.PG_DEFAULT>;
331
331
  /**
332
332
  * User ID who performed the action (null for system events).
333
333
  */
334
- userId: alepha381.TOptional<alepha381.TString>;
334
+ userId: alepha349.TOptional<alepha349.TString>;
335
335
  /**
336
336
  * User realm for multi-tenant support.
337
337
  */
338
- userRealm: alepha381.TOptional<alepha381.TString>;
338
+ userRealm: alepha349.TOptional<alepha349.TString>;
339
339
  /**
340
340
  * User email at the time of the event (denormalized for history).
341
341
  */
342
- userEmail: alepha381.TOptional<alepha381.TString>;
342
+ userEmail: alepha349.TOptional<alepha349.TString>;
343
343
  /**
344
344
  * Resource type affected (e.g., "user", "order", "file").
345
345
  */
346
- resourceType: alepha381.TOptional<alepha381.TString>;
346
+ resourceType: alepha349.TOptional<alepha349.TString>;
347
347
  /**
348
348
  * Resource ID affected.
349
349
  */
350
- resourceId: alepha381.TOptional<alepha381.TString>;
350
+ resourceId: alepha349.TOptional<alepha349.TString>;
351
351
  /**
352
352
  * Human-readable description of the event.
353
353
  */
354
- description: alepha381.TOptional<alepha381.TString>;
354
+ description: alepha349.TOptional<alepha349.TString>;
355
355
  /**
356
356
  * Additional metadata/context as JSON.
357
357
  */
358
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
358
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
359
359
  /**
360
360
  * Client IP address.
361
361
  */
362
- ipAddress: alepha381.TOptional<alepha381.TString>;
362
+ ipAddress: alepha349.TOptional<alepha349.TString>;
363
363
  /**
364
364
  * Client user agent.
365
365
  */
366
- userAgent: alepha381.TOptional<alepha381.TString>;
366
+ userAgent: alepha349.TOptional<alepha349.TString>;
367
367
  /**
368
368
  * Session ID if applicable.
369
369
  */
370
- sessionId: alepha381.TOptional<alepha381.TString>;
370
+ sessionId: alepha349.TOptional<alepha349.TString>;
371
371
  /**
372
372
  * Request ID for correlation.
373
373
  */
374
- requestId: alepha381.TOptional<alepha381.TString>;
374
+ requestId: alepha349.TOptional<alepha349.TString>;
375
375
  /**
376
376
  * Whether the action was successful.
377
377
  */
378
- success: alepha_orm12.PgAttr<alepha381.TBoolean, typeof alepha_orm12.PG_DEFAULT>;
378
+ success: alepha_orm0.PgAttr<alepha349.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
379
379
  /**
380
380
  * Error message if the action failed.
381
381
  */
382
- errorMessage: alepha381.TOptional<alepha381.TString>;
382
+ errorMessage: alepha349.TOptional<alepha349.TString>;
383
383
  }>;
384
- declare const auditEntityInsertSchema: alepha_orm12.TObjectInsert<alepha381.TObject<{
385
- id: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha381.TString, typeof alepha_orm12.PG_PRIMARY_KEY>, typeof alepha_orm12.PG_DEFAULT>;
386
- createdAt: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha381.TString, typeof alepha_orm12.PG_CREATED_AT>, typeof alepha_orm12.PG_DEFAULT>;
384
+ declare const auditEntityInsertSchema: alepha_orm0.TObjectInsert<alepha349.TObject<{
385
+ id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha349.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
386
+ createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha349.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
387
387
  /**
388
388
  * Audit event type (e.g., "auth", "user", "payment", "system").
389
389
  * Used for categorizing and filtering audit events.
390
390
  */
391
- type: alepha381.TString;
391
+ type: alepha349.TString;
392
392
  /**
393
393
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
394
394
  */
395
- action: alepha381.TString;
395
+ action: alepha349.TString;
396
396
  /**
397
397
  * Severity level of the event.
398
398
  */
399
- severity: alepha_orm12.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm12.PG_DEFAULT>;
399
+ severity: alepha_orm0.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm0.PG_DEFAULT>;
400
400
  /**
401
401
  * User ID who performed the action (null for system events).
402
402
  */
403
- userId: alepha381.TOptional<alepha381.TString>;
403
+ userId: alepha349.TOptional<alepha349.TString>;
404
404
  /**
405
405
  * User realm for multi-tenant support.
406
406
  */
407
- userRealm: alepha381.TOptional<alepha381.TString>;
407
+ userRealm: alepha349.TOptional<alepha349.TString>;
408
408
  /**
409
409
  * User email at the time of the event (denormalized for history).
410
410
  */
411
- userEmail: alepha381.TOptional<alepha381.TString>;
411
+ userEmail: alepha349.TOptional<alepha349.TString>;
412
412
  /**
413
413
  * Resource type affected (e.g., "user", "order", "file").
414
414
  */
415
- resourceType: alepha381.TOptional<alepha381.TString>;
415
+ resourceType: alepha349.TOptional<alepha349.TString>;
416
416
  /**
417
417
  * Resource ID affected.
418
418
  */
419
- resourceId: alepha381.TOptional<alepha381.TString>;
419
+ resourceId: alepha349.TOptional<alepha349.TString>;
420
420
  /**
421
421
  * Human-readable description of the event.
422
422
  */
423
- description: alepha381.TOptional<alepha381.TString>;
423
+ description: alepha349.TOptional<alepha349.TString>;
424
424
  /**
425
425
  * Additional metadata/context as JSON.
426
426
  */
427
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
427
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
428
428
  /**
429
429
  * Client IP address.
430
430
  */
431
- ipAddress: alepha381.TOptional<alepha381.TString>;
431
+ ipAddress: alepha349.TOptional<alepha349.TString>;
432
432
  /**
433
433
  * Client user agent.
434
434
  */
435
- userAgent: alepha381.TOptional<alepha381.TString>;
435
+ userAgent: alepha349.TOptional<alepha349.TString>;
436
436
  /**
437
437
  * Session ID if applicable.
438
438
  */
439
- sessionId: alepha381.TOptional<alepha381.TString>;
439
+ sessionId: alepha349.TOptional<alepha349.TString>;
440
440
  /**
441
441
  * Request ID for correlation.
442
442
  */
443
- requestId: alepha381.TOptional<alepha381.TString>;
443
+ requestId: alepha349.TOptional<alepha349.TString>;
444
444
  /**
445
445
  * Whether the action was successful.
446
446
  */
447
- success: alepha_orm12.PgAttr<alepha381.TBoolean, typeof alepha_orm12.PG_DEFAULT>;
447
+ success: alepha_orm0.PgAttr<alepha349.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
448
448
  /**
449
449
  * Error message if the action failed.
450
450
  */
451
- errorMessage: alepha381.TOptional<alepha381.TString>;
451
+ errorMessage: alepha349.TOptional<alepha349.TString>;
452
452
  }>>;
453
453
  type AuditEntity = Static<typeof audits.schema>;
454
454
  //#endregion
@@ -456,21 +456,21 @@ type AuditEntity = Static<typeof audits.schema>;
456
456
  /**
457
457
  * Query schema for searching and filtering audit logs.
458
458
  */
459
- declare const auditQuerySchema: alepha381.TObject<{
460
- page: alepha381.TOptional<alepha381.TInteger>;
461
- size: alepha381.TOptional<alepha381.TInteger>;
462
- sort: alepha381.TOptional<alepha381.TString>;
463
- type: alepha381.TOptional<alepha381.TString>;
464
- action: alepha381.TOptional<alepha381.TString>;
465
- severity: alepha381.TOptional<alepha381.TUnsafe<"info" | "warning" | "critical">>;
466
- userId: alepha381.TOptional<alepha381.TString>;
467
- userRealm: alepha381.TOptional<alepha381.TString>;
468
- resourceType: alepha381.TOptional<alepha381.TString>;
469
- resourceId: alepha381.TOptional<alepha381.TString>;
470
- success: alepha381.TOptional<alepha381.TBoolean>;
471
- from: alepha381.TOptional<alepha381.TString>;
472
- to: alepha381.TOptional<alepha381.TString>;
473
- search: alepha381.TOptional<alepha381.TString>;
459
+ declare const auditQuerySchema: alepha349.TObject<{
460
+ page: alepha349.TOptional<alepha349.TInteger>;
461
+ size: alepha349.TOptional<alepha349.TInteger>;
462
+ sort: alepha349.TOptional<alepha349.TString>;
463
+ type: alepha349.TOptional<alepha349.TString>;
464
+ action: alepha349.TOptional<alepha349.TString>;
465
+ severity: alepha349.TOptional<alepha349.TUnsafe<"info" | "warning" | "critical">>;
466
+ userId: alepha349.TOptional<alepha349.TString>;
467
+ userRealm: alepha349.TOptional<alepha349.TString>;
468
+ resourceType: alepha349.TOptional<alepha349.TString>;
469
+ resourceId: alepha349.TOptional<alepha349.TString>;
470
+ success: alepha349.TOptional<alepha349.TBoolean>;
471
+ from: alepha349.TOptional<alepha349.TString>;
472
+ to: alepha349.TOptional<alepha349.TString>;
473
+ search: alepha349.TOptional<alepha349.TString>;
474
474
  }>;
475
475
  type AuditQuery = Static<typeof auditQuerySchema>;
476
476
  //#endregion
@@ -478,23 +478,23 @@ type AuditQuery = Static<typeof auditQuerySchema>;
478
478
  /**
479
479
  * Schema for creating a new audit log entry.
480
480
  */
481
- declare const createAuditSchema: alepha381.TObject<{
482
- type: alepha381.TString;
483
- action: alepha381.TString;
484
- severity: alepha381.TOptional<alepha381.TUnsafe<"info" | "warning" | "critical">>;
485
- userId: alepha381.TOptional<alepha381.TString>;
486
- userRealm: alepha381.TOptional<alepha381.TString>;
487
- userEmail: alepha381.TOptional<alepha381.TString>;
488
- resourceType: alepha381.TOptional<alepha381.TString>;
489
- resourceId: alepha381.TOptional<alepha381.TString>;
490
- description: alepha381.TOptional<alepha381.TString>;
491
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
492
- ipAddress: alepha381.TOptional<alepha381.TString>;
493
- userAgent: alepha381.TOptional<alepha381.TString>;
494
- sessionId: alepha381.TOptional<alepha381.TString>;
495
- requestId: alepha381.TOptional<alepha381.TString>;
496
- success: alepha381.TOptional<alepha381.TBoolean>;
497
- errorMessage: alepha381.TOptional<alepha381.TString>;
481
+ declare const createAuditSchema: alepha349.TObject<{
482
+ type: alepha349.TString;
483
+ action: alepha349.TString;
484
+ severity: alepha349.TOptional<alepha349.TUnsafe<"info" | "warning" | "critical">>;
485
+ userId: alepha349.TOptional<alepha349.TString>;
486
+ userRealm: alepha349.TOptional<alepha349.TString>;
487
+ userEmail: alepha349.TOptional<alepha349.TString>;
488
+ resourceType: alepha349.TOptional<alepha349.TString>;
489
+ resourceId: alepha349.TOptional<alepha349.TString>;
490
+ description: alepha349.TOptional<alepha349.TString>;
491
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
492
+ ipAddress: alepha349.TOptional<alepha349.TString>;
493
+ userAgent: alepha349.TOptional<alepha349.TString>;
494
+ sessionId: alepha349.TOptional<alepha349.TString>;
495
+ requestId: alepha349.TOptional<alepha349.TString>;
496
+ success: alepha349.TOptional<alepha349.TBoolean>;
497
+ errorMessage: alepha349.TOptional<alepha349.TString>;
498
498
  }>;
499
499
  type CreateAudit = Static<typeof createAuditSchema>;
500
500
  //#endregion
@@ -519,25 +519,25 @@ interface AuditTypeDefinition {
519
519
  declare class AuditService {
520
520
  protected readonly alepha: Alepha;
521
521
  protected readonly log: alepha_logger0.Logger;
522
- protected readonly repo: alepha_orm12.Repository<alepha381.TObject<{
523
- id: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha381.TString, typeof alepha_orm12.PG_PRIMARY_KEY>, typeof alepha_orm12.PG_DEFAULT>;
524
- createdAt: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha381.TString, typeof alepha_orm12.PG_CREATED_AT>, typeof alepha_orm12.PG_DEFAULT>;
525
- type: alepha381.TString;
526
- action: alepha381.TString;
527
- severity: alepha_orm12.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm12.PG_DEFAULT>;
528
- userId: alepha381.TOptional<alepha381.TString>;
529
- userRealm: alepha381.TOptional<alepha381.TString>;
530
- userEmail: alepha381.TOptional<alepha381.TString>;
531
- resourceType: alepha381.TOptional<alepha381.TString>;
532
- resourceId: alepha381.TOptional<alepha381.TString>;
533
- description: alepha381.TOptional<alepha381.TString>;
534
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
535
- ipAddress: alepha381.TOptional<alepha381.TString>;
536
- userAgent: alepha381.TOptional<alepha381.TString>;
537
- sessionId: alepha381.TOptional<alepha381.TString>;
538
- requestId: alepha381.TOptional<alepha381.TString>;
539
- success: alepha_orm12.PgAttr<alepha381.TBoolean, typeof alepha_orm12.PG_DEFAULT>;
540
- errorMessage: alepha381.TOptional<alepha381.TString>;
522
+ protected readonly repo: alepha_orm0.Repository<alepha349.TObject<{
523
+ id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha349.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
524
+ createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha349.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
525
+ type: alepha349.TString;
526
+ action: alepha349.TString;
527
+ severity: alepha_orm0.PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm0.PG_DEFAULT>;
528
+ userId: alepha349.TOptional<alepha349.TString>;
529
+ userRealm: alepha349.TOptional<alepha349.TString>;
530
+ userEmail: alepha349.TOptional<alepha349.TString>;
531
+ resourceType: alepha349.TOptional<alepha349.TString>;
532
+ resourceId: alepha349.TOptional<alepha349.TString>;
533
+ description: alepha349.TOptional<alepha349.TString>;
534
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
535
+ ipAddress: alepha349.TOptional<alepha349.TString>;
536
+ userAgent: alepha349.TOptional<alepha349.TString>;
537
+ sessionId: alepha349.TOptional<alepha349.TString>;
538
+ requestId: alepha349.TOptional<alepha349.TString>;
539
+ success: alepha_orm0.PgAttr<alepha349.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
540
+ errorMessage: alepha349.TOptional<alepha349.TString>;
541
541
  }>>;
542
542
  /**
543
543
  * Registry of audit types and their allowed actions.
@@ -642,237 +642,237 @@ declare class AdminAuditController {
642
642
  * Find audit entries with filtering and pagination.
643
643
  */
644
644
  readonly findAudits: alepha_server0.ActionPrimitiveFn<{
645
- query: alepha381.TObject<{
646
- page: alepha381.TOptional<alepha381.TInteger>;
647
- size: alepha381.TOptional<alepha381.TInteger>;
648
- sort: alepha381.TOptional<alepha381.TString>;
649
- type: alepha381.TOptional<alepha381.TString>;
650
- action: alepha381.TOptional<alepha381.TString>;
651
- severity: alepha381.TOptional<alepha381.TUnsafe<"info" | "warning" | "critical">>;
652
- userId: alepha381.TOptional<alepha381.TString>;
653
- userRealm: alepha381.TOptional<alepha381.TString>;
654
- resourceType: alepha381.TOptional<alepha381.TString>;
655
- resourceId: alepha381.TOptional<alepha381.TString>;
656
- success: alepha381.TOptional<alepha381.TBoolean>;
657
- from: alepha381.TOptional<alepha381.TString>;
658
- to: alepha381.TOptional<alepha381.TString>;
659
- search: alepha381.TOptional<alepha381.TString>;
645
+ query: alepha349.TObject<{
646
+ page: alepha349.TOptional<alepha349.TInteger>;
647
+ size: alepha349.TOptional<alepha349.TInteger>;
648
+ sort: alepha349.TOptional<alepha349.TString>;
649
+ type: alepha349.TOptional<alepha349.TString>;
650
+ action: alepha349.TOptional<alepha349.TString>;
651
+ severity: alepha349.TOptional<alepha349.TUnsafe<"info" | "warning" | "critical">>;
652
+ userId: alepha349.TOptional<alepha349.TString>;
653
+ userRealm: alepha349.TOptional<alepha349.TString>;
654
+ resourceType: alepha349.TOptional<alepha349.TString>;
655
+ resourceId: alepha349.TOptional<alepha349.TString>;
656
+ success: alepha349.TOptional<alepha349.TBoolean>;
657
+ from: alepha349.TOptional<alepha349.TString>;
658
+ to: alepha349.TOptional<alepha349.TString>;
659
+ search: alepha349.TOptional<alepha349.TString>;
660
660
  }>;
661
- response: alepha381.TPage<alepha381.TObject<{
662
- id: PgAttr<PgAttr<alepha381.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
663
- createdAt: PgAttr<PgAttr<alepha381.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
664
- type: alepha381.TString;
665
- action: alepha381.TString;
666
- severity: PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
667
- userId: alepha381.TOptional<alepha381.TString>;
668
- userRealm: alepha381.TOptional<alepha381.TString>;
669
- userEmail: alepha381.TOptional<alepha381.TString>;
670
- resourceType: alepha381.TOptional<alepha381.TString>;
671
- resourceId: alepha381.TOptional<alepha381.TString>;
672
- description: alepha381.TOptional<alepha381.TString>;
673
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
674
- ipAddress: alepha381.TOptional<alepha381.TString>;
675
- userAgent: alepha381.TOptional<alepha381.TString>;
676
- sessionId: alepha381.TOptional<alepha381.TString>;
677
- requestId: alepha381.TOptional<alepha381.TString>;
678
- success: PgAttr<alepha381.TBoolean, typeof PG_DEFAULT>;
679
- errorMessage: alepha381.TOptional<alepha381.TString>;
661
+ response: alepha349.TPage<alepha349.TObject<{
662
+ id: PgAttr<PgAttr<alepha349.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
663
+ createdAt: PgAttr<PgAttr<alepha349.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
664
+ type: alepha349.TString;
665
+ action: alepha349.TString;
666
+ severity: PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
667
+ userId: alepha349.TOptional<alepha349.TString>;
668
+ userRealm: alepha349.TOptional<alepha349.TString>;
669
+ userEmail: alepha349.TOptional<alepha349.TString>;
670
+ resourceType: alepha349.TOptional<alepha349.TString>;
671
+ resourceId: alepha349.TOptional<alepha349.TString>;
672
+ description: alepha349.TOptional<alepha349.TString>;
673
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
674
+ ipAddress: alepha349.TOptional<alepha349.TString>;
675
+ userAgent: alepha349.TOptional<alepha349.TString>;
676
+ sessionId: alepha349.TOptional<alepha349.TString>;
677
+ requestId: alepha349.TOptional<alepha349.TString>;
678
+ success: PgAttr<alepha349.TBoolean, typeof PG_DEFAULT>;
679
+ errorMessage: alepha349.TOptional<alepha349.TString>;
680
680
  }>>;
681
681
  }>;
682
682
  /**
683
683
  * Get a single audit entry by ID.
684
684
  */
685
685
  readonly getAudit: alepha_server0.ActionPrimitiveFn<{
686
- params: alepha381.TObject<{
687
- id: alepha381.TString;
686
+ params: alepha349.TObject<{
687
+ id: alepha349.TString;
688
688
  }>;
689
- response: alepha381.TObject<{
690
- id: PgAttr<PgAttr<alepha381.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
691
- createdAt: PgAttr<PgAttr<alepha381.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
692
- type: alepha381.TString;
693
- action: alepha381.TString;
694
- severity: PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
695
- userId: alepha381.TOptional<alepha381.TString>;
696
- userRealm: alepha381.TOptional<alepha381.TString>;
697
- userEmail: alepha381.TOptional<alepha381.TString>;
698
- resourceType: alepha381.TOptional<alepha381.TString>;
699
- resourceId: alepha381.TOptional<alepha381.TString>;
700
- description: alepha381.TOptional<alepha381.TString>;
701
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
702
- ipAddress: alepha381.TOptional<alepha381.TString>;
703
- userAgent: alepha381.TOptional<alepha381.TString>;
704
- sessionId: alepha381.TOptional<alepha381.TString>;
705
- requestId: alepha381.TOptional<alepha381.TString>;
706
- success: PgAttr<alepha381.TBoolean, typeof PG_DEFAULT>;
707
- errorMessage: alepha381.TOptional<alepha381.TString>;
689
+ response: alepha349.TObject<{
690
+ id: PgAttr<PgAttr<alepha349.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
691
+ createdAt: PgAttr<PgAttr<alepha349.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
692
+ type: alepha349.TString;
693
+ action: alepha349.TString;
694
+ severity: PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
695
+ userId: alepha349.TOptional<alepha349.TString>;
696
+ userRealm: alepha349.TOptional<alepha349.TString>;
697
+ userEmail: alepha349.TOptional<alepha349.TString>;
698
+ resourceType: alepha349.TOptional<alepha349.TString>;
699
+ resourceId: alepha349.TOptional<alepha349.TString>;
700
+ description: alepha349.TOptional<alepha349.TString>;
701
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
702
+ ipAddress: alepha349.TOptional<alepha349.TString>;
703
+ userAgent: alepha349.TOptional<alepha349.TString>;
704
+ sessionId: alepha349.TOptional<alepha349.TString>;
705
+ requestId: alepha349.TOptional<alepha349.TString>;
706
+ success: PgAttr<alepha349.TBoolean, typeof PG_DEFAULT>;
707
+ errorMessage: alepha349.TOptional<alepha349.TString>;
708
708
  }>;
709
709
  }>;
710
710
  /**
711
711
  * Create a new audit entry.
712
712
  */
713
713
  readonly createAudit: alepha_server0.ActionPrimitiveFn<{
714
- body: alepha381.TObject<{
715
- type: alepha381.TString;
716
- action: alepha381.TString;
717
- severity: alepha381.TOptional<alepha381.TUnsafe<"info" | "warning" | "critical">>;
718
- userId: alepha381.TOptional<alepha381.TString>;
719
- userRealm: alepha381.TOptional<alepha381.TString>;
720
- userEmail: alepha381.TOptional<alepha381.TString>;
721
- resourceType: alepha381.TOptional<alepha381.TString>;
722
- resourceId: alepha381.TOptional<alepha381.TString>;
723
- description: alepha381.TOptional<alepha381.TString>;
724
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
725
- ipAddress: alepha381.TOptional<alepha381.TString>;
726
- userAgent: alepha381.TOptional<alepha381.TString>;
727
- sessionId: alepha381.TOptional<alepha381.TString>;
728
- requestId: alepha381.TOptional<alepha381.TString>;
729
- success: alepha381.TOptional<alepha381.TBoolean>;
730
- errorMessage: alepha381.TOptional<alepha381.TString>;
714
+ body: alepha349.TObject<{
715
+ type: alepha349.TString;
716
+ action: alepha349.TString;
717
+ severity: alepha349.TOptional<alepha349.TUnsafe<"info" | "warning" | "critical">>;
718
+ userId: alepha349.TOptional<alepha349.TString>;
719
+ userRealm: alepha349.TOptional<alepha349.TString>;
720
+ userEmail: alepha349.TOptional<alepha349.TString>;
721
+ resourceType: alepha349.TOptional<alepha349.TString>;
722
+ resourceId: alepha349.TOptional<alepha349.TString>;
723
+ description: alepha349.TOptional<alepha349.TString>;
724
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
725
+ ipAddress: alepha349.TOptional<alepha349.TString>;
726
+ userAgent: alepha349.TOptional<alepha349.TString>;
727
+ sessionId: alepha349.TOptional<alepha349.TString>;
728
+ requestId: alepha349.TOptional<alepha349.TString>;
729
+ success: alepha349.TOptional<alepha349.TBoolean>;
730
+ errorMessage: alepha349.TOptional<alepha349.TString>;
731
731
  }>;
732
- response: alepha381.TObject<{
733
- id: PgAttr<PgAttr<alepha381.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
734
- createdAt: PgAttr<PgAttr<alepha381.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
735
- type: alepha381.TString;
736
- action: alepha381.TString;
737
- severity: PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
738
- userId: alepha381.TOptional<alepha381.TString>;
739
- userRealm: alepha381.TOptional<alepha381.TString>;
740
- userEmail: alepha381.TOptional<alepha381.TString>;
741
- resourceType: alepha381.TOptional<alepha381.TString>;
742
- resourceId: alepha381.TOptional<alepha381.TString>;
743
- description: alepha381.TOptional<alepha381.TString>;
744
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
745
- ipAddress: alepha381.TOptional<alepha381.TString>;
746
- userAgent: alepha381.TOptional<alepha381.TString>;
747
- sessionId: alepha381.TOptional<alepha381.TString>;
748
- requestId: alepha381.TOptional<alepha381.TString>;
749
- success: PgAttr<alepha381.TBoolean, typeof PG_DEFAULT>;
750
- errorMessage: alepha381.TOptional<alepha381.TString>;
732
+ response: alepha349.TObject<{
733
+ id: PgAttr<PgAttr<alepha349.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
734
+ createdAt: PgAttr<PgAttr<alepha349.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
735
+ type: alepha349.TString;
736
+ action: alepha349.TString;
737
+ severity: PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
738
+ userId: alepha349.TOptional<alepha349.TString>;
739
+ userRealm: alepha349.TOptional<alepha349.TString>;
740
+ userEmail: alepha349.TOptional<alepha349.TString>;
741
+ resourceType: alepha349.TOptional<alepha349.TString>;
742
+ resourceId: alepha349.TOptional<alepha349.TString>;
743
+ description: alepha349.TOptional<alepha349.TString>;
744
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
745
+ ipAddress: alepha349.TOptional<alepha349.TString>;
746
+ userAgent: alepha349.TOptional<alepha349.TString>;
747
+ sessionId: alepha349.TOptional<alepha349.TString>;
748
+ requestId: alepha349.TOptional<alepha349.TString>;
749
+ success: PgAttr<alepha349.TBoolean, typeof PG_DEFAULT>;
750
+ errorMessage: alepha349.TOptional<alepha349.TString>;
751
751
  }>;
752
752
  }>;
753
753
  /**
754
754
  * Get audit entries for a specific user.
755
755
  */
756
756
  readonly findByUser: alepha_server0.ActionPrimitiveFn<{
757
- params: alepha381.TObject<{
758
- userId: alepha381.TString;
757
+ params: alepha349.TObject<{
758
+ userId: alepha349.TString;
759
759
  }>;
760
- query: alepha381.TObject<{
761
- type: alepha381.TOptional<alepha381.TString>;
762
- search: alepha381.TOptional<alepha381.TString>;
763
- action: alepha381.TOptional<alepha381.TString>;
764
- severity: alepha381.TOptional<alepha381.TUnsafe<"info" | "warning" | "critical">>;
765
- sort: alepha381.TOptional<alepha381.TString>;
766
- userRealm: alepha381.TOptional<alepha381.TString>;
767
- resourceType: alepha381.TOptional<alepha381.TString>;
768
- resourceId: alepha381.TOptional<alepha381.TString>;
769
- success: alepha381.TOptional<alepha381.TBoolean>;
770
- page: alepha381.TOptional<alepha381.TInteger>;
771
- size: alepha381.TOptional<alepha381.TInteger>;
772
- from: alepha381.TOptional<alepha381.TString>;
773
- to: alepha381.TOptional<alepha381.TString>;
760
+ query: alepha349.TObject<{
761
+ page: alepha349.TOptional<alepha349.TInteger>;
762
+ type: alepha349.TOptional<alepha349.TString>;
763
+ size: alepha349.TOptional<alepha349.TInteger>;
764
+ sort: alepha349.TOptional<alepha349.TString>;
765
+ action: alepha349.TOptional<alepha349.TString>;
766
+ severity: alepha349.TOptional<alepha349.TUnsafe<"info" | "warning" | "critical">>;
767
+ userRealm: alepha349.TOptional<alepha349.TString>;
768
+ resourceType: alepha349.TOptional<alepha349.TString>;
769
+ resourceId: alepha349.TOptional<alepha349.TString>;
770
+ success: alepha349.TOptional<alepha349.TBoolean>;
771
+ from: alepha349.TOptional<alepha349.TString>;
772
+ to: alepha349.TOptional<alepha349.TString>;
773
+ search: alepha349.TOptional<alepha349.TString>;
774
774
  }>;
775
- response: alepha381.TPage<alepha381.TObject<{
776
- id: PgAttr<PgAttr<alepha381.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
777
- createdAt: PgAttr<PgAttr<alepha381.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
778
- type: alepha381.TString;
779
- action: alepha381.TString;
780
- severity: PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
781
- userId: alepha381.TOptional<alepha381.TString>;
782
- userRealm: alepha381.TOptional<alepha381.TString>;
783
- userEmail: alepha381.TOptional<alepha381.TString>;
784
- resourceType: alepha381.TOptional<alepha381.TString>;
785
- resourceId: alepha381.TOptional<alepha381.TString>;
786
- description: alepha381.TOptional<alepha381.TString>;
787
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
788
- ipAddress: alepha381.TOptional<alepha381.TString>;
789
- userAgent: alepha381.TOptional<alepha381.TString>;
790
- sessionId: alepha381.TOptional<alepha381.TString>;
791
- requestId: alepha381.TOptional<alepha381.TString>;
792
- success: PgAttr<alepha381.TBoolean, typeof PG_DEFAULT>;
793
- errorMessage: alepha381.TOptional<alepha381.TString>;
775
+ response: alepha349.TPage<alepha349.TObject<{
776
+ id: PgAttr<PgAttr<alepha349.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
777
+ createdAt: PgAttr<PgAttr<alepha349.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
778
+ type: alepha349.TString;
779
+ action: alepha349.TString;
780
+ severity: PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
781
+ userId: alepha349.TOptional<alepha349.TString>;
782
+ userRealm: alepha349.TOptional<alepha349.TString>;
783
+ userEmail: alepha349.TOptional<alepha349.TString>;
784
+ resourceType: alepha349.TOptional<alepha349.TString>;
785
+ resourceId: alepha349.TOptional<alepha349.TString>;
786
+ description: alepha349.TOptional<alepha349.TString>;
787
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
788
+ ipAddress: alepha349.TOptional<alepha349.TString>;
789
+ userAgent: alepha349.TOptional<alepha349.TString>;
790
+ sessionId: alepha349.TOptional<alepha349.TString>;
791
+ requestId: alepha349.TOptional<alepha349.TString>;
792
+ success: PgAttr<alepha349.TBoolean, typeof PG_DEFAULT>;
793
+ errorMessage: alepha349.TOptional<alepha349.TString>;
794
794
  }>>;
795
795
  }>;
796
796
  /**
797
797
  * Get audit entries for a specific resource.
798
798
  */
799
799
  readonly findByResource: alepha_server0.ActionPrimitiveFn<{
800
- params: alepha381.TObject<{
801
- resourceType: alepha381.TString;
802
- resourceId: alepha381.TString;
800
+ params: alepha349.TObject<{
801
+ resourceType: alepha349.TString;
802
+ resourceId: alepha349.TString;
803
803
  }>;
804
- query: alepha381.TObject<{
805
- type: alepha381.TOptional<alepha381.TString>;
806
- search: alepha381.TOptional<alepha381.TString>;
807
- action: alepha381.TOptional<alepha381.TString>;
808
- severity: alepha381.TOptional<alepha381.TUnsafe<"info" | "warning" | "critical">>;
809
- sort: alepha381.TOptional<alepha381.TString>;
810
- userId: alepha381.TOptional<alepha381.TString>;
811
- userRealm: alepha381.TOptional<alepha381.TString>;
812
- success: alepha381.TOptional<alepha381.TBoolean>;
813
- page: alepha381.TOptional<alepha381.TInteger>;
814
- size: alepha381.TOptional<alepha381.TInteger>;
815
- from: alepha381.TOptional<alepha381.TString>;
816
- to: alepha381.TOptional<alepha381.TString>;
804
+ query: alepha349.TObject<{
805
+ page: alepha349.TOptional<alepha349.TInteger>;
806
+ type: alepha349.TOptional<alepha349.TString>;
807
+ size: alepha349.TOptional<alepha349.TInteger>;
808
+ sort: alepha349.TOptional<alepha349.TString>;
809
+ action: alepha349.TOptional<alepha349.TString>;
810
+ severity: alepha349.TOptional<alepha349.TUnsafe<"info" | "warning" | "critical">>;
811
+ userId: alepha349.TOptional<alepha349.TString>;
812
+ userRealm: alepha349.TOptional<alepha349.TString>;
813
+ success: alepha349.TOptional<alepha349.TBoolean>;
814
+ from: alepha349.TOptional<alepha349.TString>;
815
+ to: alepha349.TOptional<alepha349.TString>;
816
+ search: alepha349.TOptional<alepha349.TString>;
817
817
  }>;
818
- response: alepha381.TPage<alepha381.TObject<{
819
- id: PgAttr<PgAttr<alepha381.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
820
- createdAt: PgAttr<PgAttr<alepha381.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
821
- type: alepha381.TString;
822
- action: alepha381.TString;
823
- severity: PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
824
- userId: alepha381.TOptional<alepha381.TString>;
825
- userRealm: alepha381.TOptional<alepha381.TString>;
826
- userEmail: alepha381.TOptional<alepha381.TString>;
827
- resourceType: alepha381.TOptional<alepha381.TString>;
828
- resourceId: alepha381.TOptional<alepha381.TString>;
829
- description: alepha381.TOptional<alepha381.TString>;
830
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
831
- ipAddress: alepha381.TOptional<alepha381.TString>;
832
- userAgent: alepha381.TOptional<alepha381.TString>;
833
- sessionId: alepha381.TOptional<alepha381.TString>;
834
- requestId: alepha381.TOptional<alepha381.TString>;
835
- success: PgAttr<alepha381.TBoolean, typeof PG_DEFAULT>;
836
- errorMessage: alepha381.TOptional<alepha381.TString>;
818
+ response: alepha349.TPage<alepha349.TObject<{
819
+ id: PgAttr<PgAttr<alepha349.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
820
+ createdAt: PgAttr<PgAttr<alepha349.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
821
+ type: alepha349.TString;
822
+ action: alepha349.TString;
823
+ severity: PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
824
+ userId: alepha349.TOptional<alepha349.TString>;
825
+ userRealm: alepha349.TOptional<alepha349.TString>;
826
+ userEmail: alepha349.TOptional<alepha349.TString>;
827
+ resourceType: alepha349.TOptional<alepha349.TString>;
828
+ resourceId: alepha349.TOptional<alepha349.TString>;
829
+ description: alepha349.TOptional<alepha349.TString>;
830
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
831
+ ipAddress: alepha349.TOptional<alepha349.TString>;
832
+ userAgent: alepha349.TOptional<alepha349.TString>;
833
+ sessionId: alepha349.TOptional<alepha349.TString>;
834
+ requestId: alepha349.TOptional<alepha349.TString>;
835
+ success: PgAttr<alepha349.TBoolean, typeof PG_DEFAULT>;
836
+ errorMessage: alepha349.TOptional<alepha349.TString>;
837
837
  }>>;
838
838
  }>;
839
839
  /**
840
840
  * Get audit statistics.
841
841
  */
842
842
  readonly getStats: alepha_server0.ActionPrimitiveFn<{
843
- query: alepha381.TObject<{
844
- from: alepha381.TOptional<alepha381.TString>;
845
- to: alepha381.TOptional<alepha381.TString>;
846
- userRealm: alepha381.TOptional<alepha381.TString>;
843
+ query: alepha349.TObject<{
844
+ from: alepha349.TOptional<alepha349.TString>;
845
+ to: alepha349.TOptional<alepha349.TString>;
846
+ userRealm: alepha349.TOptional<alepha349.TString>;
847
847
  }>;
848
- response: alepha381.TObject<{
849
- total: alepha381.TInteger;
850
- byType: alepha381.TRecord<"^.*$", alepha381.TInteger>;
851
- bySeverity: alepha381.TObject<{
852
- info: alepha381.TInteger;
853
- warning: alepha381.TInteger;
854
- critical: alepha381.TInteger;
848
+ response: alepha349.TObject<{
849
+ total: alepha349.TInteger;
850
+ byType: alepha349.TRecord<"^.*$", alepha349.TInteger>;
851
+ bySeverity: alepha349.TObject<{
852
+ info: alepha349.TInteger;
853
+ warning: alepha349.TInteger;
854
+ critical: alepha349.TInteger;
855
855
  }>;
856
- successRate: alepha381.TNumber;
857
- recentFailures: alepha381.TArray<alepha381.TObject<{
858
- id: PgAttr<PgAttr<alepha381.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
859
- createdAt: PgAttr<PgAttr<alepha381.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
860
- type: alepha381.TString;
861
- action: alepha381.TString;
862
- severity: PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
863
- userId: alepha381.TOptional<alepha381.TString>;
864
- userRealm: alepha381.TOptional<alepha381.TString>;
865
- userEmail: alepha381.TOptional<alepha381.TString>;
866
- resourceType: alepha381.TOptional<alepha381.TString>;
867
- resourceId: alepha381.TOptional<alepha381.TString>;
868
- description: alepha381.TOptional<alepha381.TString>;
869
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
870
- ipAddress: alepha381.TOptional<alepha381.TString>;
871
- userAgent: alepha381.TOptional<alepha381.TString>;
872
- sessionId: alepha381.TOptional<alepha381.TString>;
873
- requestId: alepha381.TOptional<alepha381.TString>;
874
- success: PgAttr<alepha381.TBoolean, typeof PG_DEFAULT>;
875
- errorMessage: alepha381.TOptional<alepha381.TString>;
856
+ successRate: alepha349.TNumber;
857
+ recentFailures: alepha349.TArray<alepha349.TObject<{
858
+ id: PgAttr<PgAttr<alepha349.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
859
+ createdAt: PgAttr<PgAttr<alepha349.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
860
+ type: alepha349.TString;
861
+ action: alepha349.TString;
862
+ severity: PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
863
+ userId: alepha349.TOptional<alepha349.TString>;
864
+ userRealm: alepha349.TOptional<alepha349.TString>;
865
+ userEmail: alepha349.TOptional<alepha349.TString>;
866
+ resourceType: alepha349.TOptional<alepha349.TString>;
867
+ resourceId: alepha349.TOptional<alepha349.TString>;
868
+ description: alepha349.TOptional<alepha349.TString>;
869
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
870
+ ipAddress: alepha349.TOptional<alepha349.TString>;
871
+ userAgent: alepha349.TOptional<alepha349.TString>;
872
+ sessionId: alepha349.TOptional<alepha349.TString>;
873
+ requestId: alepha349.TOptional<alepha349.TString>;
874
+ success: PgAttr<alepha349.TBoolean, typeof PG_DEFAULT>;
875
+ errorMessage: alepha349.TOptional<alepha349.TString>;
876
876
  }>>;
877
877
  }>;
878
878
  }>;
@@ -880,21 +880,21 @@ declare class AdminAuditController {
880
880
  * Get registered audit types.
881
881
  */
882
882
  readonly getTypes: alepha_server0.ActionPrimitiveFn<{
883
- response: alepha381.TArray<alepha381.TObject<{
884
- type: alepha381.TString;
885
- description: alepha381.TOptional<alepha381.TString>;
886
- actions: alepha381.TArray<alepha381.TString>;
883
+ response: alepha349.TArray<alepha349.TObject<{
884
+ type: alepha349.TString;
885
+ description: alepha349.TOptional<alepha349.TString>;
886
+ actions: alepha349.TArray<alepha349.TString>;
887
887
  }>>;
888
888
  }>;
889
889
  /**
890
890
  * Get distinct values for filters.
891
891
  */
892
892
  readonly getFilterOptions: alepha_server0.ActionPrimitiveFn<{
893
- response: alepha381.TObject<{
894
- types: alepha381.TArray<alepha381.TString>;
895
- actions: alepha381.TArray<alepha381.TString>;
896
- resourceTypes: alepha381.TArray<alepha381.TString>;
897
- userRealms: alepha381.TArray<alepha381.TString>;
893
+ response: alepha349.TObject<{
894
+ types: alepha349.TArray<alepha349.TString>;
895
+ actions: alepha349.TArray<alepha349.TString>;
896
+ resourceTypes: alepha349.TArray<alepha349.TString>;
897
+ userRealms: alepha349.TArray<alepha349.TString>;
898
898
  }>;
899
899
  }>;
900
900
  }
@@ -1016,25 +1016,25 @@ declare const $audit: {
1016
1016
  /**
1017
1017
  * Resource schema for audit log responses.
1018
1018
  */
1019
- declare const auditResourceSchema: alepha381.TObject<{
1020
- id: PgAttr<PgAttr<alepha381.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1021
- createdAt: PgAttr<PgAttr<alepha381.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1022
- type: alepha381.TString;
1023
- action: alepha381.TString;
1024
- severity: PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
1025
- userId: alepha381.TOptional<alepha381.TString>;
1026
- userRealm: alepha381.TOptional<alepha381.TString>;
1027
- userEmail: alepha381.TOptional<alepha381.TString>;
1028
- resourceType: alepha381.TOptional<alepha381.TString>;
1029
- resourceId: alepha381.TOptional<alepha381.TString>;
1030
- description: alepha381.TOptional<alepha381.TString>;
1031
- metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
1032
- ipAddress: alepha381.TOptional<alepha381.TString>;
1033
- userAgent: alepha381.TOptional<alepha381.TString>;
1034
- sessionId: alepha381.TOptional<alepha381.TString>;
1035
- requestId: alepha381.TOptional<alepha381.TString>;
1036
- success: PgAttr<alepha381.TBoolean, typeof PG_DEFAULT>;
1037
- errorMessage: alepha381.TOptional<alepha381.TString>;
1019
+ declare const auditResourceSchema: alepha349.TObject<{
1020
+ id: PgAttr<PgAttr<alepha349.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1021
+ createdAt: PgAttr<PgAttr<alepha349.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1022
+ type: alepha349.TString;
1023
+ action: alepha349.TString;
1024
+ severity: PgAttr<alepha349.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
1025
+ userId: alepha349.TOptional<alepha349.TString>;
1026
+ userRealm: alepha349.TOptional<alepha349.TString>;
1027
+ userEmail: alepha349.TOptional<alepha349.TString>;
1028
+ resourceType: alepha349.TOptional<alepha349.TString>;
1029
+ resourceId: alepha349.TOptional<alepha349.TString>;
1030
+ description: alepha349.TOptional<alepha349.TString>;
1031
+ metadata: alepha349.TOptional<alepha349.TRecord<string, alepha349.TAny>>;
1032
+ ipAddress: alepha349.TOptional<alepha349.TString>;
1033
+ userAgent: alepha349.TOptional<alepha349.TString>;
1034
+ sessionId: alepha349.TOptional<alepha349.TString>;
1035
+ requestId: alepha349.TOptional<alepha349.TString>;
1036
+ success: PgAttr<alepha349.TBoolean, typeof PG_DEFAULT>;
1037
+ errorMessage: alepha349.TOptional<alepha349.TString>;
1038
1038
  }>;
1039
1039
  type AuditResource = Static<typeof auditResourceSchema>;
1040
1040
  //#endregion
@@ -1054,7 +1054,7 @@ type AuditResource = Static<typeof auditResourceSchema>;
1054
1054
  *
1055
1055
  * @module alepha.api.audits
1056
1056
  */
1057
- declare const AlephaApiAudits: alepha381.Service<alepha381.Module>;
1057
+ declare const AlephaApiAudits: alepha349.Service<alepha349.Module>;
1058
1058
  //#endregion
1059
1059
  export { $audit, AdminAuditController, AlephaApiAudits, AuditEntity, AuditLogOptions, AuditPrimitive, AuditPrimitiveOptions, AuditQuery, AuditResource, AuditService, AuditSeverity, AuditStats, AuditTypeDefinition, CreateAudit, auditEntityInsertSchema, auditEntitySchema, auditQuerySchema, auditResourceSchema, auditSeveritySchema, audits, createAuditSchema };
1060
1060
  //# sourceMappingURL=index.d.ts.map