-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptinout.schema.json
307 lines (307 loc) · 14.9 KB
/
optinout.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
{
"meta:license": [
"Copyright 2017 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/xdm/context/optinout",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "OptInOut",
"type": "object",
"description": "Describes a users' communication preferences by channel. For each channel individually, which is a property of this object, a user's preference (opt-in, opt-out, pending) can be recorded. In addition, a global override opt-out is possible. Each property of this schema must be a valid and known URI for an XDM Channel.",
"definitions": {
"optinout": {
"properties": {
"https://ns.adobe.com/xdm/channels/adm": {
"title": "ADM",
"description": "Amazon Device Messaging channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/agency": {
"title": "Agency",
"description": "External Agency channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/apns": {
"title": "APNS",
"description": "Apple Push Notification Service channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/application": {
"title": "Application",
"description": "Application channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/baidu": {
"title": "Baidu",
"description": "Baidu Cloud Push Service channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/channel": {
"title": "Experience Channel",
"description": "Experience channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/direct-mail": {
"title": "Direct Mail",
"description": "Mail delivered by a postal service channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/email": {
"title": "E-Mail",
"description": "E-Mail messages, delivered via SMTP to list subscribers channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/facebook-feed": {
"title": "Facebook News Feed",
"description": "The Facebook News Feed channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/fax": {
"title": "Fax",
"description": "Telefacsimile channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/gcm": {
"title": "GCM",
"description": "Google Cloud Messaging channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/line": {
"title": "LINE",
"description": "Line Platform Notification channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/mobile-app": {
"title": "Web",
"description": "Native mobile applications that are installed through an app store channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/mpns": {
"title": "MPNS",
"description": "Microsoft Push Notification Service channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/phone": {
"title": "Phone",
"description": "The telephone channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/sms": {
"title": "SMS",
"description": "Short Message Service delivered to a mobile phone channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/twitter-feed": {
"title": "Twitter Feed",
"description": "Twitter Feed channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/web": {
"title": "Web",
"description": "World Wide Web and mobile web channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/webpage": {
"title": "Web Page",
"description": "Web Page channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/wechat": {
"title": "WeChat",
"description": "WeChat Platform Notification channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"https://ns.adobe.com/xdm/channels/wns": {
"title": "WNS",
"description": "Windows Push Notification Service channel OptInOut.",
"type": "string",
"default": "not_provided",
"enum": ["not_provided", "pending", "in", "out"],
"meta:enum": {
"not_provided": "Not Provided",
"pending": "Pending Verification",
"in": "Opt-In: the user explicitly consents to receiving messages.",
"out": "Opt-Out: the user declines to receive any messages on this channel."
}
},
"xdm:globalOptout": {
"title": "Global Opt-out",
"type": "boolean",
"description": "Do not contact this profile on any outbound channel.",
"default": false
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/optinout"
}
],
"meta:status": "experimental"
}