@oomol-lab/open-flow 0.1.0-alpha.4 → 0.1.0-alpha.6
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/{addNodeOptions-CGyTkP99.js → addNodeOptions-C4wix0_u.js} +1008 -1428
- package/dist/browser/carbon-DMCVsjHo.js +53 -0
- package/dist/browser/{createLucideIcon-MmUpJrIU.js → createLucideIcon-ggJB9CTC.js} +86 -117
- package/dist/browser/{createResourceDialog-CIVfStiE.js → createResourceDialog-CESUCxOM.js} +12 -12
- package/dist/browser/{dist-BbyiRq3c.js → dist-B0Q2Mn0n.js} +117 -107
- package/dist/browser/{dist-B9OV3YTx.js → dist-Bc9TvHYl.js} +7 -7
- package/dist/browser/{dist-0lWKriL5.js → dist-C46JByB-.js} +1 -1
- package/dist/browser/{dist-CvcmLAMW.js → dist-CUkceEvN.js} +4 -4
- package/dist/browser/{dist-zyY--HOV.js → dist-CVtP-E2c.js} +2 -2
- package/dist/browser/{dist-CLZJNoWB.js → dist-D5mdziGP.js} +4 -4
- package/dist/browser/{dist-7oZK9QXZ.js → dist-DMi8_lU3.js} +5 -5
- package/dist/browser/{dist-DL0SDskM.js → dist-DQVavPcf.js} +9 -8
- package/dist/browser/{dist-aWSZx4q1.js → dist-DWzdGVm9.js} +2 -2
- package/dist/browser/{dist-Djd02JSy.js → dist-DXgEYMFx.js} +4 -4
- package/dist/browser/{dist-o4dBuwiG.js → dist-DhsGR_K3.js} +4 -4
- package/dist/browser/{dist-BLk5M0uK.js → dist-Mecbzdl2.js} +3 -3
- package/dist/browser/{dist-CIq6ue3I.js → dist-n9WmBm5w.js} +1115 -1103
- package/dist/browser/{esm-DXw7EADW.js → esm-CoE5_2w7.js} +5 -5
- package/dist/browser/{field-runIpvMd.js → field-CIrv7Rez.js} +6 -6
- package/dist/browser/{project-authoring-edge.d.ts → flow-authoring-edge.d.ts} +1 -1
- package/dist/browser/{project-authoring-module.d.ts → flow-authoring-module.d.ts} +1 -1
- package/dist/browser/{project-authoring-node.d.ts → flow-authoring-node.d.ts} +6 -12
- package/dist/browser/flow-authoring.d.ts +3 -0
- package/dist/browser/{project-authoring.js → flow-authoring.js} +44 -69
- package/dist/browser/{project-change.d.ts → flow-change.d.ts} +11 -26
- package/dist/browser/{project-change.js → flow-change.js} +8 -39
- package/dist/browser/{project-notifications.d.ts → flow-notifications.d.ts} +6 -3
- package/dist/browser/{flowRunInputEditorStore-B49C0ZmK.js → flowRunInputEditorStore-DXOyyY7o.js} +850 -675
- package/dist/browser/{flowWorkspace-CGsEHe2F.js → flowWorkspace-Bo0bz1Uz.js} +7040 -6875
- package/dist/browser/{lib-S4ccuMeT.js → lib-GrGxYjsJ.js} +3 -5
- package/dist/browser/licenses.md +11 -11
- package/dist/browser/{markdownContent-BvYiwIwR.js → markdownContent-ColGUxHy.js} +4046 -4018
- package/dist/browser/workbench-contract.d.ts +4 -4
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +1 -1
- package/dist/browser/workbench.js +898 -1053
- package/dist/common/connector-action.js +1 -1
- package/dist/common/control-api-conformance.js +137 -361
- package/dist/common/control-api-errors.d.ts +16 -24
- package/dist/common/control-api.d.ts +38 -67
- package/dist/common/control-api.js +135 -188
- package/dist/common/cron-trigger.d.ts +1 -1
- package/dist/common/cron-trigger.js +1 -1
- package/dist/common/{project-encoding.d.ts → flow-encoding.d.ts} +3 -3
- package/dist/common/{project-encoding.js → flow-encoding.js} +3 -6
- package/dist/common/{project-notifications.d.ts → flow-notifications.d.ts} +6 -3
- package/dist/common/{project-semantics.d.ts → flow-semantics.d.ts} +9 -12
- package/dist/common/{project-semantics.js → flow-semantics.js} +103 -115
- package/dist/common/integration-trigger.d.ts +1 -1
- package/dist/common/integration-trigger.js +1 -1
- package/dist/common/poll-trigger.d.ts +1 -1
- package/dist/common/run-lifecycle.js +1 -1
- package/dist/common/runtime-contract.d.ts +1 -1
- package/dist/common/runtime-contract.js +1 -1
- package/dist/common/scheduler.d.ts +3 -2
- package/dist/common/scheduler.js +4 -4
- package/dist/common/webhook-trigger.d.ts +1 -1
- package/dist/common/webhook-trigger.js +2 -2
- package/package.json +13 -13
- package/dist/browser/carbon-nMY84Amv.js +0 -53
- package/dist/browser/project-authoring-flow.d.ts +0 -4
- package/dist/browser/project-authoring.d.ts +0 -4
|
@@ -8,15 +8,13 @@ export declare const controlErrorCode: {
|
|
|
8
8
|
readonly engineUnsupported: 'engine.unsupported';
|
|
9
9
|
readonly flowInvalid: 'flow.invalid';
|
|
10
10
|
readonly flowNotFound: 'flow.not-found';
|
|
11
|
+
readonly flowBusy: 'flow.busy';
|
|
12
|
+
readonly flowConflict: 'flow.conflict';
|
|
13
|
+
readonly flowPresentationConflict: 'flow.presentation-conflict';
|
|
14
|
+
readonly flowRevisionConflict: 'flow.revision-conflict';
|
|
11
15
|
readonly liveConflict: 'live.conflict';
|
|
12
16
|
readonly liveNotFound: 'live.not-found';
|
|
13
17
|
readonly pageInvalidCursor: 'page.invalid-cursor';
|
|
14
|
-
readonly projectBusy: 'project.busy';
|
|
15
|
-
readonly projectConflict: 'project.conflict';
|
|
16
|
-
readonly projectInvalid: 'project.invalid';
|
|
17
|
-
readonly projectNotFound: 'project.not-found';
|
|
18
|
-
readonly projectPresentationConflict: 'project.presentation-conflict';
|
|
19
|
-
readonly projectRevisionConflict: 'project.revision-conflict';
|
|
20
18
|
readonly publicationConflict: 'publication.conflict';
|
|
21
19
|
readonly publicationNotFound: 'publication.not-found';
|
|
22
20
|
readonly routeNotFound: 'route.not-found';
|
|
@@ -59,33 +57,27 @@ export declare const controlErrorMetadata: {
|
|
|
59
57
|
readonly "flow.not-found": {
|
|
60
58
|
readonly status: 404;
|
|
61
59
|
};
|
|
62
|
-
readonly "
|
|
63
|
-
readonly status: 412;
|
|
64
|
-
};
|
|
65
|
-
readonly "live.not-found": {
|
|
66
|
-
readonly status: 404;
|
|
67
|
-
};
|
|
68
|
-
readonly "page.invalid-cursor": {
|
|
69
|
-
readonly status: 400;
|
|
70
|
-
};
|
|
71
|
-
readonly "project.busy": {
|
|
60
|
+
readonly "flow.busy": {
|
|
72
61
|
readonly status: 409;
|
|
73
62
|
};
|
|
74
|
-
readonly "
|
|
63
|
+
readonly "flow.conflict": {
|
|
75
64
|
readonly status: 409;
|
|
76
65
|
};
|
|
77
|
-
readonly "
|
|
78
|
-
readonly status:
|
|
79
|
-
};
|
|
80
|
-
readonly "project.not-found": {
|
|
81
|
-
readonly status: 404;
|
|
66
|
+
readonly "flow.presentation-conflict": {
|
|
67
|
+
readonly status: 412;
|
|
82
68
|
};
|
|
83
|
-
readonly "
|
|
69
|
+
readonly "flow.revision-conflict": {
|
|
84
70
|
readonly status: 412;
|
|
85
71
|
};
|
|
86
|
-
readonly "
|
|
72
|
+
readonly "live.conflict": {
|
|
87
73
|
readonly status: 412;
|
|
88
74
|
};
|
|
75
|
+
readonly "live.not-found": {
|
|
76
|
+
readonly status: 404;
|
|
77
|
+
};
|
|
78
|
+
readonly "page.invalid-cursor": {
|
|
79
|
+
readonly status: 400;
|
|
80
|
+
};
|
|
89
81
|
readonly "publication.conflict": {
|
|
90
82
|
readonly status: 409;
|
|
91
83
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { RunStatus } from './run-lifecycle.js';
|
|
2
|
-
import type { ChangeOperation, InputPortDefinition, JsonValue, PortDefinition, RevisionContent, TriggerKeySnapshot } from '../browser/
|
|
3
|
-
export type { JsonValue, TriggerKeySnapshot } from '../browser/
|
|
2
|
+
import type { ChangeOperation, InputPortDefinition, JsonValue, PortDefinition, RevisionContent, TriggerKeySnapshot } from '../browser/flow-change.js';
|
|
3
|
+
export type { JsonValue, TriggerKeySnapshot } 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
|
-
export type {
|
|
6
|
+
export type { FlowCatalogEvent, FlowChangeEvent } from './flow-notifications.js';
|
|
7
7
|
export type ControlRequest = (path: string, init?: RequestInit) => Promise<Response>;
|
|
8
|
-
export interface
|
|
8
|
+
export interface Flow {
|
|
9
9
|
readonly createdAt: string;
|
|
10
10
|
readonly draftRevisionId: string;
|
|
11
|
+
readonly flowId: string;
|
|
11
12
|
readonly name: string;
|
|
12
|
-
readonly projectId: string;
|
|
13
13
|
readonly status: 'active' | 'retiring';
|
|
14
14
|
readonly updatedAt: string;
|
|
15
15
|
readonly version: 1;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface FlowPage {
|
|
18
|
+
readonly flows: readonly Flow[];
|
|
18
19
|
readonly nextCursor?: string;
|
|
19
|
-
readonly projects: readonly Project[];
|
|
20
20
|
readonly total?: number;
|
|
21
21
|
readonly version: 1;
|
|
22
22
|
}
|
|
@@ -37,7 +37,6 @@ export interface TriggerBinding {
|
|
|
37
37
|
readonly kind: 'cron' | 'integration' | 'poll' | 'webhook';
|
|
38
38
|
readonly lastErrorCode?: string;
|
|
39
39
|
readonly operatorState: 'active' | 'paused';
|
|
40
|
-
readonly projectId: string;
|
|
41
40
|
readonly runtimeVersion: number;
|
|
42
41
|
readonly triggerNodeId: string;
|
|
43
42
|
readonly updatedAt: string;
|
|
@@ -95,25 +94,18 @@ export interface RevisionMetadata {
|
|
|
95
94
|
readonly digest: string;
|
|
96
95
|
readonly modelVersion: number;
|
|
97
96
|
readonly parentRevisionId: string | null;
|
|
98
|
-
readonly
|
|
97
|
+
readonly flowId: string;
|
|
99
98
|
readonly revisionId: string;
|
|
100
99
|
readonly version: 1;
|
|
101
100
|
}
|
|
102
101
|
export interface Draft extends RevisionMetadata {
|
|
103
102
|
readonly content: RevisionContent;
|
|
104
103
|
}
|
|
105
|
-
export interface DraftFlow {
|
|
106
|
-
readonly closureDigest: string;
|
|
107
|
-
readonly flowId: string;
|
|
108
|
-
readonly name: string;
|
|
109
|
-
}
|
|
110
104
|
export interface DraftChange {
|
|
111
|
-
readonly draftFlows: readonly DraftFlow[];
|
|
112
105
|
readonly revision: RevisionMetadata;
|
|
113
106
|
readonly version: 1;
|
|
114
107
|
}
|
|
115
108
|
export type DraftSync = {
|
|
116
|
-
readonly draftFlows: readonly DraftFlow[];
|
|
117
109
|
readonly kind: 'changes';
|
|
118
110
|
readonly revisions: readonly {
|
|
119
111
|
readonly operations: readonly ChangeOperation[];
|
|
@@ -122,7 +114,6 @@ export type DraftSync = {
|
|
|
122
114
|
readonly version: 1;
|
|
123
115
|
} | {
|
|
124
116
|
readonly draft: Draft;
|
|
125
|
-
readonly draftFlows: readonly DraftFlow[];
|
|
126
117
|
readonly kind: 'snapshot';
|
|
127
118
|
readonly version: 1;
|
|
128
119
|
};
|
|
@@ -134,28 +125,12 @@ export interface Publication {
|
|
|
134
125
|
readonly flowId: string;
|
|
135
126
|
readonly modelVersion: number;
|
|
136
127
|
readonly operation: 'publish' | 'rollback';
|
|
137
|
-
readonly projectId: string;
|
|
138
128
|
readonly publicationId: string;
|
|
139
129
|
readonly revisionDigest: string;
|
|
140
130
|
readonly revisionId: string;
|
|
141
131
|
readonly sourcePublicationId?: string;
|
|
142
132
|
readonly version: 1;
|
|
143
133
|
}
|
|
144
|
-
export interface Flow {
|
|
145
|
-
readonly draft: {
|
|
146
|
-
readonly closureDigest: string;
|
|
147
|
-
readonly name: string;
|
|
148
|
-
readonly revisionDigest: string;
|
|
149
|
-
readonly revisionId: string;
|
|
150
|
-
} | null;
|
|
151
|
-
readonly flowId: string;
|
|
152
|
-
readonly hasUnpublishedChanges: boolean;
|
|
153
|
-
readonly live: {
|
|
154
|
-
readonly publication: Publication;
|
|
155
|
-
readonly revision: number;
|
|
156
|
-
readonly status: 'runnable' | 'suspended';
|
|
157
|
-
} | null;
|
|
158
|
-
}
|
|
159
134
|
export interface Diagnostic {
|
|
160
135
|
readonly code: string;
|
|
161
136
|
readonly column: number;
|
|
@@ -169,7 +144,6 @@ export interface FlowCheck {
|
|
|
169
144
|
readonly engineContract: string;
|
|
170
145
|
readonly flowId: string;
|
|
171
146
|
readonly modelVersion: number;
|
|
172
|
-
readonly projectId: string;
|
|
173
147
|
readonly revisionDigest: string;
|
|
174
148
|
readonly revisionId: string;
|
|
175
149
|
readonly valid: boolean;
|
|
@@ -178,7 +152,6 @@ export interface FlowCheck {
|
|
|
178
152
|
export interface Live {
|
|
179
153
|
readonly flowId: string;
|
|
180
154
|
readonly hasUnpublishedChanges: boolean;
|
|
181
|
-
readonly projectId: string;
|
|
182
155
|
readonly publication: Publication | null;
|
|
183
156
|
readonly revision: number;
|
|
184
157
|
readonly status: 'not-published' | 'runnable' | 'suspended';
|
|
@@ -194,7 +167,6 @@ export interface Run {
|
|
|
194
167
|
readonly createdAt: string;
|
|
195
168
|
readonly finishedAt?: string;
|
|
196
169
|
readonly flowId: string;
|
|
197
|
-
readonly projectId: string;
|
|
198
170
|
readonly revisionId: string;
|
|
199
171
|
readonly runId: string;
|
|
200
172
|
readonly source: 'draft' | 'live' | 'trigger';
|
|
@@ -225,8 +197,8 @@ export type TriggerRun = RunDetailsBase & {
|
|
|
225
197
|
};
|
|
226
198
|
export type RunDetails = DraftRun | LiveRun | TriggerRun;
|
|
227
199
|
export interface RunPage {
|
|
200
|
+
readonly flowId: string;
|
|
228
201
|
readonly nextCursor?: string;
|
|
229
|
-
readonly projectId: string;
|
|
230
202
|
readonly runs: readonly Run[];
|
|
231
203
|
readonly version: 1;
|
|
232
204
|
}
|
|
@@ -289,52 +261,51 @@ export declare class ApiError extends Error {
|
|
|
289
261
|
export declare class ControlClient {
|
|
290
262
|
private readonly requestControl;
|
|
291
263
|
constructor(requestControl: ControlRequest);
|
|
292
|
-
|
|
264
|
+
listFlows(options?: {
|
|
293
265
|
readonly cursor?: string;
|
|
294
266
|
readonly includeTotal?: boolean;
|
|
295
267
|
readonly limit?: number;
|
|
296
|
-
}): Promise<
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
268
|
+
}): Promise<FlowPage>;
|
|
269
|
+
createFlow(name: string, idempotencyKey?: string): Promise<Flow>;
|
|
270
|
+
getFlow(flowId: string): Promise<Flow>;
|
|
271
|
+
renameFlow(flowId: string, name: string): Promise<Flow>;
|
|
272
|
+
deleteFlow(flowId: string): Promise<Flow>;
|
|
300
273
|
listTriggerKeys(signal?: AbortSignal): Promise<readonly TriggerKeySummary[]>;
|
|
301
274
|
listTriggerDefinitions(signal?: AbortSignal): Promise<readonly TriggerKeySnapshot[]>;
|
|
302
275
|
getTriggerKey(key: string, signal?: AbortSignal): Promise<TriggerKeySnapshot>;
|
|
303
|
-
listFlowTriggerBindings(
|
|
304
|
-
getFlowTriggerBinding(
|
|
305
|
-
listFlowTriggerActivities(
|
|
276
|
+
listFlowTriggerBindings(flowId: string): Promise<readonly TriggerBinding[]>;
|
|
277
|
+
getFlowTriggerBinding(flowId: string, triggerNodeId: string): Promise<TriggerBindingDetail>;
|
|
278
|
+
listFlowTriggerActivities(flowId: string, triggerNodeId: string, options?: {
|
|
306
279
|
readonly cursor?: string;
|
|
307
280
|
readonly limit?: number;
|
|
308
281
|
}): Promise<TriggerActivityPage>;
|
|
309
|
-
pauseFlowTrigger(
|
|
310
|
-
resumeFlowTrigger(
|
|
311
|
-
testFlowPollTrigger(
|
|
312
|
-
getDraft(
|
|
313
|
-
syncDraft(
|
|
314
|
-
getRevision(
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
listPublications(projectId: string, flowId: string, options?: {
|
|
282
|
+
pauseFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
|
|
283
|
+
resumeFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
|
|
284
|
+
testFlowPollTrigger(flowId: string, triggerNodeId: string): Promise<PollTriggerTestResult>;
|
|
285
|
+
getDraft(flowId: string): Promise<Draft>;
|
|
286
|
+
syncDraft(flowId: string, fromRevisionId?: string): Promise<DraftSync>;
|
|
287
|
+
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>;
|
|
295
|
+
checkFlow(flowId: string, revisionId: string): Promise<FlowCheck>;
|
|
296
|
+
getLive(flowId: string): Promise<Live>;
|
|
297
|
+
listPublications(flowId: string, options?: {
|
|
326
298
|
readonly cursor?: string;
|
|
327
299
|
readonly includeTotal?: boolean;
|
|
328
300
|
readonly limit?: number;
|
|
329
301
|
}): Promise<PublicationPage>;
|
|
330
|
-
createDraftRun(
|
|
302
|
+
createDraftRun(flowId: string, revisionId: string, options?: RunOptions): Promise<DraftRun>;
|
|
331
303
|
createLiveRun(publicationId: string, options?: RunOptions): Promise<LiveRun>;
|
|
332
|
-
publishFlow(
|
|
333
|
-
rollbackFlow(
|
|
304
|
+
publishFlow(flowId: string, revisionId: string, expectedLivePublicationId: string | null, options?: PublicationOptions): Promise<Publication>;
|
|
305
|
+
rollbackFlow(flowId: string, publicationId: string, expectedLivePublicationId: string, options?: PublicationOptions): Promise<Publication>;
|
|
334
306
|
getRun(runId: string): Promise<RunDetails>;
|
|
335
|
-
listRuns(
|
|
307
|
+
listRuns(flowId: string, options?: {
|
|
336
308
|
readonly cursor?: string;
|
|
337
|
-
readonly flowId?: string;
|
|
338
309
|
readonly limit?: number;
|
|
339
310
|
readonly status?: RunStatus;
|
|
340
311
|
}): Promise<RunPage>;
|