@shivaedev/platform 0.33.0 → 0.35.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/CHANGELOG.md +31 -0
- package/README.md +35 -920
- package/package.json +33 -67
- package/dist/http-client/body.d.ts +0 -7
- package/dist/http-client/body.d.ts.map +0 -1
- package/dist/http-client/body.js +0 -32
- package/dist/http-client/body.js.map +0 -1
- package/dist/http-client/errors.d.ts +0 -51
- package/dist/http-client/errors.d.ts.map +0 -1
- package/dist/http-client/errors.js +0 -25
- package/dist/http-client/errors.js.map +0 -1
- package/dist/http-client/filterStatus.d.ts +0 -4
- package/dist/http-client/filterStatus.d.ts.map +0 -1
- package/dist/http-client/filterStatus.js +0 -38
- package/dist/http-client/filterStatus.js.map +0 -1
- package/dist/http-client/nextLink.d.ts +0 -2
- package/dist/http-client/nextLink.d.ts.map +0 -1
- package/dist/http-client/nextLink.js +0 -11
- package/dist/http-client/nextLink.js.map +0 -1
- package/dist/http-client/paginate.d.ts +0 -5
- package/dist/http-client/paginate.d.ts.map +0 -1
- package/dist/http-client/paginate.js +0 -31
- package/dist/http-client/paginate.js.map +0 -1
- package/dist/http-client/parseRetryAfter.d.ts +0 -3
- package/dist/http-client/parseRetryAfter.d.ts.map +0 -1
- package/dist/http-client/parseRetryAfter.js +0 -17
- package/dist/http-client/parseRetryAfter.js.map +0 -1
- package/dist/rpc/hasRole.d.ts +0 -4
- package/dist/rpc/hasRole.d.ts.map +0 -1
- package/dist/rpc/hasRole.js +0 -4
- package/dist/rpc/hasRole.js.map +0 -1
- package/dist/rpc/identity.d.ts +0 -34
- package/dist/rpc/identity.d.ts.map +0 -1
- package/dist/rpc/identity.js +0 -12
- package/dist/rpc/identity.js.map +0 -1
- package/dist/rpc/middleware.d.ts +0 -27
- package/dist/rpc/middleware.d.ts.map +0 -1
- package/dist/rpc/middleware.js +0 -28
- package/dist/rpc/middleware.js.map +0 -1
- package/dist/rpc/publicConfig.d.ts +0 -20
- package/dist/rpc/publicConfig.d.ts.map +0 -1
- package/dist/rpc/publicConfig.js +0 -8
- package/dist/rpc/publicConfig.js.map +0 -1
- package/dist/rpc/requireAdmin.d.ts +0 -5
- package/dist/rpc/requireAdmin.d.ts.map +0 -1
- package/dist/rpc/requireAdmin.js +0 -12
- package/dist/rpc/requireAdmin.js.map +0 -1
- package/dist/rpc/userRoles.d.ts +0 -36
- package/dist/rpc/userRoles.d.ts.map +0 -1
- package/dist/rpc/userRoles.js +0 -18
- package/dist/rpc/userRoles.js.map +0 -1
- package/dist/server/AppHostFactory.d.ts +0 -15
- package/dist/server/AppHostFactory.d.ts.map +0 -1
- package/dist/server/AppHostFactory.js +0 -2
- package/dist/server/AppHostFactory.js.map +0 -1
- package/dist/server/AppHostInput.d.ts +0 -13
- package/dist/server/AppHostInput.d.ts.map +0 -1
- package/dist/server/AppHostInput.js +0 -2
- package/dist/server/AppHostInput.js.map +0 -1
- package/dist/server/MigrationOptions.d.ts +0 -15
- package/dist/server/MigrationOptions.d.ts.map +0 -1
- package/dist/server/MigrationOptions.js +0 -2
- package/dist/server/MigrationOptions.js.map +0 -1
- package/dist/server/RedactionPolicy.d.ts +0 -4
- package/dist/server/RedactionPolicy.d.ts.map +0 -1
- package/dist/server/RedactionPolicy.js +0 -4
- package/dist/server/RedactionPolicy.js.map +0 -1
- package/dist/server/appHost.d.ts +0 -47
- package/dist/server/appHost.d.ts.map +0 -1
- package/dist/server/appHost.js +0 -17
- package/dist/server/appHost.js.map +0 -1
- package/dist/server/appHostHttp.d.ts +0 -88
- package/dist/server/appHostHttp.d.ts.map +0 -1
- package/dist/server/appHostHttp.js +0 -67
- package/dist/server/appHostHttp.js.map +0 -1
- package/dist/server/better-auth/adapter.d.ts +0 -10
- package/dist/server/better-auth/adapter.d.ts.map +0 -1
- package/dist/server/better-auth/adapter.js +0 -57
- package/dist/server/better-auth/adapter.js.map +0 -1
- package/dist/server/better-auth/allowedAccounts.d.ts +0 -10
- package/dist/server/better-auth/allowedAccounts.d.ts.map +0 -1
- package/dist/server/better-auth/allowedAccounts.js +0 -20
- package/dist/server/better-auth/allowedAccounts.js.map +0 -1
- package/dist/server/better-auth/bearerSessions.d.ts +0 -9
- package/dist/server/better-auth/bearerSessions.d.ts.map +0 -1
- package/dist/server/better-auth/bearerSessions.js +0 -38
- package/dist/server/better-auth/bearerSessions.js.map +0 -1
- package/dist/server/better-auth/memoryRateLimit.d.ts +0 -3
- package/dist/server/better-auth/memoryRateLimit.d.ts.map +0 -1
- package/dist/server/better-auth/memoryRateLimit.js +0 -46
- package/dist/server/better-auth/memoryRateLimit.js.map +0 -1
- package/dist/server/better-auth/mount.d.ts +0 -252
- package/dist/server/better-auth/mount.d.ts.map +0 -1
- package/dist/server/better-auth/mount.js +0 -89
- package/dist/server/better-auth/mount.js.map +0 -1
- package/dist/server/better-auth/mountRoutes.d.ts +0 -20
- package/dist/server/better-auth/mountRoutes.d.ts.map +0 -1
- package/dist/server/better-auth/mountRoutes.js +0 -43
- package/dist/server/better-auth/mountRoutes.js.map +0 -1
- package/dist/server/better-auth/relation.d.ts +0 -27
- package/dist/server/better-auth/relation.d.ts.map +0 -1
- package/dist/server/better-auth/relation.js +0 -31
- package/dist/server/better-auth/relation.js.map +0 -1
- package/dist/server/better-auth/revokeUnadmitted.d.ts +0 -10
- package/dist/server/better-auth/revokeUnadmitted.d.ts.map +0 -1
- package/dist/server/better-auth/revokeUnadmitted.js +0 -29
- package/dist/server/better-auth/revokeUnadmitted.js.map +0 -1
- package/dist/server/better-auth/rowAdapter.d.ts +0 -8
- package/dist/server/better-auth/rowAdapter.d.ts.map +0 -1
- package/dist/server/better-auth/rowAdapter.js +0 -52
- package/dist/server/better-auth/rowAdapter.js.map +0 -1
- package/dist/server/better-auth/signInGate.d.ts +0 -37
- package/dist/server/better-auth/signInGate.d.ts.map +0 -1
- package/dist/server/better-auth/signInGate.js +0 -38
- package/dist/server/better-auth/signInGate.js.map +0 -1
- package/dist/server/better-auth/signInPolicy.d.ts +0 -193
- package/dist/server/better-auth/signInPolicy.d.ts.map +0 -1
- package/dist/server/better-auth/signInPolicy.js +0 -61
- package/dist/server/better-auth/signInPolicy.js.map +0 -1
- package/dist/server/better-auth/testDatabase.d.ts +0 -19
- package/dist/server/better-auth/testDatabase.d.ts.map +0 -1
- package/dist/server/better-auth/testDatabase.js +0 -24
- package/dist/server/better-auth/testDatabase.js.map +0 -1
- package/dist/server/better-auth/testing.d.ts +0 -24
- package/dist/server/better-auth/testing.d.ts.map +0 -1
- package/dist/server/better-auth/testing.js +0 -21
- package/dist/server/better-auth/testing.js.map +0 -1
- package/dist/server/better-auth/userProfiles.d.ts +0 -14
- package/dist/server/better-auth/userProfiles.d.ts.map +0 -1
- package/dist/server/better-auth/userProfiles.js +0 -20
- package/dist/server/better-auth/userProfiles.js.map +0 -1
- package/dist/server/better-auth/users.d.ts +0 -24
- package/dist/server/better-auth/users.d.ts.map +0 -1
- package/dist/server/better-auth/users.js +0 -67
- package/dist/server/better-auth/users.js.map +0 -1
- package/dist/server/better-auth/where.d.ts +0 -22
- package/dist/server/better-auth/where.d.ts.map +0 -1
- package/dist/server/better-auth/where.js +0 -105
- package/dist/server/better-auth/where.js.map +0 -1
- package/dist/server/boundedBody.d.ts +0 -14
- package/dist/server/boundedBody.d.ts.map +0 -1
- package/dist/server/boundedBody.js +0 -36
- package/dist/server/boundedBody.js.map +0 -1
- package/dist/server/boundedRpcRequest.d.ts +0 -3
- package/dist/server/boundedRpcRequest.d.ts.map +0 -1
- package/dist/server/boundedRpcRequest.js +0 -22
- package/dist/server/boundedRpcRequest.js.map +0 -1
- package/dist/server/commandChanges.d.ts +0 -5
- package/dist/server/commandChanges.d.ts.map +0 -1
- package/dist/server/commandChanges.js +0 -44
- package/dist/server/commandChanges.js.map +0 -1
- package/dist/server/databaseAddress.d.ts +0 -4
- package/dist/server/databaseAddress.d.ts.map +0 -1
- package/dist/server/databaseAddress.js +0 -25
- package/dist/server/databaseAddress.js.map +0 -1
- package/dist/server/databaseLayer.d.ts +0 -14
- package/dist/server/databaseLayer.d.ts.map +0 -1
- package/dist/server/databaseLayer.js +0 -100
- package/dist/server/databaseLayer.js.map +0 -1
- package/dist/server/development.d.ts +0 -10
- package/dist/server/development.d.ts.map +0 -1
- package/dist/server/development.js +0 -20
- package/dist/server/development.js.map +0 -1
- package/dist/server/healthRoute.d.ts +0 -3
- package/dist/server/healthRoute.d.ts.map +0 -1
- package/dist/server/healthRoute.js +0 -18
- package/dist/server/healthRoute.js.map +0 -1
- package/dist/server/hostChanges.d.ts +0 -7
- package/dist/server/hostChanges.d.ts.map +0 -1
- package/dist/server/hostChanges.js +0 -25
- package/dist/server/hostChanges.js.map +0 -1
- package/dist/server/hostOptions.d.ts +0 -34
- package/dist/server/hostOptions.d.ts.map +0 -1
- package/dist/server/hostOptions.js +0 -2
- package/dist/server/hostOptions.js.map +0 -1
- package/dist/server/hostTransport.d.ts +0 -16
- package/dist/server/hostTransport.d.ts.map +0 -1
- package/dist/server/hostTransport.js +0 -16
- package/dist/server/hostTransport.js.map +0 -1
- package/dist/server/nativeClientOrigins.d.ts +0 -4
- package/dist/server/nativeClientOrigins.d.ts.map +0 -1
- package/dist/server/nativeClientOrigins.js +0 -38
- package/dist/server/nativeClientOrigins.js.map +0 -1
- package/dist/server/node-http/subscriptionSignal.d.ts +0 -12
- package/dist/server/node-http/subscriptionSignal.d.ts.map +0 -1
- package/dist/server/node-http/subscriptionSignal.js +0 -55
- package/dist/server/node-http/subscriptionSignal.js.map +0 -1
- package/dist/server/otlpHttpClient.d.ts +0 -4
- package/dist/server/otlpHttpClient.d.ts.map +0 -1
- package/dist/server/otlpHttpClient.js +0 -36
- package/dist/server/otlpHttpClient.js.map +0 -1
- package/dist/server/otlpTracing.d.ts +0 -3
- package/dist/server/otlpTracing.d.ts.map +0 -1
- package/dist/server/otlpTracing.js +0 -35
- package/dist/server/otlpTracing.js.map +0 -1
- package/dist/server/redactOtlpUrl.d.ts +0 -2
- package/dist/server/redactOtlpUrl.d.ts.map +0 -1
- package/dist/server/redactOtlpUrl.js +0 -41
- package/dist/server/redactOtlpUrl.js.map +0 -1
- package/dist/server/redactingDiagnostics.d.ts +0 -5
- package/dist/server/redactingDiagnostics.d.ts.map +0 -1
- package/dist/server/redactingDiagnostics.js +0 -25
- package/dist/server/redactingDiagnostics.js.map +0 -1
- package/dist/server/redactingRpcSerialization.d.ts +0 -4
- package/dist/server/redactingRpcSerialization.d.ts.map +0 -1
- package/dist/server/redactingRpcSerialization.js +0 -74
- package/dist/server/redactingRpcSerialization.js.map +0 -1
- package/dist/server/redactingTracer.d.ts +0 -4
- package/dist/server/redactingTracer.d.ts.map +0 -1
- package/dist/server/redactingTracer.js +0 -32
- package/dist/server/redactingTracer.js.map +0 -1
- package/dist/server/rpc-server/adapters/betterAuthSessions.d.ts +0 -14
- package/dist/server/rpc-server/adapters/betterAuthSessions.d.ts.map +0 -1
- package/dist/server/rpc-server/adapters/betterAuthSessions.js +0 -24
- package/dist/server/rpc-server/adapters/betterAuthSessions.js.map +0 -1
- package/dist/server/rpc-server/boundary.d.ts +0 -9
- package/dist/server/rpc-server/boundary.d.ts.map +0 -1
- package/dist/server/rpc-server/boundary.js +0 -18
- package/dist/server/rpc-server/boundary.js.map +0 -1
- package/dist/server/rpc-server/local.d.ts +0 -10
- package/dist/server/rpc-server/local.d.ts.map +0 -1
- package/dist/server/rpc-server/local.js +0 -93
- package/dist/server/rpc-server/local.js.map +0 -1
- package/dist/server/rpc-server/origin.d.ts +0 -15
- package/dist/server/rpc-server/origin.d.ts.map +0 -1
- package/dist/server/rpc-server/origin.js +0 -16
- package/dist/server/rpc-server/origin.js.map +0 -1
- package/dist/server/rpc-server/proxyRanges.d.ts +0 -4
- package/dist/server/rpc-server/proxyRanges.d.ts.map +0 -1
- package/dist/server/rpc-server/proxyRanges.js +0 -62
- package/dist/server/rpc-server/proxyRanges.js.map +0 -1
- package/dist/server/rpc-server/publicConfigLayer.d.ts +0 -4
- package/dist/server/rpc-server/publicConfigLayer.d.ts.map +0 -1
- package/dist/server/rpc-server/publicConfigLayer.js +0 -9
- package/dist/server/rpc-server/publicConfigLayer.js.map +0 -1
- package/dist/server/rpc-server/redact.d.ts +0 -4
- package/dist/server/rpc-server/redact.d.ts.map +0 -1
- package/dist/server/rpc-server/redact.js +0 -64
- package/dist/server/rpc-server/redact.js.map +0 -1
- package/dist/server/rpc-server/redactCause.d.ts +0 -7
- package/dist/server/rpc-server/redactCause.d.ts.map +0 -1
- package/dist/server/rpc-server/redactCause.js +0 -92
- package/dist/server/rpc-server/redactCause.js.map +0 -1
- package/dist/server/rpc-server/revalidateStream.d.ts +0 -6
- package/dist/server/rpc-server/revalidateStream.d.ts.map +0 -1
- package/dist/server/rpc-server/revalidateStream.js +0 -19
- package/dist/server/rpc-server/revalidateStream.js.map +0 -1
- package/dist/server/rpc-server/roles.d.ts +0 -9
- package/dist/server/rpc-server/roles.d.ts.map +0 -1
- package/dist/server/rpc-server/roles.js +0 -38
- package/dist/server/rpc-server/roles.js.map +0 -1
- package/dist/server/rpc-server/sensitive.d.ts +0 -6
- package/dist/server/rpc-server/sensitive.d.ts.map +0 -1
- package/dist/server/rpc-server/sensitive.js +0 -78
- package/dist/server/rpc-server/sensitive.js.map +0 -1
- package/dist/server/rpc-server/session.d.ts +0 -32
- package/dist/server/rpc-server/session.d.ts.map +0 -1
- package/dist/server/rpc-server/session.js +0 -71
- package/dist/server/rpc-server/session.js.map +0 -1
- package/dist/server/rpc-server/sessionKeys.d.ts +0 -10
- package/dist/server/rpc-server/sessionKeys.d.ts.map +0 -1
- package/dist/server/rpc-server/sessionKeys.js +0 -22
- package/dist/server/rpc-server/sessionKeys.js.map +0 -1
- package/dist/server/rpc-server/tracing.d.ts +0 -9
- package/dist/server/rpc-server/tracing.d.ts.map +0 -1
- package/dist/server/rpc-server/tracing.js +0 -51
- package/dist/server/rpc-server/tracing.js.map +0 -1
- package/dist/server/rpc-server/transportHeaders.d.ts +0 -4
- package/dist/server/rpc-server/transportHeaders.d.ts.map +0 -1
- package/dist/server/rpc-server/transportHeaders.js +0 -6
- package/dist/server/rpc-server/transportHeaders.js.map +0 -1
- package/dist/server/rpc-server/trustedProxy.d.ts +0 -7
- package/dist/server/rpc-server/trustedProxy.d.ts.map +0 -1
- package/dist/server/rpc-server/trustedProxy.js +0 -19
- package/dist/server/rpc-server/trustedProxy.js.map +0 -1
- package/dist/server/rpc-server/trustedProxyRanges.d.ts +0 -2
- package/dist/server/rpc-server/trustedProxyRanges.d.ts.map +0 -1
- package/dist/server/rpc-server/trustedProxyRanges.js +0 -5
- package/dist/server/rpc-server/trustedProxyRanges.js.map +0 -1
- package/dist/server/runtime/makePlatform.d.ts +0 -4
- package/dist/server/runtime/makePlatform.d.ts.map +0 -1
- package/dist/server/runtime/makePlatform.js +0 -65
- package/dist/server/runtime/makePlatform.js.map +0 -1
- package/dist/server/runtime/types.d.ts +0 -19
- package/dist/server/runtime/types.d.ts.map +0 -1
- package/dist/server/runtime/types.js +0 -2
- package/dist/server/runtime/types.js.map +0 -1
- package/dist/server/safeOtlpSerialization.d.ts +0 -6
- package/dist/server/safeOtlpSerialization.d.ts.map +0 -1
- package/dist/server/safeOtlpSerialization.js +0 -67
- package/dist/server/safeOtlpSerialization.js.map +0 -1
- package/dist/server/schemaSensitiveKeys.d.ts +0 -5
- package/dist/server/schemaSensitiveKeys.d.ts.map +0 -1
- package/dist/server/schemaSensitiveKeys.js +0 -143
- package/dist/server/schemaSensitiveKeys.js.map +0 -1
- package/dist/server/setupDatabases.d.ts +0 -3
- package/dist/server/setupDatabases.d.ts.map +0 -1
- package/dist/server/setupDatabases.js +0 -12
- package/dist/server/setupDatabases.js.map +0 -1
- package/dist/server/testing/makePlatformIt.d.ts +0 -8
- package/dist/server/testing/makePlatformIt.d.ts.map +0 -1
- package/dist/server/testing/makePlatformIt.js +0 -32
- package/dist/server/testing/makePlatformIt.js.map +0 -1
- package/dist/server/testing/types.d.ts +0 -28
- package/dist/server/testing/types.d.ts.map +0 -1
- package/dist/server/testing/types.js +0 -2
- package/dist/server/testing/types.js.map +0 -1
- package/dist/server/tracedGroup.d.ts +0 -4
- package/dist/server/tracedGroup.d.ts.map +0 -1
- package/dist/server/tracedGroup.js +0 -13
- package/dist/server/tracedGroup.js.map +0 -1
- package/src/http-client/body.ts +0 -37
- package/src/http-client/errors.ts +0 -23
- package/src/http-client/filterStatus.ts +0 -38
- package/src/http-client/nextLink.ts +0 -10
- package/src/http-client/paginate.ts +0 -39
- package/src/http-client/parseRetryAfter.ts +0 -17
- package/src/rpc/hasRole.ts +0 -3
- package/src/rpc/identity.ts +0 -24
- package/src/rpc/middleware.ts +0 -54
- package/src/rpc/publicConfig.ts +0 -9
- package/src/rpc/requireAdmin.ts +0 -12
- package/src/rpc/userRoles.ts +0 -20
- package/src/server/AppHostFactory.ts +0 -121
- package/src/server/AppHostInput.ts +0 -74
- package/src/server/MigrationOptions.ts +0 -15
- package/src/server/RedactionPolicy.ts +0 -4
- package/src/server/appHost.ts +0 -117
- package/src/server/appHostHttp.ts +0 -147
- package/src/server/better-auth/adapter.ts +0 -81
- package/src/server/better-auth/allowedAccounts.ts +0 -29
- package/src/server/better-auth/bearerSessions.ts +0 -50
- package/src/server/better-auth/memoryRateLimit.ts +0 -56
- package/src/server/better-auth/mount.ts +0 -114
- package/src/server/better-auth/mountRoutes.ts +0 -62
- package/src/server/better-auth/relation.ts +0 -59
- package/src/server/better-auth/revokeUnadmitted.ts +0 -41
- package/src/server/better-auth/rowAdapter.ts +0 -78
- package/src/server/better-auth/signInGate.ts +0 -77
- package/src/server/better-auth/signInPolicy.ts +0 -72
- package/src/server/better-auth/testDatabase.ts +0 -27
- package/src/server/better-auth/testing.ts +0 -35
- package/src/server/better-auth/userProfiles.ts +0 -37
- package/src/server/better-auth/users.ts +0 -69
- package/src/server/better-auth/where.ts +0 -123
- package/src/server/boundedBody.ts +0 -45
- package/src/server/boundedRpcRequest.ts +0 -28
- package/src/server/commandChanges.ts +0 -52
- package/src/server/databaseAddress.ts +0 -25
- package/src/server/databaseLayer.ts +0 -127
- package/src/server/development.ts +0 -34
- package/src/server/healthRoute.ts +0 -27
- package/src/server/hostChanges.ts +0 -34
- package/src/server/hostOptions.ts +0 -30
- package/src/server/hostTransport.ts +0 -26
- package/src/server/nativeClientOrigins.ts +0 -44
- package/src/server/node-http/subscriptionSignal.ts +0 -64
- package/src/server/otlpHttpClient.ts +0 -54
- package/src/server/otlpTracing.ts +0 -61
- package/src/server/redactOtlpUrl.ts +0 -48
- package/src/server/redactingDiagnostics.ts +0 -33
- package/src/server/redactingRpcSerialization.ts +0 -85
- package/src/server/redactingTracer.ts +0 -37
- package/src/server/rpc-server/adapters/betterAuthSessions.ts +0 -44
- package/src/server/rpc-server/boundary.ts +0 -26
- package/src/server/rpc-server/local.ts +0 -100
- package/src/server/rpc-server/origin.ts +0 -26
- package/src/server/rpc-server/proxyRanges.ts +0 -61
- package/src/server/rpc-server/publicConfigLayer.ts +0 -12
- package/src/server/rpc-server/redact.ts +0 -64
- package/src/server/rpc-server/redactCause.ts +0 -104
- package/src/server/rpc-server/revalidateStream.ts +0 -25
- package/src/server/rpc-server/roles.ts +0 -55
- package/src/server/rpc-server/sensitive.ts +0 -79
- package/src/server/rpc-server/session.ts +0 -140
- package/src/server/rpc-server/sessionKeys.ts +0 -25
- package/src/server/rpc-server/tracing.ts +0 -68
- package/src/server/rpc-server/transportHeaders.ts +0 -8
- package/src/server/rpc-server/trustedProxy.ts +0 -22
- package/src/server/rpc-server/trustedProxyRanges.ts +0 -5
- package/src/server/runtime/makePlatform.ts +0 -75
- package/src/server/runtime/types.ts +0 -24
- package/src/server/safeOtlpSerialization.ts +0 -73
- package/src/server/schemaSensitiveKeys.ts +0 -148
- package/src/server/setupDatabases.ts +0 -12
- package/src/server/testing/makePlatformIt.ts +0 -76
- package/src/server/testing/types.ts +0 -38
- package/src/server/tracedGroup.ts +0 -14
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"publicConfig.d.ts","sourceRoot":"","sources":["../../src/rpc/publicConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrC,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;0EAI5D"}
|
package/dist/rpc/publicConfig.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { contract } from "@shivaedev/effect-contract/contract.ts";
|
|
2
|
-
import { query } from "@shivaedev/effect-contract/operation.ts";
|
|
3
|
-
export function publicConfig(schema) {
|
|
4
|
-
return contract("platform.publicConfig", {
|
|
5
|
-
queries: [query("get", { reads: () => [], success: schema })],
|
|
6
|
-
});
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=publicConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"publicConfig.js","sourceRoot":"","sources":["../../src/rpc/publicConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,yCAAyC,CAAC;AAEhE,MAAM,UAAU,YAAY,CAAO,MAA0B;IAC5D,OAAO,QAAQ,CAAC,uBAAuB,EAAE;QACxC,OAAO,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;KAC7D,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Effect } from "effect";
|
|
2
|
-
import { Forbidden } from "@shivaedev/effect-contract/errors/taxonomy.ts";
|
|
3
|
-
import { SessionUser, type SessionUserValue } from "./identity.ts";
|
|
4
|
-
export declare const requireAdmin: Effect.Effect<SessionUserValue, Forbidden, SessionUser>;
|
|
5
|
-
//# sourceMappingURL=requireAdmin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"requireAdmin.d.ts","sourceRoot":"","sources":["../../src/rpc/requireAdmin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEnE,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,SAAS,EAAE,WAAW,CAM/E,CAAC"}
|
package/dist/rpc/requireAdmin.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Effect } from "effect";
|
|
2
|
-
import { Forbidden } from "@shivaedev/effect-contract/errors/taxonomy.ts";
|
|
3
|
-
import { hasRole } from "./hasRole.js";
|
|
4
|
-
import { SessionUser } from "./identity.js";
|
|
5
|
-
export const requireAdmin = Effect.gen(function* () {
|
|
6
|
-
const user = yield* SessionUser;
|
|
7
|
-
if (!hasRole(user, "admin")) {
|
|
8
|
-
return yield* new Forbidden({ message: "Administrator role required" });
|
|
9
|
-
}
|
|
10
|
-
return user;
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=requireAdmin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"requireAdmin.js","sourceRoot":"","sources":["../../src/rpc/requireAdmin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAC;AAEnE,MAAM,CAAC,MAAM,YAAY,GAA4D,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACxG,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,WAAW,CAAC;IAChC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAC,CAAC,IAAI,SAAS,CAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC,CAAC,CAAC"}
|
package/dist/rpc/userRoles.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Schema } from "effect";
|
|
2
|
-
export declare const UserRole: Schema.Literals<readonly ["user", "admin", "owner"]>;
|
|
3
|
-
export type UserRole = typeof UserRole.Type;
|
|
4
|
-
export declare const AppUser: Schema.Struct<{
|
|
5
|
-
readonly createdAt: Schema.DateTimeUtcFromString;
|
|
6
|
-
readonly email: Schema.String;
|
|
7
|
-
readonly id: Schema.String;
|
|
8
|
-
readonly name: Schema.String;
|
|
9
|
-
readonly roles: Schema.$Array<Schema.String>;
|
|
10
|
-
}>;
|
|
11
|
-
export declare const UserListInput: Schema.Struct<{
|
|
12
|
-
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
13
|
-
readonly limit: Schema.Number;
|
|
14
|
-
}>;
|
|
15
|
-
export declare const UserList: Schema.Struct<{
|
|
16
|
-
readonly next: Schema.OptionFromNullOr<Schema.String>;
|
|
17
|
-
readonly users: Schema.$Array<Schema.Struct<{
|
|
18
|
-
readonly createdAt: Schema.DateTimeUtcFromString;
|
|
19
|
-
readonly email: Schema.String;
|
|
20
|
-
readonly id: Schema.String;
|
|
21
|
-
readonly name: Schema.String;
|
|
22
|
-
readonly roles: Schema.$Array<Schema.String>;
|
|
23
|
-
}>>;
|
|
24
|
-
}>;
|
|
25
|
-
export declare const ChangeRoleInput: Schema.Struct<{
|
|
26
|
-
readonly grant: Schema.Boolean;
|
|
27
|
-
readonly role: Schema.Literals<readonly ["user", "admin", "owner"]>;
|
|
28
|
-
readonly userId: Schema.String;
|
|
29
|
-
}>;
|
|
30
|
-
declare const LastOwner_base: Schema.Class<LastOwner, Schema.TaggedStruct<"LastOwner", {
|
|
31
|
-
readonly userId: Schema.String;
|
|
32
|
-
}>, import("effect/Cause").YieldableError>;
|
|
33
|
-
export declare class LastOwner extends LastOwner_base {
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=userRoles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userRoles.d.ts","sourceRoot":"","sources":["../../src/rpc/userRoles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAO,MAAM,QAAQ,sDAA8C,CAAC;AACpE,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;EAMlB,CAAC;AAEH,eAAO,MAAM,aAAa;;;EAGxB,CAAC;AACH,eAAO,MAAM,QAAQ;;;;;;;;;EAAgG,CAAC;AACtH,eAAO,MAAM,eAAe;;;;EAAkF,CAAC;;;;AAC/G,qBAAa,SAAU,SAAQ,cAAuE;CAAG"}
|
package/dist/rpc/userRoles.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Schema } from "effect";
|
|
2
|
-
export const UserRole = Schema.Literals(["user", "admin", "owner"]);
|
|
3
|
-
export const AppUser = Schema.Struct({
|
|
4
|
-
createdAt: Schema.DateTimeUtcFromString,
|
|
5
|
-
email: Schema.String,
|
|
6
|
-
id: Schema.String,
|
|
7
|
-
name: Schema.String,
|
|
8
|
-
roles: Schema.Array(Schema.String),
|
|
9
|
-
});
|
|
10
|
-
export const UserListInput = Schema.Struct({
|
|
11
|
-
cursor: Schema.optionalKey(Schema.String),
|
|
12
|
-
limit: Schema.Number.check(Schema.isInt(), Schema.isBetween({ maximum: 100, minimum: 1 })),
|
|
13
|
-
});
|
|
14
|
-
export const UserList = Schema.Struct({ next: Schema.OptionFromNullOr(Schema.String), users: Schema.Array(AppUser) });
|
|
15
|
-
export const ChangeRoleInput = Schema.Struct({ grant: Schema.Boolean, role: UserRole, userId: Schema.String });
|
|
16
|
-
export class LastOwner extends Schema.TaggedError()("LastOwner", { userId: Schema.String }) {
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=userRoles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userRoles.js","sourceRoot":"","sources":["../../src/rpc/userRoles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAGpE,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC,qBAAqB;IACvC,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,EAAE,EAAE,MAAM,CAAC,MAAM;IACjB,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;CAC1F,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AACtH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;AAC/G,MAAM,OAAO,SAAU,SAAQ,MAAM,CAAC,WAAW,EAAa,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;CAAG"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Effect, Layer } from "effect";
|
|
2
|
-
import type { Rpc } from "effect/rpc";
|
|
3
|
-
import type { HostPreflight } from "#server/AppHostInput.ts";
|
|
4
|
-
import type { AppDatabaseOptions, AppHostOptions, AppHttpHostOptions, AppLocalHostOptions } from "#server/appHost.ts";
|
|
5
|
-
import type { appHostHttp, deferredHost } from "#server/appHostHttp.ts";
|
|
6
|
-
import type { SessionShape } from "#server/rpc-server/session.ts";
|
|
7
|
-
type PreflightHost<THost extends Layer.Any, TServices, TError, TRequirements> = Layer.Layer<Layer.Success<THost> | TServices, Layer.Error<THost> | TError, Exclude<Layer.Services<THost>, TServices> | TRequirements>;
|
|
8
|
-
export interface AppHostFactory {
|
|
9
|
-
<TRpcs extends Rpc.Any, THandlers, THandlerError, THandlerRequirements, TServices = never, TServiceError = never, TServiceRequirements = never, TMigrations = never, TSession extends SessionShape = SessionShape, TApplicationError = never, TApplicationRequirements = never, TPreflight = never, TPreflightError = never, TPreflightRequirements = never>(options: HostPreflight<TPreflight, TPreflightError, TPreflightRequirements> & ((AppDatabaseOptions<TMigrations> & {
|
|
10
|
-
readonly application: Effect.Effect<AppHttpHostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TSession>, TApplicationError, TApplicationRequirements>;
|
|
11
|
-
}) | AppHostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TMigrations, TSession, TPreflight, TPreflightError, TPreflightRequirements> | AppLocalHostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TMigrations, TPreflight, TPreflightError, TPreflightRequirements>)): PreflightHost<ReturnType<typeof deferredHost<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TMigrations, TSession, TApplicationError, TApplicationRequirements>>, NoInfer<TPreflight>, NoInfer<TPreflightError>, NoInfer<TPreflightRequirements>>;
|
|
12
|
-
<TRpcs extends Rpc.Any, THandlers, THandlerError, THandlerRequirements, TServices = never, TServiceError = never, TServiceRequirements = never, TSession extends SessionShape = SessionShape, TPreflight = never, TPreflightError = never, TPreflightRequirements = never>(options: AppHttpHostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TSession, TPreflight, TPreflightError, TPreflightRequirements>): PreflightHost<ReturnType<typeof appHostHttp<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TSession>>, NoInfer<TPreflight>, NoInfer<TPreflightError>, NoInfer<TPreflightRequirements>>;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=AppHostFactory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppHostFactory.d.ts","sourceRoot":"","sources":["../../src/server/AppHostFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,kBAAkB,EAAE,mBAAmB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AC,CAC/B,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppHostFactory.js","sourceRoot":"","sources":["../../src/server/AppHostFactory.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Effect, Layer } from "effect";
|
|
2
|
-
import type { Rpc } from "effect/rpc";
|
|
3
|
-
import type { AppDatabaseOptions, AppHostOptions, AppHttpHostOptions, AppLocalHostOptions } from "#server/appHost.ts";
|
|
4
|
-
import type { SessionShape } from "#server/rpc-server/session.ts";
|
|
5
|
-
export type HostPreflight<TServices = never, TError = never, TRequirements = never> = {
|
|
6
|
-
readonly preflight: Layer.Layer<TServices, TError, TRequirements>;
|
|
7
|
-
} | ([TServices | TError | TRequirements] extends [never] ? {
|
|
8
|
-
readonly preflight?: never;
|
|
9
|
-
} : never);
|
|
10
|
-
export type AppHostInput<TRpcs extends Rpc.Any, THandlers, THandlerError, THandlerRequirements, TServices = never, TServiceError = never, TServiceRequirements = never, TMigrations = never, TSession extends SessionShape = SessionShape, TApplicationError = never, TApplicationRequirements = never, TPreflight = never, TPreflightError = never, TPreflightRequirements = never> = HostPreflight<TPreflight, TPreflightError, TPreflightRequirements> & ((AppDatabaseOptions<TMigrations> & {
|
|
11
|
-
readonly application: Effect.Effect<AppHttpHostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TSession>, TApplicationError, TApplicationRequirements>;
|
|
12
|
-
}) | AppHostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TMigrations, TSession, TPreflight, TPreflightError, TPreflightRequirements> | AppLocalHostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TMigrations, TPreflight, TPreflightError, TPreflightRequirements> | AppHttpHostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TSession, TPreflight, TPreflightError, TPreflightRequ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ACrE,CACG,CAAC,kBAAkB,CAAC,WAAW,CAAC,GAAG;IACnC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,CAClC,kBAAkB,CAAC,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,oBAAoB,EAAE,SAAS,EAAE,aAAa,EAAE,oBAAoB,EAAE,QAAQ,CAAC,EACnI,iBAAiB,EACjB,wBAAwB,CACxB,CAAC;CACD,CAAC,GACF,cAAc,CACd,KAAK,EACL,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,eAAe,EACf,sBAAsB,CACrB,GACD,mBAAmB,CACnB,KAAK,EACL,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,UAAU,EACV,eAAe,EACf,sBAAsB,CACrB,GACD,kBAAkB,CAClB,KAAK,EACL,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,eAAe,EACf,sBAAsB,CACrB,CACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppHostInput.js","sourceRoot":"","sources":["../../src/server/AppHostInput.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Duration } from "effect";
|
|
2
|
-
import type { Migrator } from "effect/sql";
|
|
3
|
-
import type { SchemaComponent } from "@shivaedev/effect-sql/SchemaComponent.ts";
|
|
4
|
-
export interface MigrationOptions<R = never> {
|
|
5
|
-
readonly components?: readonly SchemaComponent<R>[];
|
|
6
|
-
readonly loader: Migrator.Loader<R>;
|
|
7
|
-
readonly lockTimeout?: Duration.Input;
|
|
8
|
-
readonly mode?: "migrate" | "check" | "wait";
|
|
9
|
-
readonly pollInterval?: Duration.Input;
|
|
10
|
-
readonly progressInterval?: Duration.Input;
|
|
11
|
-
readonly release?: string;
|
|
12
|
-
readonly table?: string;
|
|
13
|
-
readonly waitTimeout?: Duration.Input;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=MigrationOptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MigrationOptions.d.ts","sourceRoot":"","sources":["../../src/server/MigrationOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAEhF,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,KAAK;IAC1C,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IACpD,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACpC,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;IAC7C,QAAQ,CAAC,YAAY,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;IACvC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;IAC3C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;CACtC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MigrationOptions.js","sourceRoot":"","sources":["../../src/server/MigrationOptions.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RedactionPolicy.d.ts","sourceRoot":"","sources":["../../src/server/RedactionPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpF,eAAO,MAAM,eAAe,iCAAiH,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Context } from "effect";
|
|
2
|
-
import { isSensitiveKey } from "#server/rpc-server/sensitive.ts";
|
|
3
|
-
export const RedactionPolicy = Context.Reference("@shivaedev/platform/RedactionPolicy", { defaultValue: () => isSensitiveKey });
|
|
4
|
-
//# sourceMappingURL=RedactionPolicy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RedactionPolicy.js","sourceRoot":"","sources":["../../src/server/RedactionPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,cAAc,EAAqB,MAAM,iCAAiC,CAAC;AAEpF,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC,SAAS,CAAe,qCAAqC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,cAAc,EAAE,CAAC,CAAC"}
|
package/dist/server/appHost.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Context, type Effect, Layer } from "effect";
|
|
2
|
-
import type { Rpc } from "effect/rpc";
|
|
3
|
-
import type { AppHostFactory } from "#server/AppHostFactory.ts";
|
|
4
|
-
import type { HostPreflight } from "#server/AppHostInput.ts";
|
|
5
|
-
import { type DatabaseConfig } from "#server/databaseLayer.ts";
|
|
6
|
-
import type { HostOptions, HostPolicy } from "#server/hostOptions.ts";
|
|
7
|
-
import type { MigrationOptions } from "#server/MigrationOptions.ts";
|
|
8
|
-
import type { SessionPolicy, SessionShape } from "#server/rpc-server/session.ts";
|
|
9
|
-
declare const AppChanges_base: Context.ServiceClass<AppChanges, "@shivaedev/platform/AppChanges", {
|
|
10
|
-
resync: Effect.Effect<number, never, never>;
|
|
11
|
-
stream: (keys: readonly import("@shivaedev/effect-contract/keys.ts").Key[], context?: import("@shivaedev/effect-contract/keys.ts").KeyContext) => import("effect/Stream").Stream<{
|
|
12
|
-
readonly _tag: "Changed";
|
|
13
|
-
readonly keys: readonly ({
|
|
14
|
-
readonly _tag: "List";
|
|
15
|
-
readonly collection: string;
|
|
16
|
-
} | {
|
|
17
|
-
readonly _tag: "Item";
|
|
18
|
-
readonly collection: string;
|
|
19
|
-
readonly id: string | number;
|
|
20
|
-
})[];
|
|
21
|
-
} | {
|
|
22
|
-
readonly _tag: "Resync";
|
|
23
|
-
}, never, never>;
|
|
24
|
-
}>;
|
|
25
|
-
export declare class AppChanges extends AppChanges_base {
|
|
26
|
-
}
|
|
27
|
-
export interface AppDatabaseOptions<R = never> {
|
|
28
|
-
readonly config?: DatabaseConfig;
|
|
29
|
-
readonly migrations: MigrationOptions<R>;
|
|
30
|
-
}
|
|
31
|
-
export declare function appDatabase<R>(options: AppDatabaseOptions<R>): Layer.Layer<AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient, import("effect/Config").ConfigError | import("effect/sql/Migrator").MigrationError | import("effect/sql/SqlError").SqlError, Exclude<Exclude<R, import("effect/Scope").Scope>, import("@effect/sql-pg/PgClient").PgClient | import("effect/sql/SqlClient").SqlClient>>;
|
|
32
|
-
export type AppHostOptions<TRpcs extends Rpc.Any, THandlers, THandlerError, THandlerRequirements, TServices = never, TServiceError = never, TServiceRequirements = never, TMigrations = never, TSession extends SessionShape = SessionShape, TPreflight = never, TPreflightError = never, TPreflightRequirements = never> = HostPreflight<TPreflight, TPreflightError, TPreflightRequirements> & HostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements> & {
|
|
33
|
-
readonly migrations: AppDatabaseOptions<TMigrations>["migrations"];
|
|
34
|
-
readonly policy?: undefined;
|
|
35
|
-
readonly sessions: SessionPolicy<TSession>;
|
|
36
|
-
};
|
|
37
|
-
export type AppLocalHostOptions<TRpcs extends Rpc.Any, THandlers, THandlerError, THandlerRequirements, TServices = never, TServiceError = never, TServiceRequirements = never, TMigrations = never, TPreflight = never, TPreflightError = never, TPreflightRequirements = never> = HostPreflight<TPreflight, TPreflightError, TPreflightRequirements> & HostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements> & {
|
|
38
|
-
readonly migrations: AppDatabaseOptions<TMigrations>["migrations"];
|
|
39
|
-
readonly policy: "loopback";
|
|
40
|
-
readonly sessions?: never;
|
|
41
|
-
};
|
|
42
|
-
export type AppHttpHostOptions<TRpcs extends Rpc.Any, THandlers, THandlerError, THandlerRequirements, TServices = never, TServiceError = never, TServiceRequirements = never, TSession extends SessionShape = SessionShape, TPreflight = never, TPreflightError = never, TPreflightRequirements = never> = HostPreflight<TPreflight, TPreflightError, TPreflightRequirements> & HostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements> & HostPolicy<TSession> & {
|
|
43
|
-
readonly migrations?: undefined;
|
|
44
|
-
};
|
|
45
|
-
export declare const appHost: AppHostFactory;
|
|
46
|
-
export {};
|
|
47
|
-
//# sourceMappingURL=appHost.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appHost.d.ts","sourceRoot":"","sources":["../../src/server/appHost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAgB,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE3E,OAAO,EAAE,KA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,CAAC"}
|
package/dist/server/appHost.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Context, Layer } from "effect";
|
|
2
|
-
import { appHostHttp, deferredHost, migratedHost } from "#server/appHostHttp.ts";
|
|
3
|
-
import { databaseLayer } from "#server/databaseLayer.ts";
|
|
4
|
-
export class AppChanges extends Context.Service()("@shivaedev/platform/AppChanges") {
|
|
5
|
-
}
|
|
6
|
-
export function appDatabase(options) {
|
|
7
|
-
return databaseLayer(options, AppChanges);
|
|
8
|
-
}
|
|
9
|
-
export const appHost = (options) => {
|
|
10
|
-
if ("application" in options) {
|
|
11
|
-
return deferredHost(options.application, appDatabase(options), AppChanges).pipe(Layer.provideMerge(options.preflight ?? Layer.empty));
|
|
12
|
-
}
|
|
13
|
-
return options.migrations === undefined
|
|
14
|
-
? appHostHttp(options, AppChanges).pipe(Layer.provideMerge(options.preflight ?? Layer.empty))
|
|
15
|
-
: migratedHost({ ...options, migrations: options.migrations }, appDatabase({ ...options, migrations: options.migrations }), AppChanges).pipe(Layer.provideMerge(options.preflight ?? Layer.empty));
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=appHost.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appHost.js","sourceRoot":"","sources":["../../src/server/appHost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,KAAK,EAAE,MAAM,QAAQ,CAAC;AAKrD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,EAAuB,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK9E,MAAM,OAAO,UAAW,SAAQ,OAAO,CAAC,OAAO,EAAqD,CAAC,gCAAgC,CAAC;CAAG;AAMzI,MAAM,UAAU,WAAW,CAAI,OAA8B;IAC5D,OAAO,aAAa,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AAC3C,CAAC;AAwDD,MAAM,CAAC,MAAM,OAAO,GAAmB,CAgBtC,OAeC,EACA,EAAE;IACH,IAAI,aAAa,IAAI,OAAO,EAAE,CAAC;QAC9B,OAAO,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IACvI,CAAC;IACD,OAAO,OAAO,CAAC,UAAU,KAAK,SAAS;QACtC,CAAC,CAAC,WAAW,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;QAC7F,CAAC,CAAC,YAAY,CAAC,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,EAAE,WAAW,CAAC,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC,IAAI,CAC1I,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC,CACpD,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { NodeServices } from "@effect/platform-node";
|
|
2
|
-
import { Config, Effect, Layer } from "effect";
|
|
3
|
-
import { HttpRouter } from "effect/http";
|
|
4
|
-
import { type Rpc, RpcSerialization } from "effect/rpc";
|
|
5
|
-
import type { RequestTracing } from "#rpc/middleware.ts";
|
|
6
|
-
import type { AppChanges, AppHttpHostOptions } from "#server/appHost.ts";
|
|
7
|
-
import type { databaseLayer } from "#server/databaseLayer.ts";
|
|
8
|
-
import type { HostOptions, HostPolicy } from "#server/hostOptions.ts";
|
|
9
|
-
import type { MigrationOptions } from "#server/MigrationOptions.ts";
|
|
10
|
-
import { type SessionShape } from "#server/rpc-server/session.ts";
|
|
11
|
-
export declare function appHostHttp<TRpcs extends Rpc.Any, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TSession extends SessionShape>(options: HostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements> & HostPolicy<TSession>, changesService: typeof AppChanges): Layer.Layer<TServices | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices, TServiceError | Config.ConfigError | import("effect/PlatformError").PlatformError | import("effect/http/HttpServerError").ServeError | HttpRouter.Request.Without<THandlerError>, Exclude<Exclude<Exclude<Exclude<Exclude<TServiceRequirements, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<import("effect/FileSystem").FileSystem, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<import("effect/http/HttpPlatform").HttpPlatform, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<import("effect/http/HttpServer").HttpServer, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<import("effect/Path").Path, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<THandlerRequirements, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<Exclude<HttpRouter.HttpRouter, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
12
|
-
readonly _tag: `${string}.$changes`;
|
|
13
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<Exclude<RpcSerialization.RpcSerialization, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
14
|
-
readonly _tag: `${string}.$changes`;
|
|
15
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ServicesServer<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
16
|
-
readonly _tag: `${string}.$changes`;
|
|
17
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ToHandler<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
18
|
-
readonly _tag: `${string}.$changes`;
|
|
19
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<THandlerRequirements, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<Exclude<HttpRouter.HttpRouter, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
20
|
-
readonly _tag: `${string}.$changes`;
|
|
21
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<Exclude<RpcSerialization.RpcSerialization, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
22
|
-
readonly _tag: `${string}.$changes`;
|
|
23
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ServicesServer<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
24
|
-
readonly _tag: `${string}.$changes`;
|
|
25
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ToHandler<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
26
|
-
readonly _tag: `${string}.$changes`;
|
|
27
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<THandlerRequirements, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<Exclude<HttpRouter.HttpRouter, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
28
|
-
readonly _tag: `${string}.$changes`;
|
|
29
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<Exclude<RpcSerialization.RpcSerialization, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
30
|
-
readonly _tag: `${string}.$changes`;
|
|
31
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ServicesServer<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
32
|
-
readonly _tag: `${string}.$changes`;
|
|
33
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ToHandler<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
34
|
-
readonly _tag: `${string}.$changes`;
|
|
35
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>>;
|
|
36
|
-
export declare function migratedHost<TRpcs extends Rpc.Any, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TMigrations, TSession extends SessionShape>(options: HostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements> & HostPolicy<TSession> & {
|
|
37
|
-
readonly migrations: MigrationOptions<TMigrations>;
|
|
38
|
-
}, database: ReturnType<typeof databaseLayer<TMigrations>>, changesService: typeof AppChanges): Layer.Layer<TServices | AppChanges | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient | NodeServices.NodeServices, TServiceError | Config.ConfigError | import("effect/sql/Migrator").MigrationError | import("effect/PlatformError").PlatformError | import("effect/http/HttpServerError").ServeError | import("effect/sql/SqlError").SqlError | HttpRouter.Request.Without<THandlerError>, Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<TServiceRequirements, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<import("effect/FileSystem").FileSystem, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<import("effect/http/HttpPlatform").HttpPlatform, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<import("effect/http/HttpServer").HttpServer, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<import("effect/Path").Path, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<TMigrations, import("effect/Scope").Scope>, import("@effect/sql-pg/PgClient").PgClient | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<THandlerRequirements, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<Exclude<HttpRouter.HttpRouter, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
39
|
-
readonly _tag: `${string}.$changes`;
|
|
40
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<Exclude<RpcSerialization.RpcSerialization, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
41
|
-
readonly _tag: `${string}.$changes`;
|
|
42
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ServicesServer<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
43
|
-
readonly _tag: `${string}.$changes`;
|
|
44
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ToHandler<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
45
|
-
readonly _tag: `${string}.$changes`;
|
|
46
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<THandlerRequirements, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<Exclude<HttpRouter.HttpRouter, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
47
|
-
readonly _tag: `${string}.$changes`;
|
|
48
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<Exclude<RpcSerialization.RpcSerialization, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
49
|
-
readonly _tag: `${string}.$changes`;
|
|
50
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ServicesServer<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
51
|
-
readonly _tag: `${string}.$changes`;
|
|
52
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ToHandler<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
53
|
-
readonly _tag: `${string}.$changes`;
|
|
54
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<THandlerRequirements, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<Exclude<HttpRouter.HttpRouter, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
55
|
-
readonly _tag: `${string}.$changes`;
|
|
56
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<Exclude<RpcSerialization.RpcSerialization, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
57
|
-
readonly _tag: `${string}.$changes`;
|
|
58
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ServicesServer<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
59
|
-
readonly _tag: `${string}.$changes`;
|
|
60
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ToHandler<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
61
|
-
readonly _tag: `${string}.$changes`;
|
|
62
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices | AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>>;
|
|
63
|
-
export declare function deferredHost<TRpcs extends Rpc.Any, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TMigrations, TSession extends SessionShape, TApplicationError, TApplicationRequirements>(application: Effect.Effect<AppHttpHostOptions<TRpcs, THandlers, THandlerError, THandlerRequirements, TServices, TServiceError, TServiceRequirements, TSession>, TApplicationError, TApplicationRequirements>, database: ReturnType<typeof databaseLayer<TMigrations>>, changesService: typeof AppChanges): Layer.Layer<TServices | AppChanges | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient | NodeServices.NodeServices, TApplicationError | TServiceError | Config.ConfigError | import("effect/sql/Migrator").MigrationError | import("effect/PlatformError").PlatformError | import("effect/http/HttpServerError").ServeError | import("effect/sql/SqlError").SqlError | HttpRouter.Request.Without<THandlerError>, Exclude<Exclude<TApplicationRequirements, import("effect/Scope").Scope>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<TMigrations, import("effect/Scope").Scope>, import("@effect/sql-pg/PgClient").PgClient | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<TServiceRequirements, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<import("effect/FileSystem").FileSystem, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<import("effect/http/HttpPlatform").HttpPlatform, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<import("effect/http/HttpServer").HttpServer, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<import("effect/Path").Path, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<THandlerRequirements, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<Exclude<HttpRouter.HttpRouter, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
64
|
-
readonly _tag: `${string}.$changes`;
|
|
65
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<Exclude<RpcSerialization.RpcSerialization, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
66
|
-
readonly _tag: `${string}.$changes`;
|
|
67
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ServicesServer<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
68
|
-
readonly _tag: `${string}.$changes`;
|
|
69
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"GlobalRequires", Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ToHandler<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
70
|
-
readonly _tag: `${string}.$changes`;
|
|
71
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<THandlerRequirements, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<Exclude<HttpRouter.HttpRouter, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
72
|
-
readonly _tag: `${string}.$changes`;
|
|
73
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<Exclude<RpcSerialization.RpcSerialization, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
74
|
-
readonly _tag: `${string}.$changes`;
|
|
75
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ServicesServer<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
76
|
-
readonly _tag: `${string}.$changes`;
|
|
77
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Only<"Requires", Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ToHandler<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
78
|
-
readonly _tag: `${string}.$changes`;
|
|
79
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.GlobalProvided>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<THandlerRequirements, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<Exclude<HttpRouter.HttpRouter, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
80
|
-
readonly _tag: `${string}.$changes`;
|
|
81
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<Exclude<RpcSerialization.RpcSerialization, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
82
|
-
readonly _tag: `${string}.$changes`;
|
|
83
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ServicesServer<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
84
|
-
readonly _tag: `${string}.$changes`;
|
|
85
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<HttpRouter.Request.Without<Exclude<Exclude<Exclude<Exclude<Exclude<Rpc.ToHandler<Rpc.AddMiddleware<TRpcs, typeof RequestTracing>>, RpcSerialization.RpcSerialization>, import("effect/Scope").Scope>, THandlers | RequestTracing | Rpc.ToHandler<Extract<TRpcs, {
|
|
86
|
-
readonly _tag: `${string}.$changes`;
|
|
87
|
-
}>>>, RpcSerialization.RpcSerialization>, never>>, HttpRouter.HttpRouter>, TServices>, import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/http/HttpServer").HttpServer | NodeServices.NodeServices>, NodeServices.NodeServices>, never>, never>, never>, AppChanges | import("@effect/sql-pg/PgClient").PgClient | import("effect/reactivity/Reactivity").Reactivity | import("effect/sql/SqlClient").SqlClient>>;
|
|
88
|
-
//# sourceMappingURL=appHostHttp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appHostHttp.d.ts","sourceRoot":"","sources":["../../src/server/appHostHttp.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAY,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAmC,UAAU,EAA2D,MAAM,aAAa,CAAC;AACnI,OAAO,EAAE,KAAK,GAAG,EAAE,gBAAgB,EAAa,MAAM,YAAY,CAAC;AACnE,OAAO,KAAK,EAAqC,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC5F,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;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AW,EACX,QAAQ,SAAS,YAAY,EAC7B,iBAAiB,EACjB,wBAAwB,EAExB,WAAW,EAAE,MAAM,CAAC,MAAM,CACzB,kBAAkB,CAAC,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,oBAAoB,EAAE,SAAS,EAAE,aAAa,EAAE,oBAAoB,EAAE,QAAQ,CAAC,EACnI,iBAAiB,EACjB,wBAAwB,CACxB,EACD,QAAQ,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,WAAW,CAAC,CAAC,EACvD,cAAc,EAAE,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;ucAGjC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { createServer } from "node:http";
|
|
2
|
-
import { NodeHttpServer, NodeServices } from "@effect/platform-node";
|
|
3
|
-
import { ByteSize, Config, Effect, Layer } from "effect";
|
|
4
|
-
import { HttpEffect, HttpIncomingMessage, HttpRouter, HttpServerRequest, HttpServerResponse, HttpStaticServer } from "effect/http";
|
|
5
|
-
import { RpcSerialization, RpcServer } from "effect/rpc";
|
|
6
|
-
import { boundedRpcRequest } from "#server/boundedRpcRequest.ts";
|
|
7
|
-
import { healthRoute } from "#server/healthRoute.ts";
|
|
8
|
-
import { hostChanges } from "#server/hostChanges.ts";
|
|
9
|
-
import { hostTransport } from "#server/hostTransport.ts";
|
|
10
|
-
import { nativeClientOrigins } from "#server/nativeClientOrigins.ts";
|
|
11
|
-
import { otlpTracing } from "#server/otlpTracing.ts";
|
|
12
|
-
import { RedactionPolicy } from "#server/RedactionPolicy.ts";
|
|
13
|
-
import { redactingDiagnostics } from "#server/redactingDiagnostics.ts";
|
|
14
|
-
import { redactingRpcSerialization } from "#server/redactingRpcSerialization.ts";
|
|
15
|
-
import { localRpcGuard } from "#server/rpc-server/local.ts";
|
|
16
|
-
import { authenticatedLayer, maybeAuthenticatedLayer } from "#server/rpc-server/session.ts";
|
|
17
|
-
import { requestTracingLayer } from "#server/rpc-server/tracing.ts";
|
|
18
|
-
import { schemaSensitiveKeys } from "#server/schemaSensitiveKeys.ts";
|
|
19
|
-
import { tracedGroup } from "#server/tracedGroup.ts";
|
|
20
|
-
const rpcCacheControl = (_, response) => Effect.succeed(HttpServerResponse.setHeader(response, "cache-control", "private, no-store"));
|
|
21
|
-
export function appHostHttp(options, changesService) {
|
|
22
|
-
const sensitive = schemaSensitiveKeys(options.group, options.config?.sensitiveKeys);
|
|
23
|
-
return Layer.unwrap(Effect.gen(function* () {
|
|
24
|
-
const { bodySize, trustedProxy, nativeOrigins } = yield* hostTransport(options);
|
|
25
|
-
const middleware = options.policy === "loopback"
|
|
26
|
-
? requestTracingLayer({ sensitive })
|
|
27
|
-
: Layer.mergeAll(authenticatedLayer(options.sessions), maybeAuthenticatedLayer(options.sessions), requestTracingLayer({ sensitive }));
|
|
28
|
-
const routes = HttpRouter.use((router) => Effect.gen(function* () {
|
|
29
|
-
const wire = redactingRpcSerialization(yield* RpcSerialization.RpcSerialization, sensitive, sensitive.maskFailure);
|
|
30
|
-
const handler = yield* RpcServer.toHttpEffect(tracedGroup(options.group)).pipe(Effect.provideService(RpcSerialization.RpcSerialization, wire));
|
|
31
|
-
const guarded = localRpcGuard(handler, trustedProxy, nativeOrigins);
|
|
32
|
-
if (nativeOrigins.length > 0) {
|
|
33
|
-
yield* router.add("OPTIONS", options.rpcPath ?? "/rpc", HttpServerResponse.text("Local same-origin requests only", { status: 403 }));
|
|
34
|
-
}
|
|
35
|
-
yield* router.add("POST", options.rpcPath ?? "/rpc", (request) => {
|
|
36
|
-
HttpEffect.appendPreResponseHandlerUnsafe(request, rpcCacheControl);
|
|
37
|
-
return guarded.pipe(Effect.provideService(HttpIncomingMessage.MaxBodySize, ByteSize.bytes(bodySize)), Effect.provideService(HttpServerRequest.HttpServerRequest, boundedRpcRequest(request)), Effect.provideService(RpcSerialization.RpcSerialization, wire));
|
|
38
|
-
});
|
|
39
|
-
})).pipe(Layer.provide(Layer.merge(middleware, hostChanges(options.group, changesService).pipe(Layer.provideMerge(options.handlers)))), Layer.provide(RpcSerialization.layerNdjson), Layer.provide(nativeClientOrigins(nativeOrigins, trustedProxy)));
|
|
40
|
-
const assets = options.assets === undefined
|
|
41
|
-
? Layer.empty
|
|
42
|
-
: HttpStaticServer.layer(typeof options.assets === "string" ? { root: options.assets } : options.assets);
|
|
43
|
-
const application = Layer.mergeAll(options.services ?? Layer.empty);
|
|
44
|
-
const server = Layer.unwrap(Effect.gen(function* () {
|
|
45
|
-
const port = options.config?.port ?? (yield* Config.Int("PORT").pipe(Config.withDefault(3000)));
|
|
46
|
-
const host = options.config?.host ?? (yield* Config.String("HOST").pipe(Config.withDefault("127.0.0.1")));
|
|
47
|
-
return NodeHttpServer.layer(createServer, {
|
|
48
|
-
gracefulShutdownTimeout: options.config?.gracefulShutdownTimeout,
|
|
49
|
-
host,
|
|
50
|
-
port,
|
|
51
|
-
...(options.config?.disablePreemptiveShutdown === undefined
|
|
52
|
-
? {}
|
|
53
|
-
: { disablePreemptiveShutdown: options.config.disablePreemptiveShutdown }),
|
|
54
|
-
});
|
|
55
|
-
}));
|
|
56
|
-
const applicationRoutes = (options.routes ?? Layer.empty).pipe(Layer.provide(options.nativeOrigins === undefined ? Layer.empty : nativeClientOrigins(nativeOrigins, trustedProxy, true)));
|
|
57
|
-
return HttpRouter.serve(Layer.mergeAll(routes, healthRoute, assets, applicationRoutes), { disableLogger: true }).pipe(Layer.provideMerge(application), Layer.provideMerge(server), Layer.provide(NodeServices.layer));
|
|
58
|
-
})).pipe(Layer.provide(redactingDiagnostics(sensitive)), Layer.provide(otlpTracing), Layer.provide(Layer.succeed(RedactionPolicy, sensitive)));
|
|
59
|
-
}
|
|
60
|
-
export function migratedHost(options, database, changesService) {
|
|
61
|
-
const services = Layer.mergeAll(options.services ?? Layer.empty);
|
|
62
|
-
return appHostHttp({ ...options, services: services.pipe(Layer.provideMerge(database)) }, changesService);
|
|
63
|
-
}
|
|
64
|
-
export function deferredHost(application, database, changesService) {
|
|
65
|
-
return Layer.unwrap(Effect.map(application, (options) => appHostHttp(options, changesService))).pipe(Layer.provideMerge(database));
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=appHostHttp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appHostHttp.js","sourceRoot":"","sources":["../../src/server/appHostHttp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,UAAU,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACnI,OAAO,EAAY,gBAAgB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAqB,MAAM,+BAA+B,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BA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