@oomol-lab/open-flow 0.1.0-beta.1 → 0.1.0-beta.11
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/browser/DesignerIcon-ckcKnxxJ.js +2267 -0
- package/dist/browser/createResourceDialog-DhIU-HYW.js +111 -0
- package/dist/browser/{dist-CPuF50D9.js → dist-BZ5PTFAs.js} +1 -1
- package/dist/browser/dist-Bmb2mZvW.js +795 -0
- package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
- package/dist/browser/dist-CP0883sY.js +4 -0
- package/dist/browser/{dist-CJpzJrLM.js → dist-Ce71Szg7.js} +894 -895
- package/dist/browser/dist-DSe6KRsr.js +1224 -0
- package/dist/browser/{dist-DUzA0Ukh.js → dist-DY4qlXTK.js} +140 -141
- package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
- package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
- package/dist/browser/dist-DxahK_I8.js +2688 -0
- package/dist/browser/{esm-DGQbgYoJ.js → esm-C64_h7HF.js} +58 -59
- package/dist/browser/flow-authoring-module.d.ts +2 -2
- package/dist/browser/flow-authoring-node.d.ts +17 -7
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +5329 -286
- package/dist/browser/flow-change-schema.d.ts +3 -0
- package/dist/browser/flow-change.d.ts +131 -14
- package/dist/browser/flow-change.js +5216 -114
- package/dist/browser/flow-notifications.d.ts +5 -0
- package/dist/browser/flowChanges-BINNGoug.js +12896 -0
- package/dist/browser/{flowRunInputEditorStore-BeyUSWpO.js → flowRunInputEditorStore-NPGePkvP.js} +775 -776
- package/dist/browser/flowWorkspace-Dp_b8KXF.js +158409 -0
- package/dist/browser/{getPseudoElementBounds-ESJExRFX.js → getPseudoElementBounds-Dfqo78k7.js} +2051 -2542
- package/dist/browser/{languages-DgJehE1g.js → languages-i3Xmpt6S.js} +6 -15
- package/dist/browser/licenses.md +82 -0
- package/dist/browser/{markdownContent-DdlIRN3_.js → markdownContent-BawLYUjh.js} +24 -24
- package/dist/browser/select-CbQHq-GM.js +6851 -0
- package/dist/browser/theme.css +34 -34
- package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-BoV-FDl3.js} +68 -69
- package/dist/browser/waitNotificationInputs-fzyKN6mk.js +29 -0
- package/dist/browser/workbench-contract.d.ts +8 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +3 -1
- package/dist/browser/workbench.js +1647 -1299
- package/dist/browser/workbenchSelect-BjbJjlNd.js +435 -0
- package/dist/common/control-api-conformance.d.ts +1 -0
- package/dist/common/control-api-conformance.js +309 -81
- package/dist/common/control-api-errors.d.ts +12 -0
- package/dist/common/control-api.d.ts +95 -23
- package/dist/common/control-api.js +567 -364
- package/dist/common/engine-contract.d.ts +1 -1
- package/dist/common/flow-encoding.js +33 -15
- package/dist/common/flow-graph.d.ts +6 -0
- package/dist/common/flow-modules.d.ts +20 -0
- package/dist/common/flow-notifications.d.ts +5 -0
- package/dist/common/flow-schema.d.ts +8 -0
- package/dist/common/flow-semantics.d.ts +7 -5
- package/dist/common/flow-semantics.js +8880 -1702
- package/dist/common/integration-trigger.d.ts +2 -0
- package/dist/common/provider-triggers.js +4 -1
- package/dist/common/run-events.d.ts +2 -2
- package/dist/common/run-events.js +10 -16
- package/dist/common/run-lifecycle.d.ts +17 -2
- package/dist/common/run-lifecycle.js +53 -2
- package/dist/common/runtime-contract.d.ts +10 -2
- package/dist/common/runtime-contract.js +143 -6
- package/dist/common/scheduler.d.ts +52 -13
- package/dist/common/scheduler.js +7315 -242
- package/dist/index.d.ts +6 -5
- package/package.json +1 -1
- package/dist/browser/createResourceDialog-DXQz0thK.js +0 -504
- package/dist/browser/diagnostics-BGoGFvHA.js +0 -9237
- package/dist/browser/dist-BMqL-qR5.js +0 -1894
- package/dist/browser/dist-BpopSHwP.js +0 -1543
- package/dist/browser/dist-CUSrALSX.js +0 -1620
- package/dist/browser/flowWorkspace-DwyxAOBH.js +0 -47615
- package/dist/browser/workbenchSelect-B2s1HV-Y.js +0 -1374
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { RunStatus } from './run-lifecycle.js';
|
|
2
|
-
import type { ChangeOperation, InputPortDefinition, JsonValue, PortDefinition, RevisionContent, TriggerKeySnapshot } from '../browser/flow-change.js';
|
|
3
|
-
export type { JsonValue, TriggerKeySnapshot } from '../browser/flow-change.js';
|
|
2
|
+
import type { ChangeOperation, InputPortDefinition, JsonValue, PortDefinition, RevisionContent, TriggerKeySnapshot, WaitAction } from '../browser/flow-change.js';
|
|
3
|
+
export type { JsonValue, TriggerKeySnapshot, WaitAction } from '../browser/flow-change.js';
|
|
4
4
|
export type { RunStatus } from './run-lifecycle.js';
|
|
5
5
|
export { controlErrorCode, controlErrorMetadata, type ControlErrorCode } from './control-api-errors.js';
|
|
6
6
|
export type { FlowCatalogEvent, FlowChangeEvent } from './flow-notifications.js';
|
|
7
7
|
export type ControlRequest = (path: string, init?: RequestInit) => Promise<Response>;
|
|
8
8
|
export interface Flow {
|
|
9
|
+
readonly live?: {
|
|
10
|
+
readonly enabled: boolean;
|
|
11
|
+
readonly publicationId: string;
|
|
12
|
+
readonly revisionId: string;
|
|
13
|
+
};
|
|
9
14
|
readonly createdAt: string;
|
|
10
15
|
readonly draftRevisionId: string;
|
|
11
16
|
readonly flowId: string;
|
|
@@ -14,6 +19,12 @@ export interface Flow {
|
|
|
14
19
|
readonly updatedAt: string;
|
|
15
20
|
readonly version: 1;
|
|
16
21
|
}
|
|
22
|
+
export interface Presentation {
|
|
23
|
+
readonly revision: number;
|
|
24
|
+
readonly updatedAt: string;
|
|
25
|
+
readonly value: Readonly<Record<string, JsonValue>>;
|
|
26
|
+
readonly version: 1;
|
|
27
|
+
}
|
|
17
28
|
export interface FlowPage {
|
|
18
29
|
readonly flows: readonly Flow[];
|
|
19
30
|
readonly nextCursor?: string;
|
|
@@ -72,6 +83,7 @@ export interface PollTriggerTestResult {
|
|
|
72
83
|
readonly version: 1;
|
|
73
84
|
}
|
|
74
85
|
export interface ConnectorConnection {
|
|
86
|
+
readonly alias?: string;
|
|
75
87
|
readonly connectionId: string;
|
|
76
88
|
readonly displayName: string;
|
|
77
89
|
readonly isDefault: boolean;
|
|
@@ -79,9 +91,13 @@ export interface ConnectorConnection {
|
|
|
79
91
|
readonly status: 'active' | 'disconnected' | 'error' | 'reauth_required';
|
|
80
92
|
}
|
|
81
93
|
export interface ConnectorAction {
|
|
94
|
+
readonly inputSchema?: JsonValue;
|
|
95
|
+
readonly outputSchema?: JsonValue;
|
|
82
96
|
readonly actionId: string;
|
|
97
|
+
readonly authenticated: boolean;
|
|
83
98
|
readonly defaultConnection?: ConnectorConnection;
|
|
84
99
|
readonly description: string;
|
|
100
|
+
readonly homepageUrl?: string;
|
|
85
101
|
readonly icon?: string;
|
|
86
102
|
readonly inputs: Readonly<Record<string, InputPortDefinition>>;
|
|
87
103
|
readonly name: string;
|
|
@@ -90,6 +106,7 @@ export interface ConnectorAction {
|
|
|
90
106
|
readonly serviceName: string;
|
|
91
107
|
}
|
|
92
108
|
export interface ConnectorProvider {
|
|
109
|
+
readonly homepageUrl?: string;
|
|
93
110
|
readonly icon?: string;
|
|
94
111
|
readonly serviceId: string;
|
|
95
112
|
readonly serviceName: string;
|
|
@@ -111,18 +128,11 @@ export interface DraftChange {
|
|
|
111
128
|
readonly revision: RevisionMetadata;
|
|
112
129
|
readonly version: 1;
|
|
113
130
|
}
|
|
114
|
-
export
|
|
115
|
-
readonly kind: 'changes';
|
|
116
|
-
readonly revisions: readonly {
|
|
117
|
-
readonly operations: readonly ChangeOperation[];
|
|
118
|
-
readonly revision: RevisionMetadata;
|
|
119
|
-
}[];
|
|
120
|
-
readonly version: 1;
|
|
121
|
-
} | {
|
|
131
|
+
export interface DraftSync {
|
|
122
132
|
readonly draft: Draft;
|
|
123
133
|
readonly kind: 'snapshot';
|
|
124
134
|
readonly version: 1;
|
|
125
|
-
}
|
|
135
|
+
}
|
|
126
136
|
export interface Publication {
|
|
127
137
|
readonly actorId: string;
|
|
128
138
|
readonly closureDigest: string;
|
|
@@ -137,6 +147,37 @@ export interface Publication {
|
|
|
137
147
|
readonly sourcePublicationId?: string;
|
|
138
148
|
readonly version: 1;
|
|
139
149
|
}
|
|
150
|
+
export type PublishOperation = {
|
|
151
|
+
readonly createdAt: string;
|
|
152
|
+
readonly flowId: string;
|
|
153
|
+
readonly operationId: string;
|
|
154
|
+
readonly revisionId: string;
|
|
155
|
+
readonly status: 'pending';
|
|
156
|
+
readonly updatedAt: string;
|
|
157
|
+
readonly version: 1;
|
|
158
|
+
} | {
|
|
159
|
+
readonly createdAt: string;
|
|
160
|
+
readonly flowId: string;
|
|
161
|
+
readonly operationId: string;
|
|
162
|
+
readonly publicationId: string;
|
|
163
|
+
readonly revisionId: string;
|
|
164
|
+
readonly status: 'succeeded';
|
|
165
|
+
readonly updatedAt: string;
|
|
166
|
+
readonly version: 1;
|
|
167
|
+
} | {
|
|
168
|
+
readonly createdAt: string;
|
|
169
|
+
readonly flowId: string;
|
|
170
|
+
readonly issue: {
|
|
171
|
+
readonly code: string;
|
|
172
|
+
readonly message: string;
|
|
173
|
+
readonly nodeId?: string;
|
|
174
|
+
};
|
|
175
|
+
readonly operationId: string;
|
|
176
|
+
readonly revisionId: string;
|
|
177
|
+
readonly status: 'failed';
|
|
178
|
+
readonly updatedAt: string;
|
|
179
|
+
readonly version: 1;
|
|
180
|
+
};
|
|
140
181
|
export interface Diagnostic {
|
|
141
182
|
readonly code: string;
|
|
142
183
|
readonly column: number;
|
|
@@ -188,6 +229,14 @@ interface RunDetailsBase extends Run {
|
|
|
188
229
|
readonly eventsExpiresAt?: string;
|
|
189
230
|
readonly modelVersion: number;
|
|
190
231
|
readonly revisionDigest: string;
|
|
232
|
+
readonly waiting?: {
|
|
233
|
+
readonly actions: readonly ['continue'] | readonly ['approve', 'reject'];
|
|
234
|
+
readonly expiresAt: string;
|
|
235
|
+
readonly nodeId: string;
|
|
236
|
+
readonly prompt: string;
|
|
237
|
+
readonly waitId: string;
|
|
238
|
+
readonly waitingSince: string;
|
|
239
|
+
};
|
|
191
240
|
}
|
|
192
241
|
export type DraftRun = RunDetailsBase & {
|
|
193
242
|
readonly source: 'draft';
|
|
@@ -209,7 +258,7 @@ export interface RunPage {
|
|
|
209
258
|
readonly runs: readonly Run[];
|
|
210
259
|
readonly version: 1;
|
|
211
260
|
}
|
|
212
|
-
export type RunEventKind = 'node.artifact' | 'node.completed' | 'node.failed' | 'node.log' | 'node.
|
|
261
|
+
export type RunEventKind = 'node.artifact' | 'node.completed' | 'node.failed' | 'node.log' | 'node.progress' | 'node.started' | 'run.canceled' | 'run.completed' | 'run.events-truncated' | 'run.failed' | 'run.indeterminate' | 'run.progress' | 'run.queued' | 'run.resolved' | 'run.started' | 'run.waiting';
|
|
213
262
|
export interface RunEvent {
|
|
214
263
|
readonly createdAt: string;
|
|
215
264
|
readonly kind: RunEventKind;
|
|
@@ -254,6 +303,10 @@ export type RunResult = {
|
|
|
254
303
|
readonly version: 1;
|
|
255
304
|
};
|
|
256
305
|
interface RunOptions {
|
|
306
|
+
readonly trigger: {
|
|
307
|
+
readonly nodeId: string;
|
|
308
|
+
readonly payload: JsonValue;
|
|
309
|
+
};
|
|
257
310
|
readonly idempotencyKey?: string;
|
|
258
311
|
readonly inputs?: Readonly<Record<string, Readonly<Record<string, JsonValue>>>>;
|
|
259
312
|
}
|
|
@@ -287,7 +340,7 @@ export declare class ControlClient {
|
|
|
287
340
|
listTriggerKeys(signal?: AbortSignal): Promise<readonly TriggerKeySummary[]>;
|
|
288
341
|
listTriggerDefinitions(signal?: AbortSignal): Promise<readonly TriggerKeySnapshot[]>;
|
|
289
342
|
getTriggerKey(key: string, signal?: AbortSignal): Promise<TriggerKeySnapshot>;
|
|
290
|
-
listFlowTriggerBindings(flowId: string): Promise<readonly TriggerBinding[]>;
|
|
343
|
+
listFlowTriggerBindings(flowId: string, signal?: AbortSignal): Promise<readonly TriggerBinding[]>;
|
|
291
344
|
getFlowTriggerBinding(flowId: string, triggerNodeId: string): Promise<TriggerBindingDetail>;
|
|
292
345
|
listFlowTriggerActivities(flowId: string, triggerNodeId: string, options?: {
|
|
293
346
|
readonly cursor?: string;
|
|
@@ -296,8 +349,16 @@ export declare class ControlClient {
|
|
|
296
349
|
pauseFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
|
|
297
350
|
resumeFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
|
|
298
351
|
testFlowPollTrigger(flowId: string, triggerNodeId: string): Promise<PollTriggerTestResult>;
|
|
352
|
+
getEditor(flowId: string): Promise<{
|
|
353
|
+
readonly flow: Flow;
|
|
354
|
+
readonly draft: Draft;
|
|
355
|
+
readonly live: Live;
|
|
356
|
+
readonly presentation: Presentation;
|
|
357
|
+
readonly version: 1;
|
|
358
|
+
}>;
|
|
359
|
+
getPresentation(flowId: string): Promise<Presentation>;
|
|
299
360
|
getDraft(flowId: string): Promise<Draft>;
|
|
300
|
-
syncDraft(flowId: string
|
|
361
|
+
syncDraft(flowId: string): Promise<DraftSync>;
|
|
301
362
|
getRevision(flowId: string, revisionId: string): Promise<Draft>;
|
|
302
363
|
listConnectorProviders(signal?: AbortSignal, flowId?: string): Promise<readonly ConnectorProvider[]>;
|
|
303
364
|
listConnectorActions(serviceId?: string, signal?: AbortSignal, flowId?: string): Promise<readonly ConnectorAction[]>;
|
|
@@ -305,19 +366,21 @@ export declare class ControlClient {
|
|
|
305
366
|
getConnectorAction(actionId: string, signal?: AbortSignal, flowId?: string): Promise<ConnectorAction>;
|
|
306
367
|
listConnectorConnections(serviceId: string, signal?: AbortSignal, flowId?: string): Promise<readonly ConnectorConnection[]>;
|
|
307
368
|
createConnectorConnectionPage(serviceId: string, flowId?: string): Promise<string>;
|
|
308
|
-
changeDraft(flowId: string, expectedRevisionId: string, operations: readonly ChangeOperation[]): Promise<DraftChange>;
|
|
369
|
+
changeDraft(flowId: string, expectedRevisionId: string, operations: readonly ChangeOperation[], changeId?: string): Promise<DraftChange>;
|
|
309
370
|
checkFlow(flowId: string, revisionId: string): Promise<FlowCheck>;
|
|
310
|
-
getLive(flowId: string): Promise<Live>;
|
|
371
|
+
getLive(flowId: string, signal?: AbortSignal): Promise<Live>;
|
|
311
372
|
listPublications(flowId: string, options?: {
|
|
312
373
|
readonly cursor?: string;
|
|
313
374
|
readonly includeTotal?: boolean;
|
|
314
375
|
readonly limit?: number;
|
|
315
|
-
}): Promise<PublicationPage>;
|
|
316
|
-
createDraftRun(flowId: string, revisionId: string, options
|
|
317
|
-
createLiveRun(publicationId: string, options
|
|
318
|
-
|
|
376
|
+
}, signal?: AbortSignal): Promise<PublicationPage>;
|
|
377
|
+
createDraftRun(flowId: string, revisionId: string, options: RunOptions): Promise<DraftRun>;
|
|
378
|
+
createLiveRun(publicationId: string, options: RunOptions): Promise<LiveRun>;
|
|
379
|
+
setFlowEnabled(flowId: string, publicationId: string, enabled: boolean): Promise<Flow>;
|
|
380
|
+
publishFlow(flowId: string, revisionId: string, expectedLivePublicationId: string | null, options?: PublicationOptions): Promise<PublishOperation>;
|
|
381
|
+
getPublishOperation(flowId: string, operationId: string, signal?: AbortSignal): Promise<PublishOperation>;
|
|
319
382
|
rollbackFlow(flowId: string, publicationId: string, expectedLivePublicationId: string, options?: PublicationOptions): Promise<Publication>;
|
|
320
|
-
getRun(runId: string): Promise<RunDetails>;
|
|
383
|
+
getRun(runId: string, signal?: AbortSignal): Promise<RunDetails>;
|
|
321
384
|
listRuns(flowId: string, options?: {
|
|
322
385
|
readonly cursor?: string;
|
|
323
386
|
readonly limit?: number;
|
|
@@ -326,9 +389,18 @@ export declare class ControlClient {
|
|
|
326
389
|
getRunEvents(runId: string, options?: {
|
|
327
390
|
readonly after?: number;
|
|
328
391
|
readonly limit?: number;
|
|
329
|
-
}): Promise<RunEvents>;
|
|
330
|
-
getRunResult(runId: string): Promise<RunResult>;
|
|
392
|
+
}, signal?: AbortSignal): Promise<RunEvents>;
|
|
393
|
+
getRunResult(runId: string, signal?: AbortSignal): Promise<RunResult>;
|
|
331
394
|
cancelRun(runId: string): Promise<RunCancellation>;
|
|
395
|
+
resolveRunWait(runId: string, waitId: string, action: WaitAction): Promise<{
|
|
396
|
+
readonly action: WaitAction | null;
|
|
397
|
+
readonly resolutionAccepted: boolean;
|
|
398
|
+
readonly resolvedAt: string | null;
|
|
399
|
+
readonly runId: string;
|
|
400
|
+
readonly status: RunStatus;
|
|
401
|
+
readonly version: 1;
|
|
402
|
+
readonly waitId: string;
|
|
403
|
+
}>;
|
|
332
404
|
private connectorActions;
|
|
333
405
|
protected request<Value = unknown>(path: string, init?: RequestInit): Promise<Value>;
|
|
334
406
|
}
|