@naturali/sdk 0.206.2 → 0.206.4
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 +2 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.mts +8 -2
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2628,7 +2628,7 @@ var Embeddings = class {
|
|
|
2628
2628
|
* `project_id` names the project the call's token usage is metered against, so
|
|
2629
2629
|
* embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
|
|
2630
2630
|
* quotas. A project-scoped credential supplies its own project; a call that names
|
|
2631
|
-
* none and is bound to none is
|
|
2631
|
+
* none and is bound to none is `400 VALIDATION_FAILED`.
|
|
2632
2632
|
*
|
|
2633
2633
|
*/
|
|
2634
2634
|
static createEmbeddings(options) {
|
|
@@ -4902,6 +4902,7 @@ var Projects = class {
|
|
|
4902
4902
|
*
|
|
4903
4903
|
* Permanently deletes the project and its backing runtime project. Fails with 409 if the runtime project still has dependent resources — remove them first, or pass `force=true` to delete the project and all its dependents (agents, providers, tools, sessions, generations, traces). Forcing is destructive and irreversible.
|
|
4904
4904
|
* Requires the `owner` role — an `admin` runs the project day to day, but destroying it is the billing owner's call.
|
|
4905
|
+
* The project's spend so far is settled on the owner's balance first, and its runs this cycle stay on the owner's run allowance and statement.
|
|
4905
4906
|
*
|
|
4906
4907
|
*/
|
|
4907
4908
|
static deleteProject(options) {
|
package/dist/index.d.cts
CHANGED
|
@@ -16314,7 +16314,7 @@ type CreateEmbeddingsData = {
|
|
|
16314
16314
|
};
|
|
16315
16315
|
type CreateEmbeddingsErrors = {
|
|
16316
16316
|
/**
|
|
16317
|
-
* Invalid request body
|
|
16317
|
+
* Invalid request body, or no project to bill (no `project_id` and a credential bound to none)
|
|
16318
16318
|
*/
|
|
16319
16319
|
400: ErrorResponse;
|
|
16320
16320
|
/**
|
|
@@ -23828,6 +23828,11 @@ type DeleteProjectErrors = {
|
|
|
23828
23828
|
* The project still has dependent resources on the runtime (retry with `force=true`).
|
|
23829
23829
|
*/
|
|
23830
23830
|
409: ErrorResponse;
|
|
23831
|
+
/**
|
|
23832
|
+
* The project's usage could not be read to settle it before the delete (`upstream_unavailable`); nothing was deleted.
|
|
23833
|
+
*
|
|
23834
|
+
*/
|
|
23835
|
+
502: ErrorResponse;
|
|
23831
23836
|
};
|
|
23832
23837
|
type DeleteProjectError = DeleteProjectErrors[keyof DeleteProjectErrors];
|
|
23833
23838
|
type DeleteProjectResponses = {
|
|
@@ -29144,7 +29149,7 @@ export declare class Embeddings {
|
|
|
29144
29149
|
* `project_id` names the project the call's token usage is metered against, so
|
|
29145
29150
|
* embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
|
|
29146
29151
|
* quotas. A project-scoped credential supplies its own project; a call that names
|
|
29147
|
-
* none and is bound to none is
|
|
29152
|
+
* none and is bound to none is `400 VALIDATION_FAILED`.
|
|
29148
29153
|
*
|
|
29149
29154
|
*/
|
|
29150
29155
|
static createEmbeddings<ThrowOnError extends boolean = false>(options: Options<CreateEmbeddingsData, ThrowOnError>): RequestResult<CreateEmbeddingsResponses, CreateEmbeddingsErrors, ThrowOnError>;
|
|
@@ -30309,6 +30314,7 @@ export declare class Projects {
|
|
|
30309
30314
|
*
|
|
30310
30315
|
* Permanently deletes the project and its backing runtime project. Fails with 409 if the runtime project still has dependent resources — remove them first, or pass `force=true` to delete the project and all its dependents (agents, providers, tools, sessions, generations, traces). Forcing is destructive and irreversible.
|
|
30311
30316
|
* Requires the `owner` role — an `admin` runs the project day to day, but destroying it is the billing owner's call.
|
|
30317
|
+
* The project's spend so far is settled on the owner's balance first, and its runs this cycle stay on the owner's run allowance and statement.
|
|
30312
30318
|
*
|
|
30313
30319
|
*/
|
|
30314
30320
|
static deleteProject<ThrowOnError extends boolean = false>(options: Options<DeleteProjectData, ThrowOnError>): RequestResult<DeleteProjectResponses, DeleteProjectErrors, ThrowOnError>;
|
package/dist/index.d.mts
CHANGED
|
@@ -16314,7 +16314,7 @@ type CreateEmbeddingsData = {
|
|
|
16314
16314
|
};
|
|
16315
16315
|
type CreateEmbeddingsErrors = {
|
|
16316
16316
|
/**
|
|
16317
|
-
* Invalid request body
|
|
16317
|
+
* Invalid request body, or no project to bill (no `project_id` and a credential bound to none)
|
|
16318
16318
|
*/
|
|
16319
16319
|
400: ErrorResponse;
|
|
16320
16320
|
/**
|
|
@@ -23828,6 +23828,11 @@ type DeleteProjectErrors = {
|
|
|
23828
23828
|
* The project still has dependent resources on the runtime (retry with `force=true`).
|
|
23829
23829
|
*/
|
|
23830
23830
|
409: ErrorResponse;
|
|
23831
|
+
/**
|
|
23832
|
+
* The project's usage could not be read to settle it before the delete (`upstream_unavailable`); nothing was deleted.
|
|
23833
|
+
*
|
|
23834
|
+
*/
|
|
23835
|
+
502: ErrorResponse;
|
|
23831
23836
|
};
|
|
23832
23837
|
type DeleteProjectError = DeleteProjectErrors[keyof DeleteProjectErrors];
|
|
23833
23838
|
type DeleteProjectResponses = {
|
|
@@ -29144,7 +29149,7 @@ export declare class Embeddings {
|
|
|
29144
29149
|
* `project_id` names the project the call's token usage is metered against, so
|
|
29145
29150
|
* embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
|
|
29146
29151
|
* quotas. A project-scoped credential supplies its own project; a call that names
|
|
29147
|
-
* none and is bound to none is
|
|
29152
|
+
* none and is bound to none is `400 VALIDATION_FAILED`.
|
|
29148
29153
|
*
|
|
29149
29154
|
*/
|
|
29150
29155
|
static createEmbeddings<ThrowOnError extends boolean = false>(options: Options<CreateEmbeddingsData, ThrowOnError>): RequestResult<CreateEmbeddingsResponses, CreateEmbeddingsErrors, ThrowOnError>;
|
|
@@ -30309,6 +30314,7 @@ export declare class Projects {
|
|
|
30309
30314
|
*
|
|
30310
30315
|
* Permanently deletes the project and its backing runtime project. Fails with 409 if the runtime project still has dependent resources — remove them first, or pass `force=true` to delete the project and all its dependents (agents, providers, tools, sessions, generations, traces). Forcing is destructive and irreversible.
|
|
30311
30316
|
* Requires the `owner` role — an `admin` runs the project day to day, but destroying it is the billing owner's call.
|
|
30317
|
+
* The project's spend so far is settled on the owner's balance first, and its runs this cycle stay on the owner's run allowance and statement.
|
|
30312
30318
|
*
|
|
30313
30319
|
*/
|
|
30314
30320
|
static deleteProject<ThrowOnError extends boolean = false>(options: Options<DeleteProjectData, ThrowOnError>): RequestResult<DeleteProjectResponses, DeleteProjectErrors, ThrowOnError>;
|
package/dist/index.mjs
CHANGED
|
@@ -2627,7 +2627,7 @@ var Embeddings = class {
|
|
|
2627
2627
|
* `project_id` names the project the call's token usage is metered against, so
|
|
2628
2628
|
* embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
|
|
2629
2629
|
* quotas. A project-scoped credential supplies its own project; a call that names
|
|
2630
|
-
* none and is bound to none is
|
|
2630
|
+
* none and is bound to none is `400 VALIDATION_FAILED`.
|
|
2631
2631
|
*
|
|
2632
2632
|
*/
|
|
2633
2633
|
static createEmbeddings(options) {
|
|
@@ -4901,6 +4901,7 @@ var Projects = class {
|
|
|
4901
4901
|
*
|
|
4902
4902
|
* Permanently deletes the project and its backing runtime project. Fails with 409 if the runtime project still has dependent resources — remove them first, or pass `force=true` to delete the project and all its dependents (agents, providers, tools, sessions, generations, traces). Forcing is destructive and irreversible.
|
|
4903
4903
|
* Requires the `owner` role — an `admin` runs the project day to day, but destroying it is the billing owner's call.
|
|
4904
|
+
* The project's spend so far is settled on the owner's balance first, and its runs this cycle stay on the owner's run allowance and statement.
|
|
4904
4905
|
*
|
|
4905
4906
|
*/
|
|
4906
4907
|
static deleteProject(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.206.
|
|
3
|
+
"version": "0.206.4",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
41
|
-
"@naturali/api": "0.206.
|
|
41
|
+
"@naturali/api": "0.206.4",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.5.0",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|