@soat/sdk 0.13.6 → 0.13.8

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.mjs CHANGED
@@ -777,9 +777,24 @@ var Agents = class {
777
777
  });
778
778
  }
779
779
  /**
780
+ * Partially update an agent
781
+ *
782
+ * Partially updates an existing agent. Identical to PUT — both perform partial updates.
783
+ */
784
+ static patchAgent(options) {
785
+ return (options.client ?? client).patch({
786
+ url: "/api/v1/agents/{agent_id}",
787
+ ...options,
788
+ headers: {
789
+ "Content-Type": "application/json",
790
+ ...options.headers
791
+ }
792
+ });
793
+ }
794
+ /**
780
795
  * Update an agent
781
796
  *
782
- * Updates an existing agent.
797
+ * Updates an existing agent. Identical to PATCH — both perform partial updates.
783
798
  */
784
799
  static updateAgent(options) {
785
800
  return (options.client ?? client).put({
@@ -1289,6 +1304,44 @@ var Documents = class {
1289
1304
  });
1290
1305
  }
1291
1306
  /**
1307
+ * Get document ingestion status
1308
+ *
1309
+ * Returns a lightweight ingestion status payload for polling — `status`,
1310
+ * `chunk_count`, `total_pages`, and (when failed) `error`. Unlike
1311
+ * `GET /documents/{document_id}`, it never returns the assembled chunk
1312
+ * content, so it is cheap to poll on large documents. A document whose
1313
+ * ingestion has stalled (no progress past the configured timeout) is
1314
+ * transitioned to `failed` with `error=INGESTION_TIMEOUT` on read.
1315
+ *
1316
+ */
1317
+ static getDocumentStatus(options) {
1318
+ return (options.client ?? client).get({
1319
+ url: "/api/v1/documents/{document_id}/status",
1320
+ ...options
1321
+ });
1322
+ }
1323
+ /**
1324
+ * Re-ingest an existing document
1325
+ *
1326
+ * Re-runs ingestion for an existing document against its already-stored
1327
+ * source file. Existing chunks are discarded and the document is reset to
1328
+ * `status=pending` before re-processing. Use this to recover a document
1329
+ * stuck in `processing`/`failed` or to re-chunk with a different strategy
1330
+ * without re-uploading the file. Async by default (`202`); pass
1331
+ * `?async=false` to run synchronously (`201`).
1332
+ *
1333
+ */
1334
+ static reingestDocument(options) {
1335
+ return (options.client ?? client).post({
1336
+ url: "/api/v1/documents/{document_id}/ingest",
1337
+ ...options,
1338
+ headers: {
1339
+ "Content-Type": "application/json",
1340
+ ...options.headers
1341
+ }
1342
+ });
1343
+ }
1344
+ /**
1292
1345
  * Get document tags
1293
1346
  *
1294
1347
  * Returns all tags attached to the document
@@ -1411,7 +1464,7 @@ var Files = class {
1411
1464
  /**
1412
1465
  * Create a presigned upload URL
1413
1466
  *
1414
- * Creates a short-lived, single-use presigned upload URL — the local-storage equivalent of an S3 presigned URL. The client then uploads the file content directly to the returned `upload_url` via `POST /api/v1/files/upload/{token}`, bypassing MCP payload size limits. When the server is configured with `SERVER_BASE_URL`, `upload_url` is a fully-qualified absolute URL so MCP agents and other clients can POST to it without knowing the server base URL in advance.
1467
+ * Creates a short-lived, single-use presigned upload URL — the local-storage equivalent of an S3 presigned URL. The client then uploads the file content directly to the returned `upload_url` via `POST /api/v1/files/upload/{token}`, bypassing MCP payload size limits. When the server is configured with `SOAT_BASE_URL`, `upload_url` is a fully-qualified absolute URL so MCP agents and other clients can POST to it without knowing the server base URL in advance.
1415
1468
  */
1416
1469
  static createPresignedUrl(options) {
1417
1470
  return (options.client ?? client).post({
@@ -2099,6 +2152,21 @@ var Projects = class {
2099
2152
  ...options
2100
2153
  });
2101
2154
  }
2155
+ /**
2156
+ * Rename a project
2157
+ *
2158
+ * Updates a project's name. Requires admin role.
2159
+ */
2160
+ static updateProject(options) {
2161
+ return (options.client ?? client).patch({
2162
+ url: "/api/v1/projects/{project_id}",
2163
+ ...options,
2164
+ headers: {
2165
+ "Content-Type": "application/json",
2166
+ ...options.headers
2167
+ }
2168
+ });
2169
+ }
2102
2170
  };
2103
2171
  var Secrets = class {
2104
2172
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.13.6",
3
+ "version": "0.13.8",
4
4
  "description": "TypeScript SDK for the SOAT API",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",