@naturali/sdk 0.123.0 → 0.123.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.cjs CHANGED
@@ -4376,9 +4376,13 @@ var Users = class {
4376
4376
  *
4377
4377
  * Counted across the projects this account is the billing owner of, over the current UTC calendar month, from the meter itself. Archived projects are included: the runs they already made were made.
4378
4378
  *
4379
- * **Nothing is refused against this.** The allowance is published, not enforcedan account past it keeps running. What does stop a managed-model generation is a negative credit balance, which is `GET /v1/users/me/billing`.
4379
+ * **On the `free` plan the allowance is enforced.** An account that has used it is refused `403 plan_limit_reached` with `resource: "runs"` on everything that starts a generation on its own provider credential as much as on a managed model, because a run is a run until the billing month turns or it upgrades. On `pro` and `business` nothing is refused: runs past the allowance are billed at the overage rate those plans are sold with. A contract plan is not counted.
4380
4380
  *
4381
- * This read is more expensive than the balance one: it asks the meter once per project. Poll it on the order of minutes, not seconds.
4381
+ * The other thing that stops a managed-model generation is a negative credit balance, which is `GET /v1/users/me/billing`, and it never applies to your own credential.
4382
+ *
4383
+ * **This route counts live; the refusal reads a figure counted every few minutes.** So the two can differ by a burst: this is the more current number, and a refusal quotes the one it actually enforced.
4384
+ *
4385
+ * It is also more expensive than the balance read: it asks the meter once per project. Poll it on the order of minutes, not seconds.
4382
4386
  *
4383
4387
  */
4384
4388
  static getCurrentUserUsage(options) {
package/dist/index.d.cts CHANGED
@@ -6434,7 +6434,7 @@ type UserUsage = {
6434
6434
  */
6435
6435
  runs: number | null;
6436
6436
  /**
6437
- * Runs the account's plan includes per cycle. `null` on a contract plan, where the figure is commercial rather than published. Exceeding it refuses nothing today.
6437
+ * Runs the account's plan includes per cycle. `null` on a contract plan, where the figure is commercial rather than published. Exceeding it is refused on `free` and billed as overage on `pro` and `business`.
6438
6438
  */
6439
6439
  runs_included: number | null;
6440
6440
  /**
@@ -21225,9 +21225,13 @@ declare class Users {
21225
21225
  *
21226
21226
  * Counted across the projects this account is the billing owner of, over the current UTC calendar month, from the meter itself. Archived projects are included: the runs they already made were made.
21227
21227
  *
21228
- * **Nothing is refused against this.** The allowance is published, not enforcedan account past it keeps running. What does stop a managed-model generation is a negative credit balance, which is `GET /v1/users/me/billing`.
21228
+ * **On the `free` plan the allowance is enforced.** An account that has used it is refused `403 plan_limit_reached` with `resource: "runs"` on everything that starts a generation on its own provider credential as much as on a managed model, because a run is a run until the billing month turns or it upgrades. On `pro` and `business` nothing is refused: runs past the allowance are billed at the overage rate those plans are sold with. A contract plan is not counted.
21229
21229
  *
21230
- * This read is more expensive than the balance one: it asks the meter once per project. Poll it on the order of minutes, not seconds.
21230
+ * The other thing that stops a managed-model generation is a negative credit balance, which is `GET /v1/users/me/billing`, and it never applies to your own credential.
21231
+ *
21232
+ * **This route counts live; the refusal reads a figure counted every few minutes.** So the two can differ by a burst: this is the more current number, and a refusal quotes the one it actually enforced.
21233
+ *
21234
+ * It is also more expensive than the balance read: it asks the meter once per project. Poll it on the order of minutes, not seconds.
21231
21235
  *
21232
21236
  */
21233
21237
  static getCurrentUserUsage<ThrowOnError extends boolean = false>(options?: Options<GetCurrentUserUsageData, ThrowOnError>): RequestResult<GetCurrentUserUsageResponses, GetCurrentUserUsageErrors, ThrowOnError>;
package/dist/index.d.mts CHANGED
@@ -6434,7 +6434,7 @@ type UserUsage = {
6434
6434
  */
6435
6435
  runs: number | null;
6436
6436
  /**
6437
- * Runs the account's plan includes per cycle. `null` on a contract plan, where the figure is commercial rather than published. Exceeding it refuses nothing today.
6437
+ * Runs the account's plan includes per cycle. `null` on a contract plan, where the figure is commercial rather than published. Exceeding it is refused on `free` and billed as overage on `pro` and `business`.
6438
6438
  */
6439
6439
  runs_included: number | null;
6440
6440
  /**
@@ -21225,9 +21225,13 @@ declare class Users {
21225
21225
  *
21226
21226
  * Counted across the projects this account is the billing owner of, over the current UTC calendar month, from the meter itself. Archived projects are included: the runs they already made were made.
21227
21227
  *
21228
- * **Nothing is refused against this.** The allowance is published, not enforcedan account past it keeps running. What does stop a managed-model generation is a negative credit balance, which is `GET /v1/users/me/billing`.
21228
+ * **On the `free` plan the allowance is enforced.** An account that has used it is refused `403 plan_limit_reached` with `resource: "runs"` on everything that starts a generation on its own provider credential as much as on a managed model, because a run is a run until the billing month turns or it upgrades. On `pro` and `business` nothing is refused: runs past the allowance are billed at the overage rate those plans are sold with. A contract plan is not counted.
21229
21229
  *
21230
- * This read is more expensive than the balance one: it asks the meter once per project. Poll it on the order of minutes, not seconds.
21230
+ * The other thing that stops a managed-model generation is a negative credit balance, which is `GET /v1/users/me/billing`, and it never applies to your own credential.
21231
+ *
21232
+ * **This route counts live; the refusal reads a figure counted every few minutes.** So the two can differ by a burst: this is the more current number, and a refusal quotes the one it actually enforced.
21233
+ *
21234
+ * It is also more expensive than the balance read: it asks the meter once per project. Poll it on the order of minutes, not seconds.
21231
21235
  *
21232
21236
  */
21233
21237
  static getCurrentUserUsage<ThrowOnError extends boolean = false>(options?: Options<GetCurrentUserUsageData, ThrowOnError>): RequestResult<GetCurrentUserUsageResponses, GetCurrentUserUsageErrors, ThrowOnError>;
package/dist/index.mjs CHANGED
@@ -4375,9 +4375,13 @@ var Users = class {
4375
4375
  *
4376
4376
  * Counted across the projects this account is the billing owner of, over the current UTC calendar month, from the meter itself. Archived projects are included: the runs they already made were made.
4377
4377
  *
4378
- * **Nothing is refused against this.** The allowance is published, not enforcedan account past it keeps running. What does stop a managed-model generation is a negative credit balance, which is `GET /v1/users/me/billing`.
4378
+ * **On the `free` plan the allowance is enforced.** An account that has used it is refused `403 plan_limit_reached` with `resource: "runs"` on everything that starts a generation on its own provider credential as much as on a managed model, because a run is a run until the billing month turns or it upgrades. On `pro` and `business` nothing is refused: runs past the allowance are billed at the overage rate those plans are sold with. A contract plan is not counted.
4379
4379
  *
4380
- * This read is more expensive than the balance one: it asks the meter once per project. Poll it on the order of minutes, not seconds.
4380
+ * The other thing that stops a managed-model generation is a negative credit balance, which is `GET /v1/users/me/billing`, and it never applies to your own credential.
4381
+ *
4382
+ * **This route counts live; the refusal reads a figure counted every few minutes.** So the two can differ by a burst: this is the more current number, and a refusal quotes the one it actually enforced.
4383
+ *
4384
+ * It is also more expensive than the balance read: it asks the meter once per project. Poll it on the order of minutes, not seconds.
4381
4385
  *
4382
4386
  */
4383
4387
  static getCurrentUserUsage(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.123.0",
3
+ "version": "0.123.1",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -37,7 +37,7 @@
37
37
  "tsx": "^4.23.1",
38
38
  "typescript": "~6.0.3",
39
39
  "vitest": "^4.1.10",
40
- "@naturali/api": "0.123.0"
40
+ "@naturali/api": "0.123.1"
41
41
  },
42
42
  "scripts": {
43
43
  "generate": "tsx scripts/generate.ts",