From d8f0e12307b4aebb9158b3f62025b917f6a67c8f Mon Sep 17 00:00:00 2001 From: Himanshi Gandhi Date: Mon, 19 May 2025 16:52:30 +0530 Subject: [PATCH 01/19] Introduce xdm-schema for message-rendering-context dataset --- .../message-rendering-context.schema.json | 252 ++++++++++++++++++ 1 file changed, 252 insertions(+) create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-rendering-context.schema.json diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.schema.json new file mode 100644 index 000000000..664376558 --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.schema.json @@ -0,0 +1,252 @@ +{ + "meta:license": [ + "Copyright 2025 Adobe Systems Incorporated. All rights reserved.", + "This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", + "you may not use this file except in compliance with the License. You may obtain a copy", + "of the License at https://creativecommons.org/licenses/by/4.0/" + ], + "$id": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendering-context", + "title": "Adobe CJM ExperienceEvent - Message Rendering Context", + "description": "Schema for storing the context data required to render a message in Adobe Journey Optimizer", + "type": "object", + "meta:extensible": true, + "meta:abstract": true, + "meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/experienceevent"], + "allOf": [ + { + "$ref": "https://ns.adobe.com/xdm/data/record" + }, + { + "properties": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap": { + "title": "Identity Map", + "description": "Map containing identifiers for the profile across different identity namespaces", + "$ref": "https://ns.adobe.com/xdm/context/identitymap" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/renderingContext": { + "type": "object", + "title": "Rendering Context", + "description": "A map of namespace identifiers to stringified JSON representations of context objects used in template rendering and personalization", + "properties": { + "profile": { + "type": "string", + "title": "Profile Context", + "description": "Stringified JSON of profile attributes accessed via the 'profile' namespace in templates" + }, + "offer": { + "type": "string", + "title": "Offer Context", + "description": "Stringified JSON of offer decision information accessed via the 'offer' namespace in templates" + }, + "context": { + "type": "string", + "title": "Context", + "description": "Stringified JSON of context variables for general purpose use" + }, + "propertiesContext": { + "type": "string", + "title": "Properties Context", + "description": "Stringified JSON of Journey Optimizer properties and configuration settings for the message" + }, + "decisionPolicy": { + "type": "string", + "title": "Decision Policy Context", + "description": "Stringified JSON of decision policy information for offer decisioning" + }, + "offerContentAttributes": { + "type": "string", + "title": "Offer Content Attributes", + "description": "Stringified JSON of attributes related to offer content" + }, + "url": { + "type": "string", + "title": "URL Context", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "fragment": { + "type": "string", + "title": "Fragment Context", + "description": "Stringified JSON of content fragments that can be inserted into templates" + }, + "externalDataLookup": { + "type": "string", + "title": "External Data Lookup", + "description": "Stringified JSON of context for external data lookups during rendering" + }, + "url-support": { + "type": "string", + "title": "URL Support", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "inputSchema": { + "type": "string", + "title": "Input Schema", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "channelConfiguration": { + "type": "string", + "title": "Channel Configuration", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "segment": { + "type": "string", + "title": "Segment Context", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "_cjmProperties": { + "type": "string", + "title": "CJM Properties", + "description": "Stringified JSON of internal properties used by the CJM rendering engine" + } + } + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { + "type": "object", + "title": "Adobe CJM ExperienceEvent - Message Execution Details", + "description": "Message Execution details for the Adobe CJM ExperienceEvent.", + "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/messageexecution" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { + "type": "object", + "title": "Adobe CJM ExperienceEvent - Message Profile Details", + "description": "Message Profile details for the Adobe CJM ExperienceEvent.", + "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/metadata": { + "type": "object", + "title": "Rendering Metadata", + "description": "Metadata about the rendering context", + "properties": { + "channelProperties": { + "type": "object", + "title": "Channel Properties", + "description": "Channel-specific properties for message delivery", + "oneOf": [ + { + "properties": { + "email": { + "type": "object", + "title": "Email Channel Properties", + "description": "Properties specific to email delivery", + "properties": { + "type": { + "type": "string", + "const": "email", + "description": "Discriminator field indicating the type of content." + }, + "recipient": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email" + }, + "name": { + "type": "string" + }, + "bcc": { + "type": "string", + "format": "email" + } + }, + "required": [ + "email" + ] + }, + "sender": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email" + }, + "name": { + "type": "string" + }, + "errorEmail": { + "type": "string", + "format": "email" + }, + "replyToEmail": { + "type": "string", + "format": "email" + }, + "replyToName": { + "type": "string" + } + }, + "required": [ + "email, errorEmail, replyToEmail" + ] + }, + "subject": { + "type": "string", + "title": "Subject", + "description": "Email subject line template" + } + } + } + } + }, + { + "properties": { + "sms": { + "type": "object", + "title": "SMS Channel Properties", + "description": "Properties specific to SMS delivery", + "properties": { + "type": { + "type": "string", + "const": "sms", + "description": "Discriminator field indicating the type of content." + }, + "recipient": { + "type": "object", + "properties": { + "number": { + "type": "string", + "description": "Recipient's phone number, preferably E.164 format" + } + }, + "required": [ + "number" + ] + }, + "sender": { + "type": "object", + "properties": { + "number": { + "type": "string", + "description": "Sender's phone number or short code." + } + }, + "required": [ + "number" + ] + }, + "title": { + "type": "string", + "description": "Optional title for the SMS." + } + } + } + } + } + ] + } + } + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/retrievedEntities": { + "type": "array", + "title": "Retrieved Entities", + "description": "An array of stringified JSON representations of entities retrieved during dynamic entity hydration.", + "items": { + "type": "string", + "description": "Stringified JSON representing a retrieved entity's data." + } + } + }, + "required": ["https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/renderingContext"] + } + ] +} \ No newline at end of file From 713f99b6b38eb20d6a61641314e3eaa813ead3a8 Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Tue, 20 May 2025 18:08:42 +0530 Subject: [PATCH 02/19] introduce xdm schema for message export --- .../message-export-schema.json | 183 ++++++++++++++++++ 1 file changed, 183 insertions(+) create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-export-schema.json diff --git a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json new file mode 100644 index 000000000..bf7103d84 --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json @@ -0,0 +1,183 @@ +{ + "meta:license": [ + "Copyright 2025 Adobe Systems Incorporated. All rights reserved.", + "This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", + "you may not use this file except in compliance with the License. You may obtain a copy", + "of the License at https://creativecommons.org/licenses/by/4.0/" + ], + "$id": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendering-context", + "title": "Adobe CJM ExperienceEvent - Message Export", + "description": "Schema for storing the rendered message content for outbound channels in Adobe Journey Optimizer", + "type": "object", + "meta:extensible": true, + "meta:abstract": true, + "meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/experienceevent"], + "allOf": [ + { + "$ref": "https://ns.adobe.com/xdm/data/record" + }, + { + "properties": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap": { + "title": "Identity Map", + "description": "Map containing identifiers for the profile across different identity namespaces", + "$ref": "https://ns.adobe.com/xdm/context/identitymap" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { + "type": "object", + "title": "Adobe CJM ExperienceEvent - Message Execution Details", + "description": "Message Execution details for the Adobe CJM ExperienceEvent.", + "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/messageexecution" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { + "type": "object", + "title": "Adobe CJM ExperienceEvent - Message Profile Details", + "description": "Message Profile details for the Adobe CJM ExperienceEvent.", + "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/message": { + "type": "object", + "title": "Message Details", + "description": "Details of the rendered message", + "properties": { + "messageDetails": { + "type": "object", + "title": "Message Details", + "description": "Contains the specific content details for the message, varying by channel (e.g., email or SMS).", + "oneOf": [ + { + "properties": { + "emailDetails": { + "type": "object", + "title": "Email Content Details", + "description": "Specific details for an email message.", + "properties": { + "type": { + "type": "string", + "const": "email", + "description": "Discriminator field indicating the type of content." + }, + "recipient": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email" + }, + "name": { + "type": "string" + }, + "bcc": { + "type": "string", + "format": "email" + } + }, + "required": ["email"] + }, + "sender": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email" + }, + "name": { + "type": "string" + }, + "errorEmail": { + "type": "string", + "format": "email" + }, + "replyToEmail": { + "type": "string", + "format": "email" + }, + "replyToName": { + "type": "string" + } + }, + "required": ["email, errorEmail, replyToEmail"] + }, + "content": { + "type": "object", + "properties": { + "subject": { + "type": "string" + }, + "html": { + "type": "string" + }, + "text": { + "type": "string" + } + } + } + }, + "required": ["type", "recipient", "sender", "content"] + } + } + }, + { + "properties": { + "smsDetails": { + "type": "object", + "title": "SMS Content Details", + "description": "Specific details for an SMS message.", + "properties": { + "type": { + "type": "string", + "const": "sms", + "description": "Discriminator field indicating the type of content." + }, + "recipient": { + "type": "object", + "properties": { + "number": { + "type": "string", + "description": "Recipient's phone number, preferably E.164 format" + } + }, + "required": ["number"] + }, + "sender": { + "type": "object", + "properties": { + "number": { + "type": "string", + "description": "Sender's phone number or short code." + } + }, + "required": ["number"] + }, + "content": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "Optional title for the SMS, might be used by some aggregators or for internal tracking." + }, + "message": { + "type": "string", + "description": "The text content of the SMS message." + } + }, + "required": ["message"] + } + }, + "required": ["type", "recipient", "sender", "content"] + } + } + } + ] + } + } + } + }, + "required": [ + "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/identityMap", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/messageExecution", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/message" + ] + } + ] +} \ No newline at end of file From ac2c4d13d198226d2c92367315aa11b8012a2a4a Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Wed, 21 May 2025 12:39:45 +0530 Subject: [PATCH 03/19] add media in sms content --- .../message-export-schema.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json index bf7103d84..4f8ff14b6 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json @@ -5,7 +5,7 @@ "you may not use this file except in compliance with the License. You may obtain a copy", "of the License at https://creativecommons.org/licenses/by/4.0/" ], - "$id": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendering-context", + "$id": "https://ns.adobe.com/experience/customerJourneyManagement/message-export", "title": "Adobe CJM ExperienceEvent - Message Export", "description": "Schema for storing the rendered message content for outbound channels in Adobe Journey Optimizer", "type": "object", @@ -18,18 +18,18 @@ }, { "properties": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/identityMap": { "title": "Identity Map", "description": "Map containing identifiers for the profile across different identity namespaces", "$ref": "https://ns.adobe.com/xdm/context/identitymap" }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/messageExecution": { "type": "object", "title": "Adobe CJM ExperienceEvent - Message Execution Details", "description": "Message Execution details for the Adobe CJM ExperienceEvent.", "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/messageexecution" }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/messageProfile": { "type": "object", "title": "Adobe CJM ExperienceEvent - Message Profile Details", "description": "Message Profile details for the Adobe CJM ExperienceEvent.", @@ -159,6 +159,10 @@ "message": { "type": "string", "description": "The text content of the SMS message." + }, + "media": { + "type": "string", + "description": "The media content of the message." } }, "required": ["message"] From 2a44616c3fe2b1e2af1988c8ed7c394971ebdcea Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Wed, 21 May 2025 18:02:08 +0530 Subject: [PATCH 04/19] add example files --- .../message-export-schema.example.2.json | 48 +++++++++ .../message-export-schema.example.json | 84 +++++++++++++++ .../message-rendering-context.example.2.json | 87 +++++++++++++++ .../message-rendering-context.example.json | 101 ++++++++++++++++++ 4 files changed, 320 insertions(+) create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.2.json create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.json create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.2.json create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.json diff --git a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.2.json new file mode 100644 index 000000000..81138638f --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.2.json @@ -0,0 +1,48 @@ +{ + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap": { + "Phone": [ + { + "id": "+12025550142", + "primary": true + } + ], + "ECID": [ + { + "id": "97531086412345", + "primary": true + } + ] + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "8765b432-cde2-34b0-9aa0-7baae041ce84", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageID": "aa449b86-bc54-3ad1-a84c-7b2a40e78ab1", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageLabel": "Flash Sale Alert", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageType": "marketing" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileID": "6438b775-def3-36a1-add1-8baae041ce84", + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/channel": { + "@id": "https://ns.adobe.com/xdm/channels/sms" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/smsChannelContext/smsProvider": "twilio", + "https://ns.adobe.com/experience/customerJourneyManagement/smsChannelContext/profileNumber": "+12025550142" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/message": { + "messageDetails": { + "smsDetails": { + "type": "sms", + "recipient": { + "number": "+12025550142" + }, + "sender": { + "number": "33333" + }, + "content": { + "title": "Flash Sale Alert", + "message": "EXAMPLE CO: Today only! 24hr FLASH SALE. 40% off all products with code FLASH40. Shop now at https://example.co/sale", + "media": "https://cdn.example.com/mms/flash_sale_banner.jpg" + } + } + } + } +} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.json b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.json new file mode 100644 index 000000000..917533feb --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.json @@ -0,0 +1,84 @@ +{ + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap": { + "Email": [ + { + "id": "customer@example.com", + "primary": true + } + ], + "ECID": [ + { + "id": "87654321987654", + "primary": true + } + ], + "Phone": [ + { + "id": "+12025550142", + "primary": false + } + ] + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "9876a543-def3-45c1-baa1-8caae052df95", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageID": "bb550c97-df76-5be3-c95e-9d4c62f79cd3", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messagePublicationID": "243fb0f6-df76-5be3-c95e-851bf39f0d62", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/fragmentPublicationIDs": [ + "8b67e7b4-c770-5bf1-b4b2-616e842fd955" + ], + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageLabel": "Monthly Newsletter", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionID": "1dd96072-598e-50f6-ac7d-12f6731856bd", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionInstanceID": "c0139636-d44b-51f3-b2d2-06f1c9416f89", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionNodeID": "7dfe04dd-cc1f-5fd0-b4ac-67c53a48d79d", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyActionID": "243fb0f6-8b86-523e-0124-851bf39f0d62", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignID": "c4123036-ff25-5523-cfb6-6dd563f00ae4", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignVersionID": "854686f8-ba65-59c6-09g7-3f4ff9910d91", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignActionID": "8601f4fd-g5fd-55d5-c9cg-c4f6e821b783", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/batchInstanceID": "3b5ef1d6-586d-5c78-c727-23e49d7529d2", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageType": "marketing", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/parentSourceMeta": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceType": "journey", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceID": "456-6789-1234", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceVersionID": "787-34-5678-1234", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceActionID": "346-987897-123" + } + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileID": "7549c886-egf4-58c3-cff3-9dbbf163fg06", + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileTrackingID": "6328c987-fgh5-59d4-dgg4-0eccf274gh17", + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/channel": { + "@id": "https://ns.adobe.com/xdm/channels/email" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/variant": "A", + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/isSendTimeOptimized": true, + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/isTestExecution": false, + "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/address": "customer@example.com", + "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/namespace": "Email", + "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/outboundIP": "52.247.77.92", + "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/domain": "example.com" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/message": { + "messageDetails": { + "emailDetails": { + "type": "email", + "recipient": { + "email": "customer@example.com", + "name": "Alex Johnson", + "bcc": "archive@example.com" + }, + "sender": { + "email": "newsletter@example.com", + "name": "Example Company", + "errorEmail": "errors@example.com", + "replyToEmail": "support@example.com", + "replyToName": "Customer Support" + }, + "content": { + "subject": "Your March Newsletter: New Spring Products Available!", + "html": "March Newsletter
\"Example

Hello Alex,

Spring has arrived and we're excited to share our latest products with you!

\"Product

New Arrival: Spring Collection

Our spring collection features lightweight materials perfect for the warmer weather.

Shop Now

Special Offer

Use code SPRING25 for 25% off your next purchase!

© 2023 Example Company. All rights reserved.

You're receiving this email because you subscribed to our newsletter. Unsubscribe

", + "text": "MARCH NEWSLETTER\n\nHello Alex,\n\nSpring has arrived and we're excited to share our latest products with you!\n\nNEW ARRIVAL: SPRING COLLECTION\nOur spring collection features lightweight materials perfect for the warmer weather.\nShop Now: https://example.com/products/spring?utm_source=newsletter&utm_medium=email\n\nSPECIAL OFFER\nUse code SPRING25 for 25% off your next purchase!\n\n© 2023 Example Company. All rights reserved.\n\nYou're receiving this email because you subscribed to our newsletter. To unsubscribe, visit: https://example.com/unsubscribe?id=123456" + } + } + } + } +} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.2.json new file mode 100644 index 000000000..35899dca1 --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.2.json @@ -0,0 +1,87 @@ +{ + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap": { + "Phone": [ + { + "id": "+12345678901", + "primary": true + } + ], + "ECID": [ + { + "id": "87654321987654", + "primary": true + } + ] + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/renderingContext": { + "profile": "{\"firstName\":\"Jane\",\"lastName\":\"Smith\",\"loyaltyLevel\":\"Silver\",\"points\":750}", + "offer": "{\"id\":\"xcore:personalized-offer:5678\",\"name\":\"Flash Sale\",\"description\":\"Limited time offer: 20% off today only\"}", + "context": "{\"currentDate\":\"2023-09-15\",\"locale\":\"en-US\",\"timezone\":\"America/New_York\"}", + "propertiesContext": "{\"messageExecutionID\":\"9876a543-def3-45c1-baa1-8caae052df95\"}", + "decisionPolicy": "{\"policyId\":\"sms-policy\",\"strategy\":\"priority-based\"}", + "offerContentAttributes": "{\"deliveryURL\":\"https://cdn.example.com/offers/flash_sale.jpg\",\"contentType\":\"image/jpeg\"}", + "url": "{\"trackingEnabled\":true,\"defaultDomain\":\"sms.example.com\"}", + "fragment": "{\"header\":{\"id\":\"sms-header\",\"content\":\"Example Co:\"},\"footer\":{\"id\":\"sms-footer\",\"content\":\"Reply STOP to unsubscribe\"}}", + "externalDataLookup": "{\"locationData\":{\"city\":\"New York\",\"storeId\":\"NYC-104\"}}", + "url-support": "{\"utm_source\":\"journey\",\"utm_medium\":\"sms\",\"utm_campaign\":\"flash_sale\"}", + "inputSchema": "{\"phoneNumber\":\"string\",\"firstName\":\"string\",\"lastName\":\"string\"}", + "channelConfiguration": "{\"throttlingPolicy\":\"sms-default\",\"deliveryPriority\":\"high\"}", + "segment": "{\"segmentMembership\":{\"ups\":{\"99765a41-f112-42ac-b5b2-3d4f964e8e64\":{\"status\":\"existing\"}}}}", + "_cjmProperties": "{\"internalMetrics\":{\"renderingTime\":12,\"templateVersion\":\"1.5\"}}" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "9876a543-def3-45c1-baa1-8caae052df95", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageID": "bb550c97-df76-5be3-c95e-9d4c62f79cd3", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messagePublicationID": "243fb0f6-df76-5be3-c95e-851bf39f0d62", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/fragmentPublicationIDs": [ + "8b67e7b4-c770-5bf1-b4b2-616e842fd955" + ], + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageLabel": "Flash Sale SMS Alert", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionID": "1dd96072-598e-50f6-ac7d-12f6731856bd", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionInstanceID": "c0139636-d44b-51f3-b2d2-06f1c9416f89", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionNodeID": "7dfe04dd-cc1f-5fd0-b4ac-67c53a48d79d", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyActionID": "243fb0f6-8b86-523e-0124-851bf39f0d62", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignID": "c4123036-ff25-5523-cfb6-6dd563f00ae4", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignVersionID": "854686f8-ba65-59c6-09g7-3f4ff9910d91", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignActionID": "8601f4fd-g5fd-55d5-c9cg-c4f6e821b783", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/batchInstanceID": "3b5ef1d6-586d-5c78-c727-23e49d7529d2", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageType": "marketing", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/parentSourceMeta": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceType": "journey", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceID": "456-6789-1234", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceVersionID": "787-34-5678-1234", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceActionID": "346-987897-123" + } + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileID": "7549c886-egf4-58c3-cff3-9dbbf163fg06", + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileTrackingID": "6328c987-fgh5-59d4-dgg4-0eccf274gh17", + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/channel": { + "@id": "https://ns.adobe.com/xdm/channels/sms" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/variant": "A", + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/isSendTimeOptimized": false, + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/isTestExecution": false, + "https://ns.adobe.com/experience/customerJourneyManagement/smsChannelContext/smsProvider": "twilio", + "https://ns.adobe.com/experience/customerJourneyManagement/smsChannelContext/messageType": "send", + "https://ns.adobe.com/experience/customerJourneyManagement/smsChannelContext/channelType": "SMS", + "https://ns.adobe.com/experience/customerJourneyManagement/smsChannelContext/profileNumber": "+12345678901" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/metadata": { + "channelProperties": { + "sms": { + "type": "sms", + "recipient": { + "number": "+12345678901" + }, + "sender": { + "number": "33333" + }, + "title": "Flash Sale Alert" + } + } + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/retrievedEntities": [ + "{\"id\":\"store-nyc104\",\"name\":\"New York Downtown\",\"address\":\"123 Broadway, New York, NY\",\"openHours\":\"9AM-9PM\",\"phoneNumber\":\"+12125551234\"}" + ] +} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.json new file mode 100644 index 000000000..212f1c556 --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.json @@ -0,0 +1,101 @@ +{ + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap": { + "Email": [ + { + "id": "user@example.com", + "primary": true + } + ], + "ECID": [ + { + "id": "92312748749128", + "primary": true + } + ], + "Phone": [ + { + "id": "+12345678901", + "primary": false + } + ] + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/renderingContext": { + "profile": "{\"firstName\":\"John\",\"lastName\":\"Doe\",\"loyaltyLevel\":\"Gold\",\"points\":1250}", + "offer": "{\"id\":\"xcore:personalized-offer:1234\",\"name\":\"Summer Sale\",\"description\":\"Get 25% off on summer collection\"}", + "context": "{\"currentDate\":\"2023-08-22\",\"locale\":\"en-US\",\"timezone\":\"America/Los_Angeles\"}", + "propertiesContext": "{\"messageExecutionID\":\"4218b775-bef3-46b2-aee2-7caae052cf94\"}", + "decisionPolicy": "{\"policyId\":\"default\",\"strategy\":\"priority-based\"}", + "offerContentAttributes": "{\"deliveryURL\":\"https://cdn.example.com/offers/summer_sale.jpg\",\"contentType\":\"image/jpeg\"}", + "url": "{\"trackingEnabled\":true,\"defaultDomain\":\"links.example.com\"}", + "fragment": "{\"header\":{\"id\":\"header-1\",\"content\":\"
Header content
\"},\"footer\":{\"id\":\"footer-1\",\"content\":\"
Footer content
\"}}", + "externalDataLookup": "{\"weatherData\":{\"temperature\":75,\"condition\":\"sunny\"}}", + "url-support": "{\"utm_source\":\"journey\",\"utm_medium\":\"email\",\"utm_campaign\":\"summer_campaign\"}", + "inputSchema": "{\"emailAddress\":\"string\",\"firstName\":\"string\",\"lastName\":\"string\"}", + "channelConfiguration": "{\"throttlingPolicy\":\"default\",\"deliveryPriority\":\"normal\"}", + "segment": "{\"segmentMembership\":{\"ups\":{\"77890f52-e223-4f7c-a6a3-7d4f964e9f75\":{\"status\":\"existing\"}}}}", + "_cjmProperties": "{\"internalMetrics\":{\"renderingTime\":45,\"templateVersion\":\"2.1\"}}" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "CMA-2372838", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageID": "aa440b96-ce65-4ad2-b95d-8c3b51f89bc2", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messagePublicationID": "132fa0e5-ce65-4ad2-b95d-740ae29e9c51", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/fragmentPublicationIDs": [ + "7a56d6a3-b660-4af0-a3a1-505d731fc844", + "9c53f52a-c0d1-4c61-9e2d-87bd043bc621" + ], + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageLabel": "Summer Promotion for Gold Members", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionID": "0cc85961-487d-49e5-9b6c-01f5630756ac", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionInstanceID": "b9029525-c33a-40f2-a1c1-95f0b8305078", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionNodeID": "6cfe93cc-bb0e-4ec9-a39b-56b53a73d28c", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyActionID": "132fa0e5-7a75-412d-9013-740ae29e9c51", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignID": "b3012925-ee14-4412-bfa5-5cc452e99ad3", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignVersionID": "743575e7-a954-48b5-98f6-2e3ee8809c80", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignActionID": "7590e3ec-f4ec-44c4-b8bf-b3f5d710b672", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/batchInstanceID": "2a4de0c5-475c-4b67-b616-12d38c6518c1", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageType": "marketing", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/parentSourceMeta": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceType": "orchestratedCampaign", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceID": "123-1234-8989", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceVersionID": "676-23-1234-8989", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceActionID": "235-898798-989" + } + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileID": "5329b775-cef3-47b2-bee2-8caae052df95", + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileTrackingID": "4218b775-def3-48b2-cee2-9caae052ef96", + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/channel": { + "@id": "https://ns.adobe.com/xdm/channels/email" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/variant": "B", + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/isSendTimeOptimized": true, + "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/isTestExecution": false, + "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/address": "user@example.com", + "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/namespace": "Email", + "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/outboundIP": "52.247.77.92", + "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/domain": "example.com" + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/metadata": { + "channelProperties": { + "email": { + "type": "email", + "recipient": { + "email": "user@example.com", + "name": "John Doe", + "bcc": "archive@example.com" + }, + "sender": { + "email": "marketing@example.com", + "name": "Example Marketing Team", + "errorEmail": "errors@example.com", + "replyToEmail": "support@example.com", + "replyToName": "Customer Support" + }, + "subject": "Summer Exclusive: {{profile.firstName}}, Enjoy Your Gold Member Benefits!" + } + } + }, + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/retrievedEntities": [ + "{\"id\":\"product-123\",\"name\":\"Summer T-Shirt\",\"price\":29.99,\"color\":\"blue\",\"size\":\"M\",\"imageUrl\":\"https://cdn.example.com/products/tshirt-blue-m.jpg\"}", + "{\"id\":\"product-456\",\"name\":\"Beach Shorts\",\"price\":24.99,\"color\":\"white\",\"size\":\"L\",\"imageUrl\":\"https://cdn.example.com/products/shorts-white-l.jpg\"}" + ] +} \ No newline at end of file From d59e8e892c1f43939ddefaff374579a04037556d Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Thu, 22 May 2025 16:33:51 +0530 Subject: [PATCH 05/19] mark required fields --- .../customerJourneyManagement/message-export-schema.json | 1 + .../message-rendering-context.schema.json | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json index 4f8ff14b6..1b9143ed8 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json @@ -180,6 +180,7 @@ "required": [ "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/identityMap", "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/messageExecution", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/messageProfile", "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/message" ] } diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.schema.json index 664376558..5e01a5016 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.schema.json @@ -246,7 +246,14 @@ } } }, - "required": ["https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/renderingContext"] + "required": [ + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/renderingContext", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/metadata", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/retrievedEntities" + ] } ] } \ No newline at end of file From 896446c90e437988ce7af4da6f6a7a0be0ac3912 Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Thu, 22 May 2025 17:35:48 +0530 Subject: [PATCH 06/19] update examples --- .../message-export-schema.example.2.json | 30 ++++++++++++++----- .../message-export-schema.example.json | 14 ++------- .../message-rendering-context.example.2.json | 14 ++------- .../message-rendering-context.example.json | 10 +------ 4 files changed, 30 insertions(+), 38 deletions(-) diff --git a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.2.json index 81138638f..dcba5f8b1 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.2.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.2.json @@ -14,18 +14,34 @@ ] }, "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "8765b432-cde2-34b0-9aa0-7baae041ce84", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageID": "aa449b86-bc54-3ad1-a84c-7b2a40e78ab1", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageLabel": "Flash Sale Alert", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageType": "marketing" + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "CMA-2372838", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageID": "bb550c97-df76-5be3-c95e-9d4c62f79cd3", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messagePublicationID": "243fb0f6-df76-5be3-c95e-851bf39f0d62", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/fragmentPublicationIDs": [ + "8b67e7b4-c770-5bf1-b4b2-616e842fd955" + ], + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageLabel": "Flash Sale SMS Alert", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionID": "1dd96072-598e-50f6-ac7d-12f6731856bd", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionInstanceID": "c0139636-d44b-51f3-b2d2-06f1c9416f89", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionNodeID": "7dfe04dd-cc1f-5fd0-b4ac-67c53a48d79d", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyActionID": "243fb0f6-8b86-523e-0124-851bf39f0d62", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignID": "c4123036-ff25-5523-cfb6-6dd563f00ae4", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignVersionID": "854686f8-ba65-59c6-09g7-3f4ff9910d91", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignActionID": "8601f4fd-g5fd-55d5-c9cg-c4f6e821b783", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/batchInstanceID": "3b5ef1d6-586d-5c78-c727-23e49d7529d2", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageType": "marketing", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/parentSourceMeta": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceType": "orchestratedCampaign", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceID": "456-6789-1234", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceVersionID": "787-34-5678-1234", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceActionID": "346-987897-123" + } }, "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileID": "6438b775-def3-36a1-add1-8baae041ce84", "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/channel": { "@id": "https://ns.adobe.com/xdm/channels/sms" - }, - "https://ns.adobe.com/experience/customerJourneyManagement/smsChannelContext/smsProvider": "twilio", - "https://ns.adobe.com/experience/customerJourneyManagement/smsChannelContext/profileNumber": "+12025550142" + } }, "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/message": { "messageDetails": { diff --git a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.json b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.json index 917533feb..1f6788585 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.json @@ -20,7 +20,7 @@ ] }, "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "9876a543-def3-45c1-baa1-8caae052df95", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "CMA-2372838", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageID": "bb550c97-df76-5be3-c95e-9d4c62f79cd3", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messagePublicationID": "243fb0f6-df76-5be3-c95e-851bf39f0d62", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/fragmentPublicationIDs": [ @@ -37,7 +37,7 @@ "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/batchInstanceID": "3b5ef1d6-586d-5c78-c727-23e49d7529d2", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageType": "marketing", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/parentSourceMeta": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceType": "journey", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceType": "orchestratedCampaign", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceID": "456-6789-1234", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceVersionID": "787-34-5678-1234", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceActionID": "346-987897-123" @@ -45,17 +45,9 @@ }, "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileID": "7549c886-egf4-58c3-cff3-9dbbf163fg06", - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileTrackingID": "6328c987-fgh5-59d4-dgg4-0eccf274gh17", "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/channel": { "@id": "https://ns.adobe.com/xdm/channels/email" - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/variant": "A", - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/isSendTimeOptimized": true, - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/isTestExecution": false, - "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/address": "customer@example.com", - "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/namespace": "Email", - "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/outboundIP": "52.247.77.92", - "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/domain": "example.com" + } }, "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/message": { "messageDetails": { diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.2.json index 35899dca1..86314cdd2 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.2.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.2.json @@ -30,7 +30,7 @@ "_cjmProperties": "{\"internalMetrics\":{\"renderingTime\":12,\"templateVersion\":\"1.5\"}}" }, "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "9876a543-def3-45c1-baa1-8caae052df95", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "CMA-2372838", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageID": "bb550c97-df76-5be3-c95e-9d4c62f79cd3", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messagePublicationID": "243fb0f6-df76-5be3-c95e-851bf39f0d62", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/fragmentPublicationIDs": [ @@ -47,7 +47,7 @@ "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/batchInstanceID": "3b5ef1d6-586d-5c78-c727-23e49d7529d2", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageType": "marketing", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/parentSourceMeta": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceType": "journey", + "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceType": "orchestratedCampaign", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceID": "456-6789-1234", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceVersionID": "787-34-5678-1234", "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceActionID": "346-987897-123" @@ -55,17 +55,9 @@ }, "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileID": "7549c886-egf4-58c3-cff3-9dbbf163fg06", - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileTrackingID": "6328c987-fgh5-59d4-dgg4-0eccf274gh17", "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/channel": { "@id": "https://ns.adobe.com/xdm/channels/sms" - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/variant": "A", - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/isSendTimeOptimized": false, - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/isTestExecution": false, - "https://ns.adobe.com/experience/customerJourneyManagement/smsChannelContext/smsProvider": "twilio", - "https://ns.adobe.com/experience/customerJourneyManagement/smsChannelContext/messageType": "send", - "https://ns.adobe.com/experience/customerJourneyManagement/smsChannelContext/channelType": "SMS", - "https://ns.adobe.com/experience/customerJourneyManagement/smsChannelContext/profileNumber": "+12345678901" + } }, "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/metadata": { "channelProperties": { diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.json index 212f1c556..2e6a6a147 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.json @@ -62,17 +62,9 @@ }, "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileID": "5329b775-cef3-47b2-bee2-8caae052df95", - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileTrackingID": "4218b775-def3-48b2-cee2-9caae052ef96", "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/channel": { "@id": "https://ns.adobe.com/xdm/channels/email" - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/variant": "B", - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/isSendTimeOptimized": true, - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/isTestExecution": false, - "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/address": "user@example.com", - "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/namespace": "Email", - "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/outboundIP": "52.247.77.92", - "https://ns.adobe.com/experience/customerJourneyManagement/emailChannelContext/domain": "example.com" + } }, "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/metadata": { "channelProperties": { From 11fbdecfbfae32e46ba2d5314523a9de80ab988d Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Mon, 9 Jun 2025 19:45:47 +0530 Subject: [PATCH 07/19] changes in xdm --- components/behaviors/time-series.schema.json | 1 + .../message-delivery-metadata.schema.json | 175 ++++++++++++ .../message-export-schema.example.2.json | 64 ----- .../message-export-schema.example.json | 76 ----- .../message-export-schema.json | 188 ------------- .../message-rendered-content.schema.json | 118 ++++++++ .../message-rendering-context.example.2.json | 79 ------ .../message-rendering-context.example.json | 93 ------- .../message-rendering-context.schema.json | 259 ------------------ .../message-rendering-data.schema.json | 163 +++++++++++ 10 files changed, 457 insertions(+), 759 deletions(-) create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json delete mode 100644 extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.2.json delete mode 100644 extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.json delete mode 100644 extensions/adobe/experience/customerJourneyManagement/message-export-schema.json create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json delete mode 100644 extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.2.json delete mode 100644 extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.json delete mode 100644 extensions/adobe/experience/customerJourneyManagement/message-rendering-context.schema.json create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json diff --git a/components/behaviors/time-series.schema.json b/components/behaviors/time-series.schema.json index bc5ce45a2..f7d4ff829 100644 --- a/components/behaviors/time-series.schema.json +++ b/components/behaviors/time-series.schema.json @@ -73,6 +73,7 @@ "delivery.feedback": "Delivery Feedback", "message.feedback": "Message Feedback", "message.tracking": "Message Tracking", + "message.renderingData": "Message Rendering Data", "pushTracking.applicationOpened": "Push Tracking Application Opened", "pushTracking.customAction": "Push Tracking Custom Action", "listOperation.removeFromList": "List Operation Remove From List", diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json new file mode 100644 index 000000000..373987d73 --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json @@ -0,0 +1,175 @@ +{ + "meta:license": [ + "Copyright 2025 Adobe Systems Incorporated. All rights reserved.", + "This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", + "you may not use this file except in compliance with the License. You may obtain a copy", + "of the License at https://creativecommons.org/licenses/by/4.0/" + ], + "$id": "https://ns.adobe.com/experience/customerJourneyManagement/message-delivery-metadata", + "$schema": "http://json-schema.org/draft-06/schema#", + "title": "Message Delivery Metadata", + "description": "Schema for delivery metadata for different channels in Adobe Journey Optimizer", + "type": "object", + "meta:extensible": true, + "meta:abstract": true, + "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], + "definitions": { + "message-delivery-metadata": { + "properties": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata": { + "type": "object", + "title": "Message Delivery Metadata", + "description": "Channel-specific metadata for message delivery", + "oneOf": [ + { + "properties": { + "email": { + "type": "object", + "title": "Email Metadata", + "description": "Metadata specific to email delivery", + "properties": { + "type": { + "type": "string", + "const": "email", + "description": "Discriminator field indicating the type of metadata" + }, + "recipient": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email", + "description": "Recipient's email address" + }, + "name": { + "type": "string", + "description": "Recipient's name" + }, + "bcc": { + "type": "string", + "format": "email", + "description": "BCC email address" + } + }, + "required": ["email"] + }, + "sender": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email", + "description": "Sender's email address" + }, + "name": { + "type": "string", + "description": "Sender's name" + }, + "errorEmail": { + "type": "string", + "format": "email", + "description": "Email address for delivery errors" + }, + "replyToEmail": { + "type": "string", + "format": "email", + "description": "Reply-to email address" + }, + "replyToName": { + "type": "string", + "description": "Reply-to name" + } + }, + "required": [ + "email", + "name", + "replyToEmail", + "errorEmail" + ] + }, + "subject": { + "type": "string", + "description": "Email subject line" + } + }, + "required": ["type", "recipient", "sender", "subject"] + } + } + }, + { + "properties": { + "sms": { + "type": "object", + "title": "SMS Metadata", + "description": "Metadata specific to SMS delivery", + "properties": { + "type": { + "type": "string", + "const": "sms", + "description": "Discriminator field indicating the type of metadata" + }, + "recipient": { + "type": "object", + "properties": { + "number": { + "type": "string", + "description": "Recipient's phone number" + } + }, + "required": ["number"] + }, + "sender": { + "type": "object", + "properties": { + "number": { + "type": "string", + "description": "Sender's phone number" + } + }, + "required": ["number"] + }, + "title": { + "type": "string", + "description": "Title of the SMS message" + } + }, + "required": ["type", "recipient", "sender", "title"] + } + } + }, + { + "properties": { + "openChannel": { + "type": "object", + "title": "Open Channel Metadata", + "description": "Metadata for custom, open channels", + "properties": { + "type": { + "type": "string", + "const": "openChannel", + "description": "Discriminator field indicating the type of metadata" + }, + "metadata": { + "type": "string", + "description": "Stringified JSON of channel-specific metadata" + } + }, + "required": ["type", "metadata"] + } + } + } + ] + } + } + } + }, + "allOf": [ + { + "$ref": "https://ns.adobe.com/xdm/data/time-series" + }, + { + "$ref": "#/definitions/message-delivery-metadata" + } + ], + "meta:status": "stable" +} diff --git a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.2.json deleted file mode 100644 index dcba5f8b1..000000000 --- a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.2.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap": { - "Phone": [ - { - "id": "+12025550142", - "primary": true - } - ], - "ECID": [ - { - "id": "97531086412345", - "primary": true - } - ] - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "CMA-2372838", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageID": "bb550c97-df76-5be3-c95e-9d4c62f79cd3", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messagePublicationID": "243fb0f6-df76-5be3-c95e-851bf39f0d62", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/fragmentPublicationIDs": [ - "8b67e7b4-c770-5bf1-b4b2-616e842fd955" - ], - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageLabel": "Flash Sale SMS Alert", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionID": "1dd96072-598e-50f6-ac7d-12f6731856bd", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionInstanceID": "c0139636-d44b-51f3-b2d2-06f1c9416f89", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionNodeID": "7dfe04dd-cc1f-5fd0-b4ac-67c53a48d79d", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyActionID": "243fb0f6-8b86-523e-0124-851bf39f0d62", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignID": "c4123036-ff25-5523-cfb6-6dd563f00ae4", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignVersionID": "854686f8-ba65-59c6-09g7-3f4ff9910d91", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignActionID": "8601f4fd-g5fd-55d5-c9cg-c4f6e821b783", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/batchInstanceID": "3b5ef1d6-586d-5c78-c727-23e49d7529d2", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageType": "marketing", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/parentSourceMeta": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceType": "orchestratedCampaign", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceID": "456-6789-1234", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceVersionID": "787-34-5678-1234", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceActionID": "346-987897-123" - } - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileID": "6438b775-def3-36a1-add1-8baae041ce84", - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/channel": { - "@id": "https://ns.adobe.com/xdm/channels/sms" - } - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/message": { - "messageDetails": { - "smsDetails": { - "type": "sms", - "recipient": { - "number": "+12025550142" - }, - "sender": { - "number": "33333" - }, - "content": { - "title": "Flash Sale Alert", - "message": "EXAMPLE CO: Today only! 24hr FLASH SALE. 40% off all products with code FLASH40. Shop now at https://example.co/sale", - "media": "https://cdn.example.com/mms/flash_sale_banner.jpg" - } - } - } - } -} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.json b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.json deleted file mode 100644 index 1f6788585..000000000 --- a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.example.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap": { - "Email": [ - { - "id": "customer@example.com", - "primary": true - } - ], - "ECID": [ - { - "id": "87654321987654", - "primary": true - } - ], - "Phone": [ - { - "id": "+12025550142", - "primary": false - } - ] - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "CMA-2372838", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageID": "bb550c97-df76-5be3-c95e-9d4c62f79cd3", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messagePublicationID": "243fb0f6-df76-5be3-c95e-851bf39f0d62", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/fragmentPublicationIDs": [ - "8b67e7b4-c770-5bf1-b4b2-616e842fd955" - ], - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageLabel": "Monthly Newsletter", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionID": "1dd96072-598e-50f6-ac7d-12f6731856bd", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionInstanceID": "c0139636-d44b-51f3-b2d2-06f1c9416f89", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionNodeID": "7dfe04dd-cc1f-5fd0-b4ac-67c53a48d79d", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyActionID": "243fb0f6-8b86-523e-0124-851bf39f0d62", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignID": "c4123036-ff25-5523-cfb6-6dd563f00ae4", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignVersionID": "854686f8-ba65-59c6-09g7-3f4ff9910d91", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignActionID": "8601f4fd-g5fd-55d5-c9cg-c4f6e821b783", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/batchInstanceID": "3b5ef1d6-586d-5c78-c727-23e49d7529d2", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageType": "marketing", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/parentSourceMeta": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceType": "orchestratedCampaign", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceID": "456-6789-1234", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceVersionID": "787-34-5678-1234", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceActionID": "346-987897-123" - } - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileID": "7549c886-egf4-58c3-cff3-9dbbf163fg06", - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/channel": { - "@id": "https://ns.adobe.com/xdm/channels/email" - } - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/message": { - "messageDetails": { - "emailDetails": { - "type": "email", - "recipient": { - "email": "customer@example.com", - "name": "Alex Johnson", - "bcc": "archive@example.com" - }, - "sender": { - "email": "newsletter@example.com", - "name": "Example Company", - "errorEmail": "errors@example.com", - "replyToEmail": "support@example.com", - "replyToName": "Customer Support" - }, - "content": { - "subject": "Your March Newsletter: New Spring Products Available!", - "html": "March Newsletter
\"Example

