@theokit/sdk 4.10.0 → 4.10.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.
@@ -8,4 +8,4 @@
8
8
  *
9
9
  * @public
10
10
  */
11
- export type { ApiMode, AuthType, ProviderProfile, } from "../../types/provider-profile.js";
11
+ export type { ApiMode, AuthType, ProviderProfile, ProviderTransform, ProviderTransformContext, } from "../../types/provider-profile.js";
@@ -34,7 +34,12 @@ export interface ProviderTransformContext {
34
34
  * @public
35
35
  */
36
36
  export interface ProviderTransform {
37
- /** Dynamic per-request headers, merged OVER the profile's static `extraHeaders`. */
37
+ /**
38
+ * Dynamic per-request headers, merged OVER the profile's static `extraHeaders`, and spread AFTER the
39
+ * transport's base `authorization`/`content-type`. A provider that owns its auth MAY intentionally set
40
+ * `authorization` here to override the resolved bearer — but a stray `authorization`/`content-type` key
41
+ * will silently replace the base header, so return only the headers you mean to add.
42
+ */
38
43
  headers?(ctx: ProviderTransformContext): Record<string, string>;
39
44
  /** A fetch to use for this provider's requests (refresh-aware / fully provider-controlled). */
40
45
  fetch?(ctx: ProviderTransformContext): typeof fetch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theokit/sdk",
3
- "version": "4.10.0",
3
+ "version": "4.10.1",
4
4
  "description": "TypeScript SDK for the Theo agent harness — same surface, local or cloud.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/usetheodev/theokit-sdk#readme",