Skip to content

Commit

Permalink
[TypeSpec] Upgrade to 0.50.0 (#26636)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeharder authored Nov 9, 2023
1 parent ed84b11 commit 4c6ebd4
Show file tree
Hide file tree
Showing 10 changed files with 156 additions and 134 deletions.
168 changes: 84 additions & 84 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"name": "azure-rest-api-specs",
"devDependencies": {
"@azure-tools/typespec-apiview": "0.4.4",
"@azure-tools/typespec-autorest": "0.35.2",
"@azure-tools/typespec-azure-core": "0.35.1",
"@azure-tools/typespec-azure-resource-manager": "0.35.0",
"@azure-tools/typespec-client-generator-core": "0.35.0",
"@azure-tools/typespec-providerhub": "0.35.0",
"@typespec/compiler": "0.49.0",
"@typespec/http": "0.49.0",
"@typespec/openapi": "0.49.0",
"@typespec/rest": "0.49.0",
"@typespec/versioning": "0.49.0",
"@azure-tools/typespec-autorest": "0.36.0",
"@azure-tools/typespec-azure-core": "0.36.0",
"@azure-tools/typespec-azure-resource-manager": "0.36.0",
"@azure-tools/typespec-client-generator-core": "0.36.0",
"@azure-tools/typespec-providerhub": "0.36.0",
"@typespec/compiler": "0.50.0",
"@typespec/http": "0.50.0",
"@typespec/openapi": "0.50.0",
"@typespec/rest": "0.50.0",
"@typespec/versioning": "0.50.0",
"@azure/avocado": "^0.8.4",
"azure-rest-api-specs-eng-tools": "file:eng/tools",
"prettier": "~3.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@
"type": "string",
"description": "Enum describing allowed operation states.",
"enum": [
"InProgress",
"NotStarted",
"Running",
"Succeeded",
"Failed",
"Canceled"
Expand All @@ -392,8 +393,13 @@
"modelAsString": true,
"values": [
{
"name": "InProgress",
"value": "InProgress",
"name": "NotStarted",
"value": "NotStarted",
"description": "The operation has not started."
},
{
"name": "Running",
"value": "Running",
"description": "The operation is in progress."
},
{
Expand Down
14 changes: 8 additions & 6 deletions specification/cognitiveservices/OpenAI.Inference/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ using Azure.ClientGenerator.Core;

// Azure-specific long-running operations should be treated as implementation details that are wrapped into
// appropriately merged public surface.
@@internal(Azure.OpenAI.beginAzureBatchImageGeneration);
@@internal(Azure.OpenAI.getAzureBatchImageGenerationOperationStatus);
@@access(Azure.OpenAI.beginAzureBatchImageGeneration, Access.internal);
@@access(Azure.OpenAI.getAzureBatchImageGenerationOperationStatus,
Access.internal
);

// Azure-specific Chat Completions with extensions should be handled by clients as a conditional selection within the
// shared Chat Completions route, with the selection gated by the presence or non-presence of additional child
// configuration options on the request payload options model.
@@internal(Azure.OpenAI.getChatCompletionsWithAzureExtensions);
@@access(Azure.OpenAI.getChatCompletionsWithAzureExtensions, Access.internal);

// Some models from routes with suppressed visibility are still desired for custom public surface.
@@include(Azure.OpenAI.ImageGenerationOptions);
@@include(Azure.OpenAI.ImageLocation);
@@include(Azure.OpenAI.ImageGenerations);
@@usage(Azure.OpenAI.ImageGenerationOptions, Usage.input | Usage.output);
@@usage(Azure.OpenAI.ImageLocation, Usage.input | Usage.output);
@@usage(Azure.OpenAI.ImageGenerations, Usage.input | Usage.output);
Loading

0 comments on commit 4c6ebd4

Please sign in to comment.