@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.
- package/lib/cjs/store/ObjectsApi.js.map +1 -1
- package/lib/cjs/store/WorkflowsApi.js +4 -2
- package/lib/cjs/store/WorkflowsApi.js.map +1 -1
- package/lib/esm/store/ObjectsApi.js.map +1 -1
- package/lib/esm/store/WorkflowsApi.js +4 -2
- package/lib/esm/store/WorkflowsApi.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/store/ObjectsApi.d.ts +3 -1
- package/lib/types/store/ObjectsApi.d.ts.map +1 -1
- package/lib/types/store/WorkflowsApi.d.ts +1 -1
- package/lib/types/store/WorkflowsApi.d.ts.map +1 -1
- package/lib/vertesia-client.js +1 -1
- package/lib/vertesia-client.js.map +1 -1
- package/package.json +4 -4
- package/src/store/ObjectsApi.ts +3 -0
- package/src/store/WorkflowsApi.ts +6 -4
|
@@ -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.
|
|
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
|