@omnicross/core 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/ApiConverter.cjs +799 -0
  2. package/dist/ApiConverter.d.cts +82 -0
  3. package/dist/ApiConverter.d.ts +82 -0
  4. package/dist/ApiConverter.js +763 -0
  5. package/dist/BuiltinToolExecutor-BluWyeob.d.ts +81 -0
  6. package/dist/BuiltinToolExecutor-CS2WpXhM.d.cts +81 -0
  7. package/dist/CompletionService-7fCmKAP3.d.ts +212 -0
  8. package/dist/CompletionService-DtOF_War.d.cts +212 -0
  9. package/dist/{ProviderProxy-f_8ziIhW.d.cts → ProviderProxy-C-xqrkKi.d.ts} +7 -2
  10. package/dist/{ProviderProxy-vjt8sQQk.d.ts → ProviderProxy-CnMQYN59.d.cts} +7 -2
  11. package/dist/completion/BuiltinToolExecutor.cjs +327 -0
  12. package/dist/completion/BuiltinToolExecutor.d.cts +4 -0
  13. package/dist/completion/BuiltinToolExecutor.d.ts +4 -0
  14. package/dist/completion/BuiltinToolExecutor.js +296 -0
  15. package/dist/completion/CompletionService.cjs +3487 -0
  16. package/dist/completion/CompletionService.d.cts +21 -0
  17. package/dist/completion/CompletionService.d.ts +21 -0
  18. package/dist/completion/CompletionService.js +3461 -0
  19. package/dist/completion/NativeSearchInjector.cjs +196 -0
  20. package/dist/completion/NativeSearchInjector.d.cts +42 -0
  21. package/dist/completion/NativeSearchInjector.d.ts +42 -0
  22. package/dist/completion/NativeSearchInjector.js +167 -0
  23. package/dist/completion/ProviderSearchInjector.cjs +87 -0
  24. package/dist/completion/ProviderSearchInjector.d.cts +47 -0
  25. package/dist/completion/ProviderSearchInjector.d.ts +47 -0
  26. package/dist/completion/ProviderSearchInjector.js +60 -0
  27. package/dist/completion/native-search-types.cjs +67 -0
  28. package/dist/completion/native-search-types.d.cts +3 -0
  29. package/dist/completion/native-search-types.d.ts +3 -0
  30. package/dist/completion/native-search-types.js +38 -0
  31. package/dist/completion/openrouter-headers.cjs +72 -0
  32. package/dist/completion/openrouter-headers.d.cts +44 -0
  33. package/dist/completion/openrouter-headers.d.ts +44 -0
  34. package/dist/completion/openrouter-headers.js +42 -0
  35. package/dist/completion/openrouter-models.cjs +86 -0
  36. package/dist/completion/openrouter-models.d.cts +27 -0
  37. package/dist/completion/openrouter-models.d.ts +27 -0
  38. package/dist/completion/openrouter-models.js +59 -0
  39. package/dist/completion/types.cjs +18 -0
  40. package/dist/completion/types.d.cts +3 -0
  41. package/dist/completion/types.d.ts +3 -0
  42. package/dist/completion/types.js +0 -0
  43. package/dist/completion/url-builder.cjs +138 -0
  44. package/dist/completion/url-builder.d.cts +87 -0
  45. package/dist/completion/url-builder.d.ts +87 -0
  46. package/dist/completion/url-builder.js +104 -0
  47. package/dist/completion.d.cts +148 -7
  48. package/dist/completion.d.ts +148 -7
  49. package/dist/index.cjs +1 -0
  50. package/dist/index.d.cts +27 -90
  51. package/dist/index.d.ts +27 -90
  52. package/dist/index.js +1 -0
  53. package/dist/outbound-api/routeResolver.cjs +221 -0
  54. package/dist/outbound-api/routeResolver.d.cts +18 -0
  55. package/dist/outbound-api/routeResolver.d.ts +18 -0
  56. package/dist/outbound-api/routeResolver.js +192 -0
  57. package/dist/outbound-api/subscriptionRegistryPort.d.cts +5 -2
  58. package/dist/outbound-api/subscriptionRegistryPort.d.ts +5 -2
  59. package/dist/outbound-api/types.cjs +18 -0
  60. package/dist/{types-CbCN2NQP.d.ts → outbound-api/types.d.cts} +17 -3
  61. package/dist/{types-CGGrKqC_.d.cts → outbound-api/types.d.ts} +17 -3
  62. package/dist/outbound-api/types.js +0 -0
  63. package/dist/outbound-api.cjs +1 -0
  64. package/dist/outbound-api.d.cts +14 -87
  65. package/dist/outbound-api.d.ts +14 -87
  66. package/dist/outbound-api.js +1 -0
  67. package/dist/pipeline/AuthSource.cjs +18 -0
  68. package/dist/pipeline/AuthSource.d.cts +101 -0
  69. package/dist/pipeline/AuthSource.d.ts +101 -0
  70. package/dist/pipeline/AuthSource.js +0 -0
  71. package/dist/pipeline/LlmConfigProviderAuth.cjs +169 -0
  72. package/dist/pipeline/LlmConfigProviderAuth.d.cts +86 -0
  73. package/dist/pipeline/LlmConfigProviderAuth.d.ts +86 -0
  74. package/dist/pipeline/LlmConfigProviderAuth.js +142 -0
  75. package/dist/pipeline/SubscriptionAuthSource.d.cts +165 -3
  76. package/dist/pipeline/SubscriptionAuthSource.d.ts +165 -3
  77. package/dist/pipeline/executeProviderCall.cjs +70 -0
  78. package/dist/pipeline/executeProviderCall.d.cts +149 -0
  79. package/dist/pipeline/executeProviderCall.d.ts +149 -0
  80. package/dist/pipeline/executeProviderCall.js +45 -0
  81. package/dist/pipeline/resolveProviderChain.cjs +47 -0
  82. package/dist/pipeline/resolveProviderChain.d.cts +58 -0
  83. package/dist/pipeline/resolveProviderChain.d.ts +58 -0
  84. package/dist/pipeline/resolveProviderChain.js +22 -0
  85. package/dist/pipeline/resolveSubscriptionChain.cjs +68 -0
  86. package/dist/pipeline/resolveSubscriptionChain.d.cts +68 -0
  87. package/dist/pipeline/resolveSubscriptionChain.d.ts +68 -0
  88. package/dist/pipeline/resolveSubscriptionChain.js +43 -0
  89. package/dist/ports/provider-config-source.cjs +18 -0
  90. package/dist/ports/provider-config-source.d.cts +51 -0
  91. package/dist/ports/provider-config-source.d.ts +51 -0
  92. package/dist/ports/provider-config-source.js +0 -0
  93. package/dist/ports/web-search-backend.cjs +18 -0
  94. package/dist/ports/web-search-backend.d.cts +29 -0
  95. package/dist/ports/web-search-backend.d.ts +29 -0
  96. package/dist/ports/web-search-backend.js +0 -0
  97. package/dist/ports.d.cts +10 -7
  98. package/dist/ports.d.ts +10 -7
  99. package/dist/provider-proxy/ProviderProxy.cjs +4643 -0
  100. package/dist/provider-proxy/ProviderProxy.d.cts +16 -0
  101. package/dist/provider-proxy/ProviderProxy.d.ts +16 -0
  102. package/dist/provider-proxy/ProviderProxy.js +4618 -0
  103. package/dist/provider-proxy/ingress/providerProxyShared.d.cts +5 -2
  104. package/dist/provider-proxy/ingress/providerProxyShared.d.ts +5 -2
  105. package/dist/provider-proxy/types.d.cts +406 -8
  106. package/dist/provider-proxy/types.d.ts +406 -8
  107. package/dist/provider-proxy.cjs +1 -0
  108. package/dist/provider-proxy.d.cts +8 -5
  109. package/dist/provider-proxy.d.ts +8 -5
  110. package/dist/provider-proxy.js +1 -0
  111. package/dist/routeResolver-BrbK6ja9.d.cts +88 -0
  112. package/dist/routeResolver-HE-ZO0fO.d.ts +88 -0
  113. package/dist/transformer/anthropicBetaInject.cjs +51 -0
  114. package/dist/transformer/anthropicBetaInject.d.cts +20 -0
  115. package/dist/transformer/anthropicBetaInject.d.ts +20 -0
  116. package/dist/transformer/anthropicBetaInject.js +25 -0
  117. package/dist/transformer/transformers/AnthropicTransformer.cjs +1017 -0
  118. package/dist/transformer/transformers/AnthropicTransformer.d.cts +148 -0
  119. package/dist/transformer/transformers/AnthropicTransformer.d.ts +148 -0
  120. package/dist/transformer/transformers/AnthropicTransformer.js +990 -0
  121. package/dist/transformer/transformers/ReasoningTransformer.cjs +273 -0
  122. package/dist/transformer/transformers/ReasoningTransformer.d.cts +47 -0
  123. package/dist/transformer/transformers/ReasoningTransformer.d.ts +47 -0
  124. package/dist/transformer/transformers/ReasoningTransformer.js +253 -0
  125. package/dist/transformer/transformers.cjs +3206 -0
  126. package/dist/transformer/transformers.d.cts +100 -0
  127. package/dist/transformer/transformers.d.ts +100 -0
  128. package/dist/transformer/transformers.js +3174 -0
  129. package/dist/transformer.d.cts +8 -31
  130. package/dist/transformer.d.ts +8 -31
  131. package/dist/types-BScIHmPr.d.cts +153 -0
  132. package/dist/types-BScIHmPr.d.ts +153 -0
  133. package/package.json +3 -3
  134. package/dist/SubscriptionAuthSource-Cr4fVEYY.d.cts +0 -264
  135. package/dist/SubscriptionAuthSource-D89zmiSS.d.ts +0 -264
  136. package/dist/index-BTSmc9Sm.d.ts +0 -645
  137. package/dist/index-DXazdTzZ.d.cts +0 -645
  138. package/dist/types-DCzHkhJt.d.ts +0 -467
  139. package/dist/types-DZIQbgp0.d.cts +0 -467
