-
Notifications
You must be signed in to change notification settings - Fork 0
docs: Add OpenRPC specs for implemented APIs #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| descriptions/ | ||
| node_modules/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,157 @@ | ||
| { | ||
| "openrpc": "1.2.4", | ||
| "info": { | ||
| "title": "Accessibility", | ||
| "version": "0.0.0", | ||
| "description": "The `Accessibility` module provides access to the user/device settings for closed captioning and voice guidance.\n\nApps **SHOULD** attempt o respect these settings, rather than manage and persist seprate settings, which would be different per-app." | ||
| }, | ||
| "methods": [ | ||
| { | ||
| "name": "audioDescription", | ||
| "summary": "Returns the audio description setting of the device", | ||
| "params": [], | ||
| "tags": [ | ||
| { | ||
| "name": "property:readonly" | ||
| }, | ||
| { | ||
| "name": "capabilities", | ||
| "x-uses": [ | ||
| "xrn:firebolt:capability:accessibility:audio-descriptions" | ||
| ] | ||
| } | ||
| ], | ||
| "result": { | ||
| "name": "setting", | ||
| "summary": "the audio description setting", | ||
| "schema": { | ||
| "type": "boolean" | ||
| } | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "name": "Getting the audio description setting", | ||
| "params": [], | ||
| "result": { | ||
| "name": "Default Result", | ||
| "value": true | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "closedCaptionsSettings", | ||
| "summary": "Returns captions settings: enabled, and a list of zero or more languages in order of decreasing preference", | ||
| "params": [], | ||
| "tags": [ | ||
| { | ||
| "name": "property:readonly", | ||
| "x-notifier-params-flattening": "true" | ||
| }, | ||
| { | ||
| "name": "capabilities", | ||
| "x-uses": [ | ||
| "xrn:firebolt:capability:accessibility:closed-captions" | ||
| ] | ||
| } | ||
| ], | ||
| "result": { | ||
| "name": "closedCaptionsSettings", | ||
| "summary": "the closed captions settings", | ||
| "schema": { | ||
| "$ref": "https://meta.comcast.com/firebolt/accessibility#/definitions/ClosedCaptionsSettings" | ||
| } | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "name": "Getting the closed captions settings", | ||
| "params": [], | ||
| "result": { | ||
| "name": "settings", | ||
| "value": { | ||
| "enabled": true, | ||
| "preferredLanguages": [ | ||
| "eng", | ||
| "spa" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "highContrastUI", | ||
| "summary": "Returns the high contrast UI device setting", | ||
| "params": [], | ||
| "tags": [ | ||
| { | ||
| "name": "property:readonly" | ||
| }, | ||
| { | ||
| "name": "capabilities", | ||
| "x-uses": [ | ||
| "xrn:firebolt:capability:accessibility:high-contrast-ui" | ||
| ] | ||
| } | ||
| ], | ||
| "result": { | ||
| "name": "highContrastUI", | ||
| "summary": "Whether high-contrast UI mode is enabled", | ||
| "schema": { | ||
| "type": "boolean" | ||
| } | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "name": "High-contrast UI mode is enabled", | ||
| "params": [], | ||
| "result": { | ||
| "name": "Default Result", | ||
| "value": true | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "voiceGuidanceSettings", | ||
| "summary": "Returns voice guidance settings: enabled, rate, and verbosity", | ||
| "params": [], | ||
| "tags": [ | ||
| { | ||
| "name": "property:readonly", | ||
| "x-notifier-params-flattening": "true" | ||
| }, | ||
| { | ||
| "name": "capabilities", | ||
| "x-uses": [ | ||
| "xrn:firebolt:capability:accessibility:voice-guidance" | ||
| ] | ||
| } | ||
| ], | ||
| "result": { | ||
| "name": "settings", | ||
| "summary": "the voice guidance settings", | ||
| "schema": { | ||
| "$ref": "https://meta.comcast.com/firebolt/accessibility#/definitions/VoiceGuidanceSettings" | ||
| } | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "name": "Getting the voice guidance settings", | ||
| "params": [], | ||
| "result": { | ||
| "name": "Default Result", | ||
| "value": { | ||
| "enabled": true, | ||
| "rate": 0.8, | ||
| "navigationHints": true | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "components": { | ||
| "schemas": {} | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| { | ||
| "openrpc": "1.2.4", | ||
| "info": { | ||
| "title": "Advertising", | ||
| "version": "0.0.0", | ||
| "description": "A module for platform provided advertising settings and functionality." | ||
| }, | ||
| "methods": [ | ||
| { | ||
| "name": "advertisingId", | ||
| "tags": [ | ||
| { | ||
| "name": "capabilities", | ||
| "x-uses": [ | ||
| "xrn:firebolt:capability:advertising:identifier" | ||
| ] | ||
| } | ||
| ], | ||
| "summary": "Returns the IFA.", | ||
| "params": [], | ||
| "result": { | ||
| "name": "advertisingId", | ||
| "summary": "The advertising ID", | ||
| "schema": { | ||
| "$ref": "#/components/schemas/AdvertisingIdResult" | ||
| } | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "name": "Getting the advertising ID", | ||
| "params": [], | ||
| "result": { | ||
| "name": "Default Result", | ||
| "value": { | ||
| "ifa": "bd87dd10-8d1d-4b93-b1a6-a8e5d410e400", | ||
| "ifa_type": "sspid", | ||
| "lmt": "0" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "name": "Getting the advertising ID with scope browse", | ||
| "params": [], | ||
| "result": { | ||
| "name": "Default Result", | ||
| "value": { | ||
| "ifa": "bd87dd10-8d1d-4b93-b1a6-a8e5d410e400", | ||
| "ifa_type": "sspid", | ||
| "lmt": "1" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "name": "Getting the advertising ID with scope content", | ||
| "params": [], | ||
| "result": { | ||
| "name": "Default Result", | ||
| "value": { | ||
| "ifa": "bd87dd10-8d1d-4b93-b1a6-a8e5d410e400", | ||
| "ifa_type": "idfa", | ||
| "lmt": "0" | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "components": { | ||
| "schemas": { | ||
| "AdvertisingIdResult": { | ||
| "title": "AdvertisingIdResult", | ||
| "type": "object", | ||
| "properties": { | ||
| "ifa": { | ||
| "type": "string", | ||
| "description": "UUID conforming to IAB standard" | ||
| }, | ||
| "ifa_type": { | ||
| "type": "string", | ||
| "description": "Source of the IFA as defined by IAB" | ||
| }, | ||
| "lmt": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "0", | ||
| "1" | ||
| ], | ||
| "description": "Boolean that if set to 1, user has requested ad tracking and measurement is disabled" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "ifa", | ||
| "ifa_type", | ||
| "lmt" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.