@soat/sdk 0.71.1 → 0.71.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.d.cts +28 -5
- package/dist/index.d.mts +28 -5
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -4149,7 +4149,7 @@ type Generation = {
|
|
|
4149
4149
|
*/
|
|
4150
4150
|
trace_id?: string;
|
|
4151
4151
|
/**
|
|
4152
|
-
* Public ID of the generation that
|
|
4152
|
+
* Public ID of the generation that started this one: a sub-agent invocation, an approval continuation, a client-tool re-handoff or a memory-rule handler turn. Null for top-level generations.
|
|
4153
4153
|
*
|
|
4154
4154
|
*/
|
|
4155
4155
|
initiator_generation_id?: string | null;
|
|
@@ -5735,13 +5735,13 @@ type OrchestrationRun = {
|
|
|
5735
5735
|
*/
|
|
5736
5736
|
node_executions?: Array<NodeExecution>;
|
|
5737
5737
|
/**
|
|
5738
|
-
* What the run cost: token counts and `cost_usd` summed across every metered generation it produced **and every run it started** through `loop` / `sub_orchestration` nodes, at any depth. Present on the single-run read; omitted from run
|
|
5738
|
+
* What the run cost: token counts and `cost_usd` summed across every metered generation it produced **and every run it started** through `loop` / `sub_orchestration` nodes, at any depth. Present only on the single-run read (`GET /api/v1/orchestration-runs/{orchestration_run_id}`); omitted from run lists and from every write's response, including a start with `wait: true`.
|
|
5739
5739
|
*
|
|
5740
5740
|
* A nested child is a run record of its own, so this figure spans several of them. Two consequences: summing `usage` across a list that mixes parents and children double-counts (filter with `nested=false`), and the per-event receipt at `/api/v1/usage/receipt` stays scoped to one run — its line items carry a `node_id` from one graph only.
|
|
5741
5741
|
*/
|
|
5742
5742
|
usage?: UsageTotals;
|
|
5743
5743
|
/**
|
|
5744
|
-
* The same roll-up restricted to **this run's own nodes**, excluding every nested run it started. Equal to `usage` for a run with no children; below it for a run that delegates. Present on the single-run read
|
|
5744
|
+
* The same roll-up restricted to **this run's own nodes**, excluding every nested run it started. Equal to `usage` for a run with no children; below it for a run that delegates. Present only on the single-run read, like `usage`.
|
|
5745
5745
|
*
|
|
5746
5746
|
* This is the field to read to see where cost sits in a run tree — own versus subtree — without walking the children.
|
|
5747
5747
|
*/
|
|
@@ -6249,6 +6249,7 @@ type CreateSessionRequest = {
|
|
|
6249
6249
|
* Optional session name
|
|
6250
6250
|
*/
|
|
6251
6251
|
name?: string;
|
|
6252
|
+
tags?: TagBag;
|
|
6252
6253
|
/**
|
|
6253
6254
|
* Optional public ID of an existing actor to use as the user actor. Actors are created separately (POST /actors); this field only links one. Omit it and the session has no end user, so its generations match no actor-scoped quota.
|
|
6254
6255
|
*
|
|
@@ -8868,7 +8869,7 @@ type CreateAgentGenerationErrors = {
|
|
|
8868
8869
|
*/
|
|
8869
8870
|
409: ErrorResponse;
|
|
8870
8871
|
/**
|
|
8871
|
-
* `SHARE_CAP_EXCEEDED`: the agent is another project's, reached through a share whose `cap` is spent for the window.
|
|
8872
|
+
* `QUOTA_EXCEEDED`: an `enforce`-mode generation quota is exhausted; `error.meta` carries `quota_id`, `metric`, `limit`, `window` and `resets_at`. `SHARE_CAP_EXCEEDED`: the agent is another project's, reached through a share whose `cap` is spent for the window; `error.meta.retry_after` says when. Both carry a `Retry-After` header.
|
|
8872
8873
|
*/
|
|
8873
8874
|
429: ErrorResponse;
|
|
8874
8875
|
/**
|
|
@@ -8921,6 +8922,11 @@ type SubmitAgentToolOutputsErrors = {
|
|
|
8921
8922
|
* Agent or generation not found
|
|
8922
8923
|
*/
|
|
8923
8924
|
404: ErrorResponse;
|
|
8925
|
+
/**
|
|
8926
|
+
* The generation is not paused on client tool calls (GENERATION_NOT_AWAITING_TOOL_OUTPUTS): it never paused, or its outputs were already submitted. Each pause accepts outputs once.
|
|
8927
|
+
*
|
|
8928
|
+
*/
|
|
8929
|
+
409: ErrorResponse;
|
|
8924
8930
|
/**
|
|
8925
8931
|
* Upstream AI provider error (AI_PROVIDER_ERROR); model output that does not satisfy the agent's `output_schema` (OUTPUT_SCHEMA_VALIDATION_FAILED); or a model that wrote a tool invocation out as plain assistant text instead of calling the tool (TEXT_ENCODED_TOOL_CALL — `meta.tool_name` names the tool). The resumed generation is recorded `failed`.
|
|
8926
8932
|
*
|
|
@@ -10772,6 +10778,10 @@ type GenerateConversationMessageErrors = {
|
|
|
10772
10778
|
* Conversation or actor not found
|
|
10773
10779
|
*/
|
|
10774
10780
|
404: ErrorResponse;
|
|
10781
|
+
/**
|
|
10782
|
+
* `QUOTA_EXCEEDED`: an `enforce`-mode generation quota is exhausted. `error.meta` carries `quota_id`, `metric`, `limit`, `window` and `resets_at`, with a `Retry-After` header. Only with `?wait=true`: a background call is answered `202` before the quota is read.
|
|
10783
|
+
*/
|
|
10784
|
+
429: ErrorResponse;
|
|
10775
10785
|
/**
|
|
10776
10786
|
* Streaming not implemented
|
|
10777
10787
|
*/
|
|
@@ -14243,7 +14253,7 @@ type ListGenerationsData = {
|
|
|
14243
14253
|
*/
|
|
14244
14254
|
actor_id?: string;
|
|
14245
14255
|
/**
|
|
14246
|
-
* Filter by the public ID of the parent generation. Returns
|
|
14256
|
+
* Filter by the public ID of the parent generation. Returns every generation started by that generation: sub-agent invocations, approval continuations, client-tool re-handoffs and memory-rule handler turns. Top-level generations are not returned.
|
|
14247
14257
|
*
|
|
14248
14258
|
*/
|
|
14249
14259
|
initiator_generation_id?: string;
|
|
@@ -18590,6 +18600,10 @@ type AddSessionMessageErrors = {
|
|
|
18590
18600
|
* Not found
|
|
18591
18601
|
*/
|
|
18592
18602
|
404: ErrorResponse;
|
|
18603
|
+
/**
|
|
18604
|
+
* `QUOTA_EXCEEDED`: the session auto-generates and an `enforce`-mode generation quota is exhausted. `error.meta` carries `quota_id`, `metric`, `limit`, `window` and `resets_at`, with a `Retry-After` header. The message is saved. A session with `message_delay_seconds` answers `201` before the quota is read.
|
|
18605
|
+
*/
|
|
18606
|
+
429: ErrorResponse;
|
|
18593
18607
|
};
|
|
18594
18608
|
type AddSessionMessageError = AddSessionMessageErrors[keyof AddSessionMessageErrors];
|
|
18595
18609
|
type AddSessionMessageResponses = {
|
|
@@ -18640,6 +18654,10 @@ type GenerateSessionResponseErrors = {
|
|
|
18640
18654
|
* Session has expired due to inactivity
|
|
18641
18655
|
*/
|
|
18642
18656
|
410: ErrorResponse;
|
|
18657
|
+
/**
|
|
18658
|
+
* `QUOTA_EXCEEDED`: an `enforce`-mode generation quota is exhausted. `error.meta` carries `quota_id`, `metric`, `limit`, `window` and `resets_at`, with a `Retry-After` header. Only with `?wait=true`: a background call is answered `202` before the quota is read.
|
|
18659
|
+
*/
|
|
18660
|
+
429: ErrorResponse;
|
|
18643
18661
|
/**
|
|
18644
18662
|
* Upstream AI provider error (AI_PROVIDER_ERROR). The error `meta` includes the `generation_id` and `trace_id` of the failed generation for post-mortem debugging via GET /api/v1/generations/{generation_id}.
|
|
18645
18663
|
*
|
|
@@ -18685,6 +18703,11 @@ type SubmitSessionToolOutputsErrors = {
|
|
|
18685
18703
|
* Not found
|
|
18686
18704
|
*/
|
|
18687
18705
|
404: ErrorResponse;
|
|
18706
|
+
/**
|
|
18707
|
+
* The generation is not paused on client tool calls (GENERATION_NOT_AWAITING_TOOL_OUTPUTS): it never paused, or its outputs were already submitted. Each pause accepts outputs once.
|
|
18708
|
+
*
|
|
18709
|
+
*/
|
|
18710
|
+
409: ErrorResponse;
|
|
18688
18711
|
};
|
|
18689
18712
|
type SubmitSessionToolOutputsError = SubmitSessionToolOutputsErrors[keyof SubmitSessionToolOutputsErrors];
|
|
18690
18713
|
type SubmitSessionToolOutputsResponses = {
|
package/dist/index.d.mts
CHANGED
|
@@ -4149,7 +4149,7 @@ type Generation = {
|
|
|
4149
4149
|
*/
|
|
4150
4150
|
trace_id?: string;
|
|
4151
4151
|
/**
|
|
4152
|
-
* Public ID of the generation that
|
|
4152
|
+
* Public ID of the generation that started this one: a sub-agent invocation, an approval continuation, a client-tool re-handoff or a memory-rule handler turn. Null for top-level generations.
|
|
4153
4153
|
*
|
|
4154
4154
|
*/
|
|
4155
4155
|
initiator_generation_id?: string | null;
|
|
@@ -5735,13 +5735,13 @@ type OrchestrationRun = {
|
|
|
5735
5735
|
*/
|
|
5736
5736
|
node_executions?: Array<NodeExecution>;
|
|
5737
5737
|
/**
|
|
5738
|
-
* What the run cost: token counts and `cost_usd` summed across every metered generation it produced **and every run it started** through `loop` / `sub_orchestration` nodes, at any depth. Present on the single-run read; omitted from run
|
|
5738
|
+
* What the run cost: token counts and `cost_usd` summed across every metered generation it produced **and every run it started** through `loop` / `sub_orchestration` nodes, at any depth. Present only on the single-run read (`GET /api/v1/orchestration-runs/{orchestration_run_id}`); omitted from run lists and from every write's response, including a start with `wait: true`.
|
|
5739
5739
|
*
|
|
5740
5740
|
* A nested child is a run record of its own, so this figure spans several of them. Two consequences: summing `usage` across a list that mixes parents and children double-counts (filter with `nested=false`), and the per-event receipt at `/api/v1/usage/receipt` stays scoped to one run — its line items carry a `node_id` from one graph only.
|
|
5741
5741
|
*/
|
|
5742
5742
|
usage?: UsageTotals;
|
|
5743
5743
|
/**
|
|
5744
|
-
* The same roll-up restricted to **this run's own nodes**, excluding every nested run it started. Equal to `usage` for a run with no children; below it for a run that delegates. Present on the single-run read
|
|
5744
|
+
* The same roll-up restricted to **this run's own nodes**, excluding every nested run it started. Equal to `usage` for a run with no children; below it for a run that delegates. Present only on the single-run read, like `usage`.
|
|
5745
5745
|
*
|
|
5746
5746
|
* This is the field to read to see where cost sits in a run tree — own versus subtree — without walking the children.
|
|
5747
5747
|
*/
|
|
@@ -6249,6 +6249,7 @@ type CreateSessionRequest = {
|
|
|
6249
6249
|
* Optional session name
|
|
6250
6250
|
*/
|
|
6251
6251
|
name?: string;
|
|
6252
|
+
tags?: TagBag;
|
|
6252
6253
|
/**
|
|
6253
6254
|
* Optional public ID of an existing actor to use as the user actor. Actors are created separately (POST /actors); this field only links one. Omit it and the session has no end user, so its generations match no actor-scoped quota.
|
|
6254
6255
|
*
|
|
@@ -8868,7 +8869,7 @@ type CreateAgentGenerationErrors = {
|
|
|
8868
8869
|
*/
|
|
8869
8870
|
409: ErrorResponse;
|
|
8870
8871
|
/**
|
|
8871
|
-
* `SHARE_CAP_EXCEEDED`: the agent is another project's, reached through a share whose `cap` is spent for the window.
|
|
8872
|
+
* `QUOTA_EXCEEDED`: an `enforce`-mode generation quota is exhausted; `error.meta` carries `quota_id`, `metric`, `limit`, `window` and `resets_at`. `SHARE_CAP_EXCEEDED`: the agent is another project's, reached through a share whose `cap` is spent for the window; `error.meta.retry_after` says when. Both carry a `Retry-After` header.
|
|
8872
8873
|
*/
|
|
8873
8874
|
429: ErrorResponse;
|
|
8874
8875
|
/**
|
|
@@ -8921,6 +8922,11 @@ type SubmitAgentToolOutputsErrors = {
|
|
|
8921
8922
|
* Agent or generation not found
|
|
8922
8923
|
*/
|
|
8923
8924
|
404: ErrorResponse;
|
|
8925
|
+
/**
|
|
8926
|
+
* The generation is not paused on client tool calls (GENERATION_NOT_AWAITING_TOOL_OUTPUTS): it never paused, or its outputs were already submitted. Each pause accepts outputs once.
|
|
8927
|
+
*
|
|
8928
|
+
*/
|
|
8929
|
+
409: ErrorResponse;
|
|
8924
8930
|
/**
|
|
8925
8931
|
* Upstream AI provider error (AI_PROVIDER_ERROR); model output that does not satisfy the agent's `output_schema` (OUTPUT_SCHEMA_VALIDATION_FAILED); or a model that wrote a tool invocation out as plain assistant text instead of calling the tool (TEXT_ENCODED_TOOL_CALL — `meta.tool_name` names the tool). The resumed generation is recorded `failed`.
|
|
8926
8932
|
*
|
|
@@ -10772,6 +10778,10 @@ type GenerateConversationMessageErrors = {
|
|
|
10772
10778
|
* Conversation or actor not found
|
|
10773
10779
|
*/
|
|
10774
10780
|
404: ErrorResponse;
|
|
10781
|
+
/**
|
|
10782
|
+
* `QUOTA_EXCEEDED`: an `enforce`-mode generation quota is exhausted. `error.meta` carries `quota_id`, `metric`, `limit`, `window` and `resets_at`, with a `Retry-After` header. Only with `?wait=true`: a background call is answered `202` before the quota is read.
|
|
10783
|
+
*/
|
|
10784
|
+
429: ErrorResponse;
|
|
10775
10785
|
/**
|
|
10776
10786
|
* Streaming not implemented
|
|
10777
10787
|
*/
|
|
@@ -14243,7 +14253,7 @@ type ListGenerationsData = {
|
|
|
14243
14253
|
*/
|
|
14244
14254
|
actor_id?: string;
|
|
14245
14255
|
/**
|
|
14246
|
-
* Filter by the public ID of the parent generation. Returns
|
|
14256
|
+
* Filter by the public ID of the parent generation. Returns every generation started by that generation: sub-agent invocations, approval continuations, client-tool re-handoffs and memory-rule handler turns. Top-level generations are not returned.
|
|
14247
14257
|
*
|
|
14248
14258
|
*/
|
|
14249
14259
|
initiator_generation_id?: string;
|
|
@@ -18590,6 +18600,10 @@ type AddSessionMessageErrors = {
|
|
|
18590
18600
|
* Not found
|
|
18591
18601
|
*/
|
|
18592
18602
|
404: ErrorResponse;
|
|
18603
|
+
/**
|
|
18604
|
+
* `QUOTA_EXCEEDED`: the session auto-generates and an `enforce`-mode generation quota is exhausted. `error.meta` carries `quota_id`, `metric`, `limit`, `window` and `resets_at`, with a `Retry-After` header. The message is saved. A session with `message_delay_seconds` answers `201` before the quota is read.
|
|
18605
|
+
*/
|
|
18606
|
+
429: ErrorResponse;
|
|
18593
18607
|
};
|
|
18594
18608
|
type AddSessionMessageError = AddSessionMessageErrors[keyof AddSessionMessageErrors];
|
|
18595
18609
|
type AddSessionMessageResponses = {
|
|
@@ -18640,6 +18654,10 @@ type GenerateSessionResponseErrors = {
|
|
|
18640
18654
|
* Session has expired due to inactivity
|
|
18641
18655
|
*/
|
|
18642
18656
|
410: ErrorResponse;
|
|
18657
|
+
/**
|
|
18658
|
+
* `QUOTA_EXCEEDED`: an `enforce`-mode generation quota is exhausted. `error.meta` carries `quota_id`, `metric`, `limit`, `window` and `resets_at`, with a `Retry-After` header. Only with `?wait=true`: a background call is answered `202` before the quota is read.
|
|
18659
|
+
*/
|
|
18660
|
+
429: ErrorResponse;
|
|
18643
18661
|
/**
|
|
18644
18662
|
* Upstream AI provider error (AI_PROVIDER_ERROR). The error `meta` includes the `generation_id` and `trace_id` of the failed generation for post-mortem debugging via GET /api/v1/generations/{generation_id}.
|
|
18645
18663
|
*
|
|
@@ -18685,6 +18703,11 @@ type SubmitSessionToolOutputsErrors = {
|
|
|
18685
18703
|
* Not found
|
|
18686
18704
|
*/
|
|
18687
18705
|
404: ErrorResponse;
|
|
18706
|
+
/**
|
|
18707
|
+
* The generation is not paused on client tool calls (GENERATION_NOT_AWAITING_TOOL_OUTPUTS): it never paused, or its outputs were already submitted. Each pause accepts outputs once.
|
|
18708
|
+
*
|
|
18709
|
+
*/
|
|
18710
|
+
409: ErrorResponse;
|
|
18688
18711
|
};
|
|
18689
18712
|
type SubmitSessionToolOutputsError = SubmitSessionToolOutputsErrors[keyof SubmitSessionToolOutputsErrors];
|
|
18690
18713
|
type SubmitSessionToolOutputsResponses = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/sdk",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.4",
|
|
4
4
|
"description": "TypeScript SDK for SOAT — open-source infrastructure for production-ready AI agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
45
|
-
"@ttoss/config": "^1.
|
|
46
|
-
"@ttoss/openapi-codegen": "^0.
|
|
47
|
-
"@types/node": "^26.
|
|
45
|
+
"@ttoss/config": "^1.41.0",
|
|
46
|
+
"@ttoss/openapi-codegen": "^0.6.1",
|
|
47
|
+
"@types/node": "^26.6.4",
|
|
48
48
|
"tsdown": "^0.23.0",
|
|
49
|
-
"tsx": "^4.23.
|
|
49
|
+
"tsx": "^4.23.15",
|
|
50
50
|
"typescript": "~6.0.3"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|