@vertesia/common 0.60.0 → 0.62.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.
Files changed (69) hide show
  1. package/lib/cjs/index.js +1 -0
  2. package/lib/cjs/index.js.map +1 -1
  3. package/lib/cjs/interaction.js +2 -1
  4. package/lib/cjs/interaction.js.map +1 -1
  5. package/lib/cjs/json.js +3 -0
  6. package/lib/cjs/json.js.map +1 -0
  7. package/lib/cjs/store/workflow.js.map +1 -1
  8. package/lib/esm/index.js +1 -0
  9. package/lib/esm/index.js.map +1 -1
  10. package/lib/esm/interaction.js +1 -0
  11. package/lib/esm/interaction.js.map +1 -1
  12. package/lib/esm/json.js +2 -0
  13. package/lib/esm/json.js.map +1 -0
  14. package/lib/esm/store/workflow.js.map +1 -1
  15. package/lib/tsconfig.tsbuildinfo +1 -1
  16. package/lib/types/Progress.d.ts +0 -1
  17. package/lib/types/access-control.d.ts +0 -1
  18. package/lib/types/analytics.d.ts +0 -1
  19. package/lib/types/apikey.d.ts +0 -1
  20. package/lib/types/common.d.ts +0 -1
  21. package/lib/types/environment.d.ts +0 -1
  22. package/lib/types/facets.d.ts +0 -1
  23. package/lib/types/index.d.ts +1 -1
  24. package/lib/types/index.d.ts.map +1 -1
  25. package/lib/types/integrations.d.ts +0 -1
  26. package/lib/types/interaction.d.ts +39 -1
  27. package/lib/types/interaction.d.ts.map +1 -1
  28. package/lib/types/json-schema.d.ts +0 -1
  29. package/lib/types/json.d.ts +1 -0
  30. package/lib/types/json.d.ts.map +1 -0
  31. package/lib/types/meters.d.ts +0 -1
  32. package/lib/types/payload.d.ts +0 -1
  33. package/lib/types/plugin.d.ts +29 -2
  34. package/lib/types/plugin.d.ts.map +1 -1
  35. package/lib/types/project.d.ts +0 -1
  36. package/lib/types/prompt.d.ts +0 -1
  37. package/lib/types/query.d.ts +1 -2
  38. package/lib/types/refs.d.ts +0 -1
  39. package/lib/types/runs.d.ts +0 -1
  40. package/lib/types/store/activity-catalog.d.ts +0 -1
  41. package/lib/types/store/agent.d.ts +0 -1
  42. package/lib/types/store/collections.d.ts +1 -1
  43. package/lib/types/store/collections.d.ts.map +1 -1
  44. package/lib/types/store/common.d.ts +0 -1
  45. package/lib/types/store/doc-analyzer.d.ts +0 -1
  46. package/lib/types/store/dsl-workflow.d.ts +0 -1
  47. package/lib/types/store/index.d.ts +0 -1
  48. package/lib/types/store/object-types.d.ts +0 -1
  49. package/lib/types/store/signals.d.ts +0 -1
  50. package/lib/types/store/store.d.ts +0 -1
  51. package/lib/types/store/temporalio.d.ts +0 -1
  52. package/lib/types/store/workflow.d.ts +20 -7
  53. package/lib/types/store/workflow.d.ts.map +1 -1
  54. package/lib/types/tenant.d.ts +0 -1
  55. package/lib/types/training.d.ts +0 -1
  56. package/lib/types/transient-tokens.d.ts +0 -1
  57. package/lib/types/user.d.ts +0 -1
  58. package/lib/types/utils/auth.d.ts +0 -1
  59. package/lib/types/utils/schemas.d.ts +0 -1
  60. package/lib/vertesia-common.js +1 -1
  61. package/lib/vertesia-common.js.map +1 -1
  62. package/package.json +1 -1
  63. package/src/index.ts +2 -1
  64. package/src/interaction.ts +44 -0
  65. package/src/json.ts +4 -0
  66. package/src/plugin.ts +33 -1
  67. package/src/query.ts +1 -1
  68. package/src/store/collections.ts +1 -0
  69. package/src/store/workflow.ts +20 -6
@@ -65,4 +65,5 @@ export interface CollectionSearchPayload {
65
65
  status?: CollectionStatus;
66
66
  limit?: number;
67
67
  offset?: number;
68
+ name?: string;
68
69
  }
@@ -184,19 +184,21 @@ interface WorkflowRunEvent {
184
184
  event_id: number;
185
185
  event_time: number;
186
186
  event_type: string;
187
- task_id: string;
187
+ task_id?: string;
188
188
  attempt: number;
189
189
 
190
190
  activity?: {
191
- name: string;
192
- id: string;
191
+ name?: string;
192
+ id?: string;
193
193
  input?: any;
194
+ scheduledEventId?: string;
195
+ startedEventId?: string;
194
196
  };
195
197
 
196
198
  error?: {
197
- message: string;
198
- source: string;
199
- stacktrace: string;
199
+ message?: string;
200
+ source?: string;
201
+ stacktrace?: string;
200
202
  type?: string;
201
203
  };
202
204
 
@@ -205,6 +207,11 @@ interface WorkflowRunEvent {
205
207
 
206
208
  export interface WorkflowRun {
207
209
  status?: WorkflowExecutionStatus | string;
210
+ /**
211
+ * The Temporal Workflow Type of this Workflow Run.
212
+ *
213
+ * @see https://docs.temporal.io/workflows
214
+ */
208
215
  type?: string;
209
216
  started_at?: number;
210
217
  closed_at?: number;
@@ -214,6 +221,13 @@ export interface WorkflowRun {
214
221
  initiated_by?: string;
215
222
  result?: any;
216
223
  raw?: any;
224
+ /**
225
+ * The Vertesia Workflow Type of this Workflow Run.
226
+ * - For DSL workflows (`type:dslWorkflow`), the vertesia_type refers to the "Workflow Rule Name" specified in the
227
+ * DSL. For example, "Standard Document Intake" or "Standard Image Intake".
228
+ * - For non-DSL workflows, the vertesia_type is the name of the Temporal Workflow Type.
229
+ */
230
+ vertesia_workflow_type?: string;
217
231
  }
218
232
 
219
233
  export interface WorkflowRunWithDetails extends WorkflowRun {