@omnicross/core 0.4.4 → 0.4.6

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 (109) hide show
  1. package/dist/{CompletionService-BniP7j88.d.cts → CompletionService-BJu4AWVc.d.cts} +1 -1
  2. package/dist/{CompletionService-BqrKPwfA.d.ts → CompletionService-C4W2gBi_.d.ts} +1 -1
  3. package/dist/{ProviderProxy-Ckr6oTrE.d.ts → ProviderProxy-DxsNi3cO.d.ts} +1 -1
  4. package/dist/{ProviderProxy-Bz_nkOwq.d.cts → ProviderProxy-OuQPYW2I.d.cts} +1 -1
  5. package/dist/auth/GeminiCodeAssistProjectResolver.cjs +4 -4
  6. package/dist/auth/GeminiCodeAssistProjectResolver.js +3 -3
  7. package/dist/{chunk-NKVZ6Z3Y.cjs → chunk-4HMAS74X.cjs} +8 -3
  8. package/dist/{chunk-MPFOC7AT.js → chunk-5XG6FR5F.js} +2 -2
  9. package/dist/{chunk-VFFCV4J6.cjs → chunk-CXRJMNJJ.cjs} +12 -6
  10. package/dist/{chunk-E5RCCGE7.cjs → chunk-DF5JXK36.cjs} +2 -2
  11. package/dist/{chunk-NCZDUBC2.js → chunk-DRUT7H5H.js} +1 -1
  12. package/dist/{chunk-RX3BCX53.cjs → chunk-DV7656NN.cjs} +1208 -527
  13. package/dist/{chunk-CGEZQC2G.cjs → chunk-F3TT5XPV.cjs} +2 -2
  14. package/dist/{chunk-EE7VP4O3.js → chunk-HQ7C3VB6.js} +1 -1
  15. package/dist/{chunk-ZJJBITUN.js → chunk-IAWLTZUP.js} +2 -2
  16. package/dist/{chunk-57Y2EA2G.cjs → chunk-JGRNVH7C.cjs} +1 -1
  17. package/dist/{chunk-NTF7TLT7.js → chunk-LBIXTHP7.js} +11 -5
  18. package/dist/{chunk-GWC7HCZI.cjs → chunk-LWBXQXZ3.cjs} +1 -1
  19. package/dist/{chunk-7PIUVCKK.js → chunk-MZCJL3QU.js} +1 -1
  20. package/dist/{chunk-K6J2RIEX.js → chunk-NDJSLJIA.js} +1 -1
  21. package/dist/{chunk-UOOLU64V.cjs → chunk-QLVRJ5FS.cjs} +4 -4
  22. package/dist/{chunk-F6P4DIBL.js → chunk-TLYFFUW4.js} +1 -1
  23. package/dist/{chunk-YV4JSBPA.js → chunk-TU4BB776.js} +789 -108
  24. package/dist/{chunk-GL6XM527.js → chunk-TX7ZM4OI.js} +8 -3
  25. package/dist/{chunk-ZMERU7D3.js → chunk-VXHN5IDL.js} +1 -1
  26. package/dist/{chunk-NDIBVTBZ.cjs → chunk-XYFCNDJK.cjs} +2 -2
  27. package/dist/{chunk-X6GHTNDL.cjs → chunk-ZG57GAVU.cjs} +7 -7
  28. package/dist/{chunk-QWNUOR7F.cjs → chunk-ZTN2PVKO.cjs} +1 -1
  29. package/dist/completion/CompletionService.cjs +12 -12
  30. package/dist/completion/CompletionService.d.cts +2 -2
  31. package/dist/completion/CompletionService.d.ts +2 -2
  32. package/dist/completion/CompletionService.js +11 -11
  33. package/dist/completion.cjs +12 -12
  34. package/dist/completion.d.cts +2 -2
  35. package/dist/completion.d.ts +2 -2
  36. package/dist/completion.js +11 -11
  37. package/dist/image-generation.d.cts +4 -4
  38. package/dist/image-generation.d.ts +4 -4
  39. package/dist/index.cjs +14 -12
  40. package/dist/index.d.cts +7 -7
  41. package/dist/index.d.ts +7 -7
  42. package/dist/index.js +13 -11
  43. package/dist/openai-operation.d.cts +1 -1
  44. package/dist/openai-operation.d.ts +1 -1
  45. package/dist/outbound-api/routeResolver.cjs +2 -2
  46. package/dist/outbound-api/routeResolver.d.cts +5 -5
  47. package/dist/outbound-api/routeResolver.d.ts +5 -5
  48. package/dist/outbound-api/routeResolver.js +1 -1
  49. package/dist/outbound-api/subscriptionRegistryPort.d.cts +9 -1
  50. package/dist/outbound-api/subscriptionRegistryPort.d.ts +9 -1
  51. package/dist/outbound-api/types.d.cts +5 -5
  52. package/dist/outbound-api/types.d.ts +5 -5
  53. package/dist/outbound-api.cjs +14 -12
  54. package/dist/outbound-api.d.cts +49 -8
  55. package/dist/outbound-api.d.ts +49 -8
  56. package/dist/outbound-api.js +13 -11
  57. package/dist/pipeline/AccountAllowanceScheduling.d.cts +4 -4
  58. package/dist/pipeline/AccountAllowanceScheduling.d.ts +4 -4
  59. package/dist/pipeline/AccountRouteActivity.cjs +2 -2
  60. package/dist/pipeline/AccountRouteActivity.d.cts +33 -8
  61. package/dist/pipeline/AccountRouteActivity.d.ts +33 -8
  62. package/dist/pipeline/AccountRouteActivity.js +1 -1
  63. package/dist/pipeline/SubscriptionAuthSource.d.cts +11 -0
  64. package/dist/pipeline/SubscriptionAuthSource.d.ts +11 -0
  65. package/dist/pipeline/upstreamFetch.cjs +3 -3
  66. package/dist/pipeline/upstreamFetch.d.cts +15 -1
  67. package/dist/pipeline/upstreamFetch.d.ts +15 -1
  68. package/dist/pipeline/upstreamFetch.js +2 -2
  69. package/dist/ports.d.cts +4 -4
  70. package/dist/ports.d.ts +4 -4
  71. package/dist/provider-proxy/ProviderProxy.cjs +12 -12
  72. package/dist/provider-proxy/ProviderProxy.d.cts +2 -2
  73. package/dist/provider-proxy/ProviderProxy.d.ts +2 -2
  74. package/dist/provider-proxy/ProviderProxy.js +11 -11
  75. package/dist/provider-proxy/identity/codexCliHeaders.d.cts +6 -4
  76. package/dist/provider-proxy/identity/codexCliHeaders.d.ts +6 -4
  77. package/dist/provider-proxy/identity/openCodeGoHeaders.cjs +2 -2
  78. package/dist/provider-proxy/identity/openCodeGoHeaders.js +1 -1
  79. package/dist/provider-proxy/ingress/providerProxyShared.cjs +20 -12
  80. package/dist/provider-proxy/ingress/providerProxyShared.d.cts +54 -2
  81. package/dist/provider-proxy/ingress/providerProxyShared.d.ts +54 -2
  82. package/dist/provider-proxy/ingress/providerProxyShared.js +19 -11
  83. package/dist/provider-proxy/types.d.cts +1 -1
  84. package/dist/provider-proxy/types.d.ts +1 -1
  85. package/dist/provider-proxy.cjs +12 -12
  86. package/dist/provider-proxy.d.cts +6 -6
  87. package/dist/provider-proxy.d.ts +6 -6
  88. package/dist/provider-proxy.js +11 -11
  89. package/dist/{routeResolver-C2z0pp-q.d.cts → routeResolver-BQYMEXer.d.cts} +2 -2
  90. package/dist/{routeResolver-BLTleO4H.d.ts → routeResolver-DTfyzaFb.d.ts} +2 -2
  91. package/dist/transformer/transformers/AntigravityTransformer.cjs +6 -6
  92. package/dist/transformer/transformers/AntigravityTransformer.js +5 -5
  93. package/dist/transformer/transformers/OpenAITransformer.cjs +2 -2
  94. package/dist/transformer/transformers/OpenAITransformer.js +1 -1
  95. package/dist/transformer/transformers/antigravityFailover.cjs +7 -7
  96. package/dist/transformer/transformers/antigravityFailover.js +6 -6
  97. package/dist/transformer/transformers/antigravityIdentity.cjs +4 -4
  98. package/dist/transformer/transformers/antigravityIdentity.js +3 -3
  99. package/dist/transformer/transformers.cjs +9 -9
  100. package/dist/transformer/transformers.js +8 -8
  101. package/dist/transformer.cjs +9 -9
  102. package/dist/transformer.js +8 -8
  103. package/dist/{types-C6m-Db26.d.cts → types-BpSkj2JA.d.cts} +66 -5
  104. package/dist/{types-BVwJQ9ZS.d.cts → types-BsZ1s_a_.d.cts} +1 -1
  105. package/dist/{types-By9Tg6-I.d.ts → types-Di8VH1c9.d.ts} +12 -0
  106. package/dist/{types-BSIJdsyl.d.cts → types-Dpr5IAaP.d.cts} +12 -0
  107. package/dist/{types-Da735j2d.d.ts → types-EReErShW.d.ts} +66 -5
  108. package/dist/{types-VAHRysdP.d.ts → types-USaixzVP.d.ts} +1 -1
  109. package/package.json +2 -2
