@oomol-lab/open-flow 0.1.0-beta.30 → 0.1.0-beta.32
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/{createResourceDialog-_y2xHaUA.js → createResourceDialog-DRB0OEtr.js} +2 -2
- package/dist/browser/{editorComponent-Dq4IKp5R.js → editorComponent-bXA-KosC.js} +2765 -1113
- package/dist/browser/flow-authoring-node.d.ts +5 -3
- package/dist/browser/flow-authoring.js +1575 -1472
- package/dist/browser/flow-change.d.ts +47 -20
- package/dist/browser/flow-change.js +1728 -1602
- package/dist/browser/flow-input-value.d.ts +6 -0
- package/dist/browser/flow-notifications.d.ts +5 -0
- package/dist/browser/flowChanges-FiZJreeB.js +9855 -0
- package/dist/browser/{flowRunInputEditorStore-CTORQcA2.js → flowRunInputEditorStore-Bgb5vSeS.js} +3 -3
- package/dist/browser/flowWorkspace-CBo6Ih_c.js +40987 -0
- package/dist/browser/{inputValues-DJfFraxG.js → inputValues-CUyjbECo.js} +2 -2
- package/dist/browser/licenses.md +0 -58
- package/dist/browser/{lite-BuKZ8joP.js → lite-BA96NG4M.js} +8 -4
- package/dist/browser/theme.css +2 -0
- package/dist/browser/ui.css +2 -1
- package/dist/browser/ui.d.ts +31 -3
- package/dist/browser/ui.js +3547 -772
- package/dist/browser/{value-DPg_9yXB.js → value-B_yE9ean.js} +22 -14
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +1 -0
- package/dist/browser/workbench.js +3944 -1077
- package/dist/browser/{workbenchSelect-BDPIQxYK.js → workbenchSelect-DNteZJYP.js} +1698 -1470
- package/dist/common/control-api-conformance.d.ts +6 -0
- package/dist/common/control-api-conformance.js +510 -394
- package/dist/common/control-api-errors.d.ts +16 -0
- package/dist/common/control-api.d.ts +64 -7
- package/dist/common/control-api.js +1724 -1568
- package/dist/common/control-requests.d.ts +16 -0
- package/dist/common/control-requests.js +685 -651
- package/dist/common/event-sources.d.ts +0 -1
- package/dist/common/feishu-events.d.ts +0 -1
- package/dist/common/flow-encoding.js +1168 -1140
- package/dist/common/flow-graph.d.ts +16 -9
- package/dist/common/flow-notifications.d.ts +5 -0
- package/dist/common/flow-semantics.d.ts +2 -2
- package/dist/common/flow-semantics.js +2223 -1954
- package/dist/common/fr-ClB96SQY.js +298 -0
- package/dist/common/integration-trigger.d.ts +1 -0
- package/dist/common/integration-trigger.js +7572 -88
- package/dist/common/ja-BJF-VrP2.js +298 -0
- package/dist/common/ko-Bght_VaB.js +298 -0
- package/dist/common/mcp.d.ts +1 -0
- package/dist/common/mcp.js +1727 -1574
- package/dist/common/poll-trigger.d.ts +3 -1
- package/dist/common/poll-trigger.js +7512 -28
- package/dist/common/provider-triggers.js +6806 -3525
- package/dist/common/ru-DrP4BRM5.js +298 -0
- package/dist/common/runtime-contract.d.ts +1 -1
- package/dist/common/runtime-contract.js +41 -27
- package/dist/common/scheduler.d.ts +7 -1
- package/dist/common/scheduler.js +981 -792
- package/dist/common/trigger-catalog.d.ts +3 -1
- package/dist/common/trigger-config.d.ts +7 -0
- package/dist/common/zh-CN-D2od3TNw.js +298 -0
- package/dist/common/zh-TW-CRmc3FMz.js +298 -0
- package/package.json +1 -1
- package/dist/browser/flowChanges-AdN0Iqma.js +0 -12304
- package/dist/browser/flowWorkspace-BrtzLKWB.js +0 -153066
- package/dist/common/fr-iv1541dF.js +0 -93
- package/dist/common/ja-Bq-ZDOD4.js +0 -93
- package/dist/common/ko-Z-k9R2c6.js +0 -93
- package/dist/common/ru-B4gFecYZ.js +0 -93
- package/dist/common/zh-CN-ByQ6nYam.js +0 -93
- package/dist/common/zh-TW-QjIarvX9.js +0 -93
|
@@ -3,6 +3,10 @@ export declare const controlErrorCode: {
|
|
|
3
3
|
readonly authorizationDenied: 'authorization.denied';
|
|
4
4
|
readonly bindingUnresolved: 'binding.unresolved';
|
|
5
5
|
readonly connectorActionNotFound: 'connector.action-not-found';
|
|
6
|
+
readonly connectorAccessConflict: 'connector.access-conflict';
|
|
7
|
+
readonly connectorAccessInvalid: 'connector.access-invalid';
|
|
8
|
+
readonly connectorAccessRequired: 'connector.access-required';
|
|
9
|
+
readonly connectorAccessUnsupported: 'connector.access-unsupported';
|
|
6
10
|
readonly connectorUnconfigured: 'connector.unconfigured';
|
|
7
11
|
readonly connectorUnavailable: 'connector.unavailable';
|
|
8
12
|
readonly connectorConsoleUnconfigured: 'connector.console-unconfigured';
|
|
@@ -68,6 +72,18 @@ export declare const controlErrorMetadata: {
|
|
|
68
72
|
readonly "connector.action-not-found": {
|
|
69
73
|
readonly status: 404;
|
|
70
74
|
};
|
|
75
|
+
readonly "connector.access-conflict": {
|
|
76
|
+
readonly status: 412;
|
|
77
|
+
};
|
|
78
|
+
readonly "connector.access-invalid": {
|
|
79
|
+
readonly status: 409;
|
|
80
|
+
};
|
|
81
|
+
readonly "connector.access-required": {
|
|
82
|
+
readonly status: 409;
|
|
83
|
+
};
|
|
84
|
+
readonly "connector.access-unsupported": {
|
|
85
|
+
readonly status: 409;
|
|
86
|
+
};
|
|
71
87
|
readonly "connector.unconfigured": {
|
|
72
88
|
readonly status: 503;
|
|
73
89
|
};
|
|
@@ -137,6 +137,43 @@ export interface ConnectorProvider {
|
|
|
137
137
|
readonly serviceId: string;
|
|
138
138
|
readonly serviceName: string;
|
|
139
139
|
}
|
|
140
|
+
export type ConnectorAccessMode = 'implicit' | 'selectable';
|
|
141
|
+
export type ProviderAccessBindingStatus = 'active' | 'forbidden' | 'invalid' | 'missing';
|
|
142
|
+
export interface ProviderAccessBinding {
|
|
143
|
+
readonly accessBindingId: string;
|
|
144
|
+
readonly connectionDisplayName: string;
|
|
145
|
+
readonly permissionGroupName?: string | null;
|
|
146
|
+
readonly policyRevision?: string;
|
|
147
|
+
readonly providerId: string;
|
|
148
|
+
readonly status: ProviderAccessBindingStatus;
|
|
149
|
+
}
|
|
150
|
+
export interface ProviderAccessBindingCandidate {
|
|
151
|
+
readonly accessBindingId: string;
|
|
152
|
+
readonly connectionDisplayName: string;
|
|
153
|
+
readonly isDefault?: boolean;
|
|
154
|
+
readonly permissions?: {
|
|
155
|
+
readonly actionIds: readonly string[];
|
|
156
|
+
readonly allActions: boolean;
|
|
157
|
+
readonly configured: boolean;
|
|
158
|
+
readonly proxy: boolean;
|
|
159
|
+
};
|
|
160
|
+
readonly permissionGroupName?: string | null;
|
|
161
|
+
readonly policyRevision?: string;
|
|
162
|
+
readonly providerId: string;
|
|
163
|
+
}
|
|
164
|
+
export interface ConnectorAccess {
|
|
165
|
+
readonly accessRevision: number;
|
|
166
|
+
readonly bindings: readonly ProviderAccessBinding[];
|
|
167
|
+
readonly mode: ConnectorAccessMode;
|
|
168
|
+
readonly providerAccessDigest: string;
|
|
169
|
+
readonly version: 1;
|
|
170
|
+
}
|
|
171
|
+
export interface ConnectorAccessCandidates {
|
|
172
|
+
readonly candidates: readonly ProviderAccessBindingCandidate[];
|
|
173
|
+
readonly mode: ConnectorAccessMode;
|
|
174
|
+
readonly providerId: string;
|
|
175
|
+
readonly version: 1;
|
|
176
|
+
}
|
|
140
177
|
export interface RevisionMetadata {
|
|
141
178
|
readonly actorId: string;
|
|
142
179
|
readonly createdAt: string;
|
|
@@ -168,6 +205,7 @@ export interface Publication {
|
|
|
168
205
|
readonly modelVersion: number;
|
|
169
206
|
readonly operation: 'publish' | 'rollback';
|
|
170
207
|
readonly publicationId: string;
|
|
208
|
+
readonly providerAccessDigest: string;
|
|
171
209
|
readonly revisionDigest: string;
|
|
172
210
|
readonly revisionId: string;
|
|
173
211
|
readonly sourcePublicationId?: string;
|
|
@@ -263,6 +301,7 @@ type RunDetailsBase = Run & {
|
|
|
263
301
|
readonly engineDigest: string;
|
|
264
302
|
readonly eventsExpiresAt?: string;
|
|
265
303
|
readonly modelVersion: number;
|
|
304
|
+
readonly providerAccessDigest: string;
|
|
266
305
|
readonly revisionDigest: string;
|
|
267
306
|
readonly waits: readonly RunWait[];
|
|
268
307
|
};
|
|
@@ -340,14 +379,15 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
340
379
|
readonly sequence: number;
|
|
341
380
|
readonly kind: "run.queued";
|
|
342
381
|
readonly payload: {
|
|
382
|
+
nodeId?: undefined;
|
|
343
383
|
readonly flowId?: undefined;
|
|
344
384
|
readonly scopeId?: undefined;
|
|
345
385
|
readonly progress?: undefined;
|
|
346
386
|
readonly waitIds?: undefined;
|
|
347
387
|
readonly expiresAt?: undefined;
|
|
348
|
-
readonly nodeId?: undefined;
|
|
349
388
|
readonly waitingSince?: undefined;
|
|
350
389
|
readonly action?: undefined;
|
|
390
|
+
readonly comment?: undefined;
|
|
351
391
|
readonly resolvedAt?: undefined;
|
|
352
392
|
readonly waitId?: undefined;
|
|
353
393
|
readonly result?: undefined;
|
|
@@ -357,15 +397,16 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
357
397
|
readonly sequence: number;
|
|
358
398
|
readonly kind: "run.started";
|
|
359
399
|
readonly payload: {
|
|
400
|
+
nodeId?: undefined;
|
|
360
401
|
readonly flowId: string;
|
|
361
402
|
readonly scopeId: string;
|
|
362
403
|
readonly parentScopeId?: string | undefined;
|
|
363
404
|
readonly progress?: undefined;
|
|
364
405
|
readonly waitIds?: undefined;
|
|
365
406
|
readonly expiresAt?: undefined;
|
|
366
|
-
readonly nodeId?: undefined;
|
|
367
407
|
readonly waitingSince?: undefined;
|
|
368
408
|
readonly action?: undefined;
|
|
409
|
+
readonly comment?: undefined;
|
|
369
410
|
readonly resolvedAt?: undefined;
|
|
370
411
|
readonly waitId?: undefined;
|
|
371
412
|
readonly result?: undefined;
|
|
@@ -375,14 +416,15 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
375
416
|
readonly sequence: number;
|
|
376
417
|
readonly kind: "run.progress";
|
|
377
418
|
readonly payload: {
|
|
419
|
+
nodeId?: undefined;
|
|
378
420
|
readonly flowId: string;
|
|
379
421
|
readonly scopeId: string;
|
|
380
422
|
readonly progress: number;
|
|
381
423
|
readonly waitIds?: undefined;
|
|
382
424
|
readonly expiresAt?: undefined;
|
|
383
|
-
readonly nodeId?: undefined;
|
|
384
425
|
readonly waitingSince?: undefined;
|
|
385
426
|
readonly action?: undefined;
|
|
427
|
+
readonly comment?: undefined;
|
|
386
428
|
readonly resolvedAt?: undefined;
|
|
387
429
|
readonly waitId?: undefined;
|
|
388
430
|
readonly result?: undefined;
|
|
@@ -392,14 +434,15 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
392
434
|
readonly sequence: number;
|
|
393
435
|
readonly kind: "run.waiting";
|
|
394
436
|
readonly payload: {
|
|
437
|
+
nodeId?: undefined;
|
|
395
438
|
readonly flowId?: undefined;
|
|
396
439
|
readonly scopeId?: undefined;
|
|
397
440
|
readonly progress?: undefined;
|
|
398
441
|
readonly waitIds: string[];
|
|
399
442
|
readonly expiresAt?: undefined;
|
|
400
|
-
readonly nodeId?: undefined;
|
|
401
443
|
readonly waitingSince?: undefined;
|
|
402
444
|
readonly action?: undefined;
|
|
445
|
+
readonly comment?: undefined;
|
|
403
446
|
readonly resolvedAt?: undefined;
|
|
404
447
|
readonly waitId?: undefined;
|
|
405
448
|
readonly result?: undefined;
|
|
@@ -418,6 +461,7 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
418
461
|
readonly waitId: string;
|
|
419
462
|
readonly waitingSince: string;
|
|
420
463
|
readonly action?: undefined;
|
|
464
|
+
readonly comment?: undefined;
|
|
421
465
|
readonly resolvedAt?: undefined;
|
|
422
466
|
readonly result?: undefined;
|
|
423
467
|
};
|
|
@@ -426,14 +470,15 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
426
470
|
readonly sequence: number;
|
|
427
471
|
readonly kind: "run.resolved";
|
|
428
472
|
readonly payload: {
|
|
473
|
+
nodeId?: undefined;
|
|
429
474
|
readonly flowId?: undefined;
|
|
430
475
|
readonly scopeId?: undefined;
|
|
431
476
|
readonly progress?: undefined;
|
|
432
477
|
readonly waitIds?: undefined;
|
|
433
478
|
readonly expiresAt?: undefined;
|
|
434
|
-
readonly nodeId?: undefined;
|
|
435
479
|
readonly waitingSince?: undefined;
|
|
436
480
|
readonly action: "approve" | "continue" | "reject";
|
|
481
|
+
readonly comment: string | null;
|
|
437
482
|
readonly resolvedAt: string;
|
|
438
483
|
readonly waitId: string;
|
|
439
484
|
readonly result?: undefined;
|
|
@@ -443,14 +488,15 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
443
488
|
readonly sequence: number;
|
|
444
489
|
readonly kind: "run.canceled" | "run.completed" | "run.failed" | "run.indeterminate";
|
|
445
490
|
readonly payload: {
|
|
491
|
+
nodeId?: undefined;
|
|
446
492
|
readonly flowId?: undefined;
|
|
447
493
|
readonly scopeId?: undefined;
|
|
448
494
|
readonly progress?: undefined;
|
|
449
495
|
readonly waitIds?: undefined;
|
|
450
496
|
readonly expiresAt?: undefined;
|
|
451
|
-
readonly nodeId?: undefined;
|
|
452
497
|
readonly waitingSince?: undefined;
|
|
453
498
|
readonly action?: undefined;
|
|
499
|
+
readonly comment?: undefined;
|
|
454
500
|
readonly resolvedAt?: undefined;
|
|
455
501
|
readonly waitId?: undefined;
|
|
456
502
|
readonly result: JsonValue;
|
|
@@ -472,6 +518,7 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
472
518
|
readonly expiresAt?: undefined;
|
|
473
519
|
readonly waitingSince?: undefined;
|
|
474
520
|
readonly action?: undefined;
|
|
521
|
+
readonly comment?: undefined;
|
|
475
522
|
readonly resolvedAt?: undefined;
|
|
476
523
|
readonly waitId?: undefined;
|
|
477
524
|
readonly result?: undefined;
|
|
@@ -493,6 +540,7 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
493
540
|
readonly expiresAt?: undefined;
|
|
494
541
|
readonly waitingSince?: undefined;
|
|
495
542
|
readonly action?: undefined;
|
|
543
|
+
readonly comment?: undefined;
|
|
496
544
|
readonly resolvedAt?: undefined;
|
|
497
545
|
readonly waitId?: undefined;
|
|
498
546
|
readonly result?: undefined;
|
|
@@ -514,6 +562,7 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
514
562
|
readonly expiresAt?: undefined;
|
|
515
563
|
readonly waitingSince?: undefined;
|
|
516
564
|
readonly action?: undefined;
|
|
565
|
+
readonly comment?: undefined;
|
|
517
566
|
readonly resolvedAt?: undefined;
|
|
518
567
|
readonly waitId?: undefined;
|
|
519
568
|
readonly result?: undefined;
|
|
@@ -536,6 +585,7 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
536
585
|
readonly expiresAt?: undefined;
|
|
537
586
|
readonly waitingSince?: undefined;
|
|
538
587
|
readonly action?: undefined;
|
|
588
|
+
readonly comment?: undefined;
|
|
539
589
|
readonly resolvedAt?: undefined;
|
|
540
590
|
readonly waitId?: undefined;
|
|
541
591
|
readonly result?: undefined;
|
|
@@ -555,6 +605,7 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
555
605
|
readonly expiresAt?: undefined;
|
|
556
606
|
readonly waitingSince?: undefined;
|
|
557
607
|
readonly action?: undefined;
|
|
608
|
+
readonly comment?: undefined;
|
|
558
609
|
readonly resolvedAt?: undefined;
|
|
559
610
|
readonly waitId?: undefined;
|
|
560
611
|
readonly result?: undefined;
|
|
@@ -574,6 +625,7 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
574
625
|
readonly expiresAt?: undefined;
|
|
575
626
|
readonly waitingSince?: undefined;
|
|
576
627
|
readonly action?: undefined;
|
|
628
|
+
readonly comment?: undefined;
|
|
577
629
|
readonly resolvedAt?: undefined;
|
|
578
630
|
readonly waitId?: undefined;
|
|
579
631
|
readonly result?: undefined;
|
|
@@ -657,6 +709,10 @@ export declare class ControlClient {
|
|
|
657
709
|
getRevision(flowId: string, revisionId: string): Promise<Draft>;
|
|
658
710
|
listTriggerConfigOptions(flowId: string, nodeId: string, field: string, signal?: AbortSignal): Promise<readonly TriggerConfigOption[]>;
|
|
659
711
|
listConnectorProviders(signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorProvider[]>;
|
|
712
|
+
getConnectorAccess(flowId: string, signal?: AbortSignal): Promise<ConnectorAccess>;
|
|
713
|
+
listProviderAccessBindingCandidates(flowId: string, providerId: string, signal?: AbortSignal): Promise<ConnectorAccessCandidates>;
|
|
714
|
+
addProviderAccessBinding(flowId: string, providerId: string, accessBindingId: string, expectedAccessRevision: number): Promise<ConnectorAccess>;
|
|
715
|
+
removeProviderAccessBinding(flowId: string, providerId: string, accessBindingId: string, expectedAccessRevision: number): Promise<ConnectorAccess>;
|
|
660
716
|
listConnectorActions(serviceId?: string, signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorAction[]>;
|
|
661
717
|
searchConnectorActions(query: string, signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorAction[]>;
|
|
662
718
|
getConnectorAction(actionId: string, signal?: AbortSignal, flowId?: string, locale?: string, fresh?: boolean): Promise<ConnectorAction>;
|
|
@@ -698,8 +754,9 @@ export declare class ControlClient {
|
|
|
698
754
|
downloadRunResult(runId: string, resultId: string, signal?: AbortSignal): Promise<Blob>;
|
|
699
755
|
getRunResult(runId: string, signal?: AbortSignal): Promise<RunResult>;
|
|
700
756
|
cancelRun(runId: string): Promise<RunCancellation>;
|
|
701
|
-
resolveRunWait(runId: string, waitId: string, action: WaitAction): Promise<{
|
|
757
|
+
resolveRunWait(runId: string, waitId: string, action: WaitAction, comment?: string | null): Promise<{
|
|
702
758
|
readonly action: WaitAction | null;
|
|
759
|
+
readonly comment: string | null;
|
|
703
760
|
readonly resolutionAccepted: boolean;
|
|
704
761
|
readonly resolvedAt: string | null;
|
|
705
762
|
readonly runId: string;
|