From 0a1098b5e3de484546314741035111a1d4da2708 Mon Sep 17 00:00:00 2001 From: yogms Date: Thu, 6 Mar 2025 16:41:54 +0530 Subject: [PATCH 01/17] initial commit --- .../client.tsp | 5 + .../Aliases_Activate_MaximumSet_Gen.json | 18 + .../Aliases_Create_MaximumSet_Gen.json | 20 + .../Aliases_Delete_MaximumSet_Gen.json | 11 + .../Aliases_Get_MaximumSet_Gen.json | 21 + .../Aliases_List_MaximumSet_Gen.json | 25 + .../Aliases_Update_MaximumSet_Gen.json | 41 + ...erations_CreateExample_MaximumSet_Gen.json | 20 + ...erations_DeleteExample_MaximumSet_Gen.json | 11 + ...yOperations_GetExample_MaximumSet_Gen.json | 23 + ...ations_LinkInstruction_MaximumSet_Gen.json | 22 + ...ations_ListAllExamples_MaximumSet_Gen.json | 28 + ...erations_UpdateExample_MaximumSet_Gen.json | 46 + .../Feedback_Submit_MaximumSet_Gen.json | 16 + .../Instructions_Create_MaximumSet_Gen.json | 43 + .../Instructions_Delete_MaximumSet_Gen.json | 28 + .../Instructions_Get_MaximumSet_Gen.json | 40 + .../Instructions_List_MaximumSet_Gen.json | 45 + ...tructions_UpdateStatus_MaximumSet_Gen.json | 34 + .../Instructions_Update_MaximumSet_Gen.json | 99 + ...ess_GetOperationResult_MaximumSet_Gen.json | 19 + .../QueryApi_Execute_MaximumSet_Gen.json | 22 + ...lidateQueryApi_Execute_MaximumSet_Gen.json | 29 + ...GetValidateTestDetails_MaximumSet_Gen.json | 17 + ...stValidateTestRequests_MaximumSet_Gen.json | 24 + .../main.tsp | 38 + .../models/aliasDictionary.tsp | 41 + .../models/exampleQuery.tsp | 45 + .../models/feedback.tsp | 55 + .../models/instruction.tsp | 260 ++ .../models/operations.tsp | 62 + .../models/querymodels.tsp | 30 + .../models/validateQuery.tsp | 256 ++ .../resources/aliasDictionaryApi.tsp | 60 + .../resources/exampleQueryApi.tsp | 52 + .../resources/feedbackApi.tsp | 37 + .../resources/healthApi.tsp | 33 + .../resources/instructionsApi.tsp | 78 + .../resources/operationsApi.tsp | 27 + .../resources/queryApi.tsp | 54 + .../resources/validateQueryApi.tsp | 54 + .../tspconfig.yaml | 39 + .../Aliases_Activate_MaximumSet_Gen.json | 18 + .../Aliases_Create_MaximumSet_Gen.json | 20 + .../Aliases_Delete_MaximumSet_Gen.json | 11 + .../examples/Aliases_Get_MaximumSet_Gen.json | 21 + .../examples/Aliases_List_MaximumSet_Gen.json | 25 + .../Aliases_Update_MaximumSet_Gen.json | 41 + ...erations_CreateExample_MaximumSet_Gen.json | 20 + ...erations_DeleteExample_MaximumSet_Gen.json | 11 + ...yOperations_GetExample_MaximumSet_Gen.json | 23 + ...ations_LinkInstruction_MaximumSet_Gen.json | 22 + ...ations_ListAllExamples_MaximumSet_Gen.json | 28 + ...erations_UpdateExample_MaximumSet_Gen.json | 46 + .../Feedback_Submit_MaximumSet_Gen.json | 16 + .../Instructions_Create_MaximumSet_Gen.json | 43 + .../Instructions_Delete_MaximumSet_Gen.json | 28 + .../Instructions_Get_MaximumSet_Gen.json | 40 + .../Instructions_List_MaximumSet_Gen.json | 45 + ...tructions_UpdateStatus_MaximumSet_Gen.json | 34 + .../Instructions_Update_MaximumSet_Gen.json | 99 + ...ess_GetOperationResult_MaximumSet_Gen.json | 19 + .../QueryApi_Execute_MaximumSet_Gen.json | 22 + ...lidateQueryApi_Execute_MaximumSet_Gen.json | 29 + ...GetValidateTestDetails_MaximumSet_Gen.json | 17 + ...stValidateTestRequests_MaximumSet_Gen.json | 24 + .../stable/2025-03-01/openapi.json | 2441 +++++++++++++++++ .../data-plane/readme.md | 61 + 68 files changed, 5132 insertions(+) create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/client.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Activate_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Create_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Delete_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Get_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_List_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Update_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_CreateExample_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_DeleteExample_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_GetExample_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_LinkInstruction_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_ListAllExamples_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_UpdateExample_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Feedback_Submit_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Create_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Delete_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Get_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_List_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_UpdateStatus_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Update_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/OperationProgress_GetOperationResult_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/QueryApi_Execute_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ValidateQueryApi_Execute_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ValidateQueryApi_GetValidateTestDetails_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ValidateQueryApi_ListValidateTestRequests_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/main.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/aliasDictionary.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/exampleQuery.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/feedback.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/instruction.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/operations.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/querymodels.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/validateQuery.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/aliasDictionaryApi.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/exampleQueryApi.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/feedbackApi.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/operationsApi.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/queryApi.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/validateQueryApi.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Activate_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Create_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Delete_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Get_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_List_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Update_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_CreateExample_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_DeleteExample_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_GetExample_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_LinkInstruction_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_ListAllExamples_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_UpdateExample_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Feedback_Submit_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Create_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Delete_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Get_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_List_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_UpdateStatus_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Update_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/OperationProgress_GetOperationResult_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/QueryApi_Execute_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ValidateQueryApi_Execute_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ValidateQueryApi_GetValidateTestDetails_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ValidateQueryApi_ListValidateTestRequests_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json create mode 100644 specification/manufacturingdatasolution/data-plane/readme.md diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/client.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/client.tsp new file mode 100644 index 000000000000..164fc28c837f --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/client.tsp @@ -0,0 +1,5 @@ +/** + * PLACEHOLDER + * Add readme and sample + */ +import "./main.tsp"; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Activate_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Activate_MaximumSet_Gen.json new file mode 100644 index 000000000000..fd031037a844 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Activate_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "Aliases_Activate_MaximumSet", + "operationId": "Aliases_Activate", + "parameters": { + "api-version": "2025-03-01", + "id": "rpzhsxpgbijywrrlx", + "body": { + "enabled": true + } + }, + "responses": { + "200": { + "body": { + "enabled": true + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Create_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Create_MaximumSet_Gen.json new file mode 100644 index 000000000000..e3b41f23da64 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Create_MaximumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "Aliases_Create_MaximumSet", + "operationId": "Aliases_Create", + "parameters": { + "api-version": "2025-03-01", + "resource": { + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ] + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Delete_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..59cfbaed58ec --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Delete_MaximumSet_Gen.json @@ -0,0 +1,11 @@ +{ + "title": "Aliases_Delete_MaximumSet", + "operationId": "Aliases_Delete", + "parameters": { + "api-version": "2025-03-01", + "id": "czfoociaadizldwkqezgbiu" + }, + "responses": { + "204": {} + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Get_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..1498b68426b2 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Get_MaximumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "Aliases_Get_MaximumSet", + "operationId": "Aliases_Get", + "parameters": { + "api-version": "2025-03-01", + "id": "kovknnsxgbsywutttkkxqchwravj" + }, + "responses": { + "200": { + "body": { + "id": "p", + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ], + "isCustom": true, + "enabled": true + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_List_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..3dfeb23f2efe --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_List_MaximumSet_Gen.json @@ -0,0 +1,25 @@ +{ + "title": "Aliases_List_MaximumSet", + "operationId": "Aliases_List", + "parameters": { + "api-version": "2025-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "p", + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ], + "isCustom": true, + "enabled": true + } + ], + "nextLink": "https://microsoft.com/ag" + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Update_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..c79e9731cce3 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Update_MaximumSet_Gen.json @@ -0,0 +1,41 @@ +{ + "title": "Aliases_Update_MaximumSet", + "operationId": "Aliases_Update", + "parameters": { + "api-version": "2025-03-01", + "id": "uwvfkund", + "resource": { + "name": "pyytiqkzyhrrsh", + "aliases": [ + "rrxlskyespowhvhx" + ] + } + }, + "responses": { + "200": { + "body": { + "id": "p", + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ], + "isCustom": true, + "enabled": true + } + }, + "201": { + "headers": { + "original-uri": "https://contoso.com/operationstatus" + }, + "body": { + "id": "p", + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ], + "isCustom": true, + "enabled": true + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_CreateExample_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_CreateExample_MaximumSet_Gen.json new file mode 100644 index 000000000000..8a07e8e76239 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_CreateExample_MaximumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "ExampleQueryOperations_CreateExample_MaximumSet", + "operationId": "ExampleQueryOperations_CreateExample", + "parameters": { + "api-version": "2025-03-01", + "resource": { + "userQuestion": "tjgtbxqerknztcwauanxmmphqzs", + "linkedInstructions": [ + "dfutbgdqreo" + ], + "sampleQuery": { + "language": "tqmlay", + "query": "yjpei" + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_DeleteExample_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_DeleteExample_MaximumSet_Gen.json new file mode 100644 index 000000000000..7eb31ba48fe9 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_DeleteExample_MaximumSet_Gen.json @@ -0,0 +1,11 @@ +{ + "title": "ExampleQueryOperations_DeleteExample_MaximumSet", + "operationId": "ExampleQueryOperations_DeleteExample", + "parameters": { + "api-version": "2025-03-01", + "exampleId": "xwmaetuo" + }, + "responses": { + "204": {} + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_GetExample_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_GetExample_MaximumSet_Gen.json new file mode 100644 index 000000000000..babfdba093c5 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_GetExample_MaximumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "ExampleQueryOperations_GetExample_MaximumSet", + "operationId": "ExampleQueryOperations_GetExample", + "parameters": { + "api-version": "2025-03-01", + "exampleId": "wtziixiixuncz" + }, + "responses": { + "200": { + "body": { + "exampleId": "inurzewkwrzgypxwazfgchrezmzump", + "userQuestion": "tjgtbxqerknztcwauanxmmphqzs", + "linkedInstructions": [ + "dfutbgdqreo" + ], + "sampleQuery": { + "language": "tqmlay", + "query": "yjpei" + } + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_LinkInstruction_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_LinkInstruction_MaximumSet_Gen.json new file mode 100644 index 000000000000..09504333e077 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_LinkInstruction_MaximumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "ExampleQueryOperations_LinkInstruction_MaximumSet", + "operationId": "ExampleQueryOperations_LinkInstruction", + "parameters": { + "api-version": "2025-03-01", + "exampleId": "wwk", + "body": { + "linkedInstructions": [ + "bnyveykehndaxjtavuac" + ] + } + }, + "responses": { + "200": { + "body": { + "linkedInstructions": [ + "bnyveykehndaxjtavuac" + ] + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_ListAllExamples_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_ListAllExamples_MaximumSet_Gen.json new file mode 100644 index 000000000000..bb34d8174ed1 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_ListAllExamples_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "ExampleQueryOperations_ListAllExamples_MaximumSet", + "operationId": "ExampleQueryOperations_ListAllExamples", + "parameters": { + "api-version": "2025-03-01", + "instructionId": "lpr" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "exampleId": "inurzewkwrzgypxwazfgchrezmzump", + "userQuestion": "tjgtbxqerknztcwauanxmmphqzs", + "linkedInstructions": [ + "dfutbgdqreo" + ], + "sampleQuery": { + "language": "tqmlay", + "query": "yjpei" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_UpdateExample_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_UpdateExample_MaximumSet_Gen.json new file mode 100644 index 000000000000..5f0222f39288 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ExampleQueryOperations_UpdateExample_MaximumSet_Gen.json @@ -0,0 +1,46 @@ +{ + "title": "ExampleQueryOperations_UpdateExample_MaximumSet", + "operationId": "ExampleQueryOperations_UpdateExample", + "parameters": { + "api-version": "2025-03-01", + "exampleId": "rsedkhrqvgiqz", + "resource": { + "userQuestion": "nj", + "linkedInstructions": [ + "qvjmxhbnhjjuxunapx" + ], + "sampleQuery": { + "language": "hnurkqeqfmfmjfnc", + "query": "amwxibfyjlzcrekrrcgfzohg" + } + } + }, + "responses": { + "200": { + "body": { + "exampleId": "inurzewkwrzgypxwazfgchrezmzump", + "userQuestion": "tjgtbxqerknztcwauanxmmphqzs", + "linkedInstructions": [ + "dfutbgdqreo" + ], + "sampleQuery": { + "language": "tqmlay", + "query": "yjpei" + } + } + }, + "201": { + "body": { + "exampleId": "inurzewkwrzgypxwazfgchrezmzump", + "userQuestion": "tjgtbxqerknztcwauanxmmphqzs", + "linkedInstructions": [ + "dfutbgdqreo" + ], + "sampleQuery": { + "language": "tqmlay", + "query": "yjpei" + } + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Feedback_Submit_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Feedback_Submit_MaximumSet_Gen.json new file mode 100644 index 000000000000..871d1086f212 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Feedback_Submit_MaximumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Feedback_Submit_MaximumSet", + "operationId": "Feedback_Submit", + "parameters": { + "api-version": "2025-03-01", + "resource": { + "operationId": "ppbhtmt", + "conversationId": "scjuamqtfsifzektpsfimdcaev", + "feedback": "Neutral", + "queryEndpoint": "V3" + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Create_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Create_MaximumSet_Gen.json new file mode 100644 index 000000000000..12732532aae5 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Create_MaximumSet_Gen.json @@ -0,0 +1,43 @@ +{ + "title": "Instructions_Create_MaximumSet", + "operationId": "Instructions_Create", + "parameters": { + "api-version": "2025-03-01", + "resource": { + "instructionId": "lc", + "instructionVersion": "oqjnitfdopnmf", + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "ncjziatzbkn" + ], + "keywords": [ + "xwbkjrwd" + ], + "sampleQuestions": [ + "qmrgzdtouhonzzqjhlunvcmamwyqin" + ] + }, + "relationships": { + "dependencies": [ + "wkcw" + ], + "exclusions": [ + "wlur" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Delete_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..a754fe90c4da --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Delete_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Instructions_Delete_MaximumSet", + "operationId": "Instructions_Delete", + "parameters": { + "api-version": "2025-03-01", + "id": "sygusbiitwercnq" + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "mpqawgujkdhdkc", + "status": "NotStarted", + "error": { + "code": "rptaamp", + "message": "hyajqarokzepmgmwdujxytcxcxwb", + "target": "ezsodkdldmtqpzrgnacxfdznts", + "details": [], + "innererror": { + "code": "kmgabmowpm" + } + } + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Get_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..ebcec53d2517 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Get_MaximumSet_Gen.json @@ -0,0 +1,40 @@ +{ + "title": "Instructions_Get_MaximumSet", + "operationId": "Instructions_Get", + "parameters": { + "api-version": "2025-03-01", + "id": "djmqm" + }, + "responses": { + "200": { + "body": { + "id": "tyrmwcqkhcsqwl", + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "ncjziatzbkn" + ], + "keywords": [ + "xwbkjrwd" + ], + "sampleQuestions": [ + "qmrgzdtouhonzzqjhlunvcmamwyqin" + ] + }, + "relationships": { + "dependencies": [ + "wkcw" + ], + "exclusions": [ + "wlur" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl" + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_List_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..2c0f38721596 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_List_MaximumSet_Gen.json @@ -0,0 +1,45 @@ +{ + "title": "Instructions_List_MaximumSet", + "operationId": "Instructions_List", + "parameters": { + "api-version": "2025-03-01", + "showActive": true + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "tyrmwcqkhcsqwl", + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "ncjziatzbkn" + ], + "keywords": [ + "xwbkjrwd" + ], + "sampleQuestions": [ + "qmrgzdtouhonzzqjhlunvcmamwyqin" + ] + }, + "relationships": { + "dependencies": [ + "wkcw" + ], + "exclusions": [ + "wlur" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_UpdateStatus_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_UpdateStatus_MaximumSet_Gen.json new file mode 100644 index 000000000000..3ed62ef97873 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_UpdateStatus_MaximumSet_Gen.json @@ -0,0 +1,34 @@ +{ + "title": "Instructions_UpdateStatus_MaximumSet", + "operationId": "Instructions_UpdateStatus", + "parameters": { + "api-version": "2025-03-01", + "id": "azcfnkannptughhrqeopugllqn", + "body": { + "status": "Active" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "bdyowjfhpzowwibstizdppxefxb", + "status": "NotStarted", + "error": { + "code": "rptaamp", + "message": "hyajqarokzepmgmwdujxytcxcxwb", + "target": "ezsodkdldmtqpzrgnacxfdznts", + "details": [], + "innererror": { + "code": "kmgabmowpm" + } + }, + "result": { + "status": "Active" + } + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Update_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..1355a436f8fa --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Update_MaximumSet_Gen.json @@ -0,0 +1,99 @@ +{ + "title": "Instructions_Update_MaximumSet", + "operationId": "Instructions_Update", + "parameters": { + "api-version": "2025-03-01", + "id": "neemqxiicxswdfiddrvssx", + "resource": { + "instructionId": "pbnldijsxlwcmaqttewfhufdizehuz", + "instructionVersion": "kqhkbegfowlrhgfqcto", + "language": "EN", + "retrieval": { + "subTopics": [ + "umlms" + ], + "keywords": [ + "fooduxunzkssoaufmwkqcpyyrxfsxg" + ], + "sampleQuestions": [ + "rqeghaszakgshy" + ] + }, + "relationships": { + "dependencies": [ + "vdpwjiejwdcmscnnmiatskfexbio" + ], + "exclusions": [ + "wmwvjnyr" + ] + }, + "comment": "widtfgvm" + } + }, + "responses": { + "200": { + "body": { + "id": "tyrmwcqkhcsqwl", + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "umlms" + ], + "keywords": [ + "fooduxunzkssoaufmwkqcpyyrxfsxg" + ], + "sampleQuestions": [ + "rqeghaszakgshy" + ] + }, + "relationships": { + "dependencies": [ + "vdpwjiejwdcmscnnmiatskfexbio" + ], + "exclusions": [ + "wmwvjnyr" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl" + } + }, + "201": { + "headers": { + "original-uri": "https://contoso.com/operationstatus", + "Operation-Location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "tyrmwcqkhcsqwl", + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "umlms" + ], + "keywords": [ + "fooduxunzkssoaufmwkqcpyyrxfsxg" + ], + "sampleQuestions": [ + "rqeghaszakgshy" + ] + }, + "relationships": { + "dependencies": [ + "vdpwjiejwdcmscnnmiatskfexbio" + ], + "exclusions": [ + "wmwvjnyr" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl" + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/OperationProgress_GetOperationResult_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/OperationProgress_GetOperationResult_MaximumSet_Gen.json new file mode 100644 index 000000000000..4956e0877fcd --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/OperationProgress_GetOperationResult_MaximumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "OperationProgress_GetOperationResult_MaximumSet", + "operationId": "OperationProgress_GetOperationResult", + "parameters": { + "api-version": "2025-03-01", + "operationId": "ikljjxttqwhlt" + }, + "responses": { + "200": { + "body": { + "status": "Accepted", + "operationId": "hsgnmfxkaaibmskoeindsqh", + "errorMessage": [ + "okassangavsxyxwmjndzore" + ] + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/QueryApi_Execute_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/QueryApi_Execute_MaximumSet_Gen.json new file mode 100644 index 000000000000..e3f61812e081 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/QueryApi_Execute_MaximumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "QueryApi_Execute_MaximumSet", + "operationId": "QueryApi_Execute", + "parameters": { + "api-version": "2025-03-01", + "Conversation-Id": "kbllsekovcrcdhc", + "Accept-Language": "ttfmksnwnnqhwitiaxpcksrgaitr", + "maxRetry": 5, + "includeSummary": true, + "body": { + "ask": "co" + } + }, + "responses": { + "200": { + "body": { + "result": "blgoetxiztaxcdpchkpyzkootok", + "summary": "txznfigwmcl" + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ValidateQueryApi_Execute_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ValidateQueryApi_Execute_MaximumSet_Gen.json new file mode 100644 index 000000000000..cae7aa5ddcb8 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ValidateQueryApi_Execute_MaximumSet_Gen.json @@ -0,0 +1,29 @@ +{ + "title": "ValidateQueryApi_Execute_MaximumSet", + "operationId": "ValidateQueryApi_Execute", + "parameters": { + "api-version": "2025-03-01", + "body": { + "testName": "mhlbvjcsrcwlo", + "testCases": [ + { + "naturalLanguage": "lpkzqzihkdcmicxuihtomcbrl", + "expectedQuery": "garwdnlw", + "expectedEntities": "rvdsluyfbplkdnh" + } + ], + "runInConversationContext": true, + "conversationId": "iezruve" + } + }, + "responses": { + "200": { + "body": { + "testRunId": "vqjladfyawwt", + "testRunStatus": "vkpaekrc", + "createdDateTime": "2025-03-05T16:09:52.740Z", + "createdBy": "vdsumnxvlxwudyol" + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ValidateQueryApi_GetValidateTestDetails_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ValidateQueryApi_GetValidateTestDetails_MaximumSet_Gen.json new file mode 100644 index 000000000000..e6709069f9b9 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ValidateQueryApi_GetValidateTestDetails_MaximumSet_Gen.json @@ -0,0 +1,17 @@ +{ + "title": "ValidateQueryApi_GetValidateTestDetails_MaximumSet", + "operationId": "ValidateQueryApi_GetValidateTestDetails", + "parameters": { + "api-version": "2025-03-01", + "validateTestId": "arqsqvt" + }, + "responses": { + "200": { + "body": { + "validateTestId": "sg", + "fromDate": "2025-03-05T16:09:52.615Z", + "toDate": "2025-03-05T16:09:52.616Z" + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ValidateQueryApi_ListValidateTestRequests_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ValidateQueryApi_ListValidateTestRequests_MaximumSet_Gen.json new file mode 100644 index 000000000000..3728e9c4e71b --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/ValidateQueryApi_ListValidateTestRequests_MaximumSet_Gen.json @@ -0,0 +1,24 @@ +{ + "title": "ValidateQueryApi_ListValidateTestRequests_MaximumSet", + "operationId": "ValidateQueryApi_ListValidateTestRequests", + "parameters": { + "api-version": "2025-03-01", + "fromDate": "2025-03-05T16:09:52.814Z", + "endDate": "2025-03-05T16:09:52.815Z", + "testRunId": "2025-03-05T16:09:52.815Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "testId": "knnuotarjkfducjnbqwfhtfil", + "createdTime": "wjufnc", + "createdBy": "cbjttdmspungyjk" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/main.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/main.tsp new file mode 100644 index 000000000000..d7d99f8ee113 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/main.tsp @@ -0,0 +1,38 @@ +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./resources/queryApi.tsp"; +import "./resources/operationsApi.tsp"; +import "./resources/instructionsApi.tsp"; +import "./resources/exampleQueryApi.tsp"; +import "./resources/aliasDictionaryApi.tsp"; +import "./resources/healthApi.tsp"; +import "./resources/validateQueryApi.tsp"; +import "./resources/feedbackApi.tsp"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.Core.Traits; + +@route("/copilot") +@service(#{ title: "Microsoft.Industry.Manufacturing.MDS.Copilot", }) +@server( + "https://mds-{mdsUniqueId}.{location}.cloudapp.azure.com/", + "Manufacturing Data Solution global endpoint.", + { + mdsUniqueId: string, + location: string = "mds.azure.com", + } +) +@useAuth(AadOauth2Auth<["https://azure-mds-service/.default"]>) +@versioned(MdsSolution.CopilotService.Versions) +namespace MdsSolution.CopilotService; + +// API versions +enum Versions { + // azure core version - Change if we are using a different version + @useDependency(Azure.Core.Versions.v1_0_Preview_2) + v2025_03_01: "2025-03-01", +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/aliasDictionary.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/aliasDictionary.tsp new file mode 100644 index 000000000000..0b8e90da75fb --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/aliasDictionary.tsp @@ -0,0 +1,41 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; + +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Rest; +using TypeSpec.Http; +using TypeSpec.Versioning; + +namespace MdsSolution.CopilotService.AliasDictionary.Models; + +@resource("aliases") +@doc("This is the request model for Alias") +model Alias { + @doc("Id for the alias") + @key("id") + @visibility(Lifecycle.Read) + id: string; + + @doc("Key for the alias") + name: string; + + @doc("List of aliases") + aliases: string[]; + + @doc("Indicates if the alias is enabled") + @visibility(Lifecycle.Read) + isCustom: boolean = true; + + @doc("Indicates if the alias is enabled") + @visibility(Lifecycle.Read) + enabled: boolean; +} + +@doc("This is the patch request to update the status of Alias") +model ActivateAlias { + @doc("status of the alias") + enabled: boolean; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/exampleQuery.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/exampleQuery.tsp new file mode 100644 index 000000000000..38e4c2360832 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/exampleQuery.tsp @@ -0,0 +1,45 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; + +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Rest; +using TypeSpec.Http; +using TypeSpec.Versioning; + +namespace MdsSolution.CopilotService.ExampleQuery.Models; + +@doc("The sample query resource.") +model SampleQuery { + @doc("The query language.") + language: string = "KQL"; + + @doc("The query string.") + query: string; +} + +@resource("exampleQuery") +@doc("The example query resource.") +model ExampleQueryRequest { + @key("exampleId") + @doc("The ID of the example query.") + @visibility(Lifecycle.Read) + exampleId: string; + + @doc("The user question associated with the example.") + userQuestion: string; + + @doc("The linked instructions for the example query.") + linkedInstructions: string[]; + + @doc("The sample query for the example.") + sampleQuery: SampleQuery; +} + +@doc("The patch request for the example query.") +model LinkInstructionRequest { + @doc("The linked instructions for the example query.") + linkedInstructions?: string[]; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/feedback.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/feedback.tsp new file mode 100644 index 000000000000..51cbf6642919 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/feedback.tsp @@ -0,0 +1,55 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; + +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Rest; +using TypeSpec.Http; +using TypeSpec.Versioning; + +namespace MdsSolution.CopilotService.Feedback.Models; + +@doc("feedbackRequest") +@resource("feedback") +model FeedbackRequest { + @doc("The query id") + operationId: string; + + @doc("conversation id") + conversationId: string; + + @key + @doc("The feedback") + @visibility(Lifecycle.Update) + feedback: FeedbackCategory; + + @doc("QueryEndpoint") + queryEndpoint: QueryEndpoint; +} + +@doc("Feedback category") +union FeedbackCategory { + @doc("Neutral feedback.") + Neutral: "Neutral", + + @doc("Positive feedback.") + ThumbUp: "ThumbUp", + + @doc("Negative feedback.") + ThumbDown: "ThumbDown", + + string, +} + +@doc("Query endpoint") +union QueryEndpoint { + @doc("V3 endpoint") + V3: "V3", + + @doc("Assistant endpoint") + Assistant: "Assistant", + + string, +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/instruction.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/instruction.tsp new file mode 100644 index 000000000000..9eaa9eb67eb4 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/instruction.tsp @@ -0,0 +1,260 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; + +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Rest; +using TypeSpec.Http; +using TypeSpec.Versioning; + +namespace MdsSolution.CopilotService.Instructions.Models; + +@doc("Instruction Info Response Model") +model InstructionInfoResponse { + @doc("List of Instruction Info objects") + instructionInfoList: InstructionInfo[]; +} + +@doc("Base Instruction Model") +model BaseInstructionModel { + @doc("The unique identifier of the instruction.") + instructionId: string; + + @doc("The version of the instruction.") + instructionVersion: string; + + @doc("The status of the instruction.") + stauses: InstructionStatusEnum; + + @doc("The domain of the instruction.") + domain: InstrustionDomainEnum; + + @doc("The sub-domain of the instruction.") + subDomain: InstructionSubDomainEnum; + + @doc("The category of the instruction.") + category: InstructionCategoryEnum; + + @doc("The language of the instruction.") + language: InstructionLanguageEnum; + + @doc("The retrieval properties of the instruction.") + retrieval: RetrievalProperties; + + @doc("The content properties of the instruction.") + content: ContentProperties; + + @doc("The relationships of the instruction.") + relationships: Relationships; +} + +@doc("Instruction Request Model") +@parentResource(BaseInstructionModel) +model InstructionRequestModel { + @doc("The comment for the instruction.") + comment: string; +} + +@doc("Instruction Info Model") +model InstructionInfo { + @doc("The instruction identifier.") + instructionId: string; + + @doc("The instruction version.") + version: string; + + @doc("The instruction status.") + status: InstructionStatusEnum; +} + +@doc("Instruction Patch Request") +model InstructionPatchRequest { + @doc("The instruction status.") + status: InstructionStatusEnum; +} + +@doc("Instruction Request Model List") +model InstructionRequestModelList { + @doc("The list of instruction request models.") + instructionRequestModels: InstructionRequestModel[]; +} + +@doc("This is the response model for Instruction") +@parentResource(BaseInstructionModel) +model InstructionResponseModel { + @doc("The administrative information of the instruction.") + administrative: string; +} + +@doc("Instruction Status Enums") +union InstructionStatusEnum { + @doc("Instruction is active") + Active: "Active", + + @doc("Instruction is inactive") + Inactive: "Inactive", + + @doc("Extensible status type") + string, +} + +@doc("Instruction Sub Domain Enums") +union InstrustionDomainEnum { + @doc("Manufacturing Operations Management") + MOM: "MOM", + + @doc("Supply Chain Management") + SCM: "SCM", + + @doc("Digital Engineering") + DE: "DE", + + @doc("Extensible domain type") + string, +} + +@doc("Instruction Sub Domain Enums") +union InstructionSubDomainEnum { + @doc("Production sub-domain") + Production: "Production", + + @doc("Quality sub-domain") + Quality: "Quality", + + @doc("Maintenance sub-domain") + Maintenance: "Maintenance", + + @doc("Inventory sub-domain") + Inventory: "Inventory", + + @doc("Downtime sub-domain") + Downtime: "Downtime", + + @doc("Scrap sub-domain") + Scrap: "Scrap", + + @doc("Mixed sub-domain") + Mixed: "Mixed", + + @doc("Extensible sub-domain type") + string, +} + +@doc("Instruction Category Enums") +union InstructionCategoryEnum { + @doc("Transactional instruction category") + Transactional: "Transactional", + + @doc("Analytical instruction category") + Analytical: "Analytical", + + @doc("Trend instruction category") + Trend: "Trend", + + @doc("KPI instruction category") + KPI: "KPI", + + @doc("Extensible category type") + string, +} + +@doc("Instruction Language Enums") +union InstructionLanguageEnum { + @doc("English") + EN: "EN", + + @doc("Extensible language type") + string, +} + +@doc("Instruction Source Enums") +union InstructionSourceEnum { + @doc("Internal Instruction") + outOfTheBox: "outOfTheBox", + + @doc("Custom Instruction") + custom: "custom", + + @doc("Extensible status type") + string, +} + +@doc("Relationships") +model Relationships { + @doc("List of dependent instructions") + dependencies: string[]; + + @doc("List of InstructionIds to be excluded") + exclusions: string[]; +} + +@doc("The retrieval properties of the instruction.") +model RetrievalProperties { + @doc("The sub-topics related to the instruction.") + subTopics: string[]; + + @doc("The keywords associated with the instruction.") + keywords: string[]; + + @doc("The sample questions for the instruction.") + sampleQuestions: string[]; +} + +@doc("The content properties of the instruction.") +model ContentProperties { + @doc("The semantic content of the instruction.") + semanticContent: string; +} + +@resource("instruction") +@doc("This is the request model for Instruction") +model Instruction { + @key("id") + @visibility(Lifecycle.Read) + @doc("Id for the instruction") + id: string; + + @doc("intruction Id for the instruction") + @visibility(Lifecycle.Update) + instructionId: string; + + @doc("Version for the instruction") + @visibility(Lifecycle.Update) + instructionVersion: string; + + @doc("Status for the instruction") + @visibility(Lifecycle.Read) + status: InstructionStatusEnum; + + @doc("Domain for the instruction") + @visibility(Lifecycle.Read) + domain: InstrustionDomainEnum; + + @doc("Sub-domain for the instruction") + @visibility(Lifecycle.Read) + subDomain: InstructionSubDomainEnum; + + @doc("Category for the instruction") + @visibility(Lifecycle.Read) + category: InstructionCategoryEnum; + + @doc("The language of the instruction.") + language: InstructionLanguageEnum; + + @doc("The retrieval properties of the instruction.") + retrieval: RetrievalProperties; + + @doc("The relationships of the instruction.") + relationships: Relationships; + + @doc("The comment for the instruction.") + comment: string; +} + +@doc("This is the patch request to update the status of instruction") +model UpdateStatusRequest { + @doc("status of the instruction") + status: InstructionStatusEnum; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/operations.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/operations.tsp new file mode 100644 index 000000000000..5e2b04bfcd3b --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/operations.tsp @@ -0,0 +1,62 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; + +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Rest; +using TypeSpec.Http; +using TypeSpec.Versioning; + +namespace MdsSolution.CopilotService.Operations.Models; + +@doc("Operation Status") +@lroStatus +union OperationStatusValue { + @doc("The operation is Accepted.") + Accepted: "Accepted", + + @doc("The operation is InProgress.") + InProgress: "InProgress", + + @doc("The operation is in a transient failure state.") + TransientFailure: "TransientFailure", + + @doc("The operation is Succeeded.") + Succeeded: "Succeeded", + + @doc("The operation is Failed.") + Failed: "Failed", + + @doc("The operation is Canceling.") + Deleting: "Deleting", + + @doc("The operation is Canceled.") + Canceled: "Canceled", + + @doc("The operation is in a permanent failure state.") + Unknown: "Unknown", + + @doc("The operation is Skipped.") + Skipped: "Skipped", + + string, +} + +@doc("Operation Response Model") +@resource("operation") +model OperationResultQuery { + @doc("The operation status.") + @visibility(Lifecycle.Read) + status: OperationStatusValue; + + @doc("The operation id.") + @key("operationId") + @visibility(Lifecycle.Read) + operationId: string; + + @doc("The error message.") + @visibility(Lifecycle.Read) + errorMessage: string[]; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/querymodels.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/querymodels.tsp new file mode 100644 index 000000000000..e25bdb11f9ac --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/querymodels.tsp @@ -0,0 +1,30 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; + +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Rest; +using TypeSpec.Http; +using TypeSpec.Versioning; + +namespace MdsSolution.CopilotService.QueryService.QueryModels; + +@doc("query request") +@resource("query") +model QueryRequest { + @key + @doc("User query in natural language") + @visibility(Lifecycle.Read, Lifecycle.Update) + ask: string; +} + +@doc("Query Response Result") +model QueryResponse { + @doc("Resultant Query Query or Query query execution response (JArray string)") + result?: string; + + @doc("Summary of the Resultant Query Query or Query query execution response (JArray string)") + summary?: string; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/validateQuery.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/validateQuery.tsp new file mode 100644 index 000000000000..1d15253d3a09 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/validateQuery.tsp @@ -0,0 +1,256 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; + +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Rest; +using TypeSpec.Http; +using TypeSpec.Versioning; + +namespace MdsSolution.CopilotService.ValidateQuery.Models; + +/** + * Represents a request for validation. + */ +model ValidateRequest { + /** + * The name of the test. + */ + testName: string; + + /** + * The test cases for validation. + */ + testCases: CopilotTestCase[]; + + @doc("run in the conversation context") + runInConversationContext: boolean = false; +} + +/** + * Represents a response for validation. + */ +model ValidateResponse { + /** + * The natural language input. + */ + naturalLanguage?: string; + + /** + * The expected query. + */ + expectedQuery?: string; + + /** + * The actual query. + */ + actualQuery?: string; + + /** + * The consolidated score. + */ + consolidatedScore: float64; + + /** + * The actual data. + */ + actualData?: string; + + /** + * The expected data. + */ + expectedData?: string; + + /** + * The expected entities. + */ + expectedEntities?: string; + + /** + * The actual entities. + */ + actualEntities?: string; + + /** + * The prompt tokens. + */ + promptTokens?: string; + + /** + * The entity extraction prompt tokens. + */ + entityExtractionPromptTokens?: string; +} + +/** + * Represents the result of a test case. + */ +model TestCaseResult { + /** + * The query to be asked. + */ + ask: string; + + /** + * The expected KQL query. + */ + expectedKqlQuery: string; + + /** + * The consolidated score of the test case. + */ + consolidatedScore: int64 = 0; + + /** + * The status of the operation. + */ + status: OperationStatus = OperationStatus.InProgress; + + /** + * The error message, if any. + */ + errorMessage?: string; +} + +@doc("Validate Test Response") +@resource("validate") +model ValidateTestSummary { + @key + @visibility(Lifecycle.Read) + @doc("The unique identifier of the test.") + testId: string; + + /** + * The time when the test was created. + */ + createdTime: string; + + /** + * The user who created the test. + */ + createdBy: string; +} + +/** + * Represents a test case for Copilot. + */ +@doc("Test Case for Test run") +model CopilotTestCase { + @doc("The natural language input for the test case.") + naturalLanguage?: string; + + @doc("The expected query for the test case.") + expectedQuery?: string; + + @doc("The expected entities for the test case.") + expectedEntities?: string; +} + +@resource("validate") +@doc("Test Query") +model TestQuery { + @key + @doc("The unique identifier of the test query.") + @visibility(Lifecycle.Read) + validateTestId: string; + + @doc("start date of test run") + fromDate?: utcDateTime; + + @doc("end date of test run") + toDate?: utcDateTime; +} + +@doc("Test Query Request") +model TestQueryRequest { + @doc("The name of the test query.") + testName: string; + + @doc("The test cases for the query.") + testCases: CopilotTestCase[]; + + @doc("The run in conversation context.") + runInConversationContext: boolean = false; + + @doc("coversation Id") + conversationId?: string; +} + +@doc("Operation Status") +union OperationStatus { + /** + * The operation has been accepted. + */ + Accepted: "Accepted", + + /** + * The operation is in progress. + */ + InProgress: "InProgress", + + /** + * The operation encountered a transient failure. + */ + TransientFailure: "TransientFailure", + + /** + * The operation succeeded. + */ + Succeeded: "Succeeded", + + /** + * The operation failed. + */ + Failed: "Failed", + + /** + * The operation is being deleted. + */ + Deleting: "Deleting", + + /** + * The operation was canceled. + */ + Canceled: "Canceled", + + /** + * The status of the operation is unknown. + */ + Unknown: "Unknown", + + /** + * The operation was skipped. + */ + Skipped: "Skipped", + + string, +} + +@doc("test response") +model TestResponse { + @doc("Test Run Id") + testRunId: string; + + @doc("Test Run Status") + testRunStatus: string; + + @doc("creation date") + createdDateTime: utcDateTime; + + @doc("created by") + createdBy: string; +} + +@doc("Test Details Response") +model TestDetailsResponse { + @doc("Test Id") + testId: string; + + @doc("Test Run Status") + testRunStatus: string; + + @doc("Test Results") + testResults: TestCaseResult[]; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/aliasDictionaryApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/aliasDictionaryApi.tsp new file mode 100644 index 000000000000..90edee8db82f --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/aliasDictionaryApi.tsp @@ -0,0 +1,60 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/aliasDictionary.tsp"; + +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Rest; +using TypeSpec.Http; +using TypeSpec.Versioning; +using MdsSolution.CopilotService.AliasDictionary.Models; + +@versioned(MdsSolution.CopilotService.Versions) +namespace MdsSolution.CopilotService.AliasDictionary; + +alias ServiceTraits = NoRepeatableRequests & + NoConditionalRequests & + NoClientRequestId; + +alias Operations = Azure.Core.ResourceOperations; + +alias jobLocationResponseHeaders = ResponseHeadersTrait< + { + @doc("The background job location.") + @header + @pollingLocation + operationLocation: string; + }, + TraitContext.Create | TraitContext.Update | TraitContext.Delete +>; + +interface Aliases { + @doc("Get an alias by Id") + get is Operations.ResourceRead; + + @doc("Create an alias") + @pollingOperation( + MdsSolution.CopilotService.OperationStatus.OperationProgress.getOperationResult + ) + create is Operations.LongRunningResourceCreateWithServiceProvidedName< + Alias, + jobLocationResponseHeaders + >; + + @doc("Update an alias") + @pollingOperation( + MdsSolution.CopilotService.OperationStatus.OperationProgress.getOperationResult + ) + update is Operations.LongRunningResourceCreateOrUpdate; + + @doc("Delete an alias") + delete is Operations.ResourceDelete; + + @doc("List all aliases") + list is Operations.ResourceList; + + @doc("Deactivate an alias") + activate is Operations.ResourceAction; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/exampleQueryApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/exampleQueryApi.tsp new file mode 100644 index 000000000000..0840cba9b5f1 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/exampleQueryApi.tsp @@ -0,0 +1,52 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/exampleQuery.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Versioning; +using MdsSolution.CopilotService.ExampleQuery.Models; + +@versioned(MdsSolution.CopilotService.Versions) +namespace MdsSolution.CopilotService.ExampleQueryService; + +alias ServiceTraits = NoRepeatableRequests & + NoConditionalRequests & + NoClientRequestId; + +alias apiOperations = Azure.Core.ResourceOperations; + +interface ExampleQueryOperations { + @doc("get the example query") + getExample is apiOperations.ResourceRead; + + @doc("get all example queries") + listAllExamples is apiOperations.ResourceList< + ExampleQueryRequest, + QueryParametersTrait<{ + @doc("Instruction id.") + @query + instructionId?: string; + }> + >; + + @doc("update the example query") + updateExample is apiOperations.ResourceCreateOrUpdate; + + @doc("delete the example query") + deleteExample is apiOperations.ResourceDelete; + + @doc("create the example query") + createExample is apiOperations.ResourceCreateWithServiceProvidedName; + + @doc("Update instruction status.") + linkInstruction is apiOperations.ResourceAction< + ExampleQueryRequest, + LinkInstructionRequest, + LinkInstructionRequest + >; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/feedbackApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/feedbackApi.tsp new file mode 100644 index 000000000000..fb9bbeb17385 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/feedbackApi.tsp @@ -0,0 +1,37 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/feedback.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Versioning; +using MdsSolution.CopilotService.Feedback.Models; + +@versioned(MdsSolution.CopilotService.Versions) +namespace MdsSolution.CopilotService.FeedbackService; + +alias ServiceTraits = NoRepeatableRequests & + NoConditionalRequests & + NoClientRequestId; + +alias apiOperations = Azure.Core.ResourceOperations; + +interface Feedback { + @doc("Send feedback for a query") + submit is apiOperations.ResourceCreateWithServiceProvidedName< + FeedbackRequest, + ResponseHeadersTrait<{ + @doc("operation Id.") + @header + operationId: string; + + @doc("conversation Id.") + @header + conversationId: string; + }> + >; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp new file mode 100644 index 000000000000..85d444304c8e --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp @@ -0,0 +1,33 @@ +// import "@typespec/rest"; +// import "@typespec/http"; +// import "@typespec/openapi3"; +// import "@typespec/versioning"; +// import "@azure-tools/typespec-azure-core"; +// import "./../models/copilotmodels.tsp"; + +// using TypeSpec.Rest; +// using TypeSpec.Http; +// using CopilotModels; +// using Azure.Core; +// using Azure.Core.Traits; +// using TypeSpec.Versioning; + +// #suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "" +// #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "" +// @versioned(MdsSolution.CopilotService.Versions) +// namespace MdsSolution.CopilotService.Health { +// alias DefaultServiceTraits = NoRepeatableRequests & +// NoConditionalRequests & +// NoClientRequestId; +// alias AzureCoreOperations = Azure.Core.ResourceOperations; +// @route("/dmm/copilot") +// namespace Health { +// @get +// @route("/health") +// @doc("Get the health status of the service.") +// op getHealthStatus(): { +// @statusCode statusCode: 200; +// @body data: QueryResponseResult; +// }; +// } +// } diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp new file mode 100644 index 000000000000..b050936b7f95 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp @@ -0,0 +1,78 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/instruction.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Versioning; +using MdsSolution.CopilotService.Instructions.Models; + +@versioned(MdsSolution.CopilotService.Versions) +namespace MdsSolution.CopilotService.Instructions; + +alias ServiceTraits = NoRepeatableRequests & + NoConditionalRequests & + NoClientRequestId; + +alias apiOperations = Azure.Core.ResourceOperations; + +alias jobLocationResponseHeaders = ResponseHeadersTrait< + { + @doc("The background job location.") + @header + @pollingLocation + operationLocation: string; + }, + TraitContext.Create | TraitContext.Update | TraitContext.Delete +>; + +@doc("Instructions") +interface Instructions { + @doc("Gets single instruction.") + get is apiOperations.ResourceRead; + + @doc("List Instruction resources") + list is apiOperations.ResourceList< + Instruction, + QueryParametersTrait<{ + @doc("The instruction status.") + @query + showActive: boolean; + }> + >; + + @doc("Create an instruction.") + @pollingOperation( + MdsSolution.CopilotService.OperationStatus.OperationProgress.getOperationResult + ) + create is apiOperations.LongRunningResourceCreateWithServiceProvidedName< + Instruction, + jobLocationResponseHeaders + >; + + @doc("update instructions.") + @pollingOperation( + MdsSolution.CopilotService.OperationStatus.OperationProgress.getOperationResult + ) + update is apiOperations.LongRunningResourceCreateOrUpdate; + + @doc("Delete instructions.") + @pollingOperation( + MdsSolution.CopilotService.OperationStatus.OperationProgress.getOperationResult + ) + delete is apiOperations.LongRunningResourceDelete; + + @doc("Update instruction status.") + @pollingOperation( + MdsSolution.CopilotService.OperationStatus.OperationProgress.getOperationResult + ) + updateStatus is apiOperations.LongRunningResourceAction< + Instruction, + UpdateStatusRequest, + UpdateStatusRequest + >; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/operationsApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/operationsApi.tsp new file mode 100644 index 000000000000..595403a0a981 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/operationsApi.tsp @@ -0,0 +1,27 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/operations.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Versioning; +using MdsSolution.CopilotService.Operations.Models; + +@versioned(MdsSolution.CopilotService.Versions) +namespace MdsSolution.CopilotService.OperationStatus; + +alias ServiceTraits = NoRepeatableRequests & + NoConditionalRequests & + NoClientRequestId; + +alias apiOperations = Azure.Core.ResourceOperations; + +@doc("Get operation progress") +interface OperationProgress { + @doc("Get operation progress") + getOperationResult is apiOperations.ResourceRead; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/queryApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/queryApi.tsp new file mode 100644 index 000000000000..b8d7a04543f9 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/queryApi.tsp @@ -0,0 +1,54 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/querymodels.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Versioning; +using MdsSolution.CopilotService.QueryService.QueryModels; + +@versioned(MdsSolution.CopilotService.Versions) +namespace MdsSolution.CopilotService.QueryService; + +alias ServiceTraits = NoRepeatableRequests & + NoConditionalRequests & + NoClientRequestId; + +alias apiOperations = Azure.Core.ResourceOperations; + +alias additionalHeaders = RequestHeadersTrait<{ + @header("Conversation-Id") + @doc("Conversation-Id header") + conversationId?: string; + + @header("Accept-Language") + @doc("Accept-Language header") + acceptLanguage: string; +}>; + +alias additionalQueryParams = QueryParametersTrait<{ + @doc("maxRetry") + @query + maxRetry?: int32 = 2; + + @doc("Include summary in the response.") + @query + includeSummary?: boolean = false; +}>; + +interface QueryApi { + @doc("execute the query") + execute is apiOperations.ResourceCollectionAction< + QueryRequest, + { + @doc("Natural language query") + ask?: string; + }, + QueryResponse, + additionalHeaders & additionalQueryParams + >; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/validateQueryApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/validateQueryApi.tsp new file mode 100644 index 000000000000..2435fcde195e --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/validateQueryApi.tsp @@ -0,0 +1,54 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/validateQuery.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.Core; +using Azure.Core.Traits; +using TypeSpec.Versioning; +using MdsSolution.CopilotService.ValidateQuery.Models; + +@versioned(MdsSolution.CopilotService.Versions) +namespace MdsSolution.CopilotService.ValidateQueryService; + +alias ServiceTraits = NoRepeatableRequests & + NoConditionalRequests & + NoClientRequestId; + +alias apiOperations = Azure.Core.ResourceOperations; + +interface ValidateQueryApi { + @doc("Validate a query") + execute is apiOperations.ResourceCollectionAction< + TestQuery, + TestQueryRequest, + TestResponse + >; + + @doc("Get the details of a validate test") + getValidateTestDetails is apiOperations.ResourceRead< + TestQuery, + TestDetailsResponse + >; + + @doc("List validate test requests") + listValidateTestRequests is apiOperations.ResourceList< + ValidateTestSummary, + QueryParametersTrait<{ + @doc("start date") + @query + fromDate?: utcDateTime; + + @doc("end date") + @query + endDate?: utcDateTime; + + @doc("start date") + @query + testRunId?: utcDateTime; + }> + >; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml new file mode 100644 index 000000000000..cc295255cb38 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml @@ -0,0 +1,39 @@ +parameters: + "service-dir": + default: "sdk/manufacturingdatasolution" + "service-name": + default: "Microsoft.Industries.ManufacturingDataSolution.Copilot" +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + azure-resource-provider-folder: "data-plane" + emitter-output-dir: "{project-root}/../" + omit-unreachable-types: true + output-file: "./data-plane/{service-name}/{version-status}/{version}/openapi.json" + "@azure-tools/typespec-python": + package-dir: "microsoft-industries-manufacturingdatasolution-copilot" + package-name: "{package-dir}" + package-mode: dataplane + flavor: azure + "@azure-tools/typespec-csharp": + package-dir: "Azure.Microsoft.Industries.ManufacturingDataSolution.Copilot" + namespace: "{package-dir}" + clear-output-folder: true + model-namespace: false + flavor: azure + "@azure-tools/typespec-ts": + package-dir: "microsoft-industries-manufacturingdatasolution-copilot" + generateMetadata: true + generateTest: true + packageDetails: + name: "@azure-rest/microsoft-industry-manufacturing-mds-copilot" + description: "Microsoft.Industry.Manufacturing.MDS.Copilot" + flavor: azure + "@azure-tools/typespec-java": + package-dir: "azure-microsoft-industry-manufacturing-mds-copilot" + namespace: "com.azure.microsoft.industry.manufacturing.mds.copilot" + flavor: azure +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/data-plane" diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Activate_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Activate_MaximumSet_Gen.json new file mode 100644 index 000000000000..fd031037a844 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Activate_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "Aliases_Activate_MaximumSet", + "operationId": "Aliases_Activate", + "parameters": { + "api-version": "2025-03-01", + "id": "rpzhsxpgbijywrrlx", + "body": { + "enabled": true + } + }, + "responses": { + "200": { + "body": { + "enabled": true + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Create_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Create_MaximumSet_Gen.json new file mode 100644 index 000000000000..e3b41f23da64 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Create_MaximumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "Aliases_Create_MaximumSet", + "operationId": "Aliases_Create", + "parameters": { + "api-version": "2025-03-01", + "resource": { + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ] + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Delete_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..59cfbaed58ec --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Delete_MaximumSet_Gen.json @@ -0,0 +1,11 @@ +{ + "title": "Aliases_Delete_MaximumSet", + "operationId": "Aliases_Delete", + "parameters": { + "api-version": "2025-03-01", + "id": "czfoociaadizldwkqezgbiu" + }, + "responses": { + "204": {} + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Get_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..1498b68426b2 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Get_MaximumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "Aliases_Get_MaximumSet", + "operationId": "Aliases_Get", + "parameters": { + "api-version": "2025-03-01", + "id": "kovknnsxgbsywutttkkxqchwravj" + }, + "responses": { + "200": { + "body": { + "id": "p", + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ], + "isCustom": true, + "enabled": true + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_List_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..3dfeb23f2efe --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_List_MaximumSet_Gen.json @@ -0,0 +1,25 @@ +{ + "title": "Aliases_List_MaximumSet", + "operationId": "Aliases_List", + "parameters": { + "api-version": "2025-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "p", + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ], + "isCustom": true, + "enabled": true + } + ], + "nextLink": "https://microsoft.com/ag" + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Update_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..c79e9731cce3 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Update_MaximumSet_Gen.json @@ -0,0 +1,41 @@ +{ + "title": "Aliases_Update_MaximumSet", + "operationId": "Aliases_Update", + "parameters": { + "api-version": "2025-03-01", + "id": "uwvfkund", + "resource": { + "name": "pyytiqkzyhrrsh", + "aliases": [ + "rrxlskyespowhvhx" + ] + } + }, + "responses": { + "200": { + "body": { + "id": "p", + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ], + "isCustom": true, + "enabled": true + } + }, + "201": { + "headers": { + "original-uri": "https://contoso.com/operationstatus" + }, + "body": { + "id": "p", + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ], + "isCustom": true, + "enabled": true + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_CreateExample_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_CreateExample_MaximumSet_Gen.json new file mode 100644 index 000000000000..8a07e8e76239 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_CreateExample_MaximumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "ExampleQueryOperations_CreateExample_MaximumSet", + "operationId": "ExampleQueryOperations_CreateExample", + "parameters": { + "api-version": "2025-03-01", + "resource": { + "userQuestion": "tjgtbxqerknztcwauanxmmphqzs", + "linkedInstructions": [ + "dfutbgdqreo" + ], + "sampleQuery": { + "language": "tqmlay", + "query": "yjpei" + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_DeleteExample_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_DeleteExample_MaximumSet_Gen.json new file mode 100644 index 000000000000..7eb31ba48fe9 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_DeleteExample_MaximumSet_Gen.json @@ -0,0 +1,11 @@ +{ + "title": "ExampleQueryOperations_DeleteExample_MaximumSet", + "operationId": "ExampleQueryOperations_DeleteExample", + "parameters": { + "api-version": "2025-03-01", + "exampleId": "xwmaetuo" + }, + "responses": { + "204": {} + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_GetExample_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_GetExample_MaximumSet_Gen.json new file mode 100644 index 000000000000..babfdba093c5 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_GetExample_MaximumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "ExampleQueryOperations_GetExample_MaximumSet", + "operationId": "ExampleQueryOperations_GetExample", + "parameters": { + "api-version": "2025-03-01", + "exampleId": "wtziixiixuncz" + }, + "responses": { + "200": { + "body": { + "exampleId": "inurzewkwrzgypxwazfgchrezmzump", + "userQuestion": "tjgtbxqerknztcwauanxmmphqzs", + "linkedInstructions": [ + "dfutbgdqreo" + ], + "sampleQuery": { + "language": "tqmlay", + "query": "yjpei" + } + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_LinkInstruction_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_LinkInstruction_MaximumSet_Gen.json new file mode 100644 index 000000000000..09504333e077 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_LinkInstruction_MaximumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "ExampleQueryOperations_LinkInstruction_MaximumSet", + "operationId": "ExampleQueryOperations_LinkInstruction", + "parameters": { + "api-version": "2025-03-01", + "exampleId": "wwk", + "body": { + "linkedInstructions": [ + "bnyveykehndaxjtavuac" + ] + } + }, + "responses": { + "200": { + "body": { + "linkedInstructions": [ + "bnyveykehndaxjtavuac" + ] + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_ListAllExamples_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_ListAllExamples_MaximumSet_Gen.json new file mode 100644 index 000000000000..bb34d8174ed1 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_ListAllExamples_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "ExampleQueryOperations_ListAllExamples_MaximumSet", + "operationId": "ExampleQueryOperations_ListAllExamples", + "parameters": { + "api-version": "2025-03-01", + "instructionId": "lpr" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "exampleId": "inurzewkwrzgypxwazfgchrezmzump", + "userQuestion": "tjgtbxqerknztcwauanxmmphqzs", + "linkedInstructions": [ + "dfutbgdqreo" + ], + "sampleQuery": { + "language": "tqmlay", + "query": "yjpei" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_UpdateExample_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_UpdateExample_MaximumSet_Gen.json new file mode 100644 index 000000000000..5f0222f39288 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ExampleQueryOperations_UpdateExample_MaximumSet_Gen.json @@ -0,0 +1,46 @@ +{ + "title": "ExampleQueryOperations_UpdateExample_MaximumSet", + "operationId": "ExampleQueryOperations_UpdateExample", + "parameters": { + "api-version": "2025-03-01", + "exampleId": "rsedkhrqvgiqz", + "resource": { + "userQuestion": "nj", + "linkedInstructions": [ + "qvjmxhbnhjjuxunapx" + ], + "sampleQuery": { + "language": "hnurkqeqfmfmjfnc", + "query": "amwxibfyjlzcrekrrcgfzohg" + } + } + }, + "responses": { + "200": { + "body": { + "exampleId": "inurzewkwrzgypxwazfgchrezmzump", + "userQuestion": "tjgtbxqerknztcwauanxmmphqzs", + "linkedInstructions": [ + "dfutbgdqreo" + ], + "sampleQuery": { + "language": "tqmlay", + "query": "yjpei" + } + } + }, + "201": { + "body": { + "exampleId": "inurzewkwrzgypxwazfgchrezmzump", + "userQuestion": "tjgtbxqerknztcwauanxmmphqzs", + "linkedInstructions": [ + "dfutbgdqreo" + ], + "sampleQuery": { + "language": "tqmlay", + "query": "yjpei" + } + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Feedback_Submit_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Feedback_Submit_MaximumSet_Gen.json new file mode 100644 index 000000000000..871d1086f212 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Feedback_Submit_MaximumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Feedback_Submit_MaximumSet", + "operationId": "Feedback_Submit", + "parameters": { + "api-version": "2025-03-01", + "resource": { + "operationId": "ppbhtmt", + "conversationId": "scjuamqtfsifzektpsfimdcaev", + "feedback": "Neutral", + "queryEndpoint": "V3" + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Create_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Create_MaximumSet_Gen.json new file mode 100644 index 000000000000..12732532aae5 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Create_MaximumSet_Gen.json @@ -0,0 +1,43 @@ +{ + "title": "Instructions_Create_MaximumSet", + "operationId": "Instructions_Create", + "parameters": { + "api-version": "2025-03-01", + "resource": { + "instructionId": "lc", + "instructionVersion": "oqjnitfdopnmf", + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "ncjziatzbkn" + ], + "keywords": [ + "xwbkjrwd" + ], + "sampleQuestions": [ + "qmrgzdtouhonzzqjhlunvcmamwyqin" + ] + }, + "relationships": { + "dependencies": [ + "wkcw" + ], + "exclusions": [ + "wlur" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Delete_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..a754fe90c4da --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Delete_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Instructions_Delete_MaximumSet", + "operationId": "Instructions_Delete", + "parameters": { + "api-version": "2025-03-01", + "id": "sygusbiitwercnq" + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "mpqawgujkdhdkc", + "status": "NotStarted", + "error": { + "code": "rptaamp", + "message": "hyajqarokzepmgmwdujxytcxcxwb", + "target": "ezsodkdldmtqpzrgnacxfdznts", + "details": [], + "innererror": { + "code": "kmgabmowpm" + } + } + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Get_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..ebcec53d2517 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Get_MaximumSet_Gen.json @@ -0,0 +1,40 @@ +{ + "title": "Instructions_Get_MaximumSet", + "operationId": "Instructions_Get", + "parameters": { + "api-version": "2025-03-01", + "id": "djmqm" + }, + "responses": { + "200": { + "body": { + "id": "tyrmwcqkhcsqwl", + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "ncjziatzbkn" + ], + "keywords": [ + "xwbkjrwd" + ], + "sampleQuestions": [ + "qmrgzdtouhonzzqjhlunvcmamwyqin" + ] + }, + "relationships": { + "dependencies": [ + "wkcw" + ], + "exclusions": [ + "wlur" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl" + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_List_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..2c0f38721596 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_List_MaximumSet_Gen.json @@ -0,0 +1,45 @@ +{ + "title": "Instructions_List_MaximumSet", + "operationId": "Instructions_List", + "parameters": { + "api-version": "2025-03-01", + "showActive": true + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "tyrmwcqkhcsqwl", + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "ncjziatzbkn" + ], + "keywords": [ + "xwbkjrwd" + ], + "sampleQuestions": [ + "qmrgzdtouhonzzqjhlunvcmamwyqin" + ] + }, + "relationships": { + "dependencies": [ + "wkcw" + ], + "exclusions": [ + "wlur" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_UpdateStatus_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_UpdateStatus_MaximumSet_Gen.json new file mode 100644 index 000000000000..3ed62ef97873 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_UpdateStatus_MaximumSet_Gen.json @@ -0,0 +1,34 @@ +{ + "title": "Instructions_UpdateStatus_MaximumSet", + "operationId": "Instructions_UpdateStatus", + "parameters": { + "api-version": "2025-03-01", + "id": "azcfnkannptughhrqeopugllqn", + "body": { + "status": "Active" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "bdyowjfhpzowwibstizdppxefxb", + "status": "NotStarted", + "error": { + "code": "rptaamp", + "message": "hyajqarokzepmgmwdujxytcxcxwb", + "target": "ezsodkdldmtqpzrgnacxfdznts", + "details": [], + "innererror": { + "code": "kmgabmowpm" + } + }, + "result": { + "status": "Active" + } + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Update_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..1355a436f8fa --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Update_MaximumSet_Gen.json @@ -0,0 +1,99 @@ +{ + "title": "Instructions_Update_MaximumSet", + "operationId": "Instructions_Update", + "parameters": { + "api-version": "2025-03-01", + "id": "neemqxiicxswdfiddrvssx", + "resource": { + "instructionId": "pbnldijsxlwcmaqttewfhufdizehuz", + "instructionVersion": "kqhkbegfowlrhgfqcto", + "language": "EN", + "retrieval": { + "subTopics": [ + "umlms" + ], + "keywords": [ + "fooduxunzkssoaufmwkqcpyyrxfsxg" + ], + "sampleQuestions": [ + "rqeghaszakgshy" + ] + }, + "relationships": { + "dependencies": [ + "vdpwjiejwdcmscnnmiatskfexbio" + ], + "exclusions": [ + "wmwvjnyr" + ] + }, + "comment": "widtfgvm" + } + }, + "responses": { + "200": { + "body": { + "id": "tyrmwcqkhcsqwl", + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "umlms" + ], + "keywords": [ + "fooduxunzkssoaufmwkqcpyyrxfsxg" + ], + "sampleQuestions": [ + "rqeghaszakgshy" + ] + }, + "relationships": { + "dependencies": [ + "vdpwjiejwdcmscnnmiatskfexbio" + ], + "exclusions": [ + "wmwvjnyr" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl" + } + }, + "201": { + "headers": { + "original-uri": "https://contoso.com/operationstatus", + "Operation-Location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "tyrmwcqkhcsqwl", + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "umlms" + ], + "keywords": [ + "fooduxunzkssoaufmwkqcpyyrxfsxg" + ], + "sampleQuestions": [ + "rqeghaszakgshy" + ] + }, + "relationships": { + "dependencies": [ + "vdpwjiejwdcmscnnmiatskfexbio" + ], + "exclusions": [ + "wmwvjnyr" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl" + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/OperationProgress_GetOperationResult_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/OperationProgress_GetOperationResult_MaximumSet_Gen.json new file mode 100644 index 000000000000..4956e0877fcd --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/OperationProgress_GetOperationResult_MaximumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "OperationProgress_GetOperationResult_MaximumSet", + "operationId": "OperationProgress_GetOperationResult", + "parameters": { + "api-version": "2025-03-01", + "operationId": "ikljjxttqwhlt" + }, + "responses": { + "200": { + "body": { + "status": "Accepted", + "operationId": "hsgnmfxkaaibmskoeindsqh", + "errorMessage": [ + "okassangavsxyxwmjndzore" + ] + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/QueryApi_Execute_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/QueryApi_Execute_MaximumSet_Gen.json new file mode 100644 index 000000000000..e3f61812e081 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/QueryApi_Execute_MaximumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "QueryApi_Execute_MaximumSet", + "operationId": "QueryApi_Execute", + "parameters": { + "api-version": "2025-03-01", + "Conversation-Id": "kbllsekovcrcdhc", + "Accept-Language": "ttfmksnwnnqhwitiaxpcksrgaitr", + "maxRetry": 5, + "includeSummary": true, + "body": { + "ask": "co" + } + }, + "responses": { + "200": { + "body": { + "result": "blgoetxiztaxcdpchkpyzkootok", + "summary": "txznfigwmcl" + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ValidateQueryApi_Execute_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ValidateQueryApi_Execute_MaximumSet_Gen.json new file mode 100644 index 000000000000..cae7aa5ddcb8 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ValidateQueryApi_Execute_MaximumSet_Gen.json @@ -0,0 +1,29 @@ +{ + "title": "ValidateQueryApi_Execute_MaximumSet", + "operationId": "ValidateQueryApi_Execute", + "parameters": { + "api-version": "2025-03-01", + "body": { + "testName": "mhlbvjcsrcwlo", + "testCases": [ + { + "naturalLanguage": "lpkzqzihkdcmicxuihtomcbrl", + "expectedQuery": "garwdnlw", + "expectedEntities": "rvdsluyfbplkdnh" + } + ], + "runInConversationContext": true, + "conversationId": "iezruve" + } + }, + "responses": { + "200": { + "body": { + "testRunId": "vqjladfyawwt", + "testRunStatus": "vkpaekrc", + "createdDateTime": "2025-03-05T16:09:52.740Z", + "createdBy": "vdsumnxvlxwudyol" + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ValidateQueryApi_GetValidateTestDetails_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ValidateQueryApi_GetValidateTestDetails_MaximumSet_Gen.json new file mode 100644 index 000000000000..e6709069f9b9 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ValidateQueryApi_GetValidateTestDetails_MaximumSet_Gen.json @@ -0,0 +1,17 @@ +{ + "title": "ValidateQueryApi_GetValidateTestDetails_MaximumSet", + "operationId": "ValidateQueryApi_GetValidateTestDetails", + "parameters": { + "api-version": "2025-03-01", + "validateTestId": "arqsqvt" + }, + "responses": { + "200": { + "body": { + "validateTestId": "sg", + "fromDate": "2025-03-05T16:09:52.615Z", + "toDate": "2025-03-05T16:09:52.616Z" + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ValidateQueryApi_ListValidateTestRequests_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ValidateQueryApi_ListValidateTestRequests_MaximumSet_Gen.json new file mode 100644 index 000000000000..3728e9c4e71b --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/ValidateQueryApi_ListValidateTestRequests_MaximumSet_Gen.json @@ -0,0 +1,24 @@ +{ + "title": "ValidateQueryApi_ListValidateTestRequests_MaximumSet", + "operationId": "ValidateQueryApi_ListValidateTestRequests", + "parameters": { + "api-version": "2025-03-01", + "fromDate": "2025-03-05T16:09:52.814Z", + "endDate": "2025-03-05T16:09:52.815Z", + "testRunId": "2025-03-05T16:09:52.815Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "testId": "knnuotarjkfducjnbqwfhtfil", + "createdTime": "wjufnc", + "createdBy": "cbjttdmspungyjk" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json new file mode 100644 index 000000000000..4168b4875795 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json @@ -0,0 +1,2441 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.Industry.Manufacturing.MDS.Copilot", + "version": "2025-03-01", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "x-ms-parameterized-host": { + "hostTemplate": "https://mds-{mdsUniqueId}.{location}.cloudapp.azure.com/", + "useSchemePrefix": false, + "parameters": [ + { + "name": "mdsUniqueId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "default": "mds.azure.com" + } + ] + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "AadOauth2Auth": [ + "https://azure-mds-service/.default" + ] + } + ], + "securityDefinitions": { + "AadOauth2Auth": { + "type": "oauth2", + "description": "The Azure Active Directory OAuth2 Flow", + "flow": "accessCode", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "https://azure-mds-service/.default": "" + }, + "tokenUrl": "https://login.microsoftonline.com/common/oauth2/token" + } + }, + "tags": [], + "paths": { + "/copilot/aliases": { + "get": { + "operationId": "Aliases_List", + "description": "List all aliases", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedAlias" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "Aliases_List_MaximumSet": { + "$ref": "./examples/Aliases_List_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + }, + "post": { + "operationId": "Aliases_Create", + "description": "Create an alias", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "resource", + "in": "body", + "description": "The resource instance.", + "required": true, + "schema": { + "$ref": "#/definitions/AliasDictionary.Models.Alias" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of Alias" + }, + "operation-location": { + "type": "string", + "description": "The background job location." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "Aliases_Create_MaximumSet": { + "$ref": "./examples/Aliases_Create_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/copilot/aliases/{id}": { + "get": { + "operationId": "Aliases_Get", + "description": "Get an alias by Id", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "id", + "in": "path", + "description": "Id for the alias", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/AliasDictionary.Models.Alias" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "Aliases_Get_MaximumSet": { + "$ref": "./examples/Aliases_Get_MaximumSet_Gen.json" + } + } + }, + "patch": { + "operationId": "Aliases_Update", + "description": "Update an alias", + "consumes": [ + "application/merge-patch+json" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "id", + "in": "path", + "description": "Id for the alias", + "required": true, + "type": "string" + }, + { + "name": "resource", + "in": "body", + "description": "The resource instance.", + "required": true, + "schema": { + "$ref": "#/definitions/AliasDictionary.Models.AliasCreateOrUpdate" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/AliasDictionary.Models.Alias" + }, + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "schema": { + "$ref": "#/definitions/AliasDictionary.Models.Alias" + }, + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "Aliases_Update_MaximumSet": { + "$ref": "./examples/Aliases_Update_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "original-uri" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Aliases_Delete", + "description": "Delete an alias", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "id", + "in": "path", + "description": "Id for the alias", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "Aliases_Delete_MaximumSet": { + "$ref": "./examples/Aliases_Delete_MaximumSet_Gen.json" + } + } + } + }, + "/copilot/aliases/{id}:activate": { + "post": { + "operationId": "Aliases_Activate", + "description": "Deactivate an alias", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "id", + "in": "path", + "description": "Id for the alias", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AliasDictionary.Models.ActivateAlias" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/AliasDictionary.Models.ActivateAlias" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "Aliases_Activate_MaximumSet": { + "$ref": "./examples/Aliases_Activate_MaximumSet_Gen.json" + } + } + } + }, + "/copilot/exampleQuery": { + "get": { + "operationId": "ExampleQueryOperations_ListAllExamples", + "description": "get all example queries", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "instructionId", + "in": "query", + "description": "Instruction id.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedExampleQueryRequest" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "ExampleQueryOperations_ListAllExamples_MaximumSet": { + "$ref": "./examples/ExampleQueryOperations_ListAllExamples_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + }, + "post": { + "operationId": "ExampleQueryOperations_CreateExample", + "description": "create the example query", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "resource", + "in": "body", + "description": "The resource instance.", + "required": true, + "schema": { + "$ref": "#/definitions/ExampleQuery.Models.ExampleQueryRequest" + } + } + ], + "responses": { + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "headers": { + "Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of ExampleQueryRequest" + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "ExampleQueryOperations_CreateExample_MaximumSet": { + "$ref": "./examples/ExampleQueryOperations_CreateExample_MaximumSet_Gen.json" + } + } + } + }, + "/copilot/exampleQuery/{exampleId}": { + "get": { + "operationId": "ExampleQueryOperations_GetExample", + "description": "get the example query", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "exampleId", + "in": "path", + "description": "The ID of the example query.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ExampleQuery.Models.ExampleQueryRequest" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "ExampleQueryOperations_GetExample_MaximumSet": { + "$ref": "./examples/ExampleQueryOperations_GetExample_MaximumSet_Gen.json" + } + } + }, + "patch": { + "operationId": "ExampleQueryOperations_UpdateExample", + "description": "update the example query", + "consumes": [ + "application/merge-patch+json" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "exampleId", + "in": "path", + "description": "The ID of the example query.", + "required": true, + "type": "string" + }, + { + "name": "resource", + "in": "body", + "description": "The resource instance.", + "required": true, + "schema": { + "$ref": "#/definitions/ExampleQuery.Models.ExampleQueryRequestCreateOrUpdate" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ExampleQuery.Models.ExampleQueryRequest" + } + }, + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "schema": { + "$ref": "#/definitions/ExampleQuery.Models.ExampleQueryRequest" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "ExampleQueryOperations_UpdateExample_MaximumSet": { + "$ref": "./examples/ExampleQueryOperations_UpdateExample_MaximumSet_Gen.json" + } + } + }, + "delete": { + "operationId": "ExampleQueryOperations_DeleteExample", + "description": "delete the example query", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "exampleId", + "in": "path", + "description": "The ID of the example query.", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "ExampleQueryOperations_DeleteExample_MaximumSet": { + "$ref": "./examples/ExampleQueryOperations_DeleteExample_MaximumSet_Gen.json" + } + } + } + }, + "/copilot/exampleQuery/{exampleId}:linkInstruction": { + "post": { + "operationId": "ExampleQueryOperations_LinkInstruction", + "description": "Update instruction status.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "exampleId", + "in": "path", + "description": "The ID of the example query.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExampleQuery.Models.LinkInstructionRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ExampleQuery.Models.LinkInstructionRequest" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "ExampleQueryOperations_LinkInstruction_MaximumSet": { + "$ref": "./examples/ExampleQueryOperations_LinkInstruction_MaximumSet_Gen.json" + } + } + } + }, + "/copilot/feedback": { + "post": { + "operationId": "Feedback_Submit", + "description": "Send feedback for a query", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "resource", + "in": "body", + "description": "The resource instance.", + "required": true, + "schema": { + "$ref": "#/definitions/Feedback.Models.FeedbackRequest" + } + } + ], + "responses": { + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "headers": { + "Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of FeedbackRequest" + }, + "conversation-id": { + "type": "string", + "description": "conversation Id." + }, + "operation-id": { + "type": "string", + "description": "operation Id." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "Feedback_Submit_MaximumSet": { + "$ref": "./examples/Feedback_Submit_MaximumSet_Gen.json" + } + } + } + }, + "/copilot/instruction": { + "get": { + "operationId": "Instructions_List", + "description": "List Instruction resources", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "showActive", + "in": "query", + "description": "The instruction status.", + "required": true, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedInstruction" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "Instructions_List_MaximumSet": { + "$ref": "./examples/Instructions_List_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + }, + "post": { + "operationId": "Instructions_Create", + "description": "Create an instruction.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "resource", + "in": "body", + "description": "The resource instance.", + "required": true, + "schema": { + "$ref": "#/definitions/Instructions.Models.Instruction" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of Instruction" + }, + "operation-location": { + "type": "string", + "description": "The background job location." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "Instructions_Create_MaximumSet": { + "$ref": "./examples/Instructions_Create_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/copilot/instruction/{id}": { + "get": { + "operationId": "Instructions_Get", + "description": "Gets single instruction.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "id", + "in": "path", + "description": "Id for the instruction", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Instructions.Models.Instruction" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "Instructions_Get_MaximumSet": { + "$ref": "./examples/Instructions_Get_MaximumSet_Gen.json" + } + } + }, + "patch": { + "operationId": "Instructions_Update", + "description": "update instructions.", + "consumes": [ + "application/merge-patch+json" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "id", + "in": "path", + "description": "Id for the instruction", + "required": true, + "type": "string" + }, + { + "name": "resource", + "in": "body", + "description": "The resource instance.", + "required": true, + "schema": { + "$ref": "#/definitions/Instructions.Models.InstructionCreateOrUpdate" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Instructions.Models.Instruction" + }, + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "schema": { + "$ref": "#/definitions/Instructions.Models.Instruction" + }, + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "Instructions_Update_MaximumSet": { + "$ref": "./examples/Instructions_Update_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "original-uri" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Instructions_Delete", + "description": "Delete instructions.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "id", + "in": "path", + "description": "Id for the instruction", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "type": "object", + "description": "Provides status details for long running operations.", + "properties": { + "id": { + "type": "string", + "description": "The unique ID of the operation." + }, + "status": { + "$ref": "#/definitions/Azure.Core.Foundations.OperationState", + "description": "The status of the operation" + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Error object that describes the error when status is \"Failed\"." + } + }, + "required": [ + "id", + "status" + ] + }, + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "Instructions_Delete_MaximumSet": { + "$ref": "./examples/Instructions_Delete_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "operation-location" + }, + "x-ms-long-running-operation": true + } + }, + "/copilot/instruction/{id}:updateStatus": { + "post": { + "operationId": "Instructions_UpdateStatus", + "description": "Update instruction status.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "id", + "in": "path", + "description": "Id for the instruction", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Instructions.Models.UpdateStatusRequest" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "type": "object", + "description": "Provides status details for long running operations.", + "properties": { + "id": { + "type": "string", + "description": "The unique ID of the operation." + }, + "status": { + "$ref": "#/definitions/Azure.Core.Foundations.OperationState", + "description": "The status of the operation" + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Error object that describes the error when status is \"Failed\"." + }, + "result": { + "$ref": "#/definitions/Instructions.Models.UpdateStatusRequest", + "description": "The result of the operation." + } + }, + "required": [ + "id", + "status" + ] + }, + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "Instructions_UpdateStatus_MaximumSet": { + "$ref": "./examples/Instructions_UpdateStatus_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "operation-location" + }, + "x-ms-long-running-operation": true + } + }, + "/copilot/operation/{operationId}": { + "get": { + "operationId": "OperationProgress_GetOperationResult", + "description": "Get operation progress", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "operationId", + "in": "path", + "description": "The operation id.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Operations.Models.OperationResultQuery" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "OperationProgress_GetOperationResult_MaximumSet": { + "$ref": "./examples/OperationProgress_GetOperationResult_MaximumSet_Gen.json" + } + } + } + }, + "/copilot/query:execute": { + "post": { + "operationId": "QueryApi_Execute", + "description": "execute the query", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "Conversation-Id", + "in": "header", + "description": "Conversation-Id header", + "required": false, + "type": "string", + "x-ms-client-name": "conversationId" + }, + { + "name": "Accept-Language", + "in": "header", + "description": "Accept-Language header", + "required": true, + "type": "string", + "x-ms-client-name": "acceptLanguage" + }, + { + "name": "maxRetry", + "in": "query", + "description": "maxRetry", + "required": false, + "type": "integer", + "format": "int32", + "default": 2 + }, + { + "name": "includeSummary", + "in": "query", + "description": "Include summary in the response.", + "required": false, + "type": "boolean", + "default": false + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "ask": { + "type": "string", + "description": "Natural language query" + } + } + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/QueryService.QueryModels.QueryResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "QueryApi_Execute_MaximumSet": { + "$ref": "./examples/QueryApi_Execute_MaximumSet_Gen.json" + } + } + } + }, + "/copilot/validate": { + "get": { + "operationId": "ValidateQueryApi_ListValidateTestRequests", + "description": "List validate test requests", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "fromDate", + "in": "query", + "description": "start date", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endDate", + "in": "query", + "description": "end date", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "testRunId", + "in": "query", + "description": "start date", + "required": false, + "type": "string", + "format": "date-time" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedValidateTestSummary" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "ValidateQueryApi_ListValidateTestRequests_MaximumSet": { + "$ref": "./examples/ValidateQueryApi_ListValidateTestRequests_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/copilot/validate/{validateTestId}": { + "get": { + "operationId": "ValidateQueryApi_GetValidateTestDetails", + "description": "Get the details of a validate test", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "validateTestId", + "in": "path", + "description": "The unique identifier of the test query.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ValidateQuery.Models.TestQuery" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "ValidateQueryApi_GetValidateTestDetails_MaximumSet": { + "$ref": "./examples/ValidateQueryApi_GetValidateTestDetails_MaximumSet_Gen.json" + } + } + } + }, + "/copilot/validate:execute": { + "post": { + "operationId": "ValidateQueryApi_Execute", + "description": "Validate a query", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ValidateQuery.Models.TestQueryRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ValidateQuery.Models.TestResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-examples": { + "ValidateQueryApi_Execute_MaximumSet": { + "$ref": "./examples/ValidateQueryApi_Execute_MaximumSet_Gen.json" + } + } + } + } + }, + "definitions": { + "AliasDictionary.Models.ActivateAlias": { + "type": "object", + "description": "This is the patch request to update the status of Alias", + "properties": { + "enabled": { + "type": "boolean", + "description": "status of the alias" + } + }, + "required": [ + "enabled" + ] + }, + "AliasDictionary.Models.Alias": { + "type": "object", + "description": "This is the request model for Alias", + "properties": { + "id": { + "type": "string", + "description": "Id for the alias", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Key for the alias" + }, + "aliases": { + "type": "array", + "description": "List of aliases", + "items": { + "type": "string" + } + }, + "isCustom": { + "type": "boolean", + "description": "Indicates if the alias is enabled", + "default": true, + "readOnly": true + }, + "enabled": { + "type": "boolean", + "description": "Indicates if the alias is enabled", + "readOnly": true + } + }, + "required": [ + "id", + "name", + "aliases", + "isCustom", + "enabled" + ] + }, + "AliasDictionary.Models.AliasCreateOrUpdate": { + "type": "object", + "description": "This is the request model for Alias", + "properties": { + "name": { + "type": "string", + "description": "Key for the alias" + }, + "aliases": { + "type": "array", + "description": "List of aliases", + "items": { + "type": "string" + } + } + } + }, + "Azure.Core.Foundations.Error": { + "type": "object", + "description": "The error object.", + "properties": { + "code": { + "type": "string", + "description": "One of a server-defined set of error codes." + }, + "message": { + "type": "string", + "description": "A human-readable representation of the error." + }, + "target": { + "type": "string", + "description": "The target of the error." + }, + "details": { + "type": "array", + "description": "An array of details about specific errors that led to this reported error.", + "items": { + "$ref": "#/definitions/Azure.Core.Foundations.Error" + }, + "x-ms-identifiers": [] + }, + "innererror": { + "$ref": "#/definitions/Azure.Core.Foundations.InnerError", + "description": "An object containing more specific information than the current object about the error." + } + }, + "required": [ + "code", + "message" + ] + }, + "Azure.Core.Foundations.ErrorResponse": { + "type": "object", + "description": "A response containing error details.", + "properties": { + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "The error object." + } + }, + "required": [ + "error" + ] + }, + "Azure.Core.Foundations.InnerError": { + "type": "object", + "description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.", + "properties": { + "code": { + "type": "string", + "description": "One of a server-defined set of error codes." + }, + "innererror": { + "$ref": "#/definitions/Azure.Core.Foundations.InnerError", + "description": "Inner error." + } + } + }, + "Azure.Core.Foundations.OperationState": { + "type": "string", + "description": "Enum describing allowed operation states.", + "enum": [ + "NotStarted", + "Running", + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "OperationState", + "modelAsString": true, + "values": [ + { + "name": "NotStarted", + "value": "NotStarted", + "description": "The operation has not started." + }, + { + "name": "Running", + "value": "Running", + "description": "The operation is in progress." + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The operation has completed successfully." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The operation has failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "The operation has been canceled by the user." + } + ] + } + }, + "ExampleQuery.Models.ExampleQueryRequest": { + "type": "object", + "description": "The example query resource.", + "properties": { + "exampleId": { + "type": "string", + "description": "The ID of the example query.", + "readOnly": true + }, + "userQuestion": { + "type": "string", + "description": "The user question associated with the example." + }, + "linkedInstructions": { + "type": "array", + "description": "The linked instructions for the example query.", + "items": { + "type": "string" + } + }, + "sampleQuery": { + "$ref": "#/definitions/ExampleQuery.Models.SampleQuery", + "description": "The sample query for the example." + } + }, + "required": [ + "exampleId", + "userQuestion", + "linkedInstructions", + "sampleQuery" + ] + }, + "ExampleQuery.Models.ExampleQueryRequestCreateOrUpdate": { + "type": "object", + "description": "The example query resource.", + "properties": { + "userQuestion": { + "type": "string", + "description": "The user question associated with the example." + }, + "linkedInstructions": { + "type": "array", + "description": "The linked instructions for the example query.", + "items": { + "type": "string" + } + }, + "sampleQuery": { + "$ref": "#/definitions/ExampleQuery.Models.SampleQueryCreateOrUpdate", + "description": "The sample query for the example." + } + } + }, + "ExampleQuery.Models.LinkInstructionRequest": { + "type": "object", + "description": "The patch request for the example query.", + "properties": { + "linkedInstructions": { + "type": "array", + "description": "The linked instructions for the example query.", + "items": { + "type": "string" + } + } + } + }, + "ExampleQuery.Models.SampleQuery": { + "type": "object", + "description": "The sample query resource.", + "properties": { + "language": { + "type": "string", + "description": "The query language.", + "default": "KQL" + }, + "query": { + "type": "string", + "description": "The query string." + } + }, + "required": [ + "language", + "query" + ] + }, + "ExampleQuery.Models.SampleQueryCreateOrUpdate": { + "type": "object", + "description": "The sample query resource.", + "properties": { + "language": { + "type": "string", + "description": "The query language.", + "default": "KQL" + }, + "query": { + "type": "string", + "description": "The query string." + } + } + }, + "Feedback.Models.FeedbackCategory": { + "type": "string", + "description": "Feedback category", + "enum": [ + "Neutral", + "ThumbUp", + "ThumbDown" + ], + "x-ms-enum": { + "name": "FeedbackCategory", + "modelAsString": true, + "values": [ + { + "name": "Neutral", + "value": "Neutral", + "description": "Neutral feedback." + }, + { + "name": "ThumbUp", + "value": "ThumbUp", + "description": "Positive feedback." + }, + { + "name": "ThumbDown", + "value": "ThumbDown", + "description": "Negative feedback." + } + ] + } + }, + "Feedback.Models.FeedbackRequest": { + "type": "object", + "description": "feedbackRequest", + "properties": { + "operationId": { + "type": "string", + "description": "The query id" + }, + "conversationId": { + "type": "string", + "description": "conversation id" + }, + "feedback": { + "$ref": "#/definitions/Feedback.Models.FeedbackCategory", + "description": "The feedback", + "x-ms-mutability": [ + "update" + ] + }, + "queryEndpoint": { + "$ref": "#/definitions/Feedback.Models.QueryEndpoint", + "description": "QueryEndpoint" + } + }, + "required": [ + "operationId", + "conversationId", + "feedback", + "queryEndpoint" + ] + }, + "Feedback.Models.QueryEndpoint": { + "type": "string", + "description": "Query endpoint", + "enum": [ + "V3", + "Assistant" + ], + "x-ms-enum": { + "name": "QueryEndpoint", + "modelAsString": true, + "values": [ + { + "name": "V3", + "value": "V3", + "description": "V3 endpoint" + }, + { + "name": "Assistant", + "value": "Assistant", + "description": "Assistant endpoint" + } + ] + } + }, + "Instructions.Models.Instruction": { + "type": "object", + "description": "This is the request model for Instruction", + "properties": { + "id": { + "type": "string", + "description": "Id for the instruction", + "readOnly": true + }, + "instructionId": { + "type": "string", + "description": "intruction Id for the instruction", + "x-ms-mutability": [ + "update" + ] + }, + "instructionVersion": { + "type": "string", + "description": "Version for the instruction", + "x-ms-mutability": [ + "update" + ] + }, + "status": { + "$ref": "#/definitions/Instructions.Models.InstructionStatusEnum", + "description": "Status for the instruction", + "readOnly": true + }, + "domain": { + "$ref": "#/definitions/Instructions.Models.InstrustionDomainEnum", + "description": "Domain for the instruction", + "readOnly": true + }, + "subDomain": { + "$ref": "#/definitions/Instructions.Models.InstructionSubDomainEnum", + "description": "Sub-domain for the instruction", + "readOnly": true + }, + "category": { + "$ref": "#/definitions/Instructions.Models.InstructionCategoryEnum", + "description": "Category for the instruction", + "readOnly": true + }, + "language": { + "$ref": "#/definitions/Instructions.Models.InstructionLanguageEnum", + "description": "The language of the instruction." + }, + "retrieval": { + "$ref": "#/definitions/Instructions.Models.RetrievalProperties", + "description": "The retrieval properties of the instruction." + }, + "relationships": { + "$ref": "#/definitions/Instructions.Models.Relationships", + "description": "The relationships of the instruction." + }, + "comment": { + "type": "string", + "description": "The comment for the instruction." + } + }, + "required": [ + "id", + "instructionId", + "instructionVersion", + "status", + "domain", + "subDomain", + "category", + "language", + "retrieval", + "relationships", + "comment" + ] + }, + "Instructions.Models.InstructionCategoryEnum": { + "type": "string", + "description": "Instruction Category Enums", + "enum": [ + "Transactional", + "Analytical", + "Trend", + "KPI" + ], + "x-ms-enum": { + "name": "InstructionCategoryEnum", + "modelAsString": true, + "values": [ + { + "name": "Transactional", + "value": "Transactional", + "description": "Transactional instruction category" + }, + { + "name": "Analytical", + "value": "Analytical", + "description": "Analytical instruction category" + }, + { + "name": "Trend", + "value": "Trend", + "description": "Trend instruction category" + }, + { + "name": "KPI", + "value": "KPI", + "description": "KPI instruction category" + } + ] + } + }, + "Instructions.Models.InstructionCreateOrUpdate": { + "type": "object", + "description": "This is the request model for Instruction", + "properties": { + "instructionId": { + "type": "string", + "description": "intruction Id for the instruction", + "x-ms-mutability": [ + "update" + ] + }, + "instructionVersion": { + "type": "string", + "description": "Version for the instruction", + "x-ms-mutability": [ + "update" + ] + }, + "language": { + "$ref": "#/definitions/Instructions.Models.InstructionLanguageEnum", + "description": "The language of the instruction." + }, + "retrieval": { + "$ref": "#/definitions/Instructions.Models.RetrievalPropertiesCreateOrUpdate", + "description": "The retrieval properties of the instruction." + }, + "relationships": { + "$ref": "#/definitions/Instructions.Models.RelationshipsCreateOrUpdate", + "description": "The relationships of the instruction." + }, + "comment": { + "type": "string", + "description": "The comment for the instruction." + } + } + }, + "Instructions.Models.InstructionLanguageEnum": { + "type": "string", + "description": "Instruction Language Enums", + "enum": [ + "EN" + ], + "x-ms-enum": { + "name": "InstructionLanguageEnum", + "modelAsString": true, + "values": [ + { + "name": "EN", + "value": "EN", + "description": "English" + } + ] + } + }, + "Instructions.Models.InstructionStatusEnum": { + "type": "string", + "description": "Instruction Status Enums", + "enum": [ + "Active", + "Inactive" + ], + "x-ms-enum": { + "name": "InstructionStatusEnum", + "modelAsString": true, + "values": [ + { + "name": "Active", + "value": "Active", + "description": "Instruction is active" + }, + { + "name": "Inactive", + "value": "Inactive", + "description": "Instruction is inactive" + } + ] + } + }, + "Instructions.Models.InstructionSubDomainEnum": { + "type": "string", + "description": "Instruction Sub Domain Enums", + "enum": [ + "Production", + "Quality", + "Maintenance", + "Inventory", + "Downtime", + "Scrap", + "Mixed" + ], + "x-ms-enum": { + "name": "InstructionSubDomainEnum", + "modelAsString": true, + "values": [ + { + "name": "Production", + "value": "Production", + "description": "Production sub-domain" + }, + { + "name": "Quality", + "value": "Quality", + "description": "Quality sub-domain" + }, + { + "name": "Maintenance", + "value": "Maintenance", + "description": "Maintenance sub-domain" + }, + { + "name": "Inventory", + "value": "Inventory", + "description": "Inventory sub-domain" + }, + { + "name": "Downtime", + "value": "Downtime", + "description": "Downtime sub-domain" + }, + { + "name": "Scrap", + "value": "Scrap", + "description": "Scrap sub-domain" + }, + { + "name": "Mixed", + "value": "Mixed", + "description": "Mixed sub-domain" + } + ] + } + }, + "Instructions.Models.InstrustionDomainEnum": { + "type": "string", + "description": "Instruction Sub Domain Enums", + "enum": [ + "MOM", + "SCM", + "DE" + ], + "x-ms-enum": { + "name": "InstrustionDomainEnum", + "modelAsString": true, + "values": [ + { + "name": "MOM", + "value": "MOM", + "description": "Manufacturing Operations Management" + }, + { + "name": "SCM", + "value": "SCM", + "description": "Supply Chain Management" + }, + { + "name": "DE", + "value": "DE", + "description": "Digital Engineering" + } + ] + } + }, + "Instructions.Models.Relationships": { + "type": "object", + "description": "Relationships", + "properties": { + "dependencies": { + "type": "array", + "description": "List of dependent instructions", + "items": { + "type": "string" + } + }, + "exclusions": { + "type": "array", + "description": "List of InstructionIds to be excluded", + "items": { + "type": "string" + } + } + }, + "required": [ + "dependencies", + "exclusions" + ] + }, + "Instructions.Models.RelationshipsCreateOrUpdate": { + "type": "object", + "description": "Relationships", + "properties": { + "dependencies": { + "type": "array", + "description": "List of dependent instructions", + "items": { + "type": "string" + } + }, + "exclusions": { + "type": "array", + "description": "List of InstructionIds to be excluded", + "items": { + "type": "string" + } + } + } + }, + "Instructions.Models.RetrievalProperties": { + "type": "object", + "description": "The retrieval properties of the instruction.", + "properties": { + "subTopics": { + "type": "array", + "description": "The sub-topics related to the instruction.", + "items": { + "type": "string" + } + }, + "keywords": { + "type": "array", + "description": "The keywords associated with the instruction.", + "items": { + "type": "string" + } + }, + "sampleQuestions": { + "type": "array", + "description": "The sample questions for the instruction.", + "items": { + "type": "string" + } + } + }, + "required": [ + "subTopics", + "keywords", + "sampleQuestions" + ] + }, + "Instructions.Models.RetrievalPropertiesCreateOrUpdate": { + "type": "object", + "description": "The retrieval properties of the instruction.", + "properties": { + "subTopics": { + "type": "array", + "description": "The sub-topics related to the instruction.", + "items": { + "type": "string" + } + }, + "keywords": { + "type": "array", + "description": "The keywords associated with the instruction.", + "items": { + "type": "string" + } + }, + "sampleQuestions": { + "type": "array", + "description": "The sample questions for the instruction.", + "items": { + "type": "string" + } + } + } + }, + "Instructions.Models.UpdateStatusRequest": { + "type": "object", + "description": "This is the patch request to update the status of instruction", + "properties": { + "status": { + "$ref": "#/definitions/Instructions.Models.InstructionStatusEnum", + "description": "status of the instruction" + } + }, + "required": [ + "status" + ] + }, + "Operations.Models.OperationResultQuery": { + "type": "object", + "description": "Operation Response Model", + "properties": { + "status": { + "$ref": "#/definitions/Operations.Models.OperationStatusValue", + "description": "The operation status.", + "readOnly": true + }, + "operationId": { + "type": "string", + "description": "The operation id.", + "readOnly": true + }, + "errorMessage": { + "type": "array", + "description": "The error message.", + "items": { + "type": "string" + }, + "readOnly": true + } + }, + "required": [ + "status", + "operationId", + "errorMessage" + ] + }, + "Operations.Models.OperationStatusValue": { + "type": "string", + "description": "Operation Status", + "enum": [ + "Accepted", + "InProgress", + "TransientFailure", + "Succeeded", + "Failed", + "Deleting", + "Canceled", + "Unknown", + "Skipped" + ], + "x-ms-enum": { + "name": "OperationStatusValue", + "modelAsString": true, + "values": [ + { + "name": "Accepted", + "value": "Accepted", + "description": "The operation is Accepted." + }, + { + "name": "InProgress", + "value": "InProgress", + "description": "The operation is InProgress." + }, + { + "name": "TransientFailure", + "value": "TransientFailure", + "description": "The operation is in a transient failure state." + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The operation is Succeeded." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The operation is Failed." + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "The operation is Canceling." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "The operation is Canceled." + }, + { + "name": "Unknown", + "value": "Unknown", + "description": "The operation is in a permanent failure state." + }, + { + "name": "Skipped", + "value": "Skipped", + "description": "The operation is Skipped." + } + ] + } + }, + "PagedAlias": { + "type": "object", + "description": "Paged collection of Alias items", + "properties": { + "value": { + "type": "array", + "description": "The Alias items on this page", + "items": { + "$ref": "#/definitions/AliasDictionary.Models.Alias" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedExampleQueryRequest": { + "type": "object", + "description": "Paged collection of ExampleQueryRequest items", + "properties": { + "value": { + "type": "array", + "description": "The ExampleQueryRequest items on this page", + "items": { + "$ref": "#/definitions/ExampleQuery.Models.ExampleQueryRequest" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedInstruction": { + "type": "object", + "description": "Paged collection of Instruction items", + "properties": { + "value": { + "type": "array", + "description": "The Instruction items on this page", + "items": { + "$ref": "#/definitions/Instructions.Models.Instruction" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedValidateTestSummary": { + "type": "object", + "description": "Paged collection of ValidateTestSummary items", + "properties": { + "value": { + "type": "array", + "description": "The ValidateTestSummary items on this page", + "items": { + "$ref": "#/definitions/ValidateQuery.Models.ValidateTestSummary" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "QueryService.QueryModels.QueryResponse": { + "type": "object", + "description": "Query Response Result", + "properties": { + "result": { + "type": "string", + "description": "Resultant Query Query or Query query execution response (JArray string)" + }, + "summary": { + "type": "string", + "description": "Summary of the Resultant Query Query or Query query execution response (JArray string)" + } + } + }, + "ValidateQuery.Models.CopilotTestCase": { + "type": "object", + "description": "Test Case for Test run", + "properties": { + "naturalLanguage": { + "type": "string", + "description": "The natural language input for the test case." + }, + "expectedQuery": { + "type": "string", + "description": "The expected query for the test case." + }, + "expectedEntities": { + "type": "string", + "description": "The expected entities for the test case." + } + } + }, + "ValidateQuery.Models.TestQuery": { + "type": "object", + "description": "Test Query", + "properties": { + "validateTestId": { + "type": "string", + "description": "The unique identifier of the test query.", + "readOnly": true + }, + "fromDate": { + "type": "string", + "format": "date-time", + "description": "start date of test run" + }, + "toDate": { + "type": "string", + "format": "date-time", + "description": "end date of test run" + } + }, + "required": [ + "validateTestId" + ] + }, + "ValidateQuery.Models.TestQueryRequest": { + "type": "object", + "description": "Test Query Request", + "properties": { + "testName": { + "type": "string", + "description": "The name of the test query." + }, + "testCases": { + "type": "array", + "description": "The test cases for the query.", + "items": { + "$ref": "#/definitions/ValidateQuery.Models.CopilotTestCase" + }, + "x-ms-identifiers": [] + }, + "runInConversationContext": { + "type": "boolean", + "description": "The run in conversation context.", + "default": false + }, + "conversationId": { + "type": "string", + "description": "coversation Id" + } + }, + "required": [ + "testName", + "testCases", + "runInConversationContext" + ] + }, + "ValidateQuery.Models.TestResponse": { + "type": "object", + "description": "test response", + "properties": { + "testRunId": { + "type": "string", + "description": "Test Run Id" + }, + "testRunStatus": { + "type": "string", + "description": "Test Run Status" + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "creation date" + }, + "createdBy": { + "type": "string", + "description": "created by" + } + }, + "required": [ + "testRunId", + "testRunStatus", + "createdDateTime", + "createdBy" + ] + }, + "ValidateQuery.Models.ValidateTestSummary": { + "type": "object", + "description": "Validate Test Response", + "properties": { + "testId": { + "type": "string", + "description": "The unique identifier of the test.", + "readOnly": true + }, + "createdTime": { + "type": "string", + "description": "The time when the test was created." + }, + "createdBy": { + "type": "string", + "description": "The user who created the test." + } + }, + "required": [ + "testId", + "createdTime", + "createdBy" + ] + } + }, + "parameters": { + "Azure.Core.Foundations.ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "The API version to use for this operation.", + "required": true, + "type": "string", + "minLength": 1, + "x-ms-parameter-location": "method", + "x-ms-client-name": "apiVersion" + } + } +} diff --git a/specification/manufacturingdatasolution/data-plane/readme.md b/specification/manufacturingdatasolution/data-plane/readme.md new file mode 100644 index 000000000000..592a96caa5f2 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/readme.md @@ -0,0 +1,61 @@ +# ManufacturingDataSolution Service + +> see https://aka.ms/autorest +This is the AutoRest configuration file for ManufacturingDataSolution Services. + +--- + +## Getting Started + +To build the SDK for ManufacturingDataSolution Services, +simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` +To see additional help and options, run: +> `autorest --help` +--- + +## Configuration + +### Basic Information + +These are the global settings for the Manufacturing Data Solution Copilot service. + +```yaml +openapi-type: data-plane +tag: package-2025-03-01 +suppressions: + - code: AvoidAnonymousTypes + from: openapi.json + where: $.paths./copilot/instruction/{id}:updateStatus.post.responses.202.schema + - code: AvoidAnonymousTypes + from: openapi.json + where: $.paths./copilot/instruction/{id}.delete.responses.202.schema + - code: AvoidAnonymousParameter + from: openapi.json + where: $.paths./copilot/query:execute.post.parameters[5].schema +``` + +### Tag: package-2025-03-01 + +These settings apply only when `--tag=package-2025-03-01` is specified on the command line. + +```yaml $(tag) == 'package-2025-03-01' +input-file: + - Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python + - repo: azure-sdk-for-java +``` From cc59b635756159e3175ef6edc5a5bf6056f5aa41 Mon Sep 17 00:00:00 2001 From: yogms Date: Thu, 6 Mar 2025 16:53:27 +0530 Subject: [PATCH 02/17] correct the settings --- .../ManufacturingDataSolution.Copilot/main.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/main.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/main.tsp index d7d99f8ee113..fd64ba279953 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/main.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/main.tsp @@ -17,7 +17,7 @@ using Azure.Core; using Azure.Core.Traits; @route("/copilot") -@service(#{ title: "Microsoft.Industry.Manufacturing.MDS.Copilot", }) +@service(#{ title: "Microsoft.Industry.Manufacturing.MDS.Copilot" }) @server( "https://mds-{mdsUniqueId}.{location}.cloudapp.azure.com/", "Manufacturing Data Solution global endpoint.", From 7517a9797a52c0bbf233aecf0f58da5262c763aa Mon Sep 17 00:00:00 2001 From: yogms Date: Thu, 6 Mar 2025 17:13:13 +0530 Subject: [PATCH 03/17] removed unused imports --- .../ManufacturingDataSolution.Copilot/main.tsp | 2 -- .../tspconfig.yaml | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/main.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/main.tsp index fd64ba279953..51c3e1d073c8 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/main.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/main.tsp @@ -11,10 +11,8 @@ import "./resources/validateQueryApi.tsp"; import "./resources/feedbackApi.tsp"; using TypeSpec.Http; -using TypeSpec.Rest; using TypeSpec.Versioning; using Azure.Core; -using Azure.Core.Traits; @route("/copilot") @service(#{ title: "Microsoft.Industry.Manufacturing.MDS.Copilot" }) diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml index cc295255cb38..f407517383fa 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml @@ -16,20 +16,6 @@ options: package-name: "{package-dir}" package-mode: dataplane flavor: azure - "@azure-tools/typespec-csharp": - package-dir: "Azure.Microsoft.Industries.ManufacturingDataSolution.Copilot" - namespace: "{package-dir}" - clear-output-folder: true - model-namespace: false - flavor: azure - "@azure-tools/typespec-ts": - package-dir: "microsoft-industries-manufacturingdatasolution-copilot" - generateMetadata: true - generateTest: true - packageDetails: - name: "@azure-rest/microsoft-industry-manufacturing-mds-copilot" - description: "Microsoft.Industry.Manufacturing.MDS.Copilot" - flavor: azure "@azure-tools/typespec-java": package-dir: "azure-microsoft-industry-manufacturing-mds-copilot" namespace: "com.azure.microsoft.industry.manufacturing.mds.copilot" From 3cd971015aff28458522e7f8d5ff0b0c11be47a1 Mon Sep 17 00:00:00 2001 From: yogms Date: Thu, 6 Mar 2025 17:38:07 +0530 Subject: [PATCH 04/17] tspconfig.yaml changes --- .../ManufacturingDataSolution.Copilot/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml index f407517383fa..9cbf3cb8a61c 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml @@ -12,7 +12,7 @@ options: omit-unreachable-types: true output-file: "./data-plane/{service-name}/{version-status}/{version}/openapi.json" "@azure-tools/typespec-python": - package-dir: "microsoft-industries-manufacturingdatasolution-copilot" + package-dir: "microsoft-industry-manufacturing-mds-copilot" package-name: "{package-dir}" package-mode: dataplane flavor: azure From fa0aa83190752db939641239092debaf229ef6e9 Mon Sep 17 00:00:00 2001 From: yogms Date: Thu, 6 Mar 2025 17:43:30 +0530 Subject: [PATCH 05/17] tspconfig yaml changes --- .../ManufacturingDataSolution.Copilot/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml index 9cbf3cb8a61c..aa25b2021aa6 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml @@ -12,7 +12,7 @@ options: omit-unreachable-types: true output-file: "./data-plane/{service-name}/{version-status}/{version}/openapi.json" "@azure-tools/typespec-python": - package-dir: "microsoft-industry-manufacturing-mds-copilot" + package-dir: "azure-microsoft-industry-manufacturing-mds-copilot" package-name: "{package-dir}" package-mode: dataplane flavor: azure From 7865584018980543244590e960da92dd07132c93 Mon Sep 17 00:00:00 2001 From: yogms Date: Thu, 6 Mar 2025 18:08:43 +0530 Subject: [PATCH 06/17] removed unused libs --- .../models/aliasDictionary.tsp | 4 ---- .../ManufacturingDataSolution.Copilot/models/exampleQuery.tsp | 4 ---- .../ManufacturingDataSolution.Copilot/models/feedback.tsp | 4 ---- .../ManufacturingDataSolution.Copilot/models/instruction.tsp | 4 ---- .../ManufacturingDataSolution.Copilot/models/operations.tsp | 3 --- .../ManufacturingDataSolution.Copilot/models/querymodels.tsp | 4 ---- .../models/validateQuery.tsp | 4 ---- .../resources/aliasDictionaryApi.tsp | 1 - .../resources/exampleQueryApi.tsp | 2 -- .../resources/feedbackApi.tsp | 2 -- .../ManufacturingDataSolution.Copilot/resources/healthApi.tsp | 2 -- .../resources/instructionsApi.tsp | 1 - .../resources/operationsApi.tsp | 3 --- .../ManufacturingDataSolution.Copilot/resources/queryApi.tsp | 2 -- .../resources/validateQueryApi.tsp | 2 -- 15 files changed, 42 deletions(-) diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/aliasDictionary.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/aliasDictionary.tsp index 0b8e90da75fb..5e02bfb70ab4 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/aliasDictionary.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/aliasDictionary.tsp @@ -3,11 +3,7 @@ import "@typespec/http"; import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; -using Azure.Core; -using Azure.Core.Traits; using TypeSpec.Rest; -using TypeSpec.Http; -using TypeSpec.Versioning; namespace MdsSolution.CopilotService.AliasDictionary.Models; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/exampleQuery.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/exampleQuery.tsp index 38e4c2360832..fbc1584ddcef 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/exampleQuery.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/exampleQuery.tsp @@ -3,11 +3,7 @@ import "@typespec/http"; import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; -using Azure.Core; -using Azure.Core.Traits; using TypeSpec.Rest; -using TypeSpec.Http; -using TypeSpec.Versioning; namespace MdsSolution.CopilotService.ExampleQuery.Models; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/feedback.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/feedback.tsp index 51cbf6642919..becf3617fc34 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/feedback.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/feedback.tsp @@ -3,11 +3,7 @@ import "@typespec/http"; import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; -using Azure.Core; -using Azure.Core.Traits; using TypeSpec.Rest; -using TypeSpec.Http; -using TypeSpec.Versioning; namespace MdsSolution.CopilotService.Feedback.Models; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/instruction.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/instruction.tsp index 9eaa9eb67eb4..31eb1cecc7be 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/instruction.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/instruction.tsp @@ -3,11 +3,7 @@ import "@typespec/http"; import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; -using Azure.Core; -using Azure.Core.Traits; using TypeSpec.Rest; -using TypeSpec.Http; -using TypeSpec.Versioning; namespace MdsSolution.CopilotService.Instructions.Models; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/operations.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/operations.tsp index 5e2b04bfcd3b..87b2760d1f02 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/operations.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/operations.tsp @@ -4,10 +4,7 @@ import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; using Azure.Core; -using Azure.Core.Traits; using TypeSpec.Rest; -using TypeSpec.Http; -using TypeSpec.Versioning; namespace MdsSolution.CopilotService.Operations.Models; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/querymodels.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/querymodels.tsp index e25bdb11f9ac..849864e6c3b2 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/querymodels.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/querymodels.tsp @@ -3,11 +3,7 @@ import "@typespec/http"; import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; -using Azure.Core; -using Azure.Core.Traits; using TypeSpec.Rest; -using TypeSpec.Http; -using TypeSpec.Versioning; namespace MdsSolution.CopilotService.QueryService.QueryModels; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/validateQuery.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/validateQuery.tsp index 1d15253d3a09..f29e5fa67739 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/validateQuery.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/validateQuery.tsp @@ -3,11 +3,7 @@ import "@typespec/http"; import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; -using Azure.Core; -using Azure.Core.Traits; using TypeSpec.Rest; -using TypeSpec.Http; -using TypeSpec.Versioning; namespace MdsSolution.CopilotService.ValidateQuery.Models; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/aliasDictionaryApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/aliasDictionaryApi.tsp index 90edee8db82f..c49e730cf6b4 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/aliasDictionaryApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/aliasDictionaryApi.tsp @@ -6,7 +6,6 @@ import "./../models/aliasDictionary.tsp"; using Azure.Core; using Azure.Core.Traits; -using TypeSpec.Rest; using TypeSpec.Http; using TypeSpec.Versioning; using MdsSolution.CopilotService.AliasDictionary.Models; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/exampleQueryApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/exampleQueryApi.tsp index 0840cba9b5f1..08163e61c134 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/exampleQueryApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/exampleQueryApi.tsp @@ -4,9 +4,7 @@ import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; import "./../models/exampleQuery.tsp"; -using TypeSpec.Rest; using TypeSpec.Http; -using Azure.Core; using Azure.Core.Traits; using TypeSpec.Versioning; using MdsSolution.CopilotService.ExampleQuery.Models; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/feedbackApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/feedbackApi.tsp index fb9bbeb17385..654a782c18f1 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/feedbackApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/feedbackApi.tsp @@ -4,9 +4,7 @@ import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; import "./../models/feedback.tsp"; -using TypeSpec.Rest; using TypeSpec.Http; -using Azure.Core; using Azure.Core.Traits; using TypeSpec.Versioning; using MdsSolution.CopilotService.Feedback.Models; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp index 85d444304c8e..599a9952dece 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp @@ -3,11 +3,9 @@ // import "@typespec/openapi3"; // import "@typespec/versioning"; // import "@azure-tools/typespec-azure-core"; -// import "./../models/copilotmodels.tsp"; // using TypeSpec.Rest; // using TypeSpec.Http; -// using CopilotModels; // using Azure.Core; // using Azure.Core.Traits; // using TypeSpec.Versioning; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp index b050936b7f95..7148a5c03aff 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp @@ -4,7 +4,6 @@ import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; import "./../models/instruction.tsp"; -using TypeSpec.Rest; using TypeSpec.Http; using Azure.Core; using Azure.Core.Traits; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/operationsApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/operationsApi.tsp index 595403a0a981..26bcaa86c207 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/operationsApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/operationsApi.tsp @@ -4,9 +4,6 @@ import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; import "./../models/operations.tsp"; -using TypeSpec.Rest; -using TypeSpec.Http; -using Azure.Core; using Azure.Core.Traits; using TypeSpec.Versioning; using MdsSolution.CopilotService.Operations.Models; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/queryApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/queryApi.tsp index b8d7a04543f9..2cad97e659f6 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/queryApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/queryApi.tsp @@ -4,9 +4,7 @@ import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; import "./../models/querymodels.tsp"; -using TypeSpec.Rest; using TypeSpec.Http; -using Azure.Core; using Azure.Core.Traits; using TypeSpec.Versioning; using MdsSolution.CopilotService.QueryService.QueryModels; diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/validateQueryApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/validateQueryApi.tsp index 2435fcde195e..fa8f0c71ac92 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/validateQueryApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/validateQueryApi.tsp @@ -4,9 +4,7 @@ import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; import "./../models/validateQuery.tsp"; -using TypeSpec.Rest; using TypeSpec.Http; -using Azure.Core; using Azure.Core.Traits; using TypeSpec.Versioning; using MdsSolution.CopilotService.ValidateQuery.Models; From 5a90299bfef01443501bc78784392d84fc1e0fc4 Mon Sep 17 00:00:00 2001 From: yogms Date: Fri, 7 Mar 2025 11:14:40 +0530 Subject: [PATCH 07/17] Introduced the health API --- ...ervice_GetHealthStatus_MaximumSet_Gen.json | 23 ++ .../models/common.tsp | 40 ++++ .../models/health.tsp | 43 ++++ .../models/operations.tsp | 38 +-- .../resources/healthApi.tsp | 69 +++--- .../resources/operationsApi.tsp | 13 +- ...ervice_GetHealthStatus_MaximumSet_Gen.json | 23 ++ .../stable/2025-03-01/openapi.json | 222 ++++++++++++------ 8 files changed, 335 insertions(+), 136 deletions(-) create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/HealthService_GetHealthStatus_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/common.tsp create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/HealthService_GetHealthStatus_MaximumSet_Gen.json diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/HealthService_GetHealthStatus_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/HealthService_GetHealthStatus_MaximumSet_Gen.json new file mode 100644 index 000000000000..508358331428 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/HealthService_GetHealthStatus_MaximumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "HealthService_GetHealthStatus_MaximumSet", + "operationId": "HealthService_GetHealthStatus", + "parameters": {}, + "responses": { + "200": { + "body": { + "message": "wezblzyxv", + "operationStatus": "Accepted", + "copilotSetupInfo": { + "createAzureDataExplorerFunctionJobStatus": "Accepted", + "registerInBuiltInstructionJobStatus": "Accepted", + "regusterInbuiltExampleQueryJobStatus": "Accepted", + "registerInBuiltAliasJobStatus": "Accepted", + "registerAssistantViewJobStatus": "Accepted" + }, + "errorMessage": [ + "cytqovkrquyyxpdiwjmvyhrrlqzv" + ] + } + } + } +} \ No newline at end of file diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/common.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/common.tsp new file mode 100644 index 000000000000..67938e65cea8 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/common.tsp @@ -0,0 +1,40 @@ + +import "@azure-tools/typespec-azure-core"; + +using Azure.Core; + +namespace MdsSolution.CopilotService.Common.Models; + +@doc("Operation Status") +@lroStatus +union OperationStatusValue { + @doc("The operation is Accepted.") + Accepted: "Accepted", + + @doc("The operation is InProgress.") + InProgress: "InProgress", + + @doc("The operation is in a transient failure state.") + TransientFailure: "TransientFailure", + + @doc("The operation is Succeeded.") + Succeeded: "Succeeded", + + @doc("The operation is Failed.") + Failed: "Failed", + + @doc("The operation is Canceling.") + Deleting: "Deleting", + + @doc("The operation is Canceled.") + Canceled: "Canceled", + + @doc("The operation is in a permanent failure state.") + Unknown: "Unknown", + + @doc("The operation is Skipped.") + Skipped: "Skipped", + + string, +} + diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp new file mode 100644 index 000000000000..4198e0cb7849 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp @@ -0,0 +1,43 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/common.tsp"; + +using MdsSolution.CopilotService.Common.Models; + +namespace MdsSolution.CopilotService.Health.Models; + +@doc("Copilot Health Response") +model CopilotHealth { + @doc("The message.") + message: string; + + @doc("The operation status.") + operationStatus : OperationStatusValue; + + @doc("copilot setup info") + copilotSetupInfo : CopilotSetupInfo; + + @doc("The error message.") + errorMessage: string[]; +} + +@doc("Copilot Setup Info") +model CopilotSetupInfo { + @doc("create ADX function job status") + createAzureDataExplorerFunctionJobStatus: OperationStatusValue; + + @doc("register in built instruction job status") + registerInBuiltInstructionJobStatus: OperationStatusValue; + + @doc("register in built example query job status") + regusterInbuiltExampleQueryJobStatus: OperationStatusValue; + + @doc("register in built example query job status") + registerInBuiltAliasJobStatus: OperationStatusValue; + + @doc("register in built example query job status") + registerAssistantViewJobStatus: OperationStatusValue; +} + diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/operations.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/operations.tsp index 87b2760d1f02..470bdc7baaea 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/operations.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/operations.tsp @@ -2,44 +2,12 @@ import "@typespec/rest"; import "@typespec/http"; import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; +import "./../models/common.tsp"; -using Azure.Core; using TypeSpec.Rest; +using MdsSolution.CopilotService.Common.Models; -namespace MdsSolution.CopilotService.Operations.Models; - -@doc("Operation Status") -@lroStatus -union OperationStatusValue { - @doc("The operation is Accepted.") - Accepted: "Accepted", - - @doc("The operation is InProgress.") - InProgress: "InProgress", - - @doc("The operation is in a transient failure state.") - TransientFailure: "TransientFailure", - - @doc("The operation is Succeeded.") - Succeeded: "Succeeded", - - @doc("The operation is Failed.") - Failed: "Failed", - - @doc("The operation is Canceling.") - Deleting: "Deleting", - - @doc("The operation is Canceled.") - Canceled: "Canceled", - - @doc("The operation is in a permanent failure state.") - Unknown: "Unknown", - - @doc("The operation is Skipped.") - Skipped: "Skipped", - - string, -} +namespace MdsSolution.CopilotService.Operation.Models; @doc("Operation Response Model") @resource("operation") diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp index 599a9952dece..1a107755e31f 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp @@ -1,31 +1,38 @@ -// import "@typespec/rest"; -// import "@typespec/http"; -// import "@typespec/openapi3"; -// import "@typespec/versioning"; -// import "@azure-tools/typespec-azure-core"; - -// using TypeSpec.Rest; -// using TypeSpec.Http; -// using Azure.Core; -// using Azure.Core.Traits; -// using TypeSpec.Versioning; - -// #suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "" -// #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "" -// @versioned(MdsSolution.CopilotService.Versions) -// namespace MdsSolution.CopilotService.Health { -// alias DefaultServiceTraits = NoRepeatableRequests & -// NoConditionalRequests & -// NoClientRequestId; -// alias AzureCoreOperations = Azure.Core.ResourceOperations; -// @route("/dmm/copilot") -// namespace Health { -// @get -// @route("/health") -// @doc("Get the health status of the service.") -// op getHealthStatus(): { -// @statusCode statusCode: 200; -// @body data: QueryResponseResult; -// }; -// } -// } +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/openapi3"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/health.tsp"; + +using TypeSpec.Http; +using Azure.Core.Traits; +using TypeSpec.Versioning; +using MdsSolution.CopilotService.Health.Models; + +@versioned(MdsSolution.CopilotService.Versions) +namespace MdsSolution.CopilotService.HealthService; + +alias DefaultServiceTraits = NoRepeatableRequests & + NoConditionalRequests & + NoClientRequestId; + +alias apiOperations = Azure.Core.ResourceOperations; + +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "There is no standard operation that fits this scenario" +#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "This is not a versioned operation" + +@doc("Get the health status of the service.") +@route("/health") +@get +op getHealthStatus() : GenericOkResponse; + +@doc("Represents a generic response.") +model GenericOkResponse { + @statusCode + statusCode: 200; + + @doc("The response data.") + @body + data: T; +} \ No newline at end of file diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/operationsApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/operationsApi.tsp index 26bcaa86c207..6144296c2b60 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/operationsApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/operationsApi.tsp @@ -5,8 +5,9 @@ import "@azure-tools/typespec-azure-core"; import "./../models/operations.tsp"; using Azure.Core.Traits; +using TypeSpec.Http; using TypeSpec.Versioning; -using MdsSolution.CopilotService.Operations.Models; +using MdsSolution.CopilotService.Operation.Models; @versioned(MdsSolution.CopilotService.Versions) namespace MdsSolution.CopilotService.OperationStatus; @@ -17,6 +18,16 @@ alias ServiceTraits = NoRepeatableRequests & alias apiOperations = Azure.Core.ResourceOperations; +@doc("Represents a generic response.") +model GenericOkResponse { + @statusCode + statusCode: 200; + + @doc("The response data.") + @body + data: T; +} + @doc("Get operation progress") interface OperationProgress { @doc("Get operation progress") diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/HealthService_GetHealthStatus_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/HealthService_GetHealthStatus_MaximumSet_Gen.json new file mode 100644 index 000000000000..508358331428 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/HealthService_GetHealthStatus_MaximumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "HealthService_GetHealthStatus_MaximumSet", + "operationId": "HealthService_GetHealthStatus", + "parameters": {}, + "responses": { + "200": { + "body": { + "message": "wezblzyxv", + "operationStatus": "Accepted", + "copilotSetupInfo": { + "createAzureDataExplorerFunctionJobStatus": "Accepted", + "registerInBuiltInstructionJobStatus": "Accepted", + "regusterInbuiltExampleQueryJobStatus": "Accepted", + "registerInBuiltAliasJobStatus": "Accepted", + "registerAssistantViewJobStatus": "Accepted" + }, + "errorMessage": [ + "cytqovkrquyyxpdiwjmvyhrrlqzv" + ] + } + } + } +} \ No newline at end of file diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json index 4168b4875795..4fcb36be9ca8 100644 --- a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json @@ -702,6 +702,26 @@ } } }, + "/copilot/health": { + "get": { + "operationId": "HealthService_GetHealthStatus", + "description": "Get the health status of the service.", + "parameters": [], + "responses": { + "200": { + "description": "Represents a generic response.", + "schema": { + "$ref": "#/definitions/Health.Models.CopilotHealth" + } + } + }, + "x-ms-examples": { + "HealthService_GetHealthStatus_MaximumSet": { + "$ref": "./examples/HealthService_GetHealthStatus_MaximumSet_Gen.json" + } + } + } + }, "/copilot/instruction": { "get": { "operationId": "Instructions_List", @@ -1099,7 +1119,7 @@ "200": { "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Operations.Models.OperationResultQuery" + "$ref": "#/definitions/Operation.Models.OperationResultQuery" } }, "default": { @@ -1530,6 +1550,72 @@ ] } }, + "Common.Models.OperationStatusValue": { + "type": "string", + "description": "Operation Status", + "enum": [ + "Accepted", + "InProgress", + "TransientFailure", + "Succeeded", + "Failed", + "Deleting", + "Canceled", + "Unknown", + "Skipped" + ], + "x-ms-enum": { + "name": "OperationStatusValue", + "modelAsString": true, + "values": [ + { + "name": "Accepted", + "value": "Accepted", + "description": "The operation is Accepted." + }, + { + "name": "InProgress", + "value": "InProgress", + "description": "The operation is InProgress." + }, + { + "name": "TransientFailure", + "value": "TransientFailure", + "description": "The operation is in a transient failure state." + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The operation is Succeeded." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The operation is Failed." + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "The operation is Canceling." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "The operation is Canceled." + }, + { + "name": "Unknown", + "value": "Unknown", + "description": "The operation is in a permanent failure state." + }, + { + "name": "Skipped", + "value": "Skipped", + "description": "The operation is Skipped." + } + ] + } + }, "ExampleQuery.Models.ExampleQueryRequest": { "type": "object", "description": "The example query resource.", @@ -1715,6 +1801,70 @@ ] } }, + "Health.Models.CopilotHealth": { + "type": "object", + "description": "Copilot Health Response", + "properties": { + "message": { + "type": "string", + "description": "The message." + }, + "operationStatus": { + "$ref": "#/definitions/Common.Models.OperationStatusValue", + "description": "The operation status." + }, + "copilotSetupInfo": { + "$ref": "#/definitions/Health.Models.CopilotSetupInfo", + "description": "copilot setup info" + }, + "errorMessage": { + "type": "array", + "description": "The error message.", + "items": { + "type": "string" + } + } + }, + "required": [ + "message", + "operationStatus", + "copilotSetupInfo", + "errorMessage" + ] + }, + "Health.Models.CopilotSetupInfo": { + "type": "object", + "description": "Copilot Setup Info", + "properties": { + "createAzureDataExplorerFunctionJobStatus": { + "$ref": "#/definitions/Common.Models.OperationStatusValue", + "description": "create ADX function job status" + }, + "registerInBuiltInstructionJobStatus": { + "$ref": "#/definitions/Common.Models.OperationStatusValue", + "description": "register in built instruction job status" + }, + "regusterInbuiltExampleQueryJobStatus": { + "$ref": "#/definitions/Common.Models.OperationStatusValue", + "description": "register in built example query job status" + }, + "registerInBuiltAliasJobStatus": { + "$ref": "#/definitions/Common.Models.OperationStatusValue", + "description": "register in built example query job status" + }, + "registerAssistantViewJobStatus": { + "$ref": "#/definitions/Common.Models.OperationStatusValue", + "description": "register in built example query job status" + } + }, + "required": [ + "createAzureDataExplorerFunctionJobStatus", + "registerInBuiltInstructionJobStatus", + "regusterInbuiltExampleQueryJobStatus", + "registerInBuiltAliasJobStatus", + "registerAssistantViewJobStatus" + ] + }, "Instructions.Models.Instruction": { "type": "object", "description": "This is the request model for Instruction", @@ -2103,12 +2253,12 @@ "status" ] }, - "Operations.Models.OperationResultQuery": { + "Operation.Models.OperationResultQuery": { "type": "object", "description": "Operation Response Model", "properties": { "status": { - "$ref": "#/definitions/Operations.Models.OperationStatusValue", + "$ref": "#/definitions/Common.Models.OperationStatusValue", "description": "The operation status.", "readOnly": true }, @@ -2132,72 +2282,6 @@ "errorMessage" ] }, - "Operations.Models.OperationStatusValue": { - "type": "string", - "description": "Operation Status", - "enum": [ - "Accepted", - "InProgress", - "TransientFailure", - "Succeeded", - "Failed", - "Deleting", - "Canceled", - "Unknown", - "Skipped" - ], - "x-ms-enum": { - "name": "OperationStatusValue", - "modelAsString": true, - "values": [ - { - "name": "Accepted", - "value": "Accepted", - "description": "The operation is Accepted." - }, - { - "name": "InProgress", - "value": "InProgress", - "description": "The operation is InProgress." - }, - { - "name": "TransientFailure", - "value": "TransientFailure", - "description": "The operation is in a transient failure state." - }, - { - "name": "Succeeded", - "value": "Succeeded", - "description": "The operation is Succeeded." - }, - { - "name": "Failed", - "value": "Failed", - "description": "The operation is Failed." - }, - { - "name": "Deleting", - "value": "Deleting", - "description": "The operation is Canceling." - }, - { - "name": "Canceled", - "value": "Canceled", - "description": "The operation is Canceled." - }, - { - "name": "Unknown", - "value": "Unknown", - "description": "The operation is in a permanent failure state." - }, - { - "name": "Skipped", - "value": "Skipped", - "description": "The operation is Skipped." - } - ] - } - }, "PagedAlias": { "type": "object", "description": "Paged collection of Alias items", From 7c46e8d9d546b0d335f00d0d7d75f8f079cc43fb Mon Sep 17 00:00:00 2001 From: yogms Date: Fri, 7 Mar 2025 11:23:00 +0530 Subject: [PATCH 08/17] Introduced the health API --- .../HealthService_GetHealthStatus_MaximumSet_Gen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/HealthService_GetHealthStatus_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/HealthService_GetHealthStatus_MaximumSet_Gen.json index 508358331428..057cff6c4abf 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/HealthService_GetHealthStatus_MaximumSet_Gen.json +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/HealthService_GetHealthStatus_MaximumSet_Gen.json @@ -20,4 +20,4 @@ } } } -} \ No newline at end of file +} From d39fe6fc966a420101fb418607265087cbb701f6 Mon Sep 17 00:00:00 2001 From: yogms Date: Fri, 7 Mar 2025 11:41:05 +0530 Subject: [PATCH 09/17] Updated the example --- .../examples/HealthService_GetHealthStatus_MaximumSet_Gen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/HealthService_GetHealthStatus_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/HealthService_GetHealthStatus_MaximumSet_Gen.json index 508358331428..057cff6c4abf 100644 --- a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/HealthService_GetHealthStatus_MaximumSet_Gen.json +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/HealthService_GetHealthStatus_MaximumSet_Gen.json @@ -20,4 +20,4 @@ } } } -} \ No newline at end of file +} From f668450d0970e61e184d1deddb948824ac20c507 Mon Sep 17 00:00:00 2001 From: yogms Date: Fri, 7 Mar 2025 11:47:05 +0530 Subject: [PATCH 10/17] Fixed the typos --- .../HealthService_GetHealthStatus_MaximumSet_Gen.json | 2 +- .../ManufacturingDataSolution.Copilot/models/health.tsp | 2 +- .../HealthService_GetHealthStatus_MaximumSet_Gen.json | 2 +- .../stable/2025-03-01/openapi.json | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/HealthService_GetHealthStatus_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/HealthService_GetHealthStatus_MaximumSet_Gen.json index 057cff6c4abf..068db754ddf6 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/HealthService_GetHealthStatus_MaximumSet_Gen.json +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/HealthService_GetHealthStatus_MaximumSet_Gen.json @@ -10,7 +10,7 @@ "copilotSetupInfo": { "createAzureDataExplorerFunctionJobStatus": "Accepted", "registerInBuiltInstructionJobStatus": "Accepted", - "regusterInbuiltExampleQueryJobStatus": "Accepted", + "registerInbuiltExampleQueryJobStatus": "Accepted", "registerInBuiltAliasJobStatus": "Accepted", "registerAssistantViewJobStatus": "Accepted" }, diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp index 4198e0cb7849..1b3f068d33b0 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp @@ -32,7 +32,7 @@ model CopilotSetupInfo { registerInBuiltInstructionJobStatus: OperationStatusValue; @doc("register in built example query job status") - regusterInbuiltExampleQueryJobStatus: OperationStatusValue; + registerInbuiltExampleQueryJobStatus: OperationStatusValue; @doc("register in built example query job status") registerInBuiltAliasJobStatus: OperationStatusValue; diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/HealthService_GetHealthStatus_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/HealthService_GetHealthStatus_MaximumSet_Gen.json index 057cff6c4abf..068db754ddf6 100644 --- a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/HealthService_GetHealthStatus_MaximumSet_Gen.json +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/HealthService_GetHealthStatus_MaximumSet_Gen.json @@ -10,7 +10,7 @@ "copilotSetupInfo": { "createAzureDataExplorerFunctionJobStatus": "Accepted", "registerInBuiltInstructionJobStatus": "Accepted", - "regusterInbuiltExampleQueryJobStatus": "Accepted", + "registerInbuiltExampleQueryJobStatus": "Accepted", "registerInBuiltAliasJobStatus": "Accepted", "registerAssistantViewJobStatus": "Accepted" }, diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json index 4fcb36be9ca8..3c44d9cae34e 100644 --- a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json @@ -1844,7 +1844,7 @@ "$ref": "#/definitions/Common.Models.OperationStatusValue", "description": "register in built instruction job status" }, - "regusterInbuiltExampleQueryJobStatus": { + "registerInbuiltExampleQueryJobStatus": { "$ref": "#/definitions/Common.Models.OperationStatusValue", "description": "register in built example query job status" }, @@ -1860,7 +1860,7 @@ "required": [ "createAzureDataExplorerFunctionJobStatus", "registerInBuiltInstructionJobStatus", - "regusterInbuiltExampleQueryJobStatus", + "registerInbuiltExampleQueryJobStatus", "registerInBuiltAliasJobStatus", "registerAssistantViewJobStatus" ] From 48840b29465c8e8fd949b9ee9d26754904c279ba Mon Sep 17 00:00:00 2001 From: yogms Date: Fri, 7 Mar 2025 11:52:28 +0530 Subject: [PATCH 11/17] Added the blank line after the method --- .../ManufacturingDataSolution.Copilot/resources/healthApi.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp index 1a107755e31f..faf06c219488 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp @@ -35,4 +35,4 @@ model GenericOkResponse { @doc("The response data.") @body data: T; -} \ No newline at end of file +} From 0a9ffa01fac3262393f2c0fe6cb655f25a84f14c Mon Sep 17 00:00:00 2001 From: yogms Date: Fri, 7 Mar 2025 12:01:47 +0530 Subject: [PATCH 12/17] formatted the file --- .../models/common.tsp | 2 - .../models/health.tsp | 37 +++++++++---------- .../resources/healthApi.tsp | 7 ++-- 3 files changed, 21 insertions(+), 25 deletions(-) diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/common.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/common.tsp index 67938e65cea8..6ae7bd746f55 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/common.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/common.tsp @@ -1,4 +1,3 @@ - import "@azure-tools/typespec-azure-core"; using Azure.Core; @@ -37,4 +36,3 @@ union OperationStatusValue { string, } - diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp index 1b3f068d33b0..30e6aa677ede 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp @@ -10,34 +10,33 @@ namespace MdsSolution.CopilotService.Health.Models; @doc("Copilot Health Response") model CopilotHealth { - @doc("The message.") - message: string; + @doc("The message.") + message: string; - @doc("The operation status.") - operationStatus : OperationStatusValue; + @doc("The operation status.") + operationStatus: OperationStatusValue; - @doc("copilot setup info") - copilotSetupInfo : CopilotSetupInfo; + @doc("copilot setup info") + copilotSetupInfo: CopilotSetupInfo; - @doc("The error message.") - errorMessage: string[]; + @doc("The error message.") + errorMessage: string[]; } @doc("Copilot Setup Info") model CopilotSetupInfo { - @doc("create ADX function job status") - createAzureDataExplorerFunctionJobStatus: OperationStatusValue; + @doc("create ADX function job status") + createAzureDataExplorerFunctionJobStatus: OperationStatusValue; - @doc("register in built instruction job status") - registerInBuiltInstructionJobStatus: OperationStatusValue; + @doc("register in built instruction job status") + registerInBuiltInstructionJobStatus: OperationStatusValue; - @doc("register in built example query job status") - registerInbuiltExampleQueryJobStatus: OperationStatusValue; + @doc("register in built example query job status") + registerInbuiltExampleQueryJobStatus: OperationStatusValue; - @doc("register in built example query job status") - registerInBuiltAliasJobStatus: OperationStatusValue; + @doc("register in built example query job status") + registerInBuiltAliasJobStatus: OperationStatusValue; - @doc("register in built example query job status") - registerAssistantViewJobStatus: OperationStatusValue; + @doc("register in built example query job status") + registerAssistantViewJobStatus: OperationStatusValue; } - diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp index faf06c219488..22c83d6b924f 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp @@ -14,18 +14,17 @@ using MdsSolution.CopilotService.Health.Models; namespace MdsSolution.CopilotService.HealthService; alias DefaultServiceTraits = NoRepeatableRequests & - NoConditionalRequests & - NoClientRequestId; + NoConditionalRequests & + NoClientRequestId; alias apiOperations = Azure.Core.ResourceOperations; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "There is no standard operation that fits this scenario" #suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "This is not a versioned operation" - @doc("Get the health status of the service.") @route("/health") @get -op getHealthStatus() : GenericOkResponse; +op getHealthStatus(): GenericOkResponse; @doc("Represents a generic response.") model GenericOkResponse { From 5c54dd248ab104f61fda0348ad4368cfa7deaf8a Mon Sep 17 00:00:00 2001 From: yogms Date: Fri, 7 Mar 2025 17:30:29 +0530 Subject: [PATCH 13/17] changed from PATCH to POST --- ...ctions_CreateOrReplace_MaximumSet_Gen.json | 102 ++++++++++++++++++ .../resources/instructionsApi.tsp | 2 +- ...ctions_CreateOrReplace_MaximumSet_Gen.json | 102 ++++++++++++++++++ .../stable/2025-03-01/openapi.json | 96 +---------------- 4 files changed, 210 insertions(+), 92 deletions(-) create mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_CreateOrReplace_MaximumSet_Gen.json create mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_CreateOrReplace_MaximumSet_Gen.json diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_CreateOrReplace_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_CreateOrReplace_MaximumSet_Gen.json new file mode 100644 index 000000000000..93c1b902d9d6 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_CreateOrReplace_MaximumSet_Gen.json @@ -0,0 +1,102 @@ +{ + "title": "Instructions_CreateOrReplace_MaximumSet", + "operationId": "Instructions_CreateOrReplace", + "parameters": { + "api-version": "2025-03-01", + "id": "gvkwsyskqknrjpqs", + "resource": { + "instructionId": "lc", + "instructionVersion": "oqjnitfdopnmf", + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "ncjziatzbkn" + ], + "keywords": [ + "xwbkjrwd" + ], + "sampleQuestions": [ + "qmrgzdtouhonzzqjhlunvcmamwyqin" + ] + }, + "relationships": { + "dependencies": [ + "wkcw" + ], + "exclusions": [ + "wlur" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl" + } + }, + "responses": { + "200": { + "body": { + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "ncjziatzbkn" + ], + "keywords": [ + "xwbkjrwd" + ], + "sampleQuestions": [ + "qmrgzdtouhonzzqjhlunvcmamwyqin" + ] + }, + "relationships": { + "dependencies": [ + "wkcw" + ], + "exclusions": [ + "wlur" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl", + "id": "tyrmwcqkhcsqwl" + } + }, + "201": { + "headers": { + "original-uri": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "ncjziatzbkn" + ], + "keywords": [ + "xwbkjrwd" + ], + "sampleQuestions": [ + "qmrgzdtouhonzzqjhlunvcmamwyqin" + ] + }, + "relationships": { + "dependencies": [ + "wkcw" + ], + "exclusions": [ + "wlur" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl", + "id": "tyrmwcqkhcsqwl" + } + } + } +} \ No newline at end of file diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp index 7148a5c03aff..4ffb8d198e63 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp @@ -57,7 +57,7 @@ interface Instructions { @pollingOperation( MdsSolution.CopilotService.OperationStatus.OperationProgress.getOperationResult ) - update is apiOperations.LongRunningResourceCreateOrUpdate; + createOrReplace is apiOperations.LongRunningResourceCreateOrReplace; @doc("Delete instructions.") @pollingOperation( diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_CreateOrReplace_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_CreateOrReplace_MaximumSet_Gen.json new file mode 100644 index 000000000000..93c1b902d9d6 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_CreateOrReplace_MaximumSet_Gen.json @@ -0,0 +1,102 @@ +{ + "title": "Instructions_CreateOrReplace_MaximumSet", + "operationId": "Instructions_CreateOrReplace", + "parameters": { + "api-version": "2025-03-01", + "id": "gvkwsyskqknrjpqs", + "resource": { + "instructionId": "lc", + "instructionVersion": "oqjnitfdopnmf", + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "ncjziatzbkn" + ], + "keywords": [ + "xwbkjrwd" + ], + "sampleQuestions": [ + "qmrgzdtouhonzzqjhlunvcmamwyqin" + ] + }, + "relationships": { + "dependencies": [ + "wkcw" + ], + "exclusions": [ + "wlur" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl" + } + }, + "responses": { + "200": { + "body": { + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "ncjziatzbkn" + ], + "keywords": [ + "xwbkjrwd" + ], + "sampleQuestions": [ + "qmrgzdtouhonzzqjhlunvcmamwyqin" + ] + }, + "relationships": { + "dependencies": [ + "wkcw" + ], + "exclusions": [ + "wlur" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl", + "id": "tyrmwcqkhcsqwl" + } + }, + "201": { + "headers": { + "original-uri": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Active", + "domain": "MOM", + "subDomain": "Production", + "category": "Transactional", + "language": "EN", + "retrieval": { + "subTopics": [ + "ncjziatzbkn" + ], + "keywords": [ + "xwbkjrwd" + ], + "sampleQuestions": [ + "qmrgzdtouhonzzqjhlunvcmamwyqin" + ] + }, + "relationships": { + "dependencies": [ + "wkcw" + ], + "exclusions": [ + "wlur" + ] + }, + "comment": "xnuhpjbdmvieaglvhmbylmqtgl", + "id": "tyrmwcqkhcsqwl" + } + } + } +} \ No newline at end of file diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json index 3c44d9cae34e..322a0365ca13 100644 --- a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json @@ -865,12 +865,9 @@ } } }, - "patch": { - "operationId": "Instructions_Update", + "put": { + "operationId": "Instructions_CreateOrReplace", "description": "update instructions.", - "consumes": [ - "application/merge-patch+json" - ], "parameters": [ { "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" @@ -888,7 +885,7 @@ "description": "The resource instance.", "required": true, "schema": { - "$ref": "#/definitions/Instructions.Models.InstructionCreateOrUpdate" + "$ref": "#/definitions/Instructions.Models.Instruction" } } ], @@ -933,8 +930,8 @@ } }, "x-ms-examples": { - "Instructions_Update_MaximumSet": { - "$ref": "./examples/Instructions_Update_MaximumSet_Gen.json" + "Instructions_CreateOrReplace_MaximumSet": { + "$ref": "./examples/Instructions_CreateOrReplace_MaximumSet_Gen.json" } }, "x-ms-long-running-operation-options": { @@ -1975,42 +1972,6 @@ ] } }, - "Instructions.Models.InstructionCreateOrUpdate": { - "type": "object", - "description": "This is the request model for Instruction", - "properties": { - "instructionId": { - "type": "string", - "description": "intruction Id for the instruction", - "x-ms-mutability": [ - "update" - ] - }, - "instructionVersion": { - "type": "string", - "description": "Version for the instruction", - "x-ms-mutability": [ - "update" - ] - }, - "language": { - "$ref": "#/definitions/Instructions.Models.InstructionLanguageEnum", - "description": "The language of the instruction." - }, - "retrieval": { - "$ref": "#/definitions/Instructions.Models.RetrievalPropertiesCreateOrUpdate", - "description": "The retrieval properties of the instruction." - }, - "relationships": { - "$ref": "#/definitions/Instructions.Models.RelationshipsCreateOrUpdate", - "description": "The relationships of the instruction." - }, - "comment": { - "type": "string", - "description": "The comment for the instruction." - } - } - }, "Instructions.Models.InstructionLanguageEnum": { "type": "string", "description": "Instruction Language Enums", @@ -2161,26 +2122,6 @@ "exclusions" ] }, - "Instructions.Models.RelationshipsCreateOrUpdate": { - "type": "object", - "description": "Relationships", - "properties": { - "dependencies": { - "type": "array", - "description": "List of dependent instructions", - "items": { - "type": "string" - } - }, - "exclusions": { - "type": "array", - "description": "List of InstructionIds to be excluded", - "items": { - "type": "string" - } - } - } - }, "Instructions.Models.RetrievalProperties": { "type": "object", "description": "The retrieval properties of the instruction.", @@ -2213,33 +2154,6 @@ "sampleQuestions" ] }, - "Instructions.Models.RetrievalPropertiesCreateOrUpdate": { - "type": "object", - "description": "The retrieval properties of the instruction.", - "properties": { - "subTopics": { - "type": "array", - "description": "The sub-topics related to the instruction.", - "items": { - "type": "string" - } - }, - "keywords": { - "type": "array", - "description": "The keywords associated with the instruction.", - "items": { - "type": "string" - } - }, - "sampleQuestions": { - "type": "array", - "description": "The sample questions for the instruction.", - "items": { - "type": "string" - } - } - } - }, "Instructions.Models.UpdateStatusRequest": { "type": "object", "description": "This is the patch request to update the status of instruction", From 93f2400f0458b41b2b7e5a75d218fda8bf05f5e5 Mon Sep 17 00:00:00 2001 From: yogms Date: Fri, 7 Mar 2025 17:39:45 +0530 Subject: [PATCH 14/17] Removed the reduntant examples --- .../Instructions_Update_MaximumSet_Gen.json | 99 ------------------- .../Instructions_Update_MaximumSet_Gen.json | 99 ------------------- 2 files changed, 198 deletions(-) delete mode 100644 specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Update_MaximumSet_Gen.json delete mode 100644 specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Update_MaximumSet_Gen.json diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Update_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Update_MaximumSet_Gen.json deleted file mode 100644 index 1355a436f8fa..000000000000 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_Update_MaximumSet_Gen.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "title": "Instructions_Update_MaximumSet", - "operationId": "Instructions_Update", - "parameters": { - "api-version": "2025-03-01", - "id": "neemqxiicxswdfiddrvssx", - "resource": { - "instructionId": "pbnldijsxlwcmaqttewfhufdizehuz", - "instructionVersion": "kqhkbegfowlrhgfqcto", - "language": "EN", - "retrieval": { - "subTopics": [ - "umlms" - ], - "keywords": [ - "fooduxunzkssoaufmwkqcpyyrxfsxg" - ], - "sampleQuestions": [ - "rqeghaszakgshy" - ] - }, - "relationships": { - "dependencies": [ - "vdpwjiejwdcmscnnmiatskfexbio" - ], - "exclusions": [ - "wmwvjnyr" - ] - }, - "comment": "widtfgvm" - } - }, - "responses": { - "200": { - "body": { - "id": "tyrmwcqkhcsqwl", - "status": "Active", - "domain": "MOM", - "subDomain": "Production", - "category": "Transactional", - "language": "EN", - "retrieval": { - "subTopics": [ - "umlms" - ], - "keywords": [ - "fooduxunzkssoaufmwkqcpyyrxfsxg" - ], - "sampleQuestions": [ - "rqeghaszakgshy" - ] - }, - "relationships": { - "dependencies": [ - "vdpwjiejwdcmscnnmiatskfexbio" - ], - "exclusions": [ - "wmwvjnyr" - ] - }, - "comment": "xnuhpjbdmvieaglvhmbylmqtgl" - } - }, - "201": { - "headers": { - "original-uri": "https://contoso.com/operationstatus", - "Operation-Location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "tyrmwcqkhcsqwl", - "status": "Active", - "domain": "MOM", - "subDomain": "Production", - "category": "Transactional", - "language": "EN", - "retrieval": { - "subTopics": [ - "umlms" - ], - "keywords": [ - "fooduxunzkssoaufmwkqcpyyrxfsxg" - ], - "sampleQuestions": [ - "rqeghaszakgshy" - ] - }, - "relationships": { - "dependencies": [ - "vdpwjiejwdcmscnnmiatskfexbio" - ], - "exclusions": [ - "wmwvjnyr" - ] - }, - "comment": "xnuhpjbdmvieaglvhmbylmqtgl" - } - } - } -} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Update_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Update_MaximumSet_Gen.json deleted file mode 100644 index 1355a436f8fa..000000000000 --- a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_Update_MaximumSet_Gen.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "title": "Instructions_Update_MaximumSet", - "operationId": "Instructions_Update", - "parameters": { - "api-version": "2025-03-01", - "id": "neemqxiicxswdfiddrvssx", - "resource": { - "instructionId": "pbnldijsxlwcmaqttewfhufdizehuz", - "instructionVersion": "kqhkbegfowlrhgfqcto", - "language": "EN", - "retrieval": { - "subTopics": [ - "umlms" - ], - "keywords": [ - "fooduxunzkssoaufmwkqcpyyrxfsxg" - ], - "sampleQuestions": [ - "rqeghaszakgshy" - ] - }, - "relationships": { - "dependencies": [ - "vdpwjiejwdcmscnnmiatskfexbio" - ], - "exclusions": [ - "wmwvjnyr" - ] - }, - "comment": "widtfgvm" - } - }, - "responses": { - "200": { - "body": { - "id": "tyrmwcqkhcsqwl", - "status": "Active", - "domain": "MOM", - "subDomain": "Production", - "category": "Transactional", - "language": "EN", - "retrieval": { - "subTopics": [ - "umlms" - ], - "keywords": [ - "fooduxunzkssoaufmwkqcpyyrxfsxg" - ], - "sampleQuestions": [ - "rqeghaszakgshy" - ] - }, - "relationships": { - "dependencies": [ - "vdpwjiejwdcmscnnmiatskfexbio" - ], - "exclusions": [ - "wmwvjnyr" - ] - }, - "comment": "xnuhpjbdmvieaglvhmbylmqtgl" - } - }, - "201": { - "headers": { - "original-uri": "https://contoso.com/operationstatus", - "Operation-Location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "tyrmwcqkhcsqwl", - "status": "Active", - "domain": "MOM", - "subDomain": "Production", - "category": "Transactional", - "language": "EN", - "retrieval": { - "subTopics": [ - "umlms" - ], - "keywords": [ - "fooduxunzkssoaufmwkqcpyyrxfsxg" - ], - "sampleQuestions": [ - "rqeghaszakgshy" - ] - }, - "relationships": { - "dependencies": [ - "vdpwjiejwdcmscnnmiatskfexbio" - ], - "exclusions": [ - "wmwvjnyr" - ] - }, - "comment": "xnuhpjbdmvieaglvhmbylmqtgl" - } - } - } -} From 1f8c3362ddd6464fab04597513d13d8a175f9466 Mon Sep 17 00:00:00 2001 From: yogms Date: Fri, 7 Mar 2025 17:45:51 +0530 Subject: [PATCH 15/17] Ran npm prettier to format the examples --- .../2025-03-01/Instructions_CreateOrReplace_MaximumSet_Gen.json | 2 +- .../examples/Instructions_CreateOrReplace_MaximumSet_Gen.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_CreateOrReplace_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_CreateOrReplace_MaximumSet_Gen.json index 93c1b902d9d6..6d93690a626c 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_CreateOrReplace_MaximumSet_Gen.json +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Instructions_CreateOrReplace_MaximumSet_Gen.json @@ -99,4 +99,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_CreateOrReplace_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_CreateOrReplace_MaximumSet_Gen.json index 93c1b902d9d6..6d93690a626c 100644 --- a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_CreateOrReplace_MaximumSet_Gen.json +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Instructions_CreateOrReplace_MaximumSet_Gen.json @@ -99,4 +99,4 @@ } } } -} \ No newline at end of file +} From dcdd4a0e4946ec5c2e3b8fd482387167c0f642e9 Mon Sep 17 00:00:00 2001 From: yogms Date: Fri, 7 Mar 2025 18:13:27 +0530 Subject: [PATCH 16/17] Updated to LRO PUT --- ...iases_CreateOrReplace_MaximumSet_Gen.json} | 14 ++++----- .../resources/aliasDictionaryApi.tsp | 2 +- ...iases_CreateOrReplace_MaximumSet_Gen.json} | 14 ++++----- .../stable/2025-03-01/openapi.json | 30 ++++--------------- 4 files changed, 20 insertions(+), 40 deletions(-) rename specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/{Aliases_Update_MaximumSet_Gen.json => Aliases_CreateOrReplace_MaximumSet_Gen.json} (76%) rename specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/{Aliases_Update_MaximumSet_Gen.json => Aliases_CreateOrReplace_MaximumSet_Gen.json} (76%) diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Update_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_CreateOrReplace_MaximumSet_Gen.json similarity index 76% rename from specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Update_MaximumSet_Gen.json rename to specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_CreateOrReplace_MaximumSet_Gen.json index c79e9731cce3..12404d3cccc8 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_Update_MaximumSet_Gen.json +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_CreateOrReplace_MaximumSet_Gen.json @@ -1,24 +1,24 @@ { - "title": "Aliases_Update_MaximumSet", - "operationId": "Aliases_Update", + "title": "Aliases_CreateOrReplace_MaximumSet", + "operationId": "Aliases_CreateOrReplace", "parameters": { "api-version": "2025-03-01", - "id": "uwvfkund", + "id": "gbkagebdunmzrjlvqxunphsc", "resource": { - "name": "pyytiqkzyhrrsh", + "name": "xpbwiyrrbwwlqwahiqo", "aliases": [ - "rrxlskyespowhvhx" + "nxypvhvckkxstt" ] } }, "responses": { "200": { "body": { - "id": "p", "name": "xpbwiyrrbwwlqwahiqo", "aliases": [ "nxypvhvckkxstt" ], + "id": "p", "isCustom": true, "enabled": true } @@ -28,11 +28,11 @@ "original-uri": "https://contoso.com/operationstatus" }, "body": { - "id": "p", "name": "xpbwiyrrbwwlqwahiqo", "aliases": [ "nxypvhvckkxstt" ], + "id": "p", "isCustom": true, "enabled": true } diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/aliasDictionaryApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/aliasDictionaryApi.tsp index c49e730cf6b4..33fb38563715 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/aliasDictionaryApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/aliasDictionaryApi.tsp @@ -46,7 +46,7 @@ interface Aliases { @pollingOperation( MdsSolution.CopilotService.OperationStatus.OperationProgress.getOperationResult ) - update is Operations.LongRunningResourceCreateOrUpdate; + createOrReplace is Operations.LongRunningResourceCreateOrReplace; @doc("Delete an alias") delete is Operations.ResourceDelete; diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Update_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_CreateOrReplace_MaximumSet_Gen.json similarity index 76% rename from specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Update_MaximumSet_Gen.json rename to specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_CreateOrReplace_MaximumSet_Gen.json index c79e9731cce3..12404d3cccc8 100644 --- a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_Update_MaximumSet_Gen.json +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_CreateOrReplace_MaximumSet_Gen.json @@ -1,24 +1,24 @@ { - "title": "Aliases_Update_MaximumSet", - "operationId": "Aliases_Update", + "title": "Aliases_CreateOrReplace_MaximumSet", + "operationId": "Aliases_CreateOrReplace", "parameters": { "api-version": "2025-03-01", - "id": "uwvfkund", + "id": "gbkagebdunmzrjlvqxunphsc", "resource": { - "name": "pyytiqkzyhrrsh", + "name": "xpbwiyrrbwwlqwahiqo", "aliases": [ - "rrxlskyespowhvhx" + "nxypvhvckkxstt" ] } }, "responses": { "200": { "body": { - "id": "p", "name": "xpbwiyrrbwwlqwahiqo", "aliases": [ "nxypvhvckkxstt" ], + "id": "p", "isCustom": true, "enabled": true } @@ -28,11 +28,11 @@ "original-uri": "https://contoso.com/operationstatus" }, "body": { - "id": "p", "name": "xpbwiyrrbwwlqwahiqo", "aliases": [ "nxypvhvckkxstt" ], + "id": "p", "isCustom": true, "enabled": true } diff --git a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json index 322a0365ca13..b91d72c8c534 100644 --- a/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json @@ -194,12 +194,9 @@ } } }, - "patch": { - "operationId": "Aliases_Update", + "put": { + "operationId": "Aliases_CreateOrReplace", "description": "Update an alias", - "consumes": [ - "application/merge-patch+json" - ], "parameters": [ { "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" @@ -217,7 +214,7 @@ "description": "The resource instance.", "required": true, "schema": { - "$ref": "#/definitions/AliasDictionary.Models.AliasCreateOrUpdate" + "$ref": "#/definitions/AliasDictionary.Models.Alias" } } ], @@ -262,8 +259,8 @@ } }, "x-ms-examples": { - "Aliases_Update_MaximumSet": { - "$ref": "./examples/Aliases_Update_MaximumSet_Gen.json" + "Aliases_CreateOrReplace_MaximumSet": { + "$ref": "./examples/Aliases_CreateOrReplace_MaximumSet_Gen.json" } }, "x-ms-long-running-operation-options": { @@ -1427,23 +1424,6 @@ "enabled" ] }, - "AliasDictionary.Models.AliasCreateOrUpdate": { - "type": "object", - "description": "This is the request model for Alias", - "properties": { - "name": { - "type": "string", - "description": "Key for the alias" - }, - "aliases": { - "type": "array", - "description": "List of aliases", - "items": { - "type": "string" - } - } - } - }, "Azure.Core.Foundations.Error": { "type": "object", "description": "The error object.", From f52772b35208dd08d7cdfec6b5c0c02b5559a66e Mon Sep 17 00:00:00 2001 From: yogms Date: Fri, 7 Mar 2025 18:46:48 +0530 Subject: [PATCH 17/17] Removed unused imports --- .../ManufacturingDataSolution.Copilot/resources/healthApi.tsp | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp index 22c83d6b924f..6c05d136cfa8 100644 --- a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp @@ -1,6 +1,5 @@ import "@typespec/rest"; import "@typespec/http"; -import "@typespec/openapi3"; import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; import "./../models/health.tsp";