alepha 0.15.1 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -80
- package/dist/api/audits/index.d.ts +10 -33
- 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 +10 -3
- 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 +43 -50
- 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 +1081 -760
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +2539 -218
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.d.ts +138 -132
- 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 +440 -8
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/bucket/index.js +1861 -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 +638 -5645
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2550 -368
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +203 -45
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +2060 -71
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +70 -40
- 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 +90 -40
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +70 -40
- 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 +323 -20
- package/dist/email/index.d.ts.map +1 -1
- package/dist/email/index.js +1857 -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 +10 -30
- 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 +39 -20
- package/dist/orm/index.bun.js.map +1 -1
- package/dist/orm/index.d.ts +517 -540
- package/dist/orm/index.d.ts.map +1 -1
- package/dist/orm/index.js +58 -71
- 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 +1974 -0
- package/dist/react/router/index.browser.js.map +1 -0
- package/dist/react/router/index.d.ts +1956 -0
- package/dist/react/router/index.d.ts.map +1 -0
- package/dist/react/router/index.js +4722 -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 +41 -44
- 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 +140 -49
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +164 -32
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +12 -7
- 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 +124 -23
- 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 +8 -2
- 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 +11 -6
- 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 +1853 -5
- package/dist/server/static/index.js.map +1 -1
- package/dist/server/swagger/index.d.ts +309 -6
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +1854 -6
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +309 -7
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js +1856 -7
- package/dist/sms/index.js.map +1 -1
- package/dist/system/index.browser.js +1218 -0
- package/dist/system/index.browser.js.map +1 -0
- package/dist/{file → system}/index.d.ts +343 -16
- package/dist/system/index.d.ts.map +1 -0
- package/dist/{file → system}/index.js +419 -22
- 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 +5 -6272
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +23 -10
- 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 +82 -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 +55 -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 +10 -1
- package/src/cli/atoms/buildOptions.ts +99 -9
- package/src/cli/commands/build.ts +150 -37
- package/src/cli/commands/db.ts +22 -18
- 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 +588 -0
- package/src/cli/commands/init.ts +115 -58
- 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 +35 -16
- package/src/cli/services/AlephaCliUtils.ts +52 -121
- package/src/cli/services/PackageManagerUtils.ts +129 -11
- package/src/cli/services/ProjectScaffolder.spec.ts +97 -0
- package/src/cli/services/ProjectScaffolder.ts +148 -81
- package/src/cli/services/ViteUtils.ts +82 -0
- package/src/cli/{assets/claudeMd.ts → templates/agentMd.ts} +37 -24
- package/src/cli/templates/apiAppSecurityTs.ts +11 -0
- package/src/cli/templates/apiIndexTs.ts +30 -0
- 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 +74 -0
- package/src/cli/templates/webHelloComponentTsx.ts +30 -0
- package/src/command/helpers/Runner.spec.ts +139 -0
- package/src/command/helpers/Runner.ts +7 -22
- package/src/command/index.ts +12 -4
- package/src/command/providers/CliProvider.spec.ts +1392 -0
- package/src/command/providers/CliProvider.ts +320 -47
- package/src/core/Alepha.ts +34 -27
- 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 +5 -3
- package/src/orm/index.ts +23 -53
- package/src/orm/providers/drivers/BunSqliteProvider.ts +5 -1
- package/src/orm/providers/drivers/CloudflareD1Provider.ts +57 -30
- package/src/orm/providers/drivers/DatabaseProvider.ts +9 -1
- package/src/orm/providers/drivers/NodeSqliteProvider.ts +4 -1
- 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 +146 -0
- package/src/react/router/primitives/$page.browser.spec.tsx +851 -0
- package/src/react/router/primitives/$page.spec.tsx +676 -0
- package/src/react/router/primitives/$page.ts +489 -0
- package/src/react/router/providers/ReactBrowserProvider.ts +312 -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/ReactPreloadProvider.spec.ts +142 -0
- package/src/react/router/providers/ReactPreloadProvider.ts +85 -0
- package/src/react/router/providers/ReactServerProvider.spec.tsx +316 -0
- package/src/react/router/providers/ReactServerProvider.ts +487 -0
- package/src/react/router/providers/ReactServerTemplateProvider.spec.ts +210 -0
- package/src/react/router/providers/ReactServerTemplateProvider.ts +542 -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 +90 -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 +63 -41
- 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.spec.ts +9 -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 +36 -0
- package/src/system/index.ts +62 -0
- package/src/system/index.workerd.ts +1 -0
- package/src/{file → system}/providers/FileSystemProvider.ts +24 -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 +47 -2
- 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 +19 -13
- package/src/vite/tasks/generateCloudflare.ts +10 -7
- package/src/vite/tasks/generateDocker.ts +4 -0
- 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/apiIndexTs.ts +0 -16
- package/src/cli/assets/mainServerTs.ts +0 -24
- package/src/cli/assets/webAppRouterTs.ts +0 -16
- package/src/cli/assets/webHelloComponentTsx.ts +0 -20
- 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}/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,5 +1,5 @@
|
|
|
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";
|
|
@@ -13,7 +13,7 @@ import { OAuth2Profile, ServerAuthProvider, WithLinkFn, WithLoginFn } from "alep
|
|
|
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>;
|
|
@@ -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
|
|
@@ -974,7 +974,10 @@ declare abstract class DatabaseProvider {
|
|
|
974
974
|
*/
|
|
975
975
|
protected getMigrationsFolder(): string;
|
|
976
976
|
/**
|
|
977
|
-
* Base migration orchestration - handles environment logic
|
|
977
|
+
* Base migration orchestration - handles environment logic.
|
|
978
|
+
*
|
|
979
|
+
* Never runs in serverless mode - migrations should be applied during
|
|
980
|
+
* deployment, not at runtime (to avoid race conditions and timeouts).
|
|
978
981
|
*/
|
|
979
982
|
migrate(): Promise<void>;
|
|
980
983
|
/**
|
|
@@ -1070,7 +1073,7 @@ declare class QueryManager {
|
|
|
1070
1073
|
createPagination<T>(entities: T[], limit?: number, offset?: number, sort?: Array<{
|
|
1071
1074
|
column: string;
|
|
1072
1075
|
direction: "asc" | "desc";
|
|
1073
|
-
}>):
|
|
1076
|
+
}>): alepha23.Page<T>;
|
|
1074
1077
|
}
|
|
1075
1078
|
interface PgJoin {
|
|
1076
1079
|
table: string;
|
|
@@ -1255,7 +1258,7 @@ declare abstract class Repository$1<T extends TObject> {
|
|
|
1255
1258
|
/**
|
|
1256
1259
|
* Find an entity and update it.
|
|
1257
1260
|
*/
|
|
1258
|
-
updateOne(where: PgQueryWhereOrSQL<T>, data:
|
|
1261
|
+
updateOne(where: PgQueryWhereOrSQL<T>, data: WithSQL<Static<TObjectUpdate<T>>>, opts?: StatementOptions): Promise<Static<T>>;
|
|
1259
1262
|
/**
|
|
1260
1263
|
* Save a given entity.
|
|
1261
1264
|
*
|
|
@@ -1280,11 +1283,11 @@ declare abstract class Repository$1<T extends TObject> {
|
|
|
1280
1283
|
/**
|
|
1281
1284
|
* Find an entity by ID and update it.
|
|
1282
1285
|
*/
|
|
1283
|
-
updateById(id: string | number, data:
|
|
1286
|
+
updateById(id: string | number, data: WithSQL<Static<TObjectUpdate<T>>>, opts?: StatementOptions): Promise<Static<T>>;
|
|
1284
1287
|
/**
|
|
1285
1288
|
* Find many entities and update all of them.
|
|
1286
1289
|
*/
|
|
1287
|
-
updateMany(where: PgQueryWhereOrSQL<T>, data:
|
|
1290
|
+
updateMany(where: PgQueryWhereOrSQL<T>, data: WithSQL<Static<TObjectUpdate<T>>>, opts?: StatementOptions): Promise<Array<number | string>>;
|
|
1288
1291
|
/**
|
|
1289
1292
|
* Find many and delete all of them.
|
|
1290
1293
|
* @returns Array of deleted entity IDs
|
|
@@ -1379,56 +1382,57 @@ interface StatementOptions {
|
|
|
1379
1382
|
*/
|
|
1380
1383
|
now?: DateTime | string;
|
|
1381
1384
|
}
|
|
1385
|
+
type WithSQL<T> = { [P in keyof T]?: T[P] | SQL };
|
|
1382
1386
|
//#endregion
|
|
1383
1387
|
//#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:
|
|
1388
|
+
declare const identities: alepha_orm24.EntityPrimitive<alepha23.TObject<{
|
|
1389
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1390
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1391
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1392
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1393
|
+
userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
|
|
1394
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
1395
|
+
provider: alepha23.TString;
|
|
1396
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
1397
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
1394
1398
|
}>>;
|
|
1395
1399
|
type IdentityEntity = Static<typeof identities.schema>;
|
|
1396
1400
|
//#endregion
|
|
1397
1401
|
//#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:
|
|
1402
|
+
declare const sessions: alepha_orm24.EntityPrimitive<alepha23.TObject<{
|
|
1403
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1404
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1405
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1406
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1407
|
+
refreshToken: alepha23.TString;
|
|
1408
|
+
userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
|
|
1409
|
+
expiresAt: alepha23.TString;
|
|
1410
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
1411
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
1412
|
+
os: alepha23.TString;
|
|
1413
|
+
browser: alepha23.TString;
|
|
1414
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1411
1415
|
}>>;
|
|
1412
1416
|
}>>;
|
|
1413
1417
|
type SessionEntity = Static<typeof sessions.schema>;
|
|
1414
1418
|
//#endregion
|
|
1415
1419
|
//#region ../../src/api/users/entities/users.d.ts
|
|
1416
1420
|
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<
|
|
1421
|
+
declare const users: alepha_orm24.EntityPrimitive<alepha23.TObject<{
|
|
1422
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1423
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1424
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1425
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1426
|
+
realm: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_DEFAULT>;
|
|
1427
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
1428
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1429
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
1430
|
+
roles: alepha_orm24.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1431
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
1432
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
1433
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
1434
|
+
enabled: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
|
|
1435
|
+
emailVerified: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
|
|
1432
1436
|
}>>;
|
|
1433
1437
|
type UserEntity = Static<typeof users.schema>;
|
|
1434
1438
|
//#endregion
|
|
@@ -1475,11 +1479,20 @@ interface RealmOptions {
|
|
|
1475
1479
|
google?: true;
|
|
1476
1480
|
github?: true;
|
|
1477
1481
|
};
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1482
|
+
/**
|
|
1483
|
+
* Enable API key authentication.
|
|
1484
|
+
*
|
|
1485
|
+
* When enabled, users can create API keys to access protected endpoints
|
|
1486
|
+
* without using JWT tokens. API keys are useful for:
|
|
1487
|
+
* - Programmatic access (CLI tools, scripts)
|
|
1488
|
+
* - Long-lived authentication tokens
|
|
1489
|
+
* - Third-party integrations
|
|
1490
|
+
*
|
|
1491
|
+
* API keys can be passed via:
|
|
1492
|
+
* - Query parameter: `?api_key=ak_xxx`
|
|
1493
|
+
* - Bearer header: `Authorization: Bearer ak_xxx`
|
|
1494
|
+
*/
|
|
1495
|
+
apiKeys?: boolean;
|
|
1483
1496
|
}
|
|
1484
1497
|
//#endregion
|
|
1485
1498
|
//#region ../../src/api/users/providers/RealmProvider.d.ts
|
|
@@ -1495,51 +1508,50 @@ interface Realm {
|
|
|
1495
1508
|
}
|
|
1496
1509
|
declare class RealmProvider {
|
|
1497
1510
|
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:
|
|
1511
|
+
protected readonly defaultIdentities: Repository<alepha23.TObject<{
|
|
1512
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1513
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1514
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1515
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1516
|
+
userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
|
|
1517
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
1518
|
+
provider: alepha23.TString;
|
|
1519
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
1520
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
1508
1521
|
}>>;
|
|
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:
|
|
1522
|
+
protected readonly defaultSessions: Repository<alepha23.TObject<{
|
|
1523
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1524
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1525
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1526
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1527
|
+
refreshToken: alepha23.TString;
|
|
1528
|
+
userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
|
|
1529
|
+
expiresAt: alepha23.TString;
|
|
1530
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
1531
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
1532
|
+
os: alepha23.TString;
|
|
1533
|
+
browser: alepha23.TString;
|
|
1534
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1522
1535
|
}>>;
|
|
1523
1536
|
}>>;
|
|
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<
|
|
1537
|
+
protected readonly defaultUsers: Repository<alepha23.TObject<{
|
|
1538
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1539
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1540
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1541
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1542
|
+
realm: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_DEFAULT>;
|
|
1543
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
1544
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1545
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
1546
|
+
roles: alepha_orm24.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1547
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
1548
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
1549
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
1550
|
+
enabled: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
|
|
1551
|
+
emailVerified: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
|
|
1539
1552
|
}>>;
|
|
1540
1553
|
protected realms: Map<string, Realm>;
|
|
1541
1554
|
avatars: alepha_bucket0.BucketPrimitive;
|
|
1542
|
-
protected readonly onConfigure: alepha1.HookPrimitive<"configure">;
|
|
1543
1555
|
register(realmName: string, realmOptions?: RealmOptions): Realm;
|
|
1544
1556
|
/**
|
|
1545
1557
|
* Gets a registered realm by name, auto-creating default if needed.
|
|
@@ -1551,12 +1563,12 @@ declare class RealmProvider {
|
|
|
1551
1563
|
}
|
|
1552
1564
|
//#endregion
|
|
1553
1565
|
//#region ../../src/api/users/schemas/identityQuerySchema.d.ts
|
|
1554
|
-
declare const identityQuerySchema:
|
|
1555
|
-
page:
|
|
1556
|
-
size:
|
|
1557
|
-
sort:
|
|
1558
|
-
userId:
|
|
1559
|
-
provider:
|
|
1566
|
+
declare const identityQuerySchema: alepha23.TObject<{
|
|
1567
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
1568
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
1569
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
1570
|
+
userId: alepha23.TOptional<alepha23.TString>;
|
|
1571
|
+
provider: alepha23.TOptional<alepha23.TString>;
|
|
1560
1572
|
}>;
|
|
1561
1573
|
type IdentityQuery = Static<typeof identityQuerySchema>;
|
|
1562
1574
|
//#endregion
|
|
@@ -1565,16 +1577,16 @@ declare class IdentityService {
|
|
|
1565
1577
|
protected readonly log: alepha_logger5.Logger;
|
|
1566
1578
|
protected readonly realmProvider: RealmProvider;
|
|
1567
1579
|
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:
|
|
1580
|
+
identities(userRealmName?: string): alepha_orm24.Repository<alepha23.TObject<{
|
|
1581
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1582
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1583
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1584
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1585
|
+
userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
|
|
1586
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
1587
|
+
provider: alepha23.TString;
|
|
1588
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
1589
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
1578
1590
|
}>>;
|
|
1579
1591
|
/**
|
|
1580
1592
|
* Find identities with pagination and filtering.
|
|
@@ -1599,70 +1611,70 @@ declare class AdminIdentityController {
|
|
|
1599
1611
|
* Find identities with pagination and filtering.
|
|
1600
1612
|
*/
|
|
1601
1613
|
readonly findIdentities: alepha_server0.ActionPrimitiveFn<{
|
|
1602
|
-
query:
|
|
1603
|
-
page:
|
|
1604
|
-
size:
|
|
1605
|
-
sort:
|
|
1606
|
-
userId:
|
|
1607
|
-
provider:
|
|
1608
|
-
userRealmName:
|
|
1614
|
+
query: alepha23.TObject<{
|
|
1615
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
1616
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
1617
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
1618
|
+
userId: alepha23.TOptional<alepha23.TString>;
|
|
1619
|
+
provider: alepha23.TOptional<alepha23.TString>;
|
|
1620
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1609
1621
|
}>;
|
|
1610
|
-
response:
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
providerUserId:
|
|
1618
|
-
providerData:
|
|
1622
|
+
response: alepha23.TPage<alepha23.TObject<{
|
|
1623
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1624
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1625
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1626
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1627
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
1628
|
+
provider: alepha23.TString;
|
|
1629
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
1630
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
1619
1631
|
}>>;
|
|
1620
1632
|
}>;
|
|
1621
1633
|
/**
|
|
1622
1634
|
* Get an identity by ID.
|
|
1623
1635
|
*/
|
|
1624
1636
|
readonly getIdentity: alepha_server0.ActionPrimitiveFn<{
|
|
1625
|
-
params:
|
|
1626
|
-
id:
|
|
1637
|
+
params: alepha23.TObject<{
|
|
1638
|
+
id: alepha23.TString;
|
|
1627
1639
|
}>;
|
|
1628
|
-
query:
|
|
1629
|
-
userRealmName:
|
|
1640
|
+
query: alepha23.TObject<{
|
|
1641
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1630
1642
|
}>;
|
|
1631
|
-
response:
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
providerUserId:
|
|
1639
|
-
providerData:
|
|
1643
|
+
response: alepha23.TObject<{
|
|
1644
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1645
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1646
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1647
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1648
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
1649
|
+
provider: alepha23.TString;
|
|
1650
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
1651
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
1640
1652
|
}>;
|
|
1641
1653
|
}>;
|
|
1642
1654
|
/**
|
|
1643
1655
|
* Delete an identity.
|
|
1644
1656
|
*/
|
|
1645
1657
|
readonly deleteIdentity: alepha_server0.ActionPrimitiveFn<{
|
|
1646
|
-
params:
|
|
1647
|
-
id:
|
|
1658
|
+
params: alepha23.TObject<{
|
|
1659
|
+
id: alepha23.TString;
|
|
1648
1660
|
}>;
|
|
1649
|
-
query:
|
|
1650
|
-
userRealmName:
|
|
1661
|
+
query: alepha23.TObject<{
|
|
1662
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1651
1663
|
}>;
|
|
1652
|
-
response:
|
|
1653
|
-
ok:
|
|
1654
|
-
id:
|
|
1655
|
-
count:
|
|
1664
|
+
response: alepha23.TObject<{
|
|
1665
|
+
ok: alepha23.TBoolean;
|
|
1666
|
+
id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
|
|
1667
|
+
count: alepha23.TOptional<alepha23.TNumber>;
|
|
1656
1668
|
}>;
|
|
1657
1669
|
}>;
|
|
1658
1670
|
}
|
|
1659
1671
|
//#endregion
|
|
1660
1672
|
//#region ../../src/api/users/schemas/sessionQuerySchema.d.ts
|
|
1661
|
-
declare const sessionQuerySchema:
|
|
1662
|
-
page:
|
|
1663
|
-
size:
|
|
1664
|
-
sort:
|
|
1665
|
-
userId:
|
|
1673
|
+
declare const sessionQuerySchema: alepha23.TObject<{
|
|
1674
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
1675
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
1676
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
1677
|
+
userId: alepha23.TOptional<alepha23.TString>;
|
|
1666
1678
|
}>;
|
|
1667
1679
|
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
1668
1680
|
//#endregion
|
|
@@ -1670,19 +1682,19 @@ type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
|
1670
1682
|
declare class SessionCrudService {
|
|
1671
1683
|
protected readonly log: alepha_logger5.Logger;
|
|
1672
1684
|
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:
|
|
1685
|
+
sessions(userRealmName?: string): alepha_orm24.Repository<alepha23.TObject<{
|
|
1686
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1687
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1688
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1689
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1690
|
+
refreshToken: alepha23.TString;
|
|
1691
|
+
userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
|
|
1692
|
+
expiresAt: alepha23.TString;
|
|
1693
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
1694
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
1695
|
+
os: alepha23.TString;
|
|
1696
|
+
browser: alepha23.TString;
|
|
1697
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1686
1698
|
}>>;
|
|
1687
1699
|
}>>;
|
|
1688
1700
|
/**
|
|
@@ -1708,26 +1720,26 @@ declare class AdminSessionController {
|
|
|
1708
1720
|
* Find sessions with pagination and filtering.
|
|
1709
1721
|
*/
|
|
1710
1722
|
readonly findSessions: alepha_server0.ActionPrimitiveFn<{
|
|
1711
|
-
query:
|
|
1712
|
-
page:
|
|
1713
|
-
size:
|
|
1714
|
-
sort:
|
|
1715
|
-
userId:
|
|
1716
|
-
userRealmName:
|
|
1723
|
+
query: alepha23.TObject<{
|
|
1724
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
1725
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
1726
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
1727
|
+
userId: alepha23.TOptional<alepha23.TString>;
|
|
1728
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1717
1729
|
}>;
|
|
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:
|
|
1730
|
+
response: alepha23.TPage<alepha23.TObject<{
|
|
1731
|
+
id: alepha23.TString;
|
|
1732
|
+
version: alepha23.TNumber;
|
|
1733
|
+
createdAt: alepha23.TString;
|
|
1734
|
+
updatedAt: alepha23.TString;
|
|
1735
|
+
refreshToken: alepha23.TString;
|
|
1736
|
+
userId: alepha23.TString;
|
|
1737
|
+
expiresAt: alepha23.TString;
|
|
1738
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
1739
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
1740
|
+
os: alepha23.TString;
|
|
1741
|
+
browser: alepha23.TString;
|
|
1742
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1731
1743
|
}>>;
|
|
1732
1744
|
}>>;
|
|
1733
1745
|
}>;
|
|
@@ -1735,25 +1747,25 @@ declare class AdminSessionController {
|
|
|
1735
1747
|
* Get a session by ID.
|
|
1736
1748
|
*/
|
|
1737
1749
|
readonly getSession: alepha_server0.ActionPrimitiveFn<{
|
|
1738
|
-
params:
|
|
1739
|
-
id:
|
|
1750
|
+
params: alepha23.TObject<{
|
|
1751
|
+
id: alepha23.TString;
|
|
1740
1752
|
}>;
|
|
1741
|
-
query:
|
|
1742
|
-
userRealmName:
|
|
1753
|
+
query: alepha23.TObject<{
|
|
1754
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1743
1755
|
}>;
|
|
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:
|
|
1756
|
+
response: alepha23.TObject<{
|
|
1757
|
+
id: alepha23.TString;
|
|
1758
|
+
version: alepha23.TNumber;
|
|
1759
|
+
createdAt: alepha23.TString;
|
|
1760
|
+
updatedAt: alepha23.TString;
|
|
1761
|
+
refreshToken: alepha23.TString;
|
|
1762
|
+
userId: alepha23.TString;
|
|
1763
|
+
expiresAt: alepha23.TString;
|
|
1764
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
1765
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
1766
|
+
os: alepha23.TString;
|
|
1767
|
+
browser: alepha23.TString;
|
|
1768
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1757
1769
|
}>>;
|
|
1758
1770
|
}>;
|
|
1759
1771
|
}>;
|
|
@@ -1761,90 +1773,90 @@ declare class AdminSessionController {
|
|
|
1761
1773
|
* Delete a session.
|
|
1762
1774
|
*/
|
|
1763
1775
|
readonly deleteSession: alepha_server0.ActionPrimitiveFn<{
|
|
1764
|
-
params:
|
|
1765
|
-
id:
|
|
1776
|
+
params: alepha23.TObject<{
|
|
1777
|
+
id: alepha23.TString;
|
|
1766
1778
|
}>;
|
|
1767
|
-
query:
|
|
1768
|
-
userRealmName:
|
|
1779
|
+
query: alepha23.TObject<{
|
|
1780
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1769
1781
|
}>;
|
|
1770
|
-
response:
|
|
1771
|
-
ok:
|
|
1772
|
-
id:
|
|
1773
|
-
count:
|
|
1782
|
+
response: alepha23.TObject<{
|
|
1783
|
+
ok: alepha23.TBoolean;
|
|
1784
|
+
id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
|
|
1785
|
+
count: alepha23.TOptional<alepha23.TNumber>;
|
|
1774
1786
|
}>;
|
|
1775
1787
|
}>;
|
|
1776
1788
|
}
|
|
1777
1789
|
//#endregion
|
|
1778
1790
|
//#region ../../src/api/users/notifications/UserNotifications.d.ts
|
|
1779
1791
|
declare class UserNotifications {
|
|
1780
|
-
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<
|
|
1781
|
-
email:
|
|
1782
|
-
code:
|
|
1783
|
-
expiresInMinutes:
|
|
1792
|
+
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1793
|
+
email: alepha23.TString;
|
|
1794
|
+
code: alepha23.TString;
|
|
1795
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1784
1796
|
}>>;
|
|
1785
|
-
readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<
|
|
1786
|
-
email:
|
|
1787
|
-
code:
|
|
1788
|
-
expiresInMinutes:
|
|
1797
|
+
readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1798
|
+
email: alepha23.TString;
|
|
1799
|
+
code: alepha23.TString;
|
|
1800
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1789
1801
|
}>>;
|
|
1790
|
-
readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<
|
|
1791
|
-
phoneNumber:
|
|
1792
|
-
code:
|
|
1793
|
-
expiresInMinutes:
|
|
1802
|
+
readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1803
|
+
phoneNumber: alepha23.TString;
|
|
1804
|
+
code: alepha23.TString;
|
|
1805
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1794
1806
|
}>>;
|
|
1795
|
-
readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<
|
|
1796
|
-
email:
|
|
1797
|
-
resetUrl:
|
|
1798
|
-
expiresInMinutes:
|
|
1807
|
+
readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1808
|
+
email: alepha23.TString;
|
|
1809
|
+
resetUrl: alepha23.TString;
|
|
1810
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1799
1811
|
}>>;
|
|
1800
|
-
readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<
|
|
1801
|
-
email:
|
|
1802
|
-
verifyUrl:
|
|
1803
|
-
expiresInMinutes:
|
|
1812
|
+
readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1813
|
+
email: alepha23.TString;
|
|
1814
|
+
verifyUrl: alepha23.TString;
|
|
1815
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1804
1816
|
}>>;
|
|
1805
1817
|
}
|
|
1806
1818
|
//#endregion
|
|
1807
1819
|
//#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:
|
|
1820
|
+
declare const createUserSchema: alepha23.TObject<{
|
|
1821
|
+
id: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
1822
|
+
version: alepha23.TOptional<PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
1823
|
+
email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1824
|
+
createdAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
1825
|
+
updatedAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
1826
|
+
username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1827
|
+
phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1828
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
1829
|
+
firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1830
|
+
lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1831
|
+
picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1832
|
+
enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
1833
|
+
emailVerified: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
1822
1834
|
}>;
|
|
1823
1835
|
type CreateUser = Static<typeof createUserSchema>;
|
|
1824
1836
|
//#endregion
|
|
1825
1837
|
//#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:
|
|
1838
|
+
declare const updateUserSchema: alepha23.TObject<{
|
|
1839
|
+
email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1840
|
+
realm: alepha23.TOptional<PgAttr<alepha23.TString, typeof PG_DEFAULT>>;
|
|
1841
|
+
phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1842
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
1843
|
+
firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1844
|
+
lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1845
|
+
picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
1846
|
+
enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
1835
1847
|
}>;
|
|
1836
1848
|
type UpdateUser = Static<typeof updateUserSchema>;
|
|
1837
1849
|
//#endregion
|
|
1838
1850
|
//#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:
|
|
1851
|
+
declare const userQuerySchema: alepha23.TObject<{
|
|
1852
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
1853
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
1854
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
1855
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1856
|
+
enabled: alepha23.TOptional<alepha23.TBoolean>;
|
|
1857
|
+
emailVerified: alepha23.TOptional<alepha23.TBoolean>;
|
|
1858
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
1859
|
+
query: alepha23.TOptional<alepha23.TString>;
|
|
1848
1860
|
}>;
|
|
1849
1861
|
type UserQuery = Static<typeof userQuerySchema>;
|
|
1850
1862
|
//#endregion
|
|
@@ -1855,21 +1867,21 @@ declare class UserService {
|
|
|
1855
1867
|
protected readonly userNotifications: UserNotifications;
|
|
1856
1868
|
protected readonly realmProvider: RealmProvider;
|
|
1857
1869
|
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<
|
|
1870
|
+
users(userRealmName?: string): alepha_orm24.Repository<alepha23.TObject<{
|
|
1871
|
+
id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1872
|
+
version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1873
|
+
createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1874
|
+
updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1875
|
+
realm: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_DEFAULT>;
|
|
1876
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
1877
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1878
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
1879
|
+
roles: alepha_orm24.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm24.PG_DEFAULT>;
|
|
1880
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
1881
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
1882
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
1883
|
+
enabled: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
|
|
1884
|
+
emailVerified: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
|
|
1873
1885
|
}>>;
|
|
1874
1886
|
/**
|
|
1875
1887
|
* Request email verification for a user.
|
|
@@ -1919,151 +1931,151 @@ declare class AdminUserController {
|
|
|
1919
1931
|
* Find users with pagination and filtering.
|
|
1920
1932
|
*/
|
|
1921
1933
|
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:
|
|
1934
|
+
query: alepha23.TObject<{
|
|
1935
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
1936
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
1937
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
1938
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1939
|
+
enabled: alepha23.TOptional<alepha23.TBoolean>;
|
|
1940
|
+
emailVerified: alepha23.TOptional<alepha23.TBoolean>;
|
|
1941
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
1942
|
+
query: alepha23.TOptional<alepha23.TString>;
|
|
1943
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1932
1944
|
}>;
|
|
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<
|
|
1945
|
+
response: alepha23.TPage<alepha23.TObject<{
|
|
1946
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1947
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1948
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1949
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1950
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
1951
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
1952
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1953
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
1954
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
1955
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
1956
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
1957
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
1958
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
1959
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
1948
1960
|
}>>;
|
|
1949
1961
|
}>;
|
|
1950
1962
|
/**
|
|
1951
1963
|
* Get a user by ID.
|
|
1952
1964
|
*/
|
|
1953
1965
|
readonly getUser: alepha_server0.ActionPrimitiveFn<{
|
|
1954
|
-
params:
|
|
1955
|
-
id:
|
|
1966
|
+
params: alepha23.TObject<{
|
|
1967
|
+
id: alepha23.TString;
|
|
1956
1968
|
}>;
|
|
1957
|
-
query:
|
|
1958
|
-
userRealmName:
|
|
1969
|
+
query: alepha23.TObject<{
|
|
1970
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1959
1971
|
}>;
|
|
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<
|
|
1972
|
+
response: alepha23.TObject<{
|
|
1973
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1974
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1975
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1976
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1977
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
1978
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
1979
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
1980
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
1981
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
1982
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
1983
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
1984
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
1985
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
1986
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
1975
1987
|
}>;
|
|
1976
1988
|
}>;
|
|
1977
1989
|
/**
|
|
1978
1990
|
* Create a new user.
|
|
1979
1991
|
*/
|
|
1980
1992
|
readonly createUser: alepha_server0.ActionPrimitiveFn<{
|
|
1981
|
-
query:
|
|
1982
|
-
userRealmName:
|
|
1993
|
+
query: alepha23.TObject<{
|
|
1994
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
1983
1995
|
}>;
|
|
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:
|
|
1996
|
+
body: alepha23.TObject<{
|
|
1997
|
+
id: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
1998
|
+
version: alepha23.TOptional<PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
1999
|
+
email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2000
|
+
createdAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
2001
|
+
updatedAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
2002
|
+
username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2003
|
+
phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2004
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
2005
|
+
firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2006
|
+
lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2007
|
+
picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2008
|
+
enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
2009
|
+
emailVerified: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
1998
2010
|
}>;
|
|
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<
|
|
2011
|
+
response: alepha23.TObject<{
|
|
2012
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2013
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2014
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2015
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2016
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2017
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2018
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2019
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2020
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2021
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2022
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2023
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2024
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2025
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2014
2026
|
}>;
|
|
2015
2027
|
}>;
|
|
2016
2028
|
/**
|
|
2017
2029
|
* Update a user.
|
|
2018
2030
|
*/
|
|
2019
2031
|
readonly updateUser: alepha_server0.ActionPrimitiveFn<{
|
|
2020
|
-
params:
|
|
2021
|
-
id:
|
|
2032
|
+
params: alepha23.TObject<{
|
|
2033
|
+
id: alepha23.TString;
|
|
2022
2034
|
}>;
|
|
2023
|
-
query:
|
|
2024
|
-
userRealmName:
|
|
2035
|
+
query: alepha23.TObject<{
|
|
2036
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2025
2037
|
}>;
|
|
2026
|
-
body:
|
|
2027
|
-
email:
|
|
2028
|
-
realm:
|
|
2029
|
-
phoneNumber:
|
|
2030
|
-
roles:
|
|
2031
|
-
firstName:
|
|
2032
|
-
lastName:
|
|
2033
|
-
picture:
|
|
2034
|
-
enabled:
|
|
2038
|
+
body: alepha23.TObject<{
|
|
2039
|
+
email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2040
|
+
realm: alepha23.TOptional<PgAttr<alepha23.TString, typeof PG_DEFAULT>>;
|
|
2041
|
+
phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2042
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
2043
|
+
firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2044
|
+
lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2045
|
+
picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2046
|
+
enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
2035
2047
|
}>;
|
|
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<
|
|
2048
|
+
response: alepha23.TObject<{
|
|
2049
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2050
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2051
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2052
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2053
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2054
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2055
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2056
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2057
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2058
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2059
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2060
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2061
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2062
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2051
2063
|
}>;
|
|
2052
2064
|
}>;
|
|
2053
2065
|
/**
|
|
2054
2066
|
* Delete a user.
|
|
2055
2067
|
*/
|
|
2056
2068
|
readonly deleteUser: alepha_server0.ActionPrimitiveFn<{
|
|
2057
|
-
params:
|
|
2058
|
-
id:
|
|
2069
|
+
params: alepha23.TObject<{
|
|
2070
|
+
id: alepha23.TString;
|
|
2059
2071
|
}>;
|
|
2060
|
-
query:
|
|
2061
|
-
userRealmName:
|
|
2072
|
+
query: alepha23.TObject<{
|
|
2073
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2062
2074
|
}>;
|
|
2063
|
-
response:
|
|
2064
|
-
ok:
|
|
2065
|
-
id:
|
|
2066
|
-
count:
|
|
2075
|
+
response: alepha23.TObject<{
|
|
2076
|
+
ok: alepha23.TBoolean;
|
|
2077
|
+
id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
|
|
2078
|
+
count: alepha23.TOptional<alepha23.TNumber>;
|
|
2067
2079
|
}>;
|
|
2068
2080
|
}>;
|
|
2069
2081
|
}
|
|
@@ -2083,51 +2095,51 @@ declare class RealmController {
|
|
|
2083
2095
|
* This endpoint is not exposed in the API documentation.
|
|
2084
2096
|
*/
|
|
2085
2097
|
readonly getRealmConfig: alepha_server0.ActionPrimitiveFn<{
|
|
2086
|
-
query:
|
|
2087
|
-
realmName:
|
|
2098
|
+
query: alepha23.TObject<{
|
|
2099
|
+
realmName: alepha23.TOptional<alepha23.TString>;
|
|
2088
2100
|
}>;
|
|
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:
|
|
2101
|
+
response: alepha23.TObject<{
|
|
2102
|
+
settings: alepha23.TObject<{
|
|
2103
|
+
displayName: alepha23.TOptional<alepha23.TString>;
|
|
2104
|
+
description: alepha23.TOptional<alepha23.TString>;
|
|
2105
|
+
logoUrl: alepha23.TOptional<alepha23.TString>;
|
|
2106
|
+
registrationAllowed: alepha23.TBoolean;
|
|
2107
|
+
emailEnabled: alepha23.TBoolean;
|
|
2108
|
+
emailRequired: alepha23.TBoolean;
|
|
2109
|
+
usernameEnabled: alepha23.TBoolean;
|
|
2110
|
+
usernameRequired: alepha23.TBoolean;
|
|
2111
|
+
usernameRegExp: alepha23.TString;
|
|
2112
|
+
phoneEnabled: alepha23.TBoolean;
|
|
2113
|
+
phoneRequired: alepha23.TBoolean;
|
|
2114
|
+
verifyEmailRequired: alepha23.TBoolean;
|
|
2115
|
+
verifyPhoneRequired: alepha23.TBoolean;
|
|
2116
|
+
firstNameLastNameEnabled: alepha23.TBoolean;
|
|
2117
|
+
firstNameLastNameRequired: alepha23.TBoolean;
|
|
2118
|
+
resetPasswordAllowed: alepha23.TBoolean;
|
|
2119
|
+
passwordPolicy: alepha23.TObject<{
|
|
2120
|
+
minLength: alepha23.TInteger;
|
|
2121
|
+
requireUppercase: alepha23.TBoolean;
|
|
2122
|
+
requireLowercase: alepha23.TBoolean;
|
|
2123
|
+
requireNumbers: alepha23.TBoolean;
|
|
2124
|
+
requireSpecialCharacters: alepha23.TBoolean;
|
|
2113
2125
|
}>;
|
|
2114
2126
|
}>;
|
|
2115
|
-
realmName:
|
|
2116
|
-
authenticationMethods:
|
|
2117
|
-
name:
|
|
2118
|
-
type:
|
|
2127
|
+
realmName: alepha23.TString;
|
|
2128
|
+
authenticationMethods: alepha23.TArray<alepha23.TObject<{
|
|
2129
|
+
name: alepha23.TString;
|
|
2130
|
+
type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
2119
2131
|
}>>;
|
|
2120
2132
|
}>;
|
|
2121
2133
|
}>;
|
|
2122
2134
|
readonly checkUsernameAvailability: alepha_server0.ActionPrimitiveFn<{
|
|
2123
|
-
query:
|
|
2124
|
-
realmName:
|
|
2135
|
+
query: alepha23.TObject<{
|
|
2136
|
+
realmName: alepha23.TOptional<alepha23.TString>;
|
|
2125
2137
|
}>;
|
|
2126
|
-
body:
|
|
2127
|
-
username:
|
|
2138
|
+
body: alepha23.TObject<{
|
|
2139
|
+
username: alepha23.TString;
|
|
2128
2140
|
}>;
|
|
2129
|
-
response:
|
|
2130
|
-
available:
|
|
2141
|
+
response: alepha23.TObject<{
|
|
2142
|
+
available: alepha23.TBoolean;
|
|
2131
2143
|
}>;
|
|
2132
2144
|
}>;
|
|
2133
2145
|
}
|
|
@@ -2139,10 +2151,10 @@ declare class RealmController {
|
|
|
2139
2151
|
* Requires the intent ID from Phase 1, the verification code,
|
|
2140
2152
|
* and the new password.
|
|
2141
2153
|
*/
|
|
2142
|
-
declare const completePasswordResetRequestSchema:
|
|
2143
|
-
intentId:
|
|
2144
|
-
code:
|
|
2145
|
-
newPassword:
|
|
2154
|
+
declare const completePasswordResetRequestSchema: alepha23.TObject<{
|
|
2155
|
+
intentId: alepha23.TString;
|
|
2156
|
+
code: alepha23.TString;
|
|
2157
|
+
newPassword: alepha23.TString;
|
|
2146
2158
|
}>;
|
|
2147
2159
|
type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
|
|
2148
2160
|
//#endregion
|
|
@@ -2153,9 +2165,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
|
|
|
2153
2165
|
* Contains the intent ID needed for Phase 2 completion,
|
|
2154
2166
|
* along with expiration time.
|
|
2155
2167
|
*/
|
|
2156
|
-
declare const passwordResetIntentResponseSchema:
|
|
2157
|
-
intentId:
|
|
2158
|
-
expiresAt:
|
|
2168
|
+
declare const passwordResetIntentResponseSchema: alepha23.TObject<{
|
|
2169
|
+
intentId: alepha23.TString;
|
|
2170
|
+
expiresAt: alepha23.TString;
|
|
2159
2171
|
}>;
|
|
2160
2172
|
type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
|
|
2161
2173
|
//#endregion
|
|
@@ -2179,47 +2191,47 @@ declare class CredentialService {
|
|
|
2179
2191
|
protected readonly realmProvider: RealmProvider;
|
|
2180
2192
|
protected readonly auditService: AuditService;
|
|
2181
2193
|
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<
|
|
2194
|
+
users(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2195
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2196
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2197
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2198
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2199
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2200
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2201
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2202
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2203
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2204
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2205
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2206
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2207
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2208
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2197
2209
|
}>>;
|
|
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:
|
|
2210
|
+
sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2211
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2212
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2213
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2214
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2215
|
+
refreshToken: alepha23.TString;
|
|
2216
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
2217
|
+
expiresAt: alepha23.TString;
|
|
2218
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
2219
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
2220
|
+
os: alepha23.TString;
|
|
2221
|
+
browser: alepha23.TString;
|
|
2222
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2211
2223
|
}>>;
|
|
2212
2224
|
}>>;
|
|
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:
|
|
2225
|
+
identities(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2226
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2227
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2228
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2229
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2230
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
2231
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
2232
|
+
provider: alepha23.TString;
|
|
2233
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
2234
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
2223
2235
|
}>>;
|
|
2224
2236
|
/**
|
|
2225
2237
|
* Phase 1: Create a password reset intent.
|
|
@@ -2256,11 +2268,11 @@ declare class CredentialService {
|
|
|
2256
2268
|
}
|
|
2257
2269
|
//#endregion
|
|
2258
2270
|
//#region ../../src/api/users/schemas/completeRegistrationRequestSchema.d.ts
|
|
2259
|
-
declare const completeRegistrationRequestSchema:
|
|
2260
|
-
intentId:
|
|
2261
|
-
emailCode:
|
|
2262
|
-
phoneCode:
|
|
2263
|
-
captchaToken:
|
|
2271
|
+
declare const completeRegistrationRequestSchema: alepha23.TObject<{
|
|
2272
|
+
intentId: alepha23.TString;
|
|
2273
|
+
emailCode: alepha23.TOptional<alepha23.TString>;
|
|
2274
|
+
phoneCode: alepha23.TOptional<alepha23.TString>;
|
|
2275
|
+
captchaToken: alepha23.TOptional<alepha23.TString>;
|
|
2264
2276
|
}>;
|
|
2265
2277
|
type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
|
|
2266
2278
|
//#endregion
|
|
@@ -2269,24 +2281,24 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
|
|
|
2269
2281
|
* Schema for user registration request body.
|
|
2270
2282
|
* Password is always required, other fields depend on realm settings.
|
|
2271
2283
|
*/
|
|
2272
|
-
declare const registerRequestSchema:
|
|
2273
|
-
password:
|
|
2274
|
-
username:
|
|
2275
|
-
email:
|
|
2276
|
-
phoneNumber:
|
|
2277
|
-
firstName:
|
|
2278
|
-
lastName:
|
|
2279
|
-
picture:
|
|
2284
|
+
declare const registerRequestSchema: alepha23.TObject<{
|
|
2285
|
+
password: alepha23.TString;
|
|
2286
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2287
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2288
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2289
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2290
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2291
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2280
2292
|
}>;
|
|
2281
2293
|
type RegisterRequest = Static<typeof registerRequestSchema>;
|
|
2282
2294
|
//#endregion
|
|
2283
2295
|
//#region ../../src/api/users/schemas/registrationIntentResponseSchema.d.ts
|
|
2284
|
-
declare const registrationIntentResponseSchema:
|
|
2285
|
-
intentId:
|
|
2286
|
-
expectCaptcha:
|
|
2287
|
-
expectEmailVerification:
|
|
2288
|
-
expectPhoneVerification:
|
|
2289
|
-
expiresAt:
|
|
2296
|
+
declare const registrationIntentResponseSchema: alepha23.TObject<{
|
|
2297
|
+
intentId: alepha23.TString;
|
|
2298
|
+
expectCaptcha: alepha23.TBoolean;
|
|
2299
|
+
expectEmailVerification: alepha23.TBoolean;
|
|
2300
|
+
expectPhoneVerification: alepha23.TBoolean;
|
|
2301
|
+
expiresAt: alepha23.TString;
|
|
2290
2302
|
}>;
|
|
2291
2303
|
type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
|
|
2292
2304
|
//#endregion
|
|
@@ -2369,24 +2381,24 @@ declare class UserController {
|
|
|
2369
2381
|
* Validates data, creates verification sessions, and stores intent in cache.
|
|
2370
2382
|
*/
|
|
2371
2383
|
readonly createRegistrationIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2372
|
-
body:
|
|
2373
|
-
password:
|
|
2374
|
-
username:
|
|
2375
|
-
email:
|
|
2376
|
-
phoneNumber:
|
|
2377
|
-
firstName:
|
|
2378
|
-
lastName:
|
|
2379
|
-
picture:
|
|
2384
|
+
body: alepha23.TObject<{
|
|
2385
|
+
password: alepha23.TString;
|
|
2386
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2387
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2388
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2389
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2390
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2391
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2380
2392
|
}>;
|
|
2381
|
-
query:
|
|
2382
|
-
userRealmName:
|
|
2393
|
+
query: alepha23.TObject<{
|
|
2394
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2383
2395
|
}>;
|
|
2384
|
-
response:
|
|
2385
|
-
intentId:
|
|
2386
|
-
expectCaptcha:
|
|
2387
|
-
expectEmailVerification:
|
|
2388
|
-
expectPhoneVerification:
|
|
2389
|
-
expiresAt:
|
|
2396
|
+
response: alepha23.TObject<{
|
|
2397
|
+
intentId: alepha23.TString;
|
|
2398
|
+
expectCaptcha: alepha23.TBoolean;
|
|
2399
|
+
expectEmailVerification: alepha23.TBoolean;
|
|
2400
|
+
expectPhoneVerification: alepha23.TBoolean;
|
|
2401
|
+
expiresAt: alepha23.TString;
|
|
2390
2402
|
}>;
|
|
2391
2403
|
}>;
|
|
2392
2404
|
/**
|
|
@@ -2394,27 +2406,27 @@ declare class UserController {
|
|
|
2394
2406
|
* Validates verification codes and creates the user.
|
|
2395
2407
|
*/
|
|
2396
2408
|
readonly createUserFromIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2397
|
-
body:
|
|
2398
|
-
intentId:
|
|
2399
|
-
emailCode:
|
|
2400
|
-
phoneCode:
|
|
2401
|
-
captchaToken:
|
|
2409
|
+
body: alepha23.TObject<{
|
|
2410
|
+
intentId: alepha23.TString;
|
|
2411
|
+
emailCode: alepha23.TOptional<alepha23.TString>;
|
|
2412
|
+
phoneCode: alepha23.TOptional<alepha23.TString>;
|
|
2413
|
+
captchaToken: alepha23.TOptional<alepha23.TString>;
|
|
2402
2414
|
}>;
|
|
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<
|
|
2415
|
+
response: alepha23.TObject<{
|
|
2416
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2417
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2418
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2419
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2420
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2421
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2422
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2423
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2424
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2425
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2426
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2427
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2428
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2429
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2418
2430
|
}>;
|
|
2419
2431
|
}>;
|
|
2420
2432
|
/**
|
|
@@ -2422,15 +2434,15 @@ declare class UserController {
|
|
|
2422
2434
|
* Validates email, sends verification code, and stores intent in cache.
|
|
2423
2435
|
*/
|
|
2424
2436
|
readonly createPasswordResetIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2425
|
-
query:
|
|
2426
|
-
userRealmName:
|
|
2437
|
+
query: alepha23.TObject<{
|
|
2438
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2427
2439
|
}>;
|
|
2428
|
-
body:
|
|
2429
|
-
email:
|
|
2440
|
+
body: alepha23.TObject<{
|
|
2441
|
+
email: alepha23.TString;
|
|
2430
2442
|
}>;
|
|
2431
|
-
response:
|
|
2432
|
-
intentId:
|
|
2433
|
-
expiresAt:
|
|
2443
|
+
response: alepha23.TObject<{
|
|
2444
|
+
intentId: alepha23.TString;
|
|
2445
|
+
expiresAt: alepha23.TString;
|
|
2434
2446
|
}>;
|
|
2435
2447
|
}>;
|
|
2436
2448
|
/**
|
|
@@ -2438,61 +2450,61 @@ declare class UserController {
|
|
|
2438
2450
|
* Validates verification code, updates password, and invalidates sessions.
|
|
2439
2451
|
*/
|
|
2440
2452
|
readonly completePasswordReset: alepha_server0.ActionPrimitiveFn<{
|
|
2441
|
-
body:
|
|
2442
|
-
intentId:
|
|
2443
|
-
code:
|
|
2444
|
-
newPassword:
|
|
2453
|
+
body: alepha23.TObject<{
|
|
2454
|
+
intentId: alepha23.TString;
|
|
2455
|
+
code: alepha23.TString;
|
|
2456
|
+
newPassword: alepha23.TString;
|
|
2445
2457
|
}>;
|
|
2446
|
-
response:
|
|
2447
|
-
ok:
|
|
2448
|
-
id:
|
|
2449
|
-
count:
|
|
2458
|
+
response: alepha23.TObject<{
|
|
2459
|
+
ok: alepha23.TBoolean;
|
|
2460
|
+
id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
|
|
2461
|
+
count: alepha23.TOptional<alepha23.TNumber>;
|
|
2450
2462
|
}>;
|
|
2451
2463
|
}>;
|
|
2452
2464
|
/**
|
|
2453
2465
|
* @deprecated Use createPasswordResetIntent instead
|
|
2454
2466
|
*/
|
|
2455
2467
|
requestPasswordReset: alepha_server0.ActionPrimitiveFn<{
|
|
2456
|
-
query:
|
|
2457
|
-
userRealmName:
|
|
2468
|
+
query: alepha23.TObject<{
|
|
2469
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2458
2470
|
}>;
|
|
2459
|
-
body:
|
|
2460
|
-
email:
|
|
2471
|
+
body: alepha23.TObject<{
|
|
2472
|
+
email: alepha23.TString;
|
|
2461
2473
|
}>;
|
|
2462
|
-
response:
|
|
2463
|
-
success:
|
|
2464
|
-
message:
|
|
2474
|
+
response: alepha23.TObject<{
|
|
2475
|
+
success: alepha23.TBoolean;
|
|
2476
|
+
message: alepha23.TString;
|
|
2465
2477
|
}>;
|
|
2466
2478
|
}>;
|
|
2467
2479
|
/**
|
|
2468
2480
|
* @deprecated Use completePasswordReset instead
|
|
2469
2481
|
*/
|
|
2470
2482
|
validateResetToken: alepha_server0.ActionPrimitiveFn<{
|
|
2471
|
-
query:
|
|
2472
|
-
email:
|
|
2473
|
-
token:
|
|
2474
|
-
userRealmName:
|
|
2483
|
+
query: alepha23.TObject<{
|
|
2484
|
+
email: alepha23.TString;
|
|
2485
|
+
token: alepha23.TString;
|
|
2486
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2475
2487
|
}>;
|
|
2476
|
-
response:
|
|
2477
|
-
valid:
|
|
2478
|
-
email:
|
|
2488
|
+
response: alepha23.TObject<{
|
|
2489
|
+
valid: alepha23.TBoolean;
|
|
2490
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2479
2491
|
}>;
|
|
2480
2492
|
}>;
|
|
2481
2493
|
/**
|
|
2482
2494
|
* @deprecated Use completePasswordReset instead
|
|
2483
2495
|
*/
|
|
2484
2496
|
resetPassword: alepha_server0.ActionPrimitiveFn<{
|
|
2485
|
-
query:
|
|
2486
|
-
userRealmName:
|
|
2497
|
+
query: alepha23.TObject<{
|
|
2498
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2487
2499
|
}>;
|
|
2488
|
-
body:
|
|
2489
|
-
email:
|
|
2490
|
-
token:
|
|
2491
|
-
newPassword:
|
|
2500
|
+
body: alepha23.TObject<{
|
|
2501
|
+
email: alepha23.TString;
|
|
2502
|
+
token: alepha23.TString;
|
|
2503
|
+
newPassword: alepha23.TString;
|
|
2492
2504
|
}>;
|
|
2493
|
-
response:
|
|
2494
|
-
success:
|
|
2495
|
-
message:
|
|
2505
|
+
response: alepha23.TObject<{
|
|
2506
|
+
success: alepha23.TBoolean;
|
|
2507
|
+
message: alepha23.TString;
|
|
2496
2508
|
}>;
|
|
2497
2509
|
}>;
|
|
2498
2510
|
/**
|
|
@@ -2502,17 +2514,17 @@ declare class UserController {
|
|
|
2502
2514
|
* @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
|
|
2503
2515
|
*/
|
|
2504
2516
|
requestEmailVerification: alepha_server0.ActionPrimitiveFn<{
|
|
2505
|
-
query:
|
|
2506
|
-
userRealmName:
|
|
2507
|
-
method:
|
|
2508
|
-
verifyUrl:
|
|
2517
|
+
query: alepha23.TObject<{
|
|
2518
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2519
|
+
method: alepha23.TOptional<alepha23.TUnsafe<"link" | "code">>;
|
|
2520
|
+
verifyUrl: alepha23.TOptional<alepha23.TString>;
|
|
2509
2521
|
}>;
|
|
2510
|
-
body:
|
|
2511
|
-
email:
|
|
2522
|
+
body: alepha23.TObject<{
|
|
2523
|
+
email: alepha23.TString;
|
|
2512
2524
|
}>;
|
|
2513
|
-
response:
|
|
2514
|
-
success:
|
|
2515
|
-
message:
|
|
2525
|
+
response: alepha23.TObject<{
|
|
2526
|
+
success: alepha23.TBoolean;
|
|
2527
|
+
message: alepha23.TString;
|
|
2516
2528
|
}>;
|
|
2517
2529
|
}>;
|
|
2518
2530
|
/**
|
|
@@ -2520,147 +2532,445 @@ declare class UserController {
|
|
|
2520
2532
|
* Updates the user's emailVerified status.
|
|
2521
2533
|
*/
|
|
2522
2534
|
verifyEmail: alepha_server0.ActionPrimitiveFn<{
|
|
2523
|
-
query:
|
|
2524
|
-
userRealmName:
|
|
2535
|
+
query: alepha23.TObject<{
|
|
2536
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2525
2537
|
}>;
|
|
2526
|
-
body:
|
|
2527
|
-
email:
|
|
2528
|
-
token:
|
|
2538
|
+
body: alepha23.TObject<{
|
|
2539
|
+
email: alepha23.TString;
|
|
2540
|
+
token: alepha23.TString;
|
|
2529
2541
|
}>;
|
|
2530
|
-
response:
|
|
2531
|
-
success:
|
|
2532
|
-
message:
|
|
2542
|
+
response: alepha23.TObject<{
|
|
2543
|
+
success: alepha23.TBoolean;
|
|
2544
|
+
message: alepha23.TString;
|
|
2533
2545
|
}>;
|
|
2534
2546
|
}>;
|
|
2535
2547
|
/**
|
|
2536
2548
|
* Check if an email is verified.
|
|
2537
2549
|
*/
|
|
2538
2550
|
checkEmailVerification: alepha_server0.ActionPrimitiveFn<{
|
|
2539
|
-
query:
|
|
2540
|
-
email:
|
|
2541
|
-
userRealmName:
|
|
2551
|
+
query: alepha23.TObject<{
|
|
2552
|
+
email: alepha23.TString;
|
|
2553
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2542
2554
|
}>;
|
|
2543
|
-
response:
|
|
2544
|
-
verified:
|
|
2555
|
+
response: alepha23.TObject<{
|
|
2556
|
+
verified: alepha23.TBoolean;
|
|
2545
2557
|
}>;
|
|
2546
2558
|
}>;
|
|
2547
2559
|
}
|
|
2548
2560
|
//#endregion
|
|
2549
2561
|
//#region ../../src/api/users/schemas/identityResourceSchema.d.ts
|
|
2550
|
-
declare const identityResourceSchema:
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
providerUserId:
|
|
2558
|
-
providerData:
|
|
2562
|
+
declare const identityResourceSchema: alepha23.TObject<{
|
|
2563
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2564
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2565
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2566
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2567
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
2568
|
+
provider: alepha23.TString;
|
|
2569
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
2570
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
2559
2571
|
}>;
|
|
2560
2572
|
type IdentityResource = Static<typeof identityResourceSchema>;
|
|
2561
2573
|
//#endregion
|
|
2562
2574
|
//#region ../../src/api/users/schemas/loginSchema.d.ts
|
|
2563
|
-
declare const loginSchema:
|
|
2564
|
-
username:
|
|
2565
|
-
password:
|
|
2575
|
+
declare const loginSchema: alepha23.TObject<{
|
|
2576
|
+
username: alepha23.TString;
|
|
2577
|
+
password: alepha23.TString;
|
|
2566
2578
|
}>;
|
|
2567
2579
|
type LoginInput = Static<typeof loginSchema>;
|
|
2568
2580
|
//#endregion
|
|
2569
2581
|
//#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:
|
|
2582
|
+
declare const realmConfigSchema: alepha23.TObject<{
|
|
2583
|
+
settings: alepha23.TObject<{
|
|
2584
|
+
displayName: alepha23.TOptional<alepha23.TString>;
|
|
2585
|
+
description: alepha23.TOptional<alepha23.TString>;
|
|
2586
|
+
logoUrl: alepha23.TOptional<alepha23.TString>;
|
|
2587
|
+
registrationAllowed: alepha23.TBoolean;
|
|
2588
|
+
emailEnabled: alepha23.TBoolean;
|
|
2589
|
+
emailRequired: alepha23.TBoolean;
|
|
2590
|
+
usernameEnabled: alepha23.TBoolean;
|
|
2591
|
+
usernameRequired: alepha23.TBoolean;
|
|
2592
|
+
usernameRegExp: alepha23.TString;
|
|
2593
|
+
phoneEnabled: alepha23.TBoolean;
|
|
2594
|
+
phoneRequired: alepha23.TBoolean;
|
|
2595
|
+
verifyEmailRequired: alepha23.TBoolean;
|
|
2596
|
+
verifyPhoneRequired: alepha23.TBoolean;
|
|
2597
|
+
firstNameLastNameEnabled: alepha23.TBoolean;
|
|
2598
|
+
firstNameLastNameRequired: alepha23.TBoolean;
|
|
2599
|
+
resetPasswordAllowed: alepha23.TBoolean;
|
|
2600
|
+
passwordPolicy: alepha23.TObject<{
|
|
2601
|
+
minLength: alepha23.TInteger;
|
|
2602
|
+
requireUppercase: alepha23.TBoolean;
|
|
2603
|
+
requireLowercase: alepha23.TBoolean;
|
|
2604
|
+
requireNumbers: alepha23.TBoolean;
|
|
2605
|
+
requireSpecialCharacters: alepha23.TBoolean;
|
|
2594
2606
|
}>;
|
|
2595
2607
|
}>;
|
|
2596
|
-
realmName:
|
|
2597
|
-
authenticationMethods:
|
|
2598
|
-
name:
|
|
2599
|
-
type:
|
|
2608
|
+
realmName: alepha23.TString;
|
|
2609
|
+
authenticationMethods: alepha23.TArray<alepha23.TObject<{
|
|
2610
|
+
name: alepha23.TString;
|
|
2611
|
+
type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
2600
2612
|
}>>;
|
|
2601
2613
|
}>;
|
|
2602
2614
|
type RealmConfig = Static<typeof realmConfigSchema>;
|
|
2603
2615
|
//#endregion
|
|
2604
2616
|
//#region ../../src/api/users/schemas/registerSchema.d.ts
|
|
2605
|
-
declare const registerSchema:
|
|
2606
|
-
username:
|
|
2607
|
-
email:
|
|
2608
|
-
password:
|
|
2609
|
-
confirmPassword:
|
|
2610
|
-
firstName:
|
|
2611
|
-
lastName:
|
|
2617
|
+
declare const registerSchema: alepha23.TObject<{
|
|
2618
|
+
username: alepha23.TString;
|
|
2619
|
+
email: alepha23.TString;
|
|
2620
|
+
password: alepha23.TString;
|
|
2621
|
+
confirmPassword: alepha23.TString;
|
|
2622
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2623
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2612
2624
|
}>;
|
|
2613
2625
|
type RegisterInput = Static<typeof registerSchema>;
|
|
2614
2626
|
//#endregion
|
|
2615
2627
|
//#region ../../src/api/users/schemas/resetPasswordSchema.d.ts
|
|
2616
|
-
declare const resetPasswordRequestSchema:
|
|
2617
|
-
email:
|
|
2628
|
+
declare const resetPasswordRequestSchema: alepha23.TObject<{
|
|
2629
|
+
email: alepha23.TString;
|
|
2618
2630
|
}>;
|
|
2619
|
-
declare const resetPasswordSchema:
|
|
2620
|
-
token:
|
|
2621
|
-
password:
|
|
2622
|
-
confirmPassword:
|
|
2631
|
+
declare const resetPasswordSchema: alepha23.TObject<{
|
|
2632
|
+
token: alepha23.TString;
|
|
2633
|
+
password: alepha23.TString;
|
|
2634
|
+
confirmPassword: alepha23.TString;
|
|
2623
2635
|
}>;
|
|
2624
2636
|
type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
|
|
2625
2637
|
type ResetPasswordInput = Static<typeof resetPasswordSchema>;
|
|
2626
2638
|
//#endregion
|
|
2627
2639
|
//#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:
|
|
2640
|
+
declare const sessionResourceSchema: alepha23.TObject<{
|
|
2641
|
+
id: alepha23.TString;
|
|
2642
|
+
version: alepha23.TNumber;
|
|
2643
|
+
createdAt: alepha23.TString;
|
|
2644
|
+
updatedAt: alepha23.TString;
|
|
2645
|
+
refreshToken: alepha23.TString;
|
|
2646
|
+
userId: alepha23.TString;
|
|
2647
|
+
expiresAt: alepha23.TString;
|
|
2648
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
2649
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
2650
|
+
os: alepha23.TString;
|
|
2651
|
+
browser: alepha23.TString;
|
|
2652
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2641
2653
|
}>>;
|
|
2642
2654
|
}>;
|
|
2643
2655
|
type SessionResource = Static<typeof sessionResourceSchema>;
|
|
2644
2656
|
//#endregion
|
|
2645
2657
|
//#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<
|
|
2658
|
+
declare const userResourceSchema: alepha23.TObject<{
|
|
2659
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2660
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2661
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2662
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2663
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2664
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2665
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2666
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2667
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2668
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2669
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2670
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2671
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2672
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2661
2673
|
}>;
|
|
2662
2674
|
type UserResource = Static<typeof userResourceSchema>;
|
|
2663
2675
|
//#endregion
|
|
2676
|
+
//#region ../../src/system/providers/FileSystemProvider.d.ts
|
|
2677
|
+
/**
|
|
2678
|
+
* Options for creating a file from a URL
|
|
2679
|
+
*/
|
|
2680
|
+
interface CreateFileFromUrlOptions {
|
|
2681
|
+
/**
|
|
2682
|
+
* The URL to load the file from (file://, http://, or https://)
|
|
2683
|
+
*/
|
|
2684
|
+
url: string;
|
|
2685
|
+
/**
|
|
2686
|
+
* The MIME type of the file (optional, will be detected from filename if not provided)
|
|
2687
|
+
*/
|
|
2688
|
+
type?: string;
|
|
2689
|
+
/**
|
|
2690
|
+
* The name of the file (optional, will be extracted from URL if not provided)
|
|
2691
|
+
*/
|
|
2692
|
+
name?: string;
|
|
2693
|
+
}
|
|
2694
|
+
/**
|
|
2695
|
+
* Options for creating a file from a path (URL with file:// scheme)
|
|
2696
|
+
*/
|
|
2697
|
+
interface CreateFileFromPathOptions {
|
|
2698
|
+
/**
|
|
2699
|
+
* The path to the file on the local filesystem
|
|
2700
|
+
*/
|
|
2701
|
+
path: string;
|
|
2702
|
+
/**
|
|
2703
|
+
* The MIME type of the file (optional, will be detected from filename if not provided)
|
|
2704
|
+
*/
|
|
2705
|
+
type?: string;
|
|
2706
|
+
/**
|
|
2707
|
+
* The name of the file (optional, will be extracted from URL if not provided)
|
|
2708
|
+
*/
|
|
2709
|
+
name?: string;
|
|
2710
|
+
}
|
|
2711
|
+
/**
|
|
2712
|
+
* Options for creating a file from a Buffer
|
|
2713
|
+
*/
|
|
2714
|
+
interface CreateFileFromBufferOptions {
|
|
2715
|
+
/**
|
|
2716
|
+
* The Buffer containing the file data
|
|
2717
|
+
*/
|
|
2718
|
+
buffer: Buffer;
|
|
2719
|
+
/**
|
|
2720
|
+
* The MIME type of the file (optional, will be detected from name if not provided)
|
|
2721
|
+
*/
|
|
2722
|
+
type?: string;
|
|
2723
|
+
/**
|
|
2724
|
+
* The name of the file (required for proper content type detection)
|
|
2725
|
+
*/
|
|
2726
|
+
name?: string;
|
|
2727
|
+
}
|
|
2728
|
+
/**
|
|
2729
|
+
* Options for creating a file from a stream
|
|
2730
|
+
*/
|
|
2731
|
+
interface CreateFileFromStreamOptions {
|
|
2732
|
+
/**
|
|
2733
|
+
* The readable stream containing the file data
|
|
2734
|
+
*/
|
|
2735
|
+
stream: StreamLike;
|
|
2736
|
+
/**
|
|
2737
|
+
* The MIME type of the file (optional, will be detected from name if not provided)
|
|
2738
|
+
*/
|
|
2739
|
+
type?: string;
|
|
2740
|
+
/**
|
|
2741
|
+
* The name of the file (required for proper content type detection)
|
|
2742
|
+
*/
|
|
2743
|
+
name?: string;
|
|
2744
|
+
/**
|
|
2745
|
+
* The size of the file in bytes (optional)
|
|
2746
|
+
*/
|
|
2747
|
+
size?: number;
|
|
2748
|
+
}
|
|
2749
|
+
/**
|
|
2750
|
+
* Options for creating a file from text content
|
|
2751
|
+
*/
|
|
2752
|
+
interface CreateFileFromTextOptions {
|
|
2753
|
+
/**
|
|
2754
|
+
* The text content to create the file from
|
|
2755
|
+
*/
|
|
2756
|
+
text: string;
|
|
2757
|
+
/**
|
|
2758
|
+
* The MIME type of the file (default: text/plain)
|
|
2759
|
+
*/
|
|
2760
|
+
type?: string;
|
|
2761
|
+
/**
|
|
2762
|
+
* The name of the file (default: "file.txt")
|
|
2763
|
+
*/
|
|
2764
|
+
name?: string;
|
|
2765
|
+
}
|
|
2766
|
+
interface CreateFileFromResponseOptions {
|
|
2767
|
+
/**
|
|
2768
|
+
* The Response object containing the file data
|
|
2769
|
+
*/
|
|
2770
|
+
response: Response;
|
|
2771
|
+
/**
|
|
2772
|
+
* Override the name (optional, uses filename from Content-Disposition header if not provided)
|
|
2773
|
+
*/
|
|
2774
|
+
name?: string;
|
|
2775
|
+
/**
|
|
2776
|
+
* Override the MIME type (optional, uses file.type if not provided)
|
|
2777
|
+
*/
|
|
2778
|
+
type?: string;
|
|
2779
|
+
}
|
|
2780
|
+
/**
|
|
2781
|
+
* Options for creating a file from a Web File object
|
|
2782
|
+
*/
|
|
2783
|
+
interface CreateFileFromWebFileOptions {
|
|
2784
|
+
/**
|
|
2785
|
+
* The Web File object
|
|
2786
|
+
*/
|
|
2787
|
+
file: File;
|
|
2788
|
+
/**
|
|
2789
|
+
* Override the MIME type (optional, uses file.type if not provided)
|
|
2790
|
+
*/
|
|
2791
|
+
type?: string;
|
|
2792
|
+
/**
|
|
2793
|
+
* Override the name (optional, uses file.name if not provided)
|
|
2794
|
+
*/
|
|
2795
|
+
name?: string;
|
|
2796
|
+
/**
|
|
2797
|
+
* Override the size (optional, uses file.size if not provided)
|
|
2798
|
+
*/
|
|
2799
|
+
size?: number;
|
|
2800
|
+
}
|
|
2801
|
+
/**
|
|
2802
|
+
* Options for creating a file from an ArrayBuffer
|
|
2803
|
+
*/
|
|
2804
|
+
interface CreateFileFromArrayBufferOptions {
|
|
2805
|
+
/**
|
|
2806
|
+
* The ArrayBuffer containing the file data
|
|
2807
|
+
*/
|
|
2808
|
+
arrayBuffer: ArrayBuffer;
|
|
2809
|
+
/**
|
|
2810
|
+
* The MIME type of the file (optional, will be detected from name if not provided)
|
|
2811
|
+
*/
|
|
2812
|
+
type?: string;
|
|
2813
|
+
/**
|
|
2814
|
+
* The name of the file (required for proper content type detection)
|
|
2815
|
+
*/
|
|
2816
|
+
name?: string;
|
|
2817
|
+
}
|
|
2818
|
+
/**
|
|
2819
|
+
* Union type for all createFile options
|
|
2820
|
+
*/
|
|
2821
|
+
type CreateFileOptions = CreateFileFromUrlOptions | CreateFileFromPathOptions | CreateFileFromBufferOptions | CreateFileFromStreamOptions | CreateFileFromTextOptions | CreateFileFromWebFileOptions | CreateFileFromResponseOptions | CreateFileFromArrayBufferOptions;
|
|
2822
|
+
/**
|
|
2823
|
+
* Options for rm (remove) operation
|
|
2824
|
+
*/
|
|
2825
|
+
interface RmOptions {
|
|
2826
|
+
/**
|
|
2827
|
+
* If true, removes directories and their contents recursively
|
|
2828
|
+
*/
|
|
2829
|
+
recursive?: boolean;
|
|
2830
|
+
/**
|
|
2831
|
+
* If true, no error will be thrown if the path does not exist
|
|
2832
|
+
*/
|
|
2833
|
+
force?: boolean;
|
|
2834
|
+
}
|
|
2835
|
+
/**
|
|
2836
|
+
* Options for cp (copy) operation
|
|
2837
|
+
*/
|
|
2838
|
+
interface CpOptions {
|
|
2839
|
+
/**
|
|
2840
|
+
* If true, copy directories recursively
|
|
2841
|
+
*/
|
|
2842
|
+
recursive?: boolean;
|
|
2843
|
+
/**
|
|
2844
|
+
* If true, overwrite existing destination
|
|
2845
|
+
*/
|
|
2846
|
+
force?: boolean;
|
|
2847
|
+
}
|
|
2848
|
+
/**
|
|
2849
|
+
* Options for mkdir operation
|
|
2850
|
+
*/
|
|
2851
|
+
interface MkdirOptions {
|
|
2852
|
+
/**
|
|
2853
|
+
* If true, creates parent directories as needed
|
|
2854
|
+
*
|
|
2855
|
+
* @default true
|
|
2856
|
+
*/
|
|
2857
|
+
recursive?: boolean;
|
|
2858
|
+
/**
|
|
2859
|
+
* If true, does not throw an error if the directory already exists
|
|
2860
|
+
*
|
|
2861
|
+
* @default true
|
|
2862
|
+
*/
|
|
2863
|
+
force?: boolean;
|
|
2864
|
+
/**
|
|
2865
|
+
* File mode (permission and sticky bits)
|
|
2866
|
+
*/
|
|
2867
|
+
mode?: number;
|
|
2868
|
+
}
|
|
2869
|
+
/**
|
|
2870
|
+
* Options for ls (list) operation
|
|
2871
|
+
*/
|
|
2872
|
+
interface LsOptions {
|
|
2873
|
+
/**
|
|
2874
|
+
* If true, list contents of directories recursively
|
|
2875
|
+
*/
|
|
2876
|
+
recursive?: boolean;
|
|
2877
|
+
/**
|
|
2878
|
+
* If true, include hidden files (starting with .)
|
|
2879
|
+
*/
|
|
2880
|
+
hidden?: boolean;
|
|
2881
|
+
}
|
|
2882
|
+
/**
|
|
2883
|
+
* FileSystem interface providing utilities for working with files.
|
|
2884
|
+
*/
|
|
2885
|
+
declare abstract class FileSystemProvider {
|
|
2886
|
+
/**
|
|
2887
|
+
* Joins multiple path segments into a single path.
|
|
2888
|
+
*
|
|
2889
|
+
* @param paths - The path segments to join
|
|
2890
|
+
* @returns The joined path
|
|
2891
|
+
*/
|
|
2892
|
+
abstract join(...paths: string[]): string;
|
|
2893
|
+
/**
|
|
2894
|
+
* Creates a FileLike object from various sources.
|
|
2895
|
+
*
|
|
2896
|
+
* @param options - Options for creating the file
|
|
2897
|
+
* @returns A FileLike object
|
|
2898
|
+
*/
|
|
2899
|
+
abstract createFile(options: CreateFileOptions): FileLike;
|
|
2900
|
+
/**
|
|
2901
|
+
* Removes a file or directory.
|
|
2902
|
+
*
|
|
2903
|
+
* @param path - The path to remove
|
|
2904
|
+
* @param options - Remove options
|
|
2905
|
+
*/
|
|
2906
|
+
abstract rm(path: string, options?: RmOptions): Promise<void>;
|
|
2907
|
+
/**
|
|
2908
|
+
* Copies a file or directory.
|
|
2909
|
+
*
|
|
2910
|
+
* @param src - Source path
|
|
2911
|
+
* @param dest - Destination path
|
|
2912
|
+
* @param options - Copy options
|
|
2913
|
+
*/
|
|
2914
|
+
abstract cp(src: string, dest: string, options?: CpOptions): Promise<void>;
|
|
2915
|
+
/**
|
|
2916
|
+
* Moves/renames a file or directory.
|
|
2917
|
+
*
|
|
2918
|
+
* @param src - Source path
|
|
2919
|
+
* @param dest - Destination path
|
|
2920
|
+
*/
|
|
2921
|
+
abstract mv(src: string, dest: string): Promise<void>;
|
|
2922
|
+
/**
|
|
2923
|
+
* Creates a directory.
|
|
2924
|
+
*
|
|
2925
|
+
* @param path - The directory path to create
|
|
2926
|
+
* @param options - Mkdir options
|
|
2927
|
+
*/
|
|
2928
|
+
abstract mkdir(path: string, options?: MkdirOptions): Promise<void>;
|
|
2929
|
+
/**
|
|
2930
|
+
* Lists files in a directory.
|
|
2931
|
+
*
|
|
2932
|
+
* @param path - The directory path to list
|
|
2933
|
+
* @param options - List options
|
|
2934
|
+
* @returns Array of filenames
|
|
2935
|
+
*/
|
|
2936
|
+
abstract ls(path: string, options?: LsOptions): Promise<string[]>;
|
|
2937
|
+
/**
|
|
2938
|
+
* Checks if a file or directory exists.
|
|
2939
|
+
*
|
|
2940
|
+
* @param path - The path to check
|
|
2941
|
+
* @returns True if the path exists, false otherwise
|
|
2942
|
+
*/
|
|
2943
|
+
abstract exists(path: string): Promise<boolean>;
|
|
2944
|
+
/**
|
|
2945
|
+
* Reads the content of a file.
|
|
2946
|
+
*
|
|
2947
|
+
* @param path - The file path to read
|
|
2948
|
+
* @returns The file content as a Buffer
|
|
2949
|
+
*/
|
|
2950
|
+
abstract readFile(path: string): Promise<Buffer>;
|
|
2951
|
+
/**
|
|
2952
|
+
* Writes data to a file.
|
|
2953
|
+
*
|
|
2954
|
+
* @param path - The file path to write to
|
|
2955
|
+
* @param data - The data to write (Buffer or string)
|
|
2956
|
+
*/
|
|
2957
|
+
abstract writeFile(path: string, data: Uint8Array | Buffer | string | FileLike): Promise<void>;
|
|
2958
|
+
/**
|
|
2959
|
+
* Reads the content of a file as a string.
|
|
2960
|
+
*
|
|
2961
|
+
* @param path - The file path to read
|
|
2962
|
+
* @returns The file content as a string
|
|
2963
|
+
*/
|
|
2964
|
+
abstract readTextFile(path: string): Promise<string>;
|
|
2965
|
+
/**
|
|
2966
|
+
* Reads the content of a file as JSON.
|
|
2967
|
+
*
|
|
2968
|
+
* @param path - The file path to read
|
|
2969
|
+
* @returns The parsed JSON content
|
|
2970
|
+
*/
|
|
2971
|
+
abstract readJsonFile<T = unknown>(path: string): Promise<T>;
|
|
2972
|
+
}
|
|
2973
|
+
//#endregion
|
|
2664
2974
|
//#region ../../src/api/users/services/SessionService.d.ts
|
|
2665
2975
|
declare class SessionService {
|
|
2666
2976
|
protected readonly alepha: Alepha;
|
|
@@ -2671,47 +2981,47 @@ declare class SessionService {
|
|
|
2671
2981
|
protected readonly realmProvider: RealmProvider;
|
|
2672
2982
|
protected readonly fileController: alepha_server_links0.HttpVirtualClient<FileController>;
|
|
2673
2983
|
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<
|
|
2984
|
+
users(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2985
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2986
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2987
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2988
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2989
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2990
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2991
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2992
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2993
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2994
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2995
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2996
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2997
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2998
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2689
2999
|
}>>;
|
|
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:
|
|
3000
|
+
sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
3001
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
3002
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
3003
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
3004
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
3005
|
+
refreshToken: alepha23.TString;
|
|
3006
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
3007
|
+
expiresAt: alepha23.TString;
|
|
3008
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
3009
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
3010
|
+
os: alepha23.TString;
|
|
3011
|
+
browser: alepha23.TString;
|
|
3012
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2703
3013
|
}>>;
|
|
2704
3014
|
}>>;
|
|
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:
|
|
3015
|
+
identities(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
3016
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
3017
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
3018
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
3019
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
3020
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
3021
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
3022
|
+
provider: alepha23.TString;
|
|
3023
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
3024
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
2715
3025
|
}>>;
|
|
2716
3026
|
/**
|
|
2717
3027
|
* Random delay to prevent timing attacks (50-200ms)
|
|
@@ -2727,36 +3037,36 @@ declare class SessionService {
|
|
|
2727
3037
|
sessionId: string;
|
|
2728
3038
|
}>;
|
|
2729
3039
|
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<
|
|
3040
|
+
user: PgStatic<alepha23.TObject<{
|
|
3041
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
3042
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
3043
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
3044
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
3045
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
3046
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
3047
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
3048
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
3049
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
3050
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
3051
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
3052
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
3053
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
3054
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
3055
|
+
}>, PgRelationMap<alepha23.TObject<{
|
|
3056
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
3057
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
3058
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
3059
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
3060
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
3061
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
3062
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
3063
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
3064
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
3065
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
3066
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
3067
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
3068
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
3069
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2760
3070
|
}>>>;
|
|
2761
3071
|
expiresIn: number;
|
|
2762
3072
|
sessionId: string;
|
|
@@ -2811,14 +3121,25 @@ declare class SessionService {
|
|
|
2811
3121
|
//#endregion
|
|
2812
3122
|
//#region ../../src/api/users/index.d.ts
|
|
2813
3123
|
/**
|
|
2814
|
-
*
|
|
3124
|
+
* | type | quality | stability |
|
|
3125
|
+
* |------|---------|-----------|
|
|
3126
|
+
* | backend | epic | stable |
|
|
3127
|
+
*
|
|
3128
|
+
* Complete user management with multi-realm support for multi-tenant applications.
|
|
2815
3129
|
*
|
|
2816
|
-
*
|
|
2817
|
-
*
|
|
3130
|
+
* **Features:**
|
|
3131
|
+
* - User registration, login, and profile management
|
|
3132
|
+
* - Password reset workflows
|
|
3133
|
+
* - Email verification
|
|
3134
|
+
* - Session management with multiple devices
|
|
3135
|
+
* - Identity management (social logins, SSO)
|
|
3136
|
+
* - Multi-realm support for tenant isolation
|
|
3137
|
+
* - Credential management
|
|
3138
|
+
* - Entities: `users`, `identities`, `sessions`
|
|
2818
3139
|
*
|
|
2819
3140
|
* @module alepha.api.users
|
|
2820
3141
|
*/
|
|
2821
|
-
declare const AlephaApiUsers:
|
|
3142
|
+
declare const AlephaApiUsers: alepha23.Service<alepha23.Module>;
|
|
2822
3143
|
//#endregion
|
|
2823
3144
|
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
3145
|
//# sourceMappingURL=index.d.ts.map
|