alepha 0.14.3 → 0.14.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 (114) hide show
  1. package/README.md +1 -1
  2. package/dist/api/audits/index.d.ts +338 -417
  3. package/dist/api/audits/index.d.ts.map +1 -1
  4. package/dist/api/files/index.d.ts +1 -80
  5. package/dist/api/files/index.d.ts.map +1 -1
  6. package/dist/api/jobs/index.d.ts +156 -235
  7. package/dist/api/jobs/index.d.ts.map +1 -1
  8. package/dist/api/notifications/index.d.ts +170 -249
  9. package/dist/api/notifications/index.d.ts.map +1 -1
  10. package/dist/api/parameters/index.d.ts +266 -345
  11. package/dist/api/parameters/index.d.ts.map +1 -1
  12. package/dist/api/users/index.d.ts +755 -834
  13. package/dist/api/users/index.d.ts.map +1 -1
  14. package/dist/api/verifications/index.d.ts +125 -125
  15. package/dist/api/verifications/index.d.ts.map +1 -1
  16. package/dist/cli/index.d.ts +116 -20
  17. package/dist/cli/index.d.ts.map +1 -1
  18. package/dist/cli/index.js +212 -124
  19. package/dist/cli/index.js.map +1 -1
  20. package/dist/command/index.d.ts +6 -11
  21. package/dist/command/index.d.ts.map +1 -1
  22. package/dist/command/index.js +2 -2
  23. package/dist/command/index.js.map +1 -1
  24. package/dist/core/index.browser.js +26 -4
  25. package/dist/core/index.browser.js.map +1 -1
  26. package/dist/core/index.d.ts +16 -1
  27. package/dist/core/index.d.ts.map +1 -1
  28. package/dist/core/index.js +26 -4
  29. package/dist/core/index.js.map +1 -1
  30. package/dist/core/index.native.js +26 -4
  31. package/dist/core/index.native.js.map +1 -1
  32. package/dist/logger/index.d.ts +1 -1
  33. package/dist/logger/index.d.ts.map +1 -1
  34. package/dist/logger/index.js +12 -2
  35. package/dist/logger/index.js.map +1 -1
  36. package/dist/mcp/index.d.ts.map +1 -1
  37. package/dist/mcp/index.js +1 -1
  38. package/dist/mcp/index.js.map +1 -1
  39. package/dist/orm/index.d.ts +37 -173
  40. package/dist/orm/index.d.ts.map +1 -1
  41. package/dist/orm/index.js +193 -422
  42. package/dist/orm/index.js.map +1 -1
  43. package/dist/server/auth/index.d.ts +167 -167
  44. package/dist/server/cache/index.d.ts +12 -0
  45. package/dist/server/cache/index.d.ts.map +1 -1
  46. package/dist/server/cache/index.js +55 -2
  47. package/dist/server/cache/index.js.map +1 -1
  48. package/dist/server/compress/index.d.ts +6 -0
  49. package/dist/server/compress/index.d.ts.map +1 -1
  50. package/dist/server/compress/index.js +36 -1
  51. package/dist/server/compress/index.js.map +1 -1
  52. package/dist/server/core/index.browser.js +2 -2
  53. package/dist/server/core/index.browser.js.map +1 -1
  54. package/dist/server/core/index.d.ts +10 -10
  55. package/dist/server/core/index.d.ts.map +1 -1
  56. package/dist/server/core/index.js +6 -3
  57. package/dist/server/core/index.js.map +1 -1
  58. package/dist/server/links/index.d.ts +39 -39
  59. package/dist/server/links/index.d.ts.map +1 -1
  60. package/dist/server/security/index.d.ts +9 -9
  61. package/dist/server/static/index.d.ts.map +1 -1
  62. package/dist/server/static/index.js +4 -0
  63. package/dist/server/static/index.js.map +1 -1
  64. package/dist/server/swagger/index.d.ts.map +1 -1
  65. package/dist/server/swagger/index.js +2 -3
  66. package/dist/server/swagger/index.js.map +1 -1
  67. package/dist/vite/index.d.ts +101 -106
  68. package/dist/vite/index.d.ts.map +1 -1
  69. package/dist/vite/index.js +571 -508
  70. package/dist/vite/index.js.map +1 -1
  71. package/package.json +1 -1
  72. package/src/cli/apps/AlephaCli.ts +0 -2
  73. package/src/cli/atoms/buildOptions.ts +88 -0
  74. package/src/cli/commands/build.ts +32 -69
  75. package/src/cli/commands/db.ts +0 -4
  76. package/src/cli/commands/dev.ts +16 -4
  77. package/src/cli/commands/gen/env.ts +53 -0
  78. package/src/cli/commands/gen/openapi.ts +1 -1
  79. package/src/cli/commands/gen/resource.ts +15 -0
  80. package/src/cli/commands/gen.ts +7 -1
  81. package/src/cli/commands/init.ts +0 -1
  82. package/src/cli/commands/test.ts +0 -1
  83. package/src/cli/commands/verify.ts +1 -1
  84. package/src/cli/defineConfig.ts +49 -7
  85. package/src/cli/index.ts +0 -1
  86. package/src/cli/services/AlephaCliUtils.ts +36 -25
  87. package/src/command/helpers/Runner.spec.ts +2 -2
  88. package/src/command/helpers/Runner.ts +1 -1
  89. package/src/command/primitives/$command.ts +0 -6
  90. package/src/command/providers/CliProvider.ts +1 -3
  91. package/src/core/Alepha.ts +42 -0
  92. package/src/logger/index.ts +15 -3
  93. package/src/mcp/transports/StdioMcpTransport.ts +1 -1
  94. package/src/orm/index.ts +2 -8
  95. package/src/queue/core/providers/WorkerProvider.spec.ts +48 -32
  96. package/src/server/cache/providers/ServerCacheProvider.spec.ts +183 -0
  97. package/src/server/cache/providers/ServerCacheProvider.ts +94 -9
  98. package/src/server/compress/providers/ServerCompressProvider.ts +61 -2
  99. package/src/server/core/helpers/ServerReply.ts +2 -2
  100. package/src/server/core/providers/ServerProvider.ts +11 -1
  101. package/src/server/static/providers/ServerStaticProvider.ts +10 -0
  102. package/src/server/swagger/providers/ServerSwaggerProvider.ts +5 -8
  103. package/src/vite/helpers/importViteReact.ts +13 -0
  104. package/src/vite/index.ts +1 -21
  105. package/src/vite/plugins/viteAlephaDev.ts +16 -1
  106. package/src/vite/plugins/viteAlephaSsrPreload.ts +222 -0
  107. package/src/vite/tasks/buildClient.ts +11 -0
  108. package/src/vite/tasks/buildServer.ts +47 -3
  109. package/src/vite/tasks/devServer.ts +69 -0
  110. package/src/vite/tasks/index.ts +2 -1
  111. package/src/cli/assets/viteConfigTs.ts +0 -14
  112. package/src/cli/commands/run.ts +0 -24
  113. package/src/vite/plugins/viteAlepha.ts +0 -37
  114. package/src/vite/plugins/viteAlephaBuild.ts +0 -281
@@ -1,21 +1,17 @@
1
- import * as alepha579 from "alepha";
1
+ import * as alepha587 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_orm0 from "alepha/orm";
5
+ import * as alepha_orm12 from "alepha/orm";
6
6
  import { Page } from "alepha/orm";
7
7
  import * as alepha_logger0 from "alepha/logger";
8
- import "bun";
9
- import "bun:sqlite";
10
- import "drizzle-orm/bun-sql";
11
- import "drizzle-orm/bun-sqlite";
12
8
  import "drizzle-orm/d1";
13
9
  import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
14
10
  import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
15
11
  import "alepha/datetime";
16
12
  import "alepha/retry";
17
- import "alepha/lock";
18
13
  import "drizzle-orm/sqlite-core";
14
+ import "alepha/lock";
19
15
  import "drizzle-orm/postgres-js";
20
16
  import "postgres";
21
17
 
@@ -235,86 +231,11 @@ interface PgRefOptions {
235
231
  */
236
232
  type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K] };
237
233
  //#endregion
