@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.cjs +70 -2
- package/dist/index.d.cts +440 -175
- package/dist/index.d.mts +440 -175
- package/dist/index.mjs +70 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -778,9 +778,24 @@ var Agents = class {
|
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
780
|
/**
|
|
781
|
+
* Partially update an agent
|
|
782
|
+
*
|
|
783
|
+
* Partially updates an existing agent. Identical to PUT — both perform partial updates.
|
|
784
|
+
*/
|
|
785
|
+
static patchAgent(options) {
|
|
786
|
+
return (options.client ?? client).patch({
|
|
787
|
+
url: "/api/v1/agents/{agent_id}",
|
|
788
|
+
...options,
|
|
789
|
+
headers: {
|
|
790
|
+
"Content-Type": "application/json",
|
|
791
|
+
...options.headers
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
781
796
|
* Update an agent
|
|
782
797
|
*
|
|
783
|
-
* Updates an existing agent.
|
|
798
|
+
* Updates an existing agent. Identical to PATCH — both perform partial updates.
|
|
784
799
|
*/
|
|
785
800
|
static updateAgent(options) {
|
|
786
801
|
return (options.client ?? client).put({
|
|
@@ -1290,6 +1305,44 @@ var Documents = class {
|
|
|
1290
1305
|
});
|
|
1291
1306
|
}
|
|
1292
1307
|
/**
|
|
1308
|
+
* Get document ingestion status
|
|
1309
|
+
*
|
|
1310
|
+
* Returns a lightweight ingestion status payload for polling — `status`,
|
|
1311
|
+
* `chunk_count`, `total_pages`, and (when failed) `error`. Unlike
|
|
1312
|
+
* `GET /documents/{document_id}`, it never returns the assembled chunk
|
|
1313
|
+
* content, so it is cheap to poll on large documents. A document whose
|
|
1314
|
+
* ingestion has stalled (no progress past the configured timeout) is
|
|
1315
|
+
* transitioned to `failed` with `error=INGESTION_TIMEOUT` on read.
|
|
1316
|
+
*
|
|
1317
|
+
*/
|
|
1318
|
+
static getDocumentStatus(options) {
|
|
1319
|
+
return (options.client ?? client).get({
|
|
1320
|
+
url: "/api/v1/documents/{document_id}/status",
|
|
1321
|
+
...options
|
|
1322
|
+
});
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Re-ingest an existing document
|
|
1326
|
+
*
|
|
1327
|
+
* Re-runs ingestion for an existing document against its already-stored
|
|
1328
|
+
* source file. Existing chunks are discarded and the document is reset to
|
|
1329
|
+
* `status=pending` before re-processing. Use this to recover a document
|
|
1330
|
+
* stuck in `processing`/`failed` or to re-chunk with a different strategy
|
|
1331
|
+
* without re-uploading the file. Async by default (`202`); pass
|
|
1332
|
+
* `?async=false` to run synchronously (`201`).
|
|
1333
|
+
*
|
|
1334
|
+
*/
|
|
1335
|
+
static reingestDocument(options) {
|
|
1336
|
+
return (options.client ?? client).post({
|
|
1337
|
+
url: "/api/v1/documents/{document_id}/ingest",
|
|
1338
|
+
...options,
|
|
1339
|
+
headers: {
|
|
1340
|
+
"Content-Type": "application/json",
|
|
1341
|
+
...options.headers
|
|
1342
|
+
}
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
/**
|
|
1293
1346
|
* Get document tags
|
|
1294
1347
|
*
|
|
1295
1348
|
* Returns all tags attached to the document
|
|
@@ -1412,7 +1465,7 @@ var Files = class {
|
|
|
1412
1465
|
/**
|
|
1413
1466
|
* Create a presigned upload URL
|
|
1414
1467
|
*
|
|
1415
|
-
* 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 `
|
|
1468
|
+
* 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.
|
|
1416
1469
|
*/
|
|
1417
1470
|
static createPresignedUrl(options) {
|
|
1418
1471
|
return (options.client ?? client).post({
|
|
@@ -2100,6 +2153,21 @@ var Projects = class {
|
|
|
2100
2153
|
...options
|
|
2101
2154
|
});
|
|
2102
2155
|
}
|
|
2156
|
+
/**
|
|
2157
|
+
* Rename a project
|
|
2158
|
+
*
|
|
2159
|
+
* Updates a project's name. Requires admin role.
|
|
2160
|
+
*/
|
|
2161
|
+
static updateProject(options) {
|
|
2162
|
+
return (options.client ?? client).patch({
|
|
2163
|
+
url: "/api/v1/projects/{project_id}",
|
|
2164
|
+
...options,
|
|
2165
|
+
headers: {
|
|
2166
|
+
"Content-Type": "application/json",
|
|
2167
|
+
...options.headers
|
|
2168
|
+
}
|
|
2169
|
+
});
|
|
2170
|
+
}
|
|
2103
2171
|
};
|
|
2104
2172
|
var Secrets = class {
|
|
2105
2173
|
/**
|