@soat/sdk 0.33.0 → 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 +35 -11
- package/dist/index.d.cts +267 -31
- package/dist/index.d.mts +267 -31
- package/dist/index.mjs +35 -12
- 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({
|
|
@@ -4314,9 +4338,7 @@ const bindResource = (SdkClass, client) => {
|
|
|
4314
4338
|
} });
|
|
4315
4339
|
};
|
|
4316
4340
|
/**
|
|
4317
|
-
* Stripe-style SOAT client.
|
|
4318
|
-
*
|
|
4319
|
-
* Create an instance once and reuse it throughout your application:
|
|
4341
|
+
* Stripe-style SOAT client. Create an instance once and reuse it:
|
|
4320
4342
|
*
|
|
4321
4343
|
* ```ts
|
|
4322
4344
|
* import { SoatClient } from '@soat/sdk';
|
|
@@ -4329,14 +4351,13 @@ const bindResource = (SdkClass, client) => {
|
|
|
4329
4351
|
* });
|
|
4330
4352
|
* ```
|
|
4331
4353
|
*
|
|
4332
|
-
*
|
|
4333
|
-
*
|
|
4334
|
-
*
|
|
4335
|
-
* is that you never need to supply `client` yourself.
|
|
4354
|
+
* One property per API resource, each mirroring the corresponding static class
|
|
4355
|
+
* from the generated SDK — identical signatures, types and return values, only
|
|
4356
|
+
* without having to supply `client`.
|
|
4336
4357
|
*
|
|
4337
|
-
* The list is exhaustive by construction: `NoUnregisteredResource` at the
|
|
4338
|
-
*
|
|
4339
|
-
*
|
|
4358
|
+
* The list is exhaustive by construction: `NoUnregisteredResource` at the bottom
|
|
4359
|
+
* of this file fails `pnpm typecheck` when a spec adds a resource this class
|
|
4360
|
+
* does not expose.
|
|
4340
4361
|
*/
|
|
4341
4362
|
var SoatClient = class {
|
|
4342
4363
|
activity;
|
|
@@ -4347,6 +4368,7 @@ var SoatClient = class {
|
|
|
4347
4368
|
apiKeys;
|
|
4348
4369
|
approvals;
|
|
4349
4370
|
auditLog;
|
|
4371
|
+
chains;
|
|
4350
4372
|
chats;
|
|
4351
4373
|
conversations;
|
|
4352
4374
|
documents;
|
|
@@ -4393,6 +4415,7 @@ var SoatClient = class {
|
|
|
4393
4415
|
this.apiKeys = bindResource(ApiKeys, httpClient);
|
|
4394
4416
|
this.approvals = bindResource(Approvals, httpClient);
|
|
4395
4417
|
this.auditLog = bindResource(AuditLog, httpClient);
|
|
4418
|
+
this.chains = bindResource(Chains, httpClient);
|
|
4396
4419
|
this.chats = bindResource(Chats, httpClient);
|
|
4397
4420
|
this.conversations = bindResource(Conversations, httpClient);
|
|
4398
4421
|
this.documents = bindResource(Documents, httpClient);
|
|
@@ -4433,6 +4456,7 @@ exports.AiProviders = AiProviders;
|
|
|
4433
4456
|
exports.ApiKeys = ApiKeys;
|
|
4434
4457
|
exports.Approvals = Approvals;
|
|
4435
4458
|
exports.AuditLog = AuditLog;
|
|
4459
|
+
exports.Chains = Chains;
|
|
4436
4460
|
exports.Chats = Chats;
|
|
4437
4461
|
exports.Conversations = Conversations;
|
|
4438
4462
|
exports.Documents = Documents;
|