Skip to content

Commit 8ace976

Browse files
author
SDKAuto
committed
CodeGen from PR 33698 in Azure/azure-rest-api-specs
Merge d82f6698c1524f8ad485970035643563a8889fb5 into f03aa628f37d2d7e10db8cc16e7471342d3beaaf
1 parent cbb2280 commit 8ace976

Some content is hidden

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

53 files changed

+305
-2252
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 50 additions & 125 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
# Release History
2-
3-
## 1.0.0 (2024-10-18)
4-
5-
### Other Changes
6-
Stable Release.
7-
8-
## 1.0.0-beta.3 (2024-07-18)
2+
3+
## 1.0.0 (2025-04-21)
94

105
### Features Added
11-
Added EntraID support to client.
12-
13-
## 1.0.0-beta.2 (2024-02-14)
146

15-
### Breaking Changes
16-
The type names for AnalyzeFromBuffer* have changed to AnalyzeFromImageData*
17-
18-
## 1.0.0-beta.1 (2024-01-09)
19-
20-
### Features Added
21-
Initial release of Image Analysis SDK. Uses the generally available [Computer Vision REST API (2023-10-01)](https://eastus.dev.cognitive.microsoft.com/docs/services/Cognitive_Services_Unified_Vision_API_2023-10-01).
7+
The package of @azure-rest/ai-vision-image-analysis is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) Microsoft Corporation.
2+
3+
MIT License
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.

sdk/vision/ai-vision-image-analysis-rest/README.md

Lines changed: 18 additions & 296 deletions
Large diffs are not rendered by default.

sdk/vision/ai-vision-image-analysis-rest/api-extractor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

sdk/vision/ai-vision-image-analysis-rest/assets.json

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default azsdkEslint.config([
4+
{
5+
rules: {
6+
"@azure/azure-sdk/ts-modules-only-named": "warn",
7+
"@azure/azure-sdk/ts-package-json-types": "warn",
8+
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
9+
"@azure/azure-sdk/ts-package-json-files-required": "off",
10+
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
11+
"tsdoc/syntax": "warn",
12+
},
13+
},
14+
]);
Lines changed: 69 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
11
{
22
"name": "@azure-rest/ai-vision-image-analysis",
3-
"sdk-type": "client",
4-
"author": "Microsoft Corporation",
53
"version": "1.0.0",
6-
"description": "undefined",
4+
"description": "A generated SDK for ImageAnalysisClient.",
5+
"engines": {
6+
"node": ">=18.0.0"
7+
},
8+
"sideEffects": false,
9+
"autoPublish": false,
10+
"tshy": {
11+
"exports": {
12+
"./package.json": "./package.json",
13+
".": "./src/index.ts"
14+
},
15+
"dialects": [
16+
"esm",
17+
"commonjs"
18+
],
19+
"esmDialects": [
20+
"browser",
21+
"react-native"
22+
],
23+
"selfLink": false,
24+
"project": "./tsconfig.src.json"
25+
},
26+
"type": "module",
727
"keywords": [
828
"node",
929
"azure",
@@ -12,55 +32,32 @@
1232
"browser",
1333
"isomorphic"
1434
],
35+
"author": "Microsoft Corporation",
1536
"license": "MIT",
16-
"main": "./dist/commonjs/index.js",
17-
"module": "./dist/esm/index.js",
18-
"types": "./dist/commonjs/index.d.ts",
19-
"repository": "github:Azure/azure-sdk-for-js",
20-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/vision/ai-vision-image-analysis-rest/README.md",
21-
"bugs": {
22-
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
23-
},
2437
"files": [
2538
"dist/",
2639
"README.md",
27-
"LICENSE",
28-
"review/",
29-
"CHANGELOG.md"
40+
"LICENSE"
3041
],
31-
"engines": {
32-
"node": ">=18.0.0"
42+
"sdk-type": "client",
43+
"repository": "github:Azure/azure-sdk-for-js",
44+
"bugs": {
45+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
3346
},
34-
"scripts": {
35-
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
36-
"build:samples": "echo skipped.",
37-
"build:test": "echo skipped.",
38-
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"",
39-
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
40-
"execute:samples": "echo skipped",
41-
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
42-
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"",
43-
"generate:client": "echo skipped",
44-
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
45-
"integration-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
46-
"integration-test:node": "dev-tool run test:vitest --esm",
47-
"lint": "eslint package.json api-extractor.json src test",
48-
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
49-
"pack": "npm pack 2>&1",
50-
"test": "npm run clean && npm run build:test && npm run unit-test",
51-
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
52-
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",
53-
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
54-
"unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
55-
"unit-test:node": "dev-tool run test:vitest",
56-
"update-snippets": "dev-tool run update-snippets"
47+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/vision/ai-vision-image-analysis-rest/README.md",
48+
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
49+
"//metadata": {
50+
"constantPaths": [
51+
{
52+
"path": "src/imageAnalysisClient.ts",
53+
"prefix": "userAgentInfo"
54+
}
55+
]
5756
},
58-
"sideEffects": false,
59-
"autoPublish": false,
6057
"dependencies": {
6158
"@azure-rest/core-client": "^2.3.1",
6259
"@azure/core-auth": "^1.9.0",
63-
"@azure/core-rest-pipeline": "^1.19.0",
60+
"@azure/core-rest-pipeline": "^1.19.1",
6461
"@azure/logger": "^1.1.4",
6562
"tslib": "^2.8.1"
6663
},
@@ -70,43 +67,43 @@
7067
"@azure-tools/test-utils-vitest": "^1.0.0",
7168
"@azure/dev-tool": "^1.0.0",
7269
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
73-
"@azure/identity": "^4.7.0",
70+
"@azure/identity": "^4.9.0",
7471
"@types/node": "^18.0.0",
7572
"@vitest/browser": "^3.0.9",
7673
"@vitest/coverage-istanbul": "^3.0.9",
77-
"autorest": "latest",
7874
"dotenv": "^16.0.0",
7975
"eslint": "^9.9.0",
80-
"playwright": "^1.50.1",
76+
"playwright": "^1.52.0",
8177
"typescript": "~5.8.2",
8278
"vitest": "^3.0.9"
8379
},
84-
"//metadata": {
85-
"constantPaths": [
86-
{
87-
"path": "src/imageAnalysisClient.ts",
88-
"prefix": "userAgentInfo"
89-
}
90-
]
80+
"scripts": {
81+
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
82+
"build:samples": "echo skipped",
83+
"build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
84+
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
85+
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
86+
"execute:samples": "echo skipped",
87+
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
88+
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
89+
"generate:client": "echo skipped",
90+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
91+
"integration-test:browser": "echo skipped",
92+
"integration-test:node": "echo skipped",
93+
"lint": "eslint package.json api-extractor.json src test",
94+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
95+
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
96+
"pack": "npm pack 2>&1",
97+
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
98+
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
99+
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
100+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
101+
"unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
102+
"unit-test:node": "dev-tool run test:vitest",
103+
"update-snippets": "dev-tool run update-snippets"
91104
},
92105
"browser": "./dist/browser/index.js",
93-
"type": "module",
94-
"tshy": {
95-
"project": "./tsconfig.src.json",
96-
"exports": {
97-
"./package.json": "./package.json",
98-
".": "./src/index.ts"
99-
},
100-
"dialects": [
101-
"esm",
102-
"commonjs"
103-
],
104-
"esmDialects": [
105-
"browser",
106-
"react-native"
107-
],
108-
"selfLink": false
109-
},
106+
"react-native": "./dist/react-native/index.js",
110107
"exports": {
111108
"./package.json": "./package.json",
112109
".": {
@@ -128,5 +125,6 @@
128125
}
129126
}
130127
},
131-
"react-native": "./dist/react-native/index.js"
132-
}
128+
"main": "./dist/commonjs/index.js",
129+
"types": "./dist/commonjs/index.d.ts"
130+
}