238
- //#region ../../src/orm/providers/drivers/BunPostgresProvider.d.ts
239
- declare module "alepha" {
240
- interface Env extends Partial<Static<typeof envSchema$1>> {}
241
- }
242
- declare const envSchema$1: alepha579.TObject<{
243
- /**
244
- * Main configuration for database connection.
245
- * Accept a string in the format of a Postgres connection URL.
246
- * Example: postgres://user:password@localhost:5432/database
247
- * or
248
- * Example: postgres://user:password@localhost:5432/database?sslmode=require
249
- */
250
- DATABASE_URL: alepha579.TOptional<alepha579.TString>;
251
- /**
252
- * In addition to the DATABASE_URL, you can specify the postgres schema name.
253
- */
254
- POSTGRES_SCHEMA: alepha579.TOptional<alepha579.TString>;
255
- }>;
256
- /**
257
- * Bun PostgreSQL provider using Drizzle ORM with Bun's native SQL client.
258
- *
259
- * This provider uses Bun's built-in SQL class for PostgreSQL connections,
260
- * which provides excellent performance on the Bun runtime.
261
- *
262
- * @example
263
- * ```ts
264
- * // Set DATABASE_URL environment variable
265
- * // DATABASE_URL=postgres://user:password@localhost:5432/database
266
- *
267
- * // Or configure programmatically
268
- * alepha.with({
269
- * provide: DatabaseProvider,
270
- * use: BunPostgresProvider,
271
- * });
272
- * ```
273
- */
274
- //#endregion
275
- //#region ../../src/orm/providers/drivers/BunSqliteProvider.d.ts
276
- /**
277
- * Configuration options for the Bun SQLite database provider.
278
- */
279
- declare const bunSqliteOptions: alepha579.Atom<alepha579.TObject<{
280
- path: alepha579.TOptional<alepha579.TString>;
281
- }>, "alepha.postgres.bun-sqlite.options">;
282
- type BunSqliteProviderOptions = Static<typeof bunSqliteOptions.schema>;
283
- declare module "alepha" {
284
- interface State {
285
- [bunSqliteOptions.key]: BunSqliteProviderOptions;
286
- }
287
- }
288
- /**
289
- * Bun SQLite provider using Drizzle ORM with Bun's native SQLite client.
290
- *
291
- * This provider uses Bun's built-in `bun:sqlite` for SQLite connections,
292
- * which provides excellent performance on the Bun runtime.
293
- *
294
- * @example
295
- * ```ts
296
- * // Set DATABASE_URL environment variable
297
- * // DATABASE_URL=sqlite://./my-database.db
298
- *
299
- * // Or configure programmatically
300
- * alepha.with({
301
- * provide: DatabaseProvider,
302
- * use: BunSqliteProvider,
303
- * });
304
- *
305
- * // Or use options atom
306
- * alepha.store.mut(bunSqliteOptions, (old) => ({
307
- * ...old,
308
- * path: ":memory:",
309
- * }));
310
- * ```
311
- */
312
- //#endregion
313
234
  //#region ../../src/orm/providers/drivers/NodePostgresProvider.d.ts
314
235
  declare module "alepha" {
315
236
  interface Env extends Partial<Static<typeof envSchema>> {}
316
237
  }
