registry: Speaker, StepSpeaker, EqualizerController, PlaybackController, PlaybackStateReporter, InputController, ChannelController
Seven descriptors written from their pages replace seven stubs. All are version 3; 1.5.2 announced Speaker, StepSpeaker, EqualizerController and PlaybackStateReporter as version 1, and all but ChannelController without a property. StepSpeaker has no properties object in discovery and PlaybackController one without fields, next to supportedOperations; a directive for an operation the device did not list is answered with INVALID_DIRECTIVE. The equalizer declares bands, modes or both under "configurations", a TV its inputs from the 61 names of the page. Not described: the lineup of ChannelController, whose discovery example the page folds away. The discovery examples of InputController spell one key "friendNames"; the fixtures have friendlyNames, as its table does. 62 examples of the six pages are saved as fixtures. 241 tests pass, 215 before. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
c59cf3ff10
commit
d7dfc5b122
113 changed files with 3948 additions and 47 deletions
28
test/fixtures/alexa-docs/alexa-equalizercontroller/AdjustBands.directive.json
vendored
Normal file
28
test/fixtures/alexa-docs/alexa-equalizercontroller/AdjustBands.directive.json
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"directive": {
|
||||
"header": {
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "AdjustBands",
|
||||
"messageId": "Unique version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2.0 bearer token"
|
||||
},
|
||||
"endpointId": "Endpoint ID",
|
||||
"cookie": {}
|
||||
},
|
||||
"payload": {
|
||||
"bands": [
|
||||
{
|
||||
"name": "BASS",
|
||||
"levelDelta": 3,
|
||||
"levelDirection": "UP"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
57
test/fixtures/alexa-docs/alexa-equalizercontroller/AdjustBands.response.json
vendored
Normal file
57
test/fixtures/alexa-docs/alexa-equalizercontroller/AdjustBands.response.json
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa",
|
||||
"name": "Response",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token that matches the request",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2.0 bearer token"
|
||||
},
|
||||
"endpointId": "Endpoint ID"
|
||||
},
|
||||
"payload": {}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "mode",
|
||||
"value": "MOVIE",
|
||||
"timeOfSample": "2017-02-03T16:32:50.52Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "bands",
|
||||
"value": [
|
||||
{
|
||||
"name": "BASS",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"name": "MIDRANGE",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"name": "TREBLE",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"timeOfSample": "2017-02-03T16:20:50.52Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.PowerController",
|
||||
"name": "powerState",
|
||||
"value": "ON",
|
||||
"timeOfSample": "2017-02-03T16:18:40.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
64
test/fixtures/alexa-docs/alexa-equalizercontroller/ChangeReport.json
vendored
Normal file
64
test/fixtures/alexa-docs/alexa-equalizercontroller/ChangeReport.json
vendored
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa",
|
||||
"name": "ChangeReport",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2.0 bearer token"
|
||||
},
|
||||
"endpointId": "Endpoint ID"
|
||||
},
|
||||
"payload": {
|
||||
"change": {
|
||||
"cause": {
|
||||
"type": "VOICE_INTERACTION"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "mode",
|
||||
"value": "SPORT",
|
||||
"timeOfSample": "2017-02-03T18:20:50.52Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "bands",
|
||||
"value": [
|
||||
{
|
||||
"name": "BASS",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"name": "MIDRANGE",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"name": "TREBLE",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"timeOfSample": "2017-02-03T16:20:50.52Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.PowerController",
|
||||
"name": "powerState",
|
||||
"value": "ON",
|
||||
"timeOfSample": "2017-02-03T16:18:40.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
32
test/fixtures/alexa-docs/alexa-equalizercontroller/ResetBands.directive.json
vendored
Normal file
32
test/fixtures/alexa-docs/alexa-equalizercontroller/ResetBands.directive.json
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"directive": {
|
||||
"header": {
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "ResetBands",
|
||||
"messageId": "Unique version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2.0 bearer token"
|
||||
},
|
||||
"endpointId": "Endpoint ID",
|
||||
"cookie": {}
|
||||
},
|
||||
"payload": {
|
||||
"bands": [
|
||||
{
|
||||
"name": "BASS"
|
||||
},
|
||||
{
|
||||
"name": "MIDRANGE"
|
||||
},
|
||||
{
|
||||
"name": "TREBLE"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
57
test/fixtures/alexa-docs/alexa-equalizercontroller/ResetBands.response.json
vendored
Normal file
57
test/fixtures/alexa-docs/alexa-equalizercontroller/ResetBands.response.json
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa",
|
||||
"name": "Response",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token that matches the request",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2.0 bearer token"
|
||||
},
|
||||
"endpointId": "Endpoint ID"
|
||||
},
|
||||
"payload": {}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "mode",
|
||||
"value": "MOVIE",
|
||||
"timeOfSample": "2017-02-03T16:40:50.52Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "bands",
|
||||
"value": [
|
||||
{
|
||||
"name": "BASS",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"name": "MIDRANGE",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"name": "TREBLE",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"timeOfSample": "2017-02-03T16:20:50.52Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.PowerController",
|
||||
"name": "powerState",
|
||||
"value": "ON",
|
||||
"timeOfSample": "2017-02-03T16:18:40.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
27
test/fixtures/alexa-docs/alexa-equalizercontroller/SetBands.directive.json
vendored
Normal file
27
test/fixtures/alexa-docs/alexa-equalizercontroller/SetBands.directive.json
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"directive": {
|
||||
"header": {
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "SetBands",
|
||||
"messageId": "Unique version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2.0 bearer token"
|
||||
},
|
||||
"endpointId": "Endpoint ID",
|
||||
"cookie": {}
|
||||
},
|
||||
"payload": {
|
||||
"bands": [
|
||||
{
|
||||
"name": "BASS",
|
||||
"value": -2
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
57
test/fixtures/alexa-docs/alexa-equalizercontroller/SetBands.response.json
vendored
Normal file
57
test/fixtures/alexa-docs/alexa-equalizercontroller/SetBands.response.json
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa",
|
||||
"name": "Response",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token that matches the request",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2.0 bearer token"
|
||||
},
|
||||
"endpointId": "Endpoint ID"
|
||||
},
|
||||
"payload": {}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "mode",
|
||||
"value": "MOVIE",
|
||||
"timeOfSample": "2017-02-03T16:25:50.52Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "bands",
|
||||
"value": [
|
||||
{
|
||||
"name": "BASS",
|
||||
"value": -2
|
||||
},
|
||||
{
|
||||
"name": "MIDRANGE",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"name": "TREBLE",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"timeOfSample": "2017-02-03T16:20:50.52Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.PowerController",
|
||||
"name": "powerState",
|
||||
"value": "ON",
|
||||
"timeOfSample": "2017-02-03T16:18:40.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
22
test/fixtures/alexa-docs/alexa-equalizercontroller/SetMode.directive.json
vendored
Normal file
22
test/fixtures/alexa-docs/alexa-equalizercontroller/SetMode.directive.json
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"directive": {
|
||||
"header": {
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "SetMode",
|
||||
"messageId": "Unique version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2.0 bearer token"
|
||||
},
|
||||
"endpointId": "Endpoint ID",
|
||||
"cookie": {}
|
||||
},
|
||||
"payload": {
|
||||
"mode": "MOVIE"
|
||||
}
|
||||
}
|
||||
}
|
||||
57
test/fixtures/alexa-docs/alexa-equalizercontroller/SetMode.response.json
vendored
Normal file
57
test/fixtures/alexa-docs/alexa-equalizercontroller/SetMode.response.json
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa",
|
||||
"name": "Response",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token that matches the request",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2.0 bearer token"
|
||||
},
|
||||
"endpointId": "Endpoint ID"
|
||||
},
|
||||
"payload": {}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "mode",
|
||||
"value": "MOVIE",
|
||||
"timeOfSample": "2017-02-03T16:20:50.52Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "bands",
|
||||
"value": [
|
||||
{
|
||||
"name": "BASS",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"name": "MIDRANGE",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"name": "TREBLE",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"timeOfSample": "2017-02-03T16:20:30.52Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.PowerController",
|
||||
"name": "powerState",
|
||||
"value": "ON",
|
||||
"timeOfSample": "2017-02-03T16:18:40.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
57
test/fixtures/alexa-docs/alexa-equalizercontroller/StateReport.json
vendored
Normal file
57
test/fixtures/alexa-docs/alexa-equalizercontroller/StateReport.json
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa",
|
||||
"name": "StateReport",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token that matches the request",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2.0 bearer token"
|
||||
},
|
||||
"endpointId": "Endpoint ID"
|
||||
},
|
||||
"payload": {}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "mode",
|
||||
"value": "MOVIE",
|
||||
"timeOfSample": "2017-02-03T17:50:50.52Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.EqualizerController",
|
||||
"name": "bands",
|
||||
"value": [
|
||||
{
|
||||
"name": "BASS",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"name": "MIDRANGE",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"name": "TREBLE",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"timeOfSample": "2017-02-03T16:20:50.52Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.PowerController",
|
||||
"name": "powerState",
|
||||
"value": "ON",
|
||||
"timeOfSample": "2017-02-03T16:18:40.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
17
test/fixtures/alexa-docs/alexa-equalizercontroller/bands.property.json
vendored
Normal file
17
test/fixtures/alexa-docs/alexa-equalizercontroller/bands.property.json
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "bands",
|
||||
"value": [
|
||||
{
|
||||
"name": "BASS",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"name": "MIDRANGE",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"name": "TREBLE",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
94
test/fixtures/alexa-docs/alexa-equalizercontroller/discovery.json
vendored
Normal file
94
test/fixtures/alexa-docs/alexa-equalizercontroller/discovery.json
vendored
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa.Discovery",
|
||||
"name": "Discover.Response",
|
||||
"payloadVersion": "3",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID"
|
||||
},
|
||||
"payload": {
|
||||
"endpoints": [
|
||||
{
|
||||
"endpointId": "Unique ID of the endpoint",
|
||||
"manufacturerName": "Manufacturer of the endpoint",
|
||||
"description": "Smart Television by Television Maker",
|
||||
"friendlyName": "Living Room TV",
|
||||
"displayCategories": [
|
||||
"TV"
|
||||
],
|
||||
"cookie": {},
|
||||
"capabilities": [
|
||||
{
|
||||
"type": "AlexaInterface",
|
||||
"interface": "Alexa.EqualizerController",
|
||||
"version": "3",
|
||||
"properties": {
|
||||
"supported": [
|
||||
{
|
||||
"name": "bands"
|
||||
},
|
||||
{
|
||||
"name": "mode"
|
||||
}
|
||||
],
|
||||
"retrievable": true,
|
||||
"proactivelyReported": true
|
||||
},
|
||||
"configurations": {
|
||||
"bands": {
|
||||
"supported": [
|
||||
{
|
||||
"name": "BASS"
|
||||
},
|
||||
{
|
||||
"name": "MIDRANGE"
|
||||
},
|
||||
{
|
||||
"name": "TREBLE"
|
||||
}
|
||||
],
|
||||
"range": {
|
||||
"minimum": -6,
|
||||
"maximum": 6
|
||||
}
|
||||
},
|
||||
"modes": {
|
||||
"supported": [
|
||||
{
|
||||
"name": "MOVIE"
|
||||
},
|
||||
{
|
||||
"name": "MUSIC"
|
||||
},
|
||||
{
|
||||
"name": "SPORT"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "AlexaInterface",
|
||||
"interface": "Alexa.PowerController",
|
||||
"version": "3",
|
||||
"properties": {
|
||||
"supported": [
|
||||
{
|
||||
"name": "powerState"
|
||||
}
|
||||
],
|
||||
"retrievable": true,
|
||||
"proactivelyReported": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "AlexaInterface",
|
||||
"interface": "Alexa",
|
||||
"version": "3"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
4
test/fixtures/alexa-docs/alexa-equalizercontroller/mode.property.json
vendored
Normal file
4
test/fixtures/alexa-docs/alexa-equalizercontroller/mode.property.json
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"name": "mode",
|
||||
"value": "MOVIE"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue