@oomol-lab/open-flow 0.1.0-beta.4 → 0.1.0-beta.40

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 (134) hide show
  1. package/dist/browser/{_virtual_open-flow-twemoji-DJwKsM_w.js → _virtual_open-flow-twemoji-CpHJOEsk.js} +4028 -2
  2. package/dist/browser/carbon-Cn-DTyjG.js +54 -0
  3. package/dist/browser/codeDiagnostics-BtH_YuXu.js +44 -0
  4. package/dist/browser/createResourceDialog-BOrW62JW.js +110 -0
  5. package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
  6. package/dist/browser/dist-Cdna4VV_.js +795 -0
  7. package/dist/browser/dist-CoszrK7m.js +4 -0
  8. package/dist/browser/{dist-CPuF50D9.js → dist-D1VYgicl.js} +426 -305
  9. package/dist/browser/{dist-CeSZ2xSM.js → dist-DINmJ4Gr.js} +171 -112
  10. package/dist/browser/dist-DSe6KRsr.js +1224 -0
  11. package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
  12. package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
  13. package/dist/browser/{dist-CJpzJrLM.js → dist-DwvhuMxw.js} +894 -895
  14. package/dist/browser/dist-DxahK_I8.js +2688 -0
  15. package/dist/browser/{dist-C46JByB-.js → dist-Dz6Nglsd.js} +61 -61
  16. package/dist/browser/{dist-DUzA0Ukh.js → dist-TJfrvoIQ.js} +141 -142
  17. package/dist/browser/editorComponent-0skblWYk.js +16795 -0
  18. package/dist/browser/{esm-C9jQK70n.js → esm-B7A42FzW.js} +68 -59
  19. package/dist/browser/event-sources.d.ts +30 -0
  20. package/dist/browser/flow-authoring-module.d.ts +2 -2
  21. package/dist/browser/flow-authoring-node.d.ts +34 -17
  22. package/dist/browser/flow-authoring.d.ts +1 -1
  23. package/dist/browser/flow-authoring.js +15906 -457
  24. package/dist/browser/flow-change-schema.d.ts +11 -0
  25. package/dist/browser/flow-change.d.ts +245 -44
  26. package/dist/browser/flow-change.js +5517 -117
  27. package/dist/browser/flow-input-value.d.ts +6 -0
  28. package/dist/browser/flow-notifications.d.ts +11 -2
  29. package/dist/browser/flowChanges-3o9Vs_1I.js +10137 -0
  30. package/dist/browser/{flowRunInputEditorStore-BYa8zFLC.js → flowRunInputEditorStore-Bgb5vSeS.js} +864 -4000
  31. package/dist/browser/flowWorkspace-DJzQVVtZ.js +43418 -0
  32. package/dist/browser/host-conformance.d.ts +7 -0
  33. package/dist/browser/host-conformance.js +39 -0
  34. package/dist/browser/inputValues-DkDT6u0o.js +43 -0
  35. package/dist/browser/licenses.md +137 -662
  36. package/dist/browser/{getPseudoElementBounds-qDxSDwzN.js → lite-BA96NG4M.js} +4409 -2987
  37. package/dist/browser/main-BDnNHhkU.js +50 -0
  38. package/dist/browser/{markdownContent-DUfLdnUt.js → markdownContent-D2oHGWc6.js} +53 -53
  39. package/dist/browser/theme.css +529 -34
  40. package/dist/browser/{typeScriptSession-CwMPjseS.js → typeScriptSession-v9Pb3G6d.js} +190 -191
  41. package/dist/browser/ui-input.d.ts +5 -0
  42. package/dist/browser/ui-label.d.ts +3 -0
  43. package/dist/browser/ui-textarea.d.ts +3 -0
  44. package/dist/browser/ui.css +3 -0
  45. package/dist/browser/ui.css.d.ts +1 -0
  46. package/dist/browser/ui.d.ts +62 -0
  47. package/dist/browser/ui.js +5407 -0
  48. package/dist/browser/value-B_yE9ean.js +101 -0
  49. package/dist/browser/warmCodeTheme-DVv4-rDO.js +35 -0
  50. package/dist/browser/webhook-method.d.ts +3 -0
  51. package/dist/browser/workbench-contract.d.ts +27 -2
  52. package/dist/browser/workbench.css +1 -1
  53. package/dist/browser/workbench.d.ts +2 -3
  54. package/dist/browser/workbench.js +4212 -1472
  55. package/dist/browser/workbenchSelect-B5zXyaaX.js +6423 -0
  56. package/dist/common/authoringExamples.d.ts +28 -0
  57. package/dist/common/connectorDecoders.d.ts +9 -0
  58. package/dist/common/control-api-conformance.d.ts +57 -0
  59. package/dist/common/control-api-conformance.js +9793 -208
  60. package/dist/common/control-api-errors.d.ts +49 -0
  61. package/dist/common/control-api.d.ts +484 -57
  62. package/dist/common/control-api.js +8917 -531
  63. package/dist/common/control-requests.d.ts +129 -0
  64. package/dist/common/control-requests.js +8662 -0
  65. package/dist/common/cron-trigger.d.ts +2 -1
  66. package/dist/common/cron-trigger.js +27 -24
  67. package/dist/common/draftOperations.d.ts +13 -0
  68. package/dist/common/engine-contract.d.ts +3 -1
  69. package/dist/common/event-sources.d.ts +49 -0
  70. package/dist/common/feishu-events.d.ts +19 -0
  71. package/dist/common/feishu-subscriptions.d.ts +10 -0
  72. package/dist/common/flow-agent.d.ts +10 -0
  73. package/dist/common/flow-connectionUsage.d.ts +12 -0
  74. package/dist/common/flow-encoding.d.ts +10 -2
  75. package/dist/common/flow-encoding.js +5170 -84
  76. package/dist/common/flow-graph.d.ts +59 -0
  77. package/dist/common/flow-json.d.ts +2 -0
  78. package/dist/common/flow-modules.d.ts +20 -0
  79. package/dist/common/flow-notifications.d.ts +11 -2
  80. package/dist/common/flow-schema.d.ts +17 -0
  81. package/dist/common/flow-semantics.d.ts +15 -7
  82. package/dist/common/flow-semantics.js +16394 -9734
  83. package/dist/common/flowInspection.d.ts +105 -0
  84. package/dist/common/fr-ClB96SQY.js +298 -0
  85. package/dist/common/integration-trigger.d.ts +30 -2
  86. package/dist/common/integration-trigger.js +7880 -71
  87. package/dist/common/ja-BJF-VrP2.js +298 -0
  88. package/dist/common/ko-Bght_VaB.js +298 -0
  89. package/dist/common/localization.d.ts +2 -0
  90. package/dist/common/localization.js +37 -1
  91. package/dist/common/mcp-conformance.d.ts +2 -0
  92. package/dist/common/mcp.d.ts +964 -0
  93. package/dist/common/mcp.js +9358 -0
  94. package/dist/common/poll-trigger.d.ts +7 -0
  95. package/dist/common/poll-trigger.js +7702 -25
  96. package/dist/common/provider-triggers.d.ts +4 -0
  97. package/dist/common/provider-triggers.js +11554 -2275
  98. package/dist/common/providerAccess.d.ts +20 -0
  99. package/dist/common/ru-DrP4BRM5.js +298 -0
  100. package/dist/common/run-events.d.ts +2 -2
  101. package/dist/common/run-events.js +11 -16
  102. package/dist/common/run-lifecycle.d.ts +5 -1
  103. package/dist/common/run-lifecycle.js +33 -3
  104. package/dist/common/run-results.d.ts +57 -0
  105. package/dist/common/runtime-contract.d.ts +38 -3
  106. package/dist/common/runtime-contract.js +312 -19
  107. package/dist/common/scheduler.d.ts +83 -60
  108. package/dist/common/scheduler.js +8625 -545
  109. package/dist/common/trigger-catalog.d.ts +22 -0
  110. package/dist/common/trigger-config-options.d.ts +13 -0
  111. package/dist/common/trigger-config.d.ts +7 -0
  112. package/dist/common/trigger-contract.d.ts +7 -0
  113. package/dist/common/trigger-localization.d.ts +7 -0
  114. package/dist/common/webhook-trigger.d.ts +5 -3
  115. package/dist/common/webhook-trigger.js +7071 -67
  116. package/dist/common/zh-CN-CxZ3yYfR.js +298 -0
  117. package/dist/common/zh-TW-CRmc3FMz.js +298 -0
  118. package/dist/index.d.ts +5 -5
  119. package/package.json +21 -1
  120. package/dist/browser/DesignerIcon-DdfuH2jW.js +0 -2066
  121. package/dist/browser/carbon-DMCVsjHo.js +0 -53
  122. package/dist/browser/createResourceDialog-4YQKl8lG.js +0 -505
  123. package/dist/browser/dist-BMqL-qR5.js +0 -1894
  124. package/dist/browser/dist-BpopSHwP.js +0 -1543
  125. package/dist/browser/dist-CP0883sY.js +0 -4
  126. package/dist/browser/dist-CUSrALSX.js +0 -1620
  127. package/dist/browser/flowChanges-Bs-ZcJV8.js +0 -12006
  128. package/dist/browser/flowWorkspace-BewofPeU.js +0 -45575
  129. package/dist/browser/icons-DRoMXL5h.js +0 -521
  130. package/dist/browser/languages-DgJehE1g.js +0 -62
  131. package/dist/browser/lib-GrGxYjsJ.js +0 -7855
  132. package/dist/browser/main-DmjVyuWr.js +0 -76
  133. package/dist/browser/waitNotificationInputs-DtrPBwA1.js +0 -26
  134. package/dist/browser/workbenchSelect-CX8KtT7L.js +0 -1375
