@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.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({
@@ -4313,9 +4337,7 @@ const bindResource = (SdkClass, client) => {
4313
4337
  } });
4314
4338
  };
4315
4339
  /**
4316
- * Stripe-style SOAT client.
4317
- *
4318
- * Create an instance once and reuse it throughout your application:
4340
+ * Stripe-style SOAT client. Create an instance once and reuse it:
4319
4341
  *
4320
4342
  * ```ts
4321
4343
  * import { SoatClient } from '@soat/sdk';
@@ -4328,14 +4350,13 @@ const bindResource = (SdkClass, client) => {
4328
4350
  * });
4329
4351
  * ```
4330
4352
  *
4331
- * The instance exposes one property per API resource. Each property mirrors
4332
- * the corresponding static class from the generated SDK, so all method
4333
- * signatures, types, and return values are identical — the only difference
4334
- * is that you never need to supply `client` yourself.
4353
+ * One property per API resource, each mirroring the corresponding static class
4354
+ * from the generated SDK — identical signatures, types and return values, only
4355
+ * without having to supply `client`.
4335
4356
  *
4336
- * The list is exhaustive by construction: `NoUnregisteredResource` at the
4337
- * bottom of this file fails `pnpm typecheck` when a spec adds a resource this
4338
- * class does not expose.
4357
+ * The list is exhaustive by construction: `NoUnregisteredResource` at the bottom
4358
+ * of this file fails `pnpm typecheck` when a spec adds a resource this class
4359
+ * does not expose.
4339
4360
  */
4340
4361
  var SoatClient = class {
4341
4362
  activity;
@@ -4346,6 +4367,7 @@ var SoatClient = class {
4346
4367
  apiKeys;
4347
4368
  approvals;
4348
4369
  auditLog;
4370
+ chains;
4349
4371
  chats;
4350
4372
  conversations;
4351
4373
  documents;
@@ -4392,6 +4414,7 @@ var SoatClient = class {
4392
4414
  this.apiKeys = bindResource(ApiKeys, httpClient);
4393
4415
  this.approvals = bindResource(Approvals, httpClient);
4394
4416
  this.auditLog = bindResource(AuditLog, httpClient);
4417
+ this.chains = bindResource(Chains, httpClient);
4395
4418
  this.chats = bindResource(Chats, httpClient);
4396
4419
  this.conversations = bindResource(Conversations, httpClient);
4397
4420
  this.documents = bindResource(Documents, httpClient);
@@ -4424,4 +4447,4 @@ var SoatClient = class {
4424
4447
  }
4425
4448
  };
4426
4449
  //#endregion
4427
- 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "TypeScript SDK for SOAT — open-source infrastructure for production-ready AI agents.",
5
5
  "keywords": [
6
6
  "ai-agents",