@oomol-lab/open-flow 0.1.0-beta.2 → 0.1.0-beta.21

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.
Files changed (93) hide show
  1. package/dist/browser/{_virtual_open-flow-twemoji-DJwKsM_w.js → _virtual_open-flow-twemoji-CpHJOEsk.js} +4028 -2
  2. package/dist/browser/carbon-Cn-DTyjG.js +54 -0
  3. package/dist/browser/createResourceDialog-CjuJryCv.js +110 -0
  4. package/dist/browser/dist-B_T-OpQp.js +4 -0
  5. package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
  6. package/dist/browser/{dist-CPuF50D9.js → dist-D1VYgicl.js} +426 -305
  7. package/dist/browser/dist-DSe6KRsr.js +1224 -0
  8. package/dist/browser/dist-DYjIVIZC.js +795 -0
  9. package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
  10. package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
  11. package/dist/browser/{dist-CJpzJrLM.js → dist-DwvhuMxw.js} +894 -895
  12. package/dist/browser/dist-DxahK_I8.js +2688 -0
  13. package/dist/browser/{dist-C46JByB-.js → dist-Dz6Nglsd.js} +61 -61
  14. package/dist/browser/{dist-DUzA0Ukh.js → dist-TJfrvoIQ.js} +141 -142
  15. package/dist/browser/{esm-B_PbUobB.js → esm-B7A42FzW.js} +68 -59
  16. package/dist/browser/flow-authoring-module.d.ts +2 -2
  17. package/dist/browser/flow-authoring-node.d.ts +20 -6
  18. package/dist/browser/flow-authoring.d.ts +1 -1
  19. package/dist/browser/flow-authoring.js +5405 -286
  20. package/dist/browser/flow-change-schema.d.ts +6 -0
  21. package/dist/browser/flow-change.d.ts +173 -14
  22. package/dist/browser/flow-change.js +5271 -114
  23. package/dist/browser/flow-notifications.d.ts +5 -0
  24. package/dist/browser/flowChanges-Tg1duLry.js +11081 -0
  25. package/dist/browser/{flowRunInputEditorStore-BeyUSWpO.js → flowRunInputEditorStore-BBqQIOCR.js} +1020 -4104
  26. package/dist/browser/flowWorkspace-CoK10XHY.js +148497 -0
  27. package/dist/browser/host-conformance.d.ts +7 -0
  28. package/dist/browser/host-conformance.js +33 -0
  29. package/dist/browser/{diagnostics-giPSzyMo.js → i18n-CVBh0Ni1.js} +3390 -5715
  30. package/dist/browser/inputValues-CDiBMKu8.js +43 -0
  31. package/dist/browser/{languages-DgJehE1g.js → languages-C0zQ4GSo.js} +5 -25
  32. package/dist/browser/licenses.md +149 -700
  33. package/dist/browser/main-BDnNHhkU.js +50 -0
  34. package/dist/browser/{markdownContent-DdlIRN3_.js → markdownContent-BBgH9ZIV.js} +41 -41
  35. package/dist/browser/theme.css +461 -34
  36. package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-DnAmJCzu.js} +70 -71
  37. package/dist/browser/ui-input.d.ts +3 -0
  38. package/dist/browser/ui-label.d.ts +3 -0
  39. package/dist/browser/ui-textarea.d.ts +3 -0
  40. package/dist/browser/ui.css +2 -0
  41. package/dist/browser/ui.css.d.ts +1 -0
  42. package/dist/browser/ui.d.ts +12 -0
  43. package/dist/browser/ui.js +2598 -0
  44. package/dist/browser/useValueChanged-BY05Usw-.js +2944 -0
  45. package/dist/browser/workbench-contract.d.ts +8 -2
  46. package/dist/browser/workbench.css +1 -1
  47. package/dist/browser/workbench.d.ts +1 -0
  48. package/dist/browser/workbench.js +2043 -1327
  49. package/dist/browser/workbenchSelect-DEmv7SLW.js +11666 -0
  50. package/dist/common/control-api-conformance.d.ts +7 -0
  51. package/dist/common/control-api-conformance.js +5629 -166
  52. package/dist/common/control-api-errors.d.ts +9 -0
  53. package/dist/common/control-api.d.ts +309 -38
  54. package/dist/common/control-api.js +5877 -575
  55. package/dist/common/control-requests.d.ts +68 -0
  56. package/dist/common/control-requests.js +4950 -0
  57. package/dist/common/engine-contract.d.ts +3 -1
  58. package/dist/common/flow-agent.d.ts +10 -0
  59. package/dist/common/flow-encoding.d.ts +11 -2
  60. package/dist/common/flow-encoding.js +4972 -66
  61. package/dist/common/flow-graph.d.ts +6 -0
  62. package/dist/common/flow-json.d.ts +2 -0
  63. package/dist/common/flow-modules.d.ts +20 -0
  64. package/dist/common/flow-notifications.d.ts +5 -0
  65. package/dist/common/flow-schema.d.ts +8 -0
  66. package/dist/common/flow-semantics.d.ts +10 -6
  67. package/dist/common/flow-semantics.js +10042 -1700
  68. package/dist/common/integration-trigger.d.ts +24 -1
  69. package/dist/common/integration-trigger.js +188 -52
  70. package/dist/common/mcp-conformance.d.ts +2 -0
  71. package/dist/common/mcp.d.ts +765 -0
  72. package/dist/common/mcp.js +6538 -0
  73. package/dist/common/provider-triggers.js +6057 -993
  74. package/dist/common/run-events.d.ts +2 -2
  75. package/dist/common/run-events.js +12 -17
  76. package/dist/common/run-lifecycle.d.ts +21 -2
  77. package/dist/common/run-lifecycle.js +83 -2
  78. package/dist/common/run-results.d.ts +57 -0
  79. package/dist/common/runtime-contract.d.ts +36 -3
  80. package/dist/common/runtime-contract.js +227 -19
  81. package/dist/common/scheduler.d.ts +77 -18
  82. package/dist/common/scheduler.js +8259 -248
  83. package/dist/index.d.ts +6 -5
  84. package/package.json +21 -1
  85. package/dist/browser/carbon-DMCVsjHo.js +0 -53
  86. package/dist/browser/createResourceDialog-BkZns-oZ.js +0 -504
  87. package/dist/browser/dist-BMqL-qR5.js +0 -1894
  88. package/dist/browser/dist-BpopSHwP.js +0 -1543
  89. package/dist/browser/dist-CUSrALSX.js +0 -1620
  90. package/dist/browser/flowWorkspace-DAMLVMcF.js +0 -47584
  91. package/dist/browser/getPseudoElementBounds-ESJExRFX.js +0 -7642
  92. package/dist/browser/main-DmjVyuWr.js +0 -76
  93. package/dist/browser/workbenchSelect-B2s1HV-Y.js +0 -1374
@@ -27,6 +27,7 @@ export declare const controlErrorCode: {
27
27
  readonly runNotFound: 'run.not-found';
28
28
  readonly runNotTerminal: 'run.not-terminal';
29
29
  readonly runOverloaded: 'run.overloaded';
30
+ readonly runWaitNotFound: 'run.wait-not-found';
30
31
  readonly triggerKeyInvalid: 'trigger-key.invalid';
31
32
  readonly triggerKeyNotFound: 'trigger-key.not-found';
32
33
  readonly triggerNotFound: 'trigger.not-found';
@@ -120,6 +121,9 @@ export declare const controlErrorMetadata: {
120
121
  readonly "run.overloaded": {
121
122
  readonly status: 429;
122
123
  };
124
+ readonly "run.wait-not-found": {
125
+ readonly status: 404;
126
+ };
123
127
  readonly "trigger-key.invalid": {
124
128
  readonly status: 409;
125
129
  };
@@ -139,3 +143,8 @@ export declare const controlErrorMetadata: {
139
143
  readonly status: 404;
140
144
  };
141
145
  };
146
+ export declare class ApiError extends Error {
147
+ readonly code: string;
148
+ readonly status: number;
149
+ constructor(status: number, code: string, message: string);
150
+ }
@@ -1,11 +1,19 @@
1
+ import type { ResultQuery } from './run-results.js';
2
+ import { decodeResultList, decodeResultRead } from './run-results.js';
3
+ export { readResult, parseResultQuery, decodeResultList, decodeResultRead, type ResultCall, type ResultInfo, type ResultPage, type ResultQuery, } from './run-results.js';
1
4
  import type { RunStatus } from './run-lifecycle.js';
2
- import type { ChangeOperation, InputPortDefinition, JsonValue, PortDefinition, RevisionContent, TriggerKeySnapshot } from '../browser/flow-change.js';
3
- export type { JsonValue, TriggerKeySnapshot } from '../browser/flow-change.js';
5
+ import type { ChangeOperation, InputPortDefinition, JsonValue, PortDefinition, RevisionContent, TriggerKeySnapshot, WaitAction } from '../browser/flow-change.js';
6
+ export type { JsonValue, TriggerKeySnapshot, WaitAction } from '../browser/flow-change.js';
4
7
  export type { RunStatus } from './run-lifecycle.js';
5
- export { controlErrorCode, controlErrorMetadata, type ControlErrorCode } from './control-api-errors.js';
8
+ export { ApiError, controlErrorCode, controlErrorMetadata, type ControlErrorCode } from './control-api-errors.js';
6
9
  export type { FlowCatalogEvent, FlowChangeEvent } from './flow-notifications.js';
7
10
  export type ControlRequest = (path: string, init?: RequestInit) => Promise<Response>;
8
11
  export interface Flow {
12
+ readonly live?: {
13
+ readonly enabled: boolean;
14
+ readonly publicationId: string;
15
+ readonly revisionId: string;
16
+ };
9
17
  readonly createdAt: string;
10
18
  readonly draftRevisionId: string;
11
19
  readonly flowId: string;
@@ -14,6 +22,12 @@ export interface Flow {
14
22
  readonly updatedAt: string;
15
23
  readonly version: 1;
16
24
  }
25
+ export interface Presentation {
26
+ readonly revision: number;
27
+ readonly updatedAt: string;
28
+ readonly value: Readonly<Record<string, JsonValue>>;
29
+ readonly version: 1;
30
+ }
17
31
  export interface FlowPage {
18
32
  readonly flows: readonly Flow[];
19
33
  readonly nextCursor?: string;
@@ -35,6 +49,10 @@ export interface TriggerKeySummary {
35
49
  readonly type: TriggerKeySnapshot['type'];
36
50
  }
37
51
  export interface TriggerBinding {
52
+ readonly listener?: {
53
+ readonly health: 'healthy' | 'failed' | 'needs_reauth';
54
+ readonly lastErrorCode?: string;
55
+ };
38
56
  readonly currentPublicationId?: string;
39
57
  readonly currentRevisionId?: string;
40
58
  readonly endpointUrl?: string;
@@ -72,6 +90,7 @@ export interface PollTriggerTestResult {
72
90
  readonly version: 1;
73
91
  }
74
92
  export interface ConnectorConnection {
93
+ readonly alias?: string;
75
94
  readonly connectionId: string;
76
95
  readonly displayName: string;
77
96
  readonly isDefault: boolean;
@@ -79,10 +98,13 @@ export interface ConnectorConnection {
79
98
  readonly status: 'active' | 'disconnected' | 'error' | 'reauth_required';
80
99
  }
81
100
  export interface ConnectorAction {
101
+ readonly inputSchema?: JsonValue;
102
+ readonly outputSchema?: JsonValue;
82
103
  readonly actionId: string;
83
104
  readonly authenticated: boolean;
84
105
  readonly defaultConnection?: ConnectorConnection;
85
106
  readonly description: string;
107
+ readonly homepageUrl?: string;
86
108
  readonly icon?: string;
87
109
  readonly inputs: Readonly<Record<string, InputPortDefinition>>;
88
110
  readonly name: string;
@@ -91,6 +113,7 @@ export interface ConnectorAction {
91
113
  readonly serviceName: string;
92
114
  }
93
115
  export interface ConnectorProvider {
116
+ readonly homepageUrl?: string;
94
117
  readonly icon?: string;
95
118
  readonly serviceId: string;
96
119
  readonly serviceName: string;
@@ -112,18 +135,11 @@ export interface DraftChange {
112
135
  readonly revision: RevisionMetadata;
113
136
  readonly version: 1;
114
137
  }
115
- export type DraftSync = {
116
- readonly kind: 'changes';
117
- readonly revisions: readonly {
118
- readonly operations: readonly ChangeOperation[];
119
- readonly revision: RevisionMetadata;
120
- }[];
121
- readonly version: 1;
122
- } | {
138
+ export interface DraftSync {
123
139
  readonly draft: Draft;
124
140
  readonly kind: 'snapshot';
125
141
  readonly version: 1;
126
- };
142
+ }
127
143
  export interface Publication {
128
144
  readonly actorId: string;
129
145
  readonly closureDigest: string;
@@ -213,14 +229,27 @@ export interface Run {
213
229
  readonly status: RunStatus;
214
230
  readonly version: 1;
215
231
  }
216
- interface RunDetailsBase extends Run {
232
+ type RunDetailsBase = Omit<Run, 'status'> & {
217
233
  readonly closureDigest: string;
218
234
  readonly engineContract: string;
219
235
  readonly engineDigest: string;
220
236
  readonly eventsExpiresAt?: string;
221
237
  readonly modelVersion: number;
222
238
  readonly revisionDigest: string;
223
- }
239
+ } & ({
240
+ readonly status: Exclude<RunStatus, 'waiting'>;
241
+ readonly waiting?: never;
242
+ } | {
243
+ readonly status: 'waiting';
244
+ readonly waiting: {
245
+ readonly actions: readonly ['continue'] | readonly ['approve', 'reject'];
246
+ readonly expiresAt: string;
247
+ readonly nodeId: string;
248
+ readonly prompt: string;
249
+ readonly waitId: string;
250
+ readonly waitingSince: string;
251
+ };
252
+ });
224
253
  export type DraftRun = RunDetailsBase & {
225
254
  readonly source: 'draft';
226
255
  };
@@ -241,14 +270,8 @@ export interface RunPage {
241
270
  readonly runs: readonly Run[];
242
271
  readonly version: 1;
243
272
  }
244
- export type RunEventKind = 'node.artifact' | 'node.completed' | 'node.failed' | 'node.log' | 'node.output' | 'node.progress' | 'node.started' | 'run.canceled' | 'run.completed' | 'run.events-truncated' | 'run.failed' | 'run.indeterminate' | 'run.progress' | 'run.queued' | 'run.started';
245
- export interface RunEvent {
246
- readonly createdAt: string;
247
- readonly kind: RunEventKind;
248
- readonly payload: Readonly<Record<string, JsonValue>>;
249
- readonly sequence: number;
250
- readonly sourceSequence?: number;
251
- }
273
+ export type RunEvent = Readonly<ReturnType<typeof decodeRunEvent>>;
274
+ export type RunEventKind = RunEvent['kind'];
252
275
  export interface RunEvents {
253
276
  readonly done: boolean;
254
277
  readonly events: readonly RunEvent[];
@@ -286,17 +309,243 @@ export type RunResult = {
286
309
  readonly version: 1;
287
310
  };
288
311
  interface RunOptions {
312
+ readonly trigger: {
313
+ readonly nodeId: string;
314
+ readonly payload: JsonValue;
315
+ };
289
316
  readonly idempotencyKey?: string;
290
317
  readonly inputs?: Readonly<Record<string, Readonly<Record<string, JsonValue>>>>;
291
318
  }
292
319
  interface PublicationOptions {
293
320
  readonly idempotencyKey?: string;
294
321
  }
295
- export declare class ApiError extends Error {
296
- readonly code: string;
297
- readonly status: number;
298
- constructor(status: number, code: string, message: string);
299
- }
322
+ export declare function decodeRunEvent(value: unknown): {
323
+ readonly createdAt: string;
324
+ readonly sequence: number;
325
+ readonly kind: "run.queued";
326
+ readonly payload: {
327
+ readonly flowId?: undefined;
328
+ readonly scopeId?: undefined;
329
+ readonly progress?: undefined;
330
+ readonly expiresAt?: undefined;
331
+ readonly nodeId?: undefined;
332
+ readonly waitingSince?: undefined;
333
+ readonly action?: undefined;
334
+ readonly resolvedAt?: undefined;
335
+ readonly waitId?: undefined;
336
+ readonly result?: undefined;
337
+ };
338
+ } | {
339
+ readonly createdAt: string;
340
+ readonly sequence: number;
341
+ readonly kind: "run.started";
342
+ readonly payload: {
343
+ readonly flowId: string;
344
+ readonly scopeId: string;
345
+ readonly parentScopeId?: string | undefined;
346
+ readonly progress?: undefined;
347
+ readonly expiresAt?: undefined;
348
+ readonly nodeId?: undefined;
349
+ readonly waitingSince?: undefined;
350
+ readonly action?: undefined;
351
+ readonly resolvedAt?: undefined;
352
+ readonly waitId?: undefined;
353
+ readonly result?: undefined;
354
+ };
355
+ } | {
356
+ readonly createdAt: string;
357
+ readonly sequence: number;
358
+ readonly kind: "run.progress";
359
+ readonly payload: {
360
+ readonly flowId: string;
361
+ readonly scopeId: string;
362
+ readonly progress: number;
363
+ readonly expiresAt?: undefined;
364
+ readonly nodeId?: undefined;
365
+ readonly waitingSince?: undefined;
366
+ readonly action?: undefined;
367
+ readonly resolvedAt?: undefined;
368
+ readonly waitId?: undefined;
369
+ readonly result?: undefined;
370
+ };
371
+ } | {
372
+ readonly createdAt: string;
373
+ readonly sequence: number;
374
+ readonly kind: "run.waiting";
375
+ readonly payload: {
376
+ readonly flowId?: undefined;
377
+ readonly scopeId?: undefined;
378
+ readonly progress?: undefined;
379
+ readonly expiresAt: string;
380
+ readonly nodeId: string;
381
+ readonly waitId: string;
382
+ readonly waitingSince: string;
383
+ readonly action?: undefined;
384
+ readonly resolvedAt?: undefined;
385
+ readonly result?: undefined;
386
+ };
387
+ } | {
388
+ readonly createdAt: string;
389
+ readonly sequence: number;
390
+ readonly kind: "run.resolved";
391
+ readonly payload: {
392
+ readonly flowId?: undefined;
393
+ readonly scopeId?: undefined;
394
+ readonly progress?: undefined;
395
+ readonly expiresAt?: undefined;
396
+ readonly nodeId?: undefined;
397
+ readonly waitingSince?: undefined;
398
+ readonly action: "approve" | "continue" | "reject";
399
+ readonly resolvedAt: string;
400
+ readonly waitId: string;
401
+ readonly result?: undefined;
402
+ };
403
+ } | {
404
+ readonly createdAt: string;
405
+ readonly sequence: number;
406
+ readonly kind: "run.canceled" | "run.completed" | "run.failed" | "run.indeterminate";
407
+ readonly payload: {
408
+ readonly flowId?: undefined;
409
+ readonly scopeId?: undefined;
410
+ readonly progress?: undefined;
411
+ readonly expiresAt?: undefined;
412
+ readonly nodeId?: undefined;
413
+ readonly waitingSince?: undefined;
414
+ readonly action?: undefined;
415
+ readonly resolvedAt?: undefined;
416
+ readonly waitId?: undefined;
417
+ readonly result: JsonValue;
418
+ };
419
+ } | {
420
+ readonly createdAt: string;
421
+ readonly sequence: number;
422
+ readonly kind: "run.events-truncated";
423
+ readonly payload: {
424
+ [k: string]: JsonValue;
425
+ };
426
+ } | {
427
+ readonly createdAt: string;
428
+ readonly sequence: number;
429
+ readonly kind: "node.started";
430
+ readonly payload: {
431
+ readonly progress?: undefined;
432
+ readonly expiresAt?: undefined;
433
+ readonly waitingSince?: undefined;
434
+ readonly action?: undefined;
435
+ readonly resolvedAt?: undefined;
436
+ readonly waitId?: undefined;
437
+ readonly result?: undefined;
438
+ readonly flowId: string;
439
+ readonly scopeId: string;
440
+ readonly nodeId: string;
441
+ readonly executionId: string;
442
+ readonly nodeKind?: string | undefined;
443
+ readonly nodeTitle?: string | undefined;
444
+ readonly operation?: string | undefined;
445
+ };
446
+ } | {
447
+ readonly createdAt: string;
448
+ readonly sequence: number;
449
+ readonly kind: "node.completed";
450
+ readonly payload: {
451
+ readonly progress?: undefined;
452
+ readonly expiresAt?: undefined;
453
+ readonly waitingSince?: undefined;
454
+ readonly action?: undefined;
455
+ readonly resolvedAt?: undefined;
456
+ readonly waitId?: undefined;
457
+ readonly result?: undefined;
458
+ readonly flowId: string;
459
+ readonly scopeId: string;
460
+ readonly nodeId: string;
461
+ readonly executionId: string;
462
+ readonly outputs: {
463
+ [k: string]: JsonValue;
464
+ };
465
+ };
466
+ } | {
467
+ readonly createdAt: string;
468
+ readonly sequence: number;
469
+ readonly kind: "node.failed";
470
+ readonly payload: {
471
+ readonly progress?: undefined;
472
+ readonly expiresAt?: undefined;
473
+ readonly waitingSince?: undefined;
474
+ readonly action?: undefined;
475
+ readonly resolvedAt?: undefined;
476
+ readonly waitId?: undefined;
477
+ readonly result?: undefined;
478
+ readonly flowId: string;
479
+ readonly scopeId: string;
480
+ readonly nodeId: string;
481
+ readonly executionId: string;
482
+ readonly error: {
483
+ readonly code: string;
484
+ readonly message: string;
485
+ };
486
+ };
487
+ } | {
488
+ readonly createdAt: string;
489
+ readonly sequence: number;
490
+ readonly kind: "node.log";
491
+ readonly payload: {
492
+ readonly progress?: undefined;
493
+ readonly expiresAt?: undefined;
494
+ readonly waitingSince?: undefined;
495
+ readonly action?: undefined;
496
+ readonly resolvedAt?: undefined;
497
+ readonly waitId?: undefined;
498
+ readonly result?: undefined;
499
+ readonly flowId: string;
500
+ readonly scopeId: string;
501
+ readonly nodeId: string;
502
+ readonly executionId: string;
503
+ readonly level: "debug" | "error" | "info" | "warn";
504
+ readonly message: string;
505
+ };
506
+ } | {
507
+ readonly createdAt: string;
508
+ readonly sequence: number;
509
+ readonly kind: "node.progress";
510
+ readonly payload: {
511
+ readonly expiresAt?: undefined;
512
+ readonly waitingSince?: undefined;
513
+ readonly action?: undefined;
514
+ readonly resolvedAt?: undefined;
515
+ readonly waitId?: undefined;
516
+ readonly result?: undefined;
517
+ readonly flowId: string;
518
+ readonly scopeId: string;
519
+ readonly nodeId: string;
520
+ readonly executionId: string;
521
+ readonly progress: number;
522
+ };
523
+ } | {
524
+ readonly createdAt: string;
525
+ readonly sequence: number;
526
+ readonly kind: "node.artifact";
527
+ readonly payload: {
528
+ readonly progress?: undefined;
529
+ readonly expiresAt?: undefined;
530
+ readonly waitingSince?: undefined;
531
+ readonly action?: undefined;
532
+ readonly resolvedAt?: undefined;
533
+ readonly waitId?: undefined;
534
+ readonly result?: undefined;
535
+ readonly flowId: string;
536
+ readonly scopeId: string;
537
+ readonly nodeId: string;
538
+ readonly executionId: string;
539
+ readonly artifact: {
540
+ readonly kind: 'artifact';
541
+ readonly id: string;
542
+ readonly name: string;
543
+ readonly size: number;
544
+ readonly digest: string;
545
+ readonly mediaType?: string | undefined;
546
+ };
547
+ };
548
+ };
300
549
  export declare class ControlClient {
301
550
  private readonly requestControl;
302
551
  constructor(requestControl: ControlRequest);
@@ -319,7 +568,7 @@ export declare class ControlClient {
319
568
  listTriggerKeys(signal?: AbortSignal): Promise<readonly TriggerKeySummary[]>;
320
569
  listTriggerDefinitions(signal?: AbortSignal): Promise<readonly TriggerKeySnapshot[]>;
321
570
  getTriggerKey(key: string, signal?: AbortSignal): Promise<TriggerKeySnapshot>;
322
- listFlowTriggerBindings(flowId: string): Promise<readonly TriggerBinding[]>;
571
+ listFlowTriggerBindings(flowId: string, signal?: AbortSignal): Promise<readonly TriggerBinding[]>;
323
572
  getFlowTriggerBinding(flowId: string, triggerNodeId: string): Promise<TriggerBindingDetail>;
324
573
  listFlowTriggerActivities(flowId: string, triggerNodeId: string, options?: {
325
574
  readonly cursor?: string;
@@ -328,8 +577,16 @@ export declare class ControlClient {
328
577
  pauseFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
329
578
  resumeFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
330
579
  testFlowPollTrigger(flowId: string, triggerNodeId: string): Promise<PollTriggerTestResult>;
580
+ getEditor(flowId: string): Promise<{
581
+ readonly flow: Flow;
582
+ readonly draft: Draft;
583
+ readonly live: Live;
584
+ readonly presentation: Presentation;
585
+ readonly version: 1;
586
+ }>;
587
+ getPresentation(flowId: string): Promise<Presentation>;
331
588
  getDraft(flowId: string): Promise<Draft>;
332
- syncDraft(flowId: string, fromRevisionId?: string): Promise<DraftSync>;
589
+ syncDraft(flowId: string): Promise<DraftSync>;
333
590
  getRevision(flowId: string, revisionId: string): Promise<Draft>;
334
591
  listConnectorProviders(signal?: AbortSignal, flowId?: string): Promise<readonly ConnectorProvider[]>;
335
592
  listConnectorActions(serviceId?: string, signal?: AbortSignal, flowId?: string): Promise<readonly ConnectorAction[]>;
@@ -337,20 +594,21 @@ export declare class ControlClient {
337
594
  getConnectorAction(actionId: string, signal?: AbortSignal, flowId?: string): Promise<ConnectorAction>;
338
595
  listConnectorConnections(serviceId: string, signal?: AbortSignal, flowId?: string): Promise<readonly ConnectorConnection[]>;
339
596
  createConnectorConnectionPage(serviceId: string, flowId?: string): Promise<string>;
340
- changeDraft(flowId: string, expectedRevisionId: string, operations: readonly ChangeOperation[]): Promise<DraftChange>;
597
+ changeDraft(flowId: string, expectedRevisionId: string, operations: readonly ChangeOperation[], changeId?: string): Promise<DraftChange>;
341
598
  checkFlow(flowId: string, revisionId: string): Promise<FlowCheck>;
342
- getLive(flowId: string): Promise<Live>;
599
+ getLive(flowId: string, signal?: AbortSignal): Promise<Live>;
343
600
  listPublications(flowId: string, options?: {
344
601
  readonly cursor?: string;
345
602
  readonly includeTotal?: boolean;
346
603
  readonly limit?: number;
347
- }): Promise<PublicationPage>;
348
- createDraftRun(flowId: string, revisionId: string, options?: RunOptions): Promise<DraftRun>;
349
- createLiveRun(publicationId: string, options?: RunOptions): Promise<LiveRun>;
604
+ }, signal?: AbortSignal): Promise<PublicationPage>;
605
+ createDraftRun(flowId: string, revisionId: string, options: RunOptions): Promise<DraftRun>;
606
+ createLiveRun(publicationId: string, options: RunOptions): Promise<LiveRun>;
607
+ setFlowEnabled(flowId: string, publicationId: string, enabled: boolean): Promise<Flow>;
350
608
  publishFlow(flowId: string, revisionId: string, expectedLivePublicationId: string | null, options?: PublicationOptions): Promise<PublishOperation>;
351
- getPublishOperation(flowId: string, operationId: string): Promise<PublishOperation>;
609
+ getPublishOperation(flowId: string, operationId: string, signal?: AbortSignal): Promise<PublishOperation>;
352
610
  rollbackFlow(flowId: string, publicationId: string, expectedLivePublicationId: string, options?: PublicationOptions): Promise<Publication>;
353
- getRun(runId: string): Promise<RunDetails>;
611
+ getRun(runId: string, signal?: AbortSignal): Promise<RunDetails>;
354
612
  listRuns(flowId: string, options?: {
355
613
  readonly cursor?: string;
356
614
  readonly limit?: number;
@@ -359,9 +617,22 @@ export declare class ControlClient {
359
617
  getRunEvents(runId: string, options?: {
360
618
  readonly after?: number;
361
619
  readonly limit?: number;
362
- }): Promise<RunEvents>;
363
- getRunResult(runId: string): Promise<RunResult>;
620
+ }, signal?: AbortSignal): Promise<RunEvents>;
621
+ listRunResults(runId: string, after?: string, signal?: AbortSignal): Promise<ReturnType<typeof decodeResultList>>;
622
+ readRunResult(runId: string, resultId: string, options?: ResultQuery, signal?: AbortSignal): Promise<ReturnType<typeof decodeResultRead>>;
623
+ downloadRunResult(runId: string, resultId: string, signal?: AbortSignal): Promise<Blob>;
624
+ getRunResult(runId: string, signal?: AbortSignal): Promise<RunResult>;
364
625
  cancelRun(runId: string): Promise<RunCancellation>;
626
+ resolveRunWait(runId: string, waitId: string, action: WaitAction): Promise<{
627
+ readonly action: WaitAction | null;
628
+ readonly resolutionAccepted: boolean;
629
+ readonly resolvedAt: string | null;
630
+ readonly runId: string;
631
+ readonly status: RunStatus;
632
+ readonly version: 1;
633
+ readonly waitId: string;
634
+ }>;
365
635
  private connectorActions;
636
+ private response;
366
637
  protected request<Value = unknown>(path: string, init?: RequestInit): Promise<Value>;
367
638
  }