Skip to content

Commit 018905d

Browse files
authored
[TypeSpec] Upgrade to 0.46.0 (#24776)
1 parent 82639d7 commit 018905d

File tree

43 files changed

+3087
-3298
lines changed

Some content is hidden

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

43 files changed

+3087
-3298
lines changed

package-lock.json

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

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
"@azure-tools/cadl-azure-resource-manager": "0.26.0",
88
"@azure-tools/cadl-providerhub": "0.26.0",
99
"@azure-tools/typespec-apiview": "0.4.4",
10-
"@azure-tools/typespec-autorest": "0.31.0",
11-
"@azure-tools/typespec-azure-core": "0.31.0",
12-
"@azure-tools/typespec-azure-resource-manager": "0.31.0",
13-
"@azure-tools/typespec-client-generator-core": "0.31.0",
14-
"@azure-tools/typespec-providerhub": "0.31.0",
15-
"@typespec/compiler": "0.45.2",
16-
"@typespec/http": "0.45.0",
17-
"@typespec/openapi": "0.45.0",
18-
"@typespec/rest": "0.45.0",
19-
"@typespec/versioning": "0.45.0",
10+
"@azure-tools/typespec-autorest": "0.32.0",
11+
"@azure-tools/typespec-azure-core": "0.32.0",
12+
"@azure-tools/typespec-azure-resource-manager": "0.32.0",
13+
"@azure-tools/typespec-client-generator-core": "0.32.0",
14+
"@azure-tools/typespec-providerhub": "0.32.0",
15+
"@typespec/compiler": "0.46.0",
16+
"@typespec/http": "0.46.0",
17+
"@typespec/openapi": "0.46.0",
18+
"@typespec/rest": "0.46.0",
19+
"@typespec/versioning": "0.46.0",
2020
"@azure/avocado": "^0.8.4",
2121
"@types/prettier": "^2.7.2",
2222
"azure-rest-api-specs-eng-tools": "file:eng/tools",

specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,5 +404,6 @@ model ResponseError {
404404
@header("x-ms-error-code")
405405
@doc("Error code.")
406406
msErrorCode?: string;
407+
407408
...ErrorResponse;
408409
}

specification/cognitiveservices/AnomalyDetector/multivariate/routes.tsp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace AnomalyDetector.Multivariate;
1414
@post
1515
@doc("Operation template for multivariate anomaly detection service action.")
1616
op MultivariateServiceAction<TParams, TResponse>(
17-
...TParams
17+
...TParams,
1818
): TResponse | ResponseError;
1919

2020
// Operations
@@ -35,7 +35,7 @@ op getMultivariateBatchDetectionResult(
3535
@format("uuid")
3636
@doc("ID of a batch detection result.")
3737
@path
38-
resultId: string
38+
resultId: string,
3939
): MultivariateDetectionResult | ResponseError;
4040

4141
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Azure core RpcOperation does not support custom error response"
@@ -68,6 +68,7 @@ op trainMultivariateModel is MultivariateServiceAction<
6868
@doc("Location and ID of the model.")
6969
@header
7070
location: string;
71+
7172
@body result: AnomalyDetectionModel;
7273
}
7374
>;
@@ -84,7 +85,7 @@ op trainMultivariateModel is MultivariateServiceAction<
8485
@doc("List models of a resource.")
8586
op listMultivariateModels(
8687
...SkipQueryParameter,
87-
...TopQueryParameter
88+
...TopQueryParameter,
8889
): ModelList | ResponseError;
8990

