@naturali/sdk 0.315.0 → 0.316.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
@@ -3426,6 +3426,86 @@ var Exceptions = class {
3426
3426
  });
3427
3427
  }
3428
3428
  };
3429
+ var Experts = class {
3430
+ /**
3431
+ * List experts
3432
+ *
3433
+ * The project's Experts. A page may hold fewer than `limit` Experts while `next_cursor` is set; follow it to the end.
3434
+ */
3435
+ static listExperts(options) {
3436
+ return (options.client ?? client).get({
3437
+ url: "/v1/projects/{project_id}/experts",
3438
+ ...options
3439
+ });
3440
+ }
3441
+ /**
3442
+ * Create an expert
3443
+ *
3444
+ * Creates the Expert and its generated agent, case tool and policy, with the caller's own permissions: the caller must be able to create each of them and to grant what the policy grants. A deploy that fails still answers `201`, with `status: failed` and `error` saying why; nothing it created is kept. Check a body with [`POST /v1/projects/{project_id}/experts/validate`](/docs/api/experts/validate-expert) first.
3445
+ */
3446
+ static createExpert(options) {
3447
+ return (options.client ?? client).post({
3448
+ url: "/v1/projects/{project_id}/experts",
3449
+ ...options,
3450
+ headers: {
3451
+ "Content-Type": "application/json",
3452
+ ...options.headers
3453
+ }
3454
+ });
3455
+ }
3456
+ /**
3457
+ * Validate an expert
3458
+ *
3459
+ * Answers what creating this Expert would be told about its resources, without writing: `valid`, and every problem found. A body this API cannot read is `400`, as on create.
3460
+ */
3461
+ static validateExpert(options) {
3462
+ return (options.client ?? client).post({
3463
+ url: "/v1/projects/{project_id}/experts/validate",
3464
+ ...options,
3465
+ headers: {
3466
+ "Content-Type": "application/json",
3467
+ ...options.headers
3468
+ }
3469
+ });
3470
+ }
3471
+ /**
3472
+ * Delete an expert
3473
+ *
3474
+ * Deletes the Expert and its generated resources. While the agent has sessions or the case tool has calls on record, it is `409 FORMATION_DELETE_FAILED` and the Expert is kept.
3475
+ */
3476
+ static deleteExpert(options) {
3477
+ return (options.client ?? client).delete({
3478
+ url: "/v1/projects/{project_id}/experts/{expert_id}",
3479
+ ...options
3480
+ });
3481
+ }
3482
+ /**
3483
+ * Get an expert
3484
+ *
3485
+ * The Expert, its fields and the resources it generated.
3486
+ */
3487
+ static getExpert(options) {
3488
+ return (options.client ?? client).get({
3489
+ url: "/v1/projects/{project_id}/experts/{expert_id}",
3490
+ ...options
3491
+ });
3492
+ }
3493
+ /**
3494
+ * Update an expert
3495
+ *
3496
+ * A field sent replaces the stored one, an array whole; `null` clears an optional field. `name` cannot change. The generated resources are written back as the Expert declares them, with the caller's own permissions; a deploy that fails answers `200` with `status: failed`.
3497
+ */
3498
+ static updateExpert(options) {
3499
+ return (options.client ?? client).patch({
3500
+ url: "/v1/projects/{project_id}/experts/{expert_id}",
3501
+ ...options,
3502
+ headers: {
3503
+ "Content-Type": "application/json",
3504
+ ...options.headers
3505
+ }
3506
+ });
3507
+ }
3508
+ };
3429
3509
  var Files = class {
3430
3510
  /**
3431
3511
  * List all files
@@ -7411,6 +7491,7 @@ var NaturaliClient = class {
7411
7491
  embeddings;
7412
7492
  evaluations;
7413
7493
  exceptions;
7494
+ experts;
7414
7495
  files;
7415
7496
  formations;
7416
7497
  generations;
@@ -7473,6 +7554,7 @@ var NaturaliClient = class {
7473
7554
  this.embeddings = bindResource(Embeddings, this.http);
7474
7555
  this.evaluations = bindResource(Evaluations, this.http);
7475
7556
  this.exceptions = bindResource(Exceptions, this.http);
7557
+ this.experts = bindResource(Experts, this.http);
7476
7558
  this.files = bindResource(Files, this.http);
7477
7559
  this.formations = bindResource(Formations, this.http);
7478
7560
  this.generations = bindResource(Generations, this.http);
@@ -7505,4 +7587,4 @@ var NaturaliClient = class {
7505
7587
  }
7506
7588
  };
7507
7589
  //#endregion
7508
- export { Activity, ActorAuth, ActorIssuer as ActorIssuer2, ActorTokens, Actors, Admin, AgentVersions, Agents, AiProviders, ApiKeys, Approvals, Assistant, AuditLog, Auth, Chains, Channels, Collections, Conversations, Deciders, Documents, Embeddings, Evaluations, Exceptions, Files, Formations, Generations, Guardrails, IngestionRules, Knowledge, McpServers, Memories, MemoryRules, MemoryStores, MetadataSchemas, ModelRoutes, Models, NaturaliClient, OauthClients, OauthConnections, Orchestrations, Playbooks, Policies, Projects, Quotas, Secrets, Sessions, Tasks, Tools, Traces, Triggers, Users, Webhooks, Workflows, createClient, createConfig };
7590
+ export { Activity, ActorAuth, ActorIssuer as ActorIssuer2, ActorTokens, Actors, Admin, AgentVersions, Agents, AiProviders, ApiKeys, Approvals, Assistant, AuditLog, Auth, Chains, Channels, Collections, Conversations, Deciders, Documents, Embeddings, Evaluations, Exceptions, Experts, Files, Formations, Generations, Guardrails, IngestionRules, Knowledge, McpServers, Memories, MemoryRules, MemoryStores, MetadataSchemas, ModelRoutes, Models, NaturaliClient, OauthClients, OauthConnections, Orchestrations, Playbooks, Policies, Projects, Quotas, Secrets, Sessions, Tasks, Tools, Traces, Triggers, Users, Webhooks, Workflows, createClient, createConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.315.0",
3
+ "version": "0.316.0",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hey-api/openapi-ts": "^0.99.0",
41
- "@naturali/api": "0.315.0",
41
+ "@naturali/api": "0.316.0",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",