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