@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.mjs
CHANGED
|
@@ -1220,6 +1220,109 @@ var Conversations = class {
|
|
|
1220
1220
|
});
|
|
1221
1221
|
}
|
|
1222
1222
|
};
|
|
1223
|
+
var Discussions = class {
|
|
1224
|
+
/**
|
|
1225
|
+
* List discussions
|
|
1226
|
+
*
|
|
1227
|
+
* Returns all discussions the caller has access to. If project_id is provided, returns only discussions in that project.
|
|
1228
|
+
*/
|
|
1229
|
+
static listDiscussions(options) {
|
|
1230
|
+
return (options?.client ?? client).get({
|
|
1231
|
+
url: "/api/v1/discussions",
|
|
1232
|
+
...options
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
/**
|
|
1236
|
+
* Create a discussion
|
|
1237
|
+
*
|
|
1238
|
+
* Creates a new discussion config. project keys infer the project from the key's scope; JWT callers must supply project_id.
|
|
1239
|
+
*/
|
|
1240
|
+
static createDiscussion(options) {
|
|
1241
|
+
return (options.client ?? client).post({
|
|
1242
|
+
url: "/api/v1/discussions",
|
|
1243
|
+
...options,
|
|
1244
|
+
headers: {
|
|
1245
|
+
"Content-Type": "application/json",
|
|
1246
|
+
...options.headers
|
|
1247
|
+
}
|
|
1248
|
+
});
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Get a discussion run by ID
|
|
1252
|
+
*
|
|
1253
|
+
* Returns a single discussion run, including its outcome, transcript conversation, and outcome document.
|
|
1254
|
+
*/
|
|
1255
|
+
static getDiscussionRun(options) {
|
|
1256
|
+
return (options.client ?? client).get({
|
|
1257
|
+
url: "/api/v1/discussions/runs/{run_id}",
|
|
1258
|
+
...options
|
|
1259
|
+
});
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* Delete a discussion
|
|
1263
|
+
*
|
|
1264
|
+
* Deletes a discussion config and its participants.
|
|
1265
|
+
*/
|
|
1266
|
+
static deleteDiscussion(options) {
|
|
1267
|
+
return (options.client ?? client).delete({
|
|
1268
|
+
url: "/api/v1/discussions/{discussion_id}",
|
|
1269
|
+
...options
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* Get a discussion by ID
|
|
1274
|
+
*
|
|
1275
|
+
* Returns a discussion config with its participants.
|
|
1276
|
+
*/
|
|
1277
|
+
static getDiscussion(options) {
|
|
1278
|
+
return (options.client ?? client).get({
|
|
1279
|
+
url: "/api/v1/discussions/{discussion_id}",
|
|
1280
|
+
...options
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* Update a discussion
|
|
1285
|
+
*
|
|
1286
|
+
* Updates a discussion. Providing participants replaces the full set (not merged).
|
|
1287
|
+
*/
|
|
1288
|
+
static updateDiscussion(options) {
|
|
1289
|
+
return (options.client ?? client).patch({
|
|
1290
|
+
url: "/api/v1/discussions/{discussion_id}",
|
|
1291
|
+
...options,
|
|
1292
|
+
headers: {
|
|
1293
|
+
"Content-Type": "application/json",
|
|
1294
|
+
...options.headers
|
|
1295
|
+
}
|
|
1296
|
+
});
|
|
1297
|
+
}
|
|
1298
|
+
/**
|
|
1299
|
+
* List a discussion's runs
|
|
1300
|
+
*
|
|
1301
|
+
* Returns the run history of a discussion, most recent first.
|
|
1302
|
+
*/
|
|
1303
|
+
static listDiscussionRuns(options) {
|
|
1304
|
+
return (options.client ?? client).get({
|
|
1305
|
+
url: "/api/v1/discussions/{discussion_id}/runs",
|
|
1306
|
+
...options
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
/**
|
|
1310
|
+
* Invoke a discussion
|
|
1311
|
+
*
|
|
1312
|
+
* 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.
|
|
1313
|
+
*
|
|
1314
|
+
*/
|
|
1315
|
+
static createDiscussionRun(options) {
|
|
1316
|
+
return (options.client ?? client).post({
|
|
1317
|
+
url: "/api/v1/discussions/{discussion_id}/runs",
|
|
1318
|
+
...options,
|
|
1319
|
+
headers: {
|
|
1320
|
+
"Content-Type": "application/json",
|
|
1321
|
+
...options.headers
|
|
1322
|
+
}
|
|
1323
|
+
});
|
|
1324
|
+
}
|
|
1325
|
+
};
|
|
1223
1326
|
var Documents = class {
|
|
1224
1327
|
/**
|
|
1225
1328
|
* List documents
|
|
@@ -2061,7 +2164,7 @@ var Orchestrations = class {
|
|
|
2061
2164
|
/**
|
|
2062
2165
|
* Start an orchestration run
|
|
2063
2166
|
*
|
|
2064
|
-
* 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/
|
|
2167
|
+
* 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).
|
|
2065
2168
|
*/
|
|
2066
2169
|
static startOrchestrationRun(options) {
|
|
2067
2170
|
return (options.client ?? client).post({
|
|
@@ -2076,7 +2179,7 @@ var Orchestrations = class {
|
|
|
2076
2179
|
/**
|
|
2077
2180
|
* Cancel an orchestration run
|
|
2078
2181
|
*
|
|
2079
|
-
* Cancels a
|
|
2182
|
+
* Cancels a run that has not yet reached a terminal state.
|
|
2080
2183
|
*/
|
|
2081
2184
|
static cancelOrchestrationRun(options) {
|
|
2082
2185
|
return (options.client ?? client).post({
|
|
@@ -2087,7 +2190,7 @@ var Orchestrations = class {
|
|
|
2087
2190
|
/**
|
|
2088
2191
|
* Submit human input
|
|
2089
2192
|
*
|
|
2090
|
-
* Provides human input to a
|
|
2193
|
+
* Provides human input to a run that is awaiting_input at a human node.
|
|
2091
2194
|
*/
|
|
2092
2195
|
static submitHumanInput(options) {
|
|
2093
2196
|
return (options.client ?? client).post({
|
|
@@ -2102,7 +2205,7 @@ var Orchestrations = class {
|
|
|
2102
2205
|
/**
|
|
2103
2206
|
* Resume an orchestration run
|
|
2104
2207
|
*
|
|
2105
|
-
* Resumes
|
|
2208
|
+
* Resumes an awaiting_input orchestration run from its last checkpoint.
|
|
2106
2209
|
*/
|
|
2107
2210
|
static resumeOrchestrationRun(options) {
|
|
2108
2211
|
return (options.client ?? client).post({
|
|
@@ -2911,4 +3014,4 @@ var SoatClient = class {
|
|
|
2911
3014
|
}
|
|
2912
3015
|
};
|
|
2913
3016
|
//#endregion
|
|
2914
|
-
export { Actors, Agents, AiProviders, ApiKeys, Chats, Conversations, Documents, Embeddings, Files, Formations, Generations, IngestionRules, Knowledge, Memories, MemoryEntries, Orchestrations, Policies, Projects, Secrets, Sessions, SoatClient, Tools, Traces, Users, Webhooks, createClient, createConfig };
|
|
3017
|
+
export { Actors, Agents, AiProviders, ApiKeys, Chats, Conversations, Discussions, Documents, Embeddings, Files, Formations, Generations, IngestionRules, Knowledge, Memories, MemoryEntries, Orchestrations, Policies, Projects, Secrets, Sessions, SoatClient, Tools, Traces, Users, Webhooks, createClient, createConfig };
|