@omnicross/core 0.4.4 → 0.4.5

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 (77) hide show
  1. package/dist/auth/GeminiCodeAssistProjectResolver.cjs +4 -4
  2. package/dist/auth/GeminiCodeAssistProjectResolver.js +3 -3
  3. package/dist/{chunk-MPFOC7AT.js → chunk-24W3DVGI.js} +1 -1
  4. package/dist/{chunk-GWC7HCZI.cjs → chunk-2DMOOZ4F.cjs} +1 -1
  5. package/dist/{chunk-NKVZ6Z3Y.cjs → chunk-4HMAS74X.cjs} +8 -3
  6. package/dist/{chunk-VFFCV4J6.cjs → chunk-CXRJMNJJ.cjs} +12 -6
  7. package/dist/{chunk-E5RCCGE7.cjs → chunk-DF5JXK36.cjs} +2 -2
  8. package/dist/{chunk-CGEZQC2G.cjs → chunk-F3TT5XPV.cjs} +2 -2
  9. package/dist/{chunk-EE7VP4O3.js → chunk-HQ7C3VB6.js} +1 -1
  10. package/dist/{chunk-ZJJBITUN.js → chunk-IAWLTZUP.js} +2 -2
  11. package/dist/{chunk-YV4JSBPA.js → chunk-L4L77G3X.js} +570 -96
  12. package/dist/{chunk-NTF7TLT7.js → chunk-LBIXTHP7.js} +11 -5
  13. package/dist/{chunk-UOOLU64V.cjs → chunk-LVQOCIES.cjs} +2 -2
  14. package/dist/{chunk-RX3BCX53.cjs → chunk-NCCEWVWY.cjs} +974 -500
  15. package/dist/{chunk-K6J2RIEX.js → chunk-NDJSLJIA.js} +1 -1
  16. package/dist/{chunk-F6P4DIBL.js → chunk-TLYFFUW4.js} +1 -1
  17. package/dist/{chunk-GL6XM527.js → chunk-TX7ZM4OI.js} +8 -3
  18. package/dist/{chunk-NCZDUBC2.js → chunk-WYUXJKMK.js} +1 -1
  19. package/dist/{chunk-NDIBVTBZ.cjs → chunk-XYFCNDJK.cjs} +2 -2
  20. package/dist/{chunk-X6GHTNDL.cjs → chunk-ZG57GAVU.cjs} +7 -7
  21. package/dist/completion/CompletionService.cjs +10 -10
  22. package/dist/completion/CompletionService.js +9 -9
  23. package/dist/completion.cjs +10 -10
  24. package/dist/completion.js +9 -9
  25. package/dist/index.cjs +12 -10
  26. package/dist/index.d.cts +3 -3
  27. package/dist/index.d.ts +3 -3
  28. package/dist/index.js +11 -9
  29. package/dist/outbound-api/routeResolver.d.cts +2 -2
  30. package/dist/outbound-api/routeResolver.d.ts +2 -2
  31. package/dist/outbound-api/types.d.cts +2 -2
  32. package/dist/outbound-api/types.d.ts +2 -2
  33. package/dist/outbound-api.cjs +12 -10
  34. package/dist/outbound-api.d.cts +46 -5
  35. package/dist/outbound-api.d.ts +46 -5
  36. package/dist/outbound-api.js +11 -9
  37. package/dist/pipeline/AccountAllowanceScheduling.d.cts +1 -1
  38. package/dist/pipeline/AccountAllowanceScheduling.d.ts +1 -1
  39. package/dist/pipeline/AccountRouteActivity.cjs +2 -2
  40. package/dist/pipeline/AccountRouteActivity.d.cts +33 -8
  41. package/dist/pipeline/AccountRouteActivity.d.ts +33 -8
  42. package/dist/pipeline/AccountRouteActivity.js +1 -1
  43. package/dist/pipeline/upstreamFetch.cjs +3 -3
  44. package/dist/pipeline/upstreamFetch.d.cts +15 -1
  45. package/dist/pipeline/upstreamFetch.d.ts +15 -1
  46. package/dist/pipeline/upstreamFetch.js +2 -2
  47. package/dist/ports.d.cts +1 -1
  48. package/dist/ports.d.ts +1 -1
  49. package/dist/provider-proxy/ProviderProxy.cjs +10 -10
  50. package/dist/provider-proxy/ProviderProxy.js +9 -9
  51. package/dist/provider-proxy/identity/codexCliHeaders.d.cts +6 -4
  52. package/dist/provider-proxy/identity/codexCliHeaders.d.ts +6 -4
  53. package/dist/provider-proxy/identity/openCodeGoHeaders.cjs +2 -2
  54. package/dist/provider-proxy/identity/openCodeGoHeaders.js +1 -1
  55. package/dist/provider-proxy/ingress/providerProxyShared.cjs +12 -10
  56. package/dist/provider-proxy/ingress/providerProxyShared.d.cts +19 -1
  57. package/dist/provider-proxy/ingress/providerProxyShared.d.ts +19 -1
  58. package/dist/provider-proxy/ingress/providerProxyShared.js +11 -9
  59. package/dist/provider-proxy.cjs +10 -10
  60. package/dist/provider-proxy.d.cts +1 -1
  61. package/dist/provider-proxy.d.ts +1 -1
  62. package/dist/provider-proxy.js +9 -9
  63. package/dist/{routeResolver-C2z0pp-q.d.cts → routeResolver-BdNJvTZP.d.cts} +1 -1
  64. package/dist/{routeResolver-BLTleO4H.d.ts → routeResolver-zVoCx9r3.d.ts} +1 -1
  65. package/dist/transformer/transformers/AntigravityTransformer.cjs +6 -6
  66. package/dist/transformer/transformers/AntigravityTransformer.js +5 -5
  67. package/dist/transformer/transformers/antigravityFailover.cjs +7 -7
  68. package/dist/transformer/transformers/antigravityFailover.js +6 -6
  69. package/dist/transformer/transformers/antigravityIdentity.cjs +4 -4
  70. package/dist/transformer/transformers/antigravityIdentity.js +3 -3
  71. package/dist/transformer/transformers.cjs +8 -8
  72. package/dist/transformer/transformers.js +7 -7
  73. package/dist/transformer.cjs +8 -8
  74. package/dist/transformer.js +7 -7
  75. package/dist/{types-C6m-Db26.d.cts → types-Dt1bgHPg.d.cts} +63 -2
  76. package/dist/{types-Da735j2d.d.ts → types-IRPv4i1Y.d.ts} +63 -2
  77. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -81,6 +81,7 @@ import {
81
81
  hashRouteLeasePayload,
82
82
  hashRouteLeaseSessionId,
83
83
  hashVoucherCode,
84
+ injectMappingEffortDefault,
84
85
  isCodexSearchRequest,
85
86
  isConcurrencyRejection,
86
87
  isLoopbackAddress,
@@ -128,19 +129,19 @@ import {
128
129
  verifyKey,
129
130
  verifyPresentedKey,
130
131
  voucherCodePrefix
131
- } from "./chunk-YV4JSBPA.js";
132
+ } from "./chunk-L4L77G3X.js";
132
133
  import "./chunk-WTQMX2Q6.js";
133
134
  import {
134
135
  registerBuiltinTransformers
135
- } from "./chunk-MPFOC7AT.js";
136
+ } from "./chunk-24W3DVGI.js";
136
137
  import "./chunk-V53ZEFXC.js";
137
138
  import "./chunk-7PIUVCKK.js";
138
139
  import "./chunk-TKZ3DZS5.js";
139
140
  import "./chunk-FU7EAR73.js";
140
141
  import "./chunk-IDPMD4B7.js";
141
- import "./chunk-K6J2RIEX.js";
142
- import "./chunk-ZJJBITUN.js";
143
- import "./chunk-F6P4DIBL.js";
142
+ import "./chunk-NDJSLJIA.js";
143
+ import "./chunk-IAWLTZUP.js";
144
+ import "./chunk-TLYFFUW4.js";
144
145
  import "./chunk-OXBGNEYR.js";
145
146
  import "./chunk-QIIAMBTM.js";
