@xyne/workflow-sdk 3.2.38 → 3.2.39

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 (111) hide show
  1. package/dist/connectors/builtin/builtin-connector.d.ts +1 -0
  2. package/dist/connectors/builtin/builtin-connector.d.ts.map +1 -1
  3. package/dist/connectors/builtin/builtin-connector.js +1 -0
  4. package/dist/connectors/builtin/builtin-connector.js.map +1 -1
  5. package/dist/connectors/core/base-connector.d.ts +5 -0
  6. package/dist/connectors/core/base-connector.d.ts.map +1 -1
  7. package/dist/connectors/core/base-connector.js +5 -0
  8. package/dist/connectors/core/base-connector.js.map +1 -1
  9. package/dist/connectors/core/connector-registry.d.ts.map +1 -1
  10. package/dist/connectors/core/connector-registry.js +7 -11
  11. package/dist/connectors/core/connector-registry.js.map +1 -1
  12. package/dist/router/workflow-router.d.ts.map +1 -1
  13. package/dist/router/workflow-router.js +22 -5
  14. package/dist/router/workflow-router.js.map +1 -1
  15. package/dist/runtime/workflow-runtime.d.ts +8 -5
  16. package/dist/runtime/workflow-runtime.d.ts.map +1 -1
  17. package/dist/runtime/workflow-runtime.js +20 -5
  18. package/dist/runtime/workflow-runtime.js.map +1 -1
  19. package/dist/steps/base-step.d.ts +1 -0
  20. package/dist/steps/base-step.d.ts.map +1 -1
  21. package/dist/steps/base-step.js +1 -0
  22. package/dist/steps/base-step.js.map +1 -1
  23. package/dist/steps/step-descriptor.d.ts +2 -0
  24. package/dist/steps/step-descriptor.d.ts.map +1 -1
  25. package/dist/steps/step-descriptor.js +1 -0
  26. package/dist/steps/step-descriptor.js.map +1 -1
  27. package/dist/triggers/base-trigger.d.ts +1 -0
  28. package/dist/triggers/base-trigger.d.ts.map +1 -1
  29. package/dist/triggers/base-trigger.js +1 -0
  30. package/dist/triggers/base-trigger.js.map +1 -1
  31. package/dist/triggers/trigger-descriptor.d.ts +2 -0
  32. package/dist/triggers/trigger-descriptor.d.ts.map +1 -1
  33. package/dist/triggers/trigger-descriptor.js +1 -0
  34. package/dist/triggers/trigger-descriptor.js.map +1 -1
  35. package/dist/triggers/webhook-trigger.d.ts +22 -3
  36. package/dist/triggers/webhook-trigger.d.ts.map +1 -1
  37. package/dist/triggers/webhook-trigger.js +23 -2
  38. package/dist/triggers/webhook-trigger.js.map +1 -1
  39. package/package.json +1 -1
  40. package/dist/runtime/execution-event-bus.d.ts +0 -38
  41. package/dist/runtime/execution-event-bus.d.ts.map +0 -1
  42. package/dist/runtime/execution-event-bus.js +0 -87
  43. package/dist/runtime/execution-event-bus.js.map +0 -1
  44. package/dist/steps/builtin/code.step.d.ts +0 -99
  45. package/dist/steps/builtin/code.step.d.ts.map +0 -1
  46. package/dist/steps/builtin/code.step.js +0 -152
  47. package/dist/steps/builtin/code.step.js.map +0 -1
  48. package/dist/steps/builtin/conditional.step.d.ts +0 -182
  49. package/dist/steps/builtin/conditional.step.d.ts.map +0 -1
  50. package/dist/steps/builtin/conditional.step.js +0 -82
  51. package/dist/steps/builtin/conditional.step.js.map +0 -1
  52. package/dist/steps/builtin/dedup.step.d.ts +0 -65
  53. package/dist/steps/builtin/dedup.step.d.ts.map +0 -1
  54. package/dist/steps/builtin/dedup.step.js +0 -61
  55. package/dist/steps/builtin/dedup.step.js.map +0 -1
  56. package/dist/steps/builtin/http-request.step.d.ts +0 -1020
  57. package/dist/steps/builtin/http-request.step.d.ts.map +0 -1
  58. package/dist/steps/builtin/http-request.step.js +0 -491
  59. package/dist/steps/builtin/http-request.step.js.map +0 -1
  60. package/dist/steps/builtin/loop.step.d.ts +0 -100
  61. package/dist/steps/builtin/loop.step.d.ts.map +0 -1
  62. package/dist/steps/builtin/loop.step.js +0 -73
  63. package/dist/steps/builtin/loop.step.js.map +0 -1
  64. package/dist/steps/builtin/map.step.d.ts +0 -148
  65. package/dist/steps/builtin/map.step.d.ts.map +0 -1
  66. package/dist/steps/builtin/map.step.js +0 -111
  67. package/dist/steps/builtin/map.step.js.map +0 -1
  68. package/dist/steps/builtin/parallel.step.d.ts +0 -246
  69. package/dist/steps/builtin/parallel.step.d.ts.map +0 -1
  70. package/dist/steps/builtin/parallel.step.js +0 -175
  71. package/dist/steps/builtin/parallel.step.js.map +0 -1
  72. package/dist/steps/builtin/ssrf-guard.d.ts +0 -9
  73. package/dist/steps/builtin/ssrf-guard.d.ts.map +0 -1
  74. package/dist/steps/builtin/ssrf-guard.js +0 -115
  75. package/dist/steps/builtin/ssrf-guard.js.map +0 -1
  76. package/dist/steps/builtin/switch.step.d.ts +0 -235
  77. package/dist/steps/builtin/switch.step.d.ts.map +0 -1
  78. package/dist/steps/builtin/switch.step.js +0 -101
  79. package/dist/steps/builtin/switch.step.js.map +0 -1
  80. package/dist/steps/builtin/wait.step.d.ts +0 -1072
  81. package/dist/steps/builtin/wait.step.d.ts.map +0 -1
  82. package/dist/steps/builtin/wait.step.js +0 -254
  83. package/dist/steps/builtin/wait.step.js.map +0 -1
  84. package/dist/steps/step-registry.d.ts +0 -62
  85. package/dist/steps/step-registry.d.ts.map +0 -1
  86. package/dist/steps/step-registry.js +0 -103
  87. package/dist/steps/step-registry.js.map +0 -1
  88. package/dist/triggers/builtin/default-cron-trigger.d.ts +0 -44
  89. package/dist/triggers/builtin/default-cron-trigger.d.ts.map +0 -1
  90. package/dist/triggers/builtin/default-cron-trigger.js +0 -31
  91. package/dist/triggers/builtin/default-cron-trigger.js.map +0 -1
  92. package/dist/triggers/builtin/default-event-trigger.d.ts +0 -32
  93. package/dist/triggers/builtin/default-event-trigger.d.ts.map +0 -1
  94. package/dist/triggers/builtin/default-event-trigger.js +0 -21
  95. package/dist/triggers/builtin/default-event-trigger.js.map +0 -1
  96. package/dist/triggers/builtin/default-manual-trigger.d.ts +0 -45
  97. package/dist/triggers/builtin/default-manual-trigger.d.ts.map +0 -1
  98. package/dist/triggers/builtin/default-manual-trigger.js +0 -51
  99. package/dist/triggers/builtin/default-manual-trigger.js.map +0 -1
  100. package/dist/triggers/builtin/default-webhook-trigger.d.ts +0 -72
  101. package/dist/triggers/builtin/default-webhook-trigger.d.ts.map +0 -1
  102. package/dist/triggers/builtin/default-webhook-trigger.js +0 -91
  103. package/dist/triggers/builtin/default-webhook-trigger.js.map +0 -1
  104. package/dist/triggers/builtin/default-webhook-v2-trigger.d.ts +0 -29
  105. package/dist/triggers/builtin/default-webhook-v2-trigger.d.ts.map +0 -1
  106. package/dist/triggers/builtin/default-webhook-v2-trigger.js +0 -38
  107. package/dist/triggers/builtin/default-webhook-v2-trigger.js.map +0 -1
  108. package/dist/triggers/trigger-registry.d.ts +0 -48
  109. package/dist/triggers/trigger-registry.d.ts.map +0 -1
  110. package/dist/triggers/trigger-registry.js +0 -83
  111. package/dist/triggers/trigger-registry.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"wait.step.d.ts","sourceRoot":"","sources":["../../../src/steps/builtin/wait.step.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAyH9D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAwB;IACtD,SAAkB,YAAY;;;;;;;;;OAAwB;IACtD,SAAkB,QAAQ,EAAE,YAAY,CAAU;IAClD,SAAkB,IAAI,WAAW;IAExB,uBAAuB,CAC9B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IA6BX,OAAO,CACpB,MAAM,EAAE,cAAc,EACtB,GAAG,EAAE,oBAAoB,GACxB,OAAO,CAAC,cAAc,CAAC;IAWX,QAAQ,CACrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,cAAc,CAAC;IAU1B,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,cAAc;IAgCtB,OAAO,CAAC,eAAe;CAqBxB"}
