feat: project override on runSavedFlow
Some checks failed
Security / Security check (push) Failing after 2s

Empty keeps the saved flow's own project:, then general (resolved
hub-side) — the wire field existed, the wrapper now exposes it.

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-07-12 13:35:14 +02:00
parent dd909b58f4
commit f67e430b09

View file

@ -766,8 +766,13 @@ class HubClient {
Map<String, String> textInputs = const {},
Map<String, Uint8List> fileInputs = const {},
Map<String, String> fileMimeTypes = const {},
String project = '',
}) async {
final req = pb.RunSavedFlowRequest()..name = name;
// Project override for this run; empty keeps the saved flow's
// own `project:`, then `general` (resolved hub-side).
final req = pb.RunSavedFlowRequest()
..name = name
..project = project;
for (final entry in textInputs.entries) {
req.inputs[entry.key] = pb_common.Payload()..text = entry.value;
}