@naturali/cli 0.103.0 → 0.103.2

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 +9 -4
  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.103.0";
17
+ var version = "0.103.2";
18
18
  //#endregion
19
19
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
20
20
  const serializeFormDataPair = (data, key, value) => {
@@ -1087,7 +1087,7 @@ var Admin = class {
1087
1087
  /**
1088
1088
  * Read a user's credit ledger
1089
1089
  *
1090
- * A cursor page of the account's credit lines, newest first, with the balance they sum to. Needs the `admin` role — including for the account's own owner, since the customer-facing view of a balance belongs with a billing surface this API does not serve yet.
1090
+ * A cursor page of the account's credit lines, newest first, with the balance they sum to. Needs the `admin` role — including for the account's own owner, who reads their own balance at `GET /v1/users/me/billing` rather than here. That answers what is left; this is the line-by-line record behind it.
1091
1091
  * What an operator reads it for is writing a correction: the line that was wrong stays on the record, so it has to be legible before it can be compensated for.
1092
1092
  *
1093
1093
  */
@@ -2104,6 +2104,11 @@ var Embeddings = class {
2104
2104
  * Provide `input` for a single text or `inputs` for a batch. At least one is required.
2105
2105
  * Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.
2106
2106
  *
2107
+ * `project_id` names the project the call's token usage is metered against, so
2108
+ * embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
2109
+ * quotas. A project-scoped credential supplies its own project; a call that names
2110
+ * none and is bound to none is served but not metered.
2111
+ *
2107
2112
  */
2108
2113
  static createEmbeddings(options) {
2109
2114
  return (options.client ?? client).post({
@@ -5756,7 +5761,7 @@ const routes = {
5756
5761
  "list-user-credits": {
5757
5762
  serviceClass: "Admin",
5758
5763
  operationId: "listUserCredits",
5759
- description: "A cursor page of the account's credit lines, newest first, with the balance they sum to. Needs the `admin` role — including for the account's own owner, since the customer-facing view of a balance belongs with a billing surface this API does not serve yet. What an operator reads it for is writing a correction: the line that was wrong stays on the record, so it has to be legible before it can be compensated for.",
5764
+ description: "A cursor page of the account's credit lines, newest first, with the balance they sum to. Needs the `admin` role — including for the account's own owner, who reads their own balance at `GET /v1/users/me/billing` rather than here. That answers what is left; this is the line-by-line record behind it. What an operator reads it for is writing a correction: the line that was wrong stays on the record, so it has to be legible before it can be compensated for.",
5760
5765
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/admin",
5761
5766
  httpMethod: "get",
5762
5767
  pathParams: ["user_id"],
@@ -9419,7 +9424,7 @@ const routes = {
9419
9424
  "create-embeddings": {
9420
9425
  serviceClass: "Embeddings",
9421
9426
  operationId: "createEmbeddings",
9422
- description: "Generates embedding vectors for one or more text inputs using the server's configured embedding model. Provide `input` for a single text or `inputs` for a batch. At least one is required. Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.",
9427
+ description: "Generates embedding vectors for one or more text inputs using the server's configured embedding model. Provide `input` for a single text or `inputs` for a batch. At least one is required. Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used. `project_id` names the project the call's token usage is metered against, so embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens` quotas. A project-scoped credential supplies its own project; a call that names none and is bound to none is served but not metered.",
9423
9428
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/embeddings",
9424
9429
  httpMethod: "post",
9425
9430
  pathParams: ["project_id"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.103.0",
3
+ "version": "0.103.2",
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.103.0"
33
+ "@naturali/sdk": "0.103.2"
34
34
  },
35
35
  "scripts": {
36
36
  "generate": "tsx scripts/generate.ts",