Skip to content

Commit ac4677c

Browse files
richardcho-msftjuntuchen-msftarupdutta-msftcochi2williamzhao87
authored
[Communication - Calling Server] 2022 04 07 preview (#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 <[email protected]> Co-authored-by: Juntu Chen <[email protected]> Co-authored-by: Arup Dutta <[email protected]> Co-authored-by: arupdutta-msft <[email protected]> Co-authored-by: Franko Morales <[email protected]> Co-authored-by: Franko Morales <[email protected]> Co-authored-by: williamzhao87 <[email protected]> Co-authored-by: Yingying Wu <[email protected]> Co-authored-by: williamzhao87 <[email protected]>
1 parent 9366804 commit ac4677c

24 files changed

+2862
-6
lines changed

specification/communication/data-plane/CallAutomation/preview/2022-04-07-preview/communicationservicescallautomation.json

Lines changed: 2281 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2022-04-07-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
6+
"addParticipantsRequest": {
7+
"participantsToAdd": [
8+
{
9+
"kind": "communicationUser",
10+
"communicationUser": {
11+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_ae9e3307-f56e-44be-8934-80a63f080538"
12+
}
13+
}
14+
],
15+
"operationContext": "adding participant",
16+
"sourceCallerId": {
17+
"value": "+18440123456"
18+
}
19+
}
20+
},
21+
"responses": {
22+
"202": {
23+
"body": {
24+
"operationContext": "adding participant",
25+
"participants": [
26+
{
27+
"identifier": {
28+
"kind": "communicationUser",
29+
"communicationUser": {
30+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_ae9e3307-f56e-44be-8934-80a63f080538"
31+
}
32+
},
33+
"isMuted": false
34+
}
35+
]
36+
}
37+
}
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2022-04-07-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
11+
"serverCallId": "aHR0cHM6Ly9jb252ZXJzYXRpb251cmwvdGVzdA",
12+
"source": {
13+
"callerId": {
14+
"value": "+18440123456"
15+
},
16+
"identifier": {
17+
"kind": "communicationUser",
18+
"communicationUser": {
19+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce"
20+
}
21+
}
22+
},
23+
"targets": [
24+
{
25+
"kind": "communicationUser",
26+
"communicationUser": {
27+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_0f50d091-5bd3-448b-884d-44be7037d9b9"
28+
}
29+
},
30+
{
31+
"kind": "phoneNumber",
32+
"phoneNumber": {
33+
"value": "+14250123456"
34+
}
35+
}
36+
],
37+
"callConnectionState": "connected",
38+
"callbackUri": "https://app.contoso.com/callback",
39+
"mediaSubscriptionId": "6431f20a-1235-4a74-j632-asas8h6f999s"
40+
}
41+
}
42+
}
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2022-04-07-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
6+
"participantMri": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"identifier": {
12+
"kind": "communicationUser",
13+
"communicationUser": {
14+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce"
15+
}
16+
},
17+
"isMuted": false
18+
}
19+
}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2022-04-07-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"values": [
11+
{
12+
"identifier": {
13+
"kind": "communicationUser",
14+
"communicationUser": {
15+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce"
16+
}
17+
},
18+
"isMuted": false
19+
},
20+
{
21+
"identifier": {
22+
"kind": "communicationUser",
23+
"communicationUser": {
24+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-12a6-85c6-56b2cf784kgr"
25+
}
26+
},
27+
"isMuted": false
28+
}
29+
]
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2022-04-07-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2022-04-07-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
6+
"removeParticipantsRequest": {
7+
"participantsToRemove": [
8+
{
9+
"kind": "communicationUser",
10+
"communicationUser": {
11+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_ae9e3307-f56e-44be-8934-80a63f080538"
12+
}
13+
},
14+
{
15+
"kind": "communicationUser",
16+
"communicationUser": {
17+
"id": "8:acs:q9690973-fd0b-480c-1sg2-kk58b70elb9a_de9e3322-d45g-32sa-9400-80a63f021464"
18+
}
19+
}
20+
],
21+
"operationContext": "removing participant"
22+
}
23+
},
24+
"responses": {
25+
"202": {
26+
"body": {
27+
"operationContext": "removing participant"
28+
}
29+
}
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2022-04-07-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2022-04-07-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
6+
"transferToParticipantRequest": {
7+
"targetParticipant": {
8+
"kind": "communicationUser",
9+
"communicationUser": {
10+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce"
11+
}
12+
},
13+
"transfereeCallerId": {
14+
"value": "+11234567890"
15+
},
16+
"userToUserInformation": "user to user",
17+
"operationContext": "trasferring call"
18+
}
19+
},
20+
"responses": {
21+
"202": {
22+
"body": {
23+
"operationContext": "trasferring call"
24+
}
25+
}
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2022-04-07-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c"
6+
},
7+
"responses": {
8+
"202": {}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2022-04-07-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
6+
"playRequest": {
7+
"playSourceInfo": {
8+
"sourceType": "file",
9+
"playSourceId": "string",
10+
"fileSource": {
11+
"uri": "https://some.file.azure.com/sample.wav"
12+
}
13+
},
14+
"playTo": [
15+
{
16+
"kind": "communicationUser",
17+
"communicationUser": {
18+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_ae9e3307-f56e-44be-8934-80a63f080538"
19+
}
20+
}
21+
],
22+
"playOptions": {
23+
"loop": true
24+
}
25+
}
26+
},
27+
"responses": {
28+
"202": {}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2022-04-07-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
6+
"recognizeRequest": {
7+
"recognizeInputType": "dtmf",
8+
"playPrompt": {
9+
"sourceType": "file",
10+
"fileSource": {
11+
"uri": "https://some.file.azure.com/sample.wav"
12+
}
13+
},
14+
"recognizeOptions": {
15+
"interruptPrompt": true,
16+
"initialSilenceTimeoutInSeconds": 5,
17+
"targetParticipant": {
18+
"kind": "communicationUser",
19+
"communicationUser": {
20+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce"
21+
}
22+
},
23+
"dtmfOptions": {
24+
"interToneTimeoutInSeconds": 3,
25+
"maxTonesToCollect": 5,
26+
"stopTones": [
27+
"pound"
28+
]
29+
}
30+
}
31+
}
32+
},
33+
"responses": {
34+
"202": {}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2022-04-07-preview",
5+
"startCallRecording": {
6+
"recordingStateCallbackUri": "https://contoso.communications.azure.com/callback",
7+
"recordingContentType": null,
8+
"recordingChannelType": null,
9+
"recordingFormatType": null,
10+
"callLocator": {
11+
"serverCallId": "aHR0cHM6Ly9za3lwZS5uZXQvYXBpL3YyL2NwL3NreXBlLm5ldC9jb252LzFQd3ZKMTcxZFI/aT0wJmU9NzU3NzA4NzU3OQ==",
12+
"kind": "serverCallLocator"
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"body": {
19+
"recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI4YjlkYmFkMS0xOGFiLTRmODYtYWQ0Yy1jNzVmODA5ODA3NmUiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI4YjlkYmFkMS0xOGFiLTRmODYtYWQ0Yy1jNzVmODA5ODA3NmUifQ==",
20+
"recordingState": "inactive"
21+
}
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2022-04-07-preview",
5+
"answerCallRequest": {
6+
"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",
7+
"callbackUri": "https://app.contoso.com/callback",
8+
"mediaStreamingConfiguration": {
9+
"transportUrl": "wss://contoso.websocket.server/",
10+
"transportType": "websocket",
11+
"contentType": "audio",
12+
"audioChannelType": "mixed"
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"body": {
19+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
20+
"serverCallId": "aHR0cHM6Ly9jb252ZXJzYXRpb251cmwvdGVzdA",
21+
"source": {
22+
"callerId": {
23+
"value": "+18440123456"
24+
},
25+
"identifier": {
26+
"kind": "communicationUser",
27+
"communicationUser": {
28+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce"
29+
}
30+
}
31+
},
32+
"targets": [
33+
{
34+
"kind": "communicationUser",
35+
"communicationUser": {
36+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_0f50d091-5bd3-448b-884d-44be7037d9b9"
37+
}
38+
},
39+
{
40+
"kind": "phoneNumber",
41+
"phoneNumber": {
42+
"value": "+14250123456"
43+
}
44+
}
45+
],
46+
"callConnectionState": "connected",
47+
"callbackUri": "https://app.contoso.com/callback",
48+
"mediaSubscriptionId": "6431f20a-1235-4a74-j632-asas8h6f999s"
49+
}
50+
}
51+
}
52+
}

0 commit comments

Comments
 (0)