9091
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern"
@@ -98,7 +99,7 @@ op listMultivariateModels(
9899
op deleteMultivariateModel(
99100
@doc("Model identifier.")
100101
@path
101-
modelId: string
102+
modelId: string,
102103
): {
103104
@doc("Delete model successfully.")
104105
@statusCode
@@ -119,7 +120,7 @@ and variables used in the model.
119120
op getMultivariateModel(
120121
@doc("Model identifier.")
121122
@path
122-
modelId: string
123+
modelId: string,
123124
): AnomalyDetectionModel | ResponseError;
124125

125126
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern"
@@ -144,7 +145,7 @@ op detectMultivariateBatchAnomaly(
144145

145146
@doc("Request of multivariate anomaly detection.")
146147
@body
147-
options: MultivariateBatchDetectionOptions
148+
options: MultivariateBatchDetectionOptions,
148149
): {
149150
@statusCode statusCode: 202;
150151

@@ -155,6 +156,7 @@ op detectMultivariateBatchAnomaly(
155156
@doc("Location of the detection result.")
156157
@header("Operation-Location")
157158
operationLocation: string;
159+
158160
@body result: MultivariateDetectionResult;
159161
} | ResponseError;
160162

@@ -177,5 +179,5 @@ op detectMultivariateLastAnomaly(
177179

178180
@doc("Request of the last detection.")
179181
@body
180-
options: MultivariateLastDetectionOptions
182+
options: MultivariateLastDetectionOptions,
181183
): MultivariateLastDetectionResult | ResponseError;

specification/cognitiveservices/AnomalyDetector/univariate/routes.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace AnomalyDetector.Univariate;
1212
@post
1313
@doc("Operation template for univariate anomaly detection service action.")
1414
op UnivariateServiceAction<TParams, TResponse>(
15-
...TParams
15+
...TParams,
1616
): TResponse | AnomalyDetectorError;
1717

1818
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Azure core RpcOperation does not support custom error response"

specification/cognitiveservices/HealthInsights/healthinsights.common/model.common.response.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ system.
8585
model TrialMatcherInferenceEvidence {
8686
@doc("A piece of evidence from the eligibility criteria text of a clinical trial.")
8787
eligibilityCriteriaEvidence?: string;
88+
8889
...InferenceEvidence;
8990
}
9091

specification/cognitiveservices/HealthInsights/healthinsights.oncophenotype/model.oncophenotype.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ model OncoPhenotypePatientResult {
4646
model OncoPhenotypeInference {
4747
@doc("The type of the Onco Phenotype inference")
4848
type: OncoPhenotypeInferenceType;
49+
4950
...Inference;
5051

5152
@doc("The evidence corresponding to the inference value.")

specification/cognitiveservices/HealthInsights/healthinsights.trialmatcher/model.trialmatcher.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ The bio-medical category related to the coded concept, e.g. Diagnosis, Symptom,
8787
model TrialMatcherInference {
8888
@doc("The type of the Trial Matcher inference.")
8989
type: TrialMatcherInferenceType;
90+
9091
...Inference;
9192

9293
@doc("The evidence corresponding to the inference value.")
@@ -328,6 +329,7 @@ model ContactDetails {
328329
model ClinicalTrialResearchFacility {
329330
@doc("The facility's name.")
330331
name: string;
332+
331333
...GeographicLocation;
332334
}
333335

specification/cognitiveservices/OpenAI.Inference/models/chat.completions.tsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ model ChatChoice {
190190
index: int32;
191191

192192
#suppress "@azure-tools/typespec-azure-core/no-nullable" "The operation already returns nulls"
193-
#suppress "@azure-tools/typespec-autorest/union-unsupported" "https://github.com/Azure/typespec-azure/issues/3180"
194193
@doc("The reason that this chat completions choice completed its generated.")
195194
@projectedName("json", "finish_reason")
196195
finishReason: CompletionsFinishReason | null;

specification/cognitiveservices/OpenAI.Inference/models/completions.create.tsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ model Choice {
195195
logprobs: CompletionsLogProbabilityModel | null;
196196

197197
#suppress "@azure-tools/typespec-azure-core/no-nullable" "The operation already returns nulls"
198-
#suppress "@azure-tools/typespec-autorest/union-unsupported" "https://github.com/Azure/typespec-azure/issues/3180"
199198
@doc("Reason for finishing")
200199
@projectedName("json", "finish_reason")
201200
finishReason: CompletionsFinishReason | null;

0 commit comments

Comments
 (0)