alepha 0.13.7 → 0.14.0
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 +5 -2
- package/assets/swagger-ui/swagger-ui-bundle.js +1 -1
- package/assets/swagger-ui/swagger-ui-standalone-preset.js +1 -1
- package/assets/swagger-ui/swagger-ui.css +1 -1
- package/dist/{api-audits → api/audits}/index.browser.js +4 -4
- package/dist/api/audits/index.browser.js.map +1 -0
- package/dist/{api-audits → api/audits}/index.d.ts +10 -9
- package/dist/api/audits/index.d.ts.map +1 -0
- package/dist/{api-audits → api/audits}/index.js +8 -8
- package/dist/api/audits/index.js.map +1 -0
- package/dist/{api-files → api/files}/index.browser.js +5 -5
- package/dist/api/files/index.browser.js.map +1 -0
- package/dist/{api-files → api/files}/index.d.ts +18 -10
- package/dist/api/files/index.d.ts.map +1 -0
- package/dist/{api-files → api/files}/index.js +10 -10
- package/dist/api/files/index.js.map +1 -0
- package/dist/{api-jobs → api/jobs}/index.browser.js +5 -5
- package/dist/api/jobs/index.browser.js.map +1 -0
- package/dist/{api-jobs → api/jobs}/index.d.ts +168 -167
- package/dist/api/jobs/index.d.ts.map +1 -0
- package/dist/{api-jobs → api/jobs}/index.js +9 -9
- package/dist/api/jobs/index.js.map +1 -0
- package/dist/{api-notifications → api/notifications}/index.browser.js +11 -11
- package/dist/api/notifications/index.browser.js.map +1 -0
- package/dist/api/notifications/index.d.ts +327 -0
- package/dist/api/notifications/index.d.ts.map +1 -0
- package/dist/{api-notifications → api/notifications}/index.js +11 -11
- package/dist/api/notifications/index.js.map +1 -0
- package/dist/{api-parameters → api/parameters}/index.browser.js +2 -2
- package/dist/api/parameters/index.browser.js.map +1 -0
- package/dist/{api-parameters → api/parameters}/index.d.ts +11 -11
- package/dist/api/parameters/index.d.ts.map +1 -0
- package/dist/{api-parameters → api/parameters}/index.js +7 -7
- package/dist/api/parameters/index.js.map +1 -0
- package/dist/{api-users → api/users}/index.browser.js +6 -6
- package/dist/api/users/index.browser.js.map +1 -0
- package/dist/{api-users → api/users}/index.d.ts +836 -836
- package/dist/api/users/index.d.ts.map +1 -0
- package/dist/{api-users → api/users}/index.js +99 -766
- package/dist/api/users/index.js.map +1 -0
- package/dist/{api-verifications → api/verifications}/index.browser.js +5 -5
- package/dist/api/verifications/index.browser.js.map +1 -0
- package/dist/api/verifications/index.d.ts +248 -0
- package/dist/api/verifications/index.d.ts.map +1 -0
- package/dist/{api-verifications → api/verifications}/index.js +11 -11
- package/dist/api/verifications/index.js.map +1 -0
- package/dist/batch/index.d.ts.map +1 -0
- package/dist/bucket/index.d.ts.map +1 -0
- package/dist/cache/{index.d.ts → core/index.d.ts} +4 -4
- package/dist/cache/core/index.d.ts.map +1 -0
- package/dist/cache/{index.js → core/index.js} +5 -5
- package/dist/cache/core/index.js.map +1 -0
- package/dist/{cache-redis → cache/redis}/index.d.ts +2 -2
- package/dist/cache/redis/index.d.ts.map +1 -0
- package/dist/{cache-redis → cache/redis}/index.js +2 -2
- package/dist/cache/redis/index.js.map +1 -0
- package/dist/cli/index.d.ts +78 -58
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +454 -154
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +15 -5
- package/dist/command/index.d.ts.map +1 -0
- package/dist/command/index.js +45 -6
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +1334 -1318
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +75 -71
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +1337 -1321
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +1337 -1321
- package/dist/core/index.native.js.map +1 -1
- package/dist/datetime/index.d.ts.map +1 -0
- package/dist/email/index.d.ts.map +1 -0
- package/dist/fake/index.d.ts.map +1 -0
- package/dist/file/index.d.ts.map +1 -0
- package/dist/lock/{index.d.ts → core/index.d.ts} +5 -5
- package/dist/lock/core/index.d.ts.map +1 -0
- package/dist/lock/{index.js → core/index.js} +5 -5
- package/dist/lock/core/index.js.map +1 -0
- package/dist/{lock-redis → lock/redis}/index.d.ts +2 -2
- package/dist/lock/redis/index.d.ts.map +1 -0
- package/dist/{lock-redis → lock/redis}/index.js +2 -2
- package/dist/lock/redis/index.js.map +1 -0
- package/dist/logger/index.d.ts +1 -0
- package/dist/logger/index.d.ts.map +1 -0
- package/dist/mcp/index.d.ts +820 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +978 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/orm/index.d.ts +180 -107
- package/dist/orm/index.d.ts.map +1 -0
- package/dist/orm/index.js +260 -174
- package/dist/orm/index.js.map +1 -1
- package/dist/queue/core/index.d.ts +548 -0
- package/dist/queue/core/index.d.ts.map +1 -0
- package/dist/queue/core/index.js +391 -0
- package/dist/queue/core/index.js.map +1 -0
- package/dist/queue/redis/index.d.ts +28 -0
- package/dist/queue/redis/index.d.ts.map +1 -0
- package/dist/queue/redis/index.js +43 -0
- package/dist/queue/redis/index.js.map +1 -0
- package/dist/redis/index.d.ts.map +1 -0
- package/dist/retry/index.d.ts.map +1 -0
- package/dist/router/index.d.ts.map +1 -0
- package/dist/scheduler/index.d.ts +1 -1
- package/dist/scheduler/index.d.ts.map +1 -0
- package/dist/scheduler/index.js +1 -393
- package/dist/scheduler/index.js.map +1 -1
- package/dist/security/index.d.ts +1 -1
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +2 -1413
- package/dist/security/index.js.map +1 -1
- package/dist/{server-auth → server/auth}/index.browser.js +6 -6
- package/dist/server/auth/index.browser.js.map +1 -0
- package/dist/{server-auth → server/auth}/index.d.ts +167 -167
- package/dist/server/auth/index.d.ts.map +1 -0
- package/dist/server/auth/index.js +742 -0
- package/dist/server/auth/index.js.map +1 -0
- package/dist/{server-cache → server/cache}/index.d.ts +2 -2
- package/dist/server/cache/index.d.ts.map +1 -0
- package/dist/{server-cache → server/cache}/index.js +2 -2
- package/dist/server/cache/index.js.map +1 -0
- package/dist/{server-compress → server/compress}/index.d.ts +2 -2
- package/dist/server/compress/index.d.ts.map +1 -0
- package/dist/{server-compress → server/compress}/index.js +2 -2
- package/dist/server/compress/index.js.map +1 -0
- package/dist/{server-cookies → server/cookies}/index.browser.js +3 -3
- package/dist/server/cookies/index.browser.js.map +1 -0
- package/dist/{server-cookies → server/cookies}/index.d.ts +4 -4
- package/dist/server/cookies/index.d.ts.map +1 -0
- package/dist/{server-cookies → server/cookies}/index.js +4 -4
- package/dist/server/cookies/index.js.map +1 -0
- package/dist/server/{index.browser.js → core/index.browser.js} +14 -14
- package/dist/server/core/index.browser.js.map +1 -0
- package/dist/server/{index.d.ts → core/index.d.ts} +36 -36
- package/dist/server/core/index.d.ts.map +1 -0
- package/dist/server/{index.js → core/index.js} +27 -27
- package/dist/server/core/index.js.map +1 -0
- package/dist/{server-cors → server/cors}/index.d.ts +3 -3
- package/dist/server/cors/index.d.ts.map +1 -0
- package/dist/{server-cors → server/cors}/index.js +3 -3
- package/dist/server/cors/index.js.map +1 -0
- package/dist/{server-health → server/health}/index.d.ts +3 -3
- package/dist/server/health/index.d.ts.map +1 -0
- package/dist/{server-health → server/health}/index.js +3 -3
- package/dist/server/health/index.js.map +1 -0
- package/dist/{server-helmet → server/helmet}/index.d.ts +2 -2
- package/dist/server/helmet/index.d.ts.map +1 -0
- package/dist/{server-helmet → server/helmet}/index.js +2 -2
- package/dist/server/helmet/index.js.map +1 -0
- package/dist/{server-links → server/links}/index.browser.js +5 -5
- package/dist/server/links/index.browser.js.map +1 -0
- package/dist/{server-links → server/links}/index.d.ts +40 -40
- package/dist/server/links/index.d.ts.map +1 -0
- package/dist/{server-links → server/links}/index.js +7 -7
- package/dist/server/links/index.js.map +1 -0
- package/dist/{server-metrics → server/metrics}/index.d.ts +2 -2
- package/dist/server/metrics/index.d.ts.map +1 -0
- package/dist/server/metrics/index.js +74 -0
- package/dist/server/metrics/index.js.map +1 -0
- package/dist/{server-multipart → server/multipart}/index.d.ts +2 -2
- package/dist/server/multipart/index.d.ts.map +1 -0
- package/dist/{server-multipart → server/multipart}/index.js +2 -2
- package/dist/server/multipart/index.js.map +1 -0
- package/dist/{server-proxy → server/proxy}/index.d.ts +3 -3
- package/dist/server/proxy/index.d.ts.map +1 -0
- package/dist/{server-proxy → server/proxy}/index.js +3 -3
- package/dist/server/proxy/index.js.map +1 -0
- package/dist/{server-rate-limit → server/rate-limit}/index.d.ts +4 -4
- package/dist/server/rate-limit/index.d.ts.map +1 -0
- package/dist/{server-rate-limit → server/rate-limit}/index.js +4 -4
- package/dist/server/rate-limit/index.js.map +1 -0
- package/dist/{server-security → server/security}/index.browser.js +1 -1
- package/dist/server/security/index.browser.js.map +1 -0
- package/dist/{server-security → server/security}/index.d.ts +4 -4
- package/dist/server/security/index.d.ts.map +1 -0
- package/dist/{server-security → server/security}/index.js +4 -4
- package/dist/server/security/index.js.map +1 -0
- package/dist/{server-static → server/static}/index.d.ts +3 -3
- package/dist/server/static/index.d.ts.map +1 -0
- package/dist/{server-static → server/static}/index.js +3 -3
- package/dist/server/static/index.js.map +1 -0
- package/dist/{server-swagger → server/swagger}/index.d.ts +3 -3
- package/dist/server/swagger/index.d.ts.map +1 -0
- package/dist/{server-swagger → server/swagger}/index.js +4 -4
- package/dist/server/swagger/index.js.map +1 -0
- package/dist/sms/index.d.ts.map +1 -0
- package/dist/thread/index.d.ts.map +1 -0
- package/dist/topic/{index.d.ts → core/index.d.ts} +6 -6
- package/dist/topic/core/index.d.ts.map +1 -0
- package/dist/topic/{index.js → core/index.js} +6 -6
- package/dist/topic/core/index.js.map +1 -0
- package/dist/{topic-redis → topic/redis}/index.d.ts +2 -2
- package/dist/topic/redis/index.d.ts.map +1 -0
- package/dist/{topic-redis → topic/redis}/index.js +2 -2
- package/dist/topic/redis/index.js.map +1 -0
- package/dist/vite/index.d.ts +21 -2
- package/dist/vite/index.d.ts.map +1 -0
- package/dist/vite/index.js +48 -19
- package/dist/vite/index.js.map +1 -1
- package/dist/websocket/index.d.ts.map +1 -0
- package/package.json +162 -158
- package/src/{api-files → api/files}/index.ts +1 -0
- package/src/{api-parameters → api/parameters}/index.ts +1 -1
- package/src/{api-users → api/users}/primitives/$userRealm.ts +1 -1
- package/src/{api-users → api/users}/providers/UserRealmProvider.ts +6 -7
- package/src/{api-verifications → api/verifications}/index.ts +2 -0
- package/src/cli/apps/AlephaCli.ts +2 -0
- package/src/cli/apps/AlephaPackageBuilderCli.ts +83 -54
- package/src/cli/assets/appRouterTs.ts +1 -1
- package/src/cli/assets/biomeJson.ts +1 -1
- package/src/cli/assets/indexHtml.ts +1 -1
- package/src/cli/assets/mainBrowserTs.ts +1 -1
- package/src/cli/assets/mainTs.ts +9 -10
- package/src/cli/assets/viteConfigTs.ts +1 -1
- package/src/cli/commands/ChangelogCommands.ts +389 -0
- package/src/cli/commands/CoreCommands.ts +10 -6
- package/src/cli/commands/DrizzleCommands.ts +204 -4
- package/src/cli/commands/VerifyCommands.ts +4 -1
- package/src/cli/commands/ViteCommands.ts +46 -25
- package/src/cli/services/AlephaCliUtils.ts +52 -164
- package/src/command/providers/CliProvider.ts +76 -5
- package/src/core/providers/SchemaValidator.ts +24 -2
- package/src/mcp/errors/McpError.ts +72 -0
- package/src/mcp/helpers/jsonrpc.ts +163 -0
- package/src/mcp/index.ts +132 -0
- package/src/mcp/interfaces/McpTypes.ts +248 -0
- package/src/mcp/primitives/$prompt.ts +188 -0
- package/src/mcp/primitives/$resource.ts +171 -0
- package/src/mcp/primitives/$tool.ts +285 -0
- package/src/mcp/providers/McpServerProvider.ts +382 -0
- package/src/mcp/transports/SseMcpTransport.ts +172 -0
- package/src/mcp/transports/StdioMcpTransport.ts +126 -0
- package/src/orm/index.ts +12 -0
- package/src/orm/providers/drivers/CloudflareD1Provider.ts +164 -0
- package/src/orm/providers/drivers/NodeSqliteProvider.ts +3 -1
- package/src/queue/{index.ts → core/index.ts} +2 -3
- package/src/queue/{primitives → core/primitives}/$queue.ts +17 -162
- package/src/queue/core/providers/MemoryQueueProvider.ts +19 -0
- package/src/queue/core/providers/QueueProvider.ts +23 -0
- package/src/queue/core/providers/WorkerProvider.ts +244 -0
- package/src/queue/redis/providers/RedisQueueProvider.ts +31 -0
- package/src/server/{index.ts → core/index.ts} +1 -0
- package/src/{server-rate-limit → server/rate-limit}/index.ts +1 -1
- package/src/{server-swagger → server/swagger}/providers/ServerSwaggerProvider.ts +1 -0
- package/src/vite/plugins/viteAlephaBuild.ts +8 -2
- package/src/vite/plugins/viteAlephaDev.ts +6 -2
- package/src/vite/tasks/buildServer.ts +1 -1
- package/src/vite/tasks/copyAssets.ts +32 -8
- package/src/vite/tasks/generateCloudflare.ts +43 -15
- package/src/vite/tasks/runAlepha.ts +1 -0
- package/dist/api-audits/index.browser.js.map +0 -1
- package/dist/api-audits/index.js.map +0 -1
- package/dist/api-files/index.browser.js.map +0 -1
- package/dist/api-files/index.js.map +0 -1
- package/dist/api-jobs/index.browser.js.map +0 -1
- package/dist/api-jobs/index.js.map +0 -1
- package/dist/api-notifications/index.browser.js.map +0 -1
- package/dist/api-notifications/index.d.ts +0 -327
- package/dist/api-notifications/index.js.map +0 -1
- package/dist/api-parameters/index.browser.js.map +0 -1
- package/dist/api-parameters/index.js.map +0 -1
- package/dist/api-users/index.browser.js.map +0 -1
- package/dist/api-users/index.js.map +0 -1
- package/dist/api-verifications/index.browser.js.map +0 -1
- package/dist/api-verifications/index.d.ts +0 -229
- package/dist/api-verifications/index.js.map +0 -1
- package/dist/cache/index.js.map +0 -1
- package/dist/cache-redis/index.js.map +0 -1
- package/dist/lock/index.js.map +0 -1
- package/dist/lock-redis/index.js.map +0 -1
- package/dist/queue/index.d.ts +0 -1265
- package/dist/queue/index.js +0 -1037
- package/dist/queue/index.js.map +0 -1
- package/dist/queue-redis/index.d.ts +0 -82
- package/dist/queue-redis/index.js +0 -872
- package/dist/queue-redis/index.js.map +0 -1
- package/dist/server/index.browser.js.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/server-auth/index.browser.js.map +0 -1
- package/dist/server-auth/index.js +0 -1973
- package/dist/server-auth/index.js.map +0 -1
- package/dist/server-cache/index.js.map +0 -1
- package/dist/server-compress/index.js.map +0 -1
- package/dist/server-cookies/index.browser.js.map +0 -1
- package/dist/server-cookies/index.js.map +0 -1
- package/dist/server-cors/index.js.map +0 -1
- package/dist/server-health/index.js.map +0 -1
- package/dist/server-helmet/index.js.map +0 -1
- package/dist/server-links/index.browser.js.map +0 -1
- package/dist/server-links/index.js.map +0 -1
- package/dist/server-metrics/index.js +0 -4532
- package/dist/server-metrics/index.js.map +0 -1
- package/dist/server-multipart/index.js.map +0 -1
- package/dist/server-proxy/index.js.map +0 -1
- package/dist/server-rate-limit/index.js.map +0 -1
- package/dist/server-security/index.browser.js.map +0 -1
- package/dist/server-security/index.js.map +0 -1
- package/dist/server-static/index.js.map +0 -1
- package/dist/server-swagger/index.js.map +0 -1
- package/dist/topic/index.js.map +0 -1
- package/dist/topic-redis/index.js.map +0 -1
- package/src/queue/interfaces/QueueJob.ts +0 -459
- package/src/queue/providers/MemoryQueueProvider.ts +0 -850
- package/src/queue/providers/QueueProvider.ts +0 -319
- package/src/queue/providers/WorkerProvider.ts +0 -344
- package/src/queue-redis/providers/RedisQueueProvider.ts +0 -1209
- /package/src/{api-audits → api/audits}/controllers/AuditController.ts +0 -0
- /package/src/{api-audits → api/audits}/entities/audits.ts +0 -0
- /package/src/{api-audits → api/audits}/index.browser.ts +0 -0
- /package/src/{api-audits → api/audits}/index.ts +0 -0
- /package/src/{api-audits → api/audits}/primitives/$audit.ts +0 -0
- /package/src/{api-audits → api/audits}/schemas/auditQuerySchema.ts +0 -0
- /package/src/{api-audits → api/audits}/schemas/auditResourceSchema.ts +0 -0
- /package/src/{api-audits → api/audits}/schemas/createAuditSchema.ts +0 -0
- /package/src/{api-audits → api/audits}/services/AuditService.ts +0 -0
- /package/src/{api-files → api/files}/controllers/FileController.ts +0 -0
- /package/src/{api-files → api/files}/controllers/StorageStatsController.ts +0 -0
- /package/src/{api-files → api/files}/entities/files.ts +0 -0
- /package/src/{api-files → api/files}/index.browser.ts +0 -0
- /package/src/{api-files → api/files}/jobs/FileJobs.ts +0 -0
- /package/src/{api-files → api/files}/schemas/fileQuerySchema.ts +0 -0
- /package/src/{api-files → api/files}/schemas/fileResourceSchema.ts +0 -0
- /package/src/{api-files → api/files}/schemas/storageStatsSchema.ts +0 -0
- /package/src/{api-files → api/files}/services/FileService.ts +0 -0
- /package/src/{api-jobs → api/jobs}/controllers/JobController.ts +0 -0
- /package/src/{api-jobs → api/jobs}/entities/jobExecutions.ts +0 -0
- /package/src/{api-jobs → api/jobs}/index.browser.ts +0 -0
- /package/src/{api-jobs → api/jobs}/index.ts +0 -0
- /package/src/{api-jobs → api/jobs}/primitives/$job.ts +0 -0
- /package/src/{api-jobs → api/jobs}/providers/JobProvider.ts +0 -0
- /package/src/{api-jobs → api/jobs}/schemas/jobExecutionQuerySchema.ts +0 -0
- /package/src/{api-jobs → api/jobs}/schemas/jobExecutionResourceSchema.ts +0 -0
- /package/src/{api-jobs → api/jobs}/schemas/triggerJobSchema.ts +0 -0
- /package/src/{api-jobs → api/jobs}/services/JobService.ts +0 -0
- /package/src/{api-notifications → api/notifications}/controllers/NotificationController.ts +0 -0
- /package/src/{api-notifications → api/notifications}/entities/notifications.ts +0 -0
- /package/src/{api-notifications → api/notifications}/index.browser.ts +0 -0
- /package/src/{api-notifications → api/notifications}/index.ts +0 -0
- /package/src/{api-notifications → api/notifications}/jobs/NotificationJobs.ts +0 -0
- /package/src/{api-notifications → api/notifications}/primitives/$notification.ts +0 -0
- /package/src/{api-notifications → api/notifications}/queues/NotificationQueues.ts +0 -0
- /package/src/{api-notifications → api/notifications}/schemas/notificationContactPreferencesSchema.ts +0 -0
- /package/src/{api-notifications → api/notifications}/schemas/notificationContactSchema.ts +0 -0
- /package/src/{api-notifications → api/notifications}/schemas/notificationCreateSchema.ts +0 -0
- /package/src/{api-notifications → api/notifications}/schemas/notificationQuerySchema.ts +0 -0
- /package/src/{api-notifications → api/notifications}/services/NotificationSenderService.ts +0 -0
- /package/src/{api-notifications → api/notifications}/services/NotificationService.ts +0 -0
- /package/src/{api-parameters → api/parameters}/controllers/ConfigController.ts +0 -0
- /package/src/{api-parameters → api/parameters}/entities/parameters.ts +0 -0
- /package/src/{api-parameters → api/parameters}/index.browser.ts +0 -0
- /package/src/{api-parameters → api/parameters}/primitives/$config.ts +0 -0
- /package/src/{api-parameters → api/parameters}/schedulers/ConfigActivationScheduler.ts +0 -0
- /package/src/{api-parameters → api/parameters}/services/ConfigStore.ts +0 -0
- /package/src/{api-users → api/users}/atoms/realmAuthSettingsAtom.ts +0 -0
- /package/src/{api-users → api/users}/controllers/IdentityController.ts +0 -0
- /package/src/{api-users → api/users}/controllers/SessionController.ts +0 -0
- /package/src/{api-users → api/users}/controllers/UserController.ts +0 -0
- /package/src/{api-users → api/users}/controllers/UserRealmController.ts +0 -0
- /package/src/{api-users → api/users}/entities/identities.ts +0 -0
- /package/src/{api-users → api/users}/entities/sessions.ts +0 -0
- /package/src/{api-users → api/users}/entities/users.ts +0 -0
- /package/src/{api-users → api/users}/index.browser.ts +0 -0
- /package/src/{api-users → api/users}/index.ts +0 -0
- /package/src/{api-users → api/users}/notifications/UserNotifications.ts +0 -0
- /package/src/{api-users → api/users}/schemas/completePasswordResetRequestSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/completeRegistrationRequestSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/createUserSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/identityQuerySchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/identityResourceSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/loginSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/passwordResetIntentResponseSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/registerQuerySchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/registerRequestSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/registerResponseSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/registerSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/registrationIntentResponseSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/resetPasswordSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/sessionQuerySchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/sessionResourceSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/updateUserSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/userQuerySchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/userRealmConfigSchema.ts +0 -0
- /package/src/{api-users → api/users}/schemas/userResourceSchema.ts +0 -0
- /package/src/{api-users → api/users}/services/CredentialService.ts +0 -0
- /package/src/{api-users → api/users}/services/IdentityService.ts +0 -0
- /package/src/{api-users → api/users}/services/RegistrationService.ts +0 -0
- /package/src/{api-users → api/users}/services/SessionCrudService.ts +0 -0
- /package/src/{api-users → api/users}/services/SessionService.ts +0 -0
- /package/src/{api-users → api/users}/services/UserService.ts +0 -0
- /package/src/{api-verifications → api/verifications}/controllers/VerificationController.ts +0 -0
- /package/src/{api-verifications → api/verifications}/entities/verifications.ts +0 -0
- /package/src/{api-verifications → api/verifications}/index.browser.ts +0 -0
- /package/src/{api-verifications → api/verifications}/jobs/VerificationJobs.ts +0 -0
- /package/src/{api-verifications → api/verifications}/parameters/VerificationParameters.ts +0 -0
- /package/src/{api-verifications → api/verifications}/schemas/requestVerificationCodeResponseSchema.ts +0 -0
- /package/src/{api-verifications → api/verifications}/schemas/validateVerificationCodeResponseSchema.ts +0 -0
- /package/src/{api-verifications → api/verifications}/schemas/verificationSettingsSchema.ts +0 -0
- /package/src/{api-verifications → api/verifications}/schemas/verificationTypeEnumSchema.ts +0 -0
- /package/src/{api-verifications → api/verifications}/services/VerificationService.ts +0 -0
- /package/src/cache/{errors → core/errors}/CacheError.ts +0 -0
- /package/src/cache/{index.ts → core/index.ts} +0 -0
- /package/src/cache/{primitives → core/primitives}/$cache.ts +0 -0
- /package/src/cache/{providers → core/providers}/CacheProvider.ts +0 -0
- /package/src/cache/{providers → core/providers}/MemoryCacheProvider.ts +0 -0
- /package/src/{cache-redis → cache/redis}/index.ts +0 -0
- /package/src/{cache-redis → cache/redis}/providers/RedisCacheProvider.ts +0 -0
- /package/src/lock/{index.ts → core/index.ts} +0 -0
- /package/src/lock/{primitives → core/primitives}/$lock.ts +0 -0
- /package/src/lock/{providers → core/providers}/LockProvider.ts +0 -0
- /package/src/lock/{providers → core/providers}/LockTopicProvider.ts +0 -0
- /package/src/lock/{providers → core/providers}/MemoryLockProvider.ts +0 -0
- /package/src/{lock-redis → lock/redis}/index.ts +0 -0
- /package/src/{lock-redis → lock/redis}/providers/RedisLockProvider.ts +0 -0
- /package/src/queue/{primitives → core/primitives}/$consumer.ts +0 -0
- /package/src/{queue-redis → queue/redis}/index.ts +0 -0
- /package/src/{server-auth → server/auth}/constants/routes.ts +0 -0
- /package/src/{server-auth → server/auth}/index.browser.ts +0 -0
- /package/src/{server-auth → server/auth}/index.shared.ts +0 -0
- /package/src/{server-auth → server/auth}/index.ts +0 -0
- /package/src/{server-auth → server/auth}/primitives/$auth.ts +0 -0
- /package/src/{server-auth → server/auth}/primitives/$authApple.ts +0 -0
- /package/src/{server-auth → server/auth}/primitives/$authCredentials.ts +0 -0
- /package/src/{server-auth → server/auth}/primitives/$authGithub.ts +0 -0
- /package/src/{server-auth → server/auth}/primitives/$authGoogle.ts +0 -0
- /package/src/{server-auth → server/auth}/providers/ServerAuthProvider.ts +0 -0
- /package/src/{server-auth → server/auth}/schemas/authenticationProviderSchema.ts +0 -0
- /package/src/{server-auth → server/auth}/schemas/tokenResponseSchema.ts +0 -0
- /package/src/{server-auth → server/auth}/schemas/tokensSchema.ts +0 -0
- /package/src/{server-auth → server/auth}/schemas/userinfoResponseSchema.ts +0 -0
- /package/src/{server-cache → server/cache}/index.ts +0 -0
- /package/src/{server-cache → server/cache}/providers/ServerCacheProvider.ts +0 -0
- /package/src/{server-compress → server/compress}/index.ts +0 -0
- /package/src/{server-compress → server/compress}/providers/ServerCompressProvider.ts +0 -0
- /package/src/{server-cookies → server/cookies}/index.browser.ts +0 -0
- /package/src/{server-cookies → server/cookies}/index.ts +0 -0
- /package/src/{server-cookies → server/cookies}/primitives/$cookie.browser.ts +0 -0
- /package/src/{server-cookies → server/cookies}/primitives/$cookie.ts +0 -0
- /package/src/{server-cookies → server/cookies}/providers/ServerCookiesProvider.ts +0 -0
- /package/src/{server-cookies → server/cookies}/services/CookieParser.ts +0 -0
- /package/src/server/{constants → core/constants}/routeMethods.ts +0 -0
- /package/src/server/{errors → core/errors}/BadRequestError.ts +0 -0
- /package/src/server/{errors → core/errors}/ConflictError.ts +0 -0
- /package/src/server/{errors → core/errors}/ForbiddenError.ts +0 -0
- /package/src/server/{errors → core/errors}/HttpError.ts +0 -0
- /package/src/server/{errors → core/errors}/NotFoundError.ts +0 -0
- /package/src/server/{errors → core/errors}/UnauthorizedError.ts +0 -0
- /package/src/server/{errors → core/errors}/ValidationError.ts +0 -0
- /package/src/server/{helpers → core/helpers}/ServerReply.ts +0 -0
- /package/src/server/{helpers → core/helpers}/isMultipart.ts +0 -0
- /package/src/server/{index.browser.ts → core/index.browser.ts} +0 -0
- /package/src/server/{index.shared.ts → core/index.shared.ts} +0 -0
- /package/src/server/{interfaces → core/interfaces}/ServerRequest.ts +0 -0
- /package/src/server/{primitives → core/primitives}/$action.ts +0 -0
- /package/src/server/{primitives → core/primitives}/$route.ts +0 -0
- /package/src/server/{providers → core/providers}/BunHttpServerProvider.ts +0 -0
- /package/src/server/{providers → core/providers}/NodeHttpServerProvider.ts +0 -0
- /package/src/server/{providers → core/providers}/ServerBodyParserProvider.ts +0 -0
- /package/src/server/{providers → core/providers}/ServerLoggerProvider.ts +0 -0
- /package/src/server/{providers → core/providers}/ServerNotReadyProvider.ts +0 -0
- /package/src/server/{providers → core/providers}/ServerProvider.ts +0 -0
- /package/src/server/{providers → core/providers}/ServerRouterProvider.ts +0 -0
- /package/src/server/{providers → core/providers}/ServerTimingProvider.ts +0 -0
- /package/src/server/{schemas → core/schemas}/errorSchema.ts +0 -0
- /package/src/server/{schemas → core/schemas}/okSchema.ts +0 -0
- /package/src/server/{services → core/services}/HttpClient.ts +0 -0
- /package/src/server/{services → core/services}/ServerRequestParser.ts +0 -0
- /package/src/server/{services → core/services}/UserAgentParser.ts +0 -0
- /package/src/{server-cors → server/cors}/index.ts +0 -0
- /package/src/{server-cors → server/cors}/primitives/$cors.ts +0 -0
- /package/src/{server-cors → server/cors}/providers/ServerCorsProvider.ts +0 -0
- /package/src/{server-health → server/health}/index.ts +0 -0
- /package/src/{server-health → server/health}/providers/ServerHealthProvider.ts +0 -0
- /package/src/{server-health → server/health}/schemas/healthSchema.ts +0 -0
- /package/src/{server-helmet → server/helmet}/index.ts +0 -0
- /package/src/{server-helmet → server/helmet}/providers/ServerHelmetProvider.ts +0 -0
- /package/src/{server-links → server/links}/index.browser.ts +0 -0
- /package/src/{server-links → server/links}/index.ts +0 -0
- /package/src/{server-links → server/links}/primitives/$client.ts +0 -0
- /package/src/{server-links → server/links}/primitives/$remote.ts +0 -0
- /package/src/{server-links → server/links}/providers/LinkProvider.ts +0 -0
- /package/src/{server-links → server/links}/providers/RemotePrimitiveProvider.ts +0 -0
- /package/src/{server-links → server/links}/providers/ServerLinksProvider.ts +0 -0
- /package/src/{server-links → server/links}/schemas/apiLinksResponseSchema.ts +0 -0
- /package/src/{server-metrics → server/metrics}/index.ts +0 -0
- /package/src/{server-metrics → server/metrics}/providers/ServerMetricsProvider.ts +0 -0
- /package/src/{server-multipart → server/multipart}/index.ts +0 -0
- /package/src/{server-multipart → server/multipart}/providers/ServerMultipartProvider.ts +0 -0
- /package/src/{server-proxy → server/proxy}/index.ts +0 -0
- /package/src/{server-proxy → server/proxy}/primitives/$proxy.ts +0 -0
- /package/src/{server-proxy → server/proxy}/providers/ServerProxyProvider.ts +0 -0
- /package/src/{server-rate-limit → server/rate-limit}/primitives/$rateLimit.ts +0 -0
- /package/src/{server-rate-limit → server/rate-limit}/providers/ServerRateLimitProvider.ts +0 -0
- /package/src/{server-security → server/security}/index.browser.ts +0 -0
- /package/src/{server-security → server/security}/index.ts +0 -0
- /package/src/{server-security → server/security}/primitives/$basicAuth.ts +0 -0
- /package/src/{server-security → server/security}/providers/ServerBasicAuthProvider.ts +0 -0
- /package/src/{server-security → server/security}/providers/ServerSecurityProvider.ts +0 -0
- /package/src/{server-static → server/static}/index.ts +0 -0
- /package/src/{server-static → server/static}/primitives/$serve.ts +0 -0
- /package/src/{server-static → server/static}/providers/ServerStaticProvider.ts +0 -0
- /package/src/{server-swagger → server/swagger}/index.ts +0 -0
- /package/src/{server-swagger → server/swagger}/primitives/$swagger.ts +0 -0
- /package/src/topic/{errors → core/errors}/TopicTimeoutError.ts +0 -0
- /package/src/topic/{index.ts → core/index.ts} +0 -0
- /package/src/topic/{primitives → core/primitives}/$subscriber.ts +0 -0
- /package/src/topic/{primitives → core/primitives}/$topic.ts +0 -0
- /package/src/topic/{providers → core/providers}/MemoryTopicProvider.ts +0 -0
- /package/src/topic/{providers → core/providers}/TopicProvider.ts +0 -0
- /package/src/{topic-redis → topic/redis}/index.ts +0 -0
- /package/src/{topic-redis → topic/redis}/providers/RedisTopicProvider.ts +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { Alepha, AlephaError,
|
|
1
|
+
import * as alepha1 from "alepha";
|
|
2
|
+
import { Alepha, AlephaError, Page, PageQuery, Primitive, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
3
|
import * as alepha_api_notifications0 from "alepha/api/notifications";
|
|
4
4
|
import { VerificationController } from "alepha/api/verifications";
|
|
5
5
|
import * as alepha_orm204 from "alepha/orm";
|
|
6
6
|
import { Page as Page$1, Repository } from "alepha/orm";
|
|
7
7
|
import * as alepha_server0 from "alepha/server";
|
|
8
8
|
import * as alepha_logger1 from "alepha/logger";
|
|
9
|
-
import { UserRealmOptions as UserRealmOptions$1 } from "alepha/api/users";
|
|
10
9
|
import * as alepha_bucket0 from "alepha/bucket";
|
|
11
10
|
import * as alepha_cache0 from "alepha/cache";
|
|
12
11
|
import { DateTime, DateTimeProvider } from "alepha/datetime";
|
|
@@ -15,6 +14,7 @@ import * as alepha_server_links0 from "alepha/server/links";
|
|
|
15
14
|
import { OAuth2Profile, ServerAuthProvider, WithLinkFn, WithLoginFn } from "alepha/server/auth";
|
|
16
15
|
import { FileSystemProvider } from "alepha/file";
|
|
17
16
|
import { FileController } from "alepha/api/files";
|
|
17
|
+
import "drizzle-orm/d1";
|
|
18
18
|
import * as drizzle_orm0 from "drizzle-orm";
|
|
19
19
|
import { BuildExtraConfigColumns, SQL, SQLWrapper } from "drizzle-orm";
|
|
20
20
|
import * as drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
@@ -22,91 +22,141 @@ import { LockConfig, LockStrength, PgColumn, PgColumnBuilderBase, PgDatabase, Pg
|
|
|
22
22
|
import { PgTransactionConfig } from "drizzle-orm/pg-core/session";
|
|
23
23
|
import * as DrizzleKit from "drizzle-kit/api";
|
|
24
24
|
import "alepha/retry";
|
|
25
|
+
import "drizzle-orm/sqlite-core";
|
|
25
26
|
import "alepha/lock";
|
|
26
27
|
import "drizzle-orm/postgres-js";
|
|
27
28
|
import "postgres";
|
|
28
|
-
import "drizzle-orm/sqlite-core";
|
|
29
29
|
|
|
30
|
-
//#region ../../src/api
|
|
31
|
-
declare const realmAuthSettingsAtom:
|
|
32
|
-
displayName:
|
|
33
|
-
description:
|
|
34
|
-
logoUrl:
|
|
35
|
-
registrationAllowed:
|
|
36
|
-
emailEnabled:
|
|
37
|
-
emailRequired:
|
|
38
|
-
usernameEnabled:
|
|
39
|
-
usernameRequired:
|
|
40
|
-
phoneEnabled:
|
|
41
|
-
phoneRequired:
|
|
42
|
-
verifyEmailRequired:
|
|
43
|
-
verifyPhoneRequired:
|
|
44
|
-
firstNameLastNameEnabled:
|
|
45
|
-
firstNameLastNameRequired:
|
|
46
|
-
resetPasswordAllowed:
|
|
47
|
-
passwordPolicy:
|
|
48
|
-
minLength:
|
|
49
|
-
requireUppercase:
|
|
50
|
-
requireLowercase:
|
|
51
|
-
requireNumbers:
|
|
52
|
-
requireSpecialCharacters:
|
|
30
|
+
//#region ../../src/api/users/atoms/realmAuthSettingsAtom.d.ts
|
|
31
|
+
declare const realmAuthSettingsAtom: alepha1.Atom<alepha1.TObject<{
|
|
32
|
+
displayName: alepha1.TOptional<alepha1.TString>;
|
|
33
|
+
description: alepha1.TOptional<alepha1.TString>;
|
|
34
|
+
logoUrl: alepha1.TOptional<alepha1.TString>;
|
|
35
|
+
registrationAllowed: alepha1.TBoolean;
|
|
36
|
+
emailEnabled: alepha1.TBoolean;
|
|
37
|
+
emailRequired: alepha1.TBoolean;
|
|
38
|
+
usernameEnabled: alepha1.TBoolean;
|
|
39
|
+
usernameRequired: alepha1.TBoolean;
|
|
40
|
+
phoneEnabled: alepha1.TBoolean;
|
|
41
|
+
phoneRequired: alepha1.TBoolean;
|
|
42
|
+
verifyEmailRequired: alepha1.TBoolean;
|
|
43
|
+
verifyPhoneRequired: alepha1.TBoolean;
|
|
44
|
+
firstNameLastNameEnabled: alepha1.TBoolean;
|
|
45
|
+
firstNameLastNameRequired: alepha1.TBoolean;
|
|
46
|
+
resetPasswordAllowed: alepha1.TBoolean;
|
|
47
|
+
passwordPolicy: alepha1.TObject<{
|
|
48
|
+
minLength: alepha1.TInteger;
|
|
49
|
+
requireUppercase: alepha1.TBoolean;
|
|
50
|
+
requireLowercase: alepha1.TBoolean;
|
|
51
|
+
requireNumbers: alepha1.TBoolean;
|
|
52
|
+
requireSpecialCharacters: alepha1.TBoolean;
|
|
53
53
|
}>;
|
|
54
54
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
55
55
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
56
56
|
//#endregion
|
|
57
|
-
//#region ../../src/api
|
|
58
|
-
declare const identities: alepha_orm204.EntityPrimitive<
|
|
59
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
60
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
61
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
62
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
63
|
-
userId: alepha_orm204.PgAttr<
|
|
64
|
-
password:
|
|
65
|
-
provider:
|
|
66
|
-
providerUserId:
|
|
67
|
-
providerData:
|
|
57
|
+
//#region ../../src/api/users/entities/identities.d.ts
|
|
58
|
+
declare const identities: alepha_orm204.EntityPrimitive<alepha1.TObject<{
|
|
59
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
60
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
61
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
62
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
63
|
+
userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
|
|
64
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
65
|
+
provider: alepha1.TString;
|
|
66
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
67
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
68
68
|
}>>;
|
|
69
69
|
type IdentityEntity = Static<typeof identities.schema>;
|
|
70
70
|
//#endregion
|
|
71
|
-
//#region ../../src/api
|
|
72
|
-
declare const sessions: alepha_orm204.EntityPrimitive<
|
|
73
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
74
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
75
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
76
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
77
|
-
refreshToken:
|
|
78
|
-
userId: alepha_orm204.PgAttr<
|
|
79
|
-
expiresAt:
|
|
80
|
-
ip:
|
|
81
|
-
userAgent:
|
|
82
|
-
os:
|
|
83
|
-
browser:
|
|
84
|
-
device:
|
|
71
|
+
//#region ../../src/api/users/entities/sessions.d.ts
|
|
72
|
+
declare const sessions: alepha_orm204.EntityPrimitive<alepha1.TObject<{
|
|
73
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
74
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
75
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
76
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
77
|
+
refreshToken: alepha1.TString;
|
|
78
|
+
userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
|
|
79
|
+
expiresAt: alepha1.TString;
|
|
80
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
81
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
82
|
+
os: alepha1.TString;
|
|
83
|
+
browser: alepha1.TString;
|
|
84
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
85
85
|
}>>;
|
|
86
86
|
}>>;
|
|
87
87
|
type SessionEntity = Static<typeof sessions.schema>;
|
|
88
88
|
//#endregion
|
|
89
|
-
//#region ../../src/api
|
|
89
|
+
//#region ../../src/api/users/entities/users.d.ts
|
|
90
90
|
declare const DEFAULT_USER_REALM_NAME = "default";
|
|
91
|
-
declare const users: alepha_orm204.EntityPrimitive<
|
|
92
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
93
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
94
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
95
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
96
|
-
realm: alepha_orm204.PgAttr<
|
|
97
|
-
username:
|
|
98
|
-
email:
|
|
99
|
-
phoneNumber:
|
|
100
|
-
roles: alepha_orm204.PgAttr<
|
|
101
|
-
firstName:
|
|
102
|
-
lastName:
|
|
103
|
-
picture:
|
|
104
|
-
enabled: alepha_orm204.PgAttr<
|
|
105
|
-
emailVerified: alepha_orm204.PgAttr<
|
|
91
|
+
declare const users: alepha_orm204.EntityPrimitive<alepha1.TObject<{
|
|
92
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
93
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
94
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
95
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
96
|
+
realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
97
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
98
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
99
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
100
|
+
roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
101
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
102
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
103
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
104
|
+
enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
105
|
+
emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
106
106
|
}>>;
|
|
107
107
|
type UserEntity = Static<typeof users.schema>;
|
|
108
108
|
//#endregion
|
|
109
|
-
//#region ../../src/api
|
|
109
|
+
//#region ../../src/api/users/primitives/$userRealm.d.ts
|
|
110
|
+
type UserRealmPrimitive = RealmPrimitive & WithLinkFn & WithLoginFn;
|
|
111
|
+
/**
|
|
112
|
+
* Already configured realm for user management.
|
|
113
|
+
*
|
|
114
|
+
* Realm contains two roles: `admin` and `user`.
|
|
115
|
+
*
|
|
116
|
+
* - `admin`: Has full access to all resources and permissions.
|
|
117
|
+
* - `user`: Has access to their own resources and permissions, but cannot access admin-level resources.
|
|
118
|
+
*
|
|
119
|
+
* Realm uses session management for handling user sessions.
|
|
120
|
+
*
|
|
121
|
+
* Environment Variables:
|
|
122
|
+
* - `APP_SECRET`: Secret key for signing tokens (if not provided in options).
|
|
123
|
+
*/
|
|
124
|
+
declare const $userRealm: (options?: UserRealmOptions) => UserRealmPrimitive;
|
|
125
|
+
interface UserRealmOptions {
|
|
126
|
+
/**
|
|
127
|
+
* Secret key for signing tokens.
|
|
128
|
+
*
|
|
129
|
+
* If not provided, the secret from the SecurityProvider will be used (usually from the APP_SECRET environment variable).
|
|
130
|
+
*/
|
|
131
|
+
secret?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Realm configuration options.
|
|
134
|
+
*
|
|
135
|
+
* It's already pre-configured for user management with admin and user roles.
|
|
136
|
+
*/
|
|
137
|
+
realm?: Partial<RealmPrimitiveOptions>;
|
|
138
|
+
/**
|
|
139
|
+
* Override entities.
|
|
140
|
+
*/
|
|
141
|
+
entities?: {
|
|
142
|
+
users?: Repository<typeof users.schema>;
|
|
143
|
+
identities?: Repository<typeof identities.schema>;
|
|
144
|
+
sessions?: Repository<typeof sessions.schema>;
|
|
145
|
+
};
|
|
146
|
+
settings?: Partial<RealmAuthSettings>;
|
|
147
|
+
identities?: {
|
|
148
|
+
credentials?: true;
|
|
149
|
+
google?: true;
|
|
150
|
+
github?: true;
|
|
151
|
+
};
|
|
152
|
+
modules?: {
|
|
153
|
+
files?: boolean;
|
|
154
|
+
audits?: boolean;
|
|
155
|
+
jobs?: boolean;
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region ../../src/api/users/providers/UserRealmProvider.d.ts
|
|
110
160
|
interface UserRealmRepositories {
|
|
111
161
|
identities: Repository<typeof identities.schema>;
|
|
112
162
|
sessions: Repository<typeof sessions.schema>;
|
|
@@ -119,52 +169,52 @@ interface UserRealm {
|
|
|
119
169
|
}
|
|
120
170
|
declare class UserRealmProvider {
|
|
121
171
|
protected readonly alepha: Alepha;
|
|
122
|
-
protected readonly defaultIdentities: Repository<
|
|
123
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
124
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
125
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
126
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
127
|
-
userId: alepha_orm204.PgAttr<
|
|
128
|
-
password:
|
|
129
|
-
provider:
|
|
130
|
-
providerUserId:
|
|
131
|
-
providerData:
|
|
172
|
+
protected readonly defaultIdentities: Repository<alepha1.TObject<{
|
|
173
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
174
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
175
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
176
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
177
|
+
userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
|
|
178
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
179
|
+
provider: alepha1.TString;
|
|
180
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
181
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
132
182
|
}>>;
|
|
133
|
-
protected readonly defaultSessions: Repository<
|
|
134
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
135
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
136
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
137
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
138
|
-
refreshToken:
|
|
139
|
-
userId: alepha_orm204.PgAttr<
|
|
140
|
-
expiresAt:
|
|
141
|
-
ip:
|
|
142
|
-
userAgent:
|
|
143
|
-
os:
|
|
144
|
-
browser:
|
|
145
|
-
device:
|
|
183
|
+
protected readonly defaultSessions: Repository<alepha1.TObject<{
|
|
184
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
185
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
186
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
187
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
188
|
+
refreshToken: alepha1.TString;
|
|
189
|
+
userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
|
|
190
|
+
expiresAt: alepha1.TString;
|
|
191
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
192
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
193
|
+
os: alepha1.TString;
|
|
194
|
+
browser: alepha1.TString;
|
|
195
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
146
196
|
}>>;
|
|
147
197
|
}>>;
|
|
148
|
-
protected readonly defaultUsers: Repository<
|
|
149
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
150
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
151
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
152
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
153
|
-
realm: alepha_orm204.PgAttr<
|
|
154
|
-
username:
|
|
155
|
-
email:
|
|
156
|
-
phoneNumber:
|
|
157
|
-
roles: alepha_orm204.PgAttr<
|
|
158
|
-
firstName:
|
|
159
|
-
lastName:
|
|
160
|
-
picture:
|
|
161
|
-
enabled: alepha_orm204.PgAttr<
|
|
162
|
-
emailVerified: alepha_orm204.PgAttr<
|
|
198
|
+
protected readonly defaultUsers: Repository<alepha1.TObject<{
|
|
199
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
200
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
201
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
202
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
203
|
+
realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
204
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
205
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
206
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
207
|
+
roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
208
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
209
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
210
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
211
|
+
enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
212
|
+
emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
163
213
|
}>>;
|
|
164
214
|
protected realms: Map<string, UserRealm>;
|
|
165
215
|
avatars: alepha_bucket0.BucketPrimitive;
|
|
166
|
-
protected readonly onConfigure:
|
|
167
|
-
register(userRealmName: string, userRealmOptions?: UserRealmOptions
|
|
216
|
+
protected readonly onConfigure: alepha1.HookPrimitive<"configure">;
|
|
217
|
+
register(userRealmName: string, userRealmOptions?: UserRealmOptions): UserRealm;
|
|
168
218
|
/**
|
|
169
219
|
* Gets a registered realm by name, auto-creating default if needed.
|
|
170
220
|
*/
|
|
@@ -174,30 +224,30 @@ declare class UserRealmProvider {
|
|
|
174
224
|
userRepository(userRealmName?: string): Repository<typeof users.schema>;
|
|
175
225
|
}
|
|
176
226
|
//#endregion
|
|
177
|
-
//#region ../../src/api
|
|
178
|
-
declare const identityQuerySchema:
|
|
179
|
-
page:
|
|
180
|
-
size:
|
|
181
|
-
sort:
|
|
182
|
-
userId:
|
|
183
|
-
provider:
|
|
227
|
+
//#region ../../src/api/users/schemas/identityQuerySchema.d.ts
|
|
228
|
+
declare const identityQuerySchema: alepha1.TObject<{
|
|
229
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
230
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
231
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
232
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
233
|
+
provider: alepha1.TOptional<alepha1.TString>;
|
|
184
234
|
}>;
|
|
185
235
|
type IdentityQuery = Static<typeof identityQuerySchema>;
|
|
186
236
|
//#endregion
|
|
187
|
-
//#region ../../src/api
|
|
237
|
+
//#region ../../src/api/users/services/IdentityService.d.ts
|
|
188
238
|
declare class IdentityService {
|
|
189
239
|
protected readonly log: alepha_logger1.Logger;
|
|
190
240
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
191
|
-
identities(userRealmName?: string): alepha_orm204.Repository<
|
|
192
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
193
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
194
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
195
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
196
|
-
userId: alepha_orm204.PgAttr<
|
|
197
|
-
password:
|
|
198
|
-
provider:
|
|
199
|
-
providerUserId:
|
|
200
|
-
providerData:
|
|
241
|
+
identities(userRealmName?: string): alepha_orm204.Repository<alepha1.TObject<{
|
|
242
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
243
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
244
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
245
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
246
|
+
userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
|
|
247
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
248
|
+
provider: alepha1.TString;
|
|
249
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
250
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
201
251
|
}>>;
|
|
202
252
|
/**
|
|
203
253
|
* Find identities with pagination and filtering.
|
|
@@ -213,7 +263,7 @@ declare class IdentityService {
|
|
|
213
263
|
deleteIdentity(id: string, userRealmName?: string): Promise<void>;
|
|
214
264
|
}
|
|
215
265
|
//#endregion
|
|
216
|
-
//#region ../../src/api
|
|
266
|
+
//#region ../../src/api/users/controllers/IdentityController.d.ts
|
|
217
267
|
declare class IdentityController {
|
|
218
268
|
protected readonly url = "/identities";
|
|
219
269
|
protected readonly group = "identities";
|
|
@@ -222,90 +272,90 @@ declare class IdentityController {
|
|
|
222
272
|
* Find identities with pagination and filtering.
|
|
223
273
|
*/
|
|
224
274
|
readonly findIdentities: alepha_server0.ActionPrimitiveFn<{
|
|
225
|
-
query:
|
|
226
|
-
page:
|
|
227
|
-
size:
|
|
228
|
-
sort:
|
|
229
|
-
userId:
|
|
230
|
-
provider:
|
|
231
|
-
userRealmName:
|
|
275
|
+
query: alepha1.TObject<{
|
|
276
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
277
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
278
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
279
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
280
|
+
provider: alepha1.TOptional<alepha1.TString>;
|
|
281
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
232
282
|
}>;
|
|
233
|
-
response:
|
|
234
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
235
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
236
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
237
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
238
|
-
userId: alepha_orm204.PgAttr<
|
|
239
|
-
provider:
|
|
240
|
-
providerUserId:
|
|
241
|
-
providerData:
|
|
283
|
+
response: alepha1.TPage<alepha1.TObject<{
|
|
284
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
285
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
286
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
287
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
288
|
+
userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
|
|
289
|
+
provider: alepha1.TString;
|
|
290
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
291
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
242
292
|
}>>;
|
|
243
293
|
}>;
|
|
244
294
|
/**
|
|
245
295
|
* Get an identity by ID.
|
|
246
296
|
*/
|
|
247
297
|
readonly getIdentity: alepha_server0.ActionPrimitiveFn<{
|
|
248
|
-
params:
|
|
249
|
-
id:
|
|
298
|
+
params: alepha1.TObject<{
|
|
299
|
+
id: alepha1.TString;
|
|
250
300
|
}>;
|
|
251
|
-
query:
|
|
252
|
-
userRealmName:
|
|
301
|
+
query: alepha1.TObject<{
|
|
302
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
253
303
|
}>;
|
|
254
|
-
response:
|
|
255
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
256
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
257
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
258
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
259
|
-
userId: alepha_orm204.PgAttr<
|
|
260
|
-
provider:
|
|
261
|
-
providerUserId:
|
|
262
|
-
providerData:
|
|
304
|
+
response: alepha1.TObject<{
|
|
305
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
306
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
307
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
308
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
309
|
+
userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
|
|
310
|
+
provider: alepha1.TString;
|
|
311
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
312
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
263
313
|
}>;
|
|
264
314
|
}>;
|
|
265
315
|
/**
|
|
266
316
|
* Delete an identity.
|
|
267
317
|
*/
|
|
268
318
|
readonly deleteIdentity: alepha_server0.ActionPrimitiveFn<{
|
|
269
|
-
params:
|
|
270
|
-
id:
|
|
319
|
+
params: alepha1.TObject<{
|
|
320
|
+
id: alepha1.TString;
|
|
271
321
|
}>;
|
|
272
|
-
query:
|
|
273
|
-
userRealmName:
|
|
322
|
+
query: alepha1.TObject<{
|
|
323
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
274
324
|
}>;
|
|
275
|
-
response:
|
|
276
|
-
ok:
|
|
277
|
-
id:
|
|
278
|
-
count:
|
|
325
|
+
response: alepha1.TObject<{
|
|
326
|
+
ok: alepha1.TBoolean;
|
|
327
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
328
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
279
329
|
}>;
|
|
280
330
|
}>;
|
|
281
331
|
}
|
|
282
332
|
//#endregion
|
|
283
|
-
//#region ../../src/api
|
|
284
|
-
declare const sessionQuerySchema:
|
|
285
|
-
page:
|
|
286
|
-
size:
|
|
287
|
-
sort:
|
|
288
|
-
userId:
|
|
333
|
+
//#region ../../src/api/users/schemas/sessionQuerySchema.d.ts
|
|
334
|
+
declare const sessionQuerySchema: alepha1.TObject<{
|
|
335
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
336
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
337
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
338
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
289
339
|
}>;
|
|
290
340
|
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
291
341
|
//#endregion
|
|
292
|
-
//#region ../../src/api
|
|
342
|
+
//#region ../../src/api/users/services/SessionCrudService.d.ts
|
|
293
343
|
declare class SessionCrudService {
|
|
294
344
|
protected readonly log: alepha_logger1.Logger;
|
|
295
345
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
296
|
-
sessions(userRealmName?: string): alepha_orm204.Repository<
|
|
297
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
298
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
299
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
300
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
301
|
-
refreshToken:
|
|
302
|
-
userId: alepha_orm204.PgAttr<
|
|
303
|
-
expiresAt:
|
|
304
|
-
ip:
|
|
305
|
-
userAgent:
|
|
306
|
-
os:
|
|
307
|
-
browser:
|
|
308
|
-
device:
|
|
346
|
+
sessions(userRealmName?: string): alepha_orm204.Repository<alepha1.TObject<{
|
|
347
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
348
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
349
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
350
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
351
|
+
refreshToken: alepha1.TString;
|
|
352
|
+
userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
|
|
353
|
+
expiresAt: alepha1.TString;
|
|
354
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
355
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
356
|
+
os: alepha1.TString;
|
|
357
|
+
browser: alepha1.TString;
|
|
358
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
309
359
|
}>>;
|
|
310
360
|
}>>;
|
|
311
361
|
/**
|
|
@@ -322,7 +372,7 @@ declare class SessionCrudService {
|
|
|
322
372
|
deleteSession(id: string, userRealmName?: string): Promise<void>;
|
|
323
373
|
}
|
|
324
374
|
//#endregion
|
|
325
|
-
//#region ../../src/api
|
|
375
|
+
//#region ../../src/api/users/controllers/SessionController.d.ts
|
|
326
376
|
declare class SessionController {
|
|
327
377
|
protected readonly url = "/sessions";
|
|
328
378
|
protected readonly group = "sessions";
|
|
@@ -331,26 +381,26 @@ declare class SessionController {
|
|
|
331
381
|
* Find sessions with pagination and filtering.
|
|
332
382
|
*/
|
|
333
383
|
readonly findSessions: alepha_server0.ActionPrimitiveFn<{
|
|
334
|
-
query:
|
|
335
|
-
page:
|
|
336
|
-
size:
|
|
337
|
-
sort:
|
|
338
|
-
userId:
|
|
339
|
-
userRealmName:
|
|
384
|
+
query: alepha1.TObject<{
|
|
385
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
386
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
387
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
388
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
389
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
340
390
|
}>;
|
|
341
|
-
response:
|
|
342
|
-
id:
|
|
343
|
-
version:
|
|
344
|
-
createdAt:
|
|
345
|
-
updatedAt:
|
|
346
|
-
refreshToken:
|
|
347
|
-
userId:
|
|
348
|
-
expiresAt:
|
|
349
|
-
ip:
|
|
350
|
-
userAgent:
|
|
351
|
-
os:
|
|
352
|
-
browser:
|
|
353
|
-
device:
|
|
391
|
+
response: alepha1.TPage<alepha1.TObject<{
|
|
392
|
+
id: alepha1.TString;
|
|
393
|
+
version: alepha1.TNumber;
|
|
394
|
+
createdAt: alepha1.TString;
|
|
395
|
+
updatedAt: alepha1.TString;
|
|
396
|
+
refreshToken: alepha1.TString;
|
|
397
|
+
userId: alepha1.TString;
|
|
398
|
+
expiresAt: alepha1.TString;
|
|
399
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
400
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
401
|
+
os: alepha1.TString;
|
|
402
|
+
browser: alepha1.TString;
|
|
403
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
354
404
|
}>>;
|
|
355
405
|
}>>;
|
|
356
406
|
}>;
|
|
@@ -358,25 +408,25 @@ declare class SessionController {
|
|
|
358
408
|
* Get a session by ID.
|
|
359
409
|
*/
|
|
360
410
|
readonly getSession: alepha_server0.ActionPrimitiveFn<{
|
|
361
|
-
params:
|
|
362
|
-
id:
|
|
411
|
+
params: alepha1.TObject<{
|
|
412
|
+
id: alepha1.TString;
|
|
363
413
|
}>;
|
|
364
|
-
query:
|
|
365
|
-
userRealmName:
|
|
414
|
+
query: alepha1.TObject<{
|
|
415
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
366
416
|
}>;
|
|
367
|
-
response:
|
|
368
|
-
id:
|
|
369
|
-
version:
|
|
370
|
-
createdAt:
|
|
371
|
-
updatedAt:
|
|
372
|
-
refreshToken:
|
|
373
|
-
userId:
|
|
374
|
-
expiresAt:
|
|
375
|
-
ip:
|
|
376
|
-
userAgent:
|
|
377
|
-
os:
|
|
378
|
-
browser:
|
|
379
|
-
device:
|
|
417
|
+
response: alepha1.TObject<{
|
|
418
|
+
id: alepha1.TString;
|
|
419
|
+
version: alepha1.TNumber;
|
|
420
|
+
createdAt: alepha1.TString;
|
|
421
|
+
updatedAt: alepha1.TString;
|
|
422
|
+
refreshToken: alepha1.TString;
|
|
423
|
+
userId: alepha1.TString;
|
|
424
|
+
expiresAt: alepha1.TString;
|
|
425
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
426
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
427
|
+
os: alepha1.TString;
|
|
428
|
+
browser: alepha1.TString;
|
|
429
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
380
430
|
}>>;
|
|
381
431
|
}>;
|
|
382
432
|
}>;
|
|
@@ -384,16 +434,16 @@ declare class SessionController {
|
|
|
384
434
|
* Delete a session.
|
|
385
435
|
*/
|
|
386
436
|
readonly deleteSession: alepha_server0.ActionPrimitiveFn<{
|
|
387
|
-
params:
|
|
388
|
-
id:
|
|
437
|
+
params: alepha1.TObject<{
|
|
438
|
+
id: alepha1.TString;
|
|
389
439
|
}>;
|
|
390
|
-
query:
|
|
391
|
-
userRealmName:
|
|
440
|
+
query: alepha1.TObject<{
|
|
441
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
392
442
|
}>;
|
|
393
|
-
response:
|
|
394
|
-
ok:
|
|
395
|
-
id:
|
|
396
|
-
count:
|
|
443
|
+
response: alepha1.TObject<{
|
|
444
|
+
ok: alepha1.TBoolean;
|
|
445
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
446
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
397
447
|
}>;
|
|
398
448
|
}>;
|
|
399
449
|
}
|
|
@@ -1289,11 +1339,11 @@ declare class DrizzleKitProvider {
|
|
|
1289
1339
|
*/
|
|
1290
1340
|
importDrizzleKit(): typeof DrizzleKit;
|
|
1291
1341
|
}
|
|
1292
|
-
declare const devMigrationsSchema:
|
|
1293
|
-
id:
|
|
1294
|
-
name:
|
|
1295
|
-
snapshot:
|
|
1296
|
-
created_at:
|
|
1342
|
+
declare const devMigrationsSchema: alepha1.TObject<{
|
|
1343
|
+
id: alepha1.TNumber;
|
|
1344
|
+
name: alepha1.TString;
|
|
1345
|
+
snapshot: alepha1.TString;
|
|
1346
|
+
created_at: alepha1.TString;
|
|
1297
1347
|
}>;
|
|
1298
1348
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
1299
1349
|
//#endregion
|
|
@@ -1490,7 +1540,7 @@ declare class QueryManager {
|
|
|
1490
1540
|
createPagination<T>(entities: T[], limit?: number, offset?: number, sort?: Array<{
|
|
1491
1541
|
column: string;
|
|
1492
1542
|
direction: "asc" | "desc";
|
|
1493
|
-
}>):
|
|
1543
|
+
}>): alepha1.Page<T>;
|
|
1494
1544
|
}
|
|
1495
1545
|
interface PgJoin {
|
|
1496
1546
|
table: string;
|
|
@@ -1802,7 +1852,7 @@ interface StatementOptions {
|
|
|
1802
1852
|
declare module "alepha" {
|
|
1803
1853
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
1804
1854
|
}
|
|
1805
|
-
declare const envSchema:
|
|
1855
|
+
declare const envSchema: alepha1.TObject<{
|
|
1806
1856
|
/**
|
|
1807
1857
|
* Main configuration for database connection.
|
|
1808
1858
|
* Accept a string in the format of a Postgres connection URL.
|
|
@@ -1810,21 +1860,21 @@ declare const envSchema: alepha23.TObject<{
|
|
|
1810
1860
|
* or
|
|
1811
1861
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
1812
1862
|
*/
|
|
1813
|
-
DATABASE_URL:
|
|
1863
|
+
DATABASE_URL: alepha1.TOptional<alepha1.TString>;
|
|
1814
1864
|
/**
|
|
1815
1865
|
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
1816
1866
|
*
|
|
1817
1867
|
* It will monkey patch drizzle tables.
|
|
1818
1868
|
*/
|
|
1819
|
-
POSTGRES_SCHEMA:
|
|
1869
|
+
POSTGRES_SCHEMA: alepha1.TOptional<alepha1.TString>;
|
|
1820
1870
|
}>;
|
|
1821
1871
|
//#endregion
|
|
1822
1872
|
//#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
1823
1873
|
/**
|
|
1824
1874
|
* Configuration options for the Node.js SQLite database provider.
|
|
1825
1875
|
*/
|
|
1826
|
-
declare const nodeSqliteOptions:
|
|
1827
|
-
path:
|
|
1876
|
+
declare const nodeSqliteOptions: alepha1.Atom<alepha1.TObject<{
|
|
1877
|
+
path: alepha1.TOptional<alepha1.TString>;
|
|
1828
1878
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
1829
1879
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
1830
1880
|
declare module "alepha" {
|
|
@@ -1907,63 +1957,63 @@ declare module "alepha" {
|
|
|
1907
1957
|
}
|
|
1908
1958
|
}
|
|
1909
1959
|
//#endregion
|
|
1910
|
-
//#region ../../src/api
|
|
1960
|
+
//#region ../../src/api/users/notifications/UserNotifications.d.ts
|
|
1911
1961
|
declare class UserNotifications {
|
|
1912
|
-
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<
|
|
1913
|
-
email:
|
|
1914
|
-
code:
|
|
1915
|
-
expiresInMinutes:
|
|
1962
|
+
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1963
|
+
email: alepha1.TString;
|
|
1964
|
+
code: alepha1.TString;
|
|
1965
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1916
1966
|
}>>;
|
|
1917
|
-
readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<
|
|
1918
|
-
email:
|
|
1919
|
-
code:
|
|
1920
|
-
expiresInMinutes:
|
|
1967
|
+
readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1968
|
+
email: alepha1.TString;
|
|
1969
|
+
code: alepha1.TString;
|
|
1970
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1921
1971
|
}>>;
|
|
1922
|
-
readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<
|
|
1923
|
-
phoneNumber:
|
|
1924
|
-
code:
|
|
1925
|
-
expiresInMinutes:
|
|
1972
|
+
readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1973
|
+
phoneNumber: alepha1.TString;
|
|
1974
|
+
code: alepha1.TString;
|
|
1975
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1926
1976
|
}>>;
|
|
1927
|
-
readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<
|
|
1928
|
-
email:
|
|
1929
|
-
resetUrl:
|
|
1930
|
-
expiresInMinutes:
|
|
1977
|
+
readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1978
|
+
email: alepha1.TString;
|
|
1979
|
+
resetUrl: alepha1.TString;
|
|
1980
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1931
1981
|
}>>;
|
|
1932
|
-
readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<
|
|
1933
|
-
email:
|
|
1934
|
-
verifyUrl:
|
|
1935
|
-
expiresInMinutes:
|
|
1982
|
+
readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1983
|
+
email: alepha1.TString;
|
|
1984
|
+
verifyUrl: alepha1.TString;
|
|
1985
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1936
1986
|
}>>;
|
|
1937
1987
|
}
|
|
1938
1988
|
//#endregion
|
|
1939
|
-
//#region ../../src/api
|
|
1989
|
+
//#region ../../src/api/users/schemas/completePasswordResetRequestSchema.d.ts
|
|
1940
1990
|
/**
|
|
1941
1991
|
* Request schema for completing a password reset.
|
|
1942
1992
|
*
|
|
1943
1993
|
* Requires the intent ID from Phase 1, the verification code,
|
|
1944
1994
|
* and the new password.
|
|
1945
1995
|
*/
|
|
1946
|
-
declare const completePasswordResetRequestSchema:
|
|
1947
|
-
intentId:
|
|
1948
|
-
code:
|
|
1949
|
-
newPassword:
|
|
1996
|
+
declare const completePasswordResetRequestSchema: alepha1.TObject<{
|
|
1997
|
+
intentId: alepha1.TString;
|
|
1998
|
+
code: alepha1.TString;
|
|
1999
|
+
newPassword: alepha1.TString;
|
|
1950
2000
|
}>;
|
|
1951
2001
|
type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
|
|
1952
2002
|
//#endregion
|
|
1953
|
-
//#region ../../src/api
|
|
2003
|
+
//#region ../../src/api/users/schemas/passwordResetIntentResponseSchema.d.ts
|
|
1954
2004
|
/**
|
|
1955
2005
|
* Response schema for password reset intent creation.
|
|
1956
2006
|
*
|
|
1957
2007
|
* Contains the intent ID needed for Phase 2 completion,
|
|
1958
2008
|
* along with expiration time.
|
|
1959
2009
|
*/
|
|
1960
|
-
declare const passwordResetIntentResponseSchema:
|
|
1961
|
-
intentId:
|
|
1962
|
-
expiresAt:
|
|
2010
|
+
declare const passwordResetIntentResponseSchema: alepha1.TObject<{
|
|
2011
|
+
intentId: alepha1.TString;
|
|
2012
|
+
expiresAt: alepha1.TString;
|
|
1963
2013
|
}>;
|
|
1964
2014
|
type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
|
|
1965
2015
|
//#endregion
|
|
1966
|
-
//#region ../../src/api
|
|
2016
|
+
//#region ../../src/api/users/services/CredentialService.d.ts
|
|
1967
2017
|
/**
|
|
1968
2018
|
* Intent stored in cache during the password reset flow.
|
|
1969
2019
|
*/
|
|
@@ -1982,47 +2032,47 @@ declare class CredentialService {
|
|
|
1982
2032
|
protected readonly userNotifications: UserNotifications;
|
|
1983
2033
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
1984
2034
|
protected readonly intentCache: alepha_cache0.CachePrimitiveFn<PasswordResetIntent, any[]>;
|
|
1985
|
-
users(userRealmName?: string): Repository$1<
|
|
1986
|
-
id: PgAttr<PgAttr<
|
|
1987
|
-
version: PgAttr<PgAttr<
|
|
1988
|
-
createdAt: PgAttr<PgAttr<
|
|
1989
|
-
updatedAt: PgAttr<PgAttr<
|
|
1990
|
-
realm: PgAttr<
|
|
1991
|
-
username:
|
|
1992
|
-
email:
|
|
1993
|
-
phoneNumber:
|
|
1994
|
-
roles: PgAttr<
|
|
1995
|
-
firstName:
|
|
1996
|
-
lastName:
|
|
1997
|
-
picture:
|
|
1998
|
-
enabled: PgAttr<
|
|
1999
|
-
emailVerified: PgAttr<
|
|
2035
|
+
users(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2036
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2037
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2038
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2039
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2040
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2041
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2042
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2043
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2044
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2045
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2046
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2047
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2048
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2049
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2000
2050
|
}>>;
|
|
2001
|
-
sessions(userRealmName?: string): Repository$1<
|
|
2002
|
-
id: PgAttr<PgAttr<
|
|
2003
|
-
version: PgAttr<PgAttr<
|
|
2004
|
-
createdAt: PgAttr<PgAttr<
|
|
2005
|
-
updatedAt: PgAttr<PgAttr<
|
|
2006
|
-
refreshToken:
|
|
2007
|
-
userId: PgAttr<
|
|
2008
|
-
expiresAt:
|
|
2009
|
-
ip:
|
|
2010
|
-
userAgent:
|
|
2011
|
-
os:
|
|
2012
|
-
browser:
|
|
2013
|
-
device:
|
|
2051
|
+
sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2052
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2053
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2054
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2055
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2056
|
+
refreshToken: alepha1.TString;
|
|
2057
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2058
|
+
expiresAt: alepha1.TString;
|
|
2059
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
2060
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
2061
|
+
os: alepha1.TString;
|
|
2062
|
+
browser: alepha1.TString;
|
|
2063
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2014
2064
|
}>>;
|
|
2015
2065
|
}>>;
|
|
2016
|
-
identities(userRealmName?: string): Repository$1<
|
|
2017
|
-
id: PgAttr<PgAttr<
|
|
2018
|
-
version: PgAttr<PgAttr<
|
|
2019
|
-
createdAt: PgAttr<PgAttr<
|
|
2020
|
-
updatedAt: PgAttr<PgAttr<
|
|
2021
|
-
userId: PgAttr<
|
|
2022
|
-
password:
|
|
2023
|
-
provider:
|
|
2024
|
-
providerUserId:
|
|
2025
|
-
providerData:
|
|
2066
|
+
identities(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2067
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2068
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2069
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2070
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2071
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2072
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
2073
|
+
provider: alepha1.TString;
|
|
2074
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
2075
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
2026
2076
|
}>>;
|
|
2027
2077
|
/**
|
|
2028
2078
|
* Phase 1: Create a password reset intent.
|
|
@@ -2058,42 +2108,42 @@ declare class CredentialService {
|
|
|
2058
2108
|
resetPassword(email: string, token: string, newPassword: string, userRealmName?: string): Promise<void>;
|
|
2059
2109
|
}
|
|
2060
2110
|
//#endregion
|
|
2061
|
-
//#region ../../src/api
|
|
2062
|
-
declare const completeRegistrationRequestSchema:
|
|
2063
|
-
intentId:
|
|
2064
|
-
emailCode:
|
|
2065
|
-
phoneCode:
|
|
2066
|
-
captchaToken:
|
|
2111
|
+
//#region ../../src/api/users/schemas/completeRegistrationRequestSchema.d.ts
|
|
2112
|
+
declare const completeRegistrationRequestSchema: alepha1.TObject<{
|
|
2113
|
+
intentId: alepha1.TString;
|
|
2114
|
+
emailCode: alepha1.TOptional<alepha1.TString>;
|
|
2115
|
+
phoneCode: alepha1.TOptional<alepha1.TString>;
|
|
2116
|
+
captchaToken: alepha1.TOptional<alepha1.TString>;
|
|
2067
2117
|
}>;
|
|
2068
2118
|
type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
|
|
2069
2119
|
//#endregion
|
|
2070
|
-
//#region ../../src/api
|
|
2120
|
+
//#region ../../src/api/users/schemas/registerRequestSchema.d.ts
|
|
2071
2121
|
/**
|
|
2072
2122
|
* Schema for user registration request body.
|
|
2073
2123
|
* Password is always required, other fields depend on realm settings.
|
|
2074
2124
|
*/
|
|
2075
|
-
declare const registerRequestSchema:
|
|
2076
|
-
password:
|
|
2077
|
-
username:
|
|
2078
|
-
email:
|
|
2079
|
-
phoneNumber:
|
|
2080
|
-
firstName:
|
|
2081
|
-
lastName:
|
|
2082
|
-
picture:
|
|
2125
|
+
declare const registerRequestSchema: alepha1.TObject<{
|
|
2126
|
+
password: alepha1.TString;
|
|
2127
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2128
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2129
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2130
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2131
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2132
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2083
2133
|
}>;
|
|
2084
2134
|
type RegisterRequest = Static<typeof registerRequestSchema>;
|
|
2085
2135
|
//#endregion
|
|
2086
|
-
//#region ../../src/api
|
|
2087
|
-
declare const registrationIntentResponseSchema:
|
|
2088
|
-
intentId:
|
|
2089
|
-
expectCaptcha:
|
|
2090
|
-
expectEmailVerification:
|
|
2091
|
-
expectPhoneVerification:
|
|
2092
|
-
expiresAt:
|
|
2136
|
+
//#region ../../src/api/users/schemas/registrationIntentResponseSchema.d.ts
|
|
2137
|
+
declare const registrationIntentResponseSchema: alepha1.TObject<{
|
|
2138
|
+
intentId: alepha1.TString;
|
|
2139
|
+
expectCaptcha: alepha1.TBoolean;
|
|
2140
|
+
expectEmailVerification: alepha1.TBoolean;
|
|
2141
|
+
expectPhoneVerification: alepha1.TBoolean;
|
|
2142
|
+
expiresAt: alepha1.TString;
|
|
2093
2143
|
}>;
|
|
2094
2144
|
type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
|
|
2095
2145
|
//#endregion
|
|
2096
|
-
//#region ../../src/api
|
|
2146
|
+
//#region ../../src/api/users/services/RegistrationService.d.ts
|
|
2097
2147
|
/**
|
|
2098
2148
|
* Intent stored in cache during the registration flow.
|
|
2099
2149
|
*/
|
|
@@ -2159,71 +2209,71 @@ declare class RegistrationService {
|
|
|
2159
2209
|
protected verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
|
|
2160
2210
|
}
|
|
2161
2211
|
//#endregion
|
|
2162
|
-
//#region ../../src/api
|
|
2163
|
-
declare const createUserSchema:
|
|
2164
|
-
id:
|
|
2165
|
-
version:
|
|
2166
|
-
email:
|
|
2167
|
-
createdAt:
|
|
2168
|
-
updatedAt:
|
|
2169
|
-
username:
|
|
2170
|
-
phoneNumber:
|
|
2171
|
-
roles:
|
|
2172
|
-
firstName:
|
|
2173
|
-
lastName:
|
|
2174
|
-
picture:
|
|
2175
|
-
enabled:
|
|
2176
|
-
emailVerified:
|
|
2212
|
+
//#region ../../src/api/users/schemas/createUserSchema.d.ts
|
|
2213
|
+
declare const createUserSchema: alepha1.TObject<{
|
|
2214
|
+
id: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
2215
|
+
version: alepha1.TOptional<PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
2216
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2217
|
+
createdAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
2218
|
+
updatedAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
2219
|
+
username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2220
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2221
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2222
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2223
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2224
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2225
|
+
enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
2226
|
+
emailVerified: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
2177
2227
|
}>;
|
|
2178
2228
|
type CreateUser = Static<typeof createUserSchema>;
|
|
2179
2229
|
//#endregion
|
|
2180
|
-
//#region ../../src/api
|
|
2181
|
-
declare const updateUserSchema:
|
|
2182
|
-
email:
|
|
2183
|
-
realm:
|
|
2184
|
-
phoneNumber:
|
|
2185
|
-
roles:
|
|
2186
|
-
firstName:
|
|
2187
|
-
lastName:
|
|
2188
|
-
picture:
|
|
2189
|
-
enabled:
|
|
2230
|
+
//#region ../../src/api/users/schemas/updateUserSchema.d.ts
|
|
2231
|
+
declare const updateUserSchema: alepha1.TObject<{
|
|
2232
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2233
|
+
realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
|
|
2234
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2235
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2236
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2237
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2238
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2239
|
+
enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
2190
2240
|
}>;
|
|
2191
2241
|
type UpdateUser = Static<typeof updateUserSchema>;
|
|
2192
2242
|
//#endregion
|
|
2193
|
-
//#region ../../src/api
|
|
2194
|
-
declare const userQuerySchema:
|
|
2195
|
-
page:
|
|
2196
|
-
size:
|
|
2197
|
-
sort:
|
|
2198
|
-
email:
|
|
2199
|
-
enabled:
|
|
2200
|
-
emailVerified:
|
|
2201
|
-
roles:
|
|
2202
|
-
query:
|
|
2243
|
+
//#region ../../src/api/users/schemas/userQuerySchema.d.ts
|
|
2244
|
+
declare const userQuerySchema: alepha1.TObject<{
|
|
2245
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
2246
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
2247
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
2248
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2249
|
+
enabled: alepha1.TOptional<alepha1.TBoolean>;
|
|
2250
|
+
emailVerified: alepha1.TOptional<alepha1.TBoolean>;
|
|
2251
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2252
|
+
query: alepha1.TOptional<alepha1.TString>;
|
|
2203
2253
|
}>;
|
|
2204
2254
|
type UserQuery = Static<typeof userQuerySchema>;
|
|
2205
2255
|
//#endregion
|
|
2206
|
-
//#region ../../src/api
|
|
2256
|
+
//#region ../../src/api/users/services/UserService.d.ts
|
|
2207
2257
|
declare class UserService {
|
|
2208
2258
|
protected readonly log: alepha_logger1.Logger;
|
|
2209
2259
|
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
2210
2260
|
protected readonly userNotifications: UserNotifications;
|
|
2211
2261
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
2212
|
-
users(userRealmName?: string): alepha_orm204.Repository<
|
|
2213
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2214
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2215
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2216
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2217
|
-
realm: alepha_orm204.PgAttr<
|
|
2218
|
-
username:
|
|
2219
|
-
email:
|
|
2220
|
-
phoneNumber:
|
|
2221
|
-
roles: alepha_orm204.PgAttr<
|
|
2222
|
-
firstName:
|
|
2223
|
-
lastName:
|
|
2224
|
-
picture:
|
|
2225
|
-
enabled: alepha_orm204.PgAttr<
|
|
2226
|
-
emailVerified: alepha_orm204.PgAttr<
|
|
2262
|
+
users(userRealmName?: string): alepha_orm204.Repository<alepha1.TObject<{
|
|
2263
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2264
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2265
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2266
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2267
|
+
realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
2268
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2269
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2270
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2271
|
+
roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2272
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2273
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2274
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2275
|
+
enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2276
|
+
emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2227
2277
|
}>>;
|
|
2228
2278
|
/**
|
|
2229
2279
|
* Request email verification for a user.
|
|
@@ -2264,7 +2314,7 @@ declare class UserService {
|
|
|
2264
2314
|
deleteUser(id: string, userRealmName?: string): Promise<void>;
|
|
2265
2315
|
}
|
|
2266
2316
|
//#endregion
|
|
2267
|
-
//#region ../../src/api
|
|
2317
|
+
//#region ../../src/api/users/controllers/UserController.d.ts
|
|
2268
2318
|
declare class UserController {
|
|
2269
2319
|
protected readonly url = "/users";
|
|
2270
2320
|
protected readonly group = "users";
|
|
@@ -2276,122 +2326,122 @@ declare class UserController {
|
|
|
2276
2326
|
* Validates data, creates verification sessions, and stores intent in cache.
|
|
2277
2327
|
*/
|
|
2278
2328
|
readonly createRegistrationIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2279
|
-
body:
|
|
2280
|
-
password:
|
|
2281
|
-
username:
|
|
2282
|
-
email:
|
|
2283
|
-
phoneNumber:
|
|
2284
|
-
firstName:
|
|
2285
|
-
lastName:
|
|
2286
|
-
picture:
|
|
2329
|
+
body: alepha1.TObject<{
|
|
2330
|
+
password: alepha1.TString;
|
|
2331
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2332
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2333
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2334
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2335
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2336
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2287
2337
|
}>;
|
|
2288
|
-
query:
|
|
2289
|
-
userRealmName:
|
|
2338
|
+
query: alepha1.TObject<{
|
|
2339
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2290
2340
|
}>;
|
|
2291
|
-
response:
|
|
2292
|
-
intentId:
|
|
2293
|
-
expectCaptcha:
|
|
2294
|
-
expectEmailVerification:
|
|
2295
|
-
expectPhoneVerification:
|
|
2296
|
-
expiresAt:
|
|
2341
|
+
response: alepha1.TObject<{
|
|
2342
|
+
intentId: alepha1.TString;
|
|
2343
|
+
expectCaptcha: alepha1.TBoolean;
|
|
2344
|
+
expectEmailVerification: alepha1.TBoolean;
|
|
2345
|
+
expectPhoneVerification: alepha1.TBoolean;
|
|
2346
|
+
expiresAt: alepha1.TString;
|
|
2297
2347
|
}>;
|
|
2298
2348
|
}>;
|
|
2299
2349
|
/**
|
|
2300
2350
|
* Find users with pagination and filtering.
|
|
2301
2351
|
*/
|
|
2302
2352
|
readonly findUsers: alepha_server0.ActionPrimitiveFn<{
|
|
2303
|
-
query:
|
|
2304
|
-
page:
|
|
2305
|
-
size:
|
|
2306
|
-
sort:
|
|
2307
|
-
email:
|
|
2308
|
-
enabled:
|
|
2309
|
-
emailVerified:
|
|
2310
|
-
roles:
|
|
2311
|
-
query:
|
|
2312
|
-
userRealmName:
|
|
2353
|
+
query: alepha1.TObject<{
|
|
2354
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
2355
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
2356
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
2357
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2358
|
+
enabled: alepha1.TOptional<alepha1.TBoolean>;
|
|
2359
|
+
emailVerified: alepha1.TOptional<alepha1.TBoolean>;
|
|
2360
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2361
|
+
query: alepha1.TOptional<alepha1.TString>;
|
|
2362
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2313
2363
|
}>;
|
|
2314
|
-
response:
|
|
2315
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2316
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2317
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2318
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2319
|
-
realm: alepha_orm204.PgAttr<
|
|
2320
|
-
username:
|
|
2321
|
-
email:
|
|
2322
|
-
phoneNumber:
|
|
2323
|
-
roles: alepha_orm204.PgAttr<
|
|
2324
|
-
firstName:
|
|
2325
|
-
lastName:
|
|
2326
|
-
picture:
|
|
2327
|
-
enabled: alepha_orm204.PgAttr<
|
|
2328
|
-
emailVerified: alepha_orm204.PgAttr<
|
|
2364
|
+
response: alepha1.TPage<alepha1.TObject<{
|
|
2365
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2366
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2367
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2368
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2369
|
+
realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
2370
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2371
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2372
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2373
|
+
roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2374
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2375
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2376
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2377
|
+
enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2378
|
+
emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2329
2379
|
}>>;
|
|
2330
2380
|
}>;
|
|
2331
2381
|
/**
|
|
2332
2382
|
* Get a user by ID.
|
|
2333
2383
|
*/
|
|
2334
2384
|
readonly getUser: alepha_server0.ActionPrimitiveFn<{
|
|
2335
|
-
params:
|
|
2336
|
-
id:
|
|
2385
|
+
params: alepha1.TObject<{
|
|
2386
|
+
id: alepha1.TString;
|
|
2337
2387
|
}>;
|
|
2338
|
-
query:
|
|
2339
|
-
userRealmName:
|
|
2388
|
+
query: alepha1.TObject<{
|
|
2389
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2340
2390
|
}>;
|
|
2341
|
-
response:
|
|
2342
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2343
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2344
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2345
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2346
|
-
realm: alepha_orm204.PgAttr<
|
|
2347
|
-
username:
|
|
2348
|
-
email:
|
|
2349
|
-
phoneNumber:
|
|
2350
|
-
roles: alepha_orm204.PgAttr<
|
|
2351
|
-
firstName:
|
|
2352
|
-
lastName:
|
|
2353
|
-
picture:
|
|
2354
|
-
enabled: alepha_orm204.PgAttr<
|
|
2355
|
-
emailVerified: alepha_orm204.PgAttr<
|
|
2391
|
+
response: alepha1.TObject<{
|
|
2392
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2393
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2394
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2395
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2396
|
+
realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
2397
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2398
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2399
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2400
|
+
roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2401
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2402
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2403
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2404
|
+
enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2405
|
+
emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2356
2406
|
}>;
|
|
2357
2407
|
}>;
|
|
2358
2408
|
/**
|
|
2359
2409
|
* Create a new user.
|
|
2360
2410
|
*/
|
|
2361
2411
|
readonly createUser: alepha_server0.ActionPrimitiveFn<{
|
|
2362
|
-
query:
|
|
2363
|
-
userRealmName:
|
|
2412
|
+
query: alepha1.TObject<{
|
|
2413
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2364
2414
|
}>;
|
|
2365
|
-
body:
|
|
2366
|
-
id:
|
|
2367
|
-
version:
|
|
2368
|
-
email:
|
|
2369
|
-
createdAt:
|
|
2370
|
-
updatedAt:
|
|
2371
|
-
username:
|
|
2372
|
-
phoneNumber:
|
|
2373
|
-
roles:
|
|
2374
|
-
firstName:
|
|
2375
|
-
lastName:
|
|
2376
|
-
picture:
|
|
2377
|
-
enabled:
|
|
2378
|
-
emailVerified:
|
|
2415
|
+
body: alepha1.TObject<{
|
|
2416
|
+
id: alepha1.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2417
|
+
version: alepha1.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2418
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2419
|
+
createdAt: alepha1.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2420
|
+
updatedAt: alepha1.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2421
|
+
username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2422
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2423
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2424
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2425
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2426
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2427
|
+
enabled: alepha1.TOptional<alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2428
|
+
emailVerified: alepha1.TOptional<alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2379
2429
|
}>;
|
|
2380
|
-
response:
|
|
2381
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2382
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2383
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2384
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2385
|
-
realm: alepha_orm204.PgAttr<
|
|
2386
|
-
username:
|
|
2387
|
-
email:
|
|
2388
|
-
phoneNumber:
|
|
2389
|
-
roles: alepha_orm204.PgAttr<
|
|
2390
|
-
firstName:
|
|
2391
|
-
lastName:
|
|
2392
|
-
picture:
|
|
2393
|
-
enabled: alepha_orm204.PgAttr<
|
|
2394
|
-
emailVerified: alepha_orm204.PgAttr<
|
|
2430
|
+
response: alepha1.TObject<{
|
|
2431
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2432
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2433
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2434
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2435
|
+
realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
2436
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2437
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2438
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2439
|
+
roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2440
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2441
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2442
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2443
|
+
enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2444
|
+
emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2395
2445
|
}>;
|
|
2396
2446
|
}>;
|
|
2397
2447
|
/**
|
|
@@ -2399,80 +2449,80 @@ declare class UserController {
|
|
|
2399
2449
|
* Validates verification codes and creates the user.
|
|
2400
2450
|
*/
|
|
2401
2451
|
readonly createUserFromIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2402
|
-
body:
|
|
2403
|
-
intentId:
|
|
2404
|
-
emailCode:
|
|
2405
|
-
phoneCode:
|
|
2406
|
-
captchaToken:
|
|
2452
|
+
body: alepha1.TObject<{
|
|
2453
|
+
intentId: alepha1.TString;
|
|
2454
|
+
emailCode: alepha1.TOptional<alepha1.TString>;
|
|
2455
|
+
phoneCode: alepha1.TOptional<alepha1.TString>;
|
|
2456
|
+
captchaToken: alepha1.TOptional<alepha1.TString>;
|
|
2407
2457
|
}>;
|
|
2408
|
-
response:
|
|
2409
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2410
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2411
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2412
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2413
|
-
realm: alepha_orm204.PgAttr<
|
|
2414
|
-
username:
|
|
2415
|
-
email:
|
|
2416
|
-
phoneNumber:
|
|
2417
|
-
roles: alepha_orm204.PgAttr<
|
|
2418
|
-
firstName:
|
|
2419
|
-
lastName:
|
|
2420
|
-
picture:
|
|
2421
|
-
enabled: alepha_orm204.PgAttr<
|
|
2422
|
-
emailVerified: alepha_orm204.PgAttr<
|
|
2458
|
+
response: alepha1.TObject<{
|
|
2459
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2460
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2461
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2462
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2463
|
+
realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
2464
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2465
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2466
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2467
|
+
roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2468
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2469
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2470
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2471
|
+
enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2472
|
+
emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2423
2473
|
}>;
|
|
2424
2474
|
}>;
|
|
2425
2475
|
/**
|
|
2426
2476
|
* Update a user.
|
|
2427
2477
|
*/
|
|
2428
2478
|
readonly updateUser: alepha_server0.ActionPrimitiveFn<{
|
|
2429
|
-
params:
|
|
2430
|
-
id:
|
|
2479
|
+
params: alepha1.TObject<{
|
|
2480
|
+
id: alepha1.TString;
|
|
2431
2481
|
}>;
|
|
2432
|
-
query:
|
|
2433
|
-
userRealmName:
|
|
2482
|
+
query: alepha1.TObject<{
|
|
2483
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2434
2484
|
}>;
|
|
2435
|
-
body:
|
|
2436
|
-
email:
|
|
2437
|
-
realm:
|
|
2438
|
-
phoneNumber:
|
|
2439
|
-
roles:
|
|
2440
|
-
firstName:
|
|
2441
|
-
lastName:
|
|
2442
|
-
picture:
|
|
2443
|
-
enabled:
|
|
2485
|
+
body: alepha1.TObject<{
|
|
2486
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2487
|
+
realm: alepha1.TOptional<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2488
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2489
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2490
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2491
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2492
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2493
|
+
enabled: alepha1.TOptional<alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2444
2494
|
}>;
|
|
2445
|
-
response:
|
|
2446
|
-
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2447
|
-
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2448
|
-
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2449
|
-
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<
|
|
2450
|
-
realm: alepha_orm204.PgAttr<
|
|
2451
|
-
username:
|
|
2452
|
-
email:
|
|
2453
|
-
phoneNumber:
|
|
2454
|
-
roles: alepha_orm204.PgAttr<
|
|
2455
|
-
firstName:
|
|
2456
|
-
lastName:
|
|
2457
|
-
picture:
|
|
2458
|
-
enabled: alepha_orm204.PgAttr<
|
|
2459
|
-
emailVerified: alepha_orm204.PgAttr<
|
|
2495
|
+
response: alepha1.TObject<{
|
|
2496
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2497
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2498
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2499
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2500
|
+
realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
2501
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2502
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2503
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2504
|
+
roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2505
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2506
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2507
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2508
|
+
enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2509
|
+
emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2460
2510
|
}>;
|
|
2461
2511
|
}>;
|
|
2462
2512
|
/**
|
|
2463
2513
|
* Delete a user.
|
|
2464
2514
|
*/
|
|
2465
2515
|
readonly deleteUser: alepha_server0.ActionPrimitiveFn<{
|
|
2466
|
-
params:
|
|
2467
|
-
id:
|
|
2516
|
+
params: alepha1.TObject<{
|
|
2517
|
+
id: alepha1.TString;
|
|
2468
2518
|
}>;
|
|
2469
|
-
query:
|
|
2470
|
-
userRealmName:
|
|
2519
|
+
query: alepha1.TObject<{
|
|
2520
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2471
2521
|
}>;
|
|
2472
|
-
response:
|
|
2473
|
-
ok:
|
|
2474
|
-
id:
|
|
2475
|
-
count:
|
|
2522
|
+
response: alepha1.TObject<{
|
|
2523
|
+
ok: alepha1.TBoolean;
|
|
2524
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
2525
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
2476
2526
|
}>;
|
|
2477
2527
|
}>;
|
|
2478
2528
|
/**
|
|
@@ -2480,15 +2530,15 @@ declare class UserController {
|
|
|
2480
2530
|
* Validates email, sends verification code, and stores intent in cache.
|
|
2481
2531
|
*/
|
|
2482
2532
|
readonly createPasswordResetIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2483
|
-
query:
|
|
2484
|
-
userRealmName:
|
|
2533
|
+
query: alepha1.TObject<{
|
|
2534
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2485
2535
|
}>;
|
|
2486
|
-
body:
|
|
2487
|
-
email:
|
|
2536
|
+
body: alepha1.TObject<{
|
|
2537
|
+
email: alepha1.TString;
|
|
2488
2538
|
}>;
|
|
2489
|
-
response:
|
|
2490
|
-
intentId:
|
|
2491
|
-
expiresAt:
|
|
2539
|
+
response: alepha1.TObject<{
|
|
2540
|
+
intentId: alepha1.TString;
|
|
2541
|
+
expiresAt: alepha1.TString;
|
|
2492
2542
|
}>;
|
|
2493
2543
|
}>;
|
|
2494
2544
|
/**
|
|
@@ -2496,61 +2546,61 @@ declare class UserController {
|
|
|
2496
2546
|
* Validates verification code, updates password, and invalidates sessions.
|
|
2497
2547
|
*/
|
|
2498
2548
|
readonly completePasswordReset: alepha_server0.ActionPrimitiveFn<{
|
|
2499
|
-
body:
|
|
2500
|
-
intentId:
|
|
2501
|
-
code:
|
|
2502
|
-
newPassword:
|
|
2549
|
+
body: alepha1.TObject<{
|
|
2550
|
+
intentId: alepha1.TString;
|
|
2551
|
+
code: alepha1.TString;
|
|
2552
|
+
newPassword: alepha1.TString;
|
|
2503
2553
|
}>;
|
|
2504
|
-
response:
|
|
2505
|
-
ok:
|
|
2506
|
-
id:
|
|
2507
|
-
count:
|
|
2554
|
+
response: alepha1.TObject<{
|
|
2555
|
+
ok: alepha1.TBoolean;
|
|
2556
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
2557
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
2508
2558
|
}>;
|
|
2509
2559
|
}>;
|
|
2510
2560
|
/**
|
|
2511
2561
|
* @deprecated Use createPasswordResetIntent instead
|
|
2512
2562
|
*/
|
|
2513
2563
|
requestPasswordReset: alepha_server0.ActionPrimitiveFn<{
|
|
2514
|
-
query:
|
|
2515
|
-
userRealmName:
|
|
2564
|
+
query: alepha1.TObject<{
|
|
2565
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2516
2566
|
}>;
|
|
2517
|
-
body:
|
|
2518
|
-
email:
|
|
2567
|
+
body: alepha1.TObject<{
|
|
2568
|
+
email: alepha1.TString;
|
|
2519
2569
|
}>;
|
|
2520
|
-
response:
|
|
2521
|
-
success:
|
|
2522
|
-
message:
|
|
2570
|
+
response: alepha1.TObject<{
|
|
2571
|
+
success: alepha1.TBoolean;
|
|
2572
|
+
message: alepha1.TString;
|
|
2523
2573
|
}>;
|
|
2524
2574
|
}>;
|
|
2525
2575
|
/**
|
|
2526
2576
|
* @deprecated Use completePasswordReset instead
|
|
2527
2577
|
*/
|
|
2528
2578
|
validateResetToken: alepha_server0.ActionPrimitiveFn<{
|
|
2529
|
-
query:
|
|
2530
|
-
email:
|
|
2531
|
-
token:
|
|
2532
|
-
userRealmName:
|
|
2579
|
+
query: alepha1.TObject<{
|
|
2580
|
+
email: alepha1.TString;
|
|
2581
|
+
token: alepha1.TString;
|
|
2582
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2533
2583
|
}>;
|
|
2534
|
-
response:
|
|
2535
|
-
valid:
|
|
2536
|
-
email:
|
|
2584
|
+
response: alepha1.TObject<{
|
|
2585
|
+
valid: alepha1.TBoolean;
|
|
2586
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2537
2587
|
}>;
|
|
2538
2588
|
}>;
|
|
2539
2589
|
/**
|
|
2540
2590
|
* @deprecated Use completePasswordReset instead
|
|
2541
2591
|
*/
|
|
2542
2592
|
resetPassword: alepha_server0.ActionPrimitiveFn<{
|
|
2543
|
-
query:
|
|
2544
|
-
userRealmName:
|
|
2593
|
+
query: alepha1.TObject<{
|
|
2594
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2545
2595
|
}>;
|
|
2546
|
-
body:
|
|
2547
|
-
email:
|
|
2548
|
-
token:
|
|
2549
|
-
newPassword:
|
|
2596
|
+
body: alepha1.TObject<{
|
|
2597
|
+
email: alepha1.TString;
|
|
2598
|
+
token: alepha1.TString;
|
|
2599
|
+
newPassword: alepha1.TString;
|
|
2550
2600
|
}>;
|
|
2551
|
-
response:
|
|
2552
|
-
success:
|
|
2553
|
-
message:
|
|
2601
|
+
response: alepha1.TObject<{
|
|
2602
|
+
success: alepha1.TBoolean;
|
|
2603
|
+
message: alepha1.TString;
|
|
2554
2604
|
}>;
|
|
2555
2605
|
}>;
|
|
2556
2606
|
/**
|
|
@@ -2560,17 +2610,17 @@ declare class UserController {
|
|
|
2560
2610
|
* @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
|
|
2561
2611
|
*/
|
|
2562
2612
|
requestEmailVerification: alepha_server0.ActionPrimitiveFn<{
|
|
2563
|
-
query:
|
|
2564
|
-
userRealmName:
|
|
2565
|
-
method:
|
|
2566
|
-
verifyUrl:
|
|
2613
|
+
query: alepha1.TObject<{
|
|
2614
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2615
|
+
method: alepha1.TOptional<alepha1.TUnsafe<"link" | "code">>;
|
|
2616
|
+
verifyUrl: alepha1.TOptional<alepha1.TString>;
|
|
2567
2617
|
}>;
|
|
2568
|
-
body:
|
|
2569
|
-
email:
|
|
2618
|
+
body: alepha1.TObject<{
|
|
2619
|
+
email: alepha1.TString;
|
|
2570
2620
|
}>;
|
|
2571
|
-
response:
|
|
2572
|
-
success:
|
|
2573
|
-
message:
|
|
2621
|
+
response: alepha1.TObject<{
|
|
2622
|
+
success: alepha1.TBoolean;
|
|
2623
|
+
message: alepha1.TString;
|
|
2574
2624
|
}>;
|
|
2575
2625
|
}>;
|
|
2576
2626
|
/**
|
|
@@ -2578,33 +2628,33 @@ declare class UserController {
|
|
|
2578
2628
|
* Updates the user's emailVerified status.
|
|
2579
2629
|
*/
|
|
2580
2630
|
verifyEmail: alepha_server0.ActionPrimitiveFn<{
|
|
2581
|
-
query:
|
|
2582
|
-
userRealmName:
|
|
2631
|
+
query: alepha1.TObject<{
|
|
2632
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2583
2633
|
}>;
|
|
2584
|
-
body:
|
|
2585
|
-
email:
|
|
2586
|
-
token:
|
|
2634
|
+
body: alepha1.TObject<{
|
|
2635
|
+
email: alepha1.TString;
|
|
2636
|
+
token: alepha1.TString;
|
|
2587
2637
|
}>;
|
|
2588
|
-
response:
|
|
2589
|
-
success:
|
|
2590
|
-
message:
|
|
2638
|
+
response: alepha1.TObject<{
|
|
2639
|
+
success: alepha1.TBoolean;
|
|
2640
|
+
message: alepha1.TString;
|
|
2591
2641
|
}>;
|
|
2592
2642
|
}>;
|
|
2593
2643
|
/**
|
|
2594
2644
|
* Check if an email is verified.
|
|
2595
2645
|
*/
|
|
2596
2646
|
checkEmailVerification: alepha_server0.ActionPrimitiveFn<{
|
|
2597
|
-
query:
|
|
2598
|
-
email:
|
|
2599
|
-
userRealmName:
|
|
2647
|
+
query: alepha1.TObject<{
|
|
2648
|
+
email: alepha1.TString;
|
|
2649
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2600
2650
|
}>;
|
|
2601
|
-
response:
|
|
2602
|
-
verified:
|
|
2651
|
+
response: alepha1.TObject<{
|
|
2652
|
+
verified: alepha1.TBoolean;
|
|
2603
2653
|
}>;
|
|
2604
2654
|
}>;
|
|
2605
2655
|
}
|
|
2606
2656
|
//#endregion
|
|
2607
|
-
//#region ../../src/api
|
|
2657
|
+
//#region ../../src/api/users/controllers/UserRealmController.d.ts
|
|
2608
2658
|
/**
|
|
2609
2659
|
* Controller for exposing realm configuration.
|
|
2610
2660
|
* Uses $route instead of $action to keep endpoints hidden from API documentation.
|
|
@@ -2618,219 +2668,169 @@ declare class UserRealmController {
|
|
|
2618
2668
|
* This endpoint is not exposed in the API documentation.
|
|
2619
2669
|
*/
|
|
2620
2670
|
readonly getRealmConfig: alepha_server0.ActionPrimitiveFn<{
|
|
2621
|
-
query:
|
|
2622
|
-
userRealmName:
|
|
2671
|
+
query: alepha1.TObject<{
|
|
2672
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2623
2673
|
}>;
|
|
2624
|
-
response:
|
|
2625
|
-
settings:
|
|
2626
|
-
displayName:
|
|
2627
|
-
description:
|
|
2628
|
-
logoUrl:
|
|
2629
|
-
registrationAllowed:
|
|
2630
|
-
emailEnabled:
|
|
2631
|
-
emailRequired:
|
|
2632
|
-
usernameEnabled:
|
|
2633
|
-
usernameRequired:
|
|
2634
|
-
phoneEnabled:
|
|
2635
|
-
phoneRequired:
|
|
2636
|
-
verifyEmailRequired:
|
|
2637
|
-
verifyPhoneRequired:
|
|
2638
|
-
firstNameLastNameEnabled:
|
|
2639
|
-
firstNameLastNameRequired:
|
|
2640
|
-
resetPasswordAllowed:
|
|
2641
|
-
passwordPolicy:
|
|
2642
|
-
minLength:
|
|
2643
|
-
requireUppercase:
|
|
2644
|
-
requireLowercase:
|
|
2645
|
-
requireNumbers:
|
|
2646
|
-
requireSpecialCharacters:
|
|
2674
|
+
response: alepha1.TObject<{
|
|
2675
|
+
settings: alepha1.TObject<{
|
|
2676
|
+
displayName: alepha1.TOptional<alepha1.TString>;
|
|
2677
|
+
description: alepha1.TOptional<alepha1.TString>;
|
|
2678
|
+
logoUrl: alepha1.TOptional<alepha1.TString>;
|
|
2679
|
+
registrationAllowed: alepha1.TBoolean;
|
|
2680
|
+
emailEnabled: alepha1.TBoolean;
|
|
2681
|
+
emailRequired: alepha1.TBoolean;
|
|
2682
|
+
usernameEnabled: alepha1.TBoolean;
|
|
2683
|
+
usernameRequired: alepha1.TBoolean;
|
|
2684
|
+
phoneEnabled: alepha1.TBoolean;
|
|
2685
|
+
phoneRequired: alepha1.TBoolean;
|
|
2686
|
+
verifyEmailRequired: alepha1.TBoolean;
|
|
2687
|
+
verifyPhoneRequired: alepha1.TBoolean;
|
|
2688
|
+
firstNameLastNameEnabled: alepha1.TBoolean;
|
|
2689
|
+
firstNameLastNameRequired: alepha1.TBoolean;
|
|
2690
|
+
resetPasswordAllowed: alepha1.TBoolean;
|
|
2691
|
+
passwordPolicy: alepha1.TObject<{
|
|
2692
|
+
minLength: alepha1.TInteger;
|
|
2693
|
+
requireUppercase: alepha1.TBoolean;
|
|
2694
|
+
requireLowercase: alepha1.TBoolean;
|
|
2695
|
+
requireNumbers: alepha1.TBoolean;
|
|
2696
|
+
requireSpecialCharacters: alepha1.TBoolean;
|
|
2647
2697
|
}>;
|
|
2648
2698
|
}>;
|
|
2649
|
-
realmName:
|
|
2650
|
-
authenticationMethods:
|
|
2651
|
-
name:
|
|
2652
|
-
type:
|
|
2699
|
+
realmName: alepha1.TString;
|
|
2700
|
+
authenticationMethods: alepha1.TArray<alepha1.TObject<{
|
|
2701
|
+
name: alepha1.TString;
|
|
2702
|
+
type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
2653
2703
|
}>>;
|
|
2654
2704
|
}>;
|
|
2655
2705
|
}>;
|
|
2656
2706
|
readonly checkUsernameAvailability: alepha_server0.ActionPrimitiveFn<{
|
|
2657
|
-
query:
|
|
2658
|
-
userRealmName:
|
|
2707
|
+
query: alepha1.TObject<{
|
|
2708
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2659
2709
|
}>;
|
|
2660
|
-
body:
|
|
2661
|
-
username:
|
|
2710
|
+
body: alepha1.TObject<{
|
|
2711
|
+
username: alepha1.TString;
|
|
2662
2712
|
}>;
|
|
2663
|
-
response:
|
|
2664
|
-
available:
|
|
2713
|
+
response: alepha1.TObject<{
|
|
2714
|
+
available: alepha1.TBoolean;
|
|
2665
2715
|
}>;
|
|
2666
2716
|
}>;
|
|
2667
2717
|
}
|
|
2668
2718
|
//#endregion
|
|
2669
|
-
//#region ../../src/api
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
* Realm uses session management for handling user sessions.
|
|
2680
|
-
*
|
|
2681
|
-
* Environment Variables:
|
|
2682
|
-
* - `APP_SECRET`: Secret key for signing tokens (if not provided in options).
|
|
2683
|
-
*/
|
|
2684
|
-
declare const $userRealm: (options?: UserRealmOptions) => UserRealmPrimitive;
|
|
2685
|
-
interface UserRealmOptions {
|
|
2686
|
-
/**
|
|
2687
|
-
* Secret key for signing tokens.
|
|
2688
|
-
*
|
|
2689
|
-
* If not provided, the secret from the SecurityProvider will be used (usually from the APP_SECRET environment variable).
|
|
2690
|
-
*/
|
|
2691
|
-
secret?: string;
|
|
2692
|
-
/**
|
|
2693
|
-
* Realm configuration options.
|
|
2694
|
-
*
|
|
2695
|
-
* It's already pre-configured for user management with admin and user roles.
|
|
2696
|
-
*/
|
|
2697
|
-
realm?: Partial<RealmPrimitiveOptions>;
|
|
2698
|
-
/**
|
|
2699
|
-
* Override entities.
|
|
2700
|
-
*/
|
|
2701
|
-
entities?: {
|
|
2702
|
-
users?: Repository<typeof users.schema>;
|
|
2703
|
-
identities?: Repository<typeof identities.schema>;
|
|
2704
|
-
sessions?: Repository<typeof sessions.schema>;
|
|
2705
|
-
};
|
|
2706
|
-
settings?: Partial<RealmAuthSettings>;
|
|
2707
|
-
identities?: {
|
|
2708
|
-
credentials?: true;
|
|
2709
|
-
google?: true;
|
|
2710
|
-
github?: true;
|
|
2711
|
-
};
|
|
2712
|
-
modules?: {
|
|
2713
|
-
files?: boolean;
|
|
2714
|
-
audits?: boolean;
|
|
2715
|
-
jobs?: boolean;
|
|
2716
|
-
};
|
|
2717
|
-
}
|
|
2718
|
-
//#endregion
|
|
2719
|
-
//#region ../../src/api-users/schemas/identityResourceSchema.d.ts
|
|
2720
|
-
declare const identityResourceSchema: alepha23.TObject<{
|
|
2721
|
-
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2722
|
-
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2723
|
-
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2724
|
-
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2725
|
-
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
2726
|
-
provider: alepha23.TString;
|
|
2727
|
-
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
2728
|
-
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
2719
|
+
//#region ../../src/api/users/schemas/identityResourceSchema.d.ts
|
|
2720
|
+
declare const identityResourceSchema: alepha1.TObject<{
|
|
2721
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2722
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2723
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2724
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2725
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2726
|
+
provider: alepha1.TString;
|
|
2727
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
2728
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
2729
2729
|
}>;
|
|
2730
2730
|
type IdentityResource = Static<typeof identityResourceSchema>;
|
|
2731
2731
|
//#endregion
|
|
2732
|
-
//#region ../../src/api
|
|
2733
|
-
declare const loginSchema:
|
|
2734
|
-
username:
|
|
2735
|
-
password:
|
|
2732
|
+
//#region ../../src/api/users/schemas/loginSchema.d.ts
|
|
2733
|
+
declare const loginSchema: alepha1.TObject<{
|
|
2734
|
+
username: alepha1.TString;
|
|
2735
|
+
password: alepha1.TString;
|
|
2736
2736
|
}>;
|
|
2737
2737
|
type LoginInput = Static<typeof loginSchema>;
|
|
2738
2738
|
//#endregion
|
|
2739
|
-
//#region ../../src/api
|
|
2740
|
-
declare const registerSchema:
|
|
2741
|
-
username:
|
|
2742
|
-
email:
|
|
2743
|
-
password:
|
|
2744
|
-
confirmPassword:
|
|
2745
|
-
firstName:
|
|
2746
|
-
lastName:
|
|
2739
|
+
//#region ../../src/api/users/schemas/registerSchema.d.ts
|
|
2740
|
+
declare const registerSchema: alepha1.TObject<{
|
|
2741
|
+
username: alepha1.TString;
|
|
2742
|
+
email: alepha1.TString;
|
|
2743
|
+
password: alepha1.TString;
|
|
2744
|
+
confirmPassword: alepha1.TString;
|
|
2745
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2746
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2747
2747
|
}>;
|
|
2748
2748
|
type RegisterInput = Static<typeof registerSchema>;
|
|
2749
2749
|
//#endregion
|
|
2750
|
-
//#region ../../src/api
|
|
2751
|
-
declare const resetPasswordRequestSchema:
|
|
2752
|
-
email:
|
|
2750
|
+
//#region ../../src/api/users/schemas/resetPasswordSchema.d.ts
|
|
2751
|
+
declare const resetPasswordRequestSchema: alepha1.TObject<{
|
|
2752
|
+
email: alepha1.TString;
|
|
2753
2753
|
}>;
|
|
2754
|
-
declare const resetPasswordSchema:
|
|
2755
|
-
token:
|
|
2756
|
-
password:
|
|
2757
|
-
confirmPassword:
|
|
2754
|
+
declare const resetPasswordSchema: alepha1.TObject<{
|
|
2755
|
+
token: alepha1.TString;
|
|
2756
|
+
password: alepha1.TString;
|
|
2757
|
+
confirmPassword: alepha1.TString;
|
|
2758
2758
|
}>;
|
|
2759
2759
|
type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
|
|
2760
2760
|
type ResetPasswordInput = Static<typeof resetPasswordSchema>;
|
|
2761
2761
|
//#endregion
|
|
2762
|
-
//#region ../../src/api
|
|
2763
|
-
declare const sessionResourceSchema:
|
|
2764
|
-
id:
|
|
2765
|
-
version:
|
|
2766
|
-
createdAt:
|
|
2767
|
-
updatedAt:
|
|
2768
|
-
refreshToken:
|
|
2769
|
-
userId:
|
|
2770
|
-
expiresAt:
|
|
2771
|
-
ip:
|
|
2772
|
-
userAgent:
|
|
2773
|
-
os:
|
|
2774
|
-
browser:
|
|
2775
|
-
device:
|
|
2762
|
+
//#region ../../src/api/users/schemas/sessionResourceSchema.d.ts
|
|
2763
|
+
declare const sessionResourceSchema: alepha1.TObject<{
|
|
2764
|
+
id: alepha1.TString;
|
|
2765
|
+
version: alepha1.TNumber;
|
|
2766
|
+
createdAt: alepha1.TString;
|
|
2767
|
+
updatedAt: alepha1.TString;
|
|
2768
|
+
refreshToken: alepha1.TString;
|
|
2769
|
+
userId: alepha1.TString;
|
|
2770
|
+
expiresAt: alepha1.TString;
|
|
2771
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
2772
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
2773
|
+
os: alepha1.TString;
|
|
2774
|
+
browser: alepha1.TString;
|
|
2775
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2776
2776
|
}>>;
|
|
2777
2777
|
}>;
|
|
2778
2778
|
type SessionResource = Static<typeof sessionResourceSchema>;
|
|
2779
2779
|
//#endregion
|
|
2780
|
-
//#region ../../src/api
|
|
2781
|
-
declare const userRealmConfigSchema:
|
|
2782
|
-
settings:
|
|
2783
|
-
displayName:
|
|
2784
|
-
description:
|
|
2785
|
-
logoUrl:
|
|
2786
|
-
registrationAllowed:
|
|
2787
|
-
emailEnabled:
|
|
2788
|
-
emailRequired:
|
|
2789
|
-
usernameEnabled:
|
|
2790
|
-
usernameRequired:
|
|
2791
|
-
phoneEnabled:
|
|
2792
|
-
phoneRequired:
|
|
2793
|
-
verifyEmailRequired:
|
|
2794
|
-
verifyPhoneRequired:
|
|
2795
|
-
firstNameLastNameEnabled:
|
|
2796
|
-
firstNameLastNameRequired:
|
|
2797
|
-
resetPasswordAllowed:
|
|
2798
|
-
passwordPolicy:
|
|
2799
|
-
minLength:
|
|
2800
|
-
requireUppercase:
|
|
2801
|
-
requireLowercase:
|
|
2802
|
-
requireNumbers:
|
|
2803
|
-
requireSpecialCharacters:
|
|
2780
|
+
//#region ../../src/api/users/schemas/userRealmConfigSchema.d.ts
|
|
2781
|
+
declare const userRealmConfigSchema: alepha1.TObject<{
|
|
2782
|
+
settings: alepha1.TObject<{
|
|
2783
|
+
displayName: alepha1.TOptional<alepha1.TString>;
|
|
2784
|
+
description: alepha1.TOptional<alepha1.TString>;
|
|
2785
|
+
logoUrl: alepha1.TOptional<alepha1.TString>;
|
|
2786
|
+
registrationAllowed: alepha1.TBoolean;
|
|
2787
|
+
emailEnabled: alepha1.TBoolean;
|
|
2788
|
+
emailRequired: alepha1.TBoolean;
|
|
2789
|
+
usernameEnabled: alepha1.TBoolean;
|
|
2790
|
+
usernameRequired: alepha1.TBoolean;
|
|
2791
|
+
phoneEnabled: alepha1.TBoolean;
|
|
2792
|
+
phoneRequired: alepha1.TBoolean;
|
|
2793
|
+
verifyEmailRequired: alepha1.TBoolean;
|
|
2794
|
+
verifyPhoneRequired: alepha1.TBoolean;
|
|
2795
|
+
firstNameLastNameEnabled: alepha1.TBoolean;
|
|
2796
|
+
firstNameLastNameRequired: alepha1.TBoolean;
|
|
2797
|
+
resetPasswordAllowed: alepha1.TBoolean;
|
|
2798
|
+
passwordPolicy: alepha1.TObject<{
|
|
2799
|
+
minLength: alepha1.TInteger;
|
|
2800
|
+
requireUppercase: alepha1.TBoolean;
|
|
2801
|
+
requireLowercase: alepha1.TBoolean;
|
|
2802
|
+
requireNumbers: alepha1.TBoolean;
|
|
2803
|
+
requireSpecialCharacters: alepha1.TBoolean;
|
|
2804
2804
|
}>;
|
|
2805
2805
|
}>;
|
|
2806
|
-
realmName:
|
|
2807
|
-
authenticationMethods:
|
|
2808
|
-
name:
|
|
2809
|
-
type:
|
|
2806
|
+
realmName: alepha1.TString;
|
|
2807
|
+
authenticationMethods: alepha1.TArray<alepha1.TObject<{
|
|
2808
|
+
name: alepha1.TString;
|
|
2809
|
+
type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
2810
2810
|
}>>;
|
|
2811
2811
|
}>;
|
|
2812
2812
|
type UserRealmConfig = Static<typeof userRealmConfigSchema>;
|
|
2813
2813
|
//#endregion
|
|
2814
|
-
//#region ../../src/api
|
|
2815
|
-
declare const userResourceSchema:
|
|
2816
|
-
id: PgAttr<PgAttr<
|
|
2817
|
-
version: PgAttr<PgAttr<
|
|
2818
|
-
createdAt: PgAttr<PgAttr<
|
|
2819
|
-
updatedAt: PgAttr<PgAttr<
|
|
2820
|
-
realm: PgAttr<
|
|
2821
|
-
username:
|
|
2822
|
-
email:
|
|
2823
|
-
phoneNumber:
|
|
2824
|
-
roles: PgAttr<
|
|
2825
|
-
firstName:
|
|
2826
|
-
lastName:
|
|
2827
|
-
picture:
|
|
2828
|
-
enabled: PgAttr<
|
|
2829
|
-
emailVerified: PgAttr<
|
|
2814
|
+
//#region ../../src/api/users/schemas/userResourceSchema.d.ts
|
|
2815
|
+
declare const userResourceSchema: alepha1.TObject<{
|
|
2816
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2817
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2818
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2819
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2820
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2821
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2822
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2823
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2824
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2825
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2826
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2827
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2828
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2829
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2830
2830
|
}>;
|
|
2831
2831
|
type UserResource = Static<typeof userResourceSchema>;
|
|
2832
2832
|
//#endregion
|
|
2833
|
-
//#region ../../src/api
|
|
2833
|
+
//#region ../../src/api/users/services/SessionService.d.ts
|
|
2834
2834
|
declare class SessionService {
|
|
2835
2835
|
protected readonly alepha: Alepha;
|
|
2836
2836
|
protected readonly fsp: FileSystemProvider;
|
|
@@ -2839,47 +2839,47 @@ declare class SessionService {
|
|
|
2839
2839
|
protected readonly log: alepha_logger1.Logger;
|
|
2840
2840
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
2841
2841
|
protected readonly fileController: alepha_server_links0.HttpVirtualClient<FileController>;
|
|
2842
|
-
users(userRealmName?: string): Repository$1<
|
|
2843
|
-
id: PgAttr<PgAttr<
|
|
2844
|
-
version: PgAttr<PgAttr<
|
|
2845
|
-
createdAt: PgAttr<PgAttr<
|
|
2846
|
-
updatedAt: PgAttr<PgAttr<
|
|
2847
|
-
realm: PgAttr<
|
|
2848
|
-
username:
|
|
2849
|
-
email:
|
|
2850
|
-
phoneNumber:
|
|
2851
|
-
roles: PgAttr<
|
|
2852
|
-
firstName:
|
|
2853
|
-
lastName:
|
|
2854
|
-
picture:
|
|
2855
|
-
enabled: PgAttr<
|
|
2856
|
-
emailVerified: PgAttr<
|
|
2842
|
+
users(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2843
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2844
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2845
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2846
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2847
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2848
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2849
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2850
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2851
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2852
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2853
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2854
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2855
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2856
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2857
2857
|
}>>;
|
|
2858
|
-
sessions(userRealmName?: string): Repository$1<
|
|
2859
|
-
id: PgAttr<PgAttr<
|
|
2860
|
-
version: PgAttr<PgAttr<
|
|
2861
|
-
createdAt: PgAttr<PgAttr<
|
|
2862
|
-
updatedAt: PgAttr<PgAttr<
|
|
2863
|
-
refreshToken:
|
|
2864
|
-
userId: PgAttr<
|
|
2865
|
-
expiresAt:
|
|
2866
|
-
ip:
|
|
2867
|
-
userAgent:
|
|
2868
|
-
os:
|
|
2869
|
-
browser:
|
|
2870
|
-
device:
|
|
2858
|
+
sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2859
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2860
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2861
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2862
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2863
|
+
refreshToken: alepha1.TString;
|
|
2864
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2865
|
+
expiresAt: alepha1.TString;
|
|
2866
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
2867
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
2868
|
+
os: alepha1.TString;
|
|
2869
|
+
browser: alepha1.TString;
|
|
2870
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2871
2871
|
}>>;
|
|
2872
2872
|
}>>;
|
|
2873
|
-
identities(userRealmName?: string): Repository$1<
|
|
2874
|
-
id: PgAttr<PgAttr<
|
|
2875
|
-
version: PgAttr<PgAttr<
|
|
2876
|
-
createdAt: PgAttr<PgAttr<
|
|
2877
|
-
updatedAt: PgAttr<PgAttr<
|
|
2878
|
-
userId: PgAttr<
|
|
2879
|
-
password:
|
|
2880
|
-
provider:
|
|
2881
|
-
providerUserId:
|
|
2882
|
-
providerData:
|
|
2873
|
+
identities(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2874
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2875
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2876
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2877
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2878
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2879
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
2880
|
+
provider: alepha1.TString;
|
|
2881
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
2882
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
2883
2883
|
}>>;
|
|
2884
2884
|
/**
|
|
2885
2885
|
* Random delay to prevent timing attacks (50-200ms)
|
|
@@ -2895,36 +2895,36 @@ declare class SessionService {
|
|
|
2895
2895
|
sessionId: string;
|
|
2896
2896
|
}>;
|
|
2897
2897
|
refreshSession(refreshToken: string, userRealmName?: string): Promise<{
|
|
2898
|
-
user: PgStatic<
|
|
2899
|
-
id: PgAttr<PgAttr<
|
|
2900
|
-
version: PgAttr<PgAttr<
|
|
2901
|
-
createdAt: PgAttr<PgAttr<
|
|
2902
|
-
updatedAt: PgAttr<PgAttr<
|
|
2903
|
-
realm: PgAttr<
|
|
2904
|
-
username:
|
|
2905
|
-
email:
|
|
2906
|
-
phoneNumber:
|
|
2907
|
-
roles: PgAttr<
|
|
2908
|
-
firstName:
|
|
2909
|
-
lastName:
|
|
2910
|
-
picture:
|
|
2911
|
-
enabled: PgAttr<
|
|
2912
|
-
emailVerified: PgAttr<
|
|
2913
|
-
}>, PgRelationMap<
|
|
2914
|
-
id: PgAttr<PgAttr<
|
|
2915
|
-
version: PgAttr<PgAttr<
|
|
2916
|
-
createdAt: PgAttr<PgAttr<
|
|
2917
|
-
updatedAt: PgAttr<PgAttr<
|
|
2918
|
-
realm: PgAttr<
|
|
2919
|
-
username:
|
|
2920
|
-
email:
|
|
2921
|
-
phoneNumber:
|
|
2922
|
-
roles: PgAttr<
|
|
2923
|
-
firstName:
|
|
2924
|
-
lastName:
|
|
2925
|
-
picture:
|
|
2926
|
-
enabled: PgAttr<
|
|
2927
|
-
emailVerified: PgAttr<
|
|
2898
|
+
user: PgStatic<alepha1.TObject<{
|
|
2899
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2900
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2901
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2902
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2903
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2904
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2905
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2906
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2907
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2908
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2909
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2910
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2911
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2912
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2913
|
+
}>, PgRelationMap<alepha1.TObject<{
|
|
2914
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2915
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2916
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2917
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2918
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2919
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2920
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2921
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2922
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2923
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2924
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2925
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2926
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2927
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2928
2928
|
}>>>;
|
|
2929
2929
|
expiresIn: number;
|
|
2930
2930
|
sessionId: string;
|
|
@@ -2977,7 +2977,7 @@ declare class SessionService {
|
|
|
2977
2977
|
}>;
|
|
2978
2978
|
}
|
|
2979
2979
|
//#endregion
|
|
2980
|
-
//#region ../../src/api
|
|
2980
|
+
//#region ../../src/api/users/index.d.ts
|
|
2981
2981
|
/**
|
|
2982
2982
|
* Provides user management API endpoints for Alepha applications.
|
|
2983
2983
|
*
|
|
@@ -2986,7 +2986,7 @@ declare class SessionService {
|
|
|
2986
2986
|
*
|
|
2987
2987
|
* @module alepha.api.users
|
|
2988
2988
|
*/
|
|
2989
|
-
declare const AlephaApiUsers:
|
|
2989
|
+
declare const AlephaApiUsers: alepha1.Service<alepha1.Module>;
|
|
2990
2990
|
//#endregion
|
|
2991
2991
|
export { $userRealm, AlephaApiUsers, CompletePasswordResetRequest, CompleteRegistrationRequest, CreateUser, CredentialService, DEFAULT_USER_REALM_NAME, IdentityController, IdentityEntity, IdentityQuery, IdentityResource, IdentityService, LoginInput, PasswordResetIntentResponse, RealmAuthSettings, RegisterInput, RegistrationIntentResponse, RegistrationService, ResetPasswordInput, ResetPasswordRequest, SessionController, SessionCrudService, SessionEntity, SessionQuery, SessionResource, SessionService, UpdateUser, UserController, UserEntity, UserQuery, UserRealm, UserRealmConfig, UserRealmController, UserRealmOptions, UserRealmPrimitive, UserRealmProvider, UserRealmRepositories, UserResource, UserService, completePasswordResetRequestSchema, completeRegistrationRequestSchema, createUserSchema, identities, identityQuerySchema, identityResourceSchema, loginSchema, passwordResetIntentResponseSchema, realmAuthSettingsAtom, registerSchema, registrationIntentResponseSchema, resetPasswordRequestSchema, resetPasswordSchema, sessionQuerySchema, sessionResourceSchema, sessions, updateUserSchema, userQuerySchema, userRealmConfigSchema, userResourceSchema, users };
|
|
2992
2992
|
//# sourceMappingURL=index.d.ts.map
|