@breign/client 1.0.202 → 1.0.203
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.
|
@@ -39,6 +39,9 @@ export interface DeleteContextCustomVariableKeyRequest {
|
|
|
39
39
|
conversationId: string;
|
|
40
40
|
key: string;
|
|
41
41
|
}
|
|
42
|
+
export interface DeleteConversationByIdRequest {
|
|
43
|
+
conversationId: string;
|
|
44
|
+
}
|
|
42
45
|
export interface DeleteConversationWorkspaceFileRequest {
|
|
43
46
|
conversationId: string;
|
|
44
47
|
path: string;
|
|
@@ -213,6 +216,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
213
216
|
* Delete a custom variable key from the context of a conversation
|
|
214
217
|
*/
|
|
215
218
|
deleteContextCustomVariableKey(conversationId: string, key: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
219
|
+
/**
|
|
220
|
+
* Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.
|
|
221
|
+
* Permanently delete a conversation.
|
|
222
|
+
*/
|
|
223
|
+
deleteConversationByIdRaw(requestParameters: DeleteConversationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
224
|
+
/**
|
|
225
|
+
* Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.
|
|
226
|
+
* Permanently delete a conversation.
|
|
227
|
+
*/
|
|
228
|
+
deleteConversationById(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
216
229
|
/**
|
|
217
230
|
* Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
|
|
218
231
|
* Delete a file from a conversation workspace
|
|
@@ -273,6 +273,34 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
273
273
|
async deleteContextCustomVariableKey(conversationId, key, initOverrides) {
|
|
274
274
|
await this.deleteContextCustomVariableKeyRaw({ conversationId: conversationId, key: key }, initOverrides);
|
|
275
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.
|
|
278
|
+
* Permanently delete a conversation.
|
|
279
|
+
*/
|
|
280
|
+
async deleteConversationByIdRaw(requestParameters, initOverrides) {
|
|
281
|
+
if (requestParameters['conversationId'] == null) {
|
|
282
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling deleteConversationById().');
|
|
283
|
+
}
|
|
284
|
+
const queryParameters = {};
|
|
285
|
+
const headerParameters = {};
|
|
286
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
287
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
288
|
+
}
|
|
289
|
+
const response = await this.request({
|
|
290
|
+
path: `/conversations/{conversationId}/permanent`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
291
|
+
method: 'DELETE',
|
|
292
|
+
headers: headerParameters,
|
|
293
|
+
query: queryParameters,
|
|
294
|
+
}, initOverrides);
|
|
295
|
+
return new runtime.VoidApiResponse(response);
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.
|
|
299
|
+
* Permanently delete a conversation.
|
|
300
|
+
*/
|
|
301
|
+
async deleteConversationById(conversationId, initOverrides) {
|
|
302
|
+
await this.deleteConversationByIdRaw({ conversationId: conversationId }, initOverrides);
|
|
303
|
+
}
|
|
276
304
|
/**
|
|
277
305
|
* Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
|
|
278
306
|
* Delete a file from a conversation workspace
|
package/dist/openapi.json
CHANGED
|
@@ -15714,6 +15714,40 @@
|
|
|
15714
15714
|
"tags" : [ "prompts" ]
|
|
15715
15715
|
}
|
|
15716
15716
|
},
|
|
15717
|
+
"/conversations/{conversationId}/permanent" : {
|
|
15718
|
+
"delete" : {
|
|
15719
|
+
"description" : "Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.\n",
|
|
15720
|
+
"operationId" : "deleteConversationById",
|
|
15721
|
+
"parameters" : [ {
|
|
15722
|
+
"description" : "The ID of the conversation",
|
|
15723
|
+
"in" : "path",
|
|
15724
|
+
"name" : "conversationId",
|
|
15725
|
+
"required" : true,
|
|
15726
|
+
"schema" : {
|
|
15727
|
+
"type" : "string"
|
|
15728
|
+
}
|
|
15729
|
+
} ],
|
|
15730
|
+
"responses" : {
|
|
15731
|
+
"204" : {
|
|
15732
|
+
"description" : "Conversation permanently deleted."
|
|
15733
|
+
},
|
|
15734
|
+
"401" : {
|
|
15735
|
+
"description" : "Unauthorized"
|
|
15736
|
+
},
|
|
15737
|
+
"403" : {
|
|
15738
|
+
"description" : "Forbidden - User cannot delete this conversation"
|
|
15739
|
+
},
|
|
15740
|
+
"404" : {
|
|
15741
|
+
"description" : "Conversation not found"
|
|
15742
|
+
},
|
|
15743
|
+
"500" : {
|
|
15744
|
+
"description" : "Server error"
|
|
15745
|
+
}
|
|
15746
|
+
},
|
|
15747
|
+
"summary" : "Permanently delete a conversation.",
|
|
15748
|
+
"tags" : [ "conversations" ]
|
|
15749
|
+
}
|
|
15750
|
+
},
|
|
15717
15751
|
"/conversations/{conversationId}/prompts" : {
|
|
15718
15752
|
"post" : {
|
|
15719
15753
|
"description" : "Adds a new message to an existing conversation and gets the AI response",
|