Hello Alex,

Spring has arrived and we're excited to share our latest products with you!

\"Product

New Arrival: Spring Collection

Our spring collection features lightweight materials perfect for the warmer weather.

Shop Now

Special Offer

Use code SPRING25 for 25% off your next purchase!

© 2023 Example Company. All rights reserved.

You're receiving this email because you subscribed to our newsletter. Unsubscribe

", - "text": "MARCH NEWSLETTER\n\nHello Alex,\n\nSpring has arrived and we're excited to share our latest products with you!\n\nNEW ARRIVAL: SPRING COLLECTION\nOur spring collection features lightweight materials perfect for the warmer weather.\nShop Now: https://example.com/products/spring?utm_source=newsletter&utm_medium=email\n\nSPECIAL OFFER\nUse code SPRING25 for 25% off your next purchase!\n\n© 2023 Example Company. All rights reserved.\n\nYou're receiving this email because you subscribed to our newsletter. To unsubscribe, visit: https://example.com/unsubscribe?id=123456" - } - } - } - } -} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json b/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json deleted file mode 100644 index 1b9143ed8..000000000 --- a/extensions/adobe/experience/customerJourneyManagement/message-export-schema.json +++ /dev/null @@ -1,188 +0,0 @@ -{ - "meta:license": [ - "Copyright 2025 Adobe Systems Incorporated. All rights reserved.", - "This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", - "you may not use this file except in compliance with the License. You may obtain a copy", - "of the License at https://creativecommons.org/licenses/by/4.0/" - ], - "$id": "https://ns.adobe.com/experience/customerJourneyManagement/message-export", - "title": "Adobe CJM ExperienceEvent - Message Export", - "description": "Schema for storing the rendered message content for outbound channels in Adobe Journey Optimizer", - "type": "object", - "meta:extensible": true, - "meta:abstract": true, - "meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/experienceevent"], - "allOf": [ - { - "$ref": "https://ns.adobe.com/xdm/data/record" - }, - { - "properties": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/identityMap": { - "title": "Identity Map", - "description": "Map containing identifiers for the profile across different identity namespaces", - "$ref": "https://ns.adobe.com/xdm/context/identitymap" - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/messageExecution": { - "type": "object", - "title": "Adobe CJM ExperienceEvent - Message Execution Details", - "description": "Message Execution details for the Adobe CJM ExperienceEvent.", - "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/messageexecution" - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/messageProfile": { - "type": "object", - "title": "Adobe CJM ExperienceEvent - Message Profile Details", - "description": "Message Profile details for the Adobe CJM ExperienceEvent.", - "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile" - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/message": { - "type": "object", - "title": "Message Details", - "description": "Details of the rendered message", - "properties": { - "messageDetails": { - "type": "object", - "title": "Message Details", - "description": "Contains the specific content details for the message, varying by channel (e.g., email or SMS).", - "oneOf": [ - { - "properties": { - "emailDetails": { - "type": "object", - "title": "Email Content Details", - "description": "Specific details for an email message.", - "properties": { - "type": { - "type": "string", - "const": "email", - "description": "Discriminator field indicating the type of content." - }, - "recipient": { - "type": "object", - "properties": { - "email": { - "type": "string", - "format": "email" - }, - "name": { - "type": "string" - }, - "bcc": { - "type": "string", - "format": "email" - } - }, - "required": ["email"] - }, - "sender": { - "type": "object", - "properties": { - "email": { - "type": "string", - "format": "email" - }, - "name": { - "type": "string" - }, - "errorEmail": { - "type": "string", - "format": "email" - }, - "replyToEmail": { - "type": "string", - "format": "email" - }, - "replyToName": { - "type": "string" - } - }, - "required": ["email, errorEmail, replyToEmail"] - }, - "content": { - "type": "object", - "properties": { - "subject": { - "type": "string" - }, - "html": { - "type": "string" - }, - "text": { - "type": "string" - } - } - } - }, - "required": ["type", "recipient", "sender", "content"] - } - } - }, - { - "properties": { - "smsDetails": { - "type": "object", - "title": "SMS Content Details", - "description": "Specific details for an SMS message.", - "properties": { - "type": { - "type": "string", - "const": "sms", - "description": "Discriminator field indicating the type of content." - }, - "recipient": { - "type": "object", - "properties": { - "number": { - "type": "string", - "description": "Recipient's phone number, preferably E.164 format" - } - }, - "required": ["number"] - }, - "sender": { - "type": "object", - "properties": { - "number": { - "type": "string", - "description": "Sender's phone number or short code." - } - }, - "required": ["number"] - }, - "content": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "Optional title for the SMS, might be used by some aggregators or for internal tracking." - }, - "message": { - "type": "string", - "description": "The text content of the SMS message." - }, - "media": { - "type": "string", - "description": "The media content of the message." - } - }, - "required": ["message"] - } - }, - "required": ["type", "recipient", "sender", "content"] - } - } - } - ] - } - } - } - }, - "required": [ - "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/identityMap", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/messageExecution", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/messageProfile", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExport/message" - ] - } - ] -} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json new file mode 100644 index 000000000..7557ec975 --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json @@ -0,0 +1,118 @@ +{ + "meta:license": [ + "Copyright 2025 Adobe Systems Incorporated. All rights reserved.", + "This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", + "you may not use this file except in compliance with the License. You may obtain a copy", + "of the License at https://creativecommons.org/licenses/by/4.0/" + ], + "$id": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendered-content", + "$schema": "http://json-schema.org/draft-06/schema#", + "title": "Message Rendered Content", + "description": "Schema for storing the rendered message per channel in Adobe Journey Optimizer", + "type": "object", + "meta:extensible": true, + "meta:abstract": true, + "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], + "definitions": { + "message-rendered-content": { + "properties": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent": { + "type": "object", + "title": "Rendered Content", + "description": "Content rendered for specific channels", + "oneOf": [ + { + "properties": { + "email": { + "type": "object", + "title": "Email Channel Content", + "description": "Email-specific rendered content", + "properties": { + "type": { + "type": "string", + "const": "email", + "description": "Discriminator field indicating the type of content" + }, + "subject": { + "type": "string", + "description": "The email subject line" + }, + "html": { + "type": "string", + "description": "The HTML content of the email" + }, + "text": { + "type": "string", + "description": "The plain text content of the email" + } + }, + "required": ["type", "subject", "html", "text"] + } + } + }, + { + "properties": { + "sms": { + "type": "object", + "title": "SMS Channel Content", + "description": "SMS-specific rendered content", + "properties": { + "type": { + "type": "string", + "const": "sms", + "description": "Discriminator field indicating the type of content" + }, + "title": { + "type": "string", + "description": "The title of the SMS message" + }, + "message": { + "type": "string", + "description": "The text content of the SMS message" + }, + "media": { + "type": "string", + "description": "Media content reference for the SMS (MMS)" + } + }, + "required": ["type", "message"] + } + } + }, + { + "properties": { + "openChannel": { + "type": "object", + "title": "Open Channel Content", + "description": "Content for custom, open channels", + "properties": { + "type": { + "type": "string", + "const": "openChannel", + "description": "Discriminator field indicating the type of content" + }, + "content": { + "type": "object", + "description": "The custom content for the open channel", + "additionalProperties": true + } + }, + "required": ["type", "content"] + } + } + } + ] + } + } + } + }, + "allOf": [ + { + "$ref": "https://ns.adobe.com/xdm/data/time-series" + }, + { + "$ref": "#/definitions/message-rendered-content" + } + ], + "meta:status": "stable" +} diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.2.json deleted file mode 100644 index 86314cdd2..000000000 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.2.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap": { - "Phone": [ - { - "id": "+12345678901", - "primary": true - } - ], - "ECID": [ - { - "id": "87654321987654", - "primary": true - } - ] - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/renderingContext": { - "profile": "{\"firstName\":\"Jane\",\"lastName\":\"Smith\",\"loyaltyLevel\":\"Silver\",\"points\":750}", - "offer": "{\"id\":\"xcore:personalized-offer:5678\",\"name\":\"Flash Sale\",\"description\":\"Limited time offer: 20% off today only\"}", - "context": "{\"currentDate\":\"2023-09-15\",\"locale\":\"en-US\",\"timezone\":\"America/New_York\"}", - "propertiesContext": "{\"messageExecutionID\":\"9876a543-def3-45c1-baa1-8caae052df95\"}", - "decisionPolicy": "{\"policyId\":\"sms-policy\",\"strategy\":\"priority-based\"}", - "offerContentAttributes": "{\"deliveryURL\":\"https://cdn.example.com/offers/flash_sale.jpg\",\"contentType\":\"image/jpeg\"}", - "url": "{\"trackingEnabled\":true,\"defaultDomain\":\"sms.example.com\"}", - "fragment": "{\"header\":{\"id\":\"sms-header\",\"content\":\"Example Co:\"},\"footer\":{\"id\":\"sms-footer\",\"content\":\"Reply STOP to unsubscribe\"}}", - "externalDataLookup": "{\"locationData\":{\"city\":\"New York\",\"storeId\":\"NYC-104\"}}", - "url-support": "{\"utm_source\":\"journey\",\"utm_medium\":\"sms\",\"utm_campaign\":\"flash_sale\"}", - "inputSchema": "{\"phoneNumber\":\"string\",\"firstName\":\"string\",\"lastName\":\"string\"}", - "channelConfiguration": "{\"throttlingPolicy\":\"sms-default\",\"deliveryPriority\":\"high\"}", - "segment": "{\"segmentMembership\":{\"ups\":{\"99765a41-f112-42ac-b5b2-3d4f964e8e64\":{\"status\":\"existing\"}}}}", - "_cjmProperties": "{\"internalMetrics\":{\"renderingTime\":12,\"templateVersion\":\"1.5\"}}" - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "CMA-2372838", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageID": "bb550c97-df76-5be3-c95e-9d4c62f79cd3", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messagePublicationID": "243fb0f6-df76-5be3-c95e-851bf39f0d62", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/fragmentPublicationIDs": [ - "8b67e7b4-c770-5bf1-b4b2-616e842fd955" - ], - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageLabel": "Flash Sale SMS Alert", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionID": "1dd96072-598e-50f6-ac7d-12f6731856bd", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionInstanceID": "c0139636-d44b-51f3-b2d2-06f1c9416f89", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionNodeID": "7dfe04dd-cc1f-5fd0-b4ac-67c53a48d79d", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyActionID": "243fb0f6-8b86-523e-0124-851bf39f0d62", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignID": "c4123036-ff25-5523-cfb6-6dd563f00ae4", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignVersionID": "854686f8-ba65-59c6-09g7-3f4ff9910d91", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignActionID": "8601f4fd-g5fd-55d5-c9cg-c4f6e821b783", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/batchInstanceID": "3b5ef1d6-586d-5c78-c727-23e49d7529d2", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageType": "marketing", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/parentSourceMeta": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceType": "orchestratedCampaign", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceID": "456-6789-1234", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceVersionID": "787-34-5678-1234", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceActionID": "346-987897-123" - } - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileID": "7549c886-egf4-58c3-cff3-9dbbf163fg06", - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/channel": { - "@id": "https://ns.adobe.com/xdm/channels/sms" - } - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/metadata": { - "channelProperties": { - "sms": { - "type": "sms", - "recipient": { - "number": "+12345678901" - }, - "sender": { - "number": "33333" - }, - "title": "Flash Sale Alert" - } - } - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/retrievedEntities": [ - "{\"id\":\"store-nyc104\",\"name\":\"New York Downtown\",\"address\":\"123 Broadway, New York, NY\",\"openHours\":\"9AM-9PM\",\"phoneNumber\":\"+12125551234\"}" - ] -} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.json deleted file mode 100644 index 2e6a6a147..000000000 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.example.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap": { - "Email": [ - { - "id": "user@example.com", - "primary": true - } - ], - "ECID": [ - { - "id": "92312748749128", - "primary": true - } - ], - "Phone": [ - { - "id": "+12345678901", - "primary": false - } - ] - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/renderingContext": { - "profile": "{\"firstName\":\"John\",\"lastName\":\"Doe\",\"loyaltyLevel\":\"Gold\",\"points\":1250}", - "offer": "{\"id\":\"xcore:personalized-offer:1234\",\"name\":\"Summer Sale\",\"description\":\"Get 25% off on summer collection\"}", - "context": "{\"currentDate\":\"2023-08-22\",\"locale\":\"en-US\",\"timezone\":\"America/Los_Angeles\"}", - "propertiesContext": "{\"messageExecutionID\":\"4218b775-bef3-46b2-aee2-7caae052cf94\"}", - "decisionPolicy": "{\"policyId\":\"default\",\"strategy\":\"priority-based\"}", - "offerContentAttributes": "{\"deliveryURL\":\"https://cdn.example.com/offers/summer_sale.jpg\",\"contentType\":\"image/jpeg\"}", - "url": "{\"trackingEnabled\":true,\"defaultDomain\":\"links.example.com\"}", - "fragment": "{\"header\":{\"id\":\"header-1\",\"content\":\"
Header content
\"},\"footer\":{\"id\":\"footer-1\",\"content\":\"
Footer content
\"}}", - "externalDataLookup": "{\"weatherData\":{\"temperature\":75,\"condition\":\"sunny\"}}", - "url-support": "{\"utm_source\":\"journey\",\"utm_medium\":\"email\",\"utm_campaign\":\"summer_campaign\"}", - "inputSchema": "{\"emailAddress\":\"string\",\"firstName\":\"string\",\"lastName\":\"string\"}", - "channelConfiguration": "{\"throttlingPolicy\":\"default\",\"deliveryPriority\":\"normal\"}", - "segment": "{\"segmentMembership\":{\"ups\":{\"77890f52-e223-4f7c-a6a3-7d4f964e9f75\":{\"status\":\"existing\"}}}}", - "_cjmProperties": "{\"internalMetrics\":{\"renderingTime\":45,\"templateVersion\":\"2.1\"}}" - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageExecutionID": "CMA-2372838", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageID": "aa440b96-ce65-4ad2-b95d-8c3b51f89bc2", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messagePublicationID": "132fa0e5-ce65-4ad2-b95d-740ae29e9c51", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/fragmentPublicationIDs": [ - "7a56d6a3-b660-4af0-a3a1-505d731fc844", - "9c53f52a-c0d1-4c61-9e2d-87bd043bc621" - ], - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageLabel": "Summer Promotion for Gold Members", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionID": "0cc85961-487d-49e5-9b6c-01f5630756ac", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionInstanceID": "b9029525-c33a-40f2-a1c1-95f0b8305078", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyVersionNodeID": "6cfe93cc-bb0e-4ec9-a39b-56b53a73d28c", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/journeyActionID": "132fa0e5-7a75-412d-9013-740ae29e9c51", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignID": "b3012925-ee14-4412-bfa5-5cc452e99ad3", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignVersionID": "743575e7-a954-48b5-98f6-2e3ee8809c80", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/campaignActionID": "7590e3ec-f4ec-44c4-b8bf-b3f5d710b672", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/batchInstanceID": "2a4de0c5-475c-4b67-b616-12d38c6518c1", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/messageType": "marketing", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/parentSourceMeta": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceType": "orchestratedCampaign", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceID": "123-1234-8989", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceVersionID": "676-23-1234-8989", - "https://ns.adobe.com/experience/customerJourneyManagement/messageExecution/sourceActionID": "235-898798-989" - } - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/messageProfileID": "5329b775-cef3-47b2-bee2-8caae052df95", - "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile/channel": { - "@id": "https://ns.adobe.com/xdm/channels/email" - } - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/metadata": { - "channelProperties": { - "email": { - "type": "email", - "recipient": { - "email": "user@example.com", - "name": "John Doe", - "bcc": "archive@example.com" - }, - "sender": { - "email": "marketing@example.com", - "name": "Example Marketing Team", - "errorEmail": "errors@example.com", - "replyToEmail": "support@example.com", - "replyToName": "Customer Support" - }, - "subject": "Summer Exclusive: {{profile.firstName}}, Enjoy Your Gold Member Benefits!" - } - } - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/retrievedEntities": [ - "{\"id\":\"product-123\",\"name\":\"Summer T-Shirt\",\"price\":29.99,\"color\":\"blue\",\"size\":\"M\",\"imageUrl\":\"https://cdn.example.com/products/tshirt-blue-m.jpg\"}", - "{\"id\":\"product-456\",\"name\":\"Beach Shorts\",\"price\":24.99,\"color\":\"white\",\"size\":\"L\",\"imageUrl\":\"https://cdn.example.com/products/shorts-white-l.jpg\"}" - ] -} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.schema.json deleted file mode 100644 index 5e01a5016..000000000 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendering-context.schema.json +++ /dev/null @@ -1,259 +0,0 @@ -{ - "meta:license": [ - "Copyright 2025 Adobe Systems Incorporated. All rights reserved.", - "This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", - "you may not use this file except in compliance with the License. You may obtain a copy", - "of the License at https://creativecommons.org/licenses/by/4.0/" - ], - "$id": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendering-context", - "title": "Adobe CJM ExperienceEvent - Message Rendering Context", - "description": "Schema for storing the context data required to render a message in Adobe Journey Optimizer", - "type": "object", - "meta:extensible": true, - "meta:abstract": true, - "meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/experienceevent"], - "allOf": [ - { - "$ref": "https://ns.adobe.com/xdm/data/record" - }, - { - "properties": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap": { - "title": "Identity Map", - "description": "Map containing identifiers for the profile across different identity namespaces", - "$ref": "https://ns.adobe.com/xdm/context/identitymap" - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/renderingContext": { - "type": "object", - "title": "Rendering Context", - "description": "A map of namespace identifiers to stringified JSON representations of context objects used in template rendering and personalization", - "properties": { - "profile": { - "type": "string", - "title": "Profile Context", - "description": "Stringified JSON of profile attributes accessed via the 'profile' namespace in templates" - }, - "offer": { - "type": "string", - "title": "Offer Context", - "description": "Stringified JSON of offer decision information accessed via the 'offer' namespace in templates" - }, - "context": { - "type": "string", - "title": "Context", - "description": "Stringified JSON of context variables for general purpose use" - }, - "propertiesContext": { - "type": "string", - "title": "Properties Context", - "description": "Stringified JSON of Journey Optimizer properties and configuration settings for the message" - }, - "decisionPolicy": { - "type": "string", - "title": "Decision Policy Context", - "description": "Stringified JSON of decision policy information for offer decisioning" - }, - "offerContentAttributes": { - "type": "string", - "title": "Offer Content Attributes", - "description": "Stringified JSON of attributes related to offer content" - }, - "url": { - "type": "string", - "title": "URL Context", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "fragment": { - "type": "string", - "title": "Fragment Context", - "description": "Stringified JSON of content fragments that can be inserted into templates" - }, - "externalDataLookup": { - "type": "string", - "title": "External Data Lookup", - "description": "Stringified JSON of context for external data lookups during rendering" - }, - "url-support": { - "type": "string", - "title": "URL Support", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "inputSchema": { - "type": "string", - "title": "Input Schema", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "channelConfiguration": { - "type": "string", - "title": "Channel Configuration", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "segment": { - "type": "string", - "title": "Segment Context", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "_cjmProperties": { - "type": "string", - "title": "CJM Properties", - "description": "Stringified JSON of internal properties used by the CJM rendering engine" - } - } - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution": { - "type": "object", - "title": "Adobe CJM ExperienceEvent - Message Execution Details", - "description": "Message Execution details for the Adobe CJM ExperienceEvent.", - "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/messageexecution" - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile": { - "type": "object", - "title": "Adobe CJM ExperienceEvent - Message Profile Details", - "description": "Message Profile details for the Adobe CJM ExperienceEvent.", - "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/messageProfile" - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/metadata": { - "type": "object", - "title": "Rendering Metadata", - "description": "Metadata about the rendering context", - "properties": { - "channelProperties": { - "type": "object", - "title": "Channel Properties", - "description": "Channel-specific properties for message delivery", - "oneOf": [ - { - "properties": { - "email": { - "type": "object", - "title": "Email Channel Properties", - "description": "Properties specific to email delivery", - "properties": { - "type": { - "type": "string", - "const": "email", - "description": "Discriminator field indicating the type of content." - }, - "recipient": { - "type": "object", - "properties": { - "email": { - "type": "string", - "format": "email" - }, - "name": { - "type": "string" - }, - "bcc": { - "type": "string", - "format": "email" - } - }, - "required": [ - "email" - ] - }, - "sender": { - "type": "object", - "properties": { - "email": { - "type": "string", - "format": "email" - }, - "name": { - "type": "string" - }, - "errorEmail": { - "type": "string", - "format": "email" - }, - "replyToEmail": { - "type": "string", - "format": "email" - }, - "replyToName": { - "type": "string" - } - }, - "required": [ - "email, errorEmail, replyToEmail" - ] - }, - "subject": { - "type": "string", - "title": "Subject", - "description": "Email subject line template" - } - } - } - } - }, - { - "properties": { - "sms": { - "type": "object", - "title": "SMS Channel Properties", - "description": "Properties specific to SMS delivery", - "properties": { - "type": { - "type": "string", - "const": "sms", - "description": "Discriminator field indicating the type of content." - }, - "recipient": { - "type": "object", - "properties": { - "number": { - "type": "string", - "description": "Recipient's phone number, preferably E.164 format" - } - }, - "required": [ - "number" - ] - }, - "sender": { - "type": "object", - "properties": { - "number": { - "type": "string", - "description": "Sender's phone number or short code." - } - }, - "required": [ - "number" - ] - }, - "title": { - "type": "string", - "description": "Optional title for the SMS." - } - } - } - } - } - ] - } - } - }, - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/retrievedEntities": { - "type": "array", - "title": "Retrieved Entities", - "description": "An array of stringified JSON representations of entities retrieved during dynamic entity hydration.", - "items": { - "type": "string", - "description": "Stringified JSON representing a retrieved entity's data." - } - } - }, - "required": [ - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/identityMap", - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/renderingContext", - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageExecution", - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/messageProfile", - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/metadata", - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingContext/retrievedEntities" - ] - } - ] -} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json new file mode 100644 index 000000000..d567cb528 --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json @@ -0,0 +1,163 @@ +{ + "meta:license": [ + "Copyright 2025 Adobe Systems Incorporated. All rights reserved.", + "This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", + "you may not use this file except in compliance with the License. You may obtain a copy", + "of the License at https://creativecommons.org/licenses/by/4.0/" + ], + "$id": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendering-data", + "$schema": "http://json-schema.org/draft-06/schema#", + "title": "Message Rendering Data", + "description": "Schema for storing the context data required to render a message in Adobe Journey Optimizer", + "type": "object", + "meta:extensible": true, + "meta:abstract": true, + "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], + "definitions": { + "message-rendering-data": { + "properties": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingData": { + "type": "object", + "title": "Message Rendering Data", + "description": "Data related to message rendering in Journey Optimizer", + "oneOf": [ + { + "properties": { + "MessageRenderingContext": { + "type": "object", + "title": "Message Rendering Context", + "description": "A map of namespace identifiers to stringified JSON representations of context objects used in template rendering and personalization", + "properties": { + "type": { + "type": "string", + "const": "rendering-context", + "description": "Discriminator field indicating this is rendering context data" + }, + "renderingContext": { + "type": "object", + "title": "Rendering Context Map", + "description": "A map of namespace identifiers to stringified JSON representations of context objects", + "properties": { + "profile": { + "type": "string", + "title": "Profile Context", + "description": "Stringified JSON of profile attributes accessed via the 'profile' namespace in templates" + }, + "offer": { + "type": "string", + "title": "Offer Context", + "description": "Stringified JSON of offer decision information accessed via the 'offer' namespace in templates" + }, + "context": { + "type": "string", + "title": "Context", + "description": "Stringified JSON of context variables for general purpose use" + }, + "propertiesContext": { + "type": "string", + "title": "Properties Context", + "description": "Stringified JSON of Journey Optimizer properties and configuration settings for the message" + }, + "decisionPolicy": { + "type": "string", + "title": "Decision Policy Context", + "description": "Stringified JSON of decision policy information for offer decisioning" + }, + "offerContentAttributes": { + "type": "string", + "title": "Offer Content Attributes", + "description": "Stringified JSON of attributes related to offer content" + }, + "url": { + "type": "string", + "title": "URL Context", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "fragment": { + "type": "string", + "title": "Fragment Context", + "description": "Stringified JSON of content fragments that can be inserted into templates" + }, + "externalDataLookup": { + "type": "string", + "title": "External Data Lookup", + "description": "Stringified JSON of context for external data lookups during rendering" + }, + "url-support": { + "type": "string", + "title": "URL Support", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "inputSchema": { + "type": "string", + "title": "Input Schema", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "channelConfiguration": { + "type": "string", + "title": "Channel Configuration", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "segment": { + "type": "string", + "title": "Segment Context", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "_cjmProperties": { + "type": "string", + "title": "CJM Properties", + "description": "Stringified JSON of internal properties used by the CJM rendering engine" + } + } + }, + "retrievedEntities": { + "type": "array", + "title": "Retrieved Entities", + "description": "An array of stringified JSON representations of entities retrieved during dynamic entity hydration", + "items": { + "type": "object", + "description": "JSON object representing a retrieved entity's data" + } + } + }, + "required": ["type", "renderingContext"] + } + } + }, + { + "properties": { + "MessageRenderedContent": { + "type": "object", + "title": "Message Rendered Content", + "description": "The rendered content for a specific channel", + "properties": { + "type": { + "type": "string", + "const": "rendered-content", + "description": "Discriminator field indicating this is rendered content data" + }, + "renderedContent": { + "title": "Rendered Channel Content", + "description": "Channel-specific rendered content", + "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendered-content" + } + }, + "required": ["type", "channelContent"] + } + } + } + ] + } + } + } + }, + "allOf": [ + { + "$ref": "https://ns.adobe.com/xdm/data/time-series" + }, + { + "$ref": "#/definitions/message-rendering-data" + } + ], + "meta:status": "stable" +} From 70dae274b2880d8c30c37c1131d76d5fd2da0a2c Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Thu, 12 Jun 2025 18:46:51 +0530 Subject: [PATCH 08/19] compilation fixes --- .../message-delivery-metadata.schema.json | 4 +++- .../message-rendered-content.schema.json | 4 +++- .../message-rendering-data.schema.json | 9 +++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json index 373987d73..19a67be96 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json @@ -17,11 +17,11 @@ "message-delivery-metadata": { "properties": { "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata": { - "type": "object", "title": "Message Delivery Metadata", "description": "Channel-specific metadata for message delivery", "oneOf": [ { + "type": "object", "properties": { "email": { "type": "object", @@ -97,6 +97,7 @@ } }, { + "type": "object", "properties": { "sms": { "type": "object", @@ -138,6 +139,7 @@ } }, { + "type": "object", "properties": { "openChannel": { "type": "object", diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json index 7557ec975..5fcb2498b 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json @@ -17,11 +17,11 @@ "message-rendered-content": { "properties": { "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent": { - "type": "object", "title": "Rendered Content", "description": "Content rendered for specific channels", "oneOf": [ { + "type": "object", "properties": { "email": { "type": "object", @@ -51,6 +51,7 @@ } }, { + "type": "object", "properties": { "sms": { "type": "object", @@ -80,6 +81,7 @@ } }, { + "type": "object", "properties": { "openChannel": { "type": "object", diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json index d567cb528..d4310e67d 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json @@ -17,11 +17,11 @@ "message-rendering-data": { "properties": { "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingData": { - "type": "object", "title": "Message Rendering Data", "description": "Data related to message rendering in Journey Optimizer", "oneOf": [ { + "type": "object", "properties": { "MessageRenderingContext": { "type": "object", @@ -115,8 +115,8 @@ "title": "Retrieved Entities", "description": "An array of stringified JSON representations of entities retrieved during dynamic entity hydration", "items": { - "type": "object", - "description": "JSON object representing a retrieved entity's data" + "type": "string", + "description": "Stringified JSON representing a retrieved entity's data" } } }, @@ -125,6 +125,7 @@ } }, { + "type": "object", "properties": { "MessageRenderedContent": { "type": "object", @@ -142,7 +143,7 @@ "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendered-content" } }, - "required": ["type", "channelContent"] + "required": ["type", "renderedContent"] } } } From 8db533a8e3e5bf6136ee9710f14d3e9a28415cec Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Tue, 17 Jun 2025 13:25:20 +0530 Subject: [PATCH 09/19] schema field name casing update --- .../message-delivery-metadata.schema.json | 4 ++-- .../message-rendered-content.schema.json | 4 ++-- .../message-rendering-data.schema.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json index 19a67be96..5e6a94502 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json @@ -14,7 +14,7 @@ "meta:abstract": true, "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], "definitions": { - "message-delivery-metadata": { + "messageDeliveryMetadata": { "properties": { "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata": { "title": "Message Delivery Metadata", @@ -170,7 +170,7 @@ "$ref": "https://ns.adobe.com/xdm/data/time-series" }, { - "$ref": "#/definitions/message-delivery-metadata" + "$ref": "#/definitions/messageDeliveryMetadata" } ], "meta:status": "stable" diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json index 5fcb2498b..19cb7450d 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json @@ -14,7 +14,7 @@ "meta:abstract": true, "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], "definitions": { - "message-rendered-content": { + "messageRenderedContent": { "properties": { "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent": { "title": "Rendered Content", @@ -113,7 +113,7 @@ "$ref": "https://ns.adobe.com/xdm/data/time-series" }, { - "$ref": "#/definitions/message-rendered-content" + "$ref": "#/definitions/messageRenderedContent" } ], "meta:status": "stable" diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json index d4310e67d..6643958f5 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json @@ -14,7 +14,7 @@ "meta:abstract": true, "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], "definitions": { - "message-rendering-data": { + "messageRenderingData": { "properties": { "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingData": { "title": "Message Rendering Data", @@ -157,7 +157,7 @@ "$ref": "https://ns.adobe.com/xdm/data/time-series" }, { - "$ref": "#/definitions/message-rendering-data" + "$ref": "#/definitions/messageRenderingData" } ], "meta:status": "stable" From 7b4280d6172d0ae23b87c0be82c24c81f41761cc Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Thu, 19 Jun 2025 13:53:28 +0530 Subject: [PATCH 10/19] more changes --- .../message-delivery-metadata.schema.json | 242 ++++++++---------- .../message-rendered-content.schema.json | 151 +++++------ .../message-rendering-data.schema.json | 236 +++++++++-------- 3 files changed, 288 insertions(+), 341 deletions(-) diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json index 5e6a94502..8ce2819b9 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json @@ -15,154 +15,128 @@ "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], "definitions": { "messageDeliveryMetadata": { - "properties": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata": { - "title": "Message Delivery Metadata", - "description": "Channel-specific metadata for message delivery", - "oneOf": [ - { + "oneOf": [ + { + "type": "object", + "title": "Email Metadata", + "description": "Metadata specific to email delivery", + "properties": { + "type": { + "type": "string", + "const": "email", + "description": "Discriminator field indicating the type of metadata" + }, + "recipient": { "type": "object", "properties": { "email": { - "type": "object", - "title": "Email Metadata", - "description": "Metadata specific to email delivery", - "properties": { - "type": { - "type": "string", - "const": "email", - "description": "Discriminator field indicating the type of metadata" - }, - "recipient": { - "type": "object", - "properties": { - "email": { - "type": "string", - "format": "email", - "description": "Recipient's email address" - }, - "name": { - "type": "string", - "description": "Recipient's name" - }, - "bcc": { - "type": "string", - "format": "email", - "description": "BCC email address" - } - }, - "required": ["email"] - }, - "sender": { - "type": "object", - "properties": { - "email": { - "type": "string", - "format": "email", - "description": "Sender's email address" - }, - "name": { - "type": "string", - "description": "Sender's name" - }, - "errorEmail": { - "type": "string", - "format": "email", - "description": "Email address for delivery errors" - }, - "replyToEmail": { - "type": "string", - "format": "email", - "description": "Reply-to email address" - }, - "replyToName": { - "type": "string", - "description": "Reply-to name" - } - }, - "required": [ - "email", - "name", - "replyToEmail", - "errorEmail" - ] - }, - "subject": { - "type": "string", - "description": "Email subject line" - } - }, - "required": ["type", "recipient", "sender", "subject"] + "type": "string", + "format": "email", + "description": "Recipient's email address" + }, + "name": { + "type": "string", + "description": "Recipient's name" + }, + "bcc": { + "type": "string", + "format": "email", + "description": "BCC email address" } - } + }, + "required": ["email"] }, - { + "sender": { "type": "object", "properties": { - "sms": { - "type": "object", - "title": "SMS Metadata", - "description": "Metadata specific to SMS delivery", - "properties": { - "type": { - "type": "string", - "const": "sms", - "description": "Discriminator field indicating the type of metadata" - }, - "recipient": { - "type": "object", - "properties": { - "number": { - "type": "string", - "description": "Recipient's phone number" - } - }, - "required": ["number"] - }, - "sender": { - "type": "object", - "properties": { - "number": { - "type": "string", - "description": "Sender's phone number" - } - }, - "required": ["number"] - }, - "title": { - "type": "string", - "description": "Title of the SMS message" - } - }, - "required": ["type", "recipient", "sender", "title"] + "email": { + "type": "string", + "format": "email", + "description": "Sender's email address" + }, + "name": { + "type": "string", + "description": "Sender's name" + }, + "errorEmail": { + "type": "string", + "format": "email", + "description": "Email address for delivery errors" + }, + "replyToEmail": { + "type": "string", + "format": "email", + "description": "Reply-to email address" + }, + "replyToName": { + "type": "string", + "description": "Reply-to name" } - } + }, + "required": ["email", "name", "replyToEmail", "errorEmail"] + }, + "subject": { + "type": "string", + "description": "Email subject line" + } + }, + "required": ["type", "recipient", "sender", "subject"] + }, + { + "type": "object", + "title": "SMS Metadata", + "description": "Metadata specific to SMS delivery", + "properties": { + "type": { + "type": "string", + "const": "sms", + "description": "Discriminator field indicating the type of metadata" }, - { + "recipient": { "type": "object", "properties": { - "openChannel": { - "type": "object", - "title": "Open Channel Metadata", - "description": "Metadata for custom, open channels", - "properties": { - "type": { - "type": "string", - "const": "openChannel", - "description": "Discriminator field indicating the type of metadata" - }, - "metadata": { - "type": "string", - "description": "Stringified JSON of channel-specific metadata" - } - }, - "required": ["type", "metadata"] + "number": { + "type": "string", + "description": "Recipient's phone number" } - } + }, + "required": ["number"] + }, + "sender": { + "type": "object", + "properties": { + "number": { + "type": "string", + "description": "Sender's phone number" + } + }, + "required": ["number"] + }, + "title": { + "type": "string", + "description": "Title of the SMS message" + } + }, + "required": ["type", "recipient", "sender", "title"] + }, + { + "type": "object", + "title": "Open Channel Metadata", + "description": "Metadata for custom, open channels", + "properties": { + "type": { + "type": "string", + "const": "openChannel", + "description": "Discriminator field indicating the type of metadata" + }, + "metadata": { + "type": "string", + "description": "Stringified JSON of channel-specific metadata" } - ] + }, + "required": ["type", "metadata"] } - } + ] } }, "allOf": [ diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json index 19cb7450d..cd4193c7f 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json @@ -15,97 +15,76 @@ "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], "definitions": { "messageRenderedContent": { - "properties": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent": { - "title": "Rendered Content", - "description": "Content rendered for specific channels", - "oneOf": [ - { - "type": "object", - "properties": { - "email": { - "type": "object", - "title": "Email Channel Content", - "description": "Email-specific rendered content", - "properties": { - "type": { - "type": "string", - "const": "email", - "description": "Discriminator field indicating the type of content" - }, - "subject": { - "type": "string", - "description": "The email subject line" - }, - "html": { - "type": "string", - "description": "The HTML content of the email" - }, - "text": { - "type": "string", - "description": "The plain text content of the email" - } - }, - "required": ["type", "subject", "html", "text"] - } - } + "oneOf": [ + { + "type": "object", + "title": "Email Channel Content", + "description": "Email-specific rendered content", + "properties": { + "type": { + "type": "string", + "const": "email", + "description": "Discriminator field indicating the type of content" }, - { - "type": "object", - "properties": { - "sms": { - "type": "object", - "title": "SMS Channel Content", - "description": "SMS-specific rendered content", - "properties": { - "type": { - "type": "string", - "const": "sms", - "description": "Discriminator field indicating the type of content" - }, - "title": { - "type": "string", - "description": "The title of the SMS message" - }, - "message": { - "type": "string", - "description": "The text content of the SMS message" - }, - "media": { - "type": "string", - "description": "Media content reference for the SMS (MMS)" - } - }, - "required": ["type", "message"] - } - } + "subject": { + "type": "string", + "description": "The email subject line" + }, + "html": { + "type": "string", + "description": "The HTML content of the email" + }, + "text": { + "type": "string", + "description": "The plain text content of the email" + } + }, + "required": ["type", "subject", "html", "text"] + }, + { + "type": "object", + "title": "SMS Channel Content", + "description": "SMS-specific rendered content", + "properties": { + "type": { + "type": "string", + "const": "sms", + "description": "Discriminator field indicating the type of content" + }, + "title": { + "type": "string", + "description": "The title of the SMS message" + }, + "message": { + "type": "string", + "description": "The text content of the SMS message" + }, + "media": { + "type": "string", + "description": "Media content reference for the SMS (MMS)" + } + }, + "required": ["type", "message"] + }, + { + "type": "object", + "title": "Open Channel Content", + "description": "Content for custom, open channels", + "properties": { + "type": { + "type": "string", + "const": "openChannel", + "description": "Discriminator field indicating the type of content" }, - { + "content": { "type": "object", - "properties": { - "openChannel": { - "type": "object", - "title": "Open Channel Content", - "description": "Content for custom, open channels", - "properties": { - "type": { - "type": "string", - "const": "openChannel", - "description": "Discriminator field indicating the type of content" - }, - "content": { - "type": "object", - "description": "The custom content for the open channel", - "additionalProperties": true - } - }, - "required": ["type", "content"] - } - } + "description": "The custom content for the open channel", + "additionalProperties": true } - ] + }, + "required": ["type", "content"] } - } + ] } }, "allOf": [ diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json index 6643958f5..5e23798f0 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json @@ -15,141 +15,135 @@ "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], "definitions": { "messageRenderingData": { - "properties": { - "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingData": { - "title": "Message Rendering Data", - "description": "Data related to message rendering in Journey Optimizer", - "oneOf": [ - { + "oneOf": [ + { + "type": "object", + "properties": { + "MessageRenderingContext": { "type": "object", + "title": "Message Rendering Context", + "description": "A map of namespace identifiers to stringified JSON representations of context objects used in template rendering and personalization", "properties": { - "MessageRenderingContext": { + "type": { + "type": "string", + "const": "rendering-context", + "description": "Discriminator field indicating this is rendering context data" + }, + "renderingContext": { "type": "object", - "title": "Message Rendering Context", - "description": "A map of namespace identifiers to stringified JSON representations of context objects used in template rendering and personalization", + "title": "Rendering Context Map", + "description": "A map of namespace identifiers to stringified JSON representations of context objects", "properties": { - "type": { + "profile": { "type": "string", - "const": "rendering-context", - "description": "Discriminator field indicating this is rendering context data" + "title": "Profile Context", + "description": "Stringified JSON of profile attributes accessed via the 'profile' namespace in templates" }, - "renderingContext": { - "type": "object", - "title": "Rendering Context Map", - "description": "A map of namespace identifiers to stringified JSON representations of context objects", - "properties": { - "profile": { - "type": "string", - "title": "Profile Context", - "description": "Stringified JSON of profile attributes accessed via the 'profile' namespace in templates" - }, - "offer": { - "type": "string", - "title": "Offer Context", - "description": "Stringified JSON of offer decision information accessed via the 'offer' namespace in templates" - }, - "context": { - "type": "string", - "title": "Context", - "description": "Stringified JSON of context variables for general purpose use" - }, - "propertiesContext": { - "type": "string", - "title": "Properties Context", - "description": "Stringified JSON of Journey Optimizer properties and configuration settings for the message" - }, - "decisionPolicy": { - "type": "string", - "title": "Decision Policy Context", - "description": "Stringified JSON of decision policy information for offer decisioning" - }, - "offerContentAttributes": { - "type": "string", - "title": "Offer Content Attributes", - "description": "Stringified JSON of attributes related to offer content" - }, - "url": { - "type": "string", - "title": "URL Context", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "fragment": { - "type": "string", - "title": "Fragment Context", - "description": "Stringified JSON of content fragments that can be inserted into templates" - }, - "externalDataLookup": { - "type": "string", - "title": "External Data Lookup", - "description": "Stringified JSON of context for external data lookups during rendering" - }, - "url-support": { - "type": "string", - "title": "URL Support", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "inputSchema": { - "type": "string", - "title": "Input Schema", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "channelConfiguration": { - "type": "string", - "title": "Channel Configuration", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "segment": { - "type": "string", - "title": "Segment Context", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "_cjmProperties": { - "type": "string", - "title": "CJM Properties", - "description": "Stringified JSON of internal properties used by the CJM rendering engine" - } - } + "offer": { + "type": "string", + "title": "Offer Context", + "description": "Stringified JSON of offer decision information accessed via the 'offer' namespace in templates" + }, + "context": { + "type": "string", + "title": "Context", + "description": "Stringified JSON of context variables for general purpose use" + }, + "propertiesContext": { + "type": "string", + "title": "Properties Context", + "description": "Stringified JSON of Journey Optimizer properties and configuration settings for the message" + }, + "decisionPolicy": { + "type": "string", + "title": "Decision Policy Context", + "description": "Stringified JSON of decision policy information for offer decisioning" + }, + "offerContentAttributes": { + "type": "string", + "title": "Offer Content Attributes", + "description": "Stringified JSON of attributes related to offer content" + }, + "url": { + "type": "string", + "title": "URL Context", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "fragment": { + "type": "string", + "title": "Fragment Context", + "description": "Stringified JSON of content fragments that can be inserted into templates" + }, + "externalDataLookup": { + "type": "string", + "title": "External Data Lookup", + "description": "Stringified JSON of context for external data lookups during rendering" }, - "retrievedEntities": { - "type": "array", - "title": "Retrieved Entities", - "description": "An array of stringified JSON representations of entities retrieved during dynamic entity hydration", - "items": { - "type": "string", - "description": "Stringified JSON representing a retrieved entity's data" - } + "url-support": { + "type": "string", + "title": "URL Support", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "inputSchema": { + "type": "string", + "title": "Input Schema", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "channelConfiguration": { + "type": "string", + "title": "Channel Configuration", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "segment": { + "type": "string", + "title": "Segment Context", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "_cjmProperties": { + "type": "string", + "title": "CJM Properties", + "description": "Stringified JSON of internal properties used by the CJM rendering engine" } - }, - "required": ["type", "renderingContext"] + } + }, + "retrievedEntities": { + "type": "array", + "title": "Retrieved Entities", + "description": "An array of stringified JSON representations of entities retrieved during dynamic entity hydration", + "items": { + "type": "string", + "description": "Stringified JSON representing a retrieved entity's data" + } } - } - }, - { + }, + "required": ["type", "renderingContext"] + } + } + }, + { + "type": "object", + "properties": { + "MessageRenderedContent": { "type": "object", + "title": "Message Rendered Content", + "description": "The rendered content for a specific channel", "properties": { - "MessageRenderedContent": { - "type": "object", - "title": "Message Rendered Content", - "description": "The rendered content for a specific channel", - "properties": { - "type": { - "type": "string", - "const": "rendered-content", - "description": "Discriminator field indicating this is rendered content data" - }, - "renderedContent": { - "title": "Rendered Channel Content", - "description": "Channel-specific rendered content", - "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendered-content" - } - }, - "required": ["type", "renderedContent"] + "type": { + "type": "string", + "const": "rendered-content", + "description": "Discriminator field indicating this is rendered content data" + }, + "renderedContent": { + "title": "Rendered Channel Content", + "description": "Channel-specific rendered content", + "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendered-content" } - } + }, + "required": ["type", "renderedContent"] } - ] + } } - } + ] } }, "allOf": [ From df8627a75a1d12983b78e6e1b15d67026df6e508 Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Wed, 2 Jul 2025 15:31:48 +0530 Subject: [PATCH 11/19] review changes --- .../message-delivery-metadata.schema.json | 32 +++++++++---------- .../message-rendered-content.schema.json | 2 +- .../message-rendering-data.schema.json | 2 +- 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json index 8ce2819b9..a0f0d51ed 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json @@ -39,9 +39,12 @@ "description": "Recipient's name" }, "bcc": { - "type": "string", - "format": "email", - "description": "BCC email address" + "type": "array", + "description": "BCC email address", + "items": { + "type": "string", + "format": "email" + } } }, "required": ["email"] @@ -74,13 +77,9 @@ } }, "required": ["email", "name", "replyToEmail", "errorEmail"] - }, - "subject": { - "type": "string", - "description": "Email subject line" } }, - "required": ["type", "recipient", "sender", "subject"] + "required": ["type", "recipient", "sender"] }, { "type": "object", @@ -104,20 +103,19 @@ }, "sender": { "type": "object", + "description": "Sender's phone number", "properties": { - "number": { - "type": "string", - "description": "Sender's phone number" + "numbers": { + "type": "array", + "items": { + "type": "string" + } } }, - "required": ["number"] - }, - "title": { - "type": "string", - "description": "Title of the SMS message" + "required": ["numbers"] } }, - "required": ["type", "recipient", "sender", "title"] + "required": ["type", "recipient", "sender"] }, { "type": "object", diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json index cd4193c7f..398be18fe 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json @@ -39,7 +39,7 @@ "description": "The plain text content of the email" } }, - "required": ["type", "subject", "html", "text"] + "required": ["type", "subject", "html"] }, { "type": "object", diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json index 5e23798f0..811a287f5 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json @@ -46,7 +46,7 @@ }, "context": { "type": "string", - "title": "Context", + "title": "Contextual Attribute Context", "description": "Stringified JSON of context variables for general purpose use" }, "propertiesContext": { From 0a9833d346fd3a33bf540203a29914c443939083 Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Wed, 2 Jul 2025 15:35:30 +0530 Subject: [PATCH 12/19] fix linting errir --- .../message-delivery-metadata.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json index a0f0d51ed..e8444c15f 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json @@ -108,7 +108,7 @@ "numbers": { "type": "array", "items": { - "type": "string" + "type": "string" } } }, From b2a318a60fa748a36a926b121c0e960d518d5e9f Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Mon, 7 Jul 2025 16:07:07 +0530 Subject: [PATCH 13/19] Adding examples for minor change in schema structure --- .../message-data.example.1.json | 25 +++ .../message-data.example.2.json | 11 ++ .../message-data.schema.json | 148 ++++++++++++++++ .../message-delivery-metadata.example.1.json | 17 ++ .../message-delivery-metadata.example.2.json | 11 ++ .../message-rendered-content.example.1.json | 8 + .../message-rendered-content.example.2.json | 8 + .../message-rendering-data.schema.json | 158 ------------------ 8 files changed, 228 insertions(+), 158 deletions(-) create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-data.example.1.json create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-data.example.2.json create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-data.schema.json create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json delete mode 100644 extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json diff --git a/extensions/adobe/experience/customerJourneyManagement/message-data.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-data.example.1.json new file mode 100644 index 000000000..c6ce1c789 --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-data.example.1.json @@ -0,0 +1,25 @@ +{ + "https://ns.adobe.com/experience/customerJourneyManagement/messageData": { + "type": "rendering-context", + "renderingContext": { + "profile": "{\"firstName\":\"John\",\"lastName\":\"Doe\",\"email\":\"john.doe@example.com\"}", + "offer": "{\"offerId\":\"OFF123\",\"description\":\"20% off your next purchase\"}", + "context": "{\"channel\":\"email\",\"language\":\"en-US\"}", + "propertiesContext": "{\"brand\":\"Adobe\",\"campaign\":\"Spring Sale\"}", + "decisionPolicy": "{\"policyId\":\"POLICY1\",\"decision\":\"accept\"}", + "offerContentAttributes": "{\"headline\":\"Special Offer\"}", + "url": "{\"landingPage\":\"https://adobe.com/sale\"}", + "fragment": "{\"header\":\"Welcome!\",\"footer\":\"Thank you\"}", + "externalDataLookup": "{\"lookupId\":\"LKP1\",\"result\":\"success\"}", + "url-support": "{\"shortener\":\"bit.ly\"}", + "inputSchema": "{\"fields\":[\"firstName\",\"lastName\"]}", + "channelConfiguration": "{\"provider\":\"SendGrid\"}", + "segment": "{\"segmentId\":\"SEG1\"}", + "_cjmProperties": "{\"internalFlag\":true}" + }, + "retrievedEntities": [ + "{\"entityType\":\"profile\",\"id\":\"12345\"}", + "{\"entityType\":\"offer\",\"id\":\"OFF123\"}" + ] + } +} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-data.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-data.example.2.json new file mode 100644 index 000000000..629049269 --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-data.example.2.json @@ -0,0 +1,11 @@ +{ + "https://ns.adobe.com/experience/customerJourneyManagement/messageData": { + "type": "rendered-content", + "renderedContent": { + "type": "sms", + "title": "Promo", + "message": "Your code is 12345. Use it to get 20% off!", + "media": "https://example.com/media/promo.jpg" + } + } +} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-data.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-data.schema.json new file mode 100644 index 000000000..191cabfcf --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-data.schema.json @@ -0,0 +1,148 @@ +{ + "meta:license": [ + "Copyright 2025 Adobe Systems Incorporated. All rights reserved.", + "This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", + "you may not use this file except in compliance with the License. You may obtain a copy", + "of the License at https://creativecommons.org/licenses/by/4.0/" + ], + "$id": "https://ns.adobe.com/experience/customerJourneyManagement/message-data", + "$schema": "http://json-schema.org/draft-06/schema#", + "title": "Message Rendering Data", + "description": "Schema for storing the context data required to render a message in Adobe Journey Optimizer", + "type": "object", + "meta:extensible": true, + "meta:abstract": true, + "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], + "definitions": { + "messageData": { + "oneOf": [ + { + "type": "object", + "title": "Message Rendering Context", + "description": "A map of namespace identifiers to stringified JSON representations of context objects used in template rendering and personalization", + "properties": { + "type": { + "type": "string", + "const": "rendering-context", + "description": "Discriminator field indicating this is rendering context data" + }, + "renderingContext": { + "type": "object", + "title": "Rendering Context Map", + "description": "A map of namespace identifiers to stringified JSON representations of context objects", + "properties": { + "profile": { + "type": "string", + "title": "Profile Context", + "description": "Stringified JSON of profile attributes accessed via the 'profile' namespace in templates" + }, + "offer": { + "type": "string", + "title": "Offer Context", + "description": "Stringified JSON of offer decision information accessed via the 'offer' namespace in templates" + }, + "context": { + "type": "string", + "title": "Contextual Attribute Context", + "description": "Stringified JSON of context variables for general purpose use" + }, + "propertiesContext": { + "type": "string", + "title": "Properties Context", + "description": "Stringified JSON of Journey Optimizer properties and configuration settings for the message" + }, + "decisionPolicy": { + "type": "string", + "title": "Decision Policy Context", + "description": "Stringified JSON of decision policy information for offer decisioning" + }, + "offerContentAttributes": { + "type": "string", + "title": "Offer Content Attributes", + "description": "Stringified JSON of attributes related to offer content" + }, + "url": { + "type": "string", + "title": "URL Context", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "fragment": { + "type": "string", + "title": "Fragment Context", + "description": "Stringified JSON of content fragments that can be inserted into templates" + }, + "externalDataLookup": { + "type": "string", + "title": "External Data Lookup", + "description": "Stringified JSON of context for external data lookups during rendering" + }, + "url-support": { + "type": "string", + "title": "URL Support", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "inputSchema": { + "type": "string", + "title": "Input Schema", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "channelConfiguration": { + "type": "string", + "title": "Channel Configuration", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "segment": { + "type": "string", + "title": "Segment Context", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "_cjmProperties": { + "type": "string", + "title": "CJM Properties", + "description": "Stringified JSON of internal properties used by the CJM rendering engine" + } + } + }, + "retrievedEntities": { + "type": "array", + "title": "Retrieved Entities", + "description": "An array of stringified JSON representations of entities retrieved during dynamic entity hydration", + "items": { + "type": "string", + "description": "Stringified JSON representing a retrieved entity's data" + } + } + }, + "required": ["type", "renderingContext"] + }, + { + "type": "object", + "title": "Message Rendered Content", + "description": "The rendered content for a specific channel", + "properties": { + "type": { + "type": "string", + "const": "rendered-content", + "description": "Discriminator field indicating this is rendered content data" + }, + "renderedContent": { + "title": "Rendered Channel Content", + "description": "Channel-specific rendered content", + "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendered-content" + } + }, + "required": ["type", "renderedContent"] + } + ] + } + }, + "allOf": [ + { + "$ref": "https://ns.adobe.com/xdm/data/time-series" + }, + { + "$ref": "#/definitions/messageData" + } + ], + "meta:status": "stable" +} diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json new file mode 100644 index 000000000..4d2561fea --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json @@ -0,0 +1,17 @@ +{ + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata": { + "type": "email", + "recipient": { + "email": "jane.doe@example.com", + "name": "Jane Doe", + "bcc": ["manager@example.com", "audit@example.com"] + }, + "sender": { + "email": "noreply@adobe.com", + "name": "Adobe Team", + "errorEmail": "errors@adobe.com", + "replyToEmail": "support@adobe.com", + "replyToName": "Adobe Support" + } + } +} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json new file mode 100644 index 000000000..792428987 --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json @@ -0,0 +1,11 @@ +{ + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata": { + "type": "sms", + "recipient": { + "number": "+15551234567" + }, + "sender": { + "numbers": ["+15557654321"] + } + } +} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json new file mode 100644 index 000000000..ca9d375f9 --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json @@ -0,0 +1,8 @@ +{ + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent": { + "type": "email", + "subject": "Welcome to Adobe Journey Optimizer!", + "html": "

