Skip to content

Commit 66c27c4

Browse files
mbutowiczjnlycklama
authored andcommitted
Added Metadata to chat thread and user level events (#26347)
* Added Metadata to chat thread and user level events * Updated examples for each event which has new metadata fields * Apply suggestions for example user metadata * Update example metadata * Fix typo * Remove description from examples and add additional properties value for metadata dictionary to denote type string * Updated remaining examples in cloud-events-schema and event-grid-schema * Removed extra metadata properties
1 parent e47b5ad commit 66c27c4

16 files changed

+110
-0
lines changed

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,13 @@
964964
"type": "object"
965965
}
966966
},
967+
"metadata": {
968+
"description": "The thread metadata",
969+
"type": "object",
970+
"additionalProperties": {
971+
"type": "string"
972+
}
973+
},
967974
"participants": {
968975
"description": "The list of properties of participants who are part of the thread",
969976
"type": "array",
@@ -1060,6 +1067,13 @@
10601067
"format": "date-time",
10611068
"type": "string"
10621069
},
1070+
"metadata": {
1071+
"description": "The thread metadata",
1072+
"type": "object",
1073+
"additionalProperties": {
1074+
"type": "string"
1075+
}
1076+
},
10631077
"properties": {
10641078
"description": "The updated thread properties",
10651079
"type": "object",
@@ -1093,6 +1107,13 @@
10931107
"additionalProperties": {
10941108
"type": "object"
10951109
}
1110+
},
1111+
"metadata": {
1112+
"description": "The thread metadata",
1113+
"type": "object",
1114+
"additionalProperties": {
1115+
"type": "string"
1116+
}
10961117
}
10971118
}
10981119
},
@@ -1655,6 +1676,13 @@
16551676
"participantCommunicationIdentifier": {
16561677
"description": "The communication identifier of the user",
16571678
"$ref": "../../../../../communication/data-plane/Common/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel"
1679+
},
1680+
"metadata": {
1681+
"description": "The metadata of the user",
1682+
"type": "object",
1683+
"additionalProperties": {
1684+
"type": "string"
1685+
}
16581686
}
16591687
}
16601688
},

specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_participant_added_to_thread_with_user.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"communicationUser": {
2020
"id": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8785-1655-373a0d00885f"
2121
}
22+
},
23+
"metadata": {
24+
"key": "value"
2225
}
2326
},
2427
"recipientCommunicationIdentifier": {

specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_participant_removed_from_thread_with_user.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"communicationUser": {
2020
"id": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8785-1655-373a0d00885f"
2121
}
22+
},
23+
"metadata": {
24+
"key": "value"
2225
}
2326
},
2427
"recipientCommunicationIdentifier": {

specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"communicationUser": {
2323
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453"
2424
}
25+
},
26+
"metadata": {
27+
"key": "value"
2528
}
2629
},
2730
{
@@ -31,6 +34,10 @@
3134
"communicationUser": {
3235
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38e6-07fd-084822002467"
3336
}
37+
},
38+
"metadata": {
39+
"key": "value",
40+
"description": "A map of data associated with the participant"
3441
}
3542
},
3643
{
@@ -40,6 +47,9 @@
4047
"communicationUser": {
4148
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38f6-83fe-084822002337"
4249
}
50+
},
51+
"metadata": {
52+
"key": "value"
4353
}
4454
},
4555
{
@@ -49,9 +59,15 @@
4959
"communicationUser": {
5060
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38e3-e1fe-084822002c35"
5161
}
62+
},
63+
"metadata": {
64+
"key": "value"
5265
}
5366
}
5467
],
68+
"metadata": {
69+
"key": "value"
70+
},
5571
"createTime": "2021-02-19T16:31:54.365-08:00",
5672
"version": 1613781114365,
5773
"threadId": "19:[email protected]",

specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
"communicationUser": {
3434
"id": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-286d-e1fe-0848220013b9"
3535
}
36+
},
37+
"metadata": {
38+
"key": "value"
3639
}
3740
},
3841
{
@@ -42,9 +45,15 @@
4245
"communicationUser": {
4346
"id": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-289b-07fd-0848220015ea"
4447
}
48+
},
49+
"metadata": {
50+
"key": "value"
4551
}
4652
}
4753
],
54+
"metadata": {
55+
"key": "value"
56+
},
4857
"createTime": "2021-02-18T23:47:26.91Z",
4958
"version": 1613692046910,
5059
"recipientId": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-286e-84f5-08482200181c",

specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"communicationUser": {
2020
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38f3-88f7-084822002454"
2121
}
22+
},
23+
"metadata": {
24+
"key": "value"
2225
}
2326
},
2427
"createTime": "2021-02-19T16:31:54.365-08:00",

specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_removed.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"communicationUser": {
2020
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38e6-07fd-084822002467"
2121
}
22+
},
23+
"metadata": {
24+
"key": "value"
2225
}
2326
},
2427
"createTime": "2021-02-19T16:31:54.365-08:00",

specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_properties_updated_per_user.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"properties": {
1717
"topic": "Communication in Azure"
1818
},
19+
"metadata": {
20+
"key": "value"
21+
},
1922
"createTime": "2021-02-19T00:28:25.864Z",
2023
"version": 1613694508719,
2124
"recipientId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724",

specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"communicationUser": {
1818
"id": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8785-1655-373a0d00885f"
1919
}
20+
},
21+
"metadata": {
22+
"key": "value"
2023
}
2124
},
2225
"recipientCommunicationIdentifier": {

specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"communicationUser": {
1818
"id": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8785-1655-373a0d00885f"
1919
}
20+
},
21+
"metadata": {
22+
"key": "value"
2023
}
2124
},
2225
"recipientCommunicationIdentifier": {

0 commit comments

Comments
 (0)