@@ -1,264 +0,0 @@
1
- import { OpenCodeGoTokenConfig, OpenCodeGoScenario, OpenCodeGoModelEntry } from '@omnicross/contracts/subscription-types';
2
- import { AuthStrategy } from './pipeline/SubscriptionAuthStrategy.js';
3
-
4
- /**
5
- * AuthSource — unified outbound-authentication strategy for the provider
6
- * request pipeline.
7
- *
8
- * Phase 2 of the `provider-request-pipeline` OpenSpec change (design D3).
9
- *
10
- * The three consumer paths (the wire-format proxy handler, the host engine
11
- * adapter, TransformerHandler) each authenticate differently:
12
- *
13
- * - provider-key (+ ApiKeyPool failover) — LLM-config provider rows
14
- * - subscription `AuthStrategy` (+ 401 refresh + fallback) — code-cli OAuth
15
- * - OAuth pass-through — SDK forwards its own Bearer
16
- *
17
- * `AuthSource` is the single contract that unifies these. THIS PHASE ONLY
18
- * DEFINES the interface and provides three behavior-preserving WRAPPERS
19
- * (`LlmConfigProviderAuth`, `SubscriptionAuthSource`, `OAuthPassThroughAuth`)
20
- * around the existing logic. NO caller is routed through it yet — the core
21
- * (`executeProviderCall`) is NOT changed to consume `ctx.auth`, and
22
- * the host handler's branch structure is UNCHANGED. Wiring (and
23
- * the `onResult` pool-rotation integration) is Phase 3.
24
- *
25
- * @module pipeline/AuthSource
26
- */
27
- /**
28
- * Hints an `AuthSource` may need to vary header formatting per request.
29
- *
30
- * Mirrors the subscription-side `AuthApplyHints` (which uses optional
31
- * `upstreamUrl` / `resolvedModel`) but with REQUIRED fields, since the
32
- * pipeline always knows both at the point it applies headers. Adapters that
33
- * wrap the looser subscription shape map these across at the boundary.
34
- */
35
- interface AuthApplyHints {
36
- /** Resolved upstream URL the request will be sent to. */
37
- upstreamUrl: string;
38
- /** Resolved model id for the request. */
39
- model: string;
40
- }
41
- /**
42
- * Result of {@link AuthSource.onResult}.
43
- *
44
- * `rebound` is `true` when the auth source rotated to a different credential
45
- * (e.g. ApiKeyPool re-bound the session to a new key after a 429). `newKey`
46
- * carries the freshly-resolved key string when a rotation produced one, so a
47
- * caller MAY retry the same call once with it. Mirrors the
48
- * `{ newKey | null }` contract of `ApiKeyPoolService.reportError` lifted into
49
- * a structured shape.
50
- */
51
- interface AuthResultOutcome {
52
- /** Whether the credential was rotated/re-bound as a result of this status. */
53
- rebound: boolean;
54
- /** The new resolved key when a rotation produced one; omitted otherwise. */
55
- newKey?: string;
56
- }
57
- /**
58
- * A pluggable outbound-authentication source for one provider request.
59
- *
60
- * Implementations OWN exactly the auth concern: which headers carry the
61
- * credential, how to recover from a 401, where the request should be sent
62
- * (when the credential dictates the endpoint), and how to react to a final
63
- * HTTP status (pool rotation / refresh). The pipeline core composes the rest.
64
- */
65
- interface AuthSource {
66
- /**
67
- * Inject the authentication headers for this request, mutating `headers`
68
- * in place. Implementations MAY refresh expiring tokens here.
69
- *
70
- * NOTE (Phase 2 boundary, see report): exactly WHAT this owns vs what the
71
- * ingress assembles (content-type, OpenRouter app headers, proxy auth
72
- * stripping) is intentionally left to the caller this phase. The wrappers
73
- * preserve their source's CURRENT header behavior verbatim.
74
- */
75
- applyHeaders(headers: Record<string, string>, hints: AuthApplyHints): Promise<void> | void;
76
- /**
77
- * Called when the upstream returns 401. Return `true` to ask the caller to
78
- * retry once with freshly-applied headers; `false` to surface the 401.
79
- * Optional — sources without a refresh notion omit it.
80
- */
81
- onUnauthorized?(): Promise<boolean>;
82
- /**
83
- * Resolve the upstream URL the request should target, when the credential
84
- * dictates it (e.g. a subscription profile's per-model endpoint). Returns
85
- * `undefined` when the source does not override the URL (the ingress keeps
86
- * its own URL logic). Optional.
87
- */
88
- resolveUpstreamUrl?(model: string): string | undefined;
89
- /**
90
- * React to a final HTTP status (pool participation seam — design D5).
91
- *
92
- * For the provider-key source this reports the status to the
93
- * `ApiKeyPoolService` (cooldown / disable / re-bind) and returns whether it
94
- * rotated plus any new key. THIS PHASE ONLY: `onResult` is implemented and
95
- * unit-tested in isolation; NO caller invokes it yet. Phase 3 wires it into
96
- * `fetchWithRetry`. Optional.
97
- *
98
- * @param status The final HTTP status, or `null` for non-HTTP failures
99
- * (e.g. network errors). Non-reportable statuses no-op.
100
- */
101
- onResult?(status: number | null): Promise<AuthResultOutcome>;
102
- }
103
-
104
- /**
105
- * SubscriptionAuthSource — `AuthSource` wrapping a subscription `AuthStrategy`.
106
- *
107
- * Phase 2 of the `provider-request-pipeline` OpenSpec change (design D3, task 4.3).
108
- *
109
- * Re-expresses the subscription auth used by `SubscriptionDispatcher` behind
110
- * the unified `AuthSource` contract, delegating to the existing
111
- * `AuthStrategy` so the OAuth refresh / token formatting logic is NOT
112
- * rewritten:
113
- *
114
- * - `applyHeaders` → `stripAuthHeaders(headers)` then
115
- * `authStrategy.applyHeaders(headers, { upstreamUrl, resolvedModel })`,
116
- * wrapped in the same best-effort try/catch as
117
- * `SubscriptionDispatcher.applyHeadersWithRetry` (a thrown
118
- * `applyHeaders` is logged + swallowed, NOT propagated — preserved
119
- * verbatim).
120
- * - `onUnauthorized` → `authStrategy.onUnauthorized()`.
121
- * - `resolveUpstreamUrl` → `profile.resolveUpstreamUrl?.(model)`.
122
- *
123
- * IMPORTANT (Phase 2 scope): this WRAPS the strategy + strip behavior but does
124
- * NOT re-route `SubscriptionDispatcher` through it. The dispatcher's fragile
125
- * 401-refresh + fallback loop is left UNCHANGED (task 4.5 deferred). This
126
- * class is unit-tested in isolation only.
127
- *
128
- * @module pipeline/SubscriptionAuthSource
129
- */
130
-
131
- /**
132
- * Lightweight summary derived from the inbound request body — consumed by a
133
- * profile's `modelMapper` (scenario routing). Structural mirror of
134
- * `provider-proxy/types.ts`'s `SubscriptionRequestSummary`, declared here so
135
- * `SubscriptionAuthProfile.modelMapper` is type-identical WITHOUT a circular
136
- * import back into `provider-proxy/types` (which imports THIS module).
137
- */
138
- interface SubscriptionRequestSummary {
139
- messageCount: number;
140
- estimatedInputTokens: number;
141
- /**
142
- * OPTIONAL bounded per-message match-text slice — kept structurally identical
143
- * to the canonical declaration in `provider-proxy/types.ts` (the two are
144
- * deliberate mirrors, not one shared import). Consumed only by the OpenCodeGo
145
- * keyword matcher in `@omnicross/subscriptions`; core writes, never reads it.
146
- */
147
- matchText?: string[];
148
- }
149
- /**
150
- * The subset of a `SubscriptionDispatchProfile` the subscription paths need.
151
- * Kept structural (not the full profile type) so the wrapper does not pull in
152
- * the whole registry surface. The full `SubscriptionDispatchProfile` (which IS
153
- * what gets passed here) satisfies this shape; the optional `mode` + `modelMapper`
154
- * are read by the built-in `/v1/messages` subscription path (RT2.1) to decide the
155
- * verbatim-vs-transformer shape and to apply opencodego scenario routing.
156
- */
157
- interface SubscriptionAuthProfile {
158
- readonly authStrategy: AuthStrategy;
159
- /** Per-model upstream URL resolver (transformer profiles). Optional for
160
- * pass-through profiles that hard-code their endpoint upstream. The OPTIONAL
161
- * 2nd `config` arg (opencodego `baseUrl` override, D1) is additive — existing
162
- * one-arg callers compile unchanged; mirrors the full
163
- * `SubscriptionDispatchProfile.resolveUpstreamUrl` so the registry profile
164
- * stays assignable. */
165
- readonly resolveUpstreamUrl?: (resolvedModel: string, config?: OpenCodeGoTokenConfig) => string;
166
- /**
167
- * Names of provider-level transformers (registered in `TransformerService`)
168
- * to run on the subscription chain — re-encode Unified → the upstream's wire.
169
- * The full `SubscriptionDispatchProfile` (which IS what gets passed here)
170
- * carries these; exposing them on the narrow structural type lets the
171
- * Responses ingress build the profile's REAL chain (cross-vendor route-to,
172
- * task #29) instead of hard-coding `['openai-response']`. Absent/empty →
173
- * the ingress falls back to its endpoint transformer (codex byte-identity).
174
- */
175
- readonly providerTransformerNames?: readonly string[];
176
- /** Names of model-specific transformers — usually empty. See above. */
177
- readonly modelTransformerNames?: readonly string[];
178
- /**
179
- * OPTIONAL shape-aware provider transformer-name resolver (opencodego zen).
180
- * Type-identical to `SubscriptionDispatchProfile.resolveProviderTransformerNames`
181
- * so the registry profile stays assignable. The built-in `/v1/messages`
182
- * subscription path (Phase 3) consults it via
183
- * `profile.resolveProviderTransformerNames?.(model, route.subscriptionConfig)`
184
- * to pick the right zen chain per resolved shape. `config` is `unknown` (core
185
- * opaque-config discipline — no `@omnicross/subscriptions` import). When ABSENT
186
- * the path reads the static `providerTransformerNames` exactly as today (codex
187
- * byte-identity).
188
- */
189
- readonly resolveProviderTransformerNames?: (model: string, config?: unknown) => readonly string[];
190
- /**
191
- * Pass-through (claude) vs transformer (codex / opencodego / gemini). The
192
- * built-in `/v1/messages` subscription path (RT2.1) reads this for its
193
- * core-local same-format signal (pass-through ⇒ always verbatim relay).
194
- * Optional on the narrow type — partial profiles built by other route-minting
195
- * sites may omit it.
196
- */
197
- readonly mode?: 'pass-through' | 'transformer';
198
- /**
199
- * Optional model placeholder rewriter — only set for OpenCodeGo. Type-identical
200
- * to `SubscriptionDispatchProfile.modelMapper` so the registry profile stays
201
- * assignable. Applied by the built-in `/v1/messages` subscription path BEFORE
202
- * resolving the upstream URL (so scenario-based shape routing picks the right
203
- * Anthropic-shape vs OpenAI-shape upstream).
204
- */
205
- readonly modelMapper?: (sdkModel: string, summary: SubscriptionRequestSummary, config: OpenCodeGoTokenConfig | undefined) => {
206
- resolvedModel: string;
207
- scenario: OpenCodeGoScenario;
208
- };
209
- /**
210
- * Optional fallback resolver — only set for OpenCodeGo. Type-identical to
211
- * `SubscriptionDispatchProfile.nextFallback` so the registry profile stays
212
- * assignable. Read by the built-in `/v1/messages` fallback loop (D6b) to pick
213
- * the next model after an unrecoverable upstream failure; returns `null` when
214
- * exhausted (claude / codex / gemini omit it → no fallback attempted).
215
- */
216
- readonly nextFallback?: (scenario: OpenCodeGoScenario, attempted: readonly string[], config: OpenCodeGoTokenConfig | undefined) => OpenCodeGoModelEntry | null;
217
- /**
218
- * Optional circuit-breaker admission gate for the PRIMARY (mapped) model (D5
219
- * primary-gating). Type-identical to `SubscriptionDispatchProfile.allowModel`.
220
- * Only OpenCodeGo sets it; the core `/v1/messages` loop consults it for the
221
- * primary before its first attempt and jumps to the first admitting
222
- * `nextFallback` candidate when the primary's circuit is open. Absent ⇒ the
223
- * primary is always admitted (claude / codex / gemini — no breaker).
224
- */
225
- readonly allowModel?: (modelId: string) => boolean;
226
- /**
227
- * Optional record-outcome callback (D5 record seam). Type-identical to
228
- * `SubscriptionDispatchProfile.recordModelOutcome`. The core `/v1/messages`
229
- * loop calls `profile.recordModelOutcome?.(model, ok)` THROUGH this optional
230
- * field after each attempt, so `@omnicross/core` gains NO import of
231
- * `@omnicross/subscriptions` (the cross-layer litmus stays 0 — exactly the
232
- * `nextFallback` precedent). `ok: true` on `2xx`; `ok: false` on
233
- * thrown/`5xx`/`429`; a non-429 `4xx` is NEUTRAL (the loop does NOT call it).
234
- * Absent for claude / codex / gemini ⇒ no-op.
235
- */
236
- readonly recordModelOutcome?: (modelId: string, ok: boolean) => void;
237
- }
238
- /**
239
- * Drop auth headers the transformer chain may have set so the `AuthStrategy`
240
- * is the single source of truth for outbound authentication. Byte-identical
241
- * to `SubscriptionDispatcher.stripAuthHeaders`.
242
- */
243
- declare function stripAuthHeaders(headers: Record<string, string>): void;
244
- declare class SubscriptionAuthSource implements AuthSource {
245
- private readonly profile;
246
- constructor(profile: SubscriptionAuthProfile);
247
- /**
248
- * Strip any transformer-set auth headers, then delegate to the bound
249
- * strategy. Mirrors `SubscriptionDispatcher`'s
250
- * `stripAuthHeaders(...)` + `applyHeadersWithRetry(...)` sequence, including
251
- * the best-effort swallow-and-warn around a throwing `applyHeaders`.
252
- *
253
- * The strategy's looser `AuthApplyHints` (optional `upstreamUrl` /
254
- * `resolvedModel`) is fed from the pipeline's required `{ upstreamUrl,
255
- * model }` at the boundary.
256
- */
257
- applyHeaders(headers: Record<string, string>, hints: AuthApplyHints): Promise<void>;
258
- /** Delegate the 401-refresh decision to the bound strategy. */
259
- onUnauthorized(): Promise<boolean>;
260
- /** Resolve the upstream URL from the profile, when it provides one. */
261
- resolveUpstreamUrl(model: string): string | undefined;
262
- }
263
-
264
- export { type AuthSource as A, type SubscriptionAuthProfile as S, SubscriptionAuthSource as a, type SubscriptionRequestSummary as b, stripAuthHeaders as s };