Skip to content

Commit

Permalink
Upgrade/typespec 0.60 (#30511)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisradek committed Sep 12, 2024
1 parent 55607c6 commit cc91e09
Show file tree
Hide file tree
Showing 214 changed files with 1,095 additions and 1,177 deletions.
909 changes: 535 additions & 374 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
"name": "azure-rest-api-specs",
"devDependencies": {
"@azure-tools/typespec-apiview": "0.4.9",
"@azure-tools/typespec-autorest": "0.45.0",
"@azure-tools/typespec-azure-core": "0.45.0",
"@azure-tools/typespec-azure-portal-core": "0.45.0",
"@azure-tools/typespec-azure-resource-manager": "0.45.0",
"@azure-tools/typespec-azure-rulesets": "0.45.0",
"@azure-tools/typespec-autorest": "0.46.0",
"@azure-tools/typespec-azure-core": "0.46.0",
"@azure-tools/typespec-azure-portal-core": "0.46.0",
"@azure-tools/typespec-azure-resource-manager": "0.46.0",
"@azure-tools/typespec-azure-rulesets": "0.46.0",
"@azure-tools/typespec-client-generator-cli": "0.13.0",
"@azure-tools/typespec-client-generator-core": "0.45.0",
"@azure-tools/typespec-client-generator-core": "0.46.0",
"@azure-tools/typespec-liftr-base": "0.4.0",
"@azure/avocado": "^0.8.4",
"@typespec/compiler": "0.59.1",
"@typespec/http": "0.59.1",
"@typespec/openapi": "0.59.0",
"@typespec/openapi3": "0.59.1",
"@typespec/rest": "0.59.1",
"@typespec/versioning": "0.59.0",
"@typespec/compiler": "0.60.0",
"@typespec/http": "0.60.0",
"@typespec/openapi": "0.60.0",
"@typespec/openapi3": "0.60.0",
"@typespec/rest": "0.60.0",
"@typespec/versioning": "0.60.1",
"azure-rest-api-specs-eng-tools": "file:eng/tools",
"oav": "^3.3.7",
"prettier": "~3.3.3",
Expand Down
2 changes: 0 additions & 2 deletions specification/ai/DocumentIntelligence/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,6 @@ model AuthorizeCopyRequest {
""")
model CopyAuthorization {
@doc("ID of the target Azure resource where the document model should be copied to.")
@extension("x-ms-azure-resource", true)
targetResourceId: string;

@doc("""
Expand Down Expand Up @@ -1310,7 +1309,6 @@ model AuthorizeClassifierCopyRequest {
""")
model ClassifierCopyAuthorization {
@doc("ID of the target Azure resource where the document classifier should be copied to.")
@extension("x-ms-azure-resource", true)
targetResourceId: string;

@doc("""
Expand Down
1 change: 0 additions & 1 deletion specification/ai/DocumentIntelligence/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ options:
azure-resource-provider-folder: "data-plane"
emit-lro-options: "none"
emitter-output-dir: "{project-root}/.."
examples-directory: "examples"
omit-unreachable-types: true
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/DocumentIntelligence.json"
"@azure-tools/typespec-python":
Expand Down
1 change: 0 additions & 1 deletion specification/ai/Face/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ options:
azure-resource-provider-folder: "data-plane"
emit-lro-options: "none"
emitter-output-dir: "{project-root}/.."
examples-directory: "examples"
omit-unreachable-types: true
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/Face.json"
"@azure-tools/typespec-python":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ options:
azure-resource-provider-folder: "data-plane"
emit-lro-options: "none"
emitter-output-dir: "{project-root}/../.."
examples-directory: examples
omit-unreachable-types: true
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
1 change: 0 additions & 1 deletion specification/ai/ImageAnalysis/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ options:
output-file: "{azure-resource-provider-folder}/ImageAnalysis/{version-status}/{version}/generated.json"
azure-resource-provider-folder: "data-plane"
emit-lro-options: "none"
examples-directory: examples
omit-unreachable-types: true
"@azure-tools/typespec-python":
package-dir: "azure-ai-vision-imageanalysis"
Expand Down
10 changes: 5 additions & 5 deletions specification/ai/OpenAI.Assistants/assistants/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Azure.AI.OpenAI.Assistants;
* @returns The new assistant instance.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@post
@added(ServiceApiVersions.v2024_02_15_preview)
Expand All @@ -35,7 +35,7 @@ op createAssistant(
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "mirrored API responds with a container"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@get
@added(ServiceApiVersions.v2024_02_15_preview)
Expand All @@ -49,7 +49,7 @@ op listAssistants(...OpenAIListRequestOptions): OpenAIPageableListOf<Assistant>;
* @returns The requested assistant instance.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "mirrored API name parity"
@get
Expand All @@ -64,7 +64,7 @@ op getAssistant(@path assistantId: string): Assistant;
* @returns The updated assistant instance.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@post
@route("/assistants/{assistantId}")
Expand All @@ -84,7 +84,7 @@ op updateAssistant(
* @returns Status information about the requested deletion operation.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@delete
@route("/assistants/{assistantId}")
Expand Down
8 changes: 4 additions & 4 deletions specification/ai/OpenAI.Assistants/files/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Azure.AI.OpenAI.Assistants;
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "mirrored API responds with a container"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@get
@added(ServiceApiVersions.v2024_02_15_preview)
Expand All @@ -36,7 +36,7 @@ op listFiles(@query purpose?: FilePurpose): FileListResponse;
* @returns A representation of the uploaded file.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
#suppress "@azure-tools/typespec-azure-core/byos" "mirrored API"
@post
Expand All @@ -58,7 +58,7 @@ op uploadFile(
): OpenAIFile;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@delete
@doc("Delete a previously uploaded file.")
Expand All @@ -71,7 +71,7 @@ op deleteFile(
): FileDeletionStatus;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "mirrored API name parity"
@get
Expand Down
8 changes: 4 additions & 4 deletions specification/ai/OpenAI.Assistants/messages/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Azure.AI.OpenAI.Assistants;
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "mirrored API responds with a container"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@post
@route("/threads/{threadId}/messages")
Expand All @@ -43,7 +43,7 @@ op createMessage(
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "mirrored API responds with a container"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@get
@route("/threads/{threadId}/messages")
Expand All @@ -67,7 +67,7 @@ op listMessages(
* @returns A representation of the requested message.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "mirrored API name parity"
@get
Expand All @@ -83,7 +83,7 @@ op getMessage(@path threadId: string, @path messageId: string): ThreadMessage;
* @returns A representation of the modified message.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@post
@route("/threads/{threadId}/messages/{messageId}")
Expand Down
4 changes: 2 additions & 2 deletions specification/ai/OpenAI.Assistants/run_steps/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Azure.AI.OpenAI.Assistants;
* @returns Information about the requested run step.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "mirrored API name parity"
@get
Expand All @@ -39,7 +39,7 @@ op getRunStep(
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "mirrored API responds with a container"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@get
@route("/threads/{threadId}/runs/{runId}/steps")
Expand Down
14 changes: 7 additions & 7 deletions specification/ai/OpenAI.Assistants/runs/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Azure.AI.OpenAI.Assistants;
* @returns Information about the new thread run.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@post
@route("/threads/{threadId}/runs")
Expand All @@ -45,7 +45,7 @@ op createRun(
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "mirrored API responds with a container"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@get
@route("/threads/{threadId}/runs")
Expand All @@ -63,7 +63,7 @@ op listRuns(
* @returns The requested information about the specified thread run.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "mirrored API name parity"
@get
Expand All @@ -79,7 +79,7 @@ op getRun(@path threadId: string, @path runId: string): ThreadRun;
* @returns Information about the modified run.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@post
@route("/threads/{threadId}/runs/{runId}")
Expand All @@ -100,7 +100,7 @@ op updateRun(
* @returns Updated information about the run.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@post
@route("/threads/{threadId}/runs/{runId}/submit_tool_outputs")
Expand All @@ -124,7 +124,7 @@ op submitToolOutputsToRun(
* @returns Updated information about the cancelled run.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@post
@route("/threads/{threadId}/runs/{runId}/cancel")
Expand All @@ -137,7 +137,7 @@ op cancelRun(@path threadId: string, @path runId: string): ThreadRun;
* @returns Information about the newly created thread.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@post
@route("/threads/runs")
Expand Down
8 changes: 4 additions & 4 deletions specification/ai/OpenAI.Assistants/threads/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Azure.AI.OpenAI.Assistants;
* @returns Information about the newly created thread.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@post
@added(ServiceApiVersions.v2024_02_15_preview)
Expand All @@ -37,7 +37,7 @@ op createThread(
* @returns Information about the requested thread.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "mirrored API name parity"
@get
Expand All @@ -53,7 +53,7 @@ op getThread(@path threadId: string): AssistantThread;
* @returns Information about the modified thread.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@post
@route("/threads/{threadId}")
Expand All @@ -73,7 +73,7 @@ op updateThread(
* @returns Status information about the requested thread deletion operation.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@delete
@route("/threads/{threadId}")
Expand Down
1 change: 0 additions & 1 deletion specification/ai/OpenAI.Assistants/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ options:
"@azure-tools/typespec-autorest":
emitter-output-dir: "{project-root}/../"
azure-resource-provider-folder: "data-plane"
examples-directory: "{project-root}/examples"
output-file: "{output-folder-base}/OpenApiV2/{version-status}/{version}/assistants_generated.json"
omit-unreachable-types: true
emit-lro-options: "none"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Azure.AI.OpenAI.Assistants;
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "mirrored API responds with a container"
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "not yet an Azure operation"
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
@get
@route("/vector_stores")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2207,8 +2207,7 @@
"properties": {
"targetResourceId": {
"type": "string",
"description": "ID of the target Azure resource where the document classifier should be copied to.",
"x-ms-azure-resource": true
"description": "ID of the target Azure resource where the document classifier should be copied to."
},
"targetResourceRegion": {
"type": "string",
Expand Down Expand Up @@ -2413,8 +2412,7 @@
"properties": {
"targetResourceId": {
"type": "string",
"description": "ID of the target Azure resource where the document model should be copied to.",
"x-ms-azure-resource": true
"description": "ID of the target Azure resource where the document model should be copied to."
},
"targetResourceRegion": {
"type": "string",
Expand Down
1 change: 0 additions & 1 deletion specification/apicenter/ApiCenter.DataApi/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ options:
azure-resource-provider-folder: "data-plane"
emit-lro-options: "none"
emitter-output-dir: "{project-root}/.."
examples-directory: "{project-root}/examples"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/azure.apicenter.dataapi.json"
"@azure-tools/typespec-python":
package-dir: "azure-apicenter"
Expand Down
Loading

0 comments on commit cc91e09

Please sign in to comment.