@soat/sdk 0.5.7 → 0.6.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.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,
@@ -44,11 +43,13 @@ __export(index_exports, {
44
43
  Knowledge: () => Knowledge,
45
44
  Memories: () => Memories,
46
45
  MemoryEntries: () => MemoryEntries,
46
+ Orchestrations: () => Orchestrations,
47
47
  Policies: () => Policies,
48
48
  Projects: () => Projects,
49
49
  Secrets: () => Secrets,
50
50
  Sessions: () => Sessions,
51
51
  SoatClient: () => SoatClient,
52
+ Tools: () => Tools,
52
53
  Traces: () => Traces,
53
54
  Users: () => Users,
54
55
  Webhooks: () => Webhooks,
@@ -1023,74 +1024,6 @@ var Actors = class {
1023
1024
  });
1024
1025
  }
1025
1026
  };
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
1027
  var Agents = class {
1095
1028
  static {
1096
1029
  __name(this, "Agents");
@@ -2166,6 +2099,148 @@ var MemoryEntries = class {
2166
2099
  });
2167
2100
  }
2168
2101
  };
2102
+ var Orchestrations = class {
2103
+ static {
2104
+ __name(this, "Orchestrations");
2105
+ }
2106
+ /**
2107
+ * List orchestrations
2108
+ *
2109
+ * Returns orchestrations accessible to the caller.
2110
+ */
2111
+ static listOrchestrations(options) {
2112
+ return (options?.client ?? client).get({
2113
+ url: "/api/v1/orchestrations",
2114
+ ...options
2115
+ });
2116
+ }
2117
+ /**
2118
+ * Create an orchestration
2119
+ *
2120
+ * Creates a new orchestration workflow definition in the project.
2121
+ */
2122
+ static createOrchestration(options) {
2123
+ return (options.client ?? client).post({
2124
+ url: "/api/v1/orchestrations",
2125
+ ...options,
2126
+ headers: {
2127
+ "Content-Type": "application/json",
2128
+ ...options.headers
2129
+ }
2130
+ });
2131
+ }
2132
+ /**
2133
+ * Delete an orchestration
2134
+ *
2135
+ * Deletes an orchestration definition and all its runs.
2136
+ */
2137
+ static deleteOrchestration(options) {
2138
+ return (options.client ?? client).delete({
2139
+ url: "/api/v1/orchestrations/{orchestration_id}",
2140
+ ...options
2141
+ });
2142
+ }
2143
+ /**
2144
+ * Get an orchestration
2145
+ *
2146
+ * Returns the orchestration with nodes and edges.
2147
+ */
2148
+ static getOrchestration(options) {
2149
+ return (options.client ?? client).get({
2150
+ url: "/api/v1/orchestrations/{orchestration_id}",
2151
+ ...options
2152
+ });
2153
+ }
2154
+ /**
2155
+ * Update an orchestration
2156
+ *
2157
+ * Partially updates an orchestration definition.
2158
+ */
2159
+ static updateOrchestration(options) {
2160
+ return (options.client ?? client).patch({
2161
+ url: "/api/v1/orchestrations/{orchestration_id}",
2162
+ ...options,
2163
+ headers: {
2164
+ "Content-Type": "application/json",
2165
+ ...options.headers
2166
+ }
2167
+ });
2168
+ }
2169
+ /**
2170
+ * List runs
2171
+ *
2172
+ * Returns all runs for an orchestration.
2173
+ */
2174
+ static listRuns(options) {
2175
+ return (options.client ?? client).get({
2176
+ url: "/api/v1/orchestrations/{orchestration_id}/runs",
2177
+ ...options
2178
+ });
2179
+ }
2180
+ /**
2181
+ * Start a run
2182
+ *
2183
+ * Creates and immediately executes a new run for the orchestration.
2184
+ */
2185
+ static startRun(options) {
2186
+ return (options.client ?? client).post({
2187
+ url: "/api/v1/orchestrations/{orchestration_id}/runs",
2188
+ ...options,
2189
+ headers: {
2190
+ "Content-Type": "application/json",
2191
+ ...options.headers
2192
+ }
2193
+ });
2194
+ }
2195
+ /**
2196
+ * Cancel a run
2197
+ *
2198
+ * Cancels a running or paused orchestration run.
2199
+ */
2200
+ static cancelRun(options) {
2201
+ return (options.client ?? client).post({
2202
+ url: "/api/v1/orchestrations/{orchestration_id}/runs/{run_id}/cancel",
2203
+ ...options
2204
+ });
2205
+ }
2206
+ /**
2207
+ * Submit human input
2208
+ *
2209
+ * Provides human input to a paused orchestration run waiting at a human node.
2210
+ */
2211
+ static submitHumanInput(options) {
2212
+ return (options.client ?? client).post({
2213
+ url: "/api/v1/orchestrations/{orchestration_id}/runs/{run_id}/human-input",
2214
+ ...options,
2215
+ headers: {
2216
+ "Content-Type": "application/json",
2217
+ ...options.headers
2218
+ }
2219
+ });
2220
+ }
2221
+ /**
2222
+ * Resume a run
2223
+ *
2224
+ * Resumes a paused orchestration run from its last checkpoint.
2225
+ */
2226
+ static resumeRun(options) {
2227
+ return (options.client ?? client).post({
2228
+ url: "/api/v1/orchestrations/{orchestration_id}/runs/{run_id}/resume",
2229
+ ...options
2230
+ });
2231
+ }
2232
+ /**
2233
+ * Get a run
2234
+ *
2235
+ * Returns the status, state, and artifacts of a specific run.
2236
+ */
2237
+ static getRun(options) {
2238
+ return (options.client ?? client).get({
2239
+ url: "/api/v1/orchestrations/{orchestration_id}/runs/{run_id}",
2240
+ ...options
2241
+ });
2242
+ }
2243
+ };
2169
2244
  var Policies = class {
2170
2245
  static {
2171
2246
  __name(this, "Policies");
@@ -2514,6 +2589,92 @@ var Sessions = class {
2514
2589
  });
2515
2590
  }
