@oomol-lab/open-flow 0.1.0-beta.3 → 0.1.0-beta.31
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/{_virtual_open-flow-twemoji-DJwKsM_w.js → _virtual_open-flow-twemoji-CpHJOEsk.js} +4028 -2
- package/dist/browser/carbon-Cn-DTyjG.js +54 -0
- package/dist/browser/createResourceDialog-FBRnCMK6.js +110 -0
- package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
- package/dist/browser/dist-CoszrK7m.js +4 -0
- package/dist/browser/{dist-CPuF50D9.js → dist-D1VYgicl.js} +426 -305
- package/dist/browser/dist-DSe6KRsr.js +1224 -0
- package/dist/browser/dist-DYjIVIZC.js +795 -0
- 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-CJpzJrLM.js → dist-DwvhuMxw.js} +894 -895
- package/dist/browser/dist-DxahK_I8.js +2688 -0
- package/dist/browser/{dist-C46JByB-.js → dist-Dz6Nglsd.js} +61 -61
- package/dist/browser/{dist-DUzA0Ukh.js → dist-TJfrvoIQ.js} +141 -142
- package/dist/browser/editorComponent-CyH2o-Ji.js +14811 -0
- package/dist/browser/{esm-C2UUqIUP.js → esm-B7A42FzW.js} +68 -59
- package/dist/browser/event-sources.d.ts +30 -0
- package/dist/browser/flow-authoring-module.d.ts +2 -2
- package/dist/browser/flow-authoring-node.d.ts +26 -8
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +5278 -313
- package/dist/browser/flow-change-schema.d.ts +11 -0
- package/dist/browser/flow-change.d.ts +193 -18
- package/dist/browser/flow-change.js +5196 -137
- package/dist/browser/flow-notifications.d.ts +11 -2
- package/dist/browser/flowChanges-ScpWTKtQ.js +12293 -0
- package/dist/browser/{flowRunInputEditorStore-CwvOiIiU.js → flowRunInputEditorStore-CTORQcA2.js} +864 -4000
- package/dist/browser/flowWorkspace-CY1r6dwz.js +153101 -0
- package/dist/browser/host-conformance.d.ts +7 -0
- package/dist/browser/host-conformance.js +39 -0
- package/dist/browser/inputValues-C21gYJuc.js +43 -0
- package/dist/browser/licenses.md +195 -662
- package/dist/browser/lite-BuKZ8joP.js +8545 -0
- package/dist/browser/main-BDnNHhkU.js +50 -0
- package/dist/browser/{markdownContent-DUfLdnUt.js → markdownContent-D2oHGWc6.js} +53 -53
- package/dist/browser/theme.css +527 -34
- package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-DnAmJCzu.js} +70 -71
- package/dist/browser/ui-input.d.ts +5 -0
- package/dist/browser/ui-label.d.ts +3 -0
- package/dist/browser/ui-textarea.d.ts +3 -0
- package/dist/browser/ui.css +2 -0
- package/dist/browser/ui.css.d.ts +1 -0
- package/dist/browser/ui.d.ts +34 -0
- package/dist/browser/ui.js +2632 -0
- package/dist/browser/value-DPg_9yXB.js +93 -0
- package/dist/browser/warmCodeTheme-DVv4-rDO.js +35 -0
- package/dist/browser/workbench-contract.d.ts +27 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +2 -0
- package/dist/browser/workbench.js +2767 -1406
- package/dist/browser/workbenchSelect-DAaGuZwP.js +5971 -0
- package/dist/common/authoringExamples.d.ts +28 -0
- package/dist/common/control-api-conformance.d.ts +7 -0
- package/dist/common/control-api-conformance.js +5570 -171
- package/dist/common/control-api-errors.d.ts +37 -0
- package/dist/common/control-api.d.ts +408 -47
- package/dist/common/control-api.js +6071 -569
- package/dist/common/control-requests.d.ts +104 -0
- package/dist/common/control-requests.js +5401 -0
- package/dist/common/cron-trigger.d.ts +2 -1
- package/dist/common/cron-trigger.js +27 -24
- package/dist/common/draftOperations.d.ts +14 -0
- package/dist/common/engine-contract.d.ts +3 -1
- package/dist/common/event-sources.d.ts +50 -0
- package/dist/common/feishu-events.d.ts +20 -0
- package/dist/common/feishu-subscriptions.d.ts +10 -0
- package/dist/common/flow-agent.d.ts +10 -0
- package/dist/common/flow-encoding.d.ts +16 -2
- package/dist/common/flow-encoding.js +5097 -68
- package/dist/common/flow-graph.d.ts +52 -0
- package/dist/common/flow-json.d.ts +2 -0
- package/dist/common/flow-modules.d.ts +20 -0
- package/dist/common/flow-notifications.d.ts +11 -2
- package/dist/common/flow-schema.d.ts +17 -0
- package/dist/common/flow-semantics.d.ts +12 -6
- package/dist/common/flow-semantics.js +15875 -9676
- package/dist/common/flowInspection.d.ts +16 -0
- package/dist/common/fr-iv1541dF.js +93 -0
- package/dist/common/integration-trigger.d.ts +29 -2
- package/dist/common/integration-trigger.js +192 -56
- package/dist/common/ja-Bq-ZDOD4.js +93 -0
- package/dist/common/ko-Z-k9R2c6.js +93 -0
- package/dist/common/localization.d.ts +2 -0
- package/dist/common/localization.js +37 -1
- package/dist/common/mcp-conformance.d.ts +2 -0
- package/dist/common/mcp.d.ts +768 -0
- package/dist/common/mcp.js +6739 -0
- package/dist/common/poll-trigger.d.ts +5 -0
- package/dist/common/poll-trigger.js +26 -22
- package/dist/common/provider-triggers.d.ts +4 -0
- package/dist/common/provider-triggers.js +7312 -1737
- package/dist/common/ru-B4gFecYZ.js +93 -0
- package/dist/common/run-events.d.ts +2 -2
- package/dist/common/run-events.js +13 -17
- package/dist/common/run-lifecycle.d.ts +21 -2
- package/dist/common/run-lifecycle.js +83 -2
- package/dist/common/run-results.d.ts +57 -0
- package/dist/common/runtime-contract.d.ts +38 -3
- package/dist/common/runtime-contract.js +291 -19
- package/dist/common/scheduler.d.ts +103 -19
- package/dist/common/scheduler.js +8240 -261
- package/dist/common/trigger-catalog.d.ts +17 -0
- package/dist/common/trigger-config-options.d.ts +13 -0
- package/dist/common/trigger-contract.d.ts +5 -0
- package/dist/common/trigger-localization.d.ts +7 -0
- package/dist/common/webhook-trigger.d.ts +3 -3
- package/dist/common/webhook-trigger.js +64 -18
- package/dist/common/zh-CN-ByQ6nYam.js +93 -0
- package/dist/common/zh-TW-QjIarvX9.js +93 -0
- package/dist/index.d.ts +6 -5
- package/package.json +21 -1
- package/dist/browser/carbon-DMCVsjHo.js +0 -53
- package/dist/browser/createResourceDialog-BkZns-oZ.js +0 -504
- package/dist/browser/diagnostics-SDCyFuxm.js +0 -11634
- package/dist/browser/dist-BMqL-qR5.js +0 -1894
- package/dist/browser/dist-BpopSHwP.js +0 -1543
- package/dist/browser/dist-CP0883sY.js +0 -4
- package/dist/browser/dist-CUSrALSX.js +0 -1620
- package/dist/browser/flowWorkspace-BZ_eiQNR.js +0 -45393
- package/dist/browser/getPseudoElementBounds-ESJExRFX.js +0 -7642
- package/dist/browser/languages-DgJehE1g.js +0 -62
- package/dist/browser/main-DmjVyuWr.js +0 -76
- package/dist/browser/workbenchSelect-B2s1HV-Y.js +0 -1374
|
@@ -5,9 +5,16 @@ export declare const controlErrorCode: {
|
|
|
5
5
|
readonly connectorActionNotFound: 'connector.action-not-found';
|
|
6
6
|
readonly connectorUnconfigured: 'connector.unconfigured';
|
|
7
7
|
readonly connectorUnavailable: 'connector.unavailable';
|
|
8
|
+
readonly connectorConsoleUnconfigured: 'connector.console-unconfigured';
|
|
8
9
|
readonly engineUnavailable: 'engine.unavailable';
|
|
9
10
|
readonly engineUnsupported: 'engine.unsupported';
|
|
11
|
+
readonly eventSourceInvalid: 'event-source.invalid';
|
|
12
|
+
readonly eventSourceIdentityUnavailable: 'event-source.identity-unavailable';
|
|
13
|
+
readonly eventSourceNotFound: 'event-source.not-found';
|
|
14
|
+
readonly eventSourceConflict: 'event-source.conflict';
|
|
10
15
|
readonly flowInvalid: 'flow.invalid';
|
|
16
|
+
readonly flowRepairRequired: 'flow.repair-required';
|
|
17
|
+
readonly flowUpgradeRequired: 'flow.upgrade-required';
|
|
11
18
|
readonly flowNotFound: 'flow.not-found';
|
|
12
19
|
readonly flowBusy: 'flow.busy';
|
|
13
20
|
readonly flowConflict: 'flow.conflict';
|
|
@@ -27,6 +34,7 @@ export declare const controlErrorCode: {
|
|
|
27
34
|
readonly runNotFound: 'run.not-found';
|
|
28
35
|
readonly runNotTerminal: 'run.not-terminal';
|
|
29
36
|
readonly runOverloaded: 'run.overloaded';
|
|
37
|
+
readonly runWaitNotFound: 'run.wait-not-found';
|
|
30
38
|
readonly triggerKeyInvalid: 'trigger-key.invalid';
|
|
31
39
|
readonly triggerKeyNotFound: 'trigger-key.not-found';
|
|
32
40
|
readonly triggerNotFound: 'trigger.not-found';
|
|
@@ -36,6 +44,18 @@ export declare const controlErrorCode: {
|
|
|
36
44
|
};
|
|
37
45
|
export type ControlErrorCode = (typeof controlErrorCode)[keyof typeof controlErrorCode];
|
|
38
46
|
export declare const controlErrorMetadata: {
|
|
47
|
+
readonly "event-source.invalid": {
|
|
48
|
+
readonly status: 400;
|
|
49
|
+
};
|
|
50
|
+
readonly "event-source.identity-unavailable": {
|
|
51
|
+
readonly status: 409;
|
|
52
|
+
};
|
|
53
|
+
readonly "event-source.not-found": {
|
|
54
|
+
readonly status: 404;
|
|
55
|
+
};
|
|
56
|
+
readonly "event-source.conflict": {
|
|
57
|
+
readonly status: 409;
|
|
58
|
+
};
|
|
39
59
|
readonly "authentication.required": {
|
|
40
60
|
readonly status: 401;
|
|
41
61
|
};
|
|
@@ -54,6 +74,9 @@ export declare const controlErrorMetadata: {
|
|
|
54
74
|
readonly "connector.unavailable": {
|
|
55
75
|
readonly status: 503;
|
|
56
76
|
};
|
|
77
|
+
readonly "connector.console-unconfigured": {
|
|
78
|
+
readonly status: 503;
|
|
79
|
+
};
|
|
57
80
|
readonly "engine.unavailable": {
|
|
58
81
|
readonly status: 503;
|
|
59
82
|
};
|
|
@@ -63,6 +86,12 @@ export declare const controlErrorMetadata: {
|
|
|
63
86
|
readonly "flow.invalid": {
|
|
64
87
|
readonly status: 400;
|
|
65
88
|
};
|
|
89
|
+
readonly "flow.repair-required": {
|
|
90
|
+
readonly status: 409;
|
|
91
|
+
};
|
|
92
|
+
readonly "flow.upgrade-required": {
|
|
93
|
+
readonly status: 409;
|
|
94
|
+
};
|
|
66
95
|
readonly "flow.not-found": {
|
|
67
96
|
readonly status: 404;
|
|
68
97
|
};
|
|
@@ -120,6 +149,9 @@ export declare const controlErrorMetadata: {
|
|
|
120
149
|
readonly "run.overloaded": {
|
|
121
150
|
readonly status: 429;
|
|
122
151
|
};
|
|
152
|
+
readonly "run.wait-not-found": {
|
|
153
|
+
readonly status: 404;
|
|
154
|
+
};
|
|
123
155
|
readonly "trigger-key.invalid": {
|
|
124
156
|
readonly status: 409;
|
|
125
157
|
};
|
|
@@ -139,3 +171,8 @@ export declare const controlErrorMetadata: {
|
|
|
139
171
|
readonly status: 404;
|
|
140
172
|
};
|
|
141
173
|
};
|
|
174
|
+
export declare class ApiError extends Error {
|
|
175
|
+
readonly code: string;
|
|
176
|
+
readonly status: number;
|
|
177
|
+
constructor(status: number, code: string, message: string);
|
|
178
|
+
}
|
|
@@ -1,11 +1,29 @@
|
|
|
1
|
+
import type { DraftOperation } from './draftOperations.js';
|
|
2
|
+
export { inspectFlowDraft } from './flowInspection.js';
|
|
3
|
+
export type { DraftOperation } from './draftOperations.js';
|
|
4
|
+
import type { SchemaMismatch } from '../browser/flow-change.js';
|
|
5
|
+
import type { CreateEventSource, UpdateEventSource, EventSource } from './event-sources.js';
|
|
6
|
+
export { decodeEventSource, decodeEventSources, type CreateEventSource, type UpdateEventSource, type EventSource } from './event-sources.js';
|
|
7
|
+
import type { TriggerCatalogCache } from './trigger-catalog.js';
|
|
8
|
+
export { decodeTriggerCatalog, type TriggerCatalog, type TriggerCatalogCache, type TriggerDisplay } from './trigger-catalog.js';
|
|
9
|
+
import type { TriggerConfigOption } from './trigger-config-options.js';
|
|
10
|
+
export type { TriggerConfigOption } from './trigger-config-options.js';
|
|
11
|
+
import type { ResultQuery } from './run-results.js';
|
|
12
|
+
import { decodeResultList, decodeResultRead } from './run-results.js';
|
|
13
|
+
export { readResult, parseResultQuery, decodeResultList, decodeResultRead, type ResultCall, type ResultInfo, type ResultPage, type ResultQuery, } from './run-results.js';
|
|
1
14
|
import type { RunStatus } from './run-lifecycle.js';
|
|
2
|
-
import type {
|
|
3
|
-
export type { JsonValue, TriggerKeySnapshot } from '../browser/flow-change.js';
|
|
15
|
+
import type { InputPortDefinition, JsonValue, PortDefinition, RevisionContent, TriggerKeySnapshot, WaitAction } from '../browser/flow-change.js';
|
|
16
|
+
export type { JsonValue, TriggerKeySnapshot, WaitAction } from '../browser/flow-change.js';
|
|
4
17
|
export type { RunStatus } from './run-lifecycle.js';
|
|
5
|
-
export { controlErrorCode, controlErrorMetadata, type ControlErrorCode } from './control-api-errors.js';
|
|
18
|
+
export { ApiError, controlErrorCode, controlErrorMetadata, type ControlErrorCode } from './control-api-errors.js';
|
|
6
19
|
export type { FlowCatalogEvent, FlowChangeEvent } from './flow-notifications.js';
|
|
7
20
|
export type ControlRequest = (path: string, init?: RequestInit) => Promise<Response>;
|
|
8
21
|
export interface Flow {
|
|
22
|
+
readonly live?: {
|
|
23
|
+
readonly enabled: boolean;
|
|
24
|
+
readonly publicationId: string;
|
|
25
|
+
readonly revisionId: string;
|
|
26
|
+
};
|
|
9
27
|
readonly createdAt: string;
|
|
10
28
|
readonly draftRevisionId: string;
|
|
11
29
|
readonly flowId: string;
|
|
@@ -14,6 +32,12 @@ export interface Flow {
|
|
|
14
32
|
readonly updatedAt: string;
|
|
15
33
|
readonly version: 1;
|
|
16
34
|
}
|
|
35
|
+
export interface Presentation {
|
|
36
|
+
readonly revision: number;
|
|
37
|
+
readonly updatedAt: string;
|
|
38
|
+
readonly value: Readonly<Record<string, JsonValue>>;
|
|
39
|
+
readonly version: 1;
|
|
40
|
+
}
|
|
17
41
|
export interface FlowPage {
|
|
18
42
|
readonly flows: readonly Flow[];
|
|
19
43
|
readonly nextCursor?: string;
|
|
@@ -35,6 +59,10 @@ export interface TriggerKeySummary {
|
|
|
35
59
|
readonly type: TriggerKeySnapshot['type'];
|
|
36
60
|
}
|
|
37
61
|
export interface TriggerBinding {
|
|
62
|
+
readonly listener?: {
|
|
63
|
+
readonly health: 'healthy' | 'failed' | 'needs_reauth';
|
|
64
|
+
readonly lastErrorCode?: string;
|
|
65
|
+
};
|
|
38
66
|
readonly currentPublicationId?: string;
|
|
39
67
|
readonly currentRevisionId?: string;
|
|
40
68
|
readonly endpointUrl?: string;
|
|
@@ -72,17 +100,25 @@ export interface PollTriggerTestResult {
|
|
|
72
100
|
readonly version: 1;
|
|
73
101
|
}
|
|
74
102
|
export interface ConnectorConnection {
|
|
103
|
+
readonly providerAccountId?: string;
|
|
104
|
+
readonly builtInAccount?: boolean;
|
|
105
|
+
readonly alias?: string;
|
|
75
106
|
readonly connectionId: string;
|
|
76
107
|
readonly displayName: string;
|
|
77
108
|
readonly isDefault: boolean;
|
|
78
109
|
readonly serviceId: string;
|
|
79
110
|
readonly status: 'active' | 'disconnected' | 'error' | 'reauth_required';
|
|
80
111
|
}
|
|
81
|
-
|
|
112
|
+
/** Action metadata independent of account availability and selection. */
|
|
113
|
+
export interface ConnectorActionMetadata {
|
|
114
|
+
/** Upstream operation classification; unknown values remain uncategorized. */
|
|
115
|
+
readonly operationType?: string;
|
|
116
|
+
readonly inputSchema?: JsonValue;
|
|
117
|
+
readonly outputSchema?: JsonValue;
|
|
82
118
|
readonly actionId: string;
|
|
83
119
|
readonly authenticated: boolean;
|
|
84
|
-
readonly defaultConnection?: ConnectorConnection;
|
|
85
120
|
readonly description: string;
|
|
121
|
+
readonly homepageUrl?: string;
|
|
86
122
|
readonly icon?: string;
|
|
87
123
|
readonly inputs: Readonly<Record<string, InputPortDefinition>>;
|
|
88
124
|
readonly name: string;
|
|
@@ -90,7 +126,13 @@ export interface ConnectorAction {
|
|
|
90
126
|
readonly serviceId: string;
|
|
91
127
|
readonly serviceName: string;
|
|
92
128
|
}
|
|
129
|
+
/** Existing CLI/MCP representation, including the currently preferred account. */
|
|
130
|
+
export interface ConnectorAction extends ConnectorActionMetadata {
|
|
131
|
+
readonly defaultConnection?: ConnectorConnection;
|
|
132
|
+
}
|
|
93
133
|
export interface ConnectorProvider {
|
|
134
|
+
readonly noSetup?: boolean;
|
|
135
|
+
readonly homepageUrl?: string;
|
|
94
136
|
readonly icon?: string;
|
|
95
137
|
readonly serviceId: string;
|
|
96
138
|
readonly serviceName: string;
|
|
@@ -112,18 +154,11 @@ export interface DraftChange {
|
|
|
112
154
|
readonly revision: RevisionMetadata;
|
|
113
155
|
readonly version: 1;
|
|
114
156
|
}
|
|
115
|
-
export
|
|
116
|
-
readonly kind: 'changes';
|
|
117
|
-
readonly revisions: readonly {
|
|
118
|
-
readonly operations: readonly ChangeOperation[];
|
|
119
|
-
readonly revision: RevisionMetadata;
|
|
120
|
-
}[];
|
|
121
|
-
readonly version: 1;
|
|
122
|
-
} | {
|
|
157
|
+
export interface DraftSync {
|
|
123
158
|
readonly draft: Draft;
|
|
124
159
|
readonly kind: 'snapshot';
|
|
125
160
|
readonly version: 1;
|
|
126
|
-
}
|
|
161
|
+
}
|
|
127
162
|
export interface Publication {
|
|
128
163
|
readonly actorId: string;
|
|
129
164
|
readonly closureDigest: string;
|
|
@@ -174,6 +209,7 @@ export interface Diagnostic {
|
|
|
174
209
|
readonly column: number;
|
|
175
210
|
readonly line: number;
|
|
176
211
|
readonly message: string;
|
|
212
|
+
readonly mismatch?: SchemaMismatch;
|
|
177
213
|
readonly path: string;
|
|
178
214
|
readonly values?: Readonly<Record<string, string | number>>;
|
|
179
215
|
}
|
|
@@ -213,14 +249,23 @@ export interface Run {
|
|
|
213
249
|
readonly status: RunStatus;
|
|
214
250
|
readonly version: 1;
|
|
215
251
|
}
|
|
216
|
-
interface
|
|
252
|
+
export interface RunWait {
|
|
253
|
+
readonly actions: readonly ['continue'] | readonly ['approve', 'reject'];
|
|
254
|
+
readonly expiresAt: string;
|
|
255
|
+
readonly nodeId: string;
|
|
256
|
+
readonly prompt: string;
|
|
257
|
+
readonly waitId: string;
|
|
258
|
+
readonly waitingSince: string;
|
|
259
|
+
}
|
|
260
|
+
type RunDetailsBase = Run & {
|
|
217
261
|
readonly closureDigest: string;
|
|
218
262
|
readonly engineContract: string;
|
|
219
263
|
readonly engineDigest: string;
|
|
220
264
|
readonly eventsExpiresAt?: string;
|
|
221
265
|
readonly modelVersion: number;
|
|
222
266
|
readonly revisionDigest: string;
|
|
223
|
-
|
|
267
|
+
readonly waits: readonly RunWait[];
|
|
268
|
+
};
|
|
224
269
|
export type DraftRun = RunDetailsBase & {
|
|
225
270
|
readonly source: 'draft';
|
|
226
271
|
};
|
|
@@ -241,14 +286,8 @@ export interface RunPage {
|
|
|
241
286
|
readonly runs: readonly Run[];
|
|
242
287
|
readonly version: 1;
|
|
243
288
|
}
|
|
244
|
-
export type
|
|
245
|
-
export
|
|
246
|
-
readonly createdAt: string;
|
|
247
|
-
readonly kind: RunEventKind;
|
|
248
|
-
readonly payload: Readonly<Record<string, JsonValue>>;
|
|
249
|
-
readonly sequence: number;
|
|
250
|
-
readonly sourceSequence?: number;
|
|
251
|
-
}
|
|
289
|
+
export type RunEvent = Readonly<ReturnType<typeof decodeRunEvent>>;
|
|
290
|
+
export type RunEventKind = RunEvent['kind'];
|
|
252
291
|
export interface RunEvents {
|
|
253
292
|
readonly done: boolean;
|
|
254
293
|
readonly events: readonly RunEvent[];
|
|
@@ -286,17 +325,293 @@ export type RunResult = {
|
|
|
286
325
|
readonly version: 1;
|
|
287
326
|
};
|
|
288
327
|
interface RunOptions {
|
|
328
|
+
readonly trigger: {
|
|
329
|
+
readonly nodeId: string;
|
|
330
|
+
readonly outputs: Readonly<Record<string, JsonValue>>;
|
|
331
|
+
};
|
|
289
332
|
readonly idempotencyKey?: string;
|
|
290
333
|
readonly inputs?: Readonly<Record<string, Readonly<Record<string, JsonValue>>>>;
|
|
291
334
|
}
|
|
292
335
|
interface PublicationOptions {
|
|
293
336
|
readonly idempotencyKey?: string;
|
|
294
337
|
}
|
|
295
|
-
export declare
|
|
296
|
-
readonly
|
|
297
|
-
readonly
|
|
298
|
-
|
|
299
|
-
|
|
338
|
+
export declare function decodeRunEvent(value: unknown): {
|
|
339
|
+
readonly createdAt: string;
|
|
340
|
+
readonly sequence: number;
|
|
341
|
+
readonly kind: "run.queued";
|
|
342
|
+
readonly payload: {
|
|
343
|
+
readonly flowId?: undefined;
|
|
344
|
+
readonly scopeId?: undefined;
|
|
345
|
+
readonly progress?: undefined;
|
|
346
|
+
readonly waitIds?: undefined;
|
|
347
|
+
readonly expiresAt?: undefined;
|
|
348
|
+
readonly nodeId?: undefined;
|
|
349
|
+
readonly waitingSince?: undefined;
|
|
350
|
+
readonly action?: undefined;
|
|
351
|
+
readonly comment?: undefined;
|
|
352
|
+
readonly resolvedAt?: undefined;
|
|
353
|
+
readonly waitId?: undefined;
|
|
354
|
+
readonly result?: undefined;
|
|
355
|
+
};
|
|
356
|
+
} | {
|
|
357
|
+
readonly createdAt: string;
|
|
358
|
+
readonly sequence: number;
|
|
359
|
+
readonly kind: "run.started";
|
|
360
|
+
readonly payload: {
|
|
361
|
+
readonly flowId: string;
|
|
362
|
+
readonly scopeId: string;
|
|
363
|
+
readonly parentScopeId?: string | undefined;
|
|
364
|
+
readonly progress?: undefined;
|
|
365
|
+
readonly waitIds?: undefined;
|
|
366
|
+
readonly expiresAt?: undefined;
|
|
367
|
+
readonly nodeId?: undefined;
|
|
368
|
+
readonly waitingSince?: undefined;
|
|
369
|
+
readonly action?: undefined;
|
|
370
|
+
readonly comment?: undefined;
|
|
371
|
+
readonly resolvedAt?: undefined;
|
|
372
|
+
readonly waitId?: undefined;
|
|
373
|
+
readonly result?: undefined;
|
|
374
|
+
};
|
|
375
|
+
} | {
|
|
376
|
+
readonly createdAt: string;
|
|
377
|
+
readonly sequence: number;
|
|
378
|
+
readonly kind: "run.progress";
|
|
379
|
+
readonly payload: {
|
|
380
|
+
readonly flowId: string;
|
|
381
|
+
readonly scopeId: string;
|
|
382
|
+
readonly progress: number;
|
|
383
|
+
readonly waitIds?: undefined;
|
|
384
|
+
readonly expiresAt?: undefined;
|
|
385
|
+
readonly nodeId?: undefined;
|
|
386
|
+
readonly waitingSince?: undefined;
|
|
387
|
+
readonly action?: undefined;
|
|
388
|
+
readonly comment?: undefined;
|
|
389
|
+
readonly resolvedAt?: undefined;
|
|
390
|
+
readonly waitId?: undefined;
|
|
391
|
+
readonly result?: undefined;
|
|
392
|
+
};
|
|
393
|
+
} | {
|
|
394
|
+
readonly createdAt: string;
|
|
395
|
+
readonly sequence: number;
|
|
396
|
+
readonly kind: "run.waiting";
|
|
397
|
+
readonly payload: {
|
|
398
|
+
readonly flowId?: undefined;
|
|
399
|
+
readonly scopeId?: undefined;
|
|
400
|
+
readonly progress?: undefined;
|
|
401
|
+
readonly waitIds: string[];
|
|
402
|
+
readonly expiresAt?: undefined;
|
|
403
|
+
readonly nodeId?: undefined;
|
|
404
|
+
readonly waitingSince?: undefined;
|
|
405
|
+
readonly action?: undefined;
|
|
406
|
+
readonly comment?: undefined;
|
|
407
|
+
readonly resolvedAt?: undefined;
|
|
408
|
+
readonly waitId?: undefined;
|
|
409
|
+
readonly result?: undefined;
|
|
410
|
+
};
|
|
411
|
+
} | {
|
|
412
|
+
readonly createdAt: string;
|
|
413
|
+
readonly sequence: number;
|
|
414
|
+
readonly kind: "wait.created";
|
|
415
|
+
readonly payload: {
|
|
416
|
+
readonly flowId?: undefined;
|
|
417
|
+
readonly scopeId?: undefined;
|
|
418
|
+
readonly progress?: undefined;
|
|
419
|
+
readonly waitIds?: undefined;
|
|
420
|
+
readonly expiresAt: string;
|
|
421
|
+
readonly nodeId: string;
|
|
422
|
+
readonly waitId: string;
|
|
423
|
+
readonly waitingSince: string;
|
|
424
|
+
readonly action?: undefined;
|
|
425
|
+
readonly comment?: undefined;
|
|
426
|
+
readonly resolvedAt?: undefined;
|
|
427
|
+
readonly result?: undefined;
|
|
428
|
+
};
|
|
429
|
+
} | {
|
|
430
|
+
readonly createdAt: string;
|
|
431
|
+
readonly sequence: number;
|
|
432
|
+
readonly kind: "run.resolved";
|
|
433
|
+
readonly payload: {
|
|
434
|
+
readonly flowId?: undefined;
|
|
435
|
+
readonly scopeId?: undefined;
|
|
436
|
+
readonly progress?: undefined;
|
|
437
|
+
readonly waitIds?: undefined;
|
|
438
|
+
readonly expiresAt?: undefined;
|
|
439
|
+
readonly nodeId?: undefined;
|
|
440
|
+
readonly waitingSince?: undefined;
|
|
441
|
+
readonly action: "approve" | "continue" | "reject";
|
|
442
|
+
readonly comment: string | null;
|
|
443
|
+
readonly resolvedAt: string;
|
|
444
|
+
readonly waitId: string;
|
|
445
|
+
readonly result?: undefined;
|
|
446
|
+
};
|
|
447
|
+
} | {
|
|
448
|
+
readonly createdAt: string;
|
|
449
|
+
readonly sequence: number;
|
|
450
|
+
readonly kind: "run.canceled" | "run.completed" | "run.failed" | "run.indeterminate";
|
|
451
|
+
readonly payload: {
|
|
452
|
+
readonly flowId?: undefined;
|
|
453
|
+
readonly scopeId?: undefined;
|
|
454
|
+
readonly progress?: undefined;
|
|
455
|
+
readonly waitIds?: undefined;
|
|
456
|
+
readonly expiresAt?: undefined;
|
|
457
|
+
readonly nodeId?: undefined;
|
|
458
|
+
readonly waitingSince?: undefined;
|
|
459
|
+
readonly action?: undefined;
|
|
460
|
+
readonly comment?: undefined;
|
|
461
|
+
readonly resolvedAt?: undefined;
|
|
462
|
+
readonly waitId?: undefined;
|
|
463
|
+
readonly result: JsonValue;
|
|
464
|
+
};
|
|
465
|
+
} | {
|
|
466
|
+
readonly createdAt: string;
|
|
467
|
+
readonly sequence: number;
|
|
468
|
+
readonly kind: "run.events-truncated";
|
|
469
|
+
readonly payload: {
|
|
470
|
+
[k: string]: JsonValue;
|
|
471
|
+
};
|
|
472
|
+
} | {
|
|
473
|
+
readonly createdAt: string;
|
|
474
|
+
readonly sequence: number;
|
|
475
|
+
readonly kind: "node.started";
|
|
476
|
+
readonly payload: {
|
|
477
|
+
readonly progress?: undefined;
|
|
478
|
+
readonly waitIds?: undefined;
|
|
479
|
+
readonly expiresAt?: undefined;
|
|
480
|
+
readonly waitingSince?: undefined;
|
|
481
|
+
readonly action?: undefined;
|
|
482
|
+
readonly comment?: undefined;
|
|
483
|
+
readonly resolvedAt?: undefined;
|
|
484
|
+
readonly waitId?: undefined;
|
|
485
|
+
readonly result?: undefined;
|
|
486
|
+
readonly flowId: string;
|
|
487
|
+
readonly scopeId: string;
|
|
488
|
+
readonly nodeId: string;
|
|
489
|
+
readonly executionId: string;
|
|
490
|
+
readonly nodeKind?: string | undefined;
|
|
491
|
+
readonly nodeTitle?: string | undefined;
|
|
492
|
+
readonly operation?: string | undefined;
|
|
493
|
+
};
|
|
494
|
+
} | {
|
|
495
|
+
readonly createdAt: string;
|
|
496
|
+
readonly sequence: number;
|
|
497
|
+
readonly kind: "node.completed";
|
|
498
|
+
readonly payload: {
|
|
499
|
+
readonly progress?: undefined;
|
|
500
|
+
readonly waitIds?: undefined;
|
|
501
|
+
readonly expiresAt?: undefined;
|
|
502
|
+
readonly waitingSince?: undefined;
|
|
503
|
+
readonly action?: undefined;
|
|
504
|
+
readonly comment?: undefined;
|
|
505
|
+
readonly resolvedAt?: undefined;
|
|
506
|
+
readonly waitId?: undefined;
|
|
507
|
+
readonly result?: undefined;
|
|
508
|
+
readonly flowId: string;
|
|
509
|
+
readonly scopeId: string;
|
|
510
|
+
readonly nodeId: string;
|
|
511
|
+
readonly executionId: string;
|
|
512
|
+
readonly outputs: {
|
|
513
|
+
[k: string]: JsonValue;
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
} | {
|
|
517
|
+
readonly createdAt: string;
|
|
518
|
+
readonly sequence: number;
|
|
519
|
+
readonly kind: "node.failed";
|
|
520
|
+
readonly payload: {
|
|
521
|
+
readonly progress?: undefined;
|
|
522
|
+
readonly waitIds?: undefined;
|
|
523
|
+
readonly expiresAt?: undefined;
|
|
524
|
+
readonly waitingSince?: undefined;
|
|
525
|
+
readonly action?: undefined;
|
|
526
|
+
readonly comment?: undefined;
|
|
527
|
+
readonly resolvedAt?: undefined;
|
|
528
|
+
readonly waitId?: undefined;
|
|
529
|
+
readonly result?: undefined;
|
|
530
|
+
readonly flowId: string;
|
|
531
|
+
readonly scopeId: string;
|
|
532
|
+
readonly nodeId: string;
|
|
533
|
+
readonly executionId: string;
|
|
534
|
+
readonly error: {
|
|
535
|
+
readonly code: string;
|
|
536
|
+
readonly message: string;
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
} | {
|
|
540
|
+
readonly createdAt: string;
|
|
541
|
+
readonly sequence: number;
|
|
542
|
+
readonly kind: "node.log";
|
|
543
|
+
readonly payload: {
|
|
544
|
+
readonly progress?: undefined;
|
|
545
|
+
readonly waitIds?: undefined;
|
|
546
|
+
readonly expiresAt?: undefined;
|
|
547
|
+
readonly waitingSince?: undefined;
|
|
548
|
+
readonly action?: undefined;
|
|
549
|
+
readonly comment?: undefined;
|
|
550
|
+
readonly resolvedAt?: undefined;
|
|
551
|
+
readonly waitId?: undefined;
|
|
552
|
+
readonly result?: undefined;
|
|
553
|
+
readonly flowId: string;
|
|
554
|
+
readonly scopeId: string;
|
|
555
|
+
readonly nodeId: string;
|
|
556
|
+
readonly executionId: string;
|
|
557
|
+
readonly level: "debug" | "error" | "info" | "warn";
|
|
558
|
+
readonly message: string;
|
|
559
|
+
};
|
|
560
|
+
} | {
|
|
561
|
+
readonly createdAt: string;
|
|
562
|
+
readonly sequence: number;
|
|
563
|
+
readonly kind: "node.progress";
|
|
564
|
+
readonly payload: {
|
|
565
|
+
readonly waitIds?: undefined;
|
|
566
|
+
readonly expiresAt?: undefined;
|
|
567
|
+
readonly waitingSince?: undefined;
|
|
568
|
+
readonly action?: undefined;
|
|
569
|
+
readonly comment?: undefined;
|
|
570
|
+
readonly resolvedAt?: undefined;
|
|
571
|
+
readonly waitId?: undefined;
|
|
572
|
+
readonly result?: undefined;
|
|
573
|
+
readonly flowId: string;
|
|
574
|
+
readonly scopeId: string;
|
|
575
|
+
readonly nodeId: string;
|
|
576
|
+
readonly executionId: string;
|
|
577
|
+
readonly progress: number;
|
|
578
|
+
};
|
|
579
|
+
} | {
|
|
580
|
+
readonly createdAt: string;
|
|
581
|
+
readonly sequence: number;
|
|
582
|
+
readonly kind: "node.artifact";
|
|
583
|
+
readonly payload: {
|
|
584
|
+
readonly progress?: undefined;
|
|
585
|
+
readonly waitIds?: undefined;
|
|
586
|
+
readonly expiresAt?: undefined;
|
|
587
|
+
readonly waitingSince?: undefined;
|
|
588
|
+
readonly action?: undefined;
|
|
589
|
+
readonly comment?: undefined;
|
|
590
|
+
readonly resolvedAt?: undefined;
|
|
591
|
+
readonly waitId?: undefined;
|
|
592
|
+
readonly result?: undefined;
|
|
593
|
+
readonly flowId: string;
|
|
594
|
+
readonly scopeId: string;
|
|
595
|
+
readonly nodeId: string;
|
|
596
|
+
readonly executionId: string;
|
|
597
|
+
readonly artifact: {
|
|
598
|
+
readonly kind: 'artifact';
|
|
599
|
+
readonly id: string;
|
|
600
|
+
readonly name: string;
|
|
601
|
+
readonly size: number;
|
|
602
|
+
readonly digest: string;
|
|
603
|
+
readonly mediaType?: string | undefined;
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
export type ConditionalResult<T> = {
|
|
608
|
+
readonly modified: true;
|
|
609
|
+
readonly data: T;
|
|
610
|
+
readonly etag: string | null;
|
|
611
|
+
} | {
|
|
612
|
+
readonly modified: false;
|
|
613
|
+
readonly etag: string | null;
|
|
614
|
+
};
|
|
300
615
|
export declare class ControlClient {
|
|
301
616
|
private readonly requestControl;
|
|
302
617
|
constructor(requestControl: ControlRequest);
|
|
@@ -305,6 +620,15 @@ export declare class ControlClient {
|
|
|
305
620
|
readonly includeTotal?: boolean;
|
|
306
621
|
readonly limit?: number;
|
|
307
622
|
}): Promise<FlowPage>;
|
|
623
|
+
listEventSources(flowId?: string, signal?: AbortSignal): Promise<{
|
|
624
|
+
readonly version: 1;
|
|
625
|
+
readonly sources: readonly EventSource[];
|
|
626
|
+
readonly teamId?: string | null;
|
|
627
|
+
}>;
|
|
628
|
+
listEventSourceConnections(teamId: string | null, signal?: AbortSignal): Promise<readonly ConnectorConnection[]>;
|
|
629
|
+
createEventSource(input: CreateEventSource): Promise<EventSource>;
|
|
630
|
+
updateEventSource(sourceId: string, input: UpdateEventSource): Promise<EventSource>;
|
|
631
|
+
deleteEventSource(sourceId: string, expectedRevision: number): Promise<void>;
|
|
308
632
|
listVariables(): Promise<{
|
|
309
633
|
readonly variables: readonly Variable[];
|
|
310
634
|
readonly version: 1;
|
|
@@ -316,10 +640,15 @@ export declare class ControlClient {
|
|
|
316
640
|
getFlow(flowId: string): Promise<Flow>;
|
|
317
641
|
renameFlow(flowId: string, name: string): Promise<Flow>;
|
|
318
642
|
deleteFlow(flowId: string): Promise<Flow>;
|
|
319
|
-
listTriggerKeys(signal?: AbortSignal): Promise<readonly TriggerKeySummary[]>;
|
|
643
|
+
listTriggerKeys(signal?: AbortSignal, locale?: string): Promise<readonly TriggerKeySummary[]>;
|
|
320
644
|
listTriggerDefinitions(signal?: AbortSignal): Promise<readonly TriggerKeySnapshot[]>;
|
|
645
|
+
readCatalog<T>(query: {
|
|
646
|
+
readonly path: string;
|
|
647
|
+
readonly decode: (data: unknown) => T;
|
|
648
|
+
}, etag: string | null, signal?: AbortSignal): Promise<ConditionalResult<T>>;
|
|
649
|
+
getTriggerCatalog(locale: string, cached?: TriggerCatalogCache, signal?: AbortSignal): Promise<TriggerCatalogCache>;
|
|
321
650
|
getTriggerKey(key: string, signal?: AbortSignal): Promise<TriggerKeySnapshot>;
|
|
322
|
-
listFlowTriggerBindings(flowId: string): Promise<readonly TriggerBinding[]>;
|
|
651
|
+
listFlowTriggerBindings(flowId: string, signal?: AbortSignal): Promise<readonly TriggerBinding[]>;
|
|
323
652
|
getFlowTriggerBinding(flowId: string, triggerNodeId: string): Promise<TriggerBindingDetail>;
|
|
324
653
|
listFlowTriggerActivities(flowId: string, triggerNodeId: string, options?: {
|
|
325
654
|
readonly cursor?: string;
|
|
@@ -328,40 +657,72 @@ export declare class ControlClient {
|
|
|
328
657
|
pauseFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
|
|
329
658
|
resumeFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
|
|
330
659
|
testFlowPollTrigger(flowId: string, triggerNodeId: string): Promise<PollTriggerTestResult>;
|
|
660
|
+
getEditor(flowId: string): Promise<{
|
|
661
|
+
readonly flow: Flow;
|
|
662
|
+
readonly draft: Draft;
|
|
663
|
+
readonly live: Live;
|
|
664
|
+
readonly presentation: Presentation;
|
|
665
|
+
readonly version: 1;
|
|
666
|
+
}>;
|
|
667
|
+
getPresentation(flowId: string): Promise<Presentation>;
|
|
331
668
|
getDraft(flowId: string): Promise<Draft>;
|
|
332
|
-
syncDraft(flowId: string
|
|
669
|
+
syncDraft(flowId: string): Promise<DraftSync>;
|
|
333
670
|
getRevision(flowId: string, revisionId: string): Promise<Draft>;
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
671
|
+
listTriggerConfigOptions(flowId: string, nodeId: string, field: string, signal?: AbortSignal): Promise<readonly TriggerConfigOption[]>;
|
|
672
|
+
listConnectorProviders(signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorProvider[]>;
|
|
673
|
+
listConnectorActions(serviceId?: string, signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorAction[]>;
|
|
674
|
+
searchConnectorActions(query: string, signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorAction[]>;
|
|
675
|
+
getConnectorAction(actionId: string, signal?: AbortSignal, flowId?: string, locale?: string, fresh?: boolean): Promise<ConnectorAction>;
|
|
676
|
+
listAllConnectorConnections(signal?: AbortSignal, flowId?: string, fresh?: boolean): Promise<readonly ConnectorConnection[]>;
|
|
677
|
+
listConnectorConnections(serviceId: string, signal?: AbortSignal, flowId?: string, fresh?: boolean): Promise<readonly ConnectorConnection[]>;
|
|
678
|
+
createConnectorConnectionPage(serviceId: string, flowId?: string, teamId?: string): Promise<string>;
|
|
679
|
+
changeDraft(flowId: string, expectedRevisionId: string, operations: readonly DraftOperation[], changeId?: string): Promise<DraftChange>;
|
|
680
|
+
repairDraft(flowId: string, expectedRevisionId: string, changeId?: string): Promise<DraftChange>;
|
|
341
681
|
checkFlow(flowId: string, revisionId: string): Promise<FlowCheck>;
|
|
342
|
-
getLive(flowId: string): Promise<Live>;
|
|
682
|
+
getLive(flowId: string, signal?: AbortSignal): Promise<Live>;
|
|
343
683
|
listPublications(flowId: string, options?: {
|
|
344
684
|
readonly cursor?: string;
|
|
345
685
|
readonly includeTotal?: boolean;
|
|
346
686
|
readonly limit?: number;
|
|
347
|
-
}): Promise<PublicationPage>;
|
|
348
|
-
createDraftRun(flowId: string, revisionId: string, options
|
|
349
|
-
createLiveRun(publicationId: string, options
|
|
687
|
+
}, signal?: AbortSignal): Promise<PublicationPage>;
|
|
688
|
+
createDraftRun(flowId: string, revisionId: string, options: RunOptions): Promise<DraftRun>;
|
|
689
|
+
createLiveRun(publicationId: string, options: RunOptions): Promise<LiveRun>;
|
|
690
|
+
setFlowEnabled(flowId: string, publicationId: string, enabled: boolean): Promise<Flow>;
|
|
350
691
|
publishFlow(flowId: string, revisionId: string, expectedLivePublicationId: string | null, options?: PublicationOptions): Promise<PublishOperation>;
|
|
351
|
-
getPublishOperation(flowId: string, operationId: string): Promise<PublishOperation>;
|
|
692
|
+
getPublishOperation(flowId: string, operationId: string, signal?: AbortSignal): Promise<PublishOperation>;
|
|
352
693
|
rollbackFlow(flowId: string, publicationId: string, expectedLivePublicationId: string, options?: PublicationOptions): Promise<Publication>;
|
|
353
|
-
getRun(runId: string): Promise<RunDetails>;
|
|
694
|
+
getRun(runId: string, signal?: AbortSignal): Promise<RunDetails>;
|
|
354
695
|
listRuns(flowId: string, options?: {
|
|
696
|
+
readonly createdBefore?: string;
|
|
697
|
+
readonly createdFrom?: string;
|
|
355
698
|
readonly cursor?: string;
|
|
356
699
|
readonly limit?: number;
|
|
700
|
+
readonly pendingWait?: boolean;
|
|
701
|
+
readonly runId?: string;
|
|
702
|
+
readonly source?: Run['source'];
|
|
357
703
|
readonly status?: RunStatus;
|
|
358
704
|
}): Promise<RunPage>;
|
|
359
705
|
getRunEvents(runId: string, options?: {
|
|
360
706
|
readonly after?: number;
|
|
361
707
|
readonly limit?: number;
|
|
362
|
-
}): Promise<RunEvents>;
|
|
363
|
-
|
|
708
|
+
}, signal?: AbortSignal): Promise<RunEvents>;
|
|
709
|
+
listRunResults(runId: string, after?: string, signal?: AbortSignal): Promise<ReturnType<typeof decodeResultList>>;
|
|
710
|
+
readRunResult(runId: string, resultId: string, options?: ResultQuery, signal?: AbortSignal): Promise<ReturnType<typeof decodeResultRead>>;
|
|
711
|
+
downloadRunResult(runId: string, resultId: string, signal?: AbortSignal): Promise<Blob>;
|
|
712
|
+
getRunResult(runId: string, signal?: AbortSignal): Promise<RunResult>;
|
|
364
713
|
cancelRun(runId: string): Promise<RunCancellation>;
|
|
714
|
+
resolveRunWait(runId: string, waitId: string, action: WaitAction, comment?: string | null): Promise<{
|
|
715
|
+
readonly action: WaitAction | null;
|
|
716
|
+
readonly comment: string | null;
|
|
717
|
+
readonly resolutionAccepted: boolean;
|
|
718
|
+
readonly resolvedAt: string | null;
|
|
719
|
+
readonly runId: string;
|
|
720
|
+
readonly status: RunStatus;
|
|
721
|
+
readonly version: 1;
|
|
722
|
+
readonly waitId: string;
|
|
723
|
+
}>;
|
|
365
724
|
private connectorActions;
|
|
725
|
+
protected connectorRequest<Value>(path: string, _kind: 'providers' | 'actions' | 'connections', signal: AbortSignal | undefined, decode: (value: unknown) => Value, _fresh?: boolean): Promise<Value>;
|
|
726
|
+
protected response(path: string, init: RequestInit, allowNotModified?: boolean): Promise<Response>;
|
|
366
727
|
protected request<Value = unknown>(path: string, init?: RequestInit): Promise<Value>;
|
|
367
728
|
}
|