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