@soat/sdk 0.33.1 → 0.34.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.cjs +28 -1
- package/dist/index.d.cts +246 -21
- package/dist/index.d.mts +246 -21
- package/dist/index.mjs +28 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1229,6 +1229,30 @@ var AuditLog = class {
|
|
|
1229
1229
|
});
|
|
1230
1230
|
}
|
|
1231
1231
|
};
|
|
1232
|
+
var Chains = class {
|
|
1233
|
+
/**
|
|
1234
|
+
* List continuation chains
|
|
1235
|
+
*
|
|
1236
|
+
* Returns the continuation chains in a project, newest first. Filter by `status` to find the chains that may still be spending (`active`) or the ones a budget stopped (`budget_exhausted`).
|
|
1237
|
+
*/
|
|
1238
|
+
static listChains(options) {
|
|
1239
|
+
return (options?.client ?? client).get({
|
|
1240
|
+
url: "/api/v1/chains",
|
|
1241
|
+
...options
|
|
1242
|
+
});
|
|
1243
|
+
}
|
|
1244
|
+
/**
|
|
1245
|
+
* Get a continuation chain
|
|
1246
|
+
*
|
|
1247
|
+
* Returns a single continuation chain. To read the generations in it, list generations filtered by `chain_id`.
|
|
1248
|
+
*/
|
|
1249
|
+
static getChain(options) {
|
|
1250
|
+
return (options.client ?? client).get({
|
|
1251
|
+
url: "/api/v1/chains/{chain_id}",
|
|
1252
|
+
...options
|
|
1253
|
+
});
|
|
1254
|
+
}
|
|
1255
|
+
};
|
|
1232
1256
|
var Chats = class {
|
|
1233
1257
|
/**
|
|
1234
1258
|
* List chats
|
|
@@ -3138,7 +3162,7 @@ var Projects = class {
|
|
|
3138
3162
|
/**
|
|
3139
3163
|
* Update a project
|
|
3140
3164
|
*
|
|
3141
|
-
* Updates a project's name, its attached guardrails (`guardrail_ids` — the project-scope baseline governing every tool call by every agent in the project), its orchestration concurrency limit (`max_concurrent_runs`), its inherited model route (`default_model_route_id`), its read-auditing opt-in (`audit_reads_enabled`), its trace-content retention window (`trace_content_retention_days`), and/or its zero-retention setting (`trace_content_mode`). At least one field is required. Requires admin role. Detaching a guardrail (removing an id) additionally requires guardrails:DetachGuardrail.
|
|
3165
|
+
* Updates a project's name, its attached guardrails (`guardrail_ids` — the project-scope baseline governing every tool call by every agent in the project), its orchestration concurrency limit (`max_concurrent_runs`), its continuation-chain ceiling (`max_chain_generations`), its inherited model route (`default_model_route_id`), its read-auditing opt-in (`audit_reads_enabled`), its trace-content retention window (`trace_content_retention_days`), and/or its zero-retention setting (`trace_content_mode`). At least one field is required. Requires admin role. Detaching a guardrail (removing an id) additionally requires guardrails:DetachGuardrail.
|
|
3142
3166
|
*/
|
|
3143
3167
|
static updateProject(options) {
|
|
3144
3168
|
return (options.client ?? client).patch({
|
|
@@ -4344,6 +4368,7 @@ var SoatClient = class {
|
|
|
4344
4368
|
apiKeys;
|
|
4345
4369
|
approvals;
|
|
4346
4370
|
auditLog;
|
|
4371
|
+
chains;
|
|
4347
4372
|
chats;
|
|
4348
4373
|
conversations;
|
|
4349
4374
|
documents;
|
|
@@ -4390,6 +4415,7 @@ var SoatClient = class {
|
|
|
4390
4415
|
this.apiKeys = bindResource(ApiKeys, httpClient);
|
|
4391
4416
|
this.approvals = bindResource(Approvals, httpClient);
|
|
4392
4417
|
this.auditLog = bindResource(AuditLog, httpClient);
|
|
4418
|
+
this.chains = bindResource(Chains, httpClient);
|
|
4393
4419
|
this.chats = bindResource(Chats, httpClient);
|
|
4394
4420
|
this.conversations = bindResource(Conversations, httpClient);
|
|
4395
4421
|
this.documents = bindResource(Documents, httpClient);
|
|
@@ -4430,6 +4456,7 @@ exports.AiProviders = AiProviders;
|
|
|
4430
4456
|
exports.ApiKeys = ApiKeys;
|
|
4431
4457
|
exports.Approvals = Approvals;
|
|
4432
4458
|
exports.AuditLog = AuditLog;
|
|
4459
|
+
exports.Chains = Chains;
|
|
4433
4460
|
exports.Chats = Chats;
|
|
4434
4461
|
exports.Conversations = Conversations;
|
|
4435
4462
|
exports.Documents = Documents;
|