@soat/sdk 0.33.1 → 0.35.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.mjs
CHANGED
|
@@ -1228,6 +1228,30 @@ var AuditLog = class {
|
|
|
1228
1228
|
});
|
|
1229
1229
|
}
|
|
1230
1230
|
};
|
|
1231
|
+
var Chains = class {
|
|
1232
|
+
/**
|
|
1233
|
+
* List continuation chains
|
|
1234
|
+
*
|
|
1235
|
+
* 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`).
|
|
1236
|
+
*/
|
|
1237
|
+
static listChains(options) {
|
|
1238
|
+
return (options?.client ?? client).get({
|
|
1239
|
+
url: "/api/v1/chains",
|
|
1240
|
+
...options
|
|
1241
|
+
});
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
* Get a continuation chain
|
|
1245
|
+
*
|
|
1246
|
+
* Returns a single continuation chain. To read the generations in it, list generations filtered by `chain_id`.
|
|
1247
|
+
*/
|
|
1248
|
+
static getChain(options) {
|
|
1249
|
+
return (options.client ?? client).get({
|
|
1250
|
+
url: "/api/v1/chains/{chain_id}",
|
|
1251
|
+
...options
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
};
|
|
1231
1255
|
var Chats = class {
|
|
1232
1256
|
/**
|
|
1233
1257
|
* List chats
|
|
@@ -3137,7 +3161,7 @@ var Projects = class {
|
|
|
3137
3161
|
/**
|
|
3138
3162
|
* Update a project
|
|
3139
3163
|
*
|
|
3140
|
-
* 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.
|
|
3164
|
+
* 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.
|
|
3141
3165
|
*/
|
|
3142
3166
|
static updateProject(options) {
|
|
3143
3167
|
return (options.client ?? client).patch({
|
|
@@ -4343,6 +4367,7 @@ var SoatClient = class {
|
|
|
4343
4367
|
apiKeys;
|
|
4344
4368
|
approvals;
|
|
4345
4369
|
auditLog;
|
|
4370
|
+
chains;
|
|
4346
4371
|
chats;
|
|
4347
4372
|
conversations;
|
|
4348
4373
|
documents;
|
|
@@ -4389,6 +4414,7 @@ var SoatClient = class {
|
|
|
4389
4414
|
this.apiKeys = bindResource(ApiKeys, httpClient);
|
|
4390
4415
|
this.approvals = bindResource(Approvals, httpClient);
|
|
4391
4416
|
this.auditLog = bindResource(AuditLog, httpClient);
|
|
4417
|
+
this.chains = bindResource(Chains, httpClient);
|
|
4392
4418
|
this.chats = bindResource(Chats, httpClient);
|
|
4393
4419
|
this.conversations = bindResource(Conversations, httpClient);
|
|
4394
4420
|
this.documents = bindResource(Documents, httpClient);
|
|
@@ -4421,4 +4447,4 @@ var SoatClient = class {
|
|
|
4421
4447
|
}
|
|
4422
4448
|
};
|
|
4423
4449
|
//#endregion
|
|
4424
|
-
export { Activity, Actors, AgentVersions, Agents, AiProviders, ApiKeys, Approvals, AuditLog, Chats, Conversations, Documents, Embeddings, Evaluations, Exceptions, Files, Formations, Generations, Guardrails, IngestionRules, Knowledge, Memories, MemoryEntries, ModelRoutes, Orchestrations, Policies, Projects, Quotas, Secrets, Sessions, SoatClient, Tasks, Tools, Traces, Triggers, Usage, Users, Webhooks, Workflows, createClient, createConfig };
|
|
4450
|
+
export { Activity, Actors, AgentVersions, Agents, AiProviders, ApiKeys, Approvals, AuditLog, Chains, Chats, Conversations, Documents, Embeddings, Evaluations, Exceptions, Files, Formations, Generations, Guardrails, IngestionRules, Knowledge, Memories, MemoryEntries, ModelRoutes, Orchestrations, Policies, Projects, Quotas, Secrets, Sessions, SoatClient, Tasks, Tools, Traces, Triggers, Usage, Users, Webhooks, Workflows, createClient, createConfig };
|