@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/esm/index.js CHANGED
@@ -971,74 +971,6 @@ var Actors = class {
971
971
  });
972
972
  }
973
973
  };
974
- var AgentTools = class {
975
- static {
976
- __name(this, "AgentTools");
977
- }
978
- /**
979
- * List agent tools
980
- *
981
- * Returns all agent tools in the project.
982
- */
983
- static listAgentTools(options) {
984
- return (options?.client ?? client).get({
985
- url: "/api/v1/agents/tools",
986
- ...options
987
- });
988
- }
989
- /**
990
- * Create an agent tool
991
- *
992
- * Creates a new agent tool in the project.
993
- */
994
- static createAgentTool(options) {
995
- return (options.client ?? client).post({
996
- url: "/api/v1/agents/tools",
997
- ...options,
998
- headers: {
999
- "Content-Type": "application/json",
1000
- ...options.headers
1001
- }
1002
- });
1003
- }
1004
- /**
1005
- * Delete an agent tool
1006
- *
1007
- * Deletes an agent tool by ID.
1008
- */
1009
- static deleteAgentTool(options) {
1010
- return (options.client ?? client).delete({
1011
- url: "/api/v1/agents/tools/{tool_id}",
1012
- ...options
1013
- });
1014
- }
1015
- /**
1016
- * Get an agent tool
1017
- *
1018
- * Returns a single agent tool by ID.
1019
- */
1020
- static getAgentTool(options) {
1021
- return (options.client ?? client).get({
1022
- url: "/api/v1/agents/tools/{tool_id}",
1023
- ...options
1024
- });
1025
- }
1026
- /**
1027
- * Update an agent tool
1028
- *
1029
- * Updates an existing agent tool.
1030
- */
1031
- static updateAgentTool(options) {
1032
- return (options.client ?? client).put({
1033
- url: "/api/v1/agents/tools/{tool_id}",
1034
- ...options,
1035
- headers: {
1036
- "Content-Type": "application/json",
1037
- ...options.headers
1038
- }
1039
- });
1040
- }
1041
- };
1042
974
  var Agents = class {
1043
975
  static {
1044
976
  __name(this, "Agents");
@@ -2114,6 +2046,148 @@ var MemoryEntries = class {
2114
2046
  });
2115
2047
  }
2116
2048
  };
