@oomol-lab/open-flow 0.1.0-beta.31 → 0.1.0-beta.33
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-FBRnCMK6.js → createResourceDialog-DRB0OEtr.js} +2 -2
- package/dist/browser/{editorComponent-CyH2o-Ji.js → editorComponent-bXA-KosC.js} +2744 -1113
- package/dist/browser/flow-authoring-node.d.ts +5 -3
- package/dist/browser/flow-authoring.js +1569 -1462
- package/dist/browser/flow-change.d.ts +44 -17
- package/dist/browser/flow-change.js +1614 -1492
- 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-C21gYJuc.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-DAaGuZwP.js → workbenchSelect-DNteZJYP.js} +1695 -1471
- package/dist/common/control-api-conformance.d.ts +6 -0
- package/dist/common/control-api-conformance.js +502 -388
- package/dist/common/control-api-errors.d.ts +16 -0
- package/dist/common/control-api.d.ts +49 -6
- package/dist/common/control-api.js +1715 -1564
- package/dist/common/control-requests.d.ts +10 -0
- package/dist/common/control-requests.js +1182 -1137
- package/dist/common/event-sources.d.ts +0 -1
- package/dist/common/feishu-events.d.ts +0 -1
- package/dist/common/flow-encoding.js +580 -557
- 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 +2184 -1912
- 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.js +1718 -1571
- package/dist/common/poll-trigger.d.ts +3 -1
- package/dist/common/poll-trigger.js +7512 -28
- package/dist/common/provider-triggers.js +6798 -3518
- 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.js +921 -738
- 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-ScpWTKtQ.js +0 -12293
- package/dist/browser/flowWorkspace-CY1r6dwz.js +0 -153101
- 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,12 +379,12 @@ 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;
|
|
351
390
|
readonly comment?: undefined;
|
|
@@ -358,13 +397,13 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
358
397
|
readonly sequence: number;
|
|
359
398
|
readonly kind: "run.started";
|
|
360
399
|
readonly payload: {
|
|
400
|
+
nodeId?: undefined;
|
|
361
401
|
readonly flowId: string;
|
|
362
402
|
readonly scopeId: string;
|
|
363
403
|
readonly parentScopeId?: string | undefined;
|
|
364
404
|
readonly progress?: undefined;
|
|
365
405
|
readonly waitIds?: undefined;
|
|
366
406
|
readonly expiresAt?: undefined;
|
|
367
|
-
readonly nodeId?: undefined;
|
|
368
407
|
readonly waitingSince?: undefined;
|
|
369
408
|
readonly action?: undefined;
|
|
370
409
|
readonly comment?: undefined;
|
|
@@ -377,12 +416,12 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
377
416
|
readonly sequence: number;
|
|
378
417
|
readonly kind: "run.progress";
|
|
379
418
|
readonly payload: {
|
|
419
|
+
nodeId?: undefined;
|
|
380
420
|
readonly flowId: string;
|
|
381
421
|
readonly scopeId: string;
|
|
382
422
|
readonly progress: number;
|
|
383
423
|
readonly waitIds?: undefined;
|
|
384
424
|
readonly expiresAt?: undefined;
|
|
385
|
-
readonly nodeId?: undefined;
|
|
386
425
|
readonly waitingSince?: undefined;
|
|
387
426
|
readonly action?: undefined;
|
|
388
427
|
readonly comment?: undefined;
|
|
@@ -395,12 +434,12 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
395
434
|
readonly sequence: number;
|
|
396
435
|
readonly kind: "run.waiting";
|
|
397
436
|
readonly payload: {
|
|
437
|
+
nodeId?: undefined;
|
|
398
438
|
readonly flowId?: undefined;
|
|
399
439
|
readonly scopeId?: undefined;
|
|
400
440
|
readonly progress?: undefined;
|
|
401
441
|
readonly waitIds: string[];
|
|
402
442
|
readonly expiresAt?: undefined;
|
|
403
|
-
readonly nodeId?: undefined;
|
|
404
443
|
readonly waitingSince?: undefined;
|
|
405
444
|
readonly action?: undefined;
|
|
406
445
|
readonly comment?: undefined;
|
|
@@ -431,12 +470,12 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
431
470
|
readonly sequence: number;
|
|
432
471
|
readonly kind: "run.resolved";
|
|
433
472
|
readonly payload: {
|
|
473
|
+
nodeId?: undefined;
|
|
434
474
|
readonly flowId?: undefined;
|
|
435
475
|
readonly scopeId?: undefined;
|
|
436
476
|
readonly progress?: undefined;
|
|
437
477
|
readonly waitIds?: undefined;
|
|
438
478
|
readonly expiresAt?: undefined;
|
|
439
|
-
readonly nodeId?: undefined;
|
|
440
479
|
readonly waitingSince?: undefined;
|
|
441
480
|
readonly action: "approve" | "continue" | "reject";
|
|
442
481
|
readonly comment: string | null;
|
|
@@ -449,12 +488,12 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
449
488
|
readonly sequence: number;
|
|
450
489
|
readonly kind: "run.canceled" | "run.completed" | "run.failed" | "run.indeterminate";
|
|
451
490
|
readonly payload: {
|
|
491
|
+
nodeId?: undefined;
|
|
452
492
|
readonly flowId?: undefined;
|
|
453
493
|
readonly scopeId?: undefined;
|
|
454
494
|
readonly progress?: undefined;
|
|
455
495
|
readonly waitIds?: undefined;
|
|
456
496
|
readonly expiresAt?: undefined;
|
|
457
|
-
readonly nodeId?: undefined;
|
|
458
497
|
readonly waitingSince?: undefined;
|
|
459
498
|
readonly action?: undefined;
|
|
460
499
|
readonly comment?: undefined;
|
|
@@ -670,6 +709,10 @@ export declare class ControlClient {
|
|
|
670
709
|
getRevision(flowId: string, revisionId: string): Promise<Draft>;
|
|
671
710
|
listTriggerConfigOptions(flowId: string, nodeId: string, field: string, signal?: AbortSignal): Promise<readonly TriggerConfigOption[]>;
|
|
672
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>;
|
|
673
716
|
listConnectorActions(serviceId?: string, signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorAction[]>;
|
|
674
717
|
searchConnectorActions(query: string, signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorAction[]>;
|
|
675
718
|
getConnectorAction(actionId: string, signal?: AbortSignal, flowId?: string, locale?: string, fresh?: boolean): Promise<ConnectorAction>;
|