2516
2591
  };
2592
+ var Tools = class {
2593
+ static {
2594
+ __name(this, "Tools");
2595
+ }
2596
+ /**
2597
+ * List tools
2598
+ *
2599
+ * Returns all tools in the project.
2600
+ */
2601
+ static listTools(options) {
2602
+ return (options?.client ?? client).get({
2603
+ url: "/api/v1/tools",
2604
+ ...options
2605
+ });
2606
+ }
2607
+ /**
2608
+ * Create a tool
2609
+ *
2610
+ * Creates a new tool in the project.
2611
+ */
2612
+ static createTool(options) {
2613
+ return (options.client ?? client).post({
2614
+ url: "/api/v1/tools",
2615
+ ...options,
2616
+ headers: {
2617
+ "Content-Type": "application/json",
2618
+ ...options.headers
2619
+ }
2620
+ });
2621
+ }
2622
+ /**
2623
+ * Delete a tool
2624
+ *
2625
+ * Deletes a tool by ID.
2626
+ */
2627
+ static deleteTool(options) {
2628
+ return (options.client ?? client).delete({
2629
+ url: "/api/v1/tools/{tool_id}",
2630
+ ...options
2631
+ });
2632
+ }
2633
+ /**
2634
+ * Get a tool
2635
+ *
2636
+ * Returns a single tool by ID.
2637
+ */
2638
+ static getTool(options) {
2639
+ return (options.client ?? client).get({
2640
+ url: "/api/v1/tools/{tool_id}",
2641
+ ...options
2642
+ });
2643
+ }
2644
+ /**
2645
+ * Update a tool
2646
+ *
2647
+ * Updates an existing tool.
2648
+ */
2649
+ static updateTool(options) {
2650
+ return (options.client ?? client).patch({
2651
+ url: "/api/v1/tools/{tool_id}",
2652
+ ...options,
2653
+ headers: {
2654
+ "Content-Type": "application/json",
2655
+ ...options.headers
2656
+ }
2657
+ });
2658
+ }
2659
+ /**
2660
+ * Call a tool
2661
+ *
2662
+ * 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.
2663
+ * 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.
2664
+ * `preset_parameters` stored on the tool are merged with the caller-supplied `input` before execution; preset keys take lower precedence.
2665
+ *
2666
+ */
2667
+ static callTool(options) {
2668
+ return (options.client ?? client).post({
2669
+ url: "/api/v1/tools/{tool_id}/call",
2670
+ ...options,
2671
+ headers: {
2672
+ "Content-Type": "application/json",
2673
+ ...options.headers
2674
+ }
2675
+ });
2676
+ }
2677
+ };
2517
2678
  var Traces = class {
2518
2679
  static {
2519
2680
  __name(this, "Traces");
@@ -2751,6 +2912,17 @@ var Webhooks = class {
2751
2912
  ...options
2752
2913
  });
2753
2914
  }
