@oomol-lab/open-flow 0.1.0-alpha.9 → 0.1.0-beta.10
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/README.md +5 -1
- package/dist/browser/DesignerIcon-DjgOMYI5.js +2065 -0
- package/dist/browser/createResourceDialog-DNBueSYZ.js +505 -0
- package/dist/browser/{dist-n9WmBm5w.js → dist-BKuSVKCC.js} +1 -1
- package/dist/browser/dist-BMRLCebL.js +1893 -0
- package/dist/browser/{dist-DWzdGVm9.js → dist-By46o5UV.js} +74 -74
- package/dist/browser/dist-CP0883sY.js +4 -0
- package/dist/browser/{dist-B0Q2Mn0n.js → dist-Cc0y2Pli.js} +809 -810
- package/dist/browser/dist-CeSZ2xSM.js +444 -0
- package/dist/browser/{dist-Bc9TvHYl.js → dist-Dg_VXC8f.js} +134 -135
- package/dist/browser/{dist-DhsGR_K3.js → dist-DmuE3M0R.js} +47 -48
- package/dist/browser/{dist-D5mdziGP.js → dist-DpDLsYtO.js} +18 -19
- package/dist/browser/dist-DxahK_I8.js +2688 -0
- package/dist/browser/{dist-DXgEYMFx.js → dist-meg_oHVR.js} +230 -230
- package/dist/browser/{esm-YIGXG-Js.js → esm-yhVU_KbQ.js} +14 -15
- package/dist/browser/flow-authoring-module.d.ts +2 -2
- package/dist/browser/flow-authoring-node.d.ts +9 -4
- package/dist/browser/flow-authoring.d.ts +2 -1
- package/dist/browser/flow-authoring.js +752 -162
- package/dist/browser/flow-change.d.ts +122 -13
- package/dist/browser/flow-change.js +326 -96
- package/dist/browser/flow-notifications.d.ts +5 -0
- package/dist/browser/flowChanges-B2ttnaj9.js +12265 -0
- package/dist/browser/{flowRunInputEditorStore-DXOyyY7o.js → flowRunInputEditorStore-DDidwd8h.js} +1528 -783
- package/dist/browser/{flowWorkspace-D7-rBA1-.js → flowWorkspace-Dr8-Hut9.js} +42428 -42499
- package/dist/browser/getPseudoElementBounds-5LArT6Xc.js +7147 -0
- package/dist/browser/icons-KIOgjHpD.js +730 -0
- package/dist/browser/languages-DgJehE1g.js +62 -0
- package/dist/browser/lib-C5Ipyfps.js +7856 -0
- package/dist/browser/licenses.md +119 -1
- package/dist/browser/main-DmjVyuWr.js +76 -0
- package/dist/browser/{markdownContent-ColGUxHy.js → markdownContent-DUfLdnUt.js} +4811 -4795
- package/dist/browser/theme.css +63 -0
- package/dist/browser/theme.css.d.ts +1 -0
- package/dist/browser/typeScriptSession-_TgJ_7Oq.js +2578 -0
- package/dist/browser/waitNotificationInputs-BPulOxYt.js +26 -0
- package/dist/browser/workbench-contract.d.ts +2 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +47 -1
- package/dist/browser/workbench.js +1524 -1768
- package/dist/browser/workbenchSelect-CbXrdwxW.js +1375 -0
- package/dist/common/connector-action.d.ts +6 -0
- package/dist/common/connector-action.js +37 -29
- package/dist/common/control-api-conformance.d.ts +1 -0
- package/dist/common/control-api-conformance.js +171 -51
- package/dist/common/control-api-errors.d.ts +28 -0
- package/dist/common/control-api.d.ts +80 -21
- package/dist/common/control-api.js +311 -131
- package/dist/common/flow-encoding.d.ts +2 -2
- package/dist/common/flow-encoding.js +28 -9
- package/dist/common/flow-notifications.d.ts +5 -0
- package/dist/common/flow-semantics.d.ts +4 -0
- package/dist/common/flow-semantics.js +3544 -1098
- package/dist/common/integration-trigger.d.ts +1 -0
- package/dist/common/licenses.md +1 -25
- package/dist/common/localization.d.ts +21 -0
- package/dist/common/localization.js +62 -0
- package/dist/common/provider-triggers.js +4 -1
- package/dist/common/run-events.js +2 -1
- package/dist/common/run-lifecycle.d.ts +17 -2
- package/dist/common/run-lifecycle.js +53 -2
- package/dist/common/runtime-contract.d.ts +1 -1
- package/dist/common/runtime-contract.js +27 -0
- package/dist/common/scheduler.d.ts +68 -7
- package/dist/common/scheduler.js +528 -240
- package/dist/index.d.ts +2 -1
- package/package.json +10 -1
- package/dist/browser/addNodeOptions-DRndy4EK.js +0 -6910
- package/dist/browser/createLucideIcon-CqjqCezK.js +0 -5537
- package/dist/browser/createResourceDialog-A64dDFCG.js +0 -467
- package/dist/browser/dist-CUkceEvN.js +0 -1620
- package/dist/browser/dist-CVtP-E2c.js +0 -1543
- package/dist/browser/dist-DQVavPcf.js +0 -2328
- package/dist/browser/field-CKGQHCIi.js +0 -312
|
@@ -1,6 +1,6 @@
|
|
|
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';
|
|
@@ -20,6 +20,12 @@ export interface FlowPage {
|
|
|
20
20
|
readonly total?: number;
|
|
21
21
|
readonly version: 1;
|
|
22
22
|
}
|
|
23
|
+
export interface Variable {
|
|
24
|
+
readonly name: string;
|
|
25
|
+
readonly updatedAt: string;
|
|
26
|
+
readonly value: string;
|
|
27
|
+
readonly version: 1;
|
|
28
|
+
}
|
|
23
29
|
export interface TriggerKeySummary {
|
|
24
30
|
readonly description: string;
|
|
25
31
|
readonly displayName: string;
|
|
@@ -74,8 +80,10 @@ export interface ConnectorConnection {
|
|
|
74
80
|
}
|
|
75
81
|
export interface ConnectorAction {
|
|
76
82
|
readonly actionId: string;
|
|
83
|
+
readonly authenticated: boolean;
|
|
77
84
|
readonly defaultConnection?: ConnectorConnection;
|
|
78
85
|
readonly description: string;
|
|
86
|
+
readonly homepageUrl?: string;
|
|
79
87
|
readonly icon?: string;
|
|
80
88
|
readonly inputs: Readonly<Record<string, InputPortDefinition>>;
|
|
81
89
|
readonly name: string;
|
|
@@ -84,6 +92,7 @@ export interface ConnectorAction {
|
|
|
84
92
|
readonly serviceName: string;
|
|
85
93
|
}
|
|
86
94
|
export interface ConnectorProvider {
|
|
95
|
+
readonly homepageUrl?: string;
|
|
87
96
|
readonly icon?: string;
|
|
88
97
|
readonly serviceId: string;
|
|
89
98
|
readonly serviceName: string;
|
|
@@ -105,18 +114,11 @@ export interface DraftChange {
|
|
|
105
114
|
readonly revision: RevisionMetadata;
|
|
106
115
|
readonly version: 1;
|
|
107
116
|
}
|
|
108
|
-
export
|
|
109
|
-
readonly kind: 'changes';
|
|
110
|
-
readonly revisions: readonly {
|
|
111
|
-
readonly operations: readonly ChangeOperation[];
|
|
112
|
-
readonly revision: RevisionMetadata;
|
|
113
|
-
}[];
|
|
114
|
-
readonly version: 1;
|
|
115
|
-
} | {
|
|
117
|
+
export interface DraftSync {
|
|
116
118
|
readonly draft: Draft;
|
|
117
119
|
readonly kind: 'snapshot';
|
|
118
120
|
readonly version: 1;
|
|
119
|
-
}
|
|
121
|
+
}
|
|
120
122
|
export interface Publication {
|
|
121
123
|
readonly actorId: string;
|
|
122
124
|
readonly closureDigest: string;
|
|
@@ -131,12 +133,44 @@ export interface Publication {
|
|
|
131
133
|
readonly sourcePublicationId?: string;
|
|
132
134
|
readonly version: 1;
|
|
133
135
|
}
|
|
136
|
+
export type PublishOperation = {
|
|
137
|
+
readonly createdAt: string;
|
|
138
|
+
readonly flowId: string;
|
|
139
|
+
readonly operationId: string;
|
|
140
|
+
readonly revisionId: string;
|
|
141
|
+
readonly status: 'pending';
|
|
142
|
+
readonly updatedAt: string;
|
|
143
|
+
readonly version: 1;
|
|
144
|
+
} | {
|
|
145
|
+
readonly createdAt: string;
|
|
146
|
+
readonly flowId: string;
|
|
147
|
+
readonly operationId: string;
|
|
148
|
+
readonly publicationId: string;
|
|
149
|
+
readonly revisionId: string;
|
|
150
|
+
readonly status: 'succeeded';
|
|
151
|
+
readonly updatedAt: string;
|
|
152
|
+
readonly version: 1;
|
|
153
|
+
} | {
|
|
154
|
+
readonly createdAt: string;
|
|
155
|
+
readonly flowId: string;
|
|
156
|
+
readonly issue: {
|
|
157
|
+
readonly code: string;
|
|
158
|
+
readonly message: string;
|
|
159
|
+
readonly nodeId?: string;
|
|
160
|
+
};
|
|
161
|
+
readonly operationId: string;
|
|
162
|
+
readonly revisionId: string;
|
|
163
|
+
readonly status: 'failed';
|
|
164
|
+
readonly updatedAt: string;
|
|
165
|
+
readonly version: 1;
|
|
166
|
+
};
|
|
134
167
|
export interface Diagnostic {
|
|
135
168
|
readonly code: string;
|
|
136
169
|
readonly column: number;
|
|
137
170
|
readonly line: number;
|
|
138
171
|
readonly message: string;
|
|
139
172
|
readonly path: string;
|
|
173
|
+
readonly values?: Readonly<Record<string, string | number>>;
|
|
140
174
|
}
|
|
141
175
|
export interface FlowCheck {
|
|
142
176
|
readonly closureDigest: string;
|
|
@@ -181,6 +215,14 @@ interface RunDetailsBase extends Run {
|
|
|
181
215
|
readonly eventsExpiresAt?: string;
|
|
182
216
|
readonly modelVersion: number;
|
|
183
217
|
readonly revisionDigest: string;
|
|
218
|
+
readonly waiting?: {
|
|
219
|
+
readonly actions: readonly ['continue'] | readonly ['approve', 'reject'];
|
|
220
|
+
readonly expiresAt: string;
|
|
221
|
+
readonly nodeId: string;
|
|
222
|
+
readonly prompt: string;
|
|
223
|
+
readonly waitId: string;
|
|
224
|
+
readonly waitingSince: string;
|
|
225
|
+
};
|
|
184
226
|
}
|
|
185
227
|
export type DraftRun = RunDetailsBase & {
|
|
186
228
|
readonly source: 'draft';
|
|
@@ -202,7 +244,7 @@ export interface RunPage {
|
|
|
202
244
|
readonly runs: readonly Run[];
|
|
203
245
|
readonly version: 1;
|
|
204
246
|
}
|
|
205
|
-
export type RunEventKind = 'node.artifact' | 'node.completed' | 'node.failed' | 'node.log' | 'node.output' | 'node.progress' | 'node.started' | 'run.canceled' | 'run.completed' | 'run.events-truncated' | 'run.failed' | 'run.indeterminate' | 'run.progress' | 'run.queued' | 'run.started';
|
|
247
|
+
export type RunEventKind = 'node.artifact' | 'node.completed' | 'node.failed' | 'node.log' | 'node.output' | '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';
|
|
206
248
|
export interface RunEvent {
|
|
207
249
|
readonly createdAt: string;
|
|
208
250
|
readonly kind: RunEventKind;
|
|
@@ -266,6 +308,13 @@ export declare class ControlClient {
|
|
|
266
308
|
readonly includeTotal?: boolean;
|
|
267
309
|
readonly limit?: number;
|
|
268
310
|
}): Promise<FlowPage>;
|
|
311
|
+
listVariables(): Promise<{
|
|
312
|
+
readonly variables: readonly Variable[];
|
|
313
|
+
readonly version: 1;
|
|
314
|
+
}>;
|
|
315
|
+
getVariable(name: string): Promise<Variable>;
|
|
316
|
+
putVariable(name: string, value: string): Promise<Variable>;
|
|
317
|
+
deleteVariable(name: string): Promise<void>;
|
|
269
318
|
createFlow(name: string, idempotencyKey?: string): Promise<Flow>;
|
|
270
319
|
getFlow(flowId: string): Promise<Flow>;
|
|
271
320
|
renameFlow(flowId: string, name: string): Promise<Flow>;
|
|
@@ -283,15 +332,15 @@ export declare class ControlClient {
|
|
|
283
332
|
resumeFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
|
|
284
333
|
testFlowPollTrigger(flowId: string, triggerNodeId: string): Promise<PollTriggerTestResult>;
|
|
285
334
|
getDraft(flowId: string): Promise<Draft>;
|
|
286
|
-
syncDraft(flowId: string
|
|
335
|
+
syncDraft(flowId: string): Promise<DraftSync>;
|
|
287
336
|
getRevision(flowId: string, revisionId: string): Promise<Draft>;
|
|
288
|
-
listConnectorProviders(signal?: AbortSignal): Promise<readonly ConnectorProvider[]>;
|
|
289
|
-
listConnectorActions(serviceId?: string, signal?: AbortSignal): Promise<readonly ConnectorAction[]>;
|
|
290
|
-
searchConnectorActions(query: string, signal?: AbortSignal): Promise<readonly ConnectorAction[]>;
|
|
291
|
-
getConnectorAction(actionId: string, signal?: AbortSignal): Promise<ConnectorAction>;
|
|
292
|
-
listConnectorConnections(serviceId: string, signal?: AbortSignal): Promise<readonly ConnectorConnection[]>;
|
|
293
|
-
createConnectorConnectionPage(serviceId: string): Promise<string>;
|
|
294
|
-
changeDraft(flowId: string, expectedRevisionId: string, operations: readonly ChangeOperation[]): Promise<DraftChange>;
|
|
337
|
+
listConnectorProviders(signal?: AbortSignal, flowId?: string): Promise<readonly ConnectorProvider[]>;
|
|
338
|
+
listConnectorActions(serviceId?: string, signal?: AbortSignal, flowId?: string): Promise<readonly ConnectorAction[]>;
|
|
339
|
+
searchConnectorActions(query: string, signal?: AbortSignal, flowId?: string): Promise<readonly ConnectorAction[]>;
|
|
340
|
+
getConnectorAction(actionId: string, signal?: AbortSignal, flowId?: string): Promise<ConnectorAction>;
|
|
341
|
+
listConnectorConnections(serviceId: string, signal?: AbortSignal, flowId?: string): Promise<readonly ConnectorConnection[]>;
|
|
342
|
+
createConnectorConnectionPage(serviceId: string, flowId?: string): Promise<string>;
|
|
343
|
+
changeDraft(flowId: string, expectedRevisionId: string, operations: readonly ChangeOperation[], changeId?: string): Promise<DraftChange>;
|
|
295
344
|
checkFlow(flowId: string, revisionId: string): Promise<FlowCheck>;
|
|
296
345
|
getLive(flowId: string): Promise<Live>;
|
|
297
346
|
listPublications(flowId: string, options?: {
|
|
@@ -301,7 +350,8 @@ export declare class ControlClient {
|
|
|
301
350
|
}): Promise<PublicationPage>;
|
|
302
351
|
createDraftRun(flowId: string, revisionId: string, options?: RunOptions): Promise<DraftRun>;
|
|
303
352
|
createLiveRun(publicationId: string, options?: RunOptions): Promise<LiveRun>;
|
|
304
|
-
publishFlow(flowId: string, revisionId: string, expectedLivePublicationId: string | null, options?: PublicationOptions): Promise<
|
|
353
|
+
publishFlow(flowId: string, revisionId: string, expectedLivePublicationId: string | null, options?: PublicationOptions): Promise<PublishOperation>;
|
|
354
|
+
getPublishOperation(flowId: string, operationId: string): Promise<PublishOperation>;
|
|
305
355
|
rollbackFlow(flowId: string, publicationId: string, expectedLivePublicationId: string, options?: PublicationOptions): Promise<Publication>;
|
|
306
356
|
getRun(runId: string): Promise<RunDetails>;
|
|
307
357
|
listRuns(flowId: string, options?: {
|
|
@@ -315,6 +365,15 @@ export declare class ControlClient {
|
|
|
315
365
|
}): Promise<RunEvents>;
|
|
316
366
|
getRunResult(runId: string): Promise<RunResult>;
|
|
317
367
|
cancelRun(runId: string): Promise<RunCancellation>;
|
|
368
|
+
resolveRunWait(runId: string, waitId: string, action: WaitAction): Promise<{
|
|
369
|
+
readonly action: WaitAction | null;
|
|
370
|
+
readonly resolutionAccepted: boolean;
|
|
371
|
+
readonly resolvedAt: string | null;
|
|
372
|
+
readonly runId: string;
|
|
373
|
+
readonly status: RunStatus;
|
|
374
|
+
readonly version: 1;
|
|
375
|
+
readonly waitId: string;
|
|
376
|
+
}>;
|
|
318
377
|
private connectorActions;
|
|
319
378
|
protected request<Value = unknown>(path: string, init?: RequestInit): Promise<Value>;
|
|
320
379
|
}
|