@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.
Files changed (63) hide show
  1. package/dist/browser/{createResourceDialog-FBRnCMK6.js → createResourceDialog-DRB0OEtr.js} +2 -2
  2. package/dist/browser/{editorComponent-CyH2o-Ji.js → editorComponent-bXA-KosC.js} +2744 -1113
  3. package/dist/browser/flow-authoring-node.d.ts +5 -3
  4. package/dist/browser/flow-authoring.js +1569 -1462
  5. package/dist/browser/flow-change.d.ts +44 -17
  6. package/dist/browser/flow-change.js +1614 -1492
  7. package/dist/browser/flow-input-value.d.ts +6 -0
  8. package/dist/browser/flow-notifications.d.ts +5 -0
  9. package/dist/browser/flowChanges-FiZJreeB.js +9855 -0
  10. package/dist/browser/{flowRunInputEditorStore-CTORQcA2.js → flowRunInputEditorStore-Bgb5vSeS.js} +3 -3
  11. package/dist/browser/flowWorkspace-CBo6Ih_c.js +40987 -0
  12. package/dist/browser/{inputValues-C21gYJuc.js → inputValues-CUyjbECo.js} +2 -2
  13. package/dist/browser/licenses.md +0 -58
  14. package/dist/browser/{lite-BuKZ8joP.js → lite-BA96NG4M.js} +8 -4
  15. package/dist/browser/theme.css +2 -0
  16. package/dist/browser/ui.css +2 -1
  17. package/dist/browser/ui.d.ts +31 -3
  18. package/dist/browser/ui.js +3547 -772
  19. package/dist/browser/{value-DPg_9yXB.js → value-B_yE9ean.js} +22 -14
  20. package/dist/browser/workbench.css +1 -1
  21. package/dist/browser/workbench.d.ts +1 -0
  22. package/dist/browser/workbench.js +3944 -1077
  23. package/dist/browser/{workbenchSelect-DAaGuZwP.js → workbenchSelect-DNteZJYP.js} +1695 -1471
  24. package/dist/common/control-api-conformance.d.ts +6 -0
  25. package/dist/common/control-api-conformance.js +502 -388
  26. package/dist/common/control-api-errors.d.ts +16 -0
  27. package/dist/common/control-api.d.ts +49 -6
  28. package/dist/common/control-api.js +1715 -1564
  29. package/dist/common/control-requests.d.ts +10 -0
  30. package/dist/common/control-requests.js +1182 -1137
  31. package/dist/common/event-sources.d.ts +0 -1
  32. package/dist/common/feishu-events.d.ts +0 -1
  33. package/dist/common/flow-encoding.js +580 -557
  34. package/dist/common/flow-graph.d.ts +16 -9
  35. package/dist/common/flow-notifications.d.ts +5 -0
  36. package/dist/common/flow-semantics.d.ts +2 -2
  37. package/dist/common/flow-semantics.js +2184 -1912
  38. package/dist/common/fr-ClB96SQY.js +298 -0
  39. package/dist/common/integration-trigger.d.ts +1 -0
  40. package/dist/common/integration-trigger.js +7572 -88
  41. package/dist/common/ja-BJF-VrP2.js +298 -0
  42. package/dist/common/ko-Bght_VaB.js +298 -0
  43. package/dist/common/mcp.js +1718 -1571
  44. package/dist/common/poll-trigger.d.ts +3 -1
  45. package/dist/common/poll-trigger.js +7512 -28
  46. package/dist/common/provider-triggers.js +6798 -3518
  47. package/dist/common/ru-DrP4BRM5.js +298 -0
  48. package/dist/common/runtime-contract.d.ts +1 -1
  49. package/dist/common/runtime-contract.js +41 -27
  50. package/dist/common/scheduler.js +921 -738
  51. package/dist/common/trigger-catalog.d.ts +3 -1
  52. package/dist/common/trigger-config.d.ts +7 -0
  53. package/dist/common/zh-CN-D2od3TNw.js +298 -0
  54. package/dist/common/zh-TW-CRmc3FMz.js +298 -0
  55. package/package.json +1 -1
  56. package/dist/browser/flowChanges-ScpWTKtQ.js +0 -12293
  57. package/dist/browser/flowWorkspace-CY1r6dwz.js +0 -153101
  58. package/dist/common/fr-iv1541dF.js +0 -93
  59. package/dist/common/ja-Bq-ZDOD4.js +0 -93
  60. package/dist/common/ko-Z-k9R2c6.js +0 -93
  61. package/dist/common/ru-B4gFecYZ.js +0 -93
  62. package/dist/common/zh-CN-ByQ6nYam.js +0 -93
  63. package/dist/common/zh-TW-QjIarvX9.js +0 -93