@@ -1,254 +0,0 @@
1
- /**
2
- * WAIT step — pause execution and resume on a trigger.
3
- *
4
- * Three modes:
5
- *
6
- * - `delay`: Resume automatically after a specified duration.
7
- * The step pauses with `statePatch.resumeAfter` so the host/runtime
8
- * can schedule a delayed re-enqueue.
9
- *
10
- * - `webhook`: Resume when an external system calls a callback URL.
11
- * The step pauses with an `externalRef` that the host uses to
12
- * route inbound callbacks to the correct execution.
13
- *
14
- * - `approval`: Resume when a user explicitly approves/rejects via the API.
15
- * Supports compositional interactions: display data, editable form,
16
- * and custom action buttons.
17
- *
18
- * All modes use `ctx.pause()`. The host runtime is responsible for
19
- * scheduling delayed resumes (delay mode) or routing callbacks
20
- * (webhook mode). The step itself is stateless — it pauses and
21
- * trusts `onResume()` to receive whatever data the caller provides.
22
- */
23
- import { z } from 'zod';
24
- import { BaseActionStep } from '../base-step.js';
25
- import { BuiltinStepType } from '../../types/known-types.js';
26
- import { ATTACHMENT_ARRAY_JSON_SCHEMA } from '../../common/attachment.js';
27
- import { pauseFormToJsonSchema } from '../../util/pause-form-schema.js';
28
- // ─── Pause UI Schemas (shared with PauseState types) ───
29
- const PauseDisplaySectionSchema = z.object({
30
- // Stable key for citation addressing (StepConfigBase.citations). Optional and
31
- // ignored by the executor; declared here so the builder can attach a citation
32
- // to a specific row without injecting an undeclared field that Zod would strip.
33
- id: z.string().optional(),
34
- label: z.string(),
35
- value: z.unknown(),
36
- });
37
- const PauseFormFieldOptionSchema = z.object({
38
- label: z.string(),
39
- value: z.string(),
40
- });
41
- const PauseFormFieldSchema = z.discriminatedUnion('type', [
42
- z.object({
43
- type: z.literal('text'),
44
- name: z.string(),
45
- label: z.string(),
46
- required: z.boolean().optional(),
47
- description: z.string().optional(),
48
- placeholder: z.string().optional(),
49
- defaultValue: z.string().optional(),
50
- }),
51
- z.object({
52
- type: z.literal('textarea'),
53
- name: z.string(),
54
- label: z.string(),
55
- required: z.boolean().optional(),
56
- description: z.string().optional(),
57
- placeholder: z.string().optional(),
58
- defaultValue: z.string().optional(),
59
- rows: z.number().optional(),
60
- }),
61
- z.object({
62
- type: z.literal('number'),
63
- name: z.string(),
64
- label: z.string(),
65
- required: z.boolean().optional(),
66
- description: z.string().optional(),
67
- placeholder: z.string().optional(),
68
- defaultValue: z.number().optional(),
69
- min: z.number().optional(),
70
- max: z.number().optional(),
71
- }),
72
- z.object({
73
- type: z.literal('select'),
74
- name: z.string(),
75
- label: z.string(),
76
- required: z.boolean().optional(),
77
- description: z.string().optional(),
78
- placeholder: z.string().optional(),
79
- defaultValue: z.string().optional(),
80
- // Accepts array of options or a {{variable}} ref string (resolved at runtime)
81
- options: z.union([z.array(PauseFormFieldOptionSchema), z.string()]),
82
- allowCustomValue: z.boolean().optional(),
83
- }),
84
- z.object({
85
- type: z.literal('checkbox'),
86
- name: z.string(),
87
- label: z.string(),
88
- required: z.boolean().optional(),
89
- description: z.string().optional(),
90
- defaultValue: z.boolean().optional(),
91
- }),
92
- // NOTE: keep in sync with the `PauseFormField` union in types/pause-state.ts.
93
- z.object({
94
- type: z.literal('attachment'),
95
- name: z.string(),
96
- label: z.string(),
97
- required: z.boolean().optional(),
98
- description: z.string().optional(),
99
- multiple: z.boolean().optional().describe('Allow multiple files (value becomes an attachment array)'),
100
- accept: z.array(z.string()).optional().describe('Accepted MIME types, e.g. ["application/pdf","image/*"]'),
101
- maxSize: z.number().optional().describe('Max bytes per file'),
102
- maxItems: z.number().optional().describe('Max number of files (multiple only)'),
103
- }),
104
- ]);
105
- const PauseFormSchema = z.object({
106
- fields: z.array(PauseFormFieldSchema),
107
- description: z.string().optional(),
108
- });
109
- const PauseActionSchema = z.object({
110
- key: z.string(),
111
- label: z.string(),
112
- style: z.enum(['primary', 'danger', 'default']).optional(),
113
- abort: z.boolean().optional(),
114
- submitsForm: z.boolean().optional(),
115
- });
116
- // ─── Config ───
117
- const WaitDelayConfigSchema = z.object({
118
- mode: z.literal('delay'),
119
- delayMs: z.number().int().positive().describe('Duration to wait in milliseconds before auto-resuming'),
120
- });
121
- const WaitWebhookConfigSchema = z.object({
122
- mode: z.literal('webhook'),
123
- // No per-step config needed. The workflow's stable callback secret +
124
- // this execution's ID together form the callback URL.
125
- });
126
- const WaitApprovalConfigSchema = z.object({
127
- mode: z.literal('approval'),
128
- reason: z.string().min(1).describe('Human-readable reason shown to the approver'),
129
- prompt: z.string().optional().describe('Prompt text shown above the interaction panel'),
130
- display: z.array(PauseDisplaySectionSchema).optional().describe('Read-only data sections to display. Values support {{variable}} refs'),
131
- form: PauseFormSchema.optional().describe('Editable form with typed fields for the approver'),
132
- actions: z.array(PauseActionSchema).optional().describe('Action buttons. Defaults to Approve + Reject when omitted'),
133
- });
134
- export const WaitStepConfigSchema = z.discriminatedUnion('mode', [
135
- WaitDelayConfigSchema,
136
- WaitWebhookConfigSchema,
137
- WaitApprovalConfigSchema,
138
- ]);
139
- const WaitStepOutputSchema = z.object({
140
- mode: z.enum(['delay', 'webhook', 'approval']),
141
- resumeData: z.record(z.unknown()),
142
- });
143
- // ─── Step ───
144
- export class WaitStep extends BaseActionStep {
145
- type = BuiltinStepType.WAIT;
146
- name = 'Wait';
147
- description = 'Pause execution and resume after a delay, webhook callback, or manual approval';
148
- configSchema = WaitStepConfigSchema;
149
- outputSchema = WaitStepOutputSchema;
150
- category = 'flow';
151
- icon = 'clock';
152
- resolveOutputJsonSchema(config) {
153
- let resumeData = { type: 'object', additionalProperties: true };
154
- if (config['mode'] === 'approval') {
155
- const form = config['form'];
156
- resumeData = {
157
- type: 'object',
158
- properties: {
159
- action: { type: 'string', enum: ['approve', 'retry', 'abort'] },
160
- feedback: { type: 'string' },
161
- attachments: ATTACHMENT_ARRAY_JSON_SCHEMA,
162
- data: form?.fields?.length
163
- ? pauseFormToJsonSchema(form)
164
- : { type: 'object', additionalProperties: true },
165
- },
166
- additionalProperties: true,
167
- };
168
- }
169
- return {
170
- type: 'object',
171
- properties: {
172
- mode: { type: 'string', enum: ['delay', 'webhook', 'approval'] },
173
- resumeData,
174
- },
175
- };
176
- }
177
- async execute(config, ctx) {
178
- switch (config.mode) {
179
- case 'delay':
180
- return this.executeDelay(config, ctx);
181
- case 'webhook':
182
- return this.executeWebhook(config, ctx);
183
- case 'approval':
184
- return this.executeApproval(config, ctx);
185
- }
186
- }
187
- async onResume(rowData, _config, _ctx) {
188
- const waitMode = rowData['waitMode'] ?? 'delay';
189
- const resumePayload = rowData['resumePayload'] ?? {};
190
- return {
191
- mode: waitMode,
192
- resumeData: resumePayload,
193
- };
194
- }
195
- executeDelay(config, ctx) {
196
- ctx.pause(`Waiting for ${String(config.delayMs)}ms`, {
197
- statePatch: {
198
- waitMode: 'delay',
199
- delayMs: config.delayMs,
200
- resumeAfter: new Date(Date.now() + config.delayMs).toISOString(),
201
- },
202
- });
203
- }
204
- executeWebhook(_config, ctx) {
205
- // No per-step secret needed — the workflow has a stable callback secret
206
- // generated at save time. The HTTP step that runs before this one
207
- // interpolated `{{ runtime.executionId }}` into the URL it sent the
208
- // external system. The runtime resolves the callback via the workflow
209
- // secret + executionId pair (see `runtime.handleWaitCallback`).
210
- //
211
- // The UI surfaces the full URL by joining the workflow's stored secret
212
- // with this execution's ID — the wait step itself only needs to
213
- // identify which execution is paused.
214
- ctx.pause('Waiting for webhook callback', {
215
- statePatch: {
216
- waitMode: 'webhook',
217
- executionId: ctx.runtime.executionId,
218
- pauseState: {
219
- reason: 'Waiting for webhook callback',
220
- category: 'input_required',
221
- display: [
222
- { label: 'Execution ID', value: ctx.runtime.executionId },
223
- {
224
- label: 'Callback URL template',
225
- value: `${ctx.runtime.baseUrl}/wait/callback/<workflow-secret>/${ctx.runtime.executionId}`,
226
- },
227
- ],
228
- },
229
- },
230
- });
231
- }
232
- executeApproval(config, ctx) {
233
- // Build compositional PauseState from resolved config
234
- const pauseState = {
235
- reason: config.reason,
236
- };
237
- if (config.prompt)
238
- pauseState.prompt = config.prompt;
239
- if (config.display)
240
- pauseState.display = config.display;
241
- if (config.form)
242
- pauseState.form = config.form;
243
- if (config.actions)
244
- pauseState.actions = config.actions;
245
- ctx.pause(config.reason, {
246
- statePatch: {
247
- waitMode: 'approval',
248
- reason: config.reason,
249
- pauseState,
250
- },
251
- });
252
- }
253
- }
254
- //# sourceMappingURL=wait.step.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wait.step.js","sourceRoot":"","sources":["../../../src/steps/builtin/wait.step.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAG7D,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE,0DAA0D;AAE1D,MAAM,yB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7B,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAC;QACF,IAAI,MAAM,CAAC,MAAM;YAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QACrD,IAAI,MAAM,CAAC,OAAO;YAAE,UAAU,CAAC,OAAO,GAAG,MAAM,CAAC,OAAgC,CAAC;QACjF,IAAI,MAAM,CAAC,IAAI;YAAE,UAAU,CAAC,IAAI,GAAG,MAAM,CAAC,IAA0B,CAAC;QACrE,IAAI,MAAM,CAAC,OAAO;YAAE,UAAU,CAAC,OAAO,GAAG,MAAM,CAAC,OAAgC,CAAC;QAEjF,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,UAAU;gBACpB,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,UAAU;aACX;SACF,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,62 +0,0 @@
1
- import type { z } from 'zod';
2
- import type { StepType } from '../types/step-types.js';
3
- import type { StepCategory } from '../types/categories.js';
4
- import type { ServiceRegistry } from '../engine/service-registry.js';
5
- import type { BranchModel, CredentialSlot, DeclaredOutput } from './base-step.js';
6
- import { BaseStep, StepKind } from './base-step.js';
7
- export interface StepSummary {
8
- type: StepType;
9
- name: string;
10
- description: string;
11
- category: StepCategory;
12
- kind: StepKind;
13
- icon?: string;
14
- /** Control-flow steps only: 'iterate' for LOOP, 'fanout' for everything else. Absent for action steps. */
15
- branchModel?: BranchModel;
16
- }
17
- export interface StepDescriptor extends StepSummary {
18
- /** JSON Schema for the step's config — generated from the Zod schema. */
19
- configSchema: Record<string, unknown>;
20
- /** JSON Schema for the step's output — generated from the Zod schema. */
21
- outputSchema: Record<string, unknown>;
22
- /** Credential slots this step declares. Empty array if none. */
23
- credentialSlots: readonly CredentialSlot[];
24
- /** Output branches (for control-flow steps). Empty array for action steps. */
25
- declaredOutputs: readonly DeclaredOutput[];
26
- /** Service names this step requires at runtime. Empty array if none. */
27
- requiredServices: readonly string[];
28
- /** Event types this step may emit (action steps only). Empty array if none. */
29
- mayEmit: readonly string[];
30
- }
31
- export declare class UnknownStepError extends Error {
32
- readonly stepType: StepType;
33
- constructor(stepType: StepType);
34
- }
35
- type AnyStep = BaseStep<z.ZodTypeAny, Record<string, unknown>>;
36
- export declare class StepRegistry {
37
- private readonly map;
38
- constructor();
39
- /**
40
- * Register a step implementation. Throws on duplicate type.
41
- *
42
- * If a `ServiceRegistry` is provided, validates that all
43
- * `requiredServices` declared by the step are present.
44
- */
45
- register(instance: AnyStep, services?: ServiceRegistry): void;
46
- /** Look up a step by type. Throws `UnknownStepError` if not found. */
47
- get(type: StepType): AnyStep;
48
- /** All registered step instances. */
49
- list(): AnyStep[];
50
- /** Lightweight summaries — type, name, description, category, kind, icon. */
51
- listSummaries(): StepSummary[];
52
- /** Full descriptor for a single step type — includes JSON Schemas and all metadata. */
53
- getDescriptor(type: StepType): StepDescriptor;
54
- /** Check if a step type is registered. */
55
- has(type: StepType): boolean;
56
- /** Number of registered steps. */
57
- get size(): number;
58
- private buildSummary;
59
- private buildDescriptor;
60
- }
61
- export {};
62
- //# sourceMappingURL=step-registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step-registry.d.ts","sourceRoot":"","sources":["../../src/steps/step-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAuC,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAczF,MAAM,WAAW,WAA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AuF;IACvF,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,cAAc;IAK7C,0CAA0C;IAC1C,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO;IAI5B,kCAAkC;IAClC,IAAI,IAAI,IAAI,MAAM,CAEjB;IAID,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,eAAe;CAYxB"}
@@ -1,103 +0,0 @@
1
- import { BaseStep, BaseActionStep, BaseControlFlowStep, StepKind } from './base-step.js';
2
- import { zodToJsonSchemaRecord } from '../util/schema-convert.js';
3
- import { CodeStep } from './builtin/code.step.js';
4
- import { ConditionalStep } from './builtin/conditional.step.js';
5
- import { HttpRequestStep } from './builtin/http-request.step.js';
6
- import { LoopStep } from './builtin/loop.step.js';
7
- import { MapStep } from './builtin/map.step.js';
8
- import { ParallelStep } from './builtin/parallel.step.js';
9
- import { SwitchStep } from './builtin/switch.step.js';
10
- import { WaitStep } from './builtin/wait.step.js';
11
- import { DedupStep } from './builtin/dedup.step.js';
12
- // ─── Error ───
13
- export class UnknownStepError extends Error {
14
- stepType;
15
- constructor(stepType) {
16
- super(`StepRegistry: unknown step type "${stepType}". Is it registered at boot?`);
17
- this.name = 'UnknownStepError';
18
- this.stepType = stepType;
19
- }
20
- }
21
- export class StepRegistry {
22
- map = new Map();
23
- constructor() {
24
- // Auto-register all built-in steps
25
- this.map.set('CODE', new CodeStep());
26
- this.map.set('CONDITIONAL', new ConditionalStep());
27
- this.map.set('HTTP_REQUEST', new HttpRequestStep());
28
- this.map.set('LOOP', new LoopStep());
29
- this.map.set('MAP', new MapStep());
30
- this.map.set('PARALLEL', new ParallelStep());
31
- this.map.set('SWITCH', new SwitchStep());
32
- this.map.set('WAIT', new WaitStep());
33
- this.map.set('DEDUP', new DedupStep());
34
- }
35
- /**
36
- * Register a step implementation. Throws on duplicate type.
37
- *
38
- * If a `ServiceRegistry` is provided, validates that all
39
- * `requiredServices` declared by the step are present.
40
- */
41
- register(instance, services) {
42
- if (this.map.has(instance.type)) {
43
- throw new Error(`StepRegistry: step type "${instance.type}" is already registered.`);
44
- }
45
- if (services && instance.requiredServices) {
46
- services.assertRegistered(instance.requiredServices);
47
- }
48
- this.map.set(instance.type, instance);
49
- }
50
- /** Look up a step by type. Throws `UnknownStepError` if not found. */
51
- get(type) {
52
- const impl = this.map.get(type);
53
- if (!impl) {
54
- throw new UnknownStepError(type);
55
- }
56
- return impl;
57
- }
58
- /** All registered step instances. */
59
- list() {
60
- return Array.from(this.map.values());
61
- }
62
- /** Lightweight summaries — type, name, description, category, kind, icon. */
63
- listSummaries() {
64
- return this.list().map((s) => this.buildSummary(s));
65
- }
66
- /** Full descriptor for a single step type — includes JSON Schemas and all metadata. */
67
- getDescriptor(type) {
68
- const impl = this.get(type);
69
- return this.buildDescriptor(impl);
70
- }
71
- /** Check if a step type is registered. */
72
- has(type) {
73
- return this.map.has(type);
74
- }
75
- /** Number of registered steps. */
76
- get size() {
77
- return this.map.size;
78
- }
79
- // ─── Internal builders ───
80
- buildSummary(s) {
81
- return {
82
- type: s.type,
83
- name: s.name,
84
- description: s.description,
85
- category: s.category,
86
- kind: s.kind,
87
- ...(s.icon !== undefined ? { icon: s.icon } : {}),
88
- ...(s instanceof BaseControlFlowStep ? { branchModel: s.branchModel } : {}),
89
- };
90
- }
91
- buildDescriptor(s) {
92
- return {
93
- ...this.buildSummary(s),
94
- configSchema: s.decorateConfigSchema(zodToJsonSchemaRecord(s.configSchema)),
95
- outputSchema: zodToJsonSchemaRecord(s.outputSchema),
96
- credentialSlots: s.credentialSlots ?? [],
97
- declaredOutputs: s.declaredOutputs ?? [],
98
- requiredServices: s.requiredServices ?? [],
99
- mayEmit: s instanceof BaseActionStep ? (s.mayEmit ?? []) : [],
100
- };
101
- }
102
- }
103
- //# sourceMappingURL=step-registry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step-registry.js","sourceRoot":"","sources":["../../src/steps/step-registry.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,E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vB,YAAY,EAAE,CAAC,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;YAC3E,YAAY,EAAE,qBAAqB,CAAC,CAAC,CAAC,YAAY,CAAC;YACnD,eAAe,EAAE,CAAC,CAAC,eAAe,IAAI,EAAE;YACxC,eAAe,EAAE,CAAC,CAAC,eAAe,IAAI,EAAE;YACxC,gBAAgB,EAAE,CAAC,CAAC,gBAAgB,IAAI,EAAE;YAC1C,OAAO,EACL,CAAC,YAAY,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE;SACvD,CAAC;IACJ,CAAC;CACF"}
@@ -1,44 +0,0 @@
1
- import { z } from 'zod';
2
- import { CronTrigger } from '../cron-trigger.js';
3
- import type { CronSchedule } from '../cron-trigger.js';
4
- import { BuiltinTriggerType } from '../../types/known-types.js';
5
- import { TriggerCategory } from '../../types/categories.js';
6
- declare const DefaultCronTriggerConfigSchema: z.ZodObject<{
7
- expression: z.ZodString;
8
- }, "strip", z.ZodTypeAny, {
9
- expression: string;
10
- }, {
11
- expression: string;
12
- }>;
13
- /**
14
- * Default cron trigger — fires on a cron schedule.
15
- *
16
- * Config accepts only the cron expression. Timezone is set globally on the
17
- * runtime via `RuntimeOptions.defaultCronTimezone` (defaults to
18
- * `Asia/Kolkata`), so every cron job in a deployment runs against the same
19
- * zone.
20
- */
21
- export declare class DefaultCronTrigger extends CronTrigger<typeof DefaultCronTriggerConfigSchema> {
22
- readonly type = BuiltinTriggerType.CRON;
23
- readonly name = "Cron Trigger";
24
- readonly description = "Trigger a workflow on a recurring schedule";
25
- readonly category = TriggerCategory.CRON;
26
- readonly icon = "timer";
27
- readonly configSchema: z.ZodObject<{
28
- expression: z.ZodString;
29
- }, "strip", z.ZodTypeAny, {
30
- expression: string;
31
- }, {
32
- expression: string;
33
- }>;
34
- readonly outputSchema: z.ZodObject<{
35
- firedAt: z.ZodString;
36
- }, "strip", z.ZodTypeAny, {
37
- firedAt: string;
38
- }, {
39
- firedAt: string;
40
- }>;
41
- getSchedule(config: z.infer<typeof DefaultCronTriggerConfigSchema>): CronSchedule;
42
- }
43
- export {};
44
- //# sourceMappingURL=default-cron-trigger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-cron-trigger.d.ts","sourceRoot":"","sources":["../../../src/triggers/builtin/default-cron-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,QAAA,MAAM,8BAA8B;;;;;;EAGlC,CAAC;AAEH;;;;;;;GAOG;AACH,qBAAa,kBAAmB,SAAQ,WAAW,CAAC,OAAO,8BAA8B,CAAC;IACxF,SAAkB,IAAI,2BAA2B;IACjD,SAAkB,IAAI,kBAAkB;IACxC,SAAkB,WAAW,gDAAgD;IAC7E,SAAkB,QAAQ,wBAAwB;IAClD,SAAkB,IAAI,WAAW;IACjC,SAAkB,YAAY;;;;;;OAAkC;IAChE,SAAkB,YAAY;;;;;;OAE3B;IAEH,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,GAAG,YAAY;CAGlF"}
@@ -1,31 +0,0 @@
1
- import { z } from 'zod';
2
- import { CronTrigger } from '../cron-trigger.js';
3
- import { BuiltinTriggerType } from '../../types/known-types.js';
4
- import { TriggerCategory } from '../../types/categories.js';
5
- const DefaultCronTriggerConfigSchema = z.object({
6
- expression: z.string().min(1)
7
- .describe('Cron expression defining the schedule (e.g. "0 * * * *" for every hour)'),
8
- });
9
- /**
10
- * Default cron trigger — fires on a cron schedule.
11
- *
12
- * Config accepts only the cron expression. Timezone is set globally on the
13
- * runtime via `RuntimeOptions.defaultCronTimezone` (defaults to
14
- * `Asia/Kolkata`), so every cron job in a deployment runs against the same
15
- * zone.
16
- */
17
- export class DefaultCronTrigger extends CronTrigger {
18
- type = BuiltinTriggerType.CRON;
19
- name = 'Cron Trigger';
20
- description = 'Trigger a workflow on a recurring schedule';
21
- category = TriggerCategory.CRON;
22
- icon = 'timer';
23
- configSchema = DefaultCronTriggerConfigSchema;
24
- outputSchema = z.object({
25
- firedAt: z.string(),
26
- });
27
- getSchedule(config) {
28
- return { expression: config.expression };
29
- }
30
- }
31
- //# sourceMappingURL=default-cron-trigger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-cron-trigger.js","sourceRoot":"","sources":["../../../src/triggers/builtin/default-cron-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;SAC1B,QAAQ,CAAC,yEAAyE,CAAC;CACvF,CAAC,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,OAAO,kBAAmB,SAAQ,WAAkD;IACtE,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAC/B,IAAI,GAAG,cAAc,CAAC;IACtB,WAAW,GAAG,4CAA4C,CAAC;IAC3D,QAAQ,GAAG,eAAe,CAAC,IAAI,CAAC;IAChC,IAAI,GAAG,OAAO,CAAC;IACf,YAAY,GAAG,8BAA8B,CAAC;IAC9C,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;QACxC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CAAC;IAEH,WAAW,CAAC,MAAsD;QAChE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC;IAC3C,CAAC;CACF"}
@@ -1,32 +0,0 @@
1
- import { z } from 'zod';
2
- import { EventTrigger } from '../event-trigger.js';
3
- import { BuiltinTriggerType } from '../../types/known-types.js';
4
- import { TriggerCategory } from '../../types/categories.js';
5
- declare const DefaultEventTriggerConfigSchema: z.ZodObject<{
6
- eventType: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- eventType: string;
9
- }, {
10
- eventType: string;
11
- }>;
12
- /**
13
- * Default event trigger — fires when a matching event is dispatched.
14
- * Config accepts an event type string to filter on.
15
- */
16
- export declare class DefaultEventTrigger extends EventTrigger<typeof DefaultEventTriggerConfigSchema> {
17
- readonly type = BuiltinTriggerType.EVENT;
18
- readonly name = "Event Trigger";
19
- readonly description = "Trigger a workflow when a specific event occurs";
20
- readonly category = TriggerCategory.EVENT;
21
- readonly icon = "bell";
22
- readonly configSchema: z.ZodObject<{
23
- eventType: z.ZodString;
24
- }, "strip", z.ZodTypeAny, {
25
- eventType: string;
26
- }, {
27
- eventType: string;
28
- }>;
29
- readonly outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
30
- }
31
- export {};
32
- //# sourceMappingURL=default-event-trigger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-event-trigger.d.ts","sourceRoot":"","sources":["../../../src/triggers/builtin/default-event-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,QAAA,MAAM,+BAA+B;;;;;;EAEnC,CAAC;AAEH;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,YAAY,CAAC,OAAO,+BAA+B,CAAC;IAC3F,SAAkB,IAAI,4BAA4B;IAClD,SAAkB,IAAI,mBAAmB;IACzC,SAAkB,WAAW,qDAAqD;IAClF,SAAkB,QAAQ,yBAAyB;IACnD,SAAkB,IAAI,UAAU;IAChC,SAAkB,YAAY;;;;;;OAAmC;IACjE,SAAkB,YAAY,yCAAyB;CACxD"}
@@ -1,21 +0,0 @@
1
- import { z } from 'zod';
2
- import { EventTrigger } from '../event-trigger.js';
3
- import { BuiltinTriggerType } from '../../types/known-types.js';
4
- import { TriggerCategory } from '../../types/categories.js';
5
- const DefaultEventTriggerConfigSchema = z.object({
6
- eventType: z.string().min(1).describe('The event type to listen for (e.g. "order.created", "user.signup")'),
7
- });
8
- /**
9
- * Default event trigger — fires when a matching event is dispatched.
10
- * Config accepts an event type string to filter on.
11
- */
12
- export class DefaultEventTrigger extends EventTrigger {
13
- type = BuiltinTriggerType.EVENT;
14
- name = 'Event Trigger';
15
- description = 'Trigger a workflow when a specific event occurs';
16
- category = TriggerCategory.EVENT;
17
- icon = 'bell';
18
- configSchema = DefaultEventTriggerConfigSchema;
19
- outputSchema = z.record(z.unknown());
20
- }
21
- //# sourceMappingURL=default-event-trigger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-event-trigger.js","sourceRoot":"","sources":["../../../src/triggers/builtin/default-event-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,oEAAoE,CAAC;CAC5G,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,OAAO,mBAAoB,SAAQ,YAAoD;IACzE,IAAI,GAAG,kBAAkB,CAAC,KAAK,CAAC;IAChC,IAAI,GAAG,eAAe,CAAC;IACvB,WAAW,GAAG,iDAAiD,CAAC;IAChE,QAAQ,GAAG,eAAe,CAAC,KAAK,CAAC;IACjC,IAAI,GAAG,MAAM,CAAC;IACd,YAAY,GAAG,+BAA+B,CAAC;IAC/C,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;CACxD"}
@@ -1,45 +0,0 @@
1
- import { z } from 'zod';
2
- import { ManualTrigger } from '../manual-trigger.js';
3
- import { BuiltinTriggerType } from '../../types/known-types.js';
4
- import { TriggerCategory } from '../../types/categories.js';
5
- /**
6
- * Default manual trigger — fires via `runtime.triggerManual()`.
7
- *
8
- * The author-supplied `inputSchema` fully describes the payload, including any
9
- * file inputs: a document is just a typed field carrying `format: 'attachment'`
10
- * (single) or an array of those (multiple). There is no separate attachments
11
- * slot — uploaded files become ordinary named fields, so they're referenced by
12
- * name (`{{trigger.pan}}`) and validated by the schema like any other input.
13
- */
14
- export declare const DefaultManualTriggerConfigSchema: z.ZodObject<{
15
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16
- }, "strip", z.ZodTypeAny, {
17
- inputSchema?: Record<string, unknown> | undefined;
18
- }, {
19
- inputSchema?: Record<string, unknown> | undefined;
20
- }>;
21
- export declare class DefaultManualTrigger extends ManualTrigger<typeof DefaultManualTriggerConfigSchema> {
22
- readonly type = BuiltinTriggerType.MANUAL;
23
- readonly name = "Manual Trigger";
24
- readonly description = "Trigger a workflow manually with a custom payload";
25
- readonly category = TriggerCategory.MANUAL;
26
- readonly icon = "cursor";
27
- readonly configSchema: z.ZodObject<{
28
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29
- }, "strip", z.ZodTypeAny, {
30
- inputSchema?: Record<string, unknown> | undefined;
31
- }, {
32
- inputSchema?: Record<string, unknown> | undefined;
33
- }>;
34
- readonly outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
35
- decorateConfigSchema(jsonSchema: Record<string, unknown>): Record<string, unknown>;
36
- /**
37
- * The `inputSchema` *is* the shape of `context.trigger` — whatever the author
38
- * declared (typed fields and attachment fields alike) is what the variable
39
- * picker sees. Attachment fields already carry `format: 'attachment'`, so the
40
- * picker types them as `attachment` / `attachment[]` with no special-casing
41
- * here. Falls back to a permissive object when no schema was declared.
42
- */
43
- resolveOutputJsonSchema(config: Record<string, unknown>): Record<string, unknown>;
44
- }
45
- //# sourceMappingURL=default-manual-trigger.d.ts.map