@omnicross/core 0.1.3 → 0.1.4
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/LICENSE +21 -21
- package/NOTICE +57 -57
- package/README.md +15 -15
- package/dist/auth/GeminiCodeAssistProjectResolver.cjs +4 -4
- package/dist/auth/GeminiCodeAssistProjectResolver.js +3 -3
- package/dist/chunk-3QFXFCHG.js +33 -0
- package/dist/chunk-4YINUUKQ.cjs +33 -0
- package/dist/chunk-7Y47UCF2.js +142 -0
- package/dist/chunk-APYG5QD7.cjs +50 -0
- package/dist/{chunk-CWM2ZDU5.js → chunk-BPKCU575.js} +3 -10
- package/dist/{chunk-2FMI2B6V.cjs → chunk-DKPXN34V.cjs} +222 -448
- package/dist/chunk-E3UCVHLP.cjs +142 -0
- package/dist/chunk-FCR77GYM.cjs +33 -0
- package/dist/{chunk-N5QFKSDO.js → chunk-HRRYG2AX.js} +2 -1
- package/dist/{chunk-KUU2RNG6.cjs → chunk-HYN75H6G.cjs} +3 -0
- package/dist/{chunk-JO5NLTLY.js → chunk-IK3KE3AU.js} +3 -0
- package/dist/chunk-K5NM7VAH.js +33 -0
- package/dist/{chunk-Y6OM7EV7.cjs → chunk-KFI44N2R.cjs} +2 -1
- package/dist/{chunk-S6JGLF3G.cjs → chunk-OCEUVQHW.cjs} +27 -4
- package/dist/chunk-OE6TDIWW.js +22 -0
- package/dist/chunk-OZFM4X3S.js +18 -0
- package/dist/{chunk-4DECIFU7.js → chunk-QYTT6GE3.js} +62 -288
- package/dist/{chunk-FFALUUZZ.cjs → chunk-RGTR7CIO.cjs} +5 -5
- package/dist/{chunk-3QOSDDNI.cjs → chunk-SNYBEXLB.cjs} +6 -13
- package/dist/{chunk-2DCNB7DF.cjs → chunk-SU2GCLAC.cjs} +30 -10
- package/dist/{chunk-5HTVET6E.js → chunk-TIER4SUC.js} +24 -4
- package/dist/{chunk-CZHZGRU7.js → chunk-UHGVBFU3.js} +2 -0
- package/dist/chunk-UIBD2YY5.cjs +22 -0
- package/dist/{chunk-SVXC36MU.cjs → chunk-VACWOIRE.cjs} +2 -0
- package/dist/{chunk-MQNDWYPN.js → chunk-VPBAUQ2M.js} +4 -4
- package/dist/chunk-WLYIIEAF.js +50 -0
- package/dist/{chunk-BO4RFWBR.js → chunk-XK5CIRMQ.js} +24 -1
- package/dist/chunk-XSVNC2UD.cjs +18 -0
- package/dist/completion/CompletionService.cjs +22 -16
- package/dist/completion/CompletionService.js +21 -15
- package/dist/completion.cjs +24 -18
- package/dist/completion.js +23 -17
- package/dist/index.cjs +33 -24
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +42 -33
- package/dist/keyPolicy-Cp0FntZl.d.cts +90 -0
- package/dist/keyPolicy-Cp0FntZl.d.ts +90 -0
- package/dist/outbound-api/auditCapture.cjs +9 -0
- package/dist/outbound-api/auditCapture.d.cts +52 -0
- package/dist/outbound-api/auditCapture.d.ts +52 -0
- package/dist/outbound-api/auditCapture.js +9 -0
- package/dist/outbound-api/auditRedact.cjs +8 -0
- package/dist/outbound-api/auditRedact.d.cts +30 -0
- package/dist/outbound-api/auditRedact.d.ts +30 -0
- package/dist/outbound-api/auditRedact.js +8 -0
- package/dist/outbound-api/billingCapture.cjs +8 -0
- package/dist/outbound-api/billingCapture.d.cts +61 -0
- package/dist/outbound-api/billingCapture.d.ts +61 -0
- package/dist/outbound-api/billingCapture.js +8 -0
- package/dist/outbound-api/quotaWarn.cjs +12 -0
- package/dist/outbound-api/quotaWarn.d.cts +43 -0
- package/dist/outbound-api/quotaWarn.d.ts +43 -0
- package/dist/outbound-api/quotaWarn.js +12 -0
- package/dist/outbound-api/routeResolver.cjs +2 -2
- package/dist/outbound-api/routeResolver.d.cts +3 -2
- package/dist/outbound-api/routeResolver.d.ts +3 -2
- package/dist/outbound-api/routeResolver.js +1 -1
- package/dist/outbound-api/types.d.cts +2 -1
- package/dist/outbound-api/types.d.ts +2 -1
- package/dist/outbound-api.cjs +29 -20
- package/dist/outbound-api.d.cts +9 -140
- package/dist/outbound-api.d.ts +9 -140
- package/dist/outbound-api.js +28 -19
- package/dist/pipeline/AuthSource.d.cts +6 -0
- package/dist/pipeline/AuthSource.d.ts +6 -0
- package/dist/pipeline/SubscriptionAuthSource.cjs +2 -2
- package/dist/pipeline/SubscriptionAuthSource.js +1 -1
- package/dist/pipeline/SubscriptionAuthStrategy.d.cts +6 -0
- package/dist/pipeline/SubscriptionAuthStrategy.d.ts +6 -0
- package/dist/pipeline/auditUsageStash.cjs +10 -0
- package/dist/pipeline/auditUsageStash.d.cts +37 -0
- package/dist/pipeline/auditUsageStash.d.ts +37 -0
- package/dist/pipeline/auditUsageStash.js +10 -0
- package/dist/pipeline/executeProviderCall.cjs +2 -2
- package/dist/pipeline/executeProviderCall.js +1 -1
- package/dist/pipeline/upstreamFetch.cjs +14 -0
- package/dist/pipeline/upstreamFetch.d.cts +83 -0
- package/dist/pipeline/upstreamFetch.d.ts +83 -0
- package/dist/pipeline/upstreamFetch.js +14 -0
- package/dist/pipeline/webhookEmit.cjs +10 -0
- package/dist/pipeline/webhookEmit.d.cts +36 -0
- package/dist/pipeline/webhookEmit.d.ts +36 -0
- package/dist/pipeline/webhookEmit.js +10 -0
- package/dist/ports.d.cts +2 -1
- package/dist/ports.d.ts +2 -1
- package/dist/provider-proxy/ProviderProxy.cjs +22 -16
- package/dist/provider-proxy/ProviderProxy.js +21 -15
- package/dist/provider-proxy/ingress/providerProxyShared.cjs +22 -16
- package/dist/provider-proxy/ingress/providerProxyShared.js +21 -15
- package/dist/provider-proxy/types.d.cts +7 -0
- package/dist/provider-proxy/types.d.ts +7 -0
- package/dist/provider-proxy.cjs +22 -16
- package/dist/provider-proxy.js +21 -15
- package/dist/{routeResolver-B1NglTfe.d.ts → routeResolver-C4T7yClx.d.ts} +1 -1
- package/dist/{routeResolver-CbG5uBgm.d.cts → routeResolver-CB3tvJKy.d.cts} +1 -1
- package/dist/transformer/transformers/OpenAIResponseTransformer.cjs +2 -2
- package/dist/transformer/transformers/OpenAIResponseTransformer.js +1 -1
- package/dist/transformer/transformers.cjs +6 -6
- package/dist/transformer/transformers.js +5 -5
- package/dist/transformer.cjs +7 -7
- package/dist/transformer.js +6 -6
- package/dist/{types-aBFFXoBz.d.cts → types-B8Arpxn0.d.cts} +14 -90
- package/dist/{types-6OUY_xfA.d.ts → types-lgPYQuZS.d.ts} +14 -90
- package/dist/usage/usage-recorder.cjs +3 -2
- package/dist/usage/usage-recorder.js +2 -1
- package/dist/usage.cjs +3 -2
- package/dist/usage.js +2 -1
- package/package.json +64 -64
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import http from 'node:http';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* auditCapture — the outbound server's post-response audit capture hook
|
|
5
|
+
* (request-audit-log, design D1/D3/D5).
|
|
6
|
+
*
|
|
7
|
+
* {@link beginAuditCapture} is called at the TOP of `handleOutboundRequest`. It
|
|
8
|
+
* reads the active capture config from the core slot; when audit is DISABLED it
|
|
9
|
+
* returns `null` immediately (one slot read — no assembly, no listener, zero
|
|
10
|
+
* regression). When enabled it:
|
|
11
|
+
* - registers a one-shot `res.on('close')` listener that, at response end,
|
|
12
|
+
* assembles the {@link AuditRecord} from the http `req` (IP via the socket, or
|
|
13
|
+
* a trusted `X-Forwarded-For` only when configured — LEAD OQ1 anti-spoof; UA;
|
|
14
|
+
* method; path with the query string DROPPED), the response `statusCode`, the
|
|
15
|
+
* elapsed ms, and the fields the handler fills in (keyId / model / provider /
|
|
16
|
+
* error / bodies) — then hands it to the fire-and-forget `recordAudit`;
|
|
17
|
+
* - when `captureBodies` is ALSO on, wraps `res.write`/`res.end` to accumulate a
|
|
18
|
+
* BOUNDED response body (metadata-only for a streaming `text/event-stream`
|
|
19
|
+
* response — a full stream is unbounded), and truncates+redacts both bodies.
|
|
20
|
+
*
|
|
21
|
+
* Request HEADERS are NEVER read into a record (Authorization / x-api-key live
|
|
22
|
+
* there). Every stored body passes through {@link redactAuditText}. The assembly
|
|
23
|
+
* is wrapped so a capture failure can never surface into the relay path.
|
|
24
|
+
*
|
|
25
|
+
* @module @omnicross/core/outbound-api/auditCapture
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The mutable context the request handler enriches as it progresses. `null` is
|
|
30
|
+
* returned by {@link beginAuditCapture} when audit is disabled — the handler
|
|
31
|
+
* guards every write with `if (audit)`.
|
|
32
|
+
*/
|
|
33
|
+
interface AuditCaptureContext {
|
|
34
|
+
/** Outbound key id (set after auth). NEVER the key material. */
|
|
35
|
+
keyId?: string | null;
|
|
36
|
+
/** Resolved upstream model (set after route resolution). */
|
|
37
|
+
model?: string;
|
|
38
|
+
/** Upstream provider id (set after route resolution). */
|
|
39
|
+
provider?: string;
|
|
40
|
+
/** Sanitized error message (set on a relay/dispatch failure). */
|
|
41
|
+
error?: string;
|
|
42
|
+
/** Stash the raw request body for capture (a no-op unless `captureBodies`). */
|
|
43
|
+
setRequestBody(raw: string): void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Begin audit capture for one request. Returns a mutable context the handler
|
|
47
|
+
* enriches, or `null` when audit is disabled (zero-cost path). The record is
|
|
48
|
+
* emitted on response `close` via the fire-and-forget sink.
|
|
49
|
+
*/
|
|
50
|
+
declare function beginAuditCapture(req: http.IncomingMessage, res: http.ServerResponse, now: number): AuditCaptureContext | null;
|
|
51
|
+
|
|
52
|
+
export { type AuditCaptureContext, beginAuditCapture };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* auditRedact — the pure secret-redaction pass for captured audit bodies
|
|
3
|
+
* (request-audit-log, design D3/D7).
|
|
4
|
+
*
|
|
5
|
+
* Body capture is opt-in and inherently sensitive: a prompt or tool argument can
|
|
6
|
+
* embed a secret. {@link redactAuditText} is run over EVERY captured body (and
|
|
7
|
+
* any other free text stored in a record) BEFORE it is persisted — defense in
|
|
8
|
+
* depth on top of "request headers are NEVER captured" (so an Authorization /
|
|
9
|
+
* x-api-key HEADER value never enters a record in the first place).
|
|
10
|
+
*
|
|
11
|
+
* It masks the obvious, high-confidence secret shapes ONLY (frozen list) — never
|
|
12
|
+
* a broad heuristic that would gut a legitimate prompt:
|
|
13
|
+
* - `sk-…` API keys (covers `sk-ant-…`, `sk-omnicross-…`, `sk-proj-…`, OpenAI).
|
|
14
|
+
* - `Bearer <token>` authorization values.
|
|
15
|
+
* - `x-api-key` / `api-key` / `authorization` values written inline as text.
|
|
16
|
+
* - Google `AIza…` API keys.
|
|
17
|
+
*
|
|
18
|
+
* Pure + allocation-light + never throws.
|
|
19
|
+
*
|
|
20
|
+
* @module @omnicross/core/outbound-api/auditRedact
|
|
21
|
+
*/
|
|
22
|
+
/** The sentinel a masked secret is replaced with. */
|
|
23
|
+
declare const AUDIT_REDACTED = "***REDACTED***";
|
|
24
|
+
/**
|
|
25
|
+
* Mask obvious secrets in `text`. Pure; returns the input unchanged when it holds
|
|
26
|
+
* no recognized secret shape. Never throws (a bad input returns `''`).
|
|
27
|
+
*/
|
|
28
|
+
declare function redactAuditText(text: string): string;
|
|
29
|
+
|
|
30
|
+
export { AUDIT_REDACTED, redactAuditText };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* auditRedact — the pure secret-redaction pass for captured audit bodies
|
|
3
|
+
* (request-audit-log, design D3/D7).
|
|
4
|
+
*
|
|
5
|
+
* Body capture is opt-in and inherently sensitive: a prompt or tool argument can
|
|
6
|
+
* embed a secret. {@link redactAuditText} is run over EVERY captured body (and
|
|
7
|
+
* any other free text stored in a record) BEFORE it is persisted — defense in
|
|
8
|
+
* depth on top of "request headers are NEVER captured" (so an Authorization /
|
|
9
|
+
* x-api-key HEADER value never enters a record in the first place).
|
|
10
|
+
*
|
|
11
|
+
* It masks the obvious, high-confidence secret shapes ONLY (frozen list) — never
|
|
12
|
+
* a broad heuristic that would gut a legitimate prompt:
|
|
13
|
+
* - `sk-…` API keys (covers `sk-ant-…`, `sk-omnicross-…`, `sk-proj-…`, OpenAI).
|
|
14
|
+
* - `Bearer <token>` authorization values.
|
|
15
|
+
* - `x-api-key` / `api-key` / `authorization` values written inline as text.
|
|
16
|
+
* - Google `AIza…` API keys.
|
|
17
|
+
*
|
|
18
|
+
* Pure + allocation-light + never throws.
|
|
19
|
+
*
|
|
20
|
+
* @module @omnicross/core/outbound-api/auditRedact
|
|
21
|
+
*/
|
|
22
|
+
/** The sentinel a masked secret is replaced with. */
|
|
23
|
+
declare const AUDIT_REDACTED = "***REDACTED***";
|
|
24
|
+
/**
|
|
25
|
+
* Mask obvious secrets in `text`. Pure; returns the input unchanged when it holds
|
|
26
|
+
* no recognized secret shape. Never throws (a bad input returns `''`).
|
|
27
|
+
*/
|
|
28
|
+
declare function redactAuditText(text: string): string;
|
|
29
|
+
|
|
30
|
+
export { AUDIT_REDACTED, redactAuditText };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkAPYG5QD7cjs = require('../chunk-APYG5QD7.cjs');
|
|
4
|
+
require('../chunk-L74VDN4A.cjs');
|
|
5
|
+
require('../chunk-XSVNC2UD.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.beginBillingCapture = _chunkAPYG5QD7cjs.beginBillingCapture;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import http from 'node:http';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* billingCapture — the outbound server's post-response billing capture hook
|
|
5
|
+
* (billing-event-stream, design D1/D4).
|
|
6
|
+
*
|
|
7
|
+
* {@link beginBillingCapture} is called at the TOP of `handleOutboundRequest`. It
|
|
8
|
+
* reads the active billing config from the core slot; when billing is DISABLED it
|
|
9
|
+
* returns `null` immediately (one slot read — no assembly, no listener, zero
|
|
10
|
+
* regression). When enabled it registers a one-shot `res.close` listener that
|
|
11
|
+
* assembles a {@link BillingEvent} from the handler-filled context (keyId / model
|
|
12
|
+
* / provider / authMode), the response `statusCode`, and this request's METERED
|
|
13
|
+
* FACTS (token counts + the ALREADY-COMPUTED cost) — then hands it to the
|
|
14
|
+
* no-throw {@link publishBillingEvent}.
|
|
15
|
+
*
|
|
16
|
+
* COST REUSE (design D3 — no double pricing): the metered facts are read from the
|
|
17
|
+
* per-request usage stash the usage tap populates ({@link readAuditUsage} — the
|
|
18
|
+
* SAME stash `usage-events.jsonl` correlation uses, populated UNCONDITIONALLY by
|
|
19
|
+
* the taps, independent of whether request-audit is enabled). Token counts are
|
|
20
|
+
* stashed SYNCHRONOUSLY at `record()`; the cost lands on the recorder's deferred
|
|
21
|
+
* pricing tick (scheduled BEFORE the response closes). So the assembly is deferred
|
|
22
|
+
* one macrotask past `close` — by then the earlier-scheduled pricing tick has run
|
|
23
|
+
* and stashed the computed cost we REUSE (we never re-price).
|
|
24
|
+
*
|
|
25
|
+
* BILLABLE-ONLY: an event is emitted ONLY when the request produced usage (an
|
|
26
|
+
* upstream call was billed). Auth failures / rate-limit / model-restriction
|
|
27
|
+
* rejections return before dispatch, stash no usage, and emit NO billing event.
|
|
28
|
+
*
|
|
29
|
+
* @module @omnicross/core/outbound-api/billingCapture
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The mutable context the request handler enriches as it progresses. `null` is
|
|
34
|
+
* returned by {@link beginBillingCapture} when billing is disabled — the handler
|
|
35
|
+
* guards every write with `if (billing)`.
|
|
36
|
+
*/
|
|
37
|
+
interface BillingCaptureContext {
|
|
38
|
+
/** Outbound key id (set after auth). NEVER the key material. */
|
|
39
|
+
keyId?: string | null;
|
|
40
|
+
/** Resolved upstream model (set after route resolution). */
|
|
41
|
+
model?: string;
|
|
42
|
+
/** Upstream provider id (set after route resolution). */
|
|
43
|
+
provider?: string;
|
|
44
|
+
/** Re-auth mode the request billed under (set after route resolution). */
|
|
45
|
+
authMode?: 'byo' | 'subscription';
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Deferral used to schedule the event assembly one macrotask past `close`, so the
|
|
49
|
+
* usage tap's earlier-scheduled pricing tick has stashed the cost we reuse.
|
|
50
|
+
* Injectable ONLY for deterministic tests; production uses a zero-delay timer.
|
|
51
|
+
*/
|
|
52
|
+
type BillingDefer = (fn: () => void) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Begin billing capture for one request. Returns a mutable context the handler
|
|
55
|
+
* enriches, or `null` when billing is disabled (zero-cost path). The event is
|
|
56
|
+
* emitted on response `close` via the no-throw sink — but ONLY when the request
|
|
57
|
+
* produced usage (a billable request).
|
|
58
|
+
*/
|
|
59
|
+
declare function beginBillingCapture(_req: http.IncomingMessage, res: http.ServerResponse, now: number, defer?: BillingDefer): BillingCaptureContext | null;
|
|
60
|
+
|
|
61
|
+
export { type BillingCaptureContext, type BillingDefer, beginBillingCapture };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import http from 'node:http';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* billingCapture — the outbound server's post-response billing capture hook
|
|
5
|
+
* (billing-event-stream, design D1/D4).
|
|
6
|
+
*
|
|
7
|
+
* {@link beginBillingCapture} is called at the TOP of `handleOutboundRequest`. It
|
|
8
|
+
* reads the active billing config from the core slot; when billing is DISABLED it
|
|
9
|
+
* returns `null` immediately (one slot read — no assembly, no listener, zero
|
|
10
|
+
* regression). When enabled it registers a one-shot `res.close` listener that
|
|
11
|
+
* assembles a {@link BillingEvent} from the handler-filled context (keyId / model
|
|
12
|
+
* / provider / authMode), the response `statusCode`, and this request's METERED
|
|
13
|
+
* FACTS (token counts + the ALREADY-COMPUTED cost) — then hands it to the
|
|
14
|
+
* no-throw {@link publishBillingEvent}.
|
|
15
|
+
*
|
|
16
|
+
* COST REUSE (design D3 — no double pricing): the metered facts are read from the
|
|
17
|
+
* per-request usage stash the usage tap populates ({@link readAuditUsage} — the
|
|
18
|
+
* SAME stash `usage-events.jsonl` correlation uses, populated UNCONDITIONALLY by
|
|
19
|
+
* the taps, independent of whether request-audit is enabled). Token counts are
|
|
20
|
+
* stashed SYNCHRONOUSLY at `record()`; the cost lands on the recorder's deferred
|
|
21
|
+
* pricing tick (scheduled BEFORE the response closes). So the assembly is deferred
|
|
22
|
+
* one macrotask past `close` — by then the earlier-scheduled pricing tick has run
|
|
23
|
+
* and stashed the computed cost we REUSE (we never re-price).
|
|
24
|
+
*
|
|
25
|
+
* BILLABLE-ONLY: an event is emitted ONLY when the request produced usage (an
|
|
26
|
+
* upstream call was billed). Auth failures / rate-limit / model-restriction
|
|
27
|
+
* rejections return before dispatch, stash no usage, and emit NO billing event.
|
|
28
|
+
*
|
|
29
|
+
* @module @omnicross/core/outbound-api/billingCapture
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The mutable context the request handler enriches as it progresses. `null` is
|
|
34
|
+
* returned by {@link beginBillingCapture} when billing is disabled — the handler
|
|
35
|
+
* guards every write with `if (billing)`.
|
|
36
|
+
*/
|
|
37
|
+
interface BillingCaptureContext {
|
|
38
|
+
/** Outbound key id (set after auth). NEVER the key material. */
|
|
39
|
+
keyId?: string | null;
|
|
40
|
+
/** Resolved upstream model (set after route resolution). */
|
|
41
|
+
model?: string;
|
|
42
|
+
/** Upstream provider id (set after route resolution). */
|
|
43
|
+
provider?: string;
|
|
44
|
+
/** Re-auth mode the request billed under (set after route resolution). */
|
|
45
|
+
authMode?: 'byo' | 'subscription';
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Deferral used to schedule the event assembly one macrotask past `close`, so the
|
|
49
|
+
* usage tap's earlier-scheduled pricing tick has stashed the cost we reuse.
|
|
50
|
+
* Injectable ONLY for deterministic tests; production uses a zero-delay timer.
|
|
51
|
+
*/
|
|
52
|
+
type BillingDefer = (fn: () => void) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Begin billing capture for one request. Returns a mutable context the handler
|
|
55
|
+
* enriches, or `null` when billing is disabled (zero-cost path). The event is
|
|
56
|
+
* emitted on response `close` via the no-throw sink — but ONLY when the request
|
|
57
|
+
* produced usage (a billable request).
|
|
58
|
+
*/
|
|
59
|
+
declare function beginBillingCapture(_req: http.IncomingMessage, res: http.ServerResponse, now: number, defer?: BillingDefer): BillingCaptureContext | null;
|
|
60
|
+
|
|
61
|
+
export { type BillingCaptureContext, type BillingDefer, beginBillingCapture };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunk4YINUUKQcjs = require('../chunk-4YINUUKQ.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.WEBHOOK_QUOTA_WARN_RATIO = _chunk4YINUUKQcjs.WEBHOOK_QUOTA_WARN_RATIO; exports.__resetQuotaWarnGuardForTests = _chunk4YINUUKQcjs.__resetQuotaWarnGuardForTests; exports.computeQuotaWarnings = _chunk4YINUUKQcjs.computeQuotaWarnings; exports.markQuotaWarnedOnce = _chunk4YINUUKQcjs.markQuotaWarnedOnce;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { K as KeyCostLimits, c as KeySpend } from '../keyPolicy-Cp0FntZl.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* quotaWarn — the key.quotaWarning threshold helper (webhook-notifications,
|
|
5
|
+
* design D3, Phase 2).
|
|
6
|
+
*
|
|
7
|
+
* A PURE crossing detector ({@link computeQuotaWarnings}) + a tiny module-level
|
|
8
|
+
* "already warned this window" guard ({@link markQuotaWarnedOnce}). The wire
|
|
9
|
+
* path (`outboundApiRouter`) computes warnings alongside the existing quota
|
|
10
|
+
* check and emits `key.quotaWarning` ONCE per window-crossing — so a key sitting
|
|
11
|
+
* above the warn ratio doesn't spam a webhook every request. The guard is keyed
|
|
12
|
+
* by `keyId + scope + windowStart`, so a NEW day/week window re-arms the warning
|
|
13
|
+
* naturally (its `windowStart` differs).
|
|
14
|
+
*
|
|
15
|
+
* @module @omnicross/core/outbound-api/quotaWarn
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/** Warn when accumulated spend reaches this fraction of a scope's limit (design OQ2). */
|
|
19
|
+
declare const WEBHOOK_QUOTA_WARN_RATIO = 0.8;
|
|
20
|
+
/** A per-scope warning crossing (not-yet-exceeded, at/over the warn ratio). */
|
|
21
|
+
interface QuotaWarning {
|
|
22
|
+
scope: 'daily' | 'weekly' | 'total';
|
|
23
|
+
limitUsd: number;
|
|
24
|
+
spentUsd: number;
|
|
25
|
+
/** The window boundary (epoch ms; `0` for the window-less `total` scope). */
|
|
26
|
+
windowStart: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Detect which cost scopes have crossed the warn ratio but are NOT yet exceeded
|
|
30
|
+
* (an EXCEEDED scope is handled by `checkKeyQuota` → `key.quotaExceeded`, not a
|
|
31
|
+
* warning). Pure — the caller owns the emit + the dedupe guard.
|
|
32
|
+
*/
|
|
33
|
+
declare function computeQuotaWarnings(limits: KeyCostLimits, spend: KeySpend, ratio?: number): QuotaWarning[];
|
|
34
|
+
/**
|
|
35
|
+
* Record a warning for `(keyId, scope, windowStart)` and return whether THIS is
|
|
36
|
+
* the first time (⇒ the caller should emit). Subsequent calls in the same window
|
|
37
|
+
* return `false` (deduped). A new window (different `windowStart`) re-arms.
|
|
38
|
+
*/
|
|
39
|
+
declare function markQuotaWarnedOnce(keyId: string, scope: string, windowStart: number): boolean;
|
|
40
|
+
/** TEST SEAM — clear the dedupe guard between suites. */
|
|
41
|
+
declare function __resetQuotaWarnGuardForTests(): void;
|
|
42
|
+
|
|
43
|
+
export { type QuotaWarning, WEBHOOK_QUOTA_WARN_RATIO, __resetQuotaWarnGuardForTests, computeQuotaWarnings, markQuotaWarnedOnce };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { K as KeyCostLimits, c as KeySpend } from '../keyPolicy-Cp0FntZl.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* quotaWarn — the key.quotaWarning threshold helper (webhook-notifications,
|
|
5
|
+
* design D3, Phase 2).
|
|
6
|
+
*
|
|
7
|
+
* A PURE crossing detector ({@link computeQuotaWarnings}) + a tiny module-level
|
|
8
|
+
* "already warned this window" guard ({@link markQuotaWarnedOnce}). The wire
|
|
9
|
+
* path (`outboundApiRouter`) computes warnings alongside the existing quota
|
|
10
|
+
* check and emits `key.quotaWarning` ONCE per window-crossing — so a key sitting
|
|
11
|
+
* above the warn ratio doesn't spam a webhook every request. The guard is keyed
|
|
12
|
+
* by `keyId + scope + windowStart`, so a NEW day/week window re-arms the warning
|
|
13
|
+
* naturally (its `windowStart` differs).
|
|
14
|
+
*
|
|
15
|
+
* @module @omnicross/core/outbound-api/quotaWarn
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/** Warn when accumulated spend reaches this fraction of a scope's limit (design OQ2). */
|
|
19
|
+
declare const WEBHOOK_QUOTA_WARN_RATIO = 0.8;
|
|
20
|
+
/** A per-scope warning crossing (not-yet-exceeded, at/over the warn ratio). */
|
|
21
|
+
interface QuotaWarning {
|
|
22
|
+
scope: 'daily' | 'weekly' | 'total';
|
|
23
|
+
limitUsd: number;
|
|
24
|
+
spentUsd: number;
|
|
25
|
+
/** The window boundary (epoch ms; `0` for the window-less `total` scope). */
|
|
26
|
+
windowStart: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Detect which cost scopes have crossed the warn ratio but are NOT yet exceeded
|
|
30
|
+
* (an EXCEEDED scope is handled by `checkKeyQuota` → `key.quotaExceeded`, not a
|
|
31
|
+
* warning). Pure — the caller owns the emit + the dedupe guard.
|
|
32
|
+
*/
|
|
33
|
+
declare function computeQuotaWarnings(limits: KeyCostLimits, spend: KeySpend, ratio?: number): QuotaWarning[];
|
|
34
|
+
/**
|
|
35
|
+
* Record a warning for `(keyId, scope, windowStart)` and return whether THIS is
|
|
36
|
+
* the first time (⇒ the caller should emit). Subsequent calls in the same window
|
|
37
|
+
* return `false` (deduped). A new window (different `windowStart`) re-arms.
|
|
38
|
+
*/
|
|
39
|
+
declare function markQuotaWarnedOnce(keyId: string, scope: string, windowStart: number): boolean;
|
|
40
|
+
/** TEST SEAM — clear the dedupe guard between suites. */
|
|
41
|
+
declare function __resetQuotaWarnGuardForTests(): void;
|
|
42
|
+
|
|
43
|
+
export { type QuotaWarning, WEBHOOK_QUOTA_WARN_RATIO, __resetQuotaWarnGuardForTests, computeQuotaWarnings, markQuotaWarnedOnce };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
WEBHOOK_QUOTA_WARN_RATIO,
|
|
3
|
+
__resetQuotaWarnGuardForTests,
|
|
4
|
+
computeQuotaWarnings,
|
|
5
|
+
markQuotaWarnedOnce
|
|
6
|
+
} from "../chunk-3QFXFCHG.js";
|
|
7
|
+
export {
|
|
8
|
+
WEBHOOK_QUOTA_WARN_RATIO,
|
|
9
|
+
__resetQuotaWarnGuardForTests,
|
|
10
|
+
computeQuotaWarnings,
|
|
11
|
+
markQuotaWarnedOnce
|
|
12
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVACWOIREcjs = require('../chunk-VACWOIRE.cjs');
|
|
7
7
|
require('../chunk-QBZJ7P2T.cjs');
|
|
8
8
|
require('../chunk-4IH4EL7M.cjs');
|
|
9
9
|
|
|
@@ -11,4 +11,4 @@ require('../chunk-4IH4EL7M.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.isSubscriptionProviderId =
|
|
14
|
+
exports.isSubscriptionProviderId = _chunkVACWOIREcjs.isSubscriptionProviderId; exports.parseModelRef = _chunkVACWOIREcjs.parseModelRef; exports.pickModelRefFromList = _chunkVACWOIREcjs.pickModelRefFromList; exports.resolveRoute = _chunkVACWOIREcjs.resolveRoute;
|
|
@@ -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-B8Arpxn0.cjs';
|
|
4
|
+
export { R as RouteResolveError, b as RouteResolveResult, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from '../routeResolver-CB3tvJKy.cjs';
|
|
5
5
|
import '@omnicross/contracts/llm-config';
|
|
6
6
|
import '../transformer/types.cjs';
|
|
7
7
|
import '../transformer/TransformerService.cjs';
|
|
@@ -23,3 +23,4 @@ import '@omnicross/contracts/health-logging-types';
|
|
|
23
23
|
import '@omnicross/contracts/voucher-types';
|
|
24
24
|
import '@omnicross/contracts/webhook-types';
|
|
25
25
|
import '../ProviderProxy-CnMQYN59.cjs';
|
|
26
|
+
import '../keyPolicy-Cp0FntZl.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-lgPYQuZS.js';
|
|
4
|
+
export { R as RouteResolveError, b as RouteResolveResult, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from '../routeResolver-C4T7yClx.js';
|
|
5
5
|
import '@omnicross/contracts/llm-config';
|
|
6
6
|
import '../transformer/types.js';
|
|
7
7
|
import '../transformer/TransformerService.js';
|
|
@@ -23,3 +23,4 @@ import '@omnicross/contracts/health-logging-types';
|
|
|
23
23
|
import '@omnicross/contracts/voucher-types';
|
|
24
24
|
import '@omnicross/contracts/webhook-types';
|
|
25
25
|
import '../ProviderProxy-C-xqrkKi.js';
|
|
26
|
+
import '../keyPolicy-Cp0FntZl.js';
|
|
@@ -8,7 +8,7 @@ import '../logger-4GvQNzhE.cjs';
|
|
|
8
8
|
import '../ports/provider-config-source.cjs';
|
|
9
9
|
import '../ProviderProxy-CnMQYN59.cjs';
|
|
10
10
|
import '../provider-proxy/types.cjs';
|
|
11
|
-
export {
|
|
11
|
+
export { H as AccountHealthConfig, A as AccountProbeConfig, C as ChatDispatchMode, a as ConcurrencyQueueConfig, E as ENDPOINT_MODEL_KINDS, b as EndpointRoutingConfig, F as FingerprintConfig, e as KindMappedEndpoint, M as MessagesModelKind, f as ModelKind, g as ModelPrefixTargets, G as ModelRef, h as OutboundApiDeps, i as OutboundApiKeyCreated, j as OutboundApiKeyInfo, k as OutboundApiServerConfig, l as OutboundApiServerStatus, m as OutboundEndpoint, n as OutboundFormatUrls, o as OutboundKeyActivationMode, O as OutboundKeyDb, p as OutboundKeyDbRow, I as OutboundKeyModelRestrictionMode, q as OutboundKeyPolicy, r as OutboundProxyConfig, R as RequestRole, s as ResponsesModelKind, U as UserMessageQueueConfig } from '../types-B8Arpxn0.cjs';
|
|
12
12
|
import '@omnicross/contracts/llm-config';
|
|
13
13
|
import '../transformer/types.cjs';
|
|
14
14
|
import '../transformer/TransformerService.cjs';
|
|
@@ -22,3 +22,4 @@ import '../pipeline/SubscriptionAuthSource.cjs';
|
|
|
22
22
|
import '../pipeline/SubscriptionAuthStrategy.cjs';
|
|
23
23
|
import '../ports/web-search-backend.cjs';
|
|
24
24
|
import '@omnicross/contracts/websearch-types';
|
|
25
|
+
import '../keyPolicy-Cp0FntZl.cjs';
|
|
@@ -8,7 +8,7 @@ import '../logger-4GvQNzhE.js';
|
|
|
8
8
|
import '../ports/provider-config-source.js';
|
|
9
9
|
import '../ProviderProxy-C-xqrkKi.js';
|
|
10
10
|
import '../provider-proxy/types.js';
|
|
11
|
-
export {
|
|
11
|
+
export { H as AccountHealthConfig, A as AccountProbeConfig, C as ChatDispatchMode, a as ConcurrencyQueueConfig, E as ENDPOINT_MODEL_KINDS, b as EndpointRoutingConfig, F as FingerprintConfig, e as KindMappedEndpoint, M as MessagesModelKind, f as ModelKind, g as ModelPrefixTargets, G as ModelRef, h as OutboundApiDeps, i as OutboundApiKeyCreated, j as OutboundApiKeyInfo, k as OutboundApiServerConfig, l as OutboundApiServerStatus, m as OutboundEndpoint, n as OutboundFormatUrls, o as OutboundKeyActivationMode, O as OutboundKeyDb, p as OutboundKeyDbRow, I as OutboundKeyModelRestrictionMode, q as OutboundKeyPolicy, r as OutboundProxyConfig, R as RequestRole, s as ResponsesModelKind, U as UserMessageQueueConfig } from '../types-lgPYQuZS.js';
|
|
12
12
|
import '@omnicross/contracts/llm-config';
|
|
13
13
|
import '../transformer/types.js';
|
|
14
14
|
import '../transformer/TransformerService.js';
|
|
@@ -22,3 +22,4 @@ import '../pipeline/SubscriptionAuthSource.js';
|
|
|
22
22
|
import '../pipeline/SubscriptionAuthStrategy.js';
|
|
23
23
|
import '../ports/web-search-backend.js';
|
|
24
24
|
import '@omnicross/contracts/websearch-types';
|
|
25
|
+
import '../keyPolicy-Cp0FntZl.js';
|
package/dist/outbound-api.cjs
CHANGED
|
@@ -55,39 +55,38 @@
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
var _chunk2FMI2B6Vcjs = require('./chunk-2FMI2B6V.cjs');
|
|
58
|
+
var _chunkDKPXN34Vcjs = require('./chunk-DKPXN34V.cjs');
|
|
63
59
|
require('./chunk-HQP3K7PU.cjs');
|
|
64
60
|
require('./chunk-FZ46M34D.cjs');
|
|
65
|
-
require('./chunk-46ZIFWYG.cjs');
|
|
66
61
|
require('./chunk-3OPYJG76.cjs');
|
|
67
|
-
require('./chunk-
|
|
68
|
-
require('./chunk-C72S6TTV.cjs');
|
|
62
|
+
require('./chunk-RGTR7CIO.cjs');
|
|
69
63
|
require('./chunk-DWKQZ2SK.cjs');
|
|
70
64
|
require('./chunk-4VAVYUZS.cjs');
|
|
71
65
|
require('./chunk-7YN22L2H.cjs');
|
|
72
|
-
require('./chunk-
|
|
66
|
+
require('./chunk-SU2GCLAC.cjs');
|
|
67
|
+
require('./chunk-C72S6TTV.cjs');
|
|
73
68
|
require('./chunk-EYZYXJTJ.cjs');
|
|
74
69
|
require('./chunk-YMFAJFQT.cjs');
|
|
75
|
-
require('./chunk-
|
|
70
|
+
require('./chunk-SNYBEXLB.cjs');
|
|
71
|
+
require('./chunk-46ZIFWYG.cjs');
|
|
76
72
|
require('./chunk-GBHYAGX3.cjs');
|
|
77
73
|
require('./chunk-RPII3E6Z.cjs');
|
|
78
74
|
require('./chunk-6RPZADX3.cjs');
|
|
79
75
|
require('./chunk-QWBWGODS.cjs');
|
|
76
|
+
require('./chunk-UIBD2YY5.cjs');
|
|
77
|
+
require('./chunk-R3HK6R4B.cjs');
|
|
78
|
+
require('./chunk-HYN75H6G.cjs');
|
|
79
|
+
require('./chunk-Q27JY5RG.cjs');
|
|
80
|
+
require('./chunk-QXD4MV2X.cjs');
|
|
80
81
|
require('./chunk-NYUNU75A.cjs');
|
|
81
82
|
require('./chunk-VQY5W4YW.cjs');
|
|
82
|
-
require('./chunk-
|
|
83
|
+
require('./chunk-KFI44N2R.cjs');
|
|
83
84
|
require('./chunk-SVNDB62D.cjs');
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
var _chunkAPYG5QD7cjs = require('./chunk-APYG5QD7.cjs');
|
|
86
88
|
require('./chunk-L74VDN4A.cjs');
|
|
87
|
-
require('./chunk-
|
|
88
|
-
require('./chunk-Q27JY5RG.cjs');
|
|
89
|
-
require('./chunk-QXD4MV2X.cjs');
|
|
90
|
-
require('./chunk-A2YMUCBT.cjs');
|
|
89
|
+
require('./chunk-4YINUUKQ.cjs');
|
|
91
90
|
|
|
92
91
|
|
|
93
92
|
|
|
@@ -104,15 +103,25 @@ require('./chunk-A2YMUCBT.cjs');
|
|
|
104
103
|
|
|
105
104
|
|
|
106
105
|
|
|
107
|
-
var
|
|
106
|
+
var _chunkVACWOIREcjs = require('./chunk-VACWOIRE.cjs');
|
|
108
107
|
require('./chunk-QBZJ7P2T.cjs');
|
|
109
108
|
|
|
110
109
|
|
|
111
110
|
var _chunk4IH4EL7Mcjs = require('./chunk-4IH4EL7M.cjs');
|
|
111
|
+
require('./chunk-A2YMUCBT.cjs');
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
var _chunkE3UCVHLPcjs = require('./chunk-E3UCVHLP.cjs');
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
var _chunkFCR77GYMcjs = require('./chunk-FCR77GYM.cjs');
|
|
119
|
+
require('./chunk-AEOZIDEB.cjs');
|
|
120
|
+
require('./chunk-XSVNC2UD.cjs');
|
|
112
121
|
require('./chunk-SUEGJ75D.cjs');
|
|
113
|
-
require('./chunk-S6JGLF3G.cjs');
|
|
114
122
|
require('./chunk-RSJ3TWJQ.cjs');
|
|
115
123
|
require('./chunk-YGXJGRFI.cjs');
|
|
124
|
+
require('./chunk-OCEUVQHW.cjs');
|
|
116
125
|
require('./chunk-NZYN7C3P.cjs');
|
|
117
126
|
require('./chunk-JMJBSACD.cjs');
|
|
118
127
|
require('./chunk-GMMT7RVN.cjs');
|
|
@@ -194,4 +203,4 @@ require('./chunk-UNEFIWXI.cjs');
|
|
|
194
203
|
|
|
195
204
|
|
|
196
205
|
|
|
197
|
-
exports.AUDIT_REDACTED =
|
|
206
|
+
exports.AUDIT_REDACTED = _chunkFCR77GYMcjs.AUDIT_REDACTED; exports.ConcurrencyQueueFullError = _chunkDKPXN34Vcjs.ConcurrencyQueueFullError; exports.ConcurrencyWaitCancelledError = _chunkDKPXN34Vcjs.ConcurrencyWaitCancelledError; exports.ConcurrencyWaitTimeoutError = _chunkDKPXN34Vcjs.ConcurrencyWaitTimeoutError; exports.DEFAULT_ACCOUNT_PROBE = _chunkDKPXN34Vcjs.DEFAULT_ACCOUNT_PROBE; exports.DEFAULT_CONCURRENCY_QUEUE = _chunkDKPXN34Vcjs.DEFAULT_CONCURRENCY_QUEUE; exports.DEFAULT_FINGERPRINT = _chunkDKPXN34Vcjs.DEFAULT_FINGERPRINT; exports.DEFAULT_OUTBOUND_PORT = _chunkDKPXN34Vcjs.DEFAULT_OUTBOUND_PORT; exports.DEFAULT_USER_MESSAGE_QUEUE = _chunkDKPXN34Vcjs.DEFAULT_USER_MESSAGE_QUEUE; exports.ENDPOINT_MODEL_KINDS = _chunk4IH4EL7Mcjs.ENDPOINT_MODEL_KINDS; exports.KeySpendTracker = _chunkDKPXN34Vcjs.KeySpendTracker; exports.KeyedMutex = _chunkDKPXN34Vcjs.KeyedMutex; exports.OUTBOUND_API_SERVER_CONFIG_KEY = _chunkDKPXN34Vcjs.OUTBOUND_API_SERVER_CONFIG_KEY; exports.OutboundApiConfigError = _chunkDKPXN34Vcjs.OutboundApiConfigError; exports.OutboundApiServer = _chunkDKPXN34Vcjs.OutboundApiServer; exports.OutboundConcurrencyGate = _chunkDKPXN34Vcjs.OutboundConcurrencyGate; exports.OutboundRateLimiter = _chunkDKPXN34Vcjs.OutboundRateLimiter; exports.SUBSCRIPTION_PROVIDER_IDS = _chunkVACWOIREcjs.SUBSCRIPTION_PROVIDER_IDS; exports.SerialQueueTimeoutError = _chunkDKPXN34Vcjs.SerialQueueTimeoutError; exports.UserMessageSerialQueue = _chunkDKPXN34Vcjs.UserMessageSerialQueue; exports.__resetOutboundApiServerForTests = _chunkDKPXN34Vcjs.__resetOutboundApiServerForTests; exports.beginAuditCapture = _chunkE3UCVHLPcjs.beginAuditCapture; exports.beginBillingCapture = _chunkAPYG5QD7cjs.beginBillingCapture; exports.checkKeyQuota = _chunkDKPXN34Vcjs.checkKeyQuota; exports.classifyModelPrefix = _chunkVACWOIREcjs.classifyModelPrefix; exports.computeKeyExpiry = _chunkDKPXN34Vcjs.computeKeyExpiry; exports.computeVoucherGrant = _chunkDKPXN34Vcjs.computeVoucherGrant; exports.createNamedKey = _chunkDKPXN34Vcjs.createNamedKey; exports.defaultServerConfig = _chunkDKPXN34Vcjs.defaultServerConfig; exports.detectModelKind = _chunkVACWOIREcjs.detectModelKind; exports.detectRequestRole = _chunkVACWOIREcjs.detectRequestRole; exports.endpointSupportsSubscription = _chunkVACWOIREcjs.endpointSupportsSubscription; exports.endpointToIngressFormat = _chunkVACWOIREcjs.endpointToIngressFormat; exports.formatUrls = _chunkDKPXN34Vcjs.formatUrls; exports.generateVoucherCode = _chunkDKPXN34Vcjs.generateVoucherCode; exports.getOutboundApiServer = _chunkDKPXN34Vcjs.getOutboundApiServer; exports.handleVoucherRedeem = _chunkDKPXN34Vcjs.handleVoucherRedeem; exports.hashKey = _chunkDKPXN34Vcjs.hashKey; exports.hashVoucherCode = _chunkDKPXN34Vcjs.hashVoucherCode; exports.isConcurrencyRejection = _chunkDKPXN34Vcjs.isConcurrencyRejection; exports.isKindMappedEndpoint = _chunkVACWOIREcjs.isKindMappedEndpoint; exports.isRedeemRequest = _chunkDKPXN34Vcjs.isRedeemRequest; exports.isSerialQueueTimeout = _chunkDKPXN34Vcjs.isSerialQueueTimeout; exports.isSubscriptionProviderId = _chunkVACWOIREcjs.isSubscriptionProviderId; exports.isUserMessageRequest = _chunkDKPXN34Vcjs.isUserMessageRequest; exports.loadServerConfig = _chunkDKPXN34Vcjs.loadServerConfig; exports.mergeServerConfig = _chunkDKPXN34Vcjs.mergeServerConfig; exports.modelKindsForEndpoint = _chunkVACWOIREcjs.modelKindsForEndpoint; exports.newVoucherId = _chunkDKPXN34Vcjs.newVoucherId; exports.normalizeAccountProbe = _chunkDKPXN34Vcjs.normalizeAccountProbe; exports.normalizeAudit = _chunkDKPXN34Vcjs.normalizeAudit; exports.normalizeBilling = _chunkDKPXN34Vcjs.normalizeBilling; exports.normalizeFingerprint = _chunkDKPXN34Vcjs.normalizeFingerprint; exports.normalizePrefixTargets = _chunkDKPXN34Vcjs.normalizePrefixTargets; exports.normalizeProxyConfig = _chunkDKPXN34Vcjs.normalizeProxyConfig; exports.normalizeProxySegment = _chunkDKPXN34Vcjs.normalizeProxySegment; exports.normalizeQueueSegments = _chunkDKPXN34Vcjs.normalizeQueueSegments; exports.normalizeServerConfig = _chunkDKPXN34Vcjs.normalizeServerConfig; exports.normalizeVoucher = _chunkDKPXN34Vcjs.normalizeVoucher; exports.normalizeWebhookDestination = _chunkDKPXN34Vcjs.normalizeWebhookDestination; exports.normalizeWebhookSegment = _chunkDKPXN34Vcjs.normalizeWebhookSegment; exports.parseModelRef = _chunkVACWOIREcjs.parseModelRef; exports.pickModelRefFromList = _chunkVACWOIREcjs.pickModelRefFromList; exports.randomBase62 = _chunkDKPXN34Vcjs.randomBase62; exports.redactAuditText = _chunkFCR77GYMcjs.redactAuditText; exports.resolvePrefixTarget = _chunkVACWOIREcjs.resolvePrefixTarget; exports.resolveRoute = _chunkVACWOIREcjs.resolveRoute; exports.saveServerConfig = _chunkDKPXN34Vcjs.saveServerConfig; exports.startOfLocalDay = _chunkDKPXN34Vcjs.startOfLocalDay; exports.startOfLocalWeek = _chunkDKPXN34Vcjs.startOfLocalWeek; exports.toVoucherInfo = _chunkDKPXN34Vcjs.toVoucherInfo; exports.validateEndpointModelConfig = _chunkVACWOIREcjs.validateEndpointModelConfig; exports.validateServerModelConfig = _chunkVACWOIREcjs.validateServerModelConfig; exports.verifyKey = _chunkDKPXN34Vcjs.verifyKey; exports.verifyPresentedKey = _chunkDKPXN34Vcjs.verifyPresentedKey; exports.voucherCodePrefix = _chunkDKPXN34Vcjs.voucherCodePrefix;
|