@@ -77,17 +77,18 @@
77
77
 
78
78
 
79
79
 
80
- var _chunkRX3BCX53cjs = require('./chunk-RX3BCX53.cjs');
80
+
81
+ var _chunkDV7656NNcjs = require('./chunk-DV7656NN.cjs');
81
82
  require('./chunk-QVOB2DNX.cjs');
82
- require('./chunk-UOOLU64V.cjs');
83
+ require('./chunk-QLVRJ5FS.cjs');
83
84
  require('./chunk-NOITAVHA.cjs');
84
- require('./chunk-QWNUOR7F.cjs');
85
+ require('./chunk-ZTN2PVKO.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-LWBXQXZ3.cjs');
105
106
  require('./chunk-UKQHBK4Q.cjs');
106
107
  require('./chunk-UIBD2YY5.cjs');
107
108
  require('./chunk-R3HK6R4B.cjs');
@@ -149,7 +150,7 @@ require('./chunk-4YINUUKQ.cjs');
149
150
 
150
151
 
151
152
 
152
- var _chunk57Y2EA2Gcjs = require('./chunk-57Y2EA2G.cjs');
153
+ var _chunkJGRNVH7Ccjs = require('./chunk-JGRNVH7C.cjs');
153
154
  require('./chunk-QBZJ7P2T.cjs');