@@ -1,14 +1,23 @@
1
- import { s as e } from "./dist-BpopSHwP.js";
2
- import { r as t } from "./dist-BKuSVKCC.js";
3
- import { M as n, t as r } from "./dist-CUSrALSX.js";
4
- import { r as i } from "./flowWorkspace-BewofPeU.js";
1
+ import { r as e } from "./dist-BKuSVKCC.js";
2
+ import { I as t, j as n, t as r } from "./dist-DxahK_I8.js";
3
+ //#region ../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
4
+ function i() {
5
+ return i = Object.assign ? Object.assign.bind() : function(e) {
6
+ for (var t = 1; t < arguments.length; t++) {
7
+ var n = arguments[t];
8
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
9
+ }
10
+ return e;
11
+ }, i.apply(null, arguments);
12
+ }
13
+ //#endregion
5
14
  //#region ../../node_modules/.bun/@uiw+codemirror-themes@4.25.11/node_modules/@uiw/codemirror-themes/esm/index.js
6
- var a = (e) => {
7
- var i = e.theme, a = e.settings, o = a === void 0 ? {} : a, s = e.styles, c = s === void 0 ? [] : s, l = { ".cm-gutters": {} }, u = {};
15
+ var a = (t) => {
16
+ var i = t.theme, a = t.settings, o = a === void 0 ? {} : a, s = t.styles, c = s === void 0 ? [] : s, l = { ".cm-gutters": {} }, u = {};
8
17
  o.background && (u.backgroundColor = o.background), o.backgroundImage && (u.backgroundImage = o.backgroundImage), o.foreground && (u.color = o.foreground), o.fontSize && (u.fontSize = o.fontSize), (o.background || o.foreground) && (l["&"] = u), o.fontFamily && (l["&.cm-editor .cm-scroller"] = { fontFamily: o.fontFamily }), o.gutterBackground && (l[".cm-gutters"].backgroundColor = o.gutterBackground), o.gutterForeground && (l[".cm-gutters"].color = o.gutterForeground), o.gutterBorder && (l[".cm-gutters"].borderRightColor = o.gutterBorder), o.caret && (l[".cm-content"] = { caretColor: o.caret }, l[".cm-cursor, .cm-dropCursor"] = { borderLeftColor: o.caret });
9
18
  var d = {};
10
19
  o.gutterActiveForeground && (d.color = o.gutterActiveForeground), o.lineHighlight && (l[".cm-activeLine"] = { backgroundColor: o.lineHighlight }, d.backgroundColor = o.lineHighlight), l[".cm-activeLineGutter"] = d, o.selection && (l["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"] = { background: o.selection + " !important" }), o.selectionMatch && (l["& .cm-selectionMatch"] = { backgroundColor: o.selectionMatch });
11
- var f = t.theme(l, { dark: i === "dark" }), p = r.define(c);
20
+ var f = e.theme(l, { dark: i === "dark" }), p = r.define(c);
12
21
  return [f, n(p)];
13
22
  }, o = {
14
23
  background: "#fff",
@@ -19,89 +28,89 @@ var a = (e) => {
19
28
  gutterForeground: "#6e7781"
20
29
  }, s = [
21
30
  {
22
- tag: [e.standard(e.tagName), e.tagName],
31
+ tag: [t.standard(t.tagName), t.tagName],
23
32
  color: "#116329"
24
33
  },
25
34
  {
26
- tag: [e.comment, e.bracket],
35
+ tag: [t.comment, t.bracket],
27
36
  color: "#6a737d"
28
37
  },
29
38
  {
30
- tag: [e.className, e.propertyName],
39
+ tag: [t.className, t.propertyName],
31
40
  color: "#6f42c1"
32
41
  },
33
42
  {
34
43
  tag: [
35
- e.variableName,
36
- e.attributeName,
37
- e.number,
38
- e.operator
44
+ t.variableName,
45
+ t.attributeName,
46
+ t.number,
47
+ t.operator
39
48
  ],
40
49
  color: "#005cc5"
41
50
  },
42
51
  {
43
52
  tag: [
44
- e.keyword,
45
- e.typeName,
46
- e.typeOperator,
47
- e.typeName
53
+ t.keyword,
54
+ t.typeName,
55
+ t.typeOperator,
56
+ t.typeName
48
57
  ],
49
58
  color: "#d73a49"
50
59
  },
51
60
  {
52
61
  tag: [
53
- e.string,
54
- e.meta,
55
- e.regexp
62
+ t.string,
63
+ t.meta,
64
+ t.regexp
56
65
  ],
57
66
  color: "#032f62"
58
67
  },
59
68
  {
60
- tag: [e.name, e.quote],
69
+ tag: [t.name, t.quote],
61
70
  color: "#22863a"
62
71
  },
63
72
  {
64
- tag: [e.heading, e.strong],
73
+ tag: [t.heading, t.strong],
65
74
  color: "#24292e",
66
75
  fontWeight: "bold"
67
76
  },
68
77
  {
69
- tag: [e.emphasis],
78
+ tag: [t.emphasis],
70
79
  color: "#24292e",
71
80
  fontStyle: "italic"
72
81
  },
73
82
  {
74
- tag: [e.deleted],
83
+ tag: [t.deleted],
75
84
  color: "#b31d28",
76
85
  backgroundColor: "ffeef0"
77
86
  },
78
87
  {
79
88
  tag: [
80
- e.atom,
81
- e.bool,
82
- e.special(e.variableName)
89
+ t.atom,
90
+ t.bool,
91
+ t.special(t.variableName)
83
92
  ],
84
93
  color: "#e36209"
85
94
  },
86
95
  {
87
96
  tag: [
88
- e.url,
89
- e.escape,
90
- e.regexp,
91
- e.link
97
+ t.url,
98
+ t.escape,
99
+ t.regexp,
100
+ t.link
92
101
  ],
93
102
  color: "#032f62"
94
103
  },
95
104
  {
96
- tag: e.link,
105
+ tag: t.link,
97
106
  textDecoration: "underline"
98
107
  },
99
108
  {
100
- tag: e.strikethrough,
109
+ tag: t.strikethrough,
101
110
  textDecoration: "line-through"
102
111
  },
103
112
  {
104
- tag: e.invalid,
113
+ tag: t.invalid,
105
114
  color: "#cb2431"
106
115
  }
107
116
  ], c = (e) => {
@@ -120,80 +129,80 @@ var a = (e) => {
120
129
  lineHighlight: "#36334280"
121
130
  }, d = [
122
131
  {
123
- tag: [e.standard(e.tagName), e.tagName],
132
+ tag: [t.standard(t.tagName), t.tagName],
124
133
  color: "#7ee787"
125
134
  },
126
135
  {
127
- tag: [e.comment, e.bracket],
136
+ tag: [t.comment, t.bracket],
128
137
  color: "#8b949e"
129
138
  },
130
139
  {
131
- tag: [e.className, e.propertyName],
140
+ tag: [t.className, t.propertyName],
132
141
  color: "#d2a8ff"
133
142
  },
134
143
  {
135
144
  tag: [
136
- e.variableName,
137
- e.attributeName,
138
- e.number,
139
- e.operator
145
+ t.variableName,
146
+ t.attributeName,
147
+ t.number,
148
+ t.operator
140
149
  ],
141
150
  color: "#79c0ff"
142
151
  },
143
152
  {
144
153
  tag: [
145
- e.keyword,
146
- e.typeName,
147
- e.typeOperator,
148
- e.typeName
154
+ t.keyword,
155
+ t.typeName,
156
+ t.typeOperator,
157
+ t.typeName
149
158
  ],
150
159
  color: "#ff7b72"
151
160
  },
152
161
  {
153
162
  tag: [
154
- e.string,
155
- e.meta,
156
- e.regexp
163
+ t.string,
164
+ t.meta,
165
+ t.regexp
157
166
  ],
158
167
  color: "#a5d6ff"
159
168
  },
160
169
  {
161
- tag: [e.name, e.quote],
170
+ tag: [t.name, t.quote],
162
171
  color: "#7ee787"
163
172
  },
164
173
  {
165
- tag: [e.heading, e.strong],
174
+ tag: [t.heading, t.strong],
166
175
  color: "#d2a8ff",
167
176
  fontWeight: "bold"
168
177
  },
169
178
  {
170
- tag: [e.emphasis],
179
+ tag: [t.emphasis],
171
180
  color: "#d2a8ff",
172
181
  fontStyle: "italic"
173
182
  },
174
183
  {
175
- tag: [e.deleted],
184
+ tag: [t.deleted],
176
185
  color: "#ffdcd7",
177
186
  backgroundColor: "ffeef0"
178
187
  },
179
188
  {
180
189
  tag: [
181
- e.atom,
182
- e.bool,
183
- e.special(e.variableName)
190
+ t.atom,
191
+ t.bool,
192
+ t.special(t.variableName)
184
193
  ],
185
194
  color: "#ffab70"
186
195
  },
187
196
  {
188
- tag: e.link,
197
+ tag: t.link,
189
198
  textDecoration: "underline"
190
199
  },
191
200
  {
192
- tag: e.strikethrough,
201
+ tag: t.strikethrough,
193
202
  textDecoration: "line-through"
194
203
  },
195
204
  {
196
- tag: e.invalid,
205
+ tag: t.invalid,
197
206
  color: "#f97583"
198
207
  }
199
208
  ], f = (e) => {
@@ -0,0 +1,30 @@
1
+ import type { ControlClient, EventSource } from '../common/control-api.js';
2
+ import type { UiLanguage } from '../common/localization.js';
3
+ interface Props {
4
+ readonly client: Pick<ControlClient, 'listEventSources' | 'createEventSource' | 'updateEventSource' | 'deleteEventSource' | 'listEventSourceConnections' | 'createConnectorConnectionPage'>;
5
+ readonly language: UiLanguage;
6
+ readonly teams: readonly {
7
+ readonly id: string;
8
+ readonly name: string;
9
+ }[];
10
+ }
11
+ export declare function EventSourcesPage(props: Props): import("react").JSX.Element;
12
+ export declare function SourceForm({ source, existingNames, fixedTeamId, onPendingChange, client, teams, onSaved, onCancel, }: Omit<Props, 'language'> & {
13
+ readonly source?: EventSource;
14
+ readonly existingNames?: readonly string[];
15
+ readonly onPendingChange?: (pending: boolean) => void;
16
+ readonly fixedTeamId?: string | null;
17
+ readonly onSaved: (source: EventSource) => void;
18
+ readonly onCancel: () => void;
19
+ }): import("react").JSX.Element;
20
+ export declare function SourceSelect({ label, value, options, disabled, onChange, }: {
21
+ readonly label: string;
22
+ readonly value: string;
23
+ readonly options: readonly {
24
+ readonly value: string;
25
+ readonly label: string;
26
+ }[];
27
+ readonly disabled: boolean;
28
+ readonly onChange: (value: string) => void;
29
+ }): import("react").JSX.Element;
30
+ export {};
@@ -1,4 +1,4 @@
1
1
  import type { ChangeOperation } from './flow-change.js';
2
2
  export declare function imports(source: string): Promise<readonly string[]>;
3
- export declare function replaceSource(moduleId: string, source: string, moduleImports: readonly string[]): readonly ChangeOperation[];
4
- export declare function rename(moduleId: string, name: string): readonly ChangeOperation[];
3
+ export declare function replaceSource(moduleId: string, beforeSource: string, beforeImports: readonly string[], source: string, moduleImports: readonly string[]): readonly ChangeOperation[];
4
+ export declare function rename(moduleId: string, before: string, name: string): readonly ChangeOperation[];
@@ -1,7 +1,7 @@
1
- import type { ChangeOperation, CodeModule, GraphTarget, JsonValue, PortDefinition, RevisionContent, TaskDefinition, TriggerKeySnapshot, TriggerNode, TriggerSchedule, WebhookOptions } from './flow-change.js';
1
+ import type { ChangeOperation, CodeModule, ConnectorCapability, GraphNode, GraphTarget, InputMapping, InputValues, JsonValue, PortDefinition, RevisionContent, TaskDefinition, TriggerKeySnapshot, TriggerNode, TriggerSchedule, WebhookOptions } from './flow-change.js';
2
2
  export interface Settings {
3
- readonly concurrency: number;
4
3
  readonly name?: string;
4
+ readonly maxExecutions?: number;
5
5
  readonly timeoutMs?: number;
6
6
  }
7
7
  export interface LlmTaskOptions {
@@ -9,25 +9,32 @@ export interface LlmTaskOptions {
9
9
  readonly output?: PortDefinition;
10
10
  }
11
11
  export type LlmInputHandle = 'input' | 'messages' | 'model' | 'template';
12
+ export declare function defaultNodeName(content: RevisionContent, node: GraphNode): string;
13
+ export declare function repairNodeNames(content: RevisionContent): readonly ChangeOperation[];
12
14
  interface TriggerSettingsBase {
13
15
  readonly description?: string;
14
16
  readonly name: string;
15
17
  }
16
18
  export type TriggerSettings = (TriggerSettingsBase & {
17
- readonly inputs: Extract<TriggerNode, {
19
+ readonly kind: 'manual';
20
+ }) | (TriggerSettingsBase & {
21
+ readonly bodyFields: Extract<TriggerNode, {
18
22
  readonly kind: 'webhook';
19
- }>['inputsDef'];
23
+ }>['bodyFields'];
20
24
  readonly kind: 'webhook';
25
+ readonly method: Extract<TriggerNode, {
26
+ readonly kind: 'webhook';
27
+ }>['method'];
21
28
  readonly options: WebhookOptions;
22
29
  }) | (TriggerSettingsBase & {
23
30
  readonly kind: 'cron';
24
31
  readonly schedule: readonly TriggerSchedule[];
25
32
  }) | (TriggerSettingsBase & {
26
- readonly config: Readonly<Record<string, JsonValue>>;
33
+ readonly config: InputValues;
27
34
  readonly kind: 'poll';
28
35
  readonly schedule: readonly TriggerSchedule[];
29
36
  }) | (TriggerSettingsBase & {
30
- readonly config: Readonly<Record<string, JsonValue>>;
37
+ readonly config: InputValues;
31
38
  readonly kind: 'integration';
32
39
  });
33
40
  export declare function createCodeTask(target: GraphTarget, identity: {
@@ -35,13 +42,17 @@ export declare function createCodeTask(target: GraphTarget, identity: {
35
42
  readonly nodeId: string;
36
43
  }, name: string, module?: Pick<CodeModule, 'imports' | 'source'> | undefined, ports?: Pick<Extract<TaskDefinition, {
37
44
  readonly moduleId: string;
38
- }>, 'inputs' | 'outputs'>): readonly ChangeOperation[];
45
+ }>, 'inputs' | 'outputs' | 'capabilities'>): readonly ChangeOperation[];
39
46
  export declare function createManagedTask(target: GraphTarget, identity: {
40
47
  readonly nodeId: string;
41
48
  readonly taskId: string;
42
49
  }, task: Extract<TaskDefinition, {
43
50
  readonly executor: unknown;
44
51
  }>): readonly ChangeOperation[];
52
+ export declare function createAgentTask(target: GraphTarget, identity: {
53
+ readonly nodeId: string;
54
+ readonly taskId: string;
55
+ }, name: string): readonly ChangeOperation[];
45
56
  export declare function createLlmTask(target: GraphTarget, identity: {
46
57
  readonly nodeId: string;
47
58
  readonly taskId: string;
@@ -51,17 +62,17 @@ export declare function createValue(target: GraphTarget, nodeId: string, name: s
51
62
  export declare function createWait(target: Extract<GraphTarget, {
52
63
  readonly kind: 'flow';
53
64
  }>, nodeId: string, name: string): readonly ChangeOperation[];
65
+ export declare function createApproval(target: Extract<GraphTarget, {
66
+ readonly kind: 'flow';
67
+ }>, nodeId: string, name: string): readonly ChangeOperation[];
54
68
  export declare function createBuiltinTrigger(target: Extract<GraphTarget, {
55
69
  readonly kind: 'flow';
56
70
  }>, nodeId: string, node: Extract<TriggerNode, {
57
- readonly kind: 'cron' | 'webhook';
71
+ readonly kind: 'cron' | 'manual' | 'webhook';
58
72
  }>): readonly ChangeOperation[];
59
73
  export declare function createProviderTrigger(target: Extract<GraphTarget, {
60
74
  readonly kind: 'flow';
61
- }>, identity: {
62
- readonly bindingId: string;
63
- readonly nodeId: string;
64
- }, definition: TriggerKeySnapshot, options: {
75
+ }>, nodeId: string, definition: TriggerKeySnapshot, options: {
65
76
  readonly config: Readonly<Record<string, JsonValue>>;
66
77
  readonly connectionId?: string;
67
78
  readonly name?: string;
@@ -71,19 +82,25 @@ export declare function deleteNodes(content: RevisionContent, target: GraphTarge
71
82
  export declare function updateSettings(content: RevisionContent, target: GraphTarget, nodeId: string, settings: Settings): readonly ChangeOperation[] | undefined;
72
83
  export declare function setInputValue(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
73
84
  export declare function setInputValues(content: RevisionContent, target: GraphTarget, nodeId: string, values: Readonly<Record<string, JsonValue | undefined>>): readonly ChangeOperation[] | undefined;
85
+ /** Restore inheritance for this form in one undoable change. */
86
+ export declare function resetInputValues(content: RevisionContent, target: GraphTarget, nodeId: string, handles: readonly string[]): readonly ChangeOperation[];
87
+ export declare function setInputSources(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, sources: Extract<InputMapping, {
88
+ readonly kind: 'sources';
89
+ }>['sources']): readonly ChangeOperation[];
74
90
  export declare function setInputVariable(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, name: string, bindingId: string): readonly ChangeOperation[] | undefined;
75
91
  export declare function cleanVariableBindings(content: RevisionContent, operations: readonly ChangeOperation[]): readonly ChangeOperation[];
76
- export declare function setConnectorConnection(content: RevisionContent, taskId: string, connectionId: string): readonly ChangeOperation[] | undefined;
92
+ export declare function setConnectorConnection(content: RevisionContent, taskId: string, connectionId: string | undefined): readonly ChangeOperation[] | undefined;
77
93
  export declare function updateTrigger(content: RevisionContent, target: {
78
94
  readonly kind: 'flow';
79
95
  }, nodeId: string, settings: TriggerSettings): readonly ChangeOperation[] | undefined;
80
- export declare function updateTriggerConfig(content: RevisionContent, target: {
96
+ export declare function updateTriggerConfig(content: RevisionContent, _target: {
81
97
  readonly kind: 'flow';
82
98
  }, nodeId: string, name: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
83
- export declare function updateTriggerSchedule(content: RevisionContent, target: {
99
+ export declare function updateTriggerSchedule(content: RevisionContent, _target: {
84
100
  readonly kind: 'flow';
85
101
  }, nodeId: string, schedule: readonly TriggerSchedule[]): readonly ChangeOperation[] | undefined;
86
- export declare function setTriggerConnection(content: RevisionContent, _target: {
102
+ export declare function setTriggerConnection(content: RevisionContent, target: {
87
103
  readonly kind: 'flow';
88
- }, nodeId: string, connectionId: string): readonly ChangeOperation[] | undefined;
104
+ }, nodeId: string, connectionId: string | undefined): readonly ChangeOperation[] | undefined;
105
+ export declare function setCodeActions(content: RevisionContent, target: GraphTarget, nodeId: string, capabilities: readonly ConnectorCapability[]): readonly ChangeOperation[] | undefined;
89
106
  export {};
@@ -1,4 +1,4 @@
1
1
  export declare const createAuthoringId: (size?: number) => string;
2
2
  export { connect, disconnect } from './flow-authoring-edge.js';
3
3
  export { imports as moduleImports, rename as renameModule, replaceSource as replaceModuleSource } from './flow-authoring-module.js';
4
- export { createBuiltinTrigger, createCodeTask, createCondition, createLlmTask, createManagedTask, createProviderTrigger, createValue, createWait, deleteNodes, cleanVariableBindings, setConnectorConnection, setInputVariable, setInputValues, setTriggerConnection, updateSettings, updateTrigger, } from './flow-authoring-node.js';
4
+ export { createBuiltinTrigger, createCodeTask, createCondition, createAgentTask, createLlmTask, createManagedTask, createProviderTrigger, createValue, createWait, deleteNodes, cleanVariableBindings, setConnectorConnection, setCodeActions, setInputSources, setInputVariable, setInputValues, setTriggerConnection, updateSettings, updateTrigger, } from './flow-authoring-node.js';