@soat/sdk 0.71.1 → 0.71.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.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 triggered this one. Set for sub-agent invocations. Null for top-level generations.
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 list responses.
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; omitted from run list responses.
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
  */
@@ -8868,7 +8868,7 @@ type CreateAgentGenerationErrors = {
8868
8868
  */
8869
8869
  409: ErrorResponse;
8870
8870
  /**
8871
- * `SHARE_CAP_EXCEEDED`: the agent is another project's, reached through a share whose `cap` is spent for the window. Carries a `Retry-After` header and `error.meta.retry_after`.
8871
+ * `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
8872
  */
8873
8873
  429: ErrorResponse;
8874
8874
  /**
@@ -8921,6 +8921,11 @@ type SubmitAgentToolOutputsErrors = {
8921
8921
  * Agent or generation not found
8922
8922
  */
8923
8923
  404: ErrorResponse;
8924
+ /**
8925
+ * 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.
8926
+ *
8927
+ */
8928
+ 409: ErrorResponse;
8924
8929
  /**
8925
8930
  * 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
8931
  *
@@ -10772,6 +10777,10 @@ type GenerateConversationMessageErrors = {
10772
10777
  * Conversation or actor not found
10773
10778
  */
10774
10779
  404: ErrorResponse;
10780
+ /**
10781
+ * `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.
10782
+ */
10783
+ 429: ErrorResponse;
10775
10784
  /**
10776
10785
  * Streaming not implemented
10777
10786
  */
@@ -14243,7 +14252,7 @@ type ListGenerationsData = {
14243
14252
  */
14244
14253
  actor_id?: string;
14245
14254
  /**
14246
- * Filter by the public ID of the parent generation. Returns all generations triggered by that generation — sub-agent invocations. Null-initiated (top-level) generations are not returned.
14255
+ * 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
14256
  *
14248
14257
  */
14249
14258
  initiator_generation_id?: string;
@@ -18590,6 +18599,10 @@ type AddSessionMessageErrors = {
18590
18599
  * Not found
18591
18600
  */
18592
18601
  404: ErrorResponse;
18602
+ /**
18603
+ * `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.
18604
+ */
18605
+ 429: ErrorResponse;
18593
18606
  };
18594
18607
  type AddSessionMessageError = AddSessionMessageErrors[keyof AddSessionMessageErrors];
18595
18608
  type AddSessionMessageResponses = {
@@ -18640,6 +18653,10 @@ type GenerateSessionResponseErrors = {
18640
18653
  * Session has expired due to inactivity
18641
18654
  */
18642
18655
  410: ErrorResponse;
18656
+ /**
18657
+ * `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.
18658
+ */
18659
+ 429: ErrorResponse;
18643
18660
  /**
18644
18661
  * 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
18662
  *
@@ -18685,6 +18702,11 @@ type SubmitSessionToolOutputsErrors = {
18685
18702
  * Not found
18686
18703
  */
18687
18704
  404: ErrorResponse;
18705
+ /**
18706
+ * 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.
18707
+ *
18708
+ */
18709
+ 409: ErrorResponse;
18688
18710
  };
18689
18711
  type SubmitSessionToolOutputsError = SubmitSessionToolOutputsErrors[keyof SubmitSessionToolOutputsErrors];
18690
18712
  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 triggered this one. Set for sub-agent invocations. Null for top-level generations.
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 list responses.
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; omitted from run list responses.
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
  */
@@ -8868,7 +8868,7 @@ type CreateAgentGenerationErrors = {
8868
8868
  */
8869
8869
  409: ErrorResponse;
8870
8870
  /**
8871
- * `SHARE_CAP_EXCEEDED`: the agent is another project's, reached through a share whose `cap` is spent for the window. Carries a `Retry-After` header and `error.meta.retry_after`.
8871
+ * `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
8872
  */
8873
8873
  429: ErrorResponse;
8874
8874
  /**
@@ -8921,6 +8921,11 @@ type SubmitAgentToolOutputsErrors = {
8921
8921
  * Agent or generation not found
8922
8922
  */
8923
8923
  404: ErrorResponse;
8924
+ /**
8925
+ * 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.
8926
+ *
8927
+ */
8928
+ 409: ErrorResponse;
8924
8929
  /**
8925
8930
  * 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
8931
  *
@@ -10772,6 +10777,10 @@ type GenerateConversationMessageErrors = {
10772
10777
  * Conversation or actor not found
10773
10778
  */
10774
10779
  404: ErrorResponse;
10780
+ /**
10781
+ * `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.
10782
+ */
10783
+ 429: ErrorResponse;
10775
10784
  /**
10776
10785
  * Streaming not implemented
10777
10786
  */
@@ -14243,7 +14252,7 @@ type ListGenerationsData = {
14243
14252
  */
14244
14253
  actor_id?: string;
14245
14254
  /**
14246
- * Filter by the public ID of the parent generation. Returns all generations triggered by that generation — sub-agent invocations. Null-initiated (top-level) generations are not returned.
14255
+ * 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
14256
  *
14248
14257
  */
14249
14258
  initiator_generation_id?: string;
@@ -18590,6 +18599,10 @@ type AddSessionMessageErrors = {
18590
18599
  * Not found
18591
18600
  */
18592
18601
  404: ErrorResponse;
18602
+ /**
18603
+ * `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.
18604
+ */
18605
+ 429: ErrorResponse;
18593
18606
  };
18594
18607
  type AddSessionMessageError = AddSessionMessageErrors[keyof AddSessionMessageErrors];
18595
18608
  type AddSessionMessageResponses = {
@@ -18640,6 +18653,10 @@ type GenerateSessionResponseErrors = {
18640
18653
  * Session has expired due to inactivity
18641
18654
  */
18642
18655
  410: ErrorResponse;
18656
+ /**
18657
+ * `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.
18658
+ */
18659
+ 429: ErrorResponse;
18643
18660
  /**
18644
18661
  * 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
18662
  *
@@ -18685,6 +18702,11 @@ type SubmitSessionToolOutputsErrors = {
18685
18702
  * Not found
18686
18703
  */
18687
18704
  404: ErrorResponse;
18705
+ /**
18706
+ * 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.
18707
+ *
18708
+ */
18709
+ 409: ErrorResponse;
18688
18710
  };
18689
18711
  type SubmitSessionToolOutputsError = SubmitSessionToolOutputsErrors[keyof SubmitSessionToolOutputsErrors];
18690
18712
  type SubmitSessionToolOutputsResponses = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.71.1",
3
+ "version": "0.71.2",
4
4
  "description": "TypeScript SDK for SOAT — open-source infrastructure for production-ready AI agents.",
5
5
  "keywords": [
6
6
  "ai-agents",