Skip to content

Commit c9027a3

Browse files
antonsamson-msftv-dharmarajvkhannavikas
authored
Call Automation Beta6 (#34649)
* Add 2025-03-30-preview version for CallAutomation * Update readme.md * Bring in TeamsExtensionUser and recording changes (#33575) * Use Common 2025-03-15-preview (#33804) * Port examples from Beta5 * Added reference example file to Start recording with connectionId to OpenAPI spec --------- Co-authored-by: Vinothini Dharmaraj <[email protected]> Co-authored-by: Vikas Khanna <[email protected]>
1 parent 91d7a32 commit c9027a3

36 files changed

+5329
-1
lines changed

specification/communication/data-plane/CallAutomation/preview/2025-03-30-preview/communicationservicescallautomation.json

Lines changed: 4468 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2025-03-30-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+
"operationContext": "operationContext",
9+
"callIntelligenceOptions": {
10+
"cognitiveServicesEndpoint": "string"
11+
},
12+
"answeredBy": {
13+
"id": "+11234567890"
14+
},
15+
"mediaStreamingOptions": {
16+
"transportUrl": "wss://contosowebsocketserver.com/",
17+
"transportType": "websocket",
18+
"contentType": "audio",
19+
"audioChannelType": "mixed",
20+
"startMediaStreaming": true,
21+
"enableBidirectional": true,
22+
"audioFormat": "pcm16KMono"
23+
},
24+
"transcriptionOptions": {
25+
"transportUrl": "wss://contosowebsocketserver.com/",
26+
"transportType": "websocket",
27+
"locale": "en-ca",
28+
"speechRecognitionModelEndpointId": "afa0669c-a01e-4693-ae3a-93baf40f26d6",
29+
"startTranscription": true,
30+
"enableIntermediateResults": true
31+
}
32+
}
33+
},
34+
"responses": {
35+
"200": {
36+
"body": {
37+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
38+
"serverCallId": "aHR0cHM6Ly9jb252ZXJzYXRpb251cmwvdGVzdA",
39+
"sourceCallerIdNumber": {
40+
"value": "+18440123456"
41+
},
42+
"source": {
43+
"kind": "communicationUser",
44+
"communicationUser": {
45+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce"
46+
}
47+
},
48+
"targets": [
49+
{
50+
"kind": "communicationUser",
51+
"communicationUser": {
52+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_0f50d091-5bd3-448b-884d-44be7037d9b9"
53+
}
54+
}
55+
],
56+
"callConnectionState": "connected",
57+
"callbackUri": "https://app.contoso.com/callback",
58+
"mediaStreamingSubscription": {
59+
"id": "23dea47f-b081-4107-9a5c-4300819d2caa",
60+
"state": "active",
61+
"subscribedContentTypes": [
62+
"audio"
63+
]
64+
},
65+
"transcriptionSubscription": {
66+
"id": "45dea47f-b081-4107-9a5c-4300819d2caa",
67+
"state": "active",
68+
"subscribedResultTypes": [
69+
"final"
70+
]
71+
},
72+
"answeredFor": {
73+
"value": "+11234567890"
74+
}
75+
}
76+
}
77+
}
78+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2025-03-30-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
6+
"addParticipantRequest": {
7+
"participantToAdd": {
8+
"kind": "communicationUser",
9+
"communicationUser": {
10+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_ae9e3307-f56e-44be-8934-80a63f080538"
11+
}
12+
},
13+
"operationContext": "adding participant",
14+
"sourceCallerIdNumber": {
15+
"value": "+18440123456"
16+
},
17+
"operationCallbackUri": "https://app.contoso.com/callback"
18+
}
19+
},
20+
"responses": {
21+
"202": {
22+
"body": {
23+
"operationContext": "adding participant",
24+
"participant": {
25+
"identifier": {
26+
"kind": "communicationUser",
27+
"communicationUser": {
28+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_ae9e3307-f56e-44be-8934-80a63f080538"
29+
}
30+
},
31+
"isMuted": false
32+
},
33+
"invitationId": "7b4244f8-d2ff-46d1-a629-4f9fb5f73d40"
34+
}
35+
}
36+
}
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2025-03-30-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
6+
"cancelAddParticipantRequest": {
7+
"invitationId": "7b4244f8-d2ff-46d1-a629-4f9fb5f73d40",
8+
"operationContext": "cancelling add participant",
9+
"operationCallbackUri": "https://app.contoso.com/callback"
10+
}
11+
},
12+
"responses": {
13+
"202": {
14+
"body": {
15+
"invitationId": "7b4244f8-d2ff-46d1-a629-4f9fb5f73d40",
16+
"operationContext": "cancelling add participant"
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2025-03-30-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+
"sourceCallerIdNumber": {
13+
"value": "+18440123456"
14+
},
15+
"source": {
16+
"kind": "communicationUser",
17+
"communicationUser": {
18+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce"
19+
}
20+
},
21+
"targets": [
22+
{
23+
"kind": "communicationUser",
24+
"communicationUser": {
25+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_0f50d091-5bd3-448b-884d-44be7037d9b9"
26+
}
27+
},
28+
{
29+
"kind": "phoneNumber",
30+
"phoneNumber": {
31+
"value": "+14250123456"
32+
}
33+
}
34+
],
35+
"callConnectionState": "connected",
36+
"callbackUri": "https://app.contoso.com/callback"
37+
}
38+
}
39+
}
40+
}
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": "2025-03-30-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
6+
"participantRawId": "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,25 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2025-03-30-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
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": true
19+
}
20+
],
21+
"nextLink": "string"
22+
}
23+
}
24+
}
25+
}
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": "2025-03-30-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,25 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2025-03-30-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
6+
"muteParticipantsRequest": {
7+
"targetParticipants": [
8+
{
9+
"kind": "communicationUser",
10+
"communicationUser": {
11+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce"
12+
}
13+
}
14+
],
15+
"operationContext": "mute participant"
16+
}
17+
},
18+
"responses": {
19+
"200": {
20+
"body": {
21+
"operationContext": "mute participant"
22+
}
23+
}
24+
}
25+
}
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": "2025-03-30-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
6+
"removeParticipantRequest": {
7+
"participantToRemove": {
8+
"kind": "communicationUser",
9+
"communicationUser": {
10+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_ae9e3307-f56e-44be-8934-80a63f080538"
11+
}
12+
},
13+
"operationContext": "removing participant",
14+
"operationCallbackUri": "https://app.contoso.com/callback"
15+
}
16+
},
17+
"responses": {
18+
"202": {
19+
"body": {
20+
"operationContext": "removing participant"
21+
}
22+
}
23+
}
24+
}
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": "2025-03-30-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,30 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2025-03-30-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+
"transferee": {
14+
"kind": "communicationUser",
15+
"communicationUser": {
16+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_ae9e3307-f56e-44be-8934-80a63f080538"
17+
}
18+
},
19+
"operationCallbackUri": "https://app.contoso.com/callback",
20+
"operationContext": "trasferring call"
21+
}
22+
},
23+
"responses": {
24+
"202": {
25+
"body": {
26+
"operationContext": "trasferring call"
27+
}
28+
}
29+
}
30+
}
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": "2025-03-30-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,24 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.communications.azure.com",
4+
"api-version": "2025-03-30-preview",
5+
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
6+
"holdRequest": {
7+
"targetParticipant": {
8+
"kind": "communicationUser",
9+
"communicationUser": {
10+
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_0f50d091-5bd3-448b-884d-44be7037d9b9"
11+
}
12+
},
13+
"playSourceInfo": {
14+
"kind": "file",
15+
"file": {
16+
"uri": "https://some.file.azure.com/sample.wav"
17+
}
18+
}
19+
}
20+
},
21+
"responses": {
22+
"200": {}
23+
}
24+
}

0 commit comments

Comments
 (0)