fix(runtime): make observed target role optional

This commit is contained in:
morluto
2026-09-29 08:20:18 +08:00
parent 0ae3c0837b
commit 593a8e12ce
8 changed files with 56 additions and 13 deletions
@@ -52,7 +52,9 @@ const parameters = (
...("target_id" in input
? {
target_id: input.target_id,
runtime_kind: input.runtime_kind,
...(input.runtime_kind === undefined
? {}
: { runtime_kind: input.runtime_kind }),
observation_ms: input.observation_ms,
limits: input.limits,
}