@naturali/sdk 0.58.0 → 0.58.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.
- package/dist/index.d.cts +3 -1
- package/dist/index.d.mts +3 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -2569,7 +2569,9 @@ type SessionGeneration = {
|
|
|
2569
2569
|
} | null;
|
|
2570
2570
|
};
|
|
2571
2571
|
/**
|
|
2572
|
-
*
|
|
2572
|
+
* Context forwarded to every `http`/`mcp` tool call made during the session or generation: each entry is sent as an `X-Naturali-Context-<key>` request header, so a per-user credential can reach a tool endpoint without being written into the prompt.
|
|
2573
|
+
*
|
|
2574
|
+
* A key becomes an HTTP header name verbatim — no character is re-cased, so `ocaToken` and `oca_token` are two different keys — and must contain only letters, digits and `!#$%&'*+-.^_`|~`; two keys that differ only in case are rejected, since HTTP folds them into one. To land a value in a header the target already expects (usually `Authorization`), have the tool declare it with a `{{context:<key>}}` reference in its own `headers`, and set the tool's `context_keys` so the value reaches that tool alone.
|
|
2573
2575
|
*
|
|
2574
2576
|
*/
|
|
2575
2577
|
type ToolContext = {
|
package/dist/index.d.mts
CHANGED
|
@@ -2569,7 +2569,9 @@ type SessionGeneration = {
|
|
|
2569
2569
|
} | null;
|
|
2570
2570
|
};
|
|
2571
2571
|
/**
|
|
2572
|
-
*
|
|
2572
|
+
* Context forwarded to every `http`/`mcp` tool call made during the session or generation: each entry is sent as an `X-Naturali-Context-<key>` request header, so a per-user credential can reach a tool endpoint without being written into the prompt.
|
|
2573
|
+
*
|
|
2574
|
+
* A key becomes an HTTP header name verbatim — no character is re-cased, so `ocaToken` and `oca_token` are two different keys — and must contain only letters, digits and `!#$%&'*+-.^_`|~`; two keys that differ only in case are rejected, since HTTP folds them into one. To land a value in a header the target already expects (usually `Authorization`), have the tool declare it with a `{{context:<key>}}` reference in its own `headers`, and set the tool's `context_keys` so the value reaches that tool alone.
|
|
2573
2575
|
*
|
|
2574
2576
|
*/
|
|
2575
2577
|
type ToolContext = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.1",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"tsx": "^4.23.1",
|
|
38
38
|
"typescript": "~6.0.3",
|
|
39
39
|
"vitest": "^4.1.10",
|
|
40
|
-
"@naturali/api": "0.58.
|
|
40
|
+
"@naturali/api": "0.58.1"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"generate": "tsx scripts/generate.ts",
|