@naturali/sdk 0.319.0 → 0.319.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 +3 -3
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3442,7 +3442,7 @@ var Experts = class {
|
|
|
3442
3442
|
/**
|
|
3443
3443
|
* Create an expert
|
|
3444
3444
|
*
|
|
3445
|
-
* Creates the Expert and its generated agent, case tool and policy, with the caller's own permissions: the caller must be able to create each of them and to grant what the policy grants. A deploy that fails still answers `201`, with `status: failed` and `error` saying why; nothing it created is kept. Check a body with [`POST /v1/projects/{project_id}/experts/validate`](/docs/api/experts/validate-expert) first.
|
|
3445
|
+
* Creates the Expert and its generated agent, case tool and policy, with the caller's own permissions: the caller must be able to create each of them and to grant what the policy grants. A `model`, playbook, tool or policy that does not exist is `400 VALIDATION_FAILED`, each listed in `meta.problems`, and nothing is created. A deploy that fails still answers `201`, with `status: failed` and `error` saying why; nothing it created is kept. Check a body with [`POST /v1/projects/{project_id}/experts/validate`](/docs/api/experts/validate-expert) first.
|
|
3446
3446
|
*/
|
|
3447
3447
|
static createExpert(options) {
|
|
3448
3448
|
return (options.client ?? client).post({
|
|
@@ -3457,7 +3457,7 @@ var Experts = class {
|
|
|
3457
3457
|
/**
|
|
3458
3458
|
* Validate an expert
|
|
3459
3459
|
*
|
|
3460
|
-
* Answers what creating this Expert would be told about its resources, without writing: `valid`, and every problem found. A body this API cannot read is `400`, as on create.
|
|
3460
|
+
* Answers what creating this Expert would be told about its resources, without writing: `valid`, and every problem found, starting with each `model`, playbook, tool or policy that does not exist. A body this API cannot read is `400`, as on create.
|
|
3461
3461
|
*/
|
|
3462
3462
|
static validateExpert(options) {
|
|
3463
3463
|
return (options.client ?? client).post({
|
|
@@ -3494,7 +3494,7 @@ var Experts = class {
|
|
|
3494
3494
|
/**
|
|
3495
3495
|
* Update an expert
|
|
3496
3496
|
*
|
|
3497
|
-
* A field sent replaces the stored one, an array whole; `null` clears an optional field. `name` cannot change. The generated resources are written back as the Expert declares them, with the caller's own permissions; a deploy that fails answers `200` with `status: failed`.
|
|
3497
|
+
* A field sent replaces the stored one, an array whole; `null` clears an optional field. `name` cannot change. The generated resources are written back as the Expert declares them, with the caller's own permissions; a deploy that fails answers `200` with `status: failed`. A `model`, playbook, tool or policy that does not exist is `400 VALIDATION_FAILED`, each listed in `meta.problems`, and nothing is written.
|
|
3498
3498
|
*/
|
|
3499
3499
|
static updateExpert(options) {
|
|
3500
3500
|
return (options.client ?? client).patch({
|
package/dist/index.d.cts
CHANGED
|
@@ -4985,7 +4985,7 @@ type Expert = {
|
|
|
4985
4985
|
};
|
|
4986
4986
|
type ExpertValidationProblem = {
|
|
4987
4987
|
/**
|
|
4988
|
-
* Where in the generated resources
|
|
4988
|
+
* Where the problem is: a body field such as `tool_ids[0]`, or a place in the generated resources.
|
|
4989
4989
|
*/
|
|
4990
4990
|
path?: string;
|
|
4991
4991
|
message?: string;
|
|
@@ -42342,13 +42342,13 @@ export declare class Experts {
|
|
|
42342
42342
|
/**
|
|
42343
42343
|
* Create an expert
|
|
42344
42344
|
*
|
|
42345
|
-
* Creates the Expert and its generated agent, case tool and policy, with the caller's own permissions: the caller must be able to create each of them and to grant what the policy grants. A deploy that fails still answers `201`, with `status: failed` and `error` saying why; nothing it created is kept. Check a body with [`POST /v1/projects/{project_id}/experts/validate`](/docs/api/experts/validate-expert) first.
|
|
42345
|
+
* Creates the Expert and its generated agent, case tool and policy, with the caller's own permissions: the caller must be able to create each of them and to grant what the policy grants. A `model`, playbook, tool or policy that does not exist is `400 VALIDATION_FAILED`, each listed in `meta.problems`, and nothing is created. A deploy that fails still answers `201`, with `status: failed` and `error` saying why; nothing it created is kept. Check a body with [`POST /v1/projects/{project_id}/experts/validate`](/docs/api/experts/validate-expert) first.
|
|
42346
42346
|
*/
|
|
42347
42347
|
static createExpert<ThrowOnError extends boolean = false>(options: Options<CreateExpertData, ThrowOnError>): RequestResult<CreateExpertResponses, CreateExpertErrors, ThrowOnError>;
|
|
42348
42348
|
/**
|
|
42349
42349
|
* Validate an expert
|
|
42350
42350
|
*
|
|
42351
|
-
* Answers what creating this Expert would be told about its resources, without writing: `valid`, and every problem found. A body this API cannot read is `400`, as on create.
|
|
42351
|
+
* Answers what creating this Expert would be told about its resources, without writing: `valid`, and every problem found, starting with each `model`, playbook, tool or policy that does not exist. A body this API cannot read is `400`, as on create.
|
|
42352
42352
|
*/
|
|
42353
42353
|
static validateExpert<ThrowOnError extends boolean = false>(options: Options<ValidateExpertData, ThrowOnError>): RequestResult<ValidateExpertResponses, ValidateExpertErrors, ThrowOnError>;
|
|
42354
42354
|
/**
|
|
@@ -42366,7 +42366,7 @@ export declare class Experts {
|
|
|
42366
42366
|
/**
|
|
42367
42367
|
* Update an expert
|
|
42368
42368
|
*
|
|
42369
|
-
* A field sent replaces the stored one, an array whole; `null` clears an optional field. `name` cannot change. The generated resources are written back as the Expert declares them, with the caller's own permissions; a deploy that fails answers `200` with `status: failed`.
|
|
42369
|
+
* A field sent replaces the stored one, an array whole; `null` clears an optional field. `name` cannot change. The generated resources are written back as the Expert declares them, with the caller's own permissions; a deploy that fails answers `200` with `status: failed`. A `model`, playbook, tool or policy that does not exist is `400 VALIDATION_FAILED`, each listed in `meta.problems`, and nothing is written.
|
|
42370
42370
|
*/
|
|
42371
42371
|
static updateExpert<ThrowOnError extends boolean = false>(options: Options<UpdateExpertData, ThrowOnError>): RequestResult<UpdateExpertResponses, UpdateExpertErrors, ThrowOnError>;
|
|
42372
42372
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -4985,7 +4985,7 @@ type Expert = {
|
|
|
4985
4985
|
};
|
|
4986
4986
|
type ExpertValidationProblem = {
|
|
4987
4987
|
/**
|
|
4988
|
-
* Where in the generated resources
|
|
4988
|
+
* Where the problem is: a body field such as `tool_ids[0]`, or a place in the generated resources.
|
|
4989
4989
|
*/
|
|
4990
4990
|
path?: string;
|
|
4991
4991
|
message?: string;
|
|
@@ -42342,13 +42342,13 @@ export declare class Experts {
|
|
|
42342
42342
|
/**
|
|
42343
42343
|
* Create an expert
|
|
42344
42344
|
*
|
|
42345
|
-
* Creates the Expert and its generated agent, case tool and policy, with the caller's own permissions: the caller must be able to create each of them and to grant what the policy grants. A deploy that fails still answers `201`, with `status: failed` and `error` saying why; nothing it created is kept. Check a body with [`POST /v1/projects/{project_id}/experts/validate`](/docs/api/experts/validate-expert) first.
|
|
42345
|
+
* Creates the Expert and its generated agent, case tool and policy, with the caller's own permissions: the caller must be able to create each of them and to grant what the policy grants. A `model`, playbook, tool or policy that does not exist is `400 VALIDATION_FAILED`, each listed in `meta.problems`, and nothing is created. A deploy that fails still answers `201`, with `status: failed` and `error` saying why; nothing it created is kept. Check a body with [`POST /v1/projects/{project_id}/experts/validate`](/docs/api/experts/validate-expert) first.
|
|
42346
42346
|
*/
|
|
42347
42347
|
static createExpert<ThrowOnError extends boolean = false>(options: Options<CreateExpertData, ThrowOnError>): RequestResult<CreateExpertResponses, CreateExpertErrors, ThrowOnError>;
|
|
42348
42348
|
/**
|
|
42349
42349
|
* Validate an expert
|
|
42350
42350
|
*
|
|
42351
|
-
* Answers what creating this Expert would be told about its resources, without writing: `valid`, and every problem found. A body this API cannot read is `400`, as on create.
|
|
42351
|
+
* Answers what creating this Expert would be told about its resources, without writing: `valid`, and every problem found, starting with each `model`, playbook, tool or policy that does not exist. A body this API cannot read is `400`, as on create.
|
|
42352
42352
|
*/
|
|
42353
42353
|
static validateExpert<ThrowOnError extends boolean = false>(options: Options<ValidateExpertData, ThrowOnError>): RequestResult<ValidateExpertResponses, ValidateExpertErrors, ThrowOnError>;
|
|
42354
42354
|
/**
|
|
@@ -42366,7 +42366,7 @@ export declare class Experts {
|
|
|
42366
42366
|
/**
|
|
42367
42367
|
* Update an expert
|
|
42368
42368
|
*
|
|
42369
|
-
* A field sent replaces the stored one, an array whole; `null` clears an optional field. `name` cannot change. The generated resources are written back as the Expert declares them, with the caller's own permissions; a deploy that fails answers `200` with `status: failed`.
|
|
42369
|
+
* A field sent replaces the stored one, an array whole; `null` clears an optional field. `name` cannot change. The generated resources are written back as the Expert declares them, with the caller's own permissions; a deploy that fails answers `200` with `status: failed`. A `model`, playbook, tool or policy that does not exist is `400 VALIDATION_FAILED`, each listed in `meta.problems`, and nothing is written.
|
|
42370
42370
|
*/
|
|
42371
42371
|
static updateExpert<ThrowOnError extends boolean = false>(options: Options<UpdateExpertData, ThrowOnError>): RequestResult<UpdateExpertResponses, UpdateExpertErrors, ThrowOnError>;
|
|
42372
42372
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3441,7 +3441,7 @@ var Experts = class {
|
|
|
3441
3441
|
/**
|
|
3442
3442
|
* Create an expert
|
|
3443
3443
|
*
|
|
3444
|
-
* Creates the Expert and its generated agent, case tool and policy, with the caller's own permissions: the caller must be able to create each of them and to grant what the policy grants. A deploy that fails still answers `201`, with `status: failed` and `error` saying why; nothing it created is kept. Check a body with [`POST /v1/projects/{project_id}/experts/validate`](/docs/api/experts/validate-expert) first.
|
|
3444
|
+
* Creates the Expert and its generated agent, case tool and policy, with the caller's own permissions: the caller must be able to create each of them and to grant what the policy grants. A `model`, playbook, tool or policy that does not exist is `400 VALIDATION_FAILED`, each listed in `meta.problems`, and nothing is created. A deploy that fails still answers `201`, with `status: failed` and `error` saying why; nothing it created is kept. Check a body with [`POST /v1/projects/{project_id}/experts/validate`](/docs/api/experts/validate-expert) first.
|
|
3445
3445
|
*/
|
|
3446
3446
|
static createExpert(options) {
|
|
3447
3447
|
return (options.client ?? client).post({
|
|
@@ -3456,7 +3456,7 @@ var Experts = class {
|
|
|
3456
3456
|
/**
|
|
3457
3457
|
* Validate an expert
|
|
3458
3458
|
*
|
|
3459
|
-
* Answers what creating this Expert would be told about its resources, without writing: `valid`, and every problem found. A body this API cannot read is `400`, as on create.
|
|
3459
|
+
* Answers what creating this Expert would be told about its resources, without writing: `valid`, and every problem found, starting with each `model`, playbook, tool or policy that does not exist. A body this API cannot read is `400`, as on create.
|
|
3460
3460
|
*/
|
|
3461
3461
|
static validateExpert(options) {
|
|
3462
3462
|
return (options.client ?? client).post({
|
|
@@ -3493,7 +3493,7 @@ var Experts = class {
|
|
|
3493
3493
|
/**
|
|
3494
3494
|
* Update an expert
|
|
3495
3495
|
*
|
|
3496
|
-
* A field sent replaces the stored one, an array whole; `null` clears an optional field. `name` cannot change. The generated resources are written back as the Expert declares them, with the caller's own permissions; a deploy that fails answers `200` with `status: failed`.
|
|
3496
|
+
* A field sent replaces the stored one, an array whole; `null` clears an optional field. `name` cannot change. The generated resources are written back as the Expert declares them, with the caller's own permissions; a deploy that fails answers `200` with `status: failed`. A `model`, playbook, tool or policy that does not exist is `400 VALIDATION_FAILED`, each listed in `meta.problems`, and nothing is written.
|
|
3497
3497
|
*/
|
|
3498
3498
|
static updateExpert(options) {
|
|
3499
3499
|
return (options.client ?? client).patch({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.319.
|
|
3
|
+
"version": "0.319.1",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
41
|
-
"@naturali/api": "0.319.
|
|
41
|
+
"@naturali/api": "0.319.1",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|