@oomol-lab/open-flow 0.1.0-beta.4 → 0.1.0-beta.40
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/codeDiagnostics-BtH_YuXu.js +44 -0
- package/dist/browser/createResourceDialog-BOrW62JW.js +110 -0
- package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
- package/dist/browser/dist-Cdna4VV_.js +795 -0
- package/dist/browser/dist-CoszrK7m.js +4 -0
- package/dist/browser/{dist-CPuF50D9.js → dist-D1VYgicl.js} +426 -305
- package/dist/browser/{dist-CeSZ2xSM.js → dist-DINmJ4Gr.js} +171 -112
- package/dist/browser/dist-DSe6KRsr.js +1224 -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-0skblWYk.js +16795 -0
- package/dist/browser/{esm-C9jQK70n.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 +34 -17
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +15906 -457
- package/dist/browser/flow-change-schema.d.ts +11 -0
- package/dist/browser/flow-change.d.ts +245 -44
- package/dist/browser/flow-change.js +5517 -117
- package/dist/browser/flow-input-value.d.ts +6 -0
- package/dist/browser/flow-notifications.d.ts +11 -2
- package/dist/browser/flowChanges-3o9Vs_1I.js +10137 -0
- package/dist/browser/{flowRunInputEditorStore-BYa8zFLC.js → flowRunInputEditorStore-Bgb5vSeS.js} +864 -4000
- package/dist/browser/flowWorkspace-DJzQVVtZ.js +43418 -0
- package/dist/browser/host-conformance.d.ts +7 -0
- package/dist/browser/host-conformance.js +39 -0
- package/dist/browser/inputValues-DkDT6u0o.js +43 -0
- package/dist/browser/licenses.md +137 -662
- package/dist/browser/{getPseudoElementBounds-qDxSDwzN.js → lite-BA96NG4M.js} +4409 -2987
- package/dist/browser/main-BDnNHhkU.js +50 -0
- package/dist/browser/{markdownContent-DUfLdnUt.js → markdownContent-D2oHGWc6.js} +53 -53
- package/dist/browser/theme.css +529 -34
- package/dist/browser/{typeScriptSession-CwMPjseS.js → typeScriptSession-v9Pb3G6d.js} +190 -191
- 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 +3 -0
- package/dist/browser/ui.css.d.ts +1 -0
- package/dist/browser/ui.d.ts +62 -0
- package/dist/browser/ui.js +5407 -0
- package/dist/browser/value-B_yE9ean.js +101 -0
- package/dist/browser/warmCodeTheme-DVv4-rDO.js +35 -0
- package/dist/browser/webhook-method.d.ts +3 -0
- package/dist/browser/workbench-contract.d.ts +27 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +2 -3
- package/dist/browser/workbench.js +4212 -1472
- package/dist/browser/workbenchSelect-B5zXyaaX.js +6423 -0
- package/dist/common/authoringExamples.d.ts +28 -0
- package/dist/common/connectorDecoders.d.ts +9 -0
- package/dist/common/control-api-conformance.d.ts +57 -0
- package/dist/common/control-api-conformance.js +9793 -208
- package/dist/common/control-api-errors.d.ts +49 -0
- package/dist/common/control-api.d.ts +484 -57
- package/dist/common/control-api.js +8917 -531
- package/dist/common/control-requests.d.ts +129 -0
- package/dist/common/control-requests.js +8662 -0
- package/dist/common/cron-trigger.d.ts +2 -1
- package/dist/common/cron-trigger.js +27 -24
- package/dist/common/draftOperations.d.ts +13 -0
- package/dist/common/engine-contract.d.ts +3 -1
- package/dist/common/event-sources.d.ts +49 -0
- package/dist/common/feishu-events.d.ts +19 -0
- package/dist/common/feishu-subscriptions.d.ts +10 -0
- package/dist/common/flow-agent.d.ts +10 -0
- package/dist/common/flow-connectionUsage.d.ts +12 -0
- package/dist/common/flow-encoding.d.ts +10 -2
- package/dist/common/flow-encoding.js +5170 -84
- package/dist/common/flow-graph.d.ts +59 -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 +15 -7
- package/dist/common/flow-semantics.js +16394 -9734
- package/dist/common/flowInspection.d.ts +105 -0
- package/dist/common/fr-ClB96SQY.js +298 -0
- package/dist/common/integration-trigger.d.ts +30 -2
- package/dist/common/integration-trigger.js +7880 -71
- package/dist/common/ja-BJF-VrP2.js +298 -0
- package/dist/common/ko-Bght_VaB.js +298 -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 +964 -0
- package/dist/common/mcp.js +9358 -0
- package/dist/common/poll-trigger.d.ts +7 -0
- package/dist/common/poll-trigger.js +7702 -25
- package/dist/common/provider-triggers.d.ts +4 -0
- package/dist/common/provider-triggers.js +11554 -2275
- package/dist/common/providerAccess.d.ts +20 -0
- package/dist/common/ru-DrP4BRM5.js +298 -0
- package/dist/common/run-events.d.ts +2 -2
- package/dist/common/run-events.js +11 -16
- package/dist/common/run-lifecycle.d.ts +5 -1
- package/dist/common/run-lifecycle.js +33 -3
- package/dist/common/run-results.d.ts +57 -0
- package/dist/common/runtime-contract.d.ts +38 -3
- package/dist/common/runtime-contract.js +312 -19
- package/dist/common/scheduler.d.ts +83 -60
- package/dist/common/scheduler.js +8625 -545
- package/dist/common/trigger-catalog.d.ts +22 -0
- package/dist/common/trigger-config-options.d.ts +13 -0
- package/dist/common/trigger-config.d.ts +7 -0
- package/dist/common/trigger-contract.d.ts +7 -0
- package/dist/common/trigger-localization.d.ts +7 -0
- package/dist/common/webhook-trigger.d.ts +5 -3
- package/dist/common/webhook-trigger.js +7071 -67
- package/dist/common/zh-CN-CxZ3yYfR.js +298 -0
- package/dist/common/zh-TW-CRmc3FMz.js +298 -0
- package/dist/index.d.ts +5 -5
- package/package.json +21 -1
- package/dist/browser/DesignerIcon-DdfuH2jW.js +0 -2066
- package/dist/browser/carbon-DMCVsjHo.js +0 -53
- package/dist/browser/createResourceDialog-4YQKl8lG.js +0 -505
- 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/flowChanges-Bs-ZcJV8.js +0 -12006
- package/dist/browser/flowWorkspace-BewofPeU.js +0 -45575
- package/dist/browser/icons-DRoMXL5h.js +0 -521
- package/dist/browser/languages-DgJehE1g.js +0 -62
- package/dist/browser/lib-GrGxYjsJ.js +0 -7855
- package/dist/browser/main-DmjVyuWr.js +0 -76
- package/dist/browser/waitNotificationInputs-DtrPBwA1.js +0 -26
- package/dist/browser/workbenchSelect-CX8KtT7L.js +0 -1375
|
@@ -1,11 +1,32 @@
|
|
|
1
|
+
export { connectorAccess as decodeConnectorAccess, connectorAccessSnapshot as decodeConnectorAccessSnapshot } from './connectorDecoders.js';
|
|
2
|
+
import type { ProviderAccessIdentity, ProviderAccessReference } from './providerAccess.js';
|
|
3
|
+
export { parseProviderAccessSource, providerAccessBindingId, type ProviderAccessIdentity, type ProviderAccessReference, type ProviderAccessSource, } from './providerAccess.js';
|
|
4
|
+
import type { DraftOperation } from './draftOperations.js';
|
|
5
|
+
export { inspectFlowDraft, flowInspection, actionSummary, nodeDetails } from './flowInspection.js';
|
|
6
|
+
export type { DraftOperation } from './draftOperations.js';
|
|
7
|
+
import type { SchemaMismatch } from '../browser/flow-change.js';
|
|
8
|
+
import type { CreateEventSource, UpdateEventSource, EventSource } from './event-sources.js';
|
|
9
|
+
export { decodeEventSource, decodeEventSources, type CreateEventSource, type UpdateEventSource, type EventSource } from './event-sources.js';
|
|
10
|
+
import type { TriggerCatalogCache } from './trigger-catalog.js';
|
|
11
|
+
export { decodeTriggerCatalog, searchTriggerKeys, type TriggerCatalog, type TriggerCatalogCache, type TriggerDisplay } from './trigger-catalog.js';
|
|
12
|
+
import type { TriggerConfigOption } from './trigger-config-options.js';
|
|
13
|
+
export type { TriggerConfigOption } from './trigger-config-options.js';
|
|
14
|
+
import type { ResultQuery } from './run-results.js';
|
|
15
|
+
import { decodeResultList, decodeResultRead } from './run-results.js';
|
|
16
|
+
export { readResult, parseResultQuery, decodeResultList, decodeResultRead, type ResultCall, type ResultInfo, type ResultPage, type ResultQuery, } from './run-results.js';
|
|
1
17
|
import type { RunStatus } from './run-lifecycle.js';
|
|
2
|
-
import type {
|
|
18
|
+
import type { InputPortDefinition, JsonValue, PortDefinition, RevisionContent, TriggerKeySnapshot, WaitAction } from '../browser/flow-change.js';
|
|
3
19
|
export type { JsonValue, TriggerKeySnapshot, WaitAction } from '../browser/flow-change.js';
|
|
4
20
|
export type { RunStatus } from './run-lifecycle.js';
|
|
5
|
-
export { controlErrorCode, controlErrorMetadata, type ControlErrorCode } from './control-api-errors.js';
|
|
21
|
+
export { ApiError, controlErrorCode, controlErrorMetadata, type ControlErrorCode } from './control-api-errors.js';
|
|
6
22
|
export type { FlowCatalogEvent, FlowChangeEvent } from './flow-notifications.js';
|
|
7
23
|
export type ControlRequest = (path: string, init?: RequestInit) => Promise<Response>;
|
|
8
24
|
export interface Flow {
|
|
25
|
+
readonly live?: {
|
|
26
|
+
readonly enabled: boolean;
|
|
27
|
+
readonly publicationId: string;
|
|
28
|
+
readonly revisionId: string;
|
|
29
|
+
};
|
|
9
30
|
readonly createdAt: string;
|
|
10
31
|
readonly draftRevisionId: string;
|
|
11
32
|
readonly flowId: string;
|
|
@@ -14,6 +35,12 @@ export interface Flow {
|
|
|
14
35
|
readonly updatedAt: string;
|
|
15
36
|
readonly version: 1;
|
|
16
37
|
}
|
|
38
|
+
export interface Presentation {
|
|
39
|
+
readonly revision: number;
|
|
40
|
+
readonly updatedAt: string;
|
|
41
|
+
readonly value: Readonly<Record<string, JsonValue>>;
|
|
42
|
+
readonly version: 1;
|
|
43
|
+
}
|
|
17
44
|
export interface FlowPage {
|
|
18
45
|
readonly flows: readonly Flow[];
|
|
19
46
|
readonly nextCursor?: string;
|
|
@@ -35,6 +62,10 @@ export interface TriggerKeySummary {
|
|
|
35
62
|
readonly type: TriggerKeySnapshot['type'];
|
|
36
63
|
}
|
|
37
64
|
export interface TriggerBinding {
|
|
65
|
+
readonly listener?: {
|
|
66
|
+
readonly health: 'healthy' | 'failed' | 'needs_reauth';
|
|
67
|
+
readonly lastErrorCode?: string;
|
|
68
|
+
};
|
|
38
69
|
readonly currentPublicationId?: string;
|
|
39
70
|
readonly currentRevisionId?: string;
|
|
40
71
|
readonly endpointUrl?: string;
|
|
@@ -72,16 +103,23 @@ export interface PollTriggerTestResult {
|
|
|
72
103
|
readonly version: 1;
|
|
73
104
|
}
|
|
74
105
|
export interface ConnectorConnection {
|
|
106
|
+
readonly providerAccountId?: string;
|
|
107
|
+
readonly builtInAccount?: boolean;
|
|
108
|
+
readonly alias?: string;
|
|
75
109
|
readonly connectionId: string;
|
|
76
110
|
readonly displayName: string;
|
|
77
111
|
readonly isDefault: boolean;
|
|
78
112
|
readonly serviceId: string;
|
|
79
113
|
readonly status: 'active' | 'disconnected' | 'error' | 'reauth_required';
|
|
80
114
|
}
|
|
81
|
-
|
|
115
|
+
/** Action metadata independent of account availability and selection. */
|
|
116
|
+
export interface ConnectorActionMetadata {
|
|
117
|
+
/** Upstream operation classification; unknown values remain uncategorized. */
|
|
118
|
+
readonly operationType?: string;
|
|
119
|
+
readonly inputSchema?: JsonValue;
|
|
120
|
+
readonly outputSchema?: JsonValue;
|
|
82
121
|
readonly actionId: string;
|
|
83
122
|
readonly authenticated: boolean;
|
|
84
|
-
readonly defaultConnection?: ConnectorConnection;
|
|
85
123
|
readonly description: string;
|
|
86
124
|
readonly homepageUrl?: string;
|
|
87
125
|
readonly icon?: string;
|
|
@@ -91,12 +129,80 @@ export interface ConnectorAction {
|
|
|
91
129
|
readonly serviceId: string;
|
|
92
130
|
readonly serviceName: string;
|
|
93
131
|
}
|
|
132
|
+
/** Existing CLI/MCP representation, including the currently preferred account. */
|
|
133
|
+
export interface ConnectorAction extends ConnectorActionMetadata {
|
|
134
|
+
readonly defaultConnection?: ConnectorConnection;
|
|
135
|
+
}
|
|
94
136
|
export interface ConnectorProvider {
|
|
137
|
+
readonly noSetup?: boolean;
|
|
95
138
|
readonly homepageUrl?: string;
|
|
96
139
|
readonly icon?: string;
|
|
97
140
|
readonly serviceId: string;
|
|
98
141
|
readonly serviceName: string;
|
|
99
142
|
}
|
|
143
|
+
export type ConnectorAccessMode = 'implicit' | 'selectable';
|
|
144
|
+
export type ProviderAccessBindingStatus = 'active' | 'forbidden' | 'invalid' | 'missing';
|
|
145
|
+
export type ProviderAccessBinding = ((ProviderAccessIdentity & {
|
|
146
|
+
readonly status: ProviderAccessBindingStatus;
|
|
147
|
+
}) | (Extract<ProviderAccessReference, {
|
|
148
|
+
readonly source: null;
|
|
149
|
+
}> & {
|
|
150
|
+
readonly status: 'invalid';
|
|
151
|
+
})) & {
|
|
152
|
+
readonly connectionDisplayName: string;
|
|
153
|
+
readonly permissionGroupName?: string | null;
|
|
154
|
+
readonly policyRevision?: string;
|
|
155
|
+
readonly providerId: string;
|
|
156
|
+
};
|
|
157
|
+
export interface ProviderAccessBindingCandidate extends ProviderAccessIdentity {
|
|
158
|
+
readonly connectionDisplayName: string;
|
|
159
|
+
readonly isDefault?: boolean;
|
|
160
|
+
readonly permissions?: {
|
|
161
|
+
readonly actionIds: readonly string[];
|
|
162
|
+
readonly allActions: boolean;
|
|
163
|
+
readonly configured: boolean;
|
|
164
|
+
readonly proxy: boolean;
|
|
165
|
+
};
|
|
166
|
+
readonly permissionGroupName?: string | null;
|
|
167
|
+
readonly policyRevision?: string;
|
|
168
|
+
readonly providerId: string;
|
|
169
|
+
}
|
|
170
|
+
export interface ConnectorAccess {
|
|
171
|
+
readonly discardedBindingCount?: number;
|
|
172
|
+
readonly providerIds?: readonly string[];
|
|
173
|
+
readonly accessRevision: number;
|
|
174
|
+
readonly bindings: readonly ProviderAccessBinding[];
|
|
175
|
+
readonly mode: ConnectorAccessMode;
|
|
176
|
+
readonly sharedAccessDigest: string;
|
|
177
|
+
readonly version: 1;
|
|
178
|
+
}
|
|
179
|
+
export type ConnectorAccessGrant = ProviderAccessIdentity & {
|
|
180
|
+
readonly connectionDisplayName: string;
|
|
181
|
+
readonly permissionGroupName?: string | null;
|
|
182
|
+
};
|
|
183
|
+
export interface ConnectorAccessSnapshot {
|
|
184
|
+
readonly mode: ConnectorAccessMode;
|
|
185
|
+
readonly sharedAccessDigest: string;
|
|
186
|
+
readonly sharedBindings: readonly ConnectorAccessGrant[];
|
|
187
|
+
readonly selectedBindings: readonly ConnectorAccessGrant[];
|
|
188
|
+
readonly version: 2;
|
|
189
|
+
}
|
|
190
|
+
export interface ConnectorAccessCandidates {
|
|
191
|
+
readonly candidates: readonly ProviderAccessBindingCandidate[];
|
|
192
|
+
readonly mode: ConnectorAccessMode;
|
|
193
|
+
readonly providerId: string;
|
|
194
|
+
readonly version: 1;
|
|
195
|
+
}
|
|
196
|
+
export interface ConnectorAccessCandidatesBatch {
|
|
197
|
+
readonly results: readonly (ConnectorAccessCandidates | {
|
|
198
|
+
readonly providerId: string;
|
|
199
|
+
readonly error: {
|
|
200
|
+
readonly code: string;
|
|
201
|
+
readonly message: string;
|
|
202
|
+
};
|
|
203
|
+
})[];
|
|
204
|
+
readonly version: 1;
|
|
205
|
+
}
|
|
100
206
|
export interface RevisionMetadata {
|
|
101
207
|
readonly actorId: string;
|
|
102
208
|
readonly createdAt: string;
|
|
@@ -114,18 +220,11 @@ export interface DraftChange {
|
|
|
114
220
|
readonly revision: RevisionMetadata;
|
|
115
221
|
readonly version: 1;
|
|
116
222
|
}
|
|
117
|
-
export
|
|
118
|
-
readonly kind: 'changes';
|
|
119
|
-
readonly revisions: readonly {
|
|
120
|
-
readonly operations: readonly ChangeOperation[];
|
|
121
|
-
readonly revision: RevisionMetadata;
|
|
122
|
-
}[];
|
|
123
|
-
readonly version: 1;
|
|
124
|
-
} | {
|
|
223
|
+
export interface DraftSync {
|
|
125
224
|
readonly draft: Draft;
|
|
126
225
|
readonly kind: 'snapshot';
|
|
127
226
|
readonly version: 1;
|
|
128
|
-
}
|
|
227
|
+
}
|
|
129
228
|
export interface Publication {
|
|
130
229
|
readonly actorId: string;
|
|
131
230
|
readonly closureDigest: string;
|
|
@@ -135,6 +234,7 @@ export interface Publication {
|
|
|
135
234
|
readonly modelVersion: number;
|
|
136
235
|
readonly operation: 'publish' | 'rollback';
|
|
137
236
|
readonly publicationId: string;
|
|
237
|
+
readonly sharedAccessDigest: string;
|
|
138
238
|
readonly revisionDigest: string;
|
|
139
239
|
readonly revisionId: string;
|
|
140
240
|
readonly sourcePublicationId?: string;
|
|
@@ -174,8 +274,10 @@ export type PublishOperation = {
|
|
|
174
274
|
export interface Diagnostic {
|
|
175
275
|
readonly code: string;
|
|
176
276
|
readonly column: number;
|
|
277
|
+
readonly fields?: readonly string[];
|
|
177
278
|
readonly line: number;
|
|
178
279
|
readonly message: string;
|
|
280
|
+
readonly mismatch?: SchemaMismatch;
|
|
179
281
|
readonly path: string;
|
|
180
282
|
readonly values?: Readonly<Record<string, string | number>>;
|
|
181
283
|
}
|
|
@@ -215,22 +317,24 @@ export interface Run {
|
|
|
215
317
|
readonly status: RunStatus;
|
|
216
318
|
readonly version: 1;
|
|
217
319
|
}
|
|
218
|
-
interface
|
|
320
|
+
export interface RunWait {
|
|
321
|
+
readonly actions: readonly ['continue'] | readonly ['approve', 'reject'];
|
|
322
|
+
readonly expiresAt: string;
|
|
323
|
+
readonly nodeId: string;
|
|
324
|
+
readonly prompt: string;
|
|
325
|
+
readonly waitId: string;
|
|
326
|
+
readonly waitingSince: string;
|
|
327
|
+
}
|
|
328
|
+
type RunDetailsBase = Run & {
|
|
219
329
|
readonly closureDigest: string;
|
|
220
330
|
readonly engineContract: string;
|
|
221
331
|
readonly engineDigest: string;
|
|
222
332
|
readonly eventsExpiresAt?: string;
|
|
223
333
|
readonly modelVersion: number;
|
|
334
|
+
readonly sharedAccessDigest: string;
|
|
224
335
|
readonly revisionDigest: string;
|
|
225
|
-
readonly
|
|
226
|
-
|
|
227
|
-
readonly expiresAt: string;
|
|
228
|
-
readonly nodeId: string;
|
|
229
|
-
readonly prompt: string;
|
|
230
|
-
readonly waitId: string;
|
|
231
|
-
readonly waitingSince: string;
|
|
232
|
-
};
|
|
233
|
-
}
|
|
336
|
+
readonly waits: readonly RunWait[];
|
|
337
|
+
};
|
|
234
338
|
export type DraftRun = RunDetailsBase & {
|
|
235
339
|
readonly source: 'draft';
|
|
236
340
|
};
|
|
@@ -251,14 +355,8 @@ export interface RunPage {
|
|
|
251
355
|
readonly runs: readonly Run[];
|
|
252
356
|
readonly version: 1;
|
|
253
357
|
}
|
|
254
|
-
export type
|
|
255
|
-
export
|
|
256
|
-
readonly createdAt: string;
|
|
257
|
-
readonly kind: RunEventKind;
|
|
258
|
-
readonly payload: Readonly<Record<string, JsonValue>>;
|
|
259
|
-
readonly sequence: number;
|
|
260
|
-
readonly sourceSequence?: number;
|
|
261
|
-
}
|
|
358
|
+
export type RunEvent = Readonly<ReturnType<typeof decodeRunEvent>>;
|
|
359
|
+
export type RunEventKind = RunEvent['kind'];
|
|
262
360
|
export interface RunEvents {
|
|
263
361
|
readonly done: boolean;
|
|
264
362
|
readonly events: readonly RunEvent[];
|
|
@@ -296,17 +394,293 @@ export type RunResult = {
|
|
|
296
394
|
readonly version: 1;
|
|
297
395
|
};
|
|
298
396
|
interface RunOptions {
|
|
397
|
+
readonly trigger: {
|
|
398
|
+
readonly nodeId: string;
|
|
399
|
+
readonly outputs: Readonly<Record<string, JsonValue>>;
|
|
400
|
+
};
|
|
299
401
|
readonly idempotencyKey?: string;
|
|
300
402
|
readonly inputs?: Readonly<Record<string, Readonly<Record<string, JsonValue>>>>;
|
|
301
403
|
}
|
|
302
404
|
interface PublicationOptions {
|
|
303
405
|
readonly idempotencyKey?: string;
|
|
304
406
|
}
|
|
305
|
-
export declare
|
|
306
|
-
readonly
|
|
307
|
-
readonly
|
|
308
|
-
|
|
309
|
-
|
|
407
|
+
export declare function decodeRunEvent(value: unknown): {
|
|
408
|
+
readonly createdAt: string;
|
|
409
|
+
readonly sequence: number;
|
|
410
|
+
readonly kind: "run.queued";
|
|
411
|
+
readonly payload: {
|
|
412
|
+
nodeId?: undefined;
|
|
413
|
+
readonly flowId?: undefined;
|
|
414
|
+
readonly scopeId?: undefined;
|
|
415
|
+
readonly progress?: undefined;
|
|
416
|
+
readonly waitIds?: undefined;
|
|
417
|
+
readonly expiresAt?: undefined;
|
|
418
|
+
readonly waitingSince?: undefined;
|
|
419
|
+
readonly action?: undefined;
|
|
420
|
+
readonly comment?: undefined;
|
|
421
|
+
readonly resolvedAt?: undefined;
|
|
422
|
+
readonly waitId?: undefined;
|
|
423
|
+
readonly result?: undefined;
|
|
424
|
+
};
|
|
425
|
+
} | {
|
|
426
|
+
readonly createdAt: string;
|
|
427
|
+
readonly sequence: number;
|
|
428
|
+
readonly kind: "run.started";
|
|
429
|
+
readonly payload: {
|
|
430
|
+
nodeId?: undefined;
|
|
431
|
+
readonly flowId: string;
|
|
432
|
+
readonly scopeId: string;
|
|
433
|
+
readonly parentScopeId?: string | undefined;
|
|
434
|
+
readonly progress?: undefined;
|
|
435
|
+
readonly waitIds?: undefined;
|
|
436
|
+
readonly expiresAt?: undefined;
|
|
437
|
+
readonly waitingSince?: undefined;
|
|
438
|
+
readonly action?: undefined;
|
|
439
|
+
readonly comment?: undefined;
|
|
440
|
+
readonly resolvedAt?: undefined;
|
|
441
|
+
readonly waitId?: undefined;
|
|
442
|
+
readonly result?: undefined;
|
|
443
|
+
};
|
|
444
|
+
} | {
|
|
445
|
+
readonly createdAt: string;
|
|
446
|
+
readonly sequence: number;
|
|
447
|
+
readonly kind: "run.progress";
|
|
448
|
+
readonly payload: {
|
|
449
|
+
nodeId?: undefined;
|
|
450
|
+
readonly flowId: string;
|
|
451
|
+
readonly scopeId: string;
|
|
452
|
+
readonly progress: number;
|
|
453
|
+
readonly waitIds?: undefined;
|
|
454
|
+
readonly expiresAt?: undefined;
|
|
455
|
+
readonly waitingSince?: undefined;
|
|
456
|
+
readonly action?: undefined;
|
|
457
|
+
readonly comment?: undefined;
|
|
458
|
+
readonly resolvedAt?: undefined;
|
|
459
|
+
readonly waitId?: undefined;
|
|
460
|
+
readonly result?: undefined;
|
|
461
|
+
};
|
|
462
|
+
} | {
|
|
463
|
+
readonly createdAt: string;
|
|
464
|
+
readonly sequence: number;
|
|
465
|
+
readonly kind: "run.waiting";
|
|
466
|
+
readonly payload: {
|
|
467
|
+
nodeId?: undefined;
|
|
468
|
+
readonly flowId?: undefined;
|
|
469
|
+
readonly scopeId?: undefined;
|
|
470
|
+
readonly progress?: undefined;
|
|
471
|
+
readonly waitIds: string[];
|
|
472
|
+
readonly expiresAt?: undefined;
|
|
473
|
+
readonly waitingSince?: undefined;
|
|
474
|
+
readonly action?: undefined;
|
|
475
|
+
readonly comment?: undefined;
|
|
476
|
+
readonly resolvedAt?: undefined;
|
|
477
|
+
readonly waitId?: undefined;
|
|
478
|
+
readonly result?: undefined;
|
|
479
|
+
};
|
|
480
|
+
} | {
|
|
481
|
+
readonly createdAt: string;
|
|
482
|
+
readonly sequence: number;
|
|
483
|
+
readonly kind: "wait.created";
|
|
484
|
+
readonly payload: {
|
|
485
|
+
readonly flowId?: undefined;
|
|
486
|
+
readonly scopeId?: undefined;
|
|
487
|
+
readonly progress?: undefined;
|
|
488
|
+
readonly waitIds?: undefined;
|
|
489
|
+
readonly expiresAt: string;
|
|
490
|
+
readonly nodeId: string;
|
|
491
|
+
readonly waitId: string;
|
|
492
|
+
readonly waitingSince: string;
|
|
493
|
+
readonly action?: undefined;
|
|
494
|
+
readonly comment?: undefined;
|
|
495
|
+
readonly resolvedAt?: undefined;
|
|
496
|
+
readonly result?: undefined;
|
|
497
|
+
};
|
|
498
|
+
} | {
|
|
499
|
+
readonly createdAt: string;
|
|
500
|
+
readonly sequence: number;
|
|
501
|
+
readonly kind: "run.resolved";
|
|
502
|
+
readonly payload: {
|
|
503
|
+
nodeId?: undefined;
|
|
504
|
+
readonly flowId?: undefined;
|
|
505
|
+
readonly scopeId?: undefined;
|
|
506
|
+
readonly progress?: undefined;
|
|
507
|
+
readonly waitIds?: undefined;
|
|
508
|
+
readonly expiresAt?: undefined;
|
|
509
|
+
readonly waitingSince?: undefined;
|
|
510
|
+
readonly action: "approve" | "continue" | "reject";
|
|
511
|
+
readonly comment: string | null;
|
|
512
|
+
readonly resolvedAt: string;
|
|
513
|
+
readonly waitId: string;
|
|
514
|
+
readonly result?: undefined;
|
|
515
|
+
};
|
|
516
|
+
} | {
|
|
517
|
+
readonly createdAt: string;
|
|
518
|
+
readonly sequence: number;
|
|
519
|
+
readonly kind: "run.canceled" | "run.completed" | "run.failed" | "run.indeterminate";
|
|
520
|
+
readonly payload: {
|
|
521
|
+
nodeId?: undefined;
|
|
522
|
+
readonly flowId?: undefined;
|
|
523
|
+
readonly scopeId?: undefined;
|
|
524
|
+
readonly progress?: undefined;
|
|
525
|
+
readonly waitIds?: undefined;
|
|
526
|
+
readonly expiresAt?: undefined;
|
|
527
|
+
readonly waitingSince?: undefined;
|
|
528
|
+
readonly action?: undefined;
|
|
529
|
+
readonly comment?: undefined;
|
|
530
|
+
readonly resolvedAt?: undefined;
|
|
531
|
+
readonly waitId?: undefined;
|
|
532
|
+
readonly result: JsonValue;
|
|
533
|
+
};
|
|
534
|
+
} | {
|
|
535
|
+
readonly createdAt: string;
|
|
536
|
+
readonly sequence: number;
|
|
537
|
+
readonly kind: "run.events-truncated";
|
|
538
|
+
readonly payload: {
|
|
539
|
+
[k: string]: JsonValue;
|
|
540
|
+
};
|
|
541
|
+
} | {
|
|
542
|
+
readonly createdAt: string;
|
|
543
|
+
readonly sequence: number;
|
|
544
|
+
readonly kind: "node.started";
|
|
545
|
+
readonly payload: {
|
|
546
|
+
readonly progress?: undefined;
|
|
547
|
+
readonly waitIds?: undefined;
|
|
548
|
+
readonly expiresAt?: undefined;
|
|
549
|
+
readonly waitingSince?: undefined;
|
|
550
|
+
readonly action?: undefined;
|
|
551
|
+
readonly comment?: undefined;
|
|
552
|
+
readonly resolvedAt?: undefined;
|
|
553
|
+
readonly waitId?: undefined;
|
|
554
|
+
readonly result?: undefined;
|
|
555
|
+
readonly flowId: string;
|
|
556
|
+
readonly scopeId: string;
|
|
557
|
+
readonly nodeId: string;
|
|
558
|
+
readonly executionId: string;
|
|
559
|
+
readonly nodeKind?: string | undefined;
|
|
560
|
+
readonly nodeTitle?: string | undefined;
|
|
561
|
+
readonly operation?: string | undefined;
|
|
562
|
+
};
|
|
563
|
+
} | {
|
|
564
|
+
readonly createdAt: string;
|
|
565
|
+
readonly sequence: number;
|
|
566
|
+
readonly kind: "node.completed";
|
|
567
|
+
readonly payload: {
|
|
568
|
+
readonly progress?: undefined;
|
|
569
|
+
readonly waitIds?: undefined;
|
|
570
|
+
readonly expiresAt?: undefined;
|
|
571
|
+
readonly waitingSince?: undefined;
|
|
572
|
+
readonly action?: undefined;
|
|
573
|
+
readonly comment?: undefined;
|
|
574
|
+
readonly resolvedAt?: undefined;
|
|
575
|
+
readonly waitId?: undefined;
|
|
576
|
+
readonly result?: undefined;
|
|
577
|
+
readonly flowId: string;
|
|
578
|
+
readonly scopeId: string;
|
|
579
|
+
readonly nodeId: string;
|
|
580
|
+
readonly executionId: string;
|
|
581
|
+
readonly outputs: {
|
|
582
|
+
[k: string]: JsonValue;
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
} | {
|
|
586
|
+
readonly createdAt: string;
|
|
587
|
+
readonly sequence: number;
|
|
588
|
+
readonly kind: "node.failed";
|
|
589
|
+
readonly payload: {
|
|
590
|
+
readonly progress?: undefined;
|
|
591
|
+
readonly waitIds?: undefined;
|
|
592
|
+
readonly expiresAt?: undefined;
|
|
593
|
+
readonly waitingSince?: undefined;
|
|
594
|
+
readonly action?: undefined;
|
|
595
|
+
readonly comment?: undefined;
|
|
596
|
+
readonly resolvedAt?: undefined;
|
|
597
|
+
readonly waitId?: undefined;
|
|
598
|
+
readonly result?: undefined;
|
|
599
|
+
readonly flowId: string;
|
|
600
|
+
readonly scopeId: string;
|
|
601
|
+
readonly nodeId: string;
|
|
602
|
+
readonly executionId: string;
|
|
603
|
+
readonly error: {
|
|
604
|
+
readonly code: string;
|
|
605
|
+
readonly message: string;
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
} | {
|
|
609
|
+
readonly createdAt: string;
|
|
610
|
+
readonly sequence: number;
|
|
611
|
+
readonly kind: "node.log";
|
|
612
|
+
readonly payload: {
|
|
613
|
+
readonly progress?: undefined;
|
|
614
|
+
readonly waitIds?: undefined;
|
|
615
|
+
readonly expiresAt?: undefined;
|
|
616
|
+
readonly waitingSince?: undefined;
|
|
617
|
+
readonly action?: undefined;
|
|
618
|
+
readonly comment?: undefined;
|
|
619
|
+
readonly resolvedAt?: undefined;
|
|
620
|
+
readonly waitId?: undefined;
|
|
621
|
+
readonly result?: undefined;
|
|
622
|
+
readonly flowId: string;
|
|
623
|
+
readonly scopeId: string;
|
|
624
|
+
readonly nodeId: string;
|
|
625
|
+
readonly executionId: string;
|
|
626
|
+
readonly level: "debug" | "error" | "info" | "warn";
|
|
627
|
+
readonly message: string;
|
|
628
|
+
};
|
|
629
|
+
} | {
|
|
630
|
+
readonly createdAt: string;
|
|
631
|
+
readonly sequence: number;
|
|
632
|
+
readonly kind: "node.progress";
|
|
633
|
+
readonly payload: {
|
|
634
|
+
readonly waitIds?: undefined;
|
|
635
|
+
readonly expiresAt?: undefined;
|
|
636
|
+
readonly waitingSince?: undefined;
|
|
637
|
+
readonly action?: undefined;
|
|
638
|
+
readonly comment?: undefined;
|
|
639
|
+
readonly resolvedAt?: undefined;
|
|
640
|
+
readonly waitId?: undefined;
|
|
641
|
+
readonly result?: undefined;
|
|
642
|
+
readonly flowId: string;
|
|
643
|
+
readonly scopeId: string;
|
|
644
|
+
readonly nodeId: string;
|
|
645
|
+
readonly executionId: string;
|
|
646
|
+
readonly progress: number;
|
|
647
|
+
};
|
|
648
|
+
} | {
|
|
649
|
+
readonly createdAt: string;
|
|
650
|
+
readonly sequence: number;
|
|
651
|
+
readonly kind: "node.artifact";
|
|
652
|
+
readonly payload: {
|
|
653
|
+
readonly progress?: undefined;
|
|
654
|
+
readonly waitIds?: undefined;
|
|
655
|
+
readonly expiresAt?: undefined;
|
|
656
|
+
readonly waitingSince?: undefined;
|
|
657
|
+
readonly action?: undefined;
|
|
658
|
+
readonly comment?: undefined;
|
|
659
|
+
readonly resolvedAt?: undefined;
|
|
660
|
+
readonly waitId?: undefined;
|
|
661
|
+
readonly result?: undefined;
|
|
662
|
+
readonly flowId: string;
|
|
663
|
+
readonly scopeId: string;
|
|
664
|
+
readonly nodeId: string;
|
|
665
|
+
readonly executionId: string;
|
|
666
|
+
readonly artifact: {
|
|
667
|
+
readonly kind: 'artifact';
|
|
668
|
+
readonly id: string;
|
|
669
|
+
readonly name: string;
|
|
670
|
+
readonly size: number;
|
|
671
|
+
readonly digest: string;
|
|
672
|
+
readonly mediaType?: string | undefined;
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
export type ConditionalResult<T> = {
|
|
677
|
+
readonly modified: true;
|
|
678
|
+
readonly data: T;
|
|
679
|
+
readonly etag: string | null;
|
|
680
|
+
} | {
|
|
681
|
+
readonly modified: false;
|
|
682
|
+
readonly etag: string | null;
|
|
683
|
+
};
|
|
310
684
|
export declare class ControlClient {
|
|
311
685
|
private readonly requestControl;
|
|
312
686
|
constructor(requestControl: ControlRequest);
|
|
@@ -315,6 +689,15 @@ export declare class ControlClient {
|
|
|
315
689
|
readonly includeTotal?: boolean;
|
|
316
690
|
readonly limit?: number;
|
|
317
691
|
}): Promise<FlowPage>;
|
|
692
|
+
listEventSources(flowId?: string, signal?: AbortSignal): Promise<{
|
|
693
|
+
readonly version: 1;
|
|
694
|
+
readonly sources: readonly EventSource[];
|
|
695
|
+
readonly teamId?: string | null;
|
|
696
|
+
}>;
|
|
697
|
+
listEventSourceConnections(teamId: string | null, signal?: AbortSignal): Promise<readonly ConnectorConnection[]>;
|
|
698
|
+
createEventSource(input: CreateEventSource): Promise<EventSource>;
|
|
699
|
+
updateEventSource(sourceId: string, input: UpdateEventSource): Promise<EventSource>;
|
|
700
|
+
deleteEventSource(sourceId: string, expectedRevision: number): Promise<void>;
|
|
318
701
|
listVariables(): Promise<{
|
|
319
702
|
readonly variables: readonly Variable[];
|
|
320
703
|
readonly version: 1;
|
|
@@ -322,14 +705,19 @@ export declare class ControlClient {
|
|
|
322
705
|
getVariable(name: string): Promise<Variable>;
|
|
323
706
|
putVariable(name: string, value: string): Promise<Variable>;
|
|
324
707
|
deleteVariable(name: string): Promise<void>;
|
|
325
|
-
createFlow(name: string, idempotencyKey?: string): Promise<Flow>;
|
|
708
|
+
createFlow(name: string, idempotencyKey?: string, teamId?: string): Promise<Flow>;
|
|
326
709
|
getFlow(flowId: string): Promise<Flow>;
|
|
327
710
|
renameFlow(flowId: string, name: string): Promise<Flow>;
|
|
328
711
|
deleteFlow(flowId: string): Promise<Flow>;
|
|
329
|
-
listTriggerKeys(signal?: AbortSignal): Promise<readonly TriggerKeySummary[]>;
|
|
712
|
+
listTriggerKeys(signal?: AbortSignal, locale?: string): Promise<readonly TriggerKeySummary[]>;
|
|
330
713
|
listTriggerDefinitions(signal?: AbortSignal): Promise<readonly TriggerKeySnapshot[]>;
|
|
714
|
+
readCatalog<T>(query: {
|
|
715
|
+
readonly path: string;
|
|
716
|
+
readonly decode: (data: unknown) => T;
|
|
717
|
+
}, etag: string | null, signal?: AbortSignal): Promise<ConditionalResult<T>>;
|
|
718
|
+
getTriggerCatalog(locale: string, cached?: TriggerCatalogCache, signal?: AbortSignal): Promise<TriggerCatalogCache>;
|
|
331
719
|
getTriggerKey(key: string, signal?: AbortSignal): Promise<TriggerKeySnapshot>;
|
|
332
|
-
listFlowTriggerBindings(flowId: string): Promise<readonly TriggerBinding[]>;
|
|
720
|
+
listFlowTriggerBindings(flowId: string, signal?: AbortSignal): Promise<readonly TriggerBinding[]>;
|
|
333
721
|
getFlowTriggerBinding(flowId: string, triggerNodeId: string): Promise<TriggerBindingDetail>;
|
|
334
722
|
listFlowTriggerActivities(flowId: string, triggerNodeId: string, options?: {
|
|
335
723
|
readonly cursor?: string;
|
|
@@ -338,42 +726,79 @@ export declare class ControlClient {
|
|
|
338
726
|
pauseFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
|
|
339
727
|
resumeFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
|
|
340
728
|
testFlowPollTrigger(flowId: string, triggerNodeId: string): Promise<PollTriggerTestResult>;
|
|
729
|
+
getEditor(flowId: string): Promise<{
|
|
730
|
+
readonly flow: Flow;
|
|
731
|
+
readonly draft: Draft;
|
|
732
|
+
readonly live: Live;
|
|
733
|
+
readonly presentation: Presentation;
|
|
734
|
+
readonly version: 1;
|
|
735
|
+
}>;
|
|
736
|
+
getPresentation(flowId: string): Promise<Presentation>;
|
|
341
737
|
getDraft(flowId: string): Promise<Draft>;
|
|
342
|
-
syncDraft(flowId: string
|
|
343
|
-
getRevision(flowId: string, revisionId: string): Promise<Draft>;
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
738
|
+
syncDraft(flowId: string): Promise<DraftSync>;
|
|
739
|
+
getRevision(flowId: string, revisionId: string, signal?: AbortSignal): Promise<Draft>;
|
|
740
|
+
listTriggerConfigOptions(flowId: string, nodeId: string, field: string, signal?: AbortSignal): Promise<readonly TriggerConfigOption[]>;
|
|
741
|
+
listConnectorTeams(signal?: AbortSignal): Promise<{
|
|
742
|
+
enabled: boolean;
|
|
743
|
+
teams: {
|
|
744
|
+
id: string;
|
|
745
|
+
name: string;
|
|
746
|
+
systemCreated: boolean;
|
|
747
|
+
}[];
|
|
748
|
+
version: 1;
|
|
749
|
+
}>;
|
|
750
|
+
listConnectorProviders(signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorProvider[]>;
|
|
751
|
+
removeConnectionUsage(flowId: string, connectionId: string, expectedRevisionId: string, expectedAccessRevision: number, idempotencyKey: string): Promise<DraftChange>;
|
|
752
|
+
getConnectorAccess(flowId: string, signal?: AbortSignal): Promise<ConnectorAccess>;
|
|
753
|
+
getPublishedConnectorAccess(flowId: string, publicationId: string, signal?: AbortSignal): Promise<ConnectorAccessSnapshot>;
|
|
754
|
+
listProviderAccessBindingCandidates(flowId: string, providerIds: readonly string[], signal?: AbortSignal): Promise<ConnectorAccessCandidatesBatch>;
|
|
755
|
+
setConnectorService(flowId: string, providerId: string, selected: boolean, expectedAccessRevision: number): Promise<ConnectorAccess>;
|
|
756
|
+
addProviderAccessBinding(flowId: string, providerId: string, accessBindingId: string, expectedAccessRevision: number): Promise<ConnectorAccess>;
|
|
757
|
+
removeProviderAccessBinding(flowId: string, providerId: string, accessBindingId: string, expectedAccessRevision: number): Promise<ConnectorAccess>;
|
|
758
|
+
listConnectorActions(serviceId?: string, signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorAction[]>;
|
|
759
|
+
searchConnectorActions(query: string, signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorAction[]>;
|
|
760
|
+
getConnectorAction(actionId: string, signal?: AbortSignal, flowId?: string, locale?: string, fresh?: boolean): Promise<ConnectorAction>;
|
|
761
|
+
listAllConnectorConnections(signal?: AbortSignal, flowId?: string, fresh?: boolean): Promise<readonly ConnectorConnection[]>;
|
|
762
|
+
listConnectorConnections(serviceId: string, signal?: AbortSignal, flowId?: string, fresh?: boolean): Promise<readonly ConnectorConnection[]>;
|
|
763
|
+
createConnectorConnectionPage(serviceId: string, flowId?: string, teamId?: string): Promise<string>;
|
|
764
|
+
changeDraft(flowId: string, expectedRevisionId: string, operations: readonly DraftOperation[], changeId?: string): Promise<DraftChange>;
|
|
765
|
+
repairDraft(flowId: string, expectedRevisionId: string, changeId?: string): Promise<DraftChange>;
|
|
351
766
|
checkFlow(flowId: string, revisionId: string): Promise<FlowCheck>;
|
|
352
|
-
getLive(flowId: string): Promise<Live>;
|
|
767
|
+
getLive(flowId: string, signal?: AbortSignal): Promise<Live>;
|
|
353
768
|
listPublications(flowId: string, options?: {
|
|
354
769
|
readonly cursor?: string;
|
|
355
770
|
readonly includeTotal?: boolean;
|
|
356
771
|
readonly limit?: number;
|
|
357
|
-
}): Promise<PublicationPage>;
|
|
358
|
-
createDraftRun(flowId: string, revisionId: string, options
|
|
359
|
-
createLiveRun(publicationId: string, options
|
|
772
|
+
}, signal?: AbortSignal): Promise<PublicationPage>;
|
|
773
|
+
createDraftRun(flowId: string, revisionId: string, options: RunOptions): Promise<DraftRun>;
|
|
774
|
+
createLiveRun(publicationId: string, options: RunOptions): Promise<LiveRun>;
|
|
775
|
+
setFlowEnabled(flowId: string, publicationId: string, enabled: boolean): Promise<Flow>;
|
|
360
776
|
publishFlow(flowId: string, revisionId: string, expectedLivePublicationId: string | null, options?: PublicationOptions): Promise<PublishOperation>;
|
|
361
|
-
getPublishOperation(flowId: string, operationId: string): Promise<PublishOperation>;
|
|
777
|
+
getPublishOperation(flowId: string, operationId: string, signal?: AbortSignal): Promise<PublishOperation>;
|
|
362
778
|
rollbackFlow(flowId: string, publicationId: string, expectedLivePublicationId: string, options?: PublicationOptions): Promise<Publication>;
|
|
363
|
-
getRun(runId: string): Promise<RunDetails>;
|
|
779
|
+
getRun(runId: string, signal?: AbortSignal): Promise<RunDetails>;
|
|
364
780
|
listRuns(flowId: string, options?: {
|
|
781
|
+
readonly createdBefore?: string;
|
|
782
|
+
readonly createdFrom?: string;
|
|
365
783
|
readonly cursor?: string;
|
|
366
784
|
readonly limit?: number;
|
|
785
|
+
readonly pendingWait?: boolean;
|
|
786
|
+
readonly runId?: string;
|
|
787
|
+
readonly source?: Run['source'];
|
|
367
788
|
readonly status?: RunStatus;
|
|
368
789
|
}): Promise<RunPage>;
|
|
369
790
|
getRunEvents(runId: string, options?: {
|
|
370
791
|
readonly after?: number;
|
|
371
792
|
readonly limit?: number;
|
|
372
|
-
}): Promise<RunEvents>;
|
|
373
|
-
|
|
793
|
+
}, signal?: AbortSignal): Promise<RunEvents>;
|
|
794
|
+
listRunResults(runId: string, after?: string, signal?: AbortSignal): Promise<ReturnType<typeof decodeResultList>>;
|
|
795
|
+
readRunResult(runId: string, resultId: string, options?: ResultQuery, signal?: AbortSignal): Promise<ReturnType<typeof decodeResultRead>>;
|
|
796
|
+
downloadRunResult(runId: string, resultId: string, signal?: AbortSignal): Promise<Blob>;
|
|
797
|
+
getRunResult(runId: string, signal?: AbortSignal): Promise<RunResult>;
|
|
374
798
|
cancelRun(runId: string): Promise<RunCancellation>;
|
|
375
|
-
resolveRunWait(runId: string, waitId: string, action: WaitAction): Promise<{
|
|
799
|
+
resolveRunWait(runId: string, waitId: string, action: WaitAction, comment?: string | null): Promise<{
|
|
376
800
|
readonly action: WaitAction | null;
|
|
801
|
+
readonly comment: string | null;
|
|
377
802
|
readonly resolutionAccepted: boolean;
|
|
378
803
|
readonly resolvedAt: string | null;
|
|
379
804
|
readonly runId: string;
|
|
@@ -382,5 +807,7 @@ export declare class ControlClient {
|
|
|
382
807
|
readonly waitId: string;
|
|
383
808
|
}>;
|
|
384
809
|
private connectorActions;
|
|
810
|
+
protected connectorRequest<Value>(path: string, _kind: 'providers' | 'actions' | 'connections', signal: AbortSignal | undefined, decode: (value: unknown) => Value, _fresh?: boolean): Promise<Value>;
|
|
811
|
+
protected response(path: string, init: RequestInit, allowNotModified?: boolean): Promise<Response>;
|
|
385
812
|
protected request<Value = unknown>(path: string, init?: RequestInit): Promise<Value>;
|
|
386
813
|
}
|