@soat/sdk 0.13.9 → 0.13.10

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 CHANGED
@@ -1480,7 +1480,7 @@ var Files = class {
1480
1480
  /**
1481
1481
  * Upload a file using an upload token
1482
1482
  *
1483
- * Uploads file content authorized by a single-use token from `POST /api/v1/files/presigned-url`. No bearer credential is required — the token is the credential. Accepts either multipart/form-data (field `file`) or JSON with a base64-encoded `content` field. Excluded from the MCP tool surface; clients call it directly over HTTP.
1483
+ * Uploads file content authorized by a single-use token from `POST /api/v1/files/presigned-url`. No bearer credential is required — the token is the credential. Accepts either multipart/form-data (field `file`) or JSON with a base64-encoded `content` field.
1484
1484
  */
1485
1485
  static uploadFileWithToken(options) {
1486
1486
  return (options.client ?? client).post({
package/dist/index.d.cts CHANGED
@@ -533,6 +533,12 @@ type Agent = {
533
533
  }>;
534
534
  }>;
535
535
  } | null;
536
+ /**
537
+ * JSON Schema describing the structured object the model must return. When set, non-streaming generations use the AI SDK to constrain output to this schema; the parsed value is returned as `output.object` in the generation response. See the Structured Output section in the Agents module docs.
538
+ */
539
+ output_schema?: {
540
+ [key: string]: unknown;
541
+ } | null;
536
542
  /**
537
543
  * Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
538
544
  */
@@ -673,6 +679,12 @@ type CreateAgentRequest = {
673
679
  }>;
674
680
  }>;
675
681
  } | null;
682
+ /**
683
+ * JSON Schema describing the structured object the model must return. When set, non-streaming generations use the AI SDK to constrain output to this schema; the parsed value is returned as `output.object` in the generation response. See the Structured Output section in the Agents module docs.
684
+ */
685
+ output_schema?: {
686
+ [key: string]: unknown;
687
+ } | null;
676
688
  /**
677
689
  * Maximum number of recent messages included in the context window. Null means no limit.
678
690
  */
@@ -804,6 +816,12 @@ type UpdateAgentRequest = {
804
816
  }>;
805
817
  }>;
806
818
  } | null;
819
+ /**
820
+ * JSON Schema describing the structured object the model must return. When set, non-streaming generations use the AI SDK to constrain output to this schema; the parsed value is returned as `output.object` in the generation response. See the Structured Output section in the Agents module docs.
821
+ */
822
+ output_schema?: {
823
+ [key: string]: unknown;
824
+ } | null;
807
825
  /**
808
826
  * Maximum number of recent messages included in the context window. Null means no limit.
809
827
  */
@@ -965,6 +983,12 @@ type AgentGenerationResponse = {
965
983
  * Final text output (when completed)
966
984
  */
967
985
  text?: string | null;
986
+ /**
987
+ * Structured object matching the agent's `output_schema` (when completed and `output_schema` is set)
988
+ */
989
+ object?: {
990
+ [key: string]: unknown;
991
+ } | null;
968
992
  /**
969
993
  * Pending tool calls (when requires_action)
970
994
  */
@@ -1746,6 +1770,12 @@ type AgentResourceProperties = {
1746
1770
  }>;
1747
1771
  }>;
1748
1772
  } | null;
1773
+ /**
1774
+ * JSON Schema describing the structured object the model must return. Non-streaming generations are constrained to this schema; the parsed value is returned as `output.object`.
1775
+ */
1776
+ output_schema?: {
1777
+ [key: string]: unknown;
1778
+ } | null;
1749
1779
  };
1750
1780
  /**
1751
1781
  * Creates a stateful conversation actor that wraps an agent or chat session and optionally links to a memory store.
@@ -9510,7 +9540,7 @@ declare class Files {
9510
9540
  /**
9511
9541
  * Upload a file using an upload token
9512
9542
  *
9513
- * Uploads file content authorized by a single-use token from `POST /api/v1/files/presigned-url`. No bearer credential is required — the token is the credential. Accepts either multipart/form-data (field `file`) or JSON with a base64-encoded `content` field. Excluded from the MCP tool surface; clients call it directly over HTTP.
9543
+ * Uploads file content authorized by a single-use token from `POST /api/v1/files/presigned-url`. No bearer credential is required — the token is the credential. Accepts either multipart/form-data (field `file`) or JSON with a base64-encoded `content` field.
9514
9544
  */
9515
9545
  static uploadFileWithToken<ThrowOnError extends boolean = false>(options: Options<UploadFileWithTokenData, ThrowOnError>): RequestResult<UploadFileWithTokenResponses, UploadFileWithTokenErrors, ThrowOnError>;
9516
9546
  /**
package/dist/index.d.mts CHANGED
@@ -533,6 +533,12 @@ type Agent = {
533
533
  }>;
534
534
  }>;
535
535
  } | null;
536
+ /**
537
+ * JSON Schema describing the structured object the model must return. When set, non-streaming generations use the AI SDK to constrain output to this schema; the parsed value is returned as `output.object` in the generation response. See the Structured Output section in the Agents module docs.
538
+ */
539
+ output_schema?: {
540
+ [key: string]: unknown;
541
+ } | null;
536
542
  /**
537
543
  * Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
538
544
  */
@@ -673,6 +679,12 @@ type CreateAgentRequest = {
673
679
  }>;
674
680
  }>;
675
681
  } | null;
682
+ /**
683
+ * JSON Schema describing the structured object the model must return. When set, non-streaming generations use the AI SDK to constrain output to this schema; the parsed value is returned as `output.object` in the generation response. See the Structured Output section in the Agents module docs.
684
+ */
685
+ output_schema?: {
686
+ [key: string]: unknown;
687
+ } | null;
676
688
  /**
677
689
  * Maximum number of recent messages included in the context window. Null means no limit.
678
690
  */
@@ -804,6 +816,12 @@ type UpdateAgentRequest = {
804
816
  }>;
805
817
  }>;
806
818
  } | null;
819
+ /**
820
+ * JSON Schema describing the structured object the model must return. When set, non-streaming generations use the AI SDK to constrain output to this schema; the parsed value is returned as `output.object` in the generation response. See the Structured Output section in the Agents module docs.
821
+ */
822
+ output_schema?: {
823
+ [key: string]: unknown;
824
+ } | null;
807
825
  /**
808
826
  * Maximum number of recent messages included in the context window. Null means no limit.
809
827
  */
@@ -965,6 +983,12 @@ type AgentGenerationResponse = {
965
983
  * Final text output (when completed)
966
984
  */
967
985
  text?: string | null;
986
+ /**
987
+ * Structured object matching the agent's `output_schema` (when completed and `output_schema` is set)
988
+ */
989
+ object?: {
990
+ [key: string]: unknown;
991
+ } | null;
968
992
  /**
969
993
  * Pending tool calls (when requires_action)
970
994
  */
@@ -1746,6 +1770,12 @@ type AgentResourceProperties = {
1746
1770
  }>;
1747
1771
  }>;
1748
1772
  } | null;
1773
+ /**
1774
+ * JSON Schema describing the structured object the model must return. Non-streaming generations are constrained to this schema; the parsed value is returned as `output.object`.
1775
+ */
1776
+ output_schema?: {
1777
+ [key: string]: unknown;
1778
+ } | null;
1749
1779
  };
1750
1780
  /**
1751
1781
  * Creates a stateful conversation actor that wraps an agent or chat session and optionally links to a memory store.
@@ -9510,7 +9540,7 @@ declare class Files {
9510
9540
  /**
9511
9541
  * Upload a file using an upload token
9512
9542
  *
9513
- * Uploads file content authorized by a single-use token from `POST /api/v1/files/presigned-url`. No bearer credential is required — the token is the credential. Accepts either multipart/form-data (field `file`) or JSON with a base64-encoded `content` field. Excluded from the MCP tool surface; clients call it directly over HTTP.
9543
+ * Uploads file content authorized by a single-use token from `POST /api/v1/files/presigned-url`. No bearer credential is required — the token is the credential. Accepts either multipart/form-data (field `file`) or JSON with a base64-encoded `content` field.
9514
9544
  */
9515
9545
  static uploadFileWithToken<ThrowOnError extends boolean = false>(options: Options<UploadFileWithTokenData, ThrowOnError>): RequestResult<UploadFileWithTokenResponses, UploadFileWithTokenErrors, ThrowOnError>;
9516
9546
  /**
package/dist/index.mjs CHANGED
@@ -1479,7 +1479,7 @@ var Files = class {
1479
1479
  /**
1480
1480
  * Upload a file using an upload token
1481
1481
  *
1482
- * Uploads file content authorized by a single-use token from `POST /api/v1/files/presigned-url`. No bearer credential is required — the token is the credential. Accepts either multipart/form-data (field `file`) or JSON with a base64-encoded `content` field. Excluded from the MCP tool surface; clients call it directly over HTTP.
1482
+ * Uploads file content authorized by a single-use token from `POST /api/v1/files/presigned-url`. No bearer credential is required — the token is the credential. Accepts either multipart/form-data (field `file`) or JSON with a base64-encoded `content` field.
1483
1483
  */
1484
1484
  static uploadFileWithToken(options) {
1485
1485
  return (options.client ?? client).post({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.13.9",
3
+ "version": "0.13.10",
4
4
  "description": "TypeScript SDK for the SOAT API",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",