@naturali/cli 0.149.0 → 0.151.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.mjs +88 -1
- 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.151.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -1522,6 +1522,11 @@ var ApiKeys = class {
|
|
|
1522
1522
|
*/
|
|
1523
1523
|
static createApiKey(options) {
|
|
1524
1524
|
return (options.client ?? client).post({
|
|
1525
|
+
security: [{
|
|
1526
|
+
key: "bearerAuth",
|
|
1527
|
+
scheme: "bearer",
|
|
1528
|
+
type: "http"
|
|
1529
|
+
}],
|
|
1525
1530
|
url: "/v1/api-keys",
|
|
1526
1531
|
...options,
|
|
1527
1532
|
headers: {
|
|
@@ -1576,6 +1581,11 @@ var ApiKeys = class {
|
|
|
1576
1581
|
*/
|
|
1577
1582
|
static rotateApiKey(options) {
|
|
1578
1583
|
return (options.client ?? client).post({
|
|
1584
|
+
security: [{
|
|
1585
|
+
key: "bearerAuth",
|
|
1586
|
+
scheme: "bearer",
|
|
1587
|
+
type: "http"
|
|
1588
|
+
}],
|
|
1579
1589
|
url: "/v1/api-keys/{api_key_id}:rotate",
|
|
1580
1590
|
...options
|
|
1581
1591
|
});
|
|
@@ -3756,6 +3766,11 @@ var Orchestrations = class {
|
|
|
3756
3766
|
static getQueueStats(options) {
|
|
3757
3767
|
return (options.client ?? client).get({
|
|
3758
3768
|
security: [{
|
|
3769
|
+
key: "bearerAuth",
|
|
3770
|
+
scheme: "bearer",
|
|
3771
|
+
type: "http"
|
|
3772
|
+
}, {
|
|
3773
|
+
key: "oauth2",
|
|
3759
3774
|
scheme: "bearer",
|
|
3760
3775
|
type: "http"
|
|
3761
3776
|
}],
|
|
@@ -4019,6 +4034,36 @@ var Projects = class {
|
|
|
4019
4034
|
});
|
|
4020
4035
|
}
|
|
4021
4036
|
/**
|
|
4037
|
+
* Pause a project
|
|
4038
|
+
*
|
|
4039
|
+
* 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.
|
|
4040
|
+
* 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.
|
|
4041
|
+
* Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `project.paused`. Requires the `admin` role.
|
|
4042
|
+
*
|
|
4043
|
+
*/
|
|
4044
|
+
static pauseProject(options) {
|
|
4045
|
+
return (options.client ?? client).post({
|
|
4046
|
+
url: "/v1/projects/{project_id}/pause",
|
|
4047
|
+
...options,
|
|
4048
|
+
headers: {
|
|
4049
|
+
"Content-Type": "application/json",
|
|
4050
|
+
...options.headers
|
|
4051
|
+
}
|
|
4052
|
+
});
|
|
4053
|
+
}
|
|
4054
|
+
/**
|
|
4055
|
+
* Resume a project
|
|
4056
|
+
*
|
|
4057
|
+
* 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 `project.resumed`. Requires the `admin` role.
|
|
4058
|
+
*
|
|
4059
|
+
*/
|
|
4060
|
+
static resumeProject(options) {
|
|
4061
|
+
return (options.client ?? client).post({
|
|
4062
|
+
url: "/v1/projects/{project_id}/resume",
|
|
4063
|
+
...options
|
|
4064
|
+
});
|
|
4065
|
+
}
|
|
4066
|
+
/**
|
|
4022
4067
|
* List project members
|
|
4023
4068
|
*
|
|
4024
4069
|
* Lists who may act in the project, and with what role. Readable by every member, whatever their role: who else is in the project is not a privileged fact, and hiding it makes "why can that person see my agents?" unanswerable.
|
|
@@ -16237,6 +16282,48 @@ const routes = {
|
|
|
16237
16282
|
"in": "query"
|
|
16238
16283
|
}]
|
|
16239
16284
|
},
|
|
16285
|
+
"pause-project": {
|
|
16286
|
+
serviceClass: "Projects",
|
|
16287
|
+
operationId: "pauseProject",
|
|
16288
|
+
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 `project.paused`. Requires the `admin` role.",
|
|
16289
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/projects",
|
|
16290
|
+
httpMethod: "post",
|
|
16291
|
+
pathParams: ["project_id"],
|
|
16292
|
+
queryParams: [],
|
|
16293
|
+
headerParams: [],
|
|
16294
|
+
cookieParams: [],
|
|
16295
|
+
flags: [{
|
|
16296
|
+
"name": "project_id",
|
|
16297
|
+
"description": "Project public ID (proj_ prefix).",
|
|
16298
|
+
"required": true,
|
|
16299
|
+
"type": "string",
|
|
16300
|
+
"in": "path"
|
|
16301
|
+
}, {
|
|
16302
|
+
"name": "reason",
|
|
16303
|
+
"description": "Why the project is paused. Stored as `pause_reason` and carried onto every run and task the pause parks.\n",
|
|
16304
|
+
"required": false,
|
|
16305
|
+
"type": "string",
|
|
16306
|
+
"in": "body"
|
|
16307
|
+
}]
|
|
16308
|
+
},
|
|
16309
|
+
"resume-project": {
|
|
16310
|
+
serviceClass: "Projects",
|
|
16311
|
+
operationId: "resumeProject",
|
|
16312
|
+
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 `project.resumed`. Requires the `admin` role.",
|
|
16313
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/projects",
|
|
16314
|
+
httpMethod: "post",
|
|
16315
|
+
pathParams: ["project_id"],
|
|
16316
|
+
queryParams: [],
|
|
16317
|
+
headerParams: [],
|
|
16318
|
+
cookieParams: [],
|
|
16319
|
+
flags: [{
|
|
16320
|
+
"name": "project_id",
|
|
16321
|
+
"description": "Project public ID (proj_ prefix).",
|
|
16322
|
+
"required": true,
|
|
16323
|
+
"type": "string",
|
|
16324
|
+
"in": "path"
|
|
16325
|
+
}]
|
|
16326
|
+
},
|
|
16240
16327
|
"list-project-members": {
|
|
16241
16328
|
serviceClass: "Projects",
|
|
16242
16329
|
operationId: "listProjectMembers",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.151.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"yaml": "^2.9.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@naturali/sdk": "0.
|
|
28
|
+
"@naturali/sdk": "0.151.0",
|
|
29
29
|
"@ttoss/openapi-codegen": "^0.3.1",
|
|
30
30
|
"@types/node": "^26.5.1",
|
|
31
31
|
"tsdown": "^0.23.0",
|