@soat/sdk 0.5.8 → 0.6.1
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/index.js
CHANGED
|
@@ -43,6 +43,7 @@ __export(index_exports, {
|
|
|
43
43
|
Knowledge: () => Knowledge,
|
|
44
44
|
Memories: () => Memories,
|
|
45
45
|
MemoryEntries: () => MemoryEntries,
|
|
46
|
+
Orchestrations: () => Orchestrations,
|
|
46
47
|
Policies: () => Policies,
|
|
47
48
|
Projects: () => Projects,
|
|
48
49
|
Secrets: () => Secrets,
|
|
@@ -2098,6 +2099,148 @@ var MemoryEntries = class {
|
|
|
2098
2099
|
});
|
|
2099
2100
|
}
|
|
2100
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
|
+
};
|
|
2101
2244
|
var Policies = class {
|
|
2102
2245
|
static {
|
|
2103
2246
|
__name(this, "Policies");
|
|
@@ -2885,6 +3028,7 @@ var SoatClient = class {
|
|
|
2885
3028
|
Knowledge,
|
|
2886
3029
|
Memories,
|
|
2887
3030
|
MemoryEntries,
|
|
3031
|
+
Orchestrations,
|
|
2888
3032
|
Policies,
|
|
2889
3033
|
Projects,
|
|
2890
3034
|
Secrets,
|