Hello, John!

Thank you for joining us.

", + "text": "Hello, John! Thank you for joining us." + } +} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json new file mode 100644 index 000000000..f0585d6b3 --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json @@ -0,0 +1,8 @@ +{ + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent": { + "type": "sms", + "title": "Promo", + "message": "Your code is 12345. Use it to get 20% off!", + "media": "https://example.com/media/promo.jpg" + } +} \ No newline at end of file diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json deleted file mode 100644 index 811a287f5..000000000 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendering-data.schema.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "meta:license": [ - "Copyright 2025 Adobe Systems Incorporated. All rights reserved.", - "This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", - "you may not use this file except in compliance with the License. You may obtain a copy", - "of the License at https://creativecommons.org/licenses/by/4.0/" - ], - "$id": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendering-data", - "$schema": "http://json-schema.org/draft-06/schema#", - "title": "Message Rendering Data", - "description": "Schema for storing the context data required to render a message in Adobe Journey Optimizer", - "type": "object", - "meta:extensible": true, - "meta:abstract": true, - "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], - "definitions": { - "messageRenderingData": { - "oneOf": [ - { - "type": "object", - "properties": { - "MessageRenderingContext": { - "type": "object", - "title": "Message Rendering Context", - "description": "A map of namespace identifiers to stringified JSON representations of context objects used in template rendering and personalization", - "properties": { - "type": { - "type": "string", - "const": "rendering-context", - "description": "Discriminator field indicating this is rendering context data" - }, - "renderingContext": { - "type": "object", - "title": "Rendering Context Map", - "description": "A map of namespace identifiers to stringified JSON representations of context objects", - "properties": { - "profile": { - "type": "string", - "title": "Profile Context", - "description": "Stringified JSON of profile attributes accessed via the 'profile' namespace in templates" - }, - "offer": { - "type": "string", - "title": "Offer Context", - "description": "Stringified JSON of offer decision information accessed via the 'offer' namespace in templates" - }, - "context": { - "type": "string", - "title": "Contextual Attribute Context", - "description": "Stringified JSON of context variables for general purpose use" - }, - "propertiesContext": { - "type": "string", - "title": "Properties Context", - "description": "Stringified JSON of Journey Optimizer properties and configuration settings for the message" - }, - "decisionPolicy": { - "type": "string", - "title": "Decision Policy Context", - "description": "Stringified JSON of decision policy information for offer decisioning" - }, - "offerContentAttributes": { - "type": "string", - "title": "Offer Content Attributes", - "description": "Stringified JSON of attributes related to offer content" - }, - "url": { - "type": "string", - "title": "URL Context", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "fragment": { - "type": "string", - "title": "Fragment Context", - "description": "Stringified JSON of content fragments that can be inserted into templates" - }, - "externalDataLookup": { - "type": "string", - "title": "External Data Lookup", - "description": "Stringified JSON of context for external data lookups during rendering" - }, - "url-support": { - "type": "string", - "title": "URL Support", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "inputSchema": { - "type": "string", - "title": "Input Schema", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "channelConfiguration": { - "type": "string", - "title": "Channel Configuration", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "segment": { - "type": "string", - "title": "Segment Context", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "_cjmProperties": { - "type": "string", - "title": "CJM Properties", - "description": "Stringified JSON of internal properties used by the CJM rendering engine" - } - } - }, - "retrievedEntities": { - "type": "array", - "title": "Retrieved Entities", - "description": "An array of stringified JSON representations of entities retrieved during dynamic entity hydration", - "items": { - "type": "string", - "description": "Stringified JSON representing a retrieved entity's data" - } - } - }, - "required": ["type", "renderingContext"] - } - } - }, - { - "type": "object", - "properties": { - "MessageRenderedContent": { - "type": "object", - "title": "Message Rendered Content", - "description": "The rendered content for a specific channel", - "properties": { - "type": { - "type": "string", - "const": "rendered-content", - "description": "Discriminator field indicating this is rendered content data" - }, - "renderedContent": { - "title": "Rendered Channel Content", - "description": "Channel-specific rendered content", - "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendered-content" - } - }, - "required": ["type", "renderedContent"] - } - } - } - ] - } - }, - "allOf": [ - { - "$ref": "https://ns.adobe.com/xdm/data/time-series" - }, - { - "$ref": "#/definitions/messageRenderingData" - } - ], - "meta:status": "stable" -} From db17eabcfc414f7049e33a14c3312636b1439c0f Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Mon, 7 Jul 2025 16:11:02 +0530 Subject: [PATCH 14/19] fix linting --- .../customerJourneyManagement/message-data.example.1.json | 2 +- .../customerJourneyManagement/message-data.example.2.json | 2 +- .../message-delivery-metadata.example.1.json | 2 +- .../message-delivery-metadata.example.2.json | 2 +- .../message-rendered-content.example.1.json | 2 +- .../message-rendered-content.example.2.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/extensions/adobe/experience/customerJourneyManagement/message-data.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-data.example.1.json index c6ce1c789..aa51d047e 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-data.example.1.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-data.example.1.json @@ -22,4 +22,4 @@ "{\"entityType\":\"offer\",\"id\":\"OFF123\"}" ] } -} \ No newline at end of file +} diff --git a/extensions/adobe/experience/customerJourneyManagement/message-data.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-data.example.2.json index 629049269..8e0312093 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-data.example.2.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-data.example.2.json @@ -8,4 +8,4 @@ "media": "https://example.com/media/promo.jpg" } } -} \ No newline at end of file +} diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json index 4d2561fea..ad7165ebf 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json @@ -14,4 +14,4 @@ "replyToName": "Adobe Support" } } -} \ No newline at end of file +} diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json index 792428987..09f83ee3b 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json @@ -8,4 +8,4 @@ "numbers": ["+15557654321"] } } -} \ No newline at end of file +} diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json index ca9d375f9..81d9c1012 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json @@ -5,4 +5,4 @@ "html": "

