Skip to content

Commit 2083db7

Browse files
vikrampraveenVikram Praveen Kumar
andauthored
Updating AzureCommunicationServices Chat Events Schema for MRI->CommunicationIdentifier transition (Azure#13048)
* Add new communicationIdentifier properties and participant events * Remove deprecated properties and events * Fix one more member to participant * Create an alias for CommunicationIdentifierModel * Stick to "CommunicationIdentifierModel" Revert "Create an alias for CommunicationIdentifierModel" This reverts commit 19ef901eaca0048c0e4c70a9a9ed5633b0b11036. * Rename ACS to Acs Co-authored-by: Vikram Praveen Kumar <[email protected]>
1 parent 644ed41 commit 2083db7

File tree

1 file changed

+56
-56
lines changed

1 file changed

+56
-56
lines changed

specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
},
88
"paths": {},
99
"definitions": {
10-
"ACSChatMessageReceivedEventData": {
10+
"AcsChatMessageReceivedEventData": {
1111
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageReceived event.",
1212
"allOf": [
1313
{
14-
"$ref": "#/definitions/ACSChatMessageEventBaseProperties"
14+
"$ref": "#/definitions/AcsChatMessageEventBaseProperties"
1515
}
1616
],
1717
"properties": {
@@ -21,11 +21,11 @@
2121
}
2222
}
2323
},
24-
"ACSChatMessageEditedEventData": {
24+
"AcsChatMessageEditedEventData": {
2525
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageEdited event.",
2626
"allOf": [
2727
{
28-
"$ref": "#/definitions/ACSChatMessageEventBaseProperties"
28+
"$ref": "#/definitions/AcsChatMessageEventBaseProperties"
2929
}
3030
],
3131
"properties": {
@@ -40,11 +40,11 @@
4040
}
4141
}
4242
},
43-
"ACSChatMessageDeletedEventData": {
43+
"AcsChatMessageDeletedEventData": {
4444
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageDeleted event.",
4545
"allOf": [
4646
{
47-
"$ref": "#/definitions/ACSChatMessageEventBaseProperties"
47+
"$ref": "#/definitions/AcsChatMessageEventBaseProperties"
4848
}
4949
],
5050
"properties": {
@@ -55,17 +55,17 @@
5555
}
5656
}
5757
},
58-
"ACSChatThreadCreatedWithUserEventData": {
58+
"AcsChatThreadCreatedWithUserEventData": {
5959
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadCreatedWithUser event.",
6060
"allOf": [
6161
{
62-
"$ref": "#/definitions/ACSChatThreadEventBaseProperties"
62+
"$ref": "#/definitions/AcsChatThreadEventBaseProperties"
6363
}
6464
],
6565
"properties": {
66-
"createdBy": {
67-
"description": "The MRI of the creator of the thread",
68-
"type": "string"
66+
"createdByCommunicationIdentifier": {
67+
"description": "The communication identifier of the user who created the thread",
68+
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
6969
},
7070
"properties": {
7171
"description": "The thread properties",
@@ -74,26 +74,26 @@
7474
"type": "object"
7575
}
7676
},
77-
"members": {
78-
"description": "The list of properties of users who are part of the thread",
77+
"participants": {
78+
"description": "The list of properties of participants who are part of the thread",
7979
"type": "array",
8080
"items": {
81-
"$ref": "#/definitions/ACSChatThreadMemberProperties"
81+
"$ref": "#/definitions/AcsChatThreadParticipantProperties"
8282
}
8383
}
8484
}
8585
},
86-
"ACSChatThreadWithUserDeletedEventData": {
86+
"AcsChatThreadWithUserDeletedEventData": {
8787
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadWithUserDeleted event.",
8888
"allOf": [
8989
{
90-
"$ref": "#/definitions/ACSChatThreadEventBaseProperties"
90+
"$ref": "#/definitions/AcsChatThreadEventBaseProperties"
9191
}
9292
],
9393
"properties": {
94-
"deletedBy": {
95-
"description": "The MRI of the user who deleted the thread",
96-
"type": "string"
94+
"deletedByCommunicationIdentifier": {
95+
"description": "The communication identifier of the user who deleted the thread",
96+
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
9797
},
9898
"deleteTime": {
9999
"description": "The deletion time of the thread",
@@ -102,17 +102,17 @@
102102
}
103103
}
104104
},
105-
"ACSChatThreadPropertiesUpdatedPerUserEventData": {
105+
"AcsChatThreadPropertiesUpdatedPerUserEventData": {
106106
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser event.",
107107
"allOf": [
108108
{
109-
"$ref": "#/definitions/ACSChatThreadEventBaseProperties"
109+
"$ref": "#/definitions/AcsChatThreadEventBaseProperties"
110110
}
111111
],
112112
"properties": {
113-
"editedBy": {
114-
"description": "The MRI of the user who updated the thread properties",
115-
"type": "string"
113+
"editedByCommunicationIdentifier": {
114+
"description": "The communication identifier of the user who updated the thread properties",
115+
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
116116
},
117117
"editTime": {
118118
"description": "The time at which the properties of the thread were updated",
@@ -128,11 +128,11 @@
128128
}
129129
}
130130
},
131-
"ACSChatMemberAddedToThreadWithUserEventData": {
132-
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMemberAddedToThreadWithUser event.",
131+
"AcsChatParticipantAddedToThreadWithUserEventData": {
132+
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantAddedToThreadWithUser event.",
133133
"allOf": [
134134
{
135-
"$ref": "#/definitions/ACSChatThreadEventBaseProperties"
135+
"$ref": "#/definitions/AcsChatThreadEventBaseProperties"
136136
}
137137
],
138138
"properties": {
@@ -141,21 +141,21 @@
141141
"format": "date-time",
142142
"type": "string"
143143
},
144-
"addedBy": {
145-
"description": "The MRI of the user who added the user",
146-
"type": "string"
144+
"addedByCommunicationIdentifier": {
145+
"description": "The communication identifier of the user who added the user",
146+
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
147147
},
148-
"memberAdded": {
148+
"participantAdded": {
149149
"description": "The details of the user who was added",
150-
"$ref": "#/definitions/ACSChatThreadMemberProperties"
150+
"$ref": "#/definitions/AcsChatThreadParticipantProperties"
151151
}
152152
}
153153
},
154-
"ACSChatMemberRemovedFromThreadWithUserEventData": {
155-
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMemberRemovedFromThreadWithUser event.",
154+
"AcsChatParticipantRemovedFromThreadWithUserEventData": {
155+
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser event.",
156156
"allOf": [
157157
{
158-
"$ref": "#/definitions/ACSChatThreadEventBaseProperties"
158+
"$ref": "#/definitions/AcsChatThreadEventBaseProperties"
159159
}
160160
],
161161
"properties": {
@@ -164,13 +164,13 @@
164164
"format": "date-time",
165165
"type": "string"
166166
},
167-
"removedBy": {
168-
"description": "The MRI of the user who removed the user",
169-
"type": "string"
167+
"removedByCommunicationIdentifier": {
168+
"description": "The communication identifier of the user who removed the user",
169+
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
170170
},
171-
"memberRemoved": {
171+
"participantRemoved": {
172172
"description": "The details of the user who was removed",
173-
"$ref": "#/definitions/ACSChatThreadMemberProperties"
173+
"$ref": "#/definitions/AcsChatThreadParticipantProperties"
174174
}
175175
}
176176
},
@@ -223,11 +223,11 @@
223223
}
224224
}
225225
},
226-
"ACSChatThreadEventBaseProperties": {
226+
"AcsChatThreadEventBaseProperties": {
227227
"description": "Schema of common properties of all chat thread events",
228228
"allOf": [
229229
{
230-
"$ref": "#/definitions/ACSChatEventBaseProperties"
230+
"$ref": "#/definitions/AcsChatEventBaseProperties"
231231
}
232232
],
233233
"properties": {
@@ -243,21 +243,21 @@
243243
}
244244
}
245245
},
246-
"ACSChatMessageEventBaseProperties": {
246+
"AcsChatMessageEventBaseProperties": {
247247
"description": "Schema of common properties of all chat message events",
248248
"allOf": [
249249
{
250-
"$ref": "#/definitions/ACSChatEventBaseProperties"
250+
"$ref": "#/definitions/AcsChatEventBaseProperties"
251251
}
252252
],
253253
"properties": {
254254
"messageId": {
255255
"description": "The chat message id",
256256
"type": "string"
257257
},
258-
"senderId": {
259-
"description": "The MRI of the sender",
260-
"type": "string"
258+
"senderCommunicationIdentifier": {
259+
"description": "The communication identifier of the sender",
260+
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
261261
},
262262
"senderDisplayName": {
263263
"description": "The display name of the sender",
@@ -279,13 +279,13 @@
279279
}
280280
}
281281
},
282-
"ACSChatEventBaseProperties": {
282+
"AcsChatEventBaseProperties": {
283283
"description": "Schema of common properties of all chat events",
284284
"type": "object",
285285
"properties": {
286-
"recipientId": {
287-
"description": "The MRI of the target user",
288-
"type": "string"
286+
"recipientCommunicationIdentifier": {
287+
"description": "The communication identifier of the target user",
288+
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
289289
},
290290
"transactionId": {
291291
"description": "The transaction id will be used as co-relation vector",
@@ -297,17 +297,17 @@
297297
}
298298
}
299299
},
300-
"ACSChatThreadMemberProperties": {
301-
"description": "Schema of the chat thread member",
300+
"AcsChatThreadParticipantProperties": {
301+
"description": "Schema of the chat thread participant",
302302
"type": "object",
303303
"properties": {
304304
"displayName": {
305305
"description": "The name of the user",
306306
"type": "string"
307307
},
308-
"memberId": {
309-
"description": "The MRI of the user",
310-
"type": "string"
308+
"participantCommunicationIdentifier": {
309+
"description": "The communication identifier of the user",
310+
"$ref": "../../../../../communication/data-plane/Microsoft.CommunicationServicesCommon/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
311311
}
312312
}
313313
},

0 commit comments

Comments
 (0)