@soat/sdk 0.86.3 → 0.87.0
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 +1 -1
- package/dist/index.d.cts +22 -6
- package/dist/index.d.mts +22 -6
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1995,7 +1995,7 @@ var Embeddings = class {
|
|
|
1995
1995
|
* `project_id` names the project the call's token usage is metered against, so
|
|
1996
1996
|
* embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
|
|
1997
1997
|
* quotas. A project-scoped credential supplies its own project; a call that names
|
|
1998
|
-
* none and is bound to none is
|
|
1998
|
+
* none and is bound to none is `400 VALIDATION_FAILED`.
|
|
1999
1999
|
*
|
|
2000
2000
|
*/
|
|
2001
2001
|
static createEmbeddings(options) {
|
package/dist/index.d.cts
CHANGED
|
@@ -6841,7 +6841,7 @@ type UpsertProjectPricesRequest = {
|
|
|
6841
6841
|
*/
|
|
6842
6842
|
meter_type?: 'llm_tokens' | 'tool_execution';
|
|
6843
6843
|
/**
|
|
6844
|
-
* The SRN of one tool or agent, `srn:<project_id>:<tool|agent>:<id>`, for a resource row; omit `provider` and `model`. A tool's row prices its `tool_execution` events, beside `tool_call`; an agent's prices its `llm_tokens` events, beside the provider cost. A
|
|
6844
|
+
* The SRN of one tool or agent, `srn:<project_id>:<tool|agent>:<id>`, for a resource row; omit `provider` and `model`. A tool's row prices its `tool_execution` events, beside `tool_call`; an agent's prices its `llm_tokens` events, beside the provider cost. A client tool has no execution of its own and cannot be priced.
|
|
6845
6845
|
*/
|
|
6846
6846
|
resource?: string;
|
|
6847
6847
|
/**
|
|
@@ -8430,7 +8430,7 @@ type UpsertPricesRequest = {
|
|
|
8430
8430
|
*/
|
|
8431
8431
|
meter_type?: string;
|
|
8432
8432
|
/**
|
|
8433
|
-
* The SRN of one tool or agent, `srn:<project_id>:<tool|agent>:<id>`, for a resource row; omit `provider` and `model`. A tool's row prices its `tool_execution` events, beside `tool_call`; an agent's prices its `llm_tokens` events, beside the provider cost. A
|
|
8433
|
+
* The SRN of one tool or agent, `srn:<project_id>:<tool|agent>:<id>`, for a resource row; omit `provider` and `model`. A tool's row prices its `tool_execution` events, beside `tool_call`; an agent's prices its `llm_tokens` events, beside the provider cost. A client tool has no execution of its own and cannot be priced.
|
|
8434
8434
|
*/
|
|
8435
8435
|
resource?: string;
|
|
8436
8436
|
/**
|
|
@@ -12366,6 +12366,14 @@ type IngestDocumentData = {
|
|
|
12366
12366
|
* Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.
|
|
12367
12367
|
*/
|
|
12368
12368
|
chunk_overlap?: number;
|
|
12369
|
+
/**
|
|
12370
|
+
* Session the ingest runs for. The converter's generation and the chunk embeddings are metered against the session and its actor.
|
|
12371
|
+
*/
|
|
12372
|
+
session_id?: string;
|
|
12373
|
+
/**
|
|
12374
|
+
* Actor the ingest runs for when there is no session; metered like `session_id`. Beside `session_id` it must be that session's actor, else `400 VALIDATION_FAILED`.
|
|
12375
|
+
*/
|
|
12376
|
+
actor_id?: string;
|
|
12369
12377
|
};
|
|
12370
12378
|
path?: never;
|
|
12371
12379
|
query?: {
|
|
@@ -12378,7 +12386,7 @@ type IngestDocumentData = {
|
|
|
12378
12386
|
};
|
|
12379
12387
|
type IngestDocumentErrors = {
|
|
12380
12388
|
/**
|
|
12381
|
-
* Invalid request, file not found,
|
|
12389
|
+
* Invalid request, file not found, unsupported content type, or an unknown `session_id` (`SESSION_NOT_FOUND`) or `actor_id` (`ACTOR_NOT_FOUND`) in the project
|
|
12382
12390
|
*/
|
|
12383
12391
|
400: ErrorResponse;
|
|
12384
12392
|
/**
|
|
@@ -12919,6 +12927,14 @@ type ReingestDocumentData = {
|
|
|
12919
12927
|
* Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.
|
|
12920
12928
|
*/
|
|
12921
12929
|
chunk_overlap?: number;
|
|
12930
|
+
/**
|
|
12931
|
+
* Session the ingest runs for. The converter's generation and the chunk embeddings are metered against the session and its actor.
|
|
12932
|
+
*/
|
|
12933
|
+
session_id?: string;
|
|
12934
|
+
/**
|
|
12935
|
+
* Actor the ingest runs for when there is no session; metered like `session_id`. Beside `session_id` it must be that session's actor, else `400 VALIDATION_FAILED`.
|
|
12936
|
+
*/
|
|
12937
|
+
actor_id?: string;
|
|
12922
12938
|
};
|
|
12923
12939
|
path: {
|
|
12924
12940
|
/**
|
|
@@ -13122,7 +13138,7 @@ type ReplaceDocumentTagsResponse = ReplaceDocumentTagsResponses[keyof ReplaceDoc
|
|
|
13122
13138
|
type CreateEmbeddingsData = {
|
|
13123
13139
|
body: {
|
|
13124
13140
|
/**
|
|
13125
|
-
* Project the call's usage is billed to.
|
|
13141
|
+
* Project the call's usage is billed to. Required unless the credential is bound to a project, which then supplies its own. Requires write access to the named project.
|
|
13126
13142
|
*/
|
|
13127
13143
|
project_id?: string;
|
|
13128
13144
|
/**
|
|
@@ -13140,7 +13156,7 @@ type CreateEmbeddingsData = {
|
|
|
13140
13156
|
};
|
|
13141
13157
|
type CreateEmbeddingsErrors = {
|
|
13142
13158
|
/**
|
|
13143
|
-
* Invalid request body
|
|
13159
|
+
* Invalid request body, or no project to bill (no `project_id` and a credential bound to none)
|
|
13144
13160
|
*/
|
|
13145
13161
|
400: ErrorResponse;
|
|
13146
13162
|
/**
|
|
@@ -24544,7 +24560,7 @@ export declare class Embeddings {
|
|
|
24544
24560
|
* `project_id` names the project the call's token usage is metered against, so
|
|
24545
24561
|
* embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
|
|
24546
24562
|
* quotas. A project-scoped credential supplies its own project; a call that names
|
|
24547
|
-
* none and is bound to none is
|
|
24563
|
+
* none and is bound to none is `400 VALIDATION_FAILED`.
|
|
24548
24564
|
*
|
|
24549
24565
|
*/
|
|
24550
24566
|
static createEmbeddings<ThrowOnError extends boolean = false>(options: Options<CreateEmbeddingsData, ThrowOnError>): RequestResult<CreateEmbeddingsResponses, CreateEmbeddingsErrors, ThrowOnError>;
|
package/dist/index.d.mts
CHANGED
|
@@ -6841,7 +6841,7 @@ type UpsertProjectPricesRequest = {
|
|
|
6841
6841
|
*/
|
|
6842
6842
|
meter_type?: 'llm_tokens' | 'tool_execution';
|
|
6843
6843
|
/**
|
|
6844
|
-
* The SRN of one tool or agent, `srn:<project_id>:<tool|agent>:<id>`, for a resource row; omit `provider` and `model`. A tool's row prices its `tool_execution` events, beside `tool_call`; an agent's prices its `llm_tokens` events, beside the provider cost. A
|
|
6844
|
+
* The SRN of one tool or agent, `srn:<project_id>:<tool|agent>:<id>`, for a resource row; omit `provider` and `model`. A tool's row prices its `tool_execution` events, beside `tool_call`; an agent's prices its `llm_tokens` events, beside the provider cost. A client tool has no execution of its own and cannot be priced.
|
|
6845
6845
|
*/
|
|
6846
6846
|
resource?: string;
|
|
6847
6847
|
/**
|
|
@@ -8430,7 +8430,7 @@ type UpsertPricesRequest = {
|
|
|
8430
8430
|
*/
|
|
8431
8431
|
meter_type?: string;
|
|
8432
8432
|
/**
|
|
8433
|
-
* The SRN of one tool or agent, `srn:<project_id>:<tool|agent>:<id>`, for a resource row; omit `provider` and `model`. A tool's row prices its `tool_execution` events, beside `tool_call`; an agent's prices its `llm_tokens` events, beside the provider cost. A
|
|
8433
|
+
* The SRN of one tool or agent, `srn:<project_id>:<tool|agent>:<id>`, for a resource row; omit `provider` and `model`. A tool's row prices its `tool_execution` events, beside `tool_call`; an agent's prices its `llm_tokens` events, beside the provider cost. A client tool has no execution of its own and cannot be priced.
|
|
8434
8434
|
*/
|
|
8435
8435
|
resource?: string;
|
|
8436
8436
|
/**
|
|
@@ -12366,6 +12366,14 @@ type IngestDocumentData = {
|
|
|
12366
12366
|
* Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.
|
|
12367
12367
|
*/
|
|
12368
12368
|
chunk_overlap?: number;
|
|
12369
|
+
/**
|
|
12370
|
+
* Session the ingest runs for. The converter's generation and the chunk embeddings are metered against the session and its actor.
|
|
12371
|
+
*/
|
|
12372
|
+
session_id?: string;
|
|
12373
|
+
/**
|
|
12374
|
+
* Actor the ingest runs for when there is no session; metered like `session_id`. Beside `session_id` it must be that session's actor, else `400 VALIDATION_FAILED`.
|
|
12375
|
+
*/
|
|
12376
|
+
actor_id?: string;
|
|
12369
12377
|
};
|
|
12370
12378
|
path?: never;
|
|
12371
12379
|
query?: {
|
|
@@ -12378,7 +12386,7 @@ type IngestDocumentData = {
|
|
|
12378
12386
|
};
|
|
12379
12387
|
type IngestDocumentErrors = {
|
|
12380
12388
|
/**
|
|
12381
|
-
* Invalid request, file not found,
|
|
12389
|
+
* Invalid request, file not found, unsupported content type, or an unknown `session_id` (`SESSION_NOT_FOUND`) or `actor_id` (`ACTOR_NOT_FOUND`) in the project
|
|
12382
12390
|
*/
|
|
12383
12391
|
400: ErrorResponse;
|
|
12384
12392
|
/**
|
|
@@ -12919,6 +12927,14 @@ type ReingestDocumentData = {
|
|
|
12919
12927
|
* Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.
|
|
12920
12928
|
*/
|
|
12921
12929
|
chunk_overlap?: number;
|
|
12930
|
+
/**
|
|
12931
|
+
* Session the ingest runs for. The converter's generation and the chunk embeddings are metered against the session and its actor.
|
|
12932
|
+
*/
|
|
12933
|
+
session_id?: string;
|
|
12934
|
+
/**
|
|
12935
|
+
* Actor the ingest runs for when there is no session; metered like `session_id`. Beside `session_id` it must be that session's actor, else `400 VALIDATION_FAILED`.
|
|
12936
|
+
*/
|
|
12937
|
+
actor_id?: string;
|
|
12922
12938
|
};
|
|
12923
12939
|
path: {
|
|
12924
12940
|
/**
|
|
@@ -13122,7 +13138,7 @@ type ReplaceDocumentTagsResponse = ReplaceDocumentTagsResponses[keyof ReplaceDoc
|
|
|
13122
13138
|
type CreateEmbeddingsData = {
|
|
13123
13139
|
body: {
|
|
13124
13140
|
/**
|
|
13125
|
-
* Project the call's usage is billed to.
|
|
13141
|
+
* Project the call's usage is billed to. Required unless the credential is bound to a project, which then supplies its own. Requires write access to the named project.
|
|
13126
13142
|
*/
|
|
13127
13143
|
project_id?: string;
|
|
13128
13144
|
/**
|
|
@@ -13140,7 +13156,7 @@ type CreateEmbeddingsData = {
|
|
|
13140
13156
|
};
|
|
13141
13157
|
type CreateEmbeddingsErrors = {
|
|
13142
13158
|
/**
|
|
13143
|
-
* Invalid request body
|
|
13159
|
+
* Invalid request body, or no project to bill (no `project_id` and a credential bound to none)
|
|
13144
13160
|
*/
|
|
13145
13161
|
400: ErrorResponse;
|
|
13146
13162
|
/**
|
|
@@ -24544,7 +24560,7 @@ export declare class Embeddings {
|
|
|
24544
24560
|
* `project_id` names the project the call's token usage is metered against, so
|
|
24545
24561
|
* embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
|
|
24546
24562
|
* quotas. A project-scoped credential supplies its own project; a call that names
|
|
24547
|
-
* none and is bound to none is
|
|
24563
|
+
* none and is bound to none is `400 VALIDATION_FAILED`.
|
|
24548
24564
|
*
|
|
24549
24565
|
*/
|
|
24550
24566
|
static createEmbeddings<ThrowOnError extends boolean = false>(options: Options<CreateEmbeddingsData, ThrowOnError>): RequestResult<CreateEmbeddingsResponses, CreateEmbeddingsErrors, ThrowOnError>;
|
package/dist/index.mjs
CHANGED
|
@@ -1994,7 +1994,7 @@ var Embeddings = class {
|
|
|
1994
1994
|
* `project_id` names the project the call's token usage is metered against, so
|
|
1995
1995
|
* embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
|
|
1996
1996
|
* quotas. A project-scoped credential supplies its own project; a call that names
|
|
1997
|
-
* none and is bound to none is
|
|
1997
|
+
* none and is bound to none is `400 VALIDATION_FAILED`.
|
|
1998
1998
|
*
|
|
1999
1999
|
*/
|
|
2000
2000
|
static createEmbeddings(options) {
|