From e648281e4cba1f7172404559937b457f05b8cf73 Mon Sep 17 00:00:00 2001 From: Anton Sattarov <dirty.mew@gmail.com> Date: Tue, 14 Nov 2023 14:32:57 +0100 Subject: [PATCH] fix ActionResponse --- pkg/extension/action.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkg/extension/action.go b/pkg/extension/action.go index 37003f10..7c626049 100644 --- a/pkg/extension/action.go +++ b/pkg/extension/action.go @@ -7,9 +7,10 @@ import ( ) type ( - ActionKind = pb.Action_Kind - ResponseState = pb.ActionResponse_State - ActionTarget = pb.Target + ActionKind = pb.Action_Kind + ActionTarget = pb.Target + ResponseState = pb.ActionResponse_State + ResponseFormat = pb.ActionResponse_Format ActionRequest struct { Extension string @@ -27,7 +28,11 @@ type ( ActionResponse struct { State ResponseState + Target ActionTarget + Format ResponseFormat Msg string + Title string + Image string Error string Next []*Action Metadata map[string]string -- GitLab