@soat/sdk 0.13.19 → 0.14.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.cjs +108 -4
- package/dist/index.d.cts +577 -104
- package/dist/index.d.mts +577 -104
- package/dist/index.mjs +108 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1221,6 +1221,109 @@ var Conversations = class {
|
|
|
1221
1221
|
});
|
|
1222
1222
|
}
|
|
1223
1223
|
};
|
|
1224
|
+
var Discussions = class {
|
|
1225
|
+
/**
|
|
1226
|
+
* List discussions
|
|
1227
|
+
*
|
|
1228
|
+
* Returns all discussions the caller has access to. If project_id is provided, returns only discussions in that project.
|
|
1229
|
+
*/
|
|
1230
|
+
static listDiscussions(options) {
|
|
1231
|
+
return (options?.client ?? client).get({
|
|
1232
|
+
url: "/api/v1/discussions",
|
|
1233
|
+
...options
|
|
1234
|
+
});
|
|
1235
|
+
}
|
|
1236
|
+
/**
|
|
1237
|
+
* Create a discussion
|
|
1238
|
+
*
|
|
1239
|
+
* Creates a new discussion config. project keys infer the project from the key's scope; JWT callers must supply project_id.
|
|
1240
|
+
*/
|
|
1241
|
+
static createDiscussion(options) {
|
|
1242
|
+
return (options.client ?? client).post({
|
|
1243
|
+
url: "/api/v1/discussions",
|
|
1244
|
+
...options,
|
|
1245
|
+
headers: {
|
|
1246
|
+
"Content-Type": "application/json",
|
|
1247
|
+
...options.headers
|
|
1248
|
+
}
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* Get a discussion run by ID
|
|
1253
|
+
*
|
|
1254
|
+
* Returns a single discussion run, including its outcome, transcript conversation, and outcome document.
|
|
1255
|
+
*/
|
|
1256
|
+
static getDiscussionRun(options) {
|
|
1257
|
+
return (options.client ?? client).get({
|
|
1258
|
+
url: "/api/v1/discussions/runs/{run_id}",
|
|
1259
|
+
...options
|
|
1260
|
+
});
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* Delete a discussion
|
|
1264
|
+
*
|
|
1265
|
+
* Deletes a discussion config and its participants.
|
|
1266
|
+
*/
|
|
1267
|
+
static deleteDiscussion(options) {
|
|
1268
|
+
return (options.client ?? client).delete({
|
|
1269
|
+
url: "/api/v1/discussions/{discussion_id}",
|
|
1270
|
+
...options
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
1273
|
+
/**
|
|
1274
|
+
* Get a discussion by ID
|
|
1275
|
+
*
|
|
1276
|
+
* Returns a discussion config with its participants.
|
|
1277
|
+
*/
|
|
1278
|
+
static getDiscussion(options) {
|
|
1279
|
+
return (options.client ?? client).get({
|
|
1280
|
+
url: "/api/v1/discussions/{discussion_id}",
|
|
1281
|
+
...options
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* Update a discussion
|
|
1286
|
+
*
|
|
1287
|
+
* Updates a discussion. Providing participants replaces the full set (not merged).
|
|
1288
|
+
*/
|
|
1289
|
+
static updateDiscussion(options) {
|
|
1290
|
+
return (options.client ?? client).patch({
|
|
1291
|
+
url: "/api/v1/discussions/{discussion_id}",
|
|
1292
|
+
...options,
|
|
1293
|
+
headers: {
|
|
1294
|
+
"Content-Type": "application/json",
|
|
1295
|
+
...options.headers
|
|
1296
|
+
}
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* List a discussion's runs
|
|
1301
|
+
*
|
|
1302
|
+
* Returns the run history of a discussion, most recent first.
|
|
1303
|
+
*/
|
|
1304
|
+
static listDiscussionRuns(options) {
|
|
1305
|
+
return (options.client ?? client).get({
|
|
1306
|
+
url: "/api/v1/discussions/{discussion_id}/runs",
|
|
1307
|
+
...options
|
|
1308
|
+
});
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* Invoke a discussion
|
|
1312
|
+
*
|
|
1313
|
+
* Runs the discussion synchronously over the given topic and returns the completed run, whose outcome inlines the synthesized text. The run's transcript is persisted as a conversation and the outcome as a document.
|
|
1314
|
+
*
|
|
1315
|
+
*/
|
|
1316
|
+
static createDiscussionRun(options) {
|
|
1317
|
+
return (options.client ?? client).post({
|
|
1318
|
+
url: "/api/v1/discussions/{discussion_id}/runs",
|
|
1319
|
+
...options,
|
|
1320
|
+
headers: {
|
|
1321
|
+
"Content-Type": "application/json",
|
|
1322
|
+
...options.headers
|
|
1323
|
+
}
|
|
1324
|
+
});
|
|
1325
|
+
}
|
|
1326
|
+
};
|
|
1224
1327
|
var Documents = class {
|
|
1225
1328
|
/**
|
|
1226
1329
|
* List documents
|
|
@@ -2062,7 +2165,7 @@ var Orchestrations = class {
|
|
|
2062
2165
|
/**
|
|
2063
2166
|
* Start an orchestration run
|
|
2064
2167
|
*
|
|
2065
|
-
* Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status "running" and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/
|
|
2168
|
+
* Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status "running" and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/awaiting_input/succeeded/failed). Delay and poll waits park the run as "sleeping" and are woken by a background scheduler, surviving restarts. Pass wait=true to block until the run reaches a terminal or awaiting_input state (the legacy synchronous behaviour).
|
|
2066
2169
|
*/
|
|
2067
2170
|
static startOrchestrationRun(options) {
|
|
2068
2171
|
return (options.client ?? client).post({
|
|
@@ -2077,7 +2180,7 @@ var Orchestrations = class {
|
|
|
2077
2180
|
/**
|
|
2078
2181
|
* Cancel an orchestration run
|
|
2079
2182
|
*
|
|
2080
|
-
* Cancels a
|
|
2183
|
+
* Cancels a run that has not yet reached a terminal state.
|
|
2081
2184
|
*/
|
|
2082
2185
|
static cancelOrchestrationRun(options) {
|
|
2083
2186
|
return (options.client ?? client).post({
|
|
@@ -2088,7 +2191,7 @@ var Orchestrations = class {
|
|
|
2088
2191
|
/**
|
|
2089
2192
|
* Submit human input
|
|
2090
2193
|
*
|
|
2091
|
-
* Provides human input to a
|
|
2194
|
+
* Provides human input to a run that is awaiting_input at a human node.
|
|
2092
2195
|
*/
|
|
2093
2196
|
static submitHumanInput(options) {
|
|
2094
2197
|
return (options.client ?? client).post({
|
|
@@ -2103,7 +2206,7 @@ var Orchestrations = class {
|
|
|
2103
2206
|
/**
|
|
2104
2207
|
* Resume an orchestration run
|
|
2105
2208
|
*
|
|
2106
|
-
* Resumes
|
|
2209
|
+
* Resumes an awaiting_input orchestration run from its last checkpoint.
|
|
2107
2210
|
*/
|
|
2108
2211
|
static resumeOrchestrationRun(options) {
|
|
2109
2212
|
return (options.client ?? client).post({
|
|
@@ -2918,6 +3021,7 @@ exports.AiProviders = AiProviders;
|
|
|
2918
3021
|
exports.ApiKeys = ApiKeys;
|
|
2919
3022
|
exports.Chats = Chats;
|
|
2920
3023
|
exports.Conversations = Conversations;
|
|
3024
|
+
exports.Discussions = Discussions;
|
|
2921
3025
|
exports.Documents = Documents;
|
|
2922
3026
|
exports.Embeddings = Embeddings;
|
|
2923
3027
|
exports.Files = Files;
|