@oomol-lab/open-flow 0.1.0-beta.26 → 0.1.0-beta.28
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-BwI2JmPE.js → createResourceDialog-C2ZLGPla.js} +1 -1
- package/dist/browser/flow-authoring-node.d.ts +3 -2
- package/dist/browser/flow-authoring.js +933 -915
- package/dist/browser/flow-change-schema.d.ts +4 -0
- package/dist/browser/flow-change.d.ts +8 -7
- package/dist/browser/flow-change.js +1067 -1050
- package/dist/browser/flow-notifications.d.ts +6 -2
- package/dist/browser/{flowChanges-BqPtWEI9.js → flowChanges-Z49mslMz.js} +1098 -1027
- package/dist/browser/{flowWorkspace-CpMGzmfz.js → flowWorkspace-DCaVDqtY.js} +40105 -43746
- package/dist/browser/host-conformance.js +7 -1
- package/dist/browser/{inputValues-CeeJw_G8.js → inputValues-CLnpqFAf.js} +1 -1
- package/dist/browser/{markdownContent-SIlWuHve.js → markdownContent-Bon8uhjM.js} +23 -23
- package/dist/browser/{switch-CyZ96-UF.js → switch-DuB8aovT.js} +5035 -513
- package/dist/browser/ui.css +1 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +890 -727
- package/dist/browser/{workbenchSelect-BUu7CjUA.js → workbenchSelect-DX9IFmX-.js} +1187 -1156
- package/dist/common/authoringExamples.d.ts +27 -0
- package/dist/common/control-api-conformance.js +838 -820
- package/dist/common/control-api-errors.d.ts +8 -0
- package/dist/common/control-api.d.ts +7 -3
- package/dist/common/control-api.js +1425 -1381
- package/dist/common/control-requests.d.ts +13 -6
- package/dist/common/control-requests.js +2034 -1510
- package/dist/common/cron-trigger.d.ts +2 -1
- package/dist/common/cron-trigger.js +27 -24
- package/dist/common/draftOperations.d.ts +14 -0
- package/dist/common/engine-contract.d.ts +2 -2
- package/dist/common/flow-encoding.d.ts +3 -0
- package/dist/common/flow-encoding.js +1067 -968
- package/dist/common/flow-notifications.d.ts +6 -2
- package/dist/common/flow-schema.d.ts +1 -2
- package/dist/common/flow-semantics.d.ts +2 -1
- package/dist/common/flow-semantics.js +7935 -7812
- package/dist/common/flowInspection.d.ts +16 -0
- package/dist/common/integration-trigger.d.ts +2 -2
- package/dist/common/integration-trigger.js +8 -8
- package/dist/common/mcp.d.ts +2 -1
- package/dist/common/mcp.js +140 -118
- package/dist/common/poll-trigger.d.ts +3 -0
- package/dist/common/poll-trigger.js +26 -22
- package/dist/common/provider-triggers.js +2704 -2599
- package/dist/common/runtime-contract.js +3 -3
- package/dist/common/scheduler.d.ts +4 -3
- package/dist/common/scheduler.js +1855 -1725
- package/dist/common/trigger-contract.d.ts +5 -0
- package/dist/common/webhook-trigger.d.ts +3 -3
- package/dist/common/webhook-trigger.js +64 -18
- package/package.json +1 -1
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { ChangeOperation, FlowDocument, JsonValue, RevisionContent } from './flow-change.js';
|
|
2
|
+
/** Best-effort recovery for a parseable Revision envelope. Invalid collection entries are discarded. */
|
|
3
|
+
export declare function repairRevisionEnvelope(value: unknown): RevisionContent;
|
|
2
4
|
export declare function decodeFlowDocument(value: unknown): FlowDocument;
|
|
3
5
|
export declare function decodeRevisionContent(value: unknown): RevisionContent;
|
|
4
6
|
export declare function decodeRevisionEnvelope(value: unknown): RevisionContent;
|
|
7
|
+
export declare function parseOperation<Value>(candidate: unknown, index: number, parse: (value: unknown) => Value): Value;
|
|
8
|
+
export declare function decodeChangeOperation(candidate: unknown, index: number): ChangeOperation;
|
|
5
9
|
export declare function decodeChangeOperations(value: unknown): readonly ChangeOperation[];
|
|
6
10
|
export declare function changeOperationsSchema(kind?: string): JsonValue;
|
|
@@ -67,6 +67,7 @@ interface GraphNodeBase {
|
|
|
67
67
|
readonly icon?: string;
|
|
68
68
|
readonly inputs: Readonly<Record<string, InputMapping>>;
|
|
69
69
|
readonly name?: string;
|
|
70
|
+
readonly maxExecutions?: number;
|
|
70
71
|
readonly timeoutMs?: number;
|
|
71
72
|
}
|
|
72
73
|
export interface SubflowNode extends GraphNodeBase {
|
|
@@ -201,7 +202,7 @@ interface TriggerKeySnapshotBase {
|
|
|
201
202
|
readonly displayName: string;
|
|
202
203
|
readonly key: string;
|
|
203
204
|
readonly name: string;
|
|
204
|
-
readonly
|
|
205
|
+
readonly outputs: readonly Port[];
|
|
205
206
|
readonly provider: string;
|
|
206
207
|
}
|
|
207
208
|
export type IntegrationEndpointMethod = 'DELETE' | 'GET' | 'HEAD' | 'PATCH' | 'POST' | 'PUT';
|
|
@@ -221,7 +222,7 @@ export type TriggerKeySnapshot = (TriggerKeySnapshotBase & {
|
|
|
221
222
|
readonly endpoint: IntegrationEndpointDeclaration;
|
|
222
223
|
readonly type: 'integration';
|
|
223
224
|
});
|
|
224
|
-
export interface
|
|
225
|
+
export interface WebhookBodyField extends InputPort {
|
|
225
226
|
}
|
|
226
227
|
export interface WebhookOptions {
|
|
227
228
|
readonly allowedMethods?: readonly string[];
|
|
@@ -239,7 +240,7 @@ interface TriggerNodeBase {
|
|
|
239
240
|
export type TriggerNode = (TriggerNodeBase & {
|
|
240
241
|
readonly kind: 'manual';
|
|
241
242
|
}) | (TriggerNodeBase & {
|
|
242
|
-
readonly
|
|
243
|
+
readonly bodyFields: readonly WebhookBodyField[];
|
|
243
244
|
readonly kind: 'webhook';
|
|
244
245
|
readonly options?: WebhookOptions;
|
|
245
246
|
}) | (TriggerNodeBase & {
|
|
@@ -283,7 +284,7 @@ export interface CodeModule {
|
|
|
283
284
|
}
|
|
284
285
|
export interface RevisionContent {
|
|
285
286
|
readonly document: FlowDocument;
|
|
286
|
-
readonly modelVersion:
|
|
287
|
+
readonly modelVersion: 2;
|
|
287
288
|
readonly modules: Readonly<Record<string, CodeModule>>;
|
|
288
289
|
}
|
|
289
290
|
export type GraphTarget = {
|
|
@@ -349,7 +350,7 @@ export type ChangeOperation = {
|
|
|
349
350
|
readonly target: GraphTarget;
|
|
350
351
|
} | {
|
|
351
352
|
readonly before?: number | string;
|
|
352
|
-
readonly field: 'description' | 'icon' | 'name' | 'timeoutMs';
|
|
353
|
+
readonly field: 'description' | 'icon' | 'maxExecutions' | 'name' | 'timeoutMs';
|
|
353
354
|
readonly kind: 'graph.node.field.set';
|
|
354
355
|
readonly nodeId: string;
|
|
355
356
|
readonly target: GraphTarget;
|
|
@@ -390,7 +391,7 @@ export type ChangeOperation = {
|
|
|
390
391
|
} | {
|
|
391
392
|
readonly before: Pick<Extract<TriggerNode, {
|
|
392
393
|
readonly kind: 'webhook';
|
|
393
|
-
}>, '
|
|
394
|
+
}>, 'bodyFields' | 'options'>;
|
|
394
395
|
readonly kind: 'graph.node.webhook.set';
|
|
395
396
|
readonly nodeId: string;
|
|
396
397
|
readonly target: Extract<GraphTarget, {
|
|
@@ -398,7 +399,7 @@ export type ChangeOperation = {
|
|
|
398
399
|
}>;
|
|
399
400
|
readonly value: Pick<Extract<TriggerNode, {
|
|
400
401
|
readonly kind: 'webhook';
|
|
401
|
-
}>, '
|
|
402
|
+
}>, 'bodyFields' | 'options'>;
|
|
402
403
|
} | {
|
|
403
404
|
readonly before?: JsonValue;
|
|
404
405
|
readonly kind: 'graph.trigger.config.set';
|