(ctx context.Context, in *approveReviewInput)
| 155 | } |
| 156 | |
| 157 | func (s *Server) handleApproveReview(ctx context.Context, in *approveReviewInput) (*approveOutput, error) { |
| 158 | p, err := s.requireAccountScope(ctx) |
| 159 | if err != nil { |
| 160 | return nil, err |
| 161 | } |
| 162 | // Ownership + held-state guard; gives us the owning agent (== inbox address). |
| 163 | msg, err := s.requireOwnedReview(ctx, p.User.ID, in.ID) |
| 164 | if err != nil { |
| 165 | return nil, err |
| 166 | } |
| 167 | view, err := s.approveHeld(ctx, p.User.ID, in.ID, msg.AgentID, in.Body, in.IdempotencyKey, in.RawBody) |
| 168 | if err != nil { |
| 169 | return nil, err |
| 170 | } |
| 171 | return &approveOutput{Body: view}, nil |
| 172 | } |
| 173 | |
| 174 | func (s *Server) handleRejectReview(ctx context.Context, in *rejectReviewInput) (*rejectOutput, error) { |
| 175 | p, err := s.requireAccountScope(ctx) |
nothing calls this directly
no test coverage detected