Skip to content

Commit e5b4594

Browse files
author
SDKAuto
committed
CodeGen from PR 3559 in test-repo-billy/azure-rest-api-specs
Merge 060e30d7a05928d0442267354fe4ccf0740e37ef into a1ece0d8092cbabd104c6a090519eb102db0c350
1 parent b90db00 commit e5b4594

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2345
-3903
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 426 additions & 404 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/contentsafety/ai-content-safety-rest/.eslintrc.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 25 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,31 @@
11
# Release History
2-
3-
## 1.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
13-
## 1.0.0 (2023-12-13)
14-
2+
3+
## 2.0.0 (2024-11-08)
4+
155
### Features Added
166

17-
- Support AAD Authentication
18-
- Support 8 severity levels output for Text Analyze
7+
- Added operation group DetectTextProtectedMaterial
8+
- Added operation in Routes for path: "/text:detectProtectedMaterial"
9+
- Added Interface ContentSafetyClientOptions
10+
- Added Interface DetectTextProtectedMaterial200Response
11+
- Added Interface DetectTextProtectedMaterialResultOutput
12+
- Added Interface TextProtectedMaterialAnalysisResultOutput
13+
- Added Type Alias AnalyzeImageOutputType
14+
- Added Type Alias AnalyzeTextOutputType
15+
- Added Type Alias ImageCategory
16+
- Added Type Alias ImageCategoryOutput
17+
- Added Type Alias TextCategory
18+
- Added Type Alias TextCategoryOutput
19+
- Interface TextBlocklistItem has a new optional parameter isRegex
20+
- Interface TextBlocklistItemOutput has a new optional parameter isRegex
21+
- Added function overload "export function isUnexpected(response: DetectTextProtectedMaterial200Response | DetectTextProtectedMaterialDefaultResponse): response is DetectTextProtectedMaterialDefaultResponse;"
1922

2023
### Breaking Changes
2124

22-
Contract change for AnalyzeText, AnalyzeImage, Blocklist management related parameters
23-
24-
#### AnalyzeText
25-
26-
- AnalyzeTextOptions
27-
- Renamed `breakByBlocklists` to `haltOnBlocklistHit`
28-
- Add `outputType`
29-
- AnalyzeTextResultOutput
30-
- Renamed `blocklistsMatchResults` to `blocklistsMatch`
31-
- Replaced `TextAnalyzeSeverityResultOutput` by `TextCategoriesAnalysisOutput`
32-
33-
#### AnalyzeImage
34-
35-
- AnalyzeImageOptions
36-
- Add `outputType`
37-
- AnalyzeImageResultOutput
38-
- Replaced `ImageAnalyzeSeverityResultOutput` by `ImageCategoriesAnalysisOutput`
39-
40-
#### Blocklist management
41-
42-
- Renamed `"/text/blocklists/{blocklistName}:addBlockItems"` to `"/text/blocklists/{blocklistName}:addOrUpdateBlocklistItems"`
43-
- Renamed `"/text/blocklists/{blocklistName}:removeBlockItems"` to `"/text/blocklists/{blocklistName}:removeBlocklistItems"`
44-
- Renamed `"/text/blocklists/{blocklistName}/blockItems"` to `"/text/blocklists/{blocklistName}/blocklistItems"`
45-
- Renamed `"/text/blocklists/{blocklistName}/blockItems/{blockItemId}"` to `"/text/blocklists/{blocklistName}/blocklistItems/{blocklistItemId}"`
46-
- Renamed `AddBlockItemsOptions` to `AddOrUpdateTextBlocklistItemsOptions`
47-
- Renamed `blockItems` to `blocklistItems`
48-
- Renamed `AddBlockItemsResultOutput` to `AddOrUpdateTextBlocklistItemsResultOutput`
49-
- Renamed `value` to `blocklistItems`
50-
- Renamed `RemoveBlockItemsOptions` to `RemoveTextBlocklistItemsOptions`
51-
- Renamed `blockItemIds` to `blocklistItemIds`
52-
- Renamed `TextBlockItemInfo` to `TextBlocklistItem`
53-
54-
## 1.0.0-beta.1 (2023-09-28)
55-
56-
- This is the initial beta release for Azure AI Content Safety, see README.md for details.
25+
- Type of parameter categories of interface AnalyzeImageOptions is changed from string[] to ImageCategory[]
26+
- Type of parameter outputType of interface AnalyzeImageOptions is changed from string to AnalyzeImageOutputType
27+
- Type of parameter categories of interface AnalyzeTextOptions is changed from string[] to TextCategory[]
28+
- Type of parameter outputType of interface AnalyzeTextOptions is changed from string to AnalyzeTextOutputType
29+
- Type of parameter category of interface ImageCategoriesAnalysisOutput is changed from string to ImageCategoryOutput
30+
- Type of parameter category of interface TextCategoriesAnalysisOutput is changed from string to TextCategoryOutput
31+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2024 Microsoft
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)