Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure-rest/ai-content-safety] Adding IsZoneResilientProvisioningAllowed property in the response for location capabilities api #12309

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
707 changes: 362 additions & 345 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

90 changes: 39 additions & 51 deletions sdk/contentsafety/ai-content-safety-rest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,44 @@
# Release History

## 1.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.0.0 (2023-12-13)

## 1.0.0 (2024-10-08)

### Features Added

- Support AAD Authentication
- Support 8 severity levels output for Text Analyze
- Added operation group DetectTextProtectedMaterial
- Added operation group ShieldPrompt
- Added Interface ContentSafetyClientOptions
- Added Interface DetectTextProtectedMaterial200Response
- Added Interface DetectTextProtectedMaterialBodyParam
- Added Interface DetectTextProtectedMaterialDefaultHeaders
- Added Interface DetectTextProtectedMaterialDefaultResponse
- Added Interface DetectTextProtectedMaterialOptions
- Added Interface DetectTextProtectedMaterialResultOutput
- Added Interface DocumentInjectionAnalysisResultOutput
- Added Interface ImageData
- Added Interface ShieldPrompt200Response
- Added Interface ShieldPromptBodyParam
- Added Interface ShieldPromptDefaultHeaders
- Added Interface ShieldPromptDefaultResponse
- Added Interface ShieldPromptOptions
- Added Interface ShieldPromptResultOutput
- Added Interface TextProtectedMaterialAnalysisResultOutput
- Added Interface UserPromptInjectionAnalysisResultOutput
- Added Type Alias AnalyzeImageOutputType
- Added Type Alias AnalyzeTextOutputType
- Added Type Alias DetectTextProtectedMaterialParameters
- Added Type Alias ImageCategory
- Added Type Alias ImageCategoryOutput
- Added Type Alias ShieldPromptParameters
- Added Type Alias TextCategory
- Added Type Alias TextCategoryOutput
- Interface TextBlocklistItem has a new optional parameter isRegex
- Interface TextBlocklistItemOutput has a new optional parameter isRegex

### Breaking Changes

Contract change for AnalyzeText, AnalyzeImage, Blocklist management related parameters

#### AnalyzeText

- AnalyzeTextOptions
- Renamed `breakByBlocklists` to `haltOnBlocklistHit`
- Add `outputType`
- AnalyzeTextResultOutput
- Renamed `blocklistsMatchResults` to `blocklistsMatch`
- Replaced `TextAnalyzeSeverityResultOutput` by `TextCategoriesAnalysisOutput`

#### AnalyzeImage

- AnalyzeImageOptions
- Add `outputType`
- AnalyzeImageResultOutput
- Replaced `ImageAnalyzeSeverityResultOutput` by `ImageCategoriesAnalysisOutput`

#### Blocklist management

- Renamed `"/text/blocklists/{blocklistName}:addBlockItems"` to `"/text/blocklists/{blocklistName}:addOrUpdateBlocklistItems"`
- Renamed `"/text/blocklists/{blocklistName}:removeBlockItems"` to `"/text/blocklists/{blocklistName}:removeBlocklistItems"`
- Renamed `"/text/blocklists/{blocklistName}/blockItems"` to `"/text/blocklists/{blocklistName}/blocklistItems"`
- Renamed `"/text/blocklists/{blocklistName}/blockItems/{blockItemId}"` to `"/text/blocklists/{blocklistName}/blocklistItems/{blocklistItemId}"`
- Renamed `AddBlockItemsOptions` to `AddOrUpdateTextBlocklistItemsOptions`
- Renamed `blockItems` to `blocklistItems`
- Renamed `AddBlockItemsResultOutput` to `AddOrUpdateTextBlocklistItemsResultOutput`
- Renamed `value` to `blocklistItems`
- Renamed `RemoveBlockItemsOptions` to `RemoveTextBlocklistItemsOptions`
- Renamed `blockItemIds` to `blocklistItemIds`
- Renamed `TextBlockItemInfo` to `TextBlocklistItem`

## 1.0.0-beta.1 (2023-09-28)

- This is the initial beta release for Azure AI Content Safety, see README.md for details.
- Type of parameter categories of interface AnalyzeImageOptions is changed from string[] to ImageCategory[]
- Type of parameter image of interface AnalyzeImageOptions is changed from ImageData_2 to ImageData
- Type of parameter outputType of interface AnalyzeImageOptions is changed from string to AnalyzeImageOutputType
- Type of parameter categories of interface AnalyzeTextOptions is changed from string[] to TextCategory[]
- Type of parameter outputType of interface AnalyzeTextOptions is changed from string to AnalyzeTextOutputType
- Type of parameter category of interface ImageCategoriesAnalysisOutput is changed from string to ImageCategoryOutput
- Type of parameter category of interface TextCategoriesAnalysisOutput is changed from string to TextCategoryOutput

21 changes: 21 additions & 0 deletions sdk/contentsafety/ai-content-safety-rest/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2024 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading