@soat/sdk 0.74.0 → 0.76.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.d.cts CHANGED
@@ -1257,17 +1257,13 @@ type UpsertProviderPricesRequest = {
1257
1257
  }>;
1258
1258
  };
1259
1259
  type ProviderModelsResponse = {
1260
- /**
1261
- * The provider slug the listing came from
1262
- */
1263
- provider: string;
1264
1260
  /**
1265
1261
  * Models matching `q` across every page
1266
1262
  */
1267
1263
  total: number;
1268
1264
  limit: number;
1269
1265
  offset: number;
1270
- models: Array<{
1266
+ data: Array<{
1271
1267
  /**
1272
1268
  * The provider-native model id, ready to use as `default_model` or an agent's `model`
1273
1269
  *
@@ -3115,6 +3111,10 @@ type ToolResourceProperties = {
3115
3111
  * Request body encoding for `POST`/`PUT`/`PATCH`: `json` (default) or `multipart`. Incompatible with `auth.type: aws_sigv4`.
3116
3112
  */
3117
3113
  body_mode?: string | null;
3114
+ /**
3115
+ * How a 2xx response body is returned: `json` (default) or `base64`, which returns `{ content_type, filename, data_base64 }` for binary targets.
3116
+ */
3117
+ response_mode?: string | null;
3118
3118
  /**
3119
3119
  * Computed request credential. `type` is `aws_sigv4` (with `region`, `service`, `access_key_id`, `secret_access_key` and optional `session_token`) or `gcp_service_account` (with `credentials` and `scopes`). Credential fields accept `{{secret:...}}` references.
3120
3120
  */
@@ -6750,7 +6750,7 @@ type Tool = {
6750
6750
  [key: string]: unknown;
6751
6751
  } | null;
6752
6752
  /**
6753
- * Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, and `body_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself).
6753
+ * Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none; a body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`.
6754
6754
  *
6755
6755
  * `auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:
6756
6756
  *
@@ -6943,7 +6943,7 @@ type CallToolRequest = {
6943
6943
  };
6944
6944
  };
6945
6945
  /**
6946
- * Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, and `body_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself).
6946
+ * Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none; a body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`.
6947
6947
  *
6948
6948
  * `auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:
6949
6949
  *
@@ -6976,6 +6976,10 @@ type ToolExecuteConfig = {
6976
6976
  * Request body encoding. Incompatible with `auth.type: aws_sigv4`.
6977
6977
  */
6978
6978
  body_mode?: 'json' | 'multipart' | null;
6979
+ /**
6980
+ * How a 2xx response body is returned. `base64` returns `{ content_type, filename, data_base64 }` for binary targets.
6981
+ */
6982
+ response_mode?: 'json' | 'base64' | null;
6979
6983
  auth?: ToolExecuteAuthConfig;
6980
6984
  } | null;
6981
6985
  /**
package/dist/index.d.mts CHANGED
@@ -1257,17 +1257,13 @@ type UpsertProviderPricesRequest = {
1257
1257
  }>;
1258
1258
  };
1259
1259
  type ProviderModelsResponse = {
1260
- /**
1261
- * The provider slug the listing came from
1262
- */
1263
- provider: string;
1264
1260
  /**
1265
1261
  * Models matching `q` across every page
1266
1262
  */
1267
1263
  total: number;
1268
1264
  limit: number;
1269
1265
  offset: number;
1270
- models: Array<{
1266
+ data: Array<{
1271
1267
  /**
1272
1268
  * The provider-native model id, ready to use as `default_model` or an agent's `model`
1273
1269
  *
@@ -3115,6 +3111,10 @@ type ToolResourceProperties = {
3115
3111
  * Request body encoding for `POST`/`PUT`/`PATCH`: `json` (default) or `multipart`. Incompatible with `auth.type: aws_sigv4`.
3116
3112
  */
3117
3113
  body_mode?: string | null;
3114
+ /**
3115
+ * How a 2xx response body is returned: `json` (default) or `base64`, which returns `{ content_type, filename, data_base64 }` for binary targets.
3116
+ */
3117
+ response_mode?: string | null;
3118
3118
  /**
3119
3119
  * Computed request credential. `type` is `aws_sigv4` (with `region`, `service`, `access_key_id`, `secret_access_key` and optional `session_token`) or `gcp_service_account` (with `credentials` and `scopes`). Credential fields accept `{{secret:...}}` references.
3120
3120
  */
@@ -6750,7 +6750,7 @@ type Tool = {
6750
6750
  [key: string]: unknown;
6751
6751
  } | null;
6752
6752
  /**
6753
- * Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, and `body_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself).
6753
+ * Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none; a body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`.
6754
6754
  *
6755
6755
  * `auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:
6756
6756
  *
@@ -6943,7 +6943,7 @@ type CallToolRequest = {
6943
6943
  };
6944
6944
  };
6945
6945
  /**
6946
- * Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, and `body_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself).
6946
+ * Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none; a body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`.
6947
6947
  *
6948
6948
  * `auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:
6949
6949
  *
@@ -6976,6 +6976,10 @@ type ToolExecuteConfig = {
6976
6976
  * Request body encoding. Incompatible with `auth.type: aws_sigv4`.
6977
6977
  */
6978
6978
  body_mode?: 'json' | 'multipart' | null;
6979
+ /**
6980
+ * How a 2xx response body is returned. `base64` returns `{ content_type, filename, data_base64 }` for binary targets.
6981
+ */
6982
+ response_mode?: 'json' | 'base64' | null;
6979
6983
  auth?: ToolExecuteAuthConfig;
6980
6984
  } | null;
6981
6985
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.74.0",
3
+ "version": "0.76.0",
4
4
  "description": "TypeScript SDK for SOAT — open-source infrastructure for production-ready AI agents.",
5
5
  "keywords": [
6
6
  "ai-agents",