feat(api): adjust /pause-details api, add backstage form token

This commit is contained in:
QuantumGhost
2026-01-15 09:41:46 +08:00
parent f1b2e1cfb4
commit ea90746ed7
17 changed files with 449 additions and 55 deletions

View File

@ -95,11 +95,11 @@ class ConsoleHumanInputFormApi(Resource):
self._ensure_console_access(form)
recipient_type = form.recipient_type
if recipient_type != RecipientType.CONSOLE:
if recipient_type not in {RecipientType.CONSOLE, RecipientType.BACKSTAGE}:
raise NotFoundError(f"form not found, token={form_token}")
service.submit_form_by_token(
recipient_type=RecipientType.CONSOLE,
recipient_type=recipient_type,
form_token=form_token,
selected_action_id=args["action"],
form_data=args["inputs"],