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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/orm/core/schemas/insertSchema.ts","../../../src/orm/core/schemas/updateSchema.ts","../../../src/orm/core/primitives/$entity.ts","../../../src/orm/core/constants/PG_SYMBOLS.ts","../../../src/orm/core/helpers/pgAttr.ts","../../../src/orm/core/schemas/databaseEnvSchema.ts","../../../src/api/audits/entities/audits.ts","../../../src/api/audits/schemas/auditQuerySchema.ts","../../../src/api/audits/schemas/createAuditSchema.ts","../../../src/api/audits/services/AuditService.ts","../../../src/api/audits/controllers/AdminAuditController.ts","../../../src/api/audits/primitives/$audit.ts","../../../src/api/audits/schemas/auditResourceSchema.ts","../../../src/api/audits/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;KAaY,aAAA,WAAwB,OAAA,IAAW,OAAA,eACjC,CAAA,kBAAmB,CAAA,eAAgB,CAAA;EAAA,CAC5C,YAAA;AAAA,YAGC,CAAA,GAAI,CAAA,eAAgB,CAAA;EAAA,CACjB,UAAA;AAAA;EACD,WAAA;AAAA,IACF,SAAA,CAAU,CAAA,eAAgB,CAAA,KAC1B,CAAA,eAAgB,CAAA;;;;;;;;;;;;KCJV,aAAA,WAAwB,OAAA,IAAW,OAAA,eACjC,CAAA,kBAAmB,CAAA,eAAgB,CAAA;EAAA,CAC5C,YAAA;AAAA,YAGC,CAAA,GAAI,CAAA,eAAgB,CAAA,UAAW,SAAA,YAC/B,SAAA,CAAU,MAAA,EAAQ,CAAA,EAAG,KAAA,MACrB,CAAA,eAAgB,CAAA;;;UCWL,sBAAA,WACL,OAAA,eACG,MAAA,CAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/orm/core/schemas/insertSchema.ts","../../../src/orm/core/schemas/updateSchema.ts","../../../src/orm/core/primitives/$entity.ts","../../../src/orm/core/constants/PG_SYMBOLS.ts","../../../src/orm/core/helpers/pgAttr.ts","../../../src/orm/core/schemas/databaseEnvSchema.ts","../../../src/api/audits/entities/audits.ts","../../../src/api/audits/schemas/auditQuerySchema.ts","../../../src/api/audits/schemas/createAuditSchema.ts","../../../src/api/audits/services/AuditService.ts","../../../src/api/audits/controllers/AdminAuditController.ts","../../../src/api/audits/primitives/$audit.ts","../../../src/api/audits/schemas/auditResourceSchema.ts","../../../src/api/audits/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;KAaY,aAAA,WAAwB,OAAA,IAAW,OAAA,eACjC,CAAA,kBAAmB,CAAA,eAAgB,CAAA;EAAA,CAC5C,YAAA;AAAA,YAGC,CAAA,GAAI,CAAA,eAAgB,CAAA;EAAA,CACjB,UAAA;AAAA;EACD,WAAA;AAAA,IACF,SAAA,CAAU,CAAA,eAAgB,CAAA,KAC1B,CAAA,eAAgB,CAAA;;;;;;;;;;;;KCJV,aAAA,WAAwB,OAAA,IAAW,OAAA,eACjC,CAAA,kBAAmB,CAAA,eAAgB,CAAA;EAAA,CAC5C,YAAA;AAAA,YAGC,CAAA,GAAI,CAAA,eAAgB,CAAA,UAAW,SAAA,YAC/B,SAAA,CAAU,MAAA,EAAQ,CAAA,EAAG,KAAA,MACrB,CAAA,eAAgB,CAAA;;;UCWL,sBAAA,WACL,OAAA,eACG,MAAA,CAAO,CAAA;EFpBhB;;;;EE0BJ,IAAA;EFvB8B;;;EE4B9B,MAAA,EAAQ,CAAA;EFpCqC;;;EEyC7C,OAAA,IACI,IAAA;IF1C8B;;;IE+C5B,MAAA,EAAQ,IAAA;IF9CiB;;;IEkDzB,MAAA;IF9CE;;;IEkDF,IAAA;IF/CF;;;IEmDE,KAAA,GAAQ,GAAA;EAAA;IFlDO;;;IEwDf,OAAA,EAAS,IAAA;;AD5DjB;;ICgEQ,MAAA;IDhE4B;;;ICoE5B,IAAA;IDlEH;;;ICsEG,KAAA,GAAQ,GAAA;EAAA;IDlEQ;;;;;;;;;;;;;;;;ICqFhB,WAAA,GAAc,IAAA,EAAM,MAAA,CAAO,IAAA,qBAAyB,GAA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A;;;;EAKA,OAAA;AAAA;;AXVF;;;;;;;;;;;;;;;;;;;;;;;;;cWuCa,cAAA,SAAuB,SAAA,CAAU,qBAAA;EAAA,mBACzB,YAAA,EAAY,YAAA;EXtC5B;;;EAAA,IW2CQ,IAAA,CAAA;EXvCJ;;;EAAA,IW8CI,WAAA,CAAA;EX5CmB;;;EAAA,IWmDnB,OAAA,CAAA;EXlDU;;;EWyDR,GAAA,CACX,MAAA,UACA,OAAA,GAAS,eAAA,GACR,OAAA;EVhEO;;;EUuEG,UAAA,CACX,MAAA,UACA,OAAA,GAAS,IAAA,CAAK,eAAA,eACb,OAAA;EVzES;;;EUgFC,UAAA,CACX,MAAA,UACA,YAAA,UACA,OAAA,GAAS,IAAA,CAAK,eAAA,gCACb,OAAA;EVhFC;;;EAAA,UUuFM,MAAA,CAAA;AAAA;;;;UAaK,eAAA;EACf,QAAA;EACA,MAAA;EACA,SAAA;EACA,SAAA;EACA,YAAA;EACA,UAAA;EACA,WAAA;EACA,QAAA,GAAW,MAAA;EACX,SAAA;EACA,SAAA;EACA,SAAA;EACA,SAAA;EACA,OAAA;EACA,YAAA;AAAA;;;;;;;;;;;;;;ATrGF;cSsHa,MAAA;EAAA,UAAmB,qBAAA,GAAqB,cAAA;EAAA;;;;;;;cCpJxC,mBAAA,WAAmB,OAAA;oBAAgB,QAAA,CAAA,OAAA;;;;;;;;;;;;;;;;;;;KAEpC,aAAA,GAAgB,MAAA,QAAc,mBAAA;;;;;;;;;;;;;;cCmB7B,eAAA,EAAe,QAAA,CAAA,OAAA,CAG1B,QAAA,CAH0B,MAAA"}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import * as alepha from "alepha";
|
|
1
|
+
import * as _$alepha from "alepha";
|
|
2
2
|
import { Alepha, FileLike, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
3
|
import { BucketPrimitive } from "alepha/bucket";
|
|
4
4
|
import { UserAccountToken } from "alepha/security";
|
|
5
|
-
import * as alepha_server0 from "alepha/server";
|
|
5
|
+
import * as _$alepha_server0 from "alepha/server";
|
|
6
6
|
import { Ok } from "alepha/server";
|
|
7
7
|
import { DateTime, DateTimeProvider, DurationLike } from "alepha/datetime";
|
|
8
|
-
import * as alepha_logger0 from "alepha/logger";
|
|
9
|
-
import * as alepha_orm0 from "alepha/orm";
|
|
8
|
+
import * as _$alepha_logger0 from "alepha/logger";
|
|
9
|
+
import * as _$alepha_orm0 from "alepha/orm";
|
|
10
10
|
import { Page } from "alepha/orm";
|
|
11
|
-
import * as alepha_scheduler0 from "alepha/scheduler";
|
|
11
|
+
import * as _$alepha_scheduler0 from "alepha/scheduler";
|
|
12
12
|
import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
|
|
13
13
|
import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
|
|
14
14
|
//#region ../../src/api/files/entities/files.d.ts
|
|
15
|
-
declare const files: alepha_orm0.EntityPrimitive<alepha.TObject<{
|
|
16
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
17
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
18
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
19
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
20
|
-
blobId: alepha.TString;
|
|
21
|
-
creator: alepha.TOptional<alepha.TString>;
|
|
22
|
-
creatorRealm: alepha.TOptional<alepha.TString>;
|
|
23
|
-
creatorName: alepha.TOptional<alepha.TString>;
|
|
24
|
-
bucket: alepha.TString;
|
|
25
|
-
expirationDate: alepha.TOptional<alepha.TString>;
|
|
26
|
-
name: alepha.TString;
|
|
27
|
-
size: alepha.TNumber;
|
|
28
|
-
mimeType: alepha.TString;
|
|
29
|
-
tags: alepha.TOptional<alepha.TArray<alepha.TString>>;
|
|
30
|
-
checksum: alepha.TOptional<alepha.TString>;
|
|
15
|
+
declare const files: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
|
|
16
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
17
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
18
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
19
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
20
|
+
blobId: _$alepha.TString;
|
|
21
|
+
creator: _$alepha.TOptional<_$alepha.TString>;
|
|
22
|
+
creatorRealm: _$alepha.TOptional<_$alepha.TString>;
|
|
23
|
+
creatorName: _$alepha.TOptional<_$alepha.TString>;
|
|
24
|
+
bucket: _$alepha.TString;
|
|
25
|
+
expirationDate: _$alepha.TOptional<_$alepha.TString>;
|
|
26
|
+
name: _$alepha.TString;
|
|
27
|
+
size: _$alepha.TNumber;
|
|
28
|
+
mimeType: _$alepha.TString;
|
|
29
|
+
tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
30
|
+
checksum: _$alepha.TOptional<_$alepha.TString>;
|
|
31
31
|
}>>;
|
|
32
32
|
type FileEntity = Static<typeof files.schema>;
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region ../../src/api/files/schemas/fileQuerySchema.d.ts
|
|
35
|
-
declare const fileQuerySchema: alepha.TObject<{
|
|
36
|
-
page: alepha.TOptional<alepha.TInteger>;
|
|
37
|
-
size: alepha.TOptional<alepha.TInteger>;
|
|
38
|
-
sort: alepha.TOptional<alepha.TString>;
|
|
39
|
-
bucket: alepha.TOptional<alepha.TString>;
|
|
40
|
-
tags: alepha.TOptional<alepha.TArray<alepha.TString>>;
|
|
41
|
-
name: alepha.TOptional<alepha.TString>;
|
|
42
|
-
mimeType: alepha.TOptional<alepha.TString>;
|
|
43
|
-
creator: alepha.TOptional<alepha.TString>;
|
|
44
|
-
createdAfter: alepha.TOptional<alepha.TString>;
|
|
45
|
-
createdBefore: alepha.TOptional<alepha.TString>;
|
|
35
|
+
declare const fileQuerySchema: _$alepha.TObject<{
|
|
36
|
+
page: _$alepha.TOptional<_$alepha.TInteger>;
|
|
37
|
+
size: _$alepha.TOptional<_$alepha.TInteger>;
|
|
38
|
+
sort: _$alepha.TOptional<_$alepha.TString>;
|
|
39
|
+
bucket: _$alepha.TOptional<_$alepha.TString>;
|
|
40
|
+
tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
41
|
+
name: _$alepha.TOptional<_$alepha.TString>;
|
|
42
|
+
mimeType: _$alepha.TOptional<_$alepha.TString>;
|
|
43
|
+
creator: _$alepha.TOptional<_$alepha.TString>;
|
|
44
|
+
createdAfter: _$alepha.TOptional<_$alepha.TString>;
|
|
45
|
+
createdBefore: _$alepha.TOptional<_$alepha.TString>;
|
|
46
46
|
}>;
|
|
47
47
|
type FileQuery = Static<typeof fileQuerySchema>;
|
|
48
48
|
//#endregion
|
|
@@ -126,6 +126,36 @@ interface EntityPrimitiveOptions<T extends TObject, Keys = keyof Static<T>> {
|
|
|
126
126
|
* Partial index condition. Only rows matching this SQL expression are indexed.
|
|
127
127
|
*/
|
|
128
128
|
where?: SQL;
|
|
129
|
+
} | {
|
|
130
|
+
/**
|
|
131
|
+
* SQL expressions for expression-based indexes.
|
|
132
|
+
*
|
|
133
|
+
* Can include column references and SQL functions like `LOWER()`, `UPPER()`, etc.
|
|
134
|
+
* Columns and expressions can be mixed together.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```ts
|
|
138
|
+
* // Case-insensitive unique username per realm
|
|
139
|
+
* indexes: [{
|
|
140
|
+
* expressions: (self) => [self.realm, sql`LOWER(${self.username})`],
|
|
141
|
+
* unique: true,
|
|
142
|
+
* name: "users_realm_username_lower_idx",
|
|
143
|
+
* }]
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
expressions: (self: Record<Keys & string, any>) => (SQL | any)[];
|
|
147
|
+
/**
|
|
148
|
+
* Whether this should be a unique index (enforces uniqueness constraint).
|
|
149
|
+
*/
|
|
150
|
+
unique?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Custom name for the index. If not provided, generates name automatically.
|
|
153
|
+
*/
|
|
154
|
+
name: string;
|
|
155
|
+
/**
|
|
156
|
+
* Partial index condition. Only rows matching this SQL expression are indexed.
|
|
157
|
+
*/
|
|
158
|
+
where?: SQL;
|
|
129
159
|
})[];
|
|
130
160
|
/**
|
|
131
161
|
* Foreign key constraints to maintain referential integrity.
|
|
@@ -230,6 +260,7 @@ declare const PG_IDENTITY: unique symbol;
|
|
|
230
260
|
declare const PG_ENUM: unique symbol;
|
|
231
261
|
declare const PG_REF: unique symbol;
|
|
232
262
|
declare const PG_GENERATED: unique symbol;
|
|
263
|
+
declare const PG_ORGANIZATION: unique symbol;
|
|
233
264
|
/**
|
|
234
265
|
* @deprecated Use `PG_IDENTITY` instead.
|
|
235
266
|
*/
|
|
@@ -245,6 +276,7 @@ type PgSymbols = {
|
|
|
245
276
|
[PG_REF]: PgRefOptions;
|
|
246
277
|
[PG_ENUM]: PgEnumOptions;
|
|
247
278
|
[PG_GENERATED]: PgGeneratedOptions;
|
|
279
|
+
[PG_ORGANIZATION]: {};
|
|
248
280
|
/**
|
|
249
281
|
* @deprecated Use `PG_IDENTITY` instead.
|
|
250
282
|
*/
|
|
@@ -303,8 +335,8 @@ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]:
|
|
|
303
335
|
* - `d1://BINDING_NAME` — Cloudflare D1
|
|
304
336
|
* - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
|
|
305
337
|
*/
|
|
306
|
-
declare const databaseEnvSchema: alepha.TObject<{
|
|
307
|
-
DATABASE_URL: alepha.TOptional<alepha.TString>;
|
|
338
|
+
declare const databaseEnvSchema: _$alepha.TObject<{
|
|
339
|
+
DATABASE_URL: _$alepha.TOptional<_$alepha.TString>;
|
|
308
340
|
/**
|
|
309
341
|
* Enable or disable push-based schema synchronization (drizzle-kit push).
|
|
310
342
|
*
|
|
@@ -312,53 +344,53 @@ declare const databaseEnvSchema: alepha.TObject<{
|
|
|
312
344
|
* Set to `false` in development to skip automatic schema sync
|
|
313
345
|
* (e.g. when managing migrations manually).
|
|
314
346
|
*/
|
|
315
|
-
DATABASE_SYNC: alepha.TOptional<alepha.TBoolean>;
|
|
347
|
+
DATABASE_SYNC: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
316
348
|
}>;
|
|
317
349
|
declare module "alepha" {
|
|
318
350
|
interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
|
|
319
351
|
} //# sourceMappingURL=databaseEnvSchema.d.ts.map
|
|
320
352
|
//#endregion
|
|
321
353
|
//#region ../../src/api/files/schemas/fileResourceSchema.d.ts
|
|
322
|
-
declare const fileResourceSchema: alepha.TObject<{
|
|
323
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
324
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
325
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
326
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
327
|
-
blobId: alepha.TString;
|
|
328
|
-
creator: alepha.TOptional<alepha.TString>;
|
|
329
|
-
creatorRealm: alepha.TOptional<alepha.TString>;
|
|
330
|
-
creatorName: alepha.TOptional<alepha.TString>;
|
|
331
|
-
bucket: alepha.TString;
|
|
332
|
-
expirationDate: alepha.TOptional<alepha.TString>;
|
|
333
|
-
name: alepha.TString;
|
|
334
|
-
size: alepha.TNumber;
|
|
335
|
-
mimeType: alepha.TString;
|
|
336
|
-
tags: alepha.TOptional<alepha.TArray<alepha.TString>>;
|
|
337
|
-
checksum: alepha.TOptional<alepha.TString>;
|
|
354
|
+
declare const fileResourceSchema: _$alepha.TObject<{
|
|
355
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
356
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
357
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
358
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
359
|
+
blobId: _$alepha.TString;
|
|
360
|
+
creator: _$alepha.TOptional<_$alepha.TString>;
|
|
361
|
+
creatorRealm: _$alepha.TOptional<_$alepha.TString>;
|
|
362
|
+
creatorName: _$alepha.TOptional<_$alepha.TString>;
|
|
363
|
+
bucket: _$alepha.TString;
|
|
364
|
+
expirationDate: _$alepha.TOptional<_$alepha.TString>;
|
|
365
|
+
name: _$alepha.TString;
|
|
366
|
+
size: _$alepha.TNumber;
|
|
367
|
+
mimeType: _$alepha.TString;
|
|
368
|
+
tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
369
|
+
checksum: _$alepha.TOptional<_$alepha.TString>;
|
|
338
370
|
}>;
|
|
339
371
|
type FileResource = Static<typeof fileResourceSchema>;
|
|
340
372
|
//#endregion
|
|
341
373
|
//#region ../../src/api/files/schemas/storageStatsSchema.d.ts
|
|
342
|
-
declare const bucketStatsSchema: alepha.TObject<{
|
|
343
|
-
bucket: alepha.TString;
|
|
344
|
-
totalSize: alepha.TNumber;
|
|
345
|
-
fileCount: alepha.TNumber;
|
|
374
|
+
declare const bucketStatsSchema: _$alepha.TObject<{
|
|
375
|
+
bucket: _$alepha.TString;
|
|
376
|
+
totalSize: _$alepha.TNumber;
|
|
377
|
+
fileCount: _$alepha.TNumber;
|
|
346
378
|
}>;
|
|
347
|
-
declare const mimeTypeStatsSchema: alepha.TObject<{
|
|
348
|
-
mimeType: alepha.TString;
|
|
349
|
-
fileCount: alepha.TNumber;
|
|
379
|
+
declare const mimeTypeStatsSchema: _$alepha.TObject<{
|
|
380
|
+
mimeType: _$alepha.TString;
|
|
381
|
+
fileCount: _$alepha.TNumber;
|
|
350
382
|
}>;
|
|
351
|
-
declare const storageStatsSchema: alepha.TObject<{
|
|
352
|
-
totalSize: alepha.TNumber;
|
|
353
|
-
totalFiles: alepha.TNumber;
|
|
354
|
-
byBucket: alepha.TArray<alepha.TObject<{
|
|
355
|
-
bucket: alepha.TString;
|
|
356
|
-
totalSize: alepha.TNumber;
|
|
357
|
-
fileCount: alepha.TNumber;
|
|
383
|
+
declare const storageStatsSchema: _$alepha.TObject<{
|
|
384
|
+
totalSize: _$alepha.TNumber;
|
|
385
|
+
totalFiles: _$alepha.TNumber;
|
|
386
|
+
byBucket: _$alepha.TArray<_$alepha.TObject<{
|
|
387
|
+
bucket: _$alepha.TString;
|
|
388
|
+
totalSize: _$alepha.TNumber;
|
|
389
|
+
fileCount: _$alepha.TNumber;
|
|
358
390
|
}>>;
|
|
359
|
-
byMimeType: alepha.TArray<alepha.TObject<{
|
|
360
|
-
mimeType: alepha.TString;
|
|
361
|
-
fileCount: alepha.TNumber;
|
|
391
|
+
byMimeType: _$alepha.TArray<_$alepha.TObject<{
|
|
392
|
+
mimeType: _$alepha.TString;
|
|
393
|
+
fileCount: _$alepha.TNumber;
|
|
362
394
|
}>>;
|
|
363
395
|
}>;
|
|
364
396
|
type BucketStats = Static<typeof bucketStatsSchema>;
|
|
@@ -368,28 +400,28 @@ type StorageStats = Static<typeof storageStatsSchema>;
|
|
|
368
400
|
//#region ../../src/api/files/services/FileService.d.ts
|
|
369
401
|
declare class FileService {
|
|
370
402
|
protected readonly alepha: Alepha;
|
|
371
|
-
protected readonly log: alepha_logger0.Logger;
|
|
403
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
372
404
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
373
405
|
protected readonly defaultBucket: BucketPrimitive;
|
|
374
|
-
readonly fileRepository: alepha_orm0.Repository<alepha.TObject<{
|
|
375
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
376
|
-
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
377
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
378
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
379
|
-
blobId: alepha.TString;
|
|
380
|
-
creator: alepha.TOptional<alepha.TString>;
|
|
381
|
-
creatorRealm: alepha.TOptional<alepha.TString>;
|
|
382
|
-
creatorName: alepha.TOptional<alepha.TString>;
|
|
383
|
-
bucket: alepha.TString;
|
|
384
|
-
expirationDate: alepha.TOptional<alepha.TString>;
|
|
385
|
-
name: alepha.TString;
|
|
386
|
-
size: alepha.TNumber;
|
|
387
|
-
mimeType: alepha.TString;
|
|
388
|
-
tags: alepha.TOptional<alepha.TArray<alepha.TString>>;
|
|
389
|
-
checksum: alepha.TOptional<alepha.TString>;
|
|
406
|
+
readonly fileRepository: _$alepha_orm0.Repository<_$alepha.TObject<{
|
|
407
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
408
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
409
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
410
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
411
|
+
blobId: _$alepha.TString;
|
|
412
|
+
creator: _$alepha.TOptional<_$alepha.TString>;
|
|
413
|
+
creatorRealm: _$alepha.TOptional<_$alepha.TString>;
|
|
414
|
+
creatorName: _$alepha.TOptional<_$alepha.TString>;
|
|
415
|
+
bucket: _$alepha.TString;
|
|
416
|
+
expirationDate: _$alepha.TOptional<_$alepha.TString>;
|
|
417
|
+
name: _$alepha.TString;
|
|
418
|
+
size: _$alepha.TNumber;
|
|
419
|
+
mimeType: _$alepha.TString;
|
|
420
|
+
tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
421
|
+
checksum: _$alepha.TOptional<_$alepha.TString>;
|
|
390
422
|
}>>;
|
|
391
|
-
protected onUploadFile: alepha.HookPrimitive<"bucket:file:uploaded">;
|
|
392
|
-
protected onDeleteBucketFile: alepha.HookPrimitive<"bucket:file:deleted">;
|
|
423
|
+
protected onUploadFile: _$alepha.HookPrimitive<"bucket:file:uploaded">;
|
|
424
|
+
protected onDeleteBucketFile: _$alepha.HookPrimitive<"bucket:file:deleted">;
|
|
393
425
|
/**
|
|
394
426
|
* Calculates SHA-256 checksum of a file.
|
|
395
427
|
*
|
|
@@ -523,18 +555,18 @@ declare class AdminFileStatsController {
|
|
|
523
555
|
* Returns aggregated data including total size, file count,
|
|
524
556
|
* and breakdowns by bucket and MIME type.
|
|
525
557
|
*/
|
|
526
|
-
readonly getFileStats: alepha_server0.ActionPrimitiveFn<{
|
|
527
|
-
response: alepha.TObject<{
|
|
528
|
-
totalSize: alepha.TNumber;
|
|
529
|
-
totalFiles: alepha.TNumber;
|
|
530
|
-
byBucket: alepha.TArray<alepha.TObject<{
|
|
531
|
-
bucket: alepha.TString;
|
|
532
|
-
totalSize: alepha.TNumber;
|
|
533
|
-
fileCount: alepha.TNumber;
|
|
558
|
+
readonly getFileStats: _$alepha_server0.ActionPrimitiveFn<{
|
|
559
|
+
response: _$alepha.TObject<{
|
|
560
|
+
totalSize: _$alepha.TNumber;
|
|
561
|
+
totalFiles: _$alepha.TNumber;
|
|
562
|
+
byBucket: _$alepha.TArray<_$alepha.TObject<{
|
|
563
|
+
bucket: _$alepha.TString;
|
|
564
|
+
totalSize: _$alepha.TNumber;
|
|
565
|
+
fileCount: _$alepha.TNumber;
|
|
534
566
|
}>>;
|
|
535
|
-
byMimeType: alepha.TArray<alepha.TObject<{
|
|
536
|
-
mimeType: alepha.TString;
|
|
537
|
-
fileCount: alepha.TNumber;
|
|
567
|
+
byMimeType: _$alepha.TArray<_$alepha.TObject<{
|
|
568
|
+
mimeType: _$alepha.TString;
|
|
569
|
+
fileCount: _$alepha.TNumber;
|
|
538
570
|
}>>;
|
|
539
571
|
}>;
|
|
540
572
|
}>;
|
|
@@ -553,49 +585,49 @@ declare class FileController {
|
|
|
553
585
|
* GET /files - Lists files with optional filtering and pagination.
|
|
554
586
|
* Supports filtering by bucket and tags.
|
|
555
587
|
*/
|
|
556
|
-
readonly findFiles: alepha_server0.ActionPrimitiveFn<{
|
|
557
|
-
query: alepha.TObject<{
|
|
558
|
-
page: alepha.TOptional<alepha.TInteger>;
|
|
559
|
-
size: alepha.TOptional<alepha.TInteger>;
|
|
560
|
-
sort: alepha.TOptional<alepha.TString>;
|
|
561
|
-
bucket: alepha.TOptional<alepha.TString>;
|
|
562
|
-
tags: alepha.TOptional<alepha.TArray<alepha.TString>>;
|
|
563
|
-
name: alepha.TOptional<alepha.TString>;
|
|
564
|
-
mimeType: alepha.TOptional<alepha.TString>;
|
|
565
|
-
creator: alepha.TOptional<alepha.TString>;
|
|
566
|
-
createdAfter: alepha.TOptional<alepha.TString>;
|
|
567
|
-
createdBefore: alepha.TOptional<alepha.TString>;
|
|
588
|
+
readonly findFiles: _$alepha_server0.ActionPrimitiveFn<{
|
|
589
|
+
query: _$alepha.TObject<{
|
|
590
|
+
page: _$alepha.TOptional<_$alepha.TInteger>;
|
|
591
|
+
size: _$alepha.TOptional<_$alepha.TInteger>;
|
|
592
|
+
sort: _$alepha.TOptional<_$alepha.TString>;
|
|
593
|
+
bucket: _$alepha.TOptional<_$alepha.TString>;
|
|
594
|
+
tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
595
|
+
name: _$alepha.TOptional<_$alepha.TString>;
|
|
596
|
+
mimeType: _$alepha.TOptional<_$alepha.TString>;
|
|
597
|
+
creator: _$alepha.TOptional<_$alepha.TString>;
|
|
598
|
+
createdAfter: _$alepha.TOptional<_$alepha.TString>;
|
|
599
|
+
createdBefore: _$alepha.TOptional<_$alepha.TString>;
|
|
568
600
|
}>;
|
|
569
|
-
response: alepha.TPage<alepha.TObject<{
|
|
570
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
571
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
572
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
573
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
574
|
-
blobId: alepha.TString;
|
|
575
|
-
creator: alepha.TOptional<alepha.TString>;
|
|
576
|
-
creatorRealm: alepha.TOptional<alepha.TString>;
|
|
577
|
-
creatorName: alepha.TOptional<alepha.TString>;
|
|
578
|
-
bucket: alepha.TString;
|
|
579
|
-
expirationDate: alepha.TOptional<alepha.TString>;
|
|
580
|
-
name: alepha.TString;
|
|
581
|
-
size: alepha.TNumber;
|
|
582
|
-
mimeType: alepha.TString;
|
|
583
|
-
tags: alepha.TOptional<alepha.TArray<alepha.TString>>;
|
|
584
|
-
checksum: alepha.TOptional<alepha.TString>;
|
|
601
|
+
response: _$alepha.TPage<_$alepha.TObject<{
|
|
602
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
603
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
604
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
605
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
606
|
+
blobId: _$alepha.TString;
|
|
607
|
+
creator: _$alepha.TOptional<_$alepha.TString>;
|
|
608
|
+
creatorRealm: _$alepha.TOptional<_$alepha.TString>;
|
|
609
|
+
creatorName: _$alepha.TOptional<_$alepha.TString>;
|
|
610
|
+
bucket: _$alepha.TString;
|
|
611
|
+
expirationDate: _$alepha.TOptional<_$alepha.TString>;
|
|
612
|
+
name: _$alepha.TString;
|
|
613
|
+
size: _$alepha.TNumber;
|
|
614
|
+
mimeType: _$alepha.TString;
|
|
615
|
+
tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
616
|
+
checksum: _$alepha.TOptional<_$alepha.TString>;
|
|
585
617
|
}>>;
|
|
586
618
|
}>;
|
|
587
619
|
/**
|
|
588
620
|
* DELETE /files/:id - Deletes a file from both storage and database.
|
|
589
621
|
* Removes the file from the bucket and cleans up the database record.
|
|
590
622
|
*/
|
|
591
|
-
readonly deleteFile: alepha_server0.ActionPrimitiveFn<{
|
|
592
|
-
params: alepha.TObject<{
|
|
593
|
-
id: alepha.TString;
|
|
623
|
+
readonly deleteFile: _$alepha_server0.ActionPrimitiveFn<{
|
|
624
|
+
params: _$alepha.TObject<{
|
|
625
|
+
id: _$alepha.TString;
|
|
594
626
|
}>;
|
|
595
|
-
response: alepha.TObject<{
|
|
596
|
-
ok: alepha.TBoolean;
|
|
597
|
-
id: alepha.TOptional<alepha.TUnion<[alepha.TString, alepha.TInteger]>>;
|
|
598
|
-
count: alepha.TOptional<alepha.TNumber>;
|
|
627
|
+
response: _$alepha.TObject<{
|
|
628
|
+
ok: _$alepha.TBoolean;
|
|
629
|
+
id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
|
|
630
|
+
count: _$alepha.TOptional<_$alepha.TNumber>;
|
|
599
631
|
}>;
|
|
600
632
|
}>;
|
|
601
633
|
/**
|
|
@@ -603,61 +635,61 @@ declare class FileController {
|
|
|
603
635
|
* Creates a database record with metadata and calculates checksum.
|
|
604
636
|
* Optionally specify bucket and expiration date.
|
|
605
637
|
*/
|
|
606
|
-
readonly uploadFile: alepha_server0.ActionPrimitiveFn<{
|
|
607
|
-
body: alepha.TObject<{
|
|
608
|
-
file: alepha.TFile;
|
|
638
|
+
readonly uploadFile: _$alepha_server0.ActionPrimitiveFn<{
|
|
639
|
+
body: _$alepha.TObject<{
|
|
640
|
+
file: _$alepha.TFile;
|
|
609
641
|
}>;
|
|
610
|
-
query: alepha.TObject<{
|
|
611
|
-
expirationDate: alepha.TOptional<alepha.TString>;
|
|
612
|
-
bucket: alepha.TOptional<alepha.TString>;
|
|
642
|
+
query: _$alepha.TObject<{
|
|
643
|
+
expirationDate: _$alepha.TOptional<_$alepha.TString>;
|
|
644
|
+
bucket: _$alepha.TOptional<_$alepha.TString>;
|
|
613
645
|
}>;
|
|
614
|
-
response: alepha.TObject<{
|
|
615
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
616
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
617
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
618
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
619
|
-
blobId: alepha.TString;
|
|
620
|
-
creator: alepha.TOptional<alepha.TString>;
|
|
621
|
-
creatorRealm: alepha.TOptional<alepha.TString>;
|
|
622
|
-
creatorName: alepha.TOptional<alepha.TString>;
|
|
623
|
-
bucket: alepha.TString;
|
|
624
|
-
expirationDate: alepha.TOptional<alepha.TString>;
|
|
625
|
-
name: alepha.TString;
|
|
626
|
-
size: alepha.TNumber;
|
|
627
|
-
mimeType: alepha.TString;
|
|
628
|
-
tags: alepha.TOptional<alepha.TArray<alepha.TString>>;
|
|
629
|
-
checksum: alepha.TOptional<alepha.TString>;
|
|
646
|
+
response: _$alepha.TObject<{
|
|
647
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
648
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
649
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
650
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
651
|
+
blobId: _$alepha.TString;
|
|
652
|
+
creator: _$alepha.TOptional<_$alepha.TString>;
|
|
653
|
+
creatorRealm: _$alepha.TOptional<_$alepha.TString>;
|
|
654
|
+
creatorName: _$alepha.TOptional<_$alepha.TString>;
|
|
655
|
+
bucket: _$alepha.TString;
|
|
656
|
+
expirationDate: _$alepha.TOptional<_$alepha.TString>;
|
|
657
|
+
name: _$alepha.TString;
|
|
658
|
+
size: _$alepha.TNumber;
|
|
659
|
+
mimeType: _$alepha.TString;
|
|
660
|
+
tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
661
|
+
checksum: _$alepha.TOptional<_$alepha.TString>;
|
|
630
662
|
}>;
|
|
631
663
|
}>;
|
|
632
664
|
/**
|
|
633
665
|
* PATCH /files/:id - Updates file metadata.
|
|
634
666
|
* Allows updating name, tags, and expiration date without modifying file content.
|
|
635
667
|
*/
|
|
636
|
-
readonly updateFile: alepha_server0.ActionPrimitiveFn<{
|
|
637
|
-
params: alepha.TObject<{
|
|
638
|
-
id: alepha.TString;
|
|
668
|
+
readonly updateFile: _$alepha_server0.ActionPrimitiveFn<{
|
|
669
|
+
params: _$alepha.TObject<{
|
|
670
|
+
id: _$alepha.TString;
|
|
639
671
|
}>;
|
|
640
|
-
body: alepha.TObject<{
|
|
641
|
-
name: alepha.TOptional<alepha.TString>;
|
|
642
|
-
tags: alepha.TOptional<alepha.TArray<alepha.TString>>;
|
|
643
|
-
expirationDate: alepha.TOptional<alepha.TString>;
|
|
672
|
+
body: _$alepha.TObject<{
|
|
673
|
+
name: _$alepha.TOptional<_$alepha.TString>;
|
|
674
|
+
tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
675
|
+
expirationDate: _$alepha.TOptional<_$alepha.TString>;
|
|
644
676
|
}>;
|
|
645
|
-
response: alepha.TObject<{
|
|
646
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
647
|
-
version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
648
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
649
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
650
|
-
blobId: alepha.TString;
|
|
651
|
-
creator: alepha.TOptional<alepha.TString>;
|
|
652
|
-
creatorRealm: alepha.TOptional<alepha.TString>;
|
|
653
|
-
creatorName: alepha.TOptional<alepha.TString>;
|
|
654
|
-
bucket: alepha.TString;
|
|
655
|
-
expirationDate: alepha.TOptional<alepha.TString>;
|
|
656
|
-
name: alepha.TString;
|
|
657
|
-
size: alepha.TNumber;
|
|
658
|
-
mimeType: alepha.TString;
|
|
659
|
-
tags: alepha.TOptional<alepha.TArray<alepha.TString>>;
|
|
660
|
-
checksum: alepha.TOptional<alepha.TString>;
|
|
677
|
+
response: _$alepha.TObject<{
|
|
678
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
679
|
+
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
680
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
681
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
682
|
+
blobId: _$alepha.TString;
|
|
683
|
+
creator: _$alepha.TOptional<_$alepha.TString>;
|
|
684
|
+
creatorRealm: _$alepha.TOptional<_$alepha.TString>;
|
|
685
|
+
creatorName: _$alepha.TOptional<_$alepha.TString>;
|
|
686
|
+
bucket: _$alepha.TString;
|
|
687
|
+
expirationDate: _$alepha.TOptional<_$alepha.TString>;
|
|
688
|
+
name: _$alepha.TString;
|
|
689
|
+
size: _$alepha.TNumber;
|
|
690
|
+
mimeType: _$alepha.TString;
|
|
691
|
+
tags: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
692
|
+
checksum: _$alepha.TOptional<_$alepha.TString>;
|
|
661
693
|
}>;
|
|
662
694
|
}>;
|
|
663
695
|
/**
|
|
@@ -665,18 +697,18 @@ declare class FileController {
|
|
|
665
697
|
* Returns the file content with appropriate Content-Type header.
|
|
666
698
|
* Cached with ETag support for 1 year (immutable).
|
|
667
699
|
*/
|
|
668
|
-
readonly streamFile: alepha_server0.ActionPrimitiveFn<{
|
|
669
|
-
params: alepha.TObject<{
|
|
670
|
-
id: alepha.TString;
|
|
700
|
+
readonly streamFile: _$alepha_server0.ActionPrimitiveFn<{
|
|
701
|
+
params: _$alepha.TObject<{
|
|
702
|
+
id: _$alepha.TString;
|
|
671
703
|
}>;
|
|
672
|
-
response: alepha.TFile;
|
|
704
|
+
response: _$alepha.TFile;
|
|
673
705
|
}>;
|
|
674
706
|
}
|
|
675
707
|
//#endregion
|
|
676
708
|
//#region ../../src/api/files/jobs/FileJobs.d.ts
|
|
677
709
|
declare class FileJobs {
|
|
678
710
|
protected readonly fileService: FileService;
|
|
679
|
-
readonly purgeFiles: alepha_scheduler0.SchedulerPrimitive;
|
|
711
|
+
readonly purgeFiles: _$alepha_scheduler0.SchedulerPrimitive;
|
|
680
712
|
}
|
|
681
713
|
//#endregion
|
|
682
714
|
//#region ../../src/api/files/index.d.ts
|
|
@@ -713,7 +745,7 @@ declare module "alepha/bucket" {
|
|
|
713
745
|
*
|
|
714
746
|
* @module alepha.api.files
|
|
715
747
|
*/
|
|
716
|
-
declare const AlephaApiFiles: alepha.Service<alepha.Module>;
|
|
748
|
+
declare const AlephaApiFiles: _$alepha.Service<_$alepha.Module>;
|
|
717
749
|
//#endregion
|
|
718
750
|
export { AdminFileStatsController, AlephaApiFiles, BucketStats, FileController, FileEntity, FileJobs, FileService, MimeTypeStats, StorageStats, bucketStatsSchema, files, mimeTypeStatsSchema, storageStatsSchema };
|
|
719
751
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/api/files/entities/files.ts","../../../src/api/files/schemas/fileQuerySchema.ts","../../../src/orm/core/schemas/insertSchema.ts","../../../src/orm/core/schemas/updateSchema.ts","../../../src/orm/core/primitives/$entity.ts","../../../src/orm/core/constants/PG_SYMBOLS.ts","../../../src/orm/core/helpers/pgAttr.ts","../../../src/orm/core/schemas/databaseEnvSchema.ts","../../../src/api/files/schemas/fileResourceSchema.ts","../../../src/api/files/schemas/storageStatsSchema.ts","../../../src/api/files/services/FileService.ts","../../../src/api/files/controllers/AdminFileStatsController.ts","../../../src/api/files/controllers/FileController.ts","../../../src/api/files/jobs/FileJobs.ts","../../../src/api/files/index.ts"],"mappings":";;;;;;;;;;;;;;cAGa,KAAA,EAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/api/files/entities/files.ts","../../../src/api/files/schemas/fileQuerySchema.ts","../../../src/orm/core/schemas/insertSchema.ts","../../../src/orm/core/schemas/updateSchema.ts","../../../src/orm/core/primitives/$entity.ts","../../../src/orm/core/constants/PG_SYMBOLS.ts","../../../src/orm/core/helpers/pgAttr.ts","../../../src/orm/core/schemas/databaseEnvSchema.ts","../../../src/api/files/schemas/fileResourceSchema.ts","../../../src/api/files/schemas/storageStatsSchema.ts","../../../src/api/files/services/FileService.ts","../../../src/api/files/controllers/AdminFileStatsController.ts","../../../src/api/files/controllers/FileController.ts","../../../src/api/files/jobs/FileJobs.ts","../../../src/api/files/index.ts"],"mappings":";;;;;;;;;;;;;;cAGa,KAAA,EAAK,aAAA,CAAA,eAAA,UAAA,OAAA;gDA6BhB,QAAA,CAAA,OAAA;;;;;;;;;;;;;;;;KAEU,UAAA,GAAa,MAAA,QAAc,KAAA,CAAM,MAAA;;;cC9BhC,eAAA,WAAe,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