alepha 0.14.4 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -102
- package/dist/api/audits/index.d.ts +331 -443
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +2 -2
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.d.ts +0 -113
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +2 -3
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.d.ts +151 -262
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/notifications/index.browser.js +4 -4
- package/dist/api/notifications/index.browser.js.map +1 -1
- package/dist/api/notifications/index.d.ts +164 -276
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/notifications/index.js +4 -4
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/parameters/index.d.ts +265 -377
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/users/index.browser.js +1 -2
- package/dist/api/users/index.browser.js.map +1 -1
- package/dist/api/users/index.d.ts +195 -301
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +203 -184
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/batch/index.d.ts.map +1 -1
- package/dist/batch/index.js +1 -2
- package/dist/batch/index.js.map +1 -1
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/redis/index.d.ts.map +1 -1
- package/dist/cache/redis/index.js +2 -2
- package/dist/cache/redis/index.js.map +1 -1
- package/dist/cli/index.d.ts +5900 -165
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +1481 -639
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +8 -4
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +29 -25
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +563 -54
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +175 -8
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +564 -54
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +563 -54
- package/dist/core/index.native.js.map +1 -1
- package/dist/datetime/index.d.ts.map +1 -1
- package/dist/datetime/index.js +4 -4
- package/dist/datetime/index.js.map +1 -1
- package/dist/email/index.d.ts +89 -42
- package/dist/email/index.d.ts.map +1 -1
- package/dist/email/index.js +129 -33
- package/dist/email/index.js.map +1 -1
- package/dist/fake/index.d.ts +7969 -2
- package/dist/fake/index.d.ts.map +1 -1
- package/dist/fake/index.js +22 -22
- package/dist/fake/index.js.map +1 -1
- package/dist/file/index.d.ts +134 -1
- package/dist/file/index.d.ts.map +1 -1
- package/dist/file/index.js +253 -1
- package/dist/file/index.js.map +1 -1
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/redis/index.d.ts.map +1 -1
- package/dist/logger/index.d.ts +1 -2
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +1 -5
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts +19 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +28 -4
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/chunk-DH6iiROE.js +38 -0
- package/dist/orm/index.browser.js +9 -9
- package/dist/orm/index.browser.js.map +1 -1
- package/dist/orm/index.bun.js +2821 -0
- package/dist/orm/index.bun.js.map +1 -0
- package/dist/orm/index.d.ts +318 -169
- package/dist/orm/index.d.ts.map +1 -1
- package/dist/orm/index.js +2086 -1776
- package/dist/orm/index.js.map +1 -1
- package/dist/queue/core/index.d.ts +4 -4
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/redis/index.d.ts.map +1 -1
- package/dist/redis/index.bun.js +285 -0
- package/dist/redis/index.bun.js.map +1 -0
- package/dist/redis/index.d.ts +13 -31
- package/dist/redis/index.d.ts.map +1 -1
- package/dist/redis/index.js +18 -38
- package/dist/redis/index.js.map +1 -1
- package/dist/retry/index.d.ts.map +1 -1
- package/dist/router/index.d.ts.map +1 -1
- package/dist/scheduler/index.d.ts +83 -1
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +393 -1
- package/dist/scheduler/index.js.map +1 -1
- package/dist/security/index.browser.js +5 -1
- package/dist/security/index.browser.js.map +1 -1
- package/dist/security/index.d.ts +598 -112
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +1808 -97
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +1200 -175
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +1268 -37
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cache/index.d.ts +6 -3
- package/dist/server/cache/index.d.ts.map +1 -1
- package/dist/server/cache/index.js +1 -1
- package/dist/server/cache/index.js.map +1 -1
- package/dist/server/compress/index.d.ts.map +1 -1
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/cookies/index.js +3 -3
- package/dist/server/cookies/index.js.map +1 -1
- package/dist/server/core/index.d.ts +115 -13
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +321 -139
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/cors/index.d.ts +0 -1
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/health/index.d.ts +0 -1
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/helmet/index.d.ts.map +1 -1
- package/dist/server/links/index.browser.js +9 -1
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.d.ts +1 -2
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +14 -7
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/metrics/index.d.ts +514 -1
- package/dist/server/metrics/index.d.ts.map +1 -1
- package/dist/server/metrics/index.js +4462 -4
- package/dist/server/metrics/index.js.map +1 -1
- package/dist/server/multipart/index.d.ts.map +1 -1
- package/dist/server/proxy/index.d.ts +0 -1
- package/dist/server/proxy/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/swagger/index.d.ts +1 -2
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +1 -2
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +3 -1
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js +10 -10
- package/dist/sms/index.js.map +1 -1
- package/dist/thread/index.d.ts +0 -1
- package/dist/thread/index.d.ts.map +1 -1
- package/dist/thread/index.js +2 -2
- package/dist/thread/index.js.map +1 -1
- package/dist/topic/core/index.d.ts.map +1 -1
- package/dist/topic/redis/index.d.ts.map +1 -1
- package/dist/vite/index.d.ts +6315 -149
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +140 -469
- package/dist/vite/index.js.map +1 -1
- package/dist/websocket/index.browser.js +9 -9
- package/dist/websocket/index.browser.js.map +1 -1
- package/dist/websocket/index.d.ts +28 -28
- package/dist/websocket/index.d.ts.map +1 -1
- package/dist/websocket/index.js +9 -9
- package/dist/websocket/index.js.map +1 -1
- package/package.json +13 -18
- package/src/api/files/controllers/AdminFileStatsController.ts +0 -1
- package/src/api/users/atoms/realmAuthSettingsAtom.ts +5 -0
- package/src/api/users/controllers/{UserRealmController.ts → RealmController.ts} +11 -11
- package/src/api/users/entities/users.ts +1 -1
- package/src/api/users/index.ts +8 -8
- package/src/api/users/primitives/{$userRealm.ts → $realm.ts} +17 -19
- package/src/api/users/providers/{UserRealmProvider.ts → RealmProvider.ts} +26 -30
- package/src/api/users/schemas/{userRealmConfigSchema.ts → realmConfigSchema.ts} +2 -2
- package/src/api/users/services/CredentialService.ts +7 -7
- package/src/api/users/services/IdentityService.ts +4 -4
- package/src/api/users/services/RegistrationService.spec.ts +25 -27
- package/src/api/users/services/RegistrationService.ts +38 -27
- package/src/api/users/services/SessionCrudService.ts +3 -3
- package/src/api/users/services/SessionService.spec.ts +3 -3
- package/src/api/users/services/SessionService.ts +27 -18
- package/src/api/users/services/UserService.ts +7 -7
- package/src/batch/providers/BatchProvider.ts +1 -2
- package/src/cli/apps/AlephaCli.ts +2 -2
- package/src/cli/apps/AlephaPackageBuilderCli.ts +47 -20
- package/src/cli/assets/apiHelloControllerTs.ts +19 -0
- package/src/cli/assets/apiIndexTs.ts +16 -0
- package/src/cli/assets/biomeJson.ts +2 -1
- package/src/cli/assets/claudeMd.ts +308 -0
- package/src/cli/assets/dummySpecTs.ts +2 -1
- package/src/cli/assets/editorconfig.ts +2 -1
- package/src/cli/assets/mainBrowserTs.ts +4 -3
- package/src/cli/assets/mainCss.ts +24 -0
- package/src/cli/assets/mainServerTs.ts +24 -0
- package/src/cli/assets/tsconfigJson.ts +2 -1
- package/src/cli/assets/webAppRouterTs.ts +16 -0
- package/src/cli/assets/webHelloComponentTsx.ts +20 -0
- package/src/cli/assets/webIndexTs.ts +16 -0
- package/src/cli/atoms/appEntryOptions.ts +13 -0
- package/src/cli/atoms/buildOptions.ts +1 -1
- package/src/cli/atoms/changelogOptions.ts +1 -1
- package/src/cli/commands/build.ts +97 -61
- package/src/cli/commands/db.ts +21 -18
- package/src/cli/commands/deploy.ts +17 -5
- package/src/cli/commands/dev.ts +26 -47
- package/src/cli/commands/gen/env.ts +1 -1
- package/src/cli/commands/init.ts +79 -25
- package/src/cli/commands/lint.ts +9 -3
- package/src/cli/commands/test.ts +8 -2
- package/src/cli/commands/typecheck.ts +5 -1
- package/src/cli/commands/verify.ts +4 -2
- package/src/cli/defineConfig.ts +9 -0
- package/src/cli/index.ts +2 -1
- package/src/cli/providers/AppEntryProvider.ts +131 -0
- package/src/cli/providers/ViteBuildProvider.ts +82 -0
- package/src/cli/providers/ViteDevServerProvider.ts +350 -0
- package/src/cli/providers/ViteTemplateProvider.ts +27 -0
- package/src/cli/services/AlephaCliUtils.ts +72 -602
- package/src/cli/services/PackageManagerUtils.ts +308 -0
- package/src/cli/services/ProjectScaffolder.ts +329 -0
- package/src/command/helpers/Runner.ts +15 -3
- package/src/core/Alepha.ts +2 -8
- package/src/core/__tests__/Alepha-graph.spec.ts +4 -0
- package/src/core/index.shared.ts +1 -0
- package/src/core/index.ts +2 -0
- package/src/core/primitives/$hook.ts +6 -2
- package/src/core/primitives/$module.spec.ts +4 -0
- package/src/core/primitives/$module.ts +12 -0
- package/src/core/providers/AlsProvider.ts +1 -1
- package/src/core/providers/CodecManager.spec.ts +12 -6
- package/src/core/providers/CodecManager.ts +26 -6
- package/src/core/providers/EventManager.ts +169 -13
- package/src/core/providers/KeylessJsonSchemaCodec.spec.ts +878 -0
- package/src/core/providers/KeylessJsonSchemaCodec.ts +789 -0
- package/src/core/providers/SchemaValidator.spec.ts +236 -0
- package/src/core/providers/StateManager.spec.ts +27 -16
- package/src/email/providers/LocalEmailProvider.spec.ts +111 -87
- package/src/email/providers/LocalEmailProvider.ts +52 -15
- package/src/email/providers/NodemailerEmailProvider.ts +167 -56
- package/src/file/errors/FileError.ts +7 -0
- package/src/file/index.ts +9 -1
- package/src/file/providers/MemoryFileSystemProvider.ts +393 -0
- package/src/logger/providers/PrettyFormatterProvider.ts +0 -9
- package/src/mcp/errors/McpError.ts +30 -0
- package/src/mcp/index.ts +3 -0
- package/src/mcp/transports/SseMcpTransport.ts +16 -6
- package/src/orm/index.browser.ts +1 -19
- package/src/orm/index.bun.ts +77 -0
- package/src/orm/index.shared-server.ts +22 -0
- package/src/orm/index.shared.ts +15 -0
- package/src/orm/index.ts +19 -39
- package/src/orm/providers/DrizzleKitProvider.ts +3 -5
- package/src/orm/providers/drivers/BunPostgresProvider.ts +3 -5
- package/src/orm/providers/drivers/BunSqliteProvider.ts +1 -1
- package/src/orm/providers/drivers/CloudflareD1Provider.ts +4 -0
- package/src/orm/providers/drivers/DatabaseProvider.ts +4 -0
- package/src/orm/providers/drivers/PglitePostgresProvider.ts +4 -0
- package/src/orm/services/Repository.ts +19 -0
- package/src/redis/index.bun.ts +35 -0
- package/src/redis/providers/BunRedisProvider.ts +12 -43
- package/src/redis/providers/BunRedisSubscriberProvider.ts +2 -3
- package/src/redis/providers/NodeRedisProvider.ts +16 -34
- package/src/{server/security → security}/__tests__/BasicAuth.spec.ts +11 -11
- package/src/{server/security → security}/__tests__/ServerSecurityProvider-realm.spec.ts +21 -16
- package/src/{server/security/providers → security/__tests__}/ServerSecurityProvider.spec.ts +5 -5
- package/src/security/index.browser.ts +5 -0
- package/src/security/index.ts +90 -7
- package/src/security/primitives/{$realm.spec.ts → $issuer.spec.ts} +11 -11
- package/src/security/primitives/{$realm.ts → $issuer.ts} +20 -17
- package/src/security/primitives/$role.ts +5 -5
- package/src/security/primitives/$serviceAccount.spec.ts +5 -5
- package/src/security/primitives/$serviceAccount.ts +3 -3
- package/src/{server/security → security}/providers/ServerSecurityProvider.ts +5 -7
- package/src/server/auth/primitives/$auth.ts +10 -10
- package/src/server/auth/primitives/$authCredentials.ts +3 -3
- package/src/server/auth/primitives/$authGithub.ts +3 -3
- package/src/server/auth/primitives/$authGoogle.ts +3 -3
- package/src/server/auth/providers/ServerAuthProvider.ts +13 -13
- package/src/server/cache/providers/ServerCacheProvider.ts +1 -1
- package/src/server/cookies/providers/ServerCookiesProvider.ts +3 -3
- package/src/server/core/index.ts +1 -1
- package/src/server/core/providers/BunHttpServerProvider.ts +1 -1
- package/src/server/core/providers/NodeHttpServerProvider.spec.ts +125 -0
- package/src/server/core/providers/NodeHttpServerProvider.ts +92 -24
- package/src/server/core/providers/ServerBodyParserProvider.ts +19 -23
- package/src/server/core/providers/ServerLoggerProvider.ts +23 -19
- package/src/server/core/providers/ServerProvider.ts +144 -24
- package/src/server/core/providers/ServerRouterProvider.ts +259 -115
- package/src/server/core/providers/ServerTimingProvider.ts +2 -2
- package/src/server/links/atoms/apiLinksAtom.ts +7 -0
- package/src/server/links/index.browser.ts +2 -0
- package/src/server/links/index.ts +3 -1
- package/src/server/links/providers/LinkProvider.ts +1 -1
- package/src/server/swagger/index.ts +1 -1
- package/src/sms/providers/LocalSmsProvider.spec.ts +153 -111
- package/src/sms/providers/LocalSmsProvider.ts +8 -7
- package/src/vite/index.ts +3 -2
- package/src/vite/tasks/buildClient.ts +0 -1
- package/src/vite/tasks/buildServer.ts +80 -22
- package/src/vite/tasks/copyAssets.ts +5 -4
- package/src/vite/tasks/generateCloudflare.ts +7 -0
- package/src/vite/tasks/generateSitemap.ts +64 -23
- package/src/vite/tasks/index.ts +0 -2
- package/src/vite/tasks/prerenderPages.ts +49 -24
- package/dist/server/security/index.browser.js +0 -13
- package/dist/server/security/index.browser.js.map +0 -1
- package/dist/server/security/index.d.ts +0 -173
- package/dist/server/security/index.d.ts.map +0 -1
- package/dist/server/security/index.js +0 -311
- package/dist/server/security/index.js.map +0 -1
- package/src/cli/assets/appRouterTs.ts +0 -9
- package/src/cli/assets/indexHtml.ts +0 -15
- package/src/cli/assets/mainTs.ts +0 -13
- package/src/cli/commands/format.ts +0 -17
- package/src/server/security/index.browser.ts +0 -10
- package/src/server/security/index.ts +0 -94
- package/src/vite/helpers/boot.ts +0 -106
- package/src/vite/plugins/viteAlephaDev.ts +0 -177
- package/src/vite/tasks/devServer.ts +0 -69
- package/src/vite/tasks/runAlepha.ts +0 -270
- /package/src/{server/security → security}/primitives/$basicAuth.ts +0 -0
- /package/src/{server/security → security}/providers/ServerBasicAuthProvider.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha381 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";
|
|
@@ -11,9 +11,6 @@ import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, Update
|
|
|
11
11
|
import "alepha/datetime";
|
|
12
12
|
import "alepha/retry";
|
|
13
13
|
import "drizzle-orm/sqlite-core";
|
|
14
|
-
import "alepha/lock";
|
|
15
|
-
import "drizzle-orm/postgres-js";
|
|
16
|
-
import "postgres";
|
|
17
14
|
|
|
18
15
|
//#region ../../src/orm/schemas/insertSchema.d.ts
|
|
19
16
|
/**
|
|
@@ -231,120 +228,11 @@ interface PgRefOptions {
|
|
|
231
228
|
*/
|
|
232
229
|
type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K] };
|
|
233
230
|
//#endregion
|
|
234
|
-
//#region ../../src/orm/providers/drivers/NodePostgresProvider.d.ts
|
|
235
|
-
declare module "alepha" {
|
|
236
|
-
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
237
|
-
}
|
|
238
|
-
declare const envSchema: alepha587.TObject<{
|
|
239
|
-
/**
|
|
240
|
-
* Main configuration for database connection.
|
|
241
|
-
* Accept a string in the format of a Postgres connection URL.
|
|
242
|
-
* Example: postgres://user:password@localhost:5432/database
|
|
243
|
-
* or
|
|
244
|
-
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
245
|
-
*/
|
|
246
|
-
DATABASE_URL: alepha587.TOptional<alepha587.TString>;
|
|
247
|
-
/**
|
|
248
|
-
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
249
|
-
*
|
|
250
|
-
* It will monkey patch drizzle tables.
|
|
251
|
-
*/
|
|
252
|
-
POSTGRES_SCHEMA: alepha587.TOptional<alepha587.TString>;
|
|
253
|
-
}>;
|
|
254
|
-
//#endregion
|
|
255
|
-
//#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
256
|
-
/**
|
|
257
|
-
* Configuration options for the Node.js SQLite database provider.
|
|
258
|
-
*/
|
|
259
|
-
declare const nodeSqliteOptions: alepha587.Atom<alepha587.TObject<{
|
|
260
|
-
path: alepha587.TOptional<alepha587.TString>;
|
|
261
|
-
}>, "alepha.postgres.node-sqlite.options">;
|
|
262
|
-
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
263
|
-
declare module "alepha" {
|
|
264
|
-
interface State {
|
|
265
|
-
[nodeSqliteOptions.key]: NodeSqliteProviderOptions;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Add a fake support for SQLite in Node.js based on Postgres interfaces.
|
|
270
|
-
*
|
|
271
|
-
* This is NOT a real SQLite provider, it's a workaround to use SQLite with Drizzle ORM.
|
|
272
|
-
* This is NOT recommended for production use.
|
|
273
|
-
*/
|
|
274
|
-
//#endregion
|
|
275
|
-
//#region ../../src/orm/index.d.ts
|
|
276
|
-
declare module "alepha" {
|
|
277
|
-
interface Hooks {
|
|
278
|
-
/**
|
|
279
|
-
* Fires before creating an entity in the repository.
|
|
280
|
-
*/
|
|
281
|
-
"repository:create:before": {
|
|
282
|
-
tableName: string;
|
|
283
|
-
data: any;
|
|
284
|
-
};
|
|
285
|
-
/**
|
|
286
|
-
* Fires after creating an entity in the repository.
|
|
287
|
-
*/
|
|
288
|
-
"repository:create:after": {
|
|
289
|
-
tableName: string;
|
|
290
|
-
data: any;
|
|
291
|
-
entity: any;
|
|
292
|
-
};
|
|
293
|
-
/**
|
|
294
|
-
* Fires before updating entities in the repository.
|
|
295
|
-
*/
|
|
296
|
-
"repository:update:before": {
|
|
297
|
-
tableName: string;
|
|
298
|
-
where: any;
|
|
299
|
-
data: any;
|
|
300
|
-
};
|
|
301
|
-
/**
|
|
302
|
-
* Fires after updating entities in the repository.
|
|
303
|
-
*/
|
|
304
|
-
"repository:update:after": {
|
|
305
|
-
tableName: string;
|
|
306
|
-
where: any;
|
|
307
|
-
data: any;
|
|
308
|
-
entities: any[];
|
|
309
|
-
};
|
|
310
|
-
/**
|
|
311
|
-
* Fires before deleting entities from the repository.
|
|
312
|
-
*/
|
|
313
|
-
"repository:delete:before": {
|
|
314
|
-
tableName: string;
|
|
315
|
-
where: any;
|
|
316
|
-
};
|
|
317
|
-
/**
|
|
318
|
-
* Fires after deleting entities from the repository.
|
|
319
|
-
*/
|
|
320
|
-
"repository:delete:after": {
|
|
321
|
-
tableName: string;
|
|
322
|
-
where: any;
|
|
323
|
-
ids: Array<string | number>;
|
|
324
|
-
};
|
|
325
|
-
/**
|
|
326
|
-
* Fires before reading entities from the repository.
|
|
327
|
-
*/
|
|
328
|
-
"repository:read:before": {
|
|
329
|
-
tableName: string;
|
|
330
|
-
query: any;
|
|
331
|
-
};
|
|
332
|
-
/**
|
|
333
|
-
* Fires after reading entities from the repository.
|
|
334
|
-
*/
|
|
335
|
-
"repository:read:after": {
|
|
336
|
-
tableName: string;
|
|
337
|
-
query: any;
|
|
338
|
-
entities: any[];
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
//#endregion
|
|
343
231
|
//#region ../../src/api/audits/entities/audits.d.ts
|
|
344
232
|
/**
|
|
345
233
|
* Audit severity levels for categorizing events.
|
|
346
234
|
*/
|
|
347
|
-
declare const auditSeveritySchema:
|
|
235
|
+
declare const auditSeveritySchema: alepha381.TUnsafe<"info" | "warning" | "critical">;
|
|
348
236
|
type AuditSeverity = Static<typeof auditSeveritySchema>;
|
|
349
237
|
/**
|
|
350
238
|
* Audit log entity for tracking important system events.
|
|
@@ -355,212 +243,212 @@ type AuditSeverity = Static<typeof auditSeveritySchema>;
|
|
|
355
243
|
* - When it happened (createdAt)
|
|
356
244
|
* - Context and details (metadata, ipAddress, userAgent)
|
|
357
245
|
*/
|
|
358
|
-
declare const audits: alepha_orm12.EntityPrimitive<
|
|
359
|
-
id: alepha_orm12.PgAttr<alepha_orm12.PgAttr<
|
|
360
|
-
createdAt: alepha_orm12.PgAttr<alepha_orm12.PgAttr<
|
|
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>;
|
|
361
249
|
/**
|
|
362
250
|
* Audit event type (e.g., "auth", "user", "payment", "system").
|
|
363
251
|
* Used for categorizing and filtering audit events.
|
|
364
252
|
*/
|
|
365
|
-
type:
|
|
253
|
+
type: alepha381.TString;
|
|
366
254
|
/**
|
|
367
255
|
* Specific action performed (e.g., "login", "logout", "create", "update", "delete").
|
|
368
256
|
*/
|
|
369
|
-
action:
|
|
257
|
+
action: alepha381.TString;
|
|
370
258
|
/**
|
|
371
259
|
* Severity level of the event.
|
|
372
260
|
*/
|
|
373
|
-
severity: alepha_orm12.PgAttr<
|
|
261
|
+
severity: alepha_orm12.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm12.PG_DEFAULT>;
|
|
374
262
|
/**
|
|
375
263
|
* User ID who performed the action (null for system events).
|
|
376
264
|
*/
|
|
377
|
-
userId:
|
|
265
|
+
userId: alepha381.TOptional<alepha381.TString>;
|
|
378
266
|
/**
|
|
379
267
|
* User realm for multi-tenant support.
|
|
380
268
|
*/
|
|
381
|
-
userRealm:
|
|
269
|
+
userRealm: alepha381.TOptional<alepha381.TString>;
|
|
382
270
|
/**
|
|
383
271
|
* User email at the time of the event (denormalized for history).
|
|
384
272
|
*/
|
|
385
|
-
userEmail:
|
|
273
|
+
userEmail: alepha381.TOptional<alepha381.TString>;
|
|
386
274
|
/**
|
|
387
275
|
* Resource type affected (e.g., "user", "order", "file").
|
|
388
276
|
*/
|
|
389
|
-
resourceType:
|
|
277
|
+
resourceType: alepha381.TOptional<alepha381.TString>;
|
|
390
278
|
/**
|
|
391
279
|
* Resource ID affected.
|
|
392
280
|
*/
|
|
393
|
-
resourceId:
|
|
281
|
+
resourceId: alepha381.TOptional<alepha381.TString>;
|
|
394
282
|
/**
|
|
395
283
|
* Human-readable description of the event.
|
|
396
284
|
*/
|
|
397
|
-
description:
|
|
285
|
+
description: alepha381.TOptional<alepha381.TString>;
|
|
398
286
|
/**
|
|
399
287
|
* Additional metadata/context as JSON.
|
|
400
288
|
*/
|
|
401
|
-
metadata:
|
|
289
|
+
metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
|
|
402
290
|
/**
|
|
403
291
|
* Client IP address.
|
|
404
292
|
*/
|
|
405
|
-
ipAddress:
|
|
293
|
+
ipAddress: alepha381.TOptional<alepha381.TString>;
|
|
406
294
|
/**
|
|
407
295
|
* Client user agent.
|
|
408
296
|
*/
|
|
409
|
-
userAgent:
|
|
297
|
+
userAgent: alepha381.TOptional<alepha381.TString>;
|
|
410
298
|
/**
|
|
411
299
|
* Session ID if applicable.
|
|
412
300
|
*/
|
|
413
|
-
sessionId:
|
|
301
|
+
sessionId: alepha381.TOptional<alepha381.TString>;
|
|
414
302
|
/**
|
|
415
303
|
* Request ID for correlation.
|
|
416
304
|
*/
|
|
417
|
-
requestId:
|
|
305
|
+
requestId: alepha381.TOptional<alepha381.TString>;
|
|
418
306
|
/**
|
|
419
307
|
* Whether the action was successful.
|
|
420
308
|
*/
|
|
421
|
-
success: alepha_orm12.PgAttr<
|
|
309
|
+
success: alepha_orm12.PgAttr<alepha381.TBoolean, typeof alepha_orm12.PG_DEFAULT>;
|
|
422
310
|
/**
|
|
423
311
|
* Error message if the action failed.
|
|
424
312
|
*/
|
|
425
|
-
errorMessage:
|
|
313
|
+
errorMessage: alepha381.TOptional<alepha381.TString>;
|
|
426
314
|
}>>;
|
|
427
|
-
declare const auditEntitySchema:
|
|
428
|
-
id: alepha_orm12.PgAttr<alepha_orm12.PgAttr<
|
|
429
|
-
createdAt: alepha_orm12.PgAttr<alepha_orm12.PgAttr<
|
|
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>;
|
|
430
318
|
/**
|
|
431
319
|
* Audit event type (e.g., "auth", "user", "payment", "system").
|
|
432
320
|
* Used for categorizing and filtering audit events.
|
|
433
321
|
*/
|
|
434
|
-
type:
|
|
322
|
+
type: alepha381.TString;
|
|
435
323
|
/**
|
|
436
324
|
* Specific action performed (e.g., "login", "logout", "create", "update", "delete").
|
|
437
325
|
*/
|
|
438
|
-
action:
|
|
326
|
+
action: alepha381.TString;
|
|
439
327
|
/**
|
|
440
328
|
* Severity level of the event.
|
|
441
329
|
*/
|
|
442
|
-
severity: alepha_orm12.PgAttr<
|
|
330
|
+
severity: alepha_orm12.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm12.PG_DEFAULT>;
|
|
443
331
|
/**
|
|
444
332
|
* User ID who performed the action (null for system events).
|
|
445
333
|
*/
|
|
446
|
-
userId:
|
|
334
|
+
userId: alepha381.TOptional<alepha381.TString>;
|
|
447
335
|
/**
|
|
448
336
|
* User realm for multi-tenant support.
|
|
449
337
|
*/
|
|
450
|
-
userRealm:
|
|
338
|
+
userRealm: alepha381.TOptional<alepha381.TString>;
|
|
451
339
|
/**
|
|
452
340
|
* User email at the time of the event (denormalized for history).
|
|
453
341
|
*/
|
|
454
|
-
userEmail:
|
|
342
|
+
userEmail: alepha381.TOptional<alepha381.TString>;
|
|
455
343
|
/**
|
|
456
344
|
* Resource type affected (e.g., "user", "order", "file").
|
|
457
345
|
*/
|
|
458
|
-
resourceType:
|
|
346
|
+
resourceType: alepha381.TOptional<alepha381.TString>;
|
|
459
347
|
/**
|
|
460
348
|
* Resource ID affected.
|
|
461
349
|
*/
|
|
462
|
-
resourceId:
|
|
350
|
+
resourceId: alepha381.TOptional<alepha381.TString>;
|
|
463
351
|
/**
|
|
464
352
|
* Human-readable description of the event.
|
|
465
353
|
*/
|
|
466
|
-
description:
|
|
354
|
+
description: alepha381.TOptional<alepha381.TString>;
|
|
467
355
|
/**
|
|
468
356
|
* Additional metadata/context as JSON.
|
|
469
357
|
*/
|
|
470
|
-
metadata:
|
|
358
|
+
metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
|
|
471
359
|
/**
|
|
472
360
|
* Client IP address.
|
|
473
361
|
*/
|
|
474
|
-
ipAddress:
|
|
362
|
+
ipAddress: alepha381.TOptional<alepha381.TString>;
|
|
475
363
|
/**
|
|
476
364
|
* Client user agent.
|
|
477
365
|
*/
|
|
478
|
-
userAgent:
|
|
366
|
+
userAgent: alepha381.TOptional<alepha381.TString>;
|
|
479
367
|
/**
|
|
480
368
|
* Session ID if applicable.
|
|
481
369
|
*/
|
|
482
|
-
sessionId:
|
|
370
|
+
sessionId: alepha381.TOptional<alepha381.TString>;
|
|
483
371
|
/**
|
|
484
372
|
* Request ID for correlation.
|
|
485
373
|
*/
|
|
486
|
-
requestId:
|
|
374
|
+
requestId: alepha381.TOptional<alepha381.TString>;
|
|
487
375
|
/**
|
|
488
376
|
* Whether the action was successful.
|
|
489
377
|
*/
|
|
490
|
-
success: alepha_orm12.PgAttr<
|
|
378
|
+
success: alepha_orm12.PgAttr<alepha381.TBoolean, typeof alepha_orm12.PG_DEFAULT>;
|
|
491
379
|
/**
|
|
492
380
|
* Error message if the action failed.
|
|
493
381
|
*/
|
|
494
|
-
errorMessage:
|
|
382
|
+
errorMessage: alepha381.TOptional<alepha381.TString>;
|
|
495
383
|
}>;
|
|
496
|
-
declare const auditEntityInsertSchema: alepha_orm12.TObjectInsert<
|
|
497
|
-
id: alepha_orm12.PgAttr<alepha_orm12.PgAttr<
|
|
498
|
-
createdAt: alepha_orm12.PgAttr<alepha_orm12.PgAttr<
|
|
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>;
|
|
499
387
|
/**
|
|
500
388
|
* Audit event type (e.g., "auth", "user", "payment", "system").
|
|
501
389
|
* Used for categorizing and filtering audit events.
|
|
502
390
|
*/
|
|
503
|
-
type:
|
|
391
|
+
type: alepha381.TString;
|
|
504
392
|
/**
|
|
505
393
|
* Specific action performed (e.g., "login", "logout", "create", "update", "delete").
|
|
506
394
|
*/
|
|
507
|
-
action:
|
|
395
|
+
action: alepha381.TString;
|
|
508
396
|
/**
|
|
509
397
|
* Severity level of the event.
|
|
510
398
|
*/
|
|
511
|
-
severity: alepha_orm12.PgAttr<
|
|
399
|
+
severity: alepha_orm12.PgAttr<alepha381.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm12.PG_DEFAULT>;
|
|
512
400
|
/**
|
|
513
401
|
* User ID who performed the action (null for system events).
|
|
514
402
|
*/
|
|
515
|
-
userId:
|
|
403
|
+
userId: alepha381.TOptional<alepha381.TString>;
|
|
516
404
|
/**
|
|
517
405
|
* User realm for multi-tenant support.
|
|
518
406
|
*/
|
|
519
|
-
userRealm:
|
|
407
|
+
userRealm: alepha381.TOptional<alepha381.TString>;
|
|
520
408
|
/**
|
|
521
409
|
* User email at the time of the event (denormalized for history).
|
|
522
410
|
*/
|
|
523
|
-
userEmail:
|
|
411
|
+
userEmail: alepha381.TOptional<alepha381.TString>;
|
|
524
412
|
/**
|
|
525
413
|
* Resource type affected (e.g., "user", "order", "file").
|
|
526
414
|
*/
|
|
527
|
-
resourceType:
|
|
415
|
+
resourceType: alepha381.TOptional<alepha381.TString>;
|
|
528
416
|
/**
|
|
529
417
|
* Resource ID affected.
|
|
530
418
|
*/
|
|
531
|
-
resourceId:
|
|
419
|
+
resourceId: alepha381.TOptional<alepha381.TString>;
|
|
532
420
|
/**
|
|
533
421
|
* Human-readable description of the event.
|
|
534
422
|
*/
|
|
535
|
-
description:
|
|
423
|
+
description: alepha381.TOptional<alepha381.TString>;
|
|
536
424
|
/**
|
|
537
425
|
* Additional metadata/context as JSON.
|
|
538
426
|
*/
|
|
539
|
-
metadata:
|
|
427
|
+
metadata: alepha381.TOptional<alepha381.TRecord<string, alepha381.TAny>>;
|
|
540
428
|
/**
|
|
541
429
|
* Client IP address.
|
|
542
430
|
*/
|
|
543
|
-
ipAddress:
|
|
431
|
+
ipAddress: alepha381.TOptional<alepha381.TString>;
|
|
544
432
|
/**
|
|
545
433
|
* Client user agent.
|
|
546
434
|
*/
|
|
547
|
-
userAgent:
|
|
435
|
+
userAgent: alepha381.TOptional<alepha381.TString>;
|
|
548
436
|
/**
|
|
549
437
|
* Session ID if applicable.
|
|
550
438
|
*/
|
|
551
|
-
sessionId:
|
|
439
|
+
sessionId: alepha381.TOptional<alepha381.TString>;
|
|
552
440
|
/**
|
|
553
441
|
* Request ID for correlation.
|
|
554
442
|
*/
|
|
555
|
-
requestId:
|
|
443
|
+
requestId: alepha381.TOptional<alepha381.TString>;
|
|
556
444
|
/**
|
|
557
445
|
* Whether the action was successful.
|
|
558
446
|
*/
|
|
559
|
-
success: alepha_orm12.PgAttr<
|
|
447
|
+
success: alepha_orm12.PgAttr<alepha381.TBoolean, typeof alepha_orm12.PG_DEFAULT>;
|
|
560
448
|
/**
|
|
561
449
|
* Error message if the action failed.
|
|
562
450
|
*/
|
|
563
|
-
errorMessage:
|
|
451
|
+
errorMessage: alepha381.TOptional<alepha381.TString>;
|
|
564
452
|
}>>;
|
|
565
453
|
type AuditEntity = Static<typeof audits.schema>;
|
|
566
454
|
//#endregion
|
|
@@ -568,21 +456,21 @@ type AuditEntity = Static<typeof audits.schema>;
|
|
|
568
456
|
/**
|
|
569
457
|
* Query schema for searching and filtering audit logs.
|
|
570
458
|
*/
|
|
571
|
-
declare const auditQuerySchema:
|
|
572
|
-
page:
|
|
573
|
-
size:
|
|
574
|
-
sort:
|
|
575
|
-
type:
|
|
576
|
-
action:
|
|
577
|
-
severity:
|
|
578
|
-
userId:
|
|
579
|
-
userRealm:
|
|
580
|
-
resourceType:
|
|
581
|
-
resourceId:
|
|
582
|
-
success:
|
|
583
|
-
from:
|
|
584
|
-
to:
|
|
585
|
-
search:
|
|
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>;
|
|
586
474
|
}>;
|
|
587
475
|
type AuditQuery = Static<typeof auditQuerySchema>;
|
|
588
476
|
//#endregion
|
|
@@ -590,23 +478,23 @@ type AuditQuery = Static<typeof auditQuerySchema>;
|
|
|
590
478
|
/**
|
|
591
479
|
* Schema for creating a new audit log entry.
|
|
592
480
|
*/
|
|
593
|
-
declare const createAuditSchema:
|
|
594
|
-
type:
|
|
595
|
-
action:
|
|
596
|
-
severity:
|
|
597
|
-
userId:
|
|
598
|
-
userRealm:
|
|
599
|
-
userEmail:
|
|
600
|
-
resourceType:
|
|
601
|
-
resourceId:
|
|
602
|
-
description:
|
|
603
|
-
metadata:
|
|
604
|
-
ipAddress:
|
|
605
|
-
userAgent:
|
|
606
|
-
sessionId:
|
|
607
|
-
requestId:
|
|
608
|
-
success:
|
|
609
|
-
errorMessage:
|
|
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>;
|
|
610
498
|
}>;
|
|
611
499
|
type CreateAudit = Static<typeof createAuditSchema>;
|
|
612
500
|
//#endregion
|
|
@@ -631,25 +519,25 @@ interface AuditTypeDefinition {
|
|
|
631
519
|
declare class AuditService {
|
|
632
520
|
protected readonly alepha: Alepha;
|
|
633
521
|
protected readonly log: alepha_logger0.Logger;
|
|
634
|
-
protected readonly repo: alepha_orm12.Repository<
|
|
635
|
-
id: alepha_orm12.PgAttr<alepha_orm12.PgAttr<
|
|
636
|
-
createdAt: alepha_orm12.PgAttr<alepha_orm12.PgAttr<
|
|
637
|
-
type:
|
|
638
|
-
action:
|
|
639
|
-
severity: alepha_orm12.PgAttr<
|
|
640
|
-
userId:
|
|
641
|
-
userRealm:
|
|
642
|
-
userEmail:
|
|
643
|
-
resourceType:
|
|
644
|
-
resourceId:
|
|
645
|
-
description:
|
|
646
|
-
metadata:
|
|
647
|
-
ipAddress:
|
|
648
|
-
userAgent:
|
|
649
|
-
sessionId:
|
|
650
|
-
requestId:
|
|
651
|
-
success: alepha_orm12.PgAttr<
|
|
652
|
-
errorMessage:
|
|
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>;
|
|
653
541
|
}>>;
|
|
654
542
|
/**
|
|
655
543
|
* Registry of audit types and their allowed actions.
|
|
@@ -754,237 +642,237 @@ declare class AdminAuditController {
|
|
|
754
642
|
* Find audit entries with filtering and pagination.
|
|
755
643
|
*/
|
|
756
644
|
readonly findAudits: alepha_server0.ActionPrimitiveFn<{
|
|
757
|
-
query:
|
|
758
|
-
page:
|
|
759
|
-
size:
|
|
760
|
-
sort:
|
|
761
|
-
type:
|
|
762
|
-
action:
|
|
763
|
-
severity:
|
|
764
|
-
userId:
|
|
765
|
-
userRealm:
|
|
766
|
-
resourceType:
|
|
767
|
-
resourceId:
|
|
768
|
-
success:
|
|
769
|
-
from:
|
|
770
|
-
to:
|
|
771
|
-
search:
|
|
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>;
|
|
772
660
|
}>;
|
|
773
|
-
response:
|
|
774
|
-
id: PgAttr<PgAttr<
|
|
775
|
-
createdAt: PgAttr<PgAttr<
|
|
776
|
-
type:
|
|
777
|
-
action:
|
|
778
|
-
severity: PgAttr<
|
|
779
|
-
userId:
|
|
780
|
-
userRealm:
|
|
781
|
-
userEmail:
|
|
782
|
-
resourceType:
|
|
783
|
-
resourceId:
|
|
784
|
-
description:
|
|
785
|
-
metadata:
|
|
786
|
-
ipAddress:
|
|
787
|
-
userAgent:
|
|
788
|
-
sessionId:
|
|
789
|
-
requestId:
|
|
790
|
-
success: PgAttr<
|
|
791
|
-
errorMessage:
|
|
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>;
|
|
792
680
|
}>>;
|
|
793
681
|
}>;
|
|
794
682
|
/**
|
|
795
683
|
* Get a single audit entry by ID.
|
|
796
684
|
*/
|
|
797
685
|
readonly getAudit: alepha_server0.ActionPrimitiveFn<{
|
|
798
|
-
params:
|
|
799
|
-
id:
|
|
686
|
+
params: alepha381.TObject<{
|
|
687
|
+
id: alepha381.TString;
|
|
800
688
|
}>;
|
|
801
|
-
response:
|
|
802
|
-
id: PgAttr<PgAttr<
|
|
803
|
-
createdAt: PgAttr<PgAttr<
|
|
804
|
-
type:
|
|
805
|
-
action:
|
|
806
|
-
severity: PgAttr<
|
|
807
|
-
userId:
|
|
808
|
-
userRealm:
|
|
809
|
-
userEmail:
|
|
810
|
-
resourceType:
|
|
811
|
-
resourceId:
|
|
812
|
-
description:
|
|
813
|
-
metadata:
|
|
814
|
-
ipAddress:
|
|
815
|
-
userAgent:
|
|
816
|
-
sessionId:
|
|
817
|
-
requestId:
|
|
818
|
-
success: PgAttr<
|
|
819
|
-
errorMessage:
|
|
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>;
|
|
820
708
|
}>;
|
|
821
709
|
}>;
|
|
822
710
|
/**
|
|
823
711
|
* Create a new audit entry.
|
|
824
712
|
*/
|
|
825
713
|
readonly createAudit: alepha_server0.ActionPrimitiveFn<{
|
|
826
|
-
body:
|
|
827
|
-
type:
|
|
828
|
-
action:
|
|
829
|
-
severity:
|
|
830
|
-
userId:
|
|
831
|
-
userRealm:
|
|
832
|
-
userEmail:
|
|
833
|
-
resourceType:
|
|
834
|
-
resourceId:
|
|
835
|
-
description:
|
|
836
|
-
metadata:
|
|
837
|
-
ipAddress:
|
|
838
|
-
userAgent:
|
|
839
|
-
sessionId:
|
|
840
|
-
requestId:
|
|
841
|
-
success:
|
|
842
|
-
errorMessage:
|
|
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>;
|
|
843
731
|
}>;
|
|
844
|
-
response:
|
|
845
|
-
id: PgAttr<PgAttr<
|
|
846
|
-
createdAt: PgAttr<PgAttr<
|
|
847
|
-
type:
|
|
848
|
-
action:
|
|
849
|
-
severity: PgAttr<
|
|
850
|
-
userId:
|
|
851
|
-
userRealm:
|
|
852
|
-
userEmail:
|
|
853
|
-
resourceType:
|
|
854
|
-
resourceId:
|
|
855
|
-
description:
|
|
856
|
-
metadata:
|
|
857
|
-
ipAddress:
|
|
858
|
-
userAgent:
|
|
859
|
-
sessionId:
|
|
860
|
-
requestId:
|
|
861
|
-
success: PgAttr<
|
|
862
|
-
errorMessage:
|
|
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>;
|
|
863
751
|
}>;
|
|
864
752
|
}>;
|
|
865
753
|
/**
|
|
866
754
|
* Get audit entries for a specific user.
|
|
867
755
|
*/
|
|
868
756
|
readonly findByUser: alepha_server0.ActionPrimitiveFn<{
|
|
869
|
-
params:
|
|
870
|
-
userId:
|
|
757
|
+
params: alepha381.TObject<{
|
|
758
|
+
userId: alepha381.TString;
|
|
871
759
|
}>;
|
|
872
|
-
query:
|
|
873
|
-
type:
|
|
874
|
-
search:
|
|
875
|
-
action:
|
|
876
|
-
severity:
|
|
877
|
-
sort:
|
|
878
|
-
userRealm:
|
|
879
|
-
resourceType:
|
|
880
|
-
resourceId:
|
|
881
|
-
success:
|
|
882
|
-
page:
|
|
883
|
-
size:
|
|
884
|
-
from:
|
|
885
|
-
to:
|
|
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>;
|
|
886
774
|
}>;
|
|
887
|
-
response:
|
|
888
|
-
id: PgAttr<PgAttr<
|
|
889
|
-
createdAt: PgAttr<PgAttr<
|
|
890
|
-
type:
|
|
891
|
-
action:
|
|
892
|
-
severity: PgAttr<
|
|
893
|
-
userId:
|
|
894
|
-
userRealm:
|
|
895
|
-
userEmail:
|
|
896
|
-
resourceType:
|
|
897
|
-
resourceId:
|
|
898
|
-
description:
|
|
899
|
-
metadata:
|
|
900
|
-
ipAddress:
|
|
901
|
-
userAgent:
|
|
902
|
-
sessionId:
|
|
903
|
-
requestId:
|
|
904
|
-
success: PgAttr<
|
|
905
|
-
errorMessage:
|
|
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>;
|
|
906
794
|
}>>;
|
|
907
795
|
}>;
|
|
908
796
|
/**
|
|
909
797
|
* Get audit entries for a specific resource.
|
|
910
798
|
*/
|
|
911
799
|
readonly findByResource: alepha_server0.ActionPrimitiveFn<{
|
|
912
|
-
params:
|
|
913
|
-
resourceType:
|
|
914
|
-
resourceId:
|
|
800
|
+
params: alepha381.TObject<{
|
|
801
|
+
resourceType: alepha381.TString;
|
|
802
|
+
resourceId: alepha381.TString;
|
|
915
803
|
}>;
|
|
916
|
-
query:
|
|
917
|
-
type:
|
|
918
|
-
search:
|
|
919
|
-
action:
|
|
920
|
-
severity:
|
|
921
|
-
sort:
|
|
922
|
-
userId:
|
|
923
|
-
userRealm:
|
|
924
|
-
success:
|
|
925
|
-
page:
|
|
926
|
-
size:
|
|
927
|
-
from:
|
|
928
|
-
to:
|
|
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>;
|
|
929
817
|
}>;
|
|
930
|
-
response:
|
|
931
|
-
id: PgAttr<PgAttr<
|
|
932
|
-
createdAt: PgAttr<PgAttr<
|
|
933
|
-
type:
|
|
934
|
-
action:
|
|
935
|
-
severity: PgAttr<
|
|
936
|
-
userId:
|
|
937
|
-
userRealm:
|
|
938
|
-
userEmail:
|
|
939
|
-
resourceType:
|
|
940
|
-
resourceId:
|
|
941
|
-
description:
|
|
942
|
-
metadata:
|
|
943
|
-
ipAddress:
|
|
944
|
-
userAgent:
|
|
945
|
-
sessionId:
|
|
946
|
-
requestId:
|
|
947
|
-
success: PgAttr<
|
|
948
|
-
errorMessage:
|
|
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>;
|
|
949
837
|
}>>;
|
|
950
838
|
}>;
|
|
951
839
|
/**
|
|
952
840
|
* Get audit statistics.
|
|
953
841
|
*/
|
|
954
842
|
readonly getStats: alepha_server0.ActionPrimitiveFn<{
|
|
955
|
-
query:
|
|
956
|
-
from:
|
|
957
|
-
to:
|
|
958
|
-
userRealm:
|
|
843
|
+
query: alepha381.TObject<{
|
|
844
|
+
from: alepha381.TOptional<alepha381.TString>;
|
|
845
|
+
to: alepha381.TOptional<alepha381.TString>;
|
|
846
|
+
userRealm: alepha381.TOptional<alepha381.TString>;
|
|
959
847
|
}>;
|
|
960
|
-
response:
|
|
961
|
-
total:
|
|
962
|
-
byType:
|
|
963
|
-
bySeverity:
|
|
964
|
-
info:
|
|
965
|
-
warning:
|
|
966
|
-
critical:
|
|
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;
|
|
967
855
|
}>;
|
|
968
|
-
successRate:
|
|
969
|
-
recentFailures:
|
|
970
|
-
id: PgAttr<PgAttr<
|
|
971
|
-
createdAt: PgAttr<PgAttr<
|
|
972
|
-
type:
|
|
973
|
-
action:
|
|
974
|
-
severity: PgAttr<
|
|
975
|
-
userId:
|
|
976
|
-
userRealm:
|
|
977
|
-
userEmail:
|
|
978
|
-
resourceType:
|
|
979
|
-
resourceId:
|
|
980
|
-
description:
|
|
981
|
-
metadata:
|
|
982
|
-
ipAddress:
|
|
983
|
-
userAgent:
|
|
984
|
-
sessionId:
|
|
985
|
-
requestId:
|
|
986
|
-
success: PgAttr<
|
|
987
|
-
errorMessage:
|
|
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>;
|
|
988
876
|
}>>;
|
|
989
877
|
}>;
|
|
990
878
|
}>;
|
|
@@ -992,21 +880,21 @@ declare class AdminAuditController {
|
|
|
992
880
|
* Get registered audit types.
|
|
993
881
|
*/
|
|
994
882
|
readonly getTypes: alepha_server0.ActionPrimitiveFn<{
|
|
995
|
-
response:
|
|
996
|
-
type:
|
|
997
|
-
description:
|
|
998
|
-
actions:
|
|
883
|
+
response: alepha381.TArray<alepha381.TObject<{
|
|
884
|
+
type: alepha381.TString;
|
|
885
|
+
description: alepha381.TOptional<alepha381.TString>;
|
|
886
|
+
actions: alepha381.TArray<alepha381.TString>;
|
|
999
887
|
}>>;
|
|
1000
888
|
}>;
|
|
1001
889
|
/**
|
|
1002
890
|
* Get distinct values for filters.
|
|
1003
891
|
*/
|
|
1004
892
|
readonly getFilterOptions: alepha_server0.ActionPrimitiveFn<{
|
|
1005
|
-
response:
|
|
1006
|
-
types:
|
|
1007
|
-
actions:
|
|
1008
|
-
resourceTypes:
|
|
1009
|
-
userRealms:
|
|
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>;
|
|
1010
898
|
}>;
|
|
1011
899
|
}>;
|
|
1012
900
|
}
|
|
@@ -1128,25 +1016,25 @@ declare const $audit: {
|
|
|
1128
1016
|
/**
|
|
1129
1017
|
* Resource schema for audit log responses.
|
|
1130
1018
|
*/
|
|
1131
|
-
declare const auditResourceSchema:
|
|
1132
|
-
id: PgAttr<PgAttr<
|
|
1133
|
-
createdAt: PgAttr<PgAttr<
|
|
1134
|
-
type:
|
|
1135
|
-
action:
|
|
1136
|
-
severity: PgAttr<
|
|
1137
|
-
userId:
|
|
1138
|
-
userRealm:
|
|
1139
|
-
userEmail:
|
|
1140
|
-
resourceType:
|
|
1141
|
-
resourceId:
|
|
1142
|
-
description:
|
|
1143
|
-
metadata:
|
|
1144
|
-
ipAddress:
|
|
1145
|
-
userAgent:
|
|
1146
|
-
sessionId:
|
|
1147
|
-
requestId:
|
|
1148
|
-
success: PgAttr<
|
|
1149
|
-
errorMessage:
|
|
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>;
|
|
1150
1038
|
}>;
|
|
1151
1039
|
type AuditResource = Static<typeof auditResourceSchema>;
|
|
1152
1040
|
//#endregion
|
|
@@ -1189,7 +1077,7 @@ type AuditResource = Static<typeof auditResourceSchema>;
|
|
|
1189
1077
|
* }
|
|
1190
1078
|
* ```
|
|
1191
1079
|
*/
|
|
1192
|
-
declare const AlephaApiAudits:
|
|
1080
|
+
declare const AlephaApiAudits: alepha381.Service<alepha381.Module>;
|
|
1193
1081
|
//#endregion
|
|
1194
1082
|
export { $audit, AdminAuditController, AlephaApiAudits, AuditEntity, AuditLogOptions, AuditPrimitive, AuditPrimitiveOptions, AuditQuery, AuditResource, AuditService, AuditSeverity, AuditStats, AuditTypeDefinition, CreateAudit, auditEntityInsertSchema, auditEntitySchema, auditQuerySchema, auditResourceSchema, auditSeveritySchema, audits, createAuditSchema };
|
|
1195
1083
|
//# sourceMappingURL=index.d.ts.map
|