317
- declare const envSchema: alepha579.TObject<{
238
+ declare const envSchema: alepha587.TObject<{
318
239
  /**
319
240
  * Main configuration for database connection.
320
241
  * Accept a string in the format of a Postgres connection URL.
@@ -322,21 +243,21 @@ declare const envSchema: alepha579.TObject<{
322
243
  * or
323
244
  * Example: postgres://user:password@localhost:5432/database?sslmode=require
324
245
  */
325
- DATABASE_URL: alepha579.TOptional<alepha579.TString>;
246
+ DATABASE_URL: alepha587.TOptional<alepha587.TString>;
326
247
  /**
327
248
  * In addition to the DATABASE_URL, you can specify the postgres schema name.
328
249
  *
329
250
  * It will monkey patch drizzle tables.
330
251
  */
331
- POSTGRES_SCHEMA: alepha579.TOptional<alepha579.TString>;
252
+ POSTGRES_SCHEMA: alepha587.TOptional<alepha587.TString>;
332
253
  }>;
333
254
  //#endregion
334
255
  //#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
335
256
  /**
336
257
  * Configuration options for the Node.js SQLite database provider.
337
258
  */
338
- declare const nodeSqliteOptions: alepha579.Atom<alepha579.TObject<{
339
- path: alepha579.TOptional<alepha579.TString>;
259
+ declare const nodeSqliteOptions: alepha587.Atom<alepha587.TObject<{
260
+ path: alepha587.TOptional<alepha587.TString>;
340
261
  }>, "alepha.postgres.node-sqlite.options">;
341
262
  type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
342
263
  declare module "alepha" {
@@ -423,7 +344,7 @@ declare module "alepha" {
423
344
  /**
424
345
  * Audit severity levels for categorizing events.
425
346
  */
426
- declare const auditSeveritySchema: alepha579.TUnsafe<"info" | "warning" | "critical">;
347
+ declare const auditSeveritySchema: alepha587.TUnsafe<"info" | "warning" | "critical">;
427
348
  type AuditSeverity = Static<typeof auditSeveritySchema>;
428
349
  /**
429
350
  * Audit log entity for tracking important system events.
@@ -434,212 +355,212 @@ type AuditSeverity = Static<typeof auditSeveritySchema>;
434
355
  * - When it happened (createdAt)
435
356
  * - Context and details (metadata, ipAddress, userAgent)
436
357
  */
437
- declare const audits: alepha_orm0.EntityPrimitive<alepha579.TObject<{
438
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha579.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
439
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha579.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
358
+ declare const audits: alepha_orm12.EntityPrimitive<alepha587.TObject<{
359
+ id: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha587.TString, typeof alepha_orm12.PG_PRIMARY_KEY>, typeof alepha_orm12.PG_DEFAULT>;
360
+ createdAt: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha587.TString, typeof alepha_orm12.PG_CREATED_AT>, typeof alepha_orm12.PG_DEFAULT>;
440
361
  /**
441
362
  * Audit event type (e.g., "auth", "user", "payment", "system").
442
363
  * Used for categorizing and filtering audit events.
443
364
  */
444
- type: alepha579.TString;
365
+ type: alepha587.TString;
445
366
  /**
446
367
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
447
368
  */
448
- action: alepha579.TString;
369
+ action: alepha587.TString;
449
370
  /**
450
371
  * Severity level of the event.
451
372
  */
452
- severity: alepha_orm0.PgAttr<alepha579.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm0.PG_DEFAULT>;
373
+ severity: alepha_orm12.PgAttr<alepha587.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm12.PG_DEFAULT>;
453
374
  /**
454
375
  * User ID who performed the action (null for system events).
455
376
  */
456
- userId: alepha579.TOptional<alepha579.TString>;
377
+ userId: alepha587.TOptional<alepha587.TString>;
457
378
  /**
458
379
  * User realm for multi-tenant support.
459
380
  */
460
- userRealm: alepha579.TOptional<alepha579.TString>;
381
+ userRealm: alepha587.TOptional<alepha587.TString>;
461
382
  /**
462
383
  * User email at the time of the event (denormalized for history).
463
384
  */
464
- userEmail: alepha579.TOptional<alepha579.TString>;
385
+ userEmail: alepha587.TOptional<alepha587.TString>;
465
386
  /**
466
387
  * Resource type affected (e.g., "user", "order", "file").
467
388
  */
468
- resourceType: alepha579.TOptional<alepha579.TString>;
389
+ resourceType: alepha587.TOptional<alepha587.TString>;
469
390
  /**
470
391
  * Resource ID affected.
471
392
  */
472
- resourceId: alepha579.TOptional<alepha579.TString>;
393
+ resourceId: alepha587.TOptional<alepha587.TString>;
473
394
  /**
474
395
  * Human-readable description of the event.
475
396
  */
476
- description: alepha579.TOptional<alepha579.TString>;
397
+ description: alepha587.TOptional<alepha587.TString>;
477
398
  /**
478
399
  * Additional metadata/context as JSON.
479
400
  */
480
- metadata: alepha579.TOptional<alepha579.TRecord<string, alepha579.TAny>>;
401
+ metadata: alepha587.TOptional<alepha587.TRecord<string, alepha587.TAny>>;
481
402
  /**
482
403
  * Client IP address.
483
404
  */
484
- ipAddress: alepha579.TOptional<alepha579.TString>;
405
+ ipAddress: alepha587.TOptional<alepha587.TString>;
485
406
  /**
486
407
  * Client user agent.
487
408
  */
488
- userAgent: alepha579.TOptional<alepha579.TString>;
409
+ userAgent: alepha587.TOptional<alepha587.TString>;
489
410
  /**
490
411
  * Session ID if applicable.
491
412
  */
492
- sessionId: alepha579.TOptional<alepha579.TString>;
413
+ sessionId: alepha587.TOptional<alepha587.TString>;
493
414
  /**
494
415
  * Request ID for correlation.
495
416
  */
496
- requestId: alepha579.TOptional<alepha579.TString>;
417
+ requestId: alepha587.TOptional<alepha587.TString>;
497
418
  /**
498
419
  * Whether the action was successful.
499
420
  */
500
- success: alepha_orm0.PgAttr<alepha579.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
421
+ success: alepha_orm12.PgAttr<alepha587.TBoolean, typeof alepha_orm12.PG_DEFAULT>;
501
422
  /**
502
423
  * Error message if the action failed.
503
424
  */
504
- errorMessage: alepha579.TOptional<alepha579.TString>;
425
+ errorMessage: alepha587.TOptional<alepha587.TString>;
505
426
  }>>;
506
- declare const auditEntitySchema: alepha579.TObject<{
507
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha579.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
508
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha579.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
427
+ declare const auditEntitySchema: alepha587.TObject<{
428
+ id: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha587.TString, typeof alepha_orm12.PG_PRIMARY_KEY>, typeof alepha_orm12.PG_DEFAULT>;
429
+ createdAt: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha587.TString, typeof alepha_orm12.PG_CREATED_AT>, typeof alepha_orm12.PG_DEFAULT>;
509
430
  /**
510
431
  * Audit event type (e.g., "auth", "user", "payment", "system").
511
432
  * Used for categorizing and filtering audit events.
512
433
  */
513
- type: alepha579.TString;
434
+ type: alepha587.TString;
514
435
  /**
515
436
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
516
437
  */
517
- action: alepha579.TString;
438
+ action: alepha587.TString;
518
439
  /**
519
440
  * Severity level of the event.
520
441
  */
521
- severity: alepha_orm0.PgAttr<alepha579.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm0.PG_DEFAULT>;
442
+ severity: alepha_orm12.PgAttr<alepha587.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm12.PG_DEFAULT>;
522
443
  /**
523
444
  * User ID who performed the action (null for system events).
524
445
  */
525
- userId: alepha579.TOptional<alepha579.TString>;
446
+ userId: alepha587.TOptional<alepha587.TString>;
526
447
  /**
527
448
  * User realm for multi-tenant support.
528
449
  */
529
- userRealm: alepha579.TOptional<alepha579.TString>;
450
+ userRealm: alepha587.TOptional<alepha587.TString>;
530
451
  /**
531
452
  * User email at the time of the event (denormalized for history).
532
453
  */
533
- userEmail: alepha579.TOptional<alepha579.TString>;
454
+ userEmail: alepha587.TOptional<alepha587.TString>;
534
455
  /**
535
456
  * Resource type affected (e.g., "user", "order", "file").
536
457
  */
537
- resourceType: alepha579.TOptional<alepha579.TString>;
458
+ resourceType: alepha587.TOptional<alepha587.TString>;
538
459
  /**
539
460
  * Resource ID affected.
540
461
  */
541
- resourceId: alepha579.TOptional<alepha579.TString>;
462
+ resourceId: alepha587.TOptional<alepha587.TString>;
542
463
  /**
543
464
  * Human-readable description of the event.
544
465
  */
545
- description: alepha579.TOptional<alepha579.TString>;
466
+ description: alepha587.TOptional<alepha587.TString>;
546
467
  /**
547
468
  * Additional metadata/context as JSON.
548
469
  */
549
- metadata: alepha579.TOptional<alepha579.TRecord<string, alepha579.TAny>>;
470
+ metadata: alepha587.TOptional<alepha587.TRecord<string, alepha587.TAny>>;
550
471
  /**
551
472
  * Client IP address.
552
473
  */
553
- ipAddress: alepha579.TOptional<alepha579.TString>;
474
+ ipAddress: alepha587.TOptional<alepha587.TString>;
554
475
  /**
555
476
  * Client user agent.
556
477
  */
557
- userAgent: alepha579.TOptional<alepha579.TString>;
478
+ userAgent: alepha587.TOptional<alepha587.TString>;
558
479
  /**
559
480
  * Session ID if applicable.
560
481
  */
561
- sessionId: alepha579.TOptional<alepha579.TString>;
482
+ sessionId: alepha587.TOptional<alepha587.TString>;
562
483
  /**
563
484
  * Request ID for correlation.
564
485
  */
565
- requestId: alepha579.TOptional<alepha579.TString>;
486
+ requestId: alepha587.TOptional<alepha587.TString>;
566
487
  /**
567
488
  * Whether the action was successful.
568
489
  */
569
- success: alepha_orm0.PgAttr<alepha579.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
490
+ success: alepha_orm12.PgAttr<alepha587.TBoolean, typeof alepha_orm12.PG_DEFAULT>;
570
491
  /**
571
492
  * Error message if the action failed.
572
493
  */
573
- errorMessage: alepha579.TOptional<alepha579.TString>;
494
+ errorMessage: alepha587.TOptional<alepha587.TString>;
574
495
  }>;
575
- declare const auditEntityInsertSchema: alepha_orm0.TObjectInsert<alepha579.TObject<{
576
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha579.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
577
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha579.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
496
+ declare const auditEntityInsertSchema: alepha_orm12.TObjectInsert<alepha587.TObject<{
497
+ id: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha587.TString, typeof alepha_orm12.PG_PRIMARY_KEY>, typeof alepha_orm12.PG_DEFAULT>;
498
+ createdAt: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha587.TString, typeof alepha_orm12.PG_CREATED_AT>, typeof alepha_orm12.PG_DEFAULT>;
578
499
  /**
579
500
  * Audit event type (e.g., "auth", "user", "payment", "system").
580
501
  * Used for categorizing and filtering audit events.
581
502
  */
582
- type: alepha579.TString;
503
+ type: alepha587.TString;
583
504
  /**
584
505
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
585
506
  */
586
- action: alepha579.TString;
507
+ action: alepha587.TString;
587
508
  /**
588
509
  * Severity level of the event.
589
510
  */
590
- severity: alepha_orm0.PgAttr<alepha579.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm0.PG_DEFAULT>;
511
+ severity: alepha_orm12.PgAttr<alepha587.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm12.PG_DEFAULT>;
591
512
  /**
592
513
  * User ID who performed the action (null for system events).
593
514
  */
594
- userId: alepha579.TOptional<alepha579.TString>;
515
+ userId: alepha587.TOptional<alepha587.TString>;
595
516
  /**
596
517
  * User realm for multi-tenant support.
597
518
  */
598
- userRealm: alepha579.TOptional<alepha579.TString>;
519
+ userRealm: alepha587.TOptional<alepha587.TString>;
599
520
  /**
600
521
  * User email at the time of the event (denormalized for history).
601
522
  */
602
- userEmail: alepha579.TOptional<alepha579.TString>;
523
+ userEmail: alepha587.TOptional<alepha587.TString>;
603
524
  /**
604
525
  * Resource type affected (e.g., "user", "order", "file").
605
526
  */
606
- resourceType: alepha579.TOptional<alepha579.TString>;
527
+ resourceType: alepha587.TOptional<alepha587.TString>;
607
528
  /**
608
529
  * Resource ID affected.
609
530
  */
610
- resourceId: alepha579.TOptional<alepha579.TString>;
531
+ resourceId: alepha587.TOptional<alepha587.TString>;
611
532
  /**
612
533
  * Human-readable description of the event.
613
534
  */
614
- description: alepha579.TOptional<alepha579.TString>;
535
+ description: alepha587.TOptional<alepha587.TString>;
615
536
  /**
616
537
  * Additional metadata/context as JSON.
617
538
  */
618
- metadata: alepha579.TOptional<alepha579.TRecord<string, alepha579.TAny>>;
539
+ metadata: alepha587.TOptional<alepha587.TRecord<string, alepha587.TAny>>;
619
540
  /**
620
541
  * Client IP address.
621
542
  */
622
- ipAddress: alepha579.TOptional<alepha579.TString>;
543
+ ipAddress: alepha587.TOptional<alepha587.TString>;
623
544
  /**
624
545
  * Client user agent.
625
546
  */
626
- userAgent: alepha579.TOptional<alepha579.TString>;
547
+ userAgent: alepha587.TOptional<alepha587.TString>;
627
548
  /**
628
549
  * Session ID if applicable.
629
550
  */
630
- sessionId: alepha579.TOptional<alepha579.TString>;
551
+ sessionId: alepha587.TOptional<alepha587.TString>;
631
552
  /**
632
553
  * Request ID for correlation.
633
554
  */
634
- requestId: alepha579.TOptional<alepha579.TString>;
555
+ requestId: alepha587.TOptional<alepha587.TString>;
635
556
  /**
636
557
  * Whether the action was successful.
637
558
  */
638
- success: alepha_orm0.PgAttr<alepha579.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
559
+ success: alepha_orm12.PgAttr<alepha587.TBoolean, typeof alepha_orm12.PG_DEFAULT>;
639
560
  /**
640
561
  * Error message if the action failed.
641
562
  */
642
- errorMessage: alepha579.TOptional<alepha579.TString>;
563
+ errorMessage: alepha587.TOptional<alepha587.TString>;
643
564
  }>>;
644
565
  type AuditEntity = Static<typeof audits.schema>;
645
566
  //#endregion
@@ -647,21 +568,21 @@ type AuditEntity = Static<typeof audits.schema>;
647
568
  /**
648
569
  * Query schema for searching and filtering audit logs.
649
570
  */
650
- declare const auditQuerySchema: alepha579.TObject<{
651
- page: alepha579.TOptional<alepha579.TInteger>;
652
- size: alepha579.TOptional<alepha579.TInteger>;
653
- sort: alepha579.TOptional<alepha579.TString>;
654
- type: alepha579.TOptional<alepha579.TString>;
655
- action: alepha579.TOptional<alepha579.TString>;
656
- severity: alepha579.TOptional<alepha579.TUnsafe<"info" | "warning" | "critical">>;
657
- userId: alepha579.TOptional<alepha579.TString>;
658
- userRealm: alepha579.TOptional<alepha579.TString>;
659
- resourceType: alepha579.TOptional<alepha579.TString>;
660
- resourceId: alepha579.TOptional<alepha579.TString>;
661
- success: alepha579.TOptional<alepha579.TBoolean>;
662
- from: alepha579.TOptional<alepha579.TString>;
663
- to: alepha579.TOptional<alepha579.TString>;
664
- search: alepha579.TOptional<alepha579.TString>;
571
+ declare const auditQuerySchema: alepha587.TObject<{
572
+ page: alepha587.TOptional<alepha587.TInteger>;
573
+ size: alepha587.TOptional<alepha587.TInteger>;
574
+ sort: alepha587.TOptional<alepha587.TString>;
575
+ type: alepha587.TOptional<alepha587.TString>;
576
+ action: alepha587.TOptional<alepha587.TString>;
577
+ severity: alepha587.TOptional<alepha587.TUnsafe<"info" | "warning" | "critical">>;
578
+ userId: alepha587.TOptional<alepha587.TString>;
579
+ userRealm: alepha587.TOptional<alepha587.TString>;
580
+ resourceType: alepha587.TOptional<alepha587.TString>;
581
+ resourceId: alepha587.TOptional<alepha587.TString>;
582
+ success: alepha587.TOptional<alepha587.TBoolean>;
583
+ from: alepha587.TOptional<alepha587.TString>;
584
+ to: alepha587.TOptional<alepha587.TString>;
585
+ search: alepha587.TOptional<alepha587.TString>;
665
586
  }>;
666
587
  type AuditQuery = Static<typeof auditQuerySchema>;
667
588
  //#endregion
@@ -669,23 +590,23 @@ type AuditQuery = Static<typeof auditQuerySchema>;
669
590
  /**
670
591
  * Schema for creating a new audit log entry.
671
592
  */
672
- declare const createAuditSchema: alepha579.TObject<{
673
- type: alepha579.TString;
674
- action: alepha579.TString;
675
- severity: alepha579.TOptional<alepha579.TUnsafe<"info" | "warning" | "critical">>;
676
- userId: alepha579.TOptional<alepha579.TString>;
677
- userRealm: alepha579.TOptional<alepha579.TString>;
678
- userEmail: alepha579.TOptional<alepha579.TString>;
679
- resourceType: alepha579.TOptional<alepha579.TString>;
680
- resourceId: alepha579.TOptional<alepha579.TString>;
681
- description: alepha579.TOptional<alepha579.TString>;
682
- metadata: alepha579.TOptional<alepha579.TRecord<string, alepha579.TAny>>;
683
- ipAddress: alepha579.TOptional<alepha579.TString>;
684
- userAgent: alepha579.TOptional<alepha579.TString>;
685
- sessionId: alepha579.TOptional<alepha579.TString>;
686
- requestId: alepha579.TOptional<alepha579.TString>;
687
- success: alepha579.TOptional<alepha579.TBoolean>;
688
- errorMessage: alepha579.TOptional<alepha579.TString>;
593
+ declare const createAuditSchema: alepha587.TObject<{
594
+ type: alepha587.TString;
595
+ action: alepha587.TString;
596
+ severity: alepha587.TOptional<alepha587.TUnsafe<"info" | "warning" | "critical">>;
597
+ userId: alepha587.TOptional<alepha587.TString>;
598
+ userRealm: alepha587.TOptional<alepha587.TString>;
599
+ userEmail: alepha587.TOptional<alepha587.TString>;
600
+ resourceType: alepha587.TOptional<alepha587.TString>;
601
+ resourceId: alepha587.TOptional<alepha587.TString>;
602
+ description: alepha587.TOptional<alepha587.TString>;
603
+ metadata: alepha587.TOptional<alepha587.TRecord<string, alepha587.TAny>>;
604
+ ipAddress: alepha587.TOptional<alepha587.TString>;
605
+ userAgent: alepha587.TOptional<alepha587.TString>;
606
+ sessionId: alepha587.TOptional<alepha587.TString>;
607
+ requestId: alepha587.TOptional<alepha587.TString>;
608
+ success: alepha587.TOptional<alepha587.TBoolean>;
609
+ errorMessage: alepha587.TOptional<alepha587.TString>;
689
610
  }>;
690
611
  type CreateAudit = Static<typeof createAuditSchema>;
691
612
  //#endregion
@@ -710,25 +631,25 @@ interface AuditTypeDefinition {
710
631
  declare class AuditService {
711
632
  protected readonly alepha: Alepha;
712
633
  protected readonly log: alepha_logger0.Logger;
713
- protected readonly repo: alepha_orm0.Repository<alepha579.TObject<{
714
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha579.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
715
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha579.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
716
- type: alepha579.TString;
717
- action: alepha579.TString;
718
- severity: alepha_orm0.PgAttr<alepha579.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm0.PG_DEFAULT>;
719
- userId: alepha579.TOptional<alepha579.TString>;
720
- userRealm: alepha579.TOptional<alepha579.TString>;
721
- userEmail: alepha579.TOptional<alepha579.TString>;
722
- resourceType: alepha579.TOptional<alepha579.TString>;
723
- resourceId: alepha579.TOptional<alepha579.TString>;
724
- description: alepha579.TOptional<alepha579.TString>;
725
- metadata: alepha579.TOptional<alepha579.TRecord<string, alepha579.TAny>>;
726
- ipAddress: alepha579.TOptional<alepha579.TString>;
727
- userAgent: alepha579.TOptional<alepha579.TString>;
728
- sessionId: alepha579.TOptional<alepha579.TString>;
729
- requestId: alepha579.TOptional<alepha579.TString>;
730
- success: alepha_orm0.PgAttr<alepha579.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
731
- errorMessage: alepha579.TOptional<alepha579.TString>;
634
+ protected readonly repo: alepha_orm12.Repository<alepha587.TObject<{
635
+ id: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha587.TString, typeof alepha_orm12.PG_PRIMARY_KEY>, typeof alepha_orm12.PG_DEFAULT>;
636
+ createdAt: alepha_orm12.PgAttr<alepha_orm12.PgAttr<alepha587.TString, typeof alepha_orm12.PG_CREATED_AT>, typeof alepha_orm12.PG_DEFAULT>;
637
+ type: alepha587.TString;
638
+ action: alepha587.TString;
639
+ severity: alepha_orm12.PgAttr<alepha587.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm12.PG_DEFAULT>;
640
+ userId: alepha587.TOptional<alepha587.TString>;
641
+ userRealm: alepha587.TOptional<alepha587.TString>;
642
+ userEmail: alepha587.TOptional<alepha587.TString>;
643
+ resourceType: alepha587.TOptional<alepha587.TString>;
644
+ resourceId: alepha587.TOptional<alepha587.TString>;
645
+ description: alepha587.TOptional<alepha587.TString>;
646
+ metadata: alepha587.TOptional<alepha587.TRecord<string, alepha587.TAny>>;
647
+ ipAddress: alepha587.TOptional<alepha587.TString>;
648
+ userAgent: alepha587.TOptional<alepha587.TString>;
649
+ sessionId: alepha587.TOptional<alepha587.TString>;
650
+ requestId: alepha587.TOptional<alepha587.TString>;
651
+ success: alepha_orm12.PgAttr<alepha587.TBoolean, typeof alepha_orm12.PG_DEFAULT>;
652
+ errorMessage: alepha587.TOptional<alepha587.TString>;
732
653
  }>>;
733
654
  /**
734
655
  * Registry of audit types and their allowed actions.
@@ -833,237 +754,237 @@ declare class AdminAuditController {
833
754
  * Find audit entries with filtering and pagination.
834
755
  */
835
756
  readonly findAudits: alepha_server0.ActionPrimitiveFn<{
836
- query: alepha579.TObject<{
837
- page: alepha579.TOptional<alepha579.TInteger>;
838
- size: alepha579.TOptional<alepha579.TInteger>;
839
- sort: alepha579.TOptional<alepha579.TString>;
840
- type: alepha579.TOptional<alepha579.TString>;
841
- action: alepha579.TOptional<alepha579.TString>;
842
- severity: alepha579.TOptional<alepha579.TUnsafe<"info" | "warning" | "critical">>;
843
- userId: alepha579.TOptional<alepha579.TString>;
844
- userRealm: alepha579.TOptional<alepha579.TString>;
845
- resourceType: alepha579.TOptional<alepha579.TString>;
846
- resourceId: alepha579.TOptional<alepha579.TString>;
847
- success: alepha579.TOptional<alepha579.TBoolean>;
848
- from: alepha579.TOptional<alepha579.TString>;
849
- to: alepha579.TOptional<alepha579.TString>;
850
- search: alepha579.TOptional<alepha579.TString>;
757
+ query: alepha587.TObject<{
758
+ page: alepha587.TOptional<alepha587.TInteger>;
759
+ size: alepha587.TOptional<alepha587.TInteger>;
760
+ sort: alepha587.TOptional<alepha587.TString>;
761
+ type: alepha587.TOptional<alepha587.TString>;
762
+ action: alepha587.TOptional<alepha587.TString>;
763
+ severity: alepha587.TOptional<alepha587.TUnsafe<"info" | "warning" | "critical">>;
764
+ userId: alepha587.TOptional<alepha587.TString>;
765
+ userRealm: alepha587.TOptional<alepha587.TString>;
766
+ resourceType: alepha587.TOptional<alepha587.TString>;
767
+ resourceId: alepha587.TOptional<alepha587.TString>;
768
+ success: alepha587.TOptional<alepha587.TBoolean>;
769
+ from: alepha587.TOptional<alepha587.TString>;
770
+ to: alepha587.TOptional<alepha587.TString>;
771
+ search: alepha587.TOptional<alepha587.TString>;
851
772
  }>;
852
- response: alepha579.TPage<alepha579.TObject<{
853
- id: PgAttr<PgAttr<alepha579.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
854
- createdAt: PgAttr<PgAttr<alepha579.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
855
- type: alepha579.TString;
856
- action: alepha579.TString;
857
- severity: PgAttr<alepha579.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
858
- userId: alepha579.TOptional<alepha579.TString>;
859
- userRealm: alepha579.TOptional<alepha579.TString>;
860
- userEmail: alepha579.TOptional<alepha579.TString>;
861
- resourceType: alepha579.TOptional<alepha579.TString>;
862
- resourceId: alepha579.TOptional<alepha579.TString>;
863
- description: alepha579.TOptional<alepha579.TString>;
864
- metadata: alepha579.TOptional<alepha579.TRecord<string, alepha579.TAny>>;
865
- ipAddress: alepha579.TOptional<alepha579.TString>;
866
- userAgent: alepha579.TOptional<alepha579.TString>;
867
- sessionId: alepha579.TOptional<alepha579.TString>;
868
- requestId: alepha579.TOptional<alepha579.TString>;
869
- success: PgAttr<alepha579.TBoolean, typeof PG_DEFAULT>;
870
- errorMessage: alepha579.TOptional<alepha579.TString>;
773
+ response: alepha587.TPage<alepha587.TObject<{
774
+ id: PgAttr<PgAttr<alepha587.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
775
+ createdAt: PgAttr<PgAttr<alepha587.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
776
+ type: alepha587.TString;
777
+ action: alepha587.TString;
778
+ severity: PgAttr<alepha587.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
779
+ userId: alepha587.TOptional<alepha587.TString>;
780
+ userRealm: alepha587.TOptional<alepha587.TString>;
781
+ userEmail: alepha587.TOptional<alepha587.TString>;
782
+ resourceType: alepha587.TOptional<alepha587.TString>;
783
+ resourceId: alepha587.TOptional<alepha587.TString>;
784
+ description: alepha587.TOptional<alepha587.TString>;
785
+ metadata: alepha587.TOptional<alepha587.TRecord<string, alepha587.TAny>>;
786
+ ipAddress: alepha587.TOptional<alepha587.TString>;
787
+ userAgent: alepha587.TOptional<alepha587.TString>;
788
+ sessionId: alepha587.TOptional<alepha587.TString>;
789
+ requestId: alepha587.TOptional<alepha587.TString>;
790
+ success: PgAttr<alepha587.TBoolean, typeof PG_DEFAULT>;
791
+ errorMessage: alepha587.TOptional<alepha587.TString>;
871
792
  }>>;
872
793
  }>;
873
794
  /**
874
795
  * Get a single audit entry by ID.
875
796
  */
876
797
  readonly getAudit: alepha_server0.ActionPrimitiveFn<{
877
- params: alepha579.TObject<{
878
- id: alepha579.TString;
798
+ params: alepha587.TObject<{
799
+ id: alepha587.TString;
879
800
  }>;
880
- response: alepha579.TObject<{
881
- id: PgAttr<PgAttr<alepha579.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
882
- createdAt: PgAttr<PgAttr<alepha579.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
883
- type: alepha579.TString;
884
- action: alepha579.TString;
885
- severity: PgAttr<alepha579.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
886
- userId: alepha579.TOptional<alepha579.TString>;
887
- userRealm: alepha579.TOptional<alepha579.TString>;
888
- userEmail: alepha579.TOptional<alepha579.TString>;
889
- resourceType: alepha579.TOptional<alepha579.TString>;
890
- resourceId: alepha579.TOptional<alepha579.TString>;
891
- description: alepha579.TOptional<alepha579.TString>;
892
- metadata: alepha579.TOptional<alepha579.TRecord<string, alepha579.TAny>>;
893
- ipAddress: alepha579.TOptional<alepha579.TString>;
894
- userAgent: alepha579.TOptional<alepha579.TString>;
895
- sessionId: alepha579.TOptional<alepha579.TString>;
896
- requestId: alepha579.TOptional<alepha579.TString>;
897
- success: PgAttr<alepha579.TBoolean, typeof PG_DEFAULT>;
898
- errorMessage: alepha579.TOptional<alepha579.TString>;
801
+ response: alepha587.TObject<{
802
+ id: PgAttr<PgAttr<alepha587.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
803
+ createdAt: PgAttr<PgAttr<alepha587.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
804
+ type: alepha587.TString;
805
+ action: alepha587.TString;
806
+ severity: PgAttr<alepha587.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
807
+ userId: alepha587.TOptional<alepha587.TString>;
808
+ userRealm: alepha587.TOptional<alepha587.TString>;
809
+ userEmail: alepha587.TOptional<alepha587.TString>;
810
+ resourceType: alepha587.TOptional<alepha587.TString>;
811
+ resourceId: alepha587.TOptional<alepha587.TString>;
812
+ description: alepha587.TOptional<alepha587.TString>;
813
+ metadata: alepha587.TOptional<alepha587.TRecord<string, alepha587.TAny>>;
814
+ ipAddress: alepha587.TOptional<alepha587.TString>;
815
+ userAgent: alepha587.TOptional<alepha587.TString>;
816
+ sessionId: alepha587.TOptional<alepha587.TString>;
817
+ requestId: alepha587.TOptional<alepha587.TString>;
818
+ success: PgAttr<alepha587.TBoolean, typeof PG_DEFAULT>;
819
+ errorMessage: alepha587.TOptional<alepha587.TString>;
899
820
  }>;
900
821
  }>;
901
822
  /**
902
823
  * Create a new audit entry.
903
824
  */
904
825
  readonly createAudit: alepha_server0.ActionPrimitiveFn<{
905
- body: alepha579.TObject<{
906
- type: alepha579.TString;
907
- action: alepha579.TString;
908
- severity: alepha579.TOptional<alepha579.TUnsafe<"info" | "warning" | "critical">>;
909
- userId: alepha579.TOptional<alepha579.TString>;
910
- userRealm: alepha579.TOptional<alepha579.TString>;
911
- userEmail: alepha579.TOptional<alepha579.TString>;
912
- resourceType: alepha579.TOptional<alepha579.TString>;
913
- resourceId: alepha579.TOptional<alepha579.TString>;
914
- description: alepha579.TOptional<alepha579.TString>;
915
- metadata: alepha579.TOptional<alepha579.TRecord<string, alepha579.TAny>>;
916
- ipAddress: alepha579.TOptional<alepha579.TString>;
917
- userAgent: alepha579.TOptional<alepha579.TString>;
918
- sessionId: alepha579.TOptional<alepha579.TString>;
919
- requestId: alepha579.TOptional<alepha579.TString>;
920
- success: alepha579.TOptional<alepha579.TBoolean>;
921
- errorMessage: alepha579.TOptional<alepha579.TString>;
826
+ body: alepha587.TObject<{
827
+ type: alepha587.TString;
828
+ action: alepha587.TString;
829
+ severity: alepha587.TOptional<alepha587.TUnsafe<"info" | "warning" | "critical">>;
830
+ userId: alepha587.TOptional<alepha587.TString>;
831
+ userRealm: alepha587.TOptional<alepha587.TString>;
832
+ userEmail: alepha587.TOptional<alepha587.TString>;
833
+ resourceType: alepha587.TOptional<alepha587.TString>;
834
+ resourceId: alepha587.TOptional<alepha587.TString>;
835
+ description: alepha587.TOptional<alepha587.TString>;
836
+ metadata: alepha587.TOptional<alepha587.TRecord<string, alepha587.TAny>>;
837
+ ipAddress: alepha587.TOptional<alepha587.TString>;
838
+ userAgent: alepha587.TOptional<alepha587.TString>;
839
+ sessionId: alepha587.TOptional<alepha587.TString>;
840
+ requestId: alepha587.TOptional<alepha587.TString>;
841
+ success: alepha587.TOptional<alepha587.TBoolean>;
842
+ errorMessage: alepha587.TOptional<alepha587.TString>;
922
843
  }>;
923
- response: alepha579.TObject<{
924
- id: PgAttr<PgAttr<alepha579.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
925
- createdAt: PgAttr<PgAttr<alepha579.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
926
- type: alepha579.TString;
927
- action: alepha579.TString;
928
- severity: PgAttr<alepha579.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
929
- userId: alepha579.TOptional<alepha579.TString>;
930
- userRealm: alepha579.TOptional<alepha579.TString>;
931
- userEmail: alepha579.TOptional<alepha579.TString>;
932
- resourceType: alepha579.TOptional<alepha579.TString>;
933
- resourceId: alepha579.TOptional<alepha579.TString>;
934
- description: alepha579.TOptional<alepha579.TString>;
935
- metadata: alepha579.TOptional<alepha579.TRecord<string, alepha579.TAny>>;
936
- ipAddress: alepha579.TOptional<alepha579.TString>;
937
- userAgent: alepha579.TOptional<alepha579.TString>;
938
- sessionId: alepha579.TOptional<alepha579.TString>;
939
- requestId: alepha579.TOptional<alepha579.TString>;
940
- success: PgAttr<alepha579.TBoolean, typeof PG_DEFAULT>;
941
- errorMessage: alepha579.TOptional<alepha579.TString>;
844
+ response: alepha587.TObject<{
845
+ id: PgAttr<PgAttr<alepha587.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
846
+ createdAt: PgAttr<PgAttr<alepha587.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
847
+ type: alepha587.TString;
848
+ action: alepha587.TString;
849
+ severity: PgAttr<alepha587.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
850
+ userId: alepha587.TOptional<alepha587.TString>;
851
+ userRealm: alepha587.TOptional<alepha587.TString>;
852
+ userEmail: alepha587.TOptional<alepha587.TString>;
853
+ resourceType: alepha587.TOptional<alepha587.TString>;
854
+ resourceId: alepha587.TOptional<alepha587.TString>;
855
+ description: alepha587.TOptional<alepha587.TString>;
856
+ metadata: alepha587.TOptional<alepha587.TRecord<string, alepha587.TAny>>;
857
+ ipAddress: alepha587.TOptional<alepha587.TString>;
858
+ userAgent: alepha587.TOptional<alepha587.TString>;
859
+ sessionId: alepha587.TOptional<alepha587.TString>;
860
+ requestId: alepha587.TOptional<alepha587.TString>;
861
+ success: PgAttr<alepha587.TBoolean, typeof PG_DEFAULT>;
862
+ errorMessage: alepha587.TOptional<alepha587.TString>;
942
863
  }>;
943
864
  }>;
944
865
  /**
945
866
  * Get audit entries for a specific user.
946
867
  */
947
868
  readonly findByUser: alepha_server0.ActionPrimitiveFn<{
948
- params: alepha579.TObject<{
949
- userId: alepha579.TString;
869
+ params: alepha587.TObject<{
870
+ userId: alepha587.TString;
950
871
  }>;
951
- query: alepha579.TObject<{
952
- page: alepha579.TOptional<alepha579.TInteger>;
953
- type: alepha579.TOptional<alepha579.TString>;
954
- size: alepha579.TOptional<alepha579.TInteger>;
955
- sort: alepha579.TOptional<alepha579.TString>;
956
- action: alepha579.TOptional<alepha579.TString>;
957
- severity: alepha579.TOptional<alepha579.TUnsafe<"info" | "warning" | "critical">>;
958
- userRealm: alepha579.TOptional<alepha579.TString>;
959
- resourceType: alepha579.TOptional<alepha579.TString>;
960
- resourceId: alepha579.TOptional<alepha579.TString>;
961
- success: alepha579.TOptional<alepha579.TBoolean>;
962
- from: alepha579.TOptional<alepha579.TString>;
963
- to: alepha579.TOptional<alepha579.TString>;
964
- search: alepha579.TOptional<alepha579.TString>;
872
+ query: alepha587.TObject<{
873
+ type: alepha587.TOptional<alepha587.TString>;
874
+ search: alepha587.TOptional<alepha587.TString>;
875
+ action: alepha587.TOptional<alepha587.TString>;
876
+ severity: alepha587.TOptional<alepha587.TUnsafe<"info" | "warning" | "critical">>;
877
+ sort: alepha587.TOptional<alepha587.TString>;
878
+ userRealm: alepha587.TOptional<alepha587.TString>;
879
+ resourceType: alepha587.TOptional<alepha587.TString>;
880
+ resourceId: alepha587.TOptional<alepha587.TString>;
881
+ success: alepha587.TOptional<alepha587.TBoolean>;
882
+ page: alepha587.TOptional<alepha587.TInteger>;
883
+ size: alepha587.TOptional<alepha587.TInteger>;
884
+ from: alepha587.TOptional<alepha587.TString>;
885
+ to: alepha587.TOptional<alepha587.TString>;
965
886
  }>;
966
- response: alepha579.TPage<alepha579.TObject<{
967
- id: PgAttr<PgAttr<alepha579.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
968
- createdAt: PgAttr<PgAttr<alepha579.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
969
- type: alepha579.TString;
970
- action: alepha579.TString;
971
- severity: PgAttr<alepha579.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
972
- userId: alepha579.TOptional<alepha579.TString>;
973
- userRealm: alepha579.TOptional<alepha579.TString>;
974
- userEmail: alepha579.TOptional<alepha579.TString>;
975
- resourceType: alepha579.TOptional<alepha579.TString>;
976
- resourceId: alepha579.TOptional<alepha579.TString>;
977
- description: alepha579.TOptional<alepha579.TString>;
978
- metadata: alepha579.TOptional<alepha579.TRecord<string, alepha579.TAny>>;
979
- ipAddress: alepha579.TOptional<alepha579.TString>;
980
- userAgent: alepha579.TOptional<alepha579.TString>;
981
- sessionId: alepha579.TOptional<alepha579.TString>;
982
- requestId: alepha579.TOptional<alepha579.TString>;
983
- success: PgAttr<alepha579.TBoolean, typeof PG_DEFAULT>;
984
- errorMessage: alepha579.TOptional<alepha579.TString>;
887
+ response: alepha587.TPage<alepha587.TObject<{
888
+ id: PgAttr<PgAttr<alepha587.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
889
+ createdAt: PgAttr<PgAttr<alepha587.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
890
+ type: alepha587.TString;
891
+ action: alepha587.TString;
892
+ severity: PgAttr<alepha587.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
893
+ userId: alepha587.TOptional<alepha587.TString>;
894
+ userRealm: alepha587.TOptional<alepha587.TString>;
895
+ userEmail: alepha587.TOptional<alepha587.TString>;
896
+ resourceType: alepha587.TOptional<alepha587.TString>;
897
+ resourceId: alepha587.TOptional<alepha587.TString>;
898
+ description: alepha587.TOptional<alepha587.TString>;
899
+ metadata: alepha587.TOptional<alepha587.TRecord<string, alepha587.TAny>>;
900
+ ipAddress: alepha587.TOptional<alepha587.TString>;
901
+ userAgent: alepha587.TOptional<alepha587.TString>;
902
+ sessionId: alepha587.TOptional<alepha587.TString>;
903
+ requestId: alepha587.TOptional<alepha587.TString>;
904
+ success: PgAttr<alepha587.TBoolean, typeof PG_DEFAULT>;
905
+ errorMessage: alepha587.TOptional<alepha587.TString>;
985
906
  }>>;
986
907
  }>;
987
908
  /**
988
909
  * Get audit entries for a specific resource.
989
910
  */
990
911
  readonly findByResource: alepha_server0.ActionPrimitiveFn<{
991
- params: alepha579.TObject<{
992
- resourceType: alepha579.TString;
993
- resourceId: alepha579.TString;
912
+ params: alepha587.TObject<{
913
+ resourceType: alepha587.TString;
914
+ resourceId: alepha587.TString;
994
915
  }>;
995
- query: alepha579.TObject<{
996
- page: alepha579.TOptional<alepha579.TInteger>;
997
- type: alepha579.TOptional<alepha579.TString>;
998
- size: alepha579.TOptional<alepha579.TInteger>;
999
- sort: alepha579.TOptional<alepha579.TString>;
1000
- action: alepha579.TOptional<alepha579.TString>;
1001
- severity: alepha579.TOptional<alepha579.TUnsafe<"info" | "warning" | "critical">>;
1002
- userId: alepha579.TOptional<alepha579.TString>;
1003
- userRealm: alepha579.TOptional<alepha579.TString>;
1004
- success: alepha579.TOptional<alepha579.TBoolean>;
1005
- from: alepha579.TOptional<alepha579.TString>;
1006
- to: alepha579.TOptional<alepha579.TString>;
1007
- search: alepha579.TOptional<alepha579.TString>;
916
+ query: alepha587.TObject<{
917
+ type: alepha587.TOptional<alepha587.TString>;
918
+ search: alepha587.TOptional<alepha587.TString>;
919
+ action: alepha587.TOptional<alepha587.TString>;
920
+ severity: alepha587.TOptional<alepha587.TUnsafe<"info" | "warning" | "critical">>;
921
+ sort: alepha587.TOptional<alepha587.TString>;
922
+ userId: alepha587.TOptional<alepha587.TString>;
923
+ userRealm: alepha587.TOptional<alepha587.TString>;
924
+ success: alepha587.TOptional<alepha587.TBoolean>;
925
+ page: alepha587.TOptional<alepha587.TInteger>;
926
+ size: alepha587.TOptional<alepha587.TInteger>;
927
+ from: alepha587.TOptional<alepha587.TString>;
928
+ to: alepha587.TOptional<alepha587.TString>;
1008
929
  }>;
1009
- response: alepha579.TPage<alepha579.TObject<{
1010
- id: PgAttr<PgAttr<alepha579.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1011
- createdAt: PgAttr<PgAttr<alepha579.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1012
- type: alepha579.TString;
1013
- action: alepha579.TString;
1014
- severity: PgAttr<alepha579.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
1015
- userId: alepha579.TOptional<alepha579.TString>;
1016
- userRealm: alepha579.TOptional<alepha579.TString>;
1017
- userEmail: alepha579.TOptional<alepha579.TString>;
1018
- resourceType: alepha579.TOptional<alepha579.TString>;
1019
- resourceId: alepha579.TOptional<alepha579.TString>;
1020
- description: alepha579.TOptional<alepha579.TString>;
1021
- metadata: alepha579.TOptional<alepha579.TRecord<string, alepha579.TAny>>;
1022
- ipAddress: alepha579.TOptional<alepha579.TString>;
1023
- userAgent: alepha579.TOptional<alepha579.TString>;
1024
- sessionId: alepha579.TOptional<alepha579.TString>;
1025
- requestId: alepha579.TOptional<alepha579.TString>;
1026
- success: PgAttr<alepha579.TBoolean, typeof PG_DEFAULT>;
1027
- errorMessage: alepha579.TOptional<alepha579.TString>;
930
+ response: alepha587.TPage<alepha587.TObject<{
931
+ id: PgAttr<PgAttr<alepha587.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
932
+ createdAt: PgAttr<PgAttr<alepha587.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
933
+ type: alepha587.TString;
934
+ action: alepha587.TString;
935
+ severity: PgAttr<alepha587.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
936
+ userId: alepha587.TOptional<alepha587.TString>;
937
+ userRealm: alepha587.TOptional<alepha587.TString>;
938
+ userEmail: alepha587.TOptional<alepha587.TString>;
939
+ resourceType: alepha587.TOptional<alepha587.TString>;
940
+ resourceId: alepha587.TOptional<alepha587.TString>;
941
+ description: alepha587.TOptional<alepha587.TString>;
942
+ metadata: alepha587.TOptional<alepha587.TRecord<string, alepha587.TAny>>;
943
+ ipAddress: alepha587.TOptional<alepha587.TString>;
944
+ userAgent: alepha587.TOptional<alepha587.TString>;
945
+ sessionId: alepha587.TOptional<alepha587.TString>;
946
+ requestId: alepha587.TOptional<alepha587.TString>;
947
+ success: PgAttr<alepha587.TBoolean, typeof PG_DEFAULT>;
948
+ errorMessage: alepha587.TOptional<alepha587.TString>;
1028
949
  }>>;
1029
950
  }>;
1030
951
  /**
1031
952
  * Get audit statistics.
1032
953
  */
1033
954
  readonly getStats: alepha_server0.ActionPrimitiveFn<{
1034
- query: alepha579.TObject<{
1035
- from: alepha579.TOptional<alepha579.TString>;
1036
- to: alepha579.TOptional<alepha579.TString>;
1037
- userRealm: alepha579.TOptional<alepha579.TString>;
955
+ query: alepha587.TObject<{
956
+ from: alepha587.TOptional<alepha587.TString>;
957
+ to: alepha587.TOptional<alepha587.TString>;
958
+ userRealm: alepha587.TOptional<alepha587.TString>;
1038
959
  }>;
1039
- response: alepha579.TObject<{
1040
- total: alepha579.TInteger;
1041
- byType: alepha579.TRecord<"^.*$", alepha579.TInteger>;
1042
- bySeverity: alepha579.TObject<{
1043
- info: alepha579.TInteger;
1044
- warning: alepha579.TInteger;
1045
- critical: alepha579.TInteger;
960
+ response: alepha587.TObject<{
961
+ total: alepha587.TInteger;
962
+ byType: alepha587.TRecord<"^.*$", alepha587.TInteger>;
963
+ bySeverity: alepha587.TObject<{
964
+ info: alepha587.TInteger;
965
+ warning: alepha587.TInteger;
966
+ critical: alepha587.TInteger;
1046
967
  }>;
1047
- successRate: alepha579.TNumber;
1048
- recentFailures: alepha579.TArray<alepha579.TObject<{
1049
- id: PgAttr<PgAttr<alepha579.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1050
- createdAt: PgAttr<PgAttr<alepha579.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1051
- type: alepha579.TString;
1052
- action: alepha579.TString;
1053
- severity: PgAttr<alepha579.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
1054
- userId: alepha579.TOptional<alepha579.TString>;
1055
- userRealm: alepha579.TOptional<alepha579.TString>;
1056
- userEmail: alepha579.TOptional<alepha579.TString>;
1057
- resourceType: alepha579.TOptional<alepha579.TString>;
1058
- resourceId: alepha579.TOptional<alepha579.TString>;
1059
- description: alepha579.TOptional<alepha579.TString>;
1060
- metadata: alepha579.TOptional<alepha579.TRecord<string, alepha579.TAny>>;
1061
- ipAddress: alepha579.TOptional<alepha579.TString>;
1062
- userAgent: alepha579.TOptional<alepha579.TString>;
1063
- sessionId: alepha579.TOptional<alepha579.TString>;
1064
- requestId: alepha579.TOptional<alepha579.TString>;
1065
- success: PgAttr<alepha579.TBoolean, typeof PG_DEFAULT>;
1066
- errorMessage: alepha579.TOptional<alepha579.TString>;
968
+ successRate: alepha587.TNumber;
969
+ recentFailures: alepha587.TArray<alepha587.TObject<{
970
+ id: PgAttr<PgAttr<alepha587.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
971
+ createdAt: PgAttr<PgAttr<alepha587.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
972
+ type: alepha587.TString;
973
+ action: alepha587.TString;
974
+ severity: PgAttr<alepha587.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
975
+ userId: alepha587.TOptional<alepha587.TString>;
976
+ userRealm: alepha587.TOptional<alepha587.TString>;
977
+ userEmail: alepha587.TOptional<alepha587.TString>;
978
+ resourceType: alepha587.TOptional<alepha587.TString>;
979
+ resourceId: alepha587.TOptional<alepha587.TString>;
980
+ description: alepha587.TOptional<alepha587.TString>;
981
+ metadata: alepha587.TOptional<alepha587.TRecord<string, alepha587.TAny>>;
982
+ ipAddress: alepha587.TOptional<alepha587.TString>;
983
+ userAgent: alepha587.TOptional<alepha587.TString>;
984
+ sessionId: alepha587.TOptional<alepha587.TString>;
985
+ requestId: alepha587.TOptional<alepha587.TString>;
986
+ success: PgAttr<alepha587.TBoolean, typeof PG_DEFAULT>;
987
+ errorMessage: alepha587.TOptional<alepha587.TString>;
1067
988
  }>>;
1068
989
  }>;
1069
990
  }>;
@@ -1071,21 +992,21 @@ declare class AdminAuditController {
1071
992
  * Get registered audit types.
1072
993
  */
1073
994
  readonly getTypes: alepha_server0.ActionPrimitiveFn<{
1074
- response: alepha579.TArray<alepha579.TObject<{
1075
- type: alepha579.TString;
1076
- description: alepha579.TOptional<alepha579.TString>;
1077
- actions: alepha579.TArray<alepha579.TString>;
995
+ response: alepha587.TArray<alepha587.TObject<{
996
+ type: alepha587.TString;
997
+ description: alepha587.TOptional<alepha587.TString>;
998
+ actions: alepha587.TArray<alepha587.TString>;
1078
999
  }>>;
1079
1000
  }>;
1080
1001
  /**
1081
1002
  * Get distinct values for filters.
1082
1003
  */
1083
1004
  readonly getFilterOptions: alepha_server0.ActionPrimitiveFn<{
1084
- response: alepha579.TObject<{
1085
- types: alepha579.TArray<alepha579.TString>;
1086
- actions: alepha579.TArray<alepha579.TString>;
1087
- resourceTypes: alepha579.TArray<alepha579.TString>;
1088
- userRealms: alepha579.TArray<alepha579.TString>;
1005
+ response: alepha587.TObject<{
1006
+ types: alepha587.TArray<alepha587.TString>;
1007
+ actions: alepha587.TArray<alepha587.TString>;
1008
+ resourceTypes: alepha587.TArray<alepha587.TString>;
1009
+ userRealms: alepha587.TArray<alepha587.TString>;
1089
1010
  }>;
1090
1011
  }>;
1091
1012
  }
@@ -1207,25 +1128,25 @@ declare const $audit: {
1207
1128
  /**
1208
1129
  * Resource schema for audit log responses.
1209
1130
  */
1210
- declare const auditResourceSchema: alepha579.TObject<{
1211
- id: PgAttr<PgAttr<alepha579.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1212
- createdAt: PgAttr<PgAttr<alepha579.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1213
- type: alepha579.TString;
1214
- action: alepha579.TString;
1215
- severity: PgAttr<alepha579.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
1216
- userId: alepha579.TOptional<alepha579.TString>;
1217
- userRealm: alepha579.TOptional<alepha579.TString>;
1218
- userEmail: alepha579.TOptional<alepha579.TString>;
1219
- resourceType: alepha579.TOptional<alepha579.TString>;
1220
- resourceId: alepha579.TOptional<alepha579.TString>;
1221
- description: alepha579.TOptional<alepha579.TString>;
1222
- metadata: alepha579.TOptional<alepha579.TRecord<string, alepha579.TAny>>;
1223
- ipAddress: alepha579.TOptional<alepha579.TString>;
1224
- userAgent: alepha579.TOptional<alepha579.TString>;
1225
- sessionId: alepha579.TOptional<alepha579.TString>;
1226
- requestId: alepha579.TOptional<alepha579.TString>;
1227
- success: PgAttr<alepha579.TBoolean, typeof PG_DEFAULT>;
1228
- errorMessage: alepha579.TOptional<alepha579.TString>;
1131
+ declare const auditResourceSchema: alepha587.TObject<{
1132
+ id: PgAttr<PgAttr<alepha587.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1133
+ createdAt: PgAttr<PgAttr<alepha587.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1134
+ type: alepha587.TString;
1135
+ action: alepha587.TString;
1136
+ severity: PgAttr<alepha587.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
1137
+ userId: alepha587.TOptional<alepha587.TString>;
1138
+ userRealm: alepha587.TOptional<alepha587.TString>;
1139
+ userEmail: alepha587.TOptional<alepha587.TString>;
1140
+ resourceType: alepha587.TOptional<alepha587.TString>;
1141
+ resourceId: alepha587.TOptional<alepha587.TString>;
1142
+ description: alepha587.TOptional<alepha587.TString>;
1143
+ metadata: alepha587.TOptional<alepha587.TRecord<string, alepha587.TAny>>;
1144
+ ipAddress: alepha587.TOptional<alepha587.TString>;
1145
+ userAgent: alepha587.TOptional<alepha587.TString>;
1146
+ sessionId: alepha587.TOptional<alepha587.TString>;
1147
+ requestId: alepha587.TOptional<alepha587.TString>;
1148
+ success: PgAttr<alepha587.TBoolean, typeof PG_DEFAULT>;
1149
+ errorMessage: alepha587.TOptional<alepha587.TString>;
1229
1150
  }>;
1230
1151
  type AuditResource = Static<typeof auditResourceSchema>;
1231
1152
  //#endregion
@@ -1268,7 +1189,7 @@ type AuditResource = Static<typeof auditResourceSchema>;
1268
1189
  * }
1269
1190
  * ```
1270
1191
  */
1271
- declare const AlephaApiAudits: alepha579.Service<alepha579.Module>;
1192
+ declare const AlephaApiAudits: alepha587.Service<alepha587.Module>;
1272
1193
  //#endregion
1273
1194
  export { $audit, AdminAuditController, AlephaApiAudits, AuditEntity, AuditLogOptions, AuditPrimitive, AuditPrimitiveOptions, AuditQuery, AuditResource, AuditService, AuditSeverity, AuditStats, AuditTypeDefinition, CreateAudit, auditEntityInsertSchema, auditEntitySchema, auditQuerySchema, auditResourceSchema, auditSeveritySchema, audits, createAuditSchema };
1274
1195
  //# sourceMappingURL=index.d.ts.map