@soat/sdk 0.38.0 → 0.39.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 +5 -0
- package/dist/index.d.cts +15 -2
- package/dist/index.d.mts +15 -2
- package/dist/index.mjs +5 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1694,6 +1694,11 @@ var Embeddings = class {
|
|
|
1694
1694
|
* Provide `input` for a single text or `inputs` for a batch. At least one is required.
|
|
1695
1695
|
* Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.
|
|
1696
1696
|
*
|
|
1697
|
+
* `project_id` names the project the call's token usage is metered against, so
|
|
1698
|
+
* embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
|
|
1699
|
+
* quotas. A project-scoped credential supplies its own project; a call that names
|
|
1700
|
+
* none and is bound to none is served but not metered.
|
|
1701
|
+
*
|
|
1697
1702
|
*/
|
|
1698
1703
|
static createEmbeddings(options) {
|
|
1699
1704
|
return (options.client ?? client).post({
|
package/dist/index.d.cts
CHANGED
|
@@ -6033,7 +6033,7 @@ type UsageEvent = {
|
|
|
6033
6033
|
*/
|
|
6034
6034
|
meter_type?: string;
|
|
6035
6035
|
/**
|
|
6036
|
-
* What the spend was incurred for. `eval` is an eval run's item generations and `eval_judge` an `llm_judge` scorer's own completion, so verification spend is `source` in (`eval`, `eval_judge`) and the two are distinct so running a suite can be priced apart from grading it. Null for ordinary agent traffic.
|
|
6036
|
+
* What the spend was incurred for. `eval` is an eval run's item generations and `eval_judge` an `llm_judge` scorer's own completion, so verification spend is `source` in (`eval`, `eval_judge`) and the two are distinct so running a suite can be priced apart from grading it. `embedding` is any embedding call — the endpoint, document ingestion, a memory write, or a search's query vector. Null for ordinary agent traffic.
|
|
6037
6037
|
*
|
|
6038
6038
|
*/
|
|
6039
6039
|
source?: string | null;
|
|
@@ -9820,6 +9820,10 @@ type ReplaceDocumentTagsResponses = {
|
|
|
9820
9820
|
type ReplaceDocumentTagsResponse = ReplaceDocumentTagsResponses[keyof ReplaceDocumentTagsResponses];
|
|
9821
9821
|
type CreateEmbeddingsData = {
|
|
9822
9822
|
body: {
|
|
9823
|
+
/**
|
|
9824
|
+
* Project the call's usage is billed to. Optional; a project-scoped credential supplies its own. Requires write access to the named project.
|
|
9825
|
+
*/
|
|
9826
|
+
project_id?: string;
|
|
9823
9827
|
/**
|
|
9824
9828
|
* Single text to embed.
|
|
9825
9829
|
*/
|
|
@@ -9842,6 +9846,10 @@ type CreateEmbeddingsErrors = {
|
|
|
9842
9846
|
* Unauthorized
|
|
9843
9847
|
*/
|
|
9844
9848
|
401: ErrorResponse;
|
|
9849
|
+
/**
|
|
9850
|
+
* The caller cannot write to the named `project_id`
|
|
9851
|
+
*/
|
|
9852
|
+
403: ErrorResponse;
|
|
9845
9853
|
/**
|
|
9846
9854
|
* Embedding service not configured
|
|
9847
9855
|
*/
|
|
@@ -16187,7 +16195,7 @@ type ListUsageMetersData = {
|
|
|
16187
16195
|
*/
|
|
16188
16196
|
meter_type?: string;
|
|
16189
16197
|
/**
|
|
16190
|
-
* Filter by what the spend was incurred for. `eval` is an eval run's item generations and `eval_judge` an `llm_judge` scorer's own completion, so verification spend is `source` in (`eval`, `eval_judge`). Ordinary agent traffic carries no source and is matched by
|
|
16198
|
+
* Filter by what the spend was incurred for. `eval` is an eval run's item generations and `eval_judge` an `llm_judge` scorer's own completion, so verification spend is `source` in (`eval`, `eval_judge`); `embedding` is any embedding call. Ordinary agent traffic carries no source and is matched by none of them.
|
|
16191
16199
|
*
|
|
16192
16200
|
*/
|
|
16193
16201
|
source?: string;
|
|
@@ -17868,6 +17876,11 @@ declare class Embeddings {
|
|
|
17868
17876
|
* Provide `input` for a single text or `inputs` for a batch. At least one is required.
|
|
17869
17877
|
* Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.
|
|
17870
17878
|
*
|
|
17879
|
+
* `project_id` names the project the call's token usage is metered against, so
|
|
17880
|
+
* embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
|
|
17881
|
+
* quotas. A project-scoped credential supplies its own project; a call that names
|
|
17882
|
+
* none and is bound to none is served but not metered.
|
|
17883
|
+
*
|
|
17871
17884
|
*/
|
|
17872
17885
|
static createEmbeddings<ThrowOnError extends boolean = false>(options: Options<CreateEmbeddingsData, ThrowOnError>): RequestResult<CreateEmbeddingsResponses, CreateEmbeddingsErrors, ThrowOnError>;
|
|
17873
17886
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -6033,7 +6033,7 @@ type UsageEvent = {
|
|
|
6033
6033
|
*/
|
|
6034
6034
|
meter_type?: string;
|
|
6035
6035
|
/**
|
|
6036
|
-
* What the spend was incurred for. `eval` is an eval run's item generations and `eval_judge` an `llm_judge` scorer's own completion, so verification spend is `source` in (`eval`, `eval_judge`) and the two are distinct so running a suite can be priced apart from grading it. Null for ordinary agent traffic.
|
|
6036
|
+
* What the spend was incurred for. `eval` is an eval run's item generations and `eval_judge` an `llm_judge` scorer's own completion, so verification spend is `source` in (`eval`, `eval_judge`) and the two are distinct so running a suite can be priced apart from grading it. `embedding` is any embedding call — the endpoint, document ingestion, a memory write, or a search's query vector. Null for ordinary agent traffic.
|
|
6037
6037
|
*
|
|
6038
6038
|
*/
|
|
6039
6039
|
source?: string | null;
|
|
@@ -9820,6 +9820,10 @@ type ReplaceDocumentTagsResponses = {
|
|
|
9820
9820
|
type ReplaceDocumentTagsResponse = ReplaceDocumentTagsResponses[keyof ReplaceDocumentTagsResponses];
|
|
9821
9821
|
type CreateEmbeddingsData = {
|
|
9822
9822
|
body: {
|
|
9823
|
+
/**
|
|
9824
|
+
* Project the call's usage is billed to. Optional; a project-scoped credential supplies its own. Requires write access to the named project.
|
|
9825
|
+
*/
|
|
9826
|
+
project_id?: string;
|
|
9823
9827
|
/**
|
|
9824
9828
|
* Single text to embed.
|
|
9825
9829
|
*/
|
|
@@ -9842,6 +9846,10 @@ type CreateEmbeddingsErrors = {
|
|
|
9842
9846
|
* Unauthorized
|
|
9843
9847
|
*/
|
|
9844
9848
|
401: ErrorResponse;
|
|
9849
|
+
/**
|
|
9850
|
+
* The caller cannot write to the named `project_id`
|
|
9851
|
+
*/
|
|
9852
|
+
403: ErrorResponse;
|
|
9845
9853
|
/**
|
|
9846
9854
|
* Embedding service not configured
|
|
9847
9855
|
*/
|
|
@@ -16187,7 +16195,7 @@ type ListUsageMetersData = {
|
|
|
16187
16195
|
*/
|
|
16188
16196
|
meter_type?: string;
|
|
16189
16197
|
/**
|
|
16190
|
-
* Filter by what the spend was incurred for. `eval` is an eval run's item generations and `eval_judge` an `llm_judge` scorer's own completion, so verification spend is `source` in (`eval`, `eval_judge`). Ordinary agent traffic carries no source and is matched by
|
|
16198
|
+
* Filter by what the spend was incurred for. `eval` is an eval run's item generations and `eval_judge` an `llm_judge` scorer's own completion, so verification spend is `source` in (`eval`, `eval_judge`); `embedding` is any embedding call. Ordinary agent traffic carries no source and is matched by none of them.
|
|
16191
16199
|
*
|
|
16192
16200
|
*/
|
|
16193
16201
|
source?: string;
|
|
@@ -17868,6 +17876,11 @@ declare class Embeddings {
|
|
|
17868
17876
|
* Provide `input` for a single text or `inputs` for a batch. At least one is required.
|
|
17869
17877
|
* Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.
|
|
17870
17878
|
*
|
|
17879
|
+
* `project_id` names the project the call's token usage is metered against, so
|
|
17880
|
+
* embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
|
|
17881
|
+
* quotas. A project-scoped credential supplies its own project; a call that names
|
|
17882
|
+
* none and is bound to none is served but not metered.
|
|
17883
|
+
*
|
|
17871
17884
|
*/
|
|
17872
17885
|
static createEmbeddings<ThrowOnError extends boolean = false>(options: Options<CreateEmbeddingsData, ThrowOnError>): RequestResult<CreateEmbeddingsResponses, CreateEmbeddingsErrors, ThrowOnError>;
|
|
17873
17886
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1693,6 +1693,11 @@ var Embeddings = class {
|
|
|
1693
1693
|
* Provide `input` for a single text or `inputs` for a batch. At least one is required.
|
|
1694
1694
|
* Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.
|
|
1695
1695
|
*
|
|
1696
|
+
* `project_id` names the project the call's token usage is metered against, so
|
|
1697
|
+
* embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens`
|
|
1698
|
+
* quotas. A project-scoped credential supplies its own project; a call that names
|
|
1699
|
+
* none and is bound to none is served but not metered.
|
|
1700
|
+
*
|
|
1696
1701
|
*/
|
|
1697
1702
|
static createEmbeddings(options) {
|
|
1698
1703
|
return (options.client ?? client).post({
|