@@ -1,3 +1,4 @@
1
+ export { fixedInputValue, inputValue, inputValues } from './flow-input-value.js';
1
2
  import { currentFlowModelVersion } from './flow-change-schema.js';
2
3
  export { changeOperationsSchema, currentFlowModelVersion, decodeChangeOperations } from './flow-change-schema.js';
3
4
  export type JsonValue = null | boolean | number | string | readonly JsonValue[] | {
@@ -41,6 +42,7 @@ export interface Group {
41
42
  }
42
43
  export declare function portsByHandle<Value extends Port>(ports: readonly (Value | Group)[]): Readonly<Record<string, Value>>;
43
44
  export interface NodeSource {
45
+ readonly field?: string;
44
46
  readonly kind: 'node';
45
47
  readonly nodeId: string;
46
48
  readonly output: string;
@@ -53,13 +55,17 @@ export interface BindingSource {
53
55
  readonly bindingId: string;
54
56
  readonly kind: 'binding';
55
57
  }
56
- export type InputMapping = {
57
- readonly kind: 'sources';
58
- readonly sources: readonly (BindingSource | FlowSource | NodeSource)[];
58
+ export type FixedInputValue = {
59
+ readonly kind: 'unset';
59
60
  } | {
60
61
  readonly kind: 'value';
61
62
  readonly value: JsonValue;
62
63
  };
64
+ export type InputValues = Readonly<Record<string, FixedInputValue>>;
65
+ export type InputMapping = FixedInputValue | {
66
+ readonly kind: 'sources';
67
+ readonly sources: readonly (BindingSource | FlowSource | NodeSource)[];
68
+ };
63
69
  export interface OutputMapping {
64
70
  readonly sources: readonly (FlowSource | NodeSource)[];
65
71
  }
@@ -93,20 +99,31 @@ export interface ApprovalNode extends ResolutionNodeBase {
93
99
  }
94
100
  export type ResolutionNode = ApprovalNode | WaitNode;
95
101
  export type ConditionOperator = '!=' | '<' | '<=' | '==' | '>' | '>=' | 'contains' | 'endsWith' | 'hasKey' | 'hasValue' | 'isEmpty' | 'isFalse' | 'isNotEmpty' | 'isNotNull' | 'isNull' | 'isTrue' | 'notContains' | 'notHasKey' | 'notHasValue' | 'startsWith';
102
+ export type Source = BindingSource | FlowSource | NodeSource;
103
+ export type ConditionOperand = {
104
+ readonly kind: 'value';
105
+ readonly value?: JsonValue;
106
+ readonly jsonSchema?: JsonValue;
107
+ } | {
108
+ readonly kind: 'source';
109
+ readonly source: Source;
110
+ };
96
111
  export interface ConditionExpression {
97
- readonly input: string;
112
+ readonly left: ConditionOperand;
98
113
  readonly operator: ConditionOperator;
99
- readonly value?: JsonValue;
114
+ readonly right?: ConditionOperand;
100
115
  }
101
- export interface ConditionCase {
116
+ export interface ConditionGroup {
102
117
  readonly expressions: readonly ConditionExpression[];
118
+ }
119
+ export interface ConditionCase {
120
+ readonly description?: string;
121
+ readonly groups: readonly ConditionGroup[];
103
122
  readonly output: string;
104
- readonly relation: 'all' | 'any';
105
123
  }
106
124
  export interface ConditionNode extends GraphNodeBase {
107
125
  readonly cases: readonly ConditionCase[];
108
- readonly defaultOutput?: string;
109
- readonly input: InputPort;
126
+ readonly matchMode: 'first' | 'all';
110
127
  readonly kind: 'condition';
111
128
  }
112
129
  export type ManagedTaskExecutor = {
@@ -154,7 +171,16 @@ export interface AgentTool {
154
171
  readonly source: AgentInput;
155
172
  })[];
156
173
  }
157
- export interface ConnectorCapability {
174
+ export interface ConnectorAccessCapability {
175
+ readonly actionHints?: readonly string[];
176
+ readonly connectionHints?: readonly {
177
+ readonly action: string;
178
+ readonly connectionId: string;
179
+ readonly alias?: string;
180
+ }[];
181
+ readonly kind: 'connector';
182
+ }
183
+ export interface ConnectorActionCapability {
158
184
  readonly action: string;
159
185
  readonly connections: readonly {
160
186
  readonly connectionId: string;
@@ -163,6 +189,7 @@ export interface ConnectorCapability {
163
189
  readonly connectionId?: string;
164
190
  readonly kind: 'connector';
165
191
  }
192
+ export type ConnectorCapability = ConnectorAccessCapability | ConnectorActionCapability;
166
193
  export declare function decodeConnectorCapabilities(value: unknown): readonly ConnectorCapability[];
167
194
  interface TaskDefinitionBase {
168
195
  readonly inputs: readonly (InputPort | Group)[];
@@ -202,7 +229,7 @@ export type TriggerSchedule = {
202
229
  readonly value: number;
203
230
  };
204
231
  interface TriggerKeySnapshotBase {
205
- readonly configSchema: JsonValue;
232
+ readonly configInputs: readonly (InputPort | Group)[];
206
233
  readonly definitionVersion: number;
207
234
  readonly description: string;
208
235
  readonly displayName: string;
@@ -254,7 +281,7 @@ export type TriggerNode = (TriggerNodeBase & {
254
281
  readonly kind: 'cron';
255
282
  }) | (TriggerNodeBase & {
256
283
  readonly bindingId: string;
257
- readonly config: Readonly<Record<string, JsonValue>>;
284
+ readonly config: InputValues;
258
285
  readonly definition: TriggerKeySnapshot & {
259
286
  readonly type: 'poll';
260
287
  };
@@ -262,7 +289,7 @@ export type TriggerNode = (TriggerNodeBase & {
262
289
  readonly pollTimes: readonly TriggerSchedule[];
263
290
  }) | (TriggerNodeBase & {
264
291
  readonly bindingId: string;
265
- readonly config: Readonly<Record<string, JsonValue>>;
292
+ readonly config: InputValues;
266
293
  readonly definition: TriggerKeySnapshot & {
267
294
  readonly type: 'integration';
268
295
  };
@@ -340,11 +367,11 @@ export type ChangeOperation = {
340
367
  readonly target: GraphTarget;
341
368
  readonly value?: readonly InputPort[];
342
369
  } | {
343
- readonly before: Pick<ConditionNode, 'cases' | 'defaultOutput' | 'input'>;
370
+ readonly before: Pick<ConditionNode, 'cases' | 'matchMode'>;
344
371
  readonly kind: 'graph.node.condition.set';
345
372
  readonly nodeId: string;
346
373
  readonly target: GraphTarget;
347
- readonly value: Pick<ConditionNode, 'cases' | 'defaultOutput' | 'input'>;
374
+ readonly value: Pick<ConditionNode, 'cases' | 'matchMode'>;
348
375
  } | {
349
376
  readonly kind: 'graph.node.create';
350
377
  readonly node: GraphNode;
@@ -407,11 +434,11 @@ export type ChangeOperation = {
407
434
  readonly kind: 'webhook';
408
435
  }>, 'bodyFields' | 'options'>;
409
436
  } | {
410
- readonly before?: JsonValue;
437
+ readonly before?: FixedInputValue;
411
438
  readonly kind: 'graph.trigger.config.set';
412
439
  readonly name: string;
413
440
  readonly nodeId: string;
414
- readonly value?: JsonValue;
441
+ readonly value?: FixedInputValue;
415
442
  } | {
416
443
  readonly before: readonly TriggerSchedule[];
417
444
  readonly kind: 'graph.trigger.schedule.set';