2049
+ var Orchestrations = class {
2050
+ static {
2051
+ __name(this, "Orchestrations");
2052
+ }
2053
+ /**
2054
+ * List orchestrations
2055
+ *
2056
+ * Returns orchestrations accessible to the caller.
2057
+ */
2058
+ static listOrchestrations(options) {
2059
+ return (options?.client ?? client).get({
2060
+ url: "/api/v1/orchestrations",
2061
+ ...options
2062
+ });
2063
+ }
2064
+ /**
2065
+ * Create an orchestration
2066
+ *
2067
+ * Creates a new orchestration workflow definition in the project.
2068
+ */
2069
+ static createOrchestration(options) {
2070
+ return (options.client ?? client).post({
2071
+ url: "/api/v1/orchestrations",
2072
+ ...options,
2073
+ headers: {
2074
+ "Content-Type": "application/json",
2075
+ ...options.headers
2076
+ }
2077
+ });
2078
+ }
2079
+ /**
2080
+ * Delete an orchestration
2081
+ *
2082
+ * Deletes an orchestration definition and all its runs.
2083
+ */
2084
+ static deleteOrchestration(options) {
2085
+ return (options.client ?? client).delete({
2086
+ url: "/api/v1/orchestrations/{orchestration_id}",
2087
+ ...options
2088
+ });
2089
+ }
2090
+ /**
2091
+ * Get an orchestration
2092
+ *
2093
+ * Returns the orchestration with nodes and edges.
2094
+ */
2095
+ static getOrchestration(options) {
2096
+ return (options.client ?? client).get({
2097
+ url: "/api/v1/orchestrations/{orchestration_id}",
2098
+ ...options
2099
+ });
2100
+ }
2101
+ /**
2102
+ * Update an orchestration
2103
+ *
2104
+ * Partially updates an orchestration definition.
2105
+ */
2106
+ static updateOrchestration(options) {
2107
+ return (options.client ?? client).patch({
2108
+ url: "/api/v1/orchestrations/{orchestration_id}",
2109
+ ...options,
2110
+ headers: {
2111
+ "Content-Type": "application/json",
2112
+ ...options.headers
2113
+ }
2114
+ });
2115
+ }
2116
+ /**
2117
+ * List runs
2118
+ *
2119
+ * Returns all runs for an orchestration.
2120
+ */
2121
+ static listRuns(options) {
2122
+ return (options.client ?? client).get({
2123
+ url: "/api/v1/orchestrations/{orchestration_id}/runs",
2124
+ ...options
2125
+ });
2126
+ }
2127
+ /**
2128
+ * Start a run
2129
+ *
2130
+ * Creates and immediately executes a new run for the orchestration.
2131
+ */
2132
+ static startRun(options) {
2133
+ return (options.client ?? client).post({
2134
+ url: "/api/v1/orchestrations/{orchestration_id}/runs",
2135
+ ...options,
2136
+ headers: {
2137
+ "Content-Type": "application/json",
2138
+ ...options.headers
2139
+ }
2140
+ });
2141
+ }
2142
+ /**
2143
+ * Cancel a run
2144
+ *
2145
+ * Cancels a running or paused orchestration run.
2146
+ */
2147
+ static cancelRun(options) {
2148
+ return (options.client ?? client).post({
2149
+ url: "/api/v1/orchestrations/{orchestration_id}/runs/{run_id}/cancel",
2150
+ ...options
2151
+ });
2152
+ }
2153
+ /**
2154
+ * Submit human input
2155
+ *
2156
+ * Provides human input to a paused orchestration run waiting at a human node.
2157
+ */
2158
+ static submitHumanInput(options) {
2159
+ return (options.client ?? client).post({
2160
+ url: "/api/v1/orchestrations/{orchestration_id}/runs/{run_id}/human-input",
2161
+ ...options,
2162
+ headers: {
2163
+ "Content-Type": "application/json",
2164
+ ...options.headers
2165
+ }
2166
+ });
2167
+ }
2168
+ /**
2169
+ * Resume a run
2170
+ *
2171
+ * Resumes a paused orchestration run from its last checkpoint.
2172
+ */
2173
+ static resumeRun(options) {
2174
+ return (options.client ?? client).post({
2175
+ url: "/api/v1/orchestrations/{orchestration_id}/runs/{run_id}/resume",
2176
+ ...options
2177
+ });
2178
+ }
2179
+ /**
2180
+ * Get a run
2181
+ *
2182
+ * Returns the status, state, and artifacts of a specific run.
2183
+ */
2184
+ static getRun(options) {
2185
+ return (options.client ?? client).get({
2186
+ url: "/api/v1/orchestrations/{orchestration_id}/runs/{run_id}",
2187
+ ...options
2188
+ });
2189
+ }
2190
+ };
2117
2191
  var Policies = class {
2118
2192
  static {
2119
2193
  __name(this, "Policies");
@@ -2462,6 +2536,92 @@ var Sessions = class {
2462
2536
  });
2463
2537
  }
2464
2538
  };
2539
+ var Tools = class {
2540
+ static {
2541
+ __name(this, "Tools");
2542
+ }
2543
+ /**
2544
+ * List tools
2545
+ *
2546
+ * Returns all tools in the project.
2547
+ */
2548
+ static listTools(options) {
2549
+ return (options?.client ?? client).get({
2550
+ url: "/api/v1/tools",
2551
+ ...options
2552
+ });
2553
+ }
2554
+ /**
2555
+ * Create a tool
2556
+ *
2557
+ * Creates a new tool in the project.
2558
+ */
2559
+ static createTool(options) {
2560
+ return (options.client ?? client).post({
2561
+ url: "/api/v1/tools",
2562
+ ...options,
2563
+ headers: {
2564
+ "Content-Type": "application/json",
2565
+ ...options.headers
2566
+ }
2567
+ });
2568
+ }
2569
+ /**
2570
+ * Delete a tool
2571
+ *
2572
+ * Deletes a tool by ID.
2573
+ */
2574
+ static deleteTool(options) {
2575
+ return (options.client ?? client).delete({
2576
+ url: "/api/v1/tools/{tool_id}",
2577
+ ...options
2578
+ });
2579
+ }
2580
+ /**
2581
+ * Get a tool
2582
+ *
2583
+ * Returns a single tool by ID.
2584
+ */
2585
+ static getTool(options) {
2586
+ return (options.client ?? client).get({
2587
+ url: "/api/v1/tools/{tool_id}",
2588
+ ...options
2589
+ });
2590
+ }
2591
+ /**
2592
+ * Update a tool
2593
+ *
2594
+ * Updates an existing tool.
2595
+ */
2596
+ static updateTool(options) {
2597
+ return (options.client ?? client).patch({
2598
+ url: "/api/v1/tools/{tool_id}",
2599
+ ...options,
2600
+ headers: {
2601
+ "Content-Type": "application/json",
2602
+ ...options.headers
2603
+ }
2604
+ });
2605
+ }
2606
+ /**
2607
+ * Call a tool
2608
+ *
2609
+ * 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.
2610
+ * 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.
2611
+ * `preset_parameters` stored on the tool are merged with the caller-supplied `input` before execution; preset keys take lower precedence.
2612
+ *
2613
+ */
2614
+ static callTool(options) {
2615
+ return (options.client ?? client).post({
2616
+ url: "/api/v1/tools/{tool_id}/call",
2617
+ ...options,
2618
+ headers: {
2619
+ "Content-Type": "application/json",
2620
+ ...options.headers
2621
+ }
2622
+ });
2623
+ }
2624
+ };
2465
2625
  var Traces = class {
2466
2626
  static {
2467
2627
  __name(this, "Traces");
@@ -2699,6 +2859,17 @@ var Webhooks = class {
2699
2859
  ...options
2700
2860
  });
2701
2861
  }
