@naturali/cli 0.152.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.
Files changed (2) hide show
  1. package/dist/index.mjs +112 -4
  2. 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.152.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) => {
@@ -4935,7 +4935,9 @@ var Users = class {
4935
4935
  /**
4936
4936
  * Update the current user
4937
4937
  *
4938
- * Edits the account's display name. `name` is required in the body — send null to clear it — so a request that misspelled the field is rejected rather than answered with a silent 200.
4938
+ * Edits the account's display name and whether it receives usage alerts. At least one field is required, so a request that misspelled a field is rejected rather than answered with a silent 200. Send `name: null` to clear the name.
4939
+ *
4940
+ * With `usage_alerts` on, the account is emailed once each time its model credit, its runs this month or its indexed storage reaches 75%, 90% and 100%. Credit is measured as the share spent this month of what the month had available, so a top-up lowers it. Usage falling back below a level re-arms that level. Figures are read every 15 minutes, so an alert can arrive up to that long after the crossing.
4939
4941
  *
4940
4942
  */
4941
4943
  static updateCurrentUser(options) {
@@ -4988,6 +4990,46 @@ var Users = class {
4988
4990
  ...options
4989
4991
  });
4990
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
+ }
4991
5033
  };
4992
5034
  var Webhooks = class {
4993
5035
  /**
@@ -19141,7 +19183,7 @@ const routes = {
19141
19183
  "update-current-user": {
19142
19184
  serviceClass: "Users",
19143
19185
  operationId: "updateCurrentUser",
19144
- description: "Edits the account's display name. `name` is required in the body — send null to clear it — so a request that misspelled the field is rejected rather than answered with a silent 200.",
19186
+ description: "Edits the account's display name and whether it receives usage alerts. At least one field is required, so a request that misspelled a field is rejected rather than answered with a silent 200. Send `name: null` to clear the name. With `usage_alerts` on, the account is emailed once each time its model credit, its runs this month or its indexed storage reaches 75%, 90% and 100%. Credit is measured as the share spent this month of what the month had available, so a top-up lowers it. Usage falling back below a level re-arms that level. Figures are read every 15 minutes, so an alert can arrive up to that long after the crossing.",
19145
19187
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/users",
19146
19188
  httpMethod: "patch",
19147
19189
  pathParams: [],
@@ -19151,9 +19193,15 @@ const routes = {
19151
19193
  flags: [{
19152
19194
  "name": "name",
19153
19195
  "description": "Display name; null clears it.",
19154
- "required": true,
19196
+ "required": false,
19155
19197
  "type": "string",
19156
19198
  "in": "body"
19199
+ }, {
19200
+ "name": "usage_alerts",
19201
+ "description": "Email the account at 75%, 90% and 100% of its model credit, runs and indexed storage.",
19202
+ "required": false,
19203
+ "type": "boolean",
19204
+ "in": "body"
19157
19205
  }]
19158
19206
  },
19159
19207
  "get-current-user-billing": {
@@ -19180,6 +19228,66 @@ const routes = {
19180
19228
  cookieParams: [],
19181
19229
  flags: []
19182
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
+ },
19183
19291
  "list-webhooks": {
19184
19292
  serviceClass: "Webhooks",
19185
19293
  operationId: "listWebhooks",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.152.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.152.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",