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+
}

0 commit comments

Comments
 (0)