@naturali/sdk 0.63.0 → 0.65.0
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 +3 -3
- package/dist/index.d.cts +5 -21
- package/dist/index.d.mts +5 -21
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -993,7 +993,7 @@ var Agents = class {
|
|
|
993
993
|
/**
|
|
994
994
|
* Update an agent
|
|
995
995
|
*
|
|
996
|
-
* Change the bound provider, name, model, instructions, sampling/step config, attached tools (tool_bindings/tool_choice/step_rules), the structured-output schema (output_schema)
|
|
996
|
+
* Change the bound provider, name, model, instructions, sampling/step config, attached tools (tool_bindings/tool_choice/step_rules), or the structured-output schema (output_schema). At least one field is required.
|
|
997
997
|
*
|
|
998
998
|
*/
|
|
999
999
|
static updateAgent(options) {
|
|
@@ -1909,7 +1909,7 @@ var Providers = class {
|
|
|
1909
1909
|
/**
|
|
1910
1910
|
* Update a provider
|
|
1911
1911
|
*
|
|
1912
|
-
* Change the model, name or base URL, rotate the credentials (api_key)
|
|
1912
|
+
* Change the model, name or base URL, or rotate the credentials (api_key). At least one field is required.
|
|
1913
1913
|
*
|
|
1914
1914
|
*/
|
|
1915
1915
|
static updateProvider(options) {
|
|
@@ -2155,7 +2155,7 @@ var Tools = class {
|
|
|
2155
2155
|
/**
|
|
2156
2156
|
* Update a tool
|
|
2157
2157
|
*
|
|
2158
|
-
* Change the name, description, parameters, type-specific config (incl. rotating auth headers)
|
|
2158
|
+
* Change the name, description, parameters, or type-specific config (incl. rotating auth headers). The tool `type` is immutable. At least one field is required.
|
|
2159
2159
|
*
|
|
2160
2160
|
*/
|
|
2161
2161
|
static updateTool(options) {
|
package/dist/index.d.cts
CHANGED
|
@@ -366,11 +366,6 @@ type Actor = {
|
|
|
366
366
|
*
|
|
367
367
|
*/
|
|
368
368
|
instructions: string | null;
|
|
369
|
-
/**
|
|
370
|
-
* Whether a memory container is linked, carrying what the agent remembers about this actor across sessions. The container's own id is not exposed — naturali fronts no memory resource that could resolve it.
|
|
371
|
-
*
|
|
372
|
-
*/
|
|
373
|
-
has_memory: boolean;
|
|
374
369
|
created_at: Date | null;
|
|
375
370
|
updated_at: Date | null;
|
|
376
371
|
};
|
|
@@ -389,11 +384,6 @@ type ActorCreate = {
|
|
|
389
384
|
*
|
|
390
385
|
*/
|
|
391
386
|
instructions?: string;
|
|
392
|
-
/**
|
|
393
|
-
* Give the actor its own memory container, so an agent remembers it across sessions. Applied on creation only — a call that returns an existing actor leaves its memory as it was.
|
|
394
|
-
*
|
|
395
|
-
*/
|
|
396
|
-
memory?: boolean;
|
|
397
387
|
};
|
|
398
388
|
/**
|
|
399
389
|
* Only the fields present are changed.
|
|
@@ -512,7 +502,6 @@ type Agent = {
|
|
|
512
502
|
*
|
|
513
503
|
*/
|
|
514
504
|
trace_content_mode: 'full' | 'none' | null;
|
|
515
|
-
status: 'active' | 'disabled';
|
|
516
505
|
created_at: Date;
|
|
517
506
|
updated_at: Date;
|
|
518
507
|
};
|
|
@@ -594,7 +583,6 @@ type AgentUpdate = {
|
|
|
594
583
|
*
|
|
595
584
|
*/
|
|
596
585
|
trace_content_mode?: 'full' | 'none' | null;
|
|
597
|
-
status?: 'active' | 'disabled';
|
|
598
586
|
};
|
|
599
587
|
type AgentList = {
|
|
600
588
|
data: Array<Agent>;
|
|
@@ -2357,13 +2345,12 @@ type Provider = {
|
|
|
2357
2345
|
provider: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'gateway' | 'custom';
|
|
2358
2346
|
default_model: string;
|
|
2359
2347
|
kind: 'managed' | 'byok';
|
|
2360
|
-
status: 'active' | 'disabled';
|
|
2361
2348
|
/**
|
|
2362
2349
|
* Whether credentials are on file (their value is never returned).
|
|
2363
2350
|
*/
|
|
2364
2351
|
has_secret: boolean;
|
|
2365
2352
|
/**
|
|
2366
|
-
* Custom base URL, when set.
|
|
2353
|
+
* Custom base URL, when set.
|
|
2367
2354
|
*/
|
|
2368
2355
|
base_url?: string | null;
|
|
2369
2356
|
created_at: Date;
|
|
@@ -2414,7 +2401,6 @@ type ProviderUpdate = {
|
|
|
2414
2401
|
* Rotate the stored credentials in place.
|
|
2415
2402
|
*/
|
|
2416
2403
|
api_key?: string;
|
|
2417
|
-
status?: 'active' | 'disabled';
|
|
2418
2404
|
};
|
|
2419
2405
|
type ProviderList = {
|
|
2420
2406
|
data: Array<Provider>;
|
|
@@ -2897,7 +2883,6 @@ type Tool = {
|
|
|
2897
2883
|
* Whether auth headers are on file (their values are never returned).
|
|
2898
2884
|
*/
|
|
2899
2885
|
has_headers: boolean;
|
|
2900
|
-
status: 'active' | 'disabled';
|
|
2901
2886
|
created_at: Date;
|
|
2902
2887
|
updated_at: Date;
|
|
2903
2888
|
};
|
|
@@ -2968,7 +2953,6 @@ type ToolUpdate = {
|
|
|
2968
2953
|
* Replace the allowlist of `tool_context` keys forwarded to this tool. `null` clears it (every key is forwarded again) — unlike omitting the field, which leaves the current allowlist alone.
|
|
2969
2954
|
*/
|
|
2970
2955
|
context_keys?: Array<string> | null;
|
|
2971
|
-
status?: 'active' | 'disabled';
|
|
2972
2956
|
};
|
|
2973
2957
|
type ToolList = {
|
|
2974
2958
|
data: Array<Tool>;
|
|
@@ -7222,7 +7206,7 @@ type GetProviderErrors = {
|
|
|
7222
7206
|
type GetProviderError = GetProviderErrors[keyof GetProviderErrors];
|
|
7223
7207
|
type GetProviderResponses = {
|
|
7224
7208
|
/**
|
|
7225
|
-
* Provider details
|
|
7209
|
+
* Provider details.
|
|
7226
7210
|
*/
|
|
7227
7211
|
200: Provider;
|
|
7228
7212
|
};
|
|
@@ -9165,7 +9149,7 @@ declare class Agents {
|
|
|
9165
9149
|
/**
|
|
9166
9150
|
* Update an agent
|
|
9167
9151
|
*
|
|
9168
|
-
* Change the bound provider, name, model, instructions, sampling/step config, attached tools (tool_bindings/tool_choice/step_rules), the structured-output schema (output_schema)
|
|
9152
|
+
* Change the bound provider, name, model, instructions, sampling/step config, attached tools (tool_bindings/tool_choice/step_rules), or the structured-output schema (output_schema). At least one field is required.
|
|
9169
9153
|
*
|
|
9170
9154
|
*/
|
|
9171
9155
|
static updateAgent<ThrowOnError extends boolean = false>(options: Options<UpdateAgentData, ThrowOnError>): RequestResult<UpdateAgentResponses, UpdateAgentErrors, ThrowOnError>;
|
|
@@ -9651,7 +9635,7 @@ declare class Providers {
|
|
|
9651
9635
|
/**
|
|
9652
9636
|
* Update a provider
|
|
9653
9637
|
*
|
|
9654
|
-
* Change the model, name or base URL, rotate the credentials (api_key)
|
|
9638
|
+
* Change the model, name or base URL, or rotate the credentials (api_key). At least one field is required.
|
|
9655
9639
|
*
|
|
9656
9640
|
*/
|
|
9657
9641
|
static updateProvider<ThrowOnError extends boolean = false>(options: Options<UpdateProviderData, ThrowOnError>): RequestResult<UpdateProviderResponses, UpdateProviderErrors, ThrowOnError>;
|
|
@@ -9780,7 +9764,7 @@ declare class Tools {
|
|
|
9780
9764
|
/**
|
|
9781
9765
|
* Update a tool
|
|
9782
9766
|
*
|
|
9783
|
-
* Change the name, description, parameters, type-specific config (incl. rotating auth headers)
|
|
9767
|
+
* Change the name, description, parameters, or type-specific config (incl. rotating auth headers). The tool `type` is immutable. At least one field is required.
|
|
9784
9768
|
*
|
|
9785
9769
|
*/
|
|
9786
9770
|
static updateTool<ThrowOnError extends boolean = false>(options: Options<UpdateToolData, ThrowOnError>): RequestResult<UpdateToolResponses, UpdateToolErrors, ThrowOnError>;
|
package/dist/index.d.mts
CHANGED
|
@@ -366,11 +366,6 @@ type Actor = {
|
|
|
366
366
|
*
|
|
367
367
|
*/
|
|
368
368
|
instructions: string | null;
|
|
369
|
-
/**
|
|
370
|
-
* Whether a memory container is linked, carrying what the agent remembers about this actor across sessions. The container's own id is not exposed — naturali fronts no memory resource that could resolve it.
|
|
371
|
-
*
|
|
372
|
-
*/
|
|
373
|
-
has_memory: boolean;
|
|
374
369
|
created_at: Date | null;
|
|
375
370
|
updated_at: Date | null;
|
|
376
371
|
};
|
|
@@ -389,11 +384,6 @@ type ActorCreate = {
|
|
|
389
384
|
*
|
|
390
385
|
*/
|
|
391
386
|
instructions?: string;
|
|
392
|
-
/**
|
|
393
|
-
* Give the actor its own memory container, so an agent remembers it across sessions. Applied on creation only — a call that returns an existing actor leaves its memory as it was.
|
|
394
|
-
*
|
|
395
|
-
*/
|
|
396
|
-
memory?: boolean;
|
|
397
387
|
};
|
|
398
388
|
/**
|
|
399
389
|
* Only the fields present are changed.
|
|
@@ -512,7 +502,6 @@ type Agent = {
|
|
|
512
502
|
*
|
|
513
503
|
*/
|
|
514
504
|
trace_content_mode: 'full' | 'none' | null;
|
|
515
|
-
status: 'active' | 'disabled';
|
|
516
505
|
created_at: Date;
|
|
517
506
|
updated_at: Date;
|
|
518
507
|
};
|
|
@@ -594,7 +583,6 @@ type AgentUpdate = {
|
|
|
594
583
|
*
|
|
595
584
|
*/
|
|
596
585
|
trace_content_mode?: 'full' | 'none' | null;
|
|
597
|
-
status?: 'active' | 'disabled';
|
|
598
586
|
};
|
|
599
587
|
type AgentList = {
|
|
600
588
|
data: Array<Agent>;
|
|
@@ -2357,13 +2345,12 @@ type Provider = {
|
|
|
2357
2345
|
provider: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'gateway' | 'custom';
|
|
2358
2346
|
default_model: string;
|
|
2359
2347
|
kind: 'managed' | 'byok';
|
|
2360
|
-
status: 'active' | 'disabled';
|
|
2361
2348
|
/**
|
|
2362
2349
|
* Whether credentials are on file (their value is never returned).
|
|
2363
2350
|
*/
|
|
2364
2351
|
has_secret: boolean;
|
|
2365
2352
|
/**
|
|
2366
|
-
* Custom base URL, when set.
|
|
2353
|
+
* Custom base URL, when set.
|
|
2367
2354
|
*/
|
|
2368
2355
|
base_url?: string | null;
|
|
2369
2356
|
created_at: Date;
|
|
@@ -2414,7 +2401,6 @@ type ProviderUpdate = {
|
|
|
2414
2401
|
* Rotate the stored credentials in place.
|
|
2415
2402
|
*/
|
|
2416
2403
|
api_key?: string;
|
|
2417
|
-
status?: 'active' | 'disabled';
|
|
2418
2404
|
};
|
|
2419
2405
|
type ProviderList = {
|
|
2420
2406
|
data: Array<Provider>;
|
|
@@ -2897,7 +2883,6 @@ type Tool = {
|
|
|
2897
2883
|
* Whether auth headers are on file (their values are never returned).
|
|
2898
2884
|
*/
|
|
2899
2885
|
has_headers: boolean;
|
|
2900
|
-
status: 'active' | 'disabled';
|
|
2901
2886
|
created_at: Date;
|
|
2902
2887
|
updated_at: Date;
|
|
2903
2888
|
};
|
|
@@ -2968,7 +2953,6 @@ type ToolUpdate = {
|
|
|
2968
2953
|
* Replace the allowlist of `tool_context` keys forwarded to this tool. `null` clears it (every key is forwarded again) — unlike omitting the field, which leaves the current allowlist alone.
|
|
2969
2954
|
*/
|
|
2970
2955
|
context_keys?: Array<string> | null;
|
|
2971
|
-
status?: 'active' | 'disabled';
|
|
2972
2956
|
};
|
|
2973
2957
|
type ToolList = {
|
|
2974
2958
|
data: Array<Tool>;
|
|
@@ -7222,7 +7206,7 @@ type GetProviderErrors = {
|
|
|
7222
7206
|
type GetProviderError = GetProviderErrors[keyof GetProviderErrors];
|
|
7223
7207
|
type GetProviderResponses = {
|
|
7224
7208
|
/**
|
|
7225
|
-
* Provider details
|
|
7209
|
+
* Provider details.
|
|
7226
7210
|
*/
|
|
7227
7211
|
200: Provider;
|
|
7228
7212
|
};
|
|
@@ -9165,7 +9149,7 @@ declare class Agents {
|
|
|
9165
9149
|
/**
|
|
9166
9150
|
* Update an agent
|
|
9167
9151
|
*
|
|
9168
|
-
* Change the bound provider, name, model, instructions, sampling/step config, attached tools (tool_bindings/tool_choice/step_rules), the structured-output schema (output_schema)
|
|
9152
|
+
* Change the bound provider, name, model, instructions, sampling/step config, attached tools (tool_bindings/tool_choice/step_rules), or the structured-output schema (output_schema). At least one field is required.
|
|
9169
9153
|
*
|
|
9170
9154
|
*/
|
|
9171
9155
|
static updateAgent<ThrowOnError extends boolean = false>(options: Options<UpdateAgentData, ThrowOnError>): RequestResult<UpdateAgentResponses, UpdateAgentErrors, ThrowOnError>;
|
|
@@ -9651,7 +9635,7 @@ declare class Providers {
|
|
|
9651
9635
|
/**
|
|
9652
9636
|
* Update a provider
|
|
9653
9637
|
*
|
|
9654
|
-
* Change the model, name or base URL, rotate the credentials (api_key)
|
|
9638
|
+
* Change the model, name or base URL, or rotate the credentials (api_key). At least one field is required.
|
|
9655
9639
|
*
|
|
9656
9640
|
*/
|
|
9657
9641
|
static updateProvider<ThrowOnError extends boolean = false>(options: Options<UpdateProviderData, ThrowOnError>): RequestResult<UpdateProviderResponses, UpdateProviderErrors, ThrowOnError>;
|
|
@@ -9780,7 +9764,7 @@ declare class Tools {
|
|
|
9780
9764
|
/**
|
|
9781
9765
|
* Update a tool
|
|
9782
9766
|
*
|
|
9783
|
-
* Change the name, description, parameters, type-specific config (incl. rotating auth headers)
|
|
9767
|
+
* Change the name, description, parameters, or type-specific config (incl. rotating auth headers). The tool `type` is immutable. At least one field is required.
|
|
9784
9768
|
*
|
|
9785
9769
|
*/
|
|
9786
9770
|
static updateTool<ThrowOnError extends boolean = false>(options: Options<UpdateToolData, ThrowOnError>): RequestResult<UpdateToolResponses, UpdateToolErrors, ThrowOnError>;
|
package/dist/index.mjs
CHANGED
|
@@ -992,7 +992,7 @@ var Agents = class {
|
|
|
992
992
|
/**
|
|
993
993
|
* Update an agent
|
|
994
994
|
*
|
|
995
|
-
* Change the bound provider, name, model, instructions, sampling/step config, attached tools (tool_bindings/tool_choice/step_rules), the structured-output schema (output_schema)
|
|
995
|
+
* Change the bound provider, name, model, instructions, sampling/step config, attached tools (tool_bindings/tool_choice/step_rules), or the structured-output schema (output_schema). At least one field is required.
|
|
996
996
|
*
|
|
997
997
|
*/
|
|
998
998
|
static updateAgent(options) {
|
|
@@ -1908,7 +1908,7 @@ var Providers = class {
|
|
|
1908
1908
|
/**
|
|
1909
1909
|
* Update a provider
|
|
1910
1910
|
*
|
|
1911
|
-
* Change the model, name or base URL, rotate the credentials (api_key)
|
|
1911
|
+
* Change the model, name or base URL, or rotate the credentials (api_key). At least one field is required.
|
|
1912
1912
|
*
|
|
1913
1913
|
*/
|
|
1914
1914
|
static updateProvider(options) {
|
|
@@ -2154,7 +2154,7 @@ var Tools = class {
|
|
|
2154
2154
|
/**
|
|
2155
2155
|
* Update a tool
|
|
2156
2156
|
*
|
|
2157
|
-
* Change the name, description, parameters, type-specific config (incl. rotating auth headers)
|
|
2157
|
+
* Change the name, description, parameters, or type-specific config (incl. rotating auth headers). The tool `type` is immutable. At least one field is required.
|
|
2158
2158
|
*
|
|
2159
2159
|
*/
|
|
2160
2160
|
static updateTool(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.65.0",
|
|
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.
|
|
40
|
+
"@naturali/api": "0.65.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"generate": "tsx scripts/generate.ts",
|