@toolproof-npm/shared 0.1.23 → 0.1.28

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 CHANGED
@@ -1,4 +1,3 @@
1
1
  export * as CONSTANTS from './constants.js';
2
2
  export * as TYPES from './types.js';
3
3
  export * from './firestoreAdminHelpers.js';
4
- export type { GraphStartEvent, StepCompleteEvent, GraphEndEvent, WorkflowRunEvent, } from './types.js';
package/dist/types.d.ts CHANGED
@@ -8,11 +8,6 @@ export type RoleConst = typeof CONSTANTS.ARCHETYPES_PSEUDO.roles;
8
8
  export type ResourceConst = typeof CONSTANTS.RESOURCES.resources;
9
9
  export type StepConst = typeof CONSTANTS.STEP.work | typeof CONSTANTS.STEP.branch | typeof CONSTANTS.STEP.while | typeof CONSTANTS.STEP.for;
10
10
  export type WorkflowConst = typeof CONSTANTS.WORKFLOW.workflow | typeof CONSTANTS.WORKFLOW.workflowSpec | typeof CONSTANTS.WORKFLOW.execution;
11
- export interface DryRunManagerType {
12
- dryRunMode: boolean;
13
- delay: number;
14
- drySocketMode: boolean;
15
- }
16
11
  export type Role = {
17
12
  id: RoleIdJson;
18
13
  } & RoleLiteralJson;
@@ -30,45 +25,3 @@ export type ExternallyProvidedResourceMeta = {
30
25
  executionId: ExecutionIdJson;
31
26
  };
32
27
  };
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolproof-npm/shared",
3
- "version": "0.1.23",
3
+ "version": "0.1.28",
4
4
  "description": "Core library utilities for ToolProof",
5
5
  "keywords": [
6
6
  "toolproof",
@@ -55,7 +55,7 @@
55
55
  "typescript": "^5.9.3"
56
56
  },
57
57
  "dependencies": {
58
- "@toolproof-npm/schema": "^0.1.20",
58
+ "@toolproof-npm/schema": "^0.1.22",
59
59
  "firebase-admin": "^13.6.0"
60
60
  }
61
61
  }