brass-runtime 1.19.2 → 1.21.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/dist/agent/cli/main.cjs +265 -43
  3. package/dist/agent/cli/main.d.ts +99 -0
  4. package/dist/agent/cli/main.js +238 -16
  5. package/dist/agent/cli/main.mjs +238 -16
  6. package/dist/agent/index.cjs +18 -2
  7. package/dist/agent/index.d.ts +60 -482
  8. package/dist/agent/index.js +17 -1
  9. package/dist/agent/index.mjs +17 -1
  10. package/dist/{chunk-QAHW7S3Q.cjs → chunk-62IBGQOU.cjs} +6 -6
  11. package/dist/{chunk-6AGAZD32.js → chunk-6LF3M4JC.js} +2 -2
  12. package/dist/{chunk-5X3MPWTR.mjs → chunk-6NXQL3IC.mjs} +370 -10
  13. package/dist/{chunk-J4F5KC3U.js → chunk-AI3M6624.js} +1260 -45
  14. package/dist/{chunk-TWEHIAUE.cjs → chunk-BDTBIYAM.cjs} +13 -13
  15. package/dist/{chunk-IA6BDGXW.mjs → chunk-D53GY2SZ.mjs} +2 -2
  16. package/dist/{chunk-IHY2EJTT.cjs → chunk-EX4VEKUF.cjs} +1340 -125
  17. package/dist/{chunk-UOKXJQAI.cjs → chunk-LA2PAO7J.cjs} +378 -18
  18. package/dist/{chunk-ZXXOXB3T.mjs → chunk-OS4F5HZE.mjs} +1 -1
  19. package/dist/{chunk-HKLZJ5UK.js → chunk-POH2WZBI.js} +370 -10
  20. package/dist/{chunk-6BNZS2A4.mjs → chunk-Q57ENQUW.mjs} +1260 -45
  21. package/dist/{chunk-BHX4MD35.js → chunk-VXZIP3IU.js} +1 -1
  22. package/dist/{defaultClient-hyVSNzSJ.d.ts → defaultClient-DLOa3gdw.d.ts} +101 -3
  23. package/dist/http/index.cjs +69 -33
  24. package/dist/http/index.d.ts +67 -4
  25. package/dist/http/index.js +37 -1
  26. package/dist/http/index.mjs +37 -1
  27. package/dist/http/testing.cjs +4 -4
  28. package/dist/http/testing.d.ts +1 -1
  29. package/dist/http/testing.js +1 -1
  30. package/dist/http/testing.mjs +1 -1
  31. package/dist/nodeWorkspaceDiscovery-Ami1UkMt.d.ts +631 -0
  32. package/dist/observability/index.cjs +3 -3
  33. package/dist/observability/index.d.ts +3 -3
  34. package/dist/observability/index.js +2 -2
  35. package/dist/observability/index.mjs +2 -2
  36. package/dist/perf/cli.cjs +18 -18
  37. package/dist/perf/cli.js +3 -3
  38. package/dist/perf/cli.mjs +3 -3
  39. package/dist/perf/index.cjs +5 -5
  40. package/dist/perf/index.js +3 -3
  41. package/dist/perf/index.mjs +3 -3
  42. package/dist/{server-BKKuzAW9.d.ts → server-BGXOabjo.d.ts} +1 -1
  43. package/package.json +1 -1
  44. package/wasm/pkg/package.json +1 -1
@@ -20,7 +20,7 @@ import {
20
20
  httpErrorStatus,
21
21
  isRetryableHttpError,
22
22
  makeDefaultHttpClient
23
- } from "./chunk-HKLZJ5UK.js";
23
+ } from "./chunk-POH2WZBI.js";
24
24
  import {
25
25
  registerHttpEffect
26
26
  } from "./chunk-TRM4JUZQ.js";
@@ -1,4 +1,4 @@
1
- import { A as Async, D as AsyncWithPromise } from './effect-DbEMiMvv.js';
1
+ import { A as Async, u as AbortablePromiseFinish, D as AsyncWithPromise } from './effect-DbEMiMvv.js';
2
2
  import { Z as ZStream } from './stream-B8c_UKZq.js';
3
3
  import { l as Schedule, r as ScheduleObserver, d as CircuitBreakerError } from './layer-CsNGeVee.js';
4
4
  import { SchemaIssue, JsonSchemaLike, AnyJsonSchemaLike, InferJsonSchema } from './schema/index.js';
@@ -713,6 +713,63 @@ declare function promiseHttpTransport(): PromiseHttpTransportStartBuilder;
713
713
  declare function makeFetchTransport(): HttpTransport;
714
714
  declare function makeFetchStreamTransport(): HttpStreamTransport;
715
715
 
