@soat/sdk 0.5.8 → 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 +143 -1
- package/dist/index.d.cts +736 -2
- package/dist/index.d.ts +736 -2
- package/dist/index.js +144 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -2046,6 +2046,148 @@ var MemoryEntries = class {
|
|
|
2046
2046
|
});
|
|
2047
2047
|
}
|
|
2048
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
|
+
};
|
|
2049
2191
|
var Policies = class {
|
|
2050
2192
|
static {
|
|
2051
2193
|
__name(this, "Policies");
|
|
@@ -2819,4 +2961,4 @@ var SoatClient = class {
|
|
|
2819
2961
|
this.webhooks = bindResource(Webhooks, httpClient);
|
|
2820
2962
|
}
|
|
2821
2963
|
};
|
|
2822
|
-
export { Actors, Agents, AiProviders, ApiKeys, Chats, Conversations, Documents, Files, Formations, Knowledge, Memories, MemoryEntries, Policies, Projects, Secrets, Sessions, SoatClient, Tools, 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 };
|