Hello, John!

Thank you for joining us.

", "text": "Hello, John! Thank you for joining us." } -} \ No newline at end of file +} diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json index f0585d6b3..46235f183 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json @@ -5,4 +5,4 @@ "message": "Your code is 12345. Use it to get 20% off!", "media": "https://example.com/media/promo.jpg" } -} \ No newline at end of file +} From 1b27d885dd816afbf52486e4c58135a317c92479 Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Wed, 16 Jul 2025 14:25:10 +0530 Subject: [PATCH 15/19] update schema and remove oneOf usages --- .../message-data.schema.json | 148 ------------------ .../message-delivery-metadata.schema.json | 39 +---- .../message-rendered-content.schema.json | 40 +---- .../message-rendering-metadata.schema.json | 117 ++++++++++++++ 4 files changed, 129 insertions(+), 215 deletions(-) delete mode 100644 extensions/adobe/experience/customerJourneyManagement/message-data.schema.json create mode 100644 extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.schema.json diff --git a/extensions/adobe/experience/customerJourneyManagement/message-data.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-data.schema.json deleted file mode 100644 index 191cabfcf..000000000 --- a/extensions/adobe/experience/customerJourneyManagement/message-data.schema.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "meta:license": [ - "Copyright 2025 Adobe Systems Incorporated. All rights reserved.", - "This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", - "you may not use this file except in compliance with the License. You may obtain a copy", - "of the License at https://creativecommons.org/licenses/by/4.0/" - ], - "$id": "https://ns.adobe.com/experience/customerJourneyManagement/message-data", - "$schema": "http://json-schema.org/draft-06/schema#", - "title": "Message Rendering Data", - "description": "Schema for storing the context data required to render a message in Adobe Journey Optimizer", - "type": "object", - "meta:extensible": true, - "meta:abstract": true, - "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], - "definitions": { - "messageData": { - "oneOf": [ - { - "type": "object", - "title": "Message Rendering Context", - "description": "A map of namespace identifiers to stringified JSON representations of context objects used in template rendering and personalization", - "properties": { - "type": { - "type": "string", - "const": "rendering-context", - "description": "Discriminator field indicating this is rendering context data" - }, - "renderingContext": { - "type": "object", - "title": "Rendering Context Map", - "description": "A map of namespace identifiers to stringified JSON representations of context objects", - "properties": { - "profile": { - "type": "string", - "title": "Profile Context", - "description": "Stringified JSON of profile attributes accessed via the 'profile' namespace in templates" - }, - "offer": { - "type": "string", - "title": "Offer Context", - "description": "Stringified JSON of offer decision information accessed via the 'offer' namespace in templates" - }, - "context": { - "type": "string", - "title": "Contextual Attribute Context", - "description": "Stringified JSON of context variables for general purpose use" - }, - "propertiesContext": { - "type": "string", - "title": "Properties Context", - "description": "Stringified JSON of Journey Optimizer properties and configuration settings for the message" - }, - "decisionPolicy": { - "type": "string", - "title": "Decision Policy Context", - "description": "Stringified JSON of decision policy information for offer decisioning" - }, - "offerContentAttributes": { - "type": "string", - "title": "Offer Content Attributes", - "description": "Stringified JSON of attributes related to offer content" - }, - "url": { - "type": "string", - "title": "URL Context", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "fragment": { - "type": "string", - "title": "Fragment Context", - "description": "Stringified JSON of content fragments that can be inserted into templates" - }, - "externalDataLookup": { - "type": "string", - "title": "External Data Lookup", - "description": "Stringified JSON of context for external data lookups during rendering" - }, - "url-support": { - "type": "string", - "title": "URL Support", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "inputSchema": { - "type": "string", - "title": "Input Schema", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "channelConfiguration": { - "type": "string", - "title": "Channel Configuration", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "segment": { - "type": "string", - "title": "Segment Context", - "description": "Stringified JSON of URL-related information for link tracking and management" - }, - "_cjmProperties": { - "type": "string", - "title": "CJM Properties", - "description": "Stringified JSON of internal properties used by the CJM rendering engine" - } - } - }, - "retrievedEntities": { - "type": "array", - "title": "Retrieved Entities", - "description": "An array of stringified JSON representations of entities retrieved during dynamic entity hydration", - "items": { - "type": "string", - "description": "Stringified JSON representing a retrieved entity's data" - } - } - }, - "required": ["type", "renderingContext"] - }, - { - "type": "object", - "title": "Message Rendered Content", - "description": "The rendered content for a specific channel", - "properties": { - "type": { - "type": "string", - "const": "rendered-content", - "description": "Discriminator field indicating this is rendered content data" - }, - "renderedContent": { - "title": "Rendered Channel Content", - "description": "Channel-specific rendered content", - "$ref": "https://ns.adobe.com/experience/customerJourneyManagement/message-rendered-content" - } - }, - "required": ["type", "renderedContent"] - } - ] - } - }, - "allOf": [ - { - "$ref": "https://ns.adobe.com/xdm/data/time-series" - }, - { - "$ref": "#/definitions/messageData" - } - ], - "meta:status": "stable" -} diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json index e8444c15f..7b2dcff46 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json @@ -15,17 +15,12 @@ "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], "definitions": { "messageDeliveryMetadata": { - "oneOf": [ - { + "properties": { + "email": { "type": "object", "title": "Email Metadata", "description": "Metadata specific to email delivery", "properties": { - "type": { - "type": "string", - "const": "email", - "description": "Discriminator field indicating the type of metadata" - }, "recipient": { "type": "object", "properties": { @@ -79,18 +74,13 @@ "required": ["email", "name", "replyToEmail", "errorEmail"] } }, - "required": ["type", "recipient", "sender"] + "required": ["recipient", "sender"] }, - { + "sms": { "type": "object", "title": "SMS Metadata", "description": "Metadata specific to SMS delivery", "properties": { - "type": { - "type": "string", - "const": "sms", - "description": "Discriminator field indicating the type of metadata" - }, "recipient": { "type": "object", "properties": { @@ -115,26 +105,9 @@ "required": ["numbers"] } }, - "required": ["type", "recipient", "sender"] - }, - { - "type": "object", - "title": "Open Channel Metadata", - "description": "Metadata for custom, open channels", - "properties": { - "type": { - "type": "string", - "const": "openChannel", - "description": "Discriminator field indicating the type of metadata" - }, - "metadata": { - "type": "string", - "description": "Stringified JSON of channel-specific metadata" - } - }, - "required": ["type", "metadata"] + "required": ["recipient", "sender"] } - ] + } } }, "allOf": [ diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json index 398be18fe..448ea0d8d 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json @@ -15,17 +15,12 @@ "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], "definitions": { "messageRenderedContent": { - "oneOf": [ - { + "properties": { + "email": { "type": "object", "title": "Email Channel Content", "description": "Email-specific rendered content", "properties": { - "type": { - "type": "string", - "const": "email", - "description": "Discriminator field indicating the type of content" - }, "subject": { "type": "string", "description": "The email subject line" @@ -39,18 +34,13 @@ "description": "The plain text content of the email" } }, - "required": ["type", "subject", "html"] + "required": ["subject", "html"] }, - { + "sms": { "type": "object", "title": "SMS Channel Content", "description": "SMS-specific rendered content", "properties": { - "type": { - "type": "string", - "const": "sms", - "description": "Discriminator field indicating the type of content" - }, "title": { "type": "string", "description": "The title of the SMS message" @@ -64,27 +54,9 @@ "description": "Media content reference for the SMS (MMS)" } }, - "required": ["type", "message"] - }, - { - "type": "object", - "title": "Open Channel Content", - "description": "Content for custom, open channels", - "properties": { - "type": { - "type": "string", - "const": "openChannel", - "description": "Discriminator field indicating the type of content" - }, - "content": { - "type": "object", - "description": "The custom content for the open channel", - "additionalProperties": true - } - }, - "required": ["type", "content"] + "required": ["message"] } - ] + } } }, "allOf": [ diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.schema.json new file mode 100644 index 000000000..0a56d01b3 --- /dev/null +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.schema.json @@ -0,0 +1,117 @@ +{ + "meta:license": [ + "Copyright 2025 Adobe Systems Incorporated. All rights reserved.", + "This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", + "you may not use this file except in compliance with the License. You may obtain a copy", + "of the License at https://creativecommons.org/licenses/by/4.0/" + ], + "$id": "https://ns.adobe.com/experience/customerJourneyManagement/message-data", + "$schema": "http://json-schema.org/draft-06/schema#", + "title": "Message Rendering Data", + "description": "Schema for storing the context data required to render a message in Adobe Journey Optimizer", + "type": "object", + "meta:extensible": true, + "meta:abstract": true, + "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], + "definitions": { + "messageRenderingMetadata": { + "properties": { + "renderingContext": { + "type": "object", + "title": "Rendering Context Map", + "description": "A map of namespace identifiers to stringified JSON representations of context objects used in template rendering and personalization", + "properties": { + "profile": { + "type": "string", + "title": "Profile Context", + "description": "Stringified JSON of profile attributes accessed via the 'profile' namespace in templates" + }, + "offer": { + "type": "string", + "title": "Offer Context", + "description": "Stringified JSON of offer decision information accessed via the 'offer' namespace in templates" + }, + "context": { + "type": "string", + "title": "Contextual Attribute Context", + "description": "Stringified JSON of context variables for general purpose use" + }, + "propertiesContext": { + "type": "string", + "title": "Properties Context", + "description": "Stringified JSON of Journey Optimizer properties and configuration settings for the message" + }, + "decisionPolicy": { + "type": "string", + "title": "Decision Policy Context", + "description": "Stringified JSON of decision policy information for offer decisioning" + }, + "offerContentAttributes": { + "type": "string", + "title": "Offer Content Attributes", + "description": "Stringified JSON of attributes related to offer content" + }, + "url": { + "type": "string", + "title": "URL Context", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "fragment": { + "type": "string", + "title": "Fragment Context", + "description": "Stringified JSON of content fragments that can be inserted into templates" + }, + "externalDataLookup": { + "type": "string", + "title": "External Data Lookup", + "description": "Stringified JSON of context for external data lookups during rendering" + }, + "url-support": { + "type": "string", + "title": "URL Support", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "inputSchema": { + "type": "string", + "title": "Input Schema", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "channelConfiguration": { + "type": "string", + "title": "Channel Configuration", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "segment": { + "type": "string", + "title": "Segment Context", + "description": "Stringified JSON of URL-related information for link tracking and management" + }, + "_cjmProperties": { + "type": "string", + "title": "CJM Properties", + "description": "Stringified JSON of internal properties used by the CJM rendering engine" + } + } + }, + "retrievedEntities": { + "type": "array", + "title": "Retrieved Entities", + "description": "An array of stringified JSON representations of entities retrieved during dynamic entity hydration", + "items": { + "type": "string", + "description": "Stringified JSON representing a retrieved entity's data" + } + } + } + } + }, + "allOf": [ + { + "$ref": "https://ns.adobe.com/xdm/data/time-series" + }, + { + "$ref": "#/definitions/messageRenderingMetadata" + } + ], + "meta:status": "stable" +} From 8e97b309fd9867a517f09e859cd05d95c4863a45 Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Wed, 16 Jul 2025 14:39:14 +0530 Subject: [PATCH 16/19] update examples --- .../message-data.example.2.json | 11 -------- .../message-delivery-metadata.example.1.json | 28 +++++++++++-------- .../message-delivery-metadata.example.2.json | 15 ++++++---- .../message-rendered-content.example.1.json | 9 +++--- .../message-rendered-content.example.2.json | 9 +++--- ...message-rendering-metadata.example.1.json} | 3 +- 6 files changed, 36 insertions(+), 39 deletions(-) delete mode 100644 extensions/adobe/experience/customerJourneyManagement/message-data.example.2.json rename extensions/adobe/experience/customerJourneyManagement/{message-data.example.1.json => message-rendering-metadata.example.1.json} (96%) diff --git a/extensions/adobe/experience/customerJourneyManagement/message-data.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-data.example.2.json deleted file mode 100644 index 8e0312093..000000000 --- a/extensions/adobe/experience/customerJourneyManagement/message-data.example.2.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "https://ns.adobe.com/experience/customerJourneyManagement/messageData": { - "type": "rendered-content", - "renderedContent": { - "type": "sms", - "title": "Promo", - "message": "Your code is 12345. Use it to get 20% off!", - "media": "https://example.com/media/promo.jpg" - } - } -} diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json index ad7165ebf..584b2da06 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json @@ -1,17 +1,21 @@ { "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata": { - "type": "email", - "recipient": { - "email": "jane.doe@example.com", - "name": "Jane Doe", - "bcc": ["manager@example.com", "audit@example.com"] - }, - "sender": { - "email": "noreply@adobe.com", - "name": "Adobe Team", - "errorEmail": "errors@adobe.com", - "replyToEmail": "support@adobe.com", - "replyToName": "Adobe Support" + "email": { + "recipient": { + "email": "jane.doe@example.com", + "name": "Jane Doe", + "bcc": [ + "manager@example.com", + "audit@example.com" + ] + }, + "sender": { + "email": "noreply@adobe.com", + "name": "Adobe Team", + "errorEmail": "errors@adobe.com", + "replyToEmail": "support@adobe.com", + "replyToName": "Adobe Support" + } } } } diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json index 09f83ee3b..0d0c45f1a 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json @@ -1,11 +1,14 @@ { "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata": { - "type": "sms", - "recipient": { - "number": "+15551234567" - }, - "sender": { - "numbers": ["+15557654321"] + "sms": { + "recipient": { + "number": "+15551234567" + }, + "sender": { + "numbers": [ + "+15557654321" + ] + } } } } diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json index 81d9c1012..4b4bfba1e 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json @@ -1,8 +1,9 @@ { "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent": { - "type": "email", - "subject": "Welcome to Adobe Journey Optimizer!", - "html": "

