@omnicross/core 0.1.7 → 0.1.8

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 (53) hide show
  1. package/dist/{ProviderProxy-C-xqrkKi.d.ts → ProviderProxy--ROec6VI.d.ts} +22 -3
  2. package/dist/{ProviderProxy-CnMQYN59.d.cts → ProviderProxy-QdwNV6l1.d.cts} +22 -3
  3. package/dist/{chunk-4BB343BI.cjs → chunk-26K6T2YS.cjs} +1209 -472
  4. package/dist/{chunk-OJGQKHN5.cjs → chunk-EPN67EGP.cjs} +3 -0
  5. package/dist/{chunk-E3COOKUP.js → chunk-QYC54PMG.js} +924 -187
  6. package/dist/{chunk-SOO562NM.js → chunk-UAPBLNN2.js} +3 -0
  7. package/dist/completion/ApiKeyPoolService.cjs +32 -1
  8. package/dist/completion/ApiKeyPoolService.d.cts +17 -1
  9. package/dist/completion/ApiKeyPoolService.d.ts +17 -1
  10. package/dist/completion/ApiKeyPoolService.js +31 -0
  11. package/dist/completion/CompletionService.cjs +3 -3
  12. package/dist/completion/CompletionService.js +2 -2
  13. package/dist/completion.cjs +3 -3
  14. package/dist/completion.js +2 -2
  15. package/dist/index.cjs +59 -3
  16. package/dist/index.d.cts +5 -5
  17. package/dist/index.d.ts +5 -5
  18. package/dist/index.js +58 -2
  19. package/dist/outbound-api/routeResolver.d.cts +3 -3
  20. package/dist/outbound-api/routeResolver.d.ts +3 -3
  21. package/dist/outbound-api/types.d.cts +2 -2
  22. package/dist/outbound-api/types.d.ts +2 -2
  23. package/dist/outbound-api.cjs +3 -3
  24. package/dist/outbound-api.d.cts +4 -4
  25. package/dist/outbound-api.d.ts +4 -4
  26. package/dist/outbound-api.js +2 -2
  27. package/dist/pipeline/AccountAllowanceScheduling.d.cts +2 -2
  28. package/dist/pipeline/AccountAllowanceScheduling.d.ts +2 -2
  29. package/dist/ports.d.cts +2 -2
  30. package/dist/ports.d.ts +2 -2
  31. package/dist/provider-proxy/ProviderProxy.cjs +3 -3
  32. package/dist/provider-proxy/ProviderProxy.d.cts +1 -1
  33. package/dist/provider-proxy/ProviderProxy.d.ts +1 -1
  34. package/dist/provider-proxy/ProviderProxy.js +2 -2
  35. package/dist/provider-proxy/ingress/providerProxyShared.cjs +3 -3
  36. package/dist/provider-proxy/ingress/providerProxyShared.js +2 -2
  37. package/dist/provider-proxy/types.d.cts +15 -1
  38. package/dist/provider-proxy/types.d.ts +15 -1
  39. package/dist/provider-proxy.cjs +59 -3
  40. package/dist/provider-proxy.d.cts +254 -8
  41. package/dist/provider-proxy.d.ts +254 -8
  42. package/dist/provider-proxy.js +60 -4
  43. package/dist/{routeResolver-BxOfunbm.d.ts → routeResolver-C0mkkZaM.d.ts} +1 -1
  44. package/dist/{routeResolver-D5OzD0iM.d.cts → routeResolver-CVFE8KKe.d.cts} +1 -1
  45. package/dist/{types-CqZD77rS.d.ts → types-BB8pxk_3.d.ts} +1 -1
  46. package/dist/{types-gjJ5lJ5n.d.cts → types-C2MwkLah.d.cts} +1 -1
  47. package/dist/usage/usage-recorder.cjs +2 -2
  48. package/dist/usage/usage-recorder.d.cts +6 -0
  49. package/dist/usage/usage-recorder.d.ts +6 -0
  50. package/dist/usage/usage-recorder.js +1 -1
  51. package/dist/usage.cjs +2 -2
  52. package/dist/usage.js +1 -1
  53. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import '../ports/provider-config-source.cjs';
2
2
  import '../provider-proxy/types.cjs';
