forked from Azure/azure-sdk-for-python
-
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.
Add specs for ACS Chat preview7 (Azure#16887)
* Baseline using previous API version * Updates for preview7 * Update readme.md * Prettier fix * Fix readme * Fix example for update-participant Co-authored-by: Po Tsang <[email protected]>
- Loading branch information
Showing
20 changed files
with
3,084 additions
and
0 deletions.
There are no files selected for viewing
1,816 changes: 1,816 additions & 0 deletions
1,816
.../communication/data-plane/Chat/preview/2021-10-01-preview7/communicationserviceschat.json
Large diffs are not rendered by default.
Oops, something went wrong.
69 changes: 69 additions & 0 deletions
69
.../preview/2021-10-01-preview7/examples/Conversations_ListChatReadReceiptsWithPageSize.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,69 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.westus.communications.azure.com", | ||
"api-version": "2021-10-01-preview7", | ||
"chatThreadId": "19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2", | ||
"maxPageSize": 2 | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"senderCommunicationIdentifier": { | ||
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", | ||
"communicationUser": { | ||
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" | ||
} | ||
}, | ||
"chatMessageId": "1591137790240", | ||
"readOn": "2020-06-06T05:55:41.6460000Z" | ||
}, | ||
{ | ||
"senderCommunicationIdentifier": { | ||
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_c94ff260-162d-46d6-94fd-e79f4d213715", | ||
"communicationUser": { | ||
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_c94ff260-162d-46d6-94fd-e79f4d213715" | ||
} | ||
}, | ||
"chatMessageId": "1591768249318", | ||
"readOn": "2020-06-06T05:55:41.6460000Z" | ||
} | ||
], | ||
"nextLink": "https://contoso.westus.communications.azure.com/chat/threads/19:[email protected]/readReceipts?skip=2&maxPageSize=2&api-version=2021-10-01-preview7" | ||
} | ||
}, | ||
"401": { | ||
"body": { | ||
"error": { | ||
"code": "Unauthorized", | ||
"message": "Request is not authorized." | ||
} | ||
} | ||
}, | ||
"403": { | ||
"body": { | ||
"error": { | ||
"code": "Forbidden", | ||
"message": "User is not allowed to perform specified action." | ||
} | ||
} | ||
}, | ||
"429": { | ||
"body": { | ||
"error": { | ||
"code": "TooManyRequests", | ||
"message": "Rate limit exceeded." | ||
} | ||
} | ||
}, | ||
"503": { | ||
"body": { | ||
"error": { | ||
"code": "ServiceUnavailable", | ||
"message": "The server is currently unable to handle the request." | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...ta-plane/Chat/preview/2021-10-01-preview7/examples/Conversations_SendChatReadReceipt.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,45 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.westus.communications.azure.com", | ||
"api-version": "2021-10-01-preview7", | ||
"chatThreadId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"sendReadReceiptRequest": { | ||
"chatMessageId": "1591137790240" | ||
} | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"401": { | ||
"body": { | ||
"error": { | ||
"code": "Unauthorized", | ||
"message": "Request is not authorized." | ||
} | ||
} | ||
}, | ||
"403": { | ||
"body": { | ||
"error": { | ||
"code": "Forbidden", | ||
"message": "User is not allowed to perform specified action." | ||
} | ||
} | ||
}, | ||
"429": { | ||
"body": { | ||
"error": { | ||
"code": "TooManyRequests", | ||
"message": "Rate limit exceeded." | ||
} | ||
} | ||
}, | ||
"503": { | ||
"body": { | ||
"error": { | ||
"code": "ServiceUnavailable", | ||
"message": "The server is currently unable to handle the request." | ||
} | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
...tion/data-plane/Chat/preview/2021-10-01-preview7/examples/Messages_DeleteChatMessage.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.westus.communications.azure.com", | ||
"api-version": "2021-10-01-preview7", | ||
"chatThreadId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"chatMessageId": "1591768249318" | ||
}, | ||
"responses": { | ||
"204": {}, | ||
"401": { | ||
"body": { | ||
"error": { | ||
"code": "Unauthorized", | ||
"message": "Request is not authorized." | ||
} | ||
} | ||
}, | ||
"403": { | ||
"body": { | ||
"error": { | ||
"code": "Forbidden", | ||
"message": "User is not allowed to perform specified action." | ||
} | ||
} | ||
}, | ||
"429": { | ||
"body": { | ||
"error": { | ||
"code": "TooManyRequests", | ||
"message": "Rate limit exceeded." | ||
} | ||
} | ||
}, | ||
"503": { | ||
"body": { | ||
"error": { | ||
"code": "ServiceUnavailable", | ||
"message": "The server is currently unable to handle the request." | ||
} | ||
} | ||
} | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
...ication/data-plane/Chat/preview/2021-10-01-preview7/examples/Messages_GetChatMessage.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,65 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.westus.communications.azure.com", | ||
"api-version": "2021-10-01-preview7", | ||
"chatThreadId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"chatMessageId": "1591768249318" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "1591768249318", | ||
"sequenceId": "1", | ||
"type": "text", | ||
"version": "1599016601134", | ||
"content": { | ||
"message": "Let's head out for lunch in 15 minutes." | ||
}, | ||
"senderDisplayName": "Jane", | ||
"createdOn": "2020-06-10T05:50:49.3180000Z", | ||
"senderCommunicationIdentifier": { | ||
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", | ||
"communicationUser": { | ||
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" | ||
} | ||
}, | ||
"metadata": { | ||
"someKey1": "someValue1", | ||
"someKey2": "someValue2" | ||
} | ||
} | ||
}, | ||
"401": { | ||
"body": { | ||
"error": { | ||
"code": "Unauthorized", | ||
"message": "Request is not authorized." | ||
} | ||
} | ||
}, | ||
"403": { | ||
"body": { | ||
"error": { | ||
"code": "Forbidden", | ||
"message": "User is not allowed to perform specified action." | ||
} | ||
} | ||
}, | ||
"429": { | ||
"body": { | ||
"error": { | ||
"code": "TooManyRequests", | ||
"message": "Rate limit exceeded." | ||
} | ||
} | ||
}, | ||
"503": { | ||
"body": { | ||
"error": { | ||
"code": "ServiceUnavailable", | ||
"message": "The server is currently unable to handle the request." | ||
} | ||
} | ||
} | ||
} | ||
} |
166 changes: 166 additions & 0 deletions
166
...lane/Chat/preview/2021-10-01-preview7/examples/Messages_ListChatMessagesWithPageSize.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,166 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.westus.communications.azure.com", | ||
"api-version": "2021-10-01-preview7", | ||
"chatThreadId": "19:[email protected]", | ||
"maxPageSize": 5 | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "1593107077690", | ||
"type": "text", | ||
"version": "1593107077683", | ||
"sequenceId": "5", | ||
"content": { | ||
"message": "So where should we get lunch from today?" | ||
}, | ||
"senderDisplayName": "Jane", | ||
"createdOn": "2020-06-25T17:44:37.6830000Z", | ||
"senderCommunicationIdentifier": { | ||
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", | ||
"communicationUser": { | ||
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "1593107077683", | ||
"type": "text", | ||
"sequenceId": "4", | ||
"version": "1593107077683", | ||
"content": { | ||
"message": "Let's use this chat to decide what to get for lunch today." | ||
}, | ||
"senderDisplayName": "Jane", | ||
"createdOn": "2020-06-25T17:44:37.6830000Z", | ||
"senderCommunicationIdentifier": { | ||
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", | ||
"communicationUser": { | ||
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "1593107046498", | ||
"type": "text", | ||
"sequenceId": "3", | ||
"version": "1593107046498", | ||
"content": { | ||
"message": "Good morning everyone!" | ||
}, | ||
"senderDisplayName": "Jane", | ||
"createdOn": "2020-06-25T17:44:06.4980000Z", | ||
"senderCommunicationIdentifier": { | ||
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", | ||
"communicationUser": { | ||
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "1593106976785", | ||
"type": "topicUpdated", | ||
"sequenceId": "2", | ||
"version": "1593106976785", | ||
"content": { | ||
"initiatorCommunicationIdentifier": { | ||
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", | ||
"communicationUser": { | ||
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" | ||
} | ||
}, | ||
"topic": "Lunch" | ||
}, | ||
"createdOn": "2020-06-25T17:42:56.7850000Z" | ||
}, | ||
{ | ||
"id": "1593106976753", | ||
"type": "participantAdded", | ||
"version": "1593106976753", | ||
"sequenceId": "1", | ||
"content": { | ||
"initiatorCommunicationIdentifier": { | ||
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", | ||
"communicationUser": { | ||
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" | ||
} | ||
}, | ||
"participants": [ | ||
{ | ||
"communicationIdentifier": { | ||
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", | ||
"communicationUser": { | ||
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" | ||
} | ||
}, | ||
"roleIds": [ | ||
"8540c0de-899f-5cce-acb5-3ec493af3800_ce2142fd-aa87-435d-bacf-16efe5ae70aa" | ||
] | ||
}, | ||
{ | ||
"communicationIdentifier": { | ||
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_c94ff260-162d-46d6-94fd-e79f4d213715", | ||
"communicationUser": { | ||
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_c94ff260-162d-46d6-94fd-e79f4d213715" | ||
} | ||
}, | ||
"roleIds": [ | ||
"8540c0de-899f-5cce-acb5-3ec493af3800_ce2142fd-aa87-435d-bacf-16efe5ae70aa" | ||
] | ||
}, | ||
{ | ||
"communicationIdentifier": { | ||
"rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_f13a9208-0bb8-45c0-916c-f3ed922728ce", | ||
"communicationUser": { | ||
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_f13a9208-0bb8-45c0-916c-f3ed922728ce" | ||
} | ||
}, | ||
"roleIds": [ | ||
"8540c0de-899f-5cce-acb5-3ec493af3800_ce2142fd-aa87-435d-bacf-16efe5ae70aa" | ||
] | ||
} | ||
] | ||
}, | ||
"createdOn": "2020-06-25T17:42:56.7530000Z" | ||
} | ||
], | ||
"nextLink": "https://contoso.westus.communications.azure.com/chat/threads/19:[email protected]/messages?syncState=3e4700000031393a756e6930315f7a626e68336e74326466756666657a6333736f7837646f67377766686b36793571653272776c6e66686c68647a69726968647071407468726561642e763201451fe6e77201000004357fea72010000&startTime=0&maxPageSize=5&api-version=2021-10-01-preview7" | ||
} | ||
}, | ||
"401": { | ||
"body": { | ||
"error": { | ||
"code": "Unauthorized", | ||
"message": "Request is not authorized." | ||
} | ||
} | ||
}, | ||
"403": { | ||
"body": { | ||
"error": { | ||
"code": "Forbidden", | ||
"message": "User is not allowed to perform specified action." | ||
} | ||
} | ||
}, | ||
"429": { | ||
"body": { | ||
"error": { | ||
"code": "TooManyRequests", | ||
"message": "Rate limit exceeded." | ||
} | ||
} | ||
}, | ||
"503": { | ||
"body": { | ||
"error": { | ||
"code": "ServiceUnavailable", | ||
"message": "The server is currently unable to handle the request." | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.