diff --git a/extensions/adobe/experience/campaign/journeyaifatigue.schema.json b/extensions/adobe/experience/campaign/journeyaifatigue.schema.json new file mode 100644 index 000000000..1b7b6379d --- /dev/null +++ b/extensions/adobe/experience/campaign/journeyaifatigue.schema.json @@ -0,0 +1,43 @@ +{ + "meta:license": [ + "Copyright 2018 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/campaign/journeyaifatigue", + "$schema": "http://json-schema.org/draft-06/schema#", + "title": "Fatigue Score and Level", + "type": "object", + "description": "Fatigue score and fatigue level from Journey AI", + "definitions": { + "journeyaifatigue": { + "properties": { + "xdm:fatigueScore": { + "title": "Fatigue Score", + "description": "Fatigue score for the profile", + "type": "number", + "exclusiveMinimum": 0, + "maximum": 1 + }, + "xdm:fatigueLevel": { + "title": "Fatigue Level", + "description": + "Classification of profile into different buckets, based on fatigue score", + "type": "string", + "enum": ["low", "medium", "high"], + "meta:enum": { + "low": "Low", + "medium": "Medium", + "high": "High" + } + } + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/journeyaifatigue" + } + ] +} diff --git a/extensions/adobe/experience/campaign/journeyaiscores.schema.json b/extensions/adobe/experience/campaign/journeyaiscores.schema.json new file mode 100644 index 000000000..0e92bf515 --- /dev/null +++ b/extensions/adobe/experience/campaign/journeyaiscores.schema.json @@ -0,0 +1,51 @@ +{ + "meta:license": [ + "Copyright 2018 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/campaign/journeyaiscores", + "$schema": "http://json-schema.org/draft-06/schema#", + "title": "Journey AI Scores", + "type": "object", + "description": "Journey AI scores for one channel", + "definitions": { + "journeyaiscores": { + "properties": { + "xdm:fatigue": { + "title": "Fatigue", + "description": "Fatigue score for the profile", + "$ref": "https://ns.adobe.com/experience/campaign/journeyaifatigue" + }, + "xdm:openScores": { + "title": "Open Scores by send hour for week", + "description": + "Probability/score to open a message, assuming we send a message at that hour", + "type": "array", + "minItems": 168, + "maxItems": 168, + "items": { + "type": "number" + } + }, + "xdm:clickScores": { + "title": "Click Scores by send hour for week", + "description": + "Probability/score to click on a link in the message, assuming we send a message at that hour", + "type": "array", + "minItems": 168, + "maxItems": 168, + "items": { + "type": "number" + } + } + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/journeyaiscores" + } + ] +} diff --git a/extensions/adobe/experience/campaign/profile.schema.json b/extensions/adobe/experience/campaign/profile.schema.json new file mode 100644 index 000000000..be5da7c8e --- /dev/null +++ b/extensions/adobe/experience/campaign/profile.schema.json @@ -0,0 +1,39 @@ +{ + "meta:license": [ + "Copyright 2018 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/" + ], + "$schema": "http://json-schema.org/draft-06/schema#", + "$id": "https://ns.adobe.com/experience/campaign/profile", + "title": "Adobe Campaign Profile Extension", + "type": "object", + "meta:extends": ["https://ns.adobe.com/xdm/context/profile"], + "description": "Adobe Campaign extension for Profile", + "definitions": { + "profile": { + "properties": { + "xdm:journeyAI": { + "title": "Journey AI Scores", + "type": "object", + "description": "Journey AI scores for all channels", + "properties": { + "xdm:email": { + "title": "Journey AI scores for Email Channel", + "$ref": + "https://ns.adobe.com/experience/campaign/journeyaiscores", + "description": + "Journey AI open, click and fatigue scores for email channel" + } + } + } + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/profile" + } + ] +}