alepha 0.15.1 → 0.15.2
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/dist/api/audits/index.d.ts +342 -365
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +10 -33
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.d.ts +180 -173
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +10 -3
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.d.ts +162 -155
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +10 -3
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +413 -0
- package/dist/api/keys/index.d.ts.map +1 -0
- package/dist/api/keys/index.js +476 -0
- package/dist/api/keys/index.js.map +1 -0
- package/dist/api/notifications/index.d.ts +10 -4
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/notifications/index.js +10 -4
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/parameters/index.d.ts +294 -301
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +30 -37
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/users/index.d.ts +1079 -769
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +2534 -218
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.d.ts +10 -4
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/api/verifications/index.js +12 -4
- package/dist/api/verifications/index.js.map +1 -1
- package/dist/batch/index.d.ts +20 -40
- package/dist/batch/index.d.ts.map +1 -1
- package/dist/batch/index.js +31 -44
- package/dist/batch/index.js.map +1 -1
- package/dist/bucket/index.d.ts +432 -8
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/bucket/index.js +1856 -12
- package/dist/bucket/index.js.map +1 -1
- package/dist/cache/core/index.d.ts +179 -7
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/core/index.js +213 -7
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cache/redis/index.d.ts +1 -0
- package/dist/cache/redis/index.d.ts.map +1 -1
- package/dist/cache/redis/index.js +4 -0
- package/dist/cache/redis/index.js.map +1 -1
- package/dist/cli/index.d.ts +488 -5612
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2326 -311
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +194 -46
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +1995 -60
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +42 -19
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +34 -13
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +62 -19
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +42 -19
- package/dist/core/index.native.js.map +1 -1
- package/dist/datetime/index.d.ts +15 -0
- package/dist/datetime/index.d.ts.map +1 -1
- package/dist/datetime/index.js +15 -0
- package/dist/datetime/index.js.map +1 -1
- package/dist/email/index.d.ts +315 -20
- package/dist/email/index.d.ts.map +1 -1
- package/dist/email/index.js +1852 -7
- package/dist/email/index.js.map +1 -1
- package/dist/fake/index.d.ts +90 -8
- package/dist/fake/index.d.ts.map +1 -1
- package/dist/fake/index.js +91 -20
- package/dist/fake/index.js.map +1 -1
- package/dist/lock/core/index.d.ts +11 -4
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/core/index.js +11 -4
- package/dist/lock/core/index.js.map +1 -1
- package/dist/logger/index.d.ts +17 -66
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +14 -63
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts +15 -35
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +12 -35
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/index.browser.js +3 -3
- package/dist/orm/index.browser.js.map +1 -1
- package/dist/orm/index.bun.js +7 -4
- package/dist/orm/index.bun.js.map +1 -1
- package/dist/orm/index.d.ts +514 -540
- package/dist/orm/index.d.ts.map +1 -1
- package/dist/orm/index.js +24 -49
- package/dist/orm/index.js.map +1 -1
- package/dist/queue/core/index.d.ts +18 -10
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/core/index.js +14 -6
- package/dist/queue/core/index.js.map +1 -1
- package/dist/react/auth/index.browser.js +108 -0
- package/dist/react/auth/index.browser.js.map +1 -0
- package/dist/react/auth/index.d.ts +100 -0
- package/dist/react/auth/index.d.ts.map +1 -0
- package/dist/react/auth/index.js +145 -0
- package/dist/react/auth/index.js.map +1 -0
- package/dist/react/core/index.d.ts +469 -0
- package/dist/react/core/index.d.ts.map +1 -0
- package/dist/react/core/index.js +464 -0
- package/dist/react/core/index.js.map +1 -0
- package/dist/react/form/index.d.ts +232 -0
- package/dist/react/form/index.d.ts.map +1 -0
- package/dist/react/form/index.js +432 -0
- package/dist/react/form/index.js.map +1 -0
- package/dist/react/head/index.browser.js +423 -0
- package/dist/react/head/index.browser.js.map +1 -0
- package/dist/react/head/index.d.ts +288 -0
- package/dist/react/head/index.d.ts.map +1 -0
- package/dist/react/head/index.js +465 -0
- package/dist/react/head/index.js.map +1 -0
- package/dist/react/i18n/index.d.ts +175 -0
- package/dist/react/i18n/index.d.ts.map +1 -0
- package/dist/react/i18n/index.js +224 -0
- package/dist/react/i18n/index.js.map +1 -0
- package/dist/react/router/index.browser.js +1980 -0
- package/dist/react/router/index.browser.js.map +1 -0
- package/dist/react/router/index.d.ts +2068 -0
- package/dist/react/router/index.d.ts.map +1 -0
- package/dist/react/router/index.js +4932 -0
- package/dist/react/router/index.js.map +1 -0
- package/dist/react/websocket/index.d.ts +117 -0
- package/dist/react/websocket/index.d.ts.map +1 -0
- package/dist/react/websocket/index.js +107 -0
- package/dist/react/websocket/index.js.map +1 -0
- package/dist/redis/index.bun.js +4 -0
- package/dist/redis/index.bun.js.map +1 -1
- package/dist/redis/index.d.ts +22 -25
- package/dist/redis/index.d.ts.map +1 -1
- package/dist/redis/index.js +16 -25
- package/dist/redis/index.js.map +1 -1
- package/dist/retry/index.d.ts +11 -2
- package/dist/retry/index.d.ts.map +1 -1
- package/dist/retry/index.js +11 -2
- package/dist/retry/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +11 -2
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +11 -2
- package/dist/scheduler/index.js.map +1 -1
- package/dist/security/index.d.ts +110 -19
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +157 -26
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +179 -174
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +12 -7
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cache/index.d.ts +7 -22
- package/dist/server/cache/index.d.ts.map +1 -1
- package/dist/server/cache/index.js +7 -22
- package/dist/server/cache/index.js.map +1 -1
- package/dist/server/compress/index.d.ts +10 -2
- package/dist/server/compress/index.d.ts.map +1 -1
- package/dist/server/compress/index.js +10 -2
- package/dist/server/compress/index.js.map +1 -1
- package/dist/server/cookies/index.d.ts +40 -16
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/cookies/index.js +7 -5
- package/dist/server/cookies/index.js.map +1 -1
- package/dist/server/core/index.d.ts +115 -14
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +231 -14
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/cors/index.d.ts +13 -23
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/cors/index.js +7 -21
- package/dist/server/cors/index.js.map +1 -1
- package/dist/server/health/index.d.ts +25 -19
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/health/index.js +8 -2
- package/dist/server/health/index.js.map +1 -1
- package/dist/server/helmet/index.d.ts +11 -3
- package/dist/server/helmet/index.d.ts.map +1 -1
- package/dist/server/helmet/index.js +11 -3
- package/dist/server/helmet/index.js.map +1 -1
- package/dist/server/links/index.d.ts +50 -45
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +11 -6
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/metrics/index.d.ts +10 -3
- package/dist/server/metrics/index.d.ts.map +1 -1
- package/dist/server/metrics/index.js +10 -3
- package/dist/server/metrics/index.js.map +1 -1
- package/dist/server/multipart/index.d.ts +9 -3
- package/dist/server/multipart/index.d.ts.map +1 -1
- package/dist/server/multipart/index.js +9 -3
- package/dist/server/multipart/index.js.map +1 -1
- package/dist/server/proxy/index.d.ts +8 -2
- package/dist/server/proxy/index.d.ts.map +1 -1
- package/dist/server/proxy/index.js +8 -2
- package/dist/server/proxy/index.js.map +1 -1
- package/dist/server/rate-limit/index.d.ts +30 -35
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.js +18 -55
- package/dist/server/rate-limit/index.js.map +1 -1
- package/dist/server/static/index.d.ts +137 -4
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/static/index.js +1848 -5
- package/dist/server/static/index.js.map +1 -1
- package/dist/server/swagger/index.d.ts +301 -6
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +1849 -6
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +301 -7
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js +1851 -7
- package/dist/sms/index.js.map +1 -1
- package/dist/system/index.browser.js +496 -0
- package/dist/system/index.browser.js.map +1 -0
- package/dist/{file → system}/index.d.ts +335 -16
- package/dist/system/index.d.ts.map +1 -0
- package/dist/{file → system}/index.js +412 -20
- package/dist/system/index.js.map +1 -0
- package/dist/thread/index.d.ts +11 -2
- package/dist/thread/index.d.ts.map +1 -1
- package/dist/thread/index.js +11 -2
- package/dist/thread/index.js.map +1 -1
- package/dist/topic/core/index.d.ts +12 -5
- package/dist/topic/core/index.d.ts.map +1 -1
- package/dist/topic/core/index.js +12 -5
- package/dist/topic/core/index.js.map +1 -1
- package/dist/vite/index.d.ts +4 -6271
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +8 -3
- package/dist/vite/index.js.map +1 -1
- package/dist/websocket/index.d.ts +12 -8
- package/dist/websocket/index.d.ts.map +1 -1
- package/dist/websocket/index.js +12 -8
- package/dist/websocket/index.js.map +1 -1
- package/package.json +80 -11
- package/src/api/audits/index.ts +10 -33
- package/src/api/files/__tests__/$bucket.spec.ts +1 -1
- package/src/api/files/controllers/AdminFileStatsController.spec.ts +1 -1
- package/src/api/files/controllers/FileController.spec.ts +1 -1
- package/src/api/files/index.ts +10 -3
- package/src/api/files/jobs/FileJobs.spec.ts +1 -1
- package/src/api/files/services/FileService.spec.ts +1 -1
- package/src/api/jobs/index.ts +10 -3
- package/src/api/keys/controllers/AdminApiKeyController.ts +75 -0
- package/src/api/keys/controllers/ApiKeyController.ts +103 -0
- package/src/api/keys/entities/apiKeyEntity.ts +41 -0
- package/src/api/keys/index.ts +49 -0
- package/src/api/keys/schemas/adminApiKeyQuerySchema.ts +7 -0
- package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +17 -0
- package/src/api/keys/schemas/createApiKeyBodySchema.ts +7 -0
- package/src/api/keys/schemas/createApiKeyResponseSchema.ts +11 -0
- package/src/api/keys/schemas/listApiKeyResponseSchema.ts +15 -0
- package/src/api/keys/schemas/revokeApiKeyParamsSchema.ts +5 -0
- package/src/api/keys/schemas/revokeApiKeyResponseSchema.ts +5 -0
- package/src/api/keys/services/ApiKeyService.spec.ts +553 -0
- package/src/api/keys/services/ApiKeyService.ts +306 -0
- package/src/api/logs/TODO.md +52 -0
- package/src/api/notifications/index.ts +10 -4
- package/src/api/parameters/index.ts +9 -30
- package/src/api/parameters/primitives/$config.ts +12 -4
- package/src/api/parameters/services/ConfigStore.ts +9 -3
- package/src/api/users/__tests__/ApiKeys-integration.spec.ts +1035 -0
- package/src/api/users/__tests__/ApiKeys.spec.ts +401 -0
- package/src/api/users/index.ts +14 -3
- package/src/api/users/primitives/$realm.ts +33 -5
- package/src/api/users/providers/RealmProvider.ts +1 -12
- package/src/api/users/services/SessionService.ts +1 -1
- package/src/api/verifications/controllers/VerificationController.ts +2 -0
- package/src/api/verifications/index.ts +10 -4
- package/src/batch/index.ts +9 -36
- package/src/batch/primitives/$batch.ts +0 -8
- package/src/batch/providers/BatchProvider.ts +29 -2
- package/src/bucket/__tests__/shared.ts +1 -1
- package/src/bucket/index.ts +13 -6
- package/src/bucket/primitives/$bucket.ts +1 -1
- package/src/bucket/providers/LocalFileStorageProvider.ts +1 -1
- package/src/bucket/providers/MemoryFileStorageProvider.ts +1 -1
- package/src/cache/core/__tests__/shared.ts +30 -0
- package/src/cache/core/index.ts +11 -6
- package/src/cache/core/primitives/$cache.spec.ts +5 -0
- package/src/cache/core/providers/CacheProvider.ts +17 -0
- package/src/cache/core/providers/MemoryCacheProvider.ts +300 -1
- package/src/cache/redis/__tests__/cache-redis.spec.ts +5 -0
- package/src/cache/redis/providers/RedisCacheProvider.ts +9 -0
- package/src/cli/apps/AlephaCli.ts +1 -14
- package/src/cli/apps/AlephaPackageBuilderCli.ts +1 -1
- package/src/cli/commands/build.ts +1 -5
- package/src/cli/commands/db.ts +17 -11
- package/src/cli/commands/deploy.ts +1 -1
- package/src/cli/commands/dev.ts +1 -20
- package/src/cli/commands/gen/env.ts +5 -2
- package/src/cli/commands/gen/openapi.ts +5 -2
- package/src/cli/commands/init.spec.ts +544 -0
- package/src/cli/commands/init.ts +89 -55
- package/src/cli/commands/lint.ts +7 -1
- package/src/cli/commands/typecheck.ts +11 -0
- package/src/cli/providers/AppEntryProvider.ts +1 -1
- package/src/cli/providers/ViteBuildProvider.ts +8 -50
- package/src/cli/providers/ViteDevServerProvider.ts +36 -8
- package/src/cli/services/AlephaCliUtils.ts +37 -122
- package/src/cli/services/PackageManagerUtils.ts +127 -11
- package/src/cli/services/ProjectScaffolder.ts +122 -77
- package/src/cli/services/ViteUtils.ts +82 -0
- package/src/cli/{assets/claudeMd.ts → templates/agentMd.ts} +32 -24
- package/src/cli/templates/gitignore.ts +39 -0
- package/src/cli/{assets → templates}/mainCss.ts +11 -2
- package/src/cli/templates/mainServerTs.ts +33 -0
- package/src/cli/templates/webAppRouterTs.ts +50 -0
- package/src/cli/{assets → templates}/webHelloComponentTsx.ts +2 -2
- package/src/command/helpers/Runner.spec.ts +4 -0
- package/src/command/helpers/Runner.ts +3 -21
- package/src/command/index.ts +12 -4
- package/src/command/providers/CliProvider.spec.ts +1067 -0
- package/src/command/providers/CliProvider.ts +203 -40
- package/src/core/Alepha.ts +2 -2
- package/src/core/__tests__/Alepha-start.spec.ts +4 -4
- package/src/core/helpers/jsonSchemaToTypeBox.spec.ts +771 -0
- package/src/core/helpers/jsonSchemaToTypeBox.ts +62 -10
- package/src/core/index.shared.ts +1 -0
- package/src/core/index.ts +20 -0
- package/src/core/providers/EventManager.spec.ts +0 -71
- package/src/core/providers/EventManager.ts +3 -15
- package/src/core/providers/Json.ts +2 -14
- package/src/datetime/index.ts +15 -0
- package/src/email/index.ts +10 -5
- package/src/email/providers/LocalEmailProvider.spec.ts +1 -1
- package/src/email/providers/LocalEmailProvider.ts +1 -1
- package/src/fake/__tests__/keyName.example.ts +1 -1
- package/src/fake/__tests__/keyName.spec.ts +5 -5
- package/src/fake/index.ts +9 -6
- package/src/fake/providers/FakeProvider.spec.ts +258 -40
- package/src/fake/providers/FakeProvider.ts +133 -19
- package/src/lock/core/index.ts +11 -4
- package/src/logger/index.ts +17 -66
- package/src/mcp/index.ts +10 -27
- package/src/mcp/transports/SseMcpTransport.ts +0 -11
- package/src/orm/__tests__/PostgresProvider.spec.ts +2 -2
- package/src/orm/index.browser.ts +2 -2
- package/src/orm/index.bun.ts +4 -2
- package/src/orm/index.ts +21 -47
- package/src/orm/providers/drivers/BunSqliteProvider.ts +1 -0
- package/src/orm/services/Repository.ts +7 -3
- package/src/queue/core/index.ts +14 -6
- package/src/react/auth/__tests__/$auth.spec.ts +202 -0
- package/src/react/auth/hooks/useAuth.ts +32 -0
- package/src/react/auth/index.browser.ts +13 -0
- package/src/react/auth/index.shared.ts +2 -0
- package/src/react/auth/index.ts +48 -0
- package/src/react/auth/providers/ReactAuthProvider.ts +16 -0
- package/src/react/auth/services/ReactAuth.ts +135 -0
- package/src/react/core/__tests__/Router.spec.tsx +169 -0
- package/src/react/core/components/ClientOnly.tsx +49 -0
- package/src/react/core/components/ErrorBoundary.tsx +73 -0
- package/src/react/core/contexts/AlephaContext.ts +7 -0
- package/src/react/core/contexts/AlephaProvider.tsx +42 -0
- package/src/react/core/hooks/useAction.browser.spec.tsx +569 -0
- package/src/react/core/hooks/useAction.ts +480 -0
- package/src/react/core/hooks/useAlepha.ts +26 -0
- package/src/react/core/hooks/useClient.ts +17 -0
- package/src/react/core/hooks/useEvents.ts +51 -0
- package/src/react/core/hooks/useInject.ts +12 -0
- package/src/react/core/hooks/useStore.ts +52 -0
- package/src/react/core/index.ts +90 -0
- package/src/react/form/components/FormState.tsx +17 -0
- package/src/react/form/errors/FormValidationError.ts +18 -0
- package/src/react/form/hooks/useForm.browser.spec.tsx +366 -0
- package/src/react/form/hooks/useForm.ts +47 -0
- package/src/react/form/hooks/useFormState.ts +130 -0
- package/src/react/form/index.ts +44 -0
- package/src/react/form/services/FormModel.ts +614 -0
- package/src/react/head/helpers/SeoExpander.spec.ts +203 -0
- package/src/react/head/helpers/SeoExpander.ts +142 -0
- package/src/react/head/hooks/useHead.spec.tsx +288 -0
- package/src/react/head/hooks/useHead.ts +62 -0
- package/src/react/head/index.browser.ts +26 -0
- package/src/react/head/index.ts +44 -0
- package/src/react/head/interfaces/Head.ts +105 -0
- package/src/react/head/primitives/$head.ts +25 -0
- package/src/react/head/providers/BrowserHeadProvider.browser.spec.ts +196 -0
- package/src/react/head/providers/BrowserHeadProvider.ts +212 -0
- package/src/react/head/providers/HeadProvider.ts +168 -0
- package/src/react/head/providers/ServerHeadProvider.ts +31 -0
- package/src/react/i18n/__tests__/integration.spec.tsx +239 -0
- package/src/react/i18n/components/Localize.spec.tsx +357 -0
- package/src/react/i18n/components/Localize.tsx +35 -0
- package/src/react/i18n/hooks/useI18n.browser.spec.tsx +438 -0
- package/src/react/i18n/hooks/useI18n.ts +18 -0
- package/src/react/i18n/index.ts +41 -0
- package/src/react/i18n/primitives/$dictionary.ts +69 -0
- package/src/react/i18n/providers/I18nProvider.spec.ts +389 -0
- package/src/react/i18n/providers/I18nProvider.ts +278 -0
- package/src/react/router/__tests__/page-head-browser.browser.spec.ts +95 -0
- package/src/react/router/__tests__/page-head.spec.ts +48 -0
- package/src/react/router/__tests__/seo-head.spec.ts +125 -0
- package/src/react/router/atoms/ssrManifestAtom.ts +58 -0
- package/src/react/router/components/ErrorViewer.tsx +872 -0
- package/src/react/router/components/Link.tsx +23 -0
- package/src/react/router/components/NestedView.tsx +223 -0
- package/src/react/router/components/NotFound.tsx +30 -0
- package/src/react/router/constants/PAGE_PRELOAD_KEY.ts +6 -0
- package/src/react/router/contexts/RouterLayerContext.ts +12 -0
- package/src/react/router/errors/Redirection.ts +28 -0
- package/src/react/router/hooks/useActive.ts +52 -0
- package/src/react/router/hooks/useQueryParams.ts +63 -0
- package/src/react/router/hooks/useRouter.ts +20 -0
- package/src/react/router/hooks/useRouterState.ts +11 -0
- package/src/react/router/index.browser.ts +45 -0
- package/src/react/router/index.shared.ts +19 -0
- package/src/react/router/index.ts +142 -0
- package/src/react/router/primitives/$page.browser.spec.tsx +851 -0
- package/src/react/router/primitives/$page.spec.tsx +708 -0
- package/src/react/router/primitives/$page.ts +497 -0
- package/src/react/router/providers/ReactBrowserProvider.ts +309 -0
- package/src/react/router/providers/ReactBrowserRendererProvider.ts +25 -0
- package/src/react/router/providers/ReactBrowserRouterProvider.ts +168 -0
- package/src/react/router/providers/ReactPageProvider.ts +726 -0
- package/src/react/router/providers/ReactServerProvider.spec.tsx +316 -0
- package/src/react/router/providers/ReactServerProvider.ts +558 -0
- package/src/react/router/providers/ReactServerTemplateProvider.ts +979 -0
- package/src/react/router/providers/SSRManifestProvider.ts +334 -0
- package/src/react/router/services/ReactPageServerService.ts +48 -0
- package/src/react/router/services/ReactPageService.ts +27 -0
- package/src/react/router/services/ReactRouter.ts +262 -0
- package/src/react/websocket/hooks/useRoom.tsx +242 -0
- package/src/react/websocket/index.ts +7 -0
- package/src/redis/__tests__/redis.spec.ts +13 -0
- package/src/redis/index.ts +9 -25
- package/src/redis/providers/BunRedisProvider.ts +9 -0
- package/src/redis/providers/NodeRedisProvider.ts +8 -0
- package/src/redis/providers/RedisProvider.ts +16 -0
- package/src/retry/index.ts +11 -2
- package/src/router/index.ts +15 -0
- package/src/scheduler/index.ts +11 -2
- package/src/security/__tests__/BasicAuth.spec.ts +2 -0
- package/src/security/__tests__/ServerSecurityProvider.spec.ts +13 -5
- package/src/security/index.ts +15 -10
- package/src/security/interfaces/IssuerResolver.ts +27 -0
- package/src/security/primitives/$issuer.ts +55 -0
- package/src/security/providers/SecurityProvider.ts +179 -0
- package/src/security/providers/ServerBasicAuthProvider.ts +6 -2
- package/src/security/providers/ServerSecurityProvider.ts +36 -22
- package/src/server/auth/index.ts +12 -7
- package/src/server/cache/index.ts +7 -22
- package/src/server/compress/index.ts +10 -2
- package/src/server/cookies/index.ts +7 -5
- package/src/server/cookies/primitives/$cookie.ts +33 -11
- package/src/server/core/index.ts +16 -6
- package/src/server/core/interfaces/ServerRequest.ts +83 -1
- package/src/server/core/primitives/$action.spec.ts +1 -1
- package/src/server/core/primitives/$action.ts +8 -3
- package/src/server/core/providers/NodeHttpServerProvider.ts +9 -3
- package/src/server/core/services/ServerRequestParser.spec.ts +520 -0
- package/src/server/core/services/ServerRequestParser.ts +306 -13
- package/src/server/cors/index.ts +7 -21
- package/src/server/cors/primitives/$cors.ts +6 -2
- package/src/server/health/index.ts +8 -2
- package/src/server/helmet/index.ts +11 -3
- package/src/server/links/index.ts +11 -6
- package/src/server/metrics/index.ts +10 -3
- package/src/server/multipart/index.ts +9 -3
- package/src/server/proxy/index.ts +8 -2
- package/src/server/rate-limit/index.ts +21 -25
- package/src/server/rate-limit/primitives/$rateLimit.ts +6 -2
- package/src/server/rate-limit/providers/ServerRateLimitProvider.spec.ts +38 -14
- package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +22 -56
- package/src/server/static/index.ts +8 -2
- package/src/server/static/providers/ServerStaticProvider.ts +1 -1
- package/src/server/swagger/index.ts +9 -4
- package/src/server/swagger/providers/ServerSwaggerProvider.ts +1 -1
- package/src/sms/index.ts +9 -5
- package/src/sms/providers/LocalSmsProvider.spec.ts +1 -1
- package/src/sms/providers/LocalSmsProvider.ts +1 -1
- package/src/system/index.browser.ts +11 -0
- package/src/system/index.ts +62 -0
- package/src/{file → system}/providers/FileSystemProvider.ts +16 -0
- package/src/{file → system}/providers/MemoryFileSystemProvider.ts +116 -3
- package/src/system/providers/MemoryShellProvider.ts +164 -0
- package/src/{file → system}/providers/NodeFileSystemProvider.spec.ts +2 -2
- package/src/{file → system}/providers/NodeFileSystemProvider.ts +36 -0
- package/src/system/providers/NodeShellProvider.ts +184 -0
- package/src/system/providers/ShellProvider.ts +74 -0
- package/src/{file → system}/services/FileDetector.spec.ts +2 -2
- package/src/thread/index.ts +11 -2
- package/src/topic/core/index.ts +12 -5
- package/src/vite/tasks/buildClient.ts +2 -7
- package/src/vite/tasks/buildServer.ts +17 -1
- package/src/websocket/index.ts +12 -8
- package/dist/file/index.d.ts.map +0 -1
- package/dist/file/index.js.map +0 -1
- package/src/cli/assets/mainServerTs.ts +0 -24
- package/src/cli/assets/webAppRouterTs.ts +0 -16
- package/src/cli/providers/ViteTemplateProvider.ts +0 -27
- package/src/file/index.ts +0 -43
- /package/src/cli/{assets → templates}/apiHelloControllerTs.ts +0 -0
- /package/src/cli/{assets → templates}/apiIndexTs.ts +0 -0
- /package/src/cli/{assets → templates}/biomeJson.ts +0 -0
- /package/src/cli/{assets → templates}/dummySpecTs.ts +0 -0
- /package/src/cli/{assets → templates}/editorconfig.ts +0 -0
- /package/src/cli/{assets → templates}/mainBrowserTs.ts +0 -0
- /package/src/cli/{assets → templates}/tsconfigJson.ts +0 -0
- /package/src/cli/{assets → templates}/webIndexTs.ts +0 -0
- /package/src/{file → system}/errors/FileError.ts +0 -0
- /package/src/{file → system}/services/FileDetector.ts +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { Alepha, AlephaError, Page, PageQuery, Primitive, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
1
|
+
import * as alepha23 from "alepha";
|
|
2
|
+
import { Alepha, AlephaError, FileLike, Json, Page, PageQuery, Primitive, Static, StaticEncode, StreamLike, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
3
|
import * as alepha_api_notifications0 from "alepha/api/notifications";
|
|
4
4
|
import { VerificationController } from "alepha/api/verifications";
|
|
5
5
|
import * as alepha_server0 from "alepha/server";
|
|
6
6
|
import * as alepha_orm24 from "alepha/orm";
|
|
7
7
|
import { Page as Page$1, Repository } from "alepha/orm";
|
|
8
8
|
import { AuditService } from "alepha/api/audits";
|
|
9
|
-
import * as
|
|
9
|
+
import * as alepha_logger6 from "alepha/logger";
|
|
10
10
|
import * as alepha_bucket0 from "alepha/bucket";
|
|
11
11
|
import * as alepha_server_links0 from "alepha/server/links";
|
|
12
12
|
import { OAuth2Profile, ServerAuthProvider, WithLinkFn, WithLoginFn } from "alepha/server/auth";
|
|
13
13
|
import * as alepha_cache0 from "alepha/cache";
|
|
14
14
|
import { DateTime, DateTimeProvider } from "alepha/datetime";
|
|
15
15
|
import { CryptoProvider, IssuerPrimitive, IssuerPrimitiveOptions, UserAccount } from "alepha/security";
|
|
16
|
-
import {
|
|
16
|
+
import { Readable } from "node:stream";
|
|
17
17
|
import { FileController } from "alepha/api/files";
|
|
18
18
|
import "drizzle-orm/d1";
|
|
19
19
|
import * as drizzle_orm0 from "drizzle-orm";
|
|
@@ -26,29 +26,29 @@ import "alepha/retry";
|
|
|
26
26
|
import "drizzle-orm/sqlite-core";
|
|
27
27
|
|
|
28
28
|
//#region ../../src/api/users/atoms/realmAuthSettingsAtom.d.ts
|
|
29
|
-
declare const realmAuthSettingsAtom:
|
|
30
|
-
displayName:
|
|
31
|
-
description:
|
|
32
|
-
logoUrl:
|
|
33
|
-
registrationAllowed:
|
|
34
|
-
emailEnabled:
|
|
35
|
-
emailRequired:
|
|
36
|
-
usernameEnabled:
|
|
37
|
-
usernameRequired:
|
|
38
|
-
usernameRegExp:
|
|
39
|
-
phoneEnabled:
|
|
40
|
-
phoneRequired:
|
|
41
|
-
verifyEmailRequired:
|
|
42
|
-
verifyPhoneRequired:
|
|
43
|
-
firstNameLastNameEnabled:
|
|
44
|
-
firstNameLastNameRequired:
|
|
45
|
-
resetPasswordAllowed:
|
|
46
|
-
passwordPolicy:
|
|
47
|
-
minLength:
|
|
48
|
-
requireUppercase:
|
|
49
|
-
requireLowercase:
|
|
50
|
-
requireNumbers:
|
|
51
|
-
requireSpecialCharacters:
|
|
29
|
+
declare const realmAuthSettingsAtom: alepha23.Atom<alepha23.TObject<{
|
|
30
|
+
displayName: alepha23.TOptional<alepha23.TString>;
|
|
31
|
+
description: alepha23.TOptional<alepha23.TString>;
|
|
32
|
+
logoUrl: alepha23.TOptional<alepha23.TString>;
|
|
33
|
+
registrationAllowed: alepha23.TBoolean;
|
|
34
|
+
emailEnabled: alepha23.TBoolean;
|
|
35
|
+
emailRequired: alepha23.TBoolean;
|
|
36
|
+
usernameEnabled: alepha23.TBoolean;
|
|
37
|
+
usernameRequired: alepha23.TBoolean;
|
|
38
|
+
usernameRegExp: alepha23.TString;
|
|
39
|
+
phoneEnabled: alepha23.TBoolean;
|
|
40
|
+
phoneRequired: alepha23.TBoolean;
|
|
41
|
+
verifyEmailRequired: alepha23.TBoolean;
|
|
42
|
+
verifyPhoneRequired: alepha23.TBoolean;
|
|
43
|
+
firstNameLastNameEnabled: alepha23.TBoolean;
|
|
44
|
+
firstNameLastNameRequired: alepha23.TBoolean;
|
|
45
|
+
resetPasswordAllowed: alepha23.TBoolean;
|
|
46
|
+
passwordPolicy: alepha23.TObject<{
|
|
47
|
+
minLength: alepha23.TInteger;
|
|
48
|
+
requireUppercase: alepha23.TBoolean;
|
|
49
|
+
requireLowercase: alepha23.TBoolean;
|
|
50
|
+
requireNumbers: alepha23.TBoolean;
|
|
51
|
+
requireSpecialCharacters: alepha23.TBoolean;
|
|
52
52
|
}>;
|
|
53
53
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
54
54
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
@@ -904,7 +904,7 @@ declare abstract class ModelBuilder {
|
|
|
904
904
|
//#endregion
|
|
905
905
|
//#region ../../src/orm/providers/DrizzleKitProvider.d.ts
|
|
906
906
|
declare class DrizzleKitProvider {
|
|
907
|
-
protected readonly log:
|
|
907
|
+
protected readonly log: alepha_logger6.Logger;
|
|
908
908
|
protected readonly alepha: Alepha;
|
|
909
909
|
/**
|
|
910
910
|
* Synchronize database with current schema definitions.
|
|
@@ -940,11 +940,11 @@ declare class DrizzleKitProvider {
|
|
|
940
940
|
*/
|
|
941
941
|
importDrizzleKit(): typeof DrizzleKit;
|
|
942
942
|
}
|
|
943
|
-
declare const devMigrationsSchema:
|
|
944
|
-
id:
|
|
945
|
-
name:
|
|
946
|
-
snapshot:
|
|
947
|
-
created_at:
|
|
943
|
+
declare const devMigrationsSchema: alepha23.TObject<{
|
|
944
|
+
id: alepha23.TNumber;
|
|
945
|
+
name: alepha23.TString;
|
|
946
|
+
snapshot: alepha23.TString;
|
|
947
|
+
created_at: alepha23.TString;
|
|
948
948
|
}>;
|
|
949
949
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
950
950
|
//#endregion
|
|
@@ -952,7 +952,7 @@ type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
|
952
952
|
type SQLLike = SQLWrapper | string;
|
|
953
953
|
declare abstract class DatabaseProvider {
|
|
954
954
|
protected readonly alepha: Alepha;
|
|
955
|
-
protected readonly log:
|
|
955
|
+
protected readonly log: alepha_logger6.Logger;
|
|
956
956
|
protected abstract readonly builder: ModelBuilder;
|
|
957
957
|
protected abstract readonly kit: DrizzleKitProvider;
|
|
958
958
|
abstract readonly db: PgDatabase<any>;
|
|
@@ -1070,7 +1070,7 @@ declare class QueryManager {
|
|
|
1070
1070
|
createPagination<T>(entities: T[], limit?: number, offset?: number, sort?: Array<{
|
|
1071
1071
|
column: string;
|
|
1072
1072
|
direction: "asc" | "desc";
|
|
1073
|
-
}>):
|
|
1073
|
+
}>): alepha23.Page<T>;
|
|
1074
1074
|
}
|
|
1075
1075
|
interface PgJoin {
|
|
1076
1076
|
table: string;
|
|
@@ -1104,7 +1104,7 @@ declare class PgRelationManager {
|
|
|
1104
1104
|
declare abstract class Repository$1<T extends TObject> {
|
|
1105
1105
|
readonly entity: EntityPrimitive<T>;
|
|
1106
1106
|
readonly provider: DatabaseProvider;
|
|
1107
|
-
protected readonly log:
|
|
1107
|
+
protected readonly log: alepha_logger6.Logger;
|
|
1108
1108
|
protected readonly relationManager: PgRelationManager;
|
|
1109
1109
|
protected readonly queryManager: QueryManager;
|
|
1110
1110
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
@@ -1255,7 +1255,7 @@ declare abstract class Repository$1<T extends TObject> {
|
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Find an entity and update it.
|
|
1257
1257
|
*/
|
|
1258
|
-
updateOne(where: PgQueryWhereOrSQL<T>, data:
|
|
1258
|
+
updateOne(where: PgQueryWhereOrSQL<T>, data: WithSQL<Static<TObjectUpdate<T>>>, opts?: StatementOptions): Promise<Static<T>>;
|
|
1259
1259
|
/**
|
|
1260
1260
|
* Save a given entity.
|
|
1261
1261
|
*
|
|
@@ -1280,11 +1280,11 @@ declare abstract class Repository$1<T extends TObject> {
|
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Find an entity by ID and update it.
|
|
1282
1282
|
*/
|
|
1283
|
-
updateById(id: string | number, data:
|
|
1283
|
+
updateById(id: string | number, data: WithSQL<Static<TObjectUpdate<T>>>, opts?: StatementOptions): Promise<Static<T>>;
|
|
1284
1284
|
/**
|
|
1285
1285
|
* Find many entities and update all of them.
|
|
1286
1286
|
*/
|
|
1287
|
-
updateMany(where: PgQueryWhereOrSQL<T>, data:
|
|
1287
|
+
updateMany(where: PgQueryWhereOrSQL<T>, data: WithSQL<Static<TObjectUpdate<T>>>, opts?: StatementOptions): Promise<Array<number | string>>;
|
|
1288
1288
|
/**
|
|
1289
1289
|
* Find many and delete all of them.
|
|
1290
1290
|
* @returns Array of deleted entity IDs
|
|
@@ -1379,56 +1379,57 @@ interface StatementOptions {
|
|
|
1379
1379
|
*/
|
|
1380
1380
|
now?: DateTime | string;
|
|
1381
1381
|
}
|
|
1382
|
+
type WithSQL<T> = { [P in keyof T]?: T[P] | SQL };
|
|
1382
1383
|
//#endregion
|
|
1383
1384
|
//#region ../../src/api/users/entities/identities.d.ts
|
|
1384
|
-
declare const identities: alepha_orm24.EntityPrimitive<
|
|
1385
|
-
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1386
|
-
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1387
|
-
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1388
|
-
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1389
|
-
userId: alepha_orm24.PgAttr<
|
|
1390
|
-
password:
|
|
1391
|
-
provider:
|
|
1392
|
-
providerUserId:
|
|
1393
|
-
providerData:
|
|
1385
|
+
declare const identities: alepha_orm24.EntityPrimitive<alepha23.TObject<{
|
|
1386
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1387
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1388
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1389
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1390
|
+
userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
|
|
1391
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
1392
|
+
provider: alepha23.TString;
|
|
1393
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
1394
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
1394
1395
|
}>>;
|
|
1395
1396
|
type IdentityEntity = Static<typeof identities.schema>;
|
|
1396
1397
|
//#endregion
|
|
1397
1398
|
//#region ../../src/api/users/entities/sessions.d.ts
|
|
1398
|
-
declare const sessions: alepha_orm24.EntityPrimitive<
|
|
1399
|
-
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1400
|
-
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1401
|
-
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1402
|
-
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1403
|
-
refreshToken:
|
|
1404
|
-
userId: alepha_orm24.PgAttr<
|
|
1405
|
-
expiresAt:
|
|
1406
|
-
ip:
|
|
1407
|
-
userAgent:
|
|
1408
|
-
os:
|
|
1409
|
-
browser:
|
|
1410
|
-
device:
|
|
1399
|
+
declare const sessions: alepha_orm24.EntityPrimitive<alepha23.TObject<{
|
|
1400
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1401
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1402
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1403
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1404
|
+
refreshToken: alepha23.TString;
|
|
1405
|
+
userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
|
|
1406
|
+
expiresAt: alepha23.TString;
|
|
1407
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
1408
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
1409
|
+
os: alepha23.TString;
|
|
1410
|
+
browser: alepha23.TString;
|
|
1411
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1411
1412
|
}>>;
|
|
1412
1413
|
}>>;
|
|
1413
1414
|
type SessionEntity = Static<typeof sessions.schema>;
|
|
1414
1415
|
//#endregion
|
|
1415
1416
|
//#region ../../src/api/users/entities/users.d.ts
|
|
1416
1417
|
declare const DEFAULT_USER_REALM_NAME = "default";
|
|
1417
|
-
declare const users: alepha_orm24.EntityPrimitive<
|
|
1418
|
-
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1419
|
-
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1420
|
-
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1421
|
-
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1422
|
-
realm: alepha_orm24.PgAttr<
|
|
1423
|
-
username:
|
|
1424
|
-
email:
|
|
1425
|
-
phoneNumber:
|
|
1426
|
-
roles: alepha_orm24.PgAttr<
|
|
1427
|
-
firstName:
|
|
1428
|
-
lastName:
|
|
1429
|
-
picture:
|
|
1430
|
-
enabled: alepha_orm24.PgAttr<
|
|
1431
|
-
emailVerified: alepha_orm24.PgAttr<
|
|
1418
|
+
declare const users: alepha_orm24.EntityPrimitive<alepha23.TObject<{
|
|
1419
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1420
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1421
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1422
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1423
|
+
realm: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_DEFAULT>;
|
|
1424
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
1425
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1426
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
1427
|
+
roles: alepha_orm24.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1428
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
1429
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
1430
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
1431
|
+
enabled: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
|
|
1432
|
+
emailVerified: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
|
|
1432
1433
|
}>>;
|
|
1433
1434
|
type UserEntity = Static<typeof users.schema>;
|
|
1434
1435
|
//#endregion
|
|
@@ -1475,11 +1476,20 @@ interface RealmOptions {
|
|
|
1475
1476
|
google?: true;
|
|
1476
1477
|
github?: true;
|
|
1477
1478
|
};
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1479
|
+
/**
|
|
1480
|
+
* Enable API key authentication.
|
|
1481
|
+
*
|
|
1482
|
+
* When enabled, users can create API keys to access protected endpoints
|
|
1483
|
+
* without using JWT tokens. API keys are useful for:
|
|
1484
|
+
* - Programmatic access (CLI tools, scripts)
|
|
1485
|
+
* - Long-lived authentication tokens
|
|
1486
|
+
* - Third-party integrations
|
|
1487
|
+
*
|
|
1488
|
+
* API keys can be passed via:
|
|
1489
|
+
* - Query parameter: `?api_key=ak_xxx`
|
|
1490
|
+
* - Bearer header: `Authorization: Bearer ak_xxx`
|
|
1491
|
+
*/
|
|
1492
|
+
apiKeys?: boolean;
|
|
1483
1493
|
}
|
|
1484
1494
|
//#endregion
|
|
1485
1495
|
//#region ../../src/api/users/providers/RealmProvider.d.ts
|
|
@@ -1495,51 +1505,50 @@ interface Realm {
|
|
|
1495
1505
|
}
|
|
1496
1506
|
declare class RealmProvider {
|
|
1497
1507
|
protected readonly alepha: Alepha;
|
|
1498
|
-
protected readonly defaultIdentities: Repository<
|
|
1499
|
-
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1500
|
-
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1501
|
-
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1502
|
-
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1503
|
-
userId: alepha_orm24.PgAttr<
|
|
1504
|
-
password:
|
|
1505
|
-
provider:
|
|
1506
|
-
providerUserId:
|
|
1507
|
-
providerData:
|
|
1508
|
+
protected readonly defaultIdentities: Repository<alepha23.TObject<{
|
|
1509
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1510
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1511
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1512
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1513
|
+
userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
|
|
1514
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
1515
|
+
provider: alepha23.TString;
|
|
1516
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
1517
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
1508
1518
|
}>>;
|
|
1509
|
-
protected readonly defaultSessions: Repository<
|
|
1510
|
-
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1511
|
-
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1512
|
-
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1513
|
-
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1514
|
-
refreshToken:
|
|
1515
|
-
userId: alepha_orm24.PgAttr<
|
|
1516
|
-
expiresAt:
|
|
1517
|
-
ip:
|
|
1518
|
-
userAgent:
|
|
1519
|
-
os:
|
|
1520
|
-
browser:
|
|
1521
|
-
device:
|
|
1519
|
+
protected readonly defaultSessions: Repository<alepha23.TObject<{
|
|
1520
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1521
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1522
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1523
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1524
|
+
refreshToken: alepha23.TString;
|
|
1525
|
+
userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
|
|
1526
|
+
expiresAt: alepha23.TString;
|
|
1527
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
1528
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
1529
|
+
os: alepha23.TString;
|
|
1530
|
+
browser: alepha23.TString;
|
|
1531
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1522
1532
|
}>>;
|
|
1523
1533
|
}>>;
|
|
1524
|
-
protected readonly defaultUsers: Repository<
|
|
1525
|
-
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1526
|
-
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1527
|
-
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1528
|
-
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1529
|
-
realm: alepha_orm24.PgAttr<
|
|
1530
|
-
username:
|
|
1531
|
-
email:
|
|
1532
|
-
phoneNumber:
|
|
1533
|
-
roles: alepha_orm24.PgAttr<
|
|
1534
|
-
firstName:
|
|
1535
|
-
lastName:
|
|
1536
|
-
picture:
|
|
1537
|
-
enabled: alepha_orm24.PgAttr<
|
|
1538
|
-
emailVerified: alepha_orm24.PgAttr<
|
|
1534
|
+
protected readonly defaultUsers: Repository<alepha23.TObject<{
|
|
1535
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1536
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1537
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1538
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1539
|
+
realm: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_DEFAULT>;
|
|
1540
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
1541
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1542
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
1543
|
+
roles: alepha_orm24.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1544
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
1545
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
1546
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
1547
|
+
enabled: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
|
|
1548
|
+
emailVerified: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
|
|
1539
1549
|
}>>;
|
|
1540
1550
|
protected realms: Map<string, Realm>;
|
|
1541
1551
|
avatars: alepha_bucket0.BucketPrimitive;
|
|
1542
|
-
protected readonly onConfigure: alepha1.HookPrimitive<"configure">;
|
|
1543
1552
|
register(realmName: string, realmOptions?: RealmOptions): Realm;
|
|
1544
1553
|
/**
|
|
1545
1554
|
* Gets a registered realm by name, auto-creating default if needed.
|
|
@@ -1551,30 +1560,30 @@ declare class RealmProvider {
|
|
|
1551
1560
|
}
|
|
1552
1561
|
//#endregion
|
|
1553
1562
|
//#region ../../src/api/users/schemas/identityQuerySchema.d.ts
|
|
1554
|
-
declare const identityQuerySchema:
|
|
1555
|
-
page:
|
|
1556
|
-
size:
|
|
1557
|
-
sort:
|
|
1558
|
-
userId:
|
|
1559
|
-
provider:
|
|
1563
|
+
declare const identityQuerySchema: alepha23.TObject<{
|
|
1564
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
1565
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
1566
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
1567
|
+
userId: alepha23.TOptional<alepha23.TString>;
|
|
1568
|
+
provider: alepha23.TOptional<alepha23.TString>;
|
|
1560
1569
|
}>;
|
|
1561
1570
|
type IdentityQuery = Static<typeof identityQuerySchema>;
|
|
1562
1571
|
//#endregion
|
|
1563
1572
|
//#region ../../src/api/users/services/IdentityService.d.ts
|
|
1564
1573
|
declare class IdentityService {
|
|
1565
|
-
protected readonly log:
|
|
1574
|
+
protected readonly log: alepha_logger6.Logger;
|
|
1566
1575
|
protected readonly realmProvider: RealmProvider;
|
|
1567
1576
|
protected readonly auditService: AuditService;
|
|
1568
|
-
identities(userRealmName?: string): alepha_orm24.Repository<
|
|
1569
|
-
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1570
|
-
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1571
|
-
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1572
|
-
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1573
|
-
userId: alepha_orm24.PgAttr<
|
|
1574
|
-
password:
|
|
1575
|
-
provider:
|
|
1576
|
-
providerUserId:
|
|
1577
|
-
providerData:
|
|
1577
|
+
identities(userRealmName?: string): alepha_orm24.Repository<alepha23.TObject<{
|
|
1578
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1579
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1580
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1581
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1582
|
+
userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
|
|
1583
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
1584
|
+
provider: alepha23.TString;
|
|
1585
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
1586
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
1578
1587
|
}>>;
|
|
1579
1588
|
/**
|
|
1580
1589
|
* Find identities with pagination and filtering.
|
|
@@ -1599,90 +1608,90 @@ declare class AdminIdentityController {
|
|
|
1599
1608
|
* Find identities with pagination and filtering.
|
|
1600
1609
|
*/
|
|
1601
1610
|
readonly findIdentities: alepha_server0.ActionPrimitiveFn<{
|
|
1602
|
-
query:
|
|
1603
|
-
page:
|
|
1604
|
-
size:
|
|
1605
|
-
sort:
|
|
1606
|
-
userId:
|
|
1607
|
-
provider:
|
|
1608
|
-
userRealmName:
|
|
1611
|
+
query: alepha23.TObject<{
|
|
1612
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
1613
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
1614
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
1615
|
+
userId: alepha23.TOptional<alepha23.TString>;
|
|
1616
|
+
provider: alepha23.TOptional<alepha23.TString>;
|
|
1617
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1609
1618
|
}>;
|
|
1610
|
-
response:
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
providerUserId:
|
|
1618
|
-
providerData:
|
|
1619
|
+
response: alepha23.TPage<alepha23.TObject<{
|
|
1620
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1621
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1622
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1623
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1624
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
1625
|
+
provider: alepha23.TString;
|
|
1626
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
1627
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
1619
1628
|
}>>;
|
|
1620
1629
|
}>;
|
|
1621
1630
|
/**
|
|
1622
1631
|
* Get an identity by ID.
|
|
1623
1632
|
*/
|
|
1624
1633
|
readonly getIdentity: alepha_server0.ActionPrimitiveFn<{
|
|
1625
|
-
params:
|
|
1626
|
-
id:
|
|
1634
|
+
params: alepha23.TObject<{
|
|
1635
|
+
id: alepha23.TString;
|
|
1627
1636
|
}>;
|
|
1628
|
-
query:
|
|
1629
|
-
userRealmName:
|
|
1637
|
+
query: alepha23.TObject<{
|
|
1638
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1630
1639
|
}>;
|
|
1631
|
-
response:
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
providerUserId:
|
|
1639
|
-
providerData:
|
|
1640
|
+
response: alepha23.TObject<{
|
|
1641
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1642
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1643
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1644
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1645
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
1646
|
+
provider: alepha23.TString;
|
|
1647
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
1648
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
1640
1649
|
}>;
|
|
1641
1650
|
}>;
|
|
1642
1651
|
/**
|
|
1643
1652
|
* Delete an identity.
|
|
1644
1653
|
*/
|
|
1645
1654
|
readonly deleteIdentity: alepha_server0.ActionPrimitiveFn<{
|
|
1646
|
-
params:
|
|
1647
|
-
id:
|
|
1655
|
+
params: alepha23.TObject<{
|
|
1656
|
+
id: alepha23.TString;
|
|
1648
1657
|
}>;
|
|
1649
|
-
query:
|
|
1650
|
-
userRealmName:
|
|
1658
|
+
query: alepha23.TObject<{
|
|
1659
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1651
1660
|
}>;
|
|
1652
|
-
response:
|
|
1653
|
-
ok:
|
|
1654
|
-
id:
|
|
1655
|
-
count:
|
|
1661
|
+
response: alepha23.TObject<{
|
|
1662
|
+
ok: alepha23.TBoolean;
|
|
1663
|
+
id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
|
|
1664
|
+
count: alepha23.TOptional<alepha23.TNumber>;
|
|
1656
1665
|
}>;
|
|
1657
1666
|
}>;
|
|
1658
1667
|
}
|
|
1659
1668
|
//#endregion
|
|
1660
1669
|
//#region ../../src/api/users/schemas/sessionQuerySchema.d.ts
|
|
1661
|
-
declare const sessionQuerySchema:
|
|
1662
|
-
page:
|
|
1663
|
-
size:
|
|
1664
|
-
sort:
|
|
1665
|
-
userId:
|
|
1670
|
+
declare const sessionQuerySchema: alepha23.TObject<{
|
|
1671
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
1672
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
1673
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
1674
|
+
userId: alepha23.TOptional<alepha23.TString>;
|
|
1666
1675
|
}>;
|
|
1667
1676
|
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
1668
1677
|
//#endregion
|
|
1669
1678
|
//#region ../../src/api/users/services/SessionCrudService.d.ts
|
|
1670
1679
|
declare class SessionCrudService {
|
|
1671
|
-
protected readonly log:
|
|
1680
|
+
protected readonly log: alepha_logger6.Logger;
|
|
1672
1681
|
protected readonly realmProvider: RealmProvider;
|
|
1673
|
-
sessions(userRealmName?: string): alepha_orm24.Repository<
|
|
1674
|
-
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1675
|
-
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1676
|
-
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1677
|
-
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1678
|
-
refreshToken:
|
|
1679
|
-
userId: alepha_orm24.PgAttr<
|
|
1680
|
-
expiresAt:
|
|
1681
|
-
ip:
|
|
1682
|
-
userAgent:
|
|
1683
|
-
os:
|
|
1684
|
-
browser:
|
|
1685
|
-
device:
|
|
1682
|
+
sessions(userRealmName?: string): alepha_orm24.Repository<alepha23.TObject<{
|
|
1683
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1684
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1685
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1686
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1687
|
+
refreshToken: alepha23.TString;
|
|
1688
|
+
userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
|
|
1689
|
+
expiresAt: alepha23.TString;
|
|
1690
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
1691
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
1692
|
+
os: alepha23.TString;
|
|
1693
|
+
browser: alepha23.TString;
|
|
1694
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1686
1695
|
}>>;
|
|
1687
1696
|
}>>;
|
|
1688
1697
|
/**
|
|
@@ -1708,26 +1717,26 @@ declare class AdminSessionController {
|
|
|
1708
1717
|
* Find sessions with pagination and filtering.
|
|
1709
1718
|
*/
|
|
1710
1719
|
readonly findSessions: alepha_server0.ActionPrimitiveFn<{
|
|
1711
|
-
query:
|
|
1712
|
-
page:
|
|
1713
|
-
size:
|
|
1714
|
-
sort:
|
|
1715
|
-
userId:
|
|
1716
|
-
userRealmName:
|
|
1720
|
+
query: alepha23.TObject<{
|
|
1721
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
1722
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
1723
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
1724
|
+
userId: alepha23.TOptional<alepha23.TString>;
|
|
1725
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1717
1726
|
}>;
|
|
1718
|
-
response:
|
|
1719
|
-
id:
|
|
1720
|
-
version:
|
|
1721
|
-
createdAt:
|
|
1722
|
-
updatedAt:
|
|
1723
|
-
refreshToken:
|
|
1724
|
-
userId:
|
|
1725
|
-
expiresAt:
|
|
1726
|
-
ip:
|
|
1727
|
-
userAgent:
|
|
1728
|
-
os:
|
|
1729
|
-
browser:
|
|
1730
|
-
device:
|
|
1727
|
+
response: alepha23.TPage<alepha23.TObject<{
|
|
1728
|
+
id: alepha23.TString;
|
|
1729
|
+
version: alepha23.TNumber;
|
|
1730
|
+
createdAt: alepha23.TString;
|
|
1731
|
+
updatedAt: alepha23.TString;
|
|
1732
|
+
refreshToken: alepha23.TString;
|
|
1733
|
+
userId: alepha23.TString;
|
|
1734
|
+
expiresAt: alepha23.TString;
|
|
1735
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
1736
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
1737
|
+
os: alepha23.TString;
|
|
1738
|
+
browser: alepha23.TString;
|
|
1739
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1731
1740
|
}>>;
|
|
1732
1741
|
}>>;
|
|
1733
1742
|
}>;
|
|
@@ -1735,25 +1744,25 @@ declare class AdminSessionController {
|
|
|
1735
1744
|
* Get a session by ID.
|
|
1736
1745
|
*/
|
|
1737
1746
|
readonly getSession: alepha_server0.ActionPrimitiveFn<{
|
|
1738
|
-
params:
|
|
1739
|
-
id:
|
|
1747
|
+
params: alepha23.TObject<{
|
|
1748
|
+
id: alepha23.TString;
|
|
1740
1749
|
}>;
|
|
1741
|
-
query:
|
|
1742
|
-
userRealmName:
|
|
1750
|
+
query: alepha23.TObject<{
|
|
1751
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1743
1752
|
}>;
|
|
1744
|
-
response:
|
|
1745
|
-
id:
|
|
1746
|
-
version:
|
|
1747
|
-
createdAt:
|
|
1748
|
-
updatedAt:
|
|
1749
|
-
refreshToken:
|
|
1750
|
-
userId:
|
|
1751
|
-
expiresAt:
|
|
1752
|
-
ip:
|
|
1753
|
-
userAgent:
|
|
1754
|
-
os:
|
|
1755
|
-
browser:
|
|
1756
|
-
device:
|
|
1753
|
+
response: alepha23.TObject<{
|
|
1754
|
+
id: alepha23.TString;
|
|
1755
|
+
version: alepha23.TNumber;
|
|
1756
|
+
createdAt: alepha23.TString;
|
|
1757
|
+
updatedAt: alepha23.TString;
|
|
1758
|
+
refreshToken: alepha23.TString;
|
|
1759
|
+
userId: alepha23.TString;
|
|
1760
|
+
expiresAt: alepha23.TString;
|
|
1761
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
1762
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
1763
|
+
os: alepha23.TString;
|
|
1764
|
+
browser: alepha23.TString;
|
|
1765
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1757
1766
|
}>>;
|
|
1758
1767
|
}>;
|
|
1759
1768
|
}>;
|
|
@@ -1761,115 +1770,115 @@ declare class AdminSessionController {
|
|
|
1761
1770
|
* Delete a session.
|
|
1762
1771
|
*/
|
|
1763
1772
|
readonly deleteSession: alepha_server0.ActionPrimitiveFn<{
|
|
1764
|
-
params:
|
|
1765
|
-
id:
|
|
1773
|
+
params: alepha23.TObject<{
|
|
1774
|
+
id: alepha23.TString;
|
|
1766
1775
|
}>;
|
|
1767
|
-
query:
|
|
1768
|
-
userRealmName:
|
|
1776
|
+
query: alepha23.TObject<{
|
|
1777
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1769
1778
|
}>;
|
|
1770
|
-
response:
|
|
1771
|
-
ok:
|
|
1772
|
-
id:
|
|
1773
|
-
count:
|
|
1779
|
+
response: alepha23.TObject<{
|
|
1780
|
+
ok: alepha23.TBoolean;
|
|
1781
|
+
id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
|
|
1782
|
+
count: alepha23.TOptional<alepha23.TNumber>;
|
|
1774
1783
|
}>;
|
|
1775
1784
|
}>;
|
|
1776
1785
|
}
|
|
1777
1786
|
//#endregion
|
|
1778
1787
|
//#region ../../src/api/users/notifications/UserNotifications.d.ts
|
|
1779
1788
|
declare class UserNotifications {
|
|
1780
|
-
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<
|
|
1781
|
-
email:
|
|
1782
|
-
code:
|
|
1783
|
-
expiresInMinutes:
|
|
1789
|
+
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1790
|
+
email: alepha23.TString;
|
|
1791
|
+
code: alepha23.TString;
|
|
1792
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1784
1793
|
}>>;
|
|
1785
|
-
readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<
|
|
1786
|
-
email:
|
|
1787
|
-
code:
|
|
1788
|
-
expiresInMinutes:
|
|
1794
|
+
readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1795
|
+
email: alepha23.TString;
|
|
1796
|
+
code: alepha23.TString;
|
|
1797
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1789
1798
|
}>>;
|
|
1790
|
-
readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<
|
|
1791
|
-
phoneNumber:
|
|
1792
|
-
code:
|
|
1793
|
-
expiresInMinutes:
|
|
1799
|
+
readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1800
|
+
phoneNumber: alepha23.TString;
|
|
1801
|
+
code: alepha23.TString;
|
|
1802
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1794
1803
|
}>>;
|
|
1795
|
-
readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<
|
|
1796
|
-
email:
|
|
1797
|
-
resetUrl:
|
|
1798
|
-
expiresInMinutes:
|
|
1804
|
+
readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1805
|
+
email: alepha23.TString;
|
|
1806
|
+
resetUrl: alepha23.TString;
|
|
1807
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1799
1808
|
}>>;
|
|
1800
|
-
readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<
|
|
1801
|
-
email:
|
|
1802
|
-
verifyUrl:
|
|
1803
|
-
expiresInMinutes:
|
|
1809
|
+
readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1810
|
+
email: alepha23.TString;
|
|
1811
|
+
verifyUrl: alepha23.TString;
|
|
1812
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1804
1813
|
}>>;
|
|
1805
1814
|
}
|
|
1806
1815
|
//#endregion
|
|
1807
1816
|
//#region ../../src/api/users/schemas/createUserSchema.d.ts
|
|
1808
|
-
declare const createUserSchema:
|
|
1809
|
-
id:
|
|
1810
|
-
version:
|
|
1811
|
-
email:
|
|
1812
|
-
createdAt:
|
|
1813
|
-
updatedAt:
|
|
1814
|
-
username:
|
|
1815
|
-
phoneNumber:
|
|
1816
|
-
roles:
|
|
1817
|
-
firstName:
|
|
1818
|
-
lastName:
|
|
1819
|
-
picture:
|
|
1820
|
-
enabled:
|
|
1821
|
-
emailVerified:
|
|
1817
|
+
declare const createUserSchema: alepha23.TObject<{
|
|
1818
|
+
id: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
1819
|
+
version: alepha23.TOptional<PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
1820
|
+
email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1821
|
+
createdAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
1822
|
+
updatedAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
1823
|
+
username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1824
|
+
phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1825
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
1826
|
+
firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1827
|
+
lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1828
|
+
picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1829
|
+
enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
1830
|
+
emailVerified: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
1822
1831
|
}>;
|
|
1823
1832
|
type CreateUser = Static<typeof createUserSchema>;
|
|
1824
1833
|
//#endregion
|
|
1825
1834
|
//#region ../../src/api/users/schemas/updateUserSchema.d.ts
|
|
1826
|
-
declare const updateUserSchema:
|
|
1827
|
-
email:
|
|
1828
|
-
realm:
|
|
1829
|
-
phoneNumber:
|
|
1830
|
-
roles:
|
|
1831
|
-
firstName:
|
|
1832
|
-
lastName:
|
|
1833
|
-
picture:
|
|
1834
|
-
enabled:
|
|
1835
|
+
declare const updateUserSchema: alepha23.TObject<{
|
|
1836
|
+
email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1837
|
+
realm: alepha23.TOptional<PgAttr<alepha23.TString, typeof PG_DEFAULT>>;
|
|
1838
|
+
phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1839
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
1840
|
+
firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1841
|
+
lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1842
|
+
picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1843
|
+
enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
1835
1844
|
}>;
|
|
1836
1845
|
type UpdateUser = Static<typeof updateUserSchema>;
|
|
1837
1846
|
//#endregion
|
|
1838
1847
|
//#region ../../src/api/users/schemas/userQuerySchema.d.ts
|
|
1839
|
-
declare const userQuerySchema:
|
|
1840
|
-
page:
|
|
1841
|
-
size:
|
|
1842
|
-
sort:
|
|
1843
|
-
email:
|
|
1844
|
-
enabled:
|
|
1845
|
-
emailVerified:
|
|
1846
|
-
roles:
|
|
1847
|
-
query:
|
|
1848
|
+
declare const userQuerySchema: alepha23.TObject<{
|
|
1849
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
1850
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
1851
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
1852
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1853
|
+
enabled: alepha23.TOptional<alepha23.TBoolean>;
|
|
1854
|
+
emailVerified: alepha23.TOptional<alepha23.TBoolean>;
|
|
1855
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
1856
|
+
query: alepha23.TOptional<alepha23.TString>;
|
|
1848
1857
|
}>;
|
|
1849
1858
|
type UserQuery = Static<typeof userQuerySchema>;
|
|
1850
1859
|
//#endregion
|
|
1851
1860
|
//#region ../../src/api/users/services/UserService.d.ts
|
|
1852
1861
|
declare class UserService {
|
|
1853
|
-
protected readonly log:
|
|
1862
|
+
protected readonly log: alepha_logger6.Logger;
|
|
1854
1863
|
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
1855
1864
|
protected readonly userNotifications: UserNotifications;
|
|
1856
1865
|
protected readonly realmProvider: RealmProvider;
|
|
1857
1866
|
protected readonly auditService: AuditService;
|
|
1858
|
-
users(userRealmName?: string): alepha_orm24.Repository<
|
|
1859
|
-
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1860
|
-
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1861
|
-
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1862
|
-
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<
|
|
1863
|
-
realm: alepha_orm24.PgAttr<
|
|
1864
|
-
username:
|
|
1865
|
-
email:
|
|
1866
|
-
phoneNumber:
|
|
1867
|
-
roles: alepha_orm24.PgAttr<
|
|
1868
|
-
firstName:
|
|
1869
|
-
lastName:
|
|
1870
|
-
picture:
|
|
1871
|
-
enabled: alepha_orm24.PgAttr<
|
|
1872
|
-
emailVerified: alepha_orm24.PgAttr<
|
|
1867
|
+
users(userRealmName?: string): alepha_orm24.Repository<alepha23.TObject<{
|
|
1868
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1869
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1870
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1871
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1872
|
+
realm: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_DEFAULT>;
|
|
1873
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
1874
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1875
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
1876
|
+
roles: alepha_orm24.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1877
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
1878
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
1879
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
1880
|
+
enabled: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
|
|
1881
|
+
emailVerified: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
|
|
1873
1882
|
}>>;
|
|
1874
1883
|
/**
|
|
1875
1884
|
* Request email verification for a user.
|
|
@@ -1919,151 +1928,151 @@ declare class AdminUserController {
|
|
|
1919
1928
|
* Find users with pagination and filtering.
|
|
1920
1929
|
*/
|
|
1921
1930
|
readonly findUsers: alepha_server0.ActionPrimitiveFn<{
|
|
1922
|
-
query:
|
|
1923
|
-
page:
|
|
1924
|
-
size:
|
|
1925
|
-
sort:
|
|
1926
|
-
email:
|
|
1927
|
-
enabled:
|
|
1928
|
-
emailVerified:
|
|
1929
|
-
roles:
|
|
1930
|
-
query:
|
|
1931
|
-
userRealmName:
|
|
1931
|
+
query: alepha23.TObject<{
|
|
1932
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
1933
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
1934
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
1935
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1936
|
+
enabled: alepha23.TOptional<alepha23.TBoolean>;
|
|
1937
|
+
emailVerified: alepha23.TOptional<alepha23.TBoolean>;
|
|
1938
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
1939
|
+
query: alepha23.TOptional<alepha23.TString>;
|
|
1940
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1932
1941
|
}>;
|
|
1933
|
-
response:
|
|
1934
|
-
id: PgAttr<PgAttr<
|
|
1935
|
-
version: PgAttr<PgAttr<
|
|
1936
|
-
createdAt: PgAttr<PgAttr<
|
|
1937
|
-
updatedAt: PgAttr<PgAttr<
|
|
1938
|
-
realm: PgAttr<
|
|
1939
|
-
username:
|
|
1940
|
-
email:
|
|
1941
|
-
phoneNumber:
|
|
1942
|
-
roles: PgAttr<
|
|
1943
|
-
firstName:
|
|
1944
|
-
lastName:
|
|
1945
|
-
picture:
|
|
1946
|
-
enabled: PgAttr<
|
|
1947
|
-
emailVerified: PgAttr<
|
|
1942
|
+
response: alepha23.TPage<alepha23.TObject<{
|
|
1943
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1944
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1945
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1946
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1947
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
1948
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
1949
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1950
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
1951
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
1952
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
1953
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
1954
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
1955
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
1956
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
1948
1957
|
}>>;
|
|
1949
1958
|
}>;
|
|
1950
1959
|
/**
|
|
1951
1960
|
* Get a user by ID.
|
|
1952
1961
|
*/
|
|
1953
1962
|
readonly getUser: alepha_server0.ActionPrimitiveFn<{
|
|
1954
|
-
params:
|
|
1955
|
-
id:
|
|
1963
|
+
params: alepha23.TObject<{
|
|
1964
|
+
id: alepha23.TString;
|
|
1956
1965
|
}>;
|
|
1957
|
-
query:
|
|
1958
|
-
userRealmName:
|
|
1966
|
+
query: alepha23.TObject<{
|
|
1967
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1959
1968
|
}>;
|
|
1960
|
-
response:
|
|
1961
|
-
id: PgAttr<PgAttr<
|
|
1962
|
-
version: PgAttr<PgAttr<
|
|
1963
|
-
createdAt: PgAttr<PgAttr<
|
|
1964
|
-
updatedAt: PgAttr<PgAttr<
|
|
1965
|
-
realm: PgAttr<
|
|
1966
|
-
username:
|
|
1967
|
-
email:
|
|
1968
|
-
phoneNumber:
|
|
1969
|
-
roles: PgAttr<
|
|
1970
|
-
firstName:
|
|
1971
|
-
lastName:
|
|
1972
|
-
picture:
|
|
1973
|
-
enabled: PgAttr<
|
|
1974
|
-
emailVerified: PgAttr<
|
|
1969
|
+
response: alepha23.TObject<{
|
|
1970
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1971
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1972
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1973
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1974
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
1975
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
1976
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1977
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
1978
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
1979
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
1980
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
1981
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
1982
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
1983
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
1975
1984
|
}>;
|
|
1976
1985
|
}>;
|
|
1977
1986
|
/**
|
|
1978
1987
|
* Create a new user.
|
|
1979
1988
|
*/
|
|
1980
1989
|
readonly createUser: alepha_server0.ActionPrimitiveFn<{
|
|
1981
|
-
query:
|
|
1982
|
-
userRealmName:
|
|
1990
|
+
query: alepha23.TObject<{
|
|
1991
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1983
1992
|
}>;
|
|
1984
|
-
body:
|
|
1985
|
-
id:
|
|
1986
|
-
version:
|
|
1987
|
-
email:
|
|
1988
|
-
createdAt:
|
|
1989
|
-
updatedAt:
|
|
1990
|
-
username:
|
|
1991
|
-
phoneNumber:
|
|
1992
|
-
roles:
|
|
1993
|
-
firstName:
|
|
1994
|
-
lastName:
|
|
1995
|
-
picture:
|
|
1996
|
-
enabled:
|
|
1997
|
-
emailVerified:
|
|
1993
|
+
body: alepha23.TObject<{
|
|
1994
|
+
id: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
1995
|
+
version: alepha23.TOptional<PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
1996
|
+
email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1997
|
+
createdAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
1998
|
+
updatedAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
1999
|
+
username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2000
|
+
phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2001
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
2002
|
+
firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2003
|
+
lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2004
|
+
picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2005
|
+
enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
2006
|
+
emailVerified: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
1998
2007
|
}>;
|
|
1999
|
-
response:
|
|
2000
|
-
id: PgAttr<PgAttr<
|
|
2001
|
-
version: PgAttr<PgAttr<
|
|
2002
|
-
createdAt: PgAttr<PgAttr<
|
|
2003
|
-
updatedAt: PgAttr<PgAttr<
|
|
2004
|
-
realm: PgAttr<
|
|
2005
|
-
username:
|
|
2006
|
-
email:
|
|
2007
|
-
phoneNumber:
|
|
2008
|
-
roles: PgAttr<
|
|
2009
|
-
firstName:
|
|
2010
|
-
lastName:
|
|
2011
|
-
picture:
|
|
2012
|
-
enabled: PgAttr<
|
|
2013
|
-
emailVerified: PgAttr<
|
|
2008
|
+
response: alepha23.TObject<{
|
|
2009
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2010
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2011
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2012
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2013
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2014
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2015
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2016
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2017
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2018
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2019
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2020
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2021
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2022
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2014
2023
|
}>;
|
|
2015
2024
|
}>;
|
|
2016
2025
|
/**
|
|
2017
2026
|
* Update a user.
|
|
2018
2027
|
*/
|
|
2019
2028
|
readonly updateUser: alepha_server0.ActionPrimitiveFn<{
|
|
2020
|
-
params:
|
|
2021
|
-
id:
|
|
2029
|
+
params: alepha23.TObject<{
|
|
2030
|
+
id: alepha23.TString;
|
|
2022
2031
|
}>;
|
|
2023
|
-
query:
|
|
2024
|
-
userRealmName:
|
|
2032
|
+
query: alepha23.TObject<{
|
|
2033
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2025
2034
|
}>;
|
|
2026
|
-
body:
|
|
2027
|
-
email:
|
|
2028
|
-
realm:
|
|
2029
|
-
phoneNumber:
|
|
2030
|
-
roles:
|
|
2031
|
-
firstName:
|
|
2032
|
-
lastName:
|
|
2033
|
-
picture:
|
|
2034
|
-
enabled:
|
|
2035
|
+
body: alepha23.TObject<{
|
|
2036
|
+
email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2037
|
+
realm: alepha23.TOptional<PgAttr<alepha23.TString, typeof PG_DEFAULT>>;
|
|
2038
|
+
phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2039
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
2040
|
+
firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2041
|
+
lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2042
|
+
picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2043
|
+
enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
2035
2044
|
}>;
|
|
2036
|
-
response:
|
|
2037
|
-
id: PgAttr<PgAttr<
|
|
2038
|
-
version: PgAttr<PgAttr<
|
|
2039
|
-
createdAt: PgAttr<PgAttr<
|
|
2040
|
-
updatedAt: PgAttr<PgAttr<
|
|
2041
|
-
realm: PgAttr<
|
|
2042
|
-
username:
|
|
2043
|
-
email:
|
|
2044
|
-
phoneNumber:
|
|
2045
|
-
roles: PgAttr<
|
|
2046
|
-
firstName:
|
|
2047
|
-
lastName:
|
|
2048
|
-
picture:
|
|
2049
|
-
enabled: PgAttr<
|
|
2050
|
-
emailVerified: PgAttr<
|
|
2045
|
+
response: alepha23.TObject<{
|
|
2046
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2047
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2048
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2049
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2050
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2051
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2052
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2053
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2054
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2055
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2056
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2057
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2058
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2059
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2051
2060
|
}>;
|
|
2052
2061
|
}>;
|
|
2053
2062
|
/**
|
|
2054
2063
|
* Delete a user.
|
|
2055
2064
|
*/
|
|
2056
2065
|
readonly deleteUser: alepha_server0.ActionPrimitiveFn<{
|
|
2057
|
-
params:
|
|
2058
|
-
id:
|
|
2066
|
+
params: alepha23.TObject<{
|
|
2067
|
+
id: alepha23.TString;
|
|
2059
2068
|
}>;
|
|
2060
|
-
query:
|
|
2061
|
-
userRealmName:
|
|
2069
|
+
query: alepha23.TObject<{
|
|
2070
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2062
2071
|
}>;
|
|
2063
|
-
response:
|
|
2064
|
-
ok:
|
|
2065
|
-
id:
|
|
2066
|
-
count:
|
|
2072
|
+
response: alepha23.TObject<{
|
|
2073
|
+
ok: alepha23.TBoolean;
|
|
2074
|
+
id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
|
|
2075
|
+
count: alepha23.TOptional<alepha23.TNumber>;
|
|
2067
2076
|
}>;
|
|
2068
2077
|
}>;
|
|
2069
2078
|
}
|
|
@@ -2083,51 +2092,51 @@ declare class RealmController {
|
|
|
2083
2092
|
* This endpoint is not exposed in the API documentation.
|
|
2084
2093
|
*/
|
|
2085
2094
|
readonly getRealmConfig: alepha_server0.ActionPrimitiveFn<{
|
|
2086
|
-
query:
|
|
2087
|
-
realmName:
|
|
2095
|
+
query: alepha23.TObject<{
|
|
2096
|
+
realmName: alepha23.TOptional<alepha23.TString>;
|
|
2088
2097
|
}>;
|
|
2089
|
-
response:
|
|
2090
|
-
settings:
|
|
2091
|
-
displayName:
|
|
2092
|
-
description:
|
|
2093
|
-
logoUrl:
|
|
2094
|
-
registrationAllowed:
|
|
2095
|
-
emailEnabled:
|
|
2096
|
-
emailRequired:
|
|
2097
|
-
usernameEnabled:
|
|
2098
|
-
usernameRequired:
|
|
2099
|
-
usernameRegExp:
|
|
2100
|
-
phoneEnabled:
|
|
2101
|
-
phoneRequired:
|
|
2102
|
-
verifyEmailRequired:
|
|
2103
|
-
verifyPhoneRequired:
|
|
2104
|
-
firstNameLastNameEnabled:
|
|
2105
|
-
firstNameLastNameRequired:
|
|
2106
|
-
resetPasswordAllowed:
|
|
2107
|
-
passwordPolicy:
|
|
2108
|
-
minLength:
|
|
2109
|
-
requireUppercase:
|
|
2110
|
-
requireLowercase:
|
|
2111
|
-
requireNumbers:
|
|
2112
|
-
requireSpecialCharacters:
|
|
2098
|
+
response: alepha23.TObject<{
|
|
2099
|
+
settings: alepha23.TObject<{
|
|
2100
|
+
displayName: alepha23.TOptional<alepha23.TString>;
|
|
2101
|
+
description: alepha23.TOptional<alepha23.TString>;
|
|
2102
|
+
logoUrl: alepha23.TOptional<alepha23.TString>;
|
|
2103
|
+
registrationAllowed: alepha23.TBoolean;
|
|
2104
|
+
emailEnabled: alepha23.TBoolean;
|
|
2105
|
+
emailRequired: alepha23.TBoolean;
|
|
2106
|
+
usernameEnabled: alepha23.TBoolean;
|
|
2107
|
+
usernameRequired: alepha23.TBoolean;
|
|
2108
|
+
usernameRegExp: alepha23.TString;
|
|
2109
|
+
phoneEnabled: alepha23.TBoolean;
|
|
2110
|
+
phoneRequired: alepha23.TBoolean;
|
|
2111
|
+
verifyEmailRequired: alepha23.TBoolean;
|
|
2112
|
+
verifyPhoneRequired: alepha23.TBoolean;
|
|
2113
|
+
firstNameLastNameEnabled: alepha23.TBoolean;
|
|
2114
|
+
firstNameLastNameRequired: alepha23.TBoolean;
|
|
2115
|
+
resetPasswordAllowed: alepha23.TBoolean;
|
|
2116
|
+
passwordPolicy: alepha23.TObject<{
|
|
2117
|
+
minLength: alepha23.TInteger;
|
|
2118
|
+
requireUppercase: alepha23.TBoolean;
|
|
2119
|
+
requireLowercase: alepha23.TBoolean;
|
|
2120
|
+
requireNumbers: alepha23.TBoolean;
|
|
2121
|
+
requireSpecialCharacters: alepha23.TBoolean;
|
|
2113
2122
|
}>;
|
|
2114
2123
|
}>;
|
|
2115
|
-
realmName:
|
|
2116
|
-
authenticationMethods:
|
|
2117
|
-
name:
|
|
2118
|
-
type:
|
|
2124
|
+
realmName: alepha23.TString;
|
|
2125
|
+
authenticationMethods: alepha23.TArray<alepha23.TObject<{
|
|
2126
|
+
name: alepha23.TString;
|
|
2127
|
+
type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
2119
2128
|
}>>;
|
|
2120
2129
|
}>;
|
|
2121
2130
|
}>;
|
|
2122
2131
|
readonly checkUsernameAvailability: alepha_server0.ActionPrimitiveFn<{
|
|
2123
|
-
query:
|
|
2124
|
-
realmName:
|
|
2132
|
+
query: alepha23.TObject<{
|
|
2133
|
+
realmName: alepha23.TOptional<alepha23.TString>;
|
|
2125
2134
|
}>;
|
|
2126
|
-
body:
|
|
2127
|
-
username:
|
|
2135
|
+
body: alepha23.TObject<{
|
|
2136
|
+
username: alepha23.TString;
|
|
2128
2137
|
}>;
|
|
2129
|
-
response:
|
|
2130
|
-
available:
|
|
2138
|
+
response: alepha23.TObject<{
|
|
2139
|
+
available: alepha23.TBoolean;
|
|
2131
2140
|
}>;
|
|
2132
2141
|
}>;
|
|
2133
2142
|
}
|
|
@@ -2139,10 +2148,10 @@ declare class RealmController {
|
|
|
2139
2148
|
* Requires the intent ID from Phase 1, the verification code,
|
|
2140
2149
|
* and the new password.
|
|
2141
2150
|
*/
|
|
2142
|
-
declare const completePasswordResetRequestSchema:
|
|
2143
|
-
intentId:
|
|
2144
|
-
code:
|
|
2145
|
-
newPassword:
|
|
2151
|
+
declare const completePasswordResetRequestSchema: alepha23.TObject<{
|
|
2152
|
+
intentId: alepha23.TString;
|
|
2153
|
+
code: alepha23.TString;
|
|
2154
|
+
newPassword: alepha23.TString;
|
|
2146
2155
|
}>;
|
|
2147
2156
|
type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
|
|
2148
2157
|
//#endregion
|
|
@@ -2153,9 +2162,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
|
|
|
2153
2162
|
* Contains the intent ID needed for Phase 2 completion,
|
|
2154
2163
|
* along with expiration time.
|
|
2155
2164
|
*/
|
|
2156
|
-
declare const passwordResetIntentResponseSchema:
|
|
2157
|
-
intentId:
|
|
2158
|
-
expiresAt:
|
|
2165
|
+
declare const passwordResetIntentResponseSchema: alepha23.TObject<{
|
|
2166
|
+
intentId: alepha23.TString;
|
|
2167
|
+
expiresAt: alepha23.TString;
|
|
2159
2168
|
}>;
|
|
2160
2169
|
type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
|
|
2161
2170
|
//#endregion
|
|
@@ -2171,7 +2180,7 @@ interface PasswordResetIntent {
|
|
|
2171
2180
|
expiresAt: string;
|
|
2172
2181
|
}
|
|
2173
2182
|
declare class CredentialService {
|
|
2174
|
-
protected readonly log:
|
|
2183
|
+
protected readonly log: alepha_logger6.Logger;
|
|
2175
2184
|
protected readonly cryptoProvider: CryptoProvider;
|
|
2176
2185
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
2177
2186
|
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
@@ -2179,47 +2188,47 @@ declare class CredentialService {
|
|
|
2179
2188
|
protected readonly realmProvider: RealmProvider;
|
|
2180
2189
|
protected readonly auditService: AuditService;
|
|
2181
2190
|
protected readonly intentCache: alepha_cache0.CachePrimitiveFn<PasswordResetIntent, any[]>;
|
|
2182
|
-
users(userRealmName?: string): Repository$1<
|
|
2183
|
-
id: PgAttr<PgAttr<
|
|
2184
|
-
version: PgAttr<PgAttr<
|
|
2185
|
-
createdAt: PgAttr<PgAttr<
|
|
2186
|
-
updatedAt: PgAttr<PgAttr<
|
|
2187
|
-
realm: PgAttr<
|
|
2188
|
-
username:
|
|
2189
|
-
email:
|
|
2190
|
-
phoneNumber:
|
|
2191
|
-
roles: PgAttr<
|
|
2192
|
-
firstName:
|
|
2193
|
-
lastName:
|
|
2194
|
-
picture:
|
|
2195
|
-
enabled: PgAttr<
|
|
2196
|
-
emailVerified: PgAttr<
|
|
2191
|
+
users(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2192
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2193
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2194
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2195
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2196
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2197
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2198
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2199
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2200
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2201
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2202
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2203
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2204
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2205
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2197
2206
|
}>>;
|
|
2198
|
-
sessions(userRealmName?: string): Repository$1<
|
|
2199
|
-
id: PgAttr<PgAttr<
|
|
2200
|
-
version: PgAttr<PgAttr<
|
|
2201
|
-
createdAt: PgAttr<PgAttr<
|
|
2202
|
-
updatedAt: PgAttr<PgAttr<
|
|
2203
|
-
refreshToken:
|
|
2204
|
-
userId: PgAttr<
|
|
2205
|
-
expiresAt:
|
|
2206
|
-
ip:
|
|
2207
|
-
userAgent:
|
|
2208
|
-
os:
|
|
2209
|
-
browser:
|
|
2210
|
-
device:
|
|
2207
|
+
sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2208
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2209
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2210
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2211
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2212
|
+
refreshToken: alepha23.TString;
|
|
2213
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
2214
|
+
expiresAt: alepha23.TString;
|
|
2215
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
2216
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
2217
|
+
os: alepha23.TString;
|
|
2218
|
+
browser: alepha23.TString;
|
|
2219
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2211
2220
|
}>>;
|
|
2212
2221
|
}>>;
|
|
2213
|
-
identities(userRealmName?: string): Repository$1<
|
|
2214
|
-
id: PgAttr<PgAttr<
|
|
2215
|
-
version: PgAttr<PgAttr<
|
|
2216
|
-
createdAt: PgAttr<PgAttr<
|
|
2217
|
-
updatedAt: PgAttr<PgAttr<
|
|
2218
|
-
userId: PgAttr<
|
|
2219
|
-
password:
|
|
2220
|
-
provider:
|
|
2221
|
-
providerUserId:
|
|
2222
|
-
providerData:
|
|
2222
|
+
identities(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2223
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2224
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2225
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2226
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2227
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
2228
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
2229
|
+
provider: alepha23.TString;
|
|
2230
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
2231
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
2223
2232
|
}>>;
|
|
2224
2233
|
/**
|
|
2225
2234
|
* Phase 1: Create a password reset intent.
|
|
@@ -2256,11 +2265,11 @@ declare class CredentialService {
|
|
|
2256
2265
|
}
|
|
2257
2266
|
//#endregion
|
|
2258
2267
|
//#region ../../src/api/users/schemas/completeRegistrationRequestSchema.d.ts
|
|
2259
|
-
declare const completeRegistrationRequestSchema:
|
|
2260
|
-
intentId:
|
|
2261
|
-
emailCode:
|
|
2262
|
-
phoneCode:
|
|
2263
|
-
captchaToken:
|
|
2268
|
+
declare const completeRegistrationRequestSchema: alepha23.TObject<{
|
|
2269
|
+
intentId: alepha23.TString;
|
|
2270
|
+
emailCode: alepha23.TOptional<alepha23.TString>;
|
|
2271
|
+
phoneCode: alepha23.TOptional<alepha23.TString>;
|
|
2272
|
+
captchaToken: alepha23.TOptional<alepha23.TString>;
|
|
2264
2273
|
}>;
|
|
2265
2274
|
type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
|
|
2266
2275
|
//#endregion
|
|
@@ -2269,24 +2278,24 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
|
|
|
2269
2278
|
* Schema for user registration request body.
|
|
2270
2279
|
* Password is always required, other fields depend on realm settings.
|
|
2271
2280
|
*/
|
|
2272
|
-
declare const registerRequestSchema:
|
|
2273
|
-
password:
|
|
2274
|
-
username:
|
|
2275
|
-
email:
|
|
2276
|
-
phoneNumber:
|
|
2277
|
-
firstName:
|
|
2278
|
-
lastName:
|
|
2279
|
-
picture:
|
|
2281
|
+
declare const registerRequestSchema: alepha23.TObject<{
|
|
2282
|
+
password: alepha23.TString;
|
|
2283
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2284
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2285
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2286
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2287
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2288
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2280
2289
|
}>;
|
|
2281
2290
|
type RegisterRequest = Static<typeof registerRequestSchema>;
|
|
2282
2291
|
//#endregion
|
|
2283
2292
|
//#region ../../src/api/users/schemas/registrationIntentResponseSchema.d.ts
|
|
2284
|
-
declare const registrationIntentResponseSchema:
|
|
2285
|
-
intentId:
|
|
2286
|
-
expectCaptcha:
|
|
2287
|
-
expectEmailVerification:
|
|
2288
|
-
expectPhoneVerification:
|
|
2289
|
-
expiresAt:
|
|
2293
|
+
declare const registrationIntentResponseSchema: alepha23.TObject<{
|
|
2294
|
+
intentId: alepha23.TString;
|
|
2295
|
+
expectCaptcha: alepha23.TBoolean;
|
|
2296
|
+
expectEmailVerification: alepha23.TBoolean;
|
|
2297
|
+
expectPhoneVerification: alepha23.TBoolean;
|
|
2298
|
+
expiresAt: alepha23.TString;
|
|
2290
2299
|
}>;
|
|
2291
2300
|
type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
|
|
2292
2301
|
//#endregion
|
|
@@ -2313,7 +2322,7 @@ interface RegistrationIntent {
|
|
|
2313
2322
|
expiresAt: string;
|
|
2314
2323
|
}
|
|
2315
2324
|
declare class RegistrationService {
|
|
2316
|
-
protected readonly log:
|
|
2325
|
+
protected readonly log: alepha_logger6.Logger;
|
|
2317
2326
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
2318
2327
|
protected readonly cryptoProvider: CryptoProvider;
|
|
2319
2328
|
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
@@ -2369,24 +2378,24 @@ declare class UserController {
|
|
|
2369
2378
|
* Validates data, creates verification sessions, and stores intent in cache.
|
|
2370
2379
|
*/
|
|
2371
2380
|
readonly createRegistrationIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2372
|
-
body:
|
|
2373
|
-
password:
|
|
2374
|
-
username:
|
|
2375
|
-
email:
|
|
2376
|
-
phoneNumber:
|
|
2377
|
-
firstName:
|
|
2378
|
-
lastName:
|
|
2379
|
-
picture:
|
|
2381
|
+
body: alepha23.TObject<{
|
|
2382
|
+
password: alepha23.TString;
|
|
2383
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2384
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2385
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2386
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2387
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2388
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2380
2389
|
}>;
|
|
2381
|
-
query:
|
|
2382
|
-
userRealmName:
|
|
2390
|
+
query: alepha23.TObject<{
|
|
2391
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2383
2392
|
}>;
|
|
2384
|
-
response:
|
|
2385
|
-
intentId:
|
|
2386
|
-
expectCaptcha:
|
|
2387
|
-
expectEmailVerification:
|
|
2388
|
-
expectPhoneVerification:
|
|
2389
|
-
expiresAt:
|
|
2393
|
+
response: alepha23.TObject<{
|
|
2394
|
+
intentId: alepha23.TString;
|
|
2395
|
+
expectCaptcha: alepha23.TBoolean;
|
|
2396
|
+
expectEmailVerification: alepha23.TBoolean;
|
|
2397
|
+
expectPhoneVerification: alepha23.TBoolean;
|
|
2398
|
+
expiresAt: alepha23.TString;
|
|
2390
2399
|
}>;
|
|
2391
2400
|
}>;
|
|
2392
2401
|
/**
|
|
@@ -2394,27 +2403,27 @@ declare class UserController {
|
|
|
2394
2403
|
* Validates verification codes and creates the user.
|
|
2395
2404
|
*/
|
|
2396
2405
|
readonly createUserFromIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2397
|
-
body:
|
|
2398
|
-
intentId:
|
|
2399
|
-
emailCode:
|
|
2400
|
-
phoneCode:
|
|
2401
|
-
captchaToken:
|
|
2406
|
+
body: alepha23.TObject<{
|
|
2407
|
+
intentId: alepha23.TString;
|
|
2408
|
+
emailCode: alepha23.TOptional<alepha23.TString>;
|
|
2409
|
+
phoneCode: alepha23.TOptional<alepha23.TString>;
|
|
2410
|
+
captchaToken: alepha23.TOptional<alepha23.TString>;
|
|
2402
2411
|
}>;
|
|
2403
|
-
response:
|
|
2404
|
-
id: PgAttr<PgAttr<
|
|
2405
|
-
version: PgAttr<PgAttr<
|
|
2406
|
-
createdAt: PgAttr<PgAttr<
|
|
2407
|
-
updatedAt: PgAttr<PgAttr<
|
|
2408
|
-
realm: PgAttr<
|
|
2409
|
-
username:
|
|
2410
|
-
email:
|
|
2411
|
-
phoneNumber:
|
|
2412
|
-
roles: PgAttr<
|
|
2413
|
-
firstName:
|
|
2414
|
-
lastName:
|
|
2415
|
-
picture:
|
|
2416
|
-
enabled: PgAttr<
|
|
2417
|
-
emailVerified: PgAttr<
|
|
2412
|
+
response: alepha23.TObject<{
|
|
2413
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2414
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2415
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2416
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2417
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2418
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2419
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2420
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2421
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2422
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2423
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2424
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2425
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2426
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2418
2427
|
}>;
|
|
2419
2428
|
}>;
|
|
2420
2429
|
/**
|
|
@@ -2422,15 +2431,15 @@ declare class UserController {
|
|
|
2422
2431
|
* Validates email, sends verification code, and stores intent in cache.
|
|
2423
2432
|
*/
|
|
2424
2433
|
readonly createPasswordResetIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2425
|
-
query:
|
|
2426
|
-
userRealmName:
|
|
2434
|
+
query: alepha23.TObject<{
|
|
2435
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2427
2436
|
}>;
|
|
2428
|
-
body:
|
|
2429
|
-
email:
|
|
2437
|
+
body: alepha23.TObject<{
|
|
2438
|
+
email: alepha23.TString;
|
|
2430
2439
|
}>;
|
|
2431
|
-
response:
|
|
2432
|
-
intentId:
|
|
2433
|
-
expiresAt:
|
|
2440
|
+
response: alepha23.TObject<{
|
|
2441
|
+
intentId: alepha23.TString;
|
|
2442
|
+
expiresAt: alepha23.TString;
|
|
2434
2443
|
}>;
|
|
2435
2444
|
}>;
|
|
2436
2445
|
/**
|
|
@@ -2438,61 +2447,61 @@ declare class UserController {
|
|
|
2438
2447
|
* Validates verification code, updates password, and invalidates sessions.
|
|
2439
2448
|
*/
|
|
2440
2449
|
readonly completePasswordReset: alepha_server0.ActionPrimitiveFn<{
|
|
2441
|
-
body:
|
|
2442
|
-
intentId:
|
|
2443
|
-
code:
|
|
2444
|
-
newPassword:
|
|
2450
|
+
body: alepha23.TObject<{
|
|
2451
|
+
intentId: alepha23.TString;
|
|
2452
|
+
code: alepha23.TString;
|
|
2453
|
+
newPassword: alepha23.TString;
|
|
2445
2454
|
}>;
|
|
2446
|
-
response:
|
|
2447
|
-
ok:
|
|
2448
|
-
id:
|
|
2449
|
-
count:
|
|
2455
|
+
response: alepha23.TObject<{
|
|
2456
|
+
ok: alepha23.TBoolean;
|
|
2457
|
+
id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
|
|
2458
|
+
count: alepha23.TOptional<alepha23.TNumber>;
|
|
2450
2459
|
}>;
|
|
2451
2460
|
}>;
|
|
2452
2461
|
/**
|
|
2453
2462
|
* @deprecated Use createPasswordResetIntent instead
|
|
2454
2463
|
*/
|
|
2455
2464
|
requestPasswordReset: alepha_server0.ActionPrimitiveFn<{
|
|
2456
|
-
query:
|
|
2457
|
-
userRealmName:
|
|
2465
|
+
query: alepha23.TObject<{
|
|
2466
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2458
2467
|
}>;
|
|
2459
|
-
body:
|
|
2460
|
-
email:
|
|
2468
|
+
body: alepha23.TObject<{
|
|
2469
|
+
email: alepha23.TString;
|
|
2461
2470
|
}>;
|
|
2462
|
-
response:
|
|
2463
|
-
success:
|
|
2464
|
-
message:
|
|
2471
|
+
response: alepha23.TObject<{
|
|
2472
|
+
success: alepha23.TBoolean;
|
|
2473
|
+
message: alepha23.TString;
|
|
2465
2474
|
}>;
|
|
2466
2475
|
}>;
|
|
2467
2476
|
/**
|
|
2468
2477
|
* @deprecated Use completePasswordReset instead
|
|
2469
2478
|
*/
|
|
2470
2479
|
validateResetToken: alepha_server0.ActionPrimitiveFn<{
|
|
2471
|
-
query:
|
|
2472
|
-
email:
|
|
2473
|
-
token:
|
|
2474
|
-
userRealmName:
|
|
2480
|
+
query: alepha23.TObject<{
|
|
2481
|
+
email: alepha23.TString;
|
|
2482
|
+
token: alepha23.TString;
|
|
2483
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2475
2484
|
}>;
|
|
2476
|
-
response:
|
|
2477
|
-
valid:
|
|
2478
|
-
email:
|
|
2485
|
+
response: alepha23.TObject<{
|
|
2486
|
+
valid: alepha23.TBoolean;
|
|
2487
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2479
2488
|
}>;
|
|
2480
2489
|
}>;
|
|
2481
2490
|
/**
|
|
2482
2491
|
* @deprecated Use completePasswordReset instead
|
|
2483
2492
|
*/
|
|
2484
2493
|
resetPassword: alepha_server0.ActionPrimitiveFn<{
|
|
2485
|
-
query:
|
|
2486
|
-
userRealmName:
|
|
2494
|
+
query: alepha23.TObject<{
|
|
2495
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2487
2496
|
}>;
|
|
2488
|
-
body:
|
|
2489
|
-
email:
|
|
2490
|
-
token:
|
|
2491
|
-
newPassword:
|
|
2497
|
+
body: alepha23.TObject<{
|
|
2498
|
+
email: alepha23.TString;
|
|
2499
|
+
token: alepha23.TString;
|
|
2500
|
+
newPassword: alepha23.TString;
|
|
2492
2501
|
}>;
|
|
2493
|
-
response:
|
|
2494
|
-
success:
|
|
2495
|
-
message:
|
|
2502
|
+
response: alepha23.TObject<{
|
|
2503
|
+
success: alepha23.TBoolean;
|
|
2504
|
+
message: alepha23.TString;
|
|
2496
2505
|
}>;
|
|
2497
2506
|
}>;
|
|
2498
2507
|
/**
|
|
@@ -2502,17 +2511,17 @@ declare class UserController {
|
|
|
2502
2511
|
* @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
|
|
2503
2512
|
*/
|
|
2504
2513
|
requestEmailVerification: alepha_server0.ActionPrimitiveFn<{
|
|
2505
|
-
query:
|
|
2506
|
-
userRealmName:
|
|
2507
|
-
method:
|
|
2508
|
-
verifyUrl:
|
|
2514
|
+
query: alepha23.TObject<{
|
|
2515
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2516
|
+
method: alepha23.TOptional<alepha23.TUnsafe<"link" | "code">>;
|
|
2517
|
+
verifyUrl: alepha23.TOptional<alepha23.TString>;
|
|
2509
2518
|
}>;
|
|
2510
|
-
body:
|
|
2511
|
-
email:
|
|
2519
|
+
body: alepha23.TObject<{
|
|
2520
|
+
email: alepha23.TString;
|
|
2512
2521
|
}>;
|
|
2513
|
-
response:
|
|
2514
|
-
success:
|
|
2515
|
-
message:
|
|
2522
|
+
response: alepha23.TObject<{
|
|
2523
|
+
success: alepha23.TBoolean;
|
|
2524
|
+
message: alepha23.TString;
|
|
2516
2525
|
}>;
|
|
2517
2526
|
}>;
|
|
2518
2527
|
/**
|
|
@@ -2520,198 +2529,488 @@ declare class UserController {
|
|
|
2520
2529
|
* Updates the user's emailVerified status.
|
|
2521
2530
|
*/
|
|
2522
2531
|
verifyEmail: alepha_server0.ActionPrimitiveFn<{
|
|
2523
|
-
query:
|
|
2524
|
-
userRealmName:
|
|
2532
|
+
query: alepha23.TObject<{
|
|
2533
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2525
2534
|
}>;
|
|
2526
|
-
body:
|
|
2527
|
-
email:
|
|
2528
|
-
token:
|
|
2535
|
+
body: alepha23.TObject<{
|
|
2536
|
+
email: alepha23.TString;
|
|
2537
|
+
token: alepha23.TString;
|
|
2529
2538
|
}>;
|
|
2530
|
-
response:
|
|
2531
|
-
success:
|
|
2532
|
-
message:
|
|
2539
|
+
response: alepha23.TObject<{
|
|
2540
|
+
success: alepha23.TBoolean;
|
|
2541
|
+
message: alepha23.TString;
|
|
2533
2542
|
}>;
|
|
2534
2543
|
}>;
|
|
2535
2544
|
/**
|
|
2536
2545
|
* Check if an email is verified.
|
|
2537
2546
|
*/
|
|
2538
2547
|
checkEmailVerification: alepha_server0.ActionPrimitiveFn<{
|
|
2539
|
-
query:
|
|
2540
|
-
email:
|
|
2541
|
-
userRealmName:
|
|
2548
|
+
query: alepha23.TObject<{
|
|
2549
|
+
email: alepha23.TString;
|
|
2550
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2542
2551
|
}>;
|
|
2543
|
-
response:
|
|
2544
|
-
verified:
|
|
2552
|
+
response: alepha23.TObject<{
|
|
2553
|
+
verified: alepha23.TBoolean;
|
|
2545
2554
|
}>;
|
|
2546
2555
|
}>;
|
|
2547
2556
|
}
|
|
2548
2557
|
//#endregion
|
|
2549
2558
|
//#region ../../src/api/users/schemas/identityResourceSchema.d.ts
|
|
2550
|
-
declare const identityResourceSchema:
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
providerUserId:
|
|
2558
|
-
providerData:
|
|
2559
|
+
declare const identityResourceSchema: alepha23.TObject<{
|
|
2560
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2561
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2562
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2563
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2564
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
2565
|
+
provider: alepha23.TString;
|
|
2566
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
2567
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
2559
2568
|
}>;
|
|
2560
2569
|
type IdentityResource = Static<typeof identityResourceSchema>;
|
|
2561
2570
|
//#endregion
|
|
2562
2571
|
//#region ../../src/api/users/schemas/loginSchema.d.ts
|
|
2563
|
-
declare const loginSchema:
|
|
2564
|
-
username:
|
|
2565
|
-
password:
|
|
2572
|
+
declare const loginSchema: alepha23.TObject<{
|
|
2573
|
+
username: alepha23.TString;
|
|
2574
|
+
password: alepha23.TString;
|
|
2566
2575
|
}>;
|
|
2567
2576
|
type LoginInput = Static<typeof loginSchema>;
|
|
2568
2577
|
//#endregion
|
|
2569
2578
|
//#region ../../src/api/users/schemas/realmConfigSchema.d.ts
|
|
2570
|
-
declare const realmConfigSchema:
|
|
2571
|
-
settings:
|
|
2572
|
-
displayName:
|
|
2573
|
-
description:
|
|
2574
|
-
logoUrl:
|
|
2575
|
-
registrationAllowed:
|
|
2576
|
-
emailEnabled:
|
|
2577
|
-
emailRequired:
|
|
2578
|
-
usernameEnabled:
|
|
2579
|
-
usernameRequired:
|
|
2580
|
-
usernameRegExp:
|
|
2581
|
-
phoneEnabled:
|
|
2582
|
-
phoneRequired:
|
|
2583
|
-
verifyEmailRequired:
|
|
2584
|
-
verifyPhoneRequired:
|
|
2585
|
-
firstNameLastNameEnabled:
|
|
2586
|
-
firstNameLastNameRequired:
|
|
2587
|
-
resetPasswordAllowed:
|
|
2588
|
-
passwordPolicy:
|
|
2589
|
-
minLength:
|
|
2590
|
-
requireUppercase:
|
|
2591
|
-
requireLowercase:
|
|
2592
|
-
requireNumbers:
|
|
2593
|
-
requireSpecialCharacters:
|
|
2579
|
+
declare const realmConfigSchema: alepha23.TObject<{
|
|
2580
|
+
settings: alepha23.TObject<{
|
|
2581
|
+
displayName: alepha23.TOptional<alepha23.TString>;
|
|
2582
|
+
description: alepha23.TOptional<alepha23.TString>;
|
|
2583
|
+
logoUrl: alepha23.TOptional<alepha23.TString>;
|
|
2584
|
+
registrationAllowed: alepha23.TBoolean;
|
|
2585
|
+
emailEnabled: alepha23.TBoolean;
|
|
2586
|
+
emailRequired: alepha23.TBoolean;
|
|
2587
|
+
usernameEnabled: alepha23.TBoolean;
|
|
2588
|
+
usernameRequired: alepha23.TBoolean;
|
|
2589
|
+
usernameRegExp: alepha23.TString;
|
|
2590
|
+
phoneEnabled: alepha23.TBoolean;
|
|
2591
|
+
phoneRequired: alepha23.TBoolean;
|
|
2592
|
+
verifyEmailRequired: alepha23.TBoolean;
|
|
2593
|
+
verifyPhoneRequired: alepha23.TBoolean;
|
|
2594
|
+
firstNameLastNameEnabled: alepha23.TBoolean;
|
|
2595
|
+
firstNameLastNameRequired: alepha23.TBoolean;
|
|
2596
|
+
resetPasswordAllowed: alepha23.TBoolean;
|
|
2597
|
+
passwordPolicy: alepha23.TObject<{
|
|
2598
|
+
minLength: alepha23.TInteger;
|
|
2599
|
+
requireUppercase: alepha23.TBoolean;
|
|
2600
|
+
requireLowercase: alepha23.TBoolean;
|
|
2601
|
+
requireNumbers: alepha23.TBoolean;
|
|
2602
|
+
requireSpecialCharacters: alepha23.TBoolean;
|
|
2594
2603
|
}>;
|
|
2595
2604
|
}>;
|
|
2596
|
-
realmName:
|
|
2597
|
-
authenticationMethods:
|
|
2598
|
-
name:
|
|
2599
|
-
type:
|
|
2605
|
+
realmName: alepha23.TString;
|
|
2606
|
+
authenticationMethods: alepha23.TArray<alepha23.TObject<{
|
|
2607
|
+
name: alepha23.TString;
|
|
2608
|
+
type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
2600
2609
|
}>>;
|
|
2601
2610
|
}>;
|
|
2602
2611
|
type RealmConfig = Static<typeof realmConfigSchema>;
|
|
2603
2612
|
//#endregion
|
|
2604
2613
|
//#region ../../src/api/users/schemas/registerSchema.d.ts
|
|
2605
|
-
declare const registerSchema:
|
|
2606
|
-
username:
|
|
2607
|
-
email:
|
|
2608
|
-
password:
|
|
2609
|
-
confirmPassword:
|
|
2610
|
-
firstName:
|
|
2611
|
-
lastName:
|
|
2614
|
+
declare const registerSchema: alepha23.TObject<{
|
|
2615
|
+
username: alepha23.TString;
|
|
2616
|
+
email: alepha23.TString;
|
|
2617
|
+
password: alepha23.TString;
|
|
2618
|
+
confirmPassword: alepha23.TString;
|
|
2619
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2620
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2612
2621
|
}>;
|
|
2613
2622
|
type RegisterInput = Static<typeof registerSchema>;
|
|
2614
2623
|
//#endregion
|
|
2615
2624
|
//#region ../../src/api/users/schemas/resetPasswordSchema.d.ts
|
|
2616
|
-
declare const resetPasswordRequestSchema:
|
|
2617
|
-
email:
|
|
2625
|
+
declare const resetPasswordRequestSchema: alepha23.TObject<{
|
|
2626
|
+
email: alepha23.TString;
|
|
2618
2627
|
}>;
|
|
2619
|
-
declare const resetPasswordSchema:
|
|
2620
|
-
token:
|
|
2621
|
-
password:
|
|
2622
|
-
confirmPassword:
|
|
2628
|
+
declare const resetPasswordSchema: alepha23.TObject<{
|
|
2629
|
+
token: alepha23.TString;
|
|
2630
|
+
password: alepha23.TString;
|
|
2631
|
+
confirmPassword: alepha23.TString;
|
|
2623
2632
|
}>;
|
|
2624
2633
|
type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
|
|
2625
2634
|
type ResetPasswordInput = Static<typeof resetPasswordSchema>;
|
|
2626
2635
|
//#endregion
|
|
2627
2636
|
//#region ../../src/api/users/schemas/sessionResourceSchema.d.ts
|
|
2628
|
-
declare const sessionResourceSchema:
|
|
2629
|
-
id:
|
|
2630
|
-
version:
|
|
2631
|
-
createdAt:
|
|
2632
|
-
updatedAt:
|
|
2633
|
-
refreshToken:
|
|
2634
|
-
userId:
|
|
2635
|
-
expiresAt:
|
|
2636
|
-
ip:
|
|
2637
|
-
userAgent:
|
|
2638
|
-
os:
|
|
2639
|
-
browser:
|
|
2640
|
-
device:
|
|
2637
|
+
declare const sessionResourceSchema: alepha23.TObject<{
|
|
2638
|
+
id: alepha23.TString;
|
|
2639
|
+
version: alepha23.TNumber;
|
|
2640
|
+
createdAt: alepha23.TString;
|
|
2641
|
+
updatedAt: alepha23.TString;
|
|
2642
|
+
refreshToken: alepha23.TString;
|
|
2643
|
+
userId: alepha23.TString;
|
|
2644
|
+
expiresAt: alepha23.TString;
|
|
2645
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
2646
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
2647
|
+
os: alepha23.TString;
|
|
2648
|
+
browser: alepha23.TString;
|
|
2649
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2641
2650
|
}>>;
|
|
2642
2651
|
}>;
|
|
2643
2652
|
type SessionResource = Static<typeof sessionResourceSchema>;
|
|
2644
2653
|
//#endregion
|
|
2645
2654
|
//#region ../../src/api/users/schemas/userResourceSchema.d.ts
|
|
2646
|
-
declare const userResourceSchema:
|
|
2647
|
-
id: PgAttr<PgAttr<
|
|
2648
|
-
version: PgAttr<PgAttr<
|
|
2649
|
-
createdAt: PgAttr<PgAttr<
|
|
2650
|
-
updatedAt: PgAttr<PgAttr<
|
|
2651
|
-
realm: PgAttr<
|
|
2652
|
-
username:
|
|
2653
|
-
email:
|
|
2654
|
-
phoneNumber:
|
|
2655
|
-
roles: PgAttr<
|
|
2656
|
-
firstName:
|
|
2657
|
-
lastName:
|
|
2658
|
-
picture:
|
|
2659
|
-
enabled: PgAttr<
|
|
2660
|
-
emailVerified: PgAttr<
|
|
2655
|
+
declare const userResourceSchema: alepha23.TObject<{
|
|
2656
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2657
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2658
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2659
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2660
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2661
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2662
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2663
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2664
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2665
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2666
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2667
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2668
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2669
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2661
2670
|
}>;
|
|
2662
2671
|
type UserResource = Static<typeof userResourceSchema>;
|
|
2663
2672
|
//#endregion
|
|
2673
|
+
//#region ../../src/system/providers/FileSystemProvider.d.ts
|
|
2674
|
+
/**
|
|
2675
|
+
* Options for creating a file from a URL
|
|
2676
|
+
*/
|
|
2677
|
+
interface CreateFileFromUrlOptions {
|
|
2678
|
+
/**
|
|
2679
|
+
* The URL to load the file from (file://, http://, or https://)
|
|
2680
|
+
*/
|
|
2681
|
+
url: string;
|
|
2682
|
+
/**
|
|
2683
|
+
* The MIME type of the file (optional, will be detected from filename if not provided)
|
|
2684
|
+
*/
|
|
2685
|
+
type?: string;
|
|
2686
|
+
/**
|
|
2687
|
+
* The name of the file (optional, will be extracted from URL if not provided)
|
|
2688
|
+
*/
|
|
2689
|
+
name?: string;
|
|
2690
|
+
}
|
|
2691
|
+
/**
|
|
2692
|
+
* Options for creating a file from a path (URL with file:// scheme)
|
|
2693
|
+
*/
|
|
2694
|
+
interface CreateFileFromPathOptions {
|
|
2695
|
+
/**
|
|
2696
|
+
* The path to the file on the local filesystem
|
|
2697
|
+
*/
|
|
2698
|
+
path: string;
|
|
2699
|
+
/**
|
|
2700
|
+
* The MIME type of the file (optional, will be detected from filename if not provided)
|
|
2701
|
+
*/
|
|
2702
|
+
type?: string;
|
|
2703
|
+
/**
|
|
2704
|
+
* The name of the file (optional, will be extracted from URL if not provided)
|
|
2705
|
+
*/
|
|
2706
|
+
name?: string;
|
|
2707
|
+
}
|
|
2708
|
+
/**
|
|
2709
|
+
* Options for creating a file from a Buffer
|
|
2710
|
+
*/
|
|
2711
|
+
interface CreateFileFromBufferOptions {
|
|
2712
|
+
/**
|
|
2713
|
+
* The Buffer containing the file data
|
|
2714
|
+
*/
|
|
2715
|
+
buffer: Buffer;
|
|
2716
|
+
/**
|
|
2717
|
+
* The MIME type of the file (optional, will be detected from name if not provided)
|
|
2718
|
+
*/
|
|
2719
|
+
type?: string;
|
|
2720
|
+
/**
|
|
2721
|
+
* The name of the file (required for proper content type detection)
|
|
2722
|
+
*/
|
|
2723
|
+
name?: string;
|
|
2724
|
+
}
|
|
2725
|
+
/**
|
|
2726
|
+
* Options for creating a file from a stream
|
|
2727
|
+
*/
|
|
2728
|
+
interface CreateFileFromStreamOptions {
|
|
2729
|
+
/**
|
|
2730
|
+
* The readable stream containing the file data
|
|
2731
|
+
*/
|
|
2732
|
+
stream: StreamLike;
|
|
2733
|
+
/**
|
|
2734
|
+
* The MIME type of the file (optional, will be detected from name if not provided)
|
|
2735
|
+
*/
|
|
2736
|
+
type?: string;
|
|
2737
|
+
/**
|
|
2738
|
+
* The name of the file (required for proper content type detection)
|
|
2739
|
+
*/
|
|
2740
|
+
name?: string;
|
|
2741
|
+
/**
|
|
2742
|
+
* The size of the file in bytes (optional)
|
|
2743
|
+
*/
|
|
2744
|
+
size?: number;
|
|
2745
|
+
}
|
|
2746
|
+
/**
|
|
2747
|
+
* Options for creating a file from text content
|
|
2748
|
+
*/
|
|
2749
|
+
interface CreateFileFromTextOptions {
|
|
2750
|
+
/**
|
|
2751
|
+
* The text content to create the file from
|
|
2752
|
+
*/
|
|
2753
|
+
text: string;
|
|
2754
|
+
/**
|
|
2755
|
+
* The MIME type of the file (default: text/plain)
|
|
2756
|
+
*/
|
|
2757
|
+
type?: string;
|
|
2758
|
+
/**
|
|
2759
|
+
* The name of the file (default: "file.txt")
|
|
2760
|
+
*/
|
|
2761
|
+
name?: string;
|
|
2762
|
+
}
|
|
2763
|
+
interface CreateFileFromResponseOptions {
|
|
2764
|
+
/**
|
|
2765
|
+
* The Response object containing the file data
|
|
2766
|
+
*/
|
|
2767
|
+
response: Response;
|
|
2768
|
+
/**
|
|
2769
|
+
* Override the name (optional, uses filename from Content-Disposition header if not provided)
|
|
2770
|
+
*/
|
|
2771
|
+
name?: string;
|
|
2772
|
+
/**
|
|
2773
|
+
* Override the MIME type (optional, uses file.type if not provided)
|
|
2774
|
+
*/
|
|
2775
|
+
type?: string;
|
|
2776
|
+
}
|
|
2777
|
+
/**
|
|
2778
|
+
* Options for creating a file from a Web File object
|
|
2779
|
+
*/
|
|
2780
|
+
interface CreateFileFromWebFileOptions {
|
|
2781
|
+
/**
|
|
2782
|
+
* The Web File object
|
|
2783
|
+
*/
|
|
2784
|
+
file: File;
|
|
2785
|
+
/**
|
|
2786
|
+
* Override the MIME type (optional, uses file.type if not provided)
|
|
2787
|
+
*/
|
|
2788
|
+
type?: string;
|
|
2789
|
+
/**
|
|
2790
|
+
* Override the name (optional, uses file.name if not provided)
|
|
2791
|
+
*/
|
|
2792
|
+
name?: string;
|
|
2793
|
+
/**
|
|
2794
|
+
* Override the size (optional, uses file.size if not provided)
|
|
2795
|
+
*/
|
|
2796
|
+
size?: number;
|
|
2797
|
+
}
|
|
2798
|
+
/**
|
|
2799
|
+
* Options for creating a file from an ArrayBuffer
|
|
2800
|
+
*/
|
|
2801
|
+
interface CreateFileFromArrayBufferOptions {
|
|
2802
|
+
/**
|
|
2803
|
+
* The ArrayBuffer containing the file data
|
|
2804
|
+
*/
|
|
2805
|
+
arrayBuffer: ArrayBuffer;
|
|
2806
|
+
/**
|
|
2807
|
+
* The MIME type of the file (optional, will be detected from name if not provided)
|
|
2808
|
+
*/
|
|
2809
|
+
type?: string;
|
|
2810
|
+
/**
|
|
2811
|
+
* The name of the file (required for proper content type detection)
|
|
2812
|
+
*/
|
|
2813
|
+
name?: string;
|
|
2814
|
+
}
|
|
2815
|
+
/**
|
|
2816
|
+
* Union type for all createFile options
|
|
2817
|
+
*/
|
|
2818
|
+
type CreateFileOptions = CreateFileFromUrlOptions | CreateFileFromPathOptions | CreateFileFromBufferOptions | CreateFileFromStreamOptions | CreateFileFromTextOptions | CreateFileFromWebFileOptions | CreateFileFromResponseOptions | CreateFileFromArrayBufferOptions;
|
|
2819
|
+
/**
|
|
2820
|
+
* Options for rm (remove) operation
|
|
2821
|
+
*/
|
|
2822
|
+
interface RmOptions {
|
|
2823
|
+
/**
|
|
2824
|
+
* If true, removes directories and their contents recursively
|
|
2825
|
+
*/
|
|
2826
|
+
recursive?: boolean;
|
|
2827
|
+
/**
|
|
2828
|
+
* If true, no error will be thrown if the path does not exist
|
|
2829
|
+
*/
|
|
2830
|
+
force?: boolean;
|
|
2831
|
+
}
|
|
2832
|
+
/**
|
|
2833
|
+
* Options for cp (copy) operation
|
|
2834
|
+
*/
|
|
2835
|
+
interface CpOptions {
|
|
2836
|
+
/**
|
|
2837
|
+
* If true, copy directories recursively
|
|
2838
|
+
*/
|
|
2839
|
+
recursive?: boolean;
|
|
2840
|
+
/**
|
|
2841
|
+
* If true, overwrite existing destination
|
|
2842
|
+
*/
|
|
2843
|
+
force?: boolean;
|
|
2844
|
+
}
|
|
2845
|
+
/**
|
|
2846
|
+
* Options for mkdir operation
|
|
2847
|
+
*/
|
|
2848
|
+
interface MkdirOptions {
|
|
2849
|
+
/**
|
|
2850
|
+
* If true, creates parent directories as needed
|
|
2851
|
+
*/
|
|
2852
|
+
recursive?: boolean;
|
|
2853
|
+
/**
|
|
2854
|
+
* File mode (permission and sticky bits)
|
|
2855
|
+
*/
|
|
2856
|
+
mode?: number;
|
|
2857
|
+
}
|
|
2858
|
+
/**
|
|
2859
|
+
* Options for ls (list) operation
|
|
2860
|
+
*/
|
|
2861
|
+
interface LsOptions {
|
|
2862
|
+
/**
|
|
2863
|
+
* If true, list contents of directories recursively
|
|
2864
|
+
*/
|
|
2865
|
+
recursive?: boolean;
|
|
2866
|
+
/**
|
|
2867
|
+
* If true, include hidden files (starting with .)
|
|
2868
|
+
*/
|
|
2869
|
+
hidden?: boolean;
|
|
2870
|
+
}
|
|
2871
|
+
/**
|
|
2872
|
+
* FileSystem interface providing utilities for working with files.
|
|
2873
|
+
*/
|
|
2874
|
+
declare abstract class FileSystemProvider {
|
|
2875
|
+
/**
|
|
2876
|
+
* Joins multiple path segments into a single path.
|
|
2877
|
+
*
|
|
2878
|
+
* @param paths - The path segments to join
|
|
2879
|
+
* @returns The joined path
|
|
2880
|
+
*/
|
|
2881
|
+
abstract join(...paths: string[]): string;
|
|
2882
|
+
/**
|
|
2883
|
+
* Creates a FileLike object from various sources.
|
|
2884
|
+
*
|
|
2885
|
+
* @param options - Options for creating the file
|
|
2886
|
+
* @returns A FileLike object
|
|
2887
|
+
*/
|
|
2888
|
+
abstract createFile(options: CreateFileOptions): FileLike;
|
|
2889
|
+
/**
|
|
2890
|
+
* Removes a file or directory.
|
|
2891
|
+
*
|
|
2892
|
+
* @param path - The path to remove
|
|
2893
|
+
* @param options - Remove options
|
|
2894
|
+
*/
|
|
2895
|
+
abstract rm(path: string, options?: RmOptions): Promise<void>;
|
|
2896
|
+
/**
|
|
2897
|
+
* Copies a file or directory.
|
|
2898
|
+
*
|
|
2899
|
+
* @param src - Source path
|
|
2900
|
+
* @param dest - Destination path
|
|
2901
|
+
* @param options - Copy options
|
|
2902
|
+
*/
|
|
2903
|
+
abstract cp(src: string, dest: string, options?: CpOptions): Promise<void>;
|
|
2904
|
+
/**
|
|
2905
|
+
* Moves/renames a file or directory.
|
|
2906
|
+
*
|
|
2907
|
+
* @param src - Source path
|
|
2908
|
+
* @param dest - Destination path
|
|
2909
|
+
*/
|
|
2910
|
+
abstract mv(src: string, dest: string): Promise<void>;
|
|
2911
|
+
/**
|
|
2912
|
+
* Creates a directory.
|
|
2913
|
+
*
|
|
2914
|
+
* @param path - The directory path to create
|
|
2915
|
+
* @param options - Mkdir options
|
|
2916
|
+
*/
|
|
2917
|
+
abstract mkdir(path: string, options?: MkdirOptions): Promise<void>;
|
|
2918
|
+
/**
|
|
2919
|
+
* Lists files in a directory.
|
|
2920
|
+
*
|
|
2921
|
+
* @param path - The directory path to list
|
|
2922
|
+
* @param options - List options
|
|
2923
|
+
* @returns Array of filenames
|
|
2924
|
+
*/
|
|
2925
|
+
abstract ls(path: string, options?: LsOptions): Promise<string[]>;
|
|
2926
|
+
/**
|
|
2927
|
+
* Checks if a file or directory exists.
|
|
2928
|
+
*
|
|
2929
|
+
* @param path - The path to check
|
|
2930
|
+
* @returns True if the path exists, false otherwise
|
|
2931
|
+
*/
|
|
2932
|
+
abstract exists(path: string): Promise<boolean>;
|
|
2933
|
+
/**
|
|
2934
|
+
* Reads the content of a file.
|
|
2935
|
+
*
|
|
2936
|
+
* @param path - The file path to read
|
|
2937
|
+
* @returns The file content as a Buffer
|
|
2938
|
+
*/
|
|
2939
|
+
abstract readFile(path: string): Promise<Buffer>;
|
|
2940
|
+
/**
|
|
2941
|
+
* Writes data to a file.
|
|
2942
|
+
*
|
|
2943
|
+
* @param path - The file path to write to
|
|
2944
|
+
* @param data - The data to write (Buffer or string)
|
|
2945
|
+
*/
|
|
2946
|
+
abstract writeFile(path: string, data: Uint8Array | Buffer | string | FileLike): Promise<void>;
|
|
2947
|
+
/**
|
|
2948
|
+
* Reads the content of a file as a string.
|
|
2949
|
+
*
|
|
2950
|
+
* @param path - The file path to read
|
|
2951
|
+
* @returns The file content as a string
|
|
2952
|
+
*/
|
|
2953
|
+
abstract readTextFile(path: string): Promise<string>;
|
|
2954
|
+
/**
|
|
2955
|
+
* Reads the content of a file as JSON.
|
|
2956
|
+
*
|
|
2957
|
+
* @param path - The file path to read
|
|
2958
|
+
* @returns The parsed JSON content
|
|
2959
|
+
*/
|
|
2960
|
+
abstract readJsonFile<T = unknown>(path: string): Promise<T>;
|
|
2961
|
+
}
|
|
2962
|
+
//#endregion
|
|
2664
2963
|
//#region ../../src/api/users/services/SessionService.d.ts
|
|
2665
2964
|
declare class SessionService {
|
|
2666
2965
|
protected readonly alepha: Alepha;
|
|
2667
2966
|
protected readonly fsp: FileSystemProvider;
|
|
2668
2967
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
2669
2968
|
protected readonly cryptoProvider: CryptoProvider;
|
|
2670
|
-
protected readonly log:
|
|
2969
|
+
protected readonly log: alepha_logger6.Logger;
|
|
2671
2970
|
protected readonly realmProvider: RealmProvider;
|
|
2672
2971
|
protected readonly fileController: alepha_server_links0.HttpVirtualClient<FileController>;
|
|
2673
2972
|
protected readonly auditService: AuditService;
|
|
2674
|
-
users(userRealmName?: string): Repository$1<
|
|
2675
|
-
id: PgAttr<PgAttr<
|
|
2676
|
-
version: PgAttr<PgAttr<
|
|
2677
|
-
createdAt: PgAttr<PgAttr<
|
|
2678
|
-
updatedAt: PgAttr<PgAttr<
|
|
2679
|
-
realm: PgAttr<
|
|
2680
|
-
username:
|
|
2681
|
-
email:
|
|
2682
|
-
phoneNumber:
|
|
2683
|
-
roles: PgAttr<
|
|
2684
|
-
firstName:
|
|
2685
|
-
lastName:
|
|
2686
|
-
picture:
|
|
2687
|
-
enabled: PgAttr<
|
|
2688
|
-
emailVerified: PgAttr<
|
|
2973
|
+
users(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2974
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2975
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2976
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2977
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2978
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2979
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2980
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2981
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2982
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2983
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2984
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2985
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2986
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2987
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2689
2988
|
}>>;
|
|
2690
|
-
sessions(userRealmName?: string): Repository$1<
|
|
2691
|
-
id: PgAttr<PgAttr<
|
|
2692
|
-
version: PgAttr<PgAttr<
|
|
2693
|
-
createdAt: PgAttr<PgAttr<
|
|
2694
|
-
updatedAt: PgAttr<PgAttr<
|
|
2695
|
-
refreshToken:
|
|
2696
|
-
userId: PgAttr<
|
|
2697
|
-
expiresAt:
|
|
2698
|
-
ip:
|
|
2699
|
-
userAgent:
|
|
2700
|
-
os:
|
|
2701
|
-
browser:
|
|
2702
|
-
device:
|
|
2989
|
+
sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2990
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2991
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2992
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2993
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2994
|
+
refreshToken: alepha23.TString;
|
|
2995
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
2996
|
+
expiresAt: alepha23.TString;
|
|
2997
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
2998
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
2999
|
+
os: alepha23.TString;
|
|
3000
|
+
browser: alepha23.TString;
|
|
3001
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2703
3002
|
}>>;
|
|
2704
3003
|
}>>;
|
|
2705
|
-
identities(userRealmName?: string): Repository$1<
|
|
2706
|
-
id: PgAttr<PgAttr<
|
|
2707
|
-
version: PgAttr<PgAttr<
|
|
2708
|
-
createdAt: PgAttr<PgAttr<
|
|
2709
|
-
updatedAt: PgAttr<PgAttr<
|
|
2710
|
-
userId: PgAttr<
|
|
2711
|
-
password:
|
|
2712
|
-
provider:
|
|
2713
|
-
providerUserId:
|
|
2714
|
-
providerData:
|
|
3004
|
+
identities(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
3005
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
3006
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
3007
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
3008
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
3009
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
3010
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
3011
|
+
provider: alepha23.TString;
|
|
3012
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
3013
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
2715
3014
|
}>>;
|
|
2716
3015
|
/**
|
|
2717
3016
|
* Random delay to prevent timing attacks (50-200ms)
|
|
@@ -2727,36 +3026,36 @@ declare class SessionService {
|
|
|
2727
3026
|
sessionId: string;
|
|
2728
3027
|
}>;
|
|
2729
3028
|
refreshSession(refreshToken: string, userRealmName?: string): Promise<{
|
|
2730
|
-
user: PgStatic<
|
|
2731
|
-
id: PgAttr<PgAttr<
|
|
2732
|
-
version: PgAttr<PgAttr<
|
|
2733
|
-
createdAt: PgAttr<PgAttr<
|
|
2734
|
-
updatedAt: PgAttr<PgAttr<
|
|
2735
|
-
realm: PgAttr<
|
|
2736
|
-
username:
|
|
2737
|
-
email:
|
|
2738
|
-
phoneNumber:
|
|
2739
|
-
roles: PgAttr<
|
|
2740
|
-
firstName:
|
|
2741
|
-
lastName:
|
|
2742
|
-
picture:
|
|
2743
|
-
enabled: PgAttr<
|
|
2744
|
-
emailVerified: PgAttr<
|
|
2745
|
-
}>, PgRelationMap<
|
|
2746
|
-
id: PgAttr<PgAttr<
|
|
2747
|
-
version: PgAttr<PgAttr<
|
|
2748
|
-
createdAt: PgAttr<PgAttr<
|
|
2749
|
-
updatedAt: PgAttr<PgAttr<
|
|
2750
|
-
realm: PgAttr<
|
|
2751
|
-
username:
|
|
2752
|
-
email:
|
|
2753
|
-
phoneNumber:
|
|
2754
|
-
roles: PgAttr<
|
|
2755
|
-
firstName:
|
|
2756
|
-
lastName:
|
|
2757
|
-
picture:
|
|
2758
|
-
enabled: PgAttr<
|
|
2759
|
-
emailVerified: PgAttr<
|
|
3029
|
+
user: PgStatic<alepha23.TObject<{
|
|
3030
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
3031
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
3032
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
3033
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
3034
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
3035
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
3036
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
3037
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
3038
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
3039
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
3040
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
3041
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
3042
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
3043
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
3044
|
+
}>, PgRelationMap<alepha23.TObject<{
|
|
3045
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
3046
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
3047
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
3048
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
3049
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
3050
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
3051
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
3052
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
3053
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
3054
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
3055
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
3056
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
3057
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
3058
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2760
3059
|
}>>>;
|
|
2761
3060
|
expiresIn: number;
|
|
2762
3061
|
sessionId: string;
|
|
@@ -2811,14 +3110,25 @@ declare class SessionService {
|
|
|
2811
3110
|
//#endregion
|
|
2812
3111
|
//#region ../../src/api/users/index.d.ts
|
|
2813
3112
|
/**
|
|
2814
|
-
*
|
|
3113
|
+
* | type | quality | stability |
|
|
3114
|
+
* |------|---------|-----------|
|
|
3115
|
+
* | backend | epic | stable |
|
|
3116
|
+
*
|
|
3117
|
+
* Complete user management with multi-realm support for multi-tenant applications.
|
|
2815
3118
|
*
|
|
2816
|
-
*
|
|
2817
|
-
*
|
|
3119
|
+
* **Features:**
|
|
3120
|
+
* - User registration, login, and profile management
|
|
3121
|
+
* - Password reset workflows
|
|
3122
|
+
* - Email verification
|
|
3123
|
+
* - Session management with multiple devices
|
|
3124
|
+
* - Identity management (social logins, SSO)
|
|
3125
|
+
* - Multi-realm support for tenant isolation
|
|
3126
|
+
* - Credential management
|
|
3127
|
+
* - Entities: `users`, `identities`, `sessions`
|
|
2818
3128
|
*
|
|
2819
3129
|
* @module alepha.api.users
|
|
2820
3130
|
*/
|
|
2821
|
-
declare const AlephaApiUsers:
|
|
3131
|
+
declare const AlephaApiUsers: alepha23.Service<alepha23.Module>;
|
|
2822
3132
|
//#endregion
|
|
2823
3133
|
export { $realm, AdminIdentityController, AdminSessionController, AdminUserController, AlephaApiUsers, CompletePasswordResetRequest, CompleteRegistrationRequest, CreateUser, CredentialService, DEFAULT_USER_REALM_NAME, IdentityEntity, IdentityQuery, IdentityResource, IdentityService, LoginInput, PasswordResetIntentResponse, Realm, RealmAuthSettings, RealmConfig, RealmController, RealmOptions, RealmPrimitive, RealmProvider, RealmRepositories, RegisterInput, RegistrationIntentResponse, RegistrationService, ResetPasswordInput, ResetPasswordRequest, SessionCrudService, SessionEntity, SessionQuery, SessionResource, SessionService, UpdateUser, UserController, UserEntity, UserQuery, UserResource, UserService, completePasswordResetRequestSchema, completeRegistrationRequestSchema, createUserSchema, identities, identityQuerySchema, identityResourceSchema, loginSchema, passwordResetIntentResponseSchema, realmAuthSettingsAtom, realmConfigSchema, registerSchema, registrationIntentResponseSchema, resetPasswordRequestSchema, resetPasswordSchema, sessionQuerySchema, sessionResourceSchema, sessions, updateUserSchema, userQuerySchema, userResourceSchema, users };
|
|
2824
3134
|
//# sourceMappingURL=index.d.ts.map
|