@naturali/cli 0.272.0 → 0.273.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.mjs +11 -11
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region package.json
|
|
20
|
-
var version = "0.
|
|
20
|
+
var version = "0.273.1";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -5280,7 +5280,7 @@ var Projects = class {
|
|
|
5280
5280
|
*
|
|
5281
5281
|
* Stops everything the project runs, with one call. From the moment it answers, nothing new starts: generations, tool calls, orchestration runs, eval runs and trigger fires in the project respond `409` with `PROJECT_PAUSED`, and so does resuming a single run or task the pause holds. A channel keeps receiving messages and answers each with a neutral "can't reply right now" line.
|
|
5282
5282
|
* What is already in motion is parked, not discarded: live orchestration runs pause at their next checkpoint, open tasks stop dispatching, schedule triggers stop firing and queued eval items wait. A generation already running finishes. Reads and configuration changes keep working.
|
|
5283
|
-
* Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `
|
|
5283
|
+
* Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `projects.paused`. Requires the `admin` role.
|
|
5284
5284
|
*
|
|
5285
5285
|
*/
|
|
5286
5286
|
static pauseProject(options) {
|
|
@@ -5296,7 +5296,7 @@ var Projects = class {
|
|
|
5296
5296
|
/**
|
|
5297
5297
|
* Resume a project
|
|
5298
5298
|
*
|
|
5299
|
-
* Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `
|
|
5299
|
+
* Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `projects.resumed`. Requires the `admin` role.
|
|
5300
5300
|
*
|
|
5301
5301
|
*/
|
|
5302
5302
|
static resumeProject(options) {
|
|
@@ -5491,7 +5491,7 @@ var Projects = class {
|
|
|
5491
5491
|
/**
|
|
5492
5492
|
* List usage thresholds
|
|
5493
5493
|
*
|
|
5494
|
-
* The spend alerts this project has set. A threshold fires the
|
|
5494
|
+
* The spend alerts this project has set. A threshold fires the usage_thresholds.crossed event when the project's windowed usage crosses it, so one is only useful alongside a webhook subscribed to that event.
|
|
5495
5495
|
*
|
|
5496
5496
|
*/
|
|
5497
5497
|
static listProjectUsageThresholds(options) {
|
|
@@ -5503,7 +5503,7 @@ var Projects = class {
|
|
|
5503
5503
|
/**
|
|
5504
5504
|
* Set a usage threshold
|
|
5505
5505
|
*
|
|
5506
|
-
* Creates an alert on this project's windowed usage. Crossing it fires
|
|
5506
|
+
* Creates an alert on this project's windowed usage. Crossing it fires usage_thresholds.crossed once per window — a calendar_month threshold fires at most once in a month, and a rolling_24h one re-arms when the windowed total falls back below 90% of the threshold, so a total hovering at the line does not alert repeatedly.
|
|
5507
5507
|
*
|
|
5508
5508
|
* Requires the admin role: an alerting rule belongs to the account that pays, not to one member.
|
|
5509
5509
|
*
|
|
@@ -22716,7 +22716,7 @@ const routes = {
|
|
|
22716
22716
|
"pause-project": {
|
|
22717
22717
|
serviceClass: "Projects",
|
|
22718
22718
|
operationId: "pauseProject",
|
|
22719
|
-
description: "Stops everything the project runs, with one call. From the moment it answers, nothing new starts: generations, tool calls, orchestration runs, eval runs and trigger fires in the project respond `409` with `PROJECT_PAUSED`, and so does resuming a single run or task the pause holds. A channel keeps receiving messages and answers each with a neutral \"can't reply right now\" line. What is already in motion is parked, not discarded: live orchestration runs pause at their next checkpoint, open tasks stop dispatching, schedule triggers stop firing and queued eval items wait. A generation already running finishes. Reads and configuration changes keep working. Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `
|
|
22719
|
+
description: "Stops everything the project runs, with one call. From the moment it answers, nothing new starts: generations, tool calls, orchestration runs, eval runs and trigger fires in the project respond `409` with `PROJECT_PAUSED`, and so does resuming a single run or task the pause holds. A channel keeps receiving messages and answers each with a neutral \"can't reply right now\" line. What is already in motion is parked, not discarded: live orchestration runs pause at their next checkpoint, open tasks stop dispatching, schedule triggers stop firing and queued eval items wait. A generation already running finishes. Reads and configuration changes keep working. Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `projects.paused`. Requires the `admin` role.",
|
|
22720
22720
|
moduleDocsUrl: "https://naturali.ai/docs/modules/projects",
|
|
22721
22721
|
httpMethod: "post",
|
|
22722
22722
|
pathParams: ["project_id"],
|
|
@@ -22740,7 +22740,7 @@ const routes = {
|
|
|
22740
22740
|
"resume-project": {
|
|
22741
22741
|
serviceClass: "Projects",
|
|
22742
22742
|
operationId: "resumeProject",
|
|
22743
|
-
description: "Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `
|
|
22743
|
+
description: "Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `projects.resumed`. Requires the `admin` role.",
|
|
22744
22744
|
moduleDocsUrl: "https://naturali.ai/docs/modules/projects",
|
|
22745
22745
|
httpMethod: "post",
|
|
22746
22746
|
pathParams: ["project_id"],
|
|
@@ -23294,7 +23294,7 @@ const routes = {
|
|
|
23294
23294
|
"list-project-usage-thresholds": {
|
|
23295
23295
|
serviceClass: "Projects",
|
|
23296
23296
|
operationId: "listProjectUsageThresholds",
|
|
23297
|
-
description: "The spend alerts this project has set. A threshold fires the
|
|
23297
|
+
description: "The spend alerts this project has set. A threshold fires the usage_thresholds.crossed event when the project's windowed usage crosses it, so one is only useful alongside a webhook subscribed to that event.",
|
|
23298
23298
|
moduleDocsUrl: "https://naturali.ai/docs/modules/projects",
|
|
23299
23299
|
httpMethod: "get",
|
|
23300
23300
|
pathParams: ["project_id"],
|
|
@@ -23328,7 +23328,7 @@ const routes = {
|
|
|
23328
23328
|
"create-project-usage-threshold": {
|
|
23329
23329
|
serviceClass: "Projects",
|
|
23330
23330
|
operationId: "createProjectUsageThreshold",
|
|
23331
|
-
description: "Creates an alert on this project's windowed usage. Crossing it fires
|
|
23331
|
+
description: "Creates an alert on this project's windowed usage. Crossing it fires usage_thresholds.crossed once per window — a calendar_month threshold fires at most once in a month, and a rolling_24h one re-arms when the windowed total falls back below 90% of the threshold, so a total hovering at the line does not alert repeatedly. Requires the admin role: an alerting rule belongs to the account that pays, not to one member.",
|
|
23332
23332
|
moduleDocsUrl: "https://naturali.ai/docs/modules/projects",
|
|
23333
23333
|
httpMethod: "post",
|
|
23334
23334
|
pathParams: ["project_id"],
|
|
@@ -26628,7 +26628,7 @@ const routes = {
|
|
|
26628
26628
|
},
|
|
26629
26629
|
{
|
|
26630
26630
|
"name": "events",
|
|
26631
|
-
"description": "Which events this endpoint receives. Each entry is an exact type (`
|
|
26631
|
+
"description": "Which events this endpoint receives. Each entry is an exact type (`generations.completed`), a resource wildcard (`generations.*`), or `*` for everything. A bare resource name (`generation`) matches nothing and is rejected.\n",
|
|
26632
26632
|
"required": true,
|
|
26633
26633
|
"type": "array",
|
|
26634
26634
|
"in": "body"
|
|
@@ -26714,7 +26714,7 @@ const routes = {
|
|
|
26714
26714
|
},
|
|
26715
26715
|
{
|
|
26716
26716
|
"name": "events",
|
|
26717
|
-
"description": "Which events this endpoint receives. Each entry is an exact type (`
|
|
26717
|
+
"description": "Which events this endpoint receives. Each entry is an exact type (`generations.completed`), a resource wildcard (`generations.*`), or `*` for everything. A bare resource name (`generation`) matches nothing and is rejected.\n",
|
|
26718
26718
|
"required": false,
|
|
26719
26719
|
"type": "array",
|
|
26720
26720
|
"in": "body"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.273.1",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"yaml": "^2.9.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@naturali/sdk": "0.
|
|
34
|
+
"@naturali/sdk": "0.273.1",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|