Skip to content

Commit 3a3a945

Browse files
juancamilorCamilo RamirezAmr Elroumy
authored
Added new specification for chat - release 2020-11-01-preview3 (#11716)
* Added new specification for chat - release 2020-11-01-preview3 * Addressing feedback * Updating max page size parameter name * update `maxpagesize` parameter name in example file. * Runn prettier on examples * Removing obsolete example files, and adding missing description properties. * Update `maxpagesize` query parameter name for `ListChatThreads` * rename $maxpagesize to `maxPageSize` Co-authored-by: Camilo Ramirez <[email protected]> Co-authored-by: Amr Elroumy <[email protected]>
1 parent c1927d1 commit 3a3a945

19 files changed

+2560
-0
lines changed

specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/communicationserviceschat.json

Lines changed: 1675 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2020-11-01-preview3",
5+
"chatThreadId": "19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2",
6+
"$maxpagesize": 2
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"senderId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",
14+
"chatMessageId": "1591137790240",
15+
"readOn": "2020-06-06T05:55:41.6460000Z"
16+
},
17+
{
18+
"senderId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c00a",
19+
"chatMessageId": "1591768249318",
20+
"readOn": "2020-06-06T05:55:41.6460000Z"
21+
}
22+
],
23+
"nextLink": "https://contoso.westus.communications.azure.com/chat/threads/19:[email protected]/readReceipts?skip=2&$maxpagesize=2&api-version=2020-11-01-preview3"
24+
}
25+
},
26+
"401": {
27+
"body": {
28+
"code": "Unauthorized",
29+
"message": "Request is not authorized."
30+
}
31+
},
32+
"403": {
33+
"body": {
34+
"code": "Forbidden",
35+
"message": "User is not allowed to perform specified action."
36+
}
37+
},
38+
"429": {
39+
"body": {
40+
"code": "TooManyRequests",
41+
"message": "Rate limit exceeded."
42+
}
43+
},
44+
"503": {
45+
"body": {
46+
"code": "ServiceUnavailable",
47+
"message": "The server is currently unable to handle the request."
48+
}
49+
}
50+
}
51+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2020-11-01-preview3",
5+
"chatThreadId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
6+
"sendReadReceiptRequest": {
7+
"chatMessageId": "1591137790240"
8+
}
9+
},
10+
"responses": {
11+
"201": {},
12+
"401": {
13+
"body": {
14+
"code": "Unauthorized",
15+
"message": "Request is not authorized."
16+
}
17+
},
18+
"403": {
19+
"body": {
20+
"code": "Forbidden",
21+
"message": "User is not allowed to perform specified action."
22+
}
23+
},
24+
"429": {
25+
"body": {
26+
"code": "TooManyRequests",
27+
"message": "Rate limit exceeded."
28+
}
29+
},
30+
"503": {
31+
"body": {
32+
"code": "ServiceUnavailable",
33+
"message": "The server is currently unable to handle the request."
34+
}
35+
}
36+
}
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2020-11-01-preview3",
5+
"chatThreadId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
6+
"chatMessageId": "1591768249318"
7+
},
8+
"responses": {
9+
"204": {},
10+
"401": {
11+
"body": {
12+
"code": "Unauthorized",
13+
"message": "Request is not authorized."
14+
}
15+
},
16+
"403": {
17+
"body": {
18+
"code": "Forbidden",
19+
"message": "User is not allowed to perform specified action."
20+
}
21+
},
22+
"429": {
23+
"body": {
24+
"code": "TooManyRequests",
25+
"message": "Rate limit exceeded."
26+
}
27+
},
28+
"503": {
29+
"body": {
30+
"code": "ServiceUnavailable",
31+
"message": "The server is currently unable to handle the request."
32+
}
33+
}
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2020-11-01-preview3",
5+
"chatThreadId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
6+
"chatMessageId": "1591768249318"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "1591768249318",
12+
"type": "Text",
13+
"version": "1599016601134",
14+
"priority": "Normal",
15+
"content": "Let's head out for lunch in 15 minutes.",
16+
"senderDisplayName": "Jane",
17+
"createdOn": "2020-06-10T05:50:49.3180000Z",
18+
"senderId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
19+
}
20+
},
21+
"401": {
22+
"body": {
23+
"code": "Unauthorized",
24+
"message": "Request is not authorized."
25+
}
26+
},
27+
"403": {
28+
"body": {
29+
"code": "Forbidden",
30+
"message": "User is not allowed to perform specified action."
31+
}
32+
},
33+
"429": {
34+
"body": {
35+
"code": "TooManyRequests",
36+
"message": "Rate limit exceeded."
37+
}
38+
},
39+
"503": {
40+
"body": {
41+
"code": "ServiceUnavailable",
42+
"message": "The server is currently unable to handle the request."
43+
}
44+
}
45+
}
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2020-11-01-preview3",
5+
"chatThreadId": "19:[email protected]",
6+
"$maxpagesize": 5
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "1593107077690",
14+
"type": "Text",
15+
"priority": "Normal",
16+
"version": "1593107077683",
17+
"content": "So where should we get lunch from today?",
18+
"senderDisplayName": "Jane",
19+
"createdOn": "2020-06-25T17:44:37.6830000Z",
20+
"senderId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
21+
},
22+
{
23+
"id": "1593107077683",
24+
"type": "Text",
25+
"priority": "Normal",
26+
"version": "1593107077683",
27+
"content": "Let's use this chat to decide what to get for lunch today.",
28+
"senderDisplayName": "Jane",
29+
"createdOn": "2020-06-25T17:44:37.6830000Z",
30+
"senderId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
31+
},
32+
{
33+
"id": "1593107046498",
34+
"type": "Text",
35+
"priority": "Normal",
36+
"version": "1593107046498",
37+
"content": "Good morning everyone!",
38+
"senderDisplayName": "Jane",
39+
"createdOn": "2020-06-25T17:44:06.4980000Z",
40+
"senderId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
41+
},
42+
{
43+
"id": "1593106976785",
44+
"type": "ThreadActivity/TopicUpdate",
45+
"priority": "Normal",
46+
"version": "1593106976785",
47+
"content": "<topicupdate><eventtime>1593106976785</eventtime><initiator>8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b</initiator><value>Lunch</value></topicupdate>",
48+
"createdOn": "2020-06-25T17:42:56.7850000Z",
49+
"senderId": "19:[email protected]"
50+
},
51+
{
52+
"id": "1593106976753",
53+
"type": "ThreadActivity/AddMember",
54+
"priority": "Normal",
55+
"version": "1593106976753",
56+
"content": "<addmember><eventtime>1593106976753</eventtime><initiator>8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b</initiator><rosterVersion>1593106976566</rosterVersion><target>8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10a</target><detailedtargetinfo><id>8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10a</id></detailedtargetinfo><target>8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b</target><detailedtargetinfo><id>8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b</id></detailedtargetinfo><target>8:acs:29d8ac59-6011-44dc-87c0-1f9f93dbc713_2a711a-6c8ffcdc41</target><detailedtargetinfo><id>8:acs:29d8ac59-6011-44dc-87c0-1f9f93dbc713_2a711a-6c8ffcdc41</id></detailedtargetinfo><target>8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10c</target><detailedtargetinfo><id>8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10c</id></detailedtargetinfo></addmember>",
57+
"createdOn": "2020-06-25T17:42:56.7530000Z",
58+
"senderId": "19:[email protected]"
59+
}
60+
],
61+
"nextLink": "https://contoso.westus.communications.azure.com/chat/threads/19:[email protected]/messages?syncState=3e4700000031393a756e6930315f7a626e68336e74326466756666657a6333736f7837646f67377766686b36793571653272776c6e66686c68647a69726968647071407468726561642e763201451fe6e77201000004357fea72010000&startTime=0&$maxpagesize=5&api-version=2020-11-01-preview3"
62+
}
63+
},
64+
"401": {
65+
"body": {
66+
"code": "Unauthorized",
67+
"message": "Request is not authorized."
68+
}
69+
},
70+
"403": {
71+
"body": {
72+
"code": "Forbidden",
73+
"message": "User is not allowed to perform specified action."
74+
}
75+
},
76+
"429": {
77+
"body": {
78+
"code": "TooManyRequests",
79+
"message": "Rate limit exceeded."
80+
}
81+
},
82+
"503": {
83+
"body": {
84+
"code": "ServiceUnavailable",
85+
"message": "The server is currently unable to handle the request."
86+
}
87+
}
88+
}
89+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2020-11-01-preview3",
5+
"chatThreadId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
6+
"sendChatMessageRequest": {
7+
"priority": "Normal",
8+
"content": "Let's head out for lunch in 15 minutes.",
9+
"senderDisplayName": "Jane"
10+
}
11+
},
12+
"responses": {
13+
"201": {
14+
"headers": {
15+
"Location": "https://contoso.westus.communications.azure.com/chat/threads/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/messages/1593072104708"
16+
},
17+
"body": {
18+
"id": "1593072104708"
19+
}
20+
},
21+
"401": {
22+
"body": {
23+
"code": "Unauthorized",
24+
"message": "Request is not authorized."
25+
}
26+
},
27+
"403": {
28+
"body": {
29+
"code": "Forbidden",
30+
"message": "User is not allowed to perform specified action."
31+
}
32+
},
33+
"429": {
34+
"body": {
35+
"code": "TooManyRequests",
36+
"message": "Rate limit exceeded."
37+
}
38+
},
39+
"503": {
40+
"body": {
41+
"code": "ServiceUnavailable",
42+
"message": "The server is currently unable to handle the request."
43+
}
44+
}
45+
}
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"parameters": {
3+
"x-skypetoken": "token",
4+
"endpoint": "https://contoso.westus.communications.azure.com",
5+
"api-version": "2020-11-01-preview3",
6+
"chatThreadId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"
7+
},
8+
"responses": {
9+
"200": {},
10+
"401": {
11+
"body": {
12+
"code": "Unauthorized",
13+
"message": "Request is not authorized."
14+
}
15+
},
16+
"403": {
17+
"body": {
18+
"code": "Forbidden",
19+
"message": "User is not allowed to perform specified action."
20+
}
21+
},
22+
"429": {
23+
"body": {
24+
"code": "TooManyRequests",
25+
"message": "Rate limit exceeded."
26+
}
27+
},
28+
"503": {
29+
"body": {
30+
"code": "ServiceUnavailable",
31+
"message": "The server is currently unable to handle the request."
32+
}
33+
}
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"content-type": "application/merge-patch+json",
5+
"api-version": "2020-11-01-preview3",
6+
"chatThreadId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
7+
"chatMessageId": "1591768249318",
8+
"updateChatMessageRequest": {
9+
"content": "Updated message content"
10+
}
11+
},
12+
"responses": {
13+
"204": {},
14+
"401": {
15+
"body": {
16+
"code": "Unauthorized",
17+
"message": "Request is not authorized."
18+
}
19+
},
20+
"403": {
21+
"body": {
22+
"code": "Forbidden",
23+
"message": "User is not allowed to perform specified action."
24+
}
25+
},
26+
"429": {
27+
"body": {
28+
"code": "TooManyRequests",
29+
"message": "Rate limit exceeded."
30+
}
31+
},
32+
"503": {
33+
"body": {
34+
"code": "ServiceUnavailable",
35+
"message": "The server is currently unable to handle the request."
36+
}
37+
}
38+
}
39+
}

0 commit comments

Comments
 (0)