@naturali/sdk 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.
package/dist/index.cjs CHANGED
@@ -1070,7 +1070,7 @@ var Admin = class {
1070
1070
  /**
1071
1071
  * Read a user's credit ledger
1072
1072
  *
1073
- * 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.
1073
+ * 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.
1074
1074
  * 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.
1075
1075
  *
1076
1076
  */
@@ -2087,6 +2087,11 @@ var Embeddings = class {
2087
2087
  * Provide `input` for a single text or `inputs` for a batch. At least one is required.
2088
2088
  * Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.
2089
2089
  *
2090
+ * `project_id` names the project the call's token usage is metered against, so
2091
+ * embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
2092
+ * quotas. A project-scoped credential supplies its own project; a call that names
2093
+ * none and is bound to none is served but not metered.
2094
+ *
2090
2095
  */
2091
2096
  static createEmbeddings(options) {
2092
2097
  return (options.client ?? client).post({
package/dist/index.d.cts CHANGED
@@ -11391,6 +11391,10 @@ type CreateEmbeddingsErrors = {
11391
11391
  * Unauthorized
11392
11392
  */
11393
11393
  401: ErrorResponse;
11394
+ /**
11395
+ * The caller cannot write to the named `project_id`
11396
+ */
11397
+ 403: ErrorResponse;
11394
11398
  /**
11395
11399
  * Embedding service not configured
11396
11400
  */
@@ -19055,7 +19059,7 @@ declare class Admin {
19055
19059
  /**
19056
19060
  * Read a user's credit ledger
19057
19061
  *
19058
- * 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.
19062
+ * 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.
19059
19063
  * 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.
19060
19064
  *
19061
19065
  */
@@ -19589,6 +19593,11 @@ declare class Embeddings {
19589
19593
  * Provide `input` for a single text or `inputs` for a batch. At least one is required.
19590
19594
  * Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.
19591
19595
  *
19596
+ * `project_id` names the project the call's token usage is metered against, so
19597
+ * embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
19598
+ * quotas. A project-scoped credential supplies its own project; a call that names
19599
+ * none and is bound to none is served but not metered.
19600
+ *
19592
19601
  */
19593
19602
  static createEmbeddings<ThrowOnError extends boolean = false>(options: Options<CreateEmbeddingsData, ThrowOnError>): RequestResult<CreateEmbeddingsResponses, CreateEmbeddingsErrors, ThrowOnError>;
19594
19603
  }
package/dist/index.d.mts CHANGED
@@ -11391,6 +11391,10 @@ type CreateEmbeddingsErrors = {
11391
11391
  * Unauthorized
11392
11392
  */
11393
11393
  401: ErrorResponse;
11394
+ /**
11395
+ * The caller cannot write to the named `project_id`
11396
+ */
11397
+ 403: ErrorResponse;
11394
11398
  /**
11395
11399
  * Embedding service not configured
11396
11400
  */
@@ -19055,7 +19059,7 @@ declare class Admin {
19055
19059
  /**
19056
19060
  * Read a user's credit ledger
19057
19061
  *
19058
- * 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.
19062
+ * 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.
19059
19063
  * 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.
19060
19064
  *
19061
19065
  */
@@ -19589,6 +19593,11 @@ declare class Embeddings {
19589
19593
  * Provide `input` for a single text or `inputs` for a batch. At least one is required.
19590
19594
  * Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.
19591
19595
  *
19596
+ * `project_id` names the project the call's token usage is metered against, so
19597
+ * embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
19598
+ * quotas. A project-scoped credential supplies its own project; a call that names
19599
+ * none and is bound to none is served but not metered.
19600
+ *
19592
19601
  */
19593
19602
  static createEmbeddings<ThrowOnError extends boolean = false>(options: Options<CreateEmbeddingsData, ThrowOnError>): RequestResult<CreateEmbeddingsResponses, CreateEmbeddingsErrors, ThrowOnError>;
19594
19603
  }
package/dist/index.mjs CHANGED
@@ -1069,7 +1069,7 @@ var Admin = class {
1069
1069
  /**
1070
1070
  * Read a user's credit ledger
1071
1071
  *
1072
- * 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.
1072
+ * 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.
1073
1073
  * 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.
1074
1074
  *
1075
1075
  */
@@ -2086,6 +2086,11 @@ var Embeddings = class {
2086
2086
  * Provide `input` for a single text or `inputs` for a batch. At least one is required.
2087
2087
  * Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.
2088
2088
  *
2089
+ * `project_id` names the project the call's token usage is metered against, so
2090
+ * embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
2091
+ * quotas. A project-scoped credential supplies its own project; a call that names
2092
+ * none and is bound to none is served but not metered.
2093
+ *
2089
2094
  */
2090
2095
  static createEmbeddings(options) {
2091
2096
  return (options.client ?? client).post({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.103.0",
3
+ "version": "0.103.2",
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.103.0"
40
+ "@naturali/api": "0.103.2"
41
41
  },
42
42
  "scripts": {
43
43
  "generate": "tsx scripts/generate.ts",