forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Communication - Calling Server] 2022 04 07 preview (Azure#19409)
* Added 2022-04-07-preview * Adds base for updating CallingServer from version preview/2021-08-30-preview to version 2022-04-07-preview * Updates readme * Updates API version in new specs and examples * public refresh swagger * fix prettier * fix route path * remove transferToCall API * updated swagger file * updated swagger * address review comments * update swagger * updated swagger * Add play example * Remove non-2xx codes from Play example * swagger update * Adding play elements * Adding Recording * add operations endpoints for review * fix swagger * update swagger * Update Play API PlaySource model and example * Add missing summary * Added events * Adding new swagger version * Adding new Recording Play Events * Update content routes * update model names to drop dto suffix * Updating swagger with recognize events * fix lint issues * fix linting errors * remove nonexistent example * update latest swagger * fix spellcheck * fix some linting errors * fix modelValidation * fix linting * fix structure * fix call automation examples * add content examples * prettier fix * fix merge errors * fix structure * fix another example structure * fix examples * fix enum type * remove additional properties * make examples realistic * Adding latest swagger * Fixing typos * Fixing route * Fixing empty line at the end * fix example format * add back description * prettier fix * update events. hide internal events fields. * update sameple name * fix prettier * Update communicationservicescallingserver.json * undo whitespace * address lint error * add type and format and default responses * fix validation errors * fix again * I don't know what they want * . * fixed some pipeline issues * Remove channel affinity based on ARB feedback, add latest swagger * Fix CI - prettier * rename service * . * update readme * test validation * add back url format Co-authored-by: Juntu Chen <juntuchen@microsoft.com> Co-authored-by: Juntu Chen <95723208+juntuchen-msft@users.noreply.github.com> Co-authored-by: Arup Dutta <arupdutta@microsoft.com> Co-authored-by: arupdutta-msft <87995153+arupdutta-msft@users.noreply.github.com> Co-authored-by: Franko Morales <fmorales@microsoft.com> Co-authored-by: Franko Morales <67804607+cochi2@users.noreply.github.com> Co-authored-by: williamzhao87 <williamzhao87@gmail.com> Co-authored-by: Yingying Wu <98626395+yyw-msft@users.noreply.github.com> Co-authored-by: williamzhao87 <williamzhao87@users.noreply.github.com>
- Loading branch information
1 parent
f6796d5
commit 76cbaae
Showing
24 changed files
with
2,862 additions
and
6 deletions.
There are no files selected for viewing
2,281 changes: 2,281 additions & 0 deletions
2,281
...-plane/CallAutomation/preview/2022-04-07-preview/communicationservicescallautomation.json
Large diffs are not rendered by default.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
...ne/CallAutomation/preview/2022-04-07-preview/examples/CallConnections_AddParticipant.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2022-04-07-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c", | ||
"addParticipantsRequest": { | ||
"participantsToAdd": [ | ||
{ | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_ae9e3307-f56e-44be-8934-80a63f080538" | ||
} | ||
} | ||
], | ||
"operationContext": "adding participant", | ||
"sourceCallerId": { | ||
"value": "+18440123456" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"operationContext": "adding participant", | ||
"participants": [ | ||
{ | ||
"identifier": { | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_ae9e3307-f56e-44be-8934-80a63f080538" | ||
} | ||
}, | ||
"isMuted": false | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
...ata-plane/CallAutomation/preview/2022-04-07-preview/examples/CallConnections_GetCall.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2022-04-07-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c", | ||
"serverCallId": "aHR0cHM6Ly9jb252ZXJzYXRpb251cmwvdGVzdA", | ||
"source": { | ||
"callerId": { | ||
"value": "+18440123456" | ||
}, | ||
"identifier": { | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce" | ||
} | ||
} | ||
}, | ||
"targets": [ | ||
{ | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_0f50d091-5bd3-448b-884d-44be7037d9b9" | ||
} | ||
}, | ||
{ | ||
"kind": "phoneNumber", | ||
"phoneNumber": { | ||
"value": "+14250123456" | ||
} | ||
} | ||
], | ||
"callConnectionState": "connected", | ||
"callbackUri": "https://app.contoso.com/callback", | ||
"mediaSubscriptionId": "6431f20a-1235-4a74-j632-asas8h6f999s" | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...ne/CallAutomation/preview/2022-04-07-preview/examples/CallConnections_GetParticipant.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2022-04-07-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c", | ||
"participantMri": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"identifier": { | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce" | ||
} | ||
}, | ||
"isMuted": false | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...e/CallAutomation/preview/2022-04-07-preview/examples/CallConnections_GetParticipants.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2022-04-07-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"values": [ | ||
{ | ||
"identifier": { | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce" | ||
} | ||
}, | ||
"isMuted": false | ||
}, | ||
{ | ||
"identifier": { | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-12a6-85c6-56b2cf784kgr" | ||
} | ||
}, | ||
"isMuted": false | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...-plane/CallAutomation/preview/2022-04-07-preview/examples/CallConnections_HangupCall.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2022-04-07-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...allAutomation/preview/2022-04-07-preview/examples/CallConnections_RemoveParticipants.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2022-04-07-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c", | ||
"removeParticipantsRequest": { | ||
"participantsToRemove": [ | ||
{ | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_ae9e3307-f56e-44be-8934-80a63f080538" | ||
} | ||
}, | ||
{ | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:q9690973-fd0b-480c-1sg2-kk58b70elb9a_de9e3322-d45g-32sa-9400-80a63f021464" | ||
} | ||
} | ||
], | ||
"operationContext": "removing participant" | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"operationContext": "removing participant" | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ane/CallAutomation/preview/2022-04-07-preview/examples/CallConnections_TerminateCall.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2022-04-07-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...Automation/preview/2022-04-07-preview/examples/CallConnections_TransferToParticipant.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2022-04-07-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c", | ||
"transferToParticipantRequest": { | ||
"targetParticipant": { | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce" | ||
} | ||
}, | ||
"transfereeCallerId": { | ||
"value": "+11234567890" | ||
}, | ||
"userToUserInformation": "user to user", | ||
"operationContext": "trasferring call" | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"operationContext": "trasferring call" | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
.../CallAutomation/preview/2022-04-07-preview/examples/Content_CancelAllMediaOperations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2022-04-07-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c" | ||
}, | ||
"responses": { | ||
"202": {} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...unication/data-plane/CallAutomation/preview/2022-04-07-preview/examples/Content_Play.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2022-04-07-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c", | ||
"playRequest": { | ||
"playSourceInfo": { | ||
"sourceType": "file", | ||
"playSourceId": "string", | ||
"fileSource": { | ||
"uri": "https://some.file.azure.com/sample.wav" | ||
} | ||
}, | ||
"playTo": [ | ||
{ | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_ae9e3307-f56e-44be-8934-80a63f080538" | ||
} | ||
} | ||
], | ||
"playOptions": { | ||
"loop": true | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": {} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...tion/data-plane/CallAutomation/preview/2022-04-07-preview/examples/Content_Recognize.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2022-04-07-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c", | ||
"recognizeRequest": { | ||
"recognizeInputType": "dtmf", | ||
"playPrompt": { | ||
"sourceType": "file", | ||
"fileSource": { | ||
"uri": "https://some.file.azure.com/sample.wav" | ||
} | ||
}, | ||
"recognizeOptions": { | ||
"interruptPrompt": true, | ||
"initialSilenceTimeoutInSeconds": 5, | ||
"targetParticipant": { | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce" | ||
} | ||
}, | ||
"dtmfOptions": { | ||
"interToneTimeoutInSeconds": 3, | ||
"maxTonesToCollect": 5, | ||
"stopTones": [ | ||
"pound" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": {} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...tion/data-plane/CallAutomation/preview/2022-04-07-preview/examples/Content_Recording.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2022-04-07-preview", | ||
"startCallRecording": { | ||
"recordingStateCallbackUri": "https://contoso.communications.azure.com/callback", | ||
"recordingContentType": null, | ||
"recordingChannelType": null, | ||
"recordingFormatType": null, | ||
"callLocator": { | ||
"serverCallId": "aHR0cHM6Ly9za3lwZS5uZXQvYXBpL3YyL2NwL3NreXBlLm5ldC9jb252LzFQd3ZKMTcxZFI/aT0wJmU9NzU3NzA4NzU3OQ==", | ||
"kind": "serverCallLocator" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI4YjlkYmFkMS0xOGFiLTRmODYtYWQ0Yy1jNzVmODA5ODA3NmUiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI4YjlkYmFkMS0xOGFiLTRmODYtYWQ0Yy1jNzVmODA5ODA3NmUifQ==", | ||
"recordingState": "inactive" | ||
} | ||
} | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
...ta-plane/CallAutomation/preview/2022-04-07-preview/examples/ServerCalling_AnswerCall.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2022-04-07-preview", | ||
"answerCallRequest": { | ||
"incomingCallContext": "H4sIAAAAAAAEAMVVS2/bOBD+LzrspaElPiSSBoJFNnvYoNi0aHaBtpcFRQ5t1rIokLRTJ8h/X1J2soHRQ4A9lAdZ4ry+mflm/FhpNQy3PjnrtErOj9XysbLBb8uvM9WyEkul49J2ioEiGhlKADHVKiR7oVDXUGo5tkpa8k8zH9yglhuKuLQNkqLpEMZUNSZLNFfVRWVcnAZ1uFVbyP53EQLOtzCaybsx3ZSgnZFKKk4QgLGIybZFfU8oolIZzFrWGk6yzaDG1U6tYLaBMd9MKiSn3aROjjSRoAUHhG1PEDMdIGFlg4yRUmhChWQsm62dMdl+adUQ4aIKEP0u6KPft6RePV1Uyf/PmmmT5VijnlmMpD7VDLg4r9m4G4azgjWng37weD5nBTt6OS8YlcRyBhpJwD1iggFSbccQJVRJANW1gp4XLCc/uHETS/4qJaXX2dE6pSku61pNbgETMrBfxM1hgsUIqVzWe1Lrqda6iBBpmsXx9ZWW1vUe19aHDZja9pqBMRyBpQyxriVIgNBIGa11D9wy2tWE1Q7np6iPOH51lyXtLRinrsZ4D6FwQmdY28LEKfhV7nX8+XCfkZwAB/gGOv18WEccJ1A7M/0V1BgnHwq0/JmBYSoWEi84XTC+pIyLuszCXPBrPyYY0zPTsv57OBSOxJxoXjXzV3WzJs1D/+X22gy/36m762/vhk8PV5eXOWAm5gZKqDZ5/PCdc2L/vvmjbynGh3fhPus8lVIZFzLI7PBj8BNkOsPMRBc/nURXw+DvIbM7hR3MJnmWdNE6Itt7p2Gr3HAHKblxVcyfsp724x5CnPfizbh36WVDvpaUNIMfhplbb+1Xtp87hhfPr687lq/qB4HD9ec1vN98+OzhQ9Rfp26zKq34BS47ygVtBZdNS3AjMCnb0MU/d0NyH/NEH15WmYu/BZ+7q2L6b1oN9LvVS3se5z+B4w6lWIOSHOl5+rmiSJoOI9b0jZZATMPUD7bsm5ZGjrsKfjfNcb+faPH0LyoNW7KCBgAA", | ||
"callbackUri": "https://app.contoso.com/callback", | ||
"mediaStreamingConfiguration": { | ||
"transportUrl": "wss://contoso.websocket.server/", | ||
"transportType": "websocket", | ||
"contentType": "audio", | ||
"audioChannelType": "mixed" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c", | ||
"serverCallId": "aHR0cHM6Ly9jb252ZXJzYXRpb251cmwvdGVzdA", | ||
"source": { | ||
"callerId": { | ||
"value": "+18440123456" | ||
}, | ||
"identifier": { | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce" | ||
} | ||
} | ||
}, | ||
"targets": [ | ||
{ | ||
"kind": "communicationUser", | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_0f50d091-5bd3-448b-884d-44be7037d9b9" | ||
} | ||
}, | ||
{ | ||
"kind": "phoneNumber", | ||
"phoneNumber": { | ||
"value": "+14250123456" | ||
} | ||
} | ||
], | ||
"callConnectionState": "connected", | ||
"callbackUri": "https://app.contoso.com/callback", | ||
"mediaSubscriptionId": "6431f20a-1235-4a74-j632-asas8h6f999s" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.