@vertesia/common 0.64.0 → 0.65.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.
@@ -1,3 +1,6 @@
1
+ import { JSONSchema4 } from "json-schema";
2
+ import { InteractionRef } from "../interaction.js";
3
+
1
4
  export enum ContentEventName {
2
5
  create = "create",
3
6
  change_type = "change_type",
@@ -195,6 +198,31 @@ interface WorkflowRunEvent {
195
198
  startedEventId?: string;
196
199
  };
197
200
 
201
+ childWorkflow?: {
202
+ workflowId?: string,
203
+ workflowType?: string,
204
+ runId?: string,
205
+ scheduledEventId?: string,
206
+ startedEventId?: string,
207
+ input?: any,
208
+ result?: any,
209
+ };
210
+
211
+ signal?: {
212
+ direction: "receiving" | "sending";
213
+ signalName?: string,
214
+ input?: any,
215
+ sender?: {
216
+ workflowId?: string,
217
+ runId?: string
218
+ }
219
+ recipient?: {
220
+ workflowId?: string,
221
+ runId?: string
222
+ },
223
+ initiatedEventId?: string,
224
+ }
225
+
198
226
  error?: {
199
227
  message?: string;
200
228
  source?: string;
@@ -219,7 +247,9 @@ export interface WorkflowRun {
219
247
  run_id?: string;
220
248
  workflow_id?: string;
221
249
  initiated_by?: string;
250
+ input?: any;
222
251
  result?: any;
252
+ error?:any,
223
253
  raw?: any;
224
254
  /**
225
255
  * The Vertesia Workflow Type of this Workflow Run.
@@ -228,6 +258,10 @@ export interface WorkflowRun {
228
258
  * - For non-DSL workflows, the vertesia_type is the name of the Temporal Workflow Type.
229
259
  */
230
260
  vertesia_workflow_type?: string;
261
+ /**
262
+ * An interaction is used to start the agent, the data is stored on temporal "vars"
263
+ */
264
+ interactions?: InteractionRef[];
231
265
  }
232
266
 
233
267
  export interface WorkflowRunWithDetails extends WorkflowRun {
@@ -235,11 +269,36 @@ export interface WorkflowRunWithDetails extends WorkflowRun {
235
269
  memo?: {
236
270
  [key: string]: any;
237
271
  } | null;
272
+ pendingActivities?: {
273
+ activityId?: string;
274
+ activityType?: string;
275
+ attempt: number;
276
+ maximumAttempts: number;
277
+ lastFailure?: string;
278
+ lastStartedTime?: number;
279
+ }[];
238
280
  }
239
281
  export interface ListWorkflowRunsResponse {
240
282
  runs: WorkflowRun[];
241
283
  }
242
284
 
285
+ export interface ListWorkflowInteractionsResponse {
286
+ workflow_id: string,
287
+ run_id: string,
288
+ interaction: WorkflowInteraction
289
+ }
290
+
291
+ export interface WorkflowInteraction {
292
+ type: string,
293
+ model: string,
294
+ tools: [],
295
+ interaction: string,
296
+ environment: string,
297
+ prompt_data: JSONSchema4,
298
+ interactive: boolean,
299
+ interactionParamsSchema?: JSONSchema4
300
+ }
301
+
243
302
  export interface MultiDocumentsInteractionParams extends Omit<WorkflowExecutionPayload, "config"> {
244
303
  config: {
245
304
  interactionName: string;