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

Updating AzureCommunicationServices Chat Events Schema for MRI->CommunicationIdentifier transition #13048

Merged
merged 6 commits into from
Feb 19, 2021
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
}
],
"properties": {
"createdBy": {
"description": "The MRI of the creator of the thread",
"type": "string"
"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",
Expand All @@ -74,11 +74,11 @@
"type": "object"
}
},
"members": {
"description": "The list of properties of users who are part of the thread",
"participants": {
"description": "The list of properties of participants who are part of the thread",
"type": "array",
"items": {
"$ref": "#/definitions/ACSChatThreadMemberProperties"
"$ref": "#/definitions/ACSChatThreadParticipantProperties"
}
}
}
Expand All @@ -91,9 +91,9 @@
}
],
"properties": {
"deletedBy": {
"description": "The MRI of the user who deleted the thread",
"type": "string"
"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",
Expand All @@ -110,9 +110,9 @@
}
],
"properties": {
"editedBy": {
"description": "The MRI of the user who updated the thread properties",
"type": "string"
"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",
Expand All @@ -128,8 +128,8 @@
}
}
},
"ACSChatMemberAddedToThreadWithUserEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMemberAddedToThreadWithUser event.",
"ACSChatParticipantAddedToThreadWithUserEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantAddedToThreadWithUser event.",
"allOf": [
{
"$ref": "#/definitions/ACSChatThreadEventBaseProperties"
Expand All @@ -141,18 +141,18 @@
"format": "date-time",
"type": "string"
},
"addedBy": {
"description": "The MRI of the user who added the user",
"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"
},
"memberAdded": {
"participantAdded": {
"description": "The details of the user who was added",
"$ref": "#/definitions/ACSChatThreadMemberProperties"
"$ref": "#/definitions/ACSChatThreadParticipantProperties"
}
}
},
"ACSChatMemberRemovedFromThreadWithUserEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMemberRemovedFromThreadWithUser event.",
"ACSChatParticipantRemovedFromThreadWithUserEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser event.",
"allOf": [
{
"$ref": "#/definitions/ACSChatThreadEventBaseProperties"
Expand All @@ -164,13 +164,13 @@
"format": "date-time",
"type": "string"
},
"removedBy": {
"description": "The MRI of the user who removed the user",
"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"
},
"memberRemoved": {
"participantRemoved": {
"description": "The details of the user who was removed",
"$ref": "#/definitions/ACSChatThreadMemberProperties"
"$ref": "#/definitions/ACSChatThreadParticipantProperties"
}
}
},
Expand Down Expand Up @@ -255,9 +255,9 @@
"description": "The chat message id",
"type": "string"
},
"senderId": {
"description": "The MRI of the sender",
"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",
Expand All @@ -283,9 +283,9 @@
"description": "Schema of common properties of all chat events",
"type": "object",
"properties": {
"recipientId": {
"description": "The MRI of the target user",
"type": "string"
"recipientCommunicationIdentifier": {
"description": "The communication identifier of the target user",
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
},
"transactionId": {
"description": "The transaction id will be used as co-relation vector",
Expand All @@ -297,17 +297,17 @@
}
}
},
"ACSChatThreadMemberProperties": {
"description": "Schema of the chat thread member",
"ACSChatThreadParticipantProperties": {
"description": "Schema of the chat thread participant",
"type": "object",
"properties": {
"displayName": {
"description": "The name of the user",
"type": "string"
},
"memberId": {
"description": "The MRI of the user",
"type": "string"
"participantCommunicationIdentifier": {
"description": "The communication identifier of the user",
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
}
}
},
Expand Down