forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathband-manifest.json
241 lines (238 loc) · 8.33 KB
/
band-manifest.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
{
"title": "JSON schema for Microsoft Band manifests",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [ "manifestVersion", "name", "tileIcon", "resources", "pages" ],
"definitions": {
"icon": {
"type": "string",
"pattern": "\\.png$"
},
"color": {
"description": "The format of the color values is 'RRGGBB' where RR is the hex value for red, GG for green, and BB for blue.",
"type": "string",
"pattern": "^[A-Fa-f0-9]{6}$"
},
"elementId": {
"description": "The numeric id of the icon layout element based on the predefined layout selected.",
"enum": [ "1", "2", "3", "11", "12", "21", "22", "31", "32" ]
},
"condition": {
"description": "If set, then must be set to 'true' for this release",
"enum": [ "true" ]
},
"resource": {
"type": "object",
"required": [ "url", "style", "content" ],
"properties": {
"url": {
"description": "The URL to be referenced. For resources that require authentication, the URL must be HTTPS.",
"type": "string",
"format": "uri"
},
"style": {
"description": "Specifies the kind of web resource being accessed. Permitted values are 'Simple' and 'Feed'.",
"type": "string",
"pattern": "^([sS]imple|[fF]eed)$",
"default": "Simple"
},
"content": {
"description": "This member specifies how to extract content from the web response.",
"type": "object",
"minProperties": 1,
"additionalProperties": {
"type": "string"
}
}
}
},
"page": {
"required": [ "layout" ],
"properties": {
"layout": {
"description": "The name of the layout for the page. The layout name should refer to one of the predefined page layouts.",
"enum": [ "MSBand_ScrollingText", "MSBand_NoScrollingText", "MSBand_SingleMetric", "MSBand_SingleMetricWithIcon", "MSBand_MetricsWithIcons", "MSBand_SingleMetricWithSecondary" ]
},
"condition": {
"$ref": "#/definitions/condition"
},
"iconBindings": {
"description": "Similar to textBindings, but used to select one of the web tile icons in icons list for each icon in the page. If there are no icon elements on the page, this member may be omitted.",
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/iconBinding"
}
},
"textBindings": {
"description": "An array of objects corresponding to each page element that contains string content. Each binding object provides the numeric id of the page element based on the predefined layout selected, and the string value that it should contain.",
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/textBinding"
}
}
}
},
"iconBinding": {
"required": [ "conditions", "elementId" ],
"type": "object",
"properties": {
"elementId": {
"$ref": "#/definitions/elementId"
},
"conditions": {
"description": "For this release, this must contain an array with a single 'condition' object whose 'condition' is true, and whose 'icon' member specifies the name of the icon to be used.",
"type": "array",
"items": {
"type": "object",
"properties": {
"condition": { "$ref": "#/definitions/condition" },
"icon": {
"description": "The name of the icon as specified in the 'icons' node.",
"type": "string"
}
}
}
}
}
},
"textBinding": {
"required": [ "elementId", "value" ],
"properties": {
"elementId": {
"$ref": "#/definitions/elementId"
},
"value": {
"type": "string"
}
}
},
"notification": {
"type": "object",
"required": [ "condition", "title" ],
"properties": {
"condition": {
"description": "The condition to be evaluated to determine whether to trigger the notification. The conditional expression has the syntax '<Operand1> <Operator> <Operand2>' or 'true'.",
"type": "string"
},
"title": {
"description": "The text to use for the notification title. If longer than 20 characters, it will be truncated.",
"type": "string"
},
"body": {
"description": "The text to use for the notification body. If longer than 20 characters, it will be truncated.",
"type": "string"
}
}
}
},
"properties": {
"manifestVersion": {
"description": "Defines the contract between the web tile developer and the Microsoft Health app. It must be set to 1 for the current release.",
"enum": [ 1 ]
},
"name": {
"description": "Defines the name of the web tile.",
"type": "string",
"maxLength": 21
},
"description": {
"description": "Provides description about the web tile.",
"type": "string",
"maxLength": 100
},
"version": {
"description": "Indicates the version number of the web tile which will not be shown to users.",
"type": "number"
},
"versionString": {
"description": "Indicates the web tile version as shown to users. If not provided, it displays the version.",
"type": "string",
"maxLength": 10
},
"author": {
"description": "Specifies the author of the web tile.",
"type": "string",
"maxLength": 50
},
"organization": {
"description": "Specifies the organization associated with the web tile.",
"type": "string",
"maxLength": 100
},
"contactEmail": {
"description": "Provides contact info of the web tile author. Used for administrative purposes and analytics by Microsoft Band team.",
"type": "string",
"format": "email",
"maxLength": 100
},
"tileIcon": {
"description": "Specifies the location of the large tile icon.",
"type": "object",
"required": [ "46" ],
"properties": {
"46": {
"$ref": "#/definitions/icon"
}
}
},
"badgeIcon": {
"description": "Specifies the location of the small tile icon. If not provided, the badging functionality is not enabled.",
"type": "object",
"required": [ "24" ],
"properties": {
"24": {
"$ref": "#/definitions/icon"
}
}
},
"tileTheme": {
"description": "Specifies the custom theme colors for the web tile.",
"type": "object",
"properties": {
"base": { "$ref": "#/definitions/color" },
"highlight": { "$ref": "#/definitions/color" },
"lowlight": { "$ref": "#/definitions/color" },
"secondary": { "$ref": "#/definitions/color" },
"highcontrast": { "$ref": "#/definitions/color" },
"muted": { "$ref": "#/definitions/color" }
}
},
"refreshIntervalMinutes": {
"description": "Specifies the desired data refresh interval, in minutes. Refresh intervals shorter than 15 will not be honored. If not provided, it defaults to 30.",
"type": "integer",
"default": 30,
"minimum": 15
},
"resources": {
"description": "Each web tile must refer to one or more web resources. Each resource object describes a web data from which content for the tile will be extracted.",
"type": "array",
"items": {
"$ref": "#/definitions/resource"
}
},
"icons": {
"description": "All PNG icons used by the tile within its pages must be provided here.",
"type": "object",
"maxProperties": 8,
"additionalProperties": {
"$ref": "#/definitions/icon"
}
},
"pages": {
"description": "Each tile consists of one or more pages, as described by the objects in this array. Each page object specifies the layout and content of the page.",
"type": "array",
"items": {
"$ref": "#/definitions/page"
}
},
"notifications": {
"description": "Creates notification that gets delivered when certain conditions are detected in the new web data.",
"type": "array",
"items": {
"$ref": "#/definitions/notification"
}
}
}
}