Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new specification for chat - release 2020-11-01-preview3 #11716

Merged
merged 10 commits into from
Dec 16, 2020

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"parameters": {
"endpoint": "https://contoso.westus.communications.azure.com",
"api-version": "2020-11-01-preview3",
"chatThreadId": "19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2",
"maxPageSize": 2
},
"responses": {
"200": {
"body": {
"value": [{
"senderId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",
"chatMessageId": "1591137790240",
"readOn": "2020-06-06T05:55:41.6460000Z"
},
{
"senderId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c00a",
"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=2020-11-01-preview3"
}
},
"401": {
"body": {
"code": "Unauthorized",
"message": "Request is not authorized."
}
},
"403": {
"body": {
"code": "Forbidden",
"message": "User is not allowed to perform specified action."
}
},
"429": {
"body": {
"code": "TooManyRequests",
"message": "Rate limit exceeded."
}
},
"503": {
"body": {
"code": "ServiceUnavailable",
"message": "The server is currently unable to handle the request."
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"senderId": "19:[email protected]"
}
],
"nextLink": "https://contoso.westus.communications.azure.com/chat/threads/19:[email protected]/messages?syncState=3e4700000031393a756e6930315f7a626e68336e74326466756666657a6333736f7837646f67377766686b36793571653272776c6e66686c68647a69726968647071407468726561642e763201451fe6e77201000004357fea72010000&startTime=0&maxPageSize=5&api-version=2020-09-21-preview2"
"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"
}
},
"401": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,20 @@
},
"responses": {
"201": {
"headers": {
"Azure-Acs-InvalidParticipants": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10c,403|8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10a,404"
"body": {
"errors": {
"invalidParticipants": [{
"target": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10c",
"code": "403",
"message": "Permissions check failed"
},
{
"target": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10a",
"code": "404",
"message": "Not found"
}
]
}
}
},
"401": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"parameters": {
"endpoint": "https://contoso.westus.communications.azure.com",
"api-version": "2020-11-01-preview3",
"chatThreadId": "19:[email protected]",
"maxPageSize": 2
},
"responses": {
"200": {
"body": {
"value": [{
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10a",
"displayName": "Jane",
"shareHistoryTime": "2020-06-06T05:55:41Z"
},
{
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",
"displayName": "Alex",
"shareHistoryTime": "2020-06-06T05:55:41Z"
}
],
"nextLink": "https://contoso.westus.communications.azure.com/chat/threads/19:[email protected]/participants?skip=2&maxPageSize=2&api-version=2020-11-01-preview3"
}
},
"401": {
"body": {
"code": "Unauthorized",
"message": "Request is not authorized."
}
},
"403": {
"body": {
"code": "Forbidden",
"message": "User is not allowed to perform specified action."
}
},
"429": {
"body": {
"code": "TooManyRequests",
"message": "Rate limit exceeded."
}
},
"503": {
"body": {
"code": "ServiceUnavailable",
"message": "The server is currently unable to handle the request."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"parameters": {
"endpoint": "https://contoso.westus.communications.azure.com",
"api-version": "2020-11-01-preview3",
"chatThreadId": "19:[email protected]",
"addChatThreadMembersRequest": {
"members": [{
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",
"displayName": "Alex",
"shareHistoryTime": "2020-06-06T05:55:41Z"
},
{
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10a",
"displayName": "Peter",
"shareHistoryTime": "2020-06-06T05:55:41Z"
},
{
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10c",
"displayName": "Rama",
"shareHistoryTime": "2020-06-06T05:55:41Z"
}
]
}
},
"responses": {
"207": {
"multipleStatus": [{
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10a",
"statusCode": 403,
"message": "Permissions check failed"
},
{
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",
"statusCode": 201
},
{
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10c",
"statusCode": 201
}
]
},
"401": {
"body": {
"code": "Unauthorized",
"message": "Request is not authorized."
}
},
"403": {
"body": {
"code": "Forbidden",
"message": "User is not allowed to perform specified action."
}
},
"429": {
"body": {
"code": "TooManyRequests",
"message": "Rate limit exceeded."
}
},
"503": {
"body": {
"code": "ServiceUnavailable",
"message": "The server is currently unable to handle the request."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"endpoint": "https://contoso.westus.communications.azure.com",
"api-version": "2020-11-01-preview3",
"chatThreadId": "19:[email protected]"
},
"responses": {
"200": {
"body": {
"value": [{
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10a",
"displayName": "Jane",
"shareHistoryTime": "2020-06-06T05:55:41Z"
},
{
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",
"displayName": "Alex",
"shareHistoryTime": "2020-06-06T05:55:41Z"
}
],
"nextLink": null
}
},
"401": {
"body": {
"code": "Unauthorized",
"message": "Request is not authorized."
}
},
"403": {
"body": {
"code": "Forbidden",
"message": "User is not allowed to perform specified action."
}
},
"429": {
"body": {
"code": "TooManyRequests",
"message": "Rate limit exceeded."
}
},
"503": {
"body": {
"code": "ServiceUnavailable",
"message": "The server is currently unable to handle the request."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"endpoint": "https://contoso.westus.communications.azure.com",
"api-version": "2020-11-01-preview3",
"chatThreadId": "19:[email protected]",
"chatMemberId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10a"
},
"responses": {
"204": {},
"401": {
"body": {
"code": "Unauthorized",
"message": "Request is not authorized."
}
},
"403": {
"body": {
"code": "Forbidden",
"message": "User is not allowed to perform specified action."
}
},
"429": {
"body": {
"code": "TooManyRequests",
"message": "Rate limit exceeded."
}
},
"503": {
"body": {
"code": "ServiceUnavailable",
"message": "The server is currently unable to handle the request."
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,28 @@
"responses": {
"201": {
"headers": {
"Location": "https://contoso.westus.communications.azure.com/chat/threads/19%3Auni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2",
"Azure-Acs-InvalidParticipants": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10c,403|8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10d,404"
"Location": "https://contoso.westus.communications.azure.com/chat/threads/19%3Auni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2"
},
"body": {
"id": "19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2",
"topic": "Lunch",
"createdOn": "2020-06-06T05:55:41.6460000Z",
"createdBy": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",
"participants": [{
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10a",
"shareHistoryTime": "2020-06-06T05:55:41Z"
},
{
"id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",
"shareHistoryTime": "2020-06-06T05:55:41Z"
}
]
"chatThread": {
"id": "19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2",
"topic": "Lunch",
"createdOn": "2020-06-06T05:55:41.6460000Z",
"createdBy": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
},
"errors": {
"invalidParticipants": [{
"target": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10c",
"code": "403",
"message": "Permissions check failed"
},
{
"target": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10d",
"code": "404",
"message": "Not found"
}
]
}
}
},
"401": {
Expand Down
Loading