sdk/vision/ai-vision-image-analysis-rest/review/ai-vision-image-analysis.api.md

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ export interface AnalyzeFromImageDataDefaultResponse extends HttpResponse {
4848
status: string;
4949
}
5050

51+
// @public
52+
export interface AnalyzeFromImageDataFeaturesQueryParam {
53+
explode: false;
54+
style: "form";
55+
value: VisualFeatures[];
56+
}
57+
5158
// @public (undocumented)
5259
export interface AnalyzeFromImageDataMediaTypesParam {
5360
contentType: "application/octet-stream";
@@ -66,11 +73,18 @@ export interface AnalyzeFromImageDataQueryParam {
6673
export interface AnalyzeFromImageDataQueryParamProperties {
6774
"gender-neutral-caption"?: boolean;
6875
"model-version"?: string;
69-
"smartcrops-aspect-ratios"?: number[];
70-
features: VisualFeatures[];
76+
"smartcrops-aspect-ratios"?: number[] | AnalyzeFromImageDataSmartcropsAspectRatiosQueryParam;
77+
features: VisualFeatures[] | AnalyzeFromImageDataFeaturesQueryParam;
7178
language?: string;
7279
}
7380

81+
// @public
82+
export interface AnalyzeFromImageDataSmartcropsAspectRatiosQueryParam {
83+
explode: false;
84+
style: "form";
85+
value: number[];
86+
}
87+
7488
// @public
7589
export interface AnalyzeFromUrl200Response extends HttpResponse {
7690
// (undocumented)
@@ -99,6 +113,13 @@ export interface AnalyzeFromUrlDefaultResponse extends HttpResponse {
99113
status: string;
100114
}
101115

116+
// @public
117+
export interface AnalyzeFromUrlFeaturesQueryParam {
118+
explode: false;
119+
style: "form";
120+
value: VisualFeatures[];
121+
}
122+
102123
// @public (undocumented)
103124
export interface AnalyzeFromUrlMediaTypesParam {
104125
contentType: "application/json";
@@ -117,11 +138,18 @@ export interface AnalyzeFromUrlQueryParam {
117138
export interface AnalyzeFromUrlQueryParamProperties {
118139
"gender-neutral-caption"?: boolean;
119140
"model-version"?: string;
120-
"smartcrops-aspect-ratios"?: number[];
121-
features: VisualFeatures[];
141+
"smartcrops-aspect-ratios"?: number[] | AnalyzeFromUrlSmartcropsAspectRatiosQueryParam;
142+
features: VisualFeatures[] | AnalyzeFromUrlFeaturesQueryParam;
122143
language?: string;
123144
}
124145

146+
// @public
147+
export interface AnalyzeFromUrlSmartcropsAspectRatiosQueryParam {
148+
explode: false;
149+
style: "form";
150+
value: number[];
151+
}
152+
125153
// @public
126154
export interface CaptionResultOutput {
127155
confidence: number;

0 commit comments

Comments
 (0)