alepha 0.19.1 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +6 -9
- package/dist/api/audits/index.d.ts +378 -346
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/files/index.d.ts +216 -184
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/jobs/index.d.ts +528 -496
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +3 -3
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +207 -207
- package/dist/api/keys/index.d.ts.map +1 -1
- package/dist/api/notifications/index.d.ts +152 -152
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/organizations/index.browser.js +48 -0
- package/dist/api/organizations/index.browser.js.map +1 -0
- package/dist/api/organizations/index.d.ts +516 -0
- package/dist/api/organizations/index.d.ts.map +1 -0
- package/dist/api/organizations/index.js +202 -0
- package/dist/api/organizations/index.js.map +1 -0
- package/dist/api/parameters/index.d.ts +391 -358
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +5 -1
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/users/index.browser.js +7 -5
- package/dist/api/users/index.browser.js.map +1 -1
- package/dist/api/users/index.d.ts +978 -913
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +160 -112
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.d.ts +135 -135
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/api/verifications/index.js +2 -2
- package/dist/api/verifications/index.js.map +1 -1
- package/dist/batch/index.d.ts +6 -6
- package/dist/batch/index.d.ts.map +1 -1
- package/dist/billing/index.d.ts +1048 -0
- package/dist/billing/index.d.ts.map +1 -0
- package/dist/billing/index.js +713 -0
- package/dist/billing/index.js.map +1 -0
- package/dist/bin/index.js +0 -2
- package/dist/bin/index.js.map +1 -1
- package/dist/bucket/index.d.ts +10 -10
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/bucket/index.js +2 -2
- package/dist/bucket/index.js.map +1 -1
- package/dist/cache/core/index.d.ts +9 -9
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/core/index.js +2 -2
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cache/core/index.workerd.js +2 -2
- package/dist/cache/core/index.workerd.js.map +1 -1
- package/dist/cache/redis/index.d.ts +6 -6
- package/dist/cache/redis/index.d.ts.map +1 -1
- package/dist/cache/redis/index.js +2 -2
- package/dist/cache/redis/index.js.map +1 -1
- package/dist/cli/config/index.d.ts +12 -2
- package/dist/cli/config/index.d.ts.map +1 -1
- package/dist/cli/config/index.js +4 -0
- package/dist/cli/config/index.js.map +1 -1
- package/dist/cli/core/index.d.ts +183 -140
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +279 -89
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/devtools/index.d.ts +45 -0
- package/dist/cli/devtools/index.d.ts.map +1 -0
- package/dist/cli/devtools/index.js +170 -0
- package/dist/cli/devtools/index.js.map +1 -0
- package/dist/cli/platform/index.d.ts +383 -492
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +42 -511
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/cli/vendor/index.d.ts +196 -0
- package/dist/cli/vendor/index.d.ts.map +1 -0
- package/dist/cli/vendor/index.js +384 -0
- package/dist/cli/vendor/index.js.map +1 -0
- package/dist/command/index.d.ts +18 -18
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +2 -2
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +4 -4
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +10 -10
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +4 -4
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +4 -4
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +4 -4
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/crypto/index.d.ts +7 -7
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/datetime/index.d.ts +4 -4
- package/dist/datetime/index.d.ts.map +1 -1
- package/dist/email/brevo/index.d.ts +4 -4
- package/dist/email/brevo/index.d.ts.map +1 -1
- package/dist/email/core/index.d.ts +15 -11
- package/dist/email/core/index.d.ts.map +1 -1
- package/dist/email/core/index.js +12 -35
- package/dist/email/core/index.js.map +1 -1
- package/dist/email/smtp/index.d.ts +12 -12
- package/dist/email/smtp/index.d.ts.map +1 -1
- package/dist/email/smtp/index.js +7 -4
- package/dist/email/smtp/index.js.map +1 -1
- package/dist/fake/index.d.ts +4 -8
- package/dist/fake/index.d.ts.map +1 -1
- package/dist/fake/index.js +55 -889
- package/dist/fake/index.js.map +1 -1
- package/dist/lock/core/index.d.ts +13 -13
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/core/index.js +2 -2
- package/dist/lock/core/index.js.map +1 -1
- package/dist/lock/redis/index.d.ts +4 -4
- package/dist/lock/redis/index.d.ts.map +1 -1
- package/dist/logger/index.d.ts +16 -15
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +5 -2
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts +11 -11
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/core/index.browser.js +11 -1
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +53 -16
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +95 -51
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +55 -14
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +18 -17
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/queue/core/index.d.ts +14 -14
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/core/index.js +2 -2
- package/dist/queue/core/index.js.map +1 -1
- package/dist/queue/core/index.workerd.js +2 -2
- package/dist/queue/core/index.workerd.js.map +1 -1
- package/dist/queue/redis/index.d.ts +4 -4
- package/dist/queue/redis/index.d.ts.map +1 -1
- package/dist/queue/redis/index.js +2 -2
- package/dist/queue/redis/index.js.map +1 -1
- package/dist/react/auth/index.d.ts +9 -9
- package/dist/react/auth/index.d.ts.map +1 -1
- package/dist/react/core/index.d.ts +6 -6
- package/dist/react/core/index.d.ts.map +1 -1
- package/dist/react/core/index.js +5 -4
- package/dist/react/core/index.js.map +1 -1
- package/dist/react/form/index.d.ts +4 -4
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/head/index.d.ts +4 -4
- package/dist/react/head/index.d.ts.map +1 -1
- package/dist/react/i18n/index.d.ts +9 -9
- package/dist/react/i18n/index.d.ts.map +1 -1
- package/dist/react/intro/index.d.ts +2 -2
- package/dist/react/intro/index.d.ts.map +1 -1
- package/dist/react/intro/index.js +1 -1
- package/dist/react/intro/index.js.map +1 -1
- package/dist/react/router/index.browser.js +4 -5
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +215 -215
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +6 -7
- package/dist/react/router/index.js.map +1 -1
- package/dist/react/testing/index.d.ts +2 -2
- package/dist/react/testing/index.d.ts.map +1 -1
- package/dist/react/testing/index.js +2 -4
- package/dist/react/testing/index.js.map +1 -1
- package/dist/redis/index.d.ts +19 -19
- package/dist/redis/index.d.ts.map +1 -1
- package/dist/retry/index.d.ts +4 -4
- package/dist/retry/index.d.ts.map +1 -1
- package/dist/scheduler/index.d.ts +13 -13
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +2 -2
- package/dist/scheduler/index.js.map +1 -1
- package/dist/scheduler/index.workerd.js +2 -2
- package/dist/scheduler/index.workerd.js.map +1 -1
- package/dist/security/index.browser.js +1 -1
- package/dist/security/index.browser.js.map +1 -1
- package/dist/security/index.d.ts +47 -47
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +9 -12
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +170 -169
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +16 -2
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cookies/index.d.ts +7 -7
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/core/index.d.ts +76 -76
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +23 -17
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/cors/index.d.ts +13 -13
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/cors/index.js +2 -2
- package/dist/server/cors/index.js.map +1 -1
- package/dist/server/etag/index.d.ts +9 -9
- package/dist/server/etag/index.d.ts.map +1 -1
- package/dist/server/health/index.d.ts +20 -20
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/links/index.browser.js +2 -2
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.d.ts +66 -66
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +4 -4
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/metrics/index.d.ts +7 -7
- package/dist/server/metrics/index.d.ts.map +1 -1
- package/dist/server/proxy/index.d.ts +5 -5
- package/dist/server/proxy/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.d.ts +12 -12
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.js +2 -2
- package/dist/server/rate-limit/index.js.map +1 -1
- package/dist/server/static/index.d.ts +5 -5
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/swagger/index.d.ts +7 -7
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +2 -2
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +11 -7
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js +9 -15
- package/dist/sms/index.js.map +1 -1
- package/dist/system/index.d.ts +4 -4
- package/dist/system/index.d.ts.map +1 -1
- package/dist/topic/core/index.d.ts +6 -6
- package/dist/topic/core/index.d.ts.map +1 -1
- package/dist/topic/redis/index.d.ts +7 -7
- package/dist/topic/redis/index.d.ts.map +1 -1
- package/dist/topic/redis/index.js +2 -2
- package/dist/topic/redis/index.js.map +1 -1
- package/dist/websocket/index.d.ts +36 -36
- package/dist/websocket/index.d.ts.map +1 -1
- package/dist/websocket/index.js +2 -2
- package/dist/websocket/index.js.map +1 -1
- package/package.json +36 -14
- package/src/api/jobs/{services → __tests__}/JobService.spec.ts +1 -1
- package/src/api/jobs/providers/JobProvider.ts +3 -3
- package/src/api/keys/{services → __tests__}/ApiKeyService.spec.ts +1 -1
- package/src/api/organizations/__tests__/OrganizationService.spec.ts +193 -0
- package/src/api/organizations/controllers/AdminOrganizationController.ts +103 -0
- package/src/api/organizations/entities/organizations.ts +20 -0
- package/src/api/organizations/index.browser.ts +10 -0
- package/src/api/organizations/index.ts +31 -0
- package/src/api/organizations/schemas/createOrganizationSchema.ts +10 -0
- package/src/api/organizations/schemas/organizationQuerySchema.ts +10 -0
- package/src/api/organizations/schemas/organizationResourceSchema.ts +6 -0
- package/src/api/organizations/schemas/updateOrganizationSchema.ts +7 -0
- package/src/api/organizations/services/OrganizationService.ts +75 -0
- package/src/api/parameters/services/ParameterProvider.ts +6 -1
- package/src/api/users/{services → __tests__}/SessionService.spec.ts +67 -0
- package/src/api/users/{jobs → __tests__}/UserJobs.spec.ts +1 -1
- package/src/api/users/entities/users.ts +9 -3
- package/src/api/users/index.ts +23 -4
- package/src/api/users/primitives/$realm.ts +6 -4
- package/src/api/users/providers/RealmProvider.ts +1 -1
- package/src/api/users/services/RegistrationService.ts +1 -1
- package/src/api/users/services/SessionService.ts +92 -5
- package/src/api/users/services/UserService.ts +1 -1
- package/src/api/verifications/{jobs → __tests__}/VerificationJobs.spec.ts +4 -2
- package/src/api/verifications/parameters/VerificationParameters.ts +2 -2
- package/src/billing/__tests__/BillingService.spec.ts +136 -0
- package/src/billing/__tests__/PaymentMethodService.spec.ts +78 -0
- package/src/billing/controllers/AdminBillingController.ts +149 -0
- package/src/billing/controllers/BillingController.ts +108 -0
- package/src/billing/entities/paymentIntents.ts +34 -0
- package/src/billing/entities/paymentMethods.ts +24 -0
- package/src/billing/entities/refunds.ts +22 -0
- package/src/billing/errors/BillingError.ts +5 -0
- package/src/billing/index.ts +76 -0
- package/src/billing/providers/BillingProvider.ts +79 -0
- package/src/billing/providers/MemoryBillingProvider.ts +139 -0
- package/src/billing/schemas/intentSchemas.ts +60 -0
- package/src/billing/schemas/paymentMethodSchemas.ts +13 -0
- package/src/billing/schemas/refundSchemas.ts +6 -0
- package/src/billing/services/BillingService.ts +325 -0
- package/src/billing/services/PaymentMethodService.ts +82 -0
- package/src/bin/index.ts +0 -2
- package/src/bucket/providers/LocalFileStorageProvider.ts +2 -2
- package/src/cache/core/{primitives → __tests__}/$cache.middleware.spec.ts +1 -1
- package/src/cache/core/{providers → __tests__}/MemoryCacheProvider.spec.ts +1 -1
- package/src/cache/core/primitives/$cache.ts +2 -2
- package/src/cache/redis/providers/RedisCacheProvider.ts +2 -2
- package/src/cli/config/defineConfig.ts +20 -0
- package/src/cli/core/{services → __tests__}/ProjectScaffolder.spec.ts +1 -1
- package/src/cli/core/{commands/gen → __tests__}/changelog.spec.ts +1 -1
- package/src/cli/core/{commands → __tests__}/init.spec.ts +2 -8
- package/src/cli/core/atoms/devOptions.ts +0 -5
- package/src/cli/core/commands/build.ts +2 -2
- package/src/cli/core/commands/dev.ts +165 -30
- package/src/cli/core/commands/gen/changelog.ts +2 -2
- package/src/cli/core/commands/init.ts +2 -7
- package/src/cli/core/commands/verify.ts +0 -1
- package/src/cli/core/providers/AppEntryProvider.ts +2 -2
- package/src/cli/core/providers/ViteDevServerProvider.ts +54 -66
- package/src/cli/core/services/PackageManagerUtils.ts +8 -3
- package/src/cli/core/services/ProjectScaffolder.ts +18 -18
- package/src/cli/core/tasks/BuildClientTask.ts +8 -0
- package/src/cli/core/tasks/BuildServerTask.ts +17 -4
- package/src/cli/core/templates/alephaConfigTs.ts +0 -6
- package/src/cli/core/templates/webAdminDashboardTsx.ts +17 -0
- package/src/cli/core/templates/webAppRouterTs.ts +85 -2
- package/src/cli/devtools/atoms/devtoolsOptions.ts +26 -0
- package/src/cli/devtools/index.ts +194 -0
- package/src/cli/platform/{adapters → __tests__}/CloudflareAdapter.spec.ts +2 -2
- package/src/cli/platform/{providers → __tests__}/GitHubSecretStore.spec.ts +1 -1
- package/src/cli/platform/{services → __tests__}/NamingService.spec.ts +1 -1
- package/src/cli/platform/{providers → __tests__}/PlatformCacheProvider.spec.ts +1 -1
- package/src/cli/platform/{services → __tests__}/PlatformInspector.spec.ts +1 -1
- package/src/cli/platform/{services → __tests__}/PlatformOrchestrator.spec.ts +3 -3
- package/src/cli/platform/{services → __tests__}/SecretFilterService.spec.ts +1 -1
- package/src/cli/platform/{commands → __tests__}/SecretsCommand.spec.ts +1 -1
- package/src/cli/platform/{adapters → __tests__}/VercelAdapter.spec.ts +2 -2
- package/src/cli/platform/atoms/platformOptions.ts +2 -10
- package/src/cli/platform/commands/SecretsCommand.ts +2 -2
- package/src/cli/platform/commands/platform.ts +2 -11
- package/src/cli/platform/index.ts +34 -11
- package/src/cli/platform/services/PlatformInspector.ts +2 -2
- package/src/cli/platform/services/PlatformOrchestrator.ts +0 -9
- package/src/cli/vendor/__tests__/VendorService.spec.ts +407 -0
- package/src/cli/vendor/atoms/vendorOptions.ts +41 -0
- package/src/cli/vendor/commands/VendorCommand.ts +204 -0
- package/src/cli/vendor/index.ts +43 -0
- package/src/cli/vendor/services/VendorService.ts +338 -0
- package/src/command/{providers → __tests__}/CliProvider.spec.ts +1 -1
- package/src/command/{helpers → __tests__}/EnvUtils.spec.ts +1 -1
- package/src/command/providers/CliProvider.ts +2 -2
- package/src/core/{primitives → __tests__}/$atom.spec.ts +2 -2
- package/src/core/{primitives → __tests__}/$memoize.spec.ts +1 -1
- package/src/core/{primitives → __tests__}/$mode.spec.ts +1 -1
- package/src/core/{primitives → __tests__}/$pipeline.spec.ts +1 -1
- package/src/core/{primitives → __tests__}/$scope.spec.ts +2 -2
- package/src/core/{providers → __tests__}/KeylessJsonSchemaCodec.spec.ts +1 -1
- package/src/core/{providers → __tests__}/SchemaValidator.spec.ts +1 -1
- package/src/core/{helpers → __tests__}/jsonSchemaToTypeBox.spec.ts +1 -1
- package/src/core/index.shared.ts +1 -1
- package/src/core/primitives/{$use.ts → $state.ts} +4 -4
- package/src/crypto/{providers → __tests__}/BrowserCryptoProvider.browser.spec.ts +1 -1
- package/src/crypto/{providers → __tests__}/CryptoProvider.spec.ts +1 -1
- package/src/datetime/{primitives → __tests__}/$debounce.spec.ts +1 -1
- package/src/datetime/{primitives → __tests__}/$throttle.spec.ts +1 -1
- package/src/datetime/{primitives → __tests__}/$timeout.spec.ts +1 -1
- package/src/email/brevo/{providers → __tests__}/BrevoEmailProvider.spec.ts +1 -1
- package/src/email/core/{providers → __tests__}/LocalEmailProvider.spec.ts +39 -150
- package/src/email/core/providers/LocalEmailProvider.ts +13 -51
- package/src/email/smtp/providers/NodemailerEmailProvider.ts +2 -2
- package/src/lock/core/{primitives → __tests__}/$lock.middleware.spec.ts +1 -1
- package/src/lock/core/primitives/$lock.ts +2 -2
- package/src/logger/index.ts +10 -4
- package/src/mcp/transports/SseMcpTransport.ts +2 -2
- package/src/orm/__tests__/ModelBuilder-tests.ts +53 -0
- package/src/orm/__tests__/ModelBuilder.spec.ts +80 -0
- package/src/orm/__tests__/organization-tests.ts +200 -0
- package/src/orm/__tests__/organization.spec.ts +103 -0
- package/src/orm/core/{providers/drivers → __tests__}/BunSqliteProvider.bun.spec.ts +5 -2
- package/src/orm/core/constants/PG_SYMBOLS.ts +2 -0
- package/src/orm/core/index.shared.ts +1 -0
- package/src/orm/core/primitives/$entity.ts +31 -0
- package/src/orm/core/providers/DatabaseTypeProvider.ts +11 -0
- package/src/orm/core/providers/DrizzleKitProvider.ts +1 -1
- package/src/orm/core/providers/drivers/BunSqliteProvider.ts +2 -2
- package/src/orm/core/providers/drivers/NodeSqliteProvider.ts +3 -3
- package/src/orm/core/services/ModelBuilder.ts +11 -0
- package/src/orm/core/services/QueryManager.ts +16 -2
- package/src/orm/core/services/Repository.ts +70 -10
- package/src/orm/postgres/{providers → __tests__}/BunPostgresProvider.bun.spec.ts +1 -1
- package/src/queue/core/providers/WorkerProvider.ts +2 -2
- package/src/queue/redis/providers/RedisQueueProvider.ts +2 -2
- package/src/react/core/{hooks → __tests__}/useAction.browser.spec.tsx +1 -1
- package/src/react/core/hooks/useAction.ts +7 -6
- package/src/react/head/{providers → __tests__}/BrowserHeadProvider.browser.spec.ts +1 -1
- package/src/react/head/{helpers → __tests__}/SeoExpander.spec.ts +1 -1
- package/src/react/i18n/{providers → __tests__}/I18nProvider.spec.ts +1 -1
- package/src/react/i18n/{hooks → __tests__}/useI18n.browser.spec.tsx +1 -1
- package/src/react/intro/components/GettingStartedDevtoolsSlide.tsx +1 -1
- package/src/react/router/{providers → __tests__}/ReactBrowserProvider.browser.spec.ts +1 -1
- package/src/react/router/providers/ReactBrowserProvider.ts +2 -2
- package/src/react/router/providers/ReactPageProvider.ts +2 -2
- package/src/react/router/providers/ReactServerProvider.ts +3 -3
- package/src/redis/{providers → __tests__}/BunRedisProvider.bun.spec.ts +4 -4
- package/src/retry/{primitives → __tests__}/$retry.middleware.spec.ts +1 -1
- package/src/router/{TemplatedPathParser.spec.ts → __tests__/TemplatedPathParser.spec.ts} +1 -1
- package/src/scheduler/primitives/$scheduler.ts +2 -2
- package/src/security/{primitives → __tests__}/$secure-browser.spec.ts +1 -1
- package/src/security/{primitives → __tests__}/$secure.spec.ts +1 -1
- package/src/security/primitives/$issuer.ts +1 -1
- package/src/security/providers/JwtProvider.ts +6 -10
- package/src/security/providers/SecurityProvider.ts +6 -11
- package/src/security/schemas/userAccountInfoSchema.ts +3 -3
- package/src/server/auth/providers/ServerAuthProvider.ts +24 -2
- package/src/server/cookies/{services → __tests__}/CookieParser.spec.ts +1 -1
- package/src/server/core/{primitives → __tests__}/$circuit.spec.ts +1 -1
- package/src/server/core/{providers → __tests__}/NodeHttpServerProvider.spec.ts +1 -1
- package/src/server/core/{providers → __tests__}/ServerBodyParserProvider.spec.ts +31 -1
- package/src/server/core/{providers → __tests__}/ServerCompressProvider.spec.ts +1 -1
- package/src/server/core/{providers → __tests__}/ServerHelmetProvider.spec.ts +4 -1
- package/src/server/core/{providers → __tests__}/ServerMultipartProvider.spec.ts +1 -1
- package/src/server/core/{services → __tests__}/ServerRequestParser.spec.ts +1 -1
- package/src/server/core/primitives/$action.ts +2 -2
- package/src/server/core/primitives/$sse.ts +2 -2
- package/src/server/core/providers/ServerBodyParserProvider.ts +21 -12
- package/src/server/core/providers/ServerCompressProvider.ts +2 -2
- package/src/server/core/providers/ServerHelmetProvider.ts +2 -2
- package/src/server/core/providers/ServerMultipartProvider.ts +2 -2
- package/src/server/core/providers/ServerRouterProvider.ts +1 -5
- package/src/server/cors/{primitives → __tests__}/$cors.spec.ts +1 -1
- package/src/server/cors/providers/ServerCorsProvider.ts +2 -2
- package/src/server/links/{services → __tests__}/BatchCollector.spec.ts +1 -1
- package/src/server/links/providers/LinkProvider.ts +2 -2
- package/src/server/links/providers/RemotePrimitiveProvider.ts +2 -2
- package/src/server/links/providers/ServerLinksProvider.ts +2 -2
- package/src/server/rate-limit/{primitives → __tests__}/$rateLimit.spec.ts +1 -1
- package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +2 -2
- package/src/server/swagger/providers/ServerSwaggerProvider.ts +2 -2
- package/src/sms/{providers → __tests__}/LocalSmsProvider.spec.ts +35 -29
- package/src/sms/providers/LocalSmsProvider.ts +13 -24
- package/src/system/{providers → __tests__}/MemoryFileSystemProvider.spec.ts +1 -1
- package/src/system/{providers → __tests__}/MemoryShellProvider.spec.ts +1 -1
- package/src/topic/redis/providers/RedisTopicProvider.ts +2 -2
- package/src/websocket/{services → __tests__}/RoomManager.spec.ts +1 -1
- package/src/websocket/providers/NodeWebSocketServerProvider.ts +2 -2
- package/tsconfig.base.json +1 -0
- package/src/cli/platform/adapters/DockerAdapter.spec.ts +0 -378
- package/src/cli/platform/adapters/DockerAdapter.ts +0 -417
- package/src/cli/platform/services/DockerComposeGenerator.spec.ts +0 -490
- package/src/cli/platform/services/DockerComposeGenerator.ts +0 -353
- package/src/cli/platform/services/DockerSshService.spec.ts +0 -47
- package/src/cli/platform/services/DockerSshService.ts +0 -61
- /package/src/api/audits/{primitives → __tests__}/$audit.spec.ts +0 -0
- /package/src/api/audits/{services → __tests__}/AuditService.spec.ts +0 -0
- /package/src/api/files/{controllers → __tests__}/AdminFileStatsController.spec.ts +0 -0
- /package/src/api/files/{controllers → __tests__}/FileController.spec.ts +0 -0
- /package/src/api/files/{jobs → __tests__}/FileJobs.spec.ts +0 -0
- /package/src/api/files/{services → __tests__}/FileService.spec.ts +0 -0
- /package/src/api/jobs/{primitives → __tests__}/$job-middleware.spec.ts +0 -0
- /package/src/api/parameters/{primitives → __tests__}/$parameter.spec.ts +0 -0
- /package/src/api/users/{primitives → __tests__}/$realm.spec.ts +0 -0
- /package/src/api/users/{controllers → __tests__}/AdminIdentityController.spec.ts +0 -0
- /package/src/api/users/{controllers → __tests__}/AdminSessionController.spec.ts +0 -0
- /package/src/api/users/{controllers → __tests__}/AdminUserController.spec.ts +0 -0
- /package/src/api/users/{services → __tests__}/CredentialService.spec.ts +0 -0
- /package/src/api/users/{providers → __tests__}/RealmProvider.spec.ts +0 -0
- /package/src/api/users/{services → __tests__}/RegistrationService.spec.ts +0 -0
- /package/src/batch/{primitives → __tests__}/$batch.spec.ts +0 -0
- /package/src/batch/{providers → __tests__}/BatchProvider.spec.ts +0 -0
- /package/src/bucket/{primitives → __tests__}/$bucket.spec.ts +0 -0
- /package/src/bucket/{providers → __tests__}/FileStorageProvider.spec.ts +0 -0
- /package/src/bucket/{providers → __tests__}/LocalFileStorageProvider.spec.ts +0 -0
- /package/src/bucket/{providers → __tests__}/MemoryFileStorageProvider.spec.ts +0 -0
- /package/src/cache/core/{primitives → __tests__}/$cache.spec.ts +0 -0
- /package/src/cache/redis/{providers → __tests__}/RedisCacheProvider.spec.ts +0 -0
- /package/src/command/{primitives → __tests__}/$command.spec.ts +0 -0
- /package/src/command/{helpers → __tests__}/Asker.spec.ts +0 -0
- /package/src/command/{helpers → __tests__}/Runner.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$context.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$env.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$hook.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$inject.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$module.spec.ts +0 -0
- /package/src/core/{providers → __tests__}/CodecManager.spec.ts +0 -0
- /package/src/core/{providers → __tests__}/EventManager.spec.ts +0 -0
- /package/src/core/{providers → __tests__}/StateManager.spec.ts +0 -0
- /package/src/core/{providers → __tests__}/TypeProvider.spec.ts +0 -0
- /package/src/datetime/{primitives → __tests__}/$interval.spec.ts +0 -0
- /package/src/datetime/{providers → __tests__}/DateTimeProvider.spec.ts +0 -0
- /package/src/email/core/{primitives → __tests__}/$email.spec.ts +0 -0
- /package/src/fake/{providers → __tests__}/FakeProvider.spec.ts +0 -0
- /package/src/lock/core/{providers → __tests__}/MemoryLockProvider.spec.ts +0 -0
- /package/src/lock/redis/{providers → __tests__}/RedisLockProvider.spec.ts +0 -0
- /package/src/logger/{primitives → __tests__}/$logger.spec.ts +0 -0
- /package/src/logger/{services → __tests__}/Logger.spec.ts +0 -0
- /package/src/mcp/{primitives → __tests__}/$prompt.spec.ts +0 -0
- /package/src/mcp/{primitives → __tests__}/$resource.spec.ts +0 -0
- /package/src/mcp/{primitives → __tests__}/$tool.spec.ts +0 -0
- /package/src/mcp/{providers → __tests__}/McpServerProvider.spec.ts +0 -0
- /package/src/mcp/{helpers → __tests__}/jsonrpc.spec.ts +0 -0
- /package/src/orm/core/{helpers → __tests__}/parseQueryString.spec.ts +0 -0
- /package/src/queue/core/{primitives → __tests__}/$consumer.spec.ts +0 -0
- /package/src/queue/core/{providers → __tests__}/MemoryQueueProvider.spec.ts +0 -0
- /package/src/queue/core/{providers → __tests__}/WorkerProvider.spec.ts +0 -0
- /package/src/queue/redis/{providers → __tests__}/RedisQueueProvider.spec.ts +0 -0
- /package/src/react/form/{hooks → __tests__}/useForm.browser.spec.tsx +0 -0
- /package/src/react/head/{hooks → __tests__}/useHead.spec.tsx +0 -0
- /package/src/react/i18n/{components → __tests__}/Localize.spec.tsx +0 -0
- /package/src/react/router/{primitives → __tests__}/$page.browser.spec.tsx +0 -0
- /package/src/react/router/{primitives → __tests__}/$page.middleware.spec.tsx +0 -0
- /package/src/react/router/{primitives → __tests__}/$page.spec.tsx +0 -0
- /package/src/react/router/{providers → __tests__}/ReactPreloadProvider.spec.ts +0 -0
- /package/src/react/router/{providers → __tests__}/ReactServerProvider.spec.tsx +0 -0
- /package/src/react/router/{providers → __tests__}/ReactServerTemplateProvider.spec.ts +0 -0
- /package/src/retry/{primitives → __tests__}/$retry.spec.ts +0 -0
- /package/src/retry/{providers → __tests__}/RetryProvider.spec.ts +0 -0
- /package/src/router/{providers → __tests__}/RouterProvider.spec.ts +0 -0
- /package/src/security/{primitives → __tests__}/$issuer.spec.ts +0 -0
- /package/src/security/{primitives → __tests__}/$permission.spec.ts +0 -0
- /package/src/security/{primitives → __tests__}/$role.spec.ts +0 -0
- /package/src/security/{primitives → __tests__}/$serviceAccount.spec.ts +0 -0
- /package/src/security/{providers → __tests__}/SecurityProvider.spec.ts +0 -0
- /package/src/server/cookies/{providers → __tests__}/ServerCookiesProvider.spec.ts +0 -0
- /package/src/server/core/{primitives → __tests__}/$action.spec.ts +0 -0
- /package/src/server/core/{primitives → __tests__}/$middleware.spec.ts +0 -0
- /package/src/server/core/{primitives → __tests__}/$route.spec.ts +0 -0
- /package/src/server/core/{primitives → __tests__}/$sse.spec.ts +0 -0
- /package/src/server/core/{providers → __tests__}/BunHttpServerProvider.bun.spec.ts +0 -0
- /package/src/server/core/{services → __tests__}/HttpClient.spec.ts +0 -0
- /package/src/server/core/{providers → __tests__}/ServerLoggerProvider.spec.ts +0 -0
- /package/src/server/core/{services → __tests__}/UserAgentParser.spec.ts +0 -0
- /package/src/server/cors/{providers → __tests__}/ServerCorsProvider.spec.ts +0 -0
- /package/src/server/etag/{providers → __tests__}/ServerEtagProvider.spec.ts +0 -0
- /package/src/server/health/{providers → __tests__}/ServerHealthProvider.spec.ts +0 -0
- /package/src/server/links/{primitives → __tests__}/$remote.spec.ts +0 -0
- /package/src/server/links/{services → __tests__}/BatchEndpoint.spec.ts +0 -0
- /package/src/server/links/{providers → __tests__}/LinkProvider.spec.ts +0 -0
- /package/src/server/links/{providers → __tests__}/ServerLinksProvider.spec.ts +0 -0
- /package/src/server/metrics/{providers → __tests__}/ServerMetricsProvider.spec.ts +0 -0
- /package/src/server/proxy/{primitives → __tests__}/$proxy.spec.ts +0 -0
- /package/src/server/rate-limit/{providers → __tests__}/ServerRateLimitProvider.spec.ts +0 -0
- /package/src/server/static/{primitives → __tests__}/$serve.spec.ts +0 -0
- /package/src/server/swagger/{primitives → __tests__}/$swagger.spec.ts +0 -0
- /package/src/sms/{primitives → __tests__}/$sms.spec.ts +0 -0
- /package/src/sms/{providers → __tests__}/MemorySmsProvider.spec.ts +0 -0
- /package/src/system/{services → __tests__}/FileDetector.spec.ts +0 -0
- /package/src/system/{providers → __tests__}/NodeFileSystemProvider.spec.ts +0 -0
- /package/src/topic/core/{primitives → __tests__}/$subscriber.spec.ts +0 -0
- /package/src/topic/core/{providers → __tests__}/MemoryTopicProvider.spec.ts +0 -0
- /package/src/topic/redis/{providers → __tests__}/RedisTopicProvider.spec.ts +0 -0
- /package/src/websocket/{primitives → __tests__}/$channel.spec.ts +0 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import * as alepha from "alepha";
|
|
1
|
+
import * as _$alepha from "alepha";
|
|
2
2
|
import { Alepha, AlephaError, Page, PageQuery, Primitive, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { AuditService, CreateAudit } from "alepha/api/audits";
|
|
4
|
+
import * as _$alepha_bucket0 from "alepha/bucket";
|
|
5
5
|
import { CryptoProvider, IssuerPrimitive, IssuerPrimitiveOptions, UserAccount } from "alepha/security";
|
|
6
|
-
import * as alepha_server0 from "alepha/server";
|
|
7
|
-
import * as alepha_orm0 from "alepha/orm";
|
|
6
|
+
import * as _$alepha_server0 from "alepha/server";
|
|
7
|
+
import * as _$alepha_orm0 from "alepha/orm";
|
|
8
8
|
import { Page as Page$1, Repository } from "alepha/orm";
|
|
9
|
-
import * as alepha_logger0 from "alepha/logger";
|
|
10
|
-
import
|
|
11
|
-
import * as
|
|
12
|
-
import * as alepha_api_notifications0 from "alepha/api/notifications";
|
|
9
|
+
import * as _$alepha_logger0 from "alepha/logger";
|
|
10
|
+
import * as _$alepha_server_links0 from "alepha/server/links";
|
|
11
|
+
import * as _$alepha_api_notifications0 from "alepha/api/notifications";
|
|
13
12
|
import { OAuth2Profile, ServerAuthProvider, WithLinkFn, WithLoginFn } from "alepha/server/auth";
|
|
13
|
+
import * as _$alepha_cache0 from "alepha/cache";
|
|
14
|
+
import { CacheProvider } from "alepha/cache";
|
|
14
15
|
import { DateTime, DateTimeProvider } from "alepha/datetime";
|
|
16
|
+
import * as _$alepha_api_jobs0 from "alepha/api/jobs";
|
|
15
17
|
import { FileSystemProvider } from "alepha/system";
|
|
16
|
-
import * as alepha_bucket0 from "alepha/bucket";
|
|
17
|
-
import * as alepha_api_jobs0 from "alepha/api/jobs";
|
|
18
18
|
import { ParameterPrimitive } from "alepha/api/parameters";
|
|
19
19
|
import { VerificationController } from "alepha/api/verifications";
|
|
20
|
-
import * as typebox from "typebox";
|
|
21
|
-
import * as drizzle_orm0 from "drizzle-orm";
|
|
20
|
+
import * as _$typebox from "typebox";
|
|
21
|
+
import * as _$drizzle_orm0 from "drizzle-orm";
|
|
22
22
|
import { BuildExtraConfigColumns, SQL, SQLWrapper } from "drizzle-orm";
|
|
23
|
-
import * as drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
23
|
+
import * as _$drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
24
24
|
import { LockConfig, LockStrength, PgColumn, PgColumnBuilderBase, PgDatabase, PgInsertValue, PgSelectBase, PgSequenceOptions, PgTableExtraConfigValue, PgTableWithColumns, PgTransaction, UpdateDeleteAction } from "drizzle-orm/pg-core";
|
|
25
25
|
import { PgTransactionConfig } from "drizzle-orm/pg-core/session";
|
|
26
26
|
import { LibSQLDatabase } from "drizzle-orm/libsql";
|
|
@@ -40,32 +40,32 @@ import { FileController } from "alepha/api/files";
|
|
|
40
40
|
* - `"required"`: Field is shown and required.
|
|
41
41
|
*/
|
|
42
42
|
type FieldRequirement = "none" | "optional" | "required";
|
|
43
|
-
declare const realmAuthSettingsAtom: alepha.Atom<alepha.TObject<{
|
|
44
|
-
displayName: alepha.TOptional<alepha.TString>;
|
|
45
|
-
description: alepha.TOptional<alepha.TString>;
|
|
46
|
-
logoUrl: alepha.TOptional<alepha.TString>;
|
|
47
|
-
registrationAllowed: alepha.TBoolean;
|
|
48
|
-
email: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
|
|
49
|
-
username: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
|
|
50
|
-
usernameRegExp: alepha.TString;
|
|
51
|
-
phoneNumber: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
|
|
52
|
-
verifyEmailRequired: alepha.TBoolean;
|
|
53
|
-
verifyPhoneRequired: alepha.TBoolean;
|
|
54
|
-
firstNameLastName: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
|
|
55
|
-
resetPasswordAllowed: alepha.TBoolean;
|
|
56
|
-
adminEmails: alepha.TArray<alepha.TString>;
|
|
57
|
-
adminUsernames: alepha.TArray<alepha.TString>;
|
|
58
|
-
passwordPolicy: alepha.TObject<{
|
|
59
|
-
minLength: alepha.TInteger;
|
|
60
|
-
requireUppercase: alepha.TBoolean;
|
|
61
|
-
requireLowercase: alepha.TBoolean;
|
|
62
|
-
requireNumbers: alepha.TBoolean;
|
|
63
|
-
requireSpecialCharacters: alepha.TBoolean;
|
|
43
|
+
declare const realmAuthSettingsAtom: _$alepha.Atom<_$alepha.TObject<{
|
|
44
|
+
displayName: _$alepha.TOptional<_$alepha.TString>;
|
|
45
|
+
description: _$alepha.TOptional<_$alepha.TString>;
|
|
46
|
+
logoUrl: _$alepha.TOptional<_$alepha.TString>;
|
|
47
|
+
registrationAllowed: _$alepha.TBoolean;
|
|
48
|
+
email: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
49
|
+
username: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
50
|
+
usernameRegExp: _$alepha.TString;
|
|
51
|
+
phoneNumber: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
52
|
+
verifyEmailRequired: _$alepha.TBoolean;
|
|
53
|
+
verifyPhoneRequired: _$alepha.TBoolean;
|
|
54
|
+
firstNameLastName: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
55
|
+
resetPasswordAllowed: _$alepha.TBoolean;
|
|
56
|
+
adminEmails: _$alepha.TArray<_$alepha.TString>;
|
|
57
|
+
adminUsernames: _$alepha.TArray<_$alepha.TString>;
|
|
58
|
+
passwordPolicy: _$alepha.TObject<{
|
|
59
|
+
minLength: _$alepha.TInteger;
|
|
60
|
+
requireUppercase: _$alepha.TBoolean;
|
|
61
|
+
requireLowercase: _$alepha.TBoolean;
|
|
62
|
+
requireNumbers: _$alepha.TBoolean;
|
|
63
|
+
requireSpecialCharacters: _$alepha.TBoolean;
|
|
64
64
|
}>;
|
|
65
|
-
loginRateLimit: alepha.TObject<{
|
|
66
|
-
ipMaxAttempts: alepha.TInteger;
|
|
67
|
-
accountMaxAttempts: alepha.TInteger;
|
|
68
|
-
windowMs: alepha.TInteger;
|
|
65
|
+
loginRateLimit: _$alepha.TObject<{
|
|
66
|
+
ipMaxAttempts: _$alepha.TInteger;
|
|
67
|
+
accountMaxAttempts: _$alepha.TInteger;
|
|
68
|
+
windowMs: _$alepha.TInteger;
|
|
69
69
|
}>;
|
|
70
70
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
71
71
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
@@ -150,6 +150,36 @@ interface EntityPrimitiveOptions<T extends TObject, Keys = keyof Static<T>> {
|
|
|
150
150
|
* Partial index condition. Only rows matching this SQL expression are indexed.
|
|
151
151
|
*/
|
|
152
152
|
where?: SQL;
|
|
153
|
+
} | {
|
|
154
|
+
/**
|
|
155
|
+
* SQL expressions for expression-based indexes.
|
|
156
|
+
*
|
|
157
|
+
* Can include column references and SQL functions like `LOWER()`, `UPPER()`, etc.
|
|
158
|
+
* Columns and expressions can be mixed together.
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* ```ts
|
|
162
|
+
* // Case-insensitive unique username per realm
|
|
163
|
+
* indexes: [{
|
|
164
|
+
* expressions: (self) => [self.realm, sql`LOWER(${self.username})`],
|
|
165
|
+
* unique: true,
|
|
166
|
+
* name: "users_realm_username_lower_idx",
|
|
167
|
+
* }]
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
expressions: (self: Record<Keys & string, any>) => (SQL | any)[];
|
|
171
|
+
/**
|
|
172
|
+
* Whether this should be a unique index (enforces uniqueness constraint).
|
|
173
|
+
*/
|
|
174
|
+
unique?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Custom name for the index. If not provided, generates name automatically.
|
|
177
|
+
*/
|
|
178
|
+
name: string;
|
|
179
|
+
/**
|
|
180
|
+
* Partial index condition. Only rows matching this SQL expression are indexed.
|
|
181
|
+
*/
|
|
182
|
+
where?: SQL;
|
|
153
183
|
})[];
|
|
154
184
|
/**
|
|
155
185
|
* Foreign key constraints to maintain referential integrity.
|
|
@@ -260,6 +290,7 @@ declare const PG_IDENTITY: unique symbol;
|
|
|
260
290
|
declare const PG_ENUM: unique symbol;
|
|
261
291
|
declare const PG_REF: unique symbol;
|
|
262
292
|
declare const PG_GENERATED: unique symbol;
|
|
293
|
+
declare const PG_ORGANIZATION: unique symbol;
|
|
263
294
|
/**
|
|
264
295
|
* @deprecated Use `PG_IDENTITY` instead.
|
|
265
296
|
*/
|
|
@@ -275,6 +306,7 @@ type PgSymbols = {
|
|
|
275
306
|
[PG_REF]: PgRefOptions;
|
|
276
307
|
[PG_ENUM]: PgEnumOptions;
|
|
277
308
|
[PG_GENERATED]: PgGeneratedOptions;
|
|
309
|
+
[PG_ORGANIZATION]: {};
|
|
278
310
|
/**
|
|
279
311
|
* @deprecated Use `PG_IDENTITY` instead.
|
|
280
312
|
*/
|
|
@@ -1091,7 +1123,7 @@ declare abstract class ModelBuilder {
|
|
|
1091
1123
|
protected buildTableConfig<TConfig, TSelf>(entity: EntityPrimitive, builders: TableConfigBuilders<TConfig>, tableResolver?: (entityName: string) => any, customConfigHandler?: (config: any, self: TSelf) => TConfig[]): ((self: TSelf) => TConfig[]) | undefined;
|
|
1092
1124
|
}
|
|
1093
1125
|
//#endregion
|
|
1094
|
-
//#region ../../../../node_modules/@electric-sql/pglite/dist/pglite-
|
|
1126
|
+
//#region ../../../../node_modules/@electric-sql/pglite/dist/pglite-BdaQNAoW.d.ts
|
|
1095
1127
|
type MessageName = 'parseComplete' | 'bindComplete' | 'closeComplete' | 'noData' | 'portalSuspended' | 'replicationStart' | 'emptyQuery' | 'copyDone' | 'copyData' | 'rowDescription' | 'parameterDescription' | 'parameterStatus' | 'backendKeyData' | 'notification' | 'readyForQuery' | 'commandComplete' | 'dataRow' | 'copyInResponse' | 'copyOutResponse' | 'authenticationOk' | 'authenticationMD5Password' | 'authenticationCleartextPassword' | 'authenticationSASL' | 'authenticationSASLContinue' | 'authenticationSASLFinal' | 'error' | 'notice';
|
|
1096
1128
|
type BackendMessage = {
|
|
1097
1129
|
name: MessageName;
|
|
@@ -1286,7 +1318,8 @@ interface PGliteOptions<TExtensions extends Extensions = Extensions> {
|
|
|
1286
1318
|
extensions?: TExtensions;
|
|
1287
1319
|
loadDataDir?: Blob | File;
|
|
1288
1320
|
initialMemory?: number;
|
|
1289
|
-
|
|
1321
|
+
pgliteWasmModule?: WebAssembly.Module;
|
|
1322
|
+
initdbWasmModule?: WebAssembly.Module;
|
|
1290
1323
|
fsBundle?: Blob | File;
|
|
1291
1324
|
parsers?: ParserOptions;
|
|
1292
1325
|
serializers?: SerializerOptions;
|
|
@@ -5955,7 +5988,7 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
|
5955
5988
|
//#endregion
|
|
5956
5989
|
//#region ../../src/orm/core/providers/DrizzleKitProvider.d.ts
|
|
5957
5990
|
declare class DrizzleKitProvider {
|
|
5958
|
-
protected readonly log: alepha_logger0.Logger;
|
|
5991
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
5959
5992
|
protected readonly dateTime: DateTimeProvider;
|
|
5960
5993
|
protected readonly alepha: Alepha;
|
|
5961
5994
|
/**
|
|
@@ -6058,7 +6091,7 @@ type SQLLike = SQLWrapper | string;
|
|
|
6058
6091
|
declare abstract class DatabaseProvider {
|
|
6059
6092
|
protected readonly alepha: Alepha;
|
|
6060
6093
|
protected readonly dateTime: DateTimeProvider;
|
|
6061
|
-
protected readonly log: alepha_logger0.Logger;
|
|
6094
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
6062
6095
|
protected abstract readonly builder: ModelBuilder;
|
|
6063
6096
|
protected readonly kit: DrizzleKitProvider;
|
|
6064
6097
|
abstract readonly db: PgDatabase<any>;
|
|
@@ -6216,7 +6249,7 @@ declare class QueryManager {
|
|
|
6216
6249
|
createPagination<T>(entities: T[], limit?: number, offset?: number, sort?: Array<{
|
|
6217
6250
|
column: string;
|
|
6218
6251
|
direction: "asc" | "desc";
|
|
6219
|
-
}>): alepha.Page<T>;
|
|
6252
|
+
}>): _$alepha.Page<T>;
|
|
6220
6253
|
}
|
|
6221
6254
|
interface PgJoin {
|
|
6222
6255
|
table: string;
|
|
@@ -6250,7 +6283,7 @@ declare class PgRelationManager {
|
|
|
6250
6283
|
declare abstract class Repository$1<T extends TObject> {
|
|
6251
6284
|
readonly entity: EntityPrimitive<T>;
|
|
6252
6285
|
readonly provider: DatabaseProvider;
|
|
6253
|
-
protected readonly log: alepha_logger0.Logger;
|
|
6286
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
6254
6287
|
protected readonly relationManager: PgRelationManager;
|
|
6255
6288
|
protected readonly queryManager: QueryManager;
|
|
6256
6289
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
@@ -6328,15 +6361,15 @@ declare abstract class Repository$1<T extends TObject> {
|
|
|
6328
6361
|
/**
|
|
6329
6362
|
* Start a SELECT query on the table.
|
|
6330
6363
|
*/
|
|
6331
|
-
protected rawSelect(opts?: StatementOptions): drizzle_orm_pg_core0.PgSelectBase<string, Record<string, PgColumn<drizzle_orm0.ColumnBaseConfig<drizzle_orm0.ColumnDataType, string>, {}, {}>>, "single", Record<string, "not-null">, false, never, {
|
|
6364
|
+
protected rawSelect(opts?: StatementOptions): _$drizzle_orm_pg_core0.PgSelectBase<string, Record<string, PgColumn<_$drizzle_orm0.ColumnBaseConfig<_$drizzle_orm0.ColumnDataType, string>, {}, {}>>, "single", Record<string, "not-null">, false, never, {
|
|
6332
6365
|
[x: string]: unknown;
|
|
6333
6366
|
}[], {
|
|
6334
|
-
[x: string]: PgColumn<drizzle_orm0.ColumnBaseConfig<drizzle_orm0.ColumnDataType, string>, {}, {}>;
|
|
6367
|
+
[x: string]: PgColumn<_$drizzle_orm0.ColumnBaseConfig<_$drizzle_orm0.ColumnDataType, string>, {}, {}>;
|
|
6335
6368
|
}>;
|
|
6336
6369
|
/**
|
|
6337
6370
|
* Start a SELECT DISTINCT query on the table.
|
|
6338
6371
|
*/
|
|
6339
|
-
protected rawSelectDistinct(opts?: StatementOptions, columns?: (keyof Static<T>)[]): drizzle_orm_pg_core0.PgSelectBase<string, Record<string, any>, "partial", Record<string, "not-null">, false, never, {
|
|
6372
|
+
protected rawSelectDistinct(opts?: StatementOptions, columns?: (keyof Static<T>)[]): _$drizzle_orm_pg_core0.PgSelectBase<string, Record<string, any>, "partial", Record<string, "not-null">, false, never, {
|
|
6340
6373
|
[x: string]: any;
|
|
6341
6374
|
}[], {
|
|
6342
6375
|
[x: string]: any;
|
|
@@ -6344,15 +6377,15 @@ declare abstract class Repository$1<T extends TObject> {
|
|
|
6344
6377
|
/**
|
|
6345
6378
|
* Start an INSERT query on the table.
|
|
6346
6379
|
*/
|
|
6347
|
-
protected rawInsert(opts?: StatementOptions): drizzle_orm_pg_core0.PgInsertBuilder<PgTableWithColumns<SchemaToTableConfig<T>>, any, false>;
|
|
6380
|
+
protected rawInsert(opts?: StatementOptions): _$drizzle_orm_pg_core0.PgInsertBuilder<PgTableWithColumns<SchemaToTableConfig<T>>, any, false>;
|
|
6348
6381
|
/**
|
|
6349
6382
|
* Start an UPDATE query on the table.
|
|
6350
6383
|
*/
|
|
6351
|
-
protected rawUpdate(opts?: StatementOptions): drizzle_orm_pg_core0.PgUpdateBuilder<PgTableWithColumns<SchemaToTableConfig<T>>, any>;
|
|
6384
|
+
protected rawUpdate(opts?: StatementOptions): _$drizzle_orm_pg_core0.PgUpdateBuilder<PgTableWithColumns<SchemaToTableConfig<T>>, any>;
|
|
6352
6385
|
/**
|
|
6353
6386
|
* Start a DELETE query on the table.
|
|
6354
6387
|
*/
|
|
6355
|
-
protected rawDelete(opts?: StatementOptions): drizzle_orm_pg_core0.PgDeleteBase<PgTableWithColumns<SchemaToTableConfig<T>>, any, undefined, undefined, false, never>;
|
|
6388
|
+
protected rawDelete(opts?: StatementOptions): _$drizzle_orm_pg_core0.PgDeleteBase<PgTableWithColumns<SchemaToTableConfig<T>>, any, undefined, undefined, false, never>;
|
|
6356
6389
|
/**
|
|
6357
6390
|
* Create a Drizzle `select` query based on a JSON query object.
|
|
6358
6391
|
*
|
|
@@ -6541,6 +6574,9 @@ declare abstract class Repository$1<T extends TObject> {
|
|
|
6541
6574
|
force?: boolean;
|
|
6542
6575
|
}): PgQueryWhereOrSQL<T>;
|
|
6543
6576
|
protected deletedAt(): PgAttrField | undefined;
|
|
6577
|
+
protected withOrganization(where: PgQueryWhereOrSQL<T>): PgQueryWhereOrSQL<T>;
|
|
6578
|
+
protected stampOrganization(data: any): void;
|
|
6579
|
+
protected organizationField(): PgAttrField | undefined;
|
|
6544
6580
|
/**
|
|
6545
6581
|
* Convert something to valid Pg Insert Value.
|
|
6546
6582
|
*/
|
|
@@ -6581,7 +6617,7 @@ declare abstract class Repository$1<T extends TObject> {
|
|
|
6581
6617
|
*/
|
|
6582
6618
|
protected getPrimaryKey(schema: TObject): {
|
|
6583
6619
|
key: string;
|
|
6584
|
-
col: PgColumn<drizzle_orm0.ColumnBaseConfig<drizzle_orm0.ColumnDataType, string>, {}, {}>;
|
|
6620
|
+
col: PgColumn<_$drizzle_orm0.ColumnBaseConfig<_$drizzle_orm0.ColumnDataType, string>, {}, {}>;
|
|
6585
6621
|
type: TSchema;
|
|
6586
6622
|
};
|
|
6587
6623
|
}
|
|
@@ -6650,8 +6686,8 @@ type WithSQL<T> = { [P in keyof T]?: T[P] | SQL };
|
|
|
6650
6686
|
* - `d1://BINDING_NAME` — Cloudflare D1
|
|
6651
6687
|
* - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
|
|
6652
6688
|
*/
|
|
6653
|
-
declare const databaseEnvSchema: alepha.TObject<{
|
|
6654
|
-
DATABASE_URL: alepha.TOptional<alepha.TString>;
|
|
6689
|
+
declare const databaseEnvSchema: _$alepha.TObject<{
|
|
6690
|
+
DATABASE_URL: _$alepha.TOptional<_$alepha.TString>;
|
|
6655
6691
|
/**
|
|
6656
6692
|
* Enable or disable push-based schema synchronization (drizzle-kit push).
|
|
6657
6693
|
*
|
|
@@ -6659,7 +6695,7 @@ declare const databaseEnvSchema: alepha.TObject<{
|
|
|
6659
6695
|
* Set to `false` in development to skip automatic schema sync
|
|
6660
6696
|
* (e.g. when managing migrations manually).
|
|
6661
6697
|
*/
|
|
6662
|
-
DATABASE_SYNC: alepha.TOptional<alepha.TBoolean>;
|
|
6698
|
+
DATABASE_SYNC: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
6663
6699
|
}>;
|
|
6664
6700
|
declare module "alepha" {
|
|
6665
6701
|
interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
|
|
@@ -6685,37 +6721,37 @@ declare class UserAudits {
|
|
|
6685
6721
|
userEmail?: string | undefined;
|
|
6686
6722
|
resourceType?: string | undefined;
|
|
6687
6723
|
resourceId?: string | undefined;
|
|
6688
|
-
metadata?: typebox.StaticRecord<[], "Decode", {}, {
|
|
6689
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6690
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6691
|
-
type: alepha.TString;
|
|
6692
|
-
action: alepha.TString;
|
|
6693
|
-
severity: PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
|
|
6694
|
-
userId: alepha.TOptional<alepha.TString>;
|
|
6695
|
-
userRealm: alepha.TOptional<alepha.TString>;
|
|
6696
|
-
userEmail: alepha.TOptional<alepha.TString>;
|
|
6697
|
-
resourceType: alepha.TOptional<alepha.TString>;
|
|
6698
|
-
resourceId: alepha.TOptional<alepha.TString>;
|
|
6699
|
-
description: alepha.TOptional<alepha.TString>;
|
|
6700
|
-
metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
|
|
6701
|
-
ipAddress: alepha.TOptional<alepha.TString>;
|
|
6702
|
-
userAgent: alepha.TOptional<alepha.TString>;
|
|
6703
|
-
sessionId: alepha.TOptional<alepha.TString>;
|
|
6704
|
-
requestId: alepha.TOptional<alepha.TString>;
|
|
6705
|
-
success: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
6706
|
-
errorMessage: alepha.TOptional<alepha.TString>;
|
|
6707
|
-
}, string, alepha.TAny> | undefined;
|
|
6724
|
+
metadata?: _$typebox.StaticRecord<[], "Decode", {}, {
|
|
6725
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6726
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6727
|
+
type: _$alepha.TString;
|
|
6728
|
+
action: _$alepha.TString;
|
|
6729
|
+
severity: PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
|
|
6730
|
+
userId: _$alepha.TOptional<_$alepha.TString>;
|
|
6731
|
+
userRealm: _$alepha.TOptional<_$alepha.TString>;
|
|
6732
|
+
userEmail: _$alepha.TOptional<_$alepha.TString>;
|
|
6733
|
+
resourceType: _$alepha.TOptional<_$alepha.TString>;
|
|
6734
|
+
resourceId: _$alepha.TOptional<_$alepha.TString>;
|
|
6735
|
+
description: _$alepha.TOptional<_$alepha.TString>;
|
|
6736
|
+
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
6737
|
+
ipAddress: _$alepha.TOptional<_$alepha.TString>;
|
|
6738
|
+
userAgent: _$alepha.TOptional<_$alepha.TString>;
|
|
6739
|
+
sessionId: _$alepha.TOptional<_$alepha.TString>;
|
|
6740
|
+
requestId: _$alepha.TOptional<_$alepha.TString>;
|
|
6741
|
+
success: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
6742
|
+
errorMessage: _$alepha.TOptional<_$alepha.TString>;
|
|
6743
|
+
}, string, _$alepha.TAny> | undefined;
|
|
6708
6744
|
ipAddress?: string | undefined;
|
|
6709
6745
|
userAgent?: string | undefined;
|
|
6710
6746
|
sessionId?: string | undefined;
|
|
6711
6747
|
requestId?: string | undefined;
|
|
6712
6748
|
errorMessage?: string | undefined;
|
|
6713
6749
|
type: string;
|
|
6750
|
+
id: string;
|
|
6751
|
+
createdAt: string;
|
|
6714
6752
|
action: string;
|
|
6715
6753
|
severity: "info" | "warning" | "critical";
|
|
6716
6754
|
success: boolean;
|
|
6717
|
-
id: string;
|
|
6718
|
-
createdAt: string;
|
|
6719
6755
|
}>;
|
|
6720
6756
|
/**
|
|
6721
6757
|
* Record an authentication-related audit event.
|
|
@@ -6727,37 +6763,37 @@ declare class UserAudits {
|
|
|
6727
6763
|
userEmail?: string | undefined;
|
|
6728
6764
|
resourceType?: string | undefined;
|
|
6729
6765
|
resourceId?: string | undefined;
|
|
6730
|
-
metadata?: typebox.StaticRecord<[], "Decode", {}, {
|
|
6731
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6732
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6733
|
-
type: alepha.TString;
|
|
6734
|
-
action: alepha.TString;
|
|
6735
|
-
severity: PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
|
|
6736
|
-
userId: alepha.TOptional<alepha.TString>;
|
|
6737
|
-
userRealm: alepha.TOptional<alepha.TString>;
|
|
6738
|
-
userEmail: alepha.TOptional<alepha.TString>;
|
|
6739
|
-
resourceType: alepha.TOptional<alepha.TString>;
|
|
6740
|
-
resourceId: alepha.TOptional<alepha.TString>;
|
|
6741
|
-
description: alepha.TOptional<alepha.TString>;
|
|
6742
|
-
metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
|
|
6743
|
-
ipAddress: alepha.TOptional<alepha.TString>;
|
|
6744
|
-
userAgent: alepha.TOptional<alepha.TString>;
|
|
6745
|
-
sessionId: alepha.TOptional<alepha.TString>;
|
|
6746
|
-
requestId: alepha.TOptional<alepha.TString>;
|
|
6747
|
-
success: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
6748
|
-
errorMessage: alepha.TOptional<alepha.TString>;
|
|
6749
|
-
}, string, alepha.TAny> | undefined;
|
|
6766
|
+
metadata?: _$typebox.StaticRecord<[], "Decode", {}, {
|
|
6767
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6768
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6769
|
+
type: _$alepha.TString;
|
|
6770
|
+
action: _$alepha.TString;
|
|
6771
|
+
severity: PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
|
|
6772
|
+
userId: _$alepha.TOptional<_$alepha.TString>;
|
|
6773
|
+
userRealm: _$alepha.TOptional<_$alepha.TString>;
|
|
6774
|
+
userEmail: _$alepha.TOptional<_$alepha.TString>;
|
|
6775
|
+
resourceType: _$alepha.TOptional<_$alepha.TString>;
|
|
6776
|
+
resourceId: _$alepha.TOptional<_$alepha.TString>;
|
|
6777
|
+
description: _$alepha.TOptional<_$alepha.TString>;
|
|
6778
|
+
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
6779
|
+
ipAddress: _$alepha.TOptional<_$alepha.TString>;
|
|
6780
|
+
userAgent: _$alepha.TOptional<_$alepha.TString>;
|
|
6781
|
+
sessionId: _$alepha.TOptional<_$alepha.TString>;
|
|
6782
|
+
requestId: _$alepha.TOptional<_$alepha.TString>;
|
|
6783
|
+
success: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
6784
|
+
errorMessage: _$alepha.TOptional<_$alepha.TString>;
|
|
6785
|
+
}, string, _$alepha.TAny> | undefined;
|
|
6750
6786
|
ipAddress?: string | undefined;
|
|
6751
6787
|
userAgent?: string | undefined;
|
|
6752
6788
|
sessionId?: string | undefined;
|
|
6753
6789
|
requestId?: string | undefined;
|
|
6754
6790
|
errorMessage?: string | undefined;
|
|
6755
6791
|
type: string;
|
|
6792
|
+
id: string;
|
|
6793
|
+
createdAt: string;
|
|
6756
6794
|
action: string;
|
|
6757
6795
|
severity: "info" | "warning" | "critical";
|
|
6758
6796
|
success: boolean;
|
|
6759
|
-
id: string;
|
|
6760
|
-
createdAt: string;
|
|
6761
6797
|
}>;
|
|
6762
6798
|
/**
|
|
6763
6799
|
* Record a generic audit event.
|
|
@@ -6769,37 +6805,37 @@ declare class UserAudits {
|
|
|
6769
6805
|
userEmail?: string | undefined;
|
|
6770
6806
|
resourceType?: string | undefined;
|
|
6771
6807
|
resourceId?: string | undefined;
|
|
6772
|
-
metadata?: typebox.StaticRecord<[], "Decode", {}, {
|
|
6773
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6774
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6775
|
-
type: alepha.TString;
|
|
6776
|
-
action: alepha.TString;
|
|
6777
|
-
severity: PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
|
|
6778
|
-
userId: alepha.TOptional<alepha.TString>;
|
|
6779
|
-
userRealm: alepha.TOptional<alepha.TString>;
|
|
6780
|
-
userEmail: alepha.TOptional<alepha.TString>;
|
|
6781
|
-
resourceType: alepha.TOptional<alepha.TString>;
|
|
6782
|
-
resourceId: alepha.TOptional<alepha.TString>;
|
|
6783
|
-
description: alepha.TOptional<alepha.TString>;
|
|
6784
|
-
metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
|
|
6785
|
-
ipAddress: alepha.TOptional<alepha.TString>;
|
|
6786
|
-
userAgent: alepha.TOptional<alepha.TString>;
|
|
6787
|
-
sessionId: alepha.TOptional<alepha.TString>;
|
|
6788
|
-
requestId: alepha.TOptional<alepha.TString>;
|
|
6789
|
-
success: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
6790
|
-
errorMessage: alepha.TOptional<alepha.TString>;
|
|
6791
|
-
}, string, alepha.TAny> | undefined;
|
|
6808
|
+
metadata?: _$typebox.StaticRecord<[], "Decode", {}, {
|
|
6809
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6810
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6811
|
+
type: _$alepha.TString;
|
|
6812
|
+
action: _$alepha.TString;
|
|
6813
|
+
severity: PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
|
|
6814
|
+
userId: _$alepha.TOptional<_$alepha.TString>;
|
|
6815
|
+
userRealm: _$alepha.TOptional<_$alepha.TString>;
|
|
6816
|
+
userEmail: _$alepha.TOptional<_$alepha.TString>;
|
|
6817
|
+
resourceType: _$alepha.TOptional<_$alepha.TString>;
|
|
6818
|
+
resourceId: _$alepha.TOptional<_$alepha.TString>;
|
|
6819
|
+
description: _$alepha.TOptional<_$alepha.TString>;
|
|
6820
|
+
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
6821
|
+
ipAddress: _$alepha.TOptional<_$alepha.TString>;
|
|
6822
|
+
userAgent: _$alepha.TOptional<_$alepha.TString>;
|
|
6823
|
+
sessionId: _$alepha.TOptional<_$alepha.TString>;
|
|
6824
|
+
requestId: _$alepha.TOptional<_$alepha.TString>;
|
|
6825
|
+
success: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
6826
|
+
errorMessage: _$alepha.TOptional<_$alepha.TString>;
|
|
6827
|
+
}, string, _$alepha.TAny> | undefined;
|
|
6792
6828
|
ipAddress?: string | undefined;
|
|
6793
6829
|
userAgent?: string | undefined;
|
|
6794
6830
|
sessionId?: string | undefined;
|
|
6795
6831
|
requestId?: string | undefined;
|
|
6796
6832
|
errorMessage?: string | undefined;
|
|
6797
6833
|
type: string;
|
|
6834
|
+
id: string;
|
|
6835
|
+
createdAt: string;
|
|
6798
6836
|
action: string;
|
|
6799
6837
|
severity: "info" | "warning" | "critical";
|
|
6800
6838
|
success: boolean;
|
|
6801
|
-
id: string;
|
|
6802
|
-
createdAt: string;
|
|
6803
6839
|
}>;
|
|
6804
6840
|
}
|
|
6805
6841
|
//#endregion
|
|
@@ -6816,58 +6852,59 @@ declare class UserBuckets {
|
|
|
6816
6852
|
/**
|
|
6817
6853
|
* Bucket for user avatar storage.
|
|
6818
6854
|
*/
|
|
6819
|
-
readonly avatars: alepha_bucket0.BucketPrimitive;
|
|
6855
|
+
readonly avatars: _$alepha_bucket0.BucketPrimitive;
|
|
6820
6856
|
}
|
|
6821
6857
|
//#endregion
|
|
6822
6858
|
//#region ../../src/api/users/entities/identities.d.ts
|
|
6823
|
-
declare const identities: alepha_orm0.EntityPrimitive<alepha.TObject<{
|
|
6824
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6825
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6826
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6827
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6828
|
-
userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
|
|
6829
|
-
password: alepha.TOptional<alepha.TString>;
|
|
6830
|
-
provider: alepha.TString;
|
|
6831
|
-
providerUserId: alepha.TOptional<alepha.TString>;
|
|
6832
|
-
providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
|
|
6859
|
+
declare const identities: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
|
|
6860
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6861
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6862
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6863
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6864
|
+
userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
|
|
6865
|
+
password: _$alepha.TOptional<_$alepha.TString>;
|
|
6866
|
+
provider: _$alepha.TString;
|
|
6867
|
+
providerUserId: _$alepha.TOptional<_$alepha.TString>;
|
|
6868
|
+
providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
6833
6869
|
}>>;
|
|
6834
6870
|
type IdentityEntity = Static<typeof identities.schema>;
|
|
6835
6871
|
//#endregion
|
|
6836
6872
|
//#region ../../src/api/users/entities/sessions.d.ts
|
|
6837
|
-
declare const sessions: alepha_orm0.EntityPrimitive<alepha.TObject<{
|
|
6838
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6839
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6840
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6841
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6842
|
-
refreshToken: alepha.TString;
|
|
6843
|
-
userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
|
|
6844
|
-
expiresAt: alepha.TString;
|
|
6845
|
-
ip: alepha.TOptional<alepha.TString>;
|
|
6846
|
-
userAgent: alepha.TOptional<alepha.TObject<{
|
|
6847
|
-
os: alepha.TString;
|
|
6848
|
-
browser: alepha.TString;
|
|
6849
|
-
device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
6873
|
+
declare const sessions: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
|
|
6874
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6875
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6876
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6877
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6878
|
+
refreshToken: _$alepha.TString;
|
|
6879
|
+
userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
|
|
6880
|
+
expiresAt: _$alepha.TString;
|
|
6881
|
+
ip: _$alepha.TOptional<_$alepha.TString>;
|
|
6882
|
+
userAgent: _$alepha.TOptional<_$alepha.TObject<{
|
|
6883
|
+
os: _$alepha.TString;
|
|
6884
|
+
browser: _$alepha.TString;
|
|
6885
|
+
device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
6850
6886
|
}>>;
|
|
6851
6887
|
}>>;
|
|
6852
6888
|
type SessionEntity = Static<typeof sessions.schema>;
|
|
6853
6889
|
//#endregion
|
|
6854
6890
|
//#region ../../src/api/users/entities/users.d.ts
|
|
6855
6891
|
declare const DEFAULT_USER_REALM_NAME = "default";
|
|
6856
|
-
declare const users: alepha_orm0.EntityPrimitive<alepha.TObject<{
|
|
6857
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6858
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6859
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6860
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6861
|
-
realm: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_DEFAULT>;
|
|
6862
|
-
username: alepha.TOptional<alepha.TString>;
|
|
6863
|
-
email: alepha.TOptional<alepha.TString>;
|
|
6864
|
-
phoneNumber: alepha.TOptional<alepha.TString>;
|
|
6865
|
-
roles: alepha_orm0.PgAttr<alepha.TArray<alepha.TString>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6866
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
6867
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
6868
|
-
picture: alepha.TOptional<alepha.TString>;
|
|
6869
|
-
enabled: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
|
|
6870
|
-
emailVerified: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
|
|
6892
|
+
declare const users: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
|
|
6893
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6894
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6895
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6896
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6897
|
+
realm: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6898
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
6899
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
6900
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
6901
|
+
roles: _$alepha_orm0.PgAttr<_$alepha.TArray<_$alepha.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6902
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
6903
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
6904
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
6905
|
+
enabled: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6906
|
+
emailVerified: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6907
|
+
organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
|
|
6871
6908
|
}>>;
|
|
6872
6909
|
type UserEntity = Static<typeof users.schema>;
|
|
6873
6910
|
//#endregion
|
|
@@ -6889,11 +6926,13 @@ type RealmPrimitive = IssuerPrimitive & WithLinkFn & WithLoginFn;
|
|
|
6889
6926
|
declare const $realm: (options?: RealmOptions) => RealmPrimitive;
|
|
6890
6927
|
interface RealmFeatures {
|
|
6891
6928
|
/**
|
|
6892
|
-
*
|
|
6929
|
+
* Will enable Job module.
|
|
6930
|
+
*
|
|
6931
|
+
* - Enable session purge functionality for cleaning up expired sessions.
|
|
6893
6932
|
*
|
|
6894
6933
|
* @default false
|
|
6895
6934
|
*/
|
|
6896
|
-
|
|
6935
|
+
jobs?: boolean;
|
|
6897
6936
|
/**
|
|
6898
6937
|
* Enable notification system for password reset, verification emails, etc.
|
|
6899
6938
|
*
|
|
@@ -6988,47 +7027,48 @@ interface Realm {
|
|
|
6988
7027
|
}
|
|
6989
7028
|
declare class RealmProvider {
|
|
6990
7029
|
protected readonly alepha: Alepha;
|
|
6991
|
-
protected readonly defaultIdentities: Repository<alepha.TObject<{
|
|
6992
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6993
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6994
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6995
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
6996
|
-
userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
|
|
6997
|
-
password: alepha.TOptional<alepha.TString>;
|
|
6998
|
-
provider: alepha.TString;
|
|
6999
|
-
providerUserId: alepha.TOptional<alepha.TString>;
|
|
7000
|
-
providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
|
|
7030
|
+
protected readonly defaultIdentities: Repository<_$alepha.TObject<{
|
|
7031
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7032
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7033
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7034
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7035
|
+
userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
|
|
7036
|
+
password: _$alepha.TOptional<_$alepha.TString>;
|
|
7037
|
+
provider: _$alepha.TString;
|
|
7038
|
+
providerUserId: _$alepha.TOptional<_$alepha.TString>;
|
|
7039
|
+
providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
7001
7040
|
}>>;
|
|
7002
|
-
protected readonly defaultSessions: Repository<alepha.TObject<{
|
|
7003
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7004
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7005
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7006
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7007
|
-
refreshToken: alepha.TString;
|
|
7008
|
-
userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
|
|
7009
|
-
expiresAt: alepha.TString;
|
|
7010
|
-
ip: alepha.TOptional<alepha.TString>;
|
|
7011
|
-
userAgent: alepha.TOptional<alepha.TObject<{
|
|
7012
|
-
os: alepha.TString;
|
|
7013
|
-
browser: alepha.TString;
|
|
7014
|
-
device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7041
|
+
protected readonly defaultSessions: Repository<_$alepha.TObject<{
|
|
7042
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7043
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7044
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7045
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7046
|
+
refreshToken: _$alepha.TString;
|
|
7047
|
+
userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
|
|
7048
|
+
expiresAt: _$alepha.TString;
|
|
7049
|
+
ip: _$alepha.TOptional<_$alepha.TString>;
|
|
7050
|
+
userAgent: _$alepha.TOptional<_$alepha.TObject<{
|
|
7051
|
+
os: _$alepha.TString;
|
|
7052
|
+
browser: _$alepha.TString;
|
|
7053
|
+
device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7015
7054
|
}>>;
|
|
7016
7055
|
}>>;
|
|
7017
|
-
protected readonly defaultUsers: Repository<alepha.TObject<{
|
|
7018
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7019
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7020
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7021
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7022
|
-
realm: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_DEFAULT>;
|
|
7023
|
-
username: alepha.TOptional<alepha.TString>;
|
|
7024
|
-
email: alepha.TOptional<alepha.TString>;
|
|
7025
|
-
phoneNumber: alepha.TOptional<alepha.TString>;
|
|
7026
|
-
roles: alepha_orm0.PgAttr<alepha.TArray<alepha.TString>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7027
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
7028
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
7029
|
-
picture: alepha.TOptional<alepha.TString>;
|
|
7030
|
-
enabled: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
|
|
7031
|
-
emailVerified: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
|
|
7056
|
+
protected readonly defaultUsers: Repository<_$alepha.TObject<{
|
|
7057
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7058
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7059
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7060
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7061
|
+
realm: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7062
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
7063
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
7064
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
7065
|
+
roles: _$alepha_orm0.PgAttr<_$alepha.TArray<_$alepha.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7066
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
7067
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
7068
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
7069
|
+
enabled: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7070
|
+
emailVerified: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7071
|
+
organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
|
|
7032
7072
|
}>>;
|
|
7033
7073
|
protected realms: Map<string, Realm>;
|
|
7034
7074
|
register(realmName: string, realmOptions?: RealmOptions): Realm;
|
|
@@ -7042,31 +7082,31 @@ declare class RealmProvider {
|
|
|
7042
7082
|
}
|
|
7043
7083
|
//#endregion
|
|
7044
7084
|
//#region ../../src/api/users/schemas/identityQuerySchema.d.ts
|
|
7045
|
-
declare const identityQuerySchema: alepha.TObject<{
|
|
7046
|
-
page: alepha.TOptional<alepha.TInteger>;
|
|
7047
|
-
size: alepha.TOptional<alepha.TInteger>;
|
|
7048
|
-
sort: alepha.TOptional<alepha.TString>;
|
|
7049
|
-
userId: alepha.TOptional<alepha.TString>;
|
|
7050
|
-
provider: alepha.TOptional<alepha.TString>;
|
|
7085
|
+
declare const identityQuerySchema: _$alepha.TObject<{
|
|
7086
|
+
page: _$alepha.TOptional<_$alepha.TInteger>;
|
|
7087
|
+
size: _$alepha.TOptional<_$alepha.TInteger>;
|
|
7088
|
+
sort: _$alepha.TOptional<_$alepha.TString>;
|
|
7089
|
+
userId: _$alepha.TOptional<_$alepha.TString>;
|
|
7090
|
+
provider: _$alepha.TOptional<_$alepha.TString>;
|
|
7051
7091
|
}>;
|
|
7052
7092
|
type IdentityQuery = Static<typeof identityQuerySchema>;
|
|
7053
7093
|
//#endregion
|
|
7054
7094
|
//#region ../../src/api/users/services/IdentityService.d.ts
|
|
7055
7095
|
declare class IdentityService {
|
|
7056
7096
|
protected readonly alepha: Alepha;
|
|
7057
|
-
protected readonly log: alepha_logger0.Logger;
|
|
7097
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
7058
7098
|
protected readonly realmProvider: RealmProvider;
|
|
7059
7099
|
protected userAudits(realmName?: string): UserAudits | undefined;
|
|
7060
|
-
identities(userRealmName?: string): alepha_orm0.Repository<alepha.TObject<{
|
|
7061
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7062
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7063
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7064
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7065
|
-
userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
|
|
7066
|
-
password: alepha.TOptional<alepha.TString>;
|
|
7067
|
-
provider: alepha.TString;
|
|
7068
|
-
providerUserId: alepha.TOptional<alepha.TString>;
|
|
7069
|
-
providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
|
|
7100
|
+
identities(userRealmName?: string): _$alepha_orm0.Repository<_$alepha.TObject<{
|
|
7101
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7102
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7103
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7104
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7105
|
+
userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
|
|
7106
|
+
password: _$alepha.TOptional<_$alepha.TString>;
|
|
7107
|
+
provider: _$alepha.TString;
|
|
7108
|
+
providerUserId: _$alepha.TOptional<_$alepha.TString>;
|
|
7109
|
+
providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
7070
7110
|
}>>;
|
|
7071
7111
|
/**
|
|
7072
7112
|
* Find identities with pagination and filtering.
|
|
@@ -7090,91 +7130,91 @@ declare class AdminIdentityController {
|
|
|
7090
7130
|
/**
|
|
7091
7131
|
* Find identities with pagination and filtering.
|
|
7092
7132
|
*/
|
|
7093
|
-
readonly findIdentities: alepha_server0.ActionPrimitiveFn<{
|
|
7094
|
-
query: alepha.TObject<{
|
|
7095
|
-
page: alepha.TOptional<alepha.TInteger>;
|
|
7096
|
-
size: alepha.TOptional<alepha.TInteger>;
|
|
7097
|
-
sort: alepha.TOptional<alepha.TString>;
|
|
7098
|
-
userId: alepha.TOptional<alepha.TString>;
|
|
7099
|
-
provider: alepha.TOptional<alepha.TString>;
|
|
7100
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
7101
|
-
}>;
|
|
7102
|
-
response: alepha.TPage<alepha.TObject<{
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
providerUserId: alepha.TOptional<alepha.TString>;
|
|
7110
|
-
providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
|
|
7133
|
+
readonly findIdentities: _$alepha_server0.ActionPrimitiveFn<{
|
|
7134
|
+
query: _$alepha.TObject<{
|
|
7135
|
+
page: _$alepha.TOptional<_$alepha.TInteger>;
|
|
7136
|
+
size: _$alepha.TOptional<_$alepha.TInteger>;
|
|
7137
|
+
sort: _$alepha.TOptional<_$alepha.TString>;
|
|
7138
|
+
userId: _$alepha.TOptional<_$alepha.TString>;
|
|
7139
|
+
provider: _$alepha.TOptional<_$alepha.TString>;
|
|
7140
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7141
|
+
}>;
|
|
7142
|
+
response: _$alepha.TPage<_$alepha.TObject<{
|
|
7143
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7144
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7145
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7146
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7147
|
+
userId: PgAttr<_$alepha.TString, typeof PG_REF>;
|
|
7148
|
+
provider: _$alepha.TString;
|
|
7149
|
+
providerUserId: _$alepha.TOptional<_$alepha.TString>;
|
|
7150
|
+
providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
7111
7151
|
}>>;
|
|
7112
7152
|
}>;
|
|
7113
7153
|
/**
|
|
7114
7154
|
* Get an identity by ID.
|
|
7115
7155
|
*/
|
|
7116
|
-
readonly getIdentity: alepha_server0.ActionPrimitiveFn<{
|
|
7117
|
-
params: alepha.TObject<{
|
|
7118
|
-
id: alepha.TString;
|
|
7156
|
+
readonly getIdentity: _$alepha_server0.ActionPrimitiveFn<{
|
|
7157
|
+
params: _$alepha.TObject<{
|
|
7158
|
+
id: _$alepha.TString;
|
|
7119
7159
|
}>;
|
|
7120
|
-
query: alepha.TObject<{
|
|
7121
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
7160
|
+
query: _$alepha.TObject<{
|
|
7161
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7122
7162
|
}>;
|
|
7123
|
-
response: alepha.TObject<{
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
providerUserId: alepha.TOptional<alepha.TString>;
|
|
7131
|
-
providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
|
|
7163
|
+
response: _$alepha.TObject<{
|
|
7164
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7165
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7166
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7167
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7168
|
+
userId: PgAttr<_$alepha.TString, typeof PG_REF>;
|
|
7169
|
+
provider: _$alepha.TString;
|
|
7170
|
+
providerUserId: _$alepha.TOptional<_$alepha.TString>;
|
|
7171
|
+
providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
7132
7172
|
}>;
|
|
7133
7173
|
}>;
|
|
7134
7174
|
/**
|
|
7135
7175
|
* Delete an identity.
|
|
7136
7176
|
*/
|
|
7137
|
-
readonly deleteIdentity: alepha_server0.ActionPrimitiveFn<{
|
|
7138
|
-
params: alepha.TObject<{
|
|
7139
|
-
id: alepha.TString;
|
|
7177
|
+
readonly deleteIdentity: _$alepha_server0.ActionPrimitiveFn<{
|
|
7178
|
+
params: _$alepha.TObject<{
|
|
7179
|
+
id: _$alepha.TString;
|
|
7140
7180
|
}>;
|
|
7141
|
-
query: alepha.TObject<{
|
|
7142
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
7181
|
+
query: _$alepha.TObject<{
|
|
7182
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7143
7183
|
}>;
|
|
7144
|
-
response: alepha.TObject<{
|
|
7145
|
-
ok: alepha.TBoolean;
|
|
7146
|
-
id: alepha.TOptional<alepha.TUnion<[alepha.TString, alepha.TInteger]>>;
|
|
7147
|
-
count: alepha.TOptional<alepha.TNumber>;
|
|
7184
|
+
response: _$alepha.TObject<{
|
|
7185
|
+
ok: _$alepha.TBoolean;
|
|
7186
|
+
id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
|
|
7187
|
+
count: _$alepha.TOptional<_$alepha.TNumber>;
|
|
7148
7188
|
}>;
|
|
7149
7189
|
}>;
|
|
7150
7190
|
}
|
|
7151
7191
|
//#endregion
|
|
7152
7192
|
//#region ../../src/api/users/schemas/sessionQuerySchema.d.ts
|
|
7153
|
-
declare const sessionQuerySchema: alepha.TObject<{
|
|
7154
|
-
page: alepha.TOptional<alepha.TInteger>;
|
|
7155
|
-
size: alepha.TOptional<alepha.TInteger>;
|
|
7156
|
-
sort: alepha.TOptional<alepha.TString>;
|
|
7157
|
-
userId: alepha.TOptional<alepha.TString>;
|
|
7193
|
+
declare const sessionQuerySchema: _$alepha.TObject<{
|
|
7194
|
+
page: _$alepha.TOptional<_$alepha.TInteger>;
|
|
7195
|
+
size: _$alepha.TOptional<_$alepha.TInteger>;
|
|
7196
|
+
sort: _$alepha.TOptional<_$alepha.TString>;
|
|
7197
|
+
userId: _$alepha.TOptional<_$alepha.TString>;
|
|
7158
7198
|
}>;
|
|
7159
7199
|
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
7160
7200
|
//#endregion
|
|
7161
7201
|
//#region ../../src/api/users/services/SessionCrudService.d.ts
|
|
7162
7202
|
declare class SessionCrudService {
|
|
7163
|
-
protected readonly log: alepha_logger0.Logger;
|
|
7203
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
7164
7204
|
protected readonly realmProvider: RealmProvider;
|
|
7165
|
-
sessions(userRealmName?: string): alepha_orm0.Repository<alepha.TObject<{
|
|
7166
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7167
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7168
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7169
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7170
|
-
refreshToken: alepha.TString;
|
|
7171
|
-
userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
|
|
7172
|
-
expiresAt: alepha.TString;
|
|
7173
|
-
ip: alepha.TOptional<alepha.TString>;
|
|
7174
|
-
userAgent: alepha.TOptional<alepha.TObject<{
|
|
7175
|
-
os: alepha.TString;
|
|
7176
|
-
browser: alepha.TString;
|
|
7177
|
-
device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7205
|
+
sessions(userRealmName?: string): _$alepha_orm0.Repository<_$alepha.TObject<{
|
|
7206
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7207
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7208
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7209
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7210
|
+
refreshToken: _$alepha.TString;
|
|
7211
|
+
userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
|
|
7212
|
+
expiresAt: _$alepha.TString;
|
|
7213
|
+
ip: _$alepha.TOptional<_$alepha.TString>;
|
|
7214
|
+
userAgent: _$alepha.TOptional<_$alepha.TObject<{
|
|
7215
|
+
os: _$alepha.TString;
|
|
7216
|
+
browser: _$alepha.TString;
|
|
7217
|
+
device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7178
7218
|
}>>;
|
|
7179
7219
|
}>>;
|
|
7180
7220
|
/**
|
|
@@ -7199,170 +7239,173 @@ declare class AdminSessionController {
|
|
|
7199
7239
|
/**
|
|
7200
7240
|
* Find sessions with pagination and filtering.
|
|
7201
7241
|
*/
|
|
7202
|
-
readonly findSessions: alepha_server0.ActionPrimitiveFn<{
|
|
7203
|
-
query: alepha.TObject<{
|
|
7204
|
-
page: alepha.TOptional<alepha.TInteger>;
|
|
7205
|
-
size: alepha.TOptional<alepha.TInteger>;
|
|
7206
|
-
sort: alepha.TOptional<alepha.TString>;
|
|
7207
|
-
userId: alepha.TOptional<alepha.TString>;
|
|
7208
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
7209
|
-
}>;
|
|
7210
|
-
response: alepha.TPage<alepha.TObject<{
|
|
7211
|
-
id: alepha.TString;
|
|
7212
|
-
version: alepha.TNumber;
|
|
7213
|
-
createdAt: alepha.TString;
|
|
7214
|
-
updatedAt: alepha.TString;
|
|
7215
|
-
refreshToken: alepha.TString;
|
|
7216
|
-
userId: alepha.TString;
|
|
7217
|
-
expiresAt: alepha.TString;
|
|
7218
|
-
ip: alepha.TOptional<alepha.TString>;
|
|
7219
|
-
userAgent: alepha.TOptional<alepha.TObject<{
|
|
7220
|
-
os: alepha.TString;
|
|
7221
|
-
browser: alepha.TString;
|
|
7222
|
-
device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7242
|
+
readonly findSessions: _$alepha_server0.ActionPrimitiveFn<{
|
|
7243
|
+
query: _$alepha.TObject<{
|
|
7244
|
+
page: _$alepha.TOptional<_$alepha.TInteger>;
|
|
7245
|
+
size: _$alepha.TOptional<_$alepha.TInteger>;
|
|
7246
|
+
sort: _$alepha.TOptional<_$alepha.TString>;
|
|
7247
|
+
userId: _$alepha.TOptional<_$alepha.TString>;
|
|
7248
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7249
|
+
}>;
|
|
7250
|
+
response: _$alepha.TPage<_$alepha.TObject<{
|
|
7251
|
+
id: _$alepha.TString;
|
|
7252
|
+
version: _$alepha.TNumber;
|
|
7253
|
+
createdAt: _$alepha.TString;
|
|
7254
|
+
updatedAt: _$alepha.TString;
|
|
7255
|
+
refreshToken: _$alepha.TString;
|
|
7256
|
+
userId: _$alepha.TString;
|
|
7257
|
+
expiresAt: _$alepha.TString;
|
|
7258
|
+
ip: _$alepha.TOptional<_$alepha.TString>;
|
|
7259
|
+
userAgent: _$alepha.TOptional<_$alepha.TObject<{
|
|
7260
|
+
os: _$alepha.TString;
|
|
7261
|
+
browser: _$alepha.TString;
|
|
7262
|
+
device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7223
7263
|
}>>;
|
|
7224
7264
|
}>>;
|
|
7225
7265
|
}>;
|
|
7226
7266
|
/**
|
|
7227
7267
|
* Get a session by ID.
|
|
7228
7268
|
*/
|
|
7229
|
-
readonly getSession: alepha_server0.ActionPrimitiveFn<{
|
|
7230
|
-
params: alepha.TObject<{
|
|
7231
|
-
id: alepha.TString;
|
|
7232
|
-
}>;
|
|
7233
|
-
query: alepha.TObject<{
|
|
7234
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
7235
|
-
}>;
|
|
7236
|
-
response: alepha.TObject<{
|
|
7237
|
-
id: alepha.TString;
|
|
7238
|
-
version: alepha.TNumber;
|
|
7239
|
-
createdAt: alepha.TString;
|
|
7240
|
-
updatedAt: alepha.TString;
|
|
7241
|
-
refreshToken: alepha.TString;
|
|
7242
|
-
userId: alepha.TString;
|
|
7243
|
-
expiresAt: alepha.TString;
|
|
7244
|
-
ip: alepha.TOptional<alepha.TString>;
|
|
7245
|
-
userAgent: alepha.TOptional<alepha.TObject<{
|
|
7246
|
-
os: alepha.TString;
|
|
7247
|
-
browser: alepha.TString;
|
|
7248
|
-
device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7269
|
+
readonly getSession: _$alepha_server0.ActionPrimitiveFn<{
|
|
7270
|
+
params: _$alepha.TObject<{
|
|
7271
|
+
id: _$alepha.TString;
|
|
7272
|
+
}>;
|
|
7273
|
+
query: _$alepha.TObject<{
|
|
7274
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7275
|
+
}>;
|
|
7276
|
+
response: _$alepha.TObject<{
|
|
7277
|
+
id: _$alepha.TString;
|
|
7278
|
+
version: _$alepha.TNumber;
|
|
7279
|
+
createdAt: _$alepha.TString;
|
|
7280
|
+
updatedAt: _$alepha.TString;
|
|
7281
|
+
refreshToken: _$alepha.TString;
|
|
7282
|
+
userId: _$alepha.TString;
|
|
7283
|
+
expiresAt: _$alepha.TString;
|
|
7284
|
+
ip: _$alepha.TOptional<_$alepha.TString>;
|
|
7285
|
+
userAgent: _$alepha.TOptional<_$alepha.TObject<{
|
|
7286
|
+
os: _$alepha.TString;
|
|
7287
|
+
browser: _$alepha.TString;
|
|
7288
|
+
device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7249
7289
|
}>>;
|
|
7250
7290
|
}>;
|
|
7251
7291
|
}>;
|
|
7252
7292
|
/**
|
|
7253
7293
|
* Delete a session.
|
|
7254
7294
|
*/
|
|
7255
|
-
readonly deleteSession: alepha_server0.ActionPrimitiveFn<{
|
|
7256
|
-
params: alepha.TObject<{
|
|
7257
|
-
id: alepha.TString;
|
|
7295
|
+
readonly deleteSession: _$alepha_server0.ActionPrimitiveFn<{
|
|
7296
|
+
params: _$alepha.TObject<{
|
|
7297
|
+
id: _$alepha.TString;
|
|
7258
7298
|
}>;
|
|
7259
|
-
query: alepha.TObject<{
|
|
7260
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
7299
|
+
query: _$alepha.TObject<{
|
|
7300
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7261
7301
|
}>;
|
|
7262
|
-
response: alepha.TObject<{
|
|
7263
|
-
ok: alepha.TBoolean;
|
|
7264
|
-
id: alepha.TOptional<alepha.TUnion<[alepha.TString, alepha.TInteger]>>;
|
|
7265
|
-
count: alepha.TOptional<alepha.TNumber>;
|
|
7302
|
+
response: _$alepha.TObject<{
|
|
7303
|
+
ok: _$alepha.TBoolean;
|
|
7304
|
+
id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
|
|
7305
|
+
count: _$alepha.TOptional<_$alepha.TNumber>;
|
|
7266
7306
|
}>;
|
|
7267
7307
|
}>;
|
|
7268
7308
|
}
|
|
7269
7309
|
//#endregion
|
|
7270
7310
|
//#region ../../src/api/users/notifications/UserNotifications.d.ts
|
|
7271
7311
|
declare class UserNotifications {
|
|
7272
|
-
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha.TObject<{
|
|
7273
|
-
email: alepha.TString;
|
|
7274
|
-
code: alepha.TString;
|
|
7275
|
-
expiresInMinutes: alepha.TNumber;
|
|
7312
|
+
readonly passwordReset: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
|
|
7313
|
+
email: _$alepha.TString;
|
|
7314
|
+
code: _$alepha.TString;
|
|
7315
|
+
expiresInMinutes: _$alepha.TNumber;
|
|
7276
7316
|
}>>;
|
|
7277
|
-
readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha.TObject<{
|
|
7278
|
-
email: alepha.TString;
|
|
7279
|
-
code: alepha.TString;
|
|
7280
|
-
expiresInMinutes: alepha.TNumber;
|
|
7317
|
+
readonly emailVerification: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
|
|
7318
|
+
email: _$alepha.TString;
|
|
7319
|
+
code: _$alepha.TString;
|
|
7320
|
+
expiresInMinutes: _$alepha.TNumber;
|
|
7281
7321
|
}>>;
|
|
7282
|
-
readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha.TObject<{
|
|
7283
|
-
phoneNumber: alepha.TString;
|
|
7284
|
-
code: alepha.TString;
|
|
7285
|
-
expiresInMinutes: alepha.TNumber;
|
|
7322
|
+
readonly phoneVerification: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
|
|
7323
|
+
phoneNumber: _$alepha.TString;
|
|
7324
|
+
code: _$alepha.TString;
|
|
7325
|
+
expiresInMinutes: _$alepha.TNumber;
|
|
7286
7326
|
}>>;
|
|
7287
|
-
readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha.TObject<{
|
|
7288
|
-
email: alepha.TString;
|
|
7289
|
-
resetUrl: alepha.TString;
|
|
7290
|
-
expiresInMinutes: alepha.TNumber;
|
|
7327
|
+
readonly passwordResetLink: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
|
|
7328
|
+
email: _$alepha.TString;
|
|
7329
|
+
resetUrl: _$alepha.TString;
|
|
7330
|
+
expiresInMinutes: _$alepha.TNumber;
|
|
7291
7331
|
}>>;
|
|
7292
|
-
readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha.TObject<{
|
|
7293
|
-
email: alepha.TString;
|
|
7294
|
-
verifyUrl: alepha.TString;
|
|
7295
|
-
expiresInMinutes: alepha.TNumber;
|
|
7332
|
+
readonly emailVerificationLink: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
|
|
7333
|
+
email: _$alepha.TString;
|
|
7334
|
+
verifyUrl: _$alepha.TString;
|
|
7335
|
+
expiresInMinutes: _$alepha.TNumber;
|
|
7296
7336
|
}>>;
|
|
7297
7337
|
}
|
|
7298
7338
|
//#endregion
|
|
7299
7339
|
//#region ../../src/api/users/schemas/createUserSchema.d.ts
|
|
7300
|
-
declare const createUserSchema: alepha.TObject<{
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
phoneNumber: alepha.TOptional<alepha.TOptional<alepha.TString>>;
|
|
7304
|
-
id: alepha.TOptional<PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
updatedAt: alepha.TOptional<PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
emailVerified: alepha.TOptional<PgAttr<alepha.TBoolean, typeof PG_DEFAULT>>;
|
|
7340
|
+
declare const createUserSchema: _$alepha.TObject<{
|
|
7341
|
+
enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
|
|
7342
|
+
email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7343
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7344
|
+
id: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
7345
|
+
version: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
7346
|
+
createdAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
7347
|
+
updatedAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
7348
|
+
username: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7349
|
+
roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
7350
|
+
firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7351
|
+
lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7352
|
+
picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7353
|
+
emailVerified: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
|
|
7354
|
+
organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
|
|
7314
7355
|
}>;
|
|
7315
7356
|
type CreateUser = Static<typeof createUserSchema>;
|
|
7316
7357
|
//#endregion
|
|
7317
7358
|
//#region ../../src/api/users/schemas/updateUserSchema.d.ts
|
|
7318
|
-
declare const updateUserSchema: alepha.TObject<{
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7359
|
+
declare const updateUserSchema: _$alepha.TObject<{
|
|
7360
|
+
enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
|
|
7361
|
+
email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7362
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7363
|
+
realm: _$alepha.TOptional<PgAttr<_$alepha.TString, typeof PG_DEFAULT>>;
|
|
7364
|
+
roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
7365
|
+
firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7366
|
+
lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7367
|
+
picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7368
|
+
organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
|
|
7327
7369
|
}>;
|
|
7328
7370
|
type UpdateUser = Static<typeof updateUserSchema>;
|
|
7329
7371
|
//#endregion
|
|
7330
7372
|
//#region ../../src/api/users/schemas/userQuerySchema.d.ts
|
|
7331
|
-
declare const userQuerySchema: alepha.TObject<{
|
|
7332
|
-
page: alepha.TOptional<alepha.TInteger>;
|
|
7333
|
-
size: alepha.TOptional<alepha.TInteger>;
|
|
7334
|
-
sort: alepha.TOptional<alepha.TString>;
|
|
7335
|
-
email: alepha.TOptional<alepha.TString>;
|
|
7336
|
-
enabled: alepha.TOptional<alepha.TBoolean>;
|
|
7337
|
-
emailVerified: alepha.TOptional<alepha.TBoolean>;
|
|
7338
|
-
roles: alepha.TOptional<alepha.TArray<alepha.TString>>;
|
|
7339
|
-
query: alepha.TOptional<alepha.TString>;
|
|
7373
|
+
declare const userQuerySchema: _$alepha.TObject<{
|
|
7374
|
+
page: _$alepha.TOptional<_$alepha.TInteger>;
|
|
7375
|
+
size: _$alepha.TOptional<_$alepha.TInteger>;
|
|
7376
|
+
sort: _$alepha.TOptional<_$alepha.TString>;
|
|
7377
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
7378
|
+
enabled: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
7379
|
+
emailVerified: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
7380
|
+
roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
7381
|
+
query: _$alepha.TOptional<_$alepha.TString>;
|
|
7340
7382
|
}>;
|
|
7341
7383
|
type UserQuery = Static<typeof userQuerySchema>;
|
|
7342
7384
|
//#endregion
|
|
7343
7385
|
//#region ../../src/api/users/services/UserService.d.ts
|
|
7344
7386
|
declare class UserService {
|
|
7345
7387
|
protected readonly alepha: Alepha;
|
|
7346
|
-
protected readonly log: alepha_logger0.Logger;
|
|
7347
|
-
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
7388
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
7389
|
+
protected readonly verificationController: _$alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
7348
7390
|
protected readonly realmProvider: RealmProvider;
|
|
7349
7391
|
protected userAudits(realmName?: string): UserAudits | undefined;
|
|
7350
7392
|
protected userNotifications(realmName?: string): UserNotifications | undefined;
|
|
7351
|
-
users(userRealmName?: string): alepha_orm0.Repository<alepha.TObject<{
|
|
7352
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7353
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7354
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7355
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7356
|
-
realm: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_DEFAULT>;
|
|
7357
|
-
username: alepha.TOptional<alepha.TString>;
|
|
7358
|
-
email: alepha.TOptional<alepha.TString>;
|
|
7359
|
-
phoneNumber: alepha.TOptional<alepha.TString>;
|
|
7360
|
-
roles: alepha_orm0.PgAttr<alepha.TArray<alepha.TString>, typeof alepha_orm0.PG_DEFAULT>;
|
|
7361
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
7362
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
7363
|
-
picture: alepha.TOptional<alepha.TString>;
|
|
7364
|
-
enabled: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
|
|
7365
|
-
emailVerified: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
|
|
7393
|
+
users(userRealmName?: string): _$alepha_orm0.Repository<_$alepha.TObject<{
|
|
7394
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7395
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7396
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7397
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7398
|
+
realm: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7399
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
7400
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
7401
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
7402
|
+
roles: _$alepha_orm0.PgAttr<_$alepha.TArray<_$alepha.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7403
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
7404
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
7405
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
7406
|
+
enabled: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7407
|
+
emailVerified: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7408
|
+
organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
|
|
7366
7409
|
}>>;
|
|
7367
7410
|
/**
|
|
7368
7411
|
* Request email verification for a user.
|
|
@@ -7411,152 +7454,158 @@ declare class AdminUserController {
|
|
|
7411
7454
|
/**
|
|
7412
7455
|
* Find users with pagination and filtering.
|
|
7413
7456
|
*/
|
|
7414
|
-
readonly findUsers: alepha_server0.ActionPrimitiveFn<{
|
|
7415
|
-
query: alepha.TObject<{
|
|
7416
|
-
page: alepha.TOptional<alepha.TInteger>;
|
|
7417
|
-
size: alepha.TOptional<alepha.TInteger>;
|
|
7418
|
-
sort: alepha.TOptional<alepha.TString>;
|
|
7419
|
-
email: alepha.TOptional<alepha.TString>;
|
|
7420
|
-
enabled: alepha.TOptional<alepha.TBoolean>;
|
|
7421
|
-
emailVerified: alepha.TOptional<alepha.TBoolean>;
|
|
7422
|
-
roles: alepha.TOptional<alepha.TArray<alepha.TString>>;
|
|
7423
|
-
query: alepha.TOptional<alepha.TString>;
|
|
7424
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
7425
|
-
}>;
|
|
7426
|
-
response: alepha.TPage<alepha.TObject<{
|
|
7427
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7428
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7429
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7430
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7431
|
-
realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
|
|
7432
|
-
username: alepha.TOptional<alepha.TString>;
|
|
7433
|
-
email: alepha.TOptional<alepha.TString>;
|
|
7434
|
-
phoneNumber: alepha.TOptional<alepha.TString>;
|
|
7435
|
-
roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
|
|
7436
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
7437
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
7438
|
-
picture: alepha.TOptional<alepha.TString>;
|
|
7439
|
-
enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7440
|
-
emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7457
|
+
readonly findUsers: _$alepha_server0.ActionPrimitiveFn<{
|
|
7458
|
+
query: _$alepha.TObject<{
|
|
7459
|
+
page: _$alepha.TOptional<_$alepha.TInteger>;
|
|
7460
|
+
size: _$alepha.TOptional<_$alepha.TInteger>;
|
|
7461
|
+
sort: _$alepha.TOptional<_$alepha.TString>;
|
|
7462
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
7463
|
+
enabled: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
7464
|
+
emailVerified: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
7465
|
+
roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
7466
|
+
query: _$alepha.TOptional<_$alepha.TString>;
|
|
7467
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7468
|
+
}>;
|
|
7469
|
+
response: _$alepha.TPage<_$alepha.TObject<{
|
|
7470
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7471
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7472
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7473
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7474
|
+
realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
|
|
7475
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
7476
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
7477
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
7478
|
+
roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
|
|
7479
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
7480
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
7481
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
7482
|
+
enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7483
|
+
emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7484
|
+
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
7441
7485
|
}>>;
|
|
7442
7486
|
}>;
|
|
7443
7487
|
/**
|
|
7444
7488
|
* Get a user by ID.
|
|
7445
7489
|
*/
|
|
7446
|
-
readonly getUser: alepha_server0.ActionPrimitiveFn<{
|
|
7447
|
-
params: alepha.TObject<{
|
|
7448
|
-
id: alepha.TString;
|
|
7449
|
-
}>;
|
|
7450
|
-
query: alepha.TObject<{
|
|
7451
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
7452
|
-
}>;
|
|
7453
|
-
response: alepha.TObject<{
|
|
7454
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7455
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7456
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7457
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7458
|
-
realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
|
|
7459
|
-
username: alepha.TOptional<alepha.TString>;
|
|
7460
|
-
email: alepha.TOptional<alepha.TString>;
|
|
7461
|
-
phoneNumber: alepha.TOptional<alepha.TString>;
|
|
7462
|
-
roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
|
|
7463
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
7464
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
7465
|
-
picture: alepha.TOptional<alepha.TString>;
|
|
7466
|
-
enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7467
|
-
emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7490
|
+
readonly getUser: _$alepha_server0.ActionPrimitiveFn<{
|
|
7491
|
+
params: _$alepha.TObject<{
|
|
7492
|
+
id: _$alepha.TString;
|
|
7493
|
+
}>;
|
|
7494
|
+
query: _$alepha.TObject<{
|
|
7495
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7496
|
+
}>;
|
|
7497
|
+
response: _$alepha.TObject<{
|
|
7498
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7499
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7500
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7501
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7502
|
+
realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
|
|
7503
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
7504
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
7505
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
7506
|
+
roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
|
|
7507
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
7508
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
7509
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
7510
|
+
enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7511
|
+
emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7512
|
+
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
7468
7513
|
}>;
|
|
7469
7514
|
}>;
|
|
7470
7515
|
/**
|
|
7471
7516
|
* Create a new user.
|
|
7472
7517
|
*/
|
|
7473
|
-
readonly createUser: alepha_server0.ActionPrimitiveFn<{
|
|
7474
|
-
query: alepha.TObject<{
|
|
7475
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
7476
|
-
}>;
|
|
7477
|
-
body: alepha.TObject<{
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
phoneNumber: alepha.TOptional<alepha.TOptional<alepha.TString>>;
|
|
7481
|
-
id: alepha.TOptional<PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
updatedAt: alepha.TOptional<PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
emailVerified: alepha.TOptional<PgAttr<alepha.TBoolean, typeof PG_DEFAULT>>;
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7518
|
+
readonly createUser: _$alepha_server0.ActionPrimitiveFn<{
|
|
7519
|
+
query: _$alepha.TObject<{
|
|
7520
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7521
|
+
}>;
|
|
7522
|
+
body: _$alepha.TObject<{
|
|
7523
|
+
enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
|
|
7524
|
+
email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7525
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7526
|
+
id: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
7527
|
+
version: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
7528
|
+
createdAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
7529
|
+
updatedAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
7530
|
+
username: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7531
|
+
roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
7532
|
+
firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7533
|
+
lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7534
|
+
picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7535
|
+
emailVerified: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
|
|
7536
|
+
organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
|
|
7537
|
+
}>;
|
|
7538
|
+
response: _$alepha.TObject<{
|
|
7539
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7540
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7541
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7542
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7543
|
+
realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
|
|
7544
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
7545
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
7546
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
7547
|
+
roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
|
|
7548
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
7549
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
7550
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
7551
|
+
enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7552
|
+
emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7553
|
+
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
7507
7554
|
}>;
|
|
7508
7555
|
}>;
|
|
7509
7556
|
/**
|
|
7510
7557
|
* Update a user.
|
|
7511
7558
|
*/
|
|
7512
|
-
readonly updateUser: alepha_server0.ActionPrimitiveFn<{
|
|
7513
|
-
params: alepha.TObject<{
|
|
7514
|
-
id: alepha.TString;
|
|
7515
|
-
}>;
|
|
7516
|
-
query: alepha.TObject<{
|
|
7517
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
7518
|
-
}>;
|
|
7519
|
-
body: alepha.TObject<{
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7559
|
+
readonly updateUser: _$alepha_server0.ActionPrimitiveFn<{
|
|
7560
|
+
params: _$alepha.TObject<{
|
|
7561
|
+
id: _$alepha.TString;
|
|
7562
|
+
}>;
|
|
7563
|
+
query: _$alepha.TObject<{
|
|
7564
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7565
|
+
}>;
|
|
7566
|
+
body: _$alepha.TObject<{
|
|
7567
|
+
enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
|
|
7568
|
+
email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7569
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7570
|
+
realm: _$alepha.TOptional<PgAttr<_$alepha.TString, typeof PG_DEFAULT>>;
|
|
7571
|
+
roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
7572
|
+
firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7573
|
+
lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7574
|
+
picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
|
|
7575
|
+
organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
|
|
7576
|
+
}>;
|
|
7577
|
+
response: _$alepha.TObject<{
|
|
7578
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7579
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7580
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7581
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7582
|
+
realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
|
|
7583
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
7584
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
7585
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
7586
|
+
roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
|
|
7587
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
7588
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
7589
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
7590
|
+
enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7591
|
+
emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7592
|
+
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
7544
7593
|
}>;
|
|
7545
7594
|
}>;
|
|
7546
7595
|
/**
|
|
7547
7596
|
* Delete a user.
|
|
7548
7597
|
*/
|
|
7549
|
-
readonly deleteUser: alepha_server0.ActionPrimitiveFn<{
|
|
7550
|
-
params: alepha.TObject<{
|
|
7551
|
-
id: alepha.TString;
|
|
7598
|
+
readonly deleteUser: _$alepha_server0.ActionPrimitiveFn<{
|
|
7599
|
+
params: _$alepha.TObject<{
|
|
7600
|
+
id: _$alepha.TString;
|
|
7552
7601
|
}>;
|
|
7553
|
-
query: alepha.TObject<{
|
|
7554
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
7602
|
+
query: _$alepha.TObject<{
|
|
7603
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7555
7604
|
}>;
|
|
7556
|
-
response: alepha.TObject<{
|
|
7557
|
-
ok: alepha.TBoolean;
|
|
7558
|
-
id: alepha.TOptional<alepha.TUnion<[alepha.TString, alepha.TInteger]>>;
|
|
7559
|
-
count: alepha.TOptional<alepha.TNumber>;
|
|
7605
|
+
response: _$alepha.TObject<{
|
|
7606
|
+
ok: _$alepha.TBoolean;
|
|
7607
|
+
id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
|
|
7608
|
+
count: _$alepha.TOptional<_$alepha.TNumber>;
|
|
7560
7609
|
}>;
|
|
7561
7610
|
}>;
|
|
7562
7611
|
}
|
|
@@ -7575,55 +7624,55 @@ declare class RealmController {
|
|
|
7575
7624
|
* Get realm configuration settings.
|
|
7576
7625
|
* This endpoint is not exposed in the API documentation.
|
|
7577
7626
|
*/
|
|
7578
|
-
readonly getRealmConfig: alepha_server0.ActionPrimitiveFn<{
|
|
7579
|
-
query: alepha.TObject<{
|
|
7580
|
-
realmName: alepha.TOptional<alepha.TString>;
|
|
7581
|
-
}>;
|
|
7582
|
-
response: alepha.TObject<{
|
|
7583
|
-
settings: alepha.TObject<{
|
|
7584
|
-
displayName: alepha.TOptional<alepha.TString>;
|
|
7585
|
-
description: alepha.TOptional<alepha.TString>;
|
|
7586
|
-
logoUrl: alepha.TOptional<alepha.TString>;
|
|
7587
|
-
registrationAllowed: alepha.TBoolean;
|
|
7588
|
-
email: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
|
|
7589
|
-
username: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
|
|
7590
|
-
usernameRegExp: alepha.TString;
|
|
7591
|
-
phoneNumber: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
|
|
7592
|
-
verifyEmailRequired: alepha.TBoolean;
|
|
7593
|
-
verifyPhoneRequired: alepha.TBoolean;
|
|
7594
|
-
firstNameLastName: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
|
|
7595
|
-
resetPasswordAllowed: alepha.TBoolean;
|
|
7596
|
-
adminEmails: alepha.TArray<alepha.TString>;
|
|
7597
|
-
adminUsernames: alepha.TArray<alepha.TString>;
|
|
7598
|
-
passwordPolicy: alepha.TObject<{
|
|
7599
|
-
minLength: alepha.TInteger;
|
|
7600
|
-
requireUppercase: alepha.TBoolean;
|
|
7601
|
-
requireLowercase: alepha.TBoolean;
|
|
7602
|
-
requireNumbers: alepha.TBoolean;
|
|
7603
|
-
requireSpecialCharacters: alepha.TBoolean;
|
|
7627
|
+
readonly getRealmConfig: _$alepha_server0.ActionPrimitiveFn<{
|
|
7628
|
+
query: _$alepha.TObject<{
|
|
7629
|
+
realmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7630
|
+
}>;
|
|
7631
|
+
response: _$alepha.TObject<{
|
|
7632
|
+
settings: _$alepha.TObject<{
|
|
7633
|
+
displayName: _$alepha.TOptional<_$alepha.TString>;
|
|
7634
|
+
description: _$alepha.TOptional<_$alepha.TString>;
|
|
7635
|
+
logoUrl: _$alepha.TOptional<_$alepha.TString>;
|
|
7636
|
+
registrationAllowed: _$alepha.TBoolean;
|
|
7637
|
+
email: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
7638
|
+
username: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
7639
|
+
usernameRegExp: _$alepha.TString;
|
|
7640
|
+
phoneNumber: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
7641
|
+
verifyEmailRequired: _$alepha.TBoolean;
|
|
7642
|
+
verifyPhoneRequired: _$alepha.TBoolean;
|
|
7643
|
+
firstNameLastName: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
7644
|
+
resetPasswordAllowed: _$alepha.TBoolean;
|
|
7645
|
+
adminEmails: _$alepha.TArray<_$alepha.TString>;
|
|
7646
|
+
adminUsernames: _$alepha.TArray<_$alepha.TString>;
|
|
7647
|
+
passwordPolicy: _$alepha.TObject<{
|
|
7648
|
+
minLength: _$alepha.TInteger;
|
|
7649
|
+
requireUppercase: _$alepha.TBoolean;
|
|
7650
|
+
requireLowercase: _$alepha.TBoolean;
|
|
7651
|
+
requireNumbers: _$alepha.TBoolean;
|
|
7652
|
+
requireSpecialCharacters: _$alepha.TBoolean;
|
|
7604
7653
|
}>;
|
|
7605
|
-
loginRateLimit: alepha.TObject<{
|
|
7606
|
-
ipMaxAttempts: alepha.TInteger;
|
|
7607
|
-
accountMaxAttempts: alepha.TInteger;
|
|
7608
|
-
windowMs: alepha.TInteger;
|
|
7654
|
+
loginRateLimit: _$alepha.TObject<{
|
|
7655
|
+
ipMaxAttempts: _$alepha.TInteger;
|
|
7656
|
+
accountMaxAttempts: _$alepha.TInteger;
|
|
7657
|
+
windowMs: _$alepha.TInteger;
|
|
7609
7658
|
}>;
|
|
7610
7659
|
}>;
|
|
7611
|
-
realmName: alepha.TString;
|
|
7612
|
-
authenticationMethods: alepha.TArray<alepha.TObject<{
|
|
7613
|
-
name: alepha.TString;
|
|
7614
|
-
type: alepha.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
7660
|
+
realmName: _$alepha.TString;
|
|
7661
|
+
authenticationMethods: _$alepha.TArray<_$alepha.TObject<{
|
|
7662
|
+
name: _$alepha.TString;
|
|
7663
|
+
type: _$alepha.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
7615
7664
|
}>>;
|
|
7616
7665
|
}>;
|
|
7617
7666
|
}>;
|
|
7618
|
-
readonly checkUsernameAvailability: alepha_server0.ActionPrimitiveFn<{
|
|
7619
|
-
query: alepha.TObject<{
|
|
7620
|
-
realmName: alepha.TOptional<alepha.TString>;
|
|
7667
|
+
readonly checkUsernameAvailability: _$alepha_server0.ActionPrimitiveFn<{
|
|
7668
|
+
query: _$alepha.TObject<{
|
|
7669
|
+
realmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7621
7670
|
}>;
|
|
7622
|
-
body: alepha.TObject<{
|
|
7623
|
-
username: alepha.TString;
|
|
7671
|
+
body: _$alepha.TObject<{
|
|
7672
|
+
username: _$alepha.TString;
|
|
7624
7673
|
}>;
|
|
7625
|
-
response: alepha.TObject<{
|
|
7626
|
-
available: alepha.TBoolean;
|
|
7674
|
+
response: _$alepha.TObject<{
|
|
7675
|
+
available: _$alepha.TBoolean;
|
|
7627
7676
|
}>;
|
|
7628
7677
|
}>;
|
|
7629
7678
|
}
|
|
@@ -7635,10 +7684,10 @@ declare class RealmController {
|
|
|
7635
7684
|
* Requires the intent ID from Phase 1, the verification code,
|
|
7636
7685
|
* and the new password.
|
|
7637
7686
|
*/
|
|
7638
|
-
declare const completePasswordResetRequestSchema: alepha.TObject<{
|
|
7639
|
-
intentId: alepha.TString;
|
|
7640
|
-
code: alepha.TString;
|
|
7641
|
-
newPassword: alepha.TString;
|
|
7687
|
+
declare const completePasswordResetRequestSchema: _$alepha.TObject<{
|
|
7688
|
+
intentId: _$alepha.TString;
|
|
7689
|
+
code: _$alepha.TString;
|
|
7690
|
+
newPassword: _$alepha.TString;
|
|
7642
7691
|
}>;
|
|
7643
7692
|
type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
|
|
7644
7693
|
//#endregion
|
|
@@ -7649,9 +7698,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
|
|
|
7649
7698
|
* Contains the intent ID needed for Phase 2 completion,
|
|
7650
7699
|
* along with expiration time.
|
|
7651
7700
|
*/
|
|
7652
|
-
declare const passwordResetIntentResponseSchema: alepha.TObject<{
|
|
7653
|
-
intentId: alepha.TString;
|
|
7654
|
-
expiresAt: alepha.TString;
|
|
7701
|
+
declare const passwordResetIntentResponseSchema: _$alepha.TObject<{
|
|
7702
|
+
intentId: _$alepha.TString;
|
|
7703
|
+
expiresAt: _$alepha.TString;
|
|
7655
7704
|
}>;
|
|
7656
7705
|
type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
|
|
7657
7706
|
//#endregion
|
|
@@ -7668,55 +7717,56 @@ interface PasswordResetIntent {
|
|
|
7668
7717
|
}
|
|
7669
7718
|
declare class CredentialService {
|
|
7670
7719
|
protected readonly alepha: Alepha;
|
|
7671
|
-
protected readonly log: alepha_logger0.Logger;
|
|
7720
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
7672
7721
|
protected readonly cryptoProvider: CryptoProvider;
|
|
7673
7722
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
7674
|
-
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
7723
|
+
protected readonly verificationController: _$alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
7675
7724
|
protected readonly realmProvider: RealmProvider;
|
|
7676
7725
|
protected userAudits(realmName?: string): UserAudits | undefined;
|
|
7677
7726
|
protected userNotifications(realmName?: string): UserNotifications | undefined;
|
|
7678
|
-
protected readonly intentCache: alepha_cache0.CacheMiddlewareFn<PasswordResetIntent>;
|
|
7679
|
-
users(userRealmName?: string): Repository$1<alepha.TObject<{
|
|
7680
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7681
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7682
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7683
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7684
|
-
realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
|
|
7685
|
-
username: alepha.TOptional<alepha.TString>;
|
|
7686
|
-
email: alepha.TOptional<alepha.TString>;
|
|
7687
|
-
phoneNumber: alepha.TOptional<alepha.TString>;
|
|
7688
|
-
roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
|
|
7689
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
7690
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
7691
|
-
picture: alepha.TOptional<alepha.TString>;
|
|
7692
|
-
enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7693
|
-
emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7727
|
+
protected readonly intentCache: _$alepha_cache0.CacheMiddlewareFn<PasswordResetIntent>;
|
|
7728
|
+
users(userRealmName?: string): Repository$1<_$alepha.TObject<{
|
|
7729
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7730
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7731
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7732
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7733
|
+
realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
|
|
7734
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
7735
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
7736
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
7737
|
+
roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
|
|
7738
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
7739
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
7740
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
7741
|
+
enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7742
|
+
emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7743
|
+
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
7694
7744
|
}>>;
|
|
7695
|
-
sessions(userRealmName?: string): Repository$1<alepha.TObject<{
|
|
7696
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7697
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7698
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7699
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7700
|
-
refreshToken: alepha.TString;
|
|
7701
|
-
userId: PgAttr<alepha.TString, typeof PG_REF>;
|
|
7702
|
-
expiresAt: alepha.TString;
|
|
7703
|
-
ip: alepha.TOptional<alepha.TString>;
|
|
7704
|
-
userAgent: alepha.TOptional<alepha.TObject<{
|
|
7705
|
-
os: alepha.TString;
|
|
7706
|
-
browser: alepha.TString;
|
|
7707
|
-
device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7745
|
+
sessions(userRealmName?: string): Repository$1<_$alepha.TObject<{
|
|
7746
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7747
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7748
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7749
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7750
|
+
refreshToken: _$alepha.TString;
|
|
7751
|
+
userId: PgAttr<_$alepha.TString, typeof PG_REF>;
|
|
7752
|
+
expiresAt: _$alepha.TString;
|
|
7753
|
+
ip: _$alepha.TOptional<_$alepha.TString>;
|
|
7754
|
+
userAgent: _$alepha.TOptional<_$alepha.TObject<{
|
|
7755
|
+
os: _$alepha.TString;
|
|
7756
|
+
browser: _$alepha.TString;
|
|
7757
|
+
device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7708
7758
|
}>>;
|
|
7709
7759
|
}>>;
|
|
7710
|
-
identities(userRealmName?: string): Repository$1<alepha.TObject<{
|
|
7711
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7712
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7713
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7714
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7715
|
-
userId: PgAttr<alepha.TString, typeof PG_REF>;
|
|
7716
|
-
password: alepha.TOptional<alepha.TString>;
|
|
7717
|
-
provider: alepha.TString;
|
|
7718
|
-
providerUserId: alepha.TOptional<alepha.TString>;
|
|
7719
|
-
providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
|
|
7760
|
+
identities(userRealmName?: string): Repository$1<_$alepha.TObject<{
|
|
7761
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7762
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7763
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7764
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7765
|
+
userId: PgAttr<_$alepha.TString, typeof PG_REF>;
|
|
7766
|
+
password: _$alepha.TOptional<_$alepha.TString>;
|
|
7767
|
+
provider: _$alepha.TString;
|
|
7768
|
+
providerUserId: _$alepha.TOptional<_$alepha.TString>;
|
|
7769
|
+
providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
7720
7770
|
}>>;
|
|
7721
7771
|
/**
|
|
7722
7772
|
* Phase 1: Create a password reset intent.
|
|
@@ -7753,11 +7803,11 @@ declare class CredentialService {
|
|
|
7753
7803
|
}
|
|
7754
7804
|
//#endregion
|
|
7755
7805
|
//#region ../../src/api/users/schemas/completeRegistrationRequestSchema.d.ts
|
|
7756
|
-
declare const completeRegistrationRequestSchema: alepha.TObject<{
|
|
7757
|
-
intentId: alepha.TString;
|
|
7758
|
-
emailCode: alepha.TOptional<alepha.TString>;
|
|
7759
|
-
phoneCode: alepha.TOptional<alepha.TString>;
|
|
7760
|
-
captchaToken: alepha.TOptional<alepha.TString>;
|
|
7806
|
+
declare const completeRegistrationRequestSchema: _$alepha.TObject<{
|
|
7807
|
+
intentId: _$alepha.TString;
|
|
7808
|
+
emailCode: _$alepha.TOptional<_$alepha.TString>;
|
|
7809
|
+
phoneCode: _$alepha.TOptional<_$alepha.TString>;
|
|
7810
|
+
captchaToken: _$alepha.TOptional<_$alepha.TString>;
|
|
7761
7811
|
}>;
|
|
7762
7812
|
type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
|
|
7763
7813
|
//#endregion
|
|
@@ -7766,24 +7816,24 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
|
|
|
7766
7816
|
* Schema for user registration request body.
|
|
7767
7817
|
* Password is always required, other fields depend on realm settings.
|
|
7768
7818
|
*/
|
|
7769
|
-
declare const registerRequestSchema: alepha.TObject<{
|
|
7770
|
-
password: alepha.TString;
|
|
7771
|
-
username: alepha.TOptional<alepha.TString>;
|
|
7772
|
-
email: alepha.TOptional<alepha.TString>;
|
|
7773
|
-
phoneNumber: alepha.TOptional<alepha.TString>;
|
|
7774
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
7775
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
7776
|
-
picture: alepha.TOptional<alepha.TString>;
|
|
7819
|
+
declare const registerRequestSchema: _$alepha.TObject<{
|
|
7820
|
+
password: _$alepha.TString;
|
|
7821
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
7822
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
7823
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
7824
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
7825
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
7826
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
7777
7827
|
}>;
|
|
7778
7828
|
type RegisterRequest = Static<typeof registerRequestSchema>;
|
|
7779
7829
|
//#endregion
|
|
7780
7830
|
//#region ../../src/api/users/schemas/registrationIntentResponseSchema.d.ts
|
|
7781
|
-
declare const registrationIntentResponseSchema: alepha.TObject<{
|
|
7782
|
-
intentId: alepha.TString;
|
|
7783
|
-
expectCaptcha: alepha.TBoolean;
|
|
7784
|
-
expectEmailVerification: alepha.TBoolean;
|
|
7785
|
-
expectPhoneVerification: alepha.TBoolean;
|
|
7786
|
-
expiresAt: alepha.TString;
|
|
7831
|
+
declare const registrationIntentResponseSchema: _$alepha.TObject<{
|
|
7832
|
+
intentId: _$alepha.TString;
|
|
7833
|
+
expectCaptcha: _$alepha.TBoolean;
|
|
7834
|
+
expectEmailVerification: _$alepha.TBoolean;
|
|
7835
|
+
expectPhoneVerification: _$alepha.TBoolean;
|
|
7836
|
+
expiresAt: _$alepha.TString;
|
|
7787
7837
|
}>;
|
|
7788
7838
|
type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
|
|
7789
7839
|
//#endregion
|
|
@@ -7811,12 +7861,12 @@ interface RegistrationIntent {
|
|
|
7811
7861
|
}
|
|
7812
7862
|
declare class RegistrationService {
|
|
7813
7863
|
protected readonly alepha: Alepha;
|
|
7814
|
-
protected readonly log: alepha_logger0.Logger;
|
|
7864
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
7815
7865
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
7816
7866
|
protected readonly cryptoProvider: CryptoProvider;
|
|
7817
|
-
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
7867
|
+
protected readonly verificationController: _$alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
7818
7868
|
protected readonly realmProvider: RealmProvider;
|
|
7819
|
-
protected readonly intentCache: alepha_cache0.CacheMiddlewareFn<RegistrationIntent>;
|
|
7869
|
+
protected readonly intentCache: _$alepha_cache0.CacheMiddlewareFn<RegistrationIntent>;
|
|
7820
7870
|
protected userAudits(realmName?: string): UserAudits | undefined;
|
|
7821
7871
|
protected userNotifications(realmName?: string): UserNotifications;
|
|
7822
7872
|
/**
|
|
@@ -7866,131 +7916,132 @@ declare class UserController {
|
|
|
7866
7916
|
* Phase 1: Create a registration intent.
|
|
7867
7917
|
* Validates data, creates verification sessions, and stores intent in cache.
|
|
7868
7918
|
*/
|
|
7869
|
-
readonly createRegistrationIntent: alepha_server0.ActionPrimitiveFn<{
|
|
7870
|
-
body: alepha.TObject<{
|
|
7871
|
-
password: alepha.TString;
|
|
7872
|
-
username: alepha.TOptional<alepha.TString>;
|
|
7873
|
-
email: alepha.TOptional<alepha.TString>;
|
|
7874
|
-
phoneNumber: alepha.TOptional<alepha.TString>;
|
|
7875
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
7876
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
7877
|
-
picture: alepha.TOptional<alepha.TString>;
|
|
7878
|
-
}>;
|
|
7879
|
-
query: alepha.TObject<{
|
|
7880
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
7881
|
-
}>;
|
|
7882
|
-
response: alepha.TObject<{
|
|
7883
|
-
intentId: alepha.TString;
|
|
7884
|
-
expectCaptcha: alepha.TBoolean;
|
|
7885
|
-
expectEmailVerification: alepha.TBoolean;
|
|
7886
|
-
expectPhoneVerification: alepha.TBoolean;
|
|
7887
|
-
expiresAt: alepha.TString;
|
|
7919
|
+
readonly createRegistrationIntent: _$alepha_server0.ActionPrimitiveFn<{
|
|
7920
|
+
body: _$alepha.TObject<{
|
|
7921
|
+
password: _$alepha.TString;
|
|
7922
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
7923
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
7924
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
7925
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
7926
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
7927
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
7928
|
+
}>;
|
|
7929
|
+
query: _$alepha.TObject<{
|
|
7930
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7931
|
+
}>;
|
|
7932
|
+
response: _$alepha.TObject<{
|
|
7933
|
+
intentId: _$alepha.TString;
|
|
7934
|
+
expectCaptcha: _$alepha.TBoolean;
|
|
7935
|
+
expectEmailVerification: _$alepha.TBoolean;
|
|
7936
|
+
expectPhoneVerification: _$alepha.TBoolean;
|
|
7937
|
+
expiresAt: _$alepha.TString;
|
|
7888
7938
|
}>;
|
|
7889
7939
|
}>;
|
|
7890
7940
|
/**
|
|
7891
7941
|
* Phase 2: Complete registration using an intent.
|
|
7892
7942
|
* Validates verification codes and creates the user.
|
|
7893
7943
|
*/
|
|
7894
|
-
readonly createUserFromIntent: alepha_server0.ActionPrimitiveFn<{
|
|
7895
|
-
body: alepha.TObject<{
|
|
7896
|
-
intentId: alepha.TString;
|
|
7897
|
-
emailCode: alepha.TOptional<alepha.TString>;
|
|
7898
|
-
phoneCode: alepha.TOptional<alepha.TString>;
|
|
7899
|
-
captchaToken: alepha.TOptional<alepha.TString>;
|
|
7900
|
-
}>;
|
|
7901
|
-
response: alepha.TObject<{
|
|
7902
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7903
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7904
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7905
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7906
|
-
realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
|
|
7907
|
-
username: alepha.TOptional<alepha.TString>;
|
|
7908
|
-
email: alepha.TOptional<alepha.TString>;
|
|
7909
|
-
phoneNumber: alepha.TOptional<alepha.TString>;
|
|
7910
|
-
roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
|
|
7911
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
7912
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
7913
|
-
picture: alepha.TOptional<alepha.TString>;
|
|
7914
|
-
enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7915
|
-
emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7944
|
+
readonly createUserFromIntent: _$alepha_server0.ActionPrimitiveFn<{
|
|
7945
|
+
body: _$alepha.TObject<{
|
|
7946
|
+
intentId: _$alepha.TString;
|
|
7947
|
+
emailCode: _$alepha.TOptional<_$alepha.TString>;
|
|
7948
|
+
phoneCode: _$alepha.TOptional<_$alepha.TString>;
|
|
7949
|
+
captchaToken: _$alepha.TOptional<_$alepha.TString>;
|
|
7950
|
+
}>;
|
|
7951
|
+
response: _$alepha.TObject<{
|
|
7952
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7953
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7954
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7955
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7956
|
+
realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
|
|
7957
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
7958
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
7959
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
7960
|
+
roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
|
|
7961
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
7962
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
7963
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
7964
|
+
enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7965
|
+
emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
7966
|
+
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
7916
7967
|
}>;
|
|
7917
7968
|
}>;
|
|
7918
7969
|
/**
|
|
7919
7970
|
* Phase 1: Create a password reset intent.
|
|
7920
7971
|
* Validates email, sends verification code, and stores intent in cache.
|
|
7921
7972
|
*/
|
|
7922
|
-
readonly createPasswordResetIntent: alepha_server0.ActionPrimitiveFn<{
|
|
7923
|
-
query: alepha.TObject<{
|
|
7924
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
7973
|
+
readonly createPasswordResetIntent: _$alepha_server0.ActionPrimitiveFn<{
|
|
7974
|
+
query: _$alepha.TObject<{
|
|
7975
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7925
7976
|
}>;
|
|
7926
|
-
body: alepha.TObject<{
|
|
7927
|
-
email: alepha.TString;
|
|
7977
|
+
body: _$alepha.TObject<{
|
|
7978
|
+
email: _$alepha.TString;
|
|
7928
7979
|
}>;
|
|
7929
|
-
response: alepha.TObject<{
|
|
7930
|
-
intentId: alepha.TString;
|
|
7931
|
-
expiresAt: alepha.TString;
|
|
7980
|
+
response: _$alepha.TObject<{
|
|
7981
|
+
intentId: _$alepha.TString;
|
|
7982
|
+
expiresAt: _$alepha.TString;
|
|
7932
7983
|
}>;
|
|
7933
7984
|
}>;
|
|
7934
7985
|
/**
|
|
7935
7986
|
* Phase 2: Complete password reset using an intent.
|
|
7936
7987
|
* Validates verification code, updates password, and invalidates sessions.
|
|
7937
7988
|
*/
|
|
7938
|
-
readonly completePasswordReset: alepha_server0.ActionPrimitiveFn<{
|
|
7939
|
-
body: alepha.TObject<{
|
|
7940
|
-
intentId: alepha.TString;
|
|
7941
|
-
code: alepha.TString;
|
|
7942
|
-
newPassword: alepha.TString;
|
|
7989
|
+
readonly completePasswordReset: _$alepha_server0.ActionPrimitiveFn<{
|
|
7990
|
+
body: _$alepha.TObject<{
|
|
7991
|
+
intentId: _$alepha.TString;
|
|
7992
|
+
code: _$alepha.TString;
|
|
7993
|
+
newPassword: _$alepha.TString;
|
|
7943
7994
|
}>;
|
|
7944
|
-
response: alepha.TObject<{
|
|
7945
|
-
ok: alepha.TBoolean;
|
|
7946
|
-
id: alepha.TOptional<alepha.TUnion<[alepha.TString, alepha.TInteger]>>;
|
|
7947
|
-
count: alepha.TOptional<alepha.TNumber>;
|
|
7995
|
+
response: _$alepha.TObject<{
|
|
7996
|
+
ok: _$alepha.TBoolean;
|
|
7997
|
+
id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
|
|
7998
|
+
count: _$alepha.TOptional<_$alepha.TNumber>;
|
|
7948
7999
|
}>;
|
|
7949
8000
|
}>;
|
|
7950
8001
|
/**
|
|
7951
8002
|
* @deprecated Use createPasswordResetIntent instead
|
|
7952
8003
|
*/
|
|
7953
|
-
requestPasswordReset: alepha_server0.ActionPrimitiveFn<{
|
|
7954
|
-
query: alepha.TObject<{
|
|
7955
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
8004
|
+
requestPasswordReset: _$alepha_server0.ActionPrimitiveFn<{
|
|
8005
|
+
query: _$alepha.TObject<{
|
|
8006
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7956
8007
|
}>;
|
|
7957
|
-
body: alepha.TObject<{
|
|
7958
|
-
email: alepha.TString;
|
|
8008
|
+
body: _$alepha.TObject<{
|
|
8009
|
+
email: _$alepha.TString;
|
|
7959
8010
|
}>;
|
|
7960
|
-
response: alepha.TObject<{
|
|
7961
|
-
success: alepha.TBoolean;
|
|
7962
|
-
message: alepha.TString;
|
|
8011
|
+
response: _$alepha.TObject<{
|
|
8012
|
+
success: _$alepha.TBoolean;
|
|
8013
|
+
message: _$alepha.TString;
|
|
7963
8014
|
}>;
|
|
7964
8015
|
}>;
|
|
7965
8016
|
/**
|
|
7966
8017
|
* @deprecated Use completePasswordReset instead
|
|
7967
8018
|
*/
|
|
7968
|
-
validateResetToken: alepha_server0.ActionPrimitiveFn<{
|
|
7969
|
-
query: alepha.TObject<{
|
|
7970
|
-
email: alepha.TString;
|
|
7971
|
-
token: alepha.TString;
|
|
7972
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
8019
|
+
validateResetToken: _$alepha_server0.ActionPrimitiveFn<{
|
|
8020
|
+
query: _$alepha.TObject<{
|
|
8021
|
+
email: _$alepha.TString;
|
|
8022
|
+
token: _$alepha.TString;
|
|
8023
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7973
8024
|
}>;
|
|
7974
|
-
response: alepha.TObject<{
|
|
7975
|
-
valid: alepha.TBoolean;
|
|
7976
|
-
email: alepha.TOptional<alepha.TString>;
|
|
8025
|
+
response: _$alepha.TObject<{
|
|
8026
|
+
valid: _$alepha.TBoolean;
|
|
8027
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
7977
8028
|
}>;
|
|
7978
8029
|
}>;
|
|
7979
8030
|
/**
|
|
7980
8031
|
* @deprecated Use completePasswordReset instead
|
|
7981
8032
|
*/
|
|
7982
|
-
resetPassword: alepha_server0.ActionPrimitiveFn<{
|
|
7983
|
-
query: alepha.TObject<{
|
|
7984
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
8033
|
+
resetPassword: _$alepha_server0.ActionPrimitiveFn<{
|
|
8034
|
+
query: _$alepha.TObject<{
|
|
8035
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
7985
8036
|
}>;
|
|
7986
|
-
body: alepha.TObject<{
|
|
7987
|
-
email: alepha.TString;
|
|
7988
|
-
token: alepha.TString;
|
|
7989
|
-
newPassword: alepha.TString;
|
|
8037
|
+
body: _$alepha.TObject<{
|
|
8038
|
+
email: _$alepha.TString;
|
|
8039
|
+
token: _$alepha.TString;
|
|
8040
|
+
newPassword: _$alepha.TString;
|
|
7990
8041
|
}>;
|
|
7991
|
-
response: alepha.TObject<{
|
|
7992
|
-
success: alepha.TBoolean;
|
|
7993
|
-
message: alepha.TString;
|
|
8042
|
+
response: _$alepha.TObject<{
|
|
8043
|
+
success: _$alepha.TBoolean;
|
|
8044
|
+
message: _$alepha.TString;
|
|
7994
8045
|
}>;
|
|
7995
8046
|
}>;
|
|
7996
8047
|
/**
|
|
@@ -7999,47 +8050,47 @@ declare class UserController {
|
|
|
7999
8050
|
* @param method - The verification method: "code" (default) sends a 6-digit code, "link" sends a clickable verification link.
|
|
8000
8051
|
* @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
|
|
8001
8052
|
*/
|
|
8002
|
-
requestEmailVerification: alepha_server0.ActionPrimitiveFn<{
|
|
8003
|
-
query: alepha.TObject<{
|
|
8004
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
8005
|
-
method: alepha.TOptional<alepha.TUnsafe<"link" | "code">>;
|
|
8006
|
-
verifyUrl: alepha.TOptional<alepha.TString>;
|
|
8053
|
+
requestEmailVerification: _$alepha_server0.ActionPrimitiveFn<{
|
|
8054
|
+
query: _$alepha.TObject<{
|
|
8055
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
8056
|
+
method: _$alepha.TOptional<_$alepha.TUnsafe<"link" | "code">>;
|
|
8057
|
+
verifyUrl: _$alepha.TOptional<_$alepha.TString>;
|
|
8007
8058
|
}>;
|
|
8008
|
-
body: alepha.TObject<{
|
|
8009
|
-
email: alepha.TString;
|
|
8059
|
+
body: _$alepha.TObject<{
|
|
8060
|
+
email: _$alepha.TString;
|
|
8010
8061
|
}>;
|
|
8011
|
-
response: alepha.TObject<{
|
|
8012
|
-
success: alepha.TBoolean;
|
|
8013
|
-
message: alepha.TString;
|
|
8062
|
+
response: _$alepha.TObject<{
|
|
8063
|
+
success: _$alepha.TBoolean;
|
|
8064
|
+
message: _$alepha.TString;
|
|
8014
8065
|
}>;
|
|
8015
8066
|
}>;
|
|
8016
8067
|
/**
|
|
8017
8068
|
* Verify email with a valid token.
|
|
8018
8069
|
* Updates the user's emailVerified status.
|
|
8019
8070
|
*/
|
|
8020
|
-
verifyEmail: alepha_server0.ActionPrimitiveFn<{
|
|
8021
|
-
query: alepha.TObject<{
|
|
8022
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
8071
|
+
verifyEmail: _$alepha_server0.ActionPrimitiveFn<{
|
|
8072
|
+
query: _$alepha.TObject<{
|
|
8073
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
8023
8074
|
}>;
|
|
8024
|
-
body: alepha.TObject<{
|
|
8025
|
-
email: alepha.TString;
|
|
8026
|
-
token: alepha.TString;
|
|
8075
|
+
body: _$alepha.TObject<{
|
|
8076
|
+
email: _$alepha.TString;
|
|
8077
|
+
token: _$alepha.TString;
|
|
8027
8078
|
}>;
|
|
8028
|
-
response: alepha.TObject<{
|
|
8029
|
-
success: alepha.TBoolean;
|
|
8030
|
-
message: alepha.TString;
|
|
8079
|
+
response: _$alepha.TObject<{
|
|
8080
|
+
success: _$alepha.TBoolean;
|
|
8081
|
+
message: _$alepha.TString;
|
|
8031
8082
|
}>;
|
|
8032
8083
|
}>;
|
|
8033
8084
|
/**
|
|
8034
8085
|
* Check if an email is verified.
|
|
8035
8086
|
*/
|
|
8036
|
-
checkEmailVerification: alepha_server0.ActionPrimitiveFn<{
|
|
8037
|
-
query: alepha.TObject<{
|
|
8038
|
-
email: alepha.TString;
|
|
8039
|
-
userRealmName: alepha.TOptional<alepha.TString>;
|
|
8087
|
+
checkEmailVerification: _$alepha_server0.ActionPrimitiveFn<{
|
|
8088
|
+
query: _$alepha.TObject<{
|
|
8089
|
+
email: _$alepha.TString;
|
|
8090
|
+
userRealmName: _$alepha.TOptional<_$alepha.TString>;
|
|
8040
8091
|
}>;
|
|
8041
|
-
response: alepha.TObject<{
|
|
8042
|
-
verified: alepha.TBoolean;
|
|
8092
|
+
response: _$alepha.TObject<{
|
|
8093
|
+
verified: _$alepha.TBoolean;
|
|
8043
8094
|
}>;
|
|
8044
8095
|
}>;
|
|
8045
8096
|
}
|
|
@@ -8056,21 +8107,21 @@ declare class UserController {
|
|
|
8056
8107
|
* It is lazy-loaded when the `sessionPurge` feature is enabled in the realm.
|
|
8057
8108
|
*/
|
|
8058
8109
|
declare class UserJobs {
|
|
8059
|
-
protected readonly log: alepha_logger0.Logger;
|
|
8110
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
8060
8111
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
8061
|
-
protected readonly sessionRepository: alepha_orm0.Repository<alepha.TObject<{
|
|
8062
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
8063
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
8064
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
8065
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
8066
|
-
refreshToken: alepha.TString;
|
|
8067
|
-
userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
|
|
8068
|
-
expiresAt: alepha.TString;
|
|
8069
|
-
ip: alepha.TOptional<alepha.TString>;
|
|
8070
|
-
userAgent: alepha.TOptional<alepha.TObject<{
|
|
8071
|
-
os: alepha.TString;
|
|
8072
|
-
browser: alepha.TString;
|
|
8073
|
-
device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
8112
|
+
protected readonly sessionRepository: _$alepha_orm0.Repository<_$alepha.TObject<{
|
|
8113
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
8114
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
8115
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
8116
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
8117
|
+
refreshToken: _$alepha.TString;
|
|
8118
|
+
userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
|
|
8119
|
+
expiresAt: _$alepha.TString;
|
|
8120
|
+
ip: _$alepha.TOptional<_$alepha.TString>;
|
|
8121
|
+
userAgent: _$alepha.TOptional<_$alepha.TObject<{
|
|
8122
|
+
os: _$alepha.TString;
|
|
8123
|
+
browser: _$alepha.TString;
|
|
8124
|
+
device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
8074
8125
|
}>>;
|
|
8075
8126
|
}>>;
|
|
8076
8127
|
/**
|
|
@@ -8079,124 +8130,125 @@ declare class UserJobs {
|
|
|
8079
8130
|
* This job runs daily at 3:00 AM and removes all sessions
|
|
8080
8131
|
* where the `expiresAt` timestamp has passed.
|
|
8081
8132
|
*/
|
|
8082
|
-
readonly purgeExpiredSessions: alepha_api_jobs0.JobPrimitive<alepha.TSchema>;
|
|
8133
|
+
readonly purgeExpiredSessions: _$alepha_api_jobs0.JobPrimitive<_$alepha.TSchema>;
|
|
8083
8134
|
}
|
|
8084
8135
|
//#endregion
|
|
8085
8136
|
//#region ../../src/api/users/schemas/identityResourceSchema.d.ts
|
|
8086
|
-
declare const identityResourceSchema: alepha.TObject<{
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
providerUserId: alepha.TOptional<alepha.TString>;
|
|
8094
|
-
providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
|
|
8137
|
+
declare const identityResourceSchema: _$alepha.TObject<{
|
|
8138
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8139
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8140
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8141
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8142
|
+
userId: PgAttr<_$alepha.TString, typeof PG_REF>;
|
|
8143
|
+
provider: _$alepha.TString;
|
|
8144
|
+
providerUserId: _$alepha.TOptional<_$alepha.TString>;
|
|
8145
|
+
providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
8095
8146
|
}>;
|
|
8096
8147
|
type IdentityResource = Static<typeof identityResourceSchema>;
|
|
8097
8148
|
//#endregion
|
|
8098
8149
|
//#region ../../src/api/users/schemas/loginSchema.d.ts
|
|
8099
|
-
declare const loginSchema: alepha.TObject<{
|
|
8100
|
-
username: alepha.TString;
|
|
8101
|
-
password: alepha.TString;
|
|
8150
|
+
declare const loginSchema: _$alepha.TObject<{
|
|
8151
|
+
username: _$alepha.TString;
|
|
8152
|
+
password: _$alepha.TString;
|
|
8102
8153
|
}>;
|
|
8103
8154
|
type LoginInput = Static<typeof loginSchema>;
|
|
8104
8155
|
//#endregion
|
|
8105
8156
|
//#region ../../src/api/users/schemas/realmConfigSchema.d.ts
|
|
8106
|
-
declare const realmConfigSchema: alepha.TObject<{
|
|
8107
|
-
settings: alepha.TObject<{
|
|
8108
|
-
displayName: alepha.TOptional<alepha.TString>;
|
|
8109
|
-
description: alepha.TOptional<alepha.TString>;
|
|
8110
|
-
logoUrl: alepha.TOptional<alepha.TString>;
|
|
8111
|
-
registrationAllowed: alepha.TBoolean;
|
|
8112
|
-
email: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
|
|
8113
|
-
username: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
|
|
8114
|
-
usernameRegExp: alepha.TString;
|
|
8115
|
-
phoneNumber: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
|
|
8116
|
-
verifyEmailRequired: alepha.TBoolean;
|
|
8117
|
-
verifyPhoneRequired: alepha.TBoolean;
|
|
8118
|
-
firstNameLastName: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
|
|
8119
|
-
resetPasswordAllowed: alepha.TBoolean;
|
|
8120
|
-
adminEmails: alepha.TArray<alepha.TString>;
|
|
8121
|
-
adminUsernames: alepha.TArray<alepha.TString>;
|
|
8122
|
-
passwordPolicy: alepha.TObject<{
|
|
8123
|
-
minLength: alepha.TInteger;
|
|
8124
|
-
requireUppercase: alepha.TBoolean;
|
|
8125
|
-
requireLowercase: alepha.TBoolean;
|
|
8126
|
-
requireNumbers: alepha.TBoolean;
|
|
8127
|
-
requireSpecialCharacters: alepha.TBoolean;
|
|
8128
|
-
}>;
|
|
8129
|
-
loginRateLimit: alepha.TObject<{
|
|
8130
|
-
ipMaxAttempts: alepha.TInteger;
|
|
8131
|
-
accountMaxAttempts: alepha.TInteger;
|
|
8132
|
-
windowMs: alepha.TInteger;
|
|
8157
|
+
declare const realmConfigSchema: _$alepha.TObject<{
|
|
8158
|
+
settings: _$alepha.TObject<{
|
|
8159
|
+
displayName: _$alepha.TOptional<_$alepha.TString>;
|
|
8160
|
+
description: _$alepha.TOptional<_$alepha.TString>;
|
|
8161
|
+
logoUrl: _$alepha.TOptional<_$alepha.TString>;
|
|
8162
|
+
registrationAllowed: _$alepha.TBoolean;
|
|
8163
|
+
email: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
8164
|
+
username: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
8165
|
+
usernameRegExp: _$alepha.TString;
|
|
8166
|
+
phoneNumber: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
8167
|
+
verifyEmailRequired: _$alepha.TBoolean;
|
|
8168
|
+
verifyPhoneRequired: _$alepha.TBoolean;
|
|
8169
|
+
firstNameLastName: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
8170
|
+
resetPasswordAllowed: _$alepha.TBoolean;
|
|
8171
|
+
adminEmails: _$alepha.TArray<_$alepha.TString>;
|
|
8172
|
+
adminUsernames: _$alepha.TArray<_$alepha.TString>;
|
|
8173
|
+
passwordPolicy: _$alepha.TObject<{
|
|
8174
|
+
minLength: _$alepha.TInteger;
|
|
8175
|
+
requireUppercase: _$alepha.TBoolean;
|
|
8176
|
+
requireLowercase: _$alepha.TBoolean;
|
|
8177
|
+
requireNumbers: _$alepha.TBoolean;
|
|
8178
|
+
requireSpecialCharacters: _$alepha.TBoolean;
|
|
8179
|
+
}>;
|
|
8180
|
+
loginRateLimit: _$alepha.TObject<{
|
|
8181
|
+
ipMaxAttempts: _$alepha.TInteger;
|
|
8182
|
+
accountMaxAttempts: _$alepha.TInteger;
|
|
8183
|
+
windowMs: _$alepha.TInteger;
|
|
8133
8184
|
}>;
|
|
8134
8185
|
}>;
|
|
8135
|
-
realmName: alepha.TString;
|
|
8136
|
-
authenticationMethods: alepha.TArray<alepha.TObject<{
|
|
8137
|
-
name: alepha.TString;
|
|
8138
|
-
type: alepha.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
8186
|
+
realmName: _$alepha.TString;
|
|
8187
|
+
authenticationMethods: _$alepha.TArray<_$alepha.TObject<{
|
|
8188
|
+
name: _$alepha.TString;
|
|
8189
|
+
type: _$alepha.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
8139
8190
|
}>>;
|
|
8140
8191
|
}>;
|
|
8141
8192
|
type RealmConfig = Static<typeof realmConfigSchema>;
|
|
8142
8193
|
//#endregion
|
|
8143
8194
|
//#region ../../src/api/users/schemas/registerSchema.d.ts
|
|
8144
|
-
declare const registerSchema: alepha.TObject<{
|
|
8145
|
-
username: alepha.TString;
|
|
8146
|
-
email: alepha.TString;
|
|
8147
|
-
password: alepha.TString;
|
|
8148
|
-
confirmPassword: alepha.TString;
|
|
8149
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
8150
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
8195
|
+
declare const registerSchema: _$alepha.TObject<{
|
|
8196
|
+
username: _$alepha.TString;
|
|
8197
|
+
email: _$alepha.TString;
|
|
8198
|
+
password: _$alepha.TString;
|
|
8199
|
+
confirmPassword: _$alepha.TString;
|
|
8200
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
8201
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
8151
8202
|
}>;
|
|
8152
8203
|
type RegisterInput = Static<typeof registerSchema>;
|
|
8153
8204
|
//#endregion
|
|
8154
8205
|
//#region ../../src/api/users/schemas/resetPasswordSchema.d.ts
|
|
8155
|
-
declare const resetPasswordRequestSchema: alepha.TObject<{
|
|
8156
|
-
email: alepha.TString;
|
|
8206
|
+
declare const resetPasswordRequestSchema: _$alepha.TObject<{
|
|
8207
|
+
email: _$alepha.TString;
|
|
8157
8208
|
}>;
|
|
8158
|
-
declare const resetPasswordSchema: alepha.TObject<{
|
|
8159
|
-
token: alepha.TString;
|
|
8160
|
-
password: alepha.TString;
|
|
8161
|
-
confirmPassword: alepha.TString;
|
|
8209
|
+
declare const resetPasswordSchema: _$alepha.TObject<{
|
|
8210
|
+
token: _$alepha.TString;
|
|
8211
|
+
password: _$alepha.TString;
|
|
8212
|
+
confirmPassword: _$alepha.TString;
|
|
8162
8213
|
}>;
|
|
8163
8214
|
type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
|
|
8164
8215
|
type ResetPasswordInput = Static<typeof resetPasswordSchema>;
|
|
8165
8216
|
//#endregion
|
|
8166
8217
|
//#region ../../src/api/users/schemas/sessionResourceSchema.d.ts
|
|
8167
|
-
declare const sessionResourceSchema: alepha.TObject<{
|
|
8168
|
-
id: alepha.TString;
|
|
8169
|
-
version: alepha.TNumber;
|
|
8170
|
-
createdAt: alepha.TString;
|
|
8171
|
-
updatedAt: alepha.TString;
|
|
8172
|
-
refreshToken: alepha.TString;
|
|
8173
|
-
userId: alepha.TString;
|
|
8174
|
-
expiresAt: alepha.TString;
|
|
8175
|
-
ip: alepha.TOptional<alepha.TString>;
|
|
8176
|
-
userAgent: alepha.TOptional<alepha.TObject<{
|
|
8177
|
-
os: alepha.TString;
|
|
8178
|
-
browser: alepha.TString;
|
|
8179
|
-
device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
8218
|
+
declare const sessionResourceSchema: _$alepha.TObject<{
|
|
8219
|
+
id: _$alepha.TString;
|
|
8220
|
+
version: _$alepha.TNumber;
|
|
8221
|
+
createdAt: _$alepha.TString;
|
|
8222
|
+
updatedAt: _$alepha.TString;
|
|
8223
|
+
refreshToken: _$alepha.TString;
|
|
8224
|
+
userId: _$alepha.TString;
|
|
8225
|
+
expiresAt: _$alepha.TString;
|
|
8226
|
+
ip: _$alepha.TOptional<_$alepha.TString>;
|
|
8227
|
+
userAgent: _$alepha.TOptional<_$alepha.TObject<{
|
|
8228
|
+
os: _$alepha.TString;
|
|
8229
|
+
browser: _$alepha.TString;
|
|
8230
|
+
device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
8180
8231
|
}>>;
|
|
8181
8232
|
}>;
|
|
8182
8233
|
type SessionResource = Static<typeof sessionResourceSchema>;
|
|
8183
8234
|
//#endregion
|
|
8184
8235
|
//#region ../../src/api/users/schemas/userResourceSchema.d.ts
|
|
8185
|
-
declare const userResourceSchema: alepha.TObject<{
|
|
8186
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8187
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8188
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8189
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8190
|
-
realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
|
|
8191
|
-
username: alepha.TOptional<alepha.TString>;
|
|
8192
|
-
email: alepha.TOptional<alepha.TString>;
|
|
8193
|
-
phoneNumber: alepha.TOptional<alepha.TString>;
|
|
8194
|
-
roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
|
|
8195
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
8196
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
8197
|
-
picture: alepha.TOptional<alepha.TString>;
|
|
8198
|
-
enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8199
|
-
emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8236
|
+
declare const userResourceSchema: _$alepha.TObject<{
|
|
8237
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8238
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8239
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8240
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8241
|
+
realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
|
|
8242
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
8243
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
8244
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
8245
|
+
roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
|
|
8246
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
8247
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
8248
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
8249
|
+
enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8250
|
+
emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8251
|
+
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
8200
8252
|
}>;
|
|
8201
8253
|
type UserResource = Static<typeof userResourceSchema>;
|
|
8202
8254
|
//#endregion
|
|
@@ -8206,52 +8258,53 @@ declare class SessionService {
|
|
|
8206
8258
|
protected readonly fsp: FileSystemProvider;
|
|
8207
8259
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
8208
8260
|
protected readonly cryptoProvider: CryptoProvider;
|
|
8209
|
-
protected readonly log: alepha_logger0.Logger;
|
|
8261
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
8210
8262
|
protected readonly realmProvider: RealmProvider;
|
|
8211
|
-
protected readonly fileController: alepha_server_links0.HttpVirtualClient<FileController>;
|
|
8263
|
+
protected readonly fileController: _$alepha_server_links0.HttpVirtualClient<FileController>;
|
|
8212
8264
|
protected readonly cacheProvider: CacheProvider;
|
|
8213
8265
|
protected userAudits(realmName?: string): UserAudits | undefined;
|
|
8214
|
-
users(userRealmName?: string): Repository$1<alepha.TObject<{
|
|
8215
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8216
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8217
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8218
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8219
|
-
realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
|
|
8220
|
-
username: alepha.TOptional<alepha.TString>;
|
|
8221
|
-
email: alepha.TOptional<alepha.TString>;
|
|
8222
|
-
phoneNumber: alepha.TOptional<alepha.TString>;
|
|
8223
|
-
roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
|
|
8224
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
8225
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
8226
|
-
picture: alepha.TOptional<alepha.TString>;
|
|
8227
|
-
enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8228
|
-
emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8266
|
+
users(userRealmName?: string): Repository$1<_$alepha.TObject<{
|
|
8267
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8268
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8269
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8270
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8271
|
+
realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
|
|
8272
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
8273
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
8274
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
8275
|
+
roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
|
|
8276
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
8277
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
8278
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
8279
|
+
enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8280
|
+
emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8281
|
+
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
8229
8282
|
}>>;
|
|
8230
|
-
sessions(userRealmName?: string): Repository$1<alepha.TObject<{
|
|
8231
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8232
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8233
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8234
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8235
|
-
refreshToken: alepha.TString;
|
|
8236
|
-
userId: PgAttr<alepha.TString, typeof PG_REF>;
|
|
8237
|
-
expiresAt: alepha.TString;
|
|
8238
|
-
ip: alepha.TOptional<alepha.TString>;
|
|
8239
|
-
userAgent: alepha.TOptional<alepha.TObject<{
|
|
8240
|
-
os: alepha.TString;
|
|
8241
|
-
browser: alepha.TString;
|
|
8242
|
-
device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
8283
|
+
sessions(userRealmName?: string): Repository$1<_$alepha.TObject<{
|
|
8284
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8285
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8286
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8287
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8288
|
+
refreshToken: _$alepha.TString;
|
|
8289
|
+
userId: PgAttr<_$alepha.TString, typeof PG_REF>;
|
|
8290
|
+
expiresAt: _$alepha.TString;
|
|
8291
|
+
ip: _$alepha.TOptional<_$alepha.TString>;
|
|
8292
|
+
userAgent: _$alepha.TOptional<_$alepha.TObject<{
|
|
8293
|
+
os: _$alepha.TString;
|
|
8294
|
+
browser: _$alepha.TString;
|
|
8295
|
+
device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
8243
8296
|
}>>;
|
|
8244
8297
|
}>>;
|
|
8245
|
-
identities(userRealmName?: string): Repository$1<alepha.TObject<{
|
|
8246
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8247
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8248
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8249
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8250
|
-
userId: PgAttr<alepha.TString, typeof PG_REF>;
|
|
8251
|
-
password: alepha.TOptional<alepha.TString>;
|
|
8252
|
-
provider: alepha.TString;
|
|
8253
|
-
providerUserId: alepha.TOptional<alepha.TString>;
|
|
8254
|
-
providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
|
|
8298
|
+
identities(userRealmName?: string): Repository$1<_$alepha.TObject<{
|
|
8299
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8300
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8301
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8302
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8303
|
+
userId: PgAttr<_$alepha.TString, typeof PG_REF>;
|
|
8304
|
+
password: _$alepha.TOptional<_$alepha.TString>;
|
|
8305
|
+
provider: _$alepha.TString;
|
|
8306
|
+
providerUserId: _$alepha.TOptional<_$alepha.TString>;
|
|
8307
|
+
providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
8255
8308
|
}>>;
|
|
8256
8309
|
/**
|
|
8257
8310
|
* Check if user should be auto-promoted to admin based on adminEmails/adminUsernames settings.
|
|
@@ -8263,6 +8316,15 @@ declare class SessionService {
|
|
|
8263
8316
|
username?: string | null;
|
|
8264
8317
|
roles: string[];
|
|
8265
8318
|
}, userRealmName?: string): Promise<boolean>;
|
|
8319
|
+
/**
|
|
8320
|
+
* Generate a unique username from an OAuth profile.
|
|
8321
|
+
*
|
|
8322
|
+
* 1. Extract candidate from email prefix
|
|
8323
|
+
* 2. Sanitize against realm's usernameRegExp (strip invalid chars, truncate)
|
|
8324
|
+
* 3. Check case-insensitive uniqueness, append suffix (2, 3, ...) if taken
|
|
8325
|
+
* 4. Fall back to "user" + random 6-char alphanumeric if all else fails
|
|
8326
|
+
*/
|
|
8327
|
+
protected generateUniqueUsername(profile: OAuth2Profile, realmSettings: any, users: any): Promise<string>;
|
|
8266
8328
|
/**
|
|
8267
8329
|
* Random delay to prevent timing attacks (50-200ms)
|
|
8268
8330
|
* Uses cryptographically secure random number generation
|
|
@@ -8290,36 +8352,38 @@ declare class SessionService {
|
|
|
8290
8352
|
sessionId: string;
|
|
8291
8353
|
}>;
|
|
8292
8354
|
refreshSession(refreshToken: string, userRealmName?: string): Promise<{
|
|
8293
|
-
user: PgStatic<alepha.TObject<{
|
|
8294
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8295
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8296
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8297
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8298
|
-
realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
|
|
8299
|
-
username: alepha.TOptional<alepha.TString>;
|
|
8300
|
-
email: alepha.TOptional<alepha.TString>;
|
|
8301
|
-
phoneNumber: alepha.TOptional<alepha.TString>;
|
|
8302
|
-
roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
|
|
8303
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
8304
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
8305
|
-
picture: alepha.TOptional<alepha.TString>;
|
|
8306
|
-
enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8307
|
-
emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8355
|
+
user: PgStatic<_$alepha.TObject<{
|
|
8356
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8357
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8358
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8359
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8360
|
+
realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
|
|
8361
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
8362
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
8363
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
8364
|
+
roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
|
|
8365
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
8366
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
8367
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
8368
|
+
enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8369
|
+
emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8370
|
+
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
8371
|
+
}>, PgRelationMap<_$alepha.TObject<{
|
|
8372
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8373
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8374
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8375
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8376
|
+
realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
|
|
8377
|
+
username: _$alepha.TOptional<_$alepha.TString>;
|
|
8378
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
8379
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
8380
|
+
roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
|
|
8381
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
8382
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
8383
|
+
picture: _$alepha.TOptional<_$alepha.TString>;
|
|
8384
|
+
enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8385
|
+
emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
|
|
8386
|
+
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
8323
8387
|
}>>>;
|
|
8324
8388
|
expiresIn: number;
|
|
8325
8389
|
sessionId: string;
|
|
@@ -8327,18 +8391,19 @@ declare class SessionService {
|
|
|
8327
8391
|
deleteSession(refreshToken: string, userRealmName?: string): Promise<void>;
|
|
8328
8392
|
link(provider: string, profile: OAuth2Profile, userRealmName?: string): Promise<{
|
|
8329
8393
|
email?: string | undefined;
|
|
8330
|
-
username?: string | undefined;
|
|
8331
8394
|
phoneNumber?: string | undefined;
|
|
8395
|
+
username?: string | undefined;
|
|
8332
8396
|
firstName?: string | undefined;
|
|
8333
8397
|
lastName?: string | undefined;
|
|
8334
8398
|
picture?: string | undefined;
|
|
8399
|
+
organizationId?: string | undefined;
|
|
8400
|
+
enabled: boolean;
|
|
8335
8401
|
id: string;
|
|
8336
|
-
createdAt: string;
|
|
8337
8402
|
version: number;
|
|
8403
|
+
createdAt: string;
|
|
8338
8404
|
updatedAt: string;
|
|
8339
8405
|
realm: string;
|
|
8340
8406
|
roles: string[];
|
|
8341
|
-
enabled: boolean;
|
|
8342
8407
|
emailVerified: boolean;
|
|
8343
8408
|
} | {
|
|
8344
8409
|
sub: string;
|
|
@@ -8388,7 +8453,7 @@ declare class SessionService {
|
|
|
8388
8453
|
*
|
|
8389
8454
|
* @module alepha.api.users
|
|
8390
8455
|
*/
|
|
8391
|
-
declare const AlephaApiUsers: alepha.Service<alepha.Module>;
|
|
8456
|
+
declare const AlephaApiUsers: _$alepha.Service<_$alepha.Module>;
|
|
8392
8457
|
//#endregion
|
|
8393
8458
|
export { $realm, AdminIdentityController, AdminSessionController, AdminUserController, AlephaApiUsers, CompletePasswordResetRequest, CompleteRegistrationRequest, CreateUser, CredentialService, DEFAULT_USER_REALM_NAME, FieldRequirement, IdentityEntity, IdentityQuery, IdentityResource, IdentityService, LoginInput, PasswordResetIntentResponse, Realm, RealmAuthSettings, RealmConfig, RealmController, RealmFeatures, RealmOptions, RealmPrimitive, RealmProvider, RealmRepositories, RegisterInput, RegistrationIntentResponse, RegistrationService, ResetPasswordInput, ResetPasswordRequest, SessionCrudService, SessionEntity, SessionQuery, SessionResource, SessionService, UpdateUser, UserAudits, UserBuckets, UserController, UserEntity, UserJobs, UserNotifications, UserQuery, UserResource, UserService, completePasswordResetRequestSchema, completeRegistrationRequestSchema, createUserSchema, identities, identityQuerySchema, identityResourceSchema, loginSchema, passwordResetIntentResponseSchema, realmAuthSettingsAtom, realmConfigSchema, registerSchema, registrationIntentResponseSchema, resetPasswordRequestSchema, resetPasswordSchema, sessionQuerySchema, sessionResourceSchema, sessions, updateUserSchema, userQuerySchema, userResourceSchema, users };
|
|
8394
8459
|
//# sourceMappingURL=index.d.ts.map
|