@naturali/cli 0.153.0 → 0.154.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 +101 -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.154.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -4990,6 +4990,46 @@ var Users = class {
|
|
|
4990
4990
|
...options
|
|
4991
4991
|
});
|
|
4992
4992
|
}
|
|
4993
|
+
/**
|
|
4994
|
+
* List what a billing ceiling stopped
|
|
4995
|
+
*
|
|
4996
|
+
* Schedule triggers, eval runs, orchestration runs and workflow tasks the platform stopped on this account's projects because the credit balance went below zero or a Free plan's runs ran out, and that have not been restored or dismissed yet. Newest first.
|
|
4997
|
+
*
|
|
4998
|
+
* `blocked_by` names the ceiling still closed: while it is set, nothing can be restored. Top up for `debt`; upgrade or wait for the month to turn for `run_allowance`. A project-confined key sees its own project's stops only.
|
|
4999
|
+
*
|
|
5000
|
+
*/
|
|
5001
|
+
static listCurrentUserStops(options) {
|
|
5002
|
+
return (options?.client ?? client).get({
|
|
5003
|
+
url: "/v1/users/me/stops",
|
|
5004
|
+
...options
|
|
5005
|
+
});
|
|
5006
|
+
}
|
|
5007
|
+
/**
|
|
5008
|
+
* Restore a stopped item
|
|
5009
|
+
*
|
|
5010
|
+
* Turns one stopped item back on — re-enables the schedule trigger, or resumes the orchestration run or workflow task — and stops listing it. An item that is no longer stopped (resumed already, finished or deleted) is marked restored too.
|
|
5011
|
+
*
|
|
5012
|
+
* Refused with `409 stop_ceiling_closed` while a ceiling is still closed, naming it in `details.blocked_by`, and with `409 stop_not_restorable` for a cancelled eval run, which can only be dismissed.
|
|
5013
|
+
*
|
|
5014
|
+
*/
|
|
5015
|
+
static restoreCurrentUserStop(options) {
|
|
5016
|
+
return (options.client ?? client).post({
|
|
5017
|
+
url: "/v1/users/me/stops/{stop_id}/restore",
|
|
5018
|
+
...options
|
|
5019
|
+
});
|
|
5020
|
+
}
|
|
5021
|
+
/**
|
|
5022
|
+
* Dismiss a stopped item
|
|
5023
|
+
*
|
|
5024
|
+
* Stops listing an item without turning it back on. Allowed while a ceiling is still closed.
|
|
5025
|
+
*
|
|
5026
|
+
*/
|
|
5027
|
+
static dismissCurrentUserStop(options) {
|
|
5028
|
+
return (options.client ?? client).delete({
|
|
5029
|
+
url: "/v1/users/me/stops/{stop_id}",
|
|
5030
|
+
...options
|
|
5031
|
+
});
|
|
5032
|
+
}
|
|
4993
5033
|
};
|
|
4994
5034
|
var Webhooks = class {
|
|
4995
5035
|
/**
|
|
@@ -19188,6 +19228,66 @@ const routes = {
|
|
|
19188
19228
|
cookieParams: [],
|
|
19189
19229
|
flags: []
|
|
19190
19230
|
},
|
|
19231
|
+
"list-current-user-stops": {
|
|
19232
|
+
serviceClass: "Users",
|
|
19233
|
+
operationId: "listCurrentUserStops",
|
|
19234
|
+
description: "Schedule triggers, eval runs, orchestration runs and workflow tasks the platform stopped on this account's projects because the credit balance went below zero or a Free plan's runs ran out, and that have not been restored or dismissed yet. Newest first. `blocked_by` names the ceiling still closed: while it is set, nothing can be restored. Top up for `debt`; upgrade or wait for the month to turn for `run_allowance`. A project-confined key sees its own project's stops only.",
|
|
19235
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/users",
|
|
19236
|
+
httpMethod: "get",
|
|
19237
|
+
pathParams: [],
|
|
19238
|
+
queryParams: ["limit", "cursor"],
|
|
19239
|
+
headerParams: [],
|
|
19240
|
+
cookieParams: [],
|
|
19241
|
+
flags: [{
|
|
19242
|
+
"name": "limit",
|
|
19243
|
+
"description": "Maximum items per page — an integer from 1 to 100 (default 20).",
|
|
19244
|
+
"required": false,
|
|
19245
|
+
"type": "integer",
|
|
19246
|
+
"in": "query"
|
|
19247
|
+
}, {
|
|
19248
|
+
"name": "cursor",
|
|
19249
|
+
"description": "The `next_cursor` of the previous page.",
|
|
19250
|
+
"required": false,
|
|
19251
|
+
"type": "string",
|
|
19252
|
+
"in": "query"
|
|
19253
|
+
}]
|
|
19254
|
+
},
|
|
19255
|
+
"restore-current-user-stop": {
|
|
19256
|
+
serviceClass: "Users",
|
|
19257
|
+
operationId: "restoreCurrentUserStop",
|
|
19258
|
+
description: "Turns one stopped item back on — re-enables the schedule trigger, or resumes the orchestration run or workflow task — and stops listing it. An item that is no longer stopped (resumed already, finished or deleted) is marked restored too. Refused with `409 stop_ceiling_closed` while a ceiling is still closed, naming it in `details.blocked_by`, and with `409 stop_not_restorable` for a cancelled eval run, which can only be dismissed.",
|
|
19259
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/users",
|
|
19260
|
+
httpMethod: "post",
|
|
19261
|
+
pathParams: ["stop_id"],
|
|
19262
|
+
queryParams: [],
|
|
19263
|
+
headerParams: [],
|
|
19264
|
+
cookieParams: [],
|
|
19265
|
+
flags: [{
|
|
19266
|
+
"name": "stop_id",
|
|
19267
|
+
"description": "The stop's ID (sst_ prefix).",
|
|
19268
|
+
"required": true,
|
|
19269
|
+
"type": "string",
|
|
19270
|
+
"in": "path"
|
|
19271
|
+
}]
|
|
19272
|
+
},
|
|
19273
|
+
"dismiss-current-user-stop": {
|
|
19274
|
+
serviceClass: "Users",
|
|
19275
|
+
operationId: "dismissCurrentUserStop",
|
|
19276
|
+
description: "Stops listing an item without turning it back on. Allowed while a ceiling is still closed.",
|
|
19277
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/users",
|
|
19278
|
+
httpMethod: "delete",
|
|
19279
|
+
pathParams: ["stop_id"],
|
|
19280
|
+
queryParams: [],
|
|
19281
|
+
headerParams: [],
|
|
19282
|
+
cookieParams: [],
|
|
19283
|
+
flags: [{
|
|
19284
|
+
"name": "stop_id",
|
|
19285
|
+
"description": "The stop's ID (sst_ prefix).",
|
|
19286
|
+
"required": true,
|
|
19287
|
+
"type": "string",
|
|
19288
|
+
"in": "path"
|
|
19289
|
+
}]
|
|
19290
|
+
},
|
|
19191
19291
|
"list-webhooks": {
|
|
19192
19292
|
serviceClass: "Webhooks",
|
|
19193
19293
|
operationId: "listWebhooks",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.154.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.154.0",
|
|
29
29
|
"@ttoss/openapi-codegen": "^0.3.1",
|
|
30
30
|
"@types/node": "^26.5.1",
|
|
31
31
|
"tsdown": "^0.23.0",
|