154
155
 
155
156
 
@@ -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 = _chunkDV7656NNcjs.ConcurrencyQueueFullError; exports.ConcurrencyWaitCancelledError = _chunkDV7656NNcjs.ConcurrencyWaitCancelledError; exports.ConcurrencyWaitTimeoutError = _chunkDV7656NNcjs.ConcurrencyWaitTimeoutError; exports.DEFAULT_ACCOUNT_PROBE = _chunkDV7656NNcjs.DEFAULT_ACCOUNT_PROBE; exports.DEFAULT_ALLOWANCE_SCHEDULING = _chunkDV7656NNcjs.DEFAULT_ALLOWANCE_SCHEDULING; exports.DEFAULT_CONCURRENCY_QUEUE = _chunkDV7656NNcjs.DEFAULT_CONCURRENCY_QUEUE; exports.DEFAULT_FINGERPRINT = _chunkDV7656NNcjs.DEFAULT_FINGERPRINT; exports.DEFAULT_IMAGES_SERVER_CONFIG = _chunkDV7656NNcjs.DEFAULT_IMAGES_SERVER_CONFIG; exports.DEFAULT_IMAGE_MODEL_ROUTES = _chunkLL3MZ7O5cjs.DEFAULT_IMAGE_MODEL_ROUTES; exports.DEFAULT_OUTBOUND_PORT = _chunkDV7656NNcjs.DEFAULT_OUTBOUND_PORT; exports.DEFAULT_SEARCH_SERVER_CONFIG = _chunkDV7656NNcjs.DEFAULT_SEARCH_SERVER_CONFIG; exports.DEFAULT_USER_MESSAGE_QUEUE = _chunkDV7656NNcjs.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 = _chunkDV7656NNcjs.IMAGE_SERVER_HARD_CEILINGS; exports.KeySpendTracker = _chunkDV7656NNcjs.KeySpendTracker; exports.KeyedMutex = _chunkDV7656NNcjs.KeyedMutex; exports.LEGACY_OUTBOUND_PERMISSIONS = _chunkDV7656NNcjs.LEGACY_OUTBOUND_PERMISSIONS; exports.OUTBOUND_API_SERVER_CONFIG_KEY = _chunkDV7656NNcjs.OUTBOUND_API_SERVER_CONFIG_KEY; exports.OutboundApiServer = _chunkDV7656NNcjs.OutboundApiServer; exports.OutboundConcurrencyGate = _chunkDV7656NNcjs.OutboundConcurrencyGate; exports.OutboundRateLimiter = _chunkDV7656NNcjs.OutboundRateLimiter; exports.SUBSCRIPTION_PROVIDER_IDS = _chunkJGRNVH7Ccjs.SUBSCRIPTION_PROVIDER_IDS; exports.SerialQueueTimeoutError = _chunkDV7656NNcjs.SerialQueueTimeoutError; exports.UserMessageSerialQueue = _chunkDV7656NNcjs.UserMessageSerialQueue; exports.__resetOutboundApiServerForTests = _chunkDV7656NNcjs.__resetOutboundApiServerForTests; exports.beginAuditCapture = _chunkFX325I5Qcjs.beginAuditCapture; exports.beginBillingCapture = _chunkAPYG5QD7cjs.beginBillingCapture; exports.boundAccountSelectionMessage = _chunk25GXJCEZcjs.boundAccountSelectionMessage; exports.candidateBackgroundModelIds = _chunkDV7656NNcjs.candidateBackgroundModelIds; exports.candidateGatewayBindings = _chunkDV7656NNcjs.candidateGatewayBindings; exports.checkKeyQuota = _chunkDV7656NNcjs.checkKeyQuota; exports.classifyModelPrefix = _chunkJGRNVH7Ccjs.classifyModelPrefix; exports.codexSearchRoutePath = _chunkDV7656NNcjs.codexSearchRoutePath; exports.computeKeyExpiry = _chunkDV7656NNcjs.computeKeyExpiry; exports.computeVoucherGrant = _chunkDV7656NNcjs.computeVoucherGrant; exports.createIntegrationKey = _chunkDV7656NNcjs.createIntegrationKey; exports.createNamedKey = _chunkDV7656NNcjs.createNamedKey; exports.defaultServerConfig = _chunkDV7656NNcjs.defaultServerConfig; exports.detectModelKind = _chunkJGRNVH7Ccjs.detectModelKind; exports.detectRequestRole = _chunkJGRNVH7Ccjs.detectRequestRole; exports.effectiveOutboundPermissions = _chunkDV7656NNcjs.effectiveOutboundPermissions; exports.endpointSupportsSubscription = _chunkJGRNVH7Ccjs.endpointSupportsSubscription; exports.endpointToIngressFormat = _chunkJGRNVH7Ccjs.endpointToIngressFormat; exports.formatUrls = _chunkDV7656NNcjs.formatUrls; exports.gatewayBindingToEndpointConfig = _chunkDV7656NNcjs.gatewayBindingToEndpointConfig; exports.generateVoucherCode = _chunkDV7656NNcjs.generateVoucherCode; exports.getOutboundApiServer = _chunkDV7656NNcjs.getOutboundApiServer; exports.handleCodexSearchRequest = _chunkDV7656NNcjs.handleCodexSearchRequest; exports.handleVoucherRedeem = _chunkDV7656NNcjs.handleVoucherRedeem; exports.hashKey = _chunkDV7656NNcjs.hashKey; exports.hashVoucherCode = _chunkDV7656NNcjs.hashVoucherCode; exports.injectMappingEffortDefault = _chunkDV7656NNcjs.injectMappingEffortDefault; exports.isBoundAccountSelectionError = _chunk25GXJCEZcjs.isBoundAccountSelectionError; exports.isCodexSearchRequest = _chunkDV7656NNcjs.isCodexSearchRequest; exports.isConcurrencyRejection = _chunkDV7656NNcjs.isConcurrencyRejection; exports.isKindMappedEndpoint = _chunkJGRNVH7Ccjs.isKindMappedEndpoint; exports.isRedeemRequest = _chunkDV7656NNcjs.isRedeemRequest; exports.isSerialQueueTimeout = _chunkDV7656NNcjs.isSerialQueueTimeout; exports.isSubscriptionProviderId = _chunkJGRNVH7Ccjs.isSubscriptionProviderId; exports.isUserMessageRequest = _chunkDV7656NNcjs.isUserMessageRequest; exports.legacyEndpointsToBindings = _chunkDV7656NNcjs.legacyEndpointsToBindings; exports.loadServerConfig = _chunkDV7656NNcjs.loadServerConfig; exports.mergeServerConfig = _chunkDV7656NNcjs.mergeServerConfig; exports.modelKindsForEndpoint = _chunkJGRNVH7Ccjs.modelKindsForEndpoint; exports.newVoucherId = _chunkDV7656NNcjs.newVoucherId; exports.normalizeAccountProbe = _chunkDV7656NNcjs.normalizeAccountProbe; exports.normalizeAllowanceScheduling = _chunkDV7656NNcjs.normalizeAllowanceScheduling; exports.normalizeAudit = _chunkDV7656NNcjs.normalizeAudit; exports.normalizeBilling = _chunkDV7656NNcjs.normalizeBilling; exports.normalizeFingerprint = _chunkDV7656NNcjs.normalizeFingerprint; exports.normalizeGatewayBindings = _chunkDV7656NNcjs.normalizeGatewayBindings; exports.normalizeImagesServerConfig = _chunkDV7656NNcjs.normalizeImagesServerConfig; exports.normalizePrefixTargets = _chunkDV7656NNcjs.normalizePrefixTargets; exports.normalizeProxyConfig = _chunkDV7656NNcjs.normalizeProxyConfig; exports.normalizeProxySegment = _chunkDV7656NNcjs.normalizeProxySegment; exports.normalizeQueueSegments = _chunkDV7656NNcjs.normalizeQueueSegments; exports.normalizeSearchApiProviderConfigs = _chunkDV7656NNcjs.normalizeSearchApiProviderConfigs; exports.normalizeSearchServerConfig = _chunkDV7656NNcjs.normalizeSearchServerConfig; exports.normalizeServerConfig = _chunkDV7656NNcjs.normalizeServerConfig; exports.normalizeVoucher = _chunkDV7656NNcjs.normalizeVoucher; exports.normalizeWebhookDestination = _chunkDV7656NNcjs.normalizeWebhookDestination; exports.normalizeWebhookSegment = _chunkDV7656NNcjs.normalizeWebhookSegment; exports.parseModelRef = _chunkJGRNVH7Ccjs.parseModelRef; exports.pickModelRefFromList = _chunkJGRNVH7Ccjs.pickModelRefFromList; exports.randomBase62 = _chunkDV7656NNcjs.randomBase62; exports.redactAuditText = _chunkHCOQQAZEcjs.redactAuditText; exports.resolveGatewayBinding = _chunkDV7656NNcjs.resolveGatewayBinding; exports.resolvePrefixTarget = _chunkJGRNVH7Ccjs.resolvePrefixTarget; exports.resolveRoute = _chunkJGRNVH7Ccjs.resolveRoute; exports.saveServerConfig = _chunkDV7656NNcjs.saveServerConfig; exports.startOfLocalDay = _chunkDV7656NNcjs.startOfLocalDay; exports.startOfLocalWeek = _chunkDV7656NNcjs.startOfLocalWeek; exports.toVoucherInfo = _chunkDV7656NNcjs.toVoucherInfo; exports.validateEndpointModelConfig = _chunkJGRNVH7Ccjs.validateEndpointModelConfig; exports.validateImagesServerConfig = _chunkDV7656NNcjs.validateImagesServerConfig; exports.validateOutboundPermissions = _chunkDV7656NNcjs.validateOutboundPermissions; exports.validateSearchServerConfig = _chunkDV7656NNcjs.validateSearchServerConfig; exports.verifyKey = _chunkDV7656NNcjs.verifyKey; exports.verifyPresentedKey = _chunkDV7656NNcjs.verifyPresentedKey; exports.voucherCodePrefix = _chunkDV7656NNcjs.voucherCodePrefix;
@@ -1,11 +1,11 @@
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-BpSkj2JA.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-BpSkj2JA.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';
7
7
  import { WebhookDestination, WebhookConfig } from '@omnicross/contracts/webhook-types';
