feat: add media governance config methods and category constants#97
Merged
Conversation
- getMediaGovernanceConfig() — retrieve tenant's media governance config - updateMediaGovernanceConfig() — update config (Enterprise: full, Community/Eval: toggle) - getMediaGovernanceStatus() — check feature availability per tier - Category constants: CATEGORY_MEDIA_SAFETY, CATEGORY_MEDIA_BIOMETRIC, CATEGORY_MEDIA_DOCUMENT, CATEGORY_MEDIA_PII - Version bump: 3.4.0 → 3.6.0
Add MEDIA_SAFETY, MEDIA_BIOMETRIC, MEDIA_PII, MEDIA_DOCUMENT enum members to prevent Jackson deserialization crash when server returns policies with media-* categories. Add v3.6.0 CHANGELOG entry.
Add tests for MediaGovernanceConfig, MediaGovernanceStatus, UpdateMediaGovernanceConfigRequest types and their JSON serialization. Add WireMock-based tests for getMediaGovernanceConfig, updateMediaGovernanceConfig, and getMediaGovernanceStatus API methods including async variants. Add coverage for media policy category constants and enum values. Brings line coverage from 0.72 to above the 0.73 threshold required by JaCoCo.
b8b1013 to
8923886
Compare
tokens_in, tokens_out, cost_usd fields with builder support on MarkStepCompletedRequest allow reporting actual LLM usage at step completion time.
Prevents null metrics fields from serializing as explicit "null" values in JSON. Matches the pattern used by all other request types in the SDK.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
getMediaGovernanceConfig()— retrieve tenant's media governance configurationupdateMediaGovernanceConfig()— update config (Enterprise: full control, Community/Eval: toggle only)getMediaGovernanceStatus()— check feature availability per tierCATEGORY_MEDIA_SAFETY,CATEGORY_MEDIA_BIOMETRIC,CATEGORY_MEDIA_DOCUMENT,CATEGORY_MEDIA_PIIPart of SDK v3.6.0 release for AxonFlow v4.5.0 media governance hardening.
Test plan
media-governance-policies/javaexample passes all 7 testsmedia-governance/javaexample passes all 5 tests