@naturali/sdk 0.294.0 → 0.294.2
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 +12 -1
- package/dist/index.d.cts +189 -10
- package/dist/index.d.mts +189 -10
- package/dist/index.mjs +12 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3163,6 +3163,17 @@ var Evaluations = class {
|
|
|
3163
3163
|
});
|
|
3164
3164
|
}
|
|
3165
3165
|
/**
|
|
3166
|
+
* Check an eval's probes
|
|
3167
|
+
*
|
|
3168
|
+
* Grades every probe of the eval's `criteria` with the criterion's scorers, as a run does before its first item, and reports each one without creating a run. A probe holds when the criterion's verdict on it (every scorer it binds passed) is the `passed` it declares; the report passes when every probe holds. The scorers run under the authority a run of the eval holds and are metered as a run's. An eval without `criteria` reports no probes.
|
|
3169
|
+
*/
|
|
3170
|
+
static checkEvalProbes(options) {
|
|
3171
|
+
return (options.client ?? client).post({
|
|
3172
|
+
url: "/v1/projects/{project_id}/evals/{eval_id}/probes",
|
|
3173
|
+
...options
|
|
3174
|
+
});
|
|
3175
|
+
}
|
|
3176
|
+
/**
|
|
3166
3177
|
* Get an eval run
|
|
3167
3178
|
*
|
|
3168
3179
|
* Returns a run's status, counts, and aggregate scores
|
|
@@ -6089,7 +6100,7 @@ var Tasks = class {
|
|
|
6089
6100
|
/**
|
|
6090
6101
|
* Update a task
|
|
6091
6102
|
*
|
|
6092
|
-
* Updates a task's payload, title, or
|
|
6103
|
+
* Updates a task's payload, title, assignee or metadata. `state` is never directly writable — move it with a transition; sending a `state` field is rejected as an unknown field (`VALIDATION_FAILED`). `payload` is shallow-merged over the existing payload (PATCH semantics): keys the request omits are preserved. The payload is caller-owned; the automation result lives in the read-only `last_result` field, which no patch can reach. The merged payload is validated against the workflow's `payload_schema`. `metadata`, unlike `payload`, replaces the stored bag whole.
|
|
6093
6104
|
*/
|
|
6094
6105
|
static updateTask(options) {
|
|
6095
6106
|
return (options.client ?? client).patch({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.294.
|
|
3
|
+
"version": "0.294.2",
|
|
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.294.
|
|
41
|
+
"@naturali/api": "0.294.2",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|