@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.
- package/dist/{ProviderProxy-C-xqrkKi.d.ts → ProviderProxy--ROec6VI.d.ts} +22 -3
- package/dist/{ProviderProxy-CnMQYN59.d.cts → ProviderProxy-QdwNV6l1.d.cts} +22 -3
- package/dist/{chunk-4BB343BI.cjs → chunk-26K6T2YS.cjs} +1209 -472
- package/dist/{chunk-OJGQKHN5.cjs → chunk-EPN67EGP.cjs} +3 -0
- package/dist/{chunk-E3COOKUP.js → chunk-QYC54PMG.js} +924 -187
- package/dist/{chunk-SOO562NM.js → chunk-UAPBLNN2.js} +3 -0
- package/dist/completion/ApiKeyPoolService.cjs +32 -1
- package/dist/completion/ApiKeyPoolService.d.cts +17 -1
- package/dist/completion/ApiKeyPoolService.d.ts +17 -1
- package/dist/completion/ApiKeyPoolService.js +31 -0
- package/dist/completion/CompletionService.cjs +3 -3
- package/dist/completion/CompletionService.js +2 -2
- package/dist/completion.cjs +3 -3
- package/dist/completion.js +2 -2
- package/dist/index.cjs +59 -3
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +58 -2
- package/dist/outbound-api/routeResolver.d.cts +3 -3
- package/dist/outbound-api/routeResolver.d.ts +3 -3
- package/dist/outbound-api/types.d.cts +2 -2
- package/dist/outbound-api/types.d.ts +2 -2
- package/dist/outbound-api.cjs +3 -3
- package/dist/outbound-api.d.cts +4 -4
- package/dist/outbound-api.d.ts +4 -4
- package/dist/outbound-api.js +2 -2
- package/dist/pipeline/AccountAllowanceScheduling.d.cts +2 -2
- package/dist/pipeline/AccountAllowanceScheduling.d.ts +2 -2
- package/dist/ports.d.cts +2 -2
- package/dist/ports.d.ts +2 -2
- package/dist/provider-proxy/ProviderProxy.cjs +3 -3
- package/dist/provider-proxy/ProviderProxy.d.cts +1 -1
- package/dist/provider-proxy/ProviderProxy.d.ts +1 -1
- package/dist/provider-proxy/ProviderProxy.js +2 -2
- package/dist/provider-proxy/ingress/providerProxyShared.cjs +3 -3
- package/dist/provider-proxy/ingress/providerProxyShared.js +2 -2
- package/dist/provider-proxy/types.d.cts +15 -1
- package/dist/provider-proxy/types.d.ts +15 -1
- package/dist/provider-proxy.cjs +59 -3
- package/dist/provider-proxy.d.cts +254 -8
- package/dist/provider-proxy.d.ts +254 -8
- package/dist/provider-proxy.js +60 -4
- package/dist/{routeResolver-BxOfunbm.d.ts → routeResolver-C0mkkZaM.d.ts} +1 -1
- package/dist/{routeResolver-D5OzD0iM.d.cts → routeResolver-CVFE8KKe.d.cts} +1 -1
- package/dist/{types-CqZD77rS.d.ts → types-BB8pxk_3.d.ts} +1 -1
- package/dist/{types-gjJ5lJ5n.d.cts → types-C2MwkLah.d.cts} +1 -1
- package/dist/usage/usage-recorder.cjs +2 -2
- package/dist/usage/usage-recorder.d.cts +6 -0
- package/dist/usage/usage-recorder.d.ts +6 -0
- package/dist/usage/usage-recorder.js +1 -1
- package/dist/usage.cjs +2 -2
- package/dist/usage.js +1 -1
- 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-
|
|
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-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-
|
|
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-
|
|
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-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
|
|
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-
|
|
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
|
|
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';
|
package/dist/outbound-api.cjs
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
var
|
|
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-
|
|
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 =
|
|
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;
|
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, 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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';
|
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, 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-
|
|
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-
|
|
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-
|
|
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
|
|
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';
|
package/dist/outbound-api.js
CHANGED
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
verifyKey,
|
|
64
64
|
verifyPresentedKey,
|
|
65
65
|
voucherCodePrefix
|
|
66
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
|
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-
|
|
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 =
|
|
60
|
+
exports.ProviderProxy = _chunk26K6T2YScjs.ProviderProxy; exports.isLoopbackAddress = _chunk26K6T2YScjs.isLoopbackAddress;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as ProviderProxy, i as isLoopbackAddress } from '../ProviderProxy-
|
|
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
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
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 =
|
|
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-
|
|
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-
|
|
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 };
|
package/dist/provider-proxy.cjs
CHANGED
|
@@ -5,7 +5,35 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
|
|
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-
|
|
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
|
-
|
|
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;
|