@soat/sdk 0.5.7 → 0.5.8

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.js CHANGED
@@ -32,7 +32,6 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
32
  var index_exports = {};
33
33
  __export(index_exports, {
34
34
  Actors: () => Actors,
35
- AgentTools: () => AgentTools,
36
35
  Agents: () => Agents,
37
36
  AiProviders: () => AiProviders,
38
37
  ApiKeys: () => ApiKeys,
@@ -49,6 +48,7 @@ __export(index_exports, {
49
48
  Secrets: () => Secrets,
50
49
  Sessions: () => Sessions,
51
50
  SoatClient: () => SoatClient,
51
+ Tools: () => Tools,
52
52
  Traces: () => Traces,
53
53
  Users: () => Users,
54
54
  Webhooks: () => Webhooks,
@@ -1023,74 +1023,6 @@ var Actors = class {
1023
1023
  });
1024
1024
  }
1025
1025
  };
1026
- var AgentTools = class {
1027
- static {
1028
- __name(this, "AgentTools");
1029
- }
1030
- /**
1031
- * List agent tools
1032
- *
1033
- * Returns all agent tools in the project.
1034
- */
1035
- static listAgentTools(options) {
1036
- return (options?.client ?? client).get({
1037
- url: "/api/v1/agents/tools",
1038
- ...options
1039
- });
1040
- }
1041
- /**
1042
- * Create an agent tool
1043
- *
1044
- * Creates a new agent tool in the project.
1045
- */
1046
- static createAgentTool(options) {
1047
- return (options.client ?? client).post({
1048
- url: "/api/v1/agents/tools",
1049
- ...options,
1050
- headers: {
1051
- "Content-Type": "application/json",
1052
- ...options.headers
1053
- }
1054
- });
1055
- }
1056
- /**
1057
- * Delete an agent tool
1058
- *
1059
- * Deletes an agent tool by ID.
1060
- */
1061
- static deleteAgentTool(options) {
1062
- return (options.client ?? client).delete({
1063
- url: "/api/v1/agents/tools/{tool_id}",
1064
- ...options
1065
- });
1066
- }
1067
- /**
1068
- * Get an agent tool
1069
- *
1070
- * Returns a single agent tool by ID.
1071
- */
1072
- static getAgentTool(options) {
1073
- return (options.client ?? client).get({
1074
- url: "/api/v1/agents/tools/{tool_id}",
1075
- ...options
1076
- });
1077
- }
1078
- /**
1079
- * Update an agent tool
1080
- *
1081
- * Updates an existing agent tool.
1082
- */
1083
- static updateAgentTool(options) {
1084
- return (options.client ?? client).put({
1085
- url: "/api/v1/agents/tools/{tool_id}",
1086
- ...options,
1087
- headers: {
1088
- "Content-Type": "application/json",
1089
- ...options.headers
1090
- }
1091
- });
1092
- }
1093
- };
1094
1026
  var Agents = class {
1095
1027
  static {
1096
1028
  __name(this, "Agents");
@@ -2514,6 +2446,92 @@ var Sessions = class {
2514
2446
  });
2515
2447
  }
2516
2448
  };
2449
+ var Tools = class {
2450
+ static {
2451
+ __name(this, "Tools");
2452
+ }
2453
+ /**
2454
+ * List tools
2455
+ *
2456
+ * Returns all tools in the project.
2457
+ */
2458
+ static listTools(options) {
2459
+ return (options?.client ?? client).get({
2460
+ url: "/api/v1/tools",
2461
+ ...options
2462
+ });
2463
+ }
2464
+ /**
2465
+ * Create a tool
2466
+ *
2467
+ * Creates a new tool in the project.
2468
+ */
2469
+ static createTool(options) {
2470
+ return (options.client ?? client).post({
2471
+ url: "/api/v1/tools",
2472
+ ...options,
2473
+ headers: {
2474
+ "Content-Type": "application/json",
2475
+ ...options.headers
2476
+ }
2477
+ });
2478
+ }
2479
+ /**
2480
+ * Delete a tool
2481
+ *
2482
+ * Deletes a tool by ID.
2483
+ */
2484
+ static deleteTool(options) {
2485
+ return (options.client ?? client).delete({
2486
+ url: "/api/v1/tools/{tool_id}",
2487
+ ...options
2488
+ });
2489
+ }
2490
+ /**
2491
+ * Get a tool
2492
+ *
2493
+ * Returns a single tool by ID.
2494
+ */
2495
+ static getTool(options) {
2496
+ return (options.client ?? client).get({
2497
+ url: "/api/v1/tools/{tool_id}",
2498
+ ...options
2499
+ });
2500
+ }
2501
+ /**
2502
+ * Update a tool
2503
+ *
2504
+ * Updates an existing tool.
2505
+ */
2506
+ static updateTool(options) {
2507
+ return (options.client ?? client).patch({
2508
+ url: "/api/v1/tools/{tool_id}",
2509
+ ...options,
2510
+ headers: {
2511
+ "Content-Type": "application/json",
2512
+ ...options.headers
2513
+ }
2514
+ });
2515
+ }
2516
+ /**
2517
+ * Call a tool
2518
+ *
2519
+ * Directly invokes a tool and returns its output. Supported for `http`, `soat`, and `mcp` tools. `client` tools cannot be invoked server-side and will return 422.
2520
+ * For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored.
2521
+ * `preset_parameters` stored on the tool are merged with the caller-supplied `input` before execution; preset keys take lower precedence.
2522
+ *
2523
+ */
2524
+ static callTool(options) {
2525
+ return (options.client ?? client).post({
2526
+ url: "/api/v1/tools/{tool_id}/call",
2527
+ ...options,
2528
+ headers: {
2529
+ "Content-Type": "application/json",
2530
+ ...options.headers
2531
+ }
2532
+ });
2533
+ }
2534
+ };
2517
2535
  var Traces = class {
2518
2536
  static {
2519
2537
  __name(this, "Traces");
@@ -2751,6 +2769,17 @@ var Webhooks = class {
2751
2769
  ...options
2752
2770
  });
2753
2771
  }
