@leaflow/sdk 0.42.0 → 0.44.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.
|
@@ -455,12 +455,24 @@ export interface paths {
|
|
|
455
455
|
get: operations["get-thread"];
|
|
456
456
|
put?: never;
|
|
457
457
|
post?: never;
|
|
458
|
-
|
|
458
|
+
/**
|
|
459
|
+
* Delete a conversation
|
|
460
|
+
* @description Removes the conversation from every list and makes it unreachable by id. The assistant can no longer find it either — neither by searching past conversations nor by reading one back.
|
|
461
|
+
*
|
|
462
|
+
* Deleting is not the same as archiving, and the two are not degrees of the same thing. An archived conversation is still there and still readable, it just takes no new input; a deleted one is gone from view. Archiving can be undone; this cannot.
|
|
463
|
+
*
|
|
464
|
+
* What survives is the record itself, because a conversation with this assistant is an account of what was done to real infrastructure — which machine was changed, which disk was removed. That record is kept even though nobody can reach it here.
|
|
465
|
+
*
|
|
466
|
+
* Fails while a turn is running: stop it first. Deleting an already deleted conversation succeeds and changes nothing.
|
|
467
|
+
*/
|
|
468
|
+
delete: operations["delete-thread"];
|
|
459
469
|
options?: never;
|
|
460
470
|
head?: never;
|
|
461
471
|
/**
|
|
462
472
|
* Update conversation settings
|
|
463
|
-
* @description Changes the approval mode and archived
|
|
473
|
+
* @description Changes the title, the approval mode, and whether the conversation is archived. A change to the approval mode takes effect from the next turn; a turn already running keeps the settings it started with.
|
|
474
|
+
*
|
|
475
|
+
* Archiving makes a conversation read-only: it stays in the list under "archived", stays readable, and the assistant can still find it when it searches past conversations — it just takes no new input. Unarchive it to continue. Archiving fails while a turn is running; stop it first.
|
|
464
476
|
*/
|
|
465
477
|
patch: operations["update-thread"];
|
|
466
478
|
trace?: never;
|
|
@@ -1143,6 +1155,14 @@ export interface components {
|
|
|
1143
1155
|
/** @enum {string} */
|
|
1144
1156
|
approvalMode?: "guardian" | "manual" | "yolo";
|
|
1145
1157
|
archived?: boolean;
|
|
1158
|
+
/**
|
|
1159
|
+
* @description Rename this conversation.
|
|
1160
|
+
*
|
|
1161
|
+
* A conversation names itself: the first message gives it a working title, and the assistant replaces that with a better one once it has answered. Setting this stops both — a name somebody chose is never overwritten by one that was generated.
|
|
1162
|
+
*
|
|
1163
|
+
* Renaming does not move the conversation in the list. The order answers "which conversation has something new in it", and editing a title is not that.
|
|
1164
|
+
*/
|
|
1165
|
+
title?: string;
|
|
1146
1166
|
};
|
|
1147
1167
|
DecideRequestBody: {
|
|
1148
1168
|
approved: boolean;
|
|
@@ -2259,6 +2279,35 @@ export interface operations {
|
|
|
2259
2279
|
};
|
|
2260
2280
|
};
|
|
2261
2281
|
};
|
|
2282
|
+
"delete-thread": {
|
|
2283
|
+
parameters: {
|
|
2284
|
+
query?: never;
|
|
2285
|
+
header?: never;
|
|
2286
|
+
path: {
|
|
2287
|
+
thread: string;
|
|
2288
|
+
};
|
|
2289
|
+
cookie?: never;
|
|
2290
|
+
};
|
|
2291
|
+
requestBody?: never;
|
|
2292
|
+
responses: {
|
|
2293
|
+
/** @description No Content */
|
|
2294
|
+
204: {
|
|
2295
|
+
headers: {
|
|
2296
|
+
[name: string]: unknown;
|
|
2297
|
+
};
|
|
2298
|
+
content?: never;
|
|
2299
|
+
};
|
|
2300
|
+
/** @description Error */
|
|
2301
|
+
default: {
|
|
2302
|
+
headers: {
|
|
2303
|
+
[name: string]: unknown;
|
|
2304
|
+
};
|
|
2305
|
+
content: {
|
|
2306
|
+
"application/json": components["schemas"]["Error"];
|
|
2307
|
+
};
|
|
2308
|
+
};
|
|
2309
|
+
};
|
|
2310
|
+
};
|
|
2262
2311
|
"update-thread": {
|
|
2263
2312
|
parameters: {
|
|
2264
2313
|
query?: never;
|