@naturali/sdk 0.103.1 → 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 +5 -0
- package/dist/index.d.cts +9 -0
- package/dist/index.d.mts +9 -0
- package/dist/index.mjs +5 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -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
|
@@ -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.
|
|
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.
|
|
40
|
+
"@naturali/api": "0.103.2"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"generate": "tsx scripts/generate.ts",
|