8
- import { e as ImageApiLimits } from './types-BVwJQ9ZS.cjs';
8
+ import { e as ImageApiLimits } from './types-BsZ1s_a_.cjs';
9
9
  import { S as SearchApiProviderConfigs } from './types-CbCZqLGg.cjs';
10
10
  import http from 'node:http';
11
11
  import { c as SearchFrontendMode } from './frontends-Doz0RaWu.cjs';
@@ -15,17 +15,17 @@ export { AuditCaptureContext, beginAuditCapture } from './outbound-api/auditCapt
15
15
  export { BillingCaptureContext, beginBillingCapture } from './outbound-api/billingCapture.cjs';
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
- 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';
18
+ import { D as IngressFormat } from './types-Dpr5IAaP.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-BQYMEXer.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
- import './ProviderProxy-Bz_nkOwq.cjs';
28
+ import './ProviderProxy-OuQPYW2I.cjs';
29
29
  import '@omnicross/contracts/image-generation-types';
30
30
  import 'node:fs/promises';
31
31
  import '@omnicross/contracts/search-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,11 +1,11 @@
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-EReErShW.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-EReErShW.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';
7
7
  import { WebhookDestination, WebhookConfig } from '@omnicross/contracts/webhook-types';
8
- import { e as ImageApiLimits } from './types-VAHRysdP.js';
8
+ import { e as ImageApiLimits } from './types-USaixzVP.js';
9
9
  import { S as SearchApiProviderConfigs } from './types-CbCZqLGg.js';
10
10
  import http from 'node:http';
11
11
  import { c as SearchFrontendMode } from './frontends-Doz0RaWu.js';
@@ -15,17 +15,17 @@ export { AuditCaptureContext, beginAuditCapture } from './outbound-api/auditCapt
15
15
  export { BillingCaptureContext, beginBillingCapture } from './outbound-api/billingCapture.js';
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
- 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';
18
+ import { D as IngressFormat } from './types-Di8VH1c9.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-DTfyzaFb.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
- import './ProviderProxy-Ckr6oTrE.js';
28
+ import './ProviderProxy-DxsNi3cO.js';
29
29
  import '@omnicross/contracts/image-generation-types';
30
30
  import 'node:fs/promises';
31
31
  import '@omnicross/contracts/search-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-TU4BB776.js";
81
82
  import "./chunk-WTQMX2Q6.js";
82
- import "./chunk-MPFOC7AT.js";
83
+ import "./chunk-5XG6FR5F.js";
83
84
  import "./chunk-V53ZEFXC.js";
84
- import "./chunk-7PIUVCKK.js";
85
+ import "./chunk-MZCJL3QU.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-DRUT7H5H.js";
105
106
  import "./chunk-ONTTXSRL.js";
106
107
  import "./chunk-OE6TDIWW.js";