Hello, John!

Thank you for joining us.

", - "text": "Hello, John! Thank you for joining us." + "email": { + "subject": "Welcome to Adobe Journey Optimizer!", + "html": "

Hello, John!

Thank you for joining us.

", + "text": "Hello, John! Thank you for joining us." + } } } diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json index 46235f183..211aa04b3 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json @@ -1,8 +1,9 @@ { "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent": { - "type": "sms", - "title": "Promo", - "message": "Your code is 12345. Use it to get 20% off!", - "media": "https://example.com/media/promo.jpg" + "sms": { + "title": "Promo", + "message": "Your code is 12345. Use it to get 20% off!", + "media": "https://example.com/media/promo.jpg" + } } } diff --git a/extensions/adobe/experience/customerJourneyManagement/message-data.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.example.1.json similarity index 96% rename from extensions/adobe/experience/customerJourneyManagement/message-data.example.1.json rename to extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.example.1.json index aa51d047e..7365acf0f 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-data.example.1.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.example.1.json @@ -1,6 +1,5 @@ { - "https://ns.adobe.com/experience/customerJourneyManagement/messageData": { - "type": "rendering-context", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata": { "renderingContext": { "profile": "{\"firstName\":\"John\",\"lastName\":\"Doe\",\"email\":\"john.doe@example.com\"}", "offer": "{\"offerId\":\"OFF123\",\"description\":\"20% off your next purchase\"}", From 11c2be0144a250bf8f76efc749d9d75e5da1aae0 Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Wed, 16 Jul 2025 14:45:35 +0530 Subject: [PATCH 17/19] fix lint errors --- .../message-delivery-metadata.example.1.json | 5 +---- .../message-delivery-metadata.example.2.json | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json index 584b2da06..8a6e4d8cd 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json @@ -4,10 +4,7 @@ "recipient": { "email": "jane.doe@example.com", "name": "Jane Doe", - "bcc": [ - "manager@example.com", - "audit@example.com" - ] + "bcc": ["manager@example.com", "audit@example.com"] }, "sender": { "email": "noreply@adobe.com", diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json index 0d0c45f1a..dae2dc922 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json @@ -5,9 +5,7 @@ "number": "+15551234567" }, "sender": { - "numbers": [ - "+15557654321" - ] + "numbers": ["+15557654321"] } } } From 7c4cf4b7d2b3b7a39d3e4cadece8b83a26646746 Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Wed, 16 Jul 2025 16:00:09 +0530 Subject: [PATCH 18/19] rename few fields --- .../message-delivery-metadata.example.1.json | 2 +- .../message-delivery-metadata.example.2.json | 2 +- .../message-delivery-metadata.schema.json | 4 ++-- .../message-rendered-content.example.1.json | 2 +- .../message-rendered-content.example.2.json | 2 +- .../message-rendered-content.schema.json | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json index 8a6e4d8cd..7b7994871 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json @@ -1,6 +1,6 @@ { "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata": { - "email": { + "emailMetadata": { "recipient": { "email": "jane.doe@example.com", "name": "Jane Doe", diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json index dae2dc922..668272821 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json @@ -1,6 +1,6 @@ { "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata": { - "sms": { + "smsMetadata": { "recipient": { "number": "+15551234567" }, diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json index 7b2dcff46..49357b866 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json @@ -16,7 +16,7 @@ "definitions": { "messageDeliveryMetadata": { "properties": { - "email": { + "emailMetadata": { "type": "object", "title": "Email Metadata", "description": "Metadata specific to email delivery", @@ -76,7 +76,7 @@ }, "required": ["recipient", "sender"] }, - "sms": { + "smsMetadata": { "type": "object", "title": "SMS Metadata", "description": "Metadata specific to SMS delivery", diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json index 4b4bfba1e..77338dfca 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json @@ -1,6 +1,6 @@ { "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent": { - "email": { + "emailContent": { "subject": "Welcome to Adobe Journey Optimizer!", "html": "

