@naturali/cli 0.100.0 → 0.102.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 +27 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
14
14
  };
15
15
  //#endregion
16
16
  //#region package.json
17
- var version = "0.100.0";
17
+ var version = "0.102.0";
18
18
  //#endregion
19
19
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
20
20
  const serializeFormDataPair = (data, key, value) => {
@@ -4241,6 +4241,22 @@ var Users = class {
4241
4241
  }
4242
4242
  });
4243
4243
  }
4244
+ /**
4245
+ * Get the current account's billing standing
4246
+ *
4247
+ * The plan the account is on and the credit it has left — the two figures the platform already enforces against, readable by the account they are enforced against.
4248
+ *
4249
+ * A managed-model generation is refused with `402 insufficient_credit` while `credit_balance_usd` is negative, and a feature or a resource count outside the plan is refused with `403`. Both refusals name what is missing; this is where the numbers behind them are read.
4250
+ *
4251
+ * Answers for the caller's own account only, and always the account the credential resolves to — an API key answers for the user that minted it. The plan gating a *project* is that project's billing owner's, so a member of someone else's project reads their own rung here, not that project's.
4252
+ *
4253
+ */
4254
+ static getCurrentUserBilling(options) {
4255
+ return (options?.client ?? client).get({
4256
+ url: "/v1/users/me/billing",
4257
+ ...options
4258
+ });
4259
+ }
4244
4260
  };
4245
4261
  var Webhooks = class {
4246
4262
  /**
@@ -15359,6 +15375,16 @@ const routes = {
15359
15375
  "in": "body"
15360
15376
  }]
15361
15377
  },
15378
+ "get-current-user-billing": {
15379
+ serviceClass: "Users",
15380
+ operationId: "getCurrentUserBilling",
15381
+ description: "The plan the account is on and the credit it has left — the two figures the platform already enforces against, readable by the account they are enforced against. A managed-model generation is refused with `402 insufficient_credit` while `credit_balance_usd` is negative, and a feature or a resource count outside the plan is refused with `403`. Both refusals name what is missing; this is where the numbers behind them are read. Answers for the caller's own account only, and always the account the credential resolves to — an API key answers for the user that minted it. The plan gating a *project* is that project's billing owner's, so a member of someone else's project reads their own rung here, not that project's.",
15382
+ moduleDocsUrl: "https://docs.naturali.ai/docs/modules/users",
15383
+ httpMethod: "get",
15384
+ pathParams: [],
15385
+ queryParams: [],
15386
+ flags: []
15387
+ },
15362
15388
  "list-webhooks": {
15363
15389
  serviceClass: "Webhooks",
15364
15390
  operationId: "listWebhooks",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.100.0",
3
+ "version": "0.102.0",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "bin": {
@@ -30,7 +30,7 @@
30
30
  "tsx": "^4.23.1",
31
31
  "typescript": "~6.0.3",
32
32
  "vitest": "^4.1.10",
33
- "@naturali/sdk": "0.100.0"
33
+ "@naturali/sdk": "0.102.0"
34
34
  },
35
35
  "scripts": {
36
36
  "generate": "tsx scripts/generate.ts",