2772
+ /**
2773
+ * Get webhook secret
2774
+ *
2775
+ * Retrieves the signing secret for the specified webhook
2776
+ */
2777
+ static getWebhookSecret(options) {
2778
+ return (options.client ?? client).get({
2779
+ url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}/secret",
2780
+ ...options
2781
+ });
2782
+ }
2754
2783
  /**
2755
2784
  * Rotate webhook secret
2756
2785
  *
@@ -2786,7 +2815,6 @@ var SoatClient = class {
2786
2815
  __name(this, "SoatClient");
2787
2816
  }
2788
2817
  actors;
2789
- agentTools;
2790
2818
  agents;
2791
2819
  aiProviders;
2792
2820
  apiKeys;
@@ -2794,10 +2822,15 @@ var SoatClient = class {
2794
2822
  conversations;
2795
2823
  documents;
2796
2824
  files;
2825
+ formations;
2826
+ knowledge;
2827
+ memories;
2828
+ memoryEntries;
2797
2829
  policies;
2798
2830
  projects;
2799
2831
  secrets;
2800
2832
  sessions;
2833
+ tools;
2801
2834
  traces;
2802
2835
  users;
2803
2836
  webhooks;
@@ -2817,7 +2850,6 @@ var SoatClient = class {
2817
2850
  }
2818
2851
  }));
2819
2852
  this.actors = bindResource(Actors, httpClient);
2820
- this.agentTools = bindResource(AgentTools, httpClient);
2821
2853
  this.agents = bindResource(Agents, httpClient);
2822
2854
  this.aiProviders = bindResource(AiProviders, httpClient);
2823
2855
  this.apiKeys = bindResource(ApiKeys, httpClient);
@@ -2825,10 +2857,15 @@ var SoatClient = class {
2825
2857
  this.conversations = bindResource(Conversations, httpClient);
2826
2858
  this.documents = bindResource(Documents, httpClient);
2827
2859
  this.files = bindResource(Files, httpClient);
2860
+ this.formations = bindResource(Formations, httpClient);
2861
+ this.knowledge = bindResource(Knowledge, httpClient);
2862
+ this.memories = bindResource(Memories, httpClient);
2863
+ this.memoryEntries = bindResource(MemoryEntries, httpClient);
2828
2864
  this.policies = bindResource(Policies, httpClient);
2829
2865
  this.projects = bindResource(Projects, httpClient);
2830
2866
  this.secrets = bindResource(Secrets, httpClient);
2831
2867
  this.sessions = bindResource(Sessions, httpClient);
2868
+ this.tools = bindResource(Tools, httpClient);
2832
2869
  this.traces = bindResource(Traces, httpClient);
2833
2870
  this.users = bindResource(Users, httpClient);
2834
2871
  this.webhooks = bindResource(Webhooks, httpClient);
@@ -2837,7 +2874,6 @@ var SoatClient = class {
2837
2874
  // Annotate the CommonJS export names for ESM import in node:
2838
2875
  0 && (module.exports = {
2839
2876
  Actors,
2840
- AgentTools,
2841
2877
  Agents,
2842
2878
  AiProviders,
2843
2879
  ApiKeys,
@@ -2854,6 +2890,7 @@ var SoatClient = class {
2854
2890
  Secrets,
2855
2891
  Sessions,
2856
2892
  SoatClient,
2893
+ Tools,
2857
2894
  Traces,
2858
2895
  Users,
2859
2896
  Webhooks,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "TypeScript SDK for the SOAT API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",