From 2ed342a7f5119dd1c773bf085dccfb34a68755f4 Mon Sep 17 00:00:00 2001 From: Maksym Savchenko Date: Fri, 22 May 2020 14:43:37 +0300 Subject: [PATCH] DELIA-42480 : Restoring *Plugin.json files --- .../DeviceIdentificationPlugin.json | 38 +++ DeviceInfo/DeviceInfoPlugin.json | 14 ++ DisplayInfo/DisplayInfoPlugin.json | 14 ++ LocationSync/LocationSyncPlugin.json | 14 ++ Messenger/MessengerPlugin.json | 17 ++ Monitor/MonitorPlugin.json | 14 ++ OpenCDMi/OpenCDMiPlugin.json | 13 ++ SecurityAgent/SecurityAgentPlugin.json | 14 ++ SecurityAgent/example_acl.json | 220 ++++++++++++++++++ TraceControl/TraceControlPlugin.json | 14 ++ WebKitBrowser/WebKitBrowserPlugin.json | 109 +++++++++ 11 files changed, 481 insertions(+) create mode 100644 DeviceIdentification/DeviceIdentificationPlugin.json create mode 100644 DeviceInfo/DeviceInfoPlugin.json create mode 100644 DisplayInfo/DisplayInfoPlugin.json create mode 100644 LocationSync/LocationSyncPlugin.json create mode 100644 Messenger/MessengerPlugin.json create mode 100644 Monitor/MonitorPlugin.json create mode 100644 OpenCDMi/OpenCDMiPlugin.json create mode 100644 SecurityAgent/SecurityAgentPlugin.json create mode 100644 SecurityAgent/example_acl.json create mode 100644 TraceControl/TraceControlPlugin.json create mode 100644 WebKitBrowser/WebKitBrowserPlugin.json diff --git a/DeviceIdentification/DeviceIdentificationPlugin.json b/DeviceIdentification/DeviceIdentificationPlugin.json new file mode 100644 index 0000000000..1b89fedc56 --- /dev/null +++ b/DeviceIdentification/DeviceIdentificationPlugin.json @@ -0,0 +1,38 @@ +{ + "$schema": "interface.schema.json", + "jsonrpc": "2.0", + "info": { + "title": "Device Identification API", + "class": "DeviceIdentification", + "description": "DeviceIdentification JSON-RPC interface" + }, + "properties": { + "deviceidentification": { + "summary": "Device paltform specific information", + "readonly": true, + "params": { + "type": "object", + "properties": { + "firmwareversion": { + "description": "Version of the device firmware", + "example": "1.0.0", + "type": "string" + }, + "chipset": { + "description": "Chipset used for this device", + "example": "BCM2711", + "type": "string" + }, + "identifier": { + "description": "Device unique identifier", + "type": "string" + } + }, + "required": [ + "firmwareversion", + "chipset" + ] + } + } + } +} diff --git a/DeviceInfo/DeviceInfoPlugin.json b/DeviceInfo/DeviceInfoPlugin.json new file mode 100644 index 0000000000..0c4f80b4c3 --- /dev/null +++ b/DeviceInfo/DeviceInfoPlugin.json @@ -0,0 +1,14 @@ +{ + "$schema": "plugin.schema.json", + "info": { + "title": "Device Info Plugin", + "callsign": "DeviceInfo", + "locator": "libWPEFrameworkDeviceInfo.so", + "status": "production", + "description": "The DeviceInfo plugin allows retrieving of various device-related information.", + "version": "1.0" + }, + "interface": { + "$ref": "{interfacedir}/DeviceInfo.json#" + } +} diff --git a/DisplayInfo/DisplayInfoPlugin.json b/DisplayInfo/DisplayInfoPlugin.json new file mode 100644 index 0000000000..0146839b4e --- /dev/null +++ b/DisplayInfo/DisplayInfoPlugin.json @@ -0,0 +1,14 @@ +{ + "$schema": "plugin.schema.json", + "info": { + "title": "Display Info Plugin", + "callsign": "DisplayInfo", + "locator": "libWPEFrameworkDisplayInfo.so", + "status": "production", + "description": "The DisplayInfo plugin allows retrieving of various display-related information.", + "version": "1.0" + }, + "interface": { + "$ref": "{interfacedir}/DisplayInfo.json#" + } +} diff --git a/LocationSync/LocationSyncPlugin.json b/LocationSync/LocationSyncPlugin.json new file mode 100644 index 0000000000..f5b0535d2d --- /dev/null +++ b/LocationSync/LocationSyncPlugin.json @@ -0,0 +1,14 @@ +{ + "$schema": "plugin.schema.json", + "info": { + "title": "Location Sync Plugin", + "callsign": "LocationSync", + "locator": "libWPELocationSync.so", + "status": "production", + "description": "The LocationSync plugin provides geo-location functionality.", + "version": "1.0" + }, + "interface": { + "$ref": "{interfacedir}/LocationSync.json#" + } +} diff --git a/Messenger/MessengerPlugin.json b/Messenger/MessengerPlugin.json new file mode 100644 index 0000000000..3c316472cf --- /dev/null +++ b/Messenger/MessengerPlugin.json @@ -0,0 +1,17 @@ +{ + "$schema": "plugin.schema.json", + "document": { + "$ref": "docs_common.json" + }, + "info": { + "title": "Messenger Plugin", + "version": "1.0", + "callsign": "Messenger", + "locator": "libWPEFrameworkMessenger.so", + "status": "alpha", + "description": "The Messenger allows exchanging text messages between users gathered in virtual rooms. The rooms are dynamically created and destroyed based on user attendance. Upon joining a room the client receives a unique token (room ID) to be used for sending and receiving the messages." + }, + "interface": { + "$ref": "{interfacedir}/Messenger.json#" + } +} diff --git a/Monitor/MonitorPlugin.json b/Monitor/MonitorPlugin.json new file mode 100644 index 0000000000..82972298f4 --- /dev/null +++ b/Monitor/MonitorPlugin.json @@ -0,0 +1,14 @@ +{ + "$schema": "plugin.schema.json", + "info": { + "title": "Monitor Plugin", + "callsign": "Monitor", + "locator": "libWPEFrameworkMonitor.so", + "status": "production", + "description": "The Monitor plugin provides a watchdog-like functionality for framework processes.", + "version": "1.0" + }, + "interface": { + "$ref": "{interfacedir}/Monitor.json#" + } +} diff --git a/OpenCDMi/OpenCDMiPlugin.json b/OpenCDMi/OpenCDMiPlugin.json new file mode 100644 index 0000000000..38daf94c50 --- /dev/null +++ b/OpenCDMi/OpenCDMiPlugin.json @@ -0,0 +1,13 @@ +{ + "$schema": "plugin.schema.json", + "info": { + "title": "OpenCDMi Plugin", + "callsign": "OCDM", + "locator": "libWPEFrameworkOCDM.so", + "status": "production", + "version": "1.0" + }, + "interface": { + "$ref": "{interfacedir}/OCDM.json#" + } +} diff --git a/SecurityAgent/SecurityAgentPlugin.json b/SecurityAgent/SecurityAgentPlugin.json new file mode 100644 index 0000000000..03600c3471 --- /dev/null +++ b/SecurityAgent/SecurityAgentPlugin.json @@ -0,0 +1,14 @@ +{ + "$schema": "plugin.schema.json", + "info": { + "title": "Security Agent Plugin", + "callsign": "SecurityAgent", + "locator": "libWPEFrameworkSecurityAgent.so", + "status": "production", + "description": "Security Agent of thunder is responsible to allow or block access to the Thunder API.", + "version": "1.0" + }, + "interface": { + "$ref": "{interfacedir}/SecurityAgent.json#" + } +} diff --git a/SecurityAgent/example_acl.json b/SecurityAgent/example_acl.json new file mode 100644 index 0000000000..0991e5ebbd --- /dev/null +++ b/SecurityAgent/example_acl.json @@ -0,0 +1,220 @@ +{ + "assign": [ + { + "url": "*://localhost", + "role": "local" + }, + { + "url": "*://localhost:*", + "role": "local" + }, + { + "url": "*://127.0.0.1", + "role": "local" + }, + { + "url": "*://127.0.0.1:*", + "role": "local" + }, + { + "url": "*://[::1]", + "role": "local" + }, + { + "url": "*://[::1]:*", + "role": "local" + }, + { + "url": "*://[0:0:0:0:0:0:0:1]", + "role": "local" + }, + { + "url": "*://[0:0:0:0:0:0:0:1]:*", + "role": "local" + }, + { + "url": "file://*", + "role": "local" + }, + { + "url": "*://*.comcast.com", + "role": "comcast" + }, + { + "url": "*://*.comcast.com:*", + "role": "comcast" + }, + { + "url": "*://*.comcast.net", + "role": "comcast" + }, + { + "url": "*://*.comcast.net:*", + "role": "comcast" + }, + { + "url": "*.x1.xcal.tv", + "role": "comcast" + }, + { + "url": "*.x1.xcal.tv:*", + "role": "comcast" + }, + { + "url": "*.x1-app.xcr.comcast.net", + "role": "comcast" + }, + { + "url": "*.x1-app.xcr.comcast.net:*", + "role": "comcast" + }, + { + "url": "*://www.pxscene.org", + "role": "pxscene.org" + }, + { + "url": "*://www.pxscene.org:*", + "role": "pxscene.org" + }, + { + "url": "*://pxscene.org", + "role": "pxscene.org" + }, + { + "url": "*://pxscene.org:*", + "role": "pxscene.org" + }, + { + "url": "*://www.sparkui.org", + "role": "sparkui.org" + }, + { + "url": "*://www.sparkui.org:*", + "role": "sparkui.org" + }, + { + "url": "*://sparkui.org", + "role": "sparkui.org" + }, + { + "url": "*://sparkui.org:*", + "role": "sparkui.org" + }, + { + "url": "*://xre2-apps.cvs-a.ula.comcast.net", + "role": "pxscene-samples" + }, + { + "url": "*://xre2-apps.cvs-a.ula.comcast.net:*", + "role": "pxscene-samples" + }, + { + "url": "*://px-apps.sys.comcast.net", + "role": "pxscene-samples" + }, + { + "url": "*://px-apps.sys.comcast.net:*", + "role": "pxscene-samples" + }, + { + "url": "*://*.xreapps.net", + "role": "xreapps.net" + }, + { + "url": "*://tvxcts-c5-c00001-b.ch.tvx.comcast.com", + "role": "cts" + }, + { + "url": "*://metrological.com", + "role": "metrological" + }, + { + "url": "*", + "role": "default" + } + ], + "roles": { + "default" : { + "thunder": { + "block" : [ + "*" + ] + } + }, + "xreapps.net": { + "thunder": { + "allow": [ + "*" + ], + "block" : [ + "DeviceInfo" + ] + } + }, + "local": { + "thunder": { + "allow": [ + "*" + ], + "block" : [ + ] + } + }, + "comcast": { + "thunder": { + "allow": [ + "DeviceInfo" + ], + "block" : [ + ] + } + }, + "metrological": { + "thunder": { + "allow": [ + "*" + ], + "block" : [ + ] + } + }, + "pxscene.org": { + "thunder": { + "allow": [ + "*" + ], + "block" : [ + ] + } + }, + "pxscene-samples": { + "thunder": { + "allow": [ + "*" + ], + "block" : [ + ] + } + }, + "cts": { + "thunder": { + "allow": [ + "*" + ], + "block" : [ + "DeviceInfo" + ] + } + }, + "sparkui.org": { + "thunder": { + "allow": [ + "*" + ], + "block" : [ + "DeviceInfo" + ] + } + } + } +} diff --git a/TraceControl/TraceControlPlugin.json b/TraceControl/TraceControlPlugin.json new file mode 100644 index 0000000000..959303f50d --- /dev/null +++ b/TraceControl/TraceControlPlugin.json @@ -0,0 +1,14 @@ +{ + "$schema": "plugin.schema.json", + "info": { + "title": "Trace Control Plugin", + "callsign": "TraceControl", + "locator": "libWPEFrameworkTraceControl.so", + "status": "production", + "description": "The Trace Control plugin provides ability to disable/enable trace output an set its verbosity level.", + "version": "1.0" + }, + "interface": { + "$ref": "{interfacedir}/TraceControl.json#" + } +} diff --git a/WebKitBrowser/WebKitBrowserPlugin.json b/WebKitBrowser/WebKitBrowserPlugin.json new file mode 100644 index 0000000000..c6e9e25d9f --- /dev/null +++ b/WebKitBrowser/WebKitBrowserPlugin.json @@ -0,0 +1,109 @@ +{ + "$schema": "plugin.schema.json", + "info": { + "title": "WebKit Browser Plugin", + "callsign": "WebKitBrowser", + "locator": "libWPEFrameworkWebKitBrowser.so", + "status": "production", + "description": "The WebKitBrowser plugin provides web browsing functionality based on the WebKit engine.", + "version": "1.0" + }, + "configuration": { + "type": "object", + "properties": { + "configuration": { + "type": "object", + "required": [], + "properties": { + "useragent": { + "type": "string", + "description": "The UserAgent used during communication with the web server" + }, + "url": { + "type": "string", + "description": "The URL that is loaded upon starting the browser" + }, + "injectedbundle": { + "type": "string", + "description": "The name of the .so loaded to extend the HTML5 with customized JavaScript handlers" + }, + "cookiestorage": { + "type": "string", + "description": "Post-fixed path to the persistent location on where cookies will be stored" + }, + "localstorage": { + "type": "string", + "description": "Post-fixed path to the persistent location on where local-storage will be stored" + }, + "certificatecheck": { + "type": "boolean", + "description": "If enabled, SSL certificate error will lead to a page error" + }, + "javascript": { + "type": "object", + "properties": { + "useLLInt": { + "type": "boolean", + "description": "Enable Low Level Interpreter" + }, + "useJIT": { + "type": "boolean", + "description": "Enable JIT" + }, + "useDFG": { + "type": "boolean", + "description": "Enable Data-Flow-Graph-JIT compiler" + }, + "useFTL": { + "type": "boolean", + "description": "Enable Faster-Than-Light-JIT compiler" + }, + "useDOM": { + "type": "boolean", + "description": "Enable the DOM-JIT compiler" + }, + "dumpOptions": { + "type": "string", + "description": "Dump options: 0 = None, 1 = Overridden only, 2 = All, 3 = Verbose" + } + }, + "required": [] + }, + "secure": { + "type": "boolean", + "description": "If false, every domain can access any other domain, otherwise fill in fields in whitelist definition table" + }, + "whitelist": { + "type": "object", + "properties": { + "origin": { + "type": "string", + "description": "Origin domain allowed to access domains in domain" + }, + "domain": { + "type": "array", + "items": { + "type": "string", + "description": "Domain allowed to access from origin" + } + }, + "subdomain": { + "type": "string", + "description": "whether it is also OK to access subdomains of domains listed in domain" + } + }, + "required": [] + } + } + } + }, + "required": [ + "callsign", + "classname", + "locator" + ] + }, + "interface": { + "$ref": "{interfacedir}/WebKitBrowser.json#" + } +}