146
147
  import {
@@ -165,7 +166,7 @@ import {
165
166
  import "./chunk-4LSZ7NFM.js";
166
167
  import "./chunk-XTEI64OU.js";
167
168
  import "./chunk-XX6NQJMA.js";
168
- import "./chunk-NCZDUBC2.js";
169
+ import "./chunk-WYUXJKMK.js";
169
170
  import "./chunk-ONTTXSRL.js";
170
171
  import "./chunk-OE6TDIWW.js";
171
172
  import "./chunk-DRWHTIIZ.js";
@@ -264,15 +265,15 @@ import {
264
265
  hasImageContent,
265
266
  hasThinkingEnabled
266
267
  } from "./chunk-5NJLQ6T6.js";
267
- import "./chunk-EE7VP4O3.js";
268
+ import "./chunk-HQ7C3VB6.js";
268
269
  import "./chunk-QSOHEDKO.js";
269
270
  import "./chunk-YEHQ5FXZ.js";
270
271
  import "./chunk-WYVGULTQ.js";
271
272
  import "./chunk-ZLNHPUFA.js";
272
- import "./chunk-NTF7TLT7.js";
273
+ import "./chunk-LBIXTHP7.js";
273
274
  import "./chunk-3WD4HTR2.js";
274
275
  import "./chunk-FYPKKMB3.js";
275
- import "./chunk-GL6XM527.js";
276
+ import "./chunk-TX7ZM4OI.js";
276
277
  import {
277
278
  DEFAULT_IMAGE_API_LIMITS,
278
279
  IMAGE_REQUEST_DIRECTORY_MARKER_CONTENT,
@@ -463,6 +464,7 @@ export {
463
464
  hashRouteLeaseSessionId,
464
465
  hashVoucherCode,
465
466
  imageGenerationErrorFromPublic,
467
+ injectMappingEffortDefault,
466
468
  inspectResponsesImageRequest,
467
469
  isBoundAccountSelectionError,
468
470
  isCodexSearchRequest,
@@ -1,7 +1,7 @@
1
1
  import '../ports/provider-config-source.cjs';
2
2
  import '../types-BSIJdsyl.cjs';
3
- import '../types-C6m-Db26.cjs';
4
- export { R as RouteResolveError, b as RouteResolveResult, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from '../routeResolver-C2z0pp-q.cjs';
3
+ import '../types-Dt1bgHPg.cjs';
4
+ export { R as RouteResolveError, b as RouteResolveResult, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from '../routeResolver-BdNJvTZP.cjs';
5
5
  import '@omnicross/contracts/llm-config';
6
6
  import '../transformer/types.cjs';
7
7
  import '@omnicross/contracts/completion-types';
@@ -1,7 +1,7 @@
1
1
  import '../ports/provider-config-source.js';
2
2
  import '../types-By9Tg6-I.js';
3
- import '../types-Da735j2d.js';
4
- export { R as RouteResolveError, b as RouteResolveResult, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from '../routeResolver-BLTleO4H.js';
3
+ import '../types-IRPv4i1Y.js';
4
+ export { R as RouteResolveError, b as RouteResolveResult, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from '../routeResolver-zVoCx9r3.js';
5
5
  import '@omnicross/contracts/llm-config';
6
6
  import '../transformer/types.js';
7
7
  import '@omnicross/contracts/completion-types';
@@ -2,6 +2,7 @@ import '../types-BVwJQ9ZS.cjs';
2
2
  import '@omnicross/contracts/account-tokens-types';
3
3
  import '@omnicross/contracts/audit-types';
4
4
  import '@omnicross/contracts/billing-types';
5
+ import '@omnicross/contracts/completion-types';
5
6
  import '@omnicross/contracts/health-logging-types';
6
7
  import '@omnicross/contracts/voucher-types';
7
8
  import '@omnicross/contracts/webhook-types';
@@ -9,7 +10,7 @@ import '../logger-4GvQNzhE.cjs';
9
10
  import '../ports/provider-config-source.cjs';
10
11
  import '../ProviderProxy-Bz_nkOwq.cjs';
11
12
  import '../types-BSIJdsyl.cjs';
12
- export { a0 as AccountHealthConfig, A as AccountProbeConfig, a as AllowanceSchedulingConfig, $ as AnthropicConfigSegment, a1 as AnthropicCountTokensMode, a2 as AnthropicModelsShape, C as ChatDispatchMode, b as ConcurrencyQueueConfig, D as DEFAULT_IMAGE_MODEL_ROUTES, E as ENDPOINT_MODEL_KINDS, c as EndpointRoutingConfig, F as FingerprintConfig, G as GatewayBinding, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, g as GatewayBindingTarget, h as GatewayModelMapping, I as IMAGE_PROVIDER_IDS, a3 as ImageModelCatalogReader, i as ImageProviderId, j as ImagesCodexAdapterConfig, k as ImagesServerConfig, n as KindMappedEndpoint, M as MessagesModelKind, o as ModelKind, p as ModelPrefixTargets, _ as ModelRef, q as OutboundApiDeps, r as OutboundApiKeyCreated, s as OutboundApiKeyInfo, t as OutboundApiServerConfig, u as OutboundApiServerStatus, v as OutboundEndpoint, w as OutboundFormatUrls, x as OutboundKeyActivationMode, O as OutboundKeyDb, y as OutboundKeyDbRow, a4 as OutboundKeyModelRestrictionMode, z as OutboundKeyPolicy, B as OutboundPermission, H as OutboundProxyConfig, R as RequestRole, J as ResponsesModelKind, S as SearchServerConfig, U as UserMessageQueueConfig } from '../types-C6m-Db26.cjs';
13
+ export { a1 as AccountHealthConfig, A as AccountProbeConfig, a as AllowanceSchedulingConfig, $ as AnthropicConfigSegment, a2 as AnthropicCountTokensMode, a3 as AnthropicModelsShape, C as ChatDispatchMode, b as ConcurrencyQueueConfig, D as DEFAULT_IMAGE_MODEL_ROUTES, E as ENDPOINT_MODEL_KINDS, c as EndpointRoutingConfig, F as FingerprintConfig, G as GatewayBinding, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, g as GatewayBindingTarget, a0 as GatewayMappingEffort, h as GatewayModelMapping, I as IMAGE_PROVIDER_IDS, a4 as ImageModelCatalogReader, i as ImageProviderId, j as ImagesCodexAdapterConfig, k as ImagesServerConfig, n as KindMappedEndpoint, M as MessagesModelKind, o as ModelKind, p as ModelPrefixTargets, _ as ModelRef, q as OutboundApiDeps, r as OutboundApiKeyCreated, s as OutboundApiKeyInfo, t as OutboundApiServerConfig, u as OutboundApiServerStatus, v as OutboundEndpoint, w as OutboundFormatUrls, x as OutboundKeyActivationMode, O as OutboundKeyDb, y as OutboundKeyDbRow, a5 as OutboundKeyModelRestrictionMode, z as OutboundKeyPolicy, B as OutboundPermission, H as OutboundProxyConfig, R as RequestRole, J as ResponsesModelKind, S as SearchServerConfig, U as UserMessageQueueConfig } from '../types-Dt1bgHPg.cjs';
13
14
  import '../pipeline/BoundAccountSelectionError.cjs';
14
15
  import '../types-CbCZqLGg.cjs';
15
16
  import '../frontends-Doz0RaWu.cjs';
@@ -18,7 +19,6 @@ import '@omnicross/contracts/image-generation-types';
18
19
  import 'node:fs/promises';
19
20
  import '@omnicross/contracts/llm-config';
20
21
  import '../transformer/types.cjs';
21
- import '@omnicross/contracts/completion-types';
22
22
  import '../transformer/TransformerService.cjs';
23
23
  import 'node:http';
24
24
  import '@omnicross/contracts/usage-stats-types';
@@ -2,6 +2,7 @@ import '../types-VAHRysdP.js';
2
2
  import '@omnicross/contracts/account-tokens-types';
3
3
  import '@omnicross/contracts/audit-types';
4
4
  import '@omnicross/contracts/billing-types';
5
+ import '@omnicross/contracts/completion-types';
5
6
  import '@omnicross/contracts/health-logging-types';
6
7
  import '@omnicross/contracts/voucher-types';
7
8
  import '@omnicross/contracts/webhook-types';
@@ -9,7 +10,7 @@ import '../logger-4GvQNzhE.js';
9
10
  import '../ports/provider-config-source.js';
10
11
  import '../ProviderProxy-Ckr6oTrE.js';
11
12
  import '../types-By9Tg6-I.js';
12
- export { a0 as AccountHealthConfig, A as AccountProbeConfig, a as AllowanceSchedulingConfig, $ as AnthropicConfigSegment, a1 as AnthropicCountTokensMode, a2 as AnthropicModelsShape, C as ChatDispatchMode, b as ConcurrencyQueueConfig, D as DEFAULT_IMAGE_MODEL_ROUTES, E as ENDPOINT_MODEL_KINDS, c as EndpointRoutingConfig, F as FingerprintConfig, G as GatewayBinding, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, g as GatewayBindingTarget, h as GatewayModelMapping, I as IMAGE_PROVIDER_IDS, a3 as ImageModelCatalogReader, i as ImageProviderId, j as ImagesCodexAdapterConfig, k as ImagesServerConfig, n as KindMappedEndpoint, M as MessagesModelKind, o as ModelKind, p as ModelPrefixTargets, _ as ModelRef, q as OutboundApiDeps, r as OutboundApiKeyCreated, s as OutboundApiKeyInfo, t as OutboundApiServerConfig, u as OutboundApiServerStatus, v as OutboundEndpoint, w as OutboundFormatUrls, x as OutboundKeyActivationMode, O as OutboundKeyDb, y as OutboundKeyDbRow, a4 as OutboundKeyModelRestrictionMode, z as OutboundKeyPolicy, B as OutboundPermission, H as OutboundProxyConfig, R as RequestRole, J as ResponsesModelKind, S as SearchServerConfig, U as UserMessageQueueConfig } from '../types-Da735j2d.js';
13
+ export { a1 as AccountHealthConfig, A as AccountProbeConfig, a as AllowanceSchedulingConfig, $ as AnthropicConfigSegment, a2 as AnthropicCountTokensMode, a3 as AnthropicModelsShape, C as ChatDispatchMode, b as ConcurrencyQueueConfig, D as DEFAULT_IMAGE_MODEL_ROUTES, E as ENDPOINT_MODEL_KINDS, c as EndpointRoutingConfig, F as FingerprintConfig, G as GatewayBinding, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, g as GatewayBindingTarget, a0 as GatewayMappingEffort, h as GatewayModelMapping, I as IMAGE_PROVIDER_IDS, a4 as ImageModelCatalogReader, i as ImageProviderId, j as ImagesCodexAdapterConfig, k as ImagesServerConfig, n as KindMappedEndpoint, M as MessagesModelKind, o as ModelKind, p as ModelPrefixTargets, _ as ModelRef, q as OutboundApiDeps, r as OutboundApiKeyCreated, s as OutboundApiKeyInfo, t as OutboundApiServerConfig, u as OutboundApiServerStatus, v as OutboundEndpoint, w as OutboundFormatUrls, x as OutboundKeyActivationMode, O as OutboundKeyDb, y as OutboundKeyDbRow, a5 as OutboundKeyModelRestrictionMode, z as OutboundKeyPolicy, B as OutboundPermission, H as OutboundProxyConfig, R as RequestRole, J as ResponsesModelKind, S as SearchServerConfig, U as UserMessageQueueConfig } from '../types-IRPv4i1Y.js';
13
14
  import '../pipeline/BoundAccountSelectionError.js';
14
15
  import '../types-CbCZqLGg.js';
15
16
  import '../frontends-Doz0RaWu.js';
@@ -18,7 +19,6 @@ import '@omnicross/contracts/image-generation-types';
18
19
  import 'node:fs/promises';
19
20
  import '@omnicross/contracts/llm-config';
20
21
  import '../transformer/types.js';
21
- import '@omnicross/contracts/completion-types';
22
22
  import '../transformer/TransformerService.js';
23
23
  import 'node:http';
24
24
  import '@omnicross/contracts/usage-stats-types';
@@ -77,17 +77,18 @@
77
77
 
78
78
 
79
79
 
80
- var _chunkRX3BCX53cjs = require('./chunk-RX3BCX53.cjs');
80
+
81
+ var _chunkNCCEWVWYcjs = require('./chunk-NCCEWVWY.cjs');
81
82
  require('./chunk-QVOB2DNX.cjs');
82
- require('./chunk-UOOLU64V.cjs');
83
+ require('./chunk-LVQOCIES.cjs');
83
84
  require('./chunk-NOITAVHA.cjs');
84
85
  require('./chunk-QWNUOR7F.cjs');
85
86
  require('./chunk-47E3I5PF.cjs');
86
87
  require('./chunk-5RSZYQJH.cjs');
87
88
  require('./chunk-VGBJPHHD.cjs');
88
- require('./chunk-CGEZQC2G.cjs');
89
- require('./chunk-X6GHTNDL.cjs');
90
- require('./chunk-E5RCCGE7.cjs');
89
+ require('./chunk-F3TT5XPV.cjs');
90
+ require('./chunk-ZG57GAVU.cjs');
91
+ require('./chunk-DF5JXK36.cjs');
91
92
  require('./chunk-BTSADEX4.cjs');
92
93
  require('./chunk-32SRZFFP.cjs');
93
94
  require('./chunk-2E42SAW3.cjs');
@@ -101,7 +102,7 @@ require('./chunk-HQP3K7PU.cjs');
101
102
  require('./chunk-SQU2FGXI.cjs');
102
103
  require('./chunk-RPII3E6Z.cjs');
103
104
  require('./chunk-6RPZADX3.cjs');
104
- require('./chunk-GWC7HCZI.cjs');
105
+ require('./chunk-2DMOOZ4F.cjs');
105
106
  require('./chunk-UKQHBK4Q.cjs');
106
107
  require('./chunk-UIBD2YY5.cjs');
107
108
  require('./chunk-R3HK6R4B.cjs');
@@ -161,15 +162,15 @@ require('./chunk-GMMT7RVN.cjs');
161
162
  require('./chunk-UNEFIWXI.cjs');
162
163
  require('./chunk-A2YMUCBT.cjs');
163
164
  require('./chunk-GDIXXKF2.cjs');
164
- require('./chunk-NDIBVTBZ.cjs');
165
+ require('./chunk-XYFCNDJK.cjs');
165
166
  require('./chunk-N3MGNLCU.cjs');
166
167
  require('./chunk-4NAMH4UE.cjs');
167
168
  require('./chunk-77USGNRW.cjs');
168
169
  require('./chunk-IUL4VWNU.cjs');
169
- require('./chunk-VFFCV4J6.cjs');
170
+ require('./chunk-CXRJMNJJ.cjs');
170
171
  require('./chunk-235MXAGX.cjs');
171
172
  require('./chunk-VYOBVPNB.cjs');
172
- require('./chunk-NKVZ6Z3Y.cjs');
173
+ require('./chunk-4HMAS74X.cjs');
173
174
  require('./chunk-INY54AYX.cjs');
174
175
  require('./chunk-G4CZIUIB.cjs');
175
176
  require('./chunk-2RCCLQYV.cjs');
@@ -276,4 +277,5 @@ require('./chunk-2RCCLQYV.cjs');
276
277
 
277
278
 
278
279
 
279
- exports.AUDIT_REDACTED = _chunkHCOQQAZEcjs.AUDIT_REDACTED; exports.BoundAccountSelectionError = _chunk25GXJCEZcjs.BoundAccountSelectionError; exports.ConcurrencyQueueFullError = _chunkRX3BCX53cjs.ConcurrencyQueueFullError; exports.ConcurrencyWaitCancelledError = _chunkRX3BCX53cjs.ConcurrencyWaitCancelledError; exports.ConcurrencyWaitTimeoutError = _chunkRX3BCX53cjs.ConcurrencyWaitTimeoutError; exports.DEFAULT_ACCOUNT_PROBE = _chunkRX3BCX53cjs.DEFAULT_ACCOUNT_PROBE; exports.DEFAULT_ALLOWANCE_SCHEDULING = _chunkRX3BCX53cjs.DEFAULT_ALLOWANCE_SCHEDULING; exports.DEFAULT_CONCURRENCY_QUEUE = _chunkRX3BCX53cjs.DEFAULT_CONCURRENCY_QUEUE; exports.DEFAULT_FINGERPRINT = _chunkRX3BCX53cjs.DEFAULT_FINGERPRINT; exports.DEFAULT_IMAGES_SERVER_CONFIG = _chunkRX3BCX53cjs.DEFAULT_IMAGES_SERVER_CONFIG; exports.DEFAULT_IMAGE_MODEL_ROUTES = _chunkLL3MZ7O5cjs.DEFAULT_IMAGE_MODEL_ROUTES; exports.DEFAULT_OUTBOUND_PORT = _chunkRX3BCX53cjs.DEFAULT_OUTBOUND_PORT; exports.DEFAULT_SEARCH_SERVER_CONFIG = _chunkRX3BCX53cjs.DEFAULT_SEARCH_SERVER_CONFIG; exports.DEFAULT_USER_MESSAGE_QUEUE = _chunkRX3BCX53cjs.DEFAULT_USER_MESSAGE_QUEUE; exports.ENDPOINT_MODEL_KINDS = _chunkLL3MZ7O5cjs.ENDPOINT_MODEL_KINDS; exports.IMAGE_PROVIDER_IDS = _chunkLL3MZ7O5cjs.IMAGE_PROVIDER_IDS; exports.IMAGE_SERVER_HARD_CEILINGS = _chunkRX3BCX53cjs.IMAGE_SERVER_HARD_CEILINGS; exports.KeySpendTracker = _chunkRX3BCX53cjs.KeySpendTracker; exports.KeyedMutex = _chunkRX3BCX53cjs.KeyedMutex; exports.LEGACY_OUTBOUND_PERMISSIONS = _chunkRX3BCX53cjs.LEGACY_OUTBOUND_PERMISSIONS; exports.OUTBOUND_API_SERVER_CONFIG_KEY = _chunkRX3BCX53cjs.OUTBOUND_API_SERVER_CONFIG_KEY; exports.OutboundApiServer = _chunkRX3BCX53cjs.OutboundApiServer; exports.OutboundConcurrencyGate = _chunkRX3BCX53cjs.OutboundConcurrencyGate; exports.OutboundRateLimiter = _chunkRX3BCX53cjs.OutboundRateLimiter; exports.SUBSCRIPTION_PROVIDER_IDS = _chunk57Y2EA2Gcjs.SUBSCRIPTION_PROVIDER_IDS; exports.SerialQueueTimeoutError = _chunkRX3BCX53cjs.SerialQueueTimeoutError; exports.UserMessageSerialQueue = _chunkRX3BCX53cjs.UserMessageSerialQueue; exports.__resetOutboundApiServerForTests = _chunkRX3BCX53cjs.__resetOutboundApiServerForTests; exports.beginAuditCapture = _chunkFX325I5Qcjs.beginAuditCapture; exports.beginBillingCapture = _chunkAPYG5QD7cjs.beginBillingCapture; exports.boundAccountSelectionMessage = _chunk25GXJCEZcjs.boundAccountSelectionMessage; exports.candidateBackgroundModelIds = _chunkRX3BCX53cjs.candidateBackgroundModelIds; exports.candidateGatewayBindings = _chunkRX3BCX53cjs.candidateGatewayBindings; exports.checkKeyQuota = _chunkRX3BCX53cjs.checkKeyQuota; exports.classifyModelPrefix = _chunk57Y2EA2Gcjs.classifyModelPrefix; exports.codexSearchRoutePath = _chunkRX3BCX53cjs.codexSearchRoutePath; exports.computeKeyExpiry = _chunkRX3BCX53cjs.computeKeyExpiry; exports.computeVoucherGrant = _chunkRX3BCX53cjs.computeVoucherGrant; exports.createIntegrationKey = _chunkRX3BCX53cjs.createIntegrationKey; exports.createNamedKey = _chunkRX3BCX53cjs.createNamedKey; exports.defaultServerConfig = _chunkRX3BCX53cjs.defaultServerConfig; exports.detectModelKind = _chunk57Y2EA2Gcjs.detectModelKind; exports.detectRequestRole = _chunk57Y2EA2Gcjs.detectRequestRole; exports.effectiveOutboundPermissions = _chunkRX3BCX53cjs.effectiveOutboundPermissions; exports.endpointSupportsSubscription = _chunk57Y2EA2Gcjs.endpointSupportsSubscription; exports.endpointToIngressFormat = _chunk57Y2EA2Gcjs.endpointToIngressFormat; exports.formatUrls = _chunkRX3BCX53cjs.formatUrls; exports.gatewayBindingToEndpointConfig = _chunkRX3BCX53cjs.gatewayBindingToEndpointConfig; exports.generateVoucherCode = _chunkRX3BCX53cjs.generateVoucherCode; exports.getOutboundApiServer = _chunkRX3BCX53cjs.getOutboundApiServer; exports.handleCodexSearchRequest = _chunkRX3BCX53cjs.handleCodexSearchRequest; exports.handleVoucherRedeem = _chunkRX3BCX53cjs.handleVoucherRedeem; exports.hashKey = _chunkRX3BCX53cjs.hashKey; exports.hashVoucherCode = _chunkRX3BCX53cjs.hashVoucherCode; exports.isBoundAccountSelectionError = _chunk25GXJCEZcjs.isBoundAccountSelectionError; exports.isCodexSearchRequest = _chunkRX3BCX53cjs.isCodexSearchRequest; exports.isConcurrencyRejection = _chunkRX3BCX53cjs.isConcurrencyRejection; exports.isKindMappedEndpoint = _chunk57Y2EA2Gcjs.isKindMappedEndpoint; exports.isRedeemRequest = _chunkRX3BCX53cjs.isRedeemRequest; exports.isSerialQueueTimeout = _chunkRX3BCX53cjs.isSerialQueueTimeout; exports.isSubscriptionProviderId = _chunk57Y2EA2Gcjs.isSubscriptionProviderId; exports.isUserMessageRequest = _chunkRX3BCX53cjs.isUserMessageRequest; exports.legacyEndpointsToBindings = _chunkRX3BCX53cjs.legacyEndpointsToBindings; exports.loadServerConfig = _chunkRX3BCX53cjs.loadServerConfig; exports.mergeServerConfig = _chunkRX3BCX53cjs.mergeServerConfig; exports.modelKindsForEndpoint = _chunk57Y2EA2Gcjs.modelKindsForEndpoint; exports.newVoucherId = _chunkRX3BCX53cjs.newVoucherId; exports.normalizeAccountProbe = _chunkRX3BCX53cjs.normalizeAccountProbe; exports.normalizeAllowanceScheduling = _chunkRX3BCX53cjs.normalizeAllowanceScheduling; exports.normalizeAudit = _chunkRX3BCX53cjs.normalizeAudit; exports.normalizeBilling = _chunkRX3BCX53cjs.normalizeBilling; exports.normalizeFingerprint = _chunkRX3BCX53cjs.normalizeFingerprint; exports.normalizeGatewayBindings = _chunkRX3BCX53cjs.normalizeGatewayBindings; exports.normalizeImagesServerConfig = _chunkRX3BCX53cjs.normalizeImagesServerConfig; exports.normalizePrefixTargets = _chunkRX3BCX53cjs.normalizePrefixTargets; exports.normalizeProxyConfig = _chunkRX3BCX53cjs.normalizeProxyConfig; exports.normalizeProxySegment = _chunkRX3BCX53cjs.normalizeProxySegment; exports.normalizeQueueSegments = _chunkRX3BCX53cjs.normalizeQueueSegments; exports.normalizeSearchApiProviderConfigs = _chunkRX3BCX53cjs.normalizeSearchApiProviderConfigs; exports.normalizeSearchServerConfig = _chunkRX3BCX53cjs.normalizeSearchServerConfig; exports.normalizeServerConfig = _chunkRX3BCX53cjs.normalizeServerConfig; exports.normalizeVoucher = _chunkRX3BCX53cjs.normalizeVoucher; exports.normalizeWebhookDestination = _chunkRX3BCX53cjs.normalizeWebhookDestination; exports.normalizeWebhookSegment = _chunkRX3BCX53cjs.normalizeWebhookSegment; exports.parseModelRef = _chunk57Y2EA2Gcjs.parseModelRef; exports.pickModelRefFromList = _chunk57Y2EA2Gcjs.pickModelRefFromList; exports.randomBase62 = _chunkRX3BCX53cjs.randomBase62; exports.redactAuditText = _chunkHCOQQAZEcjs.redactAuditText; exports.resolveGatewayBinding = _chunkRX3BCX53cjs.resolveGatewayBinding; exports.resolvePrefixTarget = _chunk57Y2EA2Gcjs.resolvePrefixTarget; exports.resolveRoute = _chunk57Y2EA2Gcjs.resolveRoute; exports.saveServerConfig = _chunkRX3BCX53cjs.saveServerConfig; exports.startOfLocalDay = _chunkRX3BCX53cjs.startOfLocalDay; exports.startOfLocalWeek = _chunkRX3BCX53cjs.startOfLocalWeek; exports.toVoucherInfo = _chunkRX3BCX53cjs.toVoucherInfo; exports.validateEndpointModelConfig = _chunk57Y2EA2Gcjs.validateEndpointModelConfig; exports.validateImagesServerConfig = _chunkRX3BCX53cjs.validateImagesServerConfig; exports.validateOutboundPermissions = _chunkRX3BCX53cjs.validateOutboundPermissions; exports.validateSearchServerConfig = _chunkRX3BCX53cjs.validateSearchServerConfig; exports.verifyKey = _chunkRX3BCX53cjs.verifyKey; exports.verifyPresentedKey = _chunkRX3BCX53cjs.verifyPresentedKey; exports.voucherCodePrefix = _chunkRX3BCX53cjs.voucherCodePrefix;
280
+
281
+ exports.AUDIT_REDACTED = _chunkHCOQQAZEcjs.AUDIT_REDACTED; exports.BoundAccountSelectionError = _chunk25GXJCEZcjs.BoundAccountSelectionError; exports.ConcurrencyQueueFullError = _chunkNCCEWVWYcjs.ConcurrencyQueueFullError; exports.ConcurrencyWaitCancelledError = _chunkNCCEWVWYcjs.ConcurrencyWaitCancelledError; exports.ConcurrencyWaitTimeoutError = _chunkNCCEWVWYcjs.ConcurrencyWaitTimeoutError; exports.DEFAULT_ACCOUNT_PROBE = _chunkNCCEWVWYcjs.DEFAULT_ACCOUNT_PROBE; exports.DEFAULT_ALLOWANCE_SCHEDULING = _chunkNCCEWVWYcjs.DEFAULT_ALLOWANCE_SCHEDULING; exports.DEFAULT_CONCURRENCY_QUEUE = _chunkNCCEWVWYcjs.DEFAULT_CONCURRENCY_QUEUE; exports.DEFAULT_FINGERPRINT = _chunkNCCEWVWYcjs.DEFAULT_FINGERPRINT; exports.DEFAULT_IMAGES_SERVER_CONFIG = _chunkNCCEWVWYcjs.DEFAULT_IMAGES_SERVER_CONFIG; exports.DEFAULT_IMAGE_MODEL_ROUTES = _chunkLL3MZ7O5cjs.DEFAULT_IMAGE_MODEL_ROUTES; exports.DEFAULT_OUTBOUND_PORT = _chunkNCCEWVWYcjs.DEFAULT_OUTBOUND_PORT; exports.DEFAULT_SEARCH_SERVER_CONFIG = _chunkNCCEWVWYcjs.DEFAULT_SEARCH_SERVER_CONFIG; exports.DEFAULT_USER_MESSAGE_QUEUE = _chunkNCCEWVWYcjs.DEFAULT_USER_MESSAGE_QUEUE; exports.ENDPOINT_MODEL_KINDS = _chunkLL3MZ7O5cjs.ENDPOINT_MODEL_KINDS; exports.IMAGE_PROVIDER_IDS = _chunkLL3MZ7O5cjs.IMAGE_PROVIDER_IDS; exports.IMAGE_SERVER_HARD_CEILINGS = _chunkNCCEWVWYcjs.IMAGE_SERVER_HARD_CEILINGS; exports.KeySpendTracker = _chunkNCCEWVWYcjs.KeySpendTracker; exports.KeyedMutex = _chunkNCCEWVWYcjs.KeyedMutex; exports.LEGACY_OUTBOUND_PERMISSIONS = _chunkNCCEWVWYcjs.LEGACY_OUTBOUND_PERMISSIONS; exports.OUTBOUND_API_SERVER_CONFIG_KEY = _chunkNCCEWVWYcjs.OUTBOUND_API_SERVER_CONFIG_KEY; exports.OutboundApiServer = _chunkNCCEWVWYcjs.OutboundApiServer; exports.OutboundConcurrencyGate = _chunkNCCEWVWYcjs.OutboundConcurrencyGate; exports.OutboundRateLimiter = _chunkNCCEWVWYcjs.OutboundRateLimiter; exports.SUBSCRIPTION_PROVIDER_IDS = _chunk57Y2EA2Gcjs.SUBSCRIPTION_PROVIDER_IDS; exports.SerialQueueTimeoutError = _chunkNCCEWVWYcjs.SerialQueueTimeoutError; exports.UserMessageSerialQueue = _chunkNCCEWVWYcjs.UserMessageSerialQueue; exports.__resetOutboundApiServerForTests = _chunkNCCEWVWYcjs.__resetOutboundApiServerForTests; exports.beginAuditCapture = _chunkFX325I5Qcjs.beginAuditCapture; exports.beginBillingCapture = _chunkAPYG5QD7cjs.beginBillingCapture; exports.boundAccountSelectionMessage = _chunk25GXJCEZcjs.boundAccountSelectionMessage; exports.candidateBackgroundModelIds = _chunkNCCEWVWYcjs.candidateBackgroundModelIds; exports.candidateGatewayBindings = _chunkNCCEWVWYcjs.candidateGatewayBindings; exports.checkKeyQuota = _chunkNCCEWVWYcjs.checkKeyQuota; exports.classifyModelPrefix = _chunk57Y2EA2Gcjs.classifyModelPrefix; exports.codexSearchRoutePath = _chunkNCCEWVWYcjs.codexSearchRoutePath; exports.computeKeyExpiry = _chunkNCCEWVWYcjs.computeKeyExpiry; exports.computeVoucherGrant = _chunkNCCEWVWYcjs.computeVoucherGrant; exports.createIntegrationKey = _chunkNCCEWVWYcjs.createIntegrationKey; exports.createNamedKey = _chunkNCCEWVWYcjs.createNamedKey; exports.defaultServerConfig = _chunkNCCEWVWYcjs.defaultServerConfig; exports.detectModelKind = _chunk57Y2EA2Gcjs.detectModelKind; exports.detectRequestRole = _chunk57Y2EA2Gcjs.detectRequestRole; exports.effectiveOutboundPermissions = _chunkNCCEWVWYcjs.effectiveOutboundPermissions; exports.endpointSupportsSubscription = _chunk57Y2EA2Gcjs.endpointSupportsSubscription; exports.endpointToIngressFormat = _chunk57Y2EA2Gcjs.endpointToIngressFormat; exports.formatUrls = _chunkNCCEWVWYcjs.formatUrls; exports.gatewayBindingToEndpointConfig = _chunkNCCEWVWYcjs.gatewayBindingToEndpointConfig; exports.generateVoucherCode = _chunkNCCEWVWYcjs.generateVoucherCode; exports.getOutboundApiServer = _chunkNCCEWVWYcjs.getOutboundApiServer; exports.handleCodexSearchRequest = _chunkNCCEWVWYcjs.handleCodexSearchRequest; exports.handleVoucherRedeem = _chunkNCCEWVWYcjs.handleVoucherRedeem; exports.hashKey = _chunkNCCEWVWYcjs.hashKey; exports.hashVoucherCode = _chunkNCCEWVWYcjs.hashVoucherCode; exports.injectMappingEffortDefault = _chunkNCCEWVWYcjs.injectMappingEffortDefault; exports.isBoundAccountSelectionError = _chunk25GXJCEZcjs.isBoundAccountSelectionError; exports.isCodexSearchRequest = _chunkNCCEWVWYcjs.isCodexSearchRequest; exports.isConcurrencyRejection = _chunkNCCEWVWYcjs.isConcurrencyRejection; exports.isKindMappedEndpoint = _chunk57Y2EA2Gcjs.isKindMappedEndpoint; exports.isRedeemRequest = _chunkNCCEWVWYcjs.isRedeemRequest; exports.isSerialQueueTimeout = _chunkNCCEWVWYcjs.isSerialQueueTimeout; exports.isSubscriptionProviderId = _chunk57Y2EA2Gcjs.isSubscriptionProviderId; exports.isUserMessageRequest = _chunkNCCEWVWYcjs.isUserMessageRequest; exports.legacyEndpointsToBindings = _chunkNCCEWVWYcjs.legacyEndpointsToBindings; exports.loadServerConfig = _chunkNCCEWVWYcjs.loadServerConfig; exports.mergeServerConfig = _chunkNCCEWVWYcjs.mergeServerConfig; exports.modelKindsForEndpoint = _chunk57Y2EA2Gcjs.modelKindsForEndpoint; exports.newVoucherId = _chunkNCCEWVWYcjs.newVoucherId; exports.normalizeAccountProbe = _chunkNCCEWVWYcjs.normalizeAccountProbe; exports.normalizeAllowanceScheduling = _chunkNCCEWVWYcjs.normalizeAllowanceScheduling; exports.normalizeAudit = _chunkNCCEWVWYcjs.normalizeAudit; exports.normalizeBilling = _chunkNCCEWVWYcjs.normalizeBilling; exports.normalizeFingerprint = _chunkNCCEWVWYcjs.normalizeFingerprint; exports.normalizeGatewayBindings = _chunkNCCEWVWYcjs.normalizeGatewayBindings; exports.normalizeImagesServerConfig = _chunkNCCEWVWYcjs.normalizeImagesServerConfig; exports.normalizePrefixTargets = _chunkNCCEWVWYcjs.normalizePrefixTargets; exports.normalizeProxyConfig = _chunkNCCEWVWYcjs.normalizeProxyConfig; exports.normalizeProxySegment = _chunkNCCEWVWYcjs.normalizeProxySegment; exports.normalizeQueueSegments = _chunkNCCEWVWYcjs.normalizeQueueSegments; exports.normalizeSearchApiProviderConfigs = _chunkNCCEWVWYcjs.normalizeSearchApiProviderConfigs; exports.normalizeSearchServerConfig = _chunkNCCEWVWYcjs.normalizeSearchServerConfig; exports.normalizeServerConfig = _chunkNCCEWVWYcjs.normalizeServerConfig; exports.normalizeVoucher = _chunkNCCEWVWYcjs.normalizeVoucher; exports.normalizeWebhookDestination = _chunkNCCEWVWYcjs.normalizeWebhookDestination; exports.normalizeWebhookSegment = _chunkNCCEWVWYcjs.normalizeWebhookSegment; exports.parseModelRef = _chunk57Y2EA2Gcjs.parseModelRef; exports.pickModelRefFromList = _chunk57Y2EA2Gcjs.pickModelRefFromList; exports.randomBase62 = _chunkNCCEWVWYcjs.randomBase62; exports.redactAuditText = _chunkHCOQQAZEcjs.redactAuditText; exports.resolveGatewayBinding = _chunkNCCEWVWYcjs.resolveGatewayBinding; exports.resolvePrefixTarget = _chunk57Y2EA2Gcjs.resolvePrefixTarget; exports.resolveRoute = _chunk57Y2EA2Gcjs.resolveRoute; exports.saveServerConfig = _chunkNCCEWVWYcjs.saveServerConfig; exports.startOfLocalDay = _chunkNCCEWVWYcjs.startOfLocalDay; exports.startOfLocalWeek = _chunkNCCEWVWYcjs.startOfLocalWeek; exports.toVoucherInfo = _chunkNCCEWVWYcjs.toVoucherInfo; exports.validateEndpointModelConfig = _chunk57Y2EA2Gcjs.validateEndpointModelConfig; exports.validateImagesServerConfig = _chunkNCCEWVWYcjs.validateImagesServerConfig; exports.validateOutboundPermissions = _chunkNCCEWVWYcjs.validateOutboundPermissions; exports.validateSearchServerConfig = _chunkNCCEWVWYcjs.validateSearchServerConfig; exports.verifyKey = _chunkNCCEWVWYcjs.verifyKey; exports.verifyPresentedKey = _chunkNCCEWVWYcjs.verifyPresentedKey; exports.voucherCodePrefix = _chunkNCCEWVWYcjs.voucherCodePrefix;
@@ -1,6 +1,6 @@
1
1
  import { VoucherConfig } from '@omnicross/contracts/voucher-types';
2
- import { c as EndpointRoutingConfig, G as GatewayBinding, U as UserMessageQueueConfig, b as ConcurrencyQueueConfig, $ as AnthropicConfigSegment, S as SearchServerConfig, q as OutboundApiDeps, u as OutboundApiServerStatus, w as OutboundFormatUrls, A as AccountProbeConfig, a as AllowanceSchedulingConfig, F as FingerprintConfig, t as OutboundApiServerConfig, p as ModelPrefixTargets, H as OutboundProxyConfig, k as ImagesServerConfig, v as OutboundEndpoint, R as RequestRole, _ as ModelRef, n as KindMappedEndpoint, o as ModelKind, B as OutboundPermission, O as OutboundKeyDb, r as OutboundApiKeyCreated } from './types-C6m-Db26.cjs';
3
- export { C as ChatDispatchMode, D as DEFAULT_IMAGE_MODEL_ROUTES, E as ENDPOINT_MODEL_KINDS, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, g as GatewayBindingTarget, h as GatewayModelMapping, I as IMAGE_PROVIDER_IDS, i as ImageProviderId, j as ImagesCodexAdapterConfig, K as KeySpendReader, l as KeySpendSeeder, m as KeySpendTracker, M as MessagesModelKind, s as OutboundApiKeyInfo, x as OutboundKeyActivationMode, y as OutboundKeyDbRow, z as OutboundKeyPolicy, J as ResponsesModelKind, V as VoucherCreateInput, L as VoucherDb, N as computeVoucherGrant, P as generateVoucherCode, Q as hashVoucherCode, T as newVoucherId, W as startOfLocalDay, X as startOfLocalWeek, Y as toVoucherInfo, Z as voucherCodePrefix } from './types-C6m-Db26.cjs';
2
+ import { c as EndpointRoutingConfig, G as GatewayBinding, U as UserMessageQueueConfig, b as ConcurrencyQueueConfig, $ as AnthropicConfigSegment, S as SearchServerConfig, q as OutboundApiDeps, u as OutboundApiServerStatus, w as OutboundFormatUrls, A as AccountProbeConfig, a as AllowanceSchedulingConfig, F as FingerprintConfig, t as OutboundApiServerConfig, p as ModelPrefixTargets, H as OutboundProxyConfig, k as ImagesServerConfig, v as OutboundEndpoint, R as RequestRole, a0 as GatewayMappingEffort, _ as ModelRef, n as KindMappedEndpoint, o as ModelKind, B as OutboundPermission, g as GatewayBindingTarget, O as OutboundKeyDb, r as OutboundApiKeyCreated } from './types-Dt1bgHPg.cjs';
3
+ export { C as ChatDispatchMode, D as DEFAULT_IMAGE_MODEL_ROUTES, E as ENDPOINT_MODEL_KINDS, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, h as GatewayModelMapping, I as IMAGE_PROVIDER_IDS, i as ImageProviderId, j as ImagesCodexAdapterConfig, K as KeySpendReader, l as KeySpendSeeder, m as KeySpendTracker, M as MessagesModelKind, s as OutboundApiKeyInfo, x as OutboundKeyActivationMode, y as OutboundKeyDbRow, z as OutboundKeyPolicy, J as ResponsesModelKind, V as VoucherCreateInput, L as VoucherDb, N as computeVoucherGrant, P as generateVoucherCode, Q as hashVoucherCode, T as newVoucherId, W as startOfLocalDay, X as startOfLocalWeek, Y as toVoucherInfo, Z as voucherCodePrefix } from './types-Dt1bgHPg.cjs';
4
4
  import { ProxyConfig } from '@omnicross/contracts/account-tokens-types';
5
5
  import { AuditConfig } from '@omnicross/contracts/audit-types';
6
6
  import { BillingConfig } from '@omnicross/contracts/billing-types';
@@ -16,14 +16,14 @@ export { BillingCaptureContext, beginBillingCapture } from './outbound-api/billi
16
16
  import { K as KeyCostLimits, M as ModelRestriction } from './keyPolicy-zdWTu3CQ.cjs';
17
17
  export { a as KeyExpiryInput, b as KeyExpiryResult, c as KeySpend, Q as QuotaDecision, d as checkKeyQuota, e as computeKeyExpiry } from './keyPolicy-zdWTu3CQ.cjs';
18
18
  import { D as IngressFormat } from './types-BSIJdsyl.cjs';
19
- export { S as SUBSCRIPTION_PROVIDER_IDS, e as endpointSupportsSubscription, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from './routeResolver-C2z0pp-q.cjs';
19
+ export { S as SUBSCRIPTION_PROVIDER_IDS, e as endpointSupportsSubscription, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from './routeResolver-BdNJvTZP.cjs';
20
20
  export { BoundAccountFallbackPolicy, BoundAccountSelectionError, BoundAccountSelectionFailureReason, boundAccountSelectionMessage, isBoundAccountSelectionError } from './pipeline/BoundAccountSelectionError.cjs';
21
+ import '@omnicross/contracts/completion-types';
21
22
  import '@omnicross/contracts/health-logging-types';
22
23
  import './logger-4GvQNzhE.cjs';
23
24
  import './ports/provider-config-source.cjs';
24
25
  import '@omnicross/contracts/llm-config';
25
26
  import './transformer/types.cjs';
26
- import '@omnicross/contracts/completion-types';
27
27
  import './transformer/TransformerService.cjs';
28
28
  import './ProviderProxy-Bz_nkOwq.cjs';
29
29
  import '@omnicross/contracts/image-generation-types';
@@ -553,6 +553,39 @@ declare function candidateBackgroundModelIds(bindings: readonly GatewayBinding[]
553
553
  */
554
554
  declare function resolveGatewayBinding(input: ResolveGatewayBindingInput): GatewayBindingResolution;
555
555
 
556
+ /**
557
+ * mappingEffortInjection — stamp a mapping-pinned default thinking level onto
558
+ * a parsed request body, in the INGRESS wire's own native field.
559
+ *
560
+ * Downstream-route model mappings may pin an effort (`gpt-5.6-sol-xhigh` →
561
+ * `gpt-5.6-sol` @ xhigh) for clients that cannot express one on the wire. The
562
+ * outbound router applies it at ONE seam — after route resolution, before the
563
+ * replayed body is dispatched — so every downstream path (same-format verbatim
564
+ * relays, transformer chains, subscription fallback copies) sees a body
565
+ * byte-equivalent to one a client expressing the intent natively would have
566
+ * sent. Capability negotiation therefore stays exactly where it already lives
567
+ * (the transformer-chain reasoning encoders).
568
+ *
569
+ * Client-first semantics: the default is injected ONLY when the request body
570
+ * carries no reasoning intent of its own. A client-sent effort/thinking always
571
+ * wins, and a mapping without `effort` never touches the body.
572
+ *
573
+ * @module outbound-api/mappingEffortInjection
574
+ */
575
+
576
+ /**
577
+ * Mutate `body` in place with the wire-native encoding of `effort` when the
578
+ * client expressed no reasoning intent. Returns whether anything was written —
579
+ * the caller re-serializes the replayed body ONLY then (no effort, client
580
+ * intent present, or a no-op level ⇒ byte-identical replay).
581
+ *
582
+ * A CUSTOM (non-canonical) effort is written verbatim: same-format paths pass
583
+ * it upstream unchanged (the escape hatch for levels our presets don't know);
584
+ * cross-format negotiation does not recognize it and drops the injected
585
+ * thinking instead of guessing.
586
+ */
587
+ declare function injectMappingEffortDefault(endpoint: OutboundEndpoint, effort: GatewayMappingEffort | undefined, body: Record<string, unknown>): boolean;
588
+
556
589
  /**
557
590
  * modelPrefixDispatch — pure model-name PREFIX classification for the `chat`
558
591
  * endpoint's opt-in `dispatchMode: 'prefix'` (openai-chat-bridge #11, design D2).
@@ -920,6 +953,14 @@ interface VerifiedKey {
920
953
  * is the zero-regression gate. Absent ⇒ NO model check runs for this key.
921
954
  */
922
955
  modelRestriction?: ModelRestriction;
956
+ /**
957
+ * DIRECT upstream passthrough target (key→upstream binding), carried from the
958
+ * row so the wire layer relays WITHOUT a second DB read. A `provider` target
959
+ * is the verbatim transparent relay; a claude/kimi subscription target rides
960
+ * the messages pipeline's same-format relay. Absent ⇒ the key is served by
961
+ * the downstream routes as before.
962
+ */
963
+ boundUpstream?: GatewayBindingTarget;
923
964
  }
924
965
  /** The reason-bearing verify outcome (design D2). */
925
966
  type KeyVerification = {
@@ -1115,4 +1156,4 @@ declare function getOutboundApiServer(deps?: OutboundApiDeps, onPortChange?: (po
1115
1156
  /** Reset the singleton (tests / teardown only). */
1116
1157
  declare function __resetOutboundApiServerForTests(): void;
1117
1158
 
1118
- export { AccountProbeConfig, AllowanceSchedulingConfig, type ApiServerSettingsStore, type ApplyConfigInput, type CodexSearchRouteDeps, ConcurrencyQueueConfig, ConcurrencyQueueFullError, ConcurrencyWaitCancelledError, ConcurrencyWaitTimeoutError, DEFAULT_ACCOUNT_PROBE, DEFAULT_ALLOWANCE_SCHEDULING, DEFAULT_CONCURRENCY_QUEUE, DEFAULT_FINGERPRINT, DEFAULT_IMAGES_SERVER_CONFIG, DEFAULT_OUTBOUND_PORT, DEFAULT_SEARCH_SERVER_CONFIG, DEFAULT_USER_MESSAGE_QUEUE, EndpointRoutingConfig, FingerprintConfig, type GateAcquireOptions, type GateAcquisition, type GateSlot, type GateStatusEntry, GatewayBinding, type GatewayBindingResolution, IMAGE_SERVER_HARD_CEILINGS, ImagesServerConfig, KeyCostLimits, type KeyVerification, KeyedMutex, KindMappedEndpoint, LEGACY_OUTBOUND_PERMISSIONS, ModelKind, type ModelPrefixKind, ModelPrefixTargets, OUTBOUND_API_SERVER_CONFIG_KEY, OutboundApiDeps, OutboundApiKeyCreated, OutboundApiServer, OutboundApiServerConfig, OutboundApiServerStatus, OutboundConcurrencyGate, OutboundEndpoint, OutboundFormatUrls, OutboundKeyDb, OutboundPermission, OutboundProxyConfig, OutboundRateLimiter, type PreparedOutboundApiConfig, RequestRole, type ResolveGatewayBindingInput, SearchServerConfig, type SerialAcquireOptions, type SerialQueueStatusEntry, SerialQueueTimeoutError, type SerialSlot, UserMessageQueueConfig, UserMessageSerialQueue, type VerifiedKey, __resetOutboundApiServerForTests, candidateBackgroundModelIds, candidateGatewayBindings, classifyModelPrefix, codexSearchRoutePath, createIntegrationKey, createNamedKey, defaultServerConfig, detectModelKind, detectRequestRole, effectiveOutboundPermissions, endpointToIngressFormat, formatUrls, gatewayBindingToEndpointConfig, getOutboundApiServer, handleCodexSearchRequest, handleVoucherRedeem, hashKey, isCodexSearchRequest, isConcurrencyRejection, isKindMappedEndpoint, isRedeemRequest, isSerialQueueTimeout, isUserMessageRequest, legacyEndpointsToBindings, loadServerConfig, mergeServerConfig, modelKindsForEndpoint, normalizeAccountProbe, normalizeAllowanceScheduling, normalizeAudit, normalizeBilling, normalizeFingerprint, normalizeGatewayBindings, normalizeImagesServerConfig, normalizePrefixTargets, normalizeProxyConfig, normalizeProxySegment, normalizeQueueSegments, normalizeSearchApiProviderConfigs, normalizeSearchServerConfig, normalizeServerConfig, normalizeVoucher, normalizeWebhookDestination, normalizeWebhookSegment, randomBase62, resolveGatewayBinding, resolvePrefixTarget, saveServerConfig, validateEndpointModelConfig, validateImagesServerConfig, validateOutboundPermissions, validateSearchServerConfig, verifyKey, verifyPresentedKey };
1159
+ export { AccountProbeConfig, AllowanceSchedulingConfig, type ApiServerSettingsStore, type ApplyConfigInput, type CodexSearchRouteDeps, ConcurrencyQueueConfig, ConcurrencyQueueFullError, ConcurrencyWaitCancelledError, ConcurrencyWaitTimeoutError, DEFAULT_ACCOUNT_PROBE, DEFAULT_ALLOWANCE_SCHEDULING, DEFAULT_CONCURRENCY_QUEUE, DEFAULT_FINGERPRINT, DEFAULT_IMAGES_SERVER_CONFIG, DEFAULT_OUTBOUND_PORT, DEFAULT_SEARCH_SERVER_CONFIG, DEFAULT_USER_MESSAGE_QUEUE, EndpointRoutingConfig, FingerprintConfig, type GateAcquireOptions, type GateAcquisition, type GateSlot, type GateStatusEntry, GatewayBinding, type GatewayBindingResolution, GatewayBindingTarget, IMAGE_SERVER_HARD_CEILINGS, ImagesServerConfig, KeyCostLimits, type KeyVerification, KeyedMutex, KindMappedEndpoint, LEGACY_OUTBOUND_PERMISSIONS, ModelKind, type ModelPrefixKind, ModelPrefixTargets, OUTBOUND_API_SERVER_CONFIG_KEY, OutboundApiDeps, OutboundApiKeyCreated, OutboundApiServer, OutboundApiServerConfig, OutboundApiServerStatus, OutboundConcurrencyGate, OutboundEndpoint, OutboundFormatUrls, OutboundKeyDb, OutboundPermission, OutboundProxyConfig, OutboundRateLimiter, type PreparedOutboundApiConfig, RequestRole, type ResolveGatewayBindingInput, SearchServerConfig, type SerialAcquireOptions, type SerialQueueStatusEntry, SerialQueueTimeoutError, type SerialSlot, UserMessageQueueConfig, UserMessageSerialQueue, type VerifiedKey, __resetOutboundApiServerForTests, candidateBackgroundModelIds, candidateGatewayBindings, classifyModelPrefix, codexSearchRoutePath, createIntegrationKey, createNamedKey, defaultServerConfig, detectModelKind, detectRequestRole, effectiveOutboundPermissions, endpointToIngressFormat, formatUrls, gatewayBindingToEndpointConfig, getOutboundApiServer, handleCodexSearchRequest, handleVoucherRedeem, hashKey, injectMappingEffortDefault, isCodexSearchRequest, isConcurrencyRejection, isKindMappedEndpoint, isRedeemRequest, isSerialQueueTimeout, isUserMessageRequest, legacyEndpointsToBindings, loadServerConfig, mergeServerConfig, modelKindsForEndpoint, normalizeAccountProbe, normalizeAllowanceScheduling, normalizeAudit, normalizeBilling, normalizeFingerprint, normalizeGatewayBindings, normalizeImagesServerConfig, normalizePrefixTargets, normalizeProxyConfig, normalizeProxySegment, normalizeQueueSegments, normalizeSearchApiProviderConfigs, normalizeSearchServerConfig, normalizeServerConfig, normalizeVoucher, normalizeWebhookDestination, normalizeWebhookSegment, randomBase62, resolveGatewayBinding, resolvePrefixTarget, saveServerConfig, validateEndpointModelConfig, validateImagesServerConfig, validateOutboundPermissions, validateSearchServerConfig, verifyKey, verifyPresentedKey };
@@ -1,6 +1,6 @@
1
1
  import { VoucherConfig } from '@omnicross/contracts/voucher-types';
2
- import { c as EndpointRoutingConfig, G as GatewayBinding, U as UserMessageQueueConfig, b as ConcurrencyQueueConfig, $ as AnthropicConfigSegment, S as SearchServerConfig, q as OutboundApiDeps, u as OutboundApiServerStatus, w as OutboundFormatUrls, A as AccountProbeConfig, a as AllowanceSchedulingConfig, F as FingerprintConfig, t as OutboundApiServerConfig, p as ModelPrefixTargets, H as OutboundProxyConfig, k as ImagesServerConfig, v as OutboundEndpoint, R as RequestRole, _ as ModelRef, n as KindMappedEndpoint, o as ModelKind, B as OutboundPermission, O as OutboundKeyDb, r as OutboundApiKeyCreated } from './types-Da735j2d.js';
3
- export { C as ChatDispatchMode, D as DEFAULT_IMAGE_MODEL_ROUTES, E as ENDPOINT_MODEL_KINDS, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, g as GatewayBindingTarget, h as GatewayModelMapping, I as IMAGE_PROVIDER_IDS, i as ImageProviderId, j as ImagesCodexAdapterConfig, K as KeySpendReader, l as KeySpendSeeder, m as KeySpendTracker, M as MessagesModelKind, s as OutboundApiKeyInfo, x as OutboundKeyActivationMode, y as OutboundKeyDbRow, z as OutboundKeyPolicy, J as ResponsesModelKind, V as VoucherCreateInput, L as VoucherDb, N as computeVoucherGrant, P as generateVoucherCode, Q as hashVoucherCode, T as newVoucherId, W as startOfLocalDay, X as startOfLocalWeek, Y as toVoucherInfo, Z as voucherCodePrefix } from './types-Da735j2d.js';
2
+ import { c as EndpointRoutingConfig, G as GatewayBinding, U as UserMessageQueueConfig, b as ConcurrencyQueueConfig, $ as AnthropicConfigSegment, S as SearchServerConfig, q as OutboundApiDeps, u as OutboundApiServerStatus, w as OutboundFormatUrls, A as AccountProbeConfig, a as AllowanceSchedulingConfig, F as FingerprintConfig, t as OutboundApiServerConfig, p as ModelPrefixTargets, H as OutboundProxyConfig, k as ImagesServerConfig, v as OutboundEndpoint, R as RequestRole, a0 as GatewayMappingEffort, _ as ModelRef, n as KindMappedEndpoint, o as ModelKind, B as OutboundPermission, g as GatewayBindingTarget, O as OutboundKeyDb, r as OutboundApiKeyCreated } from './types-IRPv4i1Y.js';
3
+ export { C as ChatDispatchMode, D as DEFAULT_IMAGE_MODEL_ROUTES, E as ENDPOINT_MODEL_KINDS, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, h as GatewayModelMapping, I as IMAGE_PROVIDER_IDS, i as ImageProviderId, j as ImagesCodexAdapterConfig, K as KeySpendReader, l as KeySpendSeeder, m as KeySpendTracker, M as MessagesModelKind, s as OutboundApiKeyInfo, x as OutboundKeyActivationMode, y as OutboundKeyDbRow, z as OutboundKeyPolicy, J as ResponsesModelKind, V as VoucherCreateInput, L as VoucherDb, N as computeVoucherGrant, P as generateVoucherCode, Q as hashVoucherCode, T as newVoucherId, W as startOfLocalDay, X as startOfLocalWeek, Y as toVoucherInfo, Z as voucherCodePrefix } from './types-IRPv4i1Y.js';
4
4
  import { ProxyConfig } from '@omnicross/contracts/account-tokens-types';
5
5
  import { AuditConfig } from '@omnicross/contracts/audit-types';
6
6
  import { BillingConfig } from '@omnicross/contracts/billing-types';
@@ -16,14 +16,14 @@ export { BillingCaptureContext, beginBillingCapture } from './outbound-api/billi
16
16
  import { K as KeyCostLimits, M as ModelRestriction } from './keyPolicy-zdWTu3CQ.js';
17
17
  export { a as KeyExpiryInput, b as KeyExpiryResult, c as KeySpend, Q as QuotaDecision, d as checkKeyQuota, e as computeKeyExpiry } from './keyPolicy-zdWTu3CQ.js';
18
18
  import { D as IngressFormat } from './types-By9Tg6-I.js';
19
- export { S as SUBSCRIPTION_PROVIDER_IDS, e as endpointSupportsSubscription, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from './routeResolver-BLTleO4H.js';
19
+ export { S as SUBSCRIPTION_PROVIDER_IDS, e as endpointSupportsSubscription, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from './routeResolver-zVoCx9r3.js';
20
20
  export { BoundAccountFallbackPolicy, BoundAccountSelectionError, BoundAccountSelectionFailureReason, boundAccountSelectionMessage, isBoundAccountSelectionError } from './pipeline/BoundAccountSelectionError.js';
21
+ import '@omnicross/contracts/completion-types';
21
22
  import '@omnicross/contracts/health-logging-types';
22
23
  import './logger-4GvQNzhE.js';
23
24
  import './ports/provider-config-source.js';
24
25
  import '@omnicross/contracts/llm-config';
25
26
  import './transformer/types.js';
26
- import '@omnicross/contracts/completion-types';
27
27
  import './transformer/TransformerService.js';
28
28
  import './ProviderProxy-Ckr6oTrE.js';
29
29
  import '@omnicross/contracts/image-generation-types';
@@ -553,6 +553,39 @@ declare function candidateBackgroundModelIds(bindings: readonly GatewayBinding[]
553
553
  */
554
554
  declare function resolveGatewayBinding(input: ResolveGatewayBindingInput): GatewayBindingResolution;
555
555
 
556
+ /**
557
+ * mappingEffortInjection — stamp a mapping-pinned default thinking level onto
558
+ * a parsed request body, in the INGRESS wire's own native field.
559
+ *
560
+ * Downstream-route model mappings may pin an effort (`gpt-5.6-sol-xhigh` →
561
+ * `gpt-5.6-sol` @ xhigh) for clients that cannot express one on the wire. The
562
+ * outbound router applies it at ONE seam — after route resolution, before the
563
+ * replayed body is dispatched — so every downstream path (same-format verbatim
564
+ * relays, transformer chains, subscription fallback copies) sees a body
565
+ * byte-equivalent to one a client expressing the intent natively would have
566
+ * sent. Capability negotiation therefore stays exactly where it already lives
567
+ * (the transformer-chain reasoning encoders).
568
+ *
569
+ * Client-first semantics: the default is injected ONLY when the request body
570
+ * carries no reasoning intent of its own. A client-sent effort/thinking always
571
+ * wins, and a mapping without `effort` never touches the body.
572
+ *
573
+ * @module outbound-api/mappingEffortInjection
574
+ */
575
+
576
+ /**
577
+ * Mutate `body` in place with the wire-native encoding of `effort` when the
578
+ * client expressed no reasoning intent. Returns whether anything was written —
579
+ * the caller re-serializes the replayed body ONLY then (no effort, client
580
+ * intent present, or a no-op level ⇒ byte-identical replay).
581
+ *
582
+ * A CUSTOM (non-canonical) effort is written verbatim: same-format paths pass
583
+ * it upstream unchanged (the escape hatch for levels our presets don't know);
584
+ * cross-format negotiation does not recognize it and drops the injected
585
+ * thinking instead of guessing.
586
+ */
587
+ declare function injectMappingEffortDefault(endpoint: OutboundEndpoint, effort: GatewayMappingEffort | undefined, body: Record<string, unknown>): boolean;
588
+
556
589
  /**
557
590
  * modelPrefixDispatch — pure model-name PREFIX classification for the `chat`
558
591
  * endpoint's opt-in `dispatchMode: 'prefix'` (openai-chat-bridge #11, design D2).
@@ -920,6 +953,14 @@ interface VerifiedKey {
920
953
  * is the zero-regression gate. Absent ⇒ NO model check runs for this key.
921
954
  */
922
955
  modelRestriction?: ModelRestriction;
956
+ /**
957
+ * DIRECT upstream passthrough target (key→upstream binding), carried from the
958
+ * row so the wire layer relays WITHOUT a second DB read. A `provider` target
959
+ * is the verbatim transparent relay; a claude/kimi subscription target rides
960
+ * the messages pipeline's same-format relay. Absent ⇒ the key is served by
961
+ * the downstream routes as before.
962
+ */
963
+ boundUpstream?: GatewayBindingTarget;
923
964
  }
924
965
  /** The reason-bearing verify outcome (design D2). */
925
966
  type KeyVerification = {
@@ -1115,4 +1156,4 @@ declare function getOutboundApiServer(deps?: OutboundApiDeps, onPortChange?: (po
1115
1156
  /** Reset the singleton (tests / teardown only). */
1116
1157
  declare function __resetOutboundApiServerForTests(): void;
1117
1158
 
1118
- export { AccountProbeConfig, AllowanceSchedulingConfig, type ApiServerSettingsStore, type ApplyConfigInput, type CodexSearchRouteDeps, ConcurrencyQueueConfig, ConcurrencyQueueFullError, ConcurrencyWaitCancelledError, ConcurrencyWaitTimeoutError, DEFAULT_ACCOUNT_PROBE, DEFAULT_ALLOWANCE_SCHEDULING, DEFAULT_CONCURRENCY_QUEUE, DEFAULT_FINGERPRINT, DEFAULT_IMAGES_SERVER_CONFIG, DEFAULT_OUTBOUND_PORT, DEFAULT_SEARCH_SERVER_CONFIG, DEFAULT_USER_MESSAGE_QUEUE, EndpointRoutingConfig, FingerprintConfig, type GateAcquireOptions, type GateAcquisition, type GateSlot, type GateStatusEntry, GatewayBinding, type GatewayBindingResolution, IMAGE_SERVER_HARD_CEILINGS, ImagesServerConfig, KeyCostLimits, type KeyVerification, KeyedMutex, KindMappedEndpoint, LEGACY_OUTBOUND_PERMISSIONS, ModelKind, type ModelPrefixKind, ModelPrefixTargets, OUTBOUND_API_SERVER_CONFIG_KEY, OutboundApiDeps, OutboundApiKeyCreated, OutboundApiServer, OutboundApiServerConfig, OutboundApiServerStatus, OutboundConcurrencyGate, OutboundEndpoint, OutboundFormatUrls, OutboundKeyDb, OutboundPermission, OutboundProxyConfig, OutboundRateLimiter, type PreparedOutboundApiConfig, RequestRole, type ResolveGatewayBindingInput, SearchServerConfig, type SerialAcquireOptions, type SerialQueueStatusEntry, SerialQueueTimeoutError, type SerialSlot, UserMessageQueueConfig, UserMessageSerialQueue, type VerifiedKey, __resetOutboundApiServerForTests, candidateBackgroundModelIds, candidateGatewayBindings, classifyModelPrefix, codexSearchRoutePath, createIntegrationKey, createNamedKey, defaultServerConfig, detectModelKind, detectRequestRole, effectiveOutboundPermissions, endpointToIngressFormat, formatUrls, gatewayBindingToEndpointConfig, getOutboundApiServer, handleCodexSearchRequest, handleVoucherRedeem, hashKey, isCodexSearchRequest, isConcurrencyRejection, isKindMappedEndpoint, isRedeemRequest, isSerialQueueTimeout, isUserMessageRequest, legacyEndpointsToBindings, loadServerConfig, mergeServerConfig, modelKindsForEndpoint, normalizeAccountProbe, normalizeAllowanceScheduling, normalizeAudit, normalizeBilling, normalizeFingerprint, normalizeGatewayBindings, normalizeImagesServerConfig, normalizePrefixTargets, normalizeProxyConfig, normalizeProxySegment, normalizeQueueSegments, normalizeSearchApiProviderConfigs, normalizeSearchServerConfig, normalizeServerConfig, normalizeVoucher, normalizeWebhookDestination, normalizeWebhookSegment, randomBase62, resolveGatewayBinding, resolvePrefixTarget, saveServerConfig, validateEndpointModelConfig, validateImagesServerConfig, validateOutboundPermissions, validateSearchServerConfig, verifyKey, verifyPresentedKey };
1159
+ export { AccountProbeConfig, AllowanceSchedulingConfig, type ApiServerSettingsStore, type ApplyConfigInput, type CodexSearchRouteDeps, ConcurrencyQueueConfig, ConcurrencyQueueFullError, ConcurrencyWaitCancelledError, ConcurrencyWaitTimeoutError, DEFAULT_ACCOUNT_PROBE, DEFAULT_ALLOWANCE_SCHEDULING, DEFAULT_CONCURRENCY_QUEUE, DEFAULT_FINGERPRINT, DEFAULT_IMAGES_SERVER_CONFIG, DEFAULT_OUTBOUND_PORT, DEFAULT_SEARCH_SERVER_CONFIG, DEFAULT_USER_MESSAGE_QUEUE, EndpointRoutingConfig, FingerprintConfig, type GateAcquireOptions, type GateAcquisition, type GateSlot, type GateStatusEntry, GatewayBinding, type GatewayBindingResolution, GatewayBindingTarget, IMAGE_SERVER_HARD_CEILINGS, ImagesServerConfig, KeyCostLimits, type KeyVerification, KeyedMutex, KindMappedEndpoint, LEGACY_OUTBOUND_PERMISSIONS, ModelKind, type ModelPrefixKind, ModelPrefixTargets, OUTBOUND_API_SERVER_CONFIG_KEY, OutboundApiDeps, OutboundApiKeyCreated, OutboundApiServer, OutboundApiServerConfig, OutboundApiServerStatus, OutboundConcurrencyGate, OutboundEndpoint, OutboundFormatUrls, OutboundKeyDb, OutboundPermission, OutboundProxyConfig, OutboundRateLimiter, type PreparedOutboundApiConfig, RequestRole, type ResolveGatewayBindingInput, SearchServerConfig, type SerialAcquireOptions, type SerialQueueStatusEntry, SerialQueueTimeoutError, type SerialSlot, UserMessageQueueConfig, UserMessageSerialQueue, type VerifiedKey, __resetOutboundApiServerForTests, candidateBackgroundModelIds, candidateGatewayBindings, classifyModelPrefix, codexSearchRoutePath, createIntegrationKey, createNamedKey, defaultServerConfig, detectModelKind, detectRequestRole, effectiveOutboundPermissions, endpointToIngressFormat, formatUrls, gatewayBindingToEndpointConfig, getOutboundApiServer, handleCodexSearchRequest, handleVoucherRedeem, hashKey, injectMappingEffortDefault, isCodexSearchRequest, isConcurrencyRejection, isKindMappedEndpoint, isRedeemRequest, isSerialQueueTimeout, isUserMessageRequest, legacyEndpointsToBindings, loadServerConfig, mergeServerConfig, modelKindsForEndpoint, normalizeAccountProbe, normalizeAllowanceScheduling, normalizeAudit, normalizeBilling, normalizeFingerprint, normalizeGatewayBindings, normalizeImagesServerConfig, normalizePrefixTargets, normalizeProxyConfig, normalizeProxySegment, normalizeQueueSegments, normalizeSearchApiProviderConfigs, normalizeSearchServerConfig, normalizeServerConfig, normalizeVoucher, normalizeWebhookDestination, normalizeWebhookSegment, randomBase62, resolveGatewayBinding, resolvePrefixTarget, saveServerConfig, validateEndpointModelConfig, validateImagesServerConfig, validateOutboundPermissions, validateSearchServerConfig, verifyKey, verifyPresentedKey };
@@ -39,6 +39,7 @@ import {
39
39
  handleVoucherRedeem,
40
40
  hashKey,
41
41
  hashVoucherCode,
42
+ injectMappingEffortDefault,
42
43
  isCodexSearchRequest,
43
44
  isConcurrencyRejection,
44
45
  isRedeemRequest,
@@ -77,17 +78,17 @@ import {
77
78
  verifyKey,
78
79
  verifyPresentedKey,
79
80
  voucherCodePrefix
80
- } from "./chunk-YV4JSBPA.js";
81
+ } from "./chunk-L4L77G3X.js";
81
82
  import "./chunk-WTQMX2Q6.js";
82
- import "./chunk-MPFOC7AT.js";
83
+ import "./chunk-24W3DVGI.js";
83
84
  import "./chunk-V53ZEFXC.js";
84
85
  import "./chunk-7PIUVCKK.js";
85
86
  import "./chunk-TKZ3DZS5.js";
86
87
  import "./chunk-FU7EAR73.js";
87
88
  import "./chunk-IDPMD4B7.js";
88
- import "./chunk-K6J2RIEX.js";
89
- import "./chunk-ZJJBITUN.js";
90
- import "./chunk-F6P4DIBL.js";
89
+ import "./chunk-NDJSLJIA.js";
90
+ import "./chunk-IAWLTZUP.js";
91
+ import "./chunk-TLYFFUW4.js";
91
92
  import "./chunk-OXBGNEYR.js";
92
93
  import "./chunk-QIIAMBTM.js";
93
94
  import "./chunk-FXR6N3SR.js";
@@ -101,7 +102,7 @@ import "./chunk-VVEHS2LI.js";
101
102
  import "./chunk-4LSZ7NFM.js";
102
103
  import "./chunk-XTEI64OU.js";
103
104
  import "./chunk-XX6NQJMA.js";
104
- import "./chunk-NCZDUBC2.js";
105
+ import "./chunk-WYUXJKMK.js";
105
106
  import "./chunk-ONTTXSRL.js";
106
107
  import "./chunk-OE6TDIWW.js";
107
108
  import "./chunk-DRWHTIIZ.js";
@@ -161,15 +162,15 @@ import "./chunk-FMOBD2OQ.js";
161
162
  import "./chunk-HUZZZ3JL.js";
162
163
  import "./chunk-H5JUT3KV.js";
163
164
  import "./chunk-5NJLQ6T6.js";
164
- import "./chunk-EE7VP4O3.js";
165
+ import "./chunk-HQ7C3VB6.js";
165
166
  import "./chunk-QSOHEDKO.js";
166
167
  import "./chunk-YEHQ5FXZ.js";
167
168
  import "./chunk-WYVGULTQ.js";
168
169
  import "./chunk-ZLNHPUFA.js";
169
- import "./chunk-NTF7TLT7.js";
170
+ import "./chunk-LBIXTHP7.js";
170
171
  import "./chunk-3WD4HTR2.js";
171
172
  import "./chunk-FYPKKMB3.js";
172
- import "./chunk-GL6XM527.js";
173
+ import "./chunk-TX7ZM4OI.js";
173
174
  import "./chunk-4RM22ETG.js";
174
175
  import "./chunk-4JOU54M5.js";
175
176
  import "./chunk-4PFWFODB.js";
@@ -228,6 +229,7 @@ export {
228
229
  handleVoucherRedeem,
229
230
  hashKey,
230
231
  hashVoucherCode,
232
+ injectMappingEffortDefault,
231
233
  isBoundAccountSelectionError,
232
234
  isCodexSearchRequest,
233
235
  isConcurrencyRejection,
@@ -1,5 +1,5 @@
1
1
  import { SubscriptionProviderId } from '@omnicross/contracts/subscription-types';
2
- import { a as AllowanceSchedulingConfig } from '../types-C6m-Db26.cjs';
2
+ import { a as AllowanceSchedulingConfig } from '../types-Dt1bgHPg.cjs';
3
3
  import { AccountAllowanceStore } from './AccountAllowanceStore.cjs';
4
4
  import '../types-BVwJQ9ZS.cjs';
5
5
  import '@omnicross/contracts/image-generation-types';
@@ -1,5 +1,5 @@
1
1
  import { SubscriptionProviderId } from '@omnicross/contracts/subscription-types';
2
- import { a as AllowanceSchedulingConfig } from '../types-Da735j2d.js';
2
+ import { a as AllowanceSchedulingConfig } from '../types-IRPv4i1Y.js';
3
3
  import { AccountAllowanceStore } from './AccountAllowanceStore.js';
4
4
  import '../types-VAHRysdP.js';
5
5
  import '@omnicross/contracts/image-generation-types';
@@ -2,9 +2,9 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkNKVZ6Z3Ycjs = require('../chunk-NKVZ6Z3Y.cjs');
5
+ var _chunk4HMAS74Xcjs = require('../chunk-4HMAS74X.cjs');
6
6
 
7
7
 
8
8
 
9
9
 
10
- exports.ACCOUNT_ROUTE_ACTIVITY_LIMIT = _chunkNKVZ6Z3Ycjs.ACCOUNT_ROUTE_ACTIVITY_LIMIT; exports.AccountRouteActivityStore = _chunkNKVZ6Z3Ycjs.AccountRouteActivityStore; exports.getSharedAccountRouteActivity = _chunkNKVZ6Z3Ycjs.getSharedAccountRouteActivity;
10
+ exports.ACCOUNT_ROUTE_ACTIVITY_LIMIT = _chunk4HMAS74Xcjs.ACCOUNT_ROUTE_ACTIVITY_LIMIT; exports.AccountRouteActivityStore = _chunk4HMAS74Xcjs.AccountRouteActivityStore; exports.getSharedAccountRouteActivity = _chunk4HMAS74Xcjs.getSharedAccountRouteActivity;
@@ -1,18 +1,40 @@
1
1
  /**
2
- * Bounded, metadata-only history of subscription account routing decisions.
2
+ * Bounded, metadata-only history of upstream routing decisions.
3
3
  *
4
4
  * Records are created at the shared upstream fetch seam, after authentication has
5
- * reported the account that will actually serve the request. The store is
6
- * intentionally process-local: it is useful for live operator diagnostics without
7
- * turning session/account affinity into a durable tracking database.
5
+ * reported the credential that will actually serve the request. TWO credential
6
+ * kinds share one timeline: subscription POOL ACCOUNTS (`credentialKind:
7
+ * 'subscription-account'`, identified by `accountId`) and BYO provider API KEYS
8
+ * (`credentialKind: 'provider-key'`, identified by `keyId` when the ApiKeyPool
9
+ * bound one). The store is intentionally process-local: it is useful for live
10
+ * operator diagnostics without turning session/account affinity into a durable
11
+ * tracking database.
8
12
  */
9
13
  declare const ACCOUNT_ROUTE_ACTIVITY_LIMIT = 300;
10
- type AccountRouteEndpoint = 'responses' | 'messages';
11
- type AccountRouteSessionSource = 'session-header' | 'thread-header' | 'body-session-id' | 'body-thread-id' | 'prompt-cache-key' | 'content-fingerprint' | 'api-key-fallback' | 'none';
14
+ type AccountRouteEndpoint = 'responses' | 'messages' | 'chat' | 'generateContent';
15
+ /**
16
+ * Which kind of upstream credential a row attributes. Absent on records minted
17
+ * by older callers — those are subscription-account rows (the historical only
18
+ * kind), so the DEFAULT is `'subscription-account'`.
19
+ */
20
+ type RouteCredentialKind = 'subscription-account' | 'provider-key';
21
+ type AccountRouteSessionSource = 'session-header' | 'thread-header' | 'body-session-id' | 'body-thread-id' | 'prompt-cache-key' | 'content-fingerprint' | 'api-key-fallback' | 'route-session-id' | 'none';
12
22
  type AccountRouteAffinity = 'new' | 'sticky' | 'switched' | 'untracked';
13
23
  interface AccountRouteActivityInput {
24
+ /**
25
+ * Display provider id: a subscription provider id (`claude`/`codex`/…) for
26
+ * account rows, the PROVIDER ROW id for provider-key rows. This is NOT the
27
+ * egress proxy key (`'byo'`) — it must be the id an operator recognizes.
28
+ */
14
29
  providerId: string;
15
- accountId: string;
30
+ /** Which kind of credential served the request. Defaults to
31
+ * `'subscription-account'` for back-compat with older callers. */
32
+ credentialKind?: RouteCredentialKind;
33
+ /** Subscription pool account id (required for `subscription-account` rows). */
34
+ accountId?: string;
35
+ /** ApiKeyPool key id when known (provider-key rows). Metadata only — the key
36
+ * STRING never enters this store. */
37
+ keyId?: string;
16
38
  endpoint: AccountRouteEndpoint;
17
39
  sessionKey?: string;
18
40
  sessionSource: AccountRouteSessionSource;
@@ -33,11 +55,14 @@ interface AccountRouteActivityRecord extends AccountRouteActivityInput {
33
55
  ts: number;
34
56
  affinity: AccountRouteAffinity;
35
57
  previousAccountId?: string;
58
+ /** For `provider-key` rows whose session switched keys (pool rotation). */
59
+ previousKeyId?: string;
36
60
  }
37
61
  interface AccountRouteActivityQuery {
38
62
  providerId?: string;
39
63
  accountId?: string;
40
64
  sessionKey?: string;
65
+ credentialKind?: RouteCredentialKind;
41
66
  limit?: number;
42
67
  }
43
68
  declare class AccountRouteActivityStore {
@@ -58,4 +83,4 @@ declare class AccountRouteActivityStore {
58
83
  }
59
84
  declare function getSharedAccountRouteActivity(): AccountRouteActivityStore;
60
85
 
61
- export { ACCOUNT_ROUTE_ACTIVITY_LIMIT, type AccountRouteActivityInput, type AccountRouteActivityQuery, type AccountRouteActivityRecord, AccountRouteActivityStore, type AccountRouteAffinity, type AccountRouteEndpoint, type AccountRouteSessionSource, getSharedAccountRouteActivity };
86
+ export { ACCOUNT_ROUTE_ACTIVITY_LIMIT, type AccountRouteActivityInput, type AccountRouteActivityQuery, type AccountRouteActivityRecord, AccountRouteActivityStore, type AccountRouteAffinity, type AccountRouteEndpoint, type AccountRouteSessionSource, type RouteCredentialKind, getSharedAccountRouteActivity };