2862
+ /**
2863
+ * Get webhook secret
2864
+ *
2865
+ * Retrieves the signing secret for the specified webhook
2866
+ */
2867
+ static getWebhookSecret(options) {
2868
+ return (options.client ?? client).get({
2869
+ url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}/secret",
2870
+ ...options
2871
+ });
2872
+ }
2702
2873
  /**
2703
2874
  * Rotate webhook secret
2704
2875
  *
@@ -2734,7 +2905,6 @@ var SoatClient = class {
2734
2905
  __name(this, "SoatClient");
2735
2906
  }
2736
2907
  actors;
2737
- agentTools;
2738
2908
  agents;
2739
2909
  aiProviders;
2740
2910
  apiKeys;
@@ -2742,10 +2912,15 @@ var SoatClient = class {
2742
2912
  conversations;
2743
2913
  documents;
2744
2914
  files;
2915
+ formations;
2916
+ knowledge;
2917
+ memories;
2918
+ memoryEntries;
2745
2919
  policies;
2746
2920
  projects;
2747
2921
  secrets;
2748
2922
  sessions;
2923
+ tools;
2749
2924
  traces;
2750
2925
  users;
2751
2926
  webhooks;
@@ -2765,7 +2940,6 @@ var SoatClient = class {
2765
2940
  }
2766
2941
  }));
2767
2942
  this.actors = bindResource(Actors, httpClient);
2768
- this.agentTools = bindResource(AgentTools, httpClient);
2769
2943
  this.agents = bindResource(Agents, httpClient);
2770
2944
  this.aiProviders = bindResource(AiProviders, httpClient);
2771
2945
  this.apiKeys = bindResource(ApiKeys, httpClient);
@@ -2773,13 +2947,18 @@ var SoatClient = class {
2773
2947
  this.conversations = bindResource(Conversations, httpClient);
2774
2948
  this.documents = bindResource(Documents, httpClient);
2775
2949
  this.files = bindResource(Files, httpClient);
2950
+ this.formations = bindResource(Formations, httpClient);
2951
+ this.knowledge = bindResource(Knowledge, httpClient);
2952
+ this.memories = bindResource(Memories, httpClient);
2953
+ this.memoryEntries = bindResource(MemoryEntries, httpClient);
2776
2954
  this.policies = bindResource(Policies, httpClient);
2777
2955
  this.projects = bindResource(Projects, httpClient);
2778
2956
  this.secrets = bindResource(Secrets, httpClient);
2779
2957
  this.sessions = bindResource(Sessions, httpClient);
2958
+ this.tools = bindResource(Tools, httpClient);
2780
2959
  this.traces = bindResource(Traces, httpClient);
2781
2960
  this.users = bindResource(Users, httpClient);
2782
2961
  this.webhooks = bindResource(Webhooks, httpClient);
2783
2962
  }
2784
2963
  };
2785
- export { Actors, AgentTools, Agents, AiProviders, ApiKeys, Chats, Conversations, Documents, Files, Formations, Knowledge, Memories, MemoryEntries, Policies, Projects, Secrets, Sessions, SoatClient, Traces, Users, Webhooks, createClient, createConfig };
2964
+ export { Actors, Agents, AiProviders, ApiKeys, Chats, Conversations, Documents, Files, Formations, Knowledge, Memories, MemoryEntries, Orchestrations, Policies, Projects, Secrets, Sessions, SoatClient, Tools, Traces, Users, Webhooks, createClient, createConfig };