@vertesia/client 0.76.0 → 0.78.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.
@@ -32,8 +32,10 @@ export class WorkflowsApi extends ApiTopic {
32
32
  }
33
33
 
34
34
  /** List conversations the users has access to */
35
- listConversations(): Promise<ListWorkflowRunsResponse> {
36
- return this.get(`/conversations`);
35
+ listConversations(payload: ListWorkflowRunsPayload): Promise<ListWorkflowRunsResponse> {
36
+ return this.post(`/conversations`, {
37
+ payload
38
+ });
37
39
  }
38
40
 
39
41
  searchRuns(payload: ListWorkflowRunsPayload): Promise<ListWorkflowRunsResponse> {
@@ -176,8 +178,8 @@ export class WorkflowsApi extends ApiTopic {
176
178
 
177
179
  if (onMessage) onMessage(message, exit);
178
180
 
179
- const streamIsOver = message.type === AgentMessageType.TERMINATED ||
180
- (message.type === AgentMessageType.COMPLETE &&
181
+ const streamIsOver = message.type === AgentMessageType.TERMINATED ||
182
+ (message.type === AgentMessageType.COMPLETE &&
181
183
  (!message.workstream_id || message.workstream_id === 'main'));
182
184
 
183
185
  // Only close the stream when the main workstream completes or terminates