@firebolt-js/core-client 1.0.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -0
- package/CONTRIBUTING.md +4 -0
- package/LICENSE +202 -0
- package/NOTICE +24 -0
- package/README.md +26 -0
- package/dist/docs/Accessibility/index.md +384 -0
- package/dist/docs/Accessibility/schemas/index.md +52 -0
- package/dist/docs/Advertising/index.md +120 -0
- package/dist/docs/Device/index.md +297 -0
- package/dist/docs/Discovery/index.md +128 -0
- package/dist/docs/Display/index.md +87 -0
- package/dist/docs/Internal/index.md +68 -0
- package/dist/docs/Lifecycle2/index.md +160 -0
- package/dist/docs/Localization/index.md +314 -0
- package/dist/docs/Localization/schemas/index.md +41 -0
- package/dist/docs/Metrics/index.md +987 -0
- package/dist/docs/Network/index.md +128 -0
- package/dist/docs/Policies/schemas/index.md +25 -0
- package/dist/docs/Presentation/index.md +53 -0
- package/dist/docs/Stats/index.md +63 -0
- package/dist/docs/TextToSpeech/index.md +524 -0
- package/dist/docs/Types/schemas/index.md +37 -0
- package/dist/firebolt-core-app-open-rpc.json +1082 -0
- package/dist/firebolt-core-open-rpc.json +3773 -0
- package/dist/lib/Accessibility/defaults.mjs +61 -0
- package/dist/lib/Accessibility/index.mjs +148 -0
- package/dist/lib/Advertising/defaults.mjs +26 -0
- package/dist/lib/Advertising/index.mjs +31 -0
- package/dist/lib/Device/defaults.mjs +34 -0
- package/dist/lib/Device/index.mjs +84 -0
- package/dist/lib/Discovery/defaults.mjs +22 -0
- package/dist/lib/Discovery/index.mjs +34 -0
- package/dist/lib/Events/index.mjs +345 -0
- package/dist/lib/Gateway/AppApi.mjs +125 -0
- package/dist/lib/Gateway/Bidirectional.mjs +113 -0
- package/dist/lib/Gateway/PlatformApi.mjs +130 -0
- package/dist/lib/Gateway/index.mjs +48 -0
- package/dist/lib/Localization/defaults.mjs +44 -0
- package/dist/lib/Localization/index.mjs +123 -0
- package/dist/lib/Log/index.mjs +57 -0
- package/dist/lib/Metrics/defaults.mjs +40 -0
- package/dist/lib/Metrics/index.mjs +206 -0
- package/dist/lib/Network/defaults.mjs +24 -0
- package/dist/lib/Network/index.mjs +70 -0
- package/dist/lib/Platform/defaults.mjs +27 -0
- package/dist/lib/Platform/index.mjs +28 -0
- package/dist/lib/Prop/MockProps.mjs +28 -0
- package/dist/lib/Prop/Router.mjs +25 -0
- package/dist/lib/Prop/index.mjs +60 -0
- package/dist/lib/Settings/index.mjs +86 -0
- package/dist/lib/Transport/MockTransport.mjs +191 -0
- package/dist/lib/Transport/WebsocketTransport.mjs +55 -0
- package/dist/lib/Transport/index.mjs +81 -0
- package/dist/lib/firebolt.d.ts +795 -0
- package/dist/lib/firebolt.mjs +51 -0
- package/firebolt-js-core-client-1.0.0-next.5.tgz +0 -0
- package/package.json +54 -0
|
@@ -0,0 +1,1082 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openrpc": "1.2.4",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Firebolt Core Client",
|
|
5
|
+
"version": "1.0.0-next.5"
|
|
6
|
+
},
|
|
7
|
+
"methods": [
|
|
8
|
+
{
|
|
9
|
+
"name": "Accessibility.onAudioDescriptionChanged",
|
|
10
|
+
"summary": "Returns the audio description setting of the device",
|
|
11
|
+
"params": [
|
|
12
|
+
{
|
|
13
|
+
"name": "setting",
|
|
14
|
+
"summary": "the audio description setting",
|
|
15
|
+
"schema": {
|
|
16
|
+
"type": "boolean"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"tags": [
|
|
21
|
+
{
|
|
22
|
+
"name": "notifier",
|
|
23
|
+
"x-notifier-for": "Accessibility.audioDescription",
|
|
24
|
+
"x-event": "Accessibility.onAudioDescriptionChanged"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "capabilities",
|
|
28
|
+
"x-uses": [
|
|
29
|
+
"xrn:firebolt:capability:accessibility:audio-descriptions"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"examples": [
|
|
34
|
+
{
|
|
35
|
+
"name": "Getting the audio description setting",
|
|
36
|
+
"params": [
|
|
37
|
+
{
|
|
38
|
+
"name": "Default Result",
|
|
39
|
+
"value": true
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "Accessibility.onClosedCaptionsSettingsChanged",
|
|
47
|
+
"summary": "Returns captions settings: enabled, and a list of zero or more languages in order of decreasing preference",
|
|
48
|
+
"params": [
|
|
49
|
+
{
|
|
50
|
+
"name": "enabled",
|
|
51
|
+
"schema": {
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"description": "Whether or not closed-captions should be enabled by default"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "preferredLanguages",
|
|
58
|
+
"schema": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"$ref": "#/x-schemas/Localization/ISO639_2Language"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"tags": [
|
|
67
|
+
{
|
|
68
|
+
"name": "notifier",
|
|
69
|
+
"x-notifier-params-flattening": "true",
|
|
70
|
+
"x-notifier-for": "Accessibility.closedCaptionsSettings",
|
|
71
|
+
"x-event": "Accessibility.onClosedCaptionsSettingsChanged"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "capabilities",
|
|
75
|
+
"x-uses": [
|
|
76
|
+
"xrn:firebolt:capability:accessibility:closed-captions"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"examples": [
|
|
81
|
+
{
|
|
82
|
+
"name": "Getting the closed captions settings",
|
|
83
|
+
"params": [
|
|
84
|
+
{
|
|
85
|
+
"name": "enabled",
|
|
86
|
+
"value": true
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "preferredLanguages",
|
|
90
|
+
"value": [
|
|
91
|
+
"eng",
|
|
92
|
+
"spa"
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "Accessibility.onHighContrastUIChanged",
|
|
101
|
+
"summary": "Returns the high contrast UI device setting",
|
|
102
|
+
"params": [
|
|
103
|
+
{
|
|
104
|
+
"name": "highContrastUI",
|
|
105
|
+
"summary": "Whether high-contrast UI mode is enabled",
|
|
106
|
+
"schema": {
|
|
107
|
+
"type": "boolean"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"tags": [
|
|
112
|
+
{
|
|
113
|
+
"name": "notifier",
|
|
114
|
+
"x-notifier-for": "Accessibility.highContrastUI",
|
|
115
|
+
"x-event": "Accessibility.onHighContrastUIChanged"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "capabilities",
|
|
119
|
+
"x-uses": [
|
|
120
|
+
"xrn:firebolt:capability:accessibility:high-contrast-ui"
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"examples": [
|
|
125
|
+
{
|
|
126
|
+
"name": "High-contrast UI mode is enabled",
|
|
127
|
+
"params": [
|
|
128
|
+
{
|
|
129
|
+
"name": "Default Result",
|
|
130
|
+
"value": true
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "Accessibility.onVoiceGuidanceSettingsChanged",
|
|
138
|
+
"summary": "Returns voice guidance settings: enabled, rate, and verbosity",
|
|
139
|
+
"params": [
|
|
140
|
+
{
|
|
141
|
+
"name": "enabled",
|
|
142
|
+
"schema": {
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"description": "Whether or not voice guidance should be enabled by default"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "rate",
|
|
149
|
+
"schema": {
|
|
150
|
+
"$ref": "#/x-schemas/Accessibility/SpeechRate",
|
|
151
|
+
"description": "The rate at which voice guidance speech will be read back to the user"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "navigationHints",
|
|
156
|
+
"schema": {
|
|
157
|
+
"type": "boolean",
|
|
158
|
+
"description": "Whether or not voice guidance should include additional navigation hints"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"tags": [
|
|
163
|
+
{
|
|
164
|
+
"name": "notifier",
|
|
165
|
+
"x-notifier-params-flattening": "true",
|
|
166
|
+
"x-notifier-for": "Accessibility.voiceGuidanceSettings",
|
|
167
|
+
"x-event": "Accessibility.onVoiceGuidanceSettingsChanged"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "capabilities",
|
|
171
|
+
"x-uses": [
|
|
172
|
+
"xrn:firebolt:capability:accessibility:voice-guidance"
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"examples": [
|
|
177
|
+
{
|
|
178
|
+
"name": "Getting the voice guidance settings",
|
|
179
|
+
"params": [
|
|
180
|
+
{
|
|
181
|
+
"name": "enabled",
|
|
182
|
+
"value": true
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "rate",
|
|
186
|
+
"value": 0.8
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "navigationHints",
|
|
190
|
+
"value": true
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "Device.onHdrChanged",
|
|
198
|
+
"summary": "Returns the HDR standards that are supported by the attached TV or the integral display",
|
|
199
|
+
"params": [
|
|
200
|
+
{
|
|
201
|
+
"name": "negotiatedHdrFormats",
|
|
202
|
+
"summary": "the negotiated HDR formats",
|
|
203
|
+
"schema": {
|
|
204
|
+
"$ref": "#/components/schemas/HDRFormatMap"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"tags": [
|
|
209
|
+
{
|
|
210
|
+
"name": "notifier",
|
|
211
|
+
"x-notifier-for": "Device.hdr",
|
|
212
|
+
"x-event": "Device.onHdrChanged"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "capabilities",
|
|
216
|
+
"x-uses": [
|
|
217
|
+
"xrn:firebolt:capability:device:info"
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"examples": [
|
|
222
|
+
{
|
|
223
|
+
"name": "Getting the negotiated HDR formats",
|
|
224
|
+
"params": [
|
|
225
|
+
{
|
|
226
|
+
"name": "Default Result",
|
|
227
|
+
"value": {
|
|
228
|
+
"hdr10": true,
|
|
229
|
+
"hdr10Plus": true,
|
|
230
|
+
"dolbyVision": true,
|
|
231
|
+
"hlg": true
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "Lifecycle2.onStateChanged",
|
|
240
|
+
"tags": [
|
|
241
|
+
{
|
|
242
|
+
"name": "rpc-only"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "notifier",
|
|
246
|
+
"x-contextual-parameters": 0,
|
|
247
|
+
"x-event": "Lifecycle2.onStateChanged"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "capabilities",
|
|
251
|
+
"x-uses": [
|
|
252
|
+
"xrn:firebolt:capability:lifecycle2:general"
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"summary": "Notification of lifecycle state change, raised after the platform has transitioned the app/runtime to the new lifecycle state",
|
|
257
|
+
"params": [
|
|
258
|
+
{
|
|
259
|
+
"name": "history",
|
|
260
|
+
"schema": {
|
|
261
|
+
"type": "array",
|
|
262
|
+
"minItems": 1,
|
|
263
|
+
"items": {
|
|
264
|
+
"title": "StateChange",
|
|
265
|
+
"$ref": "#/components/schemas/StateChange"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"examples": [
|
|
271
|
+
{
|
|
272
|
+
"name": "App is active after being initialized",
|
|
273
|
+
"params": [
|
|
274
|
+
{
|
|
275
|
+
"name": "states",
|
|
276
|
+
"value": [
|
|
277
|
+
{
|
|
278
|
+
"newState": "paused",
|
|
279
|
+
"oldState": "initializing"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"newState": "active",
|
|
283
|
+
"oldState": "paused"
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "Single transition to paused state",
|
|
291
|
+
"params": [
|
|
292
|
+
{
|
|
293
|
+
"name": "states",
|
|
294
|
+
"value": [
|
|
295
|
+
{
|
|
296
|
+
"newState": "paused",
|
|
297
|
+
"oldState": "initializing"
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "Localization.onCountryChanged",
|
|
307
|
+
"tags": [
|
|
308
|
+
{
|
|
309
|
+
"name": "notifier",
|
|
310
|
+
"x-notifier-for": "Localization.country",
|
|
311
|
+
"x-event": "Localization.onCountryChanged"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "capabilities",
|
|
315
|
+
"x-uses": [
|
|
316
|
+
"xrn:firebolt:capability:localization:country-code"
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"summary": "Returns the ISO 3166-1 alpha-2 code for the country device is located in.",
|
|
321
|
+
"params": [
|
|
322
|
+
{
|
|
323
|
+
"name": "code",
|
|
324
|
+
"summary": "The device country code.",
|
|
325
|
+
"schema": {
|
|
326
|
+
"$ref": "#/x-schemas/Localization/CountryCode"
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"examples": [
|
|
331
|
+
{
|
|
332
|
+
"name": "Default example",
|
|
333
|
+
"params": [
|
|
334
|
+
{
|
|
335
|
+
"name": "Default Result",
|
|
336
|
+
"value": "US"
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "Another example",
|
|
342
|
+
"params": [
|
|
343
|
+
{
|
|
344
|
+
"name": "Default Result",
|
|
345
|
+
"value": "GB"
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "Localization.onPreferredAudioLanguagesChanged",
|
|
353
|
+
"summary": "Returns a list of ISO 639-2/B codes for the preferred audio languages on this device.",
|
|
354
|
+
"params": [
|
|
355
|
+
{
|
|
356
|
+
"name": "languages",
|
|
357
|
+
"summary": "The preferred audio languages.",
|
|
358
|
+
"schema": {
|
|
359
|
+
"type": "array",
|
|
360
|
+
"items": {
|
|
361
|
+
"$ref": "#/x-schemas/Localization/ISO639_2Language"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"tags": [
|
|
367
|
+
{
|
|
368
|
+
"name": "notifier",
|
|
369
|
+
"x-notifier-for": "Localization.preferredAudioLanguages",
|
|
370
|
+
"x-event": "Localization.onPreferredAudioLanguagesChanged"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "capabilities",
|
|
374
|
+
"x-uses": [
|
|
375
|
+
"xrn:firebolt:capability:localization:preferred-audio-languages"
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"examples": [
|
|
380
|
+
{
|
|
381
|
+
"name": "Default example",
|
|
382
|
+
"params": [
|
|
383
|
+
{
|
|
384
|
+
"name": "Default Result",
|
|
385
|
+
"value": [
|
|
386
|
+
"spa",
|
|
387
|
+
"eng"
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
}
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "Localization.onPresentationLanguageChanged",
|
|
396
|
+
"tags": [
|
|
397
|
+
{
|
|
398
|
+
"name": "notifier",
|
|
399
|
+
"x-notifier-for": "Localization.presentationLanguage",
|
|
400
|
+
"x-event": "Localization.onPresentationLanguageChanged"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"name": "capabilities",
|
|
404
|
+
"x-uses": [
|
|
405
|
+
"xrn:firebolt:capability:localization:locale"
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
"summary": "Get the *full* BCP 47 code, including script, region, variant, etc., for the preferred locale",
|
|
410
|
+
"params": [
|
|
411
|
+
{
|
|
412
|
+
"name": "locale",
|
|
413
|
+
"summary": "The device locale.",
|
|
414
|
+
"schema": {
|
|
415
|
+
"$ref": "#/x-schemas/Localization/Locale"
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
],
|
|
419
|
+
"examples": [
|
|
420
|
+
{
|
|
421
|
+
"name": "Default example",
|
|
422
|
+
"params": [
|
|
423
|
+
{
|
|
424
|
+
"name": "Default Result",
|
|
425
|
+
"value": "en-US"
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
}
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "Presentation.onFocusedChanged",
|
|
433
|
+
"tags": [
|
|
434
|
+
{
|
|
435
|
+
"name": "rpc-only"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "notifier",
|
|
439
|
+
"x-notifier-for": "Presentation.focused",
|
|
440
|
+
"x-event": "Presentation.onFocusedChanged"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "capabilities",
|
|
444
|
+
"x-uses": [
|
|
445
|
+
"xrn:firebolt:capability:presentation:general"
|
|
446
|
+
]
|
|
447
|
+
}
|
|
448
|
+
],
|
|
449
|
+
"summary": "Whether the app is in focus, i.e. receiving key presses. Provided for those apps/runtimes that cannot use Wayland",
|
|
450
|
+
"params": [
|
|
451
|
+
{
|
|
452
|
+
"name": "focused",
|
|
453
|
+
"summary": "Whether the app is in focus.",
|
|
454
|
+
"schema": {
|
|
455
|
+
"type": "boolean"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
"examples": [
|
|
460
|
+
{
|
|
461
|
+
"name": "Default example",
|
|
462
|
+
"params": [
|
|
463
|
+
{
|
|
464
|
+
"name": "Default Result",
|
|
465
|
+
"value": true
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
]
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"name": "Network.onConnectedChanged",
|
|
473
|
+
"summary": "Returns whether the device currently has a usable network connection.",
|
|
474
|
+
"tags": [
|
|
475
|
+
{
|
|
476
|
+
"name": "notifier",
|
|
477
|
+
"x-notifier-for": "Network.connected",
|
|
478
|
+
"x-event": "Network.onConnectedChanged"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "capabilities",
|
|
482
|
+
"x-uses": [
|
|
483
|
+
"xrn:firebolt:capability:network:connected"
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
],
|
|
487
|
+
"params": [
|
|
488
|
+
{
|
|
489
|
+
"name": "success",
|
|
490
|
+
"summary": "Whether the device currently has a usable network connection.",
|
|
491
|
+
"schema": {
|
|
492
|
+
"$ref": "#/components/schemas/Connected"
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
],
|
|
496
|
+
"examples": [
|
|
497
|
+
{
|
|
498
|
+
"name": "Connected example",
|
|
499
|
+
"params": [
|
|
500
|
+
{
|
|
501
|
+
"name": "success",
|
|
502
|
+
"value": true
|
|
503
|
+
}
|
|
504
|
+
]
|
|
505
|
+
}
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"name": "TextToSpeech.onWillspeak",
|
|
510
|
+
"summary": "Text to speech conversion is about to start.",
|
|
511
|
+
"tags": [
|
|
512
|
+
{
|
|
513
|
+
"name": "rpc-only"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "notifier",
|
|
517
|
+
"x-event": "TextToSpeech.onWillspeak"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "capabilities",
|
|
521
|
+
"x-uses": [
|
|
522
|
+
"xrn:firebolt:capability:text-to-speech:general"
|
|
523
|
+
]
|
|
524
|
+
}
|
|
525
|
+
],
|
|
526
|
+
"params": [
|
|
527
|
+
{
|
|
528
|
+
"name": "SpeechId",
|
|
529
|
+
"summary": "Identifier for the speech call",
|
|
530
|
+
"schema": {
|
|
531
|
+
"$ref": "#/components/schemas/SpeechIdEvent"
|
|
532
|
+
},
|
|
533
|
+
"required": true
|
|
534
|
+
}
|
|
535
|
+
],
|
|
536
|
+
"examples": [
|
|
537
|
+
{
|
|
538
|
+
"name": "Default Example",
|
|
539
|
+
"params": [
|
|
540
|
+
{
|
|
541
|
+
"name": "SpeechId",
|
|
542
|
+
"value": {
|
|
543
|
+
"speechid": 1
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
]
|
|
547
|
+
}
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"name": "TextToSpeech.onSpeechstart",
|
|
552
|
+
"summary": "Utterance is about to be spoken.",
|
|
553
|
+
"tags": [
|
|
554
|
+
{
|
|
555
|
+
"name": "rpc-only"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "notifier",
|
|
559
|
+
"x-event": "TextToSpeech.onSpeechstart"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"name": "capabilities",
|
|
563
|
+
"x-uses": [
|
|
564
|
+
"xrn:firebolt:capability:text-to-speech:general"
|
|
565
|
+
]
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"params": [
|
|
569
|
+
{
|
|
570
|
+
"name": "SpeechId",
|
|
571
|
+
"summary": "Identifier for the speech call",
|
|
572
|
+
"schema": {
|
|
573
|
+
"$ref": "#/components/schemas/SpeechIdEvent"
|
|
574
|
+
},
|
|
575
|
+
"required": true
|
|
576
|
+
}
|
|
577
|
+
],
|
|
578
|
+
"examples": [
|
|
579
|
+
{
|
|
580
|
+
"name": "Default Example",
|
|
581
|
+
"params": [
|
|
582
|
+
{
|
|
583
|
+
"name": "SpeechId",
|
|
584
|
+
"value": {
|
|
585
|
+
"speechid": 1
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
]
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"name": "TextToSpeech.onSpeechpause",
|
|
594
|
+
"summary": "Ongoing speech was paused.",
|
|
595
|
+
"tags": [
|
|
596
|
+
{
|
|
597
|
+
"name": "rpc-only"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"name": "notifier",
|
|
601
|
+
"x-event": "TextToSpeech.onSpeechpause"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"name": "capabilities",
|
|
605
|
+
"x-uses": [
|
|
606
|
+
"xrn:firebolt:capability:text-to-speech:general"
|
|
607
|
+
]
|
|
608
|
+
}
|
|
609
|
+
],
|
|
610
|
+
"params": [
|
|
611
|
+
{
|
|
612
|
+
"name": "SpeechId",
|
|
613
|
+
"summary": "Identifier for the speech call",
|
|
614
|
+
"schema": {
|
|
615
|
+
"$ref": "#/components/schemas/SpeechIdEvent"
|
|
616
|
+
},
|
|
617
|
+
"required": true
|
|
618
|
+
}
|
|
619
|
+
],
|
|
620
|
+
"examples": [
|
|
621
|
+
{
|
|
622
|
+
"name": "Default Example",
|
|
623
|
+
"params": [
|
|
624
|
+
{
|
|
625
|
+
"name": "SpeechId",
|
|
626
|
+
"value": {
|
|
627
|
+
"speechid": 1
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
]
|
|
631
|
+
}
|
|
632
|
+
]
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"name": "TextToSpeech.onSpeechresume",
|
|
636
|
+
"summary": "Paused speech was resumed.",
|
|
637
|
+
"tags": [
|
|
638
|
+
{
|
|
639
|
+
"name": "rpc-only"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "notifier",
|
|
643
|
+
"x-event": "TextToSpeech.onSpeechresume"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"name": "capabilities",
|
|
647
|
+
"x-uses": [
|
|
648
|
+
"xrn:firebolt:capability:text-to-speech:general"
|
|
649
|
+
]
|
|
650
|
+
}
|
|
651
|
+
],
|
|
652
|
+
"params": [
|
|
653
|
+
{
|
|
654
|
+
"name": "SpeechId",
|
|
655
|
+
"summary": "Identifier for the speech call",
|
|
656
|
+
"schema": {
|
|
657
|
+
"$ref": "#/components/schemas/SpeechIdEvent"
|
|
658
|
+
},
|
|
659
|
+
"required": true
|
|
660
|
+
}
|
|
661
|
+
],
|
|
662
|
+
"examples": [
|
|
663
|
+
{
|
|
664
|
+
"name": "Default Example",
|
|
665
|
+
"params": [
|
|
666
|
+
{
|
|
667
|
+
"name": "SpeechId",
|
|
668
|
+
"value": {
|
|
669
|
+
"speechid": 1
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
]
|
|
673
|
+
}
|
|
674
|
+
]
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"name": "TextToSpeech.onSpeechcomplete",
|
|
678
|
+
"summary": "Speech completed successfully.",
|
|
679
|
+
"tags": [
|
|
680
|
+
{
|
|
681
|
+
"name": "rpc-only"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"name": "notifier",
|
|
685
|
+
"x-event": "TextToSpeech.onSpeechcomplete"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"name": "capabilities",
|
|
689
|
+
"x-uses": [
|
|
690
|
+
"xrn:firebolt:capability:text-to-speech:general"
|
|
691
|
+
]
|
|
692
|
+
}
|
|
693
|
+
],
|
|
694
|
+
"params": [
|
|
695
|
+
{
|
|
696
|
+
"name": "SpeechId",
|
|
697
|
+
"summary": "Identifier for the speech call",
|
|
698
|
+
"schema": {
|
|
699
|
+
"$ref": "#/components/schemas/SpeechIdEvent"
|
|
700
|
+
},
|
|
701
|
+
"required": true
|
|
702
|
+
}
|
|
703
|
+
],
|
|
704
|
+
"examples": [
|
|
705
|
+
{
|
|
706
|
+
"name": "Default Example",
|
|
707
|
+
"params": [
|
|
708
|
+
{
|
|
709
|
+
"name": "SpeechId",
|
|
710
|
+
"value": {
|
|
711
|
+
"speechid": 1
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
]
|
|
715
|
+
}
|
|
716
|
+
]
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "TextToSpeech.onSpeechinterrupted",
|
|
720
|
+
"summary": "Speech was stopped, due to another call to speak or cancel.",
|
|
721
|
+
"tags": [
|
|
722
|
+
{
|
|
723
|
+
"name": "rpc-only"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"name": "notifier",
|
|
727
|
+
"x-event": "TextToSpeech.onSpeechinterrupted"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"name": "capabilities",
|
|
731
|
+
"x-uses": [
|
|
732
|
+
"xrn:firebolt:capability:text-to-speech:general"
|
|
733
|
+
]
|
|
734
|
+
}
|
|
735
|
+
],
|
|
736
|
+
"params": [
|
|
737
|
+
{
|
|
738
|
+
"name": "SpeechId",
|
|
739
|
+
"summary": "Identifier for the speech call",
|
|
740
|
+
"schema": {
|
|
741
|
+
"$ref": "#/components/schemas/SpeechIdEvent"
|
|
742
|
+
},
|
|
743
|
+
"required": true
|
|
744
|
+
}
|
|
745
|
+
],
|
|
746
|
+
"examples": [
|
|
747
|
+
{
|
|
748
|
+
"name": "Default Example",
|
|
749
|
+
"params": [
|
|
750
|
+
{
|
|
751
|
+
"name": "SpeechId",
|
|
752
|
+
"value": {
|
|
753
|
+
"speechid": 1
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
]
|
|
757
|
+
}
|
|
758
|
+
]
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"name": "TextToSpeech.onNetworkerror",
|
|
762
|
+
"summary": "Utterance failed due to network error.",
|
|
763
|
+
"tags": [
|
|
764
|
+
{
|
|
765
|
+
"name": "rpc-only"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "notifier",
|
|
769
|
+
"x-event": "TextToSpeech.onNetworkerror"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"name": "capabilities",
|
|
773
|
+
"x-uses": [
|
|
774
|
+
"xrn:firebolt:capability:text-to-speech:general"
|
|
775
|
+
]
|
|
776
|
+
}
|
|
777
|
+
],
|
|
778
|
+
"params": [
|
|
779
|
+
{
|
|
780
|
+
"name": "SpeechId",
|
|
781
|
+
"summary": "Identifier for the speech call",
|
|
782
|
+
"schema": {
|
|
783
|
+
"$ref": "#/components/schemas/SpeechIdEvent"
|
|
784
|
+
},
|
|
785
|
+
"required": true
|
|
786
|
+
}
|
|
787
|
+
],
|
|
788
|
+
"examples": [
|
|
789
|
+
{
|
|
790
|
+
"name": "Default Example",
|
|
791
|
+
"params": [
|
|
792
|
+
{
|
|
793
|
+
"name": "SpeechId",
|
|
794
|
+
"value": {
|
|
795
|
+
"speechid": 1
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
]
|
|
799
|
+
}
|
|
800
|
+
]
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"name": "TextToSpeech.onPlaybackerror",
|
|
804
|
+
"summary": "Utterance failed during playback.",
|
|
805
|
+
"tags": [
|
|
806
|
+
{
|
|
807
|
+
"name": "rpc-only"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"name": "notifier",
|
|
811
|
+
"x-event": "TextToSpeech.onPlaybackerror"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"name": "capabilities",
|
|
815
|
+
"x-uses": [
|
|
816
|
+
"xrn:firebolt:capability:text-to-speech:general"
|
|
817
|
+
]
|
|
818
|
+
}
|
|
819
|
+
],
|
|
820
|
+
"params": [
|
|
821
|
+
{
|
|
822
|
+
"name": "SpeechId",
|
|
823
|
+
"summary": "Identifier for the speech call",
|
|
824
|
+
"schema": {
|
|
825
|
+
"$ref": "#/components/schemas/SpeechIdEvent"
|
|
826
|
+
},
|
|
827
|
+
"required": true
|
|
828
|
+
}
|
|
829
|
+
],
|
|
830
|
+
"examples": [
|
|
831
|
+
{
|
|
832
|
+
"name": "Default Example",
|
|
833
|
+
"params": [
|
|
834
|
+
{
|
|
835
|
+
"name": "SpeechId",
|
|
836
|
+
"value": {
|
|
837
|
+
"speechid": 1
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
]
|
|
841
|
+
}
|
|
842
|
+
]
|
|
843
|
+
}
|
|
844
|
+
],
|
|
845
|
+
"components": {
|
|
846
|
+
"schemas": {
|
|
847
|
+
"HDRFormatMap": {
|
|
848
|
+
"title": "HDRFormatMap",
|
|
849
|
+
"type": "object",
|
|
850
|
+
"properties": {
|
|
851
|
+
"hdr10": {
|
|
852
|
+
"type": "boolean"
|
|
853
|
+
},
|
|
854
|
+
"hdr10Plus": {
|
|
855
|
+
"type": "boolean"
|
|
856
|
+
},
|
|
857
|
+
"dolbyVision": {
|
|
858
|
+
"type": "boolean"
|
|
859
|
+
},
|
|
860
|
+
"hlg": {
|
|
861
|
+
"type": "boolean"
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
"required": [
|
|
865
|
+
"hdr10",
|
|
866
|
+
"hdr10Plus",
|
|
867
|
+
"dolbyVision",
|
|
868
|
+
"hlg"
|
|
869
|
+
],
|
|
870
|
+
"description": "The type of HDR format"
|
|
871
|
+
},
|
|
872
|
+
"LifecycleState": {
|
|
873
|
+
"title": "LifecycleState",
|
|
874
|
+
"description": "The application Lifecycle state",
|
|
875
|
+
"type": "string",
|
|
876
|
+
"enum": [
|
|
877
|
+
"initializing",
|
|
878
|
+
"active",
|
|
879
|
+
"paused",
|
|
880
|
+
"suspended",
|
|
881
|
+
"hibernated",
|
|
882
|
+
"terminating"
|
|
883
|
+
]
|
|
884
|
+
},
|
|
885
|
+
"StateChange": {
|
|
886
|
+
"title": "StateChange",
|
|
887
|
+
"type": "object",
|
|
888
|
+
"properties": {
|
|
889
|
+
"newState": {
|
|
890
|
+
"$ref": "#/components/schemas/LifecycleState"
|
|
891
|
+
},
|
|
892
|
+
"oldState": {
|
|
893
|
+
"$ref": "#/components/schemas/LifecycleState"
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
"Connected": {
|
|
898
|
+
"type": "boolean",
|
|
899
|
+
"description": "Indicates whether the device currently has a usable network connection."
|
|
900
|
+
},
|
|
901
|
+
"SpeechId": {
|
|
902
|
+
"type": "integer"
|
|
903
|
+
},
|
|
904
|
+
"SpeechIdEvent": {
|
|
905
|
+
"type": "object",
|
|
906
|
+
"properties": {
|
|
907
|
+
"speechid": {
|
|
908
|
+
"$ref": "#/components/schemas/SpeechId"
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
"required": [
|
|
912
|
+
"speechid"
|
|
913
|
+
]
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
"x-schemas": {
|
|
918
|
+
"Types": {
|
|
919
|
+
"uri": "https://meta.comcast.com/firebolt/types",
|
|
920
|
+
"SemanticVersion": {
|
|
921
|
+
"title": "SemanticVersion",
|
|
922
|
+
"type": "object",
|
|
923
|
+
"properties": {
|
|
924
|
+
"major": {
|
|
925
|
+
"type": "integer",
|
|
926
|
+
"minimum": 0
|
|
927
|
+
},
|
|
928
|
+
"minor": {
|
|
929
|
+
"type": "integer",
|
|
930
|
+
"minimum": 0
|
|
931
|
+
},
|
|
932
|
+
"patch": {
|
|
933
|
+
"type": "integer",
|
|
934
|
+
"minimum": 0
|
|
935
|
+
},
|
|
936
|
+
"readable": {
|
|
937
|
+
"type": "string"
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
"required": [
|
|
941
|
+
"major",
|
|
942
|
+
"minor",
|
|
943
|
+
"patch",
|
|
944
|
+
"readable"
|
|
945
|
+
],
|
|
946
|
+
"additionalProperties": false
|
|
947
|
+
},
|
|
948
|
+
"FlatMap": {
|
|
949
|
+
"type": "object",
|
|
950
|
+
"additionalProperties": {
|
|
951
|
+
"oneOf": [
|
|
952
|
+
{
|
|
953
|
+
"type": "string"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"type": "number"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"type": "boolean"
|
|
960
|
+
}
|
|
961
|
+
]
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
"Accessibility": {
|
|
966
|
+
"uri": "https://meta.comcast.com/firebolt/accessibility",
|
|
967
|
+
"ClosedCaptionsSettings": {
|
|
968
|
+
"title": "ClosedCaptionsSettings",
|
|
969
|
+
"type": "object",
|
|
970
|
+
"required": [
|
|
971
|
+
"enabled"
|
|
972
|
+
],
|
|
973
|
+
"properties": {
|
|
974
|
+
"enabled": {
|
|
975
|
+
"type": "boolean",
|
|
976
|
+
"description": "Whether or not closed-captions should be enabled by default"
|
|
977
|
+
},
|
|
978
|
+
"preferredLanguages": {
|
|
979
|
+
"type": "array",
|
|
980
|
+
"items": {
|
|
981
|
+
"$ref": "#/x-schemas/Localization/ISO639_2Language"
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
},
|
|
985
|
+
"examples": [
|
|
986
|
+
{
|
|
987
|
+
"enabled": true,
|
|
988
|
+
"styles": {
|
|
989
|
+
"fontFamily": "monospaced_serif",
|
|
990
|
+
"fontSize": 1,
|
|
991
|
+
"fontColor": "#ffffff",
|
|
992
|
+
"fontEdge": "none",
|
|
993
|
+
"fontEdgeColor": "#7F7F7F",
|
|
994
|
+
"fontOpacity": 100,
|
|
995
|
+
"backgroundColor": "#000000",
|
|
996
|
+
"backgroundOpacity": 100,
|
|
997
|
+
"textAlign": "center",
|
|
998
|
+
"textAlignVertical": "middle",
|
|
999
|
+
"windowColor": "white",
|
|
1000
|
+
"windowOpacity": 50
|
|
1001
|
+
},
|
|
1002
|
+
"preferredLanguages": [
|
|
1003
|
+
"eng",
|
|
1004
|
+
"spa"
|
|
1005
|
+
]
|
|
1006
|
+
}
|
|
1007
|
+
]
|
|
1008
|
+
},
|
|
1009
|
+
"VoiceGuidanceSettings": {
|
|
1010
|
+
"title": "VoiceGuidanceSettings",
|
|
1011
|
+
"type": "object",
|
|
1012
|
+
"required": [
|
|
1013
|
+
"enabled",
|
|
1014
|
+
"navigationHints",
|
|
1015
|
+
"rate"
|
|
1016
|
+
],
|
|
1017
|
+
"properties": {
|
|
1018
|
+
"enabled": {
|
|
1019
|
+
"type": "boolean",
|
|
1020
|
+
"description": "Whether or not voice guidance should be enabled by default"
|
|
1021
|
+
},
|
|
1022
|
+
"rate": {
|
|
1023
|
+
"$ref": "#/x-schemas/Accessibility/SpeechRate",
|
|
1024
|
+
"description": "The rate at which voice guidance speech will be read back to the user"
|
|
1025
|
+
},
|
|
1026
|
+
"navigationHints": {
|
|
1027
|
+
"type": "boolean",
|
|
1028
|
+
"description": "Whether or not voice guidance should include additional navigation hints"
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
"examples": [
|
|
1032
|
+
{
|
|
1033
|
+
"enabled": true,
|
|
1034
|
+
"navigationHints": true,
|
|
1035
|
+
"rate": 0.8
|
|
1036
|
+
}
|
|
1037
|
+
]
|
|
1038
|
+
},
|
|
1039
|
+
"SpeechRate": {
|
|
1040
|
+
"title": "SpeechRate",
|
|
1041
|
+
"type": "number",
|
|
1042
|
+
"minimum": 0.1,
|
|
1043
|
+
"maximum": 10
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1046
|
+
"Localization": {
|
|
1047
|
+
"uri": "https://meta.comcast.com/firebolt/localization",
|
|
1048
|
+
"ISO639_2Language": {
|
|
1049
|
+
"type": "string",
|
|
1050
|
+
"pattern": "^[a-z]{3}$"
|
|
1051
|
+
},
|
|
1052
|
+
"CountryCode": {
|
|
1053
|
+
"type": "string",
|
|
1054
|
+
"pattern": "^[A-Z]{2}$"
|
|
1055
|
+
},
|
|
1056
|
+
"Locale": {
|
|
1057
|
+
"type": "string",
|
|
1058
|
+
"pattern": "^[a-zA-Z]+([a-zA-Z0-9\\-]*)$"
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
"Policies": {
|
|
1062
|
+
"uri": "https://meta.comcast.com/firebolt/policies",
|
|
1063
|
+
"AgePolicy": {
|
|
1064
|
+
"title": "AgePolicy",
|
|
1065
|
+
"description": "The policy that describes various age groups to which content is directed. See distributor documentation for further details.",
|
|
1066
|
+
"anyOf": [
|
|
1067
|
+
{
|
|
1068
|
+
"type": "string"
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"type": "string",
|
|
1072
|
+
"enum": [
|
|
1073
|
+
"app:adult",
|
|
1074
|
+
"app:child",
|
|
1075
|
+
"app:teen"
|
|
1076
|
+
]
|
|
1077
|
+
}
|
|
1078
|
+
]
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|