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 4983a7f06344..f511afb54d53 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 @@ -502,6 +502,84 @@ } } }, + "AcsEmailDeliveryReportReceivedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.EmailDeliveryReportReceived event.", + "type": "object", + "properties": { + "sender": { + "description": "The Sender Email Address", + "type": "string" + }, + "recipient": { + "description": "The recipient Email Address", + "type": "string" + }, + "messageId": { + "description": "The Id of the email been sent", + "type": "string" + }, + "status": { + "description": "The status of the email", + "type": "string", + "enum": [ + "Failed", + "Delivered", + "FilteredSpam", + "Quarantined" + ], + "x-ms-enum": { + "name": "AcsEmailDeliveryReportStatus", + "modelAsString": true + } + }, + "deliveryAttemptTimeStamp": { + "description": "The time at which the email delivery report received timestamp", + "format": "date-time", + "type": "string", + "x-ms-client-name": "deliveryAttemptTimestamp" + } + }, + "AcsEmailEngagementTrackingReportReceivedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.EmailEngagementTrackingReportReceived event.", + "type": "object", + "properties": { + "sender": { + "description": "The Sender Email Address", + "type": "string" + }, + "messageId": { + "description": "The Id of the email that has been sent", + "type": "string" + }, + "userActionTimeStamp": { + "description": "The time at which the user interacted with the email", + "format": "date-time", + "type": "string", + "x-ms-client-name": "userActionTimestamp" + }, + "engagementContext": { + "description": "The context of the type of engagement user had with email", + "type": "string" + }, + "userAgent": { + "description": "The user agent interacting with the email", + "type": "string" + }, + "engagementType": { + "description": "The type of engagement user have with email", + "type": "string", + "x-ms-client-name": "engagement", + "enum": [ + "view", + "click" + ], + "x-ms-enum": { + "name": "AcsUserEngagement", + "modelAsString": true + } + } + } + }, "AcsChatThreadEventBaseProperties": { "description": "Schema of common properties of all chat thread events", "allOf": [ diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_message_deleted.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_message_deleted.json index 6847d1686cd4..2be20a7bfbc0 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_message_deleted.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/chat_message_deleted.json @@ -29,4 +29,4 @@ "threadId": "19:48899258eec941e7a281e03edc8f4964@thread.v2" }, "specversion": "1.0" -} \ No newline at end of file +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/email_delivery_report_received.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/email_delivery_report_received.json new file mode 100644 index 000000000000..cefae0de0469 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/email_delivery_report_received.json @@ -0,0 +1,15 @@ +{ + "id": "5f04f77c-2a6a-43bd-9b74-576a64c01f9e", + "source": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}", + "subject": "sender/test2@contoso.org/message/950850f5-bcdf-4315-b77a-6447cf56fac9", + "data": { + "sender": "test2@contoso.org", + "recipient": "test1@contoso.com", + "messageId": "950850f5-bcdf-4315-b77a-6447cf56fac9", + "status": "delivered", + "deliveryAttemptTimeStamp": "2023-02-09T19:46:12.2480265+00:00" + }, + "type": "Microsoft.Communication.EmailDeliveryReportReceived", + "time": "2023-02-09T19:46:12.2478002Z", + "specversion": "1.0" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/email_engagement_tracking_report_received.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/email_engagement_tracking_report_received.json new file mode 100644 index 000000000000..a3f80e9ec99f --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/email_engagement_tracking_report_received.json @@ -0,0 +1,16 @@ +{ + "id": "b69d6528-f09f-4ba7-93f9-dab8baf98d0e", + "source": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}", + "subject": "sender/test2@contoso.org/message/fe26a737-6941-410c-b126-7eacbe4035d1", + "data": { + "sender": "test2@contoso.org", + "messageId": "fe26a737-6941-410c-b126-7eacbe4035d1", + "userActionTimeStamp": "2023-02-09T20:07:22.745555+00:00", + "engagementContext": "www.example.com", + "userAgent": "Desktop", + "engagementType": "click" + }, + "type": "Microsoft.Communication.EmailEngagementTrackingReportReceived", + "time": "2023-02-09T20:07:22.7453611Z", + "specversion": "1.0" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/email_delivery_report_received.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/email_delivery_report_received.json new file mode 100644 index 000000000000..2d6d6dcd7dfc --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/email_delivery_report_received.json @@ -0,0 +1,16 @@ +{ + "id": "5f04f77c-2a6a-43bd-9b74-576a64c01f9e", + "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}", + "subject": "sender/test2@contoso.org/message/950850f5-bcdf-4315-b77a-6447cf56fac9", + "data": { + "sender": "test2@contoso.org", + "recipient": "test1@contoso.com", + "messageId": "950850f5-bcdf-4315-b77a-6447cf56fac9", + "status": "delivered", + "deliveryAttemptTimeStamp": "2023-02-09T19:46:12.2480265+00:00" + }, + "eventType": "Microsoft.Communication.EmailDeliveryReportReceived", + "dataVersion": "1.0", + "metadataVersion": "1", + "eventTime": "2023-02-09T19:46:12.2478002Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/email_engagement_tracking_report_received.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/email_engagement_tracking_report_received.json new file mode 100644 index 000000000000..7b543b7e3444 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/email_engagement_tracking_report_received.json @@ -0,0 +1,17 @@ +{ + "id": "b69d6528-f09f-4ba7-93f9-dab8baf98d0e", + "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}", + "subject": "sender/test2@contoso.org/message/fe26a737-6941-410c-b126-7eacbe4035d1", + "data": { + "sender": "test2@contoso.org", + "messageId": "fe26a737-6941-410c-b126-7eacbe4035d1", + "userActionTimeStamp": "2023-02-09T20:07:22.745555+00:00", + "engagementContext": "www.example.com", + "userAgent": "Desktop", + "engagementType": "click" + }, + "eventType": "Microsoft.Communication.EmailEngagementTrackingReportReceived", + "dataVersion": "1.0", + "metadataVersion": "1", + "eventTime": "2023-02-09T20:07:22.7453611Z" +}