@omnicross/core 0.4.3 → 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.
- package/dist/auth/GeminiCodeAssistProjectResolver.cjs +4 -4
- package/dist/auth/GeminiCodeAssistProjectResolver.js +3 -3
- package/dist/{chunk-MPFOC7AT.js → chunk-24W3DVGI.js} +1 -1
- package/dist/{chunk-WYECWQ3J.cjs → chunk-2DMOOZ4F.cjs} +1 -1
- package/dist/{chunk-NKVZ6Z3Y.cjs → chunk-4HMAS74X.cjs} +8 -3
- package/dist/{chunk-M6PKXP6T.js → chunk-4LSZ7NFM.js} +14 -2
- package/dist/{chunk-VFFCV4J6.cjs → chunk-CXRJMNJJ.cjs} +12 -6
- package/dist/{chunk-E5RCCGE7.cjs → chunk-DF5JXK36.cjs} +2 -2
- package/dist/{chunk-CGEZQC2G.cjs → chunk-F3TT5XPV.cjs} +2 -2
- package/dist/{chunk-EE7VP4O3.js → chunk-HQ7C3VB6.js} +1 -1
- package/dist/{chunk-ZJJBITUN.js → chunk-IAWLTZUP.js} +2 -2
- package/dist/{chunk-SWY2LTMR.js → chunk-L4L77G3X.js} +574 -100
- package/dist/{chunk-NTF7TLT7.js → chunk-LBIXTHP7.js} +11 -5
- package/dist/{chunk-UOOLU64V.cjs → chunk-LVQOCIES.cjs} +2 -2
- package/dist/{chunk-J5XMB5KY.cjs → chunk-NCCEWVWY.cjs} +978 -504
- package/dist/{chunk-K6J2RIEX.js → chunk-NDJSLJIA.js} +1 -1
- package/dist/{chunk-AFH5CEMF.cjs → chunk-SQU2FGXI.cjs} +15 -3
- package/dist/{chunk-F6P4DIBL.js → chunk-TLYFFUW4.js} +1 -1
- package/dist/{chunk-GL6XM527.js → chunk-TX7ZM4OI.js} +8 -3
- package/dist/{chunk-HRBXQ5AC.js → chunk-WYUXJKMK.js} +1 -1
- package/dist/{chunk-NDIBVTBZ.cjs → chunk-XYFCNDJK.cjs} +2 -2
- package/dist/{chunk-X6GHTNDL.cjs → chunk-ZG57GAVU.cjs} +7 -7
- package/dist/completion/CompletionService.cjs +11 -11
- package/dist/completion/CompletionService.js +10 -10
- package/dist/completion.cjs +11 -11
- package/dist/completion.js +10 -10
- package/dist/index.cjs +13 -11
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +12 -10
- package/dist/outbound-api/routeResolver.d.cts +2 -2
- package/dist/outbound-api/routeResolver.d.ts +2 -2
- package/dist/outbound-api/types.d.cts +2 -2
- package/dist/outbound-api/types.d.ts +2 -2
- package/dist/outbound-api.cjs +13 -11
- package/dist/outbound-api.d.cts +46 -5
- package/dist/outbound-api.d.ts +46 -5
- package/dist/outbound-api.js +12 -10
- package/dist/pipeline/AccountAllowanceScheduling.d.cts +1 -1
- package/dist/pipeline/AccountAllowanceScheduling.d.ts +1 -1
- package/dist/pipeline/AccountRouteActivity.cjs +2 -2
- package/dist/pipeline/AccountRouteActivity.d.cts +33 -8
- package/dist/pipeline/AccountRouteActivity.d.ts +33 -8
- package/dist/pipeline/AccountRouteActivity.js +1 -1
- package/dist/pipeline/upstreamFetch.cjs +3 -3
- package/dist/pipeline/upstreamFetch.d.cts +15 -1
- package/dist/pipeline/upstreamFetch.d.ts +15 -1
- package/dist/pipeline/upstreamFetch.js +2 -2
- package/dist/ports.d.cts +1 -1
- package/dist/ports.d.ts +1 -1
- package/dist/provider-proxy/ProviderProxy.cjs +11 -11
- package/dist/provider-proxy/ProviderProxy.js +10 -10
- package/dist/provider-proxy/identity/codexCliHeaders.cjs +6 -2
- package/dist/provider-proxy/identity/codexCliHeaders.d.cts +42 -11
- package/dist/provider-proxy/identity/codexCliHeaders.d.ts +42 -11
- package/dist/provider-proxy/identity/codexCliHeaders.js +6 -2
- package/dist/provider-proxy/identity/openCodeGoHeaders.cjs +2 -2
- package/dist/provider-proxy/identity/openCodeGoHeaders.js +1 -1
- package/dist/provider-proxy/ingress/providerProxyShared.cjs +13 -11
- package/dist/provider-proxy/ingress/providerProxyShared.d.cts +19 -1
- package/dist/provider-proxy/ingress/providerProxyShared.d.ts +19 -1
- package/dist/provider-proxy/ingress/providerProxyShared.js +12 -10
- package/dist/provider-proxy.cjs +11 -11
- package/dist/provider-proxy.d.cts +1 -1
- package/dist/provider-proxy.d.ts +1 -1
- package/dist/provider-proxy.js +10 -10
- package/dist/{routeResolver-C2z0pp-q.d.cts → routeResolver-BdNJvTZP.d.cts} +1 -1
- package/dist/{routeResolver-BLTleO4H.d.ts → routeResolver-zVoCx9r3.d.ts} +1 -1
- package/dist/transformer/transformers/AntigravityTransformer.cjs +6 -6
- package/dist/transformer/transformers/AntigravityTransformer.js +5 -5
- package/dist/transformer/transformers/antigravityFailover.cjs +7 -7
- package/dist/transformer/transformers/antigravityFailover.js +6 -6
- package/dist/transformer/transformers/antigravityIdentity.cjs +4 -4
- package/dist/transformer/transformers/antigravityIdentity.js +3 -3
- package/dist/transformer/transformers.cjs +8 -8
- package/dist/transformer/transformers.js +7 -7
- package/dist/transformer.cjs +8 -8
- package/dist/transformer.js +7 -7
- package/dist/{types-C6m-Db26.d.cts → types-Dt1bgHPg.d.cts} +63 -2
- package/dist/{types-Da735j2d.d.ts → types-IRPv4i1Y.d.ts} +63 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { ProviderConfigSource } from './ports/provider-config-source.js';
|
|
|
9
9
|
export { UsageEventStore } from './ports/usage-event-store.js';
|
|
10
10
|
export { WebSearchBackend } from './ports/web-search-backend.js';
|
|
11
11
|
export { A as AnthropicIngressHandler, a as AnthropicIngressHandlerFactory, b as AnthropicRouteHandlerParams, c as AnthropicSdkHints, E as ExtendedContextHint, d as ExtensionOpenAIOperationId, I as ImageAsset, e as ImageJob, f as ImageJobObservability, g as ImageJobObservabilitySnapshot, h as ImageOrchestrator, i as ImageOrchestratorOptions, j as ImageOrchestratorRunOptions, k as ImageProvider, l as ImageProviderContext, m as ImageProviderLease, n as ImageProviderRegistry, o as ImageProviderRequest, p as ImageReferenceLease, q as ImageReferenceResolution, r as ImageReferenceSaveInput, s as ImageReferenceStore, t as ImageReferenceValue, u as ImageRetentionPolicy, v as ImageTelemetryOutputMetadata, w as ImageTelemetryRecord, x as ImageTelemetrySink, y as InMemoryImageAsset, z as InMemoryImageReferenceStore, B as InMemoryResponsesImageStateStore, C as InMemoryResponsesImageStateStoreOptions, D as IngressFormat, O as OpenAIOperation, F as OpenAIOperationBodyKind, G as OpenAIOperationDispatchContext, H as OpenAIOperationError, J as OpenAIOperationErrorInit, K as OpenAIOperationHandler, L as OpenAIOperationHandlerContext, M as OpenAIOperationId, N as OpenAIOperationOwner, P as OpenAIOperationRegistrationError, Q as OpenAIOperationRegistrationErrorCode, R as OpenAIOperationRegistry, S as OpenAIPolicyFamily, T as OpenAIRequestedModelSource, V as OpenAIRouteFamily, W as ProviderProxyDeps, X as ProxyAttribution, Y as ResponsesAffinityEntry, Z as ResponsesAffinityRecord, _ as ResponsesAffinityScope, $ as ResponsesAffinityStore, a0 as ResponsesAffinityStoreOptions, a1 as ResponsesCredentialIdentity, a2 as ResponsesHostedImageIngress, a3 as ResponsesHostedImageRequestLease, a4 as ResponsesHostedImageRuntimeFactory, a5 as ResponsesHostedImageRuntimeLease, a6 as ResponsesHostedToolIdentity, a7 as ResponsesHostedToolSelection, a8 as ResponsesImageAction, a9 as ResponsesImageAdmission, aa as ResponsesImageCallBinding, ab as ResponsesImageCallId, ac as ResponsesImageCallResolution, ad as ResponsesImageCallStateLease, ae as ResponsesImageCompletedRecord, af as ResponsesImageEventAllocator, ag as ResponsesImageExecutionEvent, ah as ResponsesImageFailedRecord, ai as ResponsesImageGenerationCallItem, aj as ResponsesImageGenerationCallStartedItem, ak as ResponsesImageGenerationContribution, al as ResponsesImageGenerationContributionDeps, am as ResponsesImageInspectionInput, an as ResponsesImageNormalizedOptions, ao as ResponsesImagePartialEvent, ap as ResponsesImageRequestScope, aq as ResponsesImageRequestScopeInput, ar as ResponsesImageResponseResolution, as as ResponsesImageResponseStateLease, at as ResponsesImageSelectionPolicy, au as ResponsesImageStartedRecord, av as ResponsesImageStateCommitInput, aw as ResponsesImageStateStore, ax as ResponsesImageTrustedRuntime, ay as ResponsesProfile, az as ResponsesProfileDeclaration, aA as ResponsesSelectedImageCall, aB as RetryCallback, aC as RouteAuthMode, aD as RouteContext, aE as RouteLeaseUsageAttribution, aF as StreamEventCallback, aG as SubscriptionDispatchProfile, aH as SubscriptionRequestSummary, aI as TargetProviderFormat, U as UsageRecorderImport, U as UsageSink, aJ as classifyOpenAIOperation, aK as classifyResponsesProfile, aL as emitImageTelemetry, aM as getOpenAIOperation, aN as getResponsesAffinityStore, aO as previousResponseNotFound, aP as readImageAssetBytes, aQ as unsupportedOpenAIOperation, aR as writeOpenAIOperationError } from './types-By9Tg6-I.js';
|
|
12
|
-
export { A as AccountProbeConfig, a as AllowanceSchedulingConfig, 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, i as ImageProviderId, j as ImagesCodexAdapterConfig, k as ImagesServerConfig, K as KeySpendReader, l as KeySpendSeeder, m as KeySpendTracker, n as KindMappedEndpoint, M as MessagesModelKind, o as ModelKind, p as ModelPrefixTargets, q as OutboundApiDeps, r as OutboundApiKeyCreated, s as OutboundApiKeyInfo, t as OutboundApiServerConfig, u as OutboundApiServerStatus, O as OutboundCredentialStore, v as OutboundEndpoint, w as OutboundFormatUrls, x as OutboundKeyActivationMode, O as OutboundKeyDb, y as OutboundKeyDbRow, z as OutboundKeyPolicy, B as OutboundPermission, H as OutboundProxyConfig, R as RequestRole, J as ResponsesModelKind, S as SearchServerConfig, U as UserMessageQueueConfig, 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-
|
|
12
|
+
export { A as AccountProbeConfig, a as AllowanceSchedulingConfig, 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, i as ImageProviderId, j as ImagesCodexAdapterConfig, k as ImagesServerConfig, K as KeySpendReader, l as KeySpendSeeder, m as KeySpendTracker, n as KindMappedEndpoint, M as MessagesModelKind, o as ModelKind, p as ModelPrefixTargets, q as OutboundApiDeps, r as OutboundApiKeyCreated, s as OutboundApiKeyInfo, t as OutboundApiServerConfig, u as OutboundApiServerStatus, O as OutboundCredentialStore, v as OutboundEndpoint, w as OutboundFormatUrls, x as OutboundKeyActivationMode, O as OutboundKeyDb, y as OutboundKeyDbRow, z as OutboundKeyPolicy, B as OutboundPermission, H as OutboundProxyConfig, R as RequestRole, J as ResponsesModelKind, S as SearchServerConfig, U as UserMessageQueueConfig, 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';
|
|
13
13
|
export { CostCalculation, PricingEngine, PricingEngineOptions } from './usage/pricing-engine.js';
|
|
14
14
|
export { UsageRecordInput, UsageRecorder, UsageRecorderOptions } from './usage/usage-recorder.js';
|
|
15
15
|
export { ImageCapabilityEvidenceSet, ImageGenerationError, ImageGenerationErrorOptions, createImageApiContributions, createResponsesImageGenerationContribution, createSafeRemoteImageResolver, imageGenerationErrorFromPublic, inspectResponsesImageRequest, isImageGenerationError, normalizeImageGenerationError, resolveImageCapabilities, serializeImageGenerationError, validateResponsesImageSelection } from './image-generation.js';
|
|
@@ -20,7 +20,7 @@ export { EXTRA_HEADER_RESERVED_NAMES, SimpleChatGeminiMessage, SimpleChatGeminiP
|
|
|
20
20
|
export { buildAnthropicApiUrl, buildAzureOpenAIApiUrl, buildGeminiApiUrl, buildOpenAIApiUrl, buildOpenAIResponseApiUrl, buildProviderApiUrl, normalizeAzureEndpoint, resolveApiFormat, resolveProviderEndpoint } from './completion/url-builder.js';
|
|
21
21
|
export { applyAugmentation, buildNativeSearchAugmentation, detectNativeSearch } from './completion/NativeSearchInjector.js';
|
|
22
22
|
export { NormalizedRouteLeaseCreate, NormalizedRouteLeaseRequest, ROUTE_LEASE_API_VERSION, ROUTE_LEASE_CAPABILITIES, ROUTE_LEASE_CAPABILITIES_SCHEMA, ROUTE_LEASE_CODEX_TOKEN_ENV, ROUTE_LEASE_DEFAULT_TTL_SECONDS, ROUTE_LEASE_MAX_CONSUMER_BYTES, ROUTE_LEASE_MAX_EXECUTION_ID_BYTES, ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES, ROUTE_LEASE_MAX_MODEL_BYTES, ROUTE_LEASE_MAX_SESSION_ID_BYTES, ROUTE_LEASE_MAX_TTL_SECONDS, ROUTE_LEASE_REQUEST_SCHEMA, ROUTE_LEASE_RESULT_SCHEMA, ROUTE_LEASE_RUNTIMES, ROUTE_LEASE_RUNTIME_TABLE, ROUTE_LEASE_SESSION_HASH_DOMAIN, ResponsesCompactRegistrationOptions, RouteLeaseCapabilities, RouteLeaseClock, RouteLeaseCreateOutcome, RouteLeaseCreateResult, RouteLeaseDescriptorPort, RouteLeaseError, RouteLeaseErrorCode, RouteLeaseExecutionMetadata, RouteLeaseExecutionRequest, RouteLeaseLogger, RouteLeaseManager, RouteLeaseManagerOptions, RouteLeaseMetadata, RouteLeaseProviderKeyPreflight, RouteLeaseReleaseResult, RouteLeaseRenewResult, RouteLeaseRequest, RouteLeaseRoutePort, RouteLeaseRuntime, RouteLeaseStatus, RouteLeaseSubscriptionPreflight, RouteLeaseTargetResolver, RouteLeaseTargetResolverOptions, RouteLeaseTargetResolverPort, RouteLeaseUpstream, RuntimeLaunchDescriptor, SYSTEM_ROUTE_LEASE_CLOCK, __resetProviderProxyForTests, canonicalizeRouteLeasePayload, createNativeResponsesHostedImageIngress, createResponsesCompactHandler, extractRouteToken, getProviderProxy, hashRouteLeasePayload, hashRouteLeaseSessionId, normalizeRouteLeaseIdempotencyKey, normalizeRouteLeaseTtl, parseRouteLeaseCreate, registerResponsesCompactOperation, routeLeaseRuntime } from './provider-proxy.js';
|
|
23
|
-
export { ApiServerSettingsStore, ApplyConfigInput, CodexSearchRouteDeps, 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, GateAcquireOptions, GateAcquisition, GateSlot, GateStatusEntry, GatewayBindingResolution, IMAGE_SERVER_HARD_CEILINGS, KeyVerification, KeyedMutex, LEGACY_OUTBOUND_PERMISSIONS, ModelPrefixKind, OUTBOUND_API_SERVER_CONFIG_KEY, OutboundApiServer, OutboundConcurrencyGate, OutboundRateLimiter, PreparedOutboundApiConfig, ResolveGatewayBindingInput, SerialAcquireOptions, SerialQueueStatusEntry, SerialQueueTimeoutError, SerialSlot, UserMessageSerialQueue, 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 } from './outbound-api.js';
|
|
23
|
+
export { ApiServerSettingsStore, ApplyConfigInput, CodexSearchRouteDeps, 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, GateAcquireOptions, GateAcquisition, GateSlot, GateStatusEntry, GatewayBindingResolution, IMAGE_SERVER_HARD_CEILINGS, KeyVerification, KeyedMutex, LEGACY_OUTBOUND_PERMISSIONS, ModelPrefixKind, OUTBOUND_API_SERVER_CONFIG_KEY, OutboundApiServer, OutboundConcurrencyGate, OutboundRateLimiter, PreparedOutboundApiConfig, ResolveGatewayBindingInput, SerialAcquireOptions, SerialQueueStatusEntry, SerialQueueTimeoutError, SerialSlot, UserMessageSerialQueue, 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 } from './outbound-api.js';
|
|
24
24
|
export { convertAnthropicRequestToOpenAI, convertAnthropicStreamToOpenAI, convertAnthropicToOpenAI, convertAnthropicToOpenAIWithThinking, convertOpenAIResponseToAnthropic, convertOpenAIStreamToAnthropic, convertOpenAIToAnthropic, convertOpenAIToAnthropicWithThinking, hasImageContent, hasThinkingEnabled } from './ApiConverter.js';
|
|
25
25
|
export { ChainExecutionOptions, TransformerChainExecutor } from './transformer/TransformerChainExecutor.js';
|
|
26
26
|
export { TransformerService } from './transformer/TransformerService.js';
|
|
@@ -33,7 +33,7 @@ export { BillingCaptureContext, beginBillingCapture } from './outbound-api/billi
|
|
|
33
33
|
export { BoundAccountFallbackPolicy, BoundAccountSelectionError, BoundAccountSelectionFailureReason, boundAccountSelectionMessage, isBoundAccountSelectionError } from './pipeline/BoundAccountSelectionError.js';
|
|
34
34
|
export { D as DEFAULT_ROUTE_IDLE_MS, P as ProviderProxy, a as ProviderProxyRouteMap, R as RouteEvictionReason, b as RouteRegistrationOptions, i as isLoopbackAddress } from './ProviderProxy-Ckr6oTrE.js';
|
|
35
35
|
export { K as KeyCostLimits, a as KeyExpiryInput, b as KeyExpiryResult, c as KeySpend, Q as QuotaDecision, d as checkKeyQuota, e as computeKeyExpiry } from './keyPolicy-zdWTu3CQ.js';
|
|
36
|
-
export { S as SUBSCRIPTION_PROVIDER_IDS, e as endpointSupportsSubscription, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from './routeResolver-
|
|
36
|
+
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';
|
|
37
37
|
import '@omnicross/contracts/message-blocks';
|
|
38
38
|
import '@omnicross/contracts/mcp-types';
|
|
39
39
|
import './runtime-t8AZacFF.js';
|
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-
|
|
132
|
+
} from "./chunk-L4L77G3X.js";
|
|
132
133
|
import "./chunk-WTQMX2Q6.js";
|
|
133
134
|
import {
|
|
134
135
|
registerBuiltinTransformers
|
|
135
|
-
} from "./chunk-
|
|
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-
|
|
142
|
-
import "./chunk-
|
|
143
|
-
import "./chunk-
|
|
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 {
|
|
@@ -162,10 +163,10 @@ import {
|
|
|
162
163
|
createSSEParser,
|
|
163
164
|
streamSSEResponse
|
|
164
165
|
} from "./chunk-VVEHS2LI.js";
|
|
165
|
-
import "./chunk-
|
|
166
|
+
import "./chunk-4LSZ7NFM.js";
|
|
166
167
|
import "./chunk-XTEI64OU.js";
|
|
167
168
|
import "./chunk-XX6NQJMA.js";
|
|
168
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
273
|
+
import "./chunk-LBIXTHP7.js";
|
|
273
274
|
import "./chunk-3WD4HTR2.js";
|
|
274
275
|
import "./chunk-FYPKKMB3.js";
|
|
275
|
-
import "./chunk-
|
|
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-
|
|
4
|
-
export { R as RouteResolveError, b as RouteResolveResult, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from '../routeResolver-
|
|
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-
|
|
4
|
-
export { R as RouteResolveError, b as RouteResolveResult, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from '../routeResolver-
|
|
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 {
|
|
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 {
|
|
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';
|
package/dist/outbound-api.cjs
CHANGED
|
@@ -77,17 +77,18 @@
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
|
|
81
|
+
var _chunkNCCEWVWYcjs = require('./chunk-NCCEWVWY.cjs');
|
|
81
82
|
require('./chunk-QVOB2DNX.cjs');
|
|
82
|
-
require('./chunk-
|
|
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-
|
|
89
|
-
require('./chunk-
|
|
90
|
-
require('./chunk-
|
|
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');
|
|
@@ -98,10 +99,10 @@ require('./chunk-3OPYJG76.cjs');
|
|
|
98
99
|
require('./chunk-J3QQ6JS5.cjs');
|
|
99
100
|
require('./chunk-E4QHVXV5.cjs');
|
|
100
101
|
require('./chunk-HQP3K7PU.cjs');
|
|
101
|
-
require('./chunk-
|
|
102
|
+
require('./chunk-SQU2FGXI.cjs');
|
|
102
103
|
require('./chunk-RPII3E6Z.cjs');
|
|
103
104
|
require('./chunk-6RPZADX3.cjs');
|
|
104
|
-
require('./chunk-
|
|
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-
|
|
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-
|
|
170
|
+
require('./chunk-CXRJMNJJ.cjs');
|
|
170
171
|
require('./chunk-235MXAGX.cjs');
|
|
171
172
|
require('./chunk-VYOBVPNB.cjs');
|
|
172
|
-
require('./chunk-
|
|
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
|
-
|
|
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;
|
package/dist/outbound-api.d.cts
CHANGED
|
@@ -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-
|
|
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,
|
|
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-
|
|
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 };
|
package/dist/outbound-api.d.ts
CHANGED
|
@@ -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-
|
|
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,
|
|
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-
|
|
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 };
|
package/dist/outbound-api.js
CHANGED
|
@@ -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-
|
|
81
|
+
} from "./chunk-L4L77G3X.js";
|
|
81
82
|
import "./chunk-WTQMX2Q6.js";
|
|
82
|
-
import "./chunk-
|
|
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-
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
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";
|
|
@@ -98,10 +99,10 @@ import "./chunk-DK4A7DLE.js";
|
|
|
98
99
|
import "./chunk-GFIZ6LQI.js";
|
|
99
100
|
import "./chunk-MZEGQSKQ.js";
|
|
100
101
|
import "./chunk-VVEHS2LI.js";
|
|
101
|
-
import "./chunk-
|
|
102
|
+
import "./chunk-4LSZ7NFM.js";
|
|
102
103
|
import "./chunk-XTEI64OU.js";
|
|
103
104
|
import "./chunk-XX6NQJMA.js";
|
|
104
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
170
|
+
import "./chunk-LBIXTHP7.js";
|
|
170
171
|
import "./chunk-3WD4HTR2.js";
|
|
171
172
|
import "./chunk-FYPKKMB3.js";
|
|
172
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
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
|
|
5
|
+
var _chunk4HMAS74Xcjs = require('../chunk-4HMAS74X.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.ACCOUNT_ROUTE_ACTIVITY_LIMIT =
|
|
10
|
+
exports.ACCOUNT_ROUTE_ACTIVITY_LIMIT = _chunk4HMAS74Xcjs.ACCOUNT_ROUTE_ACTIVITY_LIMIT; exports.AccountRouteActivityStore = _chunk4HMAS74Xcjs.AccountRouteActivityStore; exports.getSharedAccountRouteActivity = _chunk4HMAS74Xcjs.getSharedAccountRouteActivity;
|