Skip to content

Commit

Permalink
- Converting Authoring Analyzeconversations of 2023-04-15-preview and…
Browse files Browse the repository at this point in the history
… 2023-04-01 version to Typespec. (#30499)

* - initiated the first version of typespec.

* - deleted testing swagger for authoring conversations
- added testing json for authoring conversations 2023-04-15-preview

* - added long running operations

* - added a createOrUpdate operation with 201 response

* - modified the operationId in SuccesfulCopyProjectAuthorization.json
- compiled

* - added SuccessfulGetDeploymentDeleteFromResourcesStatus.json
- compiled

* - modified model EvaluationResults
- compiled

* - fixed Swagger SpellCheck
- compiled

* - adjusted the map of map structure of ConfusionMatrix
- compiled

* - modified the map of map structure of IntentsEvaluationSummary
- compiled

* - add 2023-04-01 version information

* - added testing json for 2023-04-01
- compiled

* - changed all the Azure.Core.Paged to model definition of array and nextLink (String)

* - modified the parameter name of some testing json of 2023-04-01

* - deleted the analyzeconversations-authoring folder under example of 2023-04-01

* - modified the name of models to add prefix ConversationAnalysisAuthoring
- compiled

* - add version 2023-04-15-preview to CustomConversationSummarization of ConversationalAnalysisAuthoringProjectKind
- compiled

* - changed the way of calling Azure.Core.Foundations.Error to definitions/error
- compiled

* - changed the appId type to uuid
- compiled

* - removed maxLength of projectName of ProjecteMetaData
- compiled

* - added version 2023-04-15-preview to storageInputContainerName of ProjectMetaData

* - added Versions 2023_04_15_preview to some properties
- compiled

* - add Versions v2023_04_15_preview to ConversationalAnalysisAuthoringCreateDeploymentOptions.properties.assignedResourceIds
- compiled

* - used npx command to fix TypeSpec Validation errors

* - fixed TypeSpec Validation
- compiled

* - made ConversationalAnalysisAuthoringCreateProjectOptions the request payload of the patch CreateProject operation, and made some of the properties optional
- compiled

* - fixed typespec validation in Language.AnalyzeConversations-authoring
- compiled

* - modified the titles of each testing json
- compiled

* - revert to the `main` version package-lock.json and package.json

* - modified the title of testing json SuccessfulSwapDeployment
- compiled

* - used npx tsv command to fix TypeSpec Validation

* - added resource template for ProjectMetaData
- used ResourceAction and LongRunningResourceAction for Resource ProjectMetaData (Operation authorize-copy and copy)
- compiled

* - added child Resource ProjectDeployment
- implemented Resource ProjectDeployment Template for getDeploymentsList
- compiled

* - added CopyProjectJobState as child Resource of ProjectMetaData
- implemented CopyProjectJobState by ResourceRead
- compiled

* - completed all the LongRunningResourceAction for resource ProjectMetadata
- compiled

* - used resource template for resource ProjectDeployment (Child of ProjectMetadata)
- used ResourceRead template for resource DeploymentJobState (Child of ProjectDeployment)
- compiled

* - added operation templates for resource ProjectTrainedModel
- compiled

* - added some JobState as children of ProjectTrainedModel
- used ResourceRead Template for these JobState resource
- compiled

* - added Resource resources and used some of its resource template
- compiled

* - add resource "train/jobs" for TrainingJobState
- used some resource template of TrainingJobState
- compiled

* - added DeploymentDeleteFromResourcesJobState and SwapDeploymentsJobState to fix duplicated DeploymentJobState resource issue
- compiled

* - added two more jobstate ExportProjectJobState and ImportProjectJobState as resource
- used ResourceRead template for thess two resources
- compiled

* - modified the operation name copy to copyProject
- added action("copy") for this
- compiled

* - used npx tsv command to resolve TypeSpec Validation

* - removed the "read" for @visibility of JobState.jobId
- compiled

* - added @actionSeparator("/:") to solve the RemovedPath and AddedPath issue
- compiled

* - reverted protected files to main version

* - removed all the "read" from @visibility in order to remove the readOnly properties in new swagger
- compiled

* - introduced the low-level LongRunning Operation to remove the status monitor in response
- compiled

* - removed all the FIXME of utcDateTime properties

* - used npx tsv command to resolve TypeSpec Validation

* - removed all the prefix of union and make the x-ms-enum same as old version
- compiled

* - gave concrete example to the uri in SuccessfulGetModelEvaluation testing json, trying to fix Swagger ModelValidation
- compiled

* - modified the namespace, adding Conversations at the end
- compiled
  • Loading branch information
amber-ccc authored Oct 3, 2024
1 parent 2aaea3e commit 5cc6888
Show file tree
Hide file tree
Showing 153 changed files with 13,011 additions and 3,566 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_CancelTrainingJob",
"title": "Successful Cancel Training Job",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_CreateProject",
"title": "Successful Create Project",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_DeleteDeployment",
"title": "Successful Delete Deployment",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_DeleteTrainedModel",
"title": "Successful Delete Model",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_DeleteProject",
"title": "Successful Delete Project",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_DeployProject",
"title": "Successful Deploy Project",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_Export",
"title": "Successful Export Project",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetDeployment",
"title": "Successful Get Deployment",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetDeploymentStatus",
"title": "Successful Get Deployment Status",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetExportResult",
"title": "Successful Get Export Result",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2023-04-01",
"projectName": "SampleProject",
"jobId": "job12345"
},
"responses": {
"200": {
"headers": {},
"body": {
"projectFileVersion": "1.0.0",
"stringIndexType": "Utf16CodeUnit",
"metadata": {
"projectKind": "Conversation",
"projectName": "SampleProject",
"language": "en",
"settings": {
"confidenceThreshold": 0.8,
"normalizeCasing": true,
"augmentDiacritics": false
},
"storageInputContainerName": "project-container",
"multilingual": false,
"description": "Sample project description"
},
"assets": {
"projectKind": "Conversation"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetExportStatus",
"title": "Successful Get Export Status",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetImportStatus",
"title": "Successful Get Import Status",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetLoadSnapshotStatus",
"title": "Successful Get Load Snapshot Status",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetTrainedModel",
"title": "Successful Get Model",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetModelEvaluationResults",
"title": "Successful Get Model Evaluation",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down Expand Up @@ -277,7 +279,7 @@
}
}
],
"nextLink": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/models/model1/evaluation/result/?api-version=2023-04-01&top=2147483637&skip={maxpagesize}&maxpagesize={maxpagesize}"
"nextLink": "https://api.example.com/language/authoring/analyze-conversations/projects/EmailApp/models/model1/evaluation/result/?api-version=2023-04-01&top=2147483637&skip=100&maxpagesize=100"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetModelEvaluationSummary",
"title": "Successful Get Model Evaluation Summary",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetProject",
"title": "Successful Get Project",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetProjectDeletionStatus",
"title": "Successful Get Project Deletion Status",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetSupportedLanguages",
"title": "Successful Get Supported Languages",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetSupportedPrebuiltEntities",
"title": "Successful Get Supported Prebuilt Entities",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_ListTrainingConfigVersions",
"title": "Successful Get Supported Training Config Versions",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetSwapDeploymentsStatus",
"title": "Successful Get Swap Deployments Status",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetTrainingStatus",
"title": "Successful Get Train Status",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_Import",
"title": "Successful Import Project",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_ListDeployments",
"title": "Successful List Deployments",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_ListTrainedModels",
"title": "Successful List Models",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_ListProjects",
"title": "Successful List Projects",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_ListTrainingJobs",
"title": "Successful List Training Jobs",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_LoadSnapshot",
"title": "Successful Load Snapshot",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_SwapDeployments",
"title": "Successful Swap Deployments",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_Train",
"title": "Successful Train Project",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_AssignDeploymentResources",
"title": "Successful Assign Deployment Resources",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_CancelTrainingJob",
"title": "Successful Cancel Training Job",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_CopyProject",
"title": "Successful Copy Project",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_CopyProjectAuthorization",
"title": "Successful Copy Project Authorization",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_CreateProject",
"title": "Successful Create Project",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_DeleteDeployment",
"title": "Successful Delete Deployment",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_DeleteDeploymentFromResources",
"title": "Successful Delete Deployment From Resources",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_DeleteTrainedModel",
"title": "Successful Delete Model",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_DeleteProject",
"title": "Successful Delete Project",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_DeployProject",
"title": "Successful Deploy Project",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_EvaluateModel",
"title": "Successful Evaluation Project",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_Export",
"title": "Successful Export Project",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetAssignDeploymentResourcesStatus",
"title": "Successful Get Assign Deployment Resources Status",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetCopyProjectStatus",
"title": "Successful Get Copy Project Status",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetDeployment",
"title": "Successful Get Deployment",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetDeploymentDeleteFromResourcesStatus",
"title": "Successful Get Deployment Status",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2023-04-15-preview",
"projectName": "EmailApp",
"deploymentName": "production",
"jobId": "66fa9a67-a561-42f1-8a13-f3a879b1a324_637858368000000000"
},
"responses": {
"200": {
"headers": {},
"body": {
"jobId": "66fa9a67-a561-42f1-8a13-f3a879b1a324_637858368000000000",
"createdDateTime": "2022-04-18T15:52:48Z",
"lastUpdatedDateTime": "2022-04-18T15:53:04Z",
"expirationDateTime": "2022-04-25T15:52:48Z",
"status": "succeeded"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetDeploymentStatus",
"title": "Successful Get Deployment Status",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "ConversationalAnalysisAuthoring_GetEvaluationStatus",
"title": "Successful Get Evaluation Status",
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
Expand Down
Loading

0 comments on commit 5cc6888

Please sign in to comment.