From a585013d8d67ac0a9ef8450a6b3edbd454489ce4 Mon Sep 17 00:00:00 2001 From: Michael Butowicz Date: Fri, 20 Oct 2023 14:25:25 -0700 Subject: [PATCH 1/8] Added Metadata to chat thread and user level events --- .../AzureCommunicationServices.json | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json index 88da331c7565..a8881b14748e 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json @@ -964,6 +964,10 @@ "type": "object" } }, + "metadata": { + "description": "The thread metadata", + "type": "object" + }, "participants": { "description": "The list of properties of participants who are part of the thread", "type": "array", @@ -998,6 +1002,10 @@ "type": "array", "items": { "$ref": "#/definitions/AcsChatThreadParticipantProperties" + }, + "metadata": { + "description": "The thread metadata", + "type": "object" } } } @@ -1060,6 +1068,10 @@ "format": "date-time", "type": "string" }, + "metadata": { + "description": "The thread metadata", + "type": "object" + }, "properties": { "description": "The updated thread properties", "type": "object", @@ -1093,6 +1105,10 @@ "additionalProperties": { "type": "object" } + }, + "metadata": { + "description": "The thread metadata", + "type": "object" } } }, @@ -1655,6 +1671,10 @@ "participantCommunicationIdentifier": { "description": "The communication identifier of the user", "$ref": "../../../../../communication/data-plane/Common/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel" + }, + "metadata": { + "description": "The metadata of the user", + "type": "object" } } }, From 5c675c245d7c3868c322192f0f537127a26e0d0d Mon Sep 17 00:00:00 2001 From: Michael Butowicz Date: Mon, 23 Oct 2023 17:01:40 -0700 Subject: [PATCH 2/8] Updated examples for each event which has new metadata fields --- .../cloud-events-schema/chat_thread_created.json | 15 ++++++++++++--- .../chat_thread_created_withUser.json | 9 +++++++++ ...hat_participant_added_to_thread_with_user.json | 3 ++- ...participant_removed_from_thread_with_user.json | 3 ++- .../chat_thread_participant_added.json | 3 ++- .../chat_thread_participant_removed.json | 3 ++- .../chat_thread_properties_updated.json | 3 +++ .../chat_thread_properties_updated_per_user.json | 3 +++ 8 files changed, 35 insertions(+), 7 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json index a6c88fa80bf2..09213ab3824b 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json @@ -22,6 +22,9 @@ "communicationUser": { "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453" } + }, + "metadata": { + "botReplyTo": "any" } }, { @@ -31,7 +34,8 @@ "communicationUser": { "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38e6-07fd-084822002467" } - } + }, + "metadata": {} }, { "displayName": "Shawn", @@ -40,7 +44,8 @@ "communicationUser": { "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38f6-83fe-084822002337" } - } + }, + "metadata": {} }, { "displayName": "Anthony", @@ -49,9 +54,13 @@ "communicationUser": { "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38e3-e1fe-084822002c35" } - } + }, + "metadata": {} } ], + "metadata": { + "privateThreadId": "19:d743b110ba1041c88e9832680c6baf21@thread.v2" + }, "createTime": "2021-02-19T16:31:54.365-08:00", "version": 1613781114365, "threadId": "19:e07c8ddc5bab4c059ea9f11d29b544b6@thread.v2", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json index c7f2175a8f1b..25e5750d1416 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json @@ -33,6 +33,9 @@ "communicationUser": { "id": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-286d-e1fe-0848220013b9" } + }, + "metadata": { + "botReplyTo": "any" } }, { @@ -41,10 +44,16 @@ "rawId": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-289b-07fd-0848220015ea", "communicationUser": { "id": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-289b-07fd-0848220015ea" + }, + "metadata": { + "botReplyTo": "any" } } } ], + "metadata": { + "privateThreadId": "19:d743b110ba1041c88e9832680c6baf21@thread.v2" + }, "createTime": "2021-02-18T23:47:26.91Z", "version": 1613692046910, "recipientId": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-286e-84f5-08482200181c", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json index 2392c8fda34d..45b133dd1686 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json @@ -17,7 +17,8 @@ "communicationUser": { "id": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8785-1655-373a0d00885f" } - } + }, + "metadata": {} }, "recipientCommunicationIdentifier": { "rawId": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8781-1655-373a0d00885e", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json index 8723bf9fd8d1..5b028211ec35 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json @@ -17,7 +17,8 @@ "communicationUser": { "id": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8785-1655-373a0d00885f" } - } + }, + "metadata": {} }, "recipientCommunicationIdentifier": { "rawId": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8781-1655-373a0d00885e", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_added.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_added.json index ff483cfb12ff..fd4b16330a74 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_added.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_added.json @@ -17,7 +17,8 @@ "communicationUser": { "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38f3-88f7-084822002454" } - } + }, + "metadata": {} }, "createTime": "2021-02-20T00:31:54.365+00:00", "version": 1613782482822, diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_removed.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_removed.json index 09ead6b13a49..8eb7068658da 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_removed.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_removed.json @@ -17,7 +17,8 @@ "communicationUser": { "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38e6-07fd-084822002467" } - } + }, + "metadata": {} }, "createTime": "2021-02-20T00:31:54.365+00:00", "version": 1613782578096, diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated.json index ecc9dde035e1..e515bcbe5563 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated.json @@ -13,6 +13,9 @@ "properties": { "topic": "Talk about new Thread Events in commuication services" }, + "metadata": { + "privateThreadId": "19:d743b110ba1041c88e9832680c6baf21@thread.v2" + }, "createTime": "2021-02-20T00:00:40.126+00:00", "version": 1613779447695, "threadId": "19:9e8eefe67b3c470a8187b4c2b00240bc@thread.v2", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated_per_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated_per_user.json index 384209f7c521..d51826d22cb7 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated_per_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated_per_user.json @@ -14,6 +14,9 @@ "properties": { "topic": "Communication in Azure" }, + "metadata": { + "privateThreadId": "19:d743b110ba1041c88e9832680c6baf21@thread.v2" + }, "createTime": "2021-02-19T00:28:25.864Z", "version": 1613694508719, "recipientId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724", From 7353bc060d943c9330b650f8060a2be245fd5c93 Mon Sep 17 00:00:00 2001 From: Michael Butowicz Date: Wed, 25 Oct 2023 16:03:21 -0700 Subject: [PATCH 3/8] Apply suggestions for example user metadata --- .../chat_thread_created.json | 18 ++++++++++++++---- .../chat_thread_created_withUser.json | 6 ++++-- .../chat_thread_participant_added.json | 4 ++++ ..._participant_added_to_thread_with_user.json | 5 ++++- ...ticipant_removed_from_thread_with_user.json | 5 ++++- .../chat_thread_participant_added.json | 5 ++++- .../chat_thread_participant_removed.json | 5 ++++- 7 files changed, 38 insertions(+), 10 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json index 09213ab3824b..ecb505e3250e 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json @@ -24,7 +24,8 @@ } }, "metadata": { - "botReplyTo": "any" + "key": "value", + "description" : "A map of data associated with the message" } }, { @@ -35,7 +36,10 @@ "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38e6-07fd-084822002467" } }, - "metadata": {} + "metadata": { + "key": "value", + "description": "A map of data associated with the message" + } }, { "displayName": "Shawn", @@ -45,7 +49,10 @@ "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38f6-83fe-084822002337" } }, - "metadata": {} + "metadata": { + "key": "value", + "description": "A map of data associated with the message" + } }, { "displayName": "Anthony", @@ -55,7 +62,10 @@ "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38e3-e1fe-084822002c35" } }, - "metadata": {} + "metadata": { + "key": "value", + "description": "A map of data associated with the message" + } } ], "metadata": { diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json index 25e5750d1416..f3d865932523 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json @@ -35,7 +35,8 @@ } }, "metadata": { - "botReplyTo": "any" + "key": "value", + "description": "A map of data associated with the message" } }, { @@ -46,7 +47,8 @@ "id": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-289b-07fd-0848220015ea" }, "metadata": { - "botReplyTo": "any" + "key": "value", + "description": "A map of data associated with the message" } } } diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json index 2bdd3f896269..a3800b537eee 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json @@ -18,6 +18,10 @@ "rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38f3-88f7-084822002454", "communicationUser": { "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38f3-88f7-084822002454" + }, + "metadata": { + "key": "value", + "description": "A map of data associated with the message" } } }, diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json index 45b133dd1686..0f3c24b69dcd 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json @@ -18,7 +18,10 @@ "id": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8785-1655-373a0d00885f" } }, - "metadata": {} + "metadata": { + "key": "value", + "description": "A map of data associated with the message" + } }, "recipientCommunicationIdentifier": { "rawId": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8781-1655-373a0d00885e", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json index 5b028211ec35..718d23856e1d 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json @@ -18,7 +18,10 @@ "id": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8785-1655-373a0d00885f" } }, - "metadata": {} + "metadata": { + "key": "value", + "description": "A map of data associated with the message" + } }, "recipientCommunicationIdentifier": { "rawId": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8781-1655-373a0d00885e", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_added.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_added.json index fd4b16330a74..88b698e88e73 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_added.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_added.json @@ -18,7 +18,10 @@ "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38f3-88f7-084822002454" } }, - "metadata": {} + "metadata": { + "key": "value", + "description": "A map of data associated with the message" + } }, "createTime": "2021-02-20T00:31:54.365+00:00", "version": 1613782482822, diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_removed.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_removed.json index 8eb7068658da..bb2bbf1465b3 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_removed.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_removed.json @@ -18,7 +18,10 @@ "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38e6-07fd-084822002467" } }, - "metadata": {} + "metadata": { + "key": "value", + "description": "A map of data associated with the message" + } }, "createTime": "2021-02-20T00:31:54.365+00:00", "version": 1613782578096, From 04ebf7ef022a2264013f3319738c59fe2afee8ad Mon Sep 17 00:00:00 2001 From: Michael Butowicz Date: Wed, 25 Oct 2023 16:23:32 -0700 Subject: [PATCH 4/8] Update example metadata --- .../cloud-events-schema/chat_thread_created.json | 11 ++++++----- .../chat_thread_created_withUser.json | 7 ++++--- .../chat_thread_participant_added.json | 2 +- .../chat_thread_participant_removed.json | 4 ++++ .../chat_participant_added_to_thread_with_user.json | 2 +- ...hat_participant_removed_from_thread_with_user.json | 2 +- .../chat_thread_properties_updated.json | 3 ++- .../chat_thread_properties_updated_per_user.json | 3 ++- 8 files changed, 21 insertions(+), 13 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json index ecb505e3250e..685738fe38c8 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json @@ -25,7 +25,7 @@ }, "metadata": { "key": "value", - "description" : "A map of data associated with the message" + "description": "A map of data associated with the participant" } }, { @@ -38,7 +38,7 @@ }, "metadata": { "key": "value", - "description": "A map of data associated with the message" + "description": "A map of data associated with the participant" } }, { @@ -51,7 +51,7 @@ }, "metadata": { "key": "value", - "description": "A map of data associated with the message" + "description": "A map of data associated with the participant" } }, { @@ -64,12 +64,13 @@ }, "metadata": { "key": "value", - "description": "A map of data associated with the message" + "description": "A map of data associated with the participant" } } ], "metadata": { - "privateThreadId": "19:d743b110ba1041c88e9832680c6baf21@thread.v2" + "key": "value", + "description": "A map of data associated with the thread" }, "createTime": "2021-02-19T16:31:54.365-08:00", "version": 1613781114365, diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json index f3d865932523..02f652049dfe 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json @@ -36,7 +36,7 @@ }, "metadata": { "key": "value", - "description": "A map of data associated with the message" + "description": "A map of data associated with the participant" } }, { @@ -48,13 +48,14 @@ }, "metadata": { "key": "value", - "description": "A map of data associated with the message" + "description": "A map of data associated with the participant" } } } ], "metadata": { - "privateThreadId": "19:d743b110ba1041c88e9832680c6baf21@thread.v2" + "key": "value", + "description": "A map of data associated with the thread" }, "createTime": "2021-02-18T23:47:26.91Z", "version": 1613692046910, diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json index a3800b537eee..306bcd755460 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json @@ -21,7 +21,7 @@ }, "metadata": { "key": "value", - "description": "A map of data associated with the message" + "description": "A map of data associated with the participant" } } }, diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_removed.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_removed.json index 0b375f8ed7c1..1f38cb6d4984 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_removed.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_removed.json @@ -19,6 +19,10 @@ "communicationUser": { "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38e6-07fd-084822002467" } + }, + "metadata": { + "key": "value", + "description": "A map of data associated with the participant" } }, "createTime": "2021-02-19T16:31:54.365-08:00", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json index 0f3c24b69dcd..478ecfa35e3b 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json @@ -20,7 +20,7 @@ }, "metadata": { "key": "value", - "description": "A map of data associated with the message" + "description": "A map of data associated with the participant" } }, "recipientCommunicationIdentifier": { diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json index 718d23856e1d..ceab61920cb9 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json @@ -20,7 +20,7 @@ }, "metadata": { "key": "value", - "description": "A map of data associated with the message" + "description": "A map of data associated with the participant" } }, "recipientCommunicationIdentifier": { diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated.json index e515bcbe5563..91d23b1d140c 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated.json @@ -14,7 +14,8 @@ "topic": "Talk about new Thread Events in commuication services" }, "metadata": { - "privateThreadId": "19:d743b110ba1041c88e9832680c6baf21@thread.v2" + "key": "value", + "description": "A map of data associated with the thread" }, "createTime": "2021-02-20T00:00:40.126+00:00", "version": 1613779447695, diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated_per_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated_per_user.json index d51826d22cb7..e7c3e0bbc5e0 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated_per_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated_per_user.json @@ -15,7 +15,8 @@ "topic": "Communication in Azure" }, "metadata": { - "privateThreadId": "19:d743b110ba1041c88e9832680c6baf21@thread.v2" + "key": "value", + "description": "A map of data associated with the thread" }, "createTime": "2021-02-19T00:28:25.864Z", "version": 1613694508719, From e60d294de20e1a53b6f8886fb7140851c2d45590 Mon Sep 17 00:00:00 2001 From: Michael Butowicz Date: Wed, 25 Oct 2023 16:28:00 -0700 Subject: [PATCH 5/8] Fix typo --- .../cloud-events-schema/chat_thread_created_withUser.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json index 02f652049dfe..23bd7ea1e6a1 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json @@ -32,11 +32,11 @@ "rawId": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-286d-e1fe-0848220013b9", "communicationUser": { "id": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-286d-e1fe-0848220013b9" + }, + "metadata": { + "key": "value", + "description": "A map of data associated with the participant" } - }, - "metadata": { - "key": "value", - "description": "A map of data associated with the participant" } }, { From 07e9433c95f723270b078152658d5817305a6952 Mon Sep 17 00:00:00 2001 From: Michael Butowicz Date: Mon, 30 Oct 2023 11:50:53 -0700 Subject: [PATCH 6/8] Remove description from examples and add additional properties value for metadata dictionary to denote type string --- .../AzureCommunicationServices.json | 25 +++++++++++++++---- .../chat_thread_created.json | 3 +-- .../chat_thread_created_withUser.json | 3 +-- .../chat_thread_participant_added.json | 3 +-- .../chat_thread_participant_removed.json | 3 +-- ...participant_added_to_thread_with_user.json | 3 +-- ...icipant_removed_from_thread_with_user.json | 3 +-- .../chat_thread_participant_added.json | 3 +-- .../chat_thread_participant_removed.json | 3 +-- .../chat_thread_properties_updated.json | 3 +-- ...at_thread_properties_updated_per_user.json | 3 +-- 11 files changed, 30 insertions(+), 25 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json index a8881b14748e..d58f5b6872dc 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json @@ -966,7 +966,10 @@ }, "metadata": { "description": "The thread metadata", - "type": "object" + "type": "object", + "additionalProperties": { + "type": "string" + } }, "participants": { "description": "The list of properties of participants who are part of the thread", @@ -1005,7 +1008,10 @@ }, "metadata": { "description": "The thread metadata", - "type": "object" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -1070,7 +1076,10 @@ }, "metadata": { "description": "The thread metadata", - "type": "object" + "type": "object", + "additionalProperties": { + "type": "string" + } }, "properties": { "description": "The updated thread properties", @@ -1108,7 +1117,10 @@ }, "metadata": { "description": "The thread metadata", - "type": "object" + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, @@ -1674,7 +1686,10 @@ }, "metadata": { "description": "The metadata of the user", - "type": "object" + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json index 685738fe38c8..0f2d74c659ee 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json @@ -24,8 +24,7 @@ } }, "metadata": { - "key": "value", - "description": "A map of data associated with the participant" + "key": "value" } }, { diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json index 23bd7ea1e6a1..917b73e65b90 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json @@ -47,8 +47,7 @@ "id": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-289b-07fd-0848220015ea" }, "metadata": { - "key": "value", - "description": "A map of data associated with the participant" + "key": "value" } } } diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json index 306bcd755460..005d16f4d080 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json @@ -20,8 +20,7 @@ "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38f3-88f7-084822002454" }, "metadata": { - "key": "value", - "description": "A map of data associated with the participant" + "key": "value" } } }, diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_removed.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_removed.json index 1f38cb6d4984..ea3f3c2ce7af 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_removed.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_removed.json @@ -21,8 +21,7 @@ } }, "metadata": { - "key": "value", - "description": "A map of data associated with the participant" + "key": "value" } }, "createTime": "2021-02-19T16:31:54.365-08:00", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json index 478ecfa35e3b..ddbc3667a2c9 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_added_to_thread_with_user.json @@ -19,8 +19,7 @@ } }, "metadata": { - "key": "value", - "description": "A map of data associated with the participant" + "key": "value" } }, "recipientCommunicationIdentifier": { diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json index ceab61920cb9..2094c12a48a9 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_participant_removed_from_thread_with_user.json @@ -19,8 +19,7 @@ } }, "metadata": { - "key": "value", - "description": "A map of data associated with the participant" + "key": "value" } }, "recipientCommunicationIdentifier": { diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_added.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_added.json index 88b698e88e73..f7091c5ba96e 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_added.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_added.json @@ -19,8 +19,7 @@ } }, "metadata": { - "key": "value", - "description": "A map of data associated with the message" + "key": "value" } }, "createTime": "2021-02-20T00:31:54.365+00:00", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_removed.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_removed.json index bb2bbf1465b3..fdd171a3a271 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_removed.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_participant_removed.json @@ -19,8 +19,7 @@ } }, "metadata": { - "key": "value", - "description": "A map of data associated with the message" + "key": "value" } }, "createTime": "2021-02-20T00:31:54.365+00:00", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated.json index 91d23b1d140c..c2403ad7b702 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated.json @@ -14,8 +14,7 @@ "topic": "Talk about new Thread Events in commuication services" }, "metadata": { - "key": "value", - "description": "A map of data associated with the thread" + "key": "value" }, "createTime": "2021-02-20T00:00:40.126+00:00", "version": 1613779447695, diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated_per_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated_per_user.json index e7c3e0bbc5e0..00fa49531dee 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated_per_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_properties_updated_per_user.json @@ -15,8 +15,7 @@ "topic": "Communication in Azure" }, "metadata": { - "key": "value", - "description": "A map of data associated with the thread" + "key": "value" }, "createTime": "2021-02-19T00:28:25.864Z", "version": 1613694508719, From befc0bf752874794ea30e808712aaf70ebcb2891 Mon Sep 17 00:00:00 2001 From: Michael Butowicz Date: Tue, 31 Oct 2023 11:27:03 -0700 Subject: [PATCH 7/8] Updated remaining examples in cloud-events-schema and event-grid-schema --- ...at_participant_added_to_thread_with_user.json | 3 +++ ...articipant_removed_from_thread_with_user.json | 3 +++ .../cloud-events-schema/chat_thread_created.json | 9 +++------ .../chat_thread_created_withUser.json | 16 +++++++--------- .../chat_thread_participant_added.json | 6 +++--- .../chat_thread_properties_updated_per_user.json | 3 +++ .../event-grid-schema/chat_thread_created.json | 15 +++++++++++++++ .../chat_thread_created_withUser.json | 9 +++++++++ 8 files changed, 46 insertions(+), 18 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_participant_added_to_thread_with_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_participant_added_to_thread_with_user.json index 87bd21043d23..596595dc8e24 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_participant_added_to_thread_with_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_participant_added_to_thread_with_user.json @@ -19,6 +19,9 @@ "communicationUser": { "id": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8785-1655-373a0d00885f" } + }, + "metadata": { + "key": "value" } }, "recipientCommunicationIdentifier": { diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_participant_removed_from_thread_with_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_participant_removed_from_thread_with_user.json index 84f6c7ab7de6..5e3f0c9610c5 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_participant_removed_from_thread_with_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_participant_removed_from_thread_with_user.json @@ -19,6 +19,9 @@ "communicationUser": { "id": "8:acs:0a420b29-555c-4f6b-841e-de8059893bb9_00000008-77c9-8785-1655-373a0d00885f" } + }, + "metadata": { + "key": "value" } }, "recipientCommunicationIdentifier": { diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json index 0f2d74c659ee..9d148e69059c 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created.json @@ -49,8 +49,7 @@ } }, "metadata": { - "key": "value", - "description": "A map of data associated with the participant" + "key": "value" } }, { @@ -62,14 +61,12 @@ } }, "metadata": { - "key": "value", - "description": "A map of data associated with the participant" + "key": "value" } } ], "metadata": { - "key": "value", - "description": "A map of data associated with the thread" + "key": "value" }, "createTime": "2021-02-19T16:31:54.365-08:00", "version": 1613781114365, diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json index 917b73e65b90..63313b8f8941 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_created_withUser.json @@ -32,11 +32,10 @@ "rawId": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-286d-e1fe-0848220013b9", "communicationUser": { "id": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-286d-e1fe-0848220013b9" - }, - "metadata": { - "key": "value", - "description": "A map of data associated with the participant" } + }, + "metadata": { + "key": "value" } }, { @@ -45,16 +44,15 @@ "rawId": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-289b-07fd-0848220015ea", "communicationUser": { "id": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-289b-07fd-0848220015ea" - }, - "metadata": { - "key": "value" } + }, + "metadata": { + "key": "value" } } ], "metadata": { - "key": "value", - "description": "A map of data associated with the thread" + "key": "value" }, "createTime": "2021-02-18T23:47:26.91Z", "version": 1613692046910, diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json index 005d16f4d080..361cb9ccf156 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_participant_added.json @@ -18,10 +18,10 @@ "rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38f3-88f7-084822002454", "communicationUser": { "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38f3-88f7-084822002454" - }, - "metadata": { - "key": "value" } + }, + "metadata": { + "key": "value" } }, "createTime": "2021-02-19T16:31:54.365-08:00", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_properties_updated_per_user.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_properties_updated_per_user.json index ef1d1ef51232..57e93d74a8ab 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_properties_updated_per_user.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_thread_properties_updated_per_user.json @@ -16,6 +16,9 @@ "properties": { "topic": "Communication in Azure" }, + "metadata": { + "key": "value" + }, "createTime": "2021-02-19T00:28:25.864Z", "version": 1613694508719, "recipientId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_created.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_created.json index 192e0635d6ef..7d5f5cce8b39 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_created.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_created.json @@ -20,6 +20,9 @@ "communicationUser": { "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453" } + }, + "metadata": { + "key": "value" } }, { @@ -29,6 +32,9 @@ "communicationUser": { "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38e6-07fd-084822002467" } + }, + "metadata": { + "key": "value" } }, { @@ -38,6 +44,9 @@ "communicationUser": { "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38f6-83fe-084822002337" } + }, + "metadata": { + "key": "value" } }, { @@ -47,9 +56,15 @@ "communicationUser": { "id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38e3-e1fe-084822002c35" } + }, + "metadata": { + "key": "value" } } ], + "metadata": { + "key": "value" + }, "createTime": "2021-02-20T00:31:54.365+00:00", "version": 1613781114365, "threadId": "19:e07c8ddc5bab4c059ea9f11d29b544b6@thread.v2", diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_created_withUser.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_created_withUser.json index 622ac3d5294f..df46f7f382ff 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_created_withUser.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/chat_thread_created_withUser.json @@ -31,6 +31,9 @@ "communicationUser": { "id": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-286d-e1fe-0848220013b9" } + }, + "metadata": { + "key": "value" } }, { @@ -40,9 +43,15 @@ "communicationUser": { "id": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-289b-07fd-0848220015ea" } + }, + "metadata": { + "key": "value" } } ], + "metadata": { + "key": "value" + }, "createTime": "2021-02-18T23:47:26.91Z", "version": 1613692046910, "recipientId": "8:acs:3d703c91-9657-4b3f-b19c-ef9d53f99710_00000008-576c-286e-84f5-08482200181c", From a0ec4c26a29c455aa698f26228fb381378f971d9 Mon Sep 17 00:00:00 2001 From: Michael Butowicz Date: Wed, 1 Nov 2023 13:20:17 -0700 Subject: [PATCH 8/8] Removed extra metadata properties --- .../stable/2018-01-01/AzureCommunicationServices.json | 7 ------- 1 file changed, 7 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json index d58f5b6872dc..f9c27dc6c67b 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json @@ -1005,13 +1005,6 @@ "type": "array", "items": { "$ref": "#/definitions/AcsChatThreadParticipantProperties" - }, - "metadata": { - "description": "The thread metadata", - "type": "object", - "additionalProperties": { - "type": "string" - } } } }