@encore.dev/sdk 0.0.0 → 2.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +362 -0
- package/README.md +245 -2
- package/app_meta.test.ts +154 -0
- package/app_meta.ts +226 -0
- package/config/config.test.ts +384 -0
- package/config/config.ts +236 -0
- package/config/mod.ts +15 -0
- package/config/secrets.ts +173 -0
- package/config/value.ts +239 -0
- package/cron/mod.test.ts +52 -0
- package/cron/mod.ts +62 -0
- package/dist/app_meta.d.ts +126 -0
- package/dist/app_meta.d.ts.map +1 -0
- package/dist/app_meta.js +67 -0
- package/dist/app_meta.js.map +1 -0
- package/dist/config/config.d.ts +135 -0
- package/dist/config/config.d.ts.map +1 -0
- package/dist/config/config.js +115 -0
- package/dist/config/config.js.map +1 -0
- package/dist/config/mod.d.ts +5 -0
- package/dist/config/mod.d.ts.map +1 -0
- package/dist/config/mod.js +3 -0
- package/dist/config/mod.js.map +1 -0
- package/dist/config/secrets.d.ts +124 -0
- package/dist/config/secrets.d.ts.map +1 -0
- package/dist/config/secrets.js +73 -0
- package/dist/config/secrets.js.map +1 -0
- package/dist/config/value.d.ts +54 -0
- package/dist/config/value.d.ts.map +1 -0
- package/dist/config/value.js +181 -0
- package/dist/config/value.js.map +1 -0
- package/dist/cron/mod.d.ts +57 -0
- package/dist/cron/mod.d.ts.map +1 -0
- package/dist/cron/mod.js +39 -0
- package/dist/cron/mod.js.map +1 -0
- package/dist/frontends/mod.d.ts +39 -0
- package/dist/frontends/mod.d.ts.map +1 -0
- package/dist/frontends/mod.js +47 -0
- package/dist/frontends/mod.js.map +1 -0
- package/dist/gateway/errors.d.ts +101 -0
- package/dist/gateway/errors.d.ts.map +1 -0
- package/dist/gateway/errors.js +146 -0
- package/dist/gateway/errors.js.map +1 -0
- package/dist/gateway/match.d.ts +127 -0
- package/dist/gateway/match.d.ts.map +1 -0
- package/dist/gateway/match.js +206 -0
- package/dist/gateway/match.js.map +1 -0
- package/dist/gateway/middleware.d.ts +108 -0
- package/dist/gateway/middleware.d.ts.map +1 -0
- package/dist/gateway/middleware.js +9 -0
- package/dist/gateway/middleware.js.map +1 -0
- package/dist/gateway/mod.d.ts +130 -0
- package/dist/gateway/mod.d.ts.map +1 -0
- package/dist/gateway/mod.js +188 -0
- package/dist/gateway/mod.js.map +1 -0
- package/dist/gateway/request.d.ts +304 -0
- package/dist/gateway/request.d.ts.map +1 -0
- package/dist/gateway/request.js +403 -0
- package/dist/gateway/request.js.map +1 -0
- package/dist/gateway/serve.d.ts +114 -0
- package/dist/gateway/serve.d.ts.map +1 -0
- package/dist/gateway/serve.js +510 -0
- package/dist/gateway/serve.js.map +1 -0
- package/dist/gateways/mod.d.ts +42 -0
- package/dist/gateways/mod.d.ts.map +1 -0
- package/dist/gateways/mod.js +55 -0
- package/dist/gateways/mod.js.map +1 -0
- package/dist/internal/clients/call.d.ts +171 -0
- package/dist/internal/clients/call.d.ts.map +1 -0
- package/dist/internal/clients/call.js +284 -0
- package/dist/internal/clients/call.js.map +1 -0
- package/dist/internal/clients/grpc.d.ts +108 -0
- package/dist/internal/clients/grpc.d.ts.map +1 -0
- package/dist/internal/clients/grpc.js +349 -0
- package/dist/internal/clients/grpc.js.map +1 -0
- package/dist/internal/clients/mod.d.ts +81 -0
- package/dist/internal/clients/mod.d.ts.map +1 -0
- package/dist/internal/clients/mod.js +237 -0
- package/dist/internal/clients/mod.js.map +1 -0
- package/dist/internal/fetch.d.ts +67 -0
- package/dist/internal/fetch.d.ts.map +1 -0
- package/dist/internal/fetch.js +264 -0
- package/dist/internal/fetch.js.map +1 -0
- package/dist/internal/otel/backend.d.ts +52 -0
- package/dist/internal/otel/backend.d.ts.map +1 -0
- package/dist/internal/otel/backend.js +2 -0
- package/dist/internal/otel/backend.js.map +1 -0
- package/dist/internal/otel/context.d.ts +11 -0
- package/dist/internal/otel/context.d.ts.map +1 -0
- package/dist/internal/otel/context.js +34 -0
- package/dist/internal/otel/context.js.map +1 -0
- package/dist/internal/otel/context_manager.d.ts +23 -0
- package/dist/internal/otel/context_manager.d.ts.map +1 -0
- package/dist/internal/otel/context_manager.js +120 -0
- package/dist/internal/otel/context_manager.js.map +1 -0
- package/dist/internal/otel/encode.d.ts +114 -0
- package/dist/internal/otel/encode.d.ts.map +1 -0
- package/dist/internal/otel/encode.js +290 -0
- package/dist/internal/otel/encode.js.map +1 -0
- package/dist/internal/otel/http.d.ts +11 -0
- package/dist/internal/otel/http.d.ts.map +1 -0
- package/dist/internal/otel/http.js +65 -0
- package/dist/internal/otel/http.js.map +1 -0
- package/dist/internal/otel/index.d.ts +9 -0
- package/dist/internal/otel/index.d.ts.map +1 -0
- package/dist/internal/otel/index.js +8 -0
- package/dist/internal/otel/index.js.map +1 -0
- package/dist/internal/otel/meter.d.ts +74 -0
- package/dist/internal/otel/meter.d.ts.map +1 -0
- package/dist/internal/otel/meter.js +265 -0
- package/dist/internal/otel/meter.js.map +1 -0
- package/dist/internal/otel/propagator.d.ts +15 -0
- package/dist/internal/otel/propagator.d.ts.map +1 -0
- package/dist/internal/otel/propagator.js +61 -0
- package/dist/internal/otel/propagator.js.map +1 -0
- package/dist/internal/otel/provider.d.ts +13 -0
- package/dist/internal/otel/provider.d.ts.map +1 -0
- package/dist/internal/otel/provider.js +22 -0
- package/dist/internal/otel/provider.js.map +1 -0
- package/dist/internal/otel/span.d.ts +75 -0
- package/dist/internal/otel/span.d.ts.map +1 -0
- package/dist/internal/otel/span.js +234 -0
- package/dist/internal/otel/span.js.map +1 -0
- package/dist/internal/otel/tracer.d.ts +16 -0
- package/dist/internal/otel/tracer.d.ts.map +1 -0
- package/dist/internal/otel/tracer.js +71 -0
- package/dist/internal/otel/tracer.js.map +1 -0
- package/dist/internal/reqfields.d.ts +170 -0
- package/dist/internal/reqfields.d.ts.map +1 -0
- package/dist/internal/reqfields.js +349 -0
- package/dist/internal/reqfields.js.map +1 -0
- package/dist/internal/runtime/meter.d.ts +12 -0
- package/dist/internal/runtime/meter.d.ts.map +1 -0
- package/dist/internal/runtime/meter.js +22 -0
- package/dist/internal/runtime/meter.js.map +1 -0
- package/dist/internal/runtime/mod.d.ts +18 -0
- package/dist/internal/runtime/mod.d.ts.map +1 -0
- package/dist/internal/runtime/mod.js +59 -0
- package/dist/internal/runtime/mod.js.map +1 -0
- package/dist/internal/runtime/napi/napi.cjs +308 -0
- package/dist/internal/runtime/napi/napi.d.cts +1251 -0
- package/dist/internal/runtime/shutdown.d.ts +91 -0
- package/dist/internal/runtime/shutdown.d.ts.map +1 -0
- package/dist/internal/runtime/shutdown.js +299 -0
- package/dist/internal/runtime/shutdown.js.map +1 -0
- package/dist/internal/testing/carry.d.ts +49 -0
- package/dist/internal/testing/carry.d.ts.map +1 -0
- package/dist/internal/testing/carry.js +77 -0
- package/dist/internal/testing/carry.js.map +1 -0
- package/dist/internal/testing/runner.d.ts +2 -0
- package/dist/internal/testing/runner.d.ts.map +1 -0
- package/dist/internal/testing/runner.js +10 -0
- package/dist/internal/testing/runner.js.map +1 -0
- package/dist/internal/testing/scope.d.ts +112 -0
- package/dist/internal/testing/scope.d.ts.map +1 -0
- package/dist/internal/testing/scope.js +346 -0
- package/dist/internal/testing/scope.js.map +1 -0
- package/dist/internal/testing/steps.d.ts +55 -0
- package/dist/internal/testing/steps.d.ts.map +1 -0
- package/dist/internal/testing/steps.js +295 -0
- package/dist/internal/testing/steps.js.map +1 -0
- package/dist/internal/testing/telemetry.d.ts +305 -0
- package/dist/internal/testing/telemetry.d.ts.map +1 -0
- package/dist/internal/testing/telemetry.js +188 -0
- package/dist/internal/testing/telemetry.js.map +1 -0
- package/dist/internal/utils/constraints.d.ts +10 -0
- package/dist/internal/utils/constraints.d.ts.map +1 -0
- package/dist/internal/utils/constraints.js +2 -0
- package/dist/internal/utils/constraints.js.map +1 -0
- package/dist/log/index.d.ts +40 -0
- package/dist/log/index.d.ts.map +1 -0
- package/dist/log/index.js +44 -0
- package/dist/log/index.js.map +1 -0
- package/dist/log/logger.d.ts +125 -0
- package/dist/log/logger.d.ts.map +1 -0
- package/dist/log/logger.js +203 -0
- package/dist/log/logger.js.map +1 -0
- package/dist/log/runtime.d.ts +21 -0
- package/dist/log/runtime.d.ts.map +1 -0
- package/dist/log/runtime.js +22 -0
- package/dist/log/runtime.js.map +1 -0
- package/dist/log/stderr.d.ts +10 -0
- package/dist/log/stderr.d.ts.map +1 -0
- package/dist/log/stderr.js +25 -0
- package/dist/log/stderr.js.map +1 -0
- package/dist/metrics/mod.d.ts +242 -0
- package/dist/metrics/mod.d.ts.map +1 -0
- package/dist/metrics/mod.js +353 -0
- package/dist/metrics/mod.js.map +1 -0
- package/dist/mod.d.ts +5 -0
- package/dist/mod.d.ts.map +1 -0
- package/dist/mod.js +3 -0
- package/dist/mod.js.map +1 -0
- package/dist/otel.d.ts +10 -0
- package/dist/otel.d.ts.map +1 -0
- package/dist/otel.js +13 -0
- package/dist/otel.js.map +1 -0
- package/dist/pubsub/encoding.d.ts +8 -0
- package/dist/pubsub/encoding.d.ts.map +1 -0
- package/dist/pubsub/encoding.js +18 -0
- package/dist/pubsub/encoding.js.map +1 -0
- package/dist/pubsub/mod.d.ts +7 -0
- package/dist/pubsub/mod.d.ts.map +1 -0
- package/dist/pubsub/mod.js +3 -0
- package/dist/pubsub/mod.js.map +1 -0
- package/dist/pubsub/refs.d.ts +20 -0
- package/dist/pubsub/refs.d.ts.map +1 -0
- package/dist/pubsub/refs.js +11 -0
- package/dist/pubsub/refs.js.map +1 -0
- package/dist/pubsub/subscription.d.ts +223 -0
- package/dist/pubsub/subscription.d.ts.map +1 -0
- package/dist/pubsub/subscription.js +121 -0
- package/dist/pubsub/subscription.js.map +1 -0
- package/dist/pubsub/topic.d.ts +218 -0
- package/dist/pubsub/topic.d.ts.map +1 -0
- package/dist/pubsub/topic.js +281 -0
- package/dist/pubsub/topic.js.map +1 -0
- package/dist/reqctx/mod.d.ts +174 -0
- package/dist/reqctx/mod.d.ts.map +1 -0
- package/dist/reqctx/mod.js +144 -0
- package/dist/reqctx/mod.js.map +1 -0
- package/dist/services/index.d.ts +171 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +187 -0
- package/dist/services/index.js.map +1 -0
- package/dist/shutdown/mod.d.ts +60 -0
- package/dist/shutdown/mod.d.ts.map +1 -0
- package/dist/shutdown/mod.js +59 -0
- package/dist/shutdown/mod.js.map +1 -0
- package/dist/storage/clickhouse/database.d.ts +262 -0
- package/dist/storage/clickhouse/database.d.ts.map +1 -0
- package/dist/storage/clickhouse/database.js +362 -0
- package/dist/storage/clickhouse/database.js.map +1 -0
- package/dist/storage/clickhouse/errors.d.ts +67 -0
- package/dist/storage/clickhouse/errors.d.ts.map +1 -0
- package/dist/storage/clickhouse/errors.js +91 -0
- package/dist/storage/clickhouse/errors.js.map +1 -0
- package/dist/storage/clickhouse/mod.d.ts +31 -0
- package/dist/storage/clickhouse/mod.d.ts.map +1 -0
- package/dist/storage/clickhouse/mod.js +29 -0
- package/dist/storage/clickhouse/mod.js.map +1 -0
- package/dist/storage/objects/bucket.d.ts +522 -0
- package/dist/storage/objects/bucket.d.ts.map +1 -0
- package/dist/storage/objects/bucket.js +414 -0
- package/dist/storage/objects/bucket.js.map +1 -0
- package/dist/storage/objects/error.d.ts +24 -0
- package/dist/storage/objects/error.d.ts.map +1 -0
- package/dist/storage/objects/error.js +105 -0
- package/dist/storage/objects/error.js.map +1 -0
- package/dist/storage/objects/mod.d.ts +5 -0
- package/dist/storage/objects/mod.d.ts.map +1 -0
- package/dist/storage/objects/mod.js +3 -0
- package/dist/storage/objects/mod.js.map +1 -0
- package/dist/storage/objects/refs.d.ts +47 -0
- package/dist/storage/objects/refs.d.ts.map +1 -0
- package/dist/storage/objects/refs.js +26 -0
- package/dist/storage/objects/refs.js.map +1 -0
- package/dist/storage/postgres/database.d.ts +365 -0
- package/dist/storage/postgres/database.d.ts.map +1 -0
- package/dist/storage/postgres/database.js +480 -0
- package/dist/storage/postgres/database.js.map +1 -0
- package/dist/storage/postgres/errors.d.ts +120 -0
- package/dist/storage/postgres/errors.d.ts.map +1 -0
- package/dist/storage/postgres/errors.js +162 -0
- package/dist/storage/postgres/errors.js.map +1 -0
- package/dist/storage/postgres/interval.d.ts +44 -0
- package/dist/storage/postgres/interval.d.ts.map +1 -0
- package/dist/storage/postgres/interval.js +153 -0
- package/dist/storage/postgres/interval.js.map +1 -0
- package/dist/storage/postgres/mod.d.ts +5 -0
- package/dist/storage/postgres/mod.d.ts.map +1 -0
- package/dist/storage/postgres/mod.js +4 -0
- package/dist/storage/postgres/mod.js.map +1 -0
- package/dist/storage/redis/bitfield.d.ts +67 -0
- package/dist/storage/redis/bitfield.d.ts.map +1 -0
- package/dist/storage/redis/bitfield.js +114 -0
- package/dist/storage/redis/bitfield.js.map +1 -0
- package/dist/storage/redis/command.d.ts +45 -0
- package/dist/storage/redis/command.d.ts.map +1 -0
- package/dist/storage/redis/command.js +78 -0
- package/dist/storage/redis/command.js.map +1 -0
- package/dist/storage/redis/commands.d.ts +657 -0
- package/dist/storage/redis/commands.d.ts.map +1 -0
- package/dist/storage/redis/commands.js +759 -0
- package/dist/storage/redis/commands.js.map +1 -0
- package/dist/storage/redis/database.d.ts +336 -0
- package/dist/storage/redis/database.d.ts.map +1 -0
- package/dist/storage/redis/database.js +398 -0
- package/dist/storage/redis/database.js.map +1 -0
- package/dist/storage/redis/mod.d.ts +115 -0
- package/dist/storage/redis/mod.d.ts.map +1 -0
- package/dist/storage/redis/mod.js +109 -0
- package/dist/storage/redis/mod.js.map +1 -0
- package/dist/storage/redis/native.d.ts +16 -0
- package/dist/storage/redis/native.d.ts.map +1 -0
- package/dist/storage/redis/native.js +21 -0
- package/dist/storage/redis/native.js.map +1 -0
- package/dist/storage/redis/options.d.ts +90 -0
- package/dist/storage/redis/options.d.ts.map +1 -0
- package/dist/storage/redis/options.js +53 -0
- package/dist/storage/redis/options.js.map +1 -0
- package/dist/storage/redis/pubsub.d.ts +55 -0
- package/dist/storage/redis/pubsub.d.ts.map +1 -0
- package/dist/storage/redis/pubsub.js +88 -0
- package/dist/storage/redis/pubsub.js.map +1 -0
- package/dist/storage/redis/reply.d.ts +290 -0
- package/dist/storage/redis/reply.d.ts.map +1 -0
- package/dist/storage/redis/reply.js +611 -0
- package/dist/storage/redis/reply.js.map +1 -0
- package/dist/storage/redis/scan.d.ts +12 -0
- package/dist/storage/redis/scan.d.ts.map +1 -0
- package/dist/storage/redis/scan.js +76 -0
- package/dist/storage/redis/scan.js.map +1 -0
- package/dist/storage/redis/script.d.ts +92 -0
- package/dist/storage/redis/script.d.ts.map +1 -0
- package/dist/storage/redis/script.js +143 -0
- package/dist/storage/redis/script.js.map +1 -0
- package/dist/storage/redis/target.d.ts +49 -0
- package/dist/storage/redis/target.d.ts.map +1 -0
- package/dist/storage/redis/target.js +93 -0
- package/dist/storage/redis/target.js.map +1 -0
- package/dist/storage/redis/wire.d.ts +102 -0
- package/dist/storage/redis/wire.d.ts.map +1 -0
- package/dist/storage/redis/wire.js +309 -0
- package/dist/storage/redis/wire.js.map +1 -0
- package/dist/testing/bun.d.ts +8 -0
- package/dist/testing/bun.d.ts.map +1 -0
- package/dist/testing/bun.js +13 -0
- package/dist/testing/bun.js.map +1 -0
- package/dist/testing/jest.d.ts +8 -0
- package/dist/testing/jest.d.ts.map +1 -0
- package/dist/testing/jest.js +11 -0
- package/dist/testing/jest.js.map +1 -0
- package/dist/testing/mod.d.ts +183 -0
- package/dist/testing/mod.d.ts.map +1 -0
- package/dist/testing/mod.js +271 -0
- package/dist/testing/mod.js.map +1 -0
- package/dist/testing/node.d.ts +9 -0
- package/dist/testing/node.d.ts.map +1 -0
- package/dist/testing/node.js +12 -0
- package/dist/testing/node.js.map +1 -0
- package/dist/testing/playwright.d.ts +93 -0
- package/dist/testing/playwright.d.ts.map +1 -0
- package/dist/testing/playwright.js +164 -0
- package/dist/testing/playwright.js.map +1 -0
- package/dist/testing/puppeteer.d.ts +36 -0
- package/dist/testing/puppeteer.d.ts.map +1 -0
- package/dist/testing/puppeteer.js +70 -0
- package/dist/testing/puppeteer.js.map +1 -0
- package/dist/testing/system.d.ts +181 -0
- package/dist/testing/system.d.ts.map +1 -0
- package/dist/testing/system.js +255 -0
- package/dist/testing/system.js.map +1 -0
- package/dist/testing/vitest.d.ts +8 -0
- package/dist/testing/vitest.d.ts.map +1 -0
- package/dist/testing/vitest.js +13 -0
- package/dist/testing/vitest.js.map +1 -0
- package/dist/tracing/http.d.ts +11 -0
- package/dist/tracing/http.d.ts.map +1 -0
- package/dist/tracing/http.js +34 -0
- package/dist/tracing/http.js.map +1 -0
- package/dist/tracing/mod.d.ts +20 -0
- package/dist/tracing/mod.d.ts.map +1 -0
- package/dist/tracing/mod.js +47 -0
- package/dist/tracing/mod.js.map +1 -0
- package/dist/tracing/node.d.ts +10 -0
- package/dist/tracing/node.d.ts.map +1 -0
- package/dist/tracing/node.js +142 -0
- package/dist/tracing/node.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/mod.d.ts +43 -0
- package/dist/types/mod.d.ts.map +1 -0
- package/dist/types/mod.js +65 -0
- package/dist/types/mod.js.map +1 -0
- package/frontends/mod.test.ts +51 -0
- package/frontends/mod.ts +50 -0
- package/gateway/errors.ts +172 -0
- package/gateway/gateway.e2e.test.ts +297 -0
- package/gateway/gateway.test.ts +891 -0
- package/gateway/match.ts +239 -0
- package/gateway/middleware.ts +134 -0
- package/gateway/mod.ts +211 -0
- package/gateway/request.ts +578 -0
- package/gateway/serve.ts +738 -0
- package/gateways/mod.ts +60 -0
- package/internal/clients/call.ts +418 -0
- package/internal/clients/grpc.test.ts +664 -0
- package/internal/clients/grpc.ts +485 -0
- package/internal/clients/mod.test.ts +481 -0
- package/internal/clients/mod.ts +337 -0
- package/internal/fetch.ts +305 -0
- package/internal/otel/backend.ts +60 -0
- package/internal/otel/context.test.ts +70 -0
- package/internal/otel/context.ts +48 -0
- package/internal/otel/context_manager.test.ts +154 -0
- package/internal/otel/context_manager.ts +141 -0
- package/internal/otel/encode.test.ts +266 -0
- package/internal/otel/encode.ts +408 -0
- package/internal/otel/http.ts +92 -0
- package/internal/otel/index.ts +14 -0
- package/internal/otel/meter.test.ts +231 -0
- package/internal/otel/meter.ts +332 -0
- package/internal/otel/propagator.test.ts +105 -0
- package/internal/otel/propagator.ts +68 -0
- package/internal/otel/provider.ts +26 -0
- package/internal/otel/span.ts +281 -0
- package/internal/otel/tracer.test.ts +380 -0
- package/internal/otel/tracer.ts +111 -0
- package/internal/reqfields.ts +423 -0
- package/internal/runtime/meter.ts +26 -0
- package/internal/runtime/mod.ts +81 -0
- package/internal/runtime/napi/napi.cjs +308 -0
- package/internal/runtime/napi/napi.d.cts +1251 -0
- package/internal/runtime/shutdown.test.ts +457 -0
- package/internal/runtime/shutdown.ts +350 -0
- package/internal/testing/carry.test.ts +242 -0
- package/internal/testing/carry.ts +101 -0
- package/internal/testing/runner.ts +10 -0
- package/internal/testing/scope.ts +384 -0
- package/internal/testing/steps.test.ts +152 -0
- package/internal/testing/steps.ts +342 -0
- package/internal/testing/telemetry.test.ts +210 -0
- package/internal/testing/telemetry.ts +466 -0
- package/internal/utils/constraints.ts +12 -0
- package/log/index.ts +107 -0
- package/log/logger.test.ts +194 -0
- package/log/logger.ts +308 -0
- package/log/runtime.test.ts +65 -0
- package/log/runtime.ts +40 -0
- package/log/stderr.test.ts +23 -0
- package/log/stderr.ts +24 -0
- package/metrics/export.test.ts +337 -0
- package/metrics/mod.test.ts +177 -0
- package/metrics/mod.ts +450 -0
- package/mod.ts +15 -0
- package/otel.test.ts +91 -0
- package/otel.ts +17 -0
- package/package.json +208 -5
- package/pubsub/encoding.ts +18 -0
- package/pubsub/mod.ts +26 -0
- package/pubsub/pubsub.test.ts +405 -0
- package/pubsub/refs.ts +38 -0
- package/pubsub/subscription.ts +359 -0
- package/pubsub/topic.test.ts +147 -0
- package/pubsub/topic.ts +431 -0
- package/reqctx/mod.ts +267 -0
- package/reqctx/reqctx.test.ts +216 -0
- package/scripts/postprocess-docs.test.ts +58 -0
- package/services/index.test.ts +370 -0
- package/services/index.ts +215 -0
- package/shutdown/mod.ts +78 -0
- package/storage/clickhouse/database.integration.test.ts +337 -0
- package/storage/clickhouse/database.test.ts +279 -0
- package/storage/clickhouse/database.ts +586 -0
- package/storage/clickhouse/errors.ts +130 -0
- package/storage/clickhouse/mod.ts +37 -0
- package/storage/objects/bucket.test.ts +573 -0
- package/storage/objects/bucket.ts +968 -0
- package/storage/objects/error.ts +121 -0
- package/storage/objects/mod.ts +50 -0
- package/storage/objects/refs.ts +117 -0
- package/storage/postgres/database.integration.test.ts +450 -0
- package/storage/postgres/database.test.ts +428 -0
- package/storage/postgres/database.ts +658 -0
- package/storage/postgres/errors.ts +186 -0
- package/storage/postgres/interval.test.ts +72 -0
- package/storage/postgres/interval.ts +170 -0
- package/storage/postgres/mod.ts +19 -0
- package/storage/redis/bitfield.ts +162 -0
- package/storage/redis/command.ts +84 -0
- package/storage/redis/commands.ts +1471 -0
- package/storage/redis/database.ts +520 -0
- package/storage/redis/mod.ts +171 -0
- package/storage/redis/native.ts +22 -0
- package/storage/redis/options.ts +119 -0
- package/storage/redis/pubsub.ts +92 -0
- package/storage/redis/redis.test.ts +866 -0
- package/storage/redis/reply.ts +780 -0
- package/storage/redis/runtime.test.ts +248 -0
- package/storage/redis/scan.ts +125 -0
- package/storage/redis/script.ts +162 -0
- package/storage/redis/target.ts +134 -0
- package/storage/redis/wire.ts +345 -0
- package/testing/bun.ts +13 -0
- package/testing/jest.ts +11 -0
- package/testing/mod.ts +393 -0
- package/testing/node.ts +12 -0
- package/testing/playwright.ts +247 -0
- package/testing/puppeteer.ts +101 -0
- package/testing/system.test.ts +108 -0
- package/testing/system.ts +373 -0
- package/testing/vitest.ts +13 -0
- package/tracing/http.ts +49 -0
- package/tracing/mod.ts +83 -0
- package/tracing/native.test.ts +272 -0
- package/tracing/node.ts +176 -0
- package/tracing/tracing.test.ts +953 -0
- package/types/mod.ts +92 -0
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calls of the generated gRPC clients: the gRPC protocol, over HTTP/2. For
|
|
3
|
+
* the generated code: it may change with the generator.
|
|
4
|
+
*
|
|
5
|
+
* It needs `@bufbuild/protobuf`, `@connectrpc/connect` and
|
|
6
|
+
* `@connectrpc/connect-node`, optional peer dependencies of the SDK that a
|
|
7
|
+
* service with gRPC clients installs:
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* npm install @bufbuild/protobuf@^2.17 @connectrpc/connect@^2.2 @connectrpc/connect-node@^2.2
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* A client's messages are protobuf-es's, which `protoc-gen-es` generates
|
|
14
|
+
* in the consumer's `encore_gen/protos`, a module per `.proto` file: a call
|
|
15
|
+
* takes its method's descriptor of the generated `GenService`, makes its
|
|
16
|
+
* request a message with protobuf-es's `create`, and gives its answers as
|
|
17
|
+
* protobuf-es decodes them, keeping the fields and enum values their schema
|
|
18
|
+
* lacks.
|
|
19
|
+
*
|
|
20
|
+
* Calls go through connect-es's gRPC transport for Node, which speaks
|
|
21
|
+
* HTTP/2 with `node:http2`, under Node and Bun alike: cleartext with prior
|
|
22
|
+
* knowledge (h2c) to an `http://` base URL, and TLS, offering only `h2`, to
|
|
23
|
+
* an `https://` one, trusting the certificates Node's TLS trusts, as those
|
|
24
|
+
* `NODE_EXTRA_CA_CERTS` adds. `fetch` can do neither, nor read trailers, so
|
|
25
|
+
* no gRPC call is sent with a fetch, nor with a client's `fetch` option.
|
|
26
|
+
* The calls to one base URL share one connection, which keeps no process
|
|
27
|
+
* alive while none is in flight.
|
|
28
|
+
*
|
|
29
|
+
* A call carries the trace and Request Context of the context it is made
|
|
30
|
+
* in to the app's own services, as `fetch` of `@encore.dev/sdk/services`
|
|
31
|
+
* does, and nothing of them anywhere else: a stream, of the context it is
|
|
32
|
+
* called in rather than the one it is first read in. A unary call returns a
|
|
33
|
+
* `Promise`; a server stream is an `AsyncIterable`. Streams are full duplex:
|
|
34
|
+
* a bidirectional stream's answers come as the service sends them, while its
|
|
35
|
+
* requests are still being sent. An answer compressed with gzip or brotli
|
|
36
|
+
* is read; requests are sent uncompressed.
|
|
37
|
+
*
|
|
38
|
+
* Every failure of a call is a {@link CallError}: the status the service
|
|
39
|
+
* answered with, with its details decoded (`grpcDetails`) by the generated
|
|
40
|
+
* files of the client's API, and the files they import; `unavailable` when
|
|
41
|
+
* no answer came, as when the connection failed or was reset;
|
|
42
|
+
* `deadline_exceeded` when the call's timeout, which it sends as its
|
|
43
|
+
* deadline and which runs from its start to its last answer, ran out;
|
|
44
|
+
* `canceled` when its signal aborted it. A request that cannot be made a
|
|
45
|
+
* message fails it with `invalid_argument`. The one failure that is no
|
|
46
|
+
* CallError is the caller's own: a client or bidirectional stream whose
|
|
47
|
+
* requests' iterable throws ends the call, and fails with what it threw, as
|
|
48
|
+
* it was thrown.
|
|
49
|
+
*
|
|
50
|
+
* `@bufbuild/protobuf` is loaded on import, as the generated messages load
|
|
51
|
+
* it. connect-es is loaded by the first call: a module importing the
|
|
52
|
+
* generated clients loads without it, and with no top-level await, so
|
|
53
|
+
* `require()` loads it too. A call made without it fails saying what to
|
|
54
|
+
* install.
|
|
55
|
+
*
|
|
56
|
+
* @hidden
|
|
57
|
+
* @module
|
|
58
|
+
*/
|
|
59
|
+
import { create, createRegistry, fromBinary, } from '@bufbuild/protobuf';
|
|
60
|
+
import { AnySchema } from '@bufbuild/protobuf/wkt';
|
|
61
|
+
import { setContextHeaders } from '../fetch.js';
|
|
62
|
+
import { activeContext } from '../otel/context.js';
|
|
63
|
+
import { anySignal, CallError, callHeaders, deadline, errorText, failure, } from './call.js';
|
|
64
|
+
/** The packages the gRPC clients need, each with how to install it. */
|
|
65
|
+
const PEERS = '@bufbuild/protobuf@^2.17 @connectrpc/connect@^2.2 @connectrpc/connect-node@^2.2';
|
|
66
|
+
/** `name`, loaded by `load`, or an error saying which packages to install. */
|
|
67
|
+
async function peer(name, load) {
|
|
68
|
+
try {
|
|
69
|
+
return await load();
|
|
70
|
+
}
|
|
71
|
+
catch (err) {
|
|
72
|
+
throw new Error(`encore: the generated gRPC clients need ${name}, which is not installed: ` +
|
|
73
|
+
`npm install ${PEERS}`, { cause: err });
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/** The peers, once loaded. */
|
|
77
|
+
let loading;
|
|
78
|
+
/** The peers, loaded on the first call that needs them: a failed load is
|
|
79
|
+
* tried again by the next call. */
|
|
80
|
+
function peers() {
|
|
81
|
+
loading ??= (async () => {
|
|
82
|
+
const [connect, connectNode] = await Promise.all([
|
|
83
|
+
peer('@connectrpc/connect', () => import('@connectrpc/connect')),
|
|
84
|
+
peer('@connectrpc/connect-node', () => import('@connectrpc/connect-node')),
|
|
85
|
+
]);
|
|
86
|
+
return { connect, connectNode };
|
|
87
|
+
})().catch((err) => {
|
|
88
|
+
loading = undefined;
|
|
89
|
+
throw err;
|
|
90
|
+
});
|
|
91
|
+
return loading;
|
|
92
|
+
}
|
|
93
|
+
/** The calls of one gRPC service of a service's, made with a client's
|
|
94
|
+
* settings. */
|
|
95
|
+
export class ServiceClient {
|
|
96
|
+
svc;
|
|
97
|
+
client;
|
|
98
|
+
desc;
|
|
99
|
+
files;
|
|
100
|
+
/** The registry of {@link files}, once a status's details needed it. */
|
|
101
|
+
registry;
|
|
102
|
+
/**
|
|
103
|
+
* `desc` is the gRPC service's generated `GenService`, and `files` the
|
|
104
|
+
* generated files of its API, which a status's details are decoded with,
|
|
105
|
+
* together with the files they import.
|
|
106
|
+
*/
|
|
107
|
+
constructor(svc, client, desc, files = [desc.file]) {
|
|
108
|
+
this.svc = svc;
|
|
109
|
+
this.client = client;
|
|
110
|
+
this.desc = desc;
|
|
111
|
+
this.files = files;
|
|
112
|
+
}
|
|
113
|
+
/** Calls unary `method` with `request`. */
|
|
114
|
+
async unary(method, request, options) {
|
|
115
|
+
// The context the call is made in, before anything is awaited.
|
|
116
|
+
const ctx = activeContext();
|
|
117
|
+
// A missing peer is thrown as it is: it is no failure of the call's.
|
|
118
|
+
const p = await peers();
|
|
119
|
+
const m = method;
|
|
120
|
+
const limit = deadline(this.client, options);
|
|
121
|
+
try {
|
|
122
|
+
const input = message(m.input, request);
|
|
123
|
+
const { transport, headers } = await this.prepare(p, m, options, ctx);
|
|
124
|
+
const res = await transport.unary(m, limit.signal, limit.timeout, headers, input);
|
|
125
|
+
return res.message;
|
|
126
|
+
}
|
|
127
|
+
catch (err) {
|
|
128
|
+
throw this.error(p, limit, err, m, {});
|
|
129
|
+
}
|
|
130
|
+
finally {
|
|
131
|
+
limit.done();
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/** Calls server-streaming `method` with `request`: its answers. */
|
|
135
|
+
serverStream(method, request, options) {
|
|
136
|
+
return this.answers(method, options, activeContext(), m => once(message(m.input, request)));
|
|
137
|
+
}
|
|
138
|
+
/** Calls client-streaming `method` with `requests`: its one answer. */
|
|
139
|
+
async clientStream(method, requests, options) {
|
|
140
|
+
const m = method;
|
|
141
|
+
let answer;
|
|
142
|
+
let answers = 0;
|
|
143
|
+
const stream = this.answers(m, options, activeContext(), (m, sent, end) => messages(m.input, requests, sent, end));
|
|
144
|
+
for await (const res of stream) {
|
|
145
|
+
answer = res;
|
|
146
|
+
answers++;
|
|
147
|
+
}
|
|
148
|
+
if (answers !== 1) {
|
|
149
|
+
throw failure('unimplemented', `${m.parent.typeName}/${m.name}: a client stream ` +
|
|
150
|
+
`was answered with ${answers} messages, not one`);
|
|
151
|
+
}
|
|
152
|
+
return answer;
|
|
153
|
+
}
|
|
154
|
+
/** Calls bidirectional-streaming `method` with `requests`: its answers. */
|
|
155
|
+
bidiStream(method, requests, options) {
|
|
156
|
+
return this.answers(method, options, activeContext(), (m, sent, end) => messages(m.input, requests, sent, end));
|
|
157
|
+
}
|
|
158
|
+
/** The answers of streaming method `m`, made in `ctx`, sent the messages
|
|
159
|
+
* `requests` makes, under the call's limits; failing with a CallError
|
|
160
|
+
* unless the caller's requests threw. */
|
|
161
|
+
async *answers(m, options, ctx, requests) {
|
|
162
|
+
// A missing peer is thrown as it is: it is no failure of the call's.
|
|
163
|
+
const p = await peers();
|
|
164
|
+
const limit = deadline(this.client, options);
|
|
165
|
+
// Ends the call's stream however the call ends: a reader that stops
|
|
166
|
+
// early, or requests that throw, end it as its last answer does.
|
|
167
|
+
const end = new AbortController();
|
|
168
|
+
const signal = limit.signal === undefined
|
|
169
|
+
? end.signal
|
|
170
|
+
: anySignal(limit.signal, end.signal);
|
|
171
|
+
const sent = {};
|
|
172
|
+
try {
|
|
173
|
+
const { transport, headers } = await this.prepare(p, m, options, ctx);
|
|
174
|
+
const res = await transport.stream(m, signal, limit.timeout, headers, requests(m, sent, end));
|
|
175
|
+
for await (const answer of res.message)
|
|
176
|
+
yield answer;
|
|
177
|
+
}
|
|
178
|
+
catch (err) {
|
|
179
|
+
throw this.error(p, limit, err, m, sent);
|
|
180
|
+
}
|
|
181
|
+
finally {
|
|
182
|
+
limit.done();
|
|
183
|
+
end.abort();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
/** The transport of a call of `m` made in `ctx`, and its headers: with
|
|
187
|
+
* the context's trace and Request Context when the call is for the app's
|
|
188
|
+
* services. */
|
|
189
|
+
async prepare(p, m, options, ctx) {
|
|
190
|
+
const headers = callHeaders(this.client, options);
|
|
191
|
+
const base = await this.svc.baseUrl(this.client);
|
|
192
|
+
setContextHeaders(`${base}/${m.parent.typeName}/${m.name}`, headers, ctx);
|
|
193
|
+
return { transport: transport(p, base), headers };
|
|
194
|
+
}
|
|
195
|
+
/** The error a call of `m` failed with `err` is: what the caller's
|
|
196
|
+
* requests threw, if they did; its timeout's or signal's when either
|
|
197
|
+
* ended it; the status the service answered with; `unavailable` when no
|
|
198
|
+
* answer came; else connect-es's own. */
|
|
199
|
+
error(p, limit, err, m, sent) {
|
|
200
|
+
if (sent.thrown !== undefined)
|
|
201
|
+
return sent.thrown.error;
|
|
202
|
+
const { connect } = p;
|
|
203
|
+
const what = `${m.parent.typeName}/${m.name}`;
|
|
204
|
+
// A call its deadline ended failed with deadline_exceeded, whatever
|
|
205
|
+
// ended it first: its timer, connect-es's own, or the service, which
|
|
206
|
+
// grpc-go does by resetting the stream.
|
|
207
|
+
const ended = limit.signal?.aborted === true || limit.expired();
|
|
208
|
+
if (err instanceof connect.ConnectError && !ended) {
|
|
209
|
+
const code = CODES[err.code] ?? 'unknown';
|
|
210
|
+
if (err.isWireError) {
|
|
211
|
+
// The status the service sent.
|
|
212
|
+
return new CallError(code, err.rawMessage, {
|
|
213
|
+
cause: err,
|
|
214
|
+
grpcDetails: details(this.types(), err),
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
// The connection failed, or failed the call, before an answer came:
|
|
218
|
+
// connect-es gives what Node threw as the cause. Bun closes the
|
|
219
|
+
// streams of a connection that was reset with CANCEL instead, which
|
|
220
|
+
// connect-es reports as canceled with no cause; neither the call's
|
|
221
|
+
// deadline nor its signal ended it, so the connection did.
|
|
222
|
+
if (systemError(err) || err.code === connect.Code.Canceled) {
|
|
223
|
+
return failure('unavailable', `${what}: ${errorText(err)}`, err);
|
|
224
|
+
}
|
|
225
|
+
// An answer that was no gRPC answer, as a proxy's error status, or
|
|
226
|
+
// one connect-es could not read.
|
|
227
|
+
return failure(code, `${what}: ${err.rawMessage}`, err);
|
|
228
|
+
}
|
|
229
|
+
return limit.error(err, what, 'unavailable');
|
|
230
|
+
}
|
|
231
|
+
/** The messages of {@link files} and of the files they import. */
|
|
232
|
+
types() {
|
|
233
|
+
this.registry ??= createRegistry(...imports(this.files));
|
|
234
|
+
return this.registry;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
/** `files` and every file they import, transitively. */
|
|
238
|
+
function imports(files) {
|
|
239
|
+
const seen = new Set();
|
|
240
|
+
const visit = (file) => {
|
|
241
|
+
if (seen.has(file))
|
|
242
|
+
return;
|
|
243
|
+
seen.add(file);
|
|
244
|
+
file.dependencies.forEach(visit);
|
|
245
|
+
};
|
|
246
|
+
files.forEach(visit);
|
|
247
|
+
return [...seen];
|
|
248
|
+
}
|
|
249
|
+
/** One transport per base URL, which every call to it shares, with its
|
|
250
|
+
* connection. */
|
|
251
|
+
const transports = new Map();
|
|
252
|
+
/** The transport of base URL `base`. */
|
|
253
|
+
function transport(p, base) {
|
|
254
|
+
let t = transports.get(base);
|
|
255
|
+
if (t === undefined) {
|
|
256
|
+
// The gRPC protocol over HTTP/2, of protobuf's binary encoding, reading
|
|
257
|
+
// an answer compressed with gzip or brotli and sending requests
|
|
258
|
+
// uncompressed: connect-es's defaults.
|
|
259
|
+
t = p.connectNode.createGrpcTransport({ baseUrl: base });
|
|
260
|
+
transports.set(base, t);
|
|
261
|
+
}
|
|
262
|
+
return t;
|
|
263
|
+
}
|
|
264
|
+
/** `init` made a message of `desc`, or an `invalid_argument` CallError. A
|
|
265
|
+
* message of `desc` is itself, unknown fields and all. */
|
|
266
|
+
function message(desc, init) {
|
|
267
|
+
try {
|
|
268
|
+
return create(desc, init);
|
|
269
|
+
}
|
|
270
|
+
catch (err) {
|
|
271
|
+
throw failure('invalid_argument', `invalid ${desc.typeName}: ${errorText(err)}`, err);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
async function* once(value) {
|
|
275
|
+
yield value;
|
|
276
|
+
}
|
|
277
|
+
/** `requests`, each made a message of `input`. If the iterable throws, what
|
|
278
|
+
* it threw is kept in `sent`, and `end` ends the call, which fails with it. */
|
|
279
|
+
async function* messages(input, requests, sent, end) {
|
|
280
|
+
try {
|
|
281
|
+
for await (const request of requests)
|
|
282
|
+
yield message(input, request);
|
|
283
|
+
}
|
|
284
|
+
catch (err) {
|
|
285
|
+
sent.thrown = { error: err };
|
|
286
|
+
end.abort();
|
|
287
|
+
throw err;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
/** Whether `err` failed a call for what Node, or Bun, threw: a connection
|
|
291
|
+
* that failed, was reset or broke the protocol, each of which Node's errors
|
|
292
|
+
* give a code, as `ECONNRESET` or `ERR_HTTP2_ERROR`. */
|
|
293
|
+
function systemError(err) {
|
|
294
|
+
const seen = new Set();
|
|
295
|
+
for (let e = err.cause; e instanceof Error && !seen.has(e);) {
|
|
296
|
+
seen.add(e);
|
|
297
|
+
if (typeof e.code === 'string')
|
|
298
|
+
return true;
|
|
299
|
+
e = e.cause;
|
|
300
|
+
}
|
|
301
|
+
return false;
|
|
302
|
+
}
|
|
303
|
+
/** The details of `err`'s status, each decoded by `types` where it has its
|
|
304
|
+
* type, else as the Any it came in. */
|
|
305
|
+
function details(types, err) {
|
|
306
|
+
const out = [];
|
|
307
|
+
for (const d of err.details) {
|
|
308
|
+
// Those of an answer have the type's name and the encoded message.
|
|
309
|
+
if (!('type' in d) || !(d.value instanceof Uint8Array))
|
|
310
|
+
continue;
|
|
311
|
+
const desc = types.getMessage(d.type);
|
|
312
|
+
if (desc !== undefined) {
|
|
313
|
+
try {
|
|
314
|
+
out.push(fromBinary(desc, d.value));
|
|
315
|
+
continue;
|
|
316
|
+
}
|
|
317
|
+
catch {
|
|
318
|
+
// Not a message of its type: it stays the Any it came in.
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
out.push(create(AnySchema, {
|
|
322
|
+
// connect-es keeps only the type's name of its URL.
|
|
323
|
+
typeUrl: `type.googleapis.com/${d.type}`,
|
|
324
|
+
value: d.value,
|
|
325
|
+
}));
|
|
326
|
+
}
|
|
327
|
+
return out;
|
|
328
|
+
}
|
|
329
|
+
/** The codes of connect-es's `Code`, by number: gRPC's. */
|
|
330
|
+
const CODES = [
|
|
331
|
+
'unknown', // 0 is no error.
|
|
332
|
+
'canceled',
|
|
333
|
+
'unknown',
|
|
334
|
+
'invalid_argument',
|
|
335
|
+
'deadline_exceeded',
|
|
336
|
+
'not_found',
|
|
337
|
+
'already_exists',
|
|
338
|
+
'permission_denied',
|
|
339
|
+
'resource_exhausted',
|
|
340
|
+
'failed_precondition',
|
|
341
|
+
'aborted',
|
|
342
|
+
'out_of_range',
|
|
343
|
+
'unimplemented',
|
|
344
|
+
'internal',
|
|
345
|
+
'unavailable',
|
|
346
|
+
'data_loss',
|
|
347
|
+
'unauthenticated',
|
|
348
|
+
];
|
|
349
|
+
//# sourceMappingURL=grpc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grpc.js","sourceRoot":"","sources":["../../../internal/clients/grpc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,OAAO,EACL,MAAM,EACN,cAAc,EACd,UAAU,GASX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD,OAAO,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,EACR,SAAS,EACT,OAAO,GAMR,MAAM,QAAQ,CAAC;AAGhB,uEAAuE;AACvE,MAAM,KAAK,GACT,iFAAiF,CAAC;AAEpF,8EAA8E;AAC9E,KAAK,UAAU,IAAI,CAAI,IAAY,EAAE,IAAsB;IACzD,IAAI,CAAC;QACH,OAAO,MAAM,IAAI,EAAE,CAAC;IACtB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,2CAA2C,IAAI,4BAA4B;YACzE,eAAe,KAAK,EAAE,EACxB,EAAC,KAAK,EAAE,GAAG,EAAC,CACb,CAAC;IACJ,CAAC;AACH,CAAC;AASD,8BAA8B;AAC9B,IAAI,OAAmC,CAAC;AAExC;mCACmC;AACnC,SAAS,KAAK;IACZ,OAAO,KAAK,CAAC,KAAK,IAAI,EAAE;QACtB,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAA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AC5B,mEAAmE;QACnE,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,YAAY,UAAU,CAAC;YAAE,SAAS;QACjE,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,IAAI,CAAC;gBACH,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAe,CAAC,CAAC;gBAClD,SAAS;YACX,CAAC;YAAC,MAAM,CAAC;gBACP,0DAA0D;YAC5D,CAAC;QACH,CAAC;QACD,GAAG,CAAC,IAAI,CACN,MAAM,CAAC,SAAS,EAAE;YAChB,oDAAoD;YACpD,OAAO,EAAE,uBAAuB,CAAC,CAAC,IAAI,EAAE;YACxC,KAAK,EAAE,CAAC,CAAC,KAAK;SACf,CAA0B,CAC5B,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,2DAA2D;AAC3D,MAAM,KAAK,GAAc;IACvB,SAAS,EAAE,iBAAiB;IAC5B,UAAU;IACV,SAAS;IACT,kBAAkB;IAClB,mBAAmB;IACnB,WAAW;IACX,gBAAgB;IAChB,mBAAmB;IACnB,oBAAoB;IACpB,qBAAqB;IACrB,SAAS;IACT,cAAc;IACd,eAAe;IACf,UAAU;IACV,aAAa;IACb,WAAW;IACX,iBAAiB;CAClB,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the service clients Encore generates call through: a service, looked
|
|
3
|
+
* up on the first call that needs it, and its HTTP calls. For the generated
|
|
4
|
+
* code: it may change with the generator. Code calling the clients takes
|
|
5
|
+
* their errors and options from `@encore.dev/sdk/services`.
|
|
6
|
+
*
|
|
7
|
+
* Nothing here loads the runtime until a call needs a service's base URL, so
|
|
8
|
+
* a generated client given a `baseUrl` runs without Encore, as against a
|
|
9
|
+
* mock server in a plain test.
|
|
10
|
+
*
|
|
11
|
+
* @hidden
|
|
12
|
+
* @module
|
|
13
|
+
*/
|
|
14
|
+
import { type CallOptions, type ClientOptions } from './call.js';
|
|
15
|
+
export { CallError, type CallOptions, type ClientOptions, type ErrCode, } from './call.js';
|
|
16
|
+
/**
|
|
17
|
+
* One HTTP call of a generated client. For the generated code: it may change
|
|
18
|
+
* with the generator.
|
|
19
|
+
*
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export interface HttpCall {
|
|
23
|
+
method: string;
|
|
24
|
+
/** The path, already encoded, starting with `/`. */
|
|
25
|
+
path: string;
|
|
26
|
+
/** Query parameters; one `undefined` or `null` is left out, an array is
|
|
27
|
+
* sent once per element. */
|
|
28
|
+
query?: [string, unknown][];
|
|
29
|
+
/** Header parameters; one `undefined` or `null` is left out. */
|
|
30
|
+
headers?: [string, unknown][];
|
|
31
|
+
/** A body sent as JSON. */
|
|
32
|
+
json?: unknown;
|
|
33
|
+
/** A body sent as it is, of `contentType`. */
|
|
34
|
+
body?: Uint8Array | string;
|
|
35
|
+
contentType?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A service the generated clients call, looked up on the first call that
|
|
39
|
+
* needs its base URL. For the generated code: it may change with the
|
|
40
|
+
* generator.
|
|
41
|
+
*
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
export declare class Service {
|
|
45
|
+
readonly name: string;
|
|
46
|
+
/** The base URL, once looked up. */
|
|
47
|
+
private base;
|
|
48
|
+
constructor(name: string);
|
|
49
|
+
/**
|
|
50
|
+
* The base URL calls made with `client` go to, without a trailing slash:
|
|
51
|
+
* its `baseUrl`, else the one Encore gives the service.
|
|
52
|
+
*/
|
|
53
|
+
baseUrl(client: ClientOptions): Promise<string>;
|
|
54
|
+
/** Sends `call`, and decodes its answer from JSON. */
|
|
55
|
+
json<T>(client: ClientOptions, options: CallOptions | undefined, call: HttpCall): Promise<T>;
|
|
56
|
+
/** Sends `call`, and reads its answer's body. */
|
|
57
|
+
bytes(client: ClientOptions, options: CallOptions | undefined, call: HttpCall): Promise<Uint8Array>;
|
|
58
|
+
/** Sends `call`, and drops its answer. */
|
|
59
|
+
empty(client: ClientOptions, options: CallOptions | undefined, call: HttpCall): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Sends GraphQL `document` with `variables` to the service's `path`, and
|
|
62
|
+
* returns the answer's `field` of its data. A variable left `undefined` is
|
|
63
|
+
* left out, which a `null` is not. A `required` field missing or null fails
|
|
64
|
+
* the call with `internal`.
|
|
65
|
+
*/
|
|
66
|
+
graphql<T>(client: ClientOptions, options: CallOptions | undefined, path: string, document: string, variables: Record<string, unknown>, field: string, required?: boolean): Promise<T>;
|
|
67
|
+
/** Sends `call`, failing on an error answer, and reads the answer with
|
|
68
|
+
* `read`. */
|
|
69
|
+
private send;
|
|
70
|
+
/** Sends `call` and reads its answer with `read`, under the call's
|
|
71
|
+
* timeout and signal, which cover the answer's body too. */
|
|
72
|
+
private exchange;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The service named `name`, looked up on the first call that needs it. For
|
|
76
|
+
* the generated code: it may change with the generator.
|
|
77
|
+
*
|
|
78
|
+
* @hidden
|
|
79
|
+
*/
|
|
80
|
+
export declare function service(name: string): Service;
|
|
81
|
+
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../internal/clients/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAUL,KAAK,WAAW,EAChB,KAAK,aAAa,EAGnB,MAAM,QAAQ,CAAC;AAEhB,OAAO,EACL,SAAS,EACT,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,OAAO,GACb,MAAM,QAAQ,CAAC;AAEhB;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACvB,MAA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