716
+ interface TimerWheelConfig {
717
+ /** Tick resolution in ms. Default: 10. Range: [1, 16]. Values outside are clamped. */
718
+ readonly tickMs?: number;
719
+ /** Number of wheel slots. Default: 512. Must be power of 2. */
720
+ readonly slots?: number;
721
+ /** Fine tick resolution in ms for short deadlines. Default: 4. Range: [1, 16]. */
722
+ readonly fineTickMs?: number;
723
+ /** Deadline threshold in ms: entries with deadline ≤ this use fine tick. Default: 50. */
724
+ readonly fineThresholdMs?: number;
725
+ }
726
+ interface TimerHandle {
727
+ cancel(): void;
728
+ }
729
+ declare class TimerWheel {
730
+ private readonly tickMs;
731
+ private readonly mask;
732
+ private readonly wheel;
733
+ private currentTick;
734
+ private timer;
735
+ private pending;
736
+ private readonly fineTickMs;
737
+ private readonly fineThresholdMs;
738
+ private fineHead;
739
+ private fineTimer;
740
+ private finePending;
741
+ constructor(config?: TimerWheelConfig);
742
+ /**
743
+ * Schedule a timeout. Returns a cancel handle. O(1).
744
+ * @param timeoutMs - Timeout duration in milliseconds.
745
+ * @param cb - Callback to invoke on expiry.
746
+ * @param now - Optional pre-captured `performance.now()` value to avoid an extra call.
747
+ */
748
+ schedule(timeoutMs: number, cb: () => void, now?: number): TimerHandle;
749
+ /** Schedule on the normal (coarse) wheel path. */
750
+ private scheduleNormal;
751
+ /** Schedule on the fine-resolution path for short deadlines. */
752
+ private scheduleFine;
753
+ /** Advance the wheel, expiring due entries. Called by internal setTimeout. */
754
+ private tick;
755
+ /** Tick the fine-resolution linked list, expiring due entries. */
756
+ private fineTick;
757
+ /** Start the background timer if not running. */
758
+ private ensureTimer;
759
+ /** Start the fine-tick timer if not running. */
760
+ private ensureFineTimer;
761
+ /** Stop the background timer if no entries pending. */
762
+ private maybeStopTimer;
763
+ /** Stop the fine-tick timer if no fine entries pending. */
764
+ private maybeStopFineTimer;
765
+ /** Cancel all pending entries and stop. */
766
+ destroy(): void;
767
+ /** Unlink an entry from its slot's doubly-linked list. O(1). */
768
+ private unlink;
769
+ /** Unlink an entry from the fine-tick linked list. O(1). */
770
+ private unlinkFine;
771
+ }
772
+
716
773
  type HttpError = {
717
774
  _tag: "Abort";
718
775
  } | {
@@ -835,13 +892,54 @@ type HttpClient = HttpClientFn & {
835
892
  type HttpClientMetadata = Pick<HttpClient, "adaptiveLimiter" | "destroy" | "shutdown">;
836
893
  declare const decorate: (run: HttpClientFn, stats?: () => HttpClientStats, metadata?: HttpClientMetadata) => HttpClient;
837
894
  declare const withMiddleware: (mw: HttpMiddleware) => (c: HttpClient) => HttpClient;
895
+ declare const decorateStream: (run: HttpClientStreamFn, stats?: () => HttpClientStats) => HttpClientStream;
838
896
  declare const normalizeHeadersInit: (h: any) => Record<string, string> | undefined;
897
+ declare const normalizeRequest: (defaultHeaders: Record<string, string>) => (req0: HttpRequest) => HttpRequest;
898
+ declare const resolvePositiveTimeout: (value: number | undefined) => number | undefined;
899
+ declare const makeHttpStats: (pool: HttpConcurrencyPool | undefined, adaptiveLimiter: AdaptiveLimiter | undefined) => {
900
+ onStart: () => void;
901
+ onFinish: (finish: AbortablePromiseFinish) => void;
902
+ snapshot: () => HttpClientStats;
903
+ };
904
+ type HttpMetrics = ReturnType<typeof makeHttpStats>;
905
+ declare const makePool: (cfg: MakeHttpConfig) => HttpConcurrencyPool | undefined;
906
+ declare const makeAdaptiveLimiter: (cfg: MakeHttpConfig) => AdaptiveLimiter | undefined;
907
+ declare const resolveRequestUrl: (req: HttpRequest, baseUrl: string) => URL | HttpError;
908
+ declare const fetchLabel: (req: HttpRequest, url: URL) => string;
909
+ declare const timeoutReason: (req: HttpRequest, url: URL, timeoutMs: number) => HttpError;
910
+ declare const requestPriority: (req: HttpRequest) => number | undefined;
911
+ declare const runTransportEffect: <A>(effect: Async<unknown, HttpError, A>, env: unknown, signal: AbortSignal) => Promise<A>;
912
+ declare const runDirectTransport: (req: HttpRequest, url: URL, transport: HttpTransport, metrics: HttpMetrics) => Async<unknown, HttpError, HttpWireResponse>;
913
+ type HttpLease = {
914
+ release: (...args: any[]) => void;
915
+ };
916
+ declare const releaseSuccess: (lease: HttpLease | undefined, adaptiveLimiter: AdaptiveLimiter | undefined, response: {
917
+ readonly status: number;
918
+ readonly ms: number;
919
+ }) => undefined;
920
+ declare const releaseFailure: (lease: HttpLease | undefined, adaptiveLimiter: AdaptiveLimiter | undefined) => undefined;
839
921
  declare function makeHttpStream(cfg?: MakeHttpConfig): HttpClientStream;
840
922
  /**
841
923
  * Shared no-op AbortSignal used when no external signal is present.
842
924
  * This avoids allocating a new AbortController per request in the common case.
843
925
  */
844
926
  declare const noopSignal: AbortSignal;
927
+ /**
928
+ * Synchronous fast-path for pool/adaptive-limiter + timeout requests.
929
+ *
930
+ * When the pool/limiter acquire is uncontended (tryAcquireSync succeeds) and the
931
+ * transport effect resolves synchronously, this avoids ALL Promise/microtask
932
+ * boundaries — the entire request completes in a single call frame.
933
+ *
934
+ * Falls back to async acquire when contended (pool full or limiter at limit).
935
+ *
936
+ * Closure budget for uncontended sync path:
937
+ * 1. The cancel function returned to caller
938
+ * 2. The transport completion callback (success/failure handler)
939
+ * 3. The timeout callback (when timeoutMs is set)
940
+ * All other functions are methods on PoolRequestState — no per-request closure allocation.
941
+ */
942
+ declare const runPoolTransport: (req: HttpRequest, url: URL, transport: HttpTransport, metrics: HttpMetrics, pool: HttpConcurrencyPool | undefined, adaptiveLimiter: AdaptiveLimiter | undefined, timerWheel: TimerWheel | undefined, timeoutMs: number | undefined) => Async<unknown, HttpError, HttpWireResponse>;
845
943
  declare function makeHttp(cfg?: MakeHttpConfig): HttpClient;
846
944
  declare const withRetryStream: (p: RetryPolicy) => (next: HttpClientStream) => HttpClientStream;
847
945
 
@@ -1583,7 +1681,7 @@ type DefaultPostJson = {
1583
1681
  <Validator extends AnyJsonSchemaLike>(url: string, bodyObj: unknown, init: HttpPostJsonInit<Validator>): AsyncWithPromise<unknown, HttpError | ValidationError, HttpResponse<InferJsonSchema<Validator>>>;
1584
1682
  <A = unknown>(url: string, bodyObj: unknown, init?: PostJsonInitNoSchema): AsyncWithPromise<unknown, HttpError | ValidationError, HttpResponse<A>>;
1585
1683
  };
1586
- type DefaultHttpClientPreset = "minimal" | "proxy" | "highThroughputProxy" | "balanced" | "default" | "production";
1684
+ type DefaultHttpClientPreset = "minimal" | "proxy" | "highThroughputProxy" | "balanced" | "default" | "production" | "bareMetal";
1587
1685
  type DefaultHttpClientFeatures = {
1588
1686
  readonly dedup: boolean;
1589
1687
  readonly batch: boolean;
@@ -1645,4 +1743,4 @@ declare const defaultHttpClientPreset: DefaultHttpClientPreset;
1645
1743
  */
1646
1744
  declare function makeDefaultHttpClient(config?: DefaultHttpClientConfig): DefaultHttpClient;
1647
1745
 
1648
- export { type DefaultHttpClientFeatures as $, type AdaptiveLimiterStats as A, type BatchConfig as B, type CompressionConfig as C, type DefaultHttpClient as D, type AdaptiveLimiterPreset as E, type HttpPoolConfig as F, type AdaptiveAcquireOptions as G, type HttpRequest as H, type AdaptiveBaselineStrategy as I, type AdaptiveHeadroomContext as J, type AdaptiveHeadroomMode as K, type LifecycleClientConfig as L, type AdaptiveHeadroomStrategy as M, type AdaptiveLease as N, type AdaptiveLimiterDiagnostics as O, type PrewarmResult as P, type AdaptiveLimiterKeySnapshot as Q, type RequestCompressionConfig as R, type AdaptiveQueueLoadShedding as S, type AdaptiveQueueStrategy as T, type AdaptiveReleaseInfo as U, type BatchFunction as V, type CachePolicyResult as W, type CompressionStats as X, type DecompressResult as Y, type Decompressor as Z, type DefaultGetJson as _, type HttpClient as a, abortErrorForSignal as a$, type DefaultPostJson as a0, type Dx as a1, type HttpBody as a2, type HttpClientStream as a3, type HttpClientStreamFn as a4, HttpConcurrencyPool as a5, type HttpErrorHandlers as a6, type HttpInit as a7, type HttpJsonInit as a8, type HttpMeta as a9, type PerRequestRetryOverride as aA, type PrewarmEvent as aB, type PrewarmEventType as aC, type PrewarmOriginStatus as aD, type PrewarmResultStatus as aE, type PromiseHttpTransportBodyBuilder as aF, type PromiseHttpTransportBodySelector as aG, type PromiseHttpTransportConfig as aH, type PromiseHttpTransportConfigWithSignal as aI, type PromiseHttpTransportFluentResponseBuilder as aJ, type PromiseHttpTransportRequestConfigBuilder as aK, type PromiseHttpTransportRequestConfigContext as aL, type PromiseHttpTransportRequestConfigMapper as aM, type PromiseHttpTransportResponse as aN, type PromiseHttpTransportResponseInfo as aO, type PromiseHttpTransportResponseInfoMapper as aP, type PromiseHttpTransportStartBuilder as aQ, type RequestCompressionStats as aR, type ResolveHttpRequestPolicyOptions as aS, type ResolvedConfig as aT, type RetryEvent as aU, type RetryScheduleInput as aV, type RetryableHttpErrorOptions as aW, SUPPORTED_ENCODINGS as aX, type SupportedEncoding as aY, type ToHttpErrorOptions as aZ, type ValidationError as a_, type HttpPolicyPreset as aa, type HttpPolicyPresets as ab, type HttpPoolKeyResolver as ac, type HttpPoolKeyStats as ad, type HttpPoolLease as ae, type HttpPoolStats as af, type HttpPostJsonBodyInit as ag, type HttpPostJsonInit as ah, type HttpPostJsonSchemaBodyInit as ai, type HttpRequestPolicy as aj, type HttpRequestPolicyRef as ak, type HttpRequestRetryOverride as al, type HttpResponse as am, type HttpResponseWithMeta as an, type HttpRetryScheduleInput as ao, type HttpStreamTransport as ap, type HttpTransportContext as aq, type HttpTransportTiming as ar, type HttpWireResponseStream as as, type HttpWireWithMeta as at, type JsonDecodeResult as au, type KnownHttpError as av, type KnownHttpErrorTag as aw, type LifecycleRequestOptions as ax, type LimitChangeEvent as ay, type MakeHttpConfig as az, type HttpWireResponse as b, adaptiveLimiterPresets as b0, backoffDelayMs as b1, decodeJsonBody as b2, decodeJsonBodyEffect as b3, decorate as b4, defaultHttpClientPreset as b5, defaultRetryOnError as b6, defaultRetryOnStatus as b7, defaultRetryableMethods as b8, defineHttpPolicyPresets as b9, makeFetchStreamTransport as bA, makeFetchTransport as bB, makeHttp as bC, makeHttpStream as bD, makeJsonParseValidationError as bE, makePromiseHttpTransport as bF, matchHttpError as bG, noopSignal as bH, normalizeHeadersInit as bI, normalizeHttpError as bJ, normalizeHttpHeaders as bK, normalizeRetryBudget as bL, promiseHttpTransport as bM, resolveConfig as bN, resolveHttpPoolKey as bO, resolveHttpRequestPolicyPresets as bP, retryAfterMs as bQ, toHttpError as bR, validateConfig as bS, validatedJson as bT, validatedJsonResponse as bU, withBatch as bV, withHttpPolicyPresets as bW, withHttpRequestPolicy as bX, withMiddleware as bY, withRetry as bZ, withRetryStream as b_, encodeJsonBodyEffect as ba, formatHttpError as bb, getHttpRequestPolicy as bc, headersOf as bd, httpClient as be, httpClientStream as bf, httpClientWithMeta as bg, httpErrorStatus as bh, httpPolicy as bi, isAbortError as bj, isAbortHttpError as bk, isCircuitBreakerOpen as bl, isExternalAbortError as bm, isExternalTimeoutError as bn, isFetchHttpError as bo, isHttpError as bp, isKnownHttpError as bq, isPromiseTransportDirect as br, isRetryableHttpError as bs, isRetryableHttpStatus as bt, isTaggedHttpError as bu, isTimeoutHttpError as bv, isValidationError as bw, linkAbortSignals as bx, makeAdaptiveLimiterConfig as by, makeDefaultHttpClient as bz, type HttpError as c, type HttpMiddleware as d, type DefaultHttpClientConfig as e, type CompressionMiddlewareResult as f, type RequestCompressionMiddlewareResult as g, type HttpTransport as h, AdaptiveLimiter as i, type LifecycleClient as j, type LifecycleEvent as k, type HttpClientStats as l, type LifecycleEventType as m, type LifecycleStats as n, type PrewarmStatusSnapshot as o, type PrewarmConfig as p, type HttpClientFn as q, type PrewarmOriginState as r, type HttpMethod as s, type DefaultHttpClientPreset as t, type DedupConfig as u, type CacheConfig as v, type PriorityConfig as w, type RetryPolicy as x, type PrewarmLifecycleConfig as y, type AdaptiveLimiterConfig as z };
1746
+ export { type Decompressor as $, type AdaptiveLimiterStats as A, type BatchConfig as B, type CompressionConfig as C, type DefaultHttpClient as D, type PriorityConfig as E, type RetryPolicy as F, type PrewarmLifecycleConfig as G, type HttpRequest as H, type AdaptiveLimiterPreset as I, type AdaptiveAcquireOptions as J, type AdaptiveBaselineStrategy as K, type LifecycleClientConfig as L, type AdaptiveHeadroomContext as M, type AdaptiveHeadroomMode as N, type AdaptiveHeadroomStrategy as O, type PrewarmResult as P, type AdaptiveLease as Q, type RequestCompressionConfig as R, type AdaptiveLimiterDiagnostics as S, type AdaptiveLimiterKeySnapshot as T, type AdaptiveQueueLoadShedding as U, type AdaptiveQueueStrategy as V, type AdaptiveReleaseInfo as W, type BatchFunction as X, type CachePolicyResult as Y, type CompressionStats as Z, type DecompressResult as _, type HttpClient as a, abortErrorForSignal as a$, type DefaultGetJson as a0, type DefaultHttpClientFeatures as a1, type DefaultPostJson as a2, type Dx as a3, type HttpBody as a4, type HttpClientStreamFn as a5, HttpConcurrencyPool as a6, type HttpErrorHandlers as a7, type HttpInit as a8, type HttpJsonInit as a9, type PerRequestRetryOverride as aA, type PrewarmEvent as aB, type PrewarmEventType as aC, type PrewarmOriginStatus as aD, type PrewarmResultStatus as aE, type PromiseHttpTransportBodyBuilder as aF, type PromiseHttpTransportBodySelector as aG, type PromiseHttpTransportConfig as aH, type PromiseHttpTransportConfigWithSignal as aI, type PromiseHttpTransportFluentResponseBuilder as aJ, type PromiseHttpTransportRequestConfigBuilder as aK, type PromiseHttpTransportRequestConfigContext as aL, type PromiseHttpTransportRequestConfigMapper as aM, type PromiseHttpTransportResponse as aN, type PromiseHttpTransportResponseInfo as aO, type PromiseHttpTransportResponseInfoMapper as aP, type PromiseHttpTransportStartBuilder as aQ, type RequestCompressionStats as aR, type ResolveHttpRequestPolicyOptions as aS, type ResolvedConfig as aT, type RetryEvent as aU, type RetryScheduleInput as aV, type RetryableHttpErrorOptions as aW, SUPPORTED_ENCODINGS as aX, type SupportedEncoding as aY, type ToHttpErrorOptions as aZ, type ValidationError as a_, type HttpMeta as aa, type HttpPolicyPreset as ab, type HttpPolicyPresets as ac, type HttpPoolKeyResolver as ad, type HttpPoolKeyStats as ae, type HttpPoolLease as af, type HttpPoolStats as ag, type HttpPostJsonBodyInit as ah, type HttpPostJsonInit as ai, type HttpPostJsonSchemaBodyInit as aj, type HttpRequestPolicy as ak, type HttpRequestPolicyRef as al, type HttpRequestRetryOverride as am, type HttpResponse as an, type HttpResponseWithMeta as ao, type HttpRetryScheduleInput as ap, type HttpTransportContext as aq, type HttpTransportTiming as ar, type HttpWireResponseStream as as, type HttpWireWithMeta as at, type JsonDecodeResult as au, type KnownHttpError as av, type KnownHttpErrorTag as aw, type LifecycleRequestOptions as ax, type LimitChangeEvent as ay, type MakeHttpConfig as az, type HttpWireResponse as b, retryAfterMs as b$, adaptiveLimiterPresets as b0, backoffDelayMs as b1, decodeJsonBody as b2, decodeJsonBodyEffect as b3, decorate as b4, decorateStream as b5, defaultHttpClientPreset as b6, defaultRetryOnError as b7, defaultRetryOnStatus as b8, defaultRetryableMethods as b9, makeAdaptiveLimiter as bA, makeAdaptiveLimiterConfig as bB, makeDefaultHttpClient as bC, makeFetchStreamTransport as bD, makeFetchTransport as bE, makeHttp as bF, makeHttpStats as bG, makeHttpStream as bH, makeJsonParseValidationError as bI, makePool as bJ, makePromiseHttpTransport as bK, matchHttpError as bL, noopSignal as bM, normalizeHeadersInit as bN, normalizeHttpError as bO, normalizeHttpHeaders as bP, normalizeRequest as bQ, normalizeRetryBudget as bR, promiseHttpTransport as bS, releaseFailure as bT, releaseSuccess as bU, requestPriority as bV, resolveConfig as bW, resolveHttpPoolKey as bX, resolveHttpRequestPolicyPresets as bY, resolvePositiveTimeout as bZ, resolveRequestUrl as b_, defineHttpPolicyPresets as ba, encodeJsonBodyEffect as bb, fetchLabel as bc, formatHttpError as bd, getHttpRequestPolicy as be, headersOf as bf, httpClient as bg, httpClientStream as bh, httpClientWithMeta as bi, httpErrorStatus as bj, httpPolicy as bk, isAbortError as bl, isAbortHttpError as bm, isCircuitBreakerOpen as bn, isExternalAbortError as bo, isExternalTimeoutError as bp, isFetchHttpError as bq, isHttpError as br, isKnownHttpError as bs, isPromiseTransportDirect as bt, isRetryableHttpError as bu, isRetryableHttpStatus as bv, isTaggedHttpError as bw, isTimeoutHttpError as bx, isValidationError as by, linkAbortSignals as bz, type HttpError as c, runDirectTransport as c0, runPoolTransport as c1, runTransportEffect as c2, timeoutReason as c3, toHttpError as c4, validateConfig as c5, validatedJson as c6, validatedJsonResponse as c7, withBatch as c8, withHttpPolicyPresets as c9, withHttpRequestPolicy as ca, withMiddleware as cb, withRetry as cc, withRetryStream as cd, type HttpMiddleware as d, type DefaultHttpClientConfig as e, type CompressionMiddlewareResult as f, type RequestCompressionMiddlewareResult as g, type HttpTransport as h, AdaptiveLimiter as i, type LifecycleClient as j, type LifecycleEvent as k, type HttpClientStats as l, type LifecycleEventType as m, type LifecycleStats as n, type PrewarmStatusSnapshot as o, type PrewarmConfig as p, type HttpClientFn as q, type PrewarmOriginState as r, type HttpMethod as s, type HttpStreamTransport as t, type HttpPoolConfig as u, type AdaptiveLimiterConfig as v, type HttpClientStream as w, type DefaultHttpClientPreset as x, type DedupConfig as y, type CacheConfig as z };
@@ -105,7 +105,25 @@ require('../chunk-VXNWVAIG.cjs');
105
105
 
106
106
 
107
107
 
108
- var _chunkUOKXJQAIcjs = require('../chunk-UOKXJQAI.cjs');
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+ var _chunkLA2PAO7Jcjs = require('../chunk-LA2PAO7J.cjs');
109
127
 
110
128
 
111
129
  var _chunkL6VB5N7Qcjs = require('../chunk-L6VB5N7Q.cjs');
@@ -180,7 +198,7 @@ function runNodeRequest(context, config, httpAgent, httpsAgent) {
180
198
  return;
181
199
  }
182
200
  if (signal.aborted) {
183
- cb({ _tag: "Failure", cause: _chunkMVGUEJ5Zcjs.Cause.fail(_chunkUOKXJQAIcjs.abortErrorForSignal.call(void 0, signal)) });
201
+ cb({ _tag: "Failure", cause: _chunkMVGUEJ5Zcjs.Cause.fail(_chunkLA2PAO7Jcjs.abortErrorForSignal.call(void 0, signal)) });
184
202
  return;
185
203
  }
186
204
  const started = nowMs();
@@ -197,12 +215,12 @@ function runNodeRequest(context, config, httpAgent, httpsAgent) {
197
215
  const fail = (error) => {
198
216
  finish({
199
217
  _tag: "Failure",
200
- cause: _chunkMVGUEJ5Zcjs.Cause.fail(_chunkUOKXJQAIcjs.normalizeHttpError.call(void 0, error, { signal }))
218
+ cause: _chunkMVGUEJ5Zcjs.Cause.fail(_chunkLA2PAO7Jcjs.normalizeHttpError.call(void 0, error, { signal }))
201
219
  });
202
220
  };
203
221
  const options = {
204
222
  method: request.method,
205
- headers: _chunkUOKXJQAIcjs.Request.headers.get(request),
223
+ headers: _chunkLA2PAO7Jcjs.Request.headers.get(request),
206
224
  agent: isHttps ? httpsAgent : httpAgent,
207
225
  signal
208
226
  };
@@ -218,7 +236,7 @@ function runNodeRequest(context, config, httpAgent, httpsAgent) {
218
236
  value: {
219
237
  status: _nullishCoalesce(response.statusCode, () => ( 0)),
220
238
  statusText: _nullishCoalesce(response.statusMessage, () => ( "")),
221
- headers: _chunkUOKXJQAIcjs.normalizeHttpHeaders.call(void 0, response.headers),
239
+ headers: _chunkLA2PAO7Jcjs.normalizeHttpHeaders.call(void 0, response.headers),
222
240
  bodyText: Buffer.concat(chunks, byteLength).toString("utf8"),
223
241
  ms: Math.round(nowMs() - started)
224
242
  }
@@ -228,7 +246,7 @@ function runNodeRequest(context, config, httpAgent, httpsAgent) {
228
246
  });
229
247
  abort = () => {
230
248
  nodeRequest.destroy(isError(signal.reason) ? signal.reason : void 0);
231
- finish({ _tag: "Failure", cause: _chunkMVGUEJ5Zcjs.Cause.fail(_chunkUOKXJQAIcjs.abortErrorForSignal.call(void 0, signal)) });
249
+ finish({ _tag: "Failure", cause: _chunkMVGUEJ5Zcjs.Cause.fail(_chunkLA2PAO7Jcjs.abortErrorForSignal.call(void 0, signal)) });
232
250
  };
233
251
  signal.addEventListener("abort", abort, { once: true });
234
252
  nodeRequest.on("error", fail);
@@ -274,7 +292,7 @@ function makeNodeHttpProxyClient(config = {}) {
274
292
  nodeTransport,
275
293
  ...clientConfig
276
294
  } = config;
277
- return _chunkUOKXJQAIcjs.makeDefaultHttpClient.call(void 0, {
295
+ return _chunkLA2PAO7Jcjs.makeDefaultHttpClient.call(void 0, {
278
296
  ...clientConfig,
279
297
  preset,
280
298
  transport: _nullishCoalesce(transport, () => ( makeNodeHttpTransport(nodeTransport)))
@@ -290,7 +308,7 @@ var resolveFinalUrl = (baseUrl, url) => {
290
308
  }
291
309
  };
292
310
  var createHttpCore = (cfg = {}) => {
293
- const wire = _chunkUOKXJQAIcjs.makeHttp.call(void 0, cfg);
311
+ const wire = _chunkLA2PAO7Jcjs.makeHttp.call(void 0, cfg);
294
312
  const withPromise = (eff) => _chunkMVGUEJ5Zcjs.withAsyncPromise.call(void 0, (e, env) => _chunkJKHBEWQAcjs.toPromise.call(void 0, e, env))(eff);
295
313
  const requestRaw = (req) => wire(req);
296
314
  const toResponse = (w, body) => ({
@@ -300,7 +318,7 @@ var createHttpCore = (cfg = {}) => {
300
318
  body
301
319
  });
302
320
  const decodeResponse = (w, validator, schemaName) => _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
303
- _chunkUOKXJQAIcjs.decodeJsonBodyEffect.call(void 0, w.bodyText, validator, { schemaName }),
321
+ _chunkLA2PAO7Jcjs.decodeJsonBodyEffect.call(void 0, w.bodyText, validator, { schemaName }),
304
322
  (body) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, toResponse(w, body))
305
323
  );
306
324
  return {
@@ -308,7 +326,7 @@ var createHttpCore = (cfg = {}) => {
308
326
  wire,
309
327
  withPromise,
310
328
  requestRaw,
311
- buildReq: _chunkUOKXJQAIcjs.buildHttpRequest,
329
+ buildReq: _chunkLA2PAO7Jcjs.buildHttpRequest,
312
330
  toResponse,
313
331
  decodeResponse
314
332
  };
@@ -326,17 +344,17 @@ function httpClient(cfg = {}) {
326
344
  };
327
345
  const getJson = ((url, init) => {
328
346
  const base = core.buildReq("GET", url, init);
329
- const req = _chunkUOKXJQAIcjs.setHeaderIfMissing.call(void 0, "accept", "application/json")(base);
347
+ const req = _chunkLA2PAO7Jcjs.setHeaderIfMissing.call(void 0, "accept", "application/json")(base);
330
348
  return core.withPromise(_chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0, requestRaw(req), (w) => core.decodeResponse(w, _optionalChain([init, 'optionalAccess', _ => _.schema]), _optionalChain([init, 'optionalAccess', _2 => _2.schemaName]))));
331
349
  });
332
350
  const postJson = ((url, bodyObj, init) => {
333
351
  return core.withPromise(
334
352
  _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
335
- _chunkUOKXJQAIcjs.encodeJsonBodyEffect.call(void 0, bodyObj, _optionalChain([init, 'optionalAccess', _3 => _3.bodySchema]), { schemaName: _optionalChain([init, 'optionalAccess', _4 => _4.bodySchemaName]) }),
353
+ _chunkLA2PAO7Jcjs.encodeJsonBodyEffect.call(void 0, bodyObj, _optionalChain([init, 'optionalAccess', _3 => _3.bodySchema]), { schemaName: _optionalChain([init, 'optionalAccess', _4 => _4.bodySchemaName]) }),
336
354
  (bodyText) => {
337
355
  const base = core.buildReq("POST", url, init, bodyText);
338
- const req = _chunkUOKXJQAIcjs.setHeaderIfMissing.call(void 0, "content-type", "application/json")(
339
- _chunkUOKXJQAIcjs.setHeaderIfMissing.call(void 0, "accept", "application/json")(base)
356
+ const req = _chunkLA2PAO7Jcjs.setHeaderIfMissing.call(void 0, "content-type", "application/json")(
357
+ _chunkLA2PAO7Jcjs.setHeaderIfMissing.call(void 0, "accept", "application/json")(base)
340
358
  );
341
359
  return _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0, requestRaw(req), (w) => core.decodeResponse(w, _optionalChain([init, 'optionalAccess', _5 => _5.schema]), _optionalChain([init, 'optionalAccess', _6 => _6.schemaName])));
342
360
  }
@@ -351,7 +369,7 @@ function httpClient(cfg = {}) {
351
369
  getJson,
352
370
  postJson,
353
371
  with: (mw) => make(wire.with(mw)),
354
- withRetry: (p) => make(wire.with(_chunkUOKXJQAIcjs.withRetry.call(void 0, p))),
372
+ withRetry: (p) => make(wire.with(_chunkLA2PAO7Jcjs.withRetry.call(void 0, p))),
355
373
  wire,
356
374
  stats: () => wire.stats()
357
375
  };
@@ -387,11 +405,11 @@ function httpClientWithMeta(cfg = {}) {
387
405
  const startedAt = Date.now();
388
406
  return core.withPromise(
389
407
  _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
390
- _chunkUOKXJQAIcjs.encodeJsonBodyEffect.call(void 0, bodyObj, _optionalChain([init, 'optionalAccess', _7 => _7.bodySchema]), { schemaName: _optionalChain([init, 'optionalAccess', _8 => _8.bodySchemaName]) }),
408
+ _chunkLA2PAO7Jcjs.encodeJsonBodyEffect.call(void 0, bodyObj, _optionalChain([init, 'optionalAccess', _7 => _7.bodySchema]), { schemaName: _optionalChain([init, 'optionalAccess', _8 => _8.bodySchemaName]) }),
391
409
  (bodyText) => {
392
410
  const base = core.buildReq("POST", url, init, bodyText);
393
- const req = _chunkUOKXJQAIcjs.setHeaderIfMissing.call(void 0, "content-type", "application/json")(
394
- _chunkUOKXJQAIcjs.setHeaderIfMissing.call(void 0, "accept", "application/json")(base)
411
+ const req = _chunkLA2PAO7Jcjs.setHeaderIfMissing.call(void 0, "content-type", "application/json")(
412
+ _chunkLA2PAO7Jcjs.setHeaderIfMissing.call(void 0, "accept", "application/json")(base)
395
413
  );
396
414
  return _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
397
415
  core.requestRaw(req),
@@ -421,7 +439,7 @@ function httpClientWithMeta(cfg = {}) {
421
439
  };
422
440
  const getJson = (url, init) => {
423
441
  const base = core.buildReq("GET", url, init);
424
- const req = _chunkUOKXJQAIcjs.setHeaderIfMissing.call(void 0, "accept", "application/json")(base);
442
+ const req = _chunkLA2PAO7Jcjs.setHeaderIfMissing.call(void 0, "accept", "application/json")(base);
425
443
  const startedAt = Date.now();
426
444
  return core.withPromise(
427
445
  _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
@@ -453,13 +471,13 @@ function httpClientWithMeta(cfg = {}) {
453
471
  };
454
472
  }
455
473
  function httpClientStream(cfg = {}) {
456
- const wire = _chunkUOKXJQAIcjs.makeHttpStream.call(void 0, cfg);
474
+ const wire = _chunkLA2PAO7Jcjs.makeHttpStream.call(void 0, cfg);
457
475
  const make = (w) => {
458
476
  const withPromise = (eff) => _chunkMVGUEJ5Zcjs.withAsyncPromise.call(void 0, (e, env) => _chunkJKHBEWQAcjs.toPromise.call(void 0, e, env))(eff);
459
477
  const request = (req) => withPromise(w(req));
460
478
  const getStream = (url, init) => {
461
479
  const base = { method: "GET", url, init };
462
- const req = _chunkUOKXJQAIcjs.setHeaderIfMissing.call(void 0, "accept", "*/*")(base);
480
+ const req = _chunkLA2PAO7Jcjs.setHeaderIfMissing.call(void 0, "accept", "*/*")(base);
463
481
  return request(req);
464
482
  };
465
483
  return {
@@ -467,7 +485,7 @@ function httpClientStream(cfg = {}) {
467
485
  getStream,
468
486
  get: getStream,
469
487
  with: (mw) => make(mw(w)),
470
- withRetry: (p) => make(_chunkUOKXJQAIcjs.withRetryStream.call(void 0, p)(w)),
488
+ withRetry: (p) => make(_chunkLA2PAO7Jcjs.withRetryStream.call(void 0, p)(w)),
471
489
  wire: w,
472
490
  stats: () => w.stats()
473
491
  };
@@ -565,7 +583,7 @@ function resolveAdaptiveLimiter(config, next) {
565
583
  function resolveAdaptiveLimiterKey(config, limiter, req) {
566
584
  if (!limiter) return void 0;
567
585
  if (config.adaptiveLimiterKey) return config.adaptiveLimiterKey(req);
568
- const poolKey = _chunkUOKXJQAIcjs.getHttpRequestPolicy.call(void 0, req).poolKey;
586
+ const poolKey = _chunkLA2PAO7Jcjs.getHttpRequestPolicy.call(void 0, req).poolKey;
569
587
  if (poolKey) return poolKey;
570
588
  if (limiter.keyResolver === "global") return "global";
571
589
  try {
@@ -616,11 +634,11 @@ function withLogging(logger) {
616
634
  logger({ phase: "request", req });
617
635
  } catch (e5) {
618
636
  }
619
- const startedAt = _chunkUOKXJQAIcjs.now.call(void 0, );
637
+ const startedAt = _chunkLA2PAO7Jcjs.now.call(void 0, );
620
638
  return _chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
621
639
  next(req),
622
640
  (error) => {
623
- const durationMs = Math.round(_chunkUOKXJQAIcjs.now.call(void 0, ) - startedAt);
641
+ const durationMs = Math.round(_chunkLA2PAO7Jcjs.now.call(void 0, ) - startedAt);
624
642
  try {
625
643
  logger({ phase: "error", req, error, durationMs });
626
644
  } catch (e6) {
@@ -628,7 +646,7 @@ function withLogging(logger) {
628
646
  return _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, error);
629
647
  },
630
648
  (res) => {
631
- const durationMs = Math.round(_chunkUOKXJQAIcjs.now.call(void 0, ) - startedAt);
649
+ const durationMs = Math.round(_chunkLA2PAO7Jcjs.now.call(void 0, ) - startedAt);
632
650
  try {
633
651
  logger({ phase: "response", req, res, durationMs });
634
652
  } catch (e7) {
@@ -1092,10 +1110,10 @@ function makeBuilder(config) {
1092
1110
  prewarm: (layer = {}) => setLayer("prewarm", layer),
1093
1111
  noPrewarm: () => setLayer("prewarm", false),
1094
1112
  adaptiveLimiter: (layer = {}) => setLayer("adaptiveLimiter", layer),
1095
- adaptiveLimiterPreset: (preset, overrides = {}) => setLayer("adaptiveLimiter", _chunkUOKXJQAIcjs.makeAdaptiveLimiterConfig.call(void 0, preset, overrides)),
1096
- conservativeLimiter: (overrides = {}) => setLayer("adaptiveLimiter", _chunkUOKXJQAIcjs.makeAdaptiveLimiterConfig.call(void 0, "conservative", overrides)),
1097
- balancedLimiter: (overrides = {}) => setLayer("adaptiveLimiter", _chunkUOKXJQAIcjs.makeAdaptiveLimiterConfig.call(void 0, "balanced", overrides)),
1098
- aggressiveLimiter: (overrides = {}) => setLayer("adaptiveLimiter", _chunkUOKXJQAIcjs.makeAdaptiveLimiterConfig.call(void 0, "aggressive", overrides)),
1113
+ adaptiveLimiterPreset: (preset, overrides = {}) => setLayer("adaptiveLimiter", _chunkLA2PAO7Jcjs.makeAdaptiveLimiterConfig.call(void 0, preset, overrides)),
1114
+ conservativeLimiter: (overrides = {}) => setLayer("adaptiveLimiter", _chunkLA2PAO7Jcjs.makeAdaptiveLimiterConfig.call(void 0, "conservative", overrides)),
1115
+ balancedLimiter: (overrides = {}) => setLayer("adaptiveLimiter", _chunkLA2PAO7Jcjs.makeAdaptiveLimiterConfig.call(void 0, "balanced", overrides)),
1116
+ aggressiveLimiter: (overrides = {}) => setLayer("adaptiveLimiter", _chunkLA2PAO7Jcjs.makeAdaptiveLimiterConfig.call(void 0, "aggressive", overrides)),
1099
1117
  noAdaptiveLimiter: () => setLayer("adaptiveLimiter", false),
1100
1118
  pool: (layer = {}) => setLayer("pool", layer),
1101
1119
  noPool: () => setLayer("pool", false),
@@ -1104,8 +1122,8 @@ function makeBuilder(config) {
1104
1122
  middleware,
1105
1123
  use: middleware,
1106
1124
  configure: (next) => makeBuilder(mergeConfig(config, next)),
1107
- build: () => _chunkUOKXJQAIcjs.makeDefaultHttpClient.call(void 0, freezeConfig(config)),
1108
- buildWire: () => _chunkUOKXJQAIcjs.makeDefaultHttpClient.call(void 0, freezeConfig(config)).wire
1125
+ build: () => _chunkLA2PAO7Jcjs.makeDefaultHttpClient.call(void 0, freezeConfig(config)),
1126
+ buildWire: () => _chunkLA2PAO7Jcjs.makeDefaultHttpClient.call(void 0, freezeConfig(config)).wire
1109
1127
  });
1110
1128
  }
1111
1129
  function httpClientBuilder(config = {}) {
@@ -1843,4 +1861,22 @@ function escapeRegExp(value) {
1843
1861
 
1844
1862
 
1845
1863
 
1846
- exports.AdaptiveLimiter = _chunkUOKXJQAIcjs.AdaptiveLimiter; exports.ConfigValidationError = _chunkKPOL2YEOcjs.ConfigValidationError; exports.DEFAULT_CACHE_RELEVANT_HEADERS = _chunkUOKXJQAIcjs.DEFAULT_CACHE_RELEVANT_HEADERS; exports.EmaComputer = _chunkUOKXJQAIcjs.EmaComputer; exports.HttpClientService = _chunkUOKXJQAIcjs.HttpClientService; exports.HttpConcurrencyPool = _chunkUOKXJQAIcjs.HttpConcurrencyPool; exports.HttpServer = HttpServer; exports.LRUCache = _chunkUOKXJQAIcjs.LRUCache; exports.LatencyWindow = _chunkUOKXJQAIcjs.LatencyWindow; exports.LifecycleStatsTracker = _chunkUOKXJQAIcjs.LifecycleStatsTracker; exports.PriorityQueue = _chunkUOKXJQAIcjs.PriorityQueue; exports.SEPARATOR = _chunkUOKXJQAIcjs.SEPARATOR; exports.SUPPORTED_ENCODINGS = _chunkUOKXJQAIcjs.SUPPORTED_ENCODINGS; exports.Schema = _chunkKPOL2YEOcjs.Schema; exports.SchemaValidationException = _chunkKPOL2YEOcjs.SchemaValidationException; exports.abortErrorForSignal = _chunkUOKXJQAIcjs.abortErrorForSignal; exports.adaptiveLimiterPresets = _chunkUOKXJQAIcjs.adaptiveLimiterPresets; exports.backoffDelayMs = _chunkUOKXJQAIcjs.backoffDelayMs; exports.clampPriority = _chunkUOKXJQAIcjs.clampPriority; exports.computeCacheKey = _chunkUOKXJQAIcjs.computeCacheKey; exports.computeGradient = _chunkUOKXJQAIcjs.computeGradient; exports.computeNewLimit = _chunkUOKXJQAIcjs.computeNewLimit; exports.decodeJsonBody = _chunkUOKXJQAIcjs.decodeJsonBody; exports.decodeJsonBodyEffect = _chunkUOKXJQAIcjs.decodeJsonBodyEffect; exports.decorate = _chunkUOKXJQAIcjs.decorate; exports.defaultHttpClientPreset = _chunkUOKXJQAIcjs.defaultHttpClientPreset; exports.defaultRetryOnError = _chunkUOKXJQAIcjs.defaultRetryOnError; exports.defaultRetryOnStatus = _chunkUOKXJQAIcjs.defaultRetryOnStatus; exports.defaultRetryableMethods = _chunkUOKXJQAIcjs.defaultRetryableMethods; exports.defineHttpPolicyPresets = _chunkUOKXJQAIcjs.defineHttpPolicyPresets; exports.detectPlatform = _chunkUOKXJQAIcjs.detectPlatform; exports.empty = empty; exports.encodeJsonBodyEffect = _chunkUOKXJQAIcjs.encodeJsonBodyEffect; exports.executeProbe = _chunkUOKXJQAIcjs.executeProbe; exports.formatConfigError = _chunkKPOL2YEOcjs.formatConfigError; exports.formatHttpError = _chunkUOKXJQAIcjs.formatHttpError; exports.formatIssues = _chunkKPOL2YEOcjs.formatIssues; exports.getHttpRequestPolicy = _chunkUOKXJQAIcjs.getHttpRequestPolicy; exports.headersOf = _chunkUOKXJQAIcjs.headersOf; exports.httpBuilder = httpBuilder; exports.httpClient = httpClient; exports.httpClientBuilder = httpClientBuilder; exports.httpClientStream = httpClientStream; exports.httpClientWithMeta = httpClientWithMeta; exports.httpErrorStatus = _chunkUOKXJQAIcjs.httpErrorStatus; exports.httpPolicy = _chunkUOKXJQAIcjs.httpPolicy; exports.httpRoute = httpRoute; exports.isAbortError = _chunkUOKXJQAIcjs.isAbortError; exports.isAbortHttpError = _chunkUOKXJQAIcjs.isAbortHttpError; exports.isCircuitBreakerOpen = _chunkUOKXJQAIcjs.isCircuitBreakerOpen; exports.isConfigValidationError = _chunkKPOL2YEOcjs.isConfigValidationError; exports.isExternalAbortError = _chunkUOKXJQAIcjs.isExternalAbortError; exports.isExternalTimeoutError = _chunkUOKXJQAIcjs.isExternalTimeoutError; exports.isFetchHttpError = _chunkUOKXJQAIcjs.isFetchHttpError; exports.isHttpError = _chunkUOKXJQAIcjs.isHttpError; exports.isKnownHttpError = _chunkUOKXJQAIcjs.isKnownHttpError; exports.isPromiseTransportDirect = _chunkUOKXJQAIcjs.isPromiseTransportDirect; exports.isRetryableHttpError = _chunkUOKXJQAIcjs.isRetryableHttpError; exports.isRetryableHttpStatus = _chunkUOKXJQAIcjs.isRetryableHttpStatus; exports.isSchema = _chunkKPOL2YEOcjs.isSchema; exports.isTaggedHttpError = _chunkUOKXJQAIcjs.isTaggedHttpError; exports.isTimeoutHttpError = _chunkUOKXJQAIcjs.isTimeoutHttpError; exports.isValidationError = _chunkUOKXJQAIcjs.isValidationError; exports.json = json; exports.linkAbortSignals = _chunkUOKXJQAIcjs.linkAbortSignals; exports.makeAdaptiveLimiterConfig = _chunkUOKXJQAIcjs.makeAdaptiveLimiterConfig; exports.makeBudgetSemaphore = _chunkUOKXJQAIcjs.makeBudgetSemaphore; exports.makeCompressionMiddleware = _chunkUOKXJQAIcjs.makeCompressionMiddleware; exports.makeConnectionStateMap = _chunkUOKXJQAIcjs.makeConnectionStateMap; exports.makeDefaultHttpClient = _chunkUOKXJQAIcjs.makeDefaultHttpClient; exports.makeDefaultHttpClientLayer = _chunkUOKXJQAIcjs.makeDefaultHttpClientLayer; exports.makeFetchStreamTransport = _chunkUOKXJQAIcjs.makeFetchStreamTransport; exports.makeFetchTransport = _chunkUOKXJQAIcjs.makeFetchTransport; exports.makeHttp = _chunkUOKXJQAIcjs.makeHttp; exports.makeHttpClient = _chunkUOKXJQAIcjs.makeHttpClient; exports.makeHttpClientBuilder = makeHttpClientBuilder; exports.makeHttpRouter = makeHttpRouter; exports.makeHttpServerResource = makeHttpServerResource; exports.makeHttpStream = _chunkUOKXJQAIcjs.makeHttpStream; exports.makeJsonParseValidationError = _chunkUOKXJQAIcjs.makeJsonParseValidationError; exports.makeLifecycleClient = _chunkUOKXJQAIcjs.makeLifecycleClient; exports.makeNodeHttpProxyClient = makeNodeHttpProxyClient; exports.makeNodeHttpServer = makeNodeHttpServer; exports.makeNodeHttpServerResource = makeNodeHttpServerResource; exports.makeNodeHttpTransport = makeNodeHttpTransport; exports.makePrewarmManager = _chunkUOKXJQAIcjs.makePrewarmManager; exports.makePromiseHttpTransport = _chunkUOKXJQAIcjs.makePromiseHttpTransport; exports.makeRequestCompressionMiddleware = _chunkUOKXJQAIcjs.makeRequestCompressionMiddleware; exports.makeResponseCompressionMiddleware = _chunkUOKXJQAIcjs.makeResponseCompressionMiddleware; exports.makeRuntimeHealthRoute = makeRuntimeHealthRoute; exports.makeRuntimeReadinessRoute = makeRuntimeReadinessRoute; exports.makeSchemaIssue = _chunkKPOL2YEOcjs.makeSchemaIssue; exports.matchHttpError = _chunkUOKXJQAIcjs.matchHttpError; exports.nodeHttpServerResource = nodeHttpServerResource; exports.noopSignal = _chunkUOKXJQAIcjs.noopSignal; exports.normalizeHeadersInit = _chunkUOKXJQAIcjs.normalizeHeadersInit; exports.normalizeHttpError = _chunkUOKXJQAIcjs.normalizeHttpError; exports.normalizeHttpHeaders = _chunkUOKXJQAIcjs.normalizeHttpHeaders; exports.normalizeRetryBudget = _chunkUOKXJQAIcjs.normalizeRetryBudget; exports.parseCacheKey = _chunkUOKXJQAIcjs.parseCacheKey; exports.parseConfig = _chunkKPOL2YEOcjs.parseConfig; exports.prewarmConnections = prewarmConnections; exports.prewarmHttpConnections = prewarmHttpConnections; exports.promiseHttpTransport = _chunkUOKXJQAIcjs.promiseHttpTransport; exports.resolveConfig = _chunkUOKXJQAIcjs.resolveConfig; exports.resolveHttpPoolKey = _chunkUOKXJQAIcjs.resolveHttpPoolKey; exports.resolveHttpRequestPolicyPresets = _chunkUOKXJQAIcjs.resolveHttpRequestPolicyPresets; exports.retryAfterMs = _chunkUOKXJQAIcjs.retryAfterMs; exports.route = route; exports.runtimeHealthRoute = runtimeHealthRoute; exports.runtimeReadinessRoute = runtimeReadinessRoute; exports.s = _chunkKPOL2YEOcjs.s; exports.schema = _chunkKPOL2YEOcjs.schema; exports.text = text; exports.toHttpError = _chunkUOKXJQAIcjs.toHttpError; exports.validateConfig = _chunkUOKXJQAIcjs.validateConfig; exports.validateFetchAvailable = _chunkUOKXJQAIcjs.validateFetchAvailable; exports.validateOrigin = _chunkUOKXJQAIcjs.validateOrigin; exports.validateValue = _chunkKPOL2YEOcjs.validateValue; exports.validatedJson = _chunkUOKXJQAIcjs.validatedJson; exports.validatedJsonResponse = _chunkUOKXJQAIcjs.validatedJsonResponse; exports.withAuth = withAuth; exports.withBatch = _chunkUOKXJQAIcjs.withBatch; exports.withCache = _chunkUOKXJQAIcjs.withCache; exports.withCircuitBreaker = withCircuitBreaker; exports.withConnectionPrewarming = withConnectionPrewarming; exports.withDedup = _chunkUOKXJQAIcjs.withDedup; exports.withHttpPolicyPresets = _chunkUOKXJQAIcjs.withHttpPolicyPresets; exports.withHttpRequestPolicy = _chunkUOKXJQAIcjs.withHttpRequestPolicy; exports.withLogging = withLogging; exports.withMiddleware = _chunkUOKXJQAIcjs.withMiddleware; exports.withPriority = _chunkUOKXJQAIcjs.withPriority; exports.withRequestBatching = withRequestBatching; exports.withResponseHeader = withResponseHeader; exports.withResponseTransform = withResponseTransform; exports.withRetry = _chunkUOKXJQAIcjs.withRetry; exports.withRetryStream = _chunkUOKXJQAIcjs.withRetryStream; exports.withTracing = withTracing;
1864
+
1865
+
1866
+
1867
+
1868
+
1869
+
1870
+
1871
+
1872
+
1873
+
1874
+
1875
+
1876
+
1877
+
1878
+
1879
+
1880
+
1881
+
1882
+ exports.AdaptiveLimiter = _chunkLA2PAO7Jcjs.AdaptiveLimiter; exports.ConfigValidationError = _chunkKPOL2YEOcjs.ConfigValidationError; exports.DEFAULT_CACHE_RELEVANT_HEADERS = _chunkLA2PAO7Jcjs.DEFAULT_CACHE_RELEVANT_HEADERS; exports.EmaComputer = _chunkLA2PAO7Jcjs.EmaComputer; exports.HttpClientService = _chunkLA2PAO7Jcjs.HttpClientService; exports.HttpConcurrencyPool = _chunkLA2PAO7Jcjs.HttpConcurrencyPool; exports.HttpServer = HttpServer; exports.LRUCache = _chunkLA2PAO7Jcjs.LRUCache; exports.LatencyWindow = _chunkLA2PAO7Jcjs.LatencyWindow; exports.LifecycleStatsTracker = _chunkLA2PAO7Jcjs.LifecycleStatsTracker; exports.PriorityQueue = _chunkLA2PAO7Jcjs.PriorityQueue; exports.SEPARATOR = _chunkLA2PAO7Jcjs.SEPARATOR; exports.SUPPORTED_ENCODINGS = _chunkLA2PAO7Jcjs.SUPPORTED_ENCODINGS; exports.Schema = _chunkKPOL2YEOcjs.Schema; exports.SchemaValidationException = _chunkKPOL2YEOcjs.SchemaValidationException; exports.abortErrorForSignal = _chunkLA2PAO7Jcjs.abortErrorForSignal; exports.adaptiveLimiterPresets = _chunkLA2PAO7Jcjs.adaptiveLimiterPresets; exports.backoffDelayMs = _chunkLA2PAO7Jcjs.backoffDelayMs; exports.clampPriority = _chunkLA2PAO7Jcjs.clampPriority; exports.computeCacheKey = _chunkLA2PAO7Jcjs.computeCacheKey; exports.computeGradient = _chunkLA2PAO7Jcjs.computeGradient; exports.computeNewLimit = _chunkLA2PAO7Jcjs.computeNewLimit; exports.decodeJsonBody = _chunkLA2PAO7Jcjs.decodeJsonBody; exports.decodeJsonBodyEffect = _chunkLA2PAO7Jcjs.decodeJsonBodyEffect; exports.decorate = _chunkLA2PAO7Jcjs.decorate; exports.decorateStream = _chunkLA2PAO7Jcjs.decorateStream; exports.defaultHttpClientPreset = _chunkLA2PAO7Jcjs.defaultHttpClientPreset; exports.defaultRetryOnError = _chunkLA2PAO7Jcjs.defaultRetryOnError; exports.defaultRetryOnStatus = _chunkLA2PAO7Jcjs.defaultRetryOnStatus; exports.defaultRetryableMethods = _chunkLA2PAO7Jcjs.defaultRetryableMethods; exports.defineHttpPolicyPresets = _chunkLA2PAO7Jcjs.defineHttpPolicyPresets; exports.detectPlatform = _chunkLA2PAO7Jcjs.detectPlatform; exports.empty = empty; exports.encodeJsonBodyEffect = _chunkLA2PAO7Jcjs.encodeJsonBodyEffect; exports.executeProbe = _chunkLA2PAO7Jcjs.executeProbe; exports.fetchLabel = _chunkLA2PAO7Jcjs.fetchLabel; exports.formatConfigError = _chunkKPOL2YEOcjs.formatConfigError; exports.formatHttpError = _chunkLA2PAO7Jcjs.formatHttpError; exports.formatIssues = _chunkKPOL2YEOcjs.formatIssues; exports.getHttpRequestPolicy = _chunkLA2PAO7Jcjs.getHttpRequestPolicy; exports.headersOf = _chunkLA2PAO7Jcjs.headersOf; exports.httpBuilder = httpBuilder; exports.httpClient = httpClient; exports.httpClientBuilder = httpClientBuilder; exports.httpClientStream = httpClientStream; exports.httpClientWithMeta = httpClientWithMeta; exports.httpErrorStatus = _chunkLA2PAO7Jcjs.httpErrorStatus; exports.httpPolicy = _chunkLA2PAO7Jcjs.httpPolicy; exports.httpRoute = httpRoute; exports.isAbortError = _chunkLA2PAO7Jcjs.isAbortError; exports.isAbortHttpError = _chunkLA2PAO7Jcjs.isAbortHttpError; exports.isCircuitBreakerOpen = _chunkLA2PAO7Jcjs.isCircuitBreakerOpen; exports.isConfigValidationError = _chunkKPOL2YEOcjs.isConfigValidationError; exports.isExternalAbortError = _chunkLA2PAO7Jcjs.isExternalAbortError; exports.isExternalTimeoutError = _chunkLA2PAO7Jcjs.isExternalTimeoutError; exports.isFetchHttpError = _chunkLA2PAO7Jcjs.isFetchHttpError; exports.isHttpError = _chunkLA2PAO7Jcjs.isHttpError; exports.isKnownHttpError = _chunkLA2PAO7Jcjs.isKnownHttpError; exports.isPromiseTransportDirect = _chunkLA2PAO7Jcjs.isPromiseTransportDirect; exports.isRetryableHttpError = _chunkLA2PAO7Jcjs.isRetryableHttpError; exports.isRetryableHttpStatus = _chunkLA2PAO7Jcjs.isRetryableHttpStatus; exports.isSchema = _chunkKPOL2YEOcjs.isSchema; exports.isTaggedHttpError = _chunkLA2PAO7Jcjs.isTaggedHttpError; exports.isTimeoutHttpError = _chunkLA2PAO7Jcjs.isTimeoutHttpError; exports.isValidationError = _chunkLA2PAO7Jcjs.isValidationError; exports.json = json; exports.linkAbortSignals = _chunkLA2PAO7Jcjs.linkAbortSignals; exports.makeAdaptiveLimiter = _chunkLA2PAO7Jcjs.makeAdaptiveLimiter; exports.makeAdaptiveLimiterConfig = _chunkLA2PAO7Jcjs.makeAdaptiveLimiterConfig; exports.makeBareMetalHttp = _chunkLA2PAO7Jcjs.makeBareMetalHttp; exports.makeBareMetalHttpStream = _chunkLA2PAO7Jcjs.makeBareMetalHttpStream; exports.makeBudgetSemaphore = _chunkLA2PAO7Jcjs.makeBudgetSemaphore; exports.makeCompressionMiddleware = _chunkLA2PAO7Jcjs.makeCompressionMiddleware; exports.makeConnectionStateMap = _chunkLA2PAO7Jcjs.makeConnectionStateMap; exports.makeDefaultHttpClient = _chunkLA2PAO7Jcjs.makeDefaultHttpClient; exports.makeDefaultHttpClientLayer = _chunkLA2PAO7Jcjs.makeDefaultHttpClientLayer; exports.makeFetchStreamTransport = _chunkLA2PAO7Jcjs.makeFetchStreamTransport; exports.makeFetchTransport = _chunkLA2PAO7Jcjs.makeFetchTransport; exports.makeHttp = _chunkLA2PAO7Jcjs.makeHttp; exports.makeHttpClient = _chunkLA2PAO7Jcjs.makeHttpClient; exports.makeHttpClientBuilder = makeHttpClientBuilder; exports.makeHttpRouter = makeHttpRouter; exports.makeHttpServerResource = makeHttpServerResource; exports.makeHttpStats = _chunkLA2PAO7Jcjs.makeHttpStats; exports.makeHttpStream = _chunkLA2PAO7Jcjs.makeHttpStream; exports.makeJsonParseValidationError = _chunkLA2PAO7Jcjs.makeJsonParseValidationError; exports.makeLifecycleClient = _chunkLA2PAO7Jcjs.makeLifecycleClient; exports.makeNodeHttpProxyClient = makeNodeHttpProxyClient; exports.makeNodeHttpServer = makeNodeHttpServer; exports.makeNodeHttpServerResource = makeNodeHttpServerResource; exports.makeNodeHttpTransport = makeNodeHttpTransport; exports.makePool = _chunkLA2PAO7Jcjs.makePool; exports.makePrewarmManager = _chunkLA2PAO7Jcjs.makePrewarmManager; exports.makePromiseHttpTransport = _chunkLA2PAO7Jcjs.makePromiseHttpTransport; exports.makeRequestCompressionMiddleware = _chunkLA2PAO7Jcjs.makeRequestCompressionMiddleware; exports.makeResponseCompressionMiddleware = _chunkLA2PAO7Jcjs.makeResponseCompressionMiddleware; exports.makeRuntimeHealthRoute = makeRuntimeHealthRoute; exports.makeRuntimeReadinessRoute = makeRuntimeReadinessRoute; exports.makeSchemaIssue = _chunkKPOL2YEOcjs.makeSchemaIssue; exports.matchHttpError = _chunkLA2PAO7Jcjs.matchHttpError; exports.nodeHttpServerResource = nodeHttpServerResource; exports.noopSignal = _chunkLA2PAO7Jcjs.noopSignal; exports.normalizeHeadersInit = _chunkLA2PAO7Jcjs.normalizeHeadersInit; exports.normalizeHttpError = _chunkLA2PAO7Jcjs.normalizeHttpError; exports.normalizeHttpHeaders = _chunkLA2PAO7Jcjs.normalizeHttpHeaders; exports.normalizeRequest = _chunkLA2PAO7Jcjs.normalizeRequest; exports.normalizeRetryBudget = _chunkLA2PAO7Jcjs.normalizeRetryBudget; exports.parseCacheKey = _chunkLA2PAO7Jcjs.parseCacheKey; exports.parseConfig = _chunkKPOL2YEOcjs.parseConfig; exports.prewarmConnections = prewarmConnections; exports.prewarmHttpConnections = prewarmHttpConnections; exports.promiseHttpTransport = _chunkLA2PAO7Jcjs.promiseHttpTransport; exports.releaseFailure = _chunkLA2PAO7Jcjs.releaseFailure; exports.releaseSuccess = _chunkLA2PAO7Jcjs.releaseSuccess; exports.requestPriority = _chunkLA2PAO7Jcjs.requestPriority; exports.resolveConfig = _chunkLA2PAO7Jcjs.resolveConfig; exports.resolveHttpPoolKey = _chunkLA2PAO7Jcjs.resolveHttpPoolKey; exports.resolveHttpRequestPolicyPresets = _chunkLA2PAO7Jcjs.resolveHttpRequestPolicyPresets; exports.resolvePositiveTimeout = _chunkLA2PAO7Jcjs.resolvePositiveTimeout; exports.resolveRequestUrl = _chunkLA2PAO7Jcjs.resolveRequestUrl; exports.retryAfterMs = _chunkLA2PAO7Jcjs.retryAfterMs; exports.route = route; exports.runDirectTransport = _chunkLA2PAO7Jcjs.runDirectTransport; exports.runPoolTransport = _chunkLA2PAO7Jcjs.runPoolTransport; exports.runTransportEffect = _chunkLA2PAO7Jcjs.runTransportEffect; exports.runtimeHealthRoute = runtimeHealthRoute; exports.runtimeReadinessRoute = runtimeReadinessRoute; exports.s = _chunkKPOL2YEOcjs.s; exports.schema = _chunkKPOL2YEOcjs.schema; exports.text = text; exports.timeoutReason = _chunkLA2PAO7Jcjs.timeoutReason; exports.toHttpError = _chunkLA2PAO7Jcjs.toHttpError; exports.validateBareMetalConfig = _chunkLA2PAO7Jcjs.validateBareMetalConfig; exports.validateConfig = _chunkLA2PAO7Jcjs.validateConfig; exports.validateFetchAvailable = _chunkLA2PAO7Jcjs.validateFetchAvailable; exports.validateOrigin = _chunkLA2PAO7Jcjs.validateOrigin; exports.validateValue = _chunkKPOL2YEOcjs.validateValue; exports.validatedJson = _chunkLA2PAO7Jcjs.validatedJson; exports.validatedJsonResponse = _chunkLA2PAO7Jcjs.validatedJsonResponse; exports.withAuth = withAuth; exports.withBatch = _chunkLA2PAO7Jcjs.withBatch; exports.withCache = _chunkLA2PAO7Jcjs.withCache; exports.withCircuitBreaker = withCircuitBreaker; exports.withConnectionPrewarming = withConnectionPrewarming; exports.withDedup = _chunkLA2PAO7Jcjs.withDedup; exports.withHttpPolicyPresets = _chunkLA2PAO7Jcjs.withHttpPolicyPresets; exports.withHttpRequestPolicy = _chunkLA2PAO7Jcjs.withHttpRequestPolicy; exports.withLogging = withLogging; exports.withMiddleware = _chunkLA2PAO7Jcjs.withMiddleware; exports.withPriority = _chunkLA2PAO7Jcjs.withPriority; exports.withRequestBatching = withRequestBatching; exports.withResponseHeader = withResponseHeader; exports.withResponseTransform = withResponseTransform; exports.withRetry = _chunkLA2PAO7Jcjs.withRetry; exports.withRetryStream = _chunkLA2PAO7Jcjs.withRetryStream; exports.withTracing = withTracing;
@@ -1,12 +1,12 @@
1
- import { C as CompressionConfig, f as CompressionMiddlewareResult, R as RequestCompressionConfig, g as RequestCompressionMiddlewareResult, e as DefaultHttpClientConfig, h as HttpTransport, D as DefaultHttpClient, i as AdaptiveLimiter, H as HttpRequest, d as HttpMiddleware, L as LifecycleClientConfig, j as LifecycleClient, b as HttpWireResponse, c as HttpError, k as LifecycleEvent, l as HttpClientStats, m as LifecycleEventType, n as LifecycleStats, P as PrewarmResult, o as PrewarmStatusSnapshot, p as PrewarmConfig, q as HttpClientFn, r as PrewarmOriginState, s as HttpMethod, t as DefaultHttpClientPreset, u as DedupConfig$1, B as BatchConfig, v as CacheConfig$1, w as PriorityConfig$1, x as RetryPolicy, y as PrewarmLifecycleConfig, z as AdaptiveLimiterConfig, E as AdaptiveLimiterPreset, F as HttpPoolConfig } from '../defaultClient-hyVSNzSJ.js';
2
- export { G as AdaptiveAcquireOptions, I as AdaptiveBaselineStrategy, J as AdaptiveHeadroomContext, K as AdaptiveHeadroomMode, M as AdaptiveHeadroomStrategy, N as AdaptiveLease, O as AdaptiveLimiterDiagnostics, Q as AdaptiveLimiterKeySnapshot, A as AdaptiveLimiterStats, S as AdaptiveQueueLoadShedding, T as AdaptiveQueueStrategy, U as AdaptiveReleaseInfo, V as BatchFunction, W as CachePolicyResult, X as CompressionStats, Y as DecompressResult, Z as Decompressor, _ as DefaultGetJson, $ as DefaultHttpClientFeatures, a0 as DefaultPostJson, a1 as Dx, a2 as HttpBody, a as HttpClient, a3 as HttpClientStream, a4 as HttpClientStreamFn, a5 as HttpConcurrencyPool, a6 as HttpErrorHandlers, a7 as HttpInit, a8 as HttpJsonInit, a9 as HttpMeta, aa as HttpPolicyPreset, ab as HttpPolicyPresets, ac as HttpPoolKeyResolver, ad as HttpPoolKeyStats, ae as HttpPoolLease, af as HttpPoolStats, ag as HttpPostJsonBodyInit, ah as HttpPostJsonInit, ai as HttpPostJsonSchemaBodyInit, aj as HttpRequestPolicy, ak as HttpRequestPolicyRef, al as HttpRequestRetryOverride, am as HttpResponse, an as HttpResponseWithMeta, ao as HttpRetryScheduleInput, ap as HttpStreamTransport, aq as HttpTransportContext, ar as HttpTransportTiming, as as HttpWireResponseStream, at as HttpWireWithMeta, au as JsonDecodeResult, av as KnownHttpError, aw as KnownHttpErrorTag, ax as LifecycleRequestOptions, ay as LimitChangeEvent, az as MakeHttpConfig, aA as PerRequestRetryOverride, aB as PrewarmEvent, aC as PrewarmEventType, aD as PrewarmOriginStatus, aE as PrewarmResultStatus, aF as PromiseHttpTransportBodyBuilder, aG as PromiseHttpTransportBodySelector, aH as PromiseHttpTransportConfig, aI as PromiseHttpTransportConfigWithSignal, aJ as PromiseHttpTransportFluentResponseBuilder, aK as PromiseHttpTransportRequestConfigBuilder, aL as PromiseHttpTransportRequestConfigContext, aM as PromiseHttpTransportRequestConfigMapper, aN as PromiseHttpTransportResponse, aO as PromiseHttpTransportResponseInfo, aP as PromiseHttpTransportResponseInfoMapper, aQ as PromiseHttpTransportStartBuilder, aR as RequestCompressionStats, aS as ResolveHttpRequestPolicyOptions, aT as ResolvedConfig, aU as RetryEvent, aV as RetryScheduleInput, aW as RetryableHttpErrorOptions, aX as SUPPORTED_ENCODINGS, aY as SupportedEncoding, aZ as ToHttpErrorOptions, a_ as ValidationError, a$ as abortErrorForSignal, b0 as adaptiveLimiterPresets, b1 as backoffDelayMs, b2 as decodeJsonBody, b3 as decodeJsonBodyEffect, b4 as decorate, b5 as defaultHttpClientPreset, b6 as defaultRetryOnError, b7 as defaultRetryOnStatus, b8 as defaultRetryableMethods, b9 as defineHttpPolicyPresets, ba as encodeJsonBodyEffect, bb as formatHttpError, bc as getHttpRequestPolicy, bd as headersOf, be as httpClient, bf as httpClientStream, bg as httpClientWithMeta, bh as httpErrorStatus, bi as httpPolicy, bj as isAbortError, bk as isAbortHttpError, bl as isCircuitBreakerOpen, bm as isExternalAbortError, bn as isExternalTimeoutError, bo as isFetchHttpError, bp as isHttpError, bq as isKnownHttpError, br as isPromiseTransportDirect, bs as isRetryableHttpError, bt as isRetryableHttpStatus, bu as isTaggedHttpError, bv as isTimeoutHttpError, bw as isValidationError, bx as linkAbortSignals, by as makeAdaptiveLimiterConfig, bz as makeDefaultHttpClient, bA as makeFetchStreamTransport, bB as makeFetchTransport, bC as makeHttp, bD as makeHttpStream, bE as makeJsonParseValidationError, bF as makePromiseHttpTransport, bG as matchHttpError, bH as noopSignal, bI as normalizeHeadersInit, bJ as normalizeHttpError, bK as normalizeHttpHeaders, bL as normalizeRetryBudget, bM as promiseHttpTransport, bN as resolveConfig, bO as resolveHttpPoolKey, bP as resolveHttpRequestPolicyPresets, bQ as retryAfterMs, bR as toHttpError, bS as validateConfig, bT as validatedJson, bU as validatedJsonResponse, bV as withBatch, bW as withHttpPolicyPresets, bX as withHttpRequestPolicy, bY as withMiddleware, bZ as withRetry, b_ as withRetryStream } from '../defaultClient-hyVSNzSJ.js';
1
+ import { C as CompressionConfig, f as CompressionMiddlewareResult, R as RequestCompressionConfig, g as RequestCompressionMiddlewareResult, e as DefaultHttpClientConfig, h as HttpTransport, D as DefaultHttpClient, i as AdaptiveLimiter, H as HttpRequest, d as HttpMiddleware, L as LifecycleClientConfig, j as LifecycleClient, b as HttpWireResponse, c as HttpError, k as LifecycleEvent, l as HttpClientStats, m as LifecycleEventType, n as LifecycleStats, P as PrewarmResult, o as PrewarmStatusSnapshot, p as PrewarmConfig, q as HttpClientFn, r as PrewarmOriginState, s as HttpMethod, t as HttpStreamTransport, u as HttpPoolConfig, v as AdaptiveLimiterConfig, a as HttpClient, w as HttpClientStream, x as DefaultHttpClientPreset, y as DedupConfig$1, B as BatchConfig, z as CacheConfig$1, E as PriorityConfig$1, F as RetryPolicy, G as PrewarmLifecycleConfig, I as AdaptiveLimiterPreset } from '../defaultClient-DLOa3gdw.js';
2
+ export { J as AdaptiveAcquireOptions, K as AdaptiveBaselineStrategy, M as AdaptiveHeadroomContext, N as AdaptiveHeadroomMode, O as AdaptiveHeadroomStrategy, Q as AdaptiveLease, S as AdaptiveLimiterDiagnostics, T as AdaptiveLimiterKeySnapshot, A as AdaptiveLimiterStats, U as AdaptiveQueueLoadShedding, V as AdaptiveQueueStrategy, W as AdaptiveReleaseInfo, X as BatchFunction, Y as CachePolicyResult, Z as CompressionStats, _ as DecompressResult, $ as Decompressor, a0 as DefaultGetJson, a1 as DefaultHttpClientFeatures, a2 as DefaultPostJson, a3 as Dx, a4 as HttpBody, a5 as HttpClientStreamFn, a6 as HttpConcurrencyPool, a7 as HttpErrorHandlers, a8 as HttpInit, a9 as HttpJsonInit, aa as HttpMeta, ab as HttpPolicyPreset, ac as HttpPolicyPresets, ad as HttpPoolKeyResolver, ae as HttpPoolKeyStats, af as HttpPoolLease, ag as HttpPoolStats, ah as HttpPostJsonBodyInit, ai as HttpPostJsonInit, aj as HttpPostJsonSchemaBodyInit, ak as HttpRequestPolicy, al as HttpRequestPolicyRef, am as HttpRequestRetryOverride, an as HttpResponse, ao as HttpResponseWithMeta, ap as HttpRetryScheduleInput, aq as HttpTransportContext, ar as HttpTransportTiming, as as HttpWireResponseStream, at as HttpWireWithMeta, au as JsonDecodeResult, av as KnownHttpError, aw as KnownHttpErrorTag, ax as LifecycleRequestOptions, ay as LimitChangeEvent, az as MakeHttpConfig, aA as PerRequestRetryOverride, aB as PrewarmEvent, aC as PrewarmEventType, aD as PrewarmOriginStatus, aE as PrewarmResultStatus, aF as PromiseHttpTransportBodyBuilder, aG as PromiseHttpTransportBodySelector, aH as PromiseHttpTransportConfig, aI as PromiseHttpTransportConfigWithSignal, aJ as PromiseHttpTransportFluentResponseBuilder, aK as PromiseHttpTransportRequestConfigBuilder, aL as PromiseHttpTransportRequestConfigContext, aM as PromiseHttpTransportRequestConfigMapper, aN as PromiseHttpTransportResponse, aO as PromiseHttpTransportResponseInfo, aP as PromiseHttpTransportResponseInfoMapper, aQ as PromiseHttpTransportStartBuilder, aR as RequestCompressionStats, aS as ResolveHttpRequestPolicyOptions, aT as ResolvedConfig, aU as RetryEvent, aV as RetryScheduleInput, aW as RetryableHttpErrorOptions, aX as SUPPORTED_ENCODINGS, aY as SupportedEncoding, aZ as ToHttpErrorOptions, a_ as ValidationError, a$ as abortErrorForSignal, b0 as adaptiveLimiterPresets, b1 as backoffDelayMs, b2 as decodeJsonBody, b3 as decodeJsonBodyEffect, b4 as decorate, b5 as decorateStream, b6 as defaultHttpClientPreset, b7 as defaultRetryOnError, b8 as defaultRetryOnStatus, b9 as defaultRetryableMethods, ba as defineHttpPolicyPresets, bb as encodeJsonBodyEffect, bc as fetchLabel, bd as formatHttpError, be as getHttpRequestPolicy, bf as headersOf, bg as httpClient, bh as httpClientStream, bi as httpClientWithMeta, bj as httpErrorStatus, bk as httpPolicy, bl as isAbortError, bm as isAbortHttpError, bn as isCircuitBreakerOpen, bo as isExternalAbortError, bp as isExternalTimeoutError, bq as isFetchHttpError, br as isHttpError, bs as isKnownHttpError, bt as isPromiseTransportDirect, bu as isRetryableHttpError, bv as isRetryableHttpStatus, bw as isTaggedHttpError, bx as isTimeoutHttpError, by as isValidationError, bz as linkAbortSignals, bA as makeAdaptiveLimiter, bB as makeAdaptiveLimiterConfig, bC as makeDefaultHttpClient, bD as makeFetchStreamTransport, bE as makeFetchTransport, bF as makeHttp, bG as makeHttpStats, bH as makeHttpStream, bI as makeJsonParseValidationError, bJ as makePool, bK as makePromiseHttpTransport, bL as matchHttpError, bM as noopSignal, bN as normalizeHeadersInit, bO as normalizeHttpError, bP as normalizeHttpHeaders, bQ as normalizeRequest, bR as normalizeRetryBudget, bS as promiseHttpTransport, bT as releaseFailure, bU as releaseSuccess, bV as requestPriority, bW as resolveConfig, bX as resolveHttpPoolKey, bY as resolveHttpRequestPolicyPresets, bZ as resolvePositiveTimeout, b_ as resolveRequestUrl, b$ as retryAfterMs, c0 as runDirectTransport, c1 as runPoolTransport, c2 as runTransportEffect, c3 as timeoutReason, c4 as toHttpError, c5 as validateConfig, c6 as validatedJson, c7 as validatedJsonResponse, c8 as withBatch, c9 as withHttpPolicyPresets, ca as withHttpRequestPolicy, cb as withMiddleware, cc as withRetry, cd as withRetryStream } from '../defaultClient-DLOa3gdw.js';
3
3
  import { Agent, Server } from 'node:http';
4
4
  import { Agent as Agent$1 } from 'node:https';
5
5
  import { c as CircuitBreakerConfig, l as Schedule, a as LayerContext, S as ServiceTag, L as Layer } from '../layer-CsNGeVee.js';
6
6
  import { T as Tracer, R as Resource } from '../tracing-DIAUf2x8.js';
7
7
  import { A as Async, b as Runtime, a as RuntimeOptions } from '../effect-DbEMiMvv.js';
8
8
  import { AddressInfo } from 'node:net';
9
- import { O as Observability, q as HttpServerObservabilityOptions, $ as RuntimeHealthOptions } from '../server-BKKuzAW9.js';
9
+ import { O as Observability, q as HttpServerObservabilityOptions, $ as RuntimeHealthOptions } from '../server-BGXOabjo.js';
10
10
  import { AnyJsonSchemaLike, InferJsonSchema } from '../schema/index.js';
11
11
  export { AnySchema, ConfigValidationError, InferObject, InferSchema, JsonSchemaLike, JsonValidator, JsonValidatorResult, NumberSchemaOptions, ObjectSchemaOptions, Schema, SchemaIssue, SchemaPathPart, SchemaResult, SchemaShape, SchemaValidationException, StringSchemaOptions, formatConfigError, formatIssues, isConfigValidationError, isSchema, makeSchemaIssue, parseConfig, s, schema, validateValue } from '../schema/index.js';
12
12
  import '../stream-B8c_UKZq.js';
@@ -1417,6 +1417,69 @@ declare function prewarmConnections(config?: ConnectionPrewarmConfig): Async<unk
1417
1417
  declare const prewarmHttpConnections: typeof prewarmConnections;
1418
1418
  declare function withConnectionPrewarming(config?: ConnectionPrewarmingMiddlewareConfig): HttpMiddleware;
1419
1419
 
1420
+ /**
1421
+ * Event emitted by the bare-metal client. Intentionally minimal — only
1422
+ * construction-time warnings and lifecycle signals are emitted.
1423
+ */
1424
+ type BareMetalHttpEvent = {
1425
+ readonly type: "warning";
1426
+ readonly message: string;
1427
+ };
1428
+ /**
1429
+ * Configuration for the bare-metal HTTP client factories.
1430
+ *
1431
+ * Contains only wire-level options — no lifecycle/middleware config.
1432
+ * All fields are optional; sensible defaults (fetch transport, no pool,
1433
+ * no timeout) are applied when omitted.
1434
+ */
1435
+ interface BareMetalHttpConfig {
1436
+ /** Base URL prepended to relative request paths. */
1437
+ readonly baseUrl?: string;
1438
+ /** Default headers merged under per-request headers. */
1439
+ readonly headers?: Record<string, string>;
1440
+ /** Request timeout in milliseconds (≥ 1). Disabled when omitted. */
1441
+ readonly timeoutMs?: number;
1442
+ /** Effect-based transport. Defaults to fetch when omitted. */
1443
+ readonly transport?: HttpTransport;
1444
+ /** Effect-based streaming transport. Defaults to fetch streaming when omitted. */
1445
+ readonly streamTransport?: HttpStreamTransport;
1446
+ /** Connection pool config. Set `false` to explicitly disable. */
1447
+ readonly pool?: false | HttpPoolConfig;
1448
+ /** Adaptive concurrency limiter config. Set `false` to explicitly disable. */
1449
+ readonly adaptiveLimiter?: false | AdaptiveLimiterConfig;
1450
+ /** Optional event callback for construction-time warnings. */
1451
+ readonly onEvent?: (event: BareMetalHttpEvent) => void;
1452
+ }
1453
+ /**
1454
+ * Validates a `BareMetalHttpConfig` object at construction time.
1455
+ * Throws `ConfigValidationError` with field-path issues on invalid input.
1456
+ */
1457
+ declare function validateBareMetalConfig(config: BareMetalHttpConfig): void;
1458
+ /**
1459
+ * Creates a bare-metal HTTP client with zero middleware overhead.
1460
+ *
1461
+ * The returned client delegates directly to `runDirectTransport` or
1462
+ * `runPoolTransport` — no lifecycle stack (retry, dedup, cache, batch,
1463
+ * priority scheduling), no compression, no prewarm.
1464
+ *
1465
+ * Typed errors, cancellation, pool/adaptive-limiter, and stats are preserved.
1466
+ */
1467
+ declare function makeBareMetalHttp(cfg?: BareMetalHttpConfig): HttpClient;
1468
+ /**
1469
+ * Creates a bare-metal streaming HTTP client with zero middleware overhead.
1470
+ *
1471
+ * Mirrors `makeBareMetalHttp` but uses `streamTransport` and returns an
1472
+ * `HttpClientStream` conforming to `HttpClientStreamFn`.
1473
+ *
1474
+ * Pool leases are acquired before the stream transport and released upon
1475
+ * receiving response headers — body stream consumption is independent of
1476
+ * pool capacity.
1477
+ *
1478
+ * No lifecycle stack (retry, dedup, cache, batch, priority scheduling),
1479
+ * no compression, no prewarm.
1480
+ */
1481
+ declare function makeBareMetalHttpStream(cfg?: BareMetalHttpConfig): HttpClientStream;
1482
+
1420
1483
  type HttpClientBuilder = {
1421
1484
  readonly config: () => DefaultHttpClientConfig;
1422
1485
  readonly baseUrl: (baseUrl: string) => HttpClientBuilder;
@@ -1616,4 +1679,4 @@ type DefaultHttpClientLayerOptions = {
1616
1679
  };
1617
1680
  declare function makeDefaultHttpClientLayer(config?: DefaultHttpClientLayerConfig, options?: DefaultHttpClientLayerOptions): Layer<LayerContext, unknown, LayerContext>;
1618
1681
 
1619
- export { AdaptiveLimiter, AdaptiveLimiterConfig, AdaptiveLimiterPreset, AnyJsonSchemaLike, BatchConfig, type BudgetSemaphore, CacheConfig$1 as CacheConfig, type CacheKeyComponents, CompressionConfig, CompressionMiddlewareResult, type ConnectionPrewarmAttempt, type ConnectionPrewarmConfig, type ConnectionPrewarmEvent, type ConnectionPrewarmResult, type ConnectionPrewarmingMiddlewareConfig, type ConnectionStateMap, DEFAULT_CACHE_RELEVANT_HEADERS, DedupConfig$1 as DedupConfig, DefaultHttpClient, DefaultHttpClientConfig, type DefaultHttpClientLayerConfig, type DefaultHttpClientLayerOptions, DefaultHttpClientPreset, EmaComputer, type HttpCircuitBreakerConfig, type HttpClientBuilder, HttpClientFn, HttpClientService, HttpClientStats, HttpError, HttpMethod, HttpMiddleware, HttpPoolConfig, HttpRequest, type HttpRouteMatch, type HttpRouteOptions, type HttpRouteSchemas, type HttpRouter, type HttpRouterOptions, type HttpRuntimeHealthRouteOptions, HttpServer, type HttpServerBody, type HttpServerContext, type HttpServerHandler, type HttpServerHeaders, type HttpServerMethod, type HttpServerMiddleware, type HttpServerParams, type HttpServerQuery, type HttpServerRequest, type HttpServerResponse, type HttpServerRoute, HttpTransport, HttpWireResponse, InferJsonSchema, type InferServerPart, LRUCache, type LRUCacheConfig, LatencyWindow, LifecycleClient, LifecycleClientConfig, LifecycleEvent, LifecycleEventType, LifecycleStats, LifecycleStatsTracker, type LogEvent, type NodeHttpProxyClientConfig, type NodeHttpServerError, type NodeHttpServerHandle, type NodeHttpServerOptions, type NodeHttpServerShutdownState, type NodeHttpTransport, type NodeHttpTransportConfig, PrewarmConfig, PrewarmLifecycleConfig, type PrewarmManager, PrewarmOriginState, PrewarmResult, PrewarmStatusSnapshot, PriorityConfig$1 as PriorityConfig, PriorityQueue, type PriorityQueueEntry, type ProbeOutcome, type RequestBatchingConfig, type RequestBatchingEvent, RequestCompressionConfig, RequestCompressionMiddlewareResult, RetryPolicy, type RoutePathParamNames, type RoutePathParams, SEPARATOR, clampPriority, computeCacheKey, computeGradient, computeNewLimit, detectPlatform, empty, executeProbe, httpBuilder, httpClientBuilder, httpRoute, json, makeBudgetSemaphore, makeCompressionMiddleware, makeConnectionStateMap, makeDefaultHttpClientLayer, makeHttpClient, makeHttpClientBuilder, makeHttpRouter, makeHttpServerResource, makeLifecycleClient, makeNodeHttpProxyClient, makeNodeHttpServer, makeNodeHttpServerResource, makeNodeHttpTransport, makePrewarmManager, makeRequestCompressionMiddleware, makeResponseCompressionMiddleware, makeRuntimeHealthRoute, makeRuntimeReadinessRoute, nodeHttpServerResource, parseCacheKey, prewarmConnections, prewarmHttpConnections, route, runtimeHealthRoute, runtimeReadinessRoute, text, validateFetchAvailable, validateOrigin, withAuth, withCache, withCircuitBreaker, withConnectionPrewarming, withDedup, withLogging, withPriority, withRequestBatching, withResponseHeader, withResponseTransform, withTracing };
1682
+ export { AdaptiveLimiter, AdaptiveLimiterConfig, AdaptiveLimiterPreset, AnyJsonSchemaLike, type BareMetalHttpConfig, type BareMetalHttpEvent, BatchConfig, type BudgetSemaphore, CacheConfig$1 as CacheConfig, type CacheKeyComponents, CompressionConfig, CompressionMiddlewareResult, type ConnectionPrewarmAttempt, type ConnectionPrewarmConfig, type ConnectionPrewarmEvent, type ConnectionPrewarmResult, type ConnectionPrewarmingMiddlewareConfig, type ConnectionStateMap, DEFAULT_CACHE_RELEVANT_HEADERS, DedupConfig$1 as DedupConfig, DefaultHttpClient, DefaultHttpClientConfig, type DefaultHttpClientLayerConfig, type DefaultHttpClientLayerOptions, DefaultHttpClientPreset, EmaComputer, type HttpCircuitBreakerConfig, HttpClient, type HttpClientBuilder, HttpClientFn, HttpClientService, HttpClientStats, HttpClientStream, HttpError, HttpMethod, HttpMiddleware, HttpPoolConfig, HttpRequest, type HttpRouteMatch, type HttpRouteOptions, type HttpRouteSchemas, type HttpRouter, type HttpRouterOptions, type HttpRuntimeHealthRouteOptions, HttpServer, type HttpServerBody, type HttpServerContext, type HttpServerHandler, type HttpServerHeaders, type HttpServerMethod, type HttpServerMiddleware, type HttpServerParams, type HttpServerQuery, type HttpServerRequest, type HttpServerResponse, type HttpServerRoute, HttpStreamTransport, HttpTransport, HttpWireResponse, InferJsonSchema, type InferServerPart, LRUCache, type LRUCacheConfig, LatencyWindow, LifecycleClient, LifecycleClientConfig, LifecycleEvent, LifecycleEventType, LifecycleStats, LifecycleStatsTracker, type LogEvent, type NodeHttpProxyClientConfig, type NodeHttpServerError, type NodeHttpServerHandle, type NodeHttpServerOptions, type NodeHttpServerShutdownState, type NodeHttpTransport, type NodeHttpTransportConfig, PrewarmConfig, PrewarmLifecycleConfig, type PrewarmManager, PrewarmOriginState, PrewarmResult, PrewarmStatusSnapshot, PriorityConfig$1 as PriorityConfig, PriorityQueue, type PriorityQueueEntry, type ProbeOutcome, type RequestBatchingConfig, type RequestBatchingEvent, RequestCompressionConfig, RequestCompressionMiddlewareResult, RetryPolicy, type RoutePathParamNames, type RoutePathParams, SEPARATOR, clampPriority, computeCacheKey, computeGradient, computeNewLimit, detectPlatform, empty, executeProbe, httpBuilder, httpClientBuilder, httpRoute, json, makeBareMetalHttp, makeBareMetalHttpStream, makeBudgetSemaphore, makeCompressionMiddleware, makeConnectionStateMap, makeDefaultHttpClientLayer, makeHttpClient, makeHttpClientBuilder, makeHttpRouter, makeHttpServerResource, makeLifecycleClient, makeNodeHttpProxyClient, makeNodeHttpServer, makeNodeHttpServerResource, makeNodeHttpTransport, makePrewarmManager, makeRequestCompressionMiddleware, makeResponseCompressionMiddleware, makeRuntimeHealthRoute, makeRuntimeReadinessRoute, nodeHttpServerResource, parseCacheKey, prewarmConnections, prewarmHttpConnections, route, runtimeHealthRoute, runtimeReadinessRoute, text, validateBareMetalConfig, validateFetchAvailable, validateOrigin, withAuth, withCache, withCircuitBreaker, withConnectionPrewarming, withDedup, withLogging, withPriority, withRequestBatching, withResponseHeader, withResponseTransform, withTracing };