@naturali/sdk 0.232.0 → 0.232.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.cjs +2 -0
- package/dist/index.d.cts +8 -1
- package/dist/index.d.mts +8 -1
- package/dist/index.mjs +2 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -6175,6 +6175,8 @@ var Tools = class {
|
|
|
6175
6175
|
*
|
|
6176
6176
|
* A credential scoped to a project the tool is shared with, through an accepted share, calls it in that project: the calling project's guardrails adjudicate it, it is metered there with `publisher_project_id`, and the tool receives the calling project as the `calling_project_id` tool context key.
|
|
6177
6177
|
*
|
|
6178
|
+
* `actor_id` runs the call for an actor without a session or a generation, such as a scheduled sync reading each user's own data through their OAuth connection.
|
|
6179
|
+
*
|
|
6178
6180
|
*/
|
|
6179
6181
|
static callTool(options) {
|
|
6180
6182
|
return (options.client ?? client).post({
|
package/dist/index.d.cts
CHANGED
|
@@ -9499,12 +9499,17 @@ type CallToolRequest = {
|
|
|
9499
9499
|
};
|
|
9500
9500
|
/**
|
|
9501
9501
|
* Key/value context for this call, forwarded to the tool as `X-Naturali-Context-<key>` request headers and resolving any `{{context:<key>}}` token in the tool's `execute.headers`, `mcp.headers` or `preset_parameters`. Narrowed by the tool's `context_keys` allowlist when it sets one.
|
|
9502
|
-
*
|
|
9502
|
+
* The reserved keys `session_id`, `actor_id` and `actor_external_id` are dropped from this bag (in any casing) rather than forwarded, so a downstream tool can still trust that a context header naming one is server-derived; `actor_id` and `actor_external_id` are stamped only from the `actor_id` field. Every other key becomes an HTTP header name and must match that grammar, or the call fails with `INVALID_TOOL_CONTEXT_KEY`.
|
|
9503
9503
|
*
|
|
9504
9504
|
*/
|
|
9505
9505
|
tool_context?: {
|
|
9506
9506
|
[key: string]: string;
|
|
9507
9507
|
};
|
|
9508
|
+
/**
|
|
9509
|
+
* Runs the call for this actor, as a session for the actor would: an `http` tool with `auth.type: oauth_connection` sends the actor's connection token, and the tool receives `actor_id` and `actor_external_id` as tool context keys. The actor must belong to the calling project, or the call fails with `400 ACTOR_NOT_FOUND`; using its connection still needs `oauth-connections:UseOauthConnection`.
|
|
9510
|
+
*
|
|
9511
|
+
*/
|
|
9512
|
+
actor_id?: string;
|
|
9508
9513
|
};
|
|
9509
9514
|
type Trace = {
|
|
9510
9515
|
/**
|
|
@@ -38004,6 +38009,8 @@ export declare class Tools {
|
|
|
38004
38009
|
*
|
|
38005
38010
|
* A credential scoped to a project the tool is shared with, through an accepted share, calls it in that project: the calling project's guardrails adjudicate it, it is metered there with `publisher_project_id`, and the tool receives the calling project as the `calling_project_id` tool context key.
|
|
38006
38011
|
*
|
|
38012
|
+
* `actor_id` runs the call for an actor without a session or a generation, such as a scheduled sync reading each user's own data through their OAuth connection.
|
|
38013
|
+
*
|
|
38007
38014
|
*/
|
|
38008
38015
|
static callTool<ThrowOnError extends boolean = false>(options: Options<CallToolData, ThrowOnError>): RequestResult<CallToolResponses, CallToolErrors, ThrowOnError>;
|
|
38009
38016
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -9499,12 +9499,17 @@ type CallToolRequest = {
|
|
|
9499
9499
|
};
|
|
9500
9500
|
/**
|
|
9501
9501
|
* Key/value context for this call, forwarded to the tool as `X-Naturali-Context-<key>` request headers and resolving any `{{context:<key>}}` token in the tool's `execute.headers`, `mcp.headers` or `preset_parameters`. Narrowed by the tool's `context_keys` allowlist when it sets one.
|
|
9502
|
-
*
|
|
9502
|
+
* The reserved keys `session_id`, `actor_id` and `actor_external_id` are dropped from this bag (in any casing) rather than forwarded, so a downstream tool can still trust that a context header naming one is server-derived; `actor_id` and `actor_external_id` are stamped only from the `actor_id` field. Every other key becomes an HTTP header name and must match that grammar, or the call fails with `INVALID_TOOL_CONTEXT_KEY`.
|
|
9503
9503
|
*
|
|
9504
9504
|
*/
|
|
9505
9505
|
tool_context?: {
|
|
9506
9506
|
[key: string]: string;
|
|
9507
9507
|
};
|
|
9508
|
+
/**
|
|
9509
|
+
* Runs the call for this actor, as a session for the actor would: an `http` tool with `auth.type: oauth_connection` sends the actor's connection token, and the tool receives `actor_id` and `actor_external_id` as tool context keys. The actor must belong to the calling project, or the call fails with `400 ACTOR_NOT_FOUND`; using its connection still needs `oauth-connections:UseOauthConnection`.
|
|
9510
|
+
*
|
|
9511
|
+
*/
|
|
9512
|
+
actor_id?: string;
|
|
9508
9513
|
};
|
|
9509
9514
|
type Trace = {
|
|
9510
9515
|
/**
|
|
@@ -38004,6 +38009,8 @@ export declare class Tools {
|
|
|
38004
38009
|
*
|
|
38005
38010
|
* A credential scoped to a project the tool is shared with, through an accepted share, calls it in that project: the calling project's guardrails adjudicate it, it is metered there with `publisher_project_id`, and the tool receives the calling project as the `calling_project_id` tool context key.
|
|
38006
38011
|
*
|
|
38012
|
+
* `actor_id` runs the call for an actor without a session or a generation, such as a scheduled sync reading each user's own data through their OAuth connection.
|
|
38013
|
+
*
|
|
38007
38014
|
*/
|
|
38008
38015
|
static callTool<ThrowOnError extends boolean = false>(options: Options<CallToolData, ThrowOnError>): RequestResult<CallToolResponses, CallToolErrors, ThrowOnError>;
|
|
38009
38016
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -6174,6 +6174,8 @@ var Tools = class {
|
|
|
6174
6174
|
*
|
|
6175
6175
|
* A credential scoped to a project the tool is shared with, through an accepted share, calls it in that project: the calling project's guardrails adjudicate it, it is metered there with `publisher_project_id`, and the tool receives the calling project as the `calling_project_id` tool context key.
|
|
6176
6176
|
*
|
|
6177
|
+
* `actor_id` runs the call for an actor without a session or a generation, such as a scheduled sync reading each user's own data through their OAuth connection.
|
|
6178
|
+
*
|
|
6177
6179
|
*/
|
|
6178
6180
|
static callTool(options) {
|
|
6179
6181
|
return (options.client ?? client).post({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.232.
|
|
3
|
+
"version": "0.232.1",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
41
|
-
"@naturali/api": "0.232.
|
|
42
|
-
"@ttoss/openapi-codegen": "^0.10.
|
|
41
|
+
"@naturali/api": "0.232.1",
|
|
42
|
+
"@ttoss/openapi-codegen": "^0.10.1",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|
|
45
45
|
"tsx": "^4.23.13",
|