Skip to content

[MOD2-702] Add ModerationV2Response to Message model#237

Merged
vishalnarkhede merged 3 commits intomainfrom
feature/mod2-702-add-moderation-v2-response-to-message
Feb 16, 2026
Merged

[MOD2-702] Add ModerationV2Response to Message model#237
vishalnarkhede merged 3 commits intomainfrom
feature/mod2-702-add-moderation-v2-response-to-message

Conversation

@vishalnarkhede
Copy link
Contributor

@vishalnarkhede vishalnarkhede commented Feb 16, 2026

Ticket

Summary

  • Add ModerationV2Response inner class to Message.java with fields: action, original_text, text_harms, image_harms, blocklist_matched, semantic_filter_matched
  • Add moderation field to Message class so the SDK can deserialize moderation details from the SendMessage response

Context

eBay uses the Java SDK for server-side integration. The backend is being updated (companion PR) to include moderation labels in the SendMessage response for server-side requests. This SDK change allows eBay to read those fields.

Related PRs

Checklist

  • The changed code has been covered with unit tests
  • API endpoints are covered with client tests

🤖 Generated with Claude Code

Add ModerationV2Response inner class with fields for action,
original_text, text_harms, image_harms, blocklist_matched,
and semantic_filter_matched. Add moderation field to Message
class to deserialize moderation details from SendMessage response.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vishalnarkhede vishalnarkhede marked this pull request as ready for review February 16, 2026 12:02
vishalnarkhede and others added 2 commits February 16, 2026 14:04
…tformCircumvented

Keep deprecated fields for backward compatibility and add new
blocklistsMatched field for multiple blocklist matches.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vishalnarkhede vishalnarkhede merged commit dd138c9 into main Feb 16, 2026
1 of 6 checks passed
@vishalnarkhede vishalnarkhede deleted the feature/mod2-702-add-moderation-v2-response-to-message branch February 16, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant