@xyne/workflow-sdk 3.2.36 → 3.2.38
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/agents/agent-step.d.ts +2 -2
- package/dist/agents/host-agent-step.d.ts +1 -1
- package/dist/builder/index.d.ts +2 -2
- package/dist/builder/index.d.ts.map +1 -1
- package/dist/builder/index.js +1 -1
- package/dist/builder/index.js.map +1 -1
- package/dist/client/events-client.d.ts +57 -0
- package/dist/client/events-client.d.ts.map +1 -0
- package/dist/client/events-client.js +107 -0
- package/dist/client/events-client.js.map +1 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/sse.d.ts +30 -0
- package/dist/client/sse.d.ts.map +1 -0
- package/dist/client/sse.js +76 -0
- package/dist/client/sse.js.map +1 -0
- package/dist/client/types.d.ts +31 -6
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/url.d.ts +11 -0
- package/dist/client/url.d.ts.map +1 -0
- package/dist/client/url.js +28 -0
- package/dist/client/url.js.map +1 -0
- package/dist/client/workflow-client.d.ts +1 -1
- package/dist/client/workflow-client.d.ts.map +1 -1
- package/dist/client/workflow-client.js +32 -20
- package/dist/client/workflow-client.js.map +1 -1
- package/dist/common/citation-ref.d.ts +4 -4
- package/dist/common/credentials.d.ts +107 -0
- package/dist/common/credentials.d.ts.map +1 -1
- package/dist/common/credentials.js +67 -0
- package/dist/common/credentials.js.map +1 -1
- package/dist/common/index.d.ts +2 -2
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +2 -2
- package/dist/common/index.js.map +1 -1
- package/dist/connectors/builtin/builtin-connector.d.ts +32 -0
- package/dist/connectors/builtin/builtin-connector.d.ts.map +1 -0
- package/dist/connectors/builtin/builtin-connector.js +62 -0
- package/dist/connectors/builtin/builtin-connector.js.map +1 -0
- package/dist/connectors/builtin/credentials.d.ts +18 -0
- package/dist/connectors/builtin/credentials.d.ts.map +1 -0
- package/dist/connectors/builtin/credentials.js +50 -0
- package/dist/connectors/builtin/credentials.js.map +1 -0
- package/dist/connectors/builtin/steps/code.step.d.ts +99 -0
- package/dist/connectors/builtin/steps/code.step.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/code.step.js +152 -0
- package/dist/connectors/builtin/steps/code.step.js.map +1 -0
- package/dist/connectors/builtin/steps/conditional.step.d.ts +182 -0
- package/dist/connectors/builtin/steps/conditional.step.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/conditional.step.js +82 -0
- package/dist/connectors/builtin/steps/conditional.step.js.map +1 -0
- package/dist/connectors/builtin/steps/dedup.step.d.ts +65 -0
- package/dist/connectors/builtin/steps/dedup.step.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/dedup.step.js +61 -0
- package/dist/connectors/builtin/steps/dedup.step.js.map +1 -0
- package/dist/connectors/builtin/steps/http-request.step.d.ts +1027 -0
- package/dist/connectors/builtin/steps/http-request.step.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/http-request.step.js +497 -0
- package/dist/connectors/builtin/steps/http-request.step.js.map +1 -0
- package/dist/connectors/builtin/steps/loop.step.d.ts +100 -0
- package/dist/connectors/builtin/steps/loop.step.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/loop.step.js +73 -0
- package/dist/connectors/builtin/steps/loop.step.js.map +1 -0
- package/dist/connectors/builtin/steps/map.step.d.ts +148 -0
- package/dist/connectors/builtin/steps/map.step.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/map.step.js +111 -0
- package/dist/connectors/builtin/steps/map.step.js.map +1 -0
- package/dist/connectors/builtin/steps/parallel.step.d.ts +246 -0
- package/dist/connectors/builtin/steps/parallel.step.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/parallel.step.js +175 -0
- package/dist/connectors/builtin/steps/parallel.step.js.map +1 -0
- package/dist/connectors/builtin/steps/ssrf-guard.d.ts +9 -0
- package/dist/connectors/builtin/steps/ssrf-guard.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/ssrf-guard.js +115 -0
- package/dist/connectors/builtin/steps/ssrf-guard.js.map +1 -0
- package/dist/connectors/builtin/steps/switch.step.d.ts +235 -0
- package/dist/connectors/builtin/steps/switch.step.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/switch.step.js +101 -0
- package/dist/connectors/builtin/steps/switch.step.js.map +1 -0
- package/dist/connectors/builtin/steps/wait.step.d.ts +1072 -0
- package/dist/connectors/builtin/steps/wait.step.d.ts.map +1 -0
- package/dist/connectors/builtin/steps/wait.step.js +254 -0
- package/dist/connectors/builtin/steps/wait.step.js.map +1 -0
- package/dist/connectors/builtin/triggers/default-cron-trigger.d.ts +44 -0
- package/dist/connectors/builtin/triggers/default-cron-trigger.d.ts.map +1 -0
- package/dist/connectors/builtin/triggers/default-cron-trigger.js +31 -0
- package/dist/connectors/builtin/triggers/default-cron-trigger.js.map +1 -0
- package/dist/connectors/builtin/triggers/default-event-trigger.d.ts +32 -0
- package/dist/connectors/builtin/triggers/default-event-trigger.d.ts.map +1 -0
- package/dist/connectors/builtin/triggers/default-event-trigger.js +21 -0
- package/dist/connectors/builtin/triggers/default-event-trigger.js.map +1 -0
- package/dist/connectors/builtin/triggers/default-manual-trigger.d.ts +45 -0
- package/dist/connectors/builtin/triggers/default-manual-trigger.d.ts.map +1 -0
- package/dist/connectors/builtin/triggers/default-manual-trigger.js +51 -0
- package/dist/connectors/builtin/triggers/default-manual-trigger.js.map +1 -0
- package/dist/connectors/builtin/triggers/default-webhook-v2-trigger.d.ts +31 -0
- package/dist/connectors/builtin/triggers/default-webhook-v2-trigger.d.ts.map +1 -0
- package/dist/connectors/builtin/triggers/default-webhook-v2-trigger.js +40 -0
- package/dist/connectors/builtin/triggers/default-webhook-v2-trigger.js.map +1 -0
- package/dist/connectors/core/base-connector.d.ts +45 -0
- package/dist/connectors/core/base-connector.d.ts.map +1 -0
- package/dist/connectors/core/base-connector.js +3 -0
- package/dist/connectors/core/base-connector.js.map +1 -0
- package/dist/connectors/core/connector-registry.d.ts +130 -0
- package/dist/connectors/core/connector-registry.d.ts.map +1 -0
- package/dist/connectors/core/connector-registry.js +357 -0
- package/dist/connectors/core/connector-registry.js.map +1 -0
- package/dist/connectors/core/credentials.d.ts +104 -0
- package/dist/connectors/core/credentials.d.ts.map +1 -0
- package/dist/connectors/core/credentials.js +67 -0
- package/dist/connectors/core/credentials.js.map +1 -0
- package/dist/connectors/core/index.d.ts +7 -0
- package/dist/connectors/core/index.d.ts.map +1 -0
- package/dist/connectors/core/index.js +5 -0
- package/dist/connectors/core/index.js.map +1 -0
- package/dist/engine/available-context.d.ts +3 -4
- package/dist/engine/available-context.d.ts.map +1 -1
- package/dist/engine/available-context.js +17 -13
- package/dist/engine/available-context.js.map +1 -1
- package/dist/engine/config-validator.d.ts +13 -5
- package/dist/engine/config-validator.d.ts.map +1 -1
- package/dist/engine/config-validator.js +89 -11
- package/dist/engine/config-validator.js.map +1 -1
- package/dist/engine/credential-resolver.d.ts +42 -0
- package/dist/engine/credential-resolver.d.ts.map +1 -0
- package/dist/engine/credential-resolver.js +63 -0
- package/dist/engine/credential-resolver.js.map +1 -0
- package/dist/engine/workflow-executor.d.ts +15 -9
- package/dist/engine/workflow-executor.d.ts.map +1 -1
- package/dist/engine/workflow-executor.js +31 -40
- package/dist/engine/workflow-executor.js.map +1 -1
- package/dist/events/in-memory-adapter.d.ts +15 -0
- package/dist/events/in-memory-adapter.d.ts.map +1 -0
- package/dist/events/in-memory-adapter.js +50 -0
- package/dist/events/in-memory-adapter.js.map +1 -0
- package/dist/events/types.d.ts +154 -0
- package/dist/events/types.d.ts.map +1 -0
- package/dist/events/types.js +34 -0
- package/dist/events/types.js.map +1 -0
- package/dist/index.d.ts +50 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -16
- package/dist/index.js.map +1 -1
- package/dist/ingest/body.d.ts +18 -0
- package/dist/ingest/body.d.ts.map +1 -0
- package/dist/ingest/body.js +47 -0
- package/dist/ingest/body.js.map +1 -0
- package/dist/ingest/filter.d.ts +11 -0
- package/dist/ingest/filter.d.ts.map +1 -0
- package/dist/ingest/filter.js +23 -0
- package/dist/ingest/filter.js.map +1 -0
- package/dist/ingest/headers.d.ts +3 -0
- package/dist/ingest/headers.d.ts.map +1 -0
- package/dist/ingest/headers.js +11 -0
- package/dist/ingest/headers.js.map +1 -0
- package/dist/ingest/types.d.ts +50 -0
- package/dist/ingest/types.d.ts.map +1 -0
- package/dist/ingest/types.js +9 -0
- package/dist/ingest/types.js.map +1 -0
- package/dist/persistence/in-memory-adapter.d.ts +4 -8
- package/dist/persistence/in-memory-adapter.d.ts.map +1 -1
- package/dist/persistence/in-memory-adapter.js +8 -25
- package/dist/persistence/in-memory-adapter.js.map +1 -1
- package/dist/persistence/types.d.ts +5 -19
- package/dist/persistence/types.d.ts.map +1 -1
- package/dist/router/types.d.ts +31 -3
- package/dist/router/types.d.ts.map +1 -1
- package/dist/router/workflow-router.d.ts +4 -3
- package/dist/router/workflow-router.d.ts.map +1 -1
- package/dist/router/workflow-router.js +258 -63
- package/dist/router/workflow-router.js.map +1 -1
- package/dist/runtime/types.d.ts +36 -56
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/runtime/workflow-runtime.d.ts +70 -46
- package/dist/runtime/workflow-runtime.d.ts.map +1 -1
- package/dist/runtime/workflow-runtime.js +217 -141
- package/dist/runtime/workflow-runtime.js.map +1 -1
- package/dist/steps/base-step.d.ts +23 -0
- package/dist/steps/base-step.d.ts.map +1 -1
- package/dist/steps/base-step.js +22 -0
- package/dist/steps/base-step.js.map +1 -1
- package/dist/steps/step-descriptor.d.ts +52 -0
- package/dist/steps/step-descriptor.d.ts.map +1 -0
- package/dist/steps/step-descriptor.js +32 -0
- package/dist/steps/step-descriptor.js.map +1 -0
- package/dist/testing/authz-conformance.d.ts.map +1 -1
- package/dist/testing/authz-conformance.js +6 -7
- package/dist/testing/authz-conformance.js.map +1 -1
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +1 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/mock-step-context.d.ts +1 -0
- package/dist/testing/mock-step-context.d.ts.map +1 -1
- package/dist/testing/mock-step-context.js +1 -0
- package/dist/testing/mock-step-context.js.map +1 -1
- package/dist/testing/test-connector.d.ts +40 -0
- package/dist/testing/test-connector.d.ts.map +1 -0
- package/dist/testing/test-connector.js +39 -0
- package/dist/testing/test-connector.js.map +1 -0
- package/dist/triggers/api-trigger.d.ts +15 -0
- package/dist/triggers/api-trigger.d.ts.map +1 -0
- package/dist/triggers/api-trigger.js +14 -0
- package/dist/triggers/api-trigger.js.map +1 -0
- package/dist/triggers/base-trigger.d.ts +29 -0
- package/dist/triggers/base-trigger.d.ts.map +1 -1
- package/dist/triggers/base-trigger.js +16 -0
- package/dist/triggers/base-trigger.js.map +1 -1
- package/dist/triggers/trigger-descriptor.d.ts +42 -0
- package/dist/triggers/trigger-descriptor.d.ts.map +1 -0
- package/dist/triggers/trigger-descriptor.js +29 -0
- package/dist/triggers/trigger-descriptor.js.map +1 -0
- package/dist/triggers/webhook-trigger.d.ts +31 -38
- package/dist/triggers/webhook-trigger.d.ts.map +1 -1
- package/dist/triggers/webhook-trigger.js +19 -6
- package/dist/triggers/webhook-trigger.js.map +1 -1
- package/dist/types/known-types.d.ts +0 -1
- package/dist/types/known-types.d.ts.map +1 -1
- package/dist/types/known-types.js +0 -1
- package/dist/types/known-types.js.map +1 -1
- package/dist/types/validation.d.ts +3 -1
- package/dist/types/validation.d.ts.map +1 -1
- package/dist/types/validation.js +2 -0
- package/dist/types/validation.js.map +1 -1
- package/dist/types/workflow-config.d.ts +23 -0
- package/dist/types/workflow-config.d.ts.map +1 -1
- package/dist/types/workflow-config.js +8 -0
- package/dist/types/workflow-config.js.map +1 -1
- package/dist/util/credential-slot-schema.d.ts +20 -0
- package/dist/util/credential-slot-schema.d.ts.map +1 -0
- package/dist/util/credential-slot-schema.js +30 -0
- package/dist/util/credential-slot-schema.js.map +1 -0
- package/dist/util/event-channel.d.ts +25 -0
- package/dist/util/event-channel.d.ts.map +1 -0
- package/dist/util/event-channel.js +61 -0
- package/dist/util/event-channel.js.map +1 -0
- package/package.json +1 -1
- package/dist/common/expression-eval.d.ts +0 -35
- package/dist/common/expression-eval.d.ts.map +0 -1
- package/dist/common/expression-eval.js +0 -214
- package/dist/common/expression-eval.js.map +0 -1
- package/dist/common/principal.d.ts +0 -45
- package/dist/common/principal.d.ts.map +0 -1
- package/dist/common/principal.js +0 -9
- package/dist/common/principal.js.map +0 -1
- package/dist/steps/builtin/transform.step.d.ts +0 -247
- package/dist/steps/builtin/transform.step.d.ts.map +0 -1
- package/dist/steps/builtin/transform.step.js +0 -135
- package/dist/steps/builtin/transform.step.js.map +0 -1
- package/dist/types/attachment.d.ts +0 -23
- package/dist/types/attachment.d.ts.map +0 -1
- package/dist/types/attachment.js +0 -2
- package/dist/types/attachment.js.map +0 -1
- package/dist/types/resume-payload.d.ts +0 -34
- package/dist/types/resume-payload.d.ts.map +0 -1
- package/dist/types/resume-payload.js +0 -12
- package/dist/types/resume-payload.js.map +0 -1
- package/dist/util/executable-check.d.ts +0 -42
- package/dist/util/executable-check.d.ts.map +0 -1
- package/dist/util/executable-check.js +0 -115
- package/dist/util/executable-check.js.map +0 -1
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The event bus port — how live state transitions reach a watching client.
|
|
3
|
+
*
|
|
4
|
+
* The engine publishes at execution state transitions; the SSE route subscribes
|
|
5
|
+
* and streams to the browser. Between them sits a topic-addressed pub/sub
|
|
6
|
+
* channel that this file describes and deliberately does not implement.
|
|
7
|
+
*
|
|
8
|
+
* ## Why this is a port
|
|
9
|
+
*
|
|
10
|
+
* A bus backed by a process-local `Map` only works when the publisher and the
|
|
11
|
+
* subscriber share a heap, and hosts routinely arrange for them not to: run the
|
|
12
|
+
* queue worker in one process and the HTTP API in another — the ordinary way to
|
|
13
|
+
* scale either independently — and the executor publishes into one map while the
|
|
14
|
+
* stream route listens to a different one. Nothing errors. Every live run just
|
|
15
|
+
* renders its opening snapshot and then appears to freeze.
|
|
16
|
+
*
|
|
17
|
+
* That failure is invisible from inside the engine, so the engine must not be the
|
|
18
|
+
* thing that decides how events travel. A host that spans processes supplies a
|
|
19
|
+
* Redis (or NATS, or Kafka) adapter; {@link InMemoryEventBus} stays the default
|
|
20
|
+
* and stays correct whenever everything shares one process.
|
|
21
|
+
*
|
|
22
|
+
* ## Delivery contract
|
|
23
|
+
*
|
|
24
|
+
* At-most-once, unordered across publishers. Implementations are not required to
|
|
25
|
+
* buffer, replay, or acknowledge — a subscriber that was not listening when an
|
|
26
|
+
* event was published never sees it. Consumers must therefore treat a subscription
|
|
27
|
+
* as a hint to re-read authoritative state, not as the state itself, and must
|
|
28
|
+
* recover by re-reading after any reconnect.
|
|
29
|
+
*/
|
|
30
|
+
import type { PauseState } from '../types/pause-state.js';
|
|
31
|
+
export type ExecutionStreamEvent = {
|
|
32
|
+
event: 'step_started';
|
|
33
|
+
data: {
|
|
34
|
+
stepName: string;
|
|
35
|
+
stepType: string;
|
|
36
|
+
nodePath?: string;
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
event: 'step_completed';
|
|
40
|
+
data: {
|
|
41
|
+
stepName: string;
|
|
42
|
+
output: Record<string, unknown>;
|
|
43
|
+
nodePath?: string;
|
|
44
|
+
};
|
|
45
|
+
} | {
|
|
46
|
+
event: 'step_failed';
|
|
47
|
+
data: {
|
|
48
|
+
stepName: string;
|
|
49
|
+
error: string;
|
|
50
|
+
nodePath?: string;
|
|
51
|
+
};
|
|
52
|
+
} | {
|
|
53
|
+
event: 'step_progress';
|
|
54
|
+
data: {
|
|
55
|
+
stepName: string;
|
|
56
|
+
nodePath?: string;
|
|
57
|
+
} & Record<string, unknown>;
|
|
58
|
+
} | {
|
|
59
|
+
event: 'execution_paused';
|
|
60
|
+
data: {
|
|
61
|
+
stepName: string;
|
|
62
|
+
pauseState: PauseState;
|
|
63
|
+
nodePath?: string;
|
|
64
|
+
};
|
|
65
|
+
} | {
|
|
66
|
+
event: 'execution_completed';
|
|
67
|
+
data: {
|
|
68
|
+
status: string;
|
|
69
|
+
};
|
|
70
|
+
} | {
|
|
71
|
+
event: 'execution_failed';
|
|
72
|
+
data: {
|
|
73
|
+
error: string;
|
|
74
|
+
};
|
|
75
|
+
} | {
|
|
76
|
+
event: 'execution_cancelled';
|
|
77
|
+
data: Record<string, unknown>;
|
|
78
|
+
};
|
|
79
|
+
/** What happened to a workflow definition. */
|
|
80
|
+
export type WorkflowChangeKind = 'created' | 'updated' | 'activated' | 'deactivated';
|
|
81
|
+
/**
|
|
82
|
+
* A workflow definition changed. Carries no definition.
|
|
83
|
+
*
|
|
84
|
+
* Notification, not delivery — and deliberately so. The config is a large blob,
|
|
85
|
+
* and the read path already authorizes per caller, which a topic-addressed bus
|
|
86
|
+
* cannot: subscribers are addressed by resource id, never by principal. Shipping
|
|
87
|
+
* the new config here would mean re-deciding who may see it at the fan-out layer,
|
|
88
|
+
* keeping two delivery paths coherent, and serializing the whole workflow on every
|
|
89
|
+
* save. A doorbell costs one authorized refetch and keeps all of that where it
|
|
90
|
+
* already works.
|
|
91
|
+
*
|
|
92
|
+
* One frame name for every kind, with the kind in the payload: a subscriber
|
|
93
|
+
* registers one listener, and a new kind does not require a new one.
|
|
94
|
+
*/
|
|
95
|
+
export interface WorkflowChangeEvent {
|
|
96
|
+
event: 'workflow_changed';
|
|
97
|
+
data: {
|
|
98
|
+
workflowId: string;
|
|
99
|
+
change: WorkflowChangeKind;
|
|
100
|
+
/**
|
|
101
|
+
* Opaque identifier of the writer, echoed straight back from the request that
|
|
102
|
+
* caused this. A client that stamps its own writes can recognise — and ignore
|
|
103
|
+
* — the echo of its own work. See {@link MutationOptions.origin}.
|
|
104
|
+
*/
|
|
105
|
+
origin?: string;
|
|
106
|
+
/** ISO-8601, server clock. For display and debugging, never for ordering. */
|
|
107
|
+
at: string;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Everything the bus can carry, discriminated by `event` — which is also the SSE
|
|
112
|
+
* frame name, so a transport can forward it without a translation table.
|
|
113
|
+
*
|
|
114
|
+
* A union rather than a bare alias: further entity families get added here, and
|
|
115
|
+
* every adapter and subscriber then has to account for them.
|
|
116
|
+
*/
|
|
117
|
+
export type BusEvent = ExecutionStreamEvent | WorkflowChangeEvent;
|
|
118
|
+
/**
|
|
119
|
+
* A bus channel, namespaced `<entity>:<id>`.
|
|
120
|
+
*
|
|
121
|
+
* The namespace is what lets one bus carry several event families without
|
|
122
|
+
* collision, and what lets a subscriber address exactly the entity it cares about
|
|
123
|
+
* instead of filtering a firehose. Build these with the constructors below rather
|
|
124
|
+
* than by hand — the template type will catch a typo, but only if nobody widens
|
|
125
|
+
* it to `string` on the way in.
|
|
126
|
+
*/
|
|
127
|
+
export type EventTopic = `execution:${string}` | `workflow:${string}`;
|
|
128
|
+
/** The channel carrying one execution's lifecycle events. */
|
|
129
|
+
export declare const executionTopic: (executionId: string) => EventTopic;
|
|
130
|
+
/** The channel carrying one workflow definition's change events. */
|
|
131
|
+
export declare const workflowTopic: (workflowId: string) => EventTopic;
|
|
132
|
+
export type BusListener = (event: BusEvent) => void;
|
|
133
|
+
/**
|
|
134
|
+
* Detaches a listener. Safe to call more than once, and safe to call after the
|
|
135
|
+
* bus has otherwise torn the topic down.
|
|
136
|
+
*/
|
|
137
|
+
export type Unsubscribe = () => void;
|
|
138
|
+
export interface EventBusAdapter {
|
|
139
|
+
/**
|
|
140
|
+
* Publish to every subscriber of `topic`, across every process sharing this bus.
|
|
141
|
+
*
|
|
142
|
+
* Rejects only on transport failure. Callers on an execution path must not await
|
|
143
|
+
* it and must swallow the rejection: a bus outage degrades live updates, and must
|
|
144
|
+
* never fail the run that was merely reporting on itself.
|
|
145
|
+
*/
|
|
146
|
+
publish(topic: EventTopic, event: BusEvent): Promise<void>;
|
|
147
|
+
/**
|
|
148
|
+
* Attach `listener` to `topic`. Resolves once the subscription is live — for a
|
|
149
|
+
* distributed adapter that means after the broker has acknowledged it, so that
|
|
150
|
+
* awaiting this is sufficient to guarantee no subsequent publish is missed.
|
|
151
|
+
*/
|
|
152
|
+
subscribe(topic: EventTopic, listener: BusListener): Promise<Unsubscribe>;
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/events/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAQ1D,MAAM,MAAM,oBAAoB,GAC5B;IAAE,KAAK,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAC1F;IAAE,KAAK,EAAE,gBAAgB,CAAC;IAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAC3G;IAAE,KAAK,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GACtF;IAAE,KAAK,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GACnG;IAAE,KAAK,EAAE,kBAAkB,CAA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CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC;AAErC,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,OAAO,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3D;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC3E"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The event bus port — how live state transitions reach a watching client.
|
|
3
|
+
*
|
|
4
|
+
* The engine publishes at execution state transitions; the SSE route subscribes
|
|
5
|
+
* and streams to the browser. Between them sits a topic-addressed pub/sub
|
|
6
|
+
* channel that this file describes and deliberately does not implement.
|
|
7
|
+
*
|
|
8
|
+
* ## Why this is a port
|
|
9
|
+
*
|
|
10
|
+
* A bus backed by a process-local `Map` only works when the publisher and the
|
|
11
|
+
* subscriber share a heap, and hosts routinely arrange for them not to: run the
|
|
12
|
+
* queue worker in one process and the HTTP API in another — the ordinary way to
|
|
13
|
+
* scale either independently — and the executor publishes into one map while the
|
|
14
|
+
* stream route listens to a different one. Nothing errors. Every live run just
|
|
15
|
+
* renders its opening snapshot and then appears to freeze.
|
|
16
|
+
*
|
|
17
|
+
* That failure is invisible from inside the engine, so the engine must not be the
|
|
18
|
+
* thing that decides how events travel. A host that spans processes supplies a
|
|
19
|
+
* Redis (or NATS, or Kafka) adapter; {@link InMemoryEventBus} stays the default
|
|
20
|
+
* and stays correct whenever everything shares one process.
|
|
21
|
+
*
|
|
22
|
+
* ## Delivery contract
|
|
23
|
+
*
|
|
24
|
+
* At-most-once, unordered across publishers. Implementations are not required to
|
|
25
|
+
* buffer, replay, or acknowledge — a subscriber that was not listening when an
|
|
26
|
+
* event was published never sees it. Consumers must therefore treat a subscription
|
|
27
|
+
* as a hint to re-read authoritative state, not as the state itself, and must
|
|
28
|
+
* recover by re-reading after any reconnect.
|
|
29
|
+
*/
|
|
30
|
+
/** The channel carrying one execution's lifecycle events. */
|
|
31
|
+
export const executionTopic = (executionId) => `execution:${executionId}`;
|
|
32
|
+
/** The channel carrying one workflow definition's change events. */
|
|
33
|
+
export const workflowTopic = (workflowId) => `workflow:${workflowId}`;
|
|
34
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/events/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AA+EH,6DAA6D;AAC7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,WAAmB,EAAc,EAAE,CAAC,aAAa,WAAW,EAAE,CAAC;AAE9F,oEAAoE;AACpE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,UAAkB,EAAc,EAAE,CAAC,YAAY,UAAU,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,26 +7,39 @@ export { ConfigValidator } from './engine/config-validator.js';
|
|
|
7
7
|
export { getAvailableContext } from './engine/available-context.js';
|
|
8
8
|
export type { AvailableContext } from './engine/available-context.js';
|
|
9
9
|
export { WorkflowExecutor } from './engine/workflow-executor.js';
|
|
10
|
+
export { CredentialResolver, CredentialResolutionError, } from './engine/credential-resolver.js';
|
|
11
|
+
export type { CredentialConsumer, CredentialScope, CredentialResolutionReason, } from './engine/credential-resolver.js';
|
|
12
|
+
export { markCredentialField, CREDENTIAL_NAME_FORMAT, } from './util/credential-slot-schema.js';
|
|
10
13
|
export type { ExecutorOptions, ExecutorLogger, } from './engine/workflow-executor.js';
|
|
11
14
|
export { BaseStep, BaseActionStep, BaseControlFlowStep, StepKind, createPauseFunction, } from './steps/base-step.js';
|
|
12
15
|
export type { StepExecutionContext, ControlFlowExecutionContext, CredentialSlot, DeclaredOutput, BranchModel, BranchStepOutputs, } from './steps/base-step.js';
|
|
13
|
-
export {
|
|
14
|
-
export type { StepSummary, StepDescriptor } from './steps/step-registry.js';
|
|
16
|
+
export type { StepSummary, StepDescriptor } from './steps/step-descriptor.js';
|
|
15
17
|
export { BaseTrigger } from './triggers/base-trigger.js';
|
|
16
18
|
export { EventTrigger } from './triggers/event-trigger.js';
|
|
17
19
|
export { ManualTrigger } from './triggers/manual-trigger.js';
|
|
20
|
+
export { ApiTrigger } from './triggers/api-trigger.js';
|
|
18
21
|
export { WebhookTrigger } from './triggers/webhook-trigger.js';
|
|
19
|
-
export type {
|
|
22
|
+
export type { TriggerExecutionContext } from './triggers/base-trigger.js';
|
|
23
|
+
export { headerValue } from './ingest/headers.js';
|
|
24
|
+
export { parseInboundBody, MalformedBodyError } from './ingest/body.js';
|
|
25
|
+
export { matchesTriggerFilter } from './ingest/filter.js';
|
|
26
|
+
export type { InboundHttpRequest, RawInboundRequest, InboundReply, InboundEvent, Translation, WebhookIngestResult, } from './ingest/types.js';
|
|
20
27
|
export { CronTrigger } from './triggers/cron-trigger.js';
|
|
21
28
|
export type { CronSchedule, CronPollContext, } from './triggers/cron-trigger.js';
|
|
22
|
-
export {
|
|
23
|
-
export
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export
|
|
29
|
+
export type { TriggerSummary, TriggerDescriptor, } from './triggers/trigger-descriptor.js';
|
|
30
|
+
export { BaseConnector } from './connectors/core/base-connector.js';
|
|
31
|
+
export type { AnyStep, AnyTrigger } from './connectors/core/base-connector.js';
|
|
32
|
+
export { ConnectorRegistry, ConnectorRegistrationError, UnknownComponentError, } from './connectors/core/connector-registry.js';
|
|
33
|
+
export type { RegisteredStep, RegisteredTrigger, RegisteredCredential, } from './connectors/core/connector-registry.js';
|
|
34
|
+
export { defineCredential, acceptsCredential, declareSteps, NO_CREDENTIAL, CREDENTIAL_TYPE_PATTERN, } from './connectors/core/credentials.js';
|
|
35
|
+
export type { CredentialDefinition, CredentialRequirement, } from './connectors/core/credentials.js';
|
|
36
|
+
export { BuiltinConnector } from './connectors/builtin/builtin-connector.js';
|
|
37
|
+
export { BUILTIN_CREDENTIALS, BUILTIN_BEARER, BUILTIN_BASIC, BUILTIN_CUSTOM_HEADER, BUILTIN_OAUTH2_CLIENT_CREDENTIALS, } from './connectors/builtin/credentials.js';
|
|
38
|
+
export { DefaultManualTrigger } from './connectors/builtin/triggers/default-manual-trigger.js';
|
|
39
|
+
export { DefaultCronTrigger } from './connectors/builtin/triggers/default-cron-trigger.js';
|
|
40
|
+
export { DefaultEventTrigger } from './connectors/builtin/triggers/default-event-trigger.js';
|
|
41
|
+
export { DefaultWebhookV2Trigger } from './connectors/builtin/triggers/default-webhook-v2-trigger.js';
|
|
42
|
+
export type { PersistenceAdapter, QueueAdapter, SchedulerAdapter, WorkflowRecord, FolderRecord, CredentialRecord, WorkflowCallbackRecord, ExecutionRecord, ExecutionStateRecord, ExecutionPauseType, StepRecord, } from './persistence/types.js';
|
|
30
43
|
export { InMemoryPersistenceAdapter } from './persistence/in-memory-adapter.js';
|
|
31
44
|
export type { StorageAdapter, StorageFile, StorageScope } from './storage/types.js';
|
|
32
45
|
export { InMemoryStorageAdapter } from './storage/in-memory-adapter.js';
|
|
@@ -40,31 +53,35 @@ export type { VariableRefToken, FoundRef, ParsedRef } from './util/variable-ref.
|
|
|
40
53
|
export { ensureCitationPath, tryCitationPath, parseCitationPath, resolveCitationPath, } from './util/citation-path.js';
|
|
41
54
|
export type { Attachment, CitationRef, Locator, RefCitation, UrlCitation, DerivedCitation, SourceCitation, CitationMap, ResumePayload, ResumeAttachment, ResumeAction, } from './common/index.js';
|
|
42
55
|
export { isExecutable, extensionOf, BLOCKED_EXECUTABLE_MIME_TYPES, BLOCKED_EXECUTABLE_EXTENSIONS, AttachmentSchema, CitationRefSchema, LocatorSchema, DerivedCitationSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from './common/index.js';
|
|
43
|
-
export type { CredentialStatus, CredentialAuthType, BearerValues, BasicValues, CustomHeaderValues, OAuth2ClientCredentialsValues, CredentialAuth, AuthSpecificValues, CredentialSummary, ResolvedCredential, CreateCredentialInput, ReplaceCredentialValuesInput, CredentialListItem, CredentialListResponse, TestCredentialInput, TestCredentialResult, CredentialFieldControl, CredentialRegistryInputField, CredentialRegistryEntryField, CredentialRegistryEntry, } from './common/credentials.js';
|
|
44
|
-
export { CredentialStatusSchema, BearerValuesSchema, BasicValuesSchema, CustomHeaderValuesSchema, OAuth2ClientCredentialsValuesSchema, CredentialAuthSchema, CREDENTIAL_VALUE_SCHEMAS, validateCredentialAuth, validateCredentialValues, applyResolvedCredentialAuth, CredentialNameSchema, CREDENTIAL_AUTH_REGISTRY, } from './common/credentials.js';
|
|
56
|
+
export type { CredentialStatus, CredentialAuthType, BearerValues, BasicValues, CustomHeaderValues, OAuth2ClientCredentialsValues, SecretValues, CredentialAuth, CredentialValuesOf, AuthSpecificValues, CredentialSummary, ResolvedCredential, CreateCredentialInput, CreateCredentialRequest, CredentialTypeRef, CredentialTypeDescriptor, ConnectorCredentialTypes, ReplaceCredentialValuesInput, CredentialListItem, CredentialListResponse, TestCredentialInput, TestCredentialResult, CredentialFieldControl, CredentialRegistryInputField, CredentialRegistryEntryField, CredentialRegistryEntry, } from './common/credentials.js';
|
|
57
|
+
export { CredentialStatusSchema, BearerValuesSchema, BasicValuesSchema, CustomHeaderValuesSchema, OAuth2ClientCredentialsValuesSchema, SecretValuesSchema, CredentialAuthSchema, CREDENTIAL_VALUE_SCHEMAS, validateCredentialAuth, validateCredentialValues, applyResolvedCredentialAuth, credentialValues, CredentialNameSchema, CREDENTIAL_AUTH_REGISTRY, } from './common/credentials.js';
|
|
45
58
|
export { zodToJsonSchemaRecord } from './util/schema-convert.js';
|
|
46
59
|
export { TYPE_KINDS, kindsCompatible } from './util/type-compat.js';
|
|
47
60
|
export type { TypeKind } from './util/type-compat.js';
|
|
48
61
|
export { pauseFormToJsonSchema, jsonTypeForFormField } from './util/pause-form-schema.js';
|
|
49
62
|
export { ATTACHMENT_FORMAT, ATTACHMENT_JSON_SCHEMA, ATTACHMENT_ARRAY_JSON_SCHEMA, markAttachmentFields, } from './common/attachment.js';
|
|
50
|
-
export { LoopStep, LoopStepConfigSchema, } from './
|
|
51
|
-
export type { LoopStepConfig, LoopStepOutput, } from './
|
|
52
|
-
export { MapStep, MapStepConfigSchema, } from './
|
|
53
|
-
export type { MapStepConfig, MapStepOutput, MapItemResult, } from './
|
|
54
|
-
export { CodeStep, CodeStepConfigSchema, } from './
|
|
55
|
-
export type { CodeStepConfig, CodeStepOutput, } from './
|
|
56
|
-
export { DedupStep, DedupStepConfigSchema, } from './
|
|
57
|
-
export type { DedupStepConfig, DedupStepOutput, } from './
|
|
58
|
-
export { ParallelStep, ParallelStepConfigSchema, } from './
|
|
59
|
-
export type { ParallelStepConfig, ParallelStepOutput, ParallelAllSettledOutput, ParallelRaceOutput, ParallelSettledBranchResult, } from './
|
|
60
|
-
export { WaitStep, WaitStepConfigSchema, } from './
|
|
61
|
-
export type { WaitStepConfig, WaitStepOutput, } from './
|
|
62
|
-
export { HttpRequestStep, HttpRequestStepConfigSchema, HttpMethodSchema, HttpRawContentTypeSchema, HttpResponseSchema, HttpBodySchema, } from './
|
|
63
|
-
export type { HttpRequestStepConfig, HttpRequestStepOutput, HttpMethod, HttpRawContentType, HttpResponseConfig, HttpResponseType, HttpBody, } from './
|
|
63
|
+
export { LoopStep, LoopStepConfigSchema, } from './connectors/builtin/steps/loop.step.js';
|
|
64
|
+
export type { LoopStepConfig, LoopStepOutput, } from './connectors/builtin/steps/loop.step.js';
|
|
65
|
+
export { MapStep, MapStepConfigSchema, } from './connectors/builtin/steps/map.step.js';
|
|
66
|
+
export type { MapStepConfig, MapStepOutput, MapItemResult, } from './connectors/builtin/steps/map.step.js';
|
|
67
|
+
export { CodeStep, CodeStepConfigSchema, } from './connectors/builtin/steps/code.step.js';
|
|
68
|
+
export type { CodeStepConfig, CodeStepOutput, } from './connectors/builtin/steps/code.step.js';
|
|
69
|
+
export { DedupStep, DedupStepConfigSchema, } from './connectors/builtin/steps/dedup.step.js';
|
|
70
|
+
export type { DedupStepConfig, DedupStepOutput, } from './connectors/builtin/steps/dedup.step.js';
|
|
71
|
+
export { ParallelStep, ParallelStepConfigSchema, } from './connectors/builtin/steps/parallel.step.js';
|
|
72
|
+
export type { ParallelStepConfig, ParallelStepOutput, ParallelAllSettledOutput, ParallelRaceOutput, ParallelSettledBranchResult, } from './connectors/builtin/steps/parallel.step.js';
|
|
73
|
+
export { WaitStep, WaitStepConfigSchema, } from './connectors/builtin/steps/wait.step.js';
|
|
74
|
+
export type { WaitStepConfig, WaitStepOutput, } from './connectors/builtin/steps/wait.step.js';
|
|
75
|
+
export { HttpRequestStep, HttpRequestStepConfigSchema, HttpMethodSchema, HttpRawContentTypeSchema, HttpResponseSchema, HttpBodySchema, } from './connectors/builtin/steps/http-request.step.js';
|
|
76
|
+
export type { HttpRequestStepConfig, HttpRequestStepOutput, HttpMethod, HttpRawContentType, HttpResponseConfig, HttpResponseType, HttpBody, } from './connectors/builtin/steps/http-request.step.js';
|
|
64
77
|
export { WorkflowRuntime } from './runtime/workflow-runtime.js';
|
|
65
|
-
export {
|
|
66
|
-
export
|
|
67
|
-
export
|
|
78
|
+
export type { ExecutionResult, RuntimeOptions, RuntimeConfig, DispatchEventInput, MutationOptions, ResumeInput, } from './runtime/types.js';
|
|
79
|
+
export { InMemoryEventBus } from './events/in-memory-adapter.js';
|
|
80
|
+
export { executionTopic } from './events/types.js';
|
|
81
|
+
export { workflowTopic } from './events/types.js';
|
|
82
|
+
export type { EventBusAdapter, EventTopic, BusEvent, BusListener, Unsubscribe, ExecutionStreamEvent, WorkflowChangeEvent, WorkflowChangeKind, } from './events/types.js';
|
|
83
|
+
export { createEventChannel } from './util/event-channel.js';
|
|
84
|
+
export type { EventChannel } from './util/event-channel.js';
|
|
68
85
|
export type { WorkflowAuthorizer, Action, ResourceType, ResourceRef, ApprovalStepRecord, } from './authz/types.js';
|
|
69
86
|
export type { Register, ResourceAttributes, AttributedResource } from './authz/attributes.js';
|
|
70
87
|
export { WORKFLOW_ACTIONS, EXECUTION_ACTIONS, FOLDER_ACTIONS, CONTAINER_ACTIONS, CREDENTIAL_ACTIONS, ALL_ACTIONS, refLabel, } from './authz/types.js';
|
|
@@ -72,5 +89,7 @@ export type { IdScope } from './authz/id-scope.js';
|
|
|
72
89
|
export { applyIdScope } from './authz/id-scope.js';
|
|
73
90
|
export { AllowAllAuthorizer, AccessDeniedError, ResourceNotFoundError, } from './authz/default.js';
|
|
74
91
|
export { createWorkflowRouter } from './router/workflow-router.js';
|
|
75
|
-
export type { AuthContext, RouterOptions, RouteResponse, RouteRequest, RouteDefinition, } from './router/types.js';
|
|
92
|
+
export type { AuthContext, RouterOptions, RouteResponse, RouteRequest, RouteAccess, RouteDefinition, } from './router/types.js';
|
|
93
|
+
export { TriggerFilterSchema, TRIGGER_FILTER_SCOPE } from './types/workflow-config.js';
|
|
94
|
+
export type { TriggerFilter } from './types/workflow-config.js';
|
|
76
95
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,wBAAwB,GACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO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EACZ,WAAW,EACX,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvF,YAAY,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -8,22 +8,35 @@ export { ConditionEvaluator } from './engine/condition-evaluator.js';
|
|
|
8
8
|
export { ConfigValidator } from './engine/config-validator.js';
|
|
9
9
|
export { getAvailableContext } from './engine/available-context.js';
|
|
10
10
|
export { WorkflowExecutor } from './engine/workflow-executor.js';
|
|
11
|
+
export { CredentialResolver, CredentialResolutionError, } from './engine/credential-resolver.js';
|
|
12
|
+
export { markCredentialField, CREDENTIAL_NAME_FORMAT, } from './util/credential-slot-schema.js';
|
|
11
13
|
// ─── Steps ───
|
|
12
14
|
export { BaseStep, BaseActionStep, BaseControlFlowStep, StepKind, createPauseFunction, } from './steps/base-step.js';
|
|
13
|
-
export { StepRegistry, UnknownStepError } from './steps/step-registry.js';
|
|
14
15
|
// ─── Triggers ───
|
|
15
16
|
export { BaseTrigger } from './triggers/base-trigger.js';
|
|
16
17
|
export { EventTrigger } from './triggers/event-trigger.js';
|
|
17
18
|
export { ManualTrigger } from './triggers/manual-trigger.js';
|
|
19
|
+
export { ApiTrigger } from './triggers/api-trigger.js';
|
|
18
20
|
export { WebhookTrigger } from './triggers/webhook-trigger.js';
|
|
21
|
+
// ─── Inbound webhook ingest ───
|
|
22
|
+
export { headerValue } from './ingest/headers.js';
|
|
23
|
+
export { parseInboundBody, MalformedBodyError } from './ingest/body.js';
|
|
24
|
+
export { matchesTriggerFilter } from './ingest/filter.js';
|
|
19
25
|
export { CronTrigger } from './triggers/cron-trigger.js';
|
|
20
|
-
|
|
26
|
+
// ─── Connectors ───
|
|
27
|
+
//
|
|
28
|
+
// How a deployment says what it provides. Everything the engine can run — the
|
|
29
|
+
// built-ins included — reaches it through a connector registered here.
|
|
30
|
+
export { BaseConnector } from './connectors/core/base-connector.js';
|
|
31
|
+
export { ConnectorRegistry, ConnectorRegistrationError, UnknownComponentError, } from './connectors/core/connector-registry.js';
|
|
32
|
+
export { defineCredential, acceptsCredential, declareSteps, NO_CREDENTIAL, CREDENTIAL_TYPE_PATTERN, } from './connectors/core/credentials.js';
|
|
33
|
+
export { BuiltinConnector } from './connectors/builtin/builtin-connector.js';
|
|
34
|
+
export { BUILTIN_CREDENTIALS, BUILTIN_BEARER, BUILTIN_BASIC, BUILTIN_CUSTOM_HEADER, BUILTIN_OAUTH2_CLIENT_CREDENTIALS, } from './connectors/builtin/credentials.js';
|
|
21
35
|
// ─── Built-in Triggers (default implementations) ───
|
|
22
|
-
export { DefaultManualTrigger } from './
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export { DefaultWebhookV2Trigger } from './triggers/builtin/default-webhook-v2-trigger.js';
|
|
36
|
+
export { DefaultManualTrigger } from './connectors/builtin/triggers/default-manual-trigger.js';
|
|
37
|
+
export { DefaultCronTrigger } from './connectors/builtin/triggers/default-cron-trigger.js';
|
|
38
|
+
export { DefaultEventTrigger } from './connectors/builtin/triggers/default-event-trigger.js';
|
|
39
|
+
export { DefaultWebhookV2Trigger } from './connectors/builtin/triggers/default-webhook-v2-trigger.js';
|
|
27
40
|
export { InMemoryPersistenceAdapter } from './persistence/in-memory-adapter.js';
|
|
28
41
|
export { InMemoryStorageAdapter } from './storage/in-memory-adapter.js';
|
|
29
42
|
export { bindSandboxSession } from './sandbox/types.js';
|
|
@@ -47,7 +60,7 @@ export { VARIABLE_REF_REGEX, VARIABLE_REF_DESCRIPTION_PREFIX, tokenize, isPureRe
|
|
|
47
60
|
export { ensureCitationPath, tryCitationPath, parseCitationPath, resolveCitationPath, } from './util/citation-path.js';
|
|
48
61
|
export { isExecutable, extensionOf, BLOCKED_EXECUTABLE_MIME_TYPES, BLOCKED_EXECUTABLE_EXTENSIONS, AttachmentSchema, CitationRefSchema, LocatorSchema, DerivedCitationSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from './common/index.js';
|
|
49
62
|
// ── Runtime value exports (Zod schemas, registry, validation helper) ──
|
|
50
|
-
export { CredentialStatusSchema, BearerValuesSchema, BasicValuesSchema, CustomHeaderValuesSchema, OAuth2ClientCredentialsValuesSchema, CredentialAuthSchema, CREDENTIAL_VALUE_SCHEMAS, validateCredentialAuth, validateCredentialValues, applyResolvedCredentialAuth, CredentialNameSchema, CREDENTIAL_AUTH_REGISTRY, } from './common/credentials.js';
|
|
63
|
+
export { CredentialStatusSchema, BearerValuesSchema, BasicValuesSchema, CustomHeaderValuesSchema, OAuth2ClientCredentialsValuesSchema, SecretValuesSchema, CredentialAuthSchema, CREDENTIAL_VALUE_SCHEMAS, validateCredentialAuth, validateCredentialValues, applyResolvedCredentialAuth, credentialValues, CredentialNameSchema, CREDENTIAL_AUTH_REGISTRY, } from './common/credentials.js';
|
|
51
64
|
export { zodToJsonSchemaRecord } from './util/schema-convert.js';
|
|
52
65
|
// ─── Type Compatibility (shared by picker, validator, runtime) ───
|
|
53
66
|
export { TYPE_KINDS, kindsCompatible } from './util/type-compat.js';
|
|
@@ -57,19 +70,29 @@ export { pauseFormToJsonSchema, jsonTypeForFormField } from './util/pause-form-s
|
|
|
57
70
|
// these to expose attachments consistently across the Zod + JSON-Schema worlds).
|
|
58
71
|
export { ATTACHMENT_FORMAT, ATTACHMENT_JSON_SCHEMA, ATTACHMENT_ARRAY_JSON_SCHEMA, markAttachmentFields, } from './common/attachment.js';
|
|
59
72
|
// ─── Built-in Steps ───
|
|
60
|
-
export { LoopStep, LoopStepConfigSchema, } from './
|
|
61
|
-
export { MapStep, MapStepConfigSchema, } from './
|
|
62
|
-
export { CodeStep, CodeStepConfigSchema, } from './
|
|
63
|
-
export { DedupStep, DedupStepConfigSchema, } from './
|
|
64
|
-
export { ParallelStep, ParallelStepConfigSchema, } from './
|
|
65
|
-
export { WaitStep, WaitStepConfigSchema, } from './
|
|
66
|
-
export { HttpRequestStep, HttpRequestStepConfigSchema, HttpMethodSchema, HttpRawContentTypeSchema, HttpResponseSchema, HttpBodySchema, } from './
|
|
73
|
+
export { LoopStep, LoopStepConfigSchema, } from './connectors/builtin/steps/loop.step.js';
|
|
74
|
+
export { MapStep, MapStepConfigSchema, } from './connectors/builtin/steps/map.step.js';
|
|
75
|
+
export { CodeStep, CodeStepConfigSchema, } from './connectors/builtin/steps/code.step.js';
|
|
76
|
+
export { DedupStep, DedupStepConfigSchema, } from './connectors/builtin/steps/dedup.step.js';
|
|
77
|
+
export { ParallelStep, ParallelStepConfigSchema, } from './connectors/builtin/steps/parallel.step.js';
|
|
78
|
+
export { WaitStep, WaitStepConfigSchema, } from './connectors/builtin/steps/wait.step.js';
|
|
79
|
+
export { HttpRequestStep, HttpRequestStepConfigSchema, HttpMethodSchema, HttpRawContentTypeSchema, HttpResponseSchema, HttpBodySchema, } from './connectors/builtin/steps/http-request.step.js';
|
|
67
80
|
// ─── Runtime ───
|
|
68
81
|
export { WorkflowRuntime } from './runtime/workflow-runtime.js';
|
|
69
|
-
|
|
82
|
+
// ─── Event Bus ───
|
|
83
|
+
//
|
|
84
|
+
// `InMemoryEventBus` is the default and suits any host that runs in one process.
|
|
85
|
+
// Split the queue worker from the HTTP API and it stops working *silently* — that
|
|
86
|
+
// host must implement `EventBusAdapter` over a real broker instead.
|
|
87
|
+
export { InMemoryEventBus } from './events/in-memory-adapter.js';
|
|
88
|
+
export { executionTopic } from './events/types.js';
|
|
89
|
+
export { workflowTopic } from './events/types.js';
|
|
90
|
+
export { createEventChannel } from './util/event-channel.js';
|
|
70
91
|
export { WORKFLOW_ACTIONS, EXECUTION_ACTIONS, FOLDER_ACTIONS, CONTAINER_ACTIONS, CREDENTIAL_ACTIONS, ALL_ACTIONS, refLabel, } from './authz/types.js';
|
|
71
92
|
export { applyIdScope } from './authz/id-scope.js';
|
|
72
93
|
export { AllowAllAuthorizer, AccessDeniedError, ResourceNotFoundError, } from './authz/default.js';
|
|
73
94
|
// ─── Router ───
|
|
74
95
|
export { createWorkflowRouter } from './router/workflow-router.js';
|
|
96
|
+
// ─── Trigger filter ───
|
|
97
|
+
export { TriggerFilterSchema, TRIGGER_FILTER_SCOPE } from './types/workflow-config.js';
|
|
75
98
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAE1C,iBAAiB;AAEjB,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,wBAAwB,GACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAE1C,iBAAiB;AAEjB,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,wBAAwB,GACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CA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A6C,CAAC;AASrD,OAAO,EACL,QAAQ,EACR,oBAAoB,GACrB,MAAM,yCAAyC,CAAC;AAMjD,OAAO,EACL,eAAe,EACf,2BAA2B,EAC3B,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,EAClB,cAAc,GACf,MAAM,iDAAiD,CAAC;AAWzD,kBAAkB;AAElB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAUhE,oBAAoB;AACpB,EAAE;AACF,iFAAiF;AACjF,kFAAkF;AAClF,oEAAoE;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAWlD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAa7D,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,QAAQ,GACT,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAE5B,iBAAiB;AAEjB,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAUnE,yBAAyB;AAEzB,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse a webhook body from its raw bytes.
|
|
3
|
+
*
|
|
4
|
+
* The engine does this itself, after authentication, so verification never
|
|
5
|
+
* depends on how the host parsed the request.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MalformedBodyError extends Error {
|
|
8
|
+
constructor(message: string);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* JSON for JSON content types, an object of fields for form-encoded bodies,
|
|
12
|
+
* text otherwise. A body with no content type is tried as JSON and falls back
|
|
13
|
+
* to text, since many senders omit the header. An empty body is `{}`.
|
|
14
|
+
*
|
|
15
|
+
* @throws {MalformedBodyError} when a JSON content type carries invalid JSON.
|
|
16
|
+
*/
|
|
17
|
+
export declare function parseInboundBody(rawBody: Uint8Array, contentType: string | undefined): unknown;
|
|
18
|
+
//# sourceMappingURL=body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../src/ingest/body.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,OAAO,EAAE,MAAM;CAI5B;AAID;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAuB9F"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse a webhook body from its raw bytes.
|
|
3
|
+
*
|
|
4
|
+
* The engine does this itself, after authentication, so verification never
|
|
5
|
+
* depends on how the host parsed the request.
|
|
6
|
+
*/
|
|
7
|
+
export class MalformedBodyError extends Error {
|
|
8
|
+
constructor(message) {
|
|
9
|
+
super(message);
|
|
10
|
+
this.name = 'MalformedBodyError';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
const decoder = new TextDecoder();
|
|
14
|
+
/**
|
|
15
|
+
* JSON for JSON content types, an object of fields for form-encoded bodies,
|
|
16
|
+
* text otherwise. A body with no content type is tried as JSON and falls back
|
|
17
|
+
* to text, since many senders omit the header. An empty body is `{}`.
|
|
18
|
+
*
|
|
19
|
+
* @throws {MalformedBodyError} when a JSON content type carries invalid JSON.
|
|
20
|
+
*/
|
|
21
|
+
export function parseInboundBody(rawBody, contentType) {
|
|
22
|
+
if (rawBody.byteLength === 0)
|
|
23
|
+
return {};
|
|
24
|
+
const text = decoder.decode(rawBody);
|
|
25
|
+
const mediaType = (contentType ?? '').split(';')[0].trim().toLowerCase();
|
|
26
|
+
if (mediaType === 'application/json' || mediaType.endsWith('+json')) {
|
|
27
|
+
try {
|
|
28
|
+
return JSON.parse(text);
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
throw new MalformedBodyError('Request body is not valid JSON');
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
if (mediaType === 'application/x-www-form-urlencoded') {
|
|
35
|
+
return Object.fromEntries(new URLSearchParams(text));
|
|
36
|
+
}
|
|
37
|
+
if (mediaType === '') {
|
|
38
|
+
try {
|
|
39
|
+
return JSON.parse(text);
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
return text;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return text;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.js","sourceRoot":"","sources":["../../src/ingest/body.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF;AAED,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;AAElC;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAmB,EAAE,WAA+B;IACnF,IAAI,OAAO,CAAC,UAAU,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACxC,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACrC,MAAM,SAAS,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAE1E,IAAI,SAAS,KAAK,kBAAkB,IAAI,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QACpE,IAAI,CAAC;YACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAY,CAAC;QACrC,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,kBAAkB,CAAC,gCAAgC,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IACD,IAAI,SAAS,KAAK,mCAAmC,EAAE,CAAC;QACtD,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;IACvD,CAAC;IACD,IAAI,SAAS,KAAK,EAAE,EAAE,CAAC;QACrB,IAAI,CAAC;YACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAY,CAAC;QACrC,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Evaluate a trigger's filter against one event, before any run exists.
|
|
3
|
+
*
|
|
4
|
+
* The filter is the author's data — the same condition tree the Conditional
|
|
5
|
+
* step uses — so a connector never writes filtering code. Variables resolve
|
|
6
|
+
* under `trigger.*` and `vars.*`, the only context that exists before a run.
|
|
7
|
+
*/
|
|
8
|
+
import type { TriggerFilter, WorkflowConfig } from '../types/workflow-config.js';
|
|
9
|
+
/** True when there is no filter, or the event satisfies it. */
|
|
10
|
+
export declare function matchesTriggerFilter(filter: TriggerFilter | undefined, payload: Readonly<Record<string, unknown>>, variables: WorkflowConfig['variables']): boolean;
|
|
11
|
+
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../src/ingest/filter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAOjF,+DAA+D;AAC/D,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,aAAa,GAAG,SAAS,EACjC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAC1C,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC,GACrC,OAAO,CAST"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Evaluate a trigger's filter against one event, before any run exists.
|
|
3
|
+
*
|
|
4
|
+
* The filter is the author's data — the same condition tree the Conditional
|
|
5
|
+
* step uses — so a connector never writes filtering code. Variables resolve
|
|
6
|
+
* under `trigger.*` and `vars.*`, the only context that exists before a run.
|
|
7
|
+
*/
|
|
8
|
+
import { ConditionEvaluator } from '../engine/condition-evaluator.js';
|
|
9
|
+
import { projectVariables } from '../types/workflow-variable.js';
|
|
10
|
+
const evaluator = new ConditionEvaluator();
|
|
11
|
+
/** True when there is no filter, or the event satisfies it. */
|
|
12
|
+
export function matchesTriggerFilter(filter, payload, variables) {
|
|
13
|
+
if (!filter?.conditions)
|
|
14
|
+
return true;
|
|
15
|
+
const context = {
|
|
16
|
+
workflow: { id: '', metadata: {} },
|
|
17
|
+
trigger: payload,
|
|
18
|
+
steps: {},
|
|
19
|
+
vars: projectVariables(variables),
|
|
20
|
+
};
|
|
21
|
+
return evaluator.evaluate(filter.conditions, context);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../src/ingest/filter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,MAAM,SAAS,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAE3C,+DAA+D;AAC/D,MAAM,UAAU,oBAAoB,CAClC,MAAiC,EACjC,OAA0C,EAC1C,SAAsC;IAEtC,IAAI,CAAC,MAAM,EAAE,UAAU;QAAE,OAAO,IAAI,CAAC;IACrC,MAAM,OAAO,GAAG;QACd,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;QAClC,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,EAAE;QACT,IAAI,EAAE,gBAAgB,CAAC,SAAS,CAAC;KACJ,CAAC;IAChC,OAAO,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../src/ingest/headers.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,wBAAgB,WAAW,CACzB,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC,EAChE,IAAI,EAAE,MAAM,GACX,MAAM,GAAG,SAAS,CAOpB"}
|