@omnicross/core 0.1.7 → 0.1.9
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/auth/GeminiCodeAssistProjectResolver.cjs +5 -3
- package/dist/auth/GeminiCodeAssistProjectResolver.js +4 -2
- package/dist/{chunk-N5T4M4GU.js → chunk-2UTGX6FM.js} +2 -2
- package/dist/{chunk-32O35CIF.js → chunk-45FHEOKW.js} +22 -7
- package/dist/{chunk-LVUCAWMK.js → chunk-55FMGZ3L.js} +13 -5
- package/dist/{chunk-OF3BECU2.cjs → chunk-56QD3YW6.cjs} +18 -5
- package/dist/{chunk-V4TXMEJS.cjs → chunk-5LNYGCIW.cjs} +15 -7
- package/dist/chunk-77USGNRW.cjs +37 -0
- package/dist/chunk-AOFWNWLT.cjs +203 -0
- package/dist/{chunk-LB6EBS6Y.js → chunk-CCVRRJOX.js} +17 -4
- package/dist/{chunk-OVQBNVSV.cjs → chunk-CMVXX7ON.cjs} +42 -27
- package/dist/{chunk-E3COOKUP.js → chunk-CQIJCPMF.js} +1108 -271
- package/dist/{chunk-OJGQKHN5.cjs → chunk-EPN67EGP.cjs} +3 -0
- package/dist/{chunk-PEGTIPB3.js → chunk-HKB656B4.js} +37 -43
- package/dist/chunk-N2EIM2XJ.js +203 -0
- package/dist/{chunk-MYYR3HZL.js → chunk-NGYOO5TO.js} +5 -5
- package/dist/{chunk-OKMJLEXX.cjs → chunk-OC6DOOFX.cjs} +5 -5
- package/dist/{chunk-2Z4XM3H5.cjs → chunk-P7EM6BND.cjs} +10 -10
- package/dist/{chunk-KBM2W6UY.cjs → chunk-RICPANBY.cjs} +41 -24
- package/dist/{chunk-TOVPMMHM.js → chunk-S3DYFEBE.js} +37 -20
- package/dist/{chunk-SOO562NM.js → chunk-UAPBLNN2.js} +3 -0
- package/dist/chunk-WYVGULTQ.js +37 -0
- package/dist/{chunk-4BB343BI.cjs → chunk-XELFM7KL.cjs} +1381 -544
- package/dist/{chunk-OXHNSZ53.cjs → chunk-ZQQUD66M.cjs} +54 -60
- 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 +13 -11
- package/dist/completion/CompletionService.js +12 -10
- package/dist/completion.cjs +13 -11
- package/dist/completion.js +12 -10
- package/dist/index.cjs +69 -11
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +68 -10
- package/dist/outbound-api/routeResolver.d.cts +4 -4
- package/dist/outbound-api/routeResolver.d.ts +4 -4
- package/dist/outbound-api/types.d.cts +3 -3
- package/dist/outbound-api/types.d.ts +3 -3
- package/dist/outbound-api.cjs +13 -11
- package/dist/outbound-api.d.cts +5 -5
- package/dist/outbound-api.d.ts +5 -5
- package/dist/outbound-api.js +12 -10
- package/dist/pipeline/AccountAllowanceScheduling.d.cts +3 -3
- package/dist/pipeline/AccountAllowanceScheduling.d.ts +3 -3
- package/dist/pipeline/executeProviderCall.d.cts +2 -0
- package/dist/pipeline/executeProviderCall.d.ts +2 -0
- package/dist/pipeline/resolveProviderChain.d.cts +1 -0
- package/dist/pipeline/resolveProviderChain.d.ts +1 -0
- package/dist/pipeline/resolveSubscriptionChain.d.cts +2 -0
- package/dist/pipeline/resolveSubscriptionChain.d.ts +2 -0
- package/dist/ports/provider-config-source.d.cts +1 -0
- package/dist/ports/provider-config-source.d.ts +1 -0
- package/dist/ports.d.cts +3 -3
- package/dist/ports.d.ts +3 -3
- package/dist/provider-proxy/ProviderProxy.cjs +13 -11
- package/dist/provider-proxy/ProviderProxy.d.cts +1 -1
- package/dist/provider-proxy/ProviderProxy.d.ts +1 -1
- package/dist/provider-proxy/ProviderProxy.js +12 -10
- package/dist/provider-proxy/ingress/providerProxyShared.cjs +13 -11
- package/dist/provider-proxy/ingress/providerProxyShared.js +12 -10
- package/dist/provider-proxy/types.d.cts +15 -1
- package/dist/provider-proxy/types.d.ts +15 -1
- package/dist/provider-proxy.cjs +69 -11
- package/dist/provider-proxy.d.cts +254 -8
- package/dist/provider-proxy.d.ts +254 -8
- package/dist/provider-proxy.js +70 -12
- 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/transformer/TransformerChainExecutor.d.cts +2 -0
- package/dist/transformer/TransformerChainExecutor.d.ts +2 -0
- package/dist/transformer/TransformerService.d.cts +2 -0
- package/dist/transformer/TransformerService.d.ts +2 -0
- package/dist/transformer/transformers/AnthropicTransformer.cjs +4 -2
- package/dist/transformer/transformers/AnthropicTransformer.d.cts +7 -2
- package/dist/transformer/transformers/AnthropicTransformer.d.ts +7 -2
- package/dist/transformer/transformers/AnthropicTransformer.js +3 -1
- package/dist/transformer/transformers/GeminiCodeAssistTransformer.cjs +5 -3
- package/dist/transformer/transformers/GeminiCodeAssistTransformer.d.cts +2 -0
- package/dist/transformer/transformers/GeminiCodeAssistTransformer.d.ts +2 -0
- package/dist/transformer/transformers/GeminiCodeAssistTransformer.js +4 -2
- package/dist/transformer/transformers/GeminiTransformer.cjs +5 -3
- package/dist/transformer/transformers/GeminiTransformer.d.cts +4 -2
- package/dist/transformer/transformers/GeminiTransformer.d.ts +4 -2
- package/dist/transformer/transformers/GeminiTransformer.js +4 -2
- package/dist/transformer/transformers/OpenAIResponseTransformer.cjs +3 -2
- package/dist/transformer/transformers/OpenAIResponseTransformer.d.cts +4 -2
- package/dist/transformer/transformers/OpenAIResponseTransformer.d.ts +4 -2
- package/dist/transformer/transformers/OpenAIResponseTransformer.js +2 -1
- package/dist/transformer/transformers/OpenAITransformer.cjs +3 -2
- package/dist/transformer/transformers/OpenAITransformer.d.cts +3 -1
- package/dist/transformer/transformers/OpenAITransformer.d.ts +3 -1
- package/dist/transformer/transformers/OpenAITransformer.js +2 -1
- package/dist/transformer/transformers.cjs +10 -8
- package/dist/transformer/transformers.d.cts +2 -0
- package/dist/transformer/transformers.d.ts +2 -0
- package/dist/transformer/transformers.js +9 -7
- package/dist/transformer/types.d.cts +16 -5
- package/dist/transformer/types.d.ts +16 -5
- package/dist/transformer.cjs +28 -9
- package/dist/transformer.d.cts +76 -1
- package/dist/transformer.d.ts +76 -1
- package/dist/transformer.js +28 -9
- 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
- /package/dist/{chunk-FZ46M34D.cjs → chunk-QVOB2DNX.cjs} +0 -0
- /package/dist/{chunk-46RLHI7D.js → chunk-WTQMX2Q6.js} +0 -0
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,16 +12,16 @@ 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';
|
|
19
19
|
import './ports/provider-config-source.cjs';
|
|
20
20
|
import '@omnicross/contracts/llm-config';
|
|
21
21
|
import './transformer/types.cjs';
|
|
22
|
-
import './transformer/TransformerService.cjs';
|
|
23
|
-
import './ProviderProxy-CnMQYN59.cjs';
|
|
24
22
|
import '@omnicross/contracts/completion-types';
|
|
23
|
+
import './transformer/TransformerService.cjs';
|
|
24
|
+
import './ProviderProxy-QdwNV6l1.cjs';
|
|
25
25
|
import '@omnicross/contracts/usage-stats-types';
|
|
26
26
|
import '@omnicross/contracts/subscription-types';
|
|
27
27
|
import '@omnicross/contracts/usage-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,16 +12,16 @@ 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';
|
|
19
19
|
import './ports/provider-config-source.js';
|
|
20
20
|
import '@omnicross/contracts/llm-config';
|
|
21
21
|
import './transformer/types.js';
|
|
22
|
-
import './transformer/TransformerService.js';
|
|
23
|
-
import './ProviderProxy-C-xqrkKi.js';
|
|
24
22
|
import '@omnicross/contracts/completion-types';
|
|
23
|
+
import './transformer/TransformerService.js';
|
|
24
|
+
import './ProviderProxy--ROec6VI.js';
|
|
25
25
|
import '@omnicross/contracts/usage-stats-types';
|
|
26
26
|
import '@omnicross/contracts/subscription-types';
|
|
27
27
|
import '@omnicross/contracts/usage-types';
|
package/dist/outbound-api.js
CHANGED
|
@@ -63,18 +63,18 @@ import {
|
|
|
63
63
|
verifyKey,
|
|
64
64
|
verifyPresentedKey,
|
|
65
65
|
voucherCodePrefix
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-CQIJCPMF.js";
|
|
67
67
|
import "./chunk-VVEHS2LI.js";
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-WTQMX2Q6.js";
|
|
69
|
+
import "./chunk-NGYOO5TO.js";
|
|
70
|
+
import "./chunk-HKB656B4.js";
|
|
71
|
+
import "./chunk-55FMGZ3L.js";
|
|
72
|
+
import "./chunk-45FHEOKW.js";
|
|
73
73
|
import "./chunk-FU7EAR73.js";
|
|
74
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-CCVRRJOX.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";
|
|
@@ -134,8 +134,10 @@ import {
|
|
|
134
134
|
import "./chunk-WNY4WMRF.js";
|
|
135
135
|
import "./chunk-OZFM4X3S.js";
|
|
136
136
|
import "./chunk-5NJLQ6T6.js";
|
|
137
|
-
import "./chunk-
|
|
138
|
-
import "./chunk-
|
|
137
|
+
import "./chunk-2UTGX6FM.js";
|
|
138
|
+
import "./chunk-S3DYFEBE.js";
|
|
139
|
+
import "./chunk-WYVGULTQ.js";
|
|
140
|
+
import "./chunk-N2EIM2XJ.js";
|
|
139
141
|
import "./chunk-RJ5ZGNI3.js";
|
|
140
142
|
import "./chunk-3WD4HTR2.js";
|
|
141
143
|
import "./chunk-MKF46GNZ.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';
|
|
@@ -11,11 +11,11 @@ import '../logger-4GvQNzhE.cjs';
|
|
|
11
11
|
import '../ports/provider-config-source.cjs';
|
|
12
12
|
import '@omnicross/contracts/llm-config';
|
|
13
13
|
import '../transformer/types.cjs';
|
|
14
|
+
import '@omnicross/contracts/completion-types';
|
|
14
15
|
import '../transformer/TransformerService.cjs';
|
|
15
|
-
import '../ProviderProxy-
|
|
16
|
+
import '../ProviderProxy-QdwNV6l1.cjs';
|
|
16
17
|
import '../provider-proxy/types.cjs';
|
|
17
18
|
import 'node:http';
|
|
18
|
-
import '@omnicross/contracts/completion-types';
|
|
19
19
|
import '@omnicross/contracts/usage-stats-types';
|
|
20
20
|
import '@omnicross/contracts/usage-types';
|
|
21
21
|
import '../completion/ApiKeyPoolService.cjs';
|
|
@@ -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';
|
|
@@ -11,11 +11,11 @@ import '../logger-4GvQNzhE.js';
|
|
|
11
11
|
import '../ports/provider-config-source.js';
|
|
12
12
|
import '@omnicross/contracts/llm-config';
|
|
13
13
|
import '../transformer/types.js';
|
|
14
|
+
import '@omnicross/contracts/completion-types';
|
|
14
15
|
import '../transformer/TransformerService.js';
|
|
15
|
-
import '../ProviderProxy
|
|
16
|
+
import '../ProviderProxy--ROec6VI.js';
|
|
16
17
|
import '../provider-proxy/types.js';
|
|
17
18
|
import 'node:http';
|
|
18
|
-
import '@omnicross/contracts/completion-types';
|
|
19
19
|
import '@omnicross/contracts/usage-stats-types';
|
|
20
20
|
import '@omnicross/contracts/usage-types';
|
|
21
21
|
import '../completion/ApiKeyPoolService.js';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { TransformerChainExecutor, ChainExecutionOptions } from '../transformer/TransformerChainExecutor.cjs';
|
|
2
2
|
import { UnifiedChatRequest, LLMProvider, ResolvedTransformerChain, Transformer, RequestConfig } from '../transformer/types.cjs';
|
|
3
|
+
import '@omnicross/contracts/llm-config';
|
|
4
|
+
import '@omnicross/contracts/completion-types';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* executeProviderCall — shared provider-request exchange core.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { TransformerChainExecutor, ChainExecutionOptions } from '../transformer/TransformerChainExecutor.js';
|
|
2
2
|
import { UnifiedChatRequest, LLMProvider, ResolvedTransformerChain, Transformer, RequestConfig } from '../transformer/types.js';
|
|
3
|
+
import '@omnicross/contracts/llm-config';
|
|
4
|
+
import '@omnicross/contracts/completion-types';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* executeProviderCall — shared provider-request exchange core.
|
|
@@ -2,6 +2,7 @@ import { ProviderConfigSource } from '../ports/provider-config-source.cjs';
|
|
|
2
2
|
import { Transformer } from '../transformer/types.cjs';
|
|
3
3
|
import '@omnicross/contracts/llm-config';
|
|
4
4
|
import '../transformer/TransformerService.cjs';
|
|
5
|
+
import '@omnicross/contracts/completion-types';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* resolveProviderChain — shared transformer-chain resolution helper.
|
|
@@ -2,6 +2,7 @@ import { ProviderConfigSource } from '../ports/provider-config-source.js';
|
|
|
2
2
|
import { Transformer } from '../transformer/types.js';
|
|
3
3
|
import '@omnicross/contracts/llm-config';
|
|
4
4
|
import '../transformer/TransformerService.js';
|
|
5
|
+
import '@omnicross/contracts/completion-types';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* resolveProviderChain — shared transformer-chain resolution helper.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TransformerService } from '../transformer/TransformerService.cjs';
|
|
2
2
|
import { Transformer, ResolvedTransformerChain } from '../transformer/types.cjs';
|
|
3
3
|
import { SubscriptionAuthProfile } from './SubscriptionAuthSource.cjs';
|
|
4
|
+
import '@omnicross/contracts/llm-config';
|
|
5
|
+
import '@omnicross/contracts/completion-types';
|
|
4
6
|
import '@omnicross/contracts/subscription-types';
|
|
5
7
|
import './AuthSource.cjs';
|
|
6
8
|
import './BoundAccountSelectionError.cjs';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TransformerService } from '../transformer/TransformerService.js';
|
|
2
2
|
import { Transformer, ResolvedTransformerChain } from '../transformer/types.js';
|
|
3
3
|
import { SubscriptionAuthProfile } from './SubscriptionAuthSource.js';
|
|
4
|
+
import '@omnicross/contracts/llm-config';
|
|
5
|
+
import '@omnicross/contracts/completion-types';
|
|
4
6
|
import '@omnicross/contracts/subscription-types';
|
|
5
7
|
import './AuthSource.js';
|
|
6
8
|
import './BoundAccountSelectionError.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LLMProvider, AgentDefaultModels, GlobalModelParameters } from '@omnicross/contracts/llm-config';
|
|
2
2
|
import { ResolvedTransformerChain, Transformer } from '../transformer/types.cjs';
|
|
3
3
|
import { TransformerService } from '../transformer/TransformerService.cjs';
|
|
4
|
+
import '@omnicross/contracts/completion-types';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* `ProviderConfigSource` — core-owned port for the provider catalog + routing +
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LLMProvider, AgentDefaultModels, GlobalModelParameters } from '@omnicross/contracts/llm-config';
|
|
2
2
|
import { ResolvedTransformerChain, Transformer } from '../transformer/types.js';
|
|
3
3
|
import { TransformerService } from '../transformer/TransformerService.js';
|
|
4
|
+
import '@omnicross/contracts/completion-types';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* `ProviderConfigSource` — core-owned port for the provider catalog + routing +
|
package/dist/ports.d.cts
CHANGED
|
@@ -5,15 +5,15 @@ 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';
|
|
12
|
+
import '@omnicross/contracts/completion-types';
|
|
12
13
|
import './transformer/TransformerService.cjs';
|
|
13
14
|
import '@omnicross/contracts/usage-stats-types';
|
|
14
15
|
import '@omnicross/contracts/websearch-types';
|
|
15
16
|
import 'node:http';
|
|
16
|
-
import '@omnicross/contracts/completion-types';
|
|
17
17
|
import '@omnicross/contracts/subscription-types';
|
|
18
18
|
import '@omnicross/contracts/usage-types';
|
|
19
19
|
import './completion/ApiKeyPoolService.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,15 +5,15 @@ 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';
|
|
12
|
+
import '@omnicross/contracts/completion-types';
|
|
12
13
|
import './transformer/TransformerService.js';
|
|
13
14
|
import '@omnicross/contracts/usage-stats-types';
|
|
14
15
|
import '@omnicross/contracts/websearch-types';
|
|
15
16
|
import 'node:http';
|
|
16
|
-
import '@omnicross/contracts/completion-types';
|
|
17
17
|
import '@omnicross/contracts/subscription-types';
|
|
18
18
|
import '@omnicross/contracts/usage-types';
|
|
19
19
|
import './completion/ApiKeyPoolService.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,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkXELFM7KLcjs = require('../chunk-XELFM7KL.cjs');
|
|
5
5
|
require('../chunk-HQP3K7PU.cjs');
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-QVOB2DNX.cjs');
|
|
7
|
+
require('../chunk-P7EM6BND.cjs');
|
|
8
|
+
require('../chunk-ZQQUD66M.cjs');
|
|
9
|
+
require('../chunk-5LNYGCIW.cjs');
|
|
10
|
+
require('../chunk-CMVXX7ON.cjs');
|
|
11
11
|
require('../chunk-5RSZYQJH.cjs');
|
|
12
|
-
require('../chunk-
|
|
12
|
+
require('../chunk-56QD3YW6.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');
|
|
@@ -44,8 +44,10 @@ require('../chunk-FCR77GYM.cjs');
|
|
|
44
44
|
require('../chunk-AEOZIDEB.cjs');
|
|
45
45
|
require('../chunk-XSVNC2UD.cjs');
|
|
46
46
|
require('../chunk-GDIXXKF2.cjs');
|
|
47
|
-
require('../chunk-
|
|
48
|
-
require('../chunk-
|
|
47
|
+
require('../chunk-OC6DOOFX.cjs');
|
|
48
|
+
require('../chunk-RICPANBY.cjs');
|
|
49
|
+
require('../chunk-77USGNRW.cjs');
|
|
50
|
+
require('../chunk-AOFWNWLT.cjs');
|
|
49
51
|
require('../chunk-RJUONLUQ.cjs');
|
|
50
52
|
require('../chunk-235MXAGX.cjs');
|
|
51
53
|
require('../chunk-HVBBDBS3.cjs');
|
|
@@ -57,4 +59,4 @@ require('../chunk-UNEFIWXI.cjs');
|
|
|
57
59
|
|
|
58
60
|
|
|
59
61
|
|
|
60
|
-
exports.ProviderProxy =
|
|
62
|
+
exports.ProviderProxy = _chunkXELFM7KLcjs.ProviderProxy; exports.isLoopbackAddress = _chunkXELFM7KLcjs.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,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProviderProxy,
|
|
3
3
|
isLoopbackAddress
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-CQIJCPMF.js";
|
|
5
5
|
import "../chunk-VVEHS2LI.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-WTQMX2Q6.js";
|
|
7
|
+
import "../chunk-NGYOO5TO.js";
|
|
8
|
+
import "../chunk-HKB656B4.js";
|
|
9
|
+
import "../chunk-55FMGZ3L.js";
|
|
10
|
+
import "../chunk-45FHEOKW.js";
|
|
11
11
|
import "../chunk-FU7EAR73.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-CCVRRJOX.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";
|
|
@@ -44,8 +44,10 @@ import "../chunk-K5NM7VAH.js";
|
|
|
44
44
|
import "../chunk-WNY4WMRF.js";
|
|
45
45
|
import "../chunk-OZFM4X3S.js";
|
|
46
46
|
import "../chunk-5NJLQ6T6.js";
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
47
|
+
import "../chunk-2UTGX6FM.js";
|
|
48
|
+
import "../chunk-S3DYFEBE.js";
|
|
49
|
+
import "../chunk-WYVGULTQ.js";
|
|
50
|
+
import "../chunk-N2EIM2XJ.js";
|
|
49
51
|
import "../chunk-RJ5ZGNI3.js";
|
|
50
52
|
import "../chunk-3WD4HTR2.js";
|
|
51
53
|
import "../chunk-MKF46GNZ.js";
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkXELFM7KLcjs = require('../../chunk-XELFM7KL.cjs');
|
|
13
13
|
require('../../chunk-HQP3K7PU.cjs');
|
|
14
|
-
require('../../chunk-
|
|
15
|
-
require('../../chunk-
|
|
16
|
-
require('../../chunk-
|
|
17
|
-
require('../../chunk-
|
|
18
|
-
require('../../chunk-
|
|
14
|
+
require('../../chunk-QVOB2DNX.cjs');
|
|
15
|
+
require('../../chunk-P7EM6BND.cjs');
|
|
16
|
+
require('../../chunk-ZQQUD66M.cjs');
|
|
17
|
+
require('../../chunk-5LNYGCIW.cjs');
|
|
18
|
+
require('../../chunk-CMVXX7ON.cjs');
|
|
19
19
|
require('../../chunk-5RSZYQJH.cjs');
|
|
20
|
-
require('../../chunk-
|
|
20
|
+
require('../../chunk-56QD3YW6.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');
|
|
@@ -52,8 +52,10 @@ require('../../chunk-FCR77GYM.cjs');
|
|
|
52
52
|
require('../../chunk-AEOZIDEB.cjs');
|
|
53
53
|
require('../../chunk-XSVNC2UD.cjs');
|
|
54
54
|
require('../../chunk-GDIXXKF2.cjs');
|
|
55
|
-
require('../../chunk-
|
|
56
|
-
require('../../chunk-
|
|
55
|
+
require('../../chunk-OC6DOOFX.cjs');
|
|
56
|
+
require('../../chunk-RICPANBY.cjs');
|
|
57
|
+
require('../../chunk-77USGNRW.cjs');
|
|
58
|
+
require('../../chunk-AOFWNWLT.cjs');
|
|
57
59
|
require('../../chunk-RJUONLUQ.cjs');
|
|
58
60
|
require('../../chunk-235MXAGX.cjs');
|
|
59
61
|
require('../../chunk-HVBBDBS3.cjs');
|
|
@@ -73,4 +75,4 @@ require('../../chunk-UNEFIWXI.cjs');
|
|
|
73
75
|
|
|
74
76
|
|
|
75
77
|
|
|
76
|
-
exports.aggregateAnthropicSseToJsonBody =
|
|
78
|
+
exports.aggregateAnthropicSseToJsonBody = _chunkXELFM7KLcjs.aggregateAnthropicSseToJsonBody; exports.getAnthropicEndpointTransformer = _chunkXELFM7KLcjs.getAnthropicEndpointTransformer; exports.getGeminiEndpointTransformer = _chunkXELFM7KLcjs.getGeminiEndpointTransformer; exports.getResponsesEndpointTransformer = _chunkXELFM7KLcjs.getResponsesEndpointTransformer; exports.getSharedExecutor = _chunkXELFM7KLcjs.getSharedExecutor; exports.readBody = _chunkXELFM7KLcjs.readBody; exports.relayResponse = _chunkXELFM7KLcjs.relayResponse; exports.resolvePoolBoundKey = _chunkXELFM7KLcjs.resolvePoolBoundKey; exports.writeBoundAccountError = _chunkXELFM7KLcjs.writeBoundAccountError; exports.writeError = _chunkXELFM7KLcjs.writeError;
|
|
@@ -9,18 +9,18 @@ import {
|
|
|
9
9
|
resolvePoolBoundKey,
|
|
10
10
|
writeBoundAccountError,
|
|
11
11
|
writeError
|
|
12
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-CQIJCPMF.js";
|
|
13
13
|
import "../../chunk-VVEHS2LI.js";
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-WTQMX2Q6.js";
|
|
15
|
+
import "../../chunk-NGYOO5TO.js";
|
|
16
|
+
import "../../chunk-HKB656B4.js";
|
|
17
|
+
import "../../chunk-55FMGZ3L.js";
|
|
18
|
+
import "../../chunk-45FHEOKW.js";
|
|
19
19
|
import "../../chunk-FU7EAR73.js";
|
|
20
|
-
import "../../chunk-
|
|
20
|
+
import "../../chunk-CCVRRJOX.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";
|
|
@@ -52,8 +52,10 @@ import "../../chunk-K5NM7VAH.js";
|
|
|
52
52
|
import "../../chunk-WNY4WMRF.js";
|
|
53
53
|
import "../../chunk-OZFM4X3S.js";
|
|
54
54
|
import "../../chunk-5NJLQ6T6.js";
|
|
55
|
-
import "../../chunk-
|
|
56
|
-
import "../../chunk-
|
|
55
|
+
import "../../chunk-2UTGX6FM.js";
|
|
56
|
+
import "../../chunk-S3DYFEBE.js";
|
|
57
|
+
import "../../chunk-WYVGULTQ.js";
|
|
58
|
+
import "../../chunk-N2EIM2XJ.js";
|
|
57
59
|
import "../../chunk-RJ5ZGNI3.js";
|
|
58
60
|
import "../../chunk-3WD4HTR2.js";
|
|
59
61
|
import "../../chunk-MKF46GNZ.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 };
|