forked from adobe/xdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrowserdetails.schema.json
More file actions
256 lines (256 loc) · 13.4 KB
/
browserdetails.schema.json
File metadata and controls
256 lines (256 loc) · 13.4 KB
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
{
"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/browserdetails",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Browser details",
"type": "object",
"meta:extensible": true,
"description": "Detail information related to the browser.",
"definitions": {
"browserdetails": {
"properties": {
"xdm:name": {
"title": "Name",
"type": "string",
"description": "The application or browser name.",
"meta:titleId": "browserdetails##xdm:name##title##14721",
"meta:descriptionId": "browserdetails##xdm:name##description##19791"
},
"xdm:vendor": {
"title": "Vendor",
"type": "string",
"description": "The application or browser vendor.",
"meta:titleId": "browserdetails##xdm:vendor##title##57401",
"meta:descriptionId": "browserdetails##xdm:vendor##description##70741"
},
"xdm:version": {
"title": "Version",
"type": "string",
"description": "The application or browser version.",
"meta:titleId": "browserdetails##xdm:version##title##71841",
"meta:descriptionId": "browserdetails##xdm:version##description##82171"
},
"xdm:acceptLanguage": {
"title": "Accept language",
"type": "string",
"description": "An IETF language tag (RFC 5646).",
"meta:titleId": "browserdetails##xdm:acceptLanguage##title##74401",
"meta:descriptionId": "browserdetails##xdm:acceptLanguage##description##40371"
},
"xdm:cookiesEnabled": {
"title": "Allows cookies",
"type": "boolean",
"description": "The current user agent settings allow for the writing of cookies.'",
"meta:titleId": "browserdetails##xdm:cookiesEnabled##title##30621",
"meta:descriptionId": "browserdetails##xdm:cookiesEnabled##description##16771"
},
"xdm:javaScriptEnabled": {
"title": "JavaScript enabled",
"type": "boolean",
"description": "If JavaScript was enabled in the device this observation was made from.",
"meta:titleId": "browserdetails##xdm:javaScriptEnabled##title##6111",
"meta:descriptionId": "browserdetails##xdm:javaScriptEnabled##description##17361"
},
"xdm:javaScriptVersion": {
"title": "JavaScript version",
"type": "string",
"description": "The version of JavaScript supported during the observation.",
"meta:titleId": "browserdetails##xdm:javaScriptVersion##title##95101",
"meta:descriptionId": "browserdetails##xdm:javaScriptVersion##description##11681"
},
"xdm:javaEnabled": {
"title": "Java enabled",
"type": "boolean",
"description": "If Java was enabled in the device this observation was made from.",
"meta:titleId": "browserdetails##xdm:javaEnabled##title##95201",
"meta:descriptionId": "browserdetails##xdm:javaEnabled##description##89031"
},
"xdm:javaVersion": {
"title": "Java version",
"type": "string",
"description": "The version of Java supported during the observation.",
"meta:titleId": "browserdetails##xdm:javaVersion##title##54701",
"meta:descriptionId": "browserdetails##xdm:javaVersion##description##12931"
},
"xdm:quicktimeVersion": {
"title": "Quicktime version",
"type": "string",
"description": "The version of Apple Quicktime supported during the observation.",
"meta:titleId": "browserdetails##xdm:quicktimeVersion##title##96031",
"meta:descriptionId": "browserdetails##xdm:quicktimeVersion##description##11951"
},
"xdm:thirdPartyCookiesEnabled": {
"title": "Allows third-party cookies",
"type": "boolean",
"description": "If third-party cookies were enabled when this observation was made.",
"meta:titleId": "browserdetails##xdm:thirdPartyCookiesEnabled##title##64191",
"meta:descriptionId": "browserdetails##xdm:thirdPartyCookiesEnabled##description##54031"
},
"xdm:viewportHeight": {
"title": "Viewport height",
"type": "integer",
"description": "The vertical size in pixels of the window the experience was displayed inside. For a web view event, the browser viewport height.",
"meta:titleId": "browserdetails##xdm:viewportHeight##title##65601",
"meta:descriptionId": "browserdetails##xdm:viewportHeight##description##85311"
},
"xdm:viewportWidth": {
"title": "Viewport width",
"type": "integer",
"description": "The horizontal size in pixels of the window the experience was displayed inside. For a web view event, the browser viewport width.",
"meta:titleId": "browserdetails##xdm:viewportWidth##title##71151",
"meta:descriptionId": "browserdetails##xdm:viewportWidth##description##96351"
}
}
},
"user-agent": {
"properties": {
"xdm:userAgent": {
"title": "User agent",
"type": "string",
"description": "The HTTP user-agent string from the client request.",
"meta:titleId": "browserdetails##xdm:userAgent##title##35071",
"meta:descriptionId": "browserdetails##xdm:userAgent##description##80421"
}
}
},
"user-agent-client-hints": {
"properties": {
"xdm:userAgentClientHints": {
"type": "object",
"properties": {
"xdm:brands": {
"type": "array",
"items": {
"type": "object",
"description": "User-agent associated commercial name with significant versions.",
"properties": {
"xdm:brand": {
"title": "Brand",
"type": "string",
"description": "The user-agent's commercial name (e.g., cURL, Edge).",
"meta:titleId": "browserdetails##xdm:brand##title##30831",
"meta:descriptionId": "browserdetails##xdm:brand##description##7011"
},
"xdm:version": {
"title": "Significant version",
"type": "string",
"description": "The marketing version which includes distinguishable web-exposed features (e.g., 72, 3, or 12.1), corresponding to the user-agent.",
"meta:titleId": "browserdetails##xdm:version##title##28851",
"meta:descriptionId": "browserdetails##xdm:version##description##4681"
}
},
"meta:descriptionId": "browserdetails##items##description##47111"
}
},
"xdm:mobile": {
"title": "Mobileness",
"type": "boolean",
"description": "A boolean indicating if the user agent's device is a mobile device.",
"meta:titleId": "browserdetails##xdm:mobile##title##7731",
"meta:descriptionId": "browserdetails##xdm:mobile##description##63751"
},
"xdm:architecture": {
"title": "Platform architecture",
"type": "string",
"description": "The user agent's underlying CPU architecture (e.g., ARM, or x86).",
"meta:titleId": "browserdetails##xdm:architecture##title##43501",
"meta:descriptionId": "browserdetails##xdm:architecture##description##50311"
},
"xdm:bitness": {
"title": "Platform bitness",
"type": "string",
"description": "The user agent's underlying CPU architecture bitness (e.g., 32 or 64).",
"meta:titleId": "browserdetails##xdm:bitness##title##70511",
"meta:descriptionId": "browserdetails##xdm:bitness##description##39691"
},
"xdm:model": {
"title": "Model",
"type": "string",
"description": "The user agent's device model (e.g., Pixel 2 XL).",
"meta:titleId": "browserdetails##xdm:model##title##34541",
"meta:descriptionId": "browserdetails##xdm:model##description##70991"
},
"xdm:platform": {
"title": "Platform",
"type": "string",
"description": "The user agent's operating system's commercial name.",
"meta:titleId": "browserdetails##xdm:platform##title##38421",
"meta:descriptionId": "browserdetails##xdm:platform##description##80271"
},
"xdm:platformVersion": {
"title": "Platform version",
"type": "string",
"description": "The user agent's operating system's version (e.g., NT 6.0, 15, or 17G).",
"meta:titleId": "browserdetails##xdm:platformVersion##title##67441",
"meta:descriptionId": "browserdetails##xdm:platformVersion##description##3431"
},
"xdm:wow64": {
"title": "WoW64-ness",
"type": "boolean",
"description": "A boolean indicating if the user agent's binary is running in 32-bit mode on 64-bit Windows.",
"meta:titleId": "browserdetails##xdm:wow64##title##14641",
"meta:descriptionId": "browserdetails##xdm:wow64##description##52501"
}
}
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/browserdetails"
},
{
"$ref": "#/definitions/user-agent"
},
{
"$ref": "#/definitions/user-agent-client-hints"
}
],
"meta:status": "stable",
"meta:createdDate": "2020-08-10",
"meta:titleId": "browserdetails##title##50471",
"meta:descriptionId": "browserdetails##description##75651",
"examples": [
{
"xdm:name": "Chrome",
"xdm:vendor": "Google",
"xdm:version": "100.0.4896.127",
"xdm:acceptLanguage": "en",
"xdm:cookiesEnabled": true,
"xdm:javaScriptEnabled": true,
"xdm:javaScriptVersion": "1.8.5",
"xdm:javaEnabled": true,
"xdm:javaVersion": "Java SE 8",
"xdm:viewportHeight": 900,
"xdm:viewportWidth": 1680,
"xdm:userAgentClientHints": {
"xdm:brands": [
{
"xdm:brand": "Google Chrome",
"xdm:version": "100"
},
{
"xdm:brand": "Chromium",
"xdm:version": "100"
}
],
"xdm:mobile": false,
"xdm:architecture": "x86",
"xdm:bitness": "64",
"xdm:model": "",
"xdm:platform": "Windows",
"xdm:platformVersion": "14.0.0",
"xdm:wow64": false
}
}
]
}