Skip to content

Commit 0410d40

Browse files
Upgrade to TypeSpec 0.62.0 (#31439)
1 parent 7dfd170 commit 0410d40

File tree

51 files changed

+842
-489
lines changed

Some content is hidden

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

51 files changed

+842
-489
lines changed

package-lock.json

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

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
"name": "azure-rest-api-specs",
33
"devDependencies": {
44
"@azure-tools/typespec-apiview": "0.4.9",
5-
"@azure-tools/typespec-autorest": "0.47.0",
6-
"@azure-tools/typespec-azure-core": "0.47.0",
7-
"@azure-tools/typespec-azure-portal-core": "0.47.0",
8-
"@azure-tools/typespec-azure-resource-manager": "0.47.1",
9-
"@azure-tools/typespec-azure-rulesets": "0.47.0",
5+
"@azure-tools/typespec-autorest": "0.48.0",
6+
"@azure-tools/typespec-azure-core": "0.48.0",
7+
"@azure-tools/typespec-azure-portal-core": "0.48.0",
8+
"@azure-tools/typespec-azure-resource-manager": "0.48.0",
9+
"@azure-tools/typespec-azure-rulesets": "0.48.0",
1010
"@azure-tools/typespec-client-generator-cli": "0.13.3",
11-
"@azure-tools/typespec-client-generator-core": "0.47.4",
11+
"@azure-tools/typespec-client-generator-core": "0.48.0",
1212
"@azure-tools/typespec-liftr-base": "0.4.0",
1313
"@azure/avocado": "^0.9.1",
14-
"@typespec/compiler": "0.61.2",
15-
"@typespec/http": "0.61.0",
16-
"@typespec/openapi": "0.61.0",
17-
"@typespec/openapi3": "0.61.0",
18-
"@typespec/rest": "0.61.0",
19-
"@typespec/versioning": "0.61.0",
14+
"@typespec/compiler": "0.62.0",
15+
"@typespec/http": "0.62.0",
16+
"@typespec/openapi": "0.62.0",
17+
"@typespec/openapi3": "0.62.0",
18+
"@typespec/rest": "0.62.0",
19+
"@typespec/versioning": "0.62.0",
2020
"azure-rest-api-specs-eng-tools": "file:eng/tools",
2121
"oav": "^3.5.1",
2222
"prettier": "~3.3.3",

specification/ai/Face/tspconfig.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ linter:
4949
disable:
5050
"@azure-tools/typespec-azure-core/operation-missing-api-version": "API version located in the host template"
5151
"@azure-tools/typespec-azure-core/use-standard-operations": "Most of our operation doesn't fit standard ops"
52+
"@azure-tools/typespec-azure-core/use-standard-names": "Most of our operation doesn't fit standard ops"

specification/ai/HealthInsights/HealthInsights.RadiologyInsights/client.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ namespace ClientForAzureHealthInsights;
1717
interface RadiologyInsightsClient {
1818
#suppress "@azure-tools/typespec-azure-core/long-running-polling-operation-required" "Polling through operation-location"
1919
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "https://github.com/microsoft/typespec/issues/2037"
20+
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
2021
inferRadiologyInsights is AzureHealthInsights.RadiologyInsights.createJob;
2122
}
2223

specification/ai/HealthInsights/HealthInsights.RadiologyInsights/route.radiologyinsights.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ interface RadiologyInsights {
1818
@get
1919
getJob is HealthInsightsOperations.ResourceRead<RadiologyInsightsJob>;
2020

21+
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
2122
@summary("Create Radiology Insights job")
2223
@tag("RadiologyInsights")
2324
@doc("Creates a Radiology Insights job with the given request body.")

specification/ai/HealthInsights/HealthInsights.TrialMatcher/route.trialmatcher.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ interface TrialMatcher {
1919
@get
2020
getJob is HealthInsightsOperations.ResourceRead<TrialMatcherJob>;
2121

22+
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
2223
@summary("Create Trial Matcher job")
2324
@tag("TrialMatcher")
2425
@doc("Creates a Trial Matcher job with the given request body.")

specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-02-15-preview/assistants_generated.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2655,7 +2655,7 @@ components:
26552655
nullable: true
26562656
description: The Unix timestamp, in seconds, representing when this failed.
26572657
incomplete_details:
2658-
oneOf:
2658+
allOf:
26592659
- $ref: '#/components/schemas/IncompleteRunDetails'
26602660
nullable: true
26612661
description: Details on why the run is incomplete. Will be `null` if the run is not incomplete.

specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-05-01-preview/assistants_generated.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ components:
14311431
We generally recommend altering this or temperature but not both.
14321432
default: 1
14331433
response_format:
1434-
oneOf:
1434+
allOf:
14351435
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
14361436
nullable: true
14371437
description: The response format of the tool calls used by this assistant.
@@ -1499,7 +1499,7 @@ components:
14991499
We generally recommend altering this or temperature but not both.
15001500
default: 1
15011501
response_format:
1502-
oneOf:
1502+
allOf:
15031503
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
15041504
nullable: true
15051505
description: The response format of the tool calls used by this assistant.
@@ -1805,12 +1805,12 @@ components:
18051805
nullable: true
18061806
description: The strategy to use for dropping messages as the context windows moves forward.
18071807
tool_choice:
1808-
oneOf:
1808+
allOf:
18091809
- $ref: '#/components/schemas/AssistantsApiToolChoiceOption'
18101810
nullable: true
18111811
description: Controls whether or not and which tool is called by the model.
18121812
response_format:
1813-
oneOf:
1813+
allOf:
18141814
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
18151815
nullable: true
18161816
description: Specifies the format that the model must output.
@@ -1949,12 +1949,12 @@ components:
19491949
nullable: true
19501950
description: The strategy to use for dropping messages as the context windows moves forward.
19511951
tool_choice:
1952-
oneOf:
1952+
allOf:
19531953
- $ref: '#/components/schemas/AssistantsApiToolChoiceOption'
19541954
nullable: true
19551955
description: Controls whether or not and which tool is called by the model.
19561956
response_format:
1957-
oneOf:
1957+
allOf:
19581958
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
19591959
nullable: true
19601960
description: Specifies the format that the model must output.
@@ -3656,7 +3656,7 @@ components:
36563656
nullable: true
36573657
description: The Unix timestamp, in seconds, representing when this failed.
36583658
incomplete_details:
3659-
oneOf:
3659+
allOf:
36603660
- $ref: '#/components/schemas/IncompleteRunDetails'
36613661
nullable: true
36623662
description: Details on why the run is incomplete. Will be `null` if the run is not incomplete.
@@ -3695,12 +3695,12 @@ components:
36953695
nullable: true
36963696
description: The strategy to use for dropping messages as the context windows moves forward.
36973697
tool_choice:
3698-
oneOf:
3698+
allOf:
36993699
- $ref: '#/components/schemas/AssistantsApiToolChoiceOption'
37003700
nullable: true
37013701
description: Controls whether or not and which tool is called by the model.
37023702
response_format:
3703-
oneOf:
3703+
allOf:
37043704
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
37053705
nullable: true
37063706
description: The response format of the tool calls used in this run.
@@ -3841,7 +3841,7 @@ components:
38413841
We generally recommend altering this or temperature but not both.
38423842
default: 1
38433843
response_format:
3844-
oneOf:
3844+
allOf:
38453845
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
38463846
nullable: true
38473847
description: The response format of the tool calls used by this assistant.

specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-07-01-preview/assistants_generated.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ components:
14391439
We generally recommend altering this or temperature but not both.
14401440
default: 1
14411441
response_format:
1442-
oneOf:
1442+
allOf:
14431443
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
14441444
nullable: true
14451445
description: The response format of the tool calls used by this assistant.
@@ -1507,7 +1507,7 @@ components:
15071507
We generally recommend altering this or temperature but not both.
15081508
default: 1
15091509
response_format:
1510-
oneOf:
1510+
allOf:
15111511
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
15121512
nullable: true
15131513
description: The response format of the tool calls used by this assistant.
@@ -1813,12 +1813,12 @@ components:
18131813
nullable: true
18141814
description: The strategy to use for dropping messages as the context windows moves forward.
18151815
tool_choice:
1816-
oneOf:
1816+
allOf:
18171817
- $ref: '#/components/schemas/AssistantsApiToolChoiceOption'
18181818
nullable: true
18191819
description: Controls whether or not and which tool is called by the model.
18201820
response_format:
1821-
oneOf:
1821+
allOf:
18221822
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
18231823
nullable: true
18241824
description: Specifies the format that the model must output.
@@ -1962,12 +1962,12 @@ components:
19621962
nullable: true
19631963
description: The strategy to use for dropping messages as the context windows moves forward.
19641964
tool_choice:
1965-
oneOf:
1965+
allOf:
19661966
- $ref: '#/components/schemas/AssistantsApiToolChoiceOption'
19671967
nullable: true
19681968
description: Controls whether or not and which tool is called by the model.
19691969
response_format:
1970-
oneOf:
1970+
allOf:
19711971
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
19721972
nullable: true
19731973
description: Specifies the format that the model must output.
@@ -3696,7 +3696,7 @@ components:
36963696
nullable: true
36973697
description: The Unix timestamp, in seconds, representing when this failed.
36983698
incomplete_details:
3699-
oneOf:
3699+
allOf:
37003700
- $ref: '#/components/schemas/IncompleteRunDetails'
37013701
nullable: true
37023702
description: Details on why the run is incomplete. Will be `null` if the run is not incomplete.
@@ -3735,12 +3735,12 @@ components:
37353735
nullable: true
37363736
description: The strategy to use for dropping messages as the context windows moves forward.
37373737
tool_choice:
3738-
oneOf:
3738+
allOf:
37393739
- $ref: '#/components/schemas/AssistantsApiToolChoiceOption'
37403740
nullable: true
37413741
description: Controls whether or not and which tool is called by the model.
37423742
response_format:
3743-
oneOf:
3743+
allOf:
37443744
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
37453745
nullable: true
37463746
description: The response format of the tool calls used in this run.
@@ -3881,7 +3881,7 @@ components:
38813881
We generally recommend altering this or temperature but not both.
38823882
default: 1
38833883
response_format:
3884-
oneOf:
3884+
allOf:
38853885
- $ref: '#/components/schemas/AssistantsApiResponseFormatOption'
38863886
nullable: true
38873887
description: The response format of the tool calls used by this assistant.

specification/apicenter/ApiCenter.DataApi/resources/Api.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ interface Apis {
2222
ListQueryParametersTrait<StandardListQueryParameters>
2323
>;
2424

25+
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Legacy name"
2526
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Cannot model with standard operations"
2627
@doc("List a collection of APIs across workspaces.")
2728
@route("/apis")

0 commit comments

Comments
 (0)