Skip to content

feat: add media governance config methods and category constants#97

Merged
saurabhjain1592 merged 6 commits into
mainfrom
feat/v3.6.0-media-governance
Feb 22, 2026
Merged

feat: add media governance config methods and category constants#97
saurabhjain1592 merged 6 commits into
mainfrom
feat/v3.6.0-media-governance

Conversation

@saurabhjain1592

Copy link
Copy Markdown
Member

Summary

  • getMediaGovernanceConfig() — retrieve tenant's media governance configuration
  • updateMediaGovernanceConfig() — update config (Enterprise: full control, Community/Eval: toggle only)
  • getMediaGovernanceStatus() — check feature availability per tier
  • 4 category constants: CATEGORY_MEDIA_SAFETY, CATEGORY_MEDIA_BIOMETRIC, CATEGORY_MEDIA_DOCUMENT, CATEGORY_MEDIA_PII
  • Version bump: 3.4.0 → 3.6.0

Part of SDK v3.6.0 release for AxonFlow v4.5.0 media governance hardening.

Test plan

  • E2E tested: media-governance-policies/java example passes all 7 tests
  • E2E tested: media-governance/java example passes all 5 tests

- 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.
@saurabhjain1592 saurabhjain1592 force-pushed the feat/v3.6.0-media-governance branch from b8b1013 to 8923886 Compare February 21, 2026 22:31
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.
@saurabhjain1592 saurabhjain1592 merged commit ca7a268 into main Feb 22, 2026
9 checks passed
@saurabhjain1592 saurabhjain1592 deleted the feat/v3.6.0-media-governance branch March 3, 2026 14:07
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