Skip to content

Commit

Permalink
Add ACS thread level chat events to the eventgrid swagger (#13075)
Browse files Browse the repository at this point in the history
* Add new communicationIdentifier properties and participant events

* Remove deprecated properties and events

* Add thread-level chat events to the swagger

* Replace MRI with CommunicationIdentifier and member with participant

* Rename event type names

* fix typo

Co-authored-by: Vikram Praveen Kumar <[email protected]>
  • Loading branch information
vikrampraveen and Vikram Praveen Kumar authored Feb 22, 2021
1 parent a23007d commit 82d97c3
Showing 1 changed file with 243 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@
}
}
},
"AcsChatMessageReceivedInThreadEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageReceivedInThread event.",
"allOf": [
{
"$ref": "#/definitions/AcsChatMessageEventInThreadBaseProperties"
}
],
"properties": {
"messageBody": {
"description": "The body of the chat message",
"type": "string"
}
}
},
"AcsChatMessageEditedEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageEdited event.",
"allOf": [
Expand All @@ -40,6 +54,25 @@
}
}
},
"AcsChatMessageEditedInThreadEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageEditedInThread event.",
"allOf": [
{
"$ref": "#/definitions/AcsChatMessageEventInThreadBaseProperties"
}
],
"properties": {
"messageBody": {
"description": "The body of the chat message",
"type": "string"
},
"editTime": {
"description": "The time at which the message was edited",
"format": "date-time",
"type": "string"
}
}
},
"AcsChatMessageDeletedEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageDeleted event.",
"allOf": [
Expand All @@ -55,6 +88,21 @@
}
}
},
"AcsChatMessageDeletedInThreadEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageDeletedInThread event.",
"allOf": [
{
"$ref": "#/definitions/AcsChatMessageEventInThreadBaseProperties"
}
],
"properties": {
"deleteTime": {
"description": "The time at which the message was deleted",
"format": "date-time",
"type": "string"
}
}
},
"AcsChatThreadCreatedWithUserEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadCreatedWithUser event.",
"allOf": [
Expand Down Expand Up @@ -83,6 +131,34 @@
}
}
},
"AcsChatThreadCreatedEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadCreatedWithUser event.",
"allOf": [
{
"$ref": "#/definitions/AcsChatThreadEventInThreadBaseProperties"
}
],
"properties": {
"createdByCommunicationIdentifier": {
"description": "The communication identifier of the user who created the thread",
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
},
"properties": {
"description": "The thread properties",
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"participants": {
"description": "The list of properties of participants who are part of the thread",
"type": "array",
"items": {
"$ref": "#/definitions/AcsChatThreadParticipantProperties"
}
}
}
},
"AcsChatThreadWithUserDeletedEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadWithUserDeleted event.",
"allOf": [
Expand All @@ -102,6 +178,25 @@
}
}
},
"AcsChatThreadDeletedEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadDeleted event.",
"allOf": [
{
"$ref": "#/definitions/AcsChatThreadEventInThreadBaseProperties"
}
],
"properties": {
"deletedByCommunicationIdentifier": {
"description": "The communication identifier of the user who deleted the thread",
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
},
"deleteTime": {
"description": "The deletion time of the thread",
"format": "date-time",
"type": "string"
}
}
},
"AcsChatThreadPropertiesUpdatedPerUserEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser event.",
"allOf": [
Expand All @@ -128,6 +223,32 @@
}
}
},
"AcsChatThreadPropertiesUpdatedEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadPropertiesUpdated event.",
"allOf": [
{
"$ref": "#/definitions/AcsChatThreadEventInThreadBaseProperties"
}
],
"properties": {
"editedByCommunicationIdentifier": {
"description": "The communication identifier of the user who updated the thread properties",
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
},
"editTime": {
"description": "The time at which the properties of the thread were updated",
"format": "date-time",
"type": "string"
},
"properties": {
"description": "The updated thread properties",
"type": "object",
"additionalProperties": {
"type": "object"
}
}
}
},
"AcsChatParticipantAddedToThreadWithUserEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantAddedToThreadWithUser event.",
"allOf": [
Expand Down Expand Up @@ -174,6 +295,62 @@
}
}
},
"AcsChatParticipantAddedToThreadEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantAddedToThread event.",
"allOf": [
{
"$ref": "#/definitions/AcsChatEventInThreadBaseProperties"
}
],
"properties": {
"time": {
"description": "The time at which the user was added to the thread",
"format": "date-time",
"type": "string"
},
"addedByCommunicationIdentifier": {
"description": "The communication identifier of the user who added the user",
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
},
"participantAdded": {
"description": "The details of the user who was added",
"$ref": "#/definitions/AcsChatThreadParticipantProperties"
},
"version": {
"description": "The version of the thread",
"type": "integer",
"format": "int64"
}
}
},
"AcsChatParticipantRemovedFromThreadEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantRemovedFromThread event.",
"allOf": [
{
"$ref": "#/definitions/AcsChatEventInThreadBaseProperties"
}
],
"properties": {
"time": {
"description": "The time at which the user was removed to the thread",
"format": "date-time",
"type": "string"
},
"removedByCommunicationIdentifier": {
"description": "The communication identifier of the user who removed the user",
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
},
"participantRemoved": {
"description": "The details of the user who was removed",
"$ref": "#/definitions/AcsChatThreadParticipantProperties"
},
"version": {
"description": "The version of the thread",
"type": "integer",
"format": "int64"
}
}
},
"AcsSmsDeliveryReportReceivedEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.SMSDeliveryReportReceived event.",
"allOf": [
Expand Down Expand Up @@ -243,6 +420,26 @@
}
}
},
"AcsChatThreadEventInThreadBaseProperties": {
"description": "Schema of common properties of all chat thread events",
"allOf": [
{
"$ref": "#/definitions/AcsChatEventInThreadBaseProperties"
}
],
"properties": {
"createTime": {
"description": "The original creation time of the thread",
"format": "date-time",
"type": "string"
},
"version": {
"description": "The version of the thread",
"type": "integer",
"format": "int64"
}
}
},
"AcsChatMessageEventBaseProperties": {
"description": "Schema of common properties of all chat message events",
"allOf": [
Expand Down Expand Up @@ -279,6 +476,52 @@
}
}
},
"AcsChatMessageEventInThreadBaseProperties": {
"description": "Schema of common properties of all thread-level chat message events",
"allOf": [
{
"$ref": "#/definitions/AcsChatEventInThreadBaseProperties"
}
],
"properties": {
"messageId": {
"description": "The chat message id",
"type": "string"
},
"senderCommunicationIdentifier": {
"description": "The communication identifier of the sender",
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
},
"senderDisplayName": {
"description": "The display name of the sender",
"type": "string"
},
"composeTime": {
"description": "The original compose time of the message",
"format": "date-time",
"type": "string"
},
"type": {
"description": "The type of the message",
"type": "string"
},
"version": {
"description": "The version of the message",
"type": "integer",
"format": "int64"
}
}
},
"AcsChatEventInThreadBaseProperties": {
"description": "Schema of common properties of all thread-level chat events",
"type": "object",
"properties": {
"threadId": {
"description": "The chat thread id",
"type": "string"
}
}
},
"AcsChatEventBaseProperties": {
"description": "Schema of common properties of all chat events",
"type": "object",
Expand Down

0 comments on commit 82d97c3

Please sign in to comment.