alepha 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/swagger-ui/swagger-ui-bundle.js +1 -1
- package/assets/swagger-ui/swagger-ui-standalone-preset.js +1 -1
- package/dist/api/audits/index.browser.js +49 -52
- package/dist/api/audits/index.browser.js.map +1 -1
- package/dist/api/audits/index.d.ts +629 -565
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +206 -98
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.browser.js +44 -44
- package/dist/api/files/index.browser.js.map +1 -1
- package/dist/api/files/index.d.ts +292 -293
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +61 -64
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.browser.js +61 -59
- package/dist/api/jobs/index.browser.js.map +1 -1
- package/dist/api/jobs/index.d.ts +546 -347
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +165 -86
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +242 -230
- package/dist/api/keys/index.d.ts.map +1 -1
- package/dist/api/keys/index.js +63 -66
- package/dist/api/keys/index.js.map +1 -1
- package/dist/api/notifications/index.browser.js +40 -38
- package/dist/api/notifications/index.browser.js.map +1 -1
- package/dist/api/notifications/index.d.ts +339 -209
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/notifications/index.js +108 -60
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/oauth/index.d.ts +190 -78
- package/dist/api/oauth/index.d.ts.map +1 -1
- package/dist/api/oauth/index.js +290 -68
- package/dist/api/oauth/index.js.map +1 -1
- package/dist/api/organizations/index.browser.js +14 -14
- package/dist/api/organizations/index.browser.js.map +1 -1
- package/dist/api/organizations/index.d.ts +158 -134
- package/dist/api/organizations/index.d.ts.map +1 -1
- package/dist/api/organizations/index.js +18 -18
- package/dist/api/organizations/index.js.map +1 -1
- package/dist/api/parameters/index.browser.js +74 -53
- package/dist/api/parameters/index.browser.js.map +1 -1
- package/dist/api/parameters/index.d.ts +607 -513
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +205 -127
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/payments/index.d.ts +652 -449
- package/dist/api/payments/index.d.ts.map +1 -1
- package/dist/api/payments/index.js +159 -93
- package/dist/api/payments/index.js.map +1 -1
- package/dist/api/subscriptions/index.d.ts +1032 -762
- package/dist/api/subscriptions/index.d.ts.map +1 -1
- package/dist/api/subscriptions/index.js +166 -185
- package/dist/api/subscriptions/index.js.map +1 -1
- package/dist/api/users/index.browser.js +48 -71
- package/dist/api/users/index.browser.js.map +1 -1
- package/dist/api/users/index.d.ts +1297 -1109
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +454 -369
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.browser.js +17 -17
- package/dist/api/verifications/index.browser.js.map +1 -1
- package/dist/api/verifications/index.d.ts +169 -157
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/api/verifications/index.js +47 -95
- package/dist/api/verifications/index.js.map +1 -1
- package/dist/background/index.d.ts +0 -1
- package/dist/background/index.d.ts.map +1 -1
- package/dist/background/index.js.map +1 -1
- package/dist/background/index.workerd.js.map +1 -1
- package/dist/batch/index.d.ts +0 -1
- package/dist/batch/index.d.ts.map +1 -1
- package/dist/batch/index.js.map +1 -1
- package/dist/bin/index.js +1 -1
- package/dist/bin/index.js.map +1 -1
- package/dist/bucket/index.d.ts +27 -32
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/bucket/index.js +56 -26
- package/dist/bucket/index.js.map +1 -1
- package/dist/bucket/index.workerd.js +52 -24
- package/dist/bucket/index.workerd.js.map +1 -1
- package/dist/cache/core/index.d.ts +4 -6
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/core/index.js +4 -10
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cache/core/index.workerd.js +4 -10
- package/dist/cache/core/index.workerd.js.map +1 -1
- package/dist/cache/database/index.d.ts +22 -23
- package/dist/cache/database/index.d.ts.map +1 -1
- package/dist/cache/database/index.js +11 -20
- package/dist/cache/database/index.js.map +1 -1
- package/dist/cache/redis/index.d.ts +3 -4
- 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/captcha/index.d.ts.map +1 -1
- package/dist/captcha/index.js +4 -4
- package/dist/captcha/index.js.map +1 -1
- package/dist/cli/config/index.d.ts +0 -1
- package/dist/cli/config/index.d.ts.map +1 -1
- package/dist/cli/core/index.d.ts +244 -475
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +308 -383
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/devtools/index.d.ts +3 -9
- package/dist/cli/devtools/index.d.ts.map +1 -1
- package/dist/cli/devtools/index.js +3 -3
- package/dist/cli/devtools/index.js.map +1 -1
- package/dist/cli/i18n/index.d.ts +20 -39
- package/dist/cli/i18n/index.d.ts.map +1 -1
- package/dist/cli/i18n/index.js +51 -17
- package/dist/cli/i18n/index.js.map +1 -1
- package/dist/cli/platform/index.d.ts +89 -82
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +27 -33
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/cli/platform-lib/index.d.ts +383 -410
- package/dist/cli/platform-lib/index.d.ts.map +1 -1
- package/dist/cli/platform-lib/index.js +300 -258
- package/dist/cli/platform-lib/index.js.map +1 -1
- package/dist/cli/vendor/index.d.ts +17 -41
- package/dist/cli/vendor/index.d.ts.map +1 -1
- package/dist/cli/vendor/index.js +10 -13
- package/dist/cli/vendor/index.js.map +1 -1
- package/dist/command/index.d.ts +82 -194
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +160 -563
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +845 -859
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +787 -527
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +845 -859
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +845 -859
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +845 -859
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/crypto/index.browser.js +1 -1
- package/dist/crypto/index.browser.js.map +1 -1
- package/dist/crypto/index.d.ts +3 -4
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/crypto/index.js +6 -3
- package/dist/crypto/index.js.map +1 -1
- package/dist/datetime/index.d.ts +12 -2
- package/dist/datetime/index.d.ts.map +1 -1
- package/dist/datetime/index.js +6 -1
- package/dist/datetime/index.js.map +1 -1
- package/dist/email/brevo/index.d.ts +0 -1
- package/dist/email/brevo/index.d.ts.map +1 -1
- package/dist/email/brevo/index.js +4 -4
- package/dist/email/brevo/index.js.map +1 -1
- package/dist/email/cloudflare/index.d.ts +0 -1
- package/dist/email/cloudflare/index.d.ts.map +1 -1
- package/dist/email/cloudflare/index.js +2 -2
- package/dist/email/cloudflare/index.js.map +1 -1
- package/dist/email/core/index.d.ts +15 -7
- package/dist/email/core/index.d.ts.map +1 -1
- package/dist/email/core/index.js +14 -5
- package/dist/email/core/index.js.map +1 -1
- package/dist/email/core/index.workerd.js +5 -1
- package/dist/email/core/index.workerd.js.map +1 -1
- package/dist/email/smtp/index.d.ts +8 -9
- package/dist/email/smtp/index.d.ts.map +1 -1
- package/dist/email/smtp/index.js +702 -479
- package/dist/email/smtp/index.js.map +1 -1
- package/dist/fake/index.d.ts +1580 -1238
- package/dist/fake/index.d.ts.map +1 -1
- package/dist/fake/index.js +11728 -32131
- package/dist/fake/index.js.map +1 -1
- package/dist/lock/core/index.d.ts +13 -9
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/core/index.js +5 -5
- package/dist/lock/core/index.js.map +1 -1
- package/dist/lock/redis/index.d.ts +0 -1
- package/dist/lock/redis/index.d.ts.map +1 -1
- package/dist/lock/redis/index.js.map +1 -1
- package/dist/logger/index.d.ts +81 -69
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +123 -56
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts +36 -90
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +65 -70
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/core/index.browser.js +54 -40
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +140 -106
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +145 -150
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +144 -109
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.bun.js +64 -54
- package/dist/orm/postgres/index.bun.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +36 -76
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/orm/postgres/index.js +67 -57
- package/dist/orm/postgres/index.js.map +1 -1
- package/dist/queue/core/index.d.ts +62 -75
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/core/index.js +48 -71
- package/dist/queue/core/index.js.map +1 -1
- package/dist/queue/core/index.workerd.js +48 -71
- package/dist/queue/core/index.workerd.js.map +1 -1
- package/dist/queue/redis/index.d.ts +3 -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.browser.js.map +1 -1
- package/dist/react/auth/index.d.ts +7 -4
- package/dist/react/auth/index.d.ts.map +1 -1
- package/dist/react/auth/index.js.map +1 -1
- package/dist/react/core/index.d.ts +87 -5
- package/dist/react/core/index.d.ts.map +1 -1
- package/dist/react/core/index.js +170 -23
- package/dist/react/core/index.js.map +1 -1
- package/dist/react/form/index.d.ts +4 -6
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/form/index.js +107 -71
- package/dist/react/form/index.js.map +1 -1
- package/dist/react/head/index.browser.js.map +1 -1
- package/dist/react/head/index.d.ts +0 -1
- package/dist/react/head/index.d.ts.map +1 -1
- package/dist/react/head/index.js.map +1 -1
- package/dist/react/i18n/index.d.ts +47 -5
- package/dist/react/i18n/index.d.ts.map +1 -1
- package/dist/react/i18n/index.js +116 -12
- package/dist/react/i18n/index.js.map +1 -1
- package/dist/react/intro/index.d.ts +1 -4
- package/dist/react/intro/index.d.ts.map +1 -1
- package/dist/react/intro/index.js.map +1 -1
- package/dist/react/router/index.browser.js +188 -29
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +480 -372
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +261 -47
- package/dist/react/router/index.js.map +1 -1
- package/dist/react/sitemap/index.browser.js +35 -0
- package/dist/react/sitemap/index.browser.js.map +1 -0
- package/dist/react/sitemap/index.d.ts +91 -0
- package/dist/react/sitemap/index.d.ts.map +1 -0
- package/dist/react/sitemap/index.js +131 -0
- package/dist/react/sitemap/index.js.map +1 -0
- package/dist/react/testing/index.d.ts +4 -5
- package/dist/react/testing/index.d.ts.map +1 -1
- package/dist/react/testing/index.js +41 -15
- package/dist/react/testing/index.js.map +1 -1
- package/dist/react/testing/{chunk-BpyX8vjI.js → rolldown-runtime-Bl3dcgcQ.js} +1 -1
- package/dist/react/ui/index.d.ts +35 -34
- package/dist/react/ui/index.d.ts.map +1 -1
- package/dist/react/ui/index.js +12 -17
- package/dist/react/ui/index.js.map +1 -1
- package/dist/redis/index.bun.js +5 -5
- package/dist/redis/index.bun.js.map +1 -1
- package/dist/redis/index.d.ts +6 -7
- package/dist/redis/index.d.ts.map +1 -1
- package/dist/redis/index.js +6 -6
- package/dist/redis/index.js.map +1 -1
- package/dist/retry/index.d.ts +0 -1
- package/dist/retry/index.d.ts.map +1 -1
- package/dist/retry/index.js.map +1 -1
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +4 -12
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +9 -4
- package/dist/scheduler/index.js.map +1 -1
- package/dist/scheduler/index.workerd.js +9 -4
- package/dist/scheduler/index.workerd.js.map +1 -1
- package/dist/security/index.browser.js +30 -28
- package/dist/security/index.browser.js.map +1 -1
- package/dist/security/index.d.ts +113 -44
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +452 -37
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.browser.js +19 -19
- package/dist/server/auth/index.browser.js.map +1 -1
- package/dist/server/auth/index.d.ts +215 -187
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +1145 -86
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cookies/index.browser.js +103 -5
- package/dist/server/cookies/index.browser.js.map +1 -1
- package/dist/server/cookies/index.d.ts +86 -4
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/cookies/index.js +121 -8
- package/dist/server/cookies/index.js.map +1 -1
- package/dist/server/core/index.browser.js +22 -27
- package/dist/server/core/index.browser.js.map +1 -1
- package/dist/server/core/index.d.ts +134 -85
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +130 -118
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/cors/index.d.ts +9 -10
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/cors/index.js +14 -26
- package/dist/server/cors/index.js.map +1 -1
- package/dist/server/etag/index.d.ts +2 -3
- package/dist/server/etag/index.d.ts.map +1 -1
- package/dist/server/etag/index.js.map +1 -1
- package/dist/server/health/index.d.ts +18 -19
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/health/index.js +6 -6
- package/dist/server/health/index.js.map +1 -1
- package/dist/server/links/index.browser.js +15 -18
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.d.ts +66 -67
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +29 -32
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/metrics/index.d.ts +0 -1
- package/dist/server/metrics/index.d.ts.map +1 -1
- package/dist/server/metrics/index.js +10 -3
- package/dist/server/metrics/index.js.map +1 -1
- package/dist/server/proxy/index.d.ts +0 -1
- package/dist/server/proxy/index.d.ts.map +1 -1
- package/dist/server/proxy/index.js.map +1 -1
- package/dist/server/rate-limit/index.d.ts +8 -9
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.js +6 -12
- package/dist/server/rate-limit/index.js.map +1 -1
- package/dist/server/static/index.d.ts +0 -1
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/static/index.js.map +1 -1
- package/dist/server/swagger/index.d.ts +4 -4
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +37 -25
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +0 -1
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js.map +1 -1
- package/dist/system/index.browser.js.map +1 -1
- package/dist/system/index.d.ts +0 -1
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +2 -1
- package/dist/system/index.js.map +1 -1
- package/dist/system/index.workerd.js.map +1 -1
- package/dist/topic/core/index.d.ts +19 -20
- package/dist/topic/core/index.d.ts.map +1 -1
- package/dist/topic/core/index.js +8 -8
- package/dist/topic/core/index.js.map +1 -1
- package/dist/topic/redis/index.d.ts +3 -4
- 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/package.json +36 -36
- package/src/api/audits/__tests__/AuditJobs.spec.ts +83 -0
- package/src/api/audits/__tests__/AuditService.spec.ts +139 -1
- package/src/api/audits/controllers/AdminAuditController.ts +41 -41
- package/src/api/audits/entities/audits.ts +22 -22
- package/src/api/audits/index.ts +6 -1
- package/src/api/audits/jobs/AuditJobs.ts +29 -0
- package/src/api/audits/parameters/AuditParameters.ts +51 -0
- package/src/api/audits/primitives/$audit.ts +24 -0
- package/src/api/audits/schemas/auditQuerySchema.ts +13 -13
- package/src/api/audits/schemas/createAuditSchema.ts +18 -18
- package/src/api/audits/services/AuditService.ts +79 -7
- package/src/api/files/__tests__/FileController.spec.ts +5 -5
- package/src/api/files/__tests__/FileJobs.spec.ts +6 -0
- package/src/api/files/controllers/FileController.ts +25 -25
- package/src/api/files/entities/files.ts +15 -15
- package/src/api/files/schemas/fileCreatorSummarySchema.ts +7 -7
- package/src/api/files/schemas/fileQuerySchema.ts +9 -9
- package/src/api/files/schemas/fileResourceSchema.ts +7 -9
- package/src/api/files/schemas/storageStatsSchema.ts +13 -13
- package/src/api/jobs/__tests__/$job-hardening.spec.ts +289 -0
- package/src/api/jobs/__tests__/$job.spec.ts +18 -18
- package/src/api/jobs/controllers/AdminJobController.ts +8 -8
- package/src/api/jobs/entities/jobExecutionEntity.ts +29 -19
- package/src/api/jobs/providers/JobProvider.ts +128 -12
- package/src/api/jobs/providers/JobQueueProvider.ts +2 -2
- package/src/api/jobs/schemas/jobConfigAtom.ts +22 -22
- package/src/api/jobs/schemas/jobExecutionQuerySchema.ts +6 -6
- package/src/api/jobs/schemas/jobExecutionResourceSchema.ts +11 -15
- package/src/api/jobs/schemas/jobRegistrationSchema.ts +20 -19
- package/src/api/jobs/schemas/triggerJobSchema.ts +3 -3
- package/src/api/jobs/services/JobService.ts +6 -6
- package/src/api/keys/__tests__/ApiKeyService.spec.ts +2 -2
- package/src/api/keys/controllers/AdminApiKeyController.ts +10 -10
- package/src/api/keys/entities/apiKeyEntity.ts +15 -15
- package/src/api/keys/schemas/adminApiKeyQuerySchema.ts +4 -4
- package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +15 -15
- package/src/api/keys/schemas/createApiKeyBodySchema.ts +5 -5
- package/src/api/keys/schemas/createApiKeyResponseSchema.ts +9 -9
- package/src/api/keys/schemas/listApiKeyResponseSchema.ts +13 -13
- package/src/api/keys/schemas/revokeApiKeyParamsSchema.ts +3 -3
- package/src/api/keys/schemas/revokeApiKeyResponseSchema.ts +3 -3
- package/src/api/notifications/__tests__/AlephaApiNotifications.spec.ts +2 -2
- package/src/api/notifications/controllers/AdminNotificationController.ts +38 -14
- package/src/api/notifications/jobs/NotificationJobs.ts +7 -6
- package/src/api/notifications/primitives/$notification.ts +43 -4
- package/src/api/notifications/schemas/notificationContactPreferencesSchema.ts +4 -4
- package/src/api/notifications/schemas/notificationContactSchema.ts +7 -7
- package/src/api/notifications/schemas/notificationDetailResourceSchema.ts +9 -11
- package/src/api/notifications/schemas/notificationPayloadSchema.ts +11 -9
- package/src/api/notifications/schemas/notificationQuerySchema.ts +6 -6
- package/src/api/notifications/schemas/notificationResourceSchema.ts +14 -14
- package/src/api/notifications/services/NotificationSenderService.ts +38 -2
- package/src/api/oauth/__tests__/OAuthClientService.spec.ts +42 -0
- package/src/api/oauth/__tests__/OAuthController.spec.ts +128 -0
- package/src/api/oauth/controllers/OAuthController.ts +132 -12
- package/src/api/oauth/entities/oauthClientEntity.ts +29 -12
- package/src/api/oauth/helpers/oauthMetadata.ts +1 -0
- package/src/api/oauth/helpers/oidcMetadata.ts +19 -0
- package/src/api/oauth/index.ts +1 -0
- package/src/api/oauth/schemas/authorizeDecisionBodySchema.ts +12 -11
- package/src/api/oauth/schemas/authorizeQuerySchema.ts +12 -10
- package/src/api/oauth/schemas/registerClientBodySchema.ts +10 -11
- package/src/api/oauth/schemas/tokenRequestBodySchema.ts +9 -8
- package/src/api/oauth/services/OAuthClientService.ts +228 -15
- package/src/api/organizations/controllers/AdminOrganizationController.ts +8 -8
- package/src/api/organizations/entities/organizations.ts +6 -6
- package/src/api/organizations/schemas/createOrganizationSchema.ts +5 -5
- package/src/api/organizations/schemas/organizationQuerySchema.ts +4 -4
- package/src/api/organizations/schemas/updateOrganizationSchema.ts +1 -2
- package/src/api/parameters/__tests__/$parameter.spec.ts +229 -50
- package/src/api/parameters/controllers/AdminParameterController.ts +9 -12
- package/src/api/parameters/entities/parameters.ts +29 -16
- package/src/api/parameters/primitives/$parameter.ts +3 -3
- package/src/api/parameters/schemas/activateParameterBodySchema.ts +4 -4
- package/src/api/parameters/schemas/createParameterVersionBodySchema.ts +15 -15
- package/src/api/parameters/schemas/parameterCreatorSummarySchema.ts +7 -7
- package/src/api/parameters/schemas/parameterCurrentResponseSchema.ts +7 -7
- package/src/api/parameters/schemas/parameterHistoryResponseSchema.ts +3 -3
- package/src/api/parameters/schemas/parameterNameParamSchema.ts +2 -3
- package/src/api/parameters/schemas/parameterNamesResponseSchema.ts +3 -3
- package/src/api/parameters/schemas/parameterResponseSchema.ts +3 -3
- package/src/api/parameters/schemas/parameterStatusSchema.ts +2 -2
- package/src/api/parameters/schemas/parameterTreeNodeSchema.ts +6 -6
- package/src/api/parameters/schemas/parameterVersionParamSchema.ts +5 -6
- package/src/api/parameters/schemas/parameterVersionResponseSchema.ts +3 -3
- package/src/api/parameters/schemas/rollbackParameterBodySchema.ts +6 -9
- package/src/api/parameters/services/ParameterProvider.ts +152 -65
- package/src/api/payments/controllers/AdminPaymentController.ts +7 -7
- package/src/api/payments/controllers/MockCheckoutController.ts +79 -28
- package/src/api/payments/controllers/PaymentController.ts +4 -4
- package/src/api/payments/entities/paymentIntents.ts +11 -11
- package/src/api/payments/entities/paymentMethods.ts +11 -11
- package/src/api/payments/entities/refunds.ts +9 -9
- package/src/api/payments/providers/PaymentProvider.ts +18 -0
- package/src/api/payments/schemas/intentSchemas.ts +25 -25
- package/src/api/payments/schemas/paymentMethodSchemas.ts +3 -3
- package/src/api/payments/services/PaymentService.ts +60 -3
- package/src/api/subscriptions/__tests__/SubscriptionService.spec.ts +14 -0
- package/src/api/subscriptions/controllers/AdminSubscriptionController.ts +11 -11
- package/src/api/subscriptions/controllers/SubscriptionController.ts +5 -4
- package/src/api/subscriptions/entities/subscriptionEvents.ts +15 -15
- package/src/api/subscriptions/entities/subscriptions.ts +22 -22
- package/src/api/subscriptions/notifications/SubscriptionNotifications.ts +22 -22
- package/src/api/subscriptions/schemas/cancelSubscriptionSchema.ts +4 -4
- package/src/api/subscriptions/schemas/changePlanSchema.ts +5 -5
- package/src/api/subscriptions/schemas/createSubscriptionSchema.ts +14 -7
- package/src/api/subscriptions/schemas/entitlementsSchema.ts +10 -10
- package/src/api/subscriptions/schemas/mrrSchema.ts +9 -9
- package/src/api/subscriptions/schemas/planDefinitionSchema.ts +21 -21
- package/src/api/subscriptions/schemas/planResourceSchema.ts +19 -19
- package/src/api/subscriptions/schemas/subscriptionQuerySchema.ts +8 -8
- package/src/api/subscriptions/schemas/subscriptionSettingsSchema.ts +7 -7
- package/src/api/subscriptions/schemas/subscriptionStatsSchema.ts +17 -17
- package/src/api/subscriptions/services/SubscriptionConfig.ts +2 -2
- package/src/api/users/__tests__/ApiKeys-integration.spec.ts +11 -11
- package/src/api/users/atoms/realmAuthSettingsAtom.ts +111 -119
- package/src/api/users/controllers/AdminIdentityController.ts +29 -19
- package/src/api/users/controllers/AdminSessionController.ts +37 -27
- package/src/api/users/controllers/AdminUserController.ts +75 -53
- package/src/api/users/controllers/MySessionController.ts +125 -0
- package/src/api/users/controllers/RealmController.ts +9 -9
- package/src/api/users/controllers/UserController.ts +55 -55
- package/src/api/users/entities/identities.ts +8 -8
- package/src/api/users/entities/sessions.ts +17 -17
- package/src/api/users/entities/users.ts +17 -17
- package/src/api/users/index.ts +3 -0
- package/src/api/users/notifications/UserNotifications.ts +76 -24
- package/src/api/users/primitives/$realm.ts +12 -0
- package/src/api/users/schemas/completePasswordResetRequestSchema.ts +8 -12
- package/src/api/users/schemas/completeRegistrationRequestSchema.ts +17 -20
- package/src/api/users/schemas/createUserSchema.ts +2 -2
- package/src/api/users/schemas/identityQuerySchema.ts +4 -4
- package/src/api/users/schemas/identityResourceSchema.ts +3 -2
- package/src/api/users/schemas/loginSchema.ts +4 -4
- package/src/api/users/schemas/passwordResetIntentResponseSchema.ts +6 -8
- package/src/api/users/schemas/realmConfigSchema.ts +10 -10
- package/src/api/users/schemas/registerQuerySchema.ts +6 -6
- package/src/api/users/schemas/registerRequestSchema.ts +21 -43
- package/src/api/users/schemas/registerResponseSchema.ts +2 -2
- package/src/api/users/schemas/registerSchema.ts +13 -31
- package/src/api/users/schemas/registrationIntentResponseSchema.ts +19 -23
- package/src/api/users/schemas/resetPasswordSchema.ts +10 -17
- package/src/api/users/schemas/sessionQuerySchema.ts +3 -3
- package/src/api/users/schemas/sessionResourceSchema.ts +25 -25
- package/src/api/users/schemas/updateUserSchema.ts +3 -4
- package/src/api/users/schemas/userQuerySchema.ts +7 -7
- package/src/api/users/services/RegistrationService.ts +25 -11
- package/src/api/users/services/UserService.ts +12 -6
- package/src/api/verifications/__tests__/CodeVerification.spec.ts +63 -101
- package/src/api/verifications/__tests__/LinkVerification.spec.ts +23 -92
- package/src/api/verifications/controllers/VerificationController.ts +13 -27
- package/src/api/verifications/entities/verifications.ts +13 -14
- package/src/api/verifications/schemas/requestVerificationCodeResponseSchema.ts +17 -14
- package/src/api/verifications/schemas/validateVerificationCodeResponseSchema.ts +9 -10
- package/src/api/verifications/schemas/verificationSettingsSchema.ts +65 -66
- package/src/api/verifications/schemas/verificationTypeEnumSchema.ts +2 -2
- package/src/api/verifications/services/VerificationService.ts +12 -0
- package/src/background/__tests__/BackgroundTaskProvider.spec.ts +36 -0
- package/src/batch/__tests__/$batch.spec.ts +22 -22
- package/src/batch/__tests__/startup-buffering.spec.ts +9 -9
- package/src/bin/index.ts +1 -1
- package/src/bucket/__tests__/TenantScopedBucket.spec.ts +60 -0
- package/src/bucket/providers/LocalFileStorageProvider.ts +14 -6
- package/src/bucket/providers/MemoryFileStorageProvider.ts +18 -7
- package/src/bucket/providers/R2FileStorageProvider.ts +14 -6
- package/src/bucket/providers/S3FileStorageProvider.ts +31 -15
- package/src/cache/core/primitives/$cache.ts +7 -10
- package/src/cache/database/entities/cacheEntries.ts +16 -27
- package/src/cache/database/providers/DatabaseCacheProvider.ts +15 -13
- package/src/cache/redis/providers/RedisCacheProvider.ts +6 -6
- package/src/captcha/providers/TurnstileCaptchaProvider.ts +4 -4
- package/src/cli/core/__tests__/BuildCloudflareTask.spec.ts +178 -0
- package/src/cli/core/__tests__/BuildDockerTask.spec.ts +0 -2
- package/src/cli/core/__tests__/DbCommand.spec.ts +108 -0
- package/src/cli/core/atoms/appEntryOptions.ts +5 -5
- package/src/cli/core/atoms/buildOptions.ts +76 -88
- package/src/cli/core/atoms/changelogOptions.ts +3 -3
- package/src/cli/core/atoms/devOptions.ts +3 -3
- package/src/cli/core/commands/build.ts +36 -49
- package/src/cli/core/commands/db.ts +171 -83
- package/src/cli/core/commands/dev.ts +8 -8
- package/src/cli/core/commands/gen/changelog.ts +12 -14
- package/src/cli/core/commands/gen/env.ts +6 -6
- package/src/cli/core/commands/gen/openapi.ts +6 -6
- package/src/cli/core/commands/init.ts +28 -33
- package/src/cli/core/commands/pack.ts +10 -10
- package/src/cli/core/commands/root.ts +7 -8
- package/src/cli/core/commands/test.ts +17 -20
- package/src/cli/core/index.ts +0 -3
- package/src/cli/core/tasks/BuildCloudflareTask.ts +138 -245
- package/src/cli/core/tasks/BuildPrerenderTask.ts +44 -7
- package/src/cli/core/templates/apiHelloResponseSchemaTs.ts +4 -4
- package/src/cli/devtools/atoms/devtoolsOptions.ts +6 -6
- package/src/cli/i18n/__tests__/I18nCheckService.spec.ts +48 -0
- package/src/cli/i18n/atoms/i18nOptions.ts +8 -8
- package/src/cli/i18n/services/I18nCheckService.ts +65 -11
- package/src/cli/platform/commands/SecretsCommand.ts +24 -25
- package/src/cli/platform/commands/platform.ts +40 -46
- package/src/cli/platform/index.ts +1 -1
- package/src/cli/platform-lib/__tests__/CloudflareAdapter.spec.ts +0 -4
- package/src/cli/platform-lib/__tests__/PlatformInspector.spec.ts +10 -3
- package/src/cli/platform-lib/__tests__/VercelAdapter.spec.ts +0 -2
- package/src/cli/platform-lib/adapters/CloudflareAdapter.ts +141 -50
- package/src/cli/platform-lib/adapters/VercelAdapter.ts +6 -11
- package/src/cli/platform-lib/atoms/platformOptions.ts +46 -25
- package/src/cli/platform-lib/schemas/cloudflare.ts +87 -87
- package/src/cli/platform-lib/schemas/platform.ts +51 -51
- package/src/cli/platform-lib/schemas/vercel.ts +28 -28
- package/src/cli/platform-lib/services/CloudflareApi.ts +5 -5
- package/src/cli/platform-lib/services/VercelApi.ts +4 -4
- package/src/cli/platform-lib/services/VercelCli.ts +6 -15
- package/src/cli/platform-lib/services/WranglerApi.ts +6 -15
- package/src/cli/vendor/atoms/vendorOptions.ts +9 -9
- package/src/cli/vendor/commands/VendorCommand.ts +11 -12
- package/src/command/__tests__/$command.spec.ts +82 -83
- package/src/command/__tests__/Asker.spec.ts +6 -13
- package/src/command/__tests__/CliProvider.spec.ts +136 -149
- package/src/command/__tests__/Runner.spec.ts +86 -110
- package/src/command/helpers/Asker.ts +23 -58
- package/src/command/helpers/Runner.ts +34 -110
- package/src/command/index.ts +4 -9
- package/src/command/primitives/$command.ts +10 -10
- package/src/command/providers/CliProvider.ts +183 -161
- package/src/core/Alepha.ts +62 -13
- package/src/core/__tests__/$atom.spec.ts +52 -3
- package/src/core/__tests__/$computed.spec.ts +129 -0
- package/src/core/__tests__/$env.spec.ts +13 -13
- package/src/core/__tests__/$inject.spec.ts +4 -4
- package/src/core/__tests__/$module.spec.ts +1 -1
- package/src/core/__tests__/Alepha-graph.spec.ts +1 -1
- package/src/core/__tests__/Alepha-parseEnv.spec.ts +32 -32
- package/src/core/__tests__/Alepha-start.spec.ts +3 -3
- package/src/core/__tests__/CodecManager.spec.ts +113 -94
- package/src/core/__tests__/KeylessJsonSchemaCodec.spec.ts +138 -138
- package/src/core/__tests__/SchemaValidator.spec.ts +43 -44
- package/src/core/__tests__/StateManager.persist.browser.spec.ts +87 -0
- package/src/core/__tests__/StateManager.spec.ts +423 -0
- package/src/core/__tests__/TypeBox-usecases.spec.ts +8 -8
- package/src/core/__tests__/TypeProvider.spec.ts +314 -309
- package/src/core/__tests__/dump.spec.ts +6 -6
- package/src/core/__tests__/pagination.spec.ts +4 -4
- package/src/core/__tests__/scoped-after-start.spec.ts +43 -0
- package/src/core/errors/TypeBoxError.ts +10 -4
- package/src/core/helpers/FileLike.ts +5 -5
- package/src/core/helpers/coerceStrings.ts +70 -0
- package/src/core/helpers/jsonSchemaToZod.ts +112 -0
- package/src/core/index.shared.ts +4 -1
- package/src/core/primitives/$atom.ts +95 -27
- package/src/core/primitives/$computed.ts +148 -0
- package/src/core/primitives/$env.ts +5 -5
- package/src/core/primitives/$state.ts +1 -1
- package/src/core/providers/AlsProvider.ts +26 -0
- package/src/core/providers/CodecManager.ts +1 -2
- package/src/core/providers/JsonSchemaCodec.ts +1 -2
- package/src/core/providers/KeylessJsonSchemaCodec.ts +82 -57
- package/src/core/providers/SchemaValidator.ts +48 -158
- package/src/core/providers/StateManager.ts +383 -9
- package/src/core/providers/TypeProvider.ts +80 -734
- package/src/core/providers/ZodProvider.ts +380 -0
- package/src/core/providers/zodAugment.ts +69 -0
- package/src/core/schemas/pageQuerySchema.ts +19 -21
- package/src/core/schemas/pageSchema.ts +47 -57
- package/src/crypto/__tests__/SecretProvider.spec.ts +31 -0
- package/src/crypto/providers/SecretProvider.ts +16 -10
- package/src/datetime/primitives/$throttle.ts +6 -1
- package/src/email/brevo/providers/BrevoEmailProvider.ts +4 -4
- package/src/email/cloudflare/providers/CloudflareEmailProvider.ts +6 -6
- package/src/email/core/index.ts +7 -2
- package/src/email/core/primitives/$email.ts +5 -1
- package/src/email/core/providers/LocalEmailProvider.ts +5 -5
- package/src/email/smtp/providers/NodemailerEmailProvider.ts +41 -52
- package/src/fake/__tests__/FakeProvider.spec.ts +110 -110
- package/src/fake/__tests__/keyName.example.ts +21 -21
- package/src/fake/__tests__/keyName.spec.ts +41 -41
- package/src/fake/__tests__/module.example.ts +8 -8
- package/src/fake/providers/FakeProvider.ts +122 -121
- package/src/lock/core/__tests__/lock-mutual-exclusion.spec.ts +44 -0
- package/src/lock/core/index.ts +1 -0
- package/src/lock/core/primitives/$lock.ts +13 -6
- package/src/logger/__tests__/CliFormatterProvider.spec.ts +76 -0
- package/src/logger/__tests__/Logger.spec.ts +49 -0
- package/src/logger/index.ts +25 -18
- package/src/logger/providers/CliFormatterProvider.ts +75 -0
- package/src/logger/schemas/logEntrySchema.ts +10 -10
- package/src/logger/services/Logger.ts +18 -0
- package/src/mcp/__tests__/$prompt.spec.ts +21 -23
- package/src/mcp/__tests__/$tool.spec.ts +22 -22
- package/src/mcp/__tests__/McpServerProvider.spec.ts +82 -11
- package/src/mcp/__tests__/StreamableHttpMcpTransport.spec.ts +2 -2
- package/src/mcp/__tests__/integration.spec.ts +33 -33
- package/src/mcp/primitives/$prompt.ts +11 -9
- package/src/mcp/primitives/$tool.ts +27 -86
- package/src/mcp/providers/McpServerProvider.ts +55 -0
- package/src/mcp/transports/StreamableHttpMcpTransport.ts +7 -7
- package/src/orm/__tests__/$repository-tests.ts +133 -27
- package/src/orm/__tests__/$repository.spec.ts +23 -0
- package/src/orm/__tests__/$transactional-tests.ts +4 -4
- package/src/orm/__tests__/ModelBuilder-tests.ts +28 -28
- package/src/orm/__tests__/ModelBuilder.spec.ts +124 -106
- package/src/orm/__tests__/QueryManager.spec.ts +5 -5
- package/src/orm/__tests__/delete-returning-tests.ts +11 -11
- package/src/orm/__tests__/deletedAt-tests.ts +3 -3
- package/src/orm/__tests__/enums.spec.ts +29 -25
- package/src/orm/__tests__/execute-tests.ts +8 -8
- package/src/orm/__tests__/fixtures/bigEntitySchema.ts +48 -48
- package/src/orm/__tests__/fixtures/userEntitySchema.ts +6 -6
- package/src/orm/__tests__/joins-tests.ts +30 -30
- package/src/orm/__tests__/organization-tests.ts +105 -3
- package/src/orm/__tests__/organization.spec.ts +46 -0
- package/src/orm/__tests__/orm-errors.spec.ts +10 -10
- package/src/orm/__tests__/orm-next-tests.ts +29 -29
- package/src/orm/__tests__/orm-showcase-tests.ts +9 -9
- package/src/orm/__tests__/primaryKey.spec.ts +4 -4
- package/src/orm/__tests__/query-date-encoding-tests.ts +17 -17
- package/src/orm/__tests__/ref-auto-onDelete.spec.ts +14 -14
- package/src/orm/__tests__/references.spec.ts +7 -7
- package/src/orm/__tests__/security.spec.ts +17 -17
- package/src/orm/__tests__/string-operators-tests.ts +5 -5
- package/src/orm/__tests__/timestamps-tests.ts +14 -14
- package/src/orm/__tests__/validation-tests.ts +5 -5
- package/src/orm/core/__tests__/BunSqliteProvider.bun.spec.ts +8 -8
- package/src/orm/core/constants/PG_SYMBOLS.ts +13 -1
- package/src/orm/core/entities/alephaSequences.ts +8 -8
- package/src/orm/core/helpers/pgAttr.ts +4 -4
- package/src/orm/core/primitives/$entity.ts +10 -6
- package/src/orm/core/providers/DatabaseTypeProvider.ts +46 -53
- package/src/orm/core/providers/drivers/BunSqliteProvider.ts +8 -8
- package/src/orm/core/providers/drivers/CloudflareD1Provider.ts +3 -5
- package/src/orm/core/providers/drivers/NodeSqliteProvider.ts +8 -8
- package/src/orm/core/schemas/databaseEnvSchema.ts +4 -4
- package/src/orm/core/schemas/insertSchema.ts +14 -18
- package/src/orm/core/schemas/legacyIdSchema.ts +2 -2
- package/src/orm/core/schemas/updateSchema.ts +10 -16
- package/src/orm/core/services/PgRelationManager.ts +2 -2
- package/src/orm/core/services/QueryManager.ts +13 -2
- package/src/orm/core/services/Repository.ts +88 -33
- package/src/orm/core/services/SqliteModelBuilder.ts +38 -45
- package/src/orm/postgres/__tests__/BunPostgresProvider.bun.spec.ts +4 -4
- package/src/orm/postgres/providers/CloudflareHyperdriveProvider.ts +4 -6
- package/src/orm/postgres/schemas/postgresEnvSchema.ts +6 -6
- package/src/orm/postgres/services/PostgresModelBuilder.ts +127 -114
- package/src/queue/core/__tests__/$consumer.spec.ts +4 -4
- package/src/queue/core/__tests__/WorkerProvider.spec.ts +4 -4
- package/src/queue/core/__tests__/shared.ts +6 -6
- package/src/queue/core/primitives/$consumer.ts +5 -5
- package/src/queue/core/primitives/$queue.ts +44 -61
- package/src/queue/core/providers/CloudflareQueueProvider.ts +6 -0
- package/src/queue/core/providers/WorkerProvider.ts +17 -14
- package/src/queue/redis/providers/RedisQueueProvider.ts +3 -3
- package/src/react/core/__tests__/ErrorBoundary.browser.spec.tsx +92 -0
- package/src/react/core/__tests__/Router.spec.tsx +4 -4
- package/src/react/core/__tests__/useComputed.browser.spec.tsx +192 -0
- package/src/react/core/__tests__/useQuery.browser.spec.tsx +48 -0
- package/src/react/core/__tests__/useSelector.browser.spec.tsx +105 -0
- package/src/react/core/__tests__/useStore.browser.spec.tsx +113 -0
- package/src/react/core/components/ErrorBoundary.tsx +42 -0
- package/src/react/core/hooks/useAction.ts +56 -19
- package/src/react/core/hooks/useComputed.ts +91 -0
- package/src/react/core/hooks/useSelector.ts +67 -0
- package/src/react/core/hooks/useStore.ts +36 -17
- package/src/react/core/index.ts +3 -0
- package/src/react/core/utils/shallowEqual.ts +36 -0
- package/src/react/form/__tests__/FormModel-submit-loading.spec.ts +71 -0
- package/src/react/form/__tests__/form-submitting-reactive.browser.spec.tsx +96 -0
- package/src/react/form/__tests__/useForm.browser.spec.tsx +54 -54
- package/src/react/form/errors/FormValidationError.ts +0 -2
- package/src/react/form/hooks/useForm.ts +19 -4
- package/src/react/form/hooks/useFormQuerySync.ts +0 -0
- package/src/react/form/services/FormModel.ts +124 -86
- package/src/react/form/services/parseField.ts +66 -27
- package/src/react/i18n/__tests__/I18nProvider.spec.ts +89 -0
- package/src/react/i18n/__tests__/Localize.spec.tsx +1 -1
- package/src/react/i18n/__tests__/locale-routing.spec.ts +107 -0
- package/src/react/i18n/providers/I18nProvider.ts +173 -14
- package/src/react/router/__tests__/$page.browser.spec.tsx +19 -19
- package/src/react/router/__tests__/$page.spec.tsx +21 -21
- package/src/react/router/__tests__/ReactBrowserProvider.browser.spec.ts +87 -1
- package/src/react/router/__tests__/RouterLocaleProvider.spec.ts +127 -0
- package/src/react/router/atoms/ssrManifestAtom.ts +16 -16
- package/src/react/router/components/NestedView.tsx +11 -3
- package/src/react/router/hooks/useQueryParams.ts +1 -1
- package/src/react/router/index.browser.ts +4 -0
- package/src/react/router/index.shared.ts +1 -0
- package/src/react/router/index.ts +9 -0
- package/src/react/router/primitives/$page.ts +2 -2
- package/src/react/router/providers/ReactBrowserProvider.ts +64 -13
- package/src/react/router/providers/ReactBrowserRouterProvider.ts +15 -1
- package/src/react/router/providers/ReactPageProvider.ts +38 -13
- package/src/react/router/providers/ReactServerProvider.ts +105 -16
- package/src/react/router/providers/RootComponentsProvider.ts +13 -0
- package/src/react/router/providers/RouterLocaleProvider.ts +125 -0
- package/src/react/router/providers/__tests__/RootComponentsProvider.spec.ts +15 -0
- package/src/react/router/providers/__tests__/rootComponents.ssr.browser.spec.tsx +67 -0
- package/src/react/sitemap/__tests__/$sitemap.spec.ts +131 -0
- package/src/react/sitemap/index.browser.ts +21 -0
- package/src/react/sitemap/index.ts +25 -0
- package/src/react/sitemap/primitives/$sitemap.browser.ts +26 -0
- package/src/react/sitemap/primitives/$sitemap.ts +196 -0
- package/src/react/ui/atoms/uiAtom.ts +6 -6
- package/src/react/ui/atoms/uiThemeListAtom.ts +7 -7
- package/src/react/ui/hooks/useColorMode.ts +11 -4
- package/src/react/ui/services/SchemaControl.ts +4 -4
- package/src/redis/providers/BunRedisProvider.ts +19 -11
- package/src/redis/providers/NodeRedisProvider.ts +3 -3
- package/src/scheduler/primitives/$scheduler.ts +21 -8
- package/src/security/__tests__/assertRealmScope.spec.ts +29 -0
- package/src/security/atoms/currentTenantAtom.ts +6 -6
- package/src/security/atoms/currentUserAtom.ts +2 -2
- package/src/security/primitives/$issuer.ts +24 -2
- package/src/security/providers/JwtProvider.ts +100 -0
- package/src/security/providers/SecurityProvider.ts +43 -2
- package/src/security/schemas/permissionSchema.ts +19 -19
- package/src/security/schemas/roleSchema.ts +22 -28
- package/src/security/schemas/userAccountInfoSchema.ts +47 -37
- package/src/server/auth/__tests__/appleClientSecret.spec.ts +34 -0
- package/src/server/auth/__tests__/federationRedirectReplay.spec.ts +44 -0
- package/src/server/auth/helpers/appleClientSecret.ts +24 -0
- package/src/server/auth/helpers/jtiReplayGuard.ts +41 -0
- package/src/server/auth/helpers/safeRedirectPath.ts +19 -0
- package/src/server/auth/index.ts +1 -0
- package/src/server/auth/primitives/$auth.ts +6 -6
- package/src/server/auth/primitives/$authApple.ts +10 -10
- package/src/server/auth/primitives/$authFacebook.ts +10 -10
- package/src/server/auth/primitives/$authFranceConnect.ts +10 -10
- package/src/server/auth/primitives/$authGithub.ts +10 -10
- package/src/server/auth/primitives/$authGoogle.ts +10 -10
- package/src/server/auth/primitives/$authMicrosoft.ts +14 -14
- package/src/server/auth/providers/ServerAuthProvider.ts +67 -52
- package/src/server/auth/schemas/authenticationProviderSchema.ts +9 -12
- package/src/server/auth/schemas/tokenResponseSchema.ts +2 -2
- package/src/server/auth/schemas/tokensSchema.ts +16 -16
- package/src/server/auth/schemas/userinfoResponseSchema.ts +3 -3
- package/src/server/cookies/__tests__/AtomCookieBinding.spec.ts +80 -0
- package/src/server/cookies/__tests__/AtomCookiePersistence.browser.spec.ts +169 -0
- package/src/server/cookies/__tests__/AtomCookiePersistence.spec.ts +294 -0
- package/src/server/cookies/__tests__/ServerCookiesProvider.spec.ts +82 -12
- package/src/server/cookies/index.browser.ts +4 -1
- package/src/server/cookies/index.ts +8 -1
- package/src/server/cookies/primitives/$cookie.browser.ts +1 -1
- package/src/server/cookies/primitives/$cookie.ts +16 -0
- package/src/server/cookies/providers/AtomCookiePersistence.browser.ts +133 -0
- package/src/server/cookies/providers/AtomCookiePersistence.ts +148 -0
- package/src/server/cookies/providers/ServerCookiesProvider.ts +32 -4
- package/src/server/cookies/services/CookieParser.ts +6 -1
- package/src/server/core/__tests__/$action.spec.ts +13 -13
- package/src/server/core/__tests__/$middleware.spec.ts +10 -10
- package/src/server/core/__tests__/$route.spec.ts +9 -9
- package/src/server/core/__tests__/$sse.spec.ts +26 -26
- package/src/server/core/__tests__/BunHttpServerProvider.bun.spec.ts +6 -6
- package/src/server/core/__tests__/HttpClient.spec.ts +2 -2
- package/src/server/core/__tests__/NodeHttpServerProvider.spec.ts +15 -3
- package/src/server/core/__tests__/ServerBodyParserProvider.spec.ts +14 -14
- package/src/server/core/__tests__/ServerMultipartProvider.spec.ts +33 -33
- package/src/server/core/__tests__/ServerRouterProvider-errorHandler.spec.ts +5 -1
- package/src/server/core/__tests__/ServerRouterProvider-getRoutes.spec.ts +25 -25
- package/src/server/core/__tests__/ServerRouterProvider-serializationError.spec.ts +9 -5
- package/src/server/core/__tests__/ServerRouterProvider-validationError.spec.ts +56 -24
- package/src/server/core/errors/ValidationError.ts +6 -3
- package/src/server/core/helpers/isMultipart.ts +2 -1
- package/src/server/core/index.ts +5 -2
- package/src/server/core/interfaces/ServerRequest.ts +14 -14
- package/src/server/core/primitives/$action.ts +26 -36
- package/src/server/core/primitives/$route.ts +27 -0
- package/src/server/core/primitives/$sse.ts +3 -3
- package/src/server/core/providers/BunHttpServerProvider.ts +8 -9
- package/src/server/core/providers/NodeHttpServerProvider.ts +8 -9
- package/src/server/core/providers/ServerBodyParserProvider.ts +20 -12
- package/src/server/core/providers/ServerCompressProvider.ts +9 -10
- package/src/server/core/providers/ServerHelmetProvider.ts +26 -27
- package/src/server/core/providers/ServerMultipartProvider.ts +19 -19
- package/src/server/core/providers/ServerRouterProvider.ts +44 -15
- package/src/server/core/schemas/errorSchema.ts +20 -25
- package/src/server/core/schemas/okSchema.ts +9 -14
- package/src/server/core/services/HttpClient.ts +13 -1
- package/src/server/core/services/ServerRequestParser.ts +6 -6
- package/src/server/cors/providers/ServerCorsProvider.ts +26 -28
- package/src/server/health/schemas/healthSchema.ts +6 -6
- package/src/server/links/__tests__/$remote.spec.ts +3 -3
- package/src/server/links/__tests__/BatchEndpoint.spec.ts +9 -9
- package/src/server/links/__tests__/LinkProvider.spec.ts +9 -9
- package/src/server/links/__tests__/ServerLinksProvider.spec.ts +23 -23
- package/src/server/links/__tests__/fixtures/CrudApp.ts +21 -21
- package/src/server/links/atoms/apiLinksAtom.ts +2 -2
- package/src/server/links/atoms/linkOptionsAtom.ts +6 -6
- package/src/server/links/primitives/$remote.ts +3 -3
- package/src/server/links/providers/LinkProvider.ts +3 -3
- package/src/server/links/providers/ServerLinksProvider.ts +20 -20
- package/src/server/links/schemas/apiLinksResponseSchema.ts +23 -23
- package/src/server/proxy/__tests__/$proxy.spec.ts +9 -9
- package/src/server/proxy/providers/ServerProxyProvider.ts +5 -0
- package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +18 -20
- package/src/server/swagger/__tests__/$swagger.spec.ts +91 -94
- package/src/server/swagger/__tests__/ui.spec.ts +3 -3
- package/src/server/swagger/providers/ServerSwaggerProvider.ts +66 -43
- package/src/system/__tests__/NodeShellProvider.spec.ts +46 -0
- package/src/system/providers/NodeShellProvider.ts +4 -1
- package/src/topic/core/__tests__/$subscriber.spec.ts +4 -4
- package/src/topic/core/__tests__/shared.ts +8 -8
- package/src/topic/core/primitives/$subscriber.ts +5 -5
- package/src/topic/core/primitives/$topic.ts +14 -14
- package/src/topic/redis/providers/RedisTopicProvider.ts +3 -3
- package/dist/container/core/index.d.ts +0 -236
- package/dist/container/core/index.d.ts.map +0 -1
- package/dist/container/core/index.js +0 -231
- package/dist/container/core/index.js.map +0 -1
- package/dist/container/core/index.workerd.js +0 -192
- package/dist/container/core/index.workerd.js.map +0 -1
- package/src/cli/core/tasks/BuildSitemapTask.ts +0 -130
- package/src/command/helpers/PrettyAsker.ts +0 -256
- package/src/command/helpers/PrettyPrint.ts +0 -332
- package/src/container/core/__tests__/$container.spec.ts +0 -83
- package/src/container/core/index.ts +0 -50
- package/src/container/core/index.workerd.ts +0 -53
- package/src/container/core/interfaces/ContainerOptions.ts +0 -69
- package/src/container/core/primitives/$container.ts +0 -100
- package/src/container/core/providers/CloudflareContainerProvider.ts +0 -70
- package/src/container/core/providers/ContainerProvider.ts +0 -92
- package/src/container/core/providers/MockContainerProvider.ts +0 -62
- package/src/container/core/providers/NodeContainerProvider.ts +0 -53
- package/src/core/__tests__/jsonSchemaToTypeBox.spec.ts +0 -771
- package/src/core/helpers/jsonSchemaToTypeBox.ts +0 -359
- /package/dist/orm/core/{chunk-B4FMCO8f.js → rolldown-runtime-B4FMCO8f.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $module,
|
|
1
|
+
import { $module, z } from "alepha";
|
|
2
2
|
import { userAccountInfoSchema } from "alepha/security";
|
|
3
3
|
import { apiRegistryResponseSchema } from "alepha/server/links";
|
|
4
4
|
//#region ../../src/server/auth/constants/routes.ts
|
|
@@ -12,37 +12,37 @@ const alephaServerAuthRoutes = {
|
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region ../../src/server/auth/schemas/authenticationProviderSchema.ts
|
|
15
|
-
const authenticationProviderSchema =
|
|
16
|
-
name:
|
|
17
|
-
type:
|
|
15
|
+
const authenticationProviderSchema = z.object({
|
|
16
|
+
name: z.text({ description: "Name of the authentication provider." }),
|
|
17
|
+
type: z.enum([
|
|
18
18
|
"OAUTH2",
|
|
19
19
|
"OIDC",
|
|
20
20
|
"CREDENTIALS"
|
|
21
|
-
]
|
|
22
|
-
}
|
|
21
|
+
]).describe("Type of the authentication provider.")
|
|
22
|
+
}).meta({ title: "AuthenticationProvider" });
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region ../../src/server/auth/schemas/tokensSchema.ts
|
|
25
|
-
const tokensSchema =
|
|
26
|
-
provider:
|
|
27
|
-
access_token:
|
|
28
|
-
issued_at:
|
|
29
|
-
expires_in:
|
|
30
|
-
refresh_token:
|
|
31
|
-
refresh_token_expires_in:
|
|
32
|
-
refresh_expires_in:
|
|
33
|
-
id_token:
|
|
34
|
-
scope:
|
|
25
|
+
const tokensSchema = z.object({
|
|
26
|
+
provider: z.text(),
|
|
27
|
+
access_token: z.text({ size: "rich" }),
|
|
28
|
+
issued_at: z.number(),
|
|
29
|
+
expires_in: z.number().optional(),
|
|
30
|
+
refresh_token: z.text({ size: "rich" }).optional(),
|
|
31
|
+
refresh_token_expires_in: z.number().optional(),
|
|
32
|
+
refresh_expires_in: z.number().describe("Alias of `refresh_token_expires_in` for compatibility with some providers.").optional(),
|
|
33
|
+
id_token: z.text({ size: "rich" }).optional(),
|
|
34
|
+
scope: z.text().optional()
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region ../../src/server/auth/schemas/tokenResponseSchema.ts
|
|
38
|
-
const tokenResponseSchema =
|
|
38
|
+
const tokenResponseSchema = tokensSchema.extend({
|
|
39
39
|
user: userAccountInfoSchema,
|
|
40
40
|
api: apiRegistryResponseSchema
|
|
41
41
|
});
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region ../../src/server/auth/schemas/userinfoResponseSchema.ts
|
|
44
|
-
const userinfoResponseSchema =
|
|
45
|
-
user:
|
|
44
|
+
const userinfoResponseSchema = z.object({
|
|
45
|
+
user: userAccountInfoSchema.optional(),
|
|
46
46
|
api: apiRegistryResponseSchema
|
|
47
47
|
});
|
|
48
48
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.browser.js","names":[],"sources":["../../../src/server/auth/constants/routes.ts","../../../src/server/auth/schemas/authenticationProviderSchema.ts","../../../src/server/auth/schemas/tokensSchema.ts","../../../src/server/auth/schemas/tokenResponseSchema.ts","../../../src/server/auth/schemas/userinfoResponseSchema.ts","../../../src/server/auth/index.browser.ts"],"sourcesContent":["export const alephaServerAuthRoutes = {\n login: \"/oauth/login\",\n callback: \"/oauth/callback\",\n logout: \"/oauth/logout\",\n token: \"/_auth/token\",\n refresh: \"/_auth/refresh\",\n userinfo: \"/_auth/userinfo\",\n};\n","import { type Static,
|
|
1
|
+
{"version":3,"file":"index.browser.js","names":[],"sources":["../../../src/server/auth/constants/routes.ts","../../../src/server/auth/schemas/authenticationProviderSchema.ts","../../../src/server/auth/schemas/tokensSchema.ts","../../../src/server/auth/schemas/tokenResponseSchema.ts","../../../src/server/auth/schemas/userinfoResponseSchema.ts","../../../src/server/auth/index.browser.ts"],"sourcesContent":["export const alephaServerAuthRoutes = {\n login: \"/oauth/login\",\n callback: \"/oauth/callback\",\n logout: \"/oauth/logout\",\n token: \"/_auth/token\",\n refresh: \"/_auth/refresh\",\n userinfo: \"/_auth/userinfo\",\n};\n","import { type Static, z } from \"alepha\";\n\nexport const authenticationProviderSchema = z\n .object({\n name: z.text({\n description: \"Name of the authentication provider.\",\n }),\n type: z\n .enum([\"OAUTH2\", \"OIDC\", \"CREDENTIALS\"])\n .describe(\"Type of the authentication provider.\"),\n })\n .meta({ title: \"AuthenticationProvider\" });\n\nexport type AuthenticationProvider = Static<\n typeof authenticationProviderSchema\n>;\n","import type { Static } from \"alepha\";\nimport { z } from \"alepha\";\n\nexport const tokensSchema = z.object({\n provider: z.text(),\n access_token: z.text({ size: \"rich\" }),\n issued_at: z.number(),\n expires_in: z.number().optional(),\n refresh_token: z.text({ size: \"rich\" }).optional(),\n refresh_token_expires_in: z.number().optional(),\n refresh_expires_in: z\n .number()\n .describe(\n \"Alias of `refresh_token_expires_in` for compatibility with some providers.\",\n )\n .optional(),\n id_token: z.text({ size: \"rich\" }).optional(),\n scope: z.text().optional(),\n});\n\nexport type Tokens = Static<typeof tokensSchema>;\n","import type { Static } from \"alepha\";\nimport { userAccountInfoSchema } from \"alepha/security\";\nimport { apiRegistryResponseSchema } from \"alepha/server/links\";\nimport { tokensSchema } from \"./tokensSchema.ts\";\n\nexport const tokenResponseSchema = tokensSchema.extend({\n user: userAccountInfoSchema,\n api: apiRegistryResponseSchema,\n});\n\nexport type TokenResponse = Static<typeof tokenResponseSchema>;\n","import { type Static, z } from \"alepha\";\nimport { userAccountInfoSchema } from \"alepha/security\";\nimport { apiRegistryResponseSchema } from \"alepha/server/links\";\n\nexport const userinfoResponseSchema = z.object({\n user: userAccountInfoSchema.optional(),\n api: apiRegistryResponseSchema,\n});\n\nexport type UserinfoResponse = Static<typeof userinfoResponseSchema>;\n","import { $module } from \"alepha\";\n\n// ---------------------------------------------------------------------------------------------------------------------\n\nexport * from \"./index.shared.ts\";\n\n// ---------------------------------------------------------------------------------------------------------------------\n\nexport const AlephaServerAuth = $module({\n name: \"alepha.server.auth\",\n primitives: [],\n services: [],\n});\n"],"mappings":";;;;AAAA,MAAa,yBAAyB;CACpC,OAAO;CACP,UAAU;CACV,QAAQ;CACR,OAAO;CACP,SAAS;CACT,UAAU;AACZ;;;ACLA,MAAa,+BAA+B,EACzC,OAAO;CACN,MAAM,EAAE,KAAK,EACX,aAAa,uCACf,CAAC;CACD,MAAM,EACH,KAAK;EAAC;EAAU;EAAQ;CAAa,CAAC,CAAC,CACvC,SAAS,sCAAsC;AACpD,CAAC,CAAC,CACD,KAAK,EAAE,OAAO,yBAAyB,CAAC;;;ACR3C,MAAa,eAAe,EAAE,OAAO;CACnC,UAAU,EAAE,KAAK;CACjB,cAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;CACrC,WAAW,EAAE,OAAO;CACpB,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS;CAChC,eAAe,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS;CACjD,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS;CAC9C,oBAAoB,EACjB,OAAO,CAAC,CACR,SACC,4EACF,CAAC,CACA,SAAS;CACZ,UAAU,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS;CAC5C,OAAO,EAAE,KAAK,CAAC,CAAC,SAAS;AAC3B,CAAC;;;ACbD,MAAa,sBAAsB,aAAa,OAAO;CACrD,MAAM;CACN,KAAK;AACP,CAAC;;;ACJD,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,sBAAsB,SAAS;CACrC,KAAK;AACP,CAAC;;;ACCD,MAAa,mBAAmB,QAAQ;CACtC,MAAM;CACN,YAAY,CAAC;CACb,UAAU,CAAC;AACb,CAAC"}
|
|
@@ -4,7 +4,17 @@ import { DateTimeProvider } from "alepha/datetime";
|
|
|
4
4
|
import { AccessTokenResponse, IssuerPrimitive, SecurityProvider, UserAccount } from "alepha/security";
|
|
5
5
|
import { ServerRawRequest, ServerReply } from "alepha/server";
|
|
6
6
|
import { ServerLinksProvider } from "alepha/server/links";
|
|
7
|
-
|
|
7
|
+
//#region ../../src/server/auth/helpers/appleClientSecret.d.ts
|
|
8
|
+
interface AppleClientSecretOptions {
|
|
9
|
+
privateKeyPem: string;
|
|
10
|
+
teamId: string;
|
|
11
|
+
serviceId: string;
|
|
12
|
+
keyId: string;
|
|
13
|
+
ttlSeconds?: number;
|
|
14
|
+
}
|
|
15
|
+
/** Signs Apple's short-lived ES256 client_secret JWT on demand (no rotation job). */
|
|
16
|
+
declare function signAppleClientSecret(opts: AppleClientSecretOptions): Promise<string>;
|
|
17
|
+
//#endregion
|
|
8
18
|
//#region ../../src/server/auth/constants/routes.d.ts
|
|
9
19
|
declare const alephaServerAuthRoutes: {
|
|
10
20
|
login: string;
|
|
@@ -16,94 +26,102 @@ declare const alephaServerAuthRoutes: {
|
|
|
16
26
|
};
|
|
17
27
|
//#endregion
|
|
18
28
|
//#region ../../src/server/auth/schemas/authenticationProviderSchema.d.ts
|
|
19
|
-
declare const authenticationProviderSchema: import("
|
|
20
|
-
name: import("
|
|
21
|
-
type: import("
|
|
22
|
-
|
|
29
|
+
declare const authenticationProviderSchema: import("zod").ZodObject<{
|
|
30
|
+
name: import("zod").ZodString;
|
|
31
|
+
type: import("zod").ZodEnum<{
|
|
32
|
+
CREDENTIALS: "CREDENTIALS";
|
|
33
|
+
OAUTH2: "OAUTH2";
|
|
34
|
+
OIDC: "OIDC";
|
|
35
|
+
}>;
|
|
36
|
+
}, import("zod/v4/core").$strip>;
|
|
23
37
|
type AuthenticationProvider = Static<typeof authenticationProviderSchema>;
|
|
24
38
|
//#endregion
|
|
25
39
|
//#region ../../src/server/auth/schemas/tokenResponseSchema.d.ts
|
|
26
|
-
declare const tokenResponseSchema: import("
|
|
27
|
-
provider: import("
|
|
28
|
-
access_token: import("
|
|
29
|
-
issued_at: import("
|
|
30
|
-
expires_in: import("
|
|
31
|
-
refresh_token: import("
|
|
32
|
-
refresh_token_expires_in: import("
|
|
33
|
-
refresh_expires_in: import("
|
|
34
|
-
id_token: import("
|
|
35
|
-
scope: import("
|
|
36
|
-
user: import("
|
|
37
|
-
id: import("
|
|
38
|
-
name: import("
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
40
|
+
declare const tokenResponseSchema: import("zod").ZodObject<{
|
|
41
|
+
provider: import("zod").ZodString;
|
|
42
|
+
access_token: import("zod").ZodString;
|
|
43
|
+
issued_at: import("zod").ZodNumber;
|
|
44
|
+
expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
45
|
+
refresh_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
refresh_token_expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
47
|
+
refresh_expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
48
|
+
id_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
+
user: import("zod").ZodObject<{
|
|
51
|
+
id: import("zod").ZodString;
|
|
52
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
53
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
57
|
+
picture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
58
|
+
sessionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
|
+
organization: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
roles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
61
|
+
realm: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
|
+
}, import("zod/v4/core").$strip>;
|
|
63
|
+
api: import("zod").ZodObject<{
|
|
64
|
+
prefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
|
+
actions: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
66
|
+
path: import("zod").ZodString;
|
|
67
|
+
method: import("zod").ZodOptional<import("zod").ZodString>;
|
|
68
|
+
contentType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
69
|
+
kind: import("zod").ZodOptional<import("zod").ZodString>;
|
|
70
|
+
service: import("zod").ZodOptional<import("zod").ZodString>;
|
|
71
|
+
}, import("zod/v4/core").$strip>>;
|
|
72
|
+
permissions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
73
|
+
}, import("zod/v4/core").$strip>;
|
|
74
|
+
}, import("zod/v4/core").$strip>;
|
|
59
75
|
type TokenResponse = Static<typeof tokenResponseSchema>;
|
|
60
76
|
//#endregion
|
|
61
77
|
//#region ../../src/server/auth/schemas/tokensSchema.d.ts
|
|
62
|
-
declare const tokensSchema: import("
|
|
63
|
-
provider: import("
|
|
64
|
-
access_token: import("
|
|
65
|
-
issued_at: import("
|
|
66
|
-
expires_in: import("
|
|
67
|
-
refresh_token: import("
|
|
68
|
-
refresh_token_expires_in: import("
|
|
69
|
-
refresh_expires_in: import("
|
|
70
|
-
id_token: import("
|
|
71
|
-
scope: import("
|
|
72
|
-
}>;
|
|
78
|
+
declare const tokensSchema: import("zod").ZodObject<{
|
|
79
|
+
provider: import("zod").ZodString;
|
|
80
|
+
access_token: import("zod").ZodString;
|
|
81
|
+
issued_at: import("zod").ZodNumber;
|
|
82
|
+
expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
83
|
+
refresh_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
84
|
+
refresh_token_expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
85
|
+
refresh_expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
86
|
+
id_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
87
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
88
|
+
}, import("zod/v4/core").$strip>;
|
|
73
89
|
type Tokens = Static<typeof tokensSchema>;
|
|
74
90
|
//#endregion
|
|
75
91
|
//#region ../../src/server/auth/schemas/userinfoResponseSchema.d.ts
|
|
76
|
-
declare const userinfoResponseSchema: import("
|
|
77
|
-
user: import("
|
|
78
|
-
id: import("
|
|
79
|
-
name: import("
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
declare const userinfoResponseSchema: import("zod").ZodObject<{
|
|
93
|
+
user: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
94
|
+
id: import("zod").ZodString;
|
|
95
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
96
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
98
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
99
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
100
|
+
picture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
101
|
+
sessionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
102
|
+
organization: import("zod").ZodOptional<import("zod").ZodString>;
|
|
103
|
+
roles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
104
|
+
realm: import("zod").ZodOptional<import("zod").ZodString>;
|
|
105
|
+
}, import("zod/v4/core").$strip>>;
|
|
106
|
+
api: import("zod").ZodObject<{
|
|
107
|
+
prefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
108
|
+
actions: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
109
|
+
path: import("zod").ZodString;
|
|
110
|
+
method: import("zod").ZodOptional<import("zod").ZodString>;
|
|
111
|
+
contentType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
112
|
+
kind: import("zod").ZodOptional<import("zod").ZodString>;
|
|
113
|
+
service: import("zod").ZodOptional<import("zod").ZodString>;
|
|
114
|
+
}, import("zod/v4/core").$strip>>;
|
|
115
|
+
permissions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
116
|
+
}, import("zod/v4/core").$strip>;
|
|
117
|
+
}, import("zod/v4/core").$strip>;
|
|
100
118
|
type UserinfoResponse = Static<typeof userinfoResponseSchema>;
|
|
101
119
|
//#endregion
|
|
102
120
|
//#region ../../../../node_modules/oauth4webapi/build/index.d.ts
|
|
103
121
|
/**
|
|
104
122
|
* JSON Object
|
|
105
123
|
*/
|
|
106
|
-
type JsonObject = { [Key in string]?: JsonValue };
|
|
124
|
+
type JsonObject = { [Key in string]?: JsonValue; };
|
|
107
125
|
/**
|
|
108
126
|
* JSON Array
|
|
109
127
|
*/
|
|
@@ -737,7 +755,7 @@ interface Client {
|
|
|
737
755
|
/**
|
|
738
756
|
* Removes all Symbol properties from a type
|
|
739
757
|
*/
|
|
740
|
-
type OmitSymbolProperties<T> = { [K in keyof T as K extends symbol ? never : K]: T[K] };
|
|
758
|
+
type OmitSymbolProperties<T> = { [K in keyof T as K extends symbol ? never : K]: T[K]; };
|
|
741
759
|
//#endregion
|
|
742
760
|
//#region ../../../../node_modules/openid-client/build/index.d.ts
|
|
743
761
|
/**
|
|
@@ -1170,26 +1188,26 @@ declare class ServerAuthProvider {
|
|
|
1170
1188
|
*/
|
|
1171
1189
|
protected validateRedirectUri(uri: string): string;
|
|
1172
1190
|
get identities(): Array<AuthPrimitive>;
|
|
1173
|
-
protected readonly authorizationCode: import("alepha/server/cookies").AbstractCookiePrimitive<import("
|
|
1174
|
-
provider: import("
|
|
1175
|
-
realm: import("
|
|
1176
|
-
codeVerifier: import("
|
|
1177
|
-
redirectUri: import("
|
|
1178
|
-
loginUri: import("
|
|
1179
|
-
state: import("
|
|
1180
|
-
nonce: import("
|
|
1181
|
-
}>>;
|
|
1182
|
-
readonly tokens: import("alepha/server/cookies").AbstractCookiePrimitive<import("
|
|
1183
|
-
provider: import("
|
|
1184
|
-
access_token: import("
|
|
1185
|
-
issued_at: import("
|
|
1186
|
-
expires_in: import("
|
|
1187
|
-
refresh_token: import("
|
|
1188
|
-
refresh_token_expires_in: import("
|
|
1189
|
-
refresh_expires_in: import("
|
|
1190
|
-
id_token: import("
|
|
1191
|
-
scope: import("
|
|
1192
|
-
}>>;
|
|
1191
|
+
protected readonly authorizationCode: import("alepha/server/cookies").AbstractCookiePrimitive<import("zod").ZodObject<{
|
|
1192
|
+
provider: import("zod").ZodString;
|
|
1193
|
+
realm: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1194
|
+
codeVerifier: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1195
|
+
redirectUri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1196
|
+
loginUri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1197
|
+
state: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1198
|
+
nonce: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1199
|
+
}, import("zod/v4/core").$strip>>;
|
|
1200
|
+
readonly tokens: import("alepha/server/cookies").AbstractCookiePrimitive<import("zod").ZodObject<{
|
|
1201
|
+
provider: import("zod").ZodString;
|
|
1202
|
+
access_token: import("zod").ZodString;
|
|
1203
|
+
issued_at: import("zod").ZodNumber;
|
|
1204
|
+
expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1205
|
+
refresh_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1206
|
+
refresh_token_expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1207
|
+
refresh_expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1208
|
+
id_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1209
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1210
|
+
}, import("zod/v4/core").$strip>>;
|
|
1193
1211
|
protected readonly configure: import("alepha").HookPrimitive<"configure">;
|
|
1194
1212
|
/**
|
|
1195
1213
|
* Fill request headers with access token from cookies or fallback to provider's fallback function.
|
|
@@ -1199,109 +1217,113 @@ declare class ServerAuthProvider {
|
|
|
1199
1217
|
* Get user information.
|
|
1200
1218
|
*/
|
|
1201
1219
|
readonly userinfo: import("alepha/server").RoutePrimitive<{
|
|
1202
|
-
response: import("
|
|
1203
|
-
user: import("
|
|
1204
|
-
id: import("
|
|
1205
|
-
name: import("
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1220
|
+
response: import("zod").ZodObject<{
|
|
1221
|
+
user: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1222
|
+
id: import("zod").ZodString;
|
|
1223
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1224
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1225
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1226
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1227
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1228
|
+
picture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1229
|
+
sessionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1230
|
+
organization: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1231
|
+
roles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1232
|
+
realm: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1233
|
+
}, import("zod/v4/core").$strip>>;
|
|
1234
|
+
api: import("zod").ZodObject<{
|
|
1235
|
+
prefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1236
|
+
actions: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
1237
|
+
path: import("zod").ZodString;
|
|
1238
|
+
method: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1239
|
+
contentType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1240
|
+
kind: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1241
|
+
service: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1242
|
+
}, import("zod/v4/core").$strip>>;
|
|
1243
|
+
permissions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1244
|
+
}, import("zod/v4/core").$strip>;
|
|
1245
|
+
}, import("zod/v4/core").$strip>;
|
|
1226
1246
|
}>;
|
|
1227
1247
|
/**
|
|
1228
1248
|
* Refresh a token for internal providers.
|
|
1229
1249
|
*/
|
|
1230
1250
|
readonly refresh: import("alepha/server").RoutePrimitive<{
|
|
1231
|
-
query: import("
|
|
1232
|
-
provider: import("
|
|
1233
|
-
}>;
|
|
1234
|
-
body: import("
|
|
1235
|
-
refresh_token: import("
|
|
1236
|
-
access_token: import("
|
|
1237
|
-
}>;
|
|
1238
|
-
response: import("
|
|
1239
|
-
provider: import("
|
|
1240
|
-
access_token: import("
|
|
1241
|
-
issued_at: import("
|
|
1242
|
-
expires_in: import("
|
|
1243
|
-
refresh_token: import("
|
|
1244
|
-
refresh_token_expires_in: import("
|
|
1245
|
-
refresh_expires_in: import("
|
|
1246
|
-
id_token: import("
|
|
1247
|
-
scope: import("
|
|
1248
|
-
}>;
|
|
1251
|
+
query: import("zod").ZodObject<{
|
|
1252
|
+
provider: import("zod").ZodString;
|
|
1253
|
+
}, import("zod/v4/core").$strip>;
|
|
1254
|
+
body: import("zod").ZodObject<{
|
|
1255
|
+
refresh_token: import("zod").ZodString;
|
|
1256
|
+
access_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1257
|
+
}, import("zod/v4/core").$strip>;
|
|
1258
|
+
response: import("zod").ZodObject<{
|
|
1259
|
+
provider: import("zod").ZodString;
|
|
1260
|
+
access_token: import("zod").ZodString;
|
|
1261
|
+
issued_at: import("zod").ZodNumber;
|
|
1262
|
+
expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1263
|
+
refresh_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1264
|
+
refresh_token_expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1265
|
+
refresh_expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1266
|
+
id_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1267
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1268
|
+
}, import("zod/v4/core").$strip>;
|
|
1249
1269
|
}>;
|
|
1250
1270
|
/**
|
|
1251
1271
|
* Login for local password-based authentication.
|
|
1252
1272
|
*/
|
|
1253
1273
|
readonly token: import("alepha/server").RoutePrimitive<{
|
|
1254
|
-
query: import("
|
|
1255
|
-
provider: import("
|
|
1256
|
-
realm: import("
|
|
1257
|
-
}>;
|
|
1258
|
-
body: import("
|
|
1259
|
-
username: import("
|
|
1260
|
-
password: import("
|
|
1261
|
-
}>;
|
|
1262
|
-
response: import("
|
|
1263
|
-
provider: import("
|
|
1264
|
-
access_token: import("
|
|
1265
|
-
issued_at: import("
|
|
1266
|
-
expires_in: import("
|
|
1267
|
-
refresh_token: import("
|
|
1268
|
-
refresh_token_expires_in: import("
|
|
1269
|
-
refresh_expires_in: import("
|
|
1270
|
-
id_token: import("
|
|
1271
|
-
scope: import("
|
|
1272
|
-
user: import("
|
|
1273
|
-
id: import("
|
|
1274
|
-
name: import("
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1274
|
+
query: import("zod").ZodObject<{
|
|
1275
|
+
provider: import("zod").ZodString;
|
|
1276
|
+
realm: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1277
|
+
}, import("zod/v4/core").$strip>;
|
|
1278
|
+
body: import("zod").ZodObject<{
|
|
1279
|
+
username: import("zod").ZodString;
|
|
1280
|
+
password: import("zod").ZodString;
|
|
1281
|
+
}, import("zod/v4/core").$strip>;
|
|
1282
|
+
response: import("zod").ZodObject<{
|
|
1283
|
+
provider: import("zod").ZodString;
|
|
1284
|
+
access_token: import("zod").ZodString;
|
|
1285
|
+
issued_at: import("zod").ZodNumber;
|
|
1286
|
+
expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1287
|
+
refresh_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1288
|
+
refresh_token_expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1289
|
+
refresh_expires_in: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1290
|
+
id_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1291
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1292
|
+
user: import("zod").ZodObject<{
|
|
1293
|
+
id: import("zod").ZodString;
|
|
1294
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1295
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1296
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1297
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1298
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1299
|
+
picture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1300
|
+
sessionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1301
|
+
organization: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1302
|
+
roles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1303
|
+
realm: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1304
|
+
}, import("zod/v4/core").$strip>;
|
|
1305
|
+
api: import("zod").ZodObject<{
|
|
1306
|
+
prefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1307
|
+
actions: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
1308
|
+
path: import("zod").ZodString;
|
|
1309
|
+
method: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1310
|
+
contentType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1311
|
+
kind: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1312
|
+
service: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1313
|
+
}, import("zod/v4/core").$strip>>;
|
|
1314
|
+
permissions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1315
|
+
}, import("zod/v4/core").$strip>;
|
|
1316
|
+
}, import("zod/v4/core").$strip>;
|
|
1295
1317
|
}>;
|
|
1296
1318
|
/**
|
|
1297
1319
|
* Oauth2/OIDC login route.
|
|
1298
1320
|
*/
|
|
1299
1321
|
readonly login: import("alepha/server").RoutePrimitive<{
|
|
1300
|
-
query: import("
|
|
1301
|
-
provider: import("
|
|
1302
|
-
realm: import("
|
|
1303
|
-
redirect_uri: import("
|
|
1304
|
-
}>;
|
|
1322
|
+
query: import("zod").ZodObject<{
|
|
1323
|
+
provider: import("zod").ZodString;
|
|
1324
|
+
realm: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1325
|
+
redirect_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1326
|
+
}, import("zod/v4/core").$strip>;
|
|
1305
1327
|
}>;
|
|
1306
1328
|
/**
|
|
1307
1329
|
* Extracts provider-specific extra profile fields delivered via the
|
|
@@ -1316,6 +1338,12 @@ declare class ServerAuthProvider {
|
|
|
1316
1338
|
* is passed so openid-client can read the authorization code from the POST body.
|
|
1317
1339
|
*/
|
|
1318
1340
|
protected handleCallback(url: URL, reply: ServerReply, cookies: Cookies, raw?: ServerRawRequest): Promise<void>;
|
|
1341
|
+
/**
|
|
1342
|
+
* Establish a local session for an already-resolved user: mint realm tokens
|
|
1343
|
+
* and write the `tokens` cookie. Used by the OAuth callback and by federated
|
|
1344
|
+
* (broker) login. `issuer` is the realm issuer (provider.issuer / realm).
|
|
1345
|
+
*/
|
|
1346
|
+
establishSession(user: UserAccount, issuer: IssuerPrimitive, providerName: string, cookies: Cookies): Promise<void>;
|
|
1319
1347
|
/**
|
|
1320
1348
|
* Callback for OAuth2/OIDC providers.
|
|
1321
1349
|
* It handles the authorization code flow and retrieves the access token.
|
|
@@ -1330,9 +1358,9 @@ declare class ServerAuthProvider {
|
|
|
1330
1358
|
* Logout route for OAuth2/OIDC providers.
|
|
1331
1359
|
*/
|
|
1332
1360
|
readonly logout: import("alepha/server").RoutePrimitive<{
|
|
1333
|
-
query: import("
|
|
1334
|
-
post_logout_redirect_uri: import("
|
|
1335
|
-
}>;
|
|
1361
|
+
query: import("zod").ZodObject<{
|
|
1362
|
+
post_logout_redirect_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1363
|
+
}, import("zod/v4/core").$strip>;
|
|
1336
1364
|
}>;
|
|
1337
1365
|
getAuthenticationProviders(filters?: {
|
|
1338
1366
|
realmName?: string;
|
|
@@ -1788,5 +1816,5 @@ declare const $authMicrosoft: (realm: IssuerPrimitive & WithLinkFn, options?: Pa
|
|
|
1788
1816
|
*/
|
|
1789
1817
|
declare const AlephaServerAuth: import("alepha").Service<import("alepha").Module>;
|
|
1790
1818
|
//#endregion
|
|
1791
|
-
export { $auth, $authApple, $authCredentials, $authFacebook, $authFranceConnect, $authGithub, $authGoogle, $authMicrosoft, AccessToken, AlephaServerAuth, AuthExternal, AuthInternal, AuthPrimitive, AuthPrimitiveOptions, AuthenticationProvider, Credentials, CredentialsFn, CredentialsOptions, LinkAccountFn, LinkAccountOptions, OAuth2Options, OAuth2Profile, OidcOptions, ServerAuthProvider, TokenResponse, Tokens, UserinfoResponse, WithLinkFn, WithLoginFn, alephaServerAuthRoutes, authenticationProviderSchema, tokenResponseSchema, tokensSchema, userinfoResponseSchema };
|
|
1819
|
+
export { $auth, $authApple, $authCredentials, $authFacebook, $authFranceConnect, $authGithub, $authGoogle, $authMicrosoft, AccessToken, AlephaServerAuth, AppleClientSecretOptions, AuthExternal, AuthInternal, AuthPrimitive, AuthPrimitiveOptions, AuthenticationProvider, Credentials, CredentialsFn, CredentialsOptions, LinkAccountFn, LinkAccountOptions, OAuth2Options, OAuth2Profile, OidcOptions, ServerAuthProvider, TokenResponse, Tokens, UserinfoResponse, WithLinkFn, WithLoginFn, alephaServerAuthRoutes, authenticationProviderSchema, signAppleClientSecret, tokenResponseSchema, tokensSchema, userinfoResponseSchema };
|
|
1792
1820
|
//# sourceMappingURL=index.d.ts.map
|