2915
+ /**
2916
+ * Get webhook secret
2917
+ *
2918
+ * Retrieves the signing secret for the specified webhook
2919
+ */
2920
+ static getWebhookSecret(options) {
2921
+ return (options.client ?? client).get({
2922
+ url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}/secret",
2923
+ ...options
2924
+ });
2925
+ }
2754
2926
  /**
2755
2927
  * Rotate webhook secret
2756
2928
  *
@@ -2786,7 +2958,6 @@ var SoatClient = class {
2786
2958
  __name(this, "SoatClient");
2787
2959
  }
2788
2960
  actors;
2789
- agentTools;
2790
2961
  agents;
2791
2962
  aiProviders;
2792
2963
  apiKeys;
@@ -2794,10 +2965,15 @@ var SoatClient = class {
2794
2965
  conversations;
2795
2966
  documents;
2796
2967
  files;
2968
+ formations;
2969
+ knowledge;
2970
+ memories;
2971
+ memoryEntries;
2797
2972
  policies;
2798
2973
  projects;
2799
2974
  secrets;
2800
2975
  sessions;
2976
+ tools;
2801
2977
  traces;
2802
2978
  users;
2803
2979
  webhooks;
@@ -2817,7 +2993,6 @@ var SoatClient = class {
2817
2993
  }
2818
2994
  }));
2819
2995
  this.actors = bindResource(Actors, httpClient);
2820
- this.agentTools = bindResource(AgentTools, httpClient);
2821
2996
  this.agents = bindResource(Agents, httpClient);
2822
2997
  this.aiProviders = bindResource(AiProviders, httpClient);
2823
2998
  this.apiKeys = bindResource(ApiKeys, httpClient);
@@ -2825,10 +3000,15 @@ var SoatClient = class {
2825
3000
  this.conversations = bindResource(Conversations, httpClient);
2826
3001
  this.documents = bindResource(Documents, httpClient);
2827
3002
  this.files = bindResource(Files, httpClient);
3003
+ this.formations = bindResource(Formations, httpClient);
3004
+ this.knowledge = bindResource(Knowledge, httpClient);
3005
+ this.memories = bindResource(Memories, httpClient);
3006
+ this.memoryEntries = bindResource(MemoryEntries, httpClient);
2828
3007
  this.policies = bindResource(Policies, httpClient);
2829
3008
  this.projects = bindResource(Projects, httpClient);
2830
3009
  this.secrets = bindResource(Secrets, httpClient);
2831
3010
  this.sessions = bindResource(Sessions, httpClient);
3011
+ this.tools = bindResource(Tools, httpClient);
2832
3012
  this.traces = bindResource(Traces, httpClient);
2833
3013
  this.users = bindResource(Users, httpClient);
2834
3014
  this.webhooks = bindResource(Webhooks, httpClient);
@@ -2837,7 +3017,6 @@ var SoatClient = class {
2837
3017
  // Annotate the CommonJS export names for ESM import in node:
2838
3018
  0 && (module.exports = {
2839
3019
  Actors,
2840
- AgentTools,
2841
3020
  Agents,
2842
3021
  AiProviders,
2843
3022
  ApiKeys,
@@ -2849,11 +3028,13 @@ var SoatClient = class {
2849
3028
  Knowledge,
2850
3029
  Memories,
2851
3030
  MemoryEntries,
3031
+ Orchestrations,
2852
3032
  Policies,
2853
3033
  Projects,
2854
3034
  Secrets,
2855
3035
  Sessions,
2856
3036
  SoatClient,
3037
+ Tools,
2857
3038
  Traces,
2858
3039
  Users,
2859
3040
  Webhooks,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.5.7",
3
+ "version": "0.6.0",
4
4
  "description": "TypeScript SDK for the SOAT API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",