Hello, John!

Thank you for joining us.

", "text": "Hello, John! Thank you for joining us." diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json index 211aa04b3..e7e19dd0c 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json @@ -1,6 +1,6 @@ { "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent": { - "sms": { + "smsContent": { "title": "Promo", "message": "Your code is 12345. Use it to get 20% off!", "media": "https://example.com/media/promo.jpg" diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json index 448ea0d8d..ea53a7c79 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json @@ -16,7 +16,7 @@ "definitions": { "messageRenderedContent": { "properties": { - "email": { + "emailContent": { "type": "object", "title": "Email Channel Content", "description": "Email-specific rendered content", @@ -36,7 +36,7 @@ }, "required": ["subject", "html"] }, - "sms": { + "smsContent": { "type": "object", "title": "SMS Channel Content", "description": "SMS-specific rendered content", From 5e4397b8551c42e4e21ca4ecf74e3d1b756b55d5 Mon Sep 17 00:00:00 2001 From: himanshi2010 Date: Fri, 18 Jul 2025 01:15:17 +0530 Subject: [PATCH 19/19] make the schema field groups and have namespaced fields --- .../message-delivery-metadata.example.1.json | 25 +++---- .../message-delivery-metadata.example.2.json | 12 ++-- .../message-delivery-metadata.schema.json | 65 ++++++++++++------- .../message-rendered-content.example.1.json | 8 +-- .../message-rendered-content.example.2.json | 8 +-- .../message-rendered-content.schema.json | 29 +++++---- .../message-rendering-metadata.example.1.json | 32 ++++----- .../message-rendering-metadata.schema.json | 36 +++++----- 8 files changed, 121 insertions(+), 94 deletions(-) diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json index 7b7994871..4eddd8093 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.1.json @@ -1,17 +1,20 @@ { "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata": { - "emailMetadata": { - "recipient": { - "email": "jane.doe@example.com", - "name": "Jane Doe", - "bcc": ["manager@example.com", "audit@example.com"] + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/recipient": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/recipient/email": "jane.doe@example.com", + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/recipient/name": "Jane Doe", + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/recipient/bcc": [ + "manager@example.com", + "audit@example.com" + ] }, - "sender": { - "email": "noreply@adobe.com", - "name": "Adobe Team", - "errorEmail": "errors@adobe.com", - "replyToEmail": "support@adobe.com", - "replyToName": "Adobe Support" + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/sender": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/sender/email": "noreply@adobe.com", + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/sender/name": "Adobe Team", + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/sender/errorEmail": "errors@adobe.com", + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/sender/replyToEmail": "support@adobe.com", + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/sender/replyToName": "Adobe Support" } } } diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json index 668272821..ae62e8604 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.example.2.json @@ -1,11 +1,13 @@ { "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata": { - "smsMetadata": { - "recipient": { - "number": "+15551234567" + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata/recipient": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata/recipient/number": "+15551234567" }, - "sender": { - "numbers": ["+15557654321"] + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata/sender": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata/sender/numbers": [ + "+15557654321" + ] } } } diff --git a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json index 49357b866..8aedcd387 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-delivery-metadata.schema.json @@ -12,28 +12,28 @@ "type": "object", "meta:extensible": true, "meta:abstract": true, - "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], + "meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/experienceevent"], "definitions": { "messageDeliveryMetadata": { "properties": { - "emailMetadata": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata": { "type": "object", "title": "Email Metadata", "description": "Metadata specific to email delivery", "properties": { - "recipient": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/recipient": { "type": "object", "properties": { - "email": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/recipient/email": { "type": "string", "format": "email", "description": "Recipient's email address" }, - "name": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/recipient/name": { "type": "string", "description": "Recipient's name" }, - "bcc": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/recipient/bcc": { "type": "array", "description": "BCC email address", "items": { @@ -42,77 +42,94 @@ } } }, - "required": ["email"] + "required": [ + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/recipient/email" + ] }, - "sender": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/sender": { "type": "object", "properties": { - "email": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/sender/email": { "type": "string", "format": "email", "description": "Sender's email address" }, - "name": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/sender/name": { "type": "string", "description": "Sender's name" }, - "errorEmail": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/sender/errorEmail": { "type": "string", "format": "email", "description": "Email address for delivery errors" }, - "replyToEmail": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/sender/replyToEmail": { "type": "string", "format": "email", "description": "Reply-to email address" }, - "replyToName": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/sender/replyToName": { "type": "string", "description": "Reply-to name" } }, - "required": ["email", "name", "replyToEmail", "errorEmail"] + "required": [ + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/sender/email", + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/sender/name", + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/sender/replyToEmail", + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/sender/errorEmail" + ] } }, - "required": ["recipient", "sender"] + "required": [ + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/recipient", + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/emailMetadata/sender" + ] }, - "smsMetadata": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata": { "type": "object", "title": "SMS Metadata", "description": "Metadata specific to SMS delivery", "properties": { - "recipient": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata/recipient": { "type": "object", "properties": { - "number": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata/recipient/number": { "type": "string", "description": "Recipient's phone number" } }, - "required": ["number"] + "required": [ + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata/recipient/number" + ] }, - "sender": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata/sender": { "type": "object", "description": "Sender's phone number", "properties": { - "numbers": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata/sender/numbers": { "type": "array", "items": { "type": "string" } } }, - "required": ["numbers"] + "required": [ + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata/sender/numbers" + ] } }, - "required": ["recipient", "sender"] + "required": [ + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata/recipient", + "https://ns.adobe.com/experience/customerJourneyManagement/messageDeliveryMetadata/smsMetadata/sender" + ] } } } }, "allOf": [ { - "$ref": "https://ns.adobe.com/xdm/data/time-series" + "$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context" }, { "$ref": "#/definitions/messageDeliveryMetadata" diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json index 77338dfca..5bc5ed13c 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.1.json @@ -1,9 +1,9 @@ { "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent": { - "emailContent": { - "subject": "Welcome to Adobe Journey Optimizer!", - "html": "