3
- import '../types-gjJ5lJ5n.cjs';
4
- export { R as RouteResolveError, b as RouteResolveResult, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from '../routeResolver-D5OzD0iM.cjs';
3
+ import '../types-C2MwkLah.cjs';
4
+ export { R as RouteResolveError, b as RouteResolveResult, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from '../routeResolver-CVFE8KKe.cjs';
5
5
  import '@omnicross/contracts/llm-config';
6
6
  import '../transformer/types.cjs';
7
7
  import '../transformer/TransformerService.cjs';
@@ -24,5 +24,5 @@ import '@omnicross/contracts/billing-types';
24
24
  import '@omnicross/contracts/health-logging-types';
25
25
  import '@omnicross/contracts/voucher-types';
26
26
  import '@omnicross/contracts/webhook-types';
27
- import '../ProviderProxy-CnMQYN59.cjs';
27
+ import '../ProviderProxy-QdwNV6l1.cjs';
28
28
  import '../keyPolicy-zdWTu3CQ.cjs';
@@ -1,7 +1,7 @@
1
1
  import '../ports/provider-config-source.js';
2
2
  import '../provider-proxy/types.js';
3
- import '../types-CqZD77rS.js';
4
- export { R as RouteResolveError, b as RouteResolveResult, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from '../routeResolver-BxOfunbm.js';
3
+ import '../types-BB8pxk_3.js';
4
+ export { R as RouteResolveError, b as RouteResolveResult, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from '../routeResolver-C0mkkZaM.js';
5
5
  import '@omnicross/contracts/llm-config';
6
6
  import '../transformer/types.js';
7
7
  import '../transformer/TransformerService.js';
@@ -24,5 +24,5 @@ import '@omnicross/contracts/billing-types';
24
24
  import '@omnicross/contracts/health-logging-types';
25
25
  import '@omnicross/contracts/voucher-types';
26
26
  import '@omnicross/contracts/webhook-types';
27
- import '../ProviderProxy-C-xqrkKi.js';
27
+ import '../ProviderProxy--ROec6VI.js';
28
28
  import '../keyPolicy-zdWTu3CQ.js';
@@ -6,10 +6,10 @@ import '@omnicross/contracts/voucher-types';
6
6
  import '@omnicross/contracts/webhook-types';
7
7
  import '../logger-4GvQNzhE.cjs';
8
8
  import '../ports/provider-config-source.cjs';
9
- import '../ProviderProxy-CnMQYN59.cjs';
9
+ import '../ProviderProxy-QdwNV6l1.cjs';
10
10
  import '../provider-proxy/types.cjs';
11
+ export { S as AccountHealthConfig, A as AccountProbeConfig, a as AllowanceSchedulingConfig, C as ChatDispatchMode, b as ConcurrencyQueueConfig, 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, k as KindMappedEndpoint, M as MessagesModelKind, l as ModelKind, m as ModelPrefixTargets, Q as ModelRef, n as OutboundApiDeps, o as OutboundApiKeyCreated, p as OutboundApiKeyInfo, q as OutboundApiServerConfig, r as OutboundApiServerStatus, s as OutboundEndpoint, t as OutboundFormatUrls, u as OutboundKeyActivationMode, O as OutboundKeyDb, v as OutboundKeyDbRow, T as OutboundKeyModelRestrictionMode, w as OutboundKeyPolicy, x as OutboundProxyConfig, R as RequestRole, y as ResponsesModelKind, U as UserMessageQueueConfig } from '../types-C2MwkLah.cjs';
11
12
  import '../pipeline/BoundAccountSelectionError.cjs';
12
- export { S as AccountHealthConfig, A as AccountProbeConfig, a as AllowanceSchedulingConfig, C as ChatDispatchMode, b as ConcurrencyQueueConfig, 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, k as KindMappedEndpoint, M as MessagesModelKind, l as ModelKind, m as ModelPrefixTargets, Q as ModelRef, n as OutboundApiDeps, o as OutboundApiKeyCreated, p as OutboundApiKeyInfo, q as OutboundApiServerConfig, r as OutboundApiServerStatus, s as OutboundEndpoint, t as OutboundFormatUrls, u as OutboundKeyActivationMode, O as OutboundKeyDb, v as OutboundKeyDbRow, T as OutboundKeyModelRestrictionMode, w as OutboundKeyPolicy, x as OutboundProxyConfig, R as RequestRole, y as ResponsesModelKind, U as UserMessageQueueConfig } from '../types-gjJ5lJ5n.cjs';
13
13
  import '@omnicross/contracts/llm-config';
14
14
  import '../transformer/types.cjs';
15
15
  import '../transformer/TransformerService.cjs';
@@ -6,10 +6,10 @@ import '@omnicross/contracts/voucher-types';
6
6
  import '@omnicross/contracts/webhook-types';
7
7
  import '../logger-4GvQNzhE.js';
8
8
  import '../ports/provider-config-source.js';
9
- import '../ProviderProxy-C-xqrkKi.js';
9
+ import '../ProviderProxy--ROec6VI.js';
10
10
  import '../provider-proxy/types.js';
11
+ export { S as AccountHealthConfig, A as AccountProbeConfig, a as AllowanceSchedulingConfig, C as ChatDispatchMode, b as ConcurrencyQueueConfig, 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, k as KindMappedEndpoint, M as MessagesModelKind, l as ModelKind, m as ModelPrefixTargets, Q as ModelRef, n as OutboundApiDeps, o as OutboundApiKeyCreated, p as OutboundApiKeyInfo, q as OutboundApiServerConfig, r as OutboundApiServerStatus, s as OutboundEndpoint, t as OutboundFormatUrls, u as OutboundKeyActivationMode, O as OutboundKeyDb, v as OutboundKeyDbRow, T as OutboundKeyModelRestrictionMode, w as OutboundKeyPolicy, x as OutboundProxyConfig, R as RequestRole, y as ResponsesModelKind, U as UserMessageQueueConfig } from '../types-BB8pxk_3.js';
11
12
  import '../pipeline/BoundAccountSelectionError.js';
12
- export { S as AccountHealthConfig, A as AccountProbeConfig, a as AllowanceSchedulingConfig, C as ChatDispatchMode, b as ConcurrencyQueueConfig, 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, k as KindMappedEndpoint, M as MessagesModelKind, l as ModelKind, m as ModelPrefixTargets, Q as ModelRef, n as OutboundApiDeps, o as OutboundApiKeyCreated, p as OutboundApiKeyInfo, q as OutboundApiServerConfig, r as OutboundApiServerStatus, s as OutboundEndpoint, t as OutboundFormatUrls, u as OutboundKeyActivationMode, O as OutboundKeyDb, v as OutboundKeyDbRow, T as OutboundKeyModelRestrictionMode, w as OutboundKeyPolicy, x as OutboundProxyConfig, R as RequestRole, y as ResponsesModelKind, U as UserMessageQueueConfig } from '../types-CqZD77rS.js';
13
13
  import '@omnicross/contracts/llm-config';
14
14
  import '../transformer/types.js';
15
15
  import '../transformer/TransformerService.js';
@@ -63,7 +63,7 @@
63
63
 
64
64
 
65
65
 
66
- var _chunk4BB343BIcjs = require('./chunk-4BB343BI.cjs');
66
+ var _chunk26K6T2YScjs = require('./chunk-26K6T2YS.cjs');
67
67
  require('./chunk-HQP3K7PU.cjs');
68
68
  require('./chunk-FZ46M34D.cjs');
69
69
  require('./chunk-2Z4XM3H5.cjs');
@@ -74,7 +74,7 @@ require('./chunk-5RSZYQJH.cjs');
74
74
  require('./chunk-OF3BECU2.cjs');
75
75
  require('./chunk-EYZYXJTJ.cjs');
76
76
  require('./chunk-2E42SAW3.cjs');
77
- require('./chunk-OJGQKHN5.cjs');
77
+ require('./chunk-EPN67EGP.cjs');
78
78
  require('./chunk-IIRPUVPH.cjs');
79
79
  require('./chunk-GBHYAGX3.cjs');
80
80
  require('./chunk-3OPYJG76.cjs');
@@ -231,4 +231,4 @@ require('./chunk-UNEFIWXI.cjs');
231
231
 
232
232
 
233
233
 
234
- exports.AUDIT_REDACTED = _chunkFCR77GYMcjs.AUDIT_REDACTED; exports.BoundAccountSelectionError = _chunk25GXJCEZcjs.BoundAccountSelectionError; exports.ConcurrencyQueueFullError = _chunk4BB343BIcjs.ConcurrencyQueueFullError; exports.ConcurrencyWaitCancelledError = _chunk4BB343BIcjs.ConcurrencyWaitCancelledError; exports.ConcurrencyWaitTimeoutError = _chunk4BB343BIcjs.ConcurrencyWaitTimeoutError; exports.DEFAULT_ACCOUNT_PROBE = _chunk4BB343BIcjs.DEFAULT_ACCOUNT_PROBE; exports.DEFAULT_ALLOWANCE_SCHEDULING = _chunk4BB343BIcjs.DEFAULT_ALLOWANCE_SCHEDULING; exports.DEFAULT_CONCURRENCY_QUEUE = _chunk4BB343BIcjs.DEFAULT_CONCURRENCY_QUEUE; exports.DEFAULT_FINGERPRINT = _chunk4BB343BIcjs.DEFAULT_FINGERPRINT; exports.DEFAULT_OUTBOUND_PORT = _chunk4BB343BIcjs.DEFAULT_OUTBOUND_PORT; exports.DEFAULT_USER_MESSAGE_QUEUE = _chunk4BB343BIcjs.DEFAULT_USER_MESSAGE_QUEUE; exports.ENDPOINT_MODEL_KINDS = _chunk4IH4EL7Mcjs.ENDPOINT_MODEL_KINDS; exports.KeySpendTracker = _chunk4BB343BIcjs.KeySpendTracker; exports.KeyedMutex = _chunk4BB343BIcjs.KeyedMutex; exports.OUTBOUND_API_SERVER_CONFIG_KEY = _chunk4BB343BIcjs.OUTBOUND_API_SERVER_CONFIG_KEY; exports.OutboundApiServer = _chunk4BB343BIcjs.OutboundApiServer; exports.OutboundConcurrencyGate = _chunk4BB343BIcjs.OutboundConcurrencyGate; exports.OutboundRateLimiter = _chunk4BB343BIcjs.OutboundRateLimiter; exports.SUBSCRIPTION_PROVIDER_IDS = _chunk4VZX5F4Tcjs.SUBSCRIPTION_PROVIDER_IDS; exports.SerialQueueTimeoutError = _chunk4BB343BIcjs.SerialQueueTimeoutError; exports.UserMessageSerialQueue = _chunk4BB343BIcjs.UserMessageSerialQueue; exports.__resetOutboundApiServerForTests = _chunk4BB343BIcjs.__resetOutboundApiServerForTests; exports.beginAuditCapture = _chunkXPIOJQS2cjs.beginAuditCapture; exports.beginBillingCapture = _chunkAPYG5QD7cjs.beginBillingCapture; exports.boundAccountSelectionMessage = _chunk25GXJCEZcjs.boundAccountSelectionMessage; exports.candidateBackgroundModelIds = _chunk4BB343BIcjs.candidateBackgroundModelIds; exports.candidateGatewayBindings = _chunk4BB343BIcjs.candidateGatewayBindings; exports.checkKeyQuota = _chunk4BB343BIcjs.checkKeyQuota; exports.classifyModelPrefix = _chunk4VZX5F4Tcjs.classifyModelPrefix; exports.computeKeyExpiry = _chunk4BB343BIcjs.computeKeyExpiry; exports.computeVoucherGrant = _chunk4BB343BIcjs.computeVoucherGrant; exports.createIntegrationKey = _chunk4BB343BIcjs.createIntegrationKey; exports.createNamedKey = _chunk4BB343BIcjs.createNamedKey; exports.defaultServerConfig = _chunk4BB343BIcjs.defaultServerConfig; exports.detectModelKind = _chunk4VZX5F4Tcjs.detectModelKind; exports.detectRequestRole = _chunk4VZX5F4Tcjs.detectRequestRole; exports.endpointSupportsSubscription = _chunk4VZX5F4Tcjs.endpointSupportsSubscription; exports.endpointToIngressFormat = _chunk4VZX5F4Tcjs.endpointToIngressFormat; exports.formatUrls = _chunk4BB343BIcjs.formatUrls; exports.gatewayBindingToEndpointConfig = _chunk4BB343BIcjs.gatewayBindingToEndpointConfig; exports.generateVoucherCode = _chunk4BB343BIcjs.generateVoucherCode; exports.getOutboundApiServer = _chunk4BB343BIcjs.getOutboundApiServer; exports.handleVoucherRedeem = _chunk4BB343BIcjs.handleVoucherRedeem; exports.hashKey = _chunk4BB343BIcjs.hashKey; exports.hashVoucherCode = _chunk4BB343BIcjs.hashVoucherCode; exports.isBoundAccountSelectionError = _chunk25GXJCEZcjs.isBoundAccountSelectionError; exports.isConcurrencyRejection = _chunk4BB343BIcjs.isConcurrencyRejection; exports.isKindMappedEndpoint = _chunk4VZX5F4Tcjs.isKindMappedEndpoint; exports.isRedeemRequest = _chunk4BB343BIcjs.isRedeemRequest; exports.isSerialQueueTimeout = _chunk4BB343BIcjs.isSerialQueueTimeout; exports.isSubscriptionProviderId = _chunk4VZX5F4Tcjs.isSubscriptionProviderId; exports.isUserMessageRequest = _chunk4BB343BIcjs.isUserMessageRequest; exports.legacyEndpointsToBindings = _chunk4BB343BIcjs.legacyEndpointsToBindings; exports.loadServerConfig = _chunk4BB343BIcjs.loadServerConfig; exports.mergeServerConfig = _chunk4BB343BIcjs.mergeServerConfig; exports.modelKindsForEndpoint = _chunk4VZX5F4Tcjs.modelKindsForEndpoint; exports.newVoucherId = _chunk4BB343BIcjs.newVoucherId; exports.normalizeAccountProbe = _chunk4BB343BIcjs.normalizeAccountProbe; exports.normalizeAllowanceScheduling = _chunk4BB343BIcjs.normalizeAllowanceScheduling; exports.normalizeAudit = _chunk4BB343BIcjs.normalizeAudit; exports.normalizeBilling = _chunk4BB343BIcjs.normalizeBilling; exports.normalizeFingerprint = _chunk4BB343BIcjs.normalizeFingerprint; exports.normalizeGatewayBindings = _chunk4BB343BIcjs.normalizeGatewayBindings; exports.normalizePrefixTargets = _chunk4BB343BIcjs.normalizePrefixTargets; exports.normalizeProxyConfig = _chunk4BB343BIcjs.normalizeProxyConfig; exports.normalizeProxySegment = _chunk4BB343BIcjs.normalizeProxySegment; exports.normalizeQueueSegments = _chunk4BB343BIcjs.normalizeQueueSegments; exports.normalizeServerConfig = _chunk4BB343BIcjs.normalizeServerConfig; exports.normalizeVoucher = _chunk4BB343BIcjs.normalizeVoucher; exports.normalizeWebhookDestination = _chunk4BB343BIcjs.normalizeWebhookDestination; exports.normalizeWebhookSegment = _chunk4BB343BIcjs.normalizeWebhookSegment; exports.parseModelRef = _chunk4VZX5F4Tcjs.parseModelRef; exports.pickModelRefFromList = _chunk4VZX5F4Tcjs.pickModelRefFromList; exports.randomBase62 = _chunk4BB343BIcjs.randomBase62; exports.redactAuditText = _chunkFCR77GYMcjs.redactAuditText; exports.resolveGatewayBinding = _chunk4BB343BIcjs.resolveGatewayBinding; exports.resolvePrefixTarget = _chunk4VZX5F4Tcjs.resolvePrefixTarget; exports.resolveRoute = _chunk4VZX5F4Tcjs.resolveRoute; exports.saveServerConfig = _chunk4BB343BIcjs.saveServerConfig; exports.startOfLocalDay = _chunk4BB343BIcjs.startOfLocalDay; exports.startOfLocalWeek = _chunk4BB343BIcjs.startOfLocalWeek; exports.toVoucherInfo = _chunk4BB343BIcjs.toVoucherInfo; exports.validateEndpointModelConfig = _chunk4VZX5F4Tcjs.validateEndpointModelConfig; exports.verifyKey = _chunk4BB343BIcjs.verifyKey; exports.verifyPresentedKey = _chunk4BB343BIcjs.verifyPresentedKey; exports.voucherCodePrefix = _chunk4BB343BIcjs.voucherCodePrefix;
234
+ exports.AUDIT_REDACTED = _chunkFCR77GYMcjs.AUDIT_REDACTED; exports.BoundAccountSelectionError = _chunk25GXJCEZcjs.BoundAccountSelectionError; exports.ConcurrencyQueueFullError = _chunk26K6T2YScjs.ConcurrencyQueueFullError; exports.ConcurrencyWaitCancelledError = _chunk26K6T2YScjs.ConcurrencyWaitCancelledError; exports.ConcurrencyWaitTimeoutError = _chunk26K6T2YScjs.ConcurrencyWaitTimeoutError; exports.DEFAULT_ACCOUNT_PROBE = _chunk26K6T2YScjs.DEFAULT_ACCOUNT_PROBE; exports.DEFAULT_ALLOWANCE_SCHEDULING = _chunk26K6T2YScjs.DEFAULT_ALLOWANCE_SCHEDULING; exports.DEFAULT_CONCURRENCY_QUEUE = _chunk26K6T2YScjs.DEFAULT_CONCURRENCY_QUEUE; exports.DEFAULT_FINGERPRINT = _chunk26K6T2YScjs.DEFAULT_FINGERPRINT; exports.DEFAULT_OUTBOUND_PORT = _chunk26K6T2YScjs.DEFAULT_OUTBOUND_PORT; exports.DEFAULT_USER_MESSAGE_QUEUE = _chunk26K6T2YScjs.DEFAULT_USER_MESSAGE_QUEUE; exports.ENDPOINT_MODEL_KINDS = _chunk4IH4EL7Mcjs.ENDPOINT_MODEL_KINDS; exports.KeySpendTracker = _chunk26K6T2YScjs.KeySpendTracker; exports.KeyedMutex = _chunk26K6T2YScjs.KeyedMutex; exports.OUTBOUND_API_SERVER_CONFIG_KEY = _chunk26K6T2YScjs.OUTBOUND_API_SERVER_CONFIG_KEY; exports.OutboundApiServer = _chunk26K6T2YScjs.OutboundApiServer; exports.OutboundConcurrencyGate = _chunk26K6T2YScjs.OutboundConcurrencyGate; exports.OutboundRateLimiter = _chunk26K6T2YScjs.OutboundRateLimiter; exports.SUBSCRIPTION_PROVIDER_IDS = _chunk4VZX5F4Tcjs.SUBSCRIPTION_PROVIDER_IDS; exports.SerialQueueTimeoutError = _chunk26K6T2YScjs.SerialQueueTimeoutError; exports.UserMessageSerialQueue = _chunk26K6T2YScjs.UserMessageSerialQueue; exports.__resetOutboundApiServerForTests = _chunk26K6T2YScjs.__resetOutboundApiServerForTests; exports.beginAuditCapture = _chunkXPIOJQS2cjs.beginAuditCapture; exports.beginBillingCapture = _chunkAPYG5QD7cjs.beginBillingCapture; exports.boundAccountSelectionMessage = _chunk25GXJCEZcjs.boundAccountSelectionMessage; exports.candidateBackgroundModelIds = _chunk26K6T2YScjs.candidateBackgroundModelIds; exports.candidateGatewayBindings = _chunk26K6T2YScjs.candidateGatewayBindings; exports.checkKeyQuota = _chunk26K6T2YScjs.checkKeyQuota; exports.classifyModelPrefix = _chunk4VZX5F4Tcjs.classifyModelPrefix; exports.computeKeyExpiry = _chunk26K6T2YScjs.computeKeyExpiry; exports.computeVoucherGrant = _chunk26K6T2YScjs.computeVoucherGrant; exports.createIntegrationKey = _chunk26K6T2YScjs.createIntegrationKey; exports.createNamedKey = _chunk26K6T2YScjs.createNamedKey; exports.defaultServerConfig = _chunk26K6T2YScjs.defaultServerConfig; exports.detectModelKind = _chunk4VZX5F4Tcjs.detectModelKind; exports.detectRequestRole = _chunk4VZX5F4Tcjs.detectRequestRole; exports.endpointSupportsSubscription = _chunk4VZX5F4Tcjs.endpointSupportsSubscription; exports.endpointToIngressFormat = _chunk4VZX5F4Tcjs.endpointToIngressFormat; exports.formatUrls = _chunk26K6T2YScjs.formatUrls; exports.gatewayBindingToEndpointConfig = _chunk26K6T2YScjs.gatewayBindingToEndpointConfig; exports.generateVoucherCode = _chunk26K6T2YScjs.generateVoucherCode; exports.getOutboundApiServer = _chunk26K6T2YScjs.getOutboundApiServer; exports.handleVoucherRedeem = _chunk26K6T2YScjs.handleVoucherRedeem; exports.hashKey = _chunk26K6T2YScjs.hashKey; exports.hashVoucherCode = _chunk26K6T2YScjs.hashVoucherCode; exports.isBoundAccountSelectionError = _chunk25GXJCEZcjs.isBoundAccountSelectionError; exports.isConcurrencyRejection = _chunk26K6T2YScjs.isConcurrencyRejection; exports.isKindMappedEndpoint = _chunk4VZX5F4Tcjs.isKindMappedEndpoint; exports.isRedeemRequest = _chunk26K6T2YScjs.isRedeemRequest; exports.isSerialQueueTimeout = _chunk26K6T2YScjs.isSerialQueueTimeout; exports.isSubscriptionProviderId = _chunk4VZX5F4Tcjs.isSubscriptionProviderId; exports.isUserMessageRequest = _chunk26K6T2YScjs.isUserMessageRequest; exports.legacyEndpointsToBindings = _chunk26K6T2YScjs.legacyEndpointsToBindings; exports.loadServerConfig = _chunk26K6T2YScjs.loadServerConfig; exports.mergeServerConfig = _chunk26K6T2YScjs.mergeServerConfig; exports.modelKindsForEndpoint = _chunk4VZX5F4Tcjs.modelKindsForEndpoint; exports.newVoucherId = _chunk26K6T2YScjs.newVoucherId; exports.normalizeAccountProbe = _chunk26K6T2YScjs.normalizeAccountProbe; exports.normalizeAllowanceScheduling = _chunk26K6T2YScjs.normalizeAllowanceScheduling; exports.normalizeAudit = _chunk26K6T2YScjs.normalizeAudit; exports.normalizeBilling = _chunk26K6T2YScjs.normalizeBilling; exports.normalizeFingerprint = _chunk26K6T2YScjs.normalizeFingerprint; exports.normalizeGatewayBindings = _chunk26K6T2YScjs.normalizeGatewayBindings; exports.normalizePrefixTargets = _chunk26K6T2YScjs.normalizePrefixTargets; exports.normalizeProxyConfig = _chunk26K6T2YScjs.normalizeProxyConfig; exports.normalizeProxySegment = _chunk26K6T2YScjs.normalizeProxySegment; exports.normalizeQueueSegments = _chunk26K6T2YScjs.normalizeQueueSegments; exports.normalizeServerConfig = _chunk26K6T2YScjs.normalizeServerConfig; exports.normalizeVoucher = _chunk26K6T2YScjs.normalizeVoucher; exports.normalizeWebhookDestination = _chunk26K6T2YScjs.normalizeWebhookDestination; exports.normalizeWebhookSegment = _chunk26K6T2YScjs.normalizeWebhookSegment; exports.parseModelRef = _chunk4VZX5F4Tcjs.parseModelRef; exports.pickModelRefFromList = _chunk4VZX5F4Tcjs.pickModelRefFromList; exports.randomBase62 = _chunk26K6T2YScjs.randomBase62; exports.redactAuditText = _chunkFCR77GYMcjs.redactAuditText; exports.resolveGatewayBinding = _chunk26K6T2YScjs.resolveGatewayBinding; exports.resolvePrefixTarget = _chunk4VZX5F4Tcjs.resolvePrefixTarget; exports.resolveRoute = _chunk4VZX5F4Tcjs.resolveRoute; exports.saveServerConfig = _chunk26K6T2YScjs.saveServerConfig; exports.startOfLocalDay = _chunk26K6T2YScjs.startOfLocalDay; exports.startOfLocalWeek = _chunk26K6T2YScjs.startOfLocalWeek; exports.toVoucherInfo = _chunk26K6T2YScjs.toVoucherInfo; exports.validateEndpointModelConfig = _chunk4VZX5F4Tcjs.validateEndpointModelConfig; exports.verifyKey = _chunk26K6T2YScjs.verifyKey; exports.verifyPresentedKey = _chunk26K6T2YScjs.verifyPresentedKey; exports.voucherCodePrefix = _chunk26K6T2YScjs.voucherCodePrefix;
@@ -1,6 +1,6 @@
1
1
  import { VoucherConfig } from '@omnicross/contracts/voucher-types';
2
- import { c as EndpointRoutingConfig, G as GatewayBinding, U as UserMessageQueueConfig, b as ConcurrencyQueueConfig, n as OutboundApiDeps, r as OutboundApiServerStatus, t as OutboundFormatUrls, A as AccountProbeConfig, a as AllowanceSchedulingConfig, F as FingerprintConfig, q as OutboundApiServerConfig, m as ModelPrefixTargets, x as OutboundProxyConfig, s as OutboundEndpoint, R as RequestRole, Q as ModelRef, k as KindMappedEndpoint, l as ModelKind, O as OutboundKeyDb, o as OutboundApiKeyCreated } from './types-gjJ5lJ5n.cjs';
3
- export { C as ChatDispatchMode, E as ENDPOINT_MODEL_KINDS, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, g as GatewayBindingTarget, h as GatewayModelMapping, K as KeySpendReader, i as KeySpendSeeder, j as KeySpendTracker, M as MessagesModelKind, p as OutboundApiKeyInfo, u as OutboundKeyActivationMode, v as OutboundKeyDbRow, w as OutboundKeyPolicy, y as ResponsesModelKind, V as VoucherCreateInput, z as VoucherDb, B as computeVoucherGrant, D as generateVoucherCode, H as hashVoucherCode, I as newVoucherId, J as startOfLocalDay, L as startOfLocalWeek, N as toVoucherInfo, P as voucherCodePrefix } from './types-gjJ5lJ5n.cjs';
2
+ import { c as EndpointRoutingConfig, G as GatewayBinding, U as UserMessageQueueConfig, b as ConcurrencyQueueConfig, n as OutboundApiDeps, r as OutboundApiServerStatus, t as OutboundFormatUrls, A as AccountProbeConfig, a as AllowanceSchedulingConfig, F as FingerprintConfig, q as OutboundApiServerConfig, m as ModelPrefixTargets, x as OutboundProxyConfig, s as OutboundEndpoint, R as RequestRole, Q as ModelRef, k as KindMappedEndpoint, l as ModelKind, O as OutboundKeyDb, o as OutboundApiKeyCreated } from './types-C2MwkLah.cjs';
3
+ export { C as ChatDispatchMode, E as ENDPOINT_MODEL_KINDS, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, g as GatewayBindingTarget, h as GatewayModelMapping, K as KeySpendReader, i as KeySpendSeeder, j as KeySpendTracker, M as MessagesModelKind, p as OutboundApiKeyInfo, u as OutboundKeyActivationMode, v as OutboundKeyDbRow, w as OutboundKeyPolicy, y as ResponsesModelKind, V as VoucherCreateInput, z as VoucherDb, B as computeVoucherGrant, D as generateVoucherCode, H as hashVoucherCode, I as newVoucherId, J as startOfLocalDay, L as startOfLocalWeek, N as toVoucherInfo, P as voucherCodePrefix } from './types-C2MwkLah.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';
@@ -12,7 +12,7 @@ import { K as KeyCostLimits, M as ModelRestriction } from './keyPolicy-zdWTu3CQ.
12
12
  export { a as KeyExpiryInput, b as KeyExpiryResult, c as KeySpend, Q as QuotaDecision, d as checkKeyQuota, e as computeKeyExpiry } from './keyPolicy-zdWTu3CQ.cjs';
13
13
  import http from 'node:http';
14
14
  import { IngressFormat } from './provider-proxy/types.cjs';
15
- export { S as SUBSCRIPTION_PROVIDER_IDS, e as endpointSupportsSubscription, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from './routeResolver-D5OzD0iM.cjs';
15
+ export { S as SUBSCRIPTION_PROVIDER_IDS, e as endpointSupportsSubscription, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from './routeResolver-CVFE8KKe.cjs';
16
16
  export { BoundAccountFallbackPolicy, BoundAccountSelectionError, BoundAccountSelectionFailureReason, boundAccountSelectionMessage, isBoundAccountSelectionError } from './pipeline/BoundAccountSelectionError.cjs';
17
17
  import '@omnicross/contracts/health-logging-types';
18
18
  import './logger-4GvQNzhE.cjs';
@@ -20,7 +20,7 @@ import './ports/provider-config-source.cjs';
20
20
  import '@omnicross/contracts/llm-config';
21
21
  import './transformer/types.cjs';
22
22
  import './transformer/TransformerService.cjs';
23
- import './ProviderProxy-CnMQYN59.cjs';
23
+ import './ProviderProxy-QdwNV6l1.cjs';
24
24
  import '@omnicross/contracts/completion-types';
25
25
  import '@omnicross/contracts/usage-stats-types';
26
26
  import '@omnicross/contracts/subscription-types';
@@ -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, n as OutboundApiDeps, r as OutboundApiServerStatus, t as OutboundFormatUrls, A as AccountProbeConfig, a as AllowanceSchedulingConfig, F as FingerprintConfig, q as OutboundApiServerConfig, m as ModelPrefixTargets, x as OutboundProxyConfig, s as OutboundEndpoint, R as RequestRole, Q as ModelRef, k as KindMappedEndpoint, l as ModelKind, O as OutboundKeyDb, o as OutboundApiKeyCreated } from './types-CqZD77rS.js';
3
- export { C as ChatDispatchMode, E as ENDPOINT_MODEL_KINDS, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, g as GatewayBindingTarget, h as GatewayModelMapping, K as KeySpendReader, i as KeySpendSeeder, j as KeySpendTracker, M as MessagesModelKind, p as OutboundApiKeyInfo, u as OutboundKeyActivationMode, v as OutboundKeyDbRow, w as OutboundKeyPolicy, y as ResponsesModelKind, V as VoucherCreateInput, z as VoucherDb, B as computeVoucherGrant, D as generateVoucherCode, H as hashVoucherCode, I as newVoucherId, J as startOfLocalDay, L as startOfLocalWeek, N as toVoucherInfo, P as voucherCodePrefix } from './types-CqZD77rS.js';
2
+ import { c as EndpointRoutingConfig, G as GatewayBinding, U as UserMessageQueueConfig, b as ConcurrencyQueueConfig, n as OutboundApiDeps, r as OutboundApiServerStatus, t as OutboundFormatUrls, A as AccountProbeConfig, a as AllowanceSchedulingConfig, F as FingerprintConfig, q as OutboundApiServerConfig, m as ModelPrefixTargets, x as OutboundProxyConfig, s as OutboundEndpoint, R as RequestRole, Q as ModelRef, k as KindMappedEndpoint, l as ModelKind, O as OutboundKeyDb, o as OutboundApiKeyCreated } from './types-BB8pxk_3.js';
3
+ export { C as ChatDispatchMode, E as ENDPOINT_MODEL_KINDS, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, g as GatewayBindingTarget, h as GatewayModelMapping, K as KeySpendReader, i as KeySpendSeeder, j as KeySpendTracker, M as MessagesModelKind, p as OutboundApiKeyInfo, u as OutboundKeyActivationMode, v as OutboundKeyDbRow, w as OutboundKeyPolicy, y as ResponsesModelKind, V as VoucherCreateInput, z as VoucherDb, B as computeVoucherGrant, D as generateVoucherCode, H as hashVoucherCode, I as newVoucherId, J as startOfLocalDay, L as startOfLocalWeek, N as toVoucherInfo, P as voucherCodePrefix } from './types-BB8pxk_3.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';
@@ -12,7 +12,7 @@ import { K as KeyCostLimits, M as ModelRestriction } from './keyPolicy-zdWTu3CQ.
12
12
  export { a as KeyExpiryInput, b as KeyExpiryResult, c as KeySpend, Q as QuotaDecision, d as checkKeyQuota, e as computeKeyExpiry } from './keyPolicy-zdWTu3CQ.js';
13
13
  import http from 'node:http';
14
14
  import { IngressFormat } from './provider-proxy/types.js';
15
- export { S as SUBSCRIPTION_PROVIDER_IDS, e as endpointSupportsSubscription, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from './routeResolver-BxOfunbm.js';
15
+ export { S as SUBSCRIPTION_PROVIDER_IDS, e as endpointSupportsSubscription, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from './routeResolver-C0mkkZaM.js';
16
16
  export { BoundAccountFallbackPolicy, BoundAccountSelectionError, BoundAccountSelectionFailureReason, boundAccountSelectionMessage, isBoundAccountSelectionError } from './pipeline/BoundAccountSelectionError.js';
17
17
  import '@omnicross/contracts/health-logging-types';
18
18
  import './logger-4GvQNzhE.js';
@@ -20,7 +20,7 @@ import './ports/provider-config-source.js';
20
20
  import '@omnicross/contracts/llm-config';
21
21
  import './transformer/types.js';
22
22
  import './transformer/TransformerService.js';
23
- import './ProviderProxy-C-xqrkKi.js';
23
+ import './ProviderProxy--ROec6VI.js';
24
24
  import '@omnicross/contracts/completion-types';
25
25
  import '@omnicross/contracts/usage-stats-types';
26
26
  import '@omnicross/contracts/subscription-types';
@@ -63,7 +63,7 @@ import {
63
63
  verifyKey,
64
64
  verifyPresentedKey,
65
65
  voucherCodePrefix
66
- } from "./chunk-E3COOKUP.js";
66
+ } from "./chunk-QYC54PMG.js";
67
67
  import "./chunk-VVEHS2LI.js";
68
68
  import "./chunk-46RLHI7D.js";
69
69
  import "./chunk-MYYR3HZL.js";
@@ -74,7 +74,7 @@ import "./chunk-FU7EAR73.js";
74
74
  import "./chunk-LB6EBS6Y.js";
75
75
  import "./chunk-7VU7V2E4.js";
76
76
  import "./chunk-FXR6N3SR.js";
77
- import "./chunk-SOO562NM.js";
77
+ import "./chunk-UAPBLNN2.js";
78
78
  import "./chunk-WNKWAEUR.js";
79
79
  import "./chunk-MZNPGW5Q.js";
80
80
  import "./chunk-DK4A7DLE.js";
@@ -1,5 +1,5 @@
1
1
  import { SubscriptionProviderId } from '@omnicross/contracts/subscription-types';
2
- import { a as AllowanceSchedulingConfig } from '../types-gjJ5lJ5n.cjs';
2
+ import { a as AllowanceSchedulingConfig } from '../types-C2MwkLah.cjs';
3
3
  import { AccountAllowanceStore } from './AccountAllowanceStore.cjs';
4
4
  import '@omnicross/contracts/account-tokens-types';
5
5
  import '@omnicross/contracts/audit-types';
@@ -12,7 +12,7 @@ import '../ports/provider-config-source.cjs';
12
12
  import '@omnicross/contracts/llm-config';
13
13
  import '../transformer/types.cjs';
14
14
  import '../transformer/TransformerService.cjs';
15
- import '../ProviderProxy-CnMQYN59.cjs';
15
+ import '../ProviderProxy-QdwNV6l1.cjs';
16
16
  import '../provider-proxy/types.cjs';
17
17
  import 'node:http';
18
18
  import '@omnicross/contracts/completion-types';
@@ -1,5 +1,5 @@
1
1
  import { SubscriptionProviderId } from '@omnicross/contracts/subscription-types';
2
- import { a as AllowanceSchedulingConfig } from '../types-CqZD77rS.js';
2
+ import { a as AllowanceSchedulingConfig } from '../types-BB8pxk_3.js';
3
3
  import { AccountAllowanceStore } from './AccountAllowanceStore.js';
4
4
  import '@omnicross/contracts/account-tokens-types';
5
5
  import '@omnicross/contracts/audit-types';
@@ -12,7 +12,7 @@ import '../ports/provider-config-source.js';
12
12
  import '@omnicross/contracts/llm-config';
13
13
  import '../transformer/types.js';
14
14
  import '../transformer/TransformerService.js';
15
- import '../ProviderProxy-C-xqrkKi.js';
15
+ import '../ProviderProxy--ROec6VI.js';
16
16
  import '../provider-proxy/types.js';
17
17
  import 'node:http';
18
18
  import '@omnicross/contracts/completion-types';
package/dist/ports.d.cts CHANGED
@@ -5,7 +5,7 @@ export { ProviderConfigSource } from './ports/provider-config-source.cjs';
5
5
  export { UsageEventStore } from './ports/usage-event-store.cjs';
6
6
  export { WebSearchBackend } from './ports/web-search-backend.cjs';
7
7
  export { UsageRecorderImport as UsageSink } from './provider-proxy/types.cjs';
8
- export { O as OutboundCredentialStore } from './types-gjJ5lJ5n.cjs';
8
+ export { O as OutboundCredentialStore } from './types-C2MwkLah.cjs';
9
9
  import '@omnicross/contracts/pricing-types';
10
10
  import '@omnicross/contracts/llm-config';
11
11
  import './transformer/types.cjs';
@@ -27,5 +27,5 @@ import '@omnicross/contracts/billing-types';
27
27
  import '@omnicross/contracts/health-logging-types';
28
28
  import '@omnicross/contracts/voucher-types';
29
29
  import '@omnicross/contracts/webhook-types';
30
- import './ProviderProxy-CnMQYN59.cjs';
30
+ import './ProviderProxy-QdwNV6l1.cjs';
31
31
  import './keyPolicy-zdWTu3CQ.cjs';
package/dist/ports.d.ts CHANGED
@@ -5,7 +5,7 @@ export { ProviderConfigSource } from './ports/provider-config-source.js';
5
5
  export { UsageEventStore } from './ports/usage-event-store.js';
6
6
  export { WebSearchBackend } from './ports/web-search-backend.js';
7
7
  export { UsageRecorderImport as UsageSink } from './provider-proxy/types.js';
8
- export { O as OutboundCredentialStore } from './types-CqZD77rS.js';
8
+ export { O as OutboundCredentialStore } from './types-BB8pxk_3.js';
9
9
  import '@omnicross/contracts/pricing-types';
10
10
  import '@omnicross/contracts/llm-config';
11
11
  import './transformer/types.js';
@@ -27,5 +27,5 @@ import '@omnicross/contracts/billing-types';
27
27
  import '@omnicross/contracts/health-logging-types';
28
28
  import '@omnicross/contracts/voucher-types';
29
29
  import '@omnicross/contracts/webhook-types';
30
- import './ProviderProxy-C-xqrkKi.js';
30
+ import './ProviderProxy--ROec6VI.js';
31
31
  import './keyPolicy-zdWTu3CQ.js';
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk4BB343BIcjs = require('../chunk-4BB343BI.cjs');
4
+ var _chunk26K6T2YScjs = require('../chunk-26K6T2YS.cjs');
5
5
  require('../chunk-HQP3K7PU.cjs');
6
6
  require('../chunk-FZ46M34D.cjs');
7
7
  require('../chunk-2Z4XM3H5.cjs');
@@ -12,7 +12,7 @@ require('../chunk-5RSZYQJH.cjs');
12
12
  require('../chunk-OF3BECU2.cjs');
13
13
  require('../chunk-EYZYXJTJ.cjs');
14
14
  require('../chunk-2E42SAW3.cjs');
15
- require('../chunk-OJGQKHN5.cjs');
15
+ require('../chunk-EPN67EGP.cjs');
16
16
  require('../chunk-IIRPUVPH.cjs');
17
17
  require('../chunk-GBHYAGX3.cjs');
18
18
  require('../chunk-3OPYJG76.cjs');
@@ -57,4 +57,4 @@ require('../chunk-UNEFIWXI.cjs');
57
57
 
58
58
 
59
59
 
60
- exports.ProviderProxy = _chunk4BB343BIcjs.ProviderProxy; exports.isLoopbackAddress = _chunk4BB343BIcjs.isLoopbackAddress;
60
+ exports.ProviderProxy = _chunk26K6T2YScjs.ProviderProxy; exports.isLoopbackAddress = _chunk26K6T2YScjs.isLoopbackAddress;
@@ -1,4 +1,4 @@
1
- export { P as ProviderProxy, i as isLoopbackAddress } from '../ProviderProxy-CnMQYN59.cjs';
1
+ export { P as ProviderProxy, i as isLoopbackAddress } from '../ProviderProxy-QdwNV6l1.cjs';
2
2
  import './types.cjs';
3
3
  import 'node:http';
4
4
  import '@omnicross/contracts/completion-types';
@@ -1,4 +1,4 @@
1
- export { P as ProviderProxy, i as isLoopbackAddress } from '../ProviderProxy-C-xqrkKi.js';
1
+ export { P as ProviderProxy, i as isLoopbackAddress } from '../ProviderProxy--ROec6VI.js';
2
2
  import './types.js';
3
3
  import 'node:http';
4
4
  import '@omnicross/contracts/completion-types';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ProviderProxy,
3
3
  isLoopbackAddress
4
- } from "../chunk-E3COOKUP.js";
4
+ } from "../chunk-QYC54PMG.js";
5
5
  import "../chunk-VVEHS2LI.js";
6
6
  import "../chunk-46RLHI7D.js";
7
7
  import "../chunk-MYYR3HZL.js";
@@ -12,7 +12,7 @@ import "../chunk-FU7EAR73.js";
12
12
  import "../chunk-LB6EBS6Y.js";
13
13
  import "../chunk-7VU7V2E4.js";
14
14
  import "../chunk-FXR6N3SR.js";
15
- import "../chunk-SOO562NM.js";
15
+ import "../chunk-UAPBLNN2.js";
16
16
  import "../chunk-WNKWAEUR.js";
17
17
  import "../chunk-MZNPGW5Q.js";
18
18
  import "../chunk-DK4A7DLE.js";
@@ -9,7 +9,7 @@
9
9
 
10
10
 
11
11
 
12
- var _chunk4BB343BIcjs = require('../../chunk-4BB343BI.cjs');
12
+ var _chunk26K6T2YScjs = require('../../chunk-26K6T2YS.cjs');
13
13
  require('../../chunk-HQP3K7PU.cjs');
14
14
  require('../../chunk-FZ46M34D.cjs');
15
15
  require('../../chunk-2Z4XM3H5.cjs');
@@ -20,7 +20,7 @@ require('../../chunk-5RSZYQJH.cjs');
20
20
  require('../../chunk-OF3BECU2.cjs');
21
21
  require('../../chunk-EYZYXJTJ.cjs');
22
22
  require('../../chunk-2E42SAW3.cjs');
23
- require('../../chunk-OJGQKHN5.cjs');
23
+ require('../../chunk-EPN67EGP.cjs');
24
24
  require('../../chunk-IIRPUVPH.cjs');
25
25
  require('../../chunk-GBHYAGX3.cjs');
26
26
  require('../../chunk-3OPYJG76.cjs');
@@ -73,4 +73,4 @@ require('../../chunk-UNEFIWXI.cjs');
73
73
 
74
74
 
75
75
 
76
- exports.aggregateAnthropicSseToJsonBody = _chunk4BB343BIcjs.aggregateAnthropicSseToJsonBody; exports.getAnthropicEndpointTransformer = _chunk4BB343BIcjs.getAnthropicEndpointTransformer; exports.getGeminiEndpointTransformer = _chunk4BB343BIcjs.getGeminiEndpointTransformer; exports.getResponsesEndpointTransformer = _chunk4BB343BIcjs.getResponsesEndpointTransformer; exports.getSharedExecutor = _chunk4BB343BIcjs.getSharedExecutor; exports.readBody = _chunk4BB343BIcjs.readBody; exports.relayResponse = _chunk4BB343BIcjs.relayResponse; exports.resolvePoolBoundKey = _chunk4BB343BIcjs.resolvePoolBoundKey; exports.writeBoundAccountError = _chunk4BB343BIcjs.writeBoundAccountError; exports.writeError = _chunk4BB343BIcjs.writeError;
76
+ exports.aggregateAnthropicSseToJsonBody = _chunk26K6T2YScjs.aggregateAnthropicSseToJsonBody; exports.getAnthropicEndpointTransformer = _chunk26K6T2YScjs.getAnthropicEndpointTransformer; exports.getGeminiEndpointTransformer = _chunk26K6T2YScjs.getGeminiEndpointTransformer; exports.getResponsesEndpointTransformer = _chunk26K6T2YScjs.getResponsesEndpointTransformer; exports.getSharedExecutor = _chunk26K6T2YScjs.getSharedExecutor; exports.readBody = _chunk26K6T2YScjs.readBody; exports.relayResponse = _chunk26K6T2YScjs.relayResponse; exports.resolvePoolBoundKey = _chunk26K6T2YScjs.resolvePoolBoundKey; exports.writeBoundAccountError = _chunk26K6T2YScjs.writeBoundAccountError; exports.writeError = _chunk26K6T2YScjs.writeError;
@@ -9,7 +9,7 @@ import {
9
9
  resolvePoolBoundKey,
10
10
  writeBoundAccountError,
11
11
  writeError
12
- } from "../../chunk-E3COOKUP.js";
12
+ } from "../../chunk-QYC54PMG.js";
13
13
  import "../../chunk-VVEHS2LI.js";
14
14
  import "../../chunk-46RLHI7D.js";
15
15
  import "../../chunk-MYYR3HZL.js";
@@ -20,7 +20,7 @@ import "../../chunk-FU7EAR73.js";
20
20
  import "../../chunk-LB6EBS6Y.js";
21
21
  import "../../chunk-7VU7V2E4.js";
22
22
  import "../../chunk-FXR6N3SR.js";
23
- import "../../chunk-SOO562NM.js";
23
+ import "../../chunk-UAPBLNN2.js";
24
24
  import "../../chunk-WNKWAEUR.js";
25
25
  import "../../chunk-MZNPGW5Q.js";
26
26
  import "../../chunk-DK4A7DLE.js";
@@ -50,6 +50,14 @@ type StreamEventCallback = (event: Record<string, unknown>) => void;
50
50
  interface ProxyAttribution {
51
51
  sessionId?: string | null;
52
52
  apiKeyId?: string | null;
53
+ /** Token-free Route Lease attribution; never contains the bearer token. */
54
+ routeLease?: RouteLeaseUsageAttribution | null;
55
+ }
56
+ interface RouteLeaseUsageAttribution {
57
+ readonly leaseId: string;
58
+ readonly consumer: string;
59
+ readonly runId?: string;
60
+ readonly stageId?: string;
53
61
  }
54
62
  /**
55
63
  * 1M-context opt-in for outbound Anthropic requests. Populated by
@@ -322,6 +330,8 @@ interface RouteContext {
322
330
  * `route.apiKeyId ?? null`), exactly as before.
323
331
  */
324
332
  readonly apiKeyId?: string;
333
+ /** Safe process-local lease attribution. The route token is intentionally absent. */
334
+ readonly routeLease?: RouteLeaseUsageAttribution;
325
335
  /** Wire format this route's ingress decodes. */
326
336
  readonly ingressFormat: IngressFormat;
327
337
  /** Re-auth mode (BYO key vs subscription OAuth). */
@@ -458,6 +468,10 @@ interface UsageRecordImportInput {
458
468
  usage: UsageTokens;
459
469
  rawUsage?: unknown;
460
470
  runId?: string | null;
471
+ /** Token-free managed-route attribution. */
472
+ routeLeaseId?: string | null;
473
+ routeLeaseConsumer?: string | null;
474
+ routeLeaseStageId?: string | null;
461
475
  eventId?: string | null;
462
476
  /** Safe prompt-cache-key provenance; raw key material is never recorded. */
463
477
  cacheKeySource?: UsageCacheKeySource;
@@ -471,4 +485,4 @@ interface UsageRecordImportInput {
471
485
  auditResponse?: object;
472
486
  }
473
487
 
474
- export type { AnthropicIngressHandler, AnthropicIngressHandlerFactory, AnthropicRouteHandlerParams, AnthropicSdkHints, ExtendedContextHint, IngressFormat, ProviderProxyDeps, ProxyAttribution, RetryCallback, RouteAuthMode, RouteContext, StreamEventCallback, SubscriptionDispatchProfile, SubscriptionRequestSummary, TargetProviderFormat, UsageRecordImportInput, UsageRecorderImport };
488
+ export type { AnthropicIngressHandler, AnthropicIngressHandlerFactory, AnthropicRouteHandlerParams, AnthropicSdkHints, ExtendedContextHint, IngressFormat, ProviderProxyDeps, ProxyAttribution, RetryCallback, RouteAuthMode, RouteContext, RouteLeaseUsageAttribution, StreamEventCallback, SubscriptionDispatchProfile, SubscriptionRequestSummary, TargetProviderFormat, UsageRecordImportInput, UsageRecorderImport };
@@ -50,6 +50,14 @@ type StreamEventCallback = (event: Record<string, unknown>) => void;
50
50
  interface ProxyAttribution {
51
51
  sessionId?: string | null;
52
52
  apiKeyId?: string | null;
53
+ /** Token-free Route Lease attribution; never contains the bearer token. */
54
+ routeLease?: RouteLeaseUsageAttribution | null;
55
+ }
56
+ interface RouteLeaseUsageAttribution {
57
+ readonly leaseId: string;
58
+ readonly consumer: string;
59
+ readonly runId?: string;
60
+ readonly stageId?: string;
53
61
  }
54
62
  /**
55
63
  * 1M-context opt-in for outbound Anthropic requests. Populated by
@@ -322,6 +330,8 @@ interface RouteContext {
322
330
  * `route.apiKeyId ?? null`), exactly as before.
323
331
  */
324
332
  readonly apiKeyId?: string;
333
+ /** Safe process-local lease attribution. The route token is intentionally absent. */
334
+ readonly routeLease?: RouteLeaseUsageAttribution;
325
335
  /** Wire format this route's ingress decodes. */
326
336
  readonly ingressFormat: IngressFormat;
327
337
  /** Re-auth mode (BYO key vs subscription OAuth). */
@@ -458,6 +468,10 @@ interface UsageRecordImportInput {
458
468
  usage: UsageTokens;
459
469
  rawUsage?: unknown;
460
470
  runId?: string | null;
471
+ /** Token-free managed-route attribution. */
472
+ routeLeaseId?: string | null;
473
+ routeLeaseConsumer?: string | null;
474
+ routeLeaseStageId?: string | null;
461
475
  eventId?: string | null;
462
476
  /** Safe prompt-cache-key provenance; raw key material is never recorded. */
463
477
  cacheKeySource?: UsageCacheKeySource;
@@ -471,4 +485,4 @@ interface UsageRecordImportInput {
471
485
  auditResponse?: object;
472
486
  }
473
487
 
474
- export type { AnthropicIngressHandler, AnthropicIngressHandlerFactory, AnthropicRouteHandlerParams, AnthropicSdkHints, ExtendedContextHint, IngressFormat, ProviderProxyDeps, ProxyAttribution, RetryCallback, RouteAuthMode, RouteContext, StreamEventCallback, SubscriptionDispatchProfile, SubscriptionRequestSummary, TargetProviderFormat, UsageRecordImportInput, UsageRecorderImport };
488
+ export type { AnthropicIngressHandler, AnthropicIngressHandlerFactory, AnthropicRouteHandlerParams, AnthropicSdkHints, ExtendedContextHint, IngressFormat, ProviderProxyDeps, ProxyAttribution, RetryCallback, RouteAuthMode, RouteContext, RouteLeaseUsageAttribution, StreamEventCallback, SubscriptionDispatchProfile, SubscriptionRequestSummary, TargetProviderFormat, UsageRecordImportInput, UsageRecorderImport };
@@ -5,7 +5,35 @@
5
5
 
6
6
 
7
7
 
8
- var _chunk4BB343BIcjs = require('./chunk-4BB343BI.cjs');
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+ var _chunk26K6T2YScjs = require('./chunk-26K6T2YS.cjs');
9
37
  require('./chunk-HQP3K7PU.cjs');
10
38
  require('./chunk-FZ46M34D.cjs');
11
39
  require('./chunk-2Z4XM3H5.cjs');
@@ -16,7 +44,7 @@ require('./chunk-5RSZYQJH.cjs');
16
44
  require('./chunk-OF3BECU2.cjs');
17
45
  require('./chunk-EYZYXJTJ.cjs');
18
46
  require('./chunk-2E42SAW3.cjs');
19
- require('./chunk-OJGQKHN5.cjs');
47
+ require('./chunk-EPN67EGP.cjs');
20
48
  require('./chunk-IIRPUVPH.cjs');
21
49
  require('./chunk-GBHYAGX3.cjs');
22
50
  require('./chunk-3OPYJG76.cjs');
@@ -65,4 +93,32 @@ require('./chunk-UNEFIWXI.cjs');
65
93
 
66
94
 
67
95
 
68
- exports.DEFAULT_ROUTE_IDLE_MS = _chunk4BB343BIcjs.DEFAULT_ROUTE_IDLE_MS; exports.ProviderProxy = _chunk4BB343BIcjs.ProviderProxy; exports.ProviderProxyRouteMap = _chunk4BB343BIcjs.ProviderProxyRouteMap; exports.__resetProviderProxyForTests = _chunk4BB343BIcjs.__resetProviderProxyForTests; exports.extractRouteToken = _chunk4BB343BIcjs.extractRouteToken; exports.getProviderProxy = _chunk4BB343BIcjs.getProviderProxy;
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+ exports.DEFAULT_ROUTE_IDLE_MS = _chunk26K6T2YScjs.DEFAULT_ROUTE_IDLE_MS; exports.ProviderProxy = _chunk26K6T2YScjs.ProviderProxy; exports.ProviderProxyRouteMap = _chunk26K6T2YScjs.ProviderProxyRouteMap; exports.ROUTE_LEASE_API_VERSION = _chunk26K6T2YScjs.ROUTE_LEASE_API_VERSION; exports.ROUTE_LEASE_CAPABILITIES = _chunk26K6T2YScjs.ROUTE_LEASE_CAPABILITIES; exports.ROUTE_LEASE_CAPABILITIES_SCHEMA = _chunk26K6T2YScjs.ROUTE_LEASE_CAPABILITIES_SCHEMA; exports.ROUTE_LEASE_CODEX_TOKEN_ENV = _chunk26K6T2YScjs.ROUTE_LEASE_CODEX_TOKEN_ENV; exports.ROUTE_LEASE_DEFAULT_TTL_SECONDS = _chunk26K6T2YScjs.ROUTE_LEASE_DEFAULT_TTL_SECONDS; exports.ROUTE_LEASE_MAX_CONSUMER_BYTES = _chunk26K6T2YScjs.ROUTE_LEASE_MAX_CONSUMER_BYTES; exports.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES = _chunk26K6T2YScjs.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES; exports.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES = _chunk26K6T2YScjs.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES; exports.ROUTE_LEASE_MAX_MODEL_BYTES = _chunk26K6T2YScjs.ROUTE_LEASE_MAX_MODEL_BYTES; exports.ROUTE_LEASE_MAX_SESSION_ID_BYTES = _chunk26K6T2YScjs.ROUTE_LEASE_MAX_SESSION_ID_BYTES; exports.ROUTE_LEASE_MAX_TTL_SECONDS = _chunk26K6T2YScjs.ROUTE_LEASE_MAX_TTL_SECONDS; exports.ROUTE_LEASE_REQUEST_SCHEMA = _chunk26K6T2YScjs.ROUTE_LEASE_REQUEST_SCHEMA; exports.ROUTE_LEASE_RESULT_SCHEMA = _chunk26K6T2YScjs.ROUTE_LEASE_RESULT_SCHEMA; exports.ROUTE_LEASE_RUNTIMES = _chunk26K6T2YScjs.ROUTE_LEASE_RUNTIMES; exports.ROUTE_LEASE_RUNTIME_TABLE = _chunk26K6T2YScjs.ROUTE_LEASE_RUNTIME_TABLE; exports.ROUTE_LEASE_SESSION_HASH_DOMAIN = _chunk26K6T2YScjs.ROUTE_LEASE_SESSION_HASH_DOMAIN; exports.RouteLeaseError = _chunk26K6T2YScjs.RouteLeaseError; exports.RouteLeaseManager = _chunk26K6T2YScjs.RouteLeaseManager; exports.RouteLeaseTargetResolver = _chunk26K6T2YScjs.RouteLeaseTargetResolver; exports.SYSTEM_ROUTE_LEASE_CLOCK = _chunk26K6T2YScjs.SYSTEM_ROUTE_LEASE_CLOCK; exports.__resetProviderProxyForTests = _chunk26K6T2YScjs.__resetProviderProxyForTests; exports.canonicalizeRouteLeasePayload = _chunk26K6T2YScjs.canonicalizeRouteLeasePayload; exports.extractRouteToken = _chunk26K6T2YScjs.extractRouteToken; exports.getProviderProxy = _chunk26K6T2YScjs.getProviderProxy; exports.hashRouteLeasePayload = _chunk26K6T2YScjs.hashRouteLeasePayload; exports.hashRouteLeaseSessionId = _chunk26K6T2YScjs.hashRouteLeaseSessionId; exports.isLoopbackAddress = _chunk26K6T2YScjs.isLoopbackAddress; exports.normalizeRouteLeaseIdempotencyKey = _chunk26K6T2YScjs.normalizeRouteLeaseIdempotencyKey; exports.normalizeRouteLeaseTtl = _chunk26K6T2YScjs.normalizeRouteLeaseTtl; exports.parseRouteLeaseCreate = _chunk26K6T2YScjs.parseRouteLeaseCreate; exports.routeLeaseRuntime = _chunk26K6T2YScjs.routeLeaseRuntime;