Skip to content

[AutoPR Azure.AI.ContentSafety]-generated-from-SDK Generation - .NET-6652879 - #61589

Open
azure-sdk-automation[bot] wants to merge 5 commits into
mainfrom
sdkauto/Azure.AI.ContentSafety-6640797
Open

[AutoPR Azure.AI.ContentSafety]-generated-from-SDK Generation - .NET-6652879#61589
azure-sdk-automation[bot] wants to merge 5 commits into
mainfrom
sdkauto/Azure.AI.ContentSafety-6640797

Conversation

@azure-sdk-automation

@azure-sdk-automation azure-sdk-automation Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Configurations: 'specification/cognitiveservices/ContentSafety/tspconfig.yaml', SDK Release Type: beta, and CommitSHA: '926fc28f53c318fe3cf68eb8be1ea38e658c0879' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6652879 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan link: https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releaseplan=2242 Submitted by: Connor.Wood@microsoft.com

…fig.yaml', API Version: 2026-07-01-preview, SDK Release Type: beta, and CommitSHA: '829ccecea7e9c1609881104b9a8d0f8cb65ce644' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6640797 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
Copilot AI review requested due to automatic review settings July 30, 2026 17:22
@azure-sdk-automation azure-sdk-automation Bot added the auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically. label Jul 30, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
10 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.

This PR updates the Azure.AI.ContentSafety SDK to the 2026-07-01-preview API version and introduces a new ContentProvenanceClient plus generated models for asynchronous Content Provenance Detection operations.

Changes:

  • Adds ContentProvenanceClient (DI/builder/config binding support) and new provenance-related models/serializers.
  • Updates default service version and metadata to 2026-07-01-preview.
  • Extends generated configuration schema and model factory to include provenance types.

Reviewed changes

Copilot reviewed 5 out of 28 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
sdk/contentsafety/Azure.AI.ContentSafety/tsp-location.yaml Updates TypeSpec source location and emitter package path.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/schema/ConfigurationSchema.json Adds configuration schema entry for ContentProvenanceClient.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/ProvenanceOperationKind.cs Adds string-backed enum for provenance operation kinds.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/ProvenanceDetectOperation.cs Adds model for LRO status/result envelope.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/ProvenanceDetectOperation.Serialization.cs Adds JSON model/persistable support for LRO envelope.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/ProvenanceContent.cs Adds input model describing provenance source content.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/ProvenanceContent.Serialization.cs Adds JSON model/persistable support for provenance content.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/OperationState.cs Adds string-backed enum for operation states.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectedProvenanceType.cs Adds string-backed enum for provenance signal types.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectedProvenance.cs Adds model for detected provenance signals.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectedProvenance.Serialization.cs Adds JSON model/persistable support for detected provenance signals.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectProvenanceResult.cs Adds result model for provenance detection operations.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectProvenanceResult.Serialization.cs Adds JSON model/persistable support and LRO result extraction helper.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectProvenanceOptions.cs Adds input options model for provenance detection.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectProvenanceOptions.Serialization.cs Adds JSON model/persistable support and RequestContent conversion.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectOutcome.cs Adds string-backed enum for detection outcomes.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/AzureAIContentSafetyContext.cs Registers new models for ModelReaderWriter.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentSafetyModelFactory.cs Adds factory methods for new provenance models (mocking support).
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentSafetyClientOptions.cs Adds preview service version and makes it the default.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentSafetyClientBuilderExtensions.cs Adds AddContentProvenanceClient builder registration overloads.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentProvenanceClientSettings.cs Adds configuration-binding settings type for provenance client.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentProvenanceClientHostExtensions.cs Adds host-builder extensions for DI registration via configuration.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentProvenanceClient.cs Adds provenance client and LRO convenience methods.
sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentProvenanceClient.RestClient.cs Adds REST request builders for provenance detect + operation status.
sdk/contentsafety/Azure.AI.ContentSafety/metadata.json Updates metadata API version to 2026-07-01-preview.
sdk/contentsafety/Azure.AI.ContentSafety/api/Azure.AI.ContentSafety.netstandard2.0.cs Updates public API surface for preview version and provenance client/models.
sdk/contentsafety/Azure.AI.ContentSafety/api/Azure.AI.ContentSafety.net8.0.cs Updates public API surface for preview version and provenance client/models.
sdk/contentsafety/Azure.AI.ContentSafety/api/Azure.AI.ContentSafety.net10.0.cs Updates public API surface for preview version and provenance client/models.

Comment thread sdk/contentsafety/Azure.AI.ContentSafety/tsp-location.yaml
@Connor-Wood

Copy link
Copy Markdown
Member

Hi Jesse Squire (@jsquire) - could you take a look when you have a moment? This is the Content Safety data-plane SDK for the new 2026-07-01-preview API version, which adds Content Provenance detection. All checks are green (26 passing, 0 failing) and the generated code is unmodified. Release plan 2242. Thanks!

@azure-sdk-automation azure-sdk-automation Bot changed the title [AutoPR Azure.AI.ContentSafety]-generated-from-SDK Generation - .NET-6640797 [AutoPR Azure.AI.ContentSafety]-generated-from-SDK Generation - .NET-6652879 Aug 3, 2026
Covers both outcomes: signed media (C2PA + watermark) asserting ProvenanceDetected with a populated Results collection, and unsigned media asserting NoProvenanceDetected. Provenance had no test coverage.

The media are blob SAS URIs, so the recorded variables carry placeholder values and body regex sanitizers replace each URI wholesale; the recordings contain no SAS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants