@oomol-lab/open-flow 0.1.0-beta.21 → 0.1.0-beta.23
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-CjuJryCv.js → createResourceDialog-PKbMMpEk.js} +29 -29
- package/dist/browser/event-sources.d.ts +30 -0
- package/dist/browser/{flowChanges-Tg1duLry.js → flowChanges-BUlMz4iC.js} +4236 -3019
- package/dist/browser/{flowWorkspace-CoK10XHY.js → flowWorkspace-DLArN17T.js} +49585 -42617
- package/dist/browser/{i18n-CVBh0Ni1.js → input-group-C2frNYAx.js} +1801 -75
- package/dist/browser/{inputValues-CDiBMKu8.js → inputValues-CcGVt51C.js} +10 -10
- package/dist/browser/licenses.md +60 -0
- package/dist/browser/lite-Cy6aeiL6.js +8538 -0
- package/dist/browser/{markdownContent-BBgH9ZIV.js → markdownContent-SIlWuHve.js} +17 -17
- package/dist/browser/theme.css +45 -5
- package/dist/browser/ui.css +1 -1
- package/dist/browser/ui.d.ts +23 -1
- package/dist/browser/ui.js +59 -27
- package/dist/browser/workbench-contract.d.ts +19 -0
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +1 -0
- package/dist/browser/workbench.js +1176 -734
- package/dist/browser/workbenchSelect-CPRUXKbf.js +6088 -0
- package/dist/common/control-api-conformance.js +273 -232
- package/dist/common/control-api-errors.d.ts +20 -0
- package/dist/common/control-api.d.ts +50 -10
- package/dist/common/control-api.js +899 -661
- package/dist/common/control-requests.d.ts +23 -0
- package/dist/common/control-requests.js +377 -351
- package/dist/common/event-sources.d.ts +50 -0
- package/dist/common/feishu-events.d.ts +20 -0
- package/dist/common/feishu-subscriptions.d.ts +10 -0
- package/dist/common/fr-iv1541dF.js +93 -0
- package/dist/common/integration-trigger.d.ts +4 -0
- package/dist/common/ja-Bq-ZDOD4.js +93 -0
- package/dist/common/ko-Z-k9R2c6.js +93 -0
- package/dist/common/localization.d.ts +2 -0
- package/dist/common/localization.js +37 -1
- package/dist/common/mcp.js +615 -382
- package/dist/common/poll-trigger.d.ts +2 -0
- package/dist/common/provider-triggers.d.ts +4 -0
- package/dist/common/provider-triggers.js +3229 -2692
- package/dist/common/ru-B4gFecYZ.js +93 -0
- package/dist/common/trigger-catalog.d.ts +17 -0
- package/dist/common/trigger-config-options.d.ts +13 -0
- package/dist/common/trigger-localization.d.ts +7 -0
- package/dist/common/zh-CN-ByQ6nYam.js +93 -0
- package/dist/common/zh-TW-QjIarvX9.js +93 -0
- package/package.json +1 -1
- package/dist/browser/useValueChanged-BY05Usw-.js +0 -2944
- package/dist/browser/workbenchSelect-DEmv7SLW.js +0 -11666
|
@@ -5,8 +5,13 @@ export declare const controlErrorCode: {
|
|
|
5
5
|
readonly connectorActionNotFound: 'connector.action-not-found';
|
|
6
6
|
readonly connectorUnconfigured: 'connector.unconfigured';
|
|
7
7
|
readonly connectorUnavailable: 'connector.unavailable';
|
|
8
|
+
readonly connectorConsoleUnconfigured: 'connector.console-unconfigured';
|
|
8
9
|
readonly engineUnavailable: 'engine.unavailable';
|
|
9
10
|
readonly engineUnsupported: 'engine.unsupported';
|
|
11
|
+
readonly eventSourceInvalid: 'event-source.invalid';
|
|
12
|
+
readonly eventSourceIdentityUnavailable: 'event-source.identity-unavailable';
|
|
13
|
+
readonly eventSourceNotFound: 'event-source.not-found';
|
|
14
|
+
readonly eventSourceConflict: 'event-source.conflict';
|
|
10
15
|
readonly flowInvalid: 'flow.invalid';
|
|
11
16
|
readonly flowNotFound: 'flow.not-found';
|
|
12
17
|
readonly flowBusy: 'flow.busy';
|
|
@@ -37,6 +42,18 @@ export declare const controlErrorCode: {
|
|
|
37
42
|
};
|
|
38
43
|
export type ControlErrorCode = (typeof controlErrorCode)[keyof typeof controlErrorCode];
|
|
39
44
|
export declare const controlErrorMetadata: {
|
|
45
|
+
readonly "event-source.invalid": {
|
|
46
|
+
readonly status: 400;
|
|
47
|
+
};
|
|
48
|
+
readonly "event-source.identity-unavailable": {
|
|
49
|
+
readonly status: 409;
|
|
50
|
+
};
|
|
51
|
+
readonly "event-source.not-found": {
|
|
52
|
+
readonly status: 404;
|
|
53
|
+
};
|
|
54
|
+
readonly "event-source.conflict": {
|
|
55
|
+
readonly status: 409;
|
|
56
|
+
};
|
|
40
57
|
readonly "authentication.required": {
|
|
41
58
|
readonly status: 401;
|
|
42
59
|
};
|
|
@@ -55,6 +72,9 @@ export declare const controlErrorMetadata: {
|
|
|
55
72
|
readonly "connector.unavailable": {
|
|
56
73
|
readonly status: 503;
|
|
57
74
|
};
|
|
75
|
+
readonly "connector.console-unconfigured": {
|
|
76
|
+
readonly status: 503;
|
|
77
|
+
};
|
|
58
78
|
readonly "engine.unavailable": {
|
|
59
79
|
readonly status: 503;
|
|
60
80
|
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import type { CreateEventSource, UpdateEventSource, EventSource } from './event-sources.js';
|
|
2
|
+
export { decodeEventSource, decodeEventSources, type CreateEventSource, type UpdateEventSource, type EventSource } from './event-sources.js';
|
|
3
|
+
import type { TriggerCatalogCache } from './trigger-catalog.js';
|
|
4
|
+
export { decodeTriggerCatalog, type TriggerCatalog, type TriggerCatalogCache, type TriggerDisplay } from './trigger-catalog.js';
|
|
5
|
+
import type { TriggerConfigOption } from './trigger-config-options.js';
|
|
6
|
+
export type { TriggerConfigOption } from './trigger-config-options.js';
|
|
1
7
|
import type { ResultQuery } from './run-results.js';
|
|
2
8
|
import { decodeResultList, decodeResultRead } from './run-results.js';
|
|
3
9
|
export { readResult, parseResultQuery, decodeResultList, decodeResultRead, type ResultCall, type ResultInfo, type ResultPage, type ResultQuery, } from './run-results.js';
|
|
@@ -90,6 +96,8 @@ export interface PollTriggerTestResult {
|
|
|
90
96
|
readonly version: 1;
|
|
91
97
|
}
|
|
92
98
|
export interface ConnectorConnection {
|
|
99
|
+
readonly providerAccountId?: string;
|
|
100
|
+
readonly builtInAccount?: boolean;
|
|
93
101
|
readonly alias?: string;
|
|
94
102
|
readonly connectionId: string;
|
|
95
103
|
readonly displayName: string;
|
|
@@ -97,12 +105,14 @@ export interface ConnectorConnection {
|
|
|
97
105
|
readonly serviceId: string;
|
|
98
106
|
readonly status: 'active' | 'disconnected' | 'error' | 'reauth_required';
|
|
99
107
|
}
|
|
100
|
-
|
|
108
|
+
/** Action metadata independent of account availability and selection. */
|
|
109
|
+
export interface ConnectorActionMetadata {
|
|
110
|
+
/** Upstream operation classification; unknown values remain uncategorized. */
|
|
111
|
+
readonly operationType?: string;
|
|
101
112
|
readonly inputSchema?: JsonValue;
|
|
102
113
|
readonly outputSchema?: JsonValue;
|
|
103
114
|
readonly actionId: string;
|
|
104
115
|
readonly authenticated: boolean;
|
|
105
|
-
readonly defaultConnection?: ConnectorConnection;
|
|
106
116
|
readonly description: string;
|
|
107
117
|
readonly homepageUrl?: string;
|
|
108
118
|
readonly icon?: string;
|
|
@@ -112,7 +122,12 @@ export interface ConnectorAction {
|
|
|
112
122
|
readonly serviceId: string;
|
|
113
123
|
readonly serviceName: string;
|
|
114
124
|
}
|
|
125
|
+
/** Existing CLI/MCP representation, including the currently preferred account. */
|
|
126
|
+
export interface ConnectorAction extends ConnectorActionMetadata {
|
|
127
|
+
readonly defaultConnection?: ConnectorConnection;
|
|
128
|
+
}
|
|
115
129
|
export interface ConnectorProvider {
|
|
130
|
+
readonly noSetup?: boolean;
|
|
116
131
|
readonly homepageUrl?: string;
|
|
117
132
|
readonly icon?: string;
|
|
118
133
|
readonly serviceId: string;
|
|
@@ -546,6 +561,14 @@ export declare function decodeRunEvent(value: unknown): {
|
|
|
546
561
|
};
|
|
547
562
|
};
|
|
548
563
|
};
|
|
564
|
+
export type ConditionalResult<T> = {
|
|
565
|
+
readonly modified: true;
|
|
566
|
+
readonly data: T;
|
|
567
|
+
readonly etag: string | null;
|
|
568
|
+
} | {
|
|
569
|
+
readonly modified: false;
|
|
570
|
+
readonly etag: string | null;
|
|
571
|
+
};
|
|
549
572
|
export declare class ControlClient {
|
|
550
573
|
private readonly requestControl;
|
|
551
574
|
constructor(requestControl: ControlRequest);
|
|
@@ -554,6 +577,15 @@ export declare class ControlClient {
|
|
|
554
577
|
readonly includeTotal?: boolean;
|
|
555
578
|
readonly limit?: number;
|
|
556
579
|
}): Promise<FlowPage>;
|
|
580
|
+
listEventSources(flowId?: string, signal?: AbortSignal): Promise<{
|
|
581
|
+
readonly version: 1;
|
|
582
|
+
readonly sources: readonly EventSource[];
|
|
583
|
+
readonly teamId?: string | null;
|
|
584
|
+
}>;
|
|
585
|
+
listEventSourceConnections(teamId: string | null, signal?: AbortSignal): Promise<readonly ConnectorConnection[]>;
|
|
586
|
+
createEventSource(input: CreateEventSource): Promise<EventSource>;
|
|
587
|
+
updateEventSource(sourceId: string, input: UpdateEventSource): Promise<EventSource>;
|
|
588
|
+
deleteEventSource(sourceId: string, expectedRevision: number): Promise<void>;
|
|
557
589
|
listVariables(): Promise<{
|
|
558
590
|
readonly variables: readonly Variable[];
|
|
559
591
|
readonly version: 1;
|
|
@@ -565,8 +597,13 @@ export declare class ControlClient {
|
|
|
565
597
|
getFlow(flowId: string): Promise<Flow>;
|
|
566
598
|
renameFlow(flowId: string, name: string): Promise<Flow>;
|
|
567
599
|
deleteFlow(flowId: string): Promise<Flow>;
|
|
568
|
-
listTriggerKeys(signal?: AbortSignal): Promise<readonly TriggerKeySummary[]>;
|
|
600
|
+
listTriggerKeys(signal?: AbortSignal, locale?: string): Promise<readonly TriggerKeySummary[]>;
|
|
569
601
|
listTriggerDefinitions(signal?: AbortSignal): Promise<readonly TriggerKeySnapshot[]>;
|
|
602
|
+
readCatalog<T>(query: {
|
|
603
|
+
readonly path: string;
|
|
604
|
+
readonly decode: (data: unknown) => T;
|
|
605
|
+
}, etag: string | null, signal?: AbortSignal): Promise<ConditionalResult<T>>;
|
|
606
|
+
getTriggerCatalog(locale: string, cached?: TriggerCatalogCache, signal?: AbortSignal): Promise<TriggerCatalogCache>;
|
|
570
607
|
getTriggerKey(key: string, signal?: AbortSignal): Promise<TriggerKeySnapshot>;
|
|
571
608
|
listFlowTriggerBindings(flowId: string, signal?: AbortSignal): Promise<readonly TriggerBinding[]>;
|
|
572
609
|
getFlowTriggerBinding(flowId: string, triggerNodeId: string): Promise<TriggerBindingDetail>;
|
|
@@ -588,12 +625,14 @@ export declare class ControlClient {
|
|
|
588
625
|
getDraft(flowId: string): Promise<Draft>;
|
|
589
626
|
syncDraft(flowId: string): Promise<DraftSync>;
|
|
590
627
|
getRevision(flowId: string, revisionId: string): Promise<Draft>;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
628
|
+
listTriggerConfigOptions(flowId: string, nodeId: string, field: string, signal?: AbortSignal): Promise<readonly TriggerConfigOption[]>;
|
|
629
|
+
listConnectorProviders(signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorProvider[]>;
|
|
630
|
+
listConnectorActions(serviceId?: string, signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorAction[]>;
|
|
631
|
+
searchConnectorActions(query: string, signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorAction[]>;
|
|
632
|
+
getConnectorAction(actionId: string, signal?: AbortSignal, flowId?: string, locale?: string, fresh?: boolean): Promise<ConnectorAction>;
|
|
633
|
+
listAllConnectorConnections(signal?: AbortSignal, flowId?: string, fresh?: boolean): Promise<readonly ConnectorConnection[]>;
|
|
634
|
+
listConnectorConnections(serviceId: string, signal?: AbortSignal, flowId?: string, fresh?: boolean): Promise<readonly ConnectorConnection[]>;
|
|
635
|
+
createConnectorConnectionPage(serviceId: string, flowId?: string, teamId?: string): Promise<string>;
|
|
597
636
|
changeDraft(flowId: string, expectedRevisionId: string, operations: readonly ChangeOperation[], changeId?: string): Promise<DraftChange>;
|
|
598
637
|
checkFlow(flowId: string, revisionId: string): Promise<FlowCheck>;
|
|
599
638
|
getLive(flowId: string, signal?: AbortSignal): Promise<Live>;
|
|
@@ -633,6 +672,7 @@ export declare class ControlClient {
|
|
|
633
672
|
readonly waitId: string;
|
|
634
673
|
}>;
|
|
635
674
|
private connectorActions;
|
|
636
|
-
|
|
675
|
+
protected connectorRequest<Value>(path: string, _kind: 'providers' | 'actions' | 'connections', signal: AbortSignal | undefined, decode: (value: unknown) => Value, _fresh?: boolean): Promise<Value>;
|
|
676
|
+
protected response(path: string, init: RequestInit, allowNotModified?: boolean): Promise<Response>;
|
|
637
677
|
protected request<Value = unknown>(path: string, init?: RequestInit): Promise<Value>;
|
|
638
678
|
}
|