Skip to content

Commit 3c15c2f

Browse files
authored
Update typespec version and move changes from typespec-next (#36524)
1 parent c1f6274 commit 3c15c2f

File tree

119 files changed

+423
-290
lines changed

Some content is hidden

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

119 files changed

+423
-290
lines changed

package-lock.json

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

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,34 @@
44
"@azure-tools/spec-gen-sdk": "~0.9.1",
55
"@azure-tools/specs-shared": "file:.github/shared",
66
"@azure-tools/typespec-apiview": "0.7.2",
7-
"@azure-tools/typespec-autorest": "0.58.1",
8-
"@azure-tools/typespec-azure-core": "0.58.0",
9-
"@azure-tools/typespec-azure-portal-core": "0.58.0",
10-
"@azure-tools/typespec-azure-resource-manager": "0.58.1",
11-
"@azure-tools/typespec-azure-rulesets": "0.58.0",
7+
"@azure-tools/typespec-autorest": "0.59.0",
8+
"@azure-tools/typespec-azure-core": "0.59.0",
9+
"@azure-tools/typespec-azure-portal-core": "0.59.0",
10+
"@azure-tools/typespec-azure-resource-manager": "0.59.0",
11+
"@azure-tools/typespec-azure-rulesets": "0.59.0",
1212
"@azure-tools/typespec-client-generator-cli": "0.27.0",
13-
"@azure-tools/typespec-client-generator-core": "0.58.2",
13+
"@azure-tools/typespec-client-generator-core": "0.59.0",
1414
"@azure-tools/typespec-liftr-base": "0.8.0",
1515
"@autorest/openapi-to-typespec": "0.11.5",
1616
"@azure/avocado": "^0.9.1",
17-
"@typespec/compiler": "1.2.1",
18-
"@typespec/http": "1.2.1",
19-
"@typespec/sse": "0.72.1",
20-
"@typespec/events": "0.72.1",
21-
"@typespec/openapi": "1.2.1",
22-
"@typespec/openapi3": "1.2.1",
23-
"@typespec/prettier-plugin-typespec": "1.2.1",
24-
"@typespec/rest": "0.72.1",
25-
"@typespec/streams": "0.72.1",
26-
"@typespec/versioning": "0.72.1",
27-
"@typespec/xml": "0.72.1",
17+
"@typespec/compiler": "1.3.0",
18+
"@typespec/http": "1.3.0",
19+
"@typespec/sse": "0.73.0",
20+
"@typespec/events": "0.73.0",
21+
"@typespec/openapi": "1.3.0",
22+
"@typespec/openapi3": "1.3.0",
23+
"@typespec/prettier-plugin-typespec": "1.3.0",
24+
"@typespec/rest": "0.73.0",
25+
"@typespec/streams": "0.73.0",
26+
"@typespec/versioning": "0.73.0",
27+
"@typespec/xml": "0.73.0",
2828
"azure-rest-api-specs-eng-tools": "file:eng/tools",
2929
"oav": "^3.6.4",
3030
"prettier": "~3.5.3",
3131
"typescript": "~5.8.2"
3232
},
3333
"overrides": {
34-
"@typespec/asset-emitter": "0.72.1",
34+
"@typespec/asset-emitter": "0.73.0",
3535
"jsonpath-plus": "^10.3.0"
3636
},
3737
"engines": {

specification/ai/Azure.AI.Projects/servicepatterns.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ interface VersionedOperations<
4242
@Rest.action("versions")
4343
@Rest.actionSeparator("/")
4444
@Http.get
45+
@list
4546
listVersions is Azure.Core.StandardResourceOperations.ResourceAction<
4647
TEntityType,
4748
TListVersionsParameters,

specification/ai/DocumentIntelligence/routes.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ interface DocumentModels {
313313
@doc("List batch document analysis results.")
314314
@route("/documentModels/{modelId}/analyzeBatchResults")
315315
@get
316+
@list
316317
listAnalyzeBatchResults is DocumentIntelligenceOperation<
317318
{
318319
@doc("Unique document model name.")

specification/ai/Face/routes.common.tsp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@ op FaceResourceUpdateOperation<
7676
FaceErrorResponse
7777
>;
7878

79+
@listsResource(TResource)
7980
op FaceResourceListOperation<
8081
TResource extends TypeSpec.Reflection.Model,
8182
TResourceItem extends TypeSpec.Reflection.Model = TResource,
8283
TQuery extends TypeSpec.Reflection.Model = {}
83-
> is Foundations.ResourceList<
84+
> is Foundations.ResourceCollectionOperation<
8485
TResource,
8586
ListRequestOptions & TQuery,
8687
Body<TResourceItem[]>,

specification/ai/Face/routes.facelist.tsp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ interface FaceListOperations {
7272
To get face information inside Face List use \"Get Face List\".
7373
""")
7474
@returnsDoc("A successful call returns an array of Face Lists.")
75-
getFaceLists is Foundations.ResourceList<
75+
@listsResource(FaceList)
76+
getFaceLists is Foundations.ResourceCollectionOperation<
7677
FaceList,
7778
ReturnRecognitionModelOptions,
7879
Body<FaceListItem[]>,

specification/ai/Face/routes.persondirectory.tsp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ interface PersonDirectoryOperations {
212212

213213
@doc("Retrieve a person's persistedFaceIds representing the registered person face feature(s).")
214214
@returnsDoc("A successful call returns an array of persistedFaceIds and and a person ID.")
215-
getPersonFaces is Foundations.ResourceList<
215+
@listsResource(PersonDirectoryFace)
216+
getPersonFaces is Foundations.ResourceCollectionOperation<
216217
PersonDirectoryFace,
217218
{},
218219
ListFaceResult,

specification/apicenter/ApiCenter.Management/main.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ enum Versions {
137137
#suppress "@azure-tools/typespec-azure-core/casing-style" "It is pascal case"
138138
@get
139139
@autoRoute
140+
@list
140141
@listsResource(TResource)
141142
@segmentOf(TResource)
142143
@armResourceList(TResource)

specification/appconfiguration/AppConfiguration/models.tsp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,9 @@ union LabelFields {
112112
}
113113

114114
@doc("The result of a list request.")
115-
@pagedResult
116115
model KeyListResult {
117116
@doc("The collection value.")
118-
@items
117+
@pageItems
119118
items?: Key[];
120119

121120
@doc("The URI that can be used to request the next set of paged results.")
@@ -152,10 +151,9 @@ model Error {
152151
}
153152

154153
@doc("The result of a list request.")
155-
@pagedResult
156154
model KeyValueListResult {
157155
@doc("The collection value.")
158-
@items
156+
@pageItems
159157
items?: KeyValue[];
160158

161159
@doc("An identifier representing the returned state of the resource.")
@@ -200,10 +198,9 @@ model KeyValue {
200198
}
201199

202200
@doc("The result of a snapshot list request.")
203-
@pagedResult
204201
model SnapshotListResult {
205202
@doc("The collection value.")
206-
@items
203+
@pageItems
207204
items?: Snapshot[];
208205

209206
@doc("The URI that can be used to request the next set of paged results.")
@@ -297,10 +294,9 @@ model SnapshotUpdateParameters {
297294
}
298295

299296
@doc("The result of a list request.")
300-
@pagedResult
301297
model LabelListResult {
302298
@doc("The collection value.")
303-
@items
299+
@pageItems
304300
items?: Label[];
305301

306302
@doc("The URI that can be used to request the next set of paged results.")

specification/appconfiguration/AppConfiguration/routes.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ alias LabelsRequestParams = {
356356
@summary("Gets a list of labels.")
357357
@doc("Gets a list of labels.")
358358
@route("/labels")
359+
@list
359360
op getLabels is AppConfigOperation<
360361
LabelsRequestParams,
361362
LabelListResult &
@@ -435,6 +436,7 @@ alias RevisionsRequestParams = {
435436
@doc("Gets a list of key-value revisions.")
436437
@route("/revisions")
437438
@get
439+
@list
438440
op getRevisions is AppConfigOperation<
439441
RevisionsRequestParams,
440442
KeyValueListResult &

0 commit comments

Comments
 (0)