@toolproof-npm/shared 0.1.22 → 0.1.23
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/dist/index.d.ts +1 -0
- package/dist/types.d.ts +42 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -30,3 +30,45 @@ export type ExternallyProvidedResourceMeta = {
|
|
|
30
30
|
executionId: ExecutionIdJson;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
+
export interface WorkflowSpecJson {
|
|
34
|
+
id: string;
|
|
35
|
+
workflow: {
|
|
36
|
+
id: string;
|
|
37
|
+
steps: Array<{
|
|
38
|
+
id: string;
|
|
39
|
+
kind: 'work' | string;
|
|
40
|
+
execution?: {
|
|
41
|
+
id?: string;
|
|
42
|
+
jobId?: string;
|
|
43
|
+
roleBindings?: {
|
|
44
|
+
inputBindingMap?: Record<string, string>;
|
|
45
|
+
outputBindingMap?: Record<string, string>;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
};
|
|
50
|
+
resourceMaps?: Array<Record<string, Record<string, unknown>>>;
|
|
51
|
+
}
|
|
52
|
+
export interface GraphStartEvent {
|
|
53
|
+
type: 'graph_start';
|
|
54
|
+
workflowSpec: WorkflowSpecJson;
|
|
55
|
+
}
|
|
56
|
+
export interface StepExecutionBindings {
|
|
57
|
+
id: string;
|
|
58
|
+
jobId: string;
|
|
59
|
+
roleBindings: {
|
|
60
|
+
inputBindingMap: Record<string, string>;
|
|
61
|
+
outputBindingMap: Record<string, string>;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export type ResourceMapDelta = Record<string, Record<string, unknown>>;
|
|
65
|
+
export interface StepCompleteEvent {
|
|
66
|
+
type: 'step_complete';
|
|
67
|
+
stepIndex: number;
|
|
68
|
+
execution: StepExecutionBindings;
|
|
69
|
+
resourceMapDelta: ResourceMapDelta;
|
|
70
|
+
}
|
|
71
|
+
export interface GraphEndEvent {
|
|
72
|
+
type: 'graph_end';
|
|
73
|
+
}
|
|
74
|
+
export type WorkflowRunEvent = GraphStartEvent | StepCompleteEvent | GraphEndEvent;
|