Hello, John!

Thank you for joining us.

", - "text": "Hello, John! Thank you for joining us." + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/emailContent": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/emailContent/subject": "Welcome to Adobe Journey Optimizer!", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/emailContent/html": "

Hello, John!

Thank you for joining us.

", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/emailContent/text": "Hello, John! Thank you for joining us." } } } diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json index e7e19dd0c..6c035f6de 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.example.2.json @@ -1,9 +1,9 @@ { "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent": { - "smsContent": { - "title": "Promo", - "message": "Your code is 12345. Use it to get 20% off!", - "media": "https://example.com/media/promo.jpg" + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/smsContent": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/smsContent/title": "Promo", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/smsContent/message": "Your code is 12345. Use it to get 20% off!", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/smsContent/media": "https://example.com/media/promo.jpg" } } } diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json index ea53a7c79..c9ba53d4c 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendered-content.schema.json @@ -12,56 +12,61 @@ "type": "object", "meta:extensible": true, "meta:abstract": true, - "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], + "meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/experienceevent"], "definitions": { "messageRenderedContent": { "properties": { - "emailContent": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/emailContent": { "type": "object", "title": "Email Channel Content", "description": "Email-specific rendered content", "properties": { - "subject": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/emailContent/subject": { "type": "string", "description": "The email subject line" }, - "html": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/emailContent/html": { "type": "string", "description": "The HTML content of the email" }, - "text": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/emailContent/text": { "type": "string", "description": "The plain text content of the email" } }, - "required": ["subject", "html"] + "required": [ + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/emailContent/subject", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/emailContent/html" + ] }, - "smsContent": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/smsContent": { "type": "object", "title": "SMS Channel Content", "description": "SMS-specific rendered content", "properties": { - "title": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/smsContent/title": { "type": "string", "description": "The title of the SMS message" }, - "message": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/smsContent/message": { "type": "string", "description": "The text content of the SMS message" }, - "media": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/smsContent/media": { "type": "string", "description": "Media content reference for the SMS (MMS)" } }, - "required": ["message"] + "required": [ + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderedContent/smsContent/message" + ] } } } }, "allOf": [ { - "$ref": "https://ns.adobe.com/xdm/data/time-series" + "$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context" }, { "$ref": "#/definitions/messageRenderedContent" diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.example.1.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.example.1.json index 7365acf0f..09b526476 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.example.1.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.example.1.json @@ -1,22 +1,22 @@ { "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata": { - "renderingContext": { - "profile": "{\"firstName\":\"John\",\"lastName\":\"Doe\",\"email\":\"john.doe@example.com\"}", - "offer": "{\"offerId\":\"OFF123\",\"description\":\"20% off your next purchase\"}", - "context": "{\"channel\":\"email\",\"language\":\"en-US\"}", - "propertiesContext": "{\"brand\":\"Adobe\",\"campaign\":\"Spring Sale\"}", - "decisionPolicy": "{\"policyId\":\"POLICY1\",\"decision\":\"accept\"}", - "offerContentAttributes": "{\"headline\":\"Special Offer\"}", - "url": "{\"landingPage\":\"https://adobe.com/sale\"}", - "fragment": "{\"header\":\"Welcome!\",\"footer\":\"Thank you\"}", - "externalDataLookup": "{\"lookupId\":\"LKP1\",\"result\":\"success\"}", - "url-support": "{\"shortener\":\"bit.ly\"}", - "inputSchema": "{\"fields\":[\"firstName\",\"lastName\"]}", - "channelConfiguration": "{\"provider\":\"SendGrid\"}", - "segment": "{\"segmentId\":\"SEG1\"}", - "_cjmProperties": "{\"internalFlag\":true}" + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/profile": "{\"firstName\":\"John\",\"lastName\":\"Doe\",\"email\":\"john.doe@example.com\"}", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/offer": "{\"offerId\":\"OFF123\",\"description\":\"20% off your next purchase\"}", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/context": "{\"channel\":\"email\",\"language\":\"en-US\"}", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/propertiesContext": "{\"brand\":\"Adobe\",\"campaign\":\"Spring Sale\"}", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/decisionPolicy": "{\"policyId\":\"POLICY1\",\"decision\":\"accept\"}", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/offerContentAttributes": "{\"headline\":\"Special Offer\"}", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/url": "{\"landingPage\":\"https://adobe.com/sale\"}", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/fragment": "{\"header\":\"Welcome!\",\"footer\":\"Thank you\"}", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/externalDataLookup": "{\"lookupId\":\"LKP1\",\"result\":\"success\"}", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/url-support": "{\"shortener\":\"bit.ly\"}", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/inputSchema": "{\"fields\":[\"firstName\",\"lastName\"]}", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/channelConfiguration": "{\"provider\":\"SendGrid\"}", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/segment": "{\"segmentId\":\"SEG1\"}", + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/_cjmProperties": "{\"internalFlag\":true}" }, - "retrievedEntities": [ + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/retrievedEntities": [ "{\"entityType\":\"profile\",\"id\":\"12345\"}", "{\"entityType\":\"offer\",\"id\":\"OFF123\"}" ] diff --git a/extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.schema.json b/extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.schema.json index 0a56d01b3..16eb38a69 100644 --- a/extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.schema.json +++ b/extensions/adobe/experience/customerJourneyManagement/message-rendering-metadata.schema.json @@ -12,88 +12,88 @@ "type": "object", "meta:extensible": true, "meta:abstract": true, - "meta:extends": ["https://ns.adobe.com/xdm/data/time-series"], + "meta:intendedToExtend": ["https://ns.adobe.com/xdm/context/experienceevent"], "definitions": { "messageRenderingMetadata": { "properties": { - "renderingContext": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext": { "type": "object", "title": "Rendering Context Map", "description": "A map of namespace identifiers to stringified JSON representations of context objects used in template rendering and personalization", "properties": { - "profile": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/profile": { "type": "string", "title": "Profile Context", "description": "Stringified JSON of profile attributes accessed via the 'profile' namespace in templates" }, - "offer": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/offer": { "type": "string", "title": "Offer Context", "description": "Stringified JSON of offer decision information accessed via the 'offer' namespace in templates" }, - "context": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/context": { "type": "string", "title": "Contextual Attribute Context", "description": "Stringified JSON of context variables for general purpose use" }, - "propertiesContext": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/propertiesContext": { "type": "string", "title": "Properties Context", "description": "Stringified JSON of Journey Optimizer properties and configuration settings for the message" }, - "decisionPolicy": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/decisionPolicy": { "type": "string", "title": "Decision Policy Context", "description": "Stringified JSON of decision policy information for offer decisioning" }, - "offerContentAttributes": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/offerContentAttributes": { "type": "string", "title": "Offer Content Attributes", "description": "Stringified JSON of attributes related to offer content" }, - "url": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/url": { "type": "string", "title": "URL Context", "description": "Stringified JSON of URL-related information for link tracking and management" }, - "fragment": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/fragment": { "type": "string", "title": "Fragment Context", "description": "Stringified JSON of content fragments that can be inserted into templates" }, - "externalDataLookup": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/externalDataLookup": { "type": "string", "title": "External Data Lookup", "description": "Stringified JSON of context for external data lookups during rendering" }, - "url-support": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/url-support": { "type": "string", "title": "URL Support", "description": "Stringified JSON of URL-related information for link tracking and management" }, - "inputSchema": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/inputSchema": { "type": "string", "title": "Input Schema", "description": "Stringified JSON of URL-related information for link tracking and management" }, - "channelConfiguration": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/channelConfiguration": { "type": "string", "title": "Channel Configuration", "description": "Stringified JSON of URL-related information for link tracking and management" }, - "segment": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/segment": { "type": "string", "title": "Segment Context", "description": "Stringified JSON of URL-related information for link tracking and management" }, - "_cjmProperties": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/renderingContext/_cjmProperties": { "type": "string", "title": "CJM Properties", "description": "Stringified JSON of internal properties used by the CJM rendering engine" } } }, - "retrievedEntities": { + "https://ns.adobe.com/experience/customerJourneyManagement/messageRenderingMetadata/retrievedEntities": { "type": "array", "title": "Retrieved Entities", "description": "An array of stringified JSON representations of entities retrieved during dynamic entity hydration", @@ -107,7 +107,7 @@ }, "allOf": [ { - "$ref": "https://ns.adobe.com/xdm/data/time-series" + "$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context" }, { "$ref": "#/definitions/messageRenderingMetadata"