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_CreateOrReplace_MaximumSet_Gen.json b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_CreateOrReplace_MaximumSet_Gen.json new file mode 100644 index 000000000000..12404d3cccc8 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/examples/2025-03-01/Aliases_CreateOrReplace_MaximumSet_Gen.json @@ -0,0 +1,41 @@ +{ + "title": "Aliases_CreateOrReplace_MaximumSet", + "operationId": "Aliases_CreateOrReplace", + "parameters": { + "api-version": "2025-03-01", + "id": "gbkagebdunmzrjlvqxunphsc", + "resource": { + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ] + } + }, + "responses": { + "200": { + "body": { + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ], + "id": "p", + "isCustom": true, + "enabled": true + } + }, + "201": { + "headers": { + "original-uri": "https://contoso.com/operationstatus" + }, + "body": { + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ], + "id": "p", + "isCustom": true, + "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/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/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..068db754ddf6 --- /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", + "registerInbuiltExampleQueryJobStatus": "Accepted", + "registerInBuiltAliasJobStatus": "Accepted", + "registerAssistantViewJobStatus": "Accepted" + }, + "errorMessage": [ + "cytqovkrquyyxpdiwjmvyhrrlqzv" + ] + } + } + } +} 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..6d93690a626c --- /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" + } + } + } +} 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/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..51c3e1d073c8 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/main.tsp @@ -0,0 +1,36 @@ +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.Versioning; +using Azure.Core; + +@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..5e02bfb70ab4 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/aliasDictionary.tsp @@ -0,0 +1,37 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; + +using TypeSpec.Rest; + +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/common.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/common.tsp new file mode 100644 index 000000000000..6ae7bd746f55 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/common.tsp @@ -0,0 +1,38 @@ +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/exampleQuery.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/exampleQuery.tsp new file mode 100644 index 000000000000..fbc1584ddcef --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/exampleQuery.tsp @@ -0,0 +1,41 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; + +using TypeSpec.Rest; + +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..becf3617fc34 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/feedback.tsp @@ -0,0 +1,51 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; + +using TypeSpec.Rest; + +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/health.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp new file mode 100644 index 000000000000..30e6aa677ede --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/health.tsp @@ -0,0 +1,42 @@ +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") + registerInbuiltExampleQueryJobStatus: 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/instruction.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/instruction.tsp new file mode 100644 index 000000000000..31eb1cecc7be --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/instruction.tsp @@ -0,0 +1,256 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; + +using TypeSpec.Rest; + +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..470bdc7baaea --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/operations.tsp @@ -0,0 +1,27 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/common.tsp"; + +using TypeSpec.Rest; +using MdsSolution.CopilotService.Common.Models; + +namespace MdsSolution.CopilotService.Operation.Models; + +@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..849864e6c3b2 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/querymodels.tsp @@ -0,0 +1,26 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; + +using TypeSpec.Rest; + +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..f29e5fa67739 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/models/validateQuery.tsp @@ -0,0 +1,252 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; + +using TypeSpec.Rest; + +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..33fb38563715 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/aliasDictionaryApi.tsp @@ -0,0 +1,59 @@ +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.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 + ) + createOrReplace is Operations.LongRunningResourceCreateOrReplace; + + @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..08163e61c134 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/exampleQueryApi.tsp @@ -0,0 +1,50 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/exampleQuery.tsp"; + +using TypeSpec.Http; +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..654a782c18f1 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/feedbackApi.tsp @@ -0,0 +1,35 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/feedback.tsp"; + +using TypeSpec.Http; +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..6c05d136cfa8 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/healthApi.tsp @@ -0,0 +1,36 @@ +import "@typespec/rest"; +import "@typespec/http"; +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; +} diff --git a/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp new file mode 100644 index 000000000000..4ffb8d198e63 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/instructionsApi.tsp @@ -0,0 +1,77 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/instruction.tsp"; + +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 + ) + createOrReplace is apiOperations.LongRunningResourceCreateOrReplace; + + @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..6144296c2b60 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/operationsApi.tsp @@ -0,0 +1,35 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/operations.tsp"; + +using Azure.Core.Traits; +using TypeSpec.Http; +using TypeSpec.Versioning; +using MdsSolution.CopilotService.Operation.Models; + +@versioned(MdsSolution.CopilotService.Versions) +namespace MdsSolution.CopilotService.OperationStatus; + +alias ServiceTraits = NoRepeatableRequests & + NoConditionalRequests & + NoClientRequestId; + +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") + 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..2cad97e659f6 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/queryApi.tsp @@ -0,0 +1,52 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/querymodels.tsp"; + +using TypeSpec.Http; +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..fa8f0c71ac92 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/resources/validateQueryApi.tsp @@ -0,0 +1,52 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "./../models/validateQuery.tsp"; + +using TypeSpec.Http; +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..aa25b2021aa6 --- /dev/null +++ b/specification/manufacturingdatasolution/ManufacturingDataSolution.Copilot/tspconfig.yaml @@ -0,0 +1,25 @@ +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: "azure-microsoft-industry-manufacturing-mds-copilot" + package-name: "{package-dir}" + package-mode: dataplane + 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_CreateOrReplace_MaximumSet_Gen.json b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_CreateOrReplace_MaximumSet_Gen.json new file mode 100644 index 000000000000..12404d3cccc8 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/examples/Aliases_CreateOrReplace_MaximumSet_Gen.json @@ -0,0 +1,41 @@ +{ + "title": "Aliases_CreateOrReplace_MaximumSet", + "operationId": "Aliases_CreateOrReplace", + "parameters": { + "api-version": "2025-03-01", + "id": "gbkagebdunmzrjlvqxunphsc", + "resource": { + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ] + } + }, + "responses": { + "200": { + "body": { + "name": "xpbwiyrrbwwlqwahiqo", + "aliases": [ + "nxypvhvckkxstt" + ], + "id": "p", + "isCustom": true, + "enabled": true + } + }, + "201": { + "headers": { + "original-uri": "https://contoso.com/operationstatus" + }, + "body": { + "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/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/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/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..068db754ddf6 --- /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", + "registerInbuiltExampleQueryJobStatus": "Accepted", + "registerInBuiltAliasJobStatus": "Accepted", + "registerAssistantViewJobStatus": "Accepted" + }, + "errorMessage": [ + "cytqovkrquyyxpdiwjmvyhrrlqzv" + ] + } + } + } +} 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..6d93690a626c --- /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" + } + } + } +} 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/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..b91d72c8c534 --- /dev/null +++ b/specification/manufacturingdatasolution/data-plane/Microsoft.Industries.ManufacturingDataSolution.Copilot/stable/2025-03-01/openapi.json @@ -0,0 +1,2419 @@ +{ + "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" + } + } + }, + "put": { + "operationId": "Aliases_CreateOrReplace", + "description": "Update an alias", + "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.Alias" + } + } + ], + "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_CreateOrReplace_MaximumSet": { + "$ref": "./examples/Aliases_CreateOrReplace_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/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", + "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" + } + } + }, + "put": { + "operationId": "Instructions_CreateOrReplace", + "description": "update instructions.", + "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.Instruction" + } + } + ], + "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_CreateOrReplace_MaximumSet": { + "$ref": "./examples/Instructions_CreateOrReplace_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/Operation.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" + ] + }, + "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." + } + ] + } + }, + "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.", + "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" + } + ] + } + }, + "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" + }, + "registerInbuiltExampleQueryJobStatus": { + "$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", + "registerInbuiltExampleQueryJobStatus", + "registerInBuiltAliasJobStatus", + "registerAssistantViewJobStatus" + ] + }, + "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.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.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.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" + ] + }, + "Operation.Models.OperationResultQuery": { + "type": "object", + "description": "Operation Response Model", + "properties": { + "status": { + "$ref": "#/definitions/Common.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" + ] + }, + "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 +```