107
108
  import "./chunk-DRWHTIIZ.js";
@@ -149,7 +150,7 @@ import {
149
150
  resolvePrefixTarget,
150
151
  resolveRoute,
151
152
  validateEndpointModelConfig
152
- } from "./chunk-ZMERU7D3.js";
153
+ } from "./chunk-VXHN5IDL.js";
153
154
  import "./chunk-AQ5TNQB7.js";
154
155
  import {
155
156
  DEFAULT_IMAGE_MODEL_ROUTES,
@@ -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,9 +1,9 @@
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-BpSkj2JA.cjs';
3
3
  import { AccountAllowanceStore } from './AccountAllowanceStore.cjs';
4
- import '../types-BVwJQ9ZS.cjs';
4
+ import '../types-BsZ1s_a_.cjs';
5
5
  import '@omnicross/contracts/image-generation-types';
6
- import '../types-BSIJdsyl.cjs';
6
+ import '../types-Dpr5IAaP.cjs';
7
7
  import 'node:http';
8
8
  import '@omnicross/contracts/completion-types';
9
9
  import '@omnicross/contracts/usage-stats-types';
@@ -30,7 +30,7 @@ import '@omnicross/contracts/billing-types';
30
30
  import '@omnicross/contracts/health-logging-types';
31
31
  import '@omnicross/contracts/voucher-types';
32
32
  import '@omnicross/contracts/webhook-types';
33
- import '../ProviderProxy-Bz_nkOwq.cjs';
33
+ import '../ProviderProxy-OuQPYW2I.cjs';
34
34
  import '../types-CbCZqLGg.cjs';
35
35
  import '../keyPolicy-zdWTu3CQ.cjs';
36
36
  import '@omnicross/contracts/account-allowance-types';
@@ -1,9 +1,9 @@
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-EReErShW.js';
3
3
  import { AccountAllowanceStore } from './AccountAllowanceStore.js';
4
- import '../types-VAHRysdP.js';
4
+ import '../types-USaixzVP.js';
5
5
  import '@omnicross/contracts/image-generation-types';
6
- import '../types-By9Tg6-I.js';
6
+ import '../types-Di8VH1c9.js';
7
7
  import 'node:http';
8
8
  import '@omnicross/contracts/completion-types';
9
9
  import '@omnicross/contracts/usage-stats-types';
@@ -30,7 +30,7 @@ import '@omnicross/contracts/billing-types';
30
30
  import '@omnicross/contracts/health-logging-types';
31
31
  import '@omnicross/contracts/voucher-types';
32
32
  import '@omnicross/contracts/webhook-types';
33
- import '../ProviderProxy-Ckr6oTrE.js';
33
+ import '../ProviderProxy-DxsNi3cO.js';
34
34
  import '../types-CbCZqLGg.js';
35
35
  import '../keyPolicy-zdWTu3CQ.js';
36
36
  import '@omnicross/contracts/account-allowance-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 };
@@ -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 };
@@ -2,7 +2,7 @@ import {
2
2
  ACCOUNT_ROUTE_ACTIVITY_LIMIT,
3
3
  AccountRouteActivityStore,
4
4
  getSharedAccountRouteActivity
5
- } from "../chunk-GL6XM527.js";
5
+ } from "../chunk-TX7ZM4OI.js";
6
6
  export {
7
7
  ACCOUNT_ROUTE_ACTIVITY_LIMIT,
8
8
  AccountRouteActivityStore,
@@ -89,6 +89,17 @@ interface SubscriptionAuthProfile {
89
89
  * byte-identity).
90
90
  */
91
91
  readonly resolveProviderTransformerNames?: (model: string, config?: unknown) => readonly string[];
92
+ /**
93
+ * OPTIONAL chat-bridge-only chain-name resolver (openai-chat-bridge OQ1
94
+ * closure). The OpenAI-chat ingress consults it INSTEAD of
95
+ * `resolveProviderTransformerNames`/`providerTransformerNames` because a chat
96
+ * caller's wire is Unified: an anthropic-shape upstream needs the
97
+ * `['anthropic']` ENCODER, whereas the messages path's same-shape `[]` means
98
+ * "the caller already speaks Anthropic" — different answers for the same
99
+ * shape. Only opencodego sets it; absent ⇒ the chat ingress keeps the static
100
+ * `providerTransformerNames` (claude/kimi/grok route-to chains).
101
+ */
102
+ readonly chatBridgeTransformerNames?: (model: string, config?: unknown) => readonly string[];
92
103
  /**
93
104
  * Pass-through (claude) vs transformer (codex / opencodego / gemini). The
94
105
  * built-in `/v1/messages` subscription path (RT2.1) reads this for its