daily pastebin goal
62%
SHARE
TWEET

overwolf-manifest-schema

itayg Jan 5th, 2017 (edited) 244 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "title": "my first schema test for overwolf apps manifest",
  3.   "$schema": "http://json-schema.org/draft-04/schema#",
  4.   "type": "object"/*
  5.     This is a temporary unique identifier for the schema
  6.   */,
  7.   "id": "http://overwolf.com/schemas/myschema.json",
  8.   "required": [
  9.     "manifest_version",
  10.     "type",
  11.     "meta",
  12.     "data"
  13.   ],
  14.   "properties": {
  15.     "manifest_version": {
  16.       "type": "integer",
  17.       "description": "Targets the manifest version you are working on. Currently there is only one version, therefore this value is always 1",
  18.       "enum": [
  19.         1
  20.       ]
  21.     },
  22.     "type": {
  23.       "type": "string",
  24.       "description": "Declares the type of application. Can only be 'WebApp'",
  25.       "enum": [
  26.         "WebApp",
  27.         "Skin",
  28.         "GameEventProvider"
  29.       ]
  30.     },
  31.     "meta": {
  32.       "description": "The extension metadata",
  33.       "type": "object",
  34.       "required": [
  35.         "name",
  36.         "author",
  37.         "version",
  38.         "minimum-overwolf-version",
  39.         "description",
  40.         "icon"
  41.       ],
  42.       "properties": {
  43.         "name": {
  44.           "description": "Name of your app",
  45.           "type": "string"
  46.         },
  47.         "author": {
  48.           "description": "Who developed the app",
  49.           "type": "string"
  50.         },
  51.         "version": {
  52.           "description": "Version of your app",
  53.           "$ref": "#/definitions/version_string"
  54.         },
  55.         "minimum-overwolf-version": {
  56.           "description": "Minimum version of the Overwolf Client with which the app is compatible.",
  57.           "$ref": "#/definitions/version_string"
  58.         },
  59.         "description": {
  60.           "description": "The description of your app on the Appstore tile",
  61.           "type": "string",
  62.           "maxLength": 180
  63.         },
  64.         "dock_button_title": {
  65.           "description": "Short name of your app. Provide a short title that will fit in the dock button area",
  66.           "type": "string",
  67.           "maxLength": 18
  68.         },
  69.         "icon": {
  70.           "description": "A relative path from the app folder to the icon's png file.This is the mouse-over (multi-colored) version of the icon that will be displayed on the Overwolf dock. The icon dimensions should be 256×256 pixels.",
  71.           "type": "string"
  72.         },
  73.         "icon_gray": {
  74.           "description": "A relative path from the app folder to the icon's png file. This is the grayscale version of the icon that will be displayed on the Overwolf dock. The icon dimensions should be 256×256 pixels.",
  75.           "type": "string"
  76.         },
  77.         "store_icon": {
  78.           "description": "A relative path from the app folder to a png file. This is the icon that will appear in the store library. The icon dimensions should be 200×200 pixels.",
  79.           "type": "string"
  80.         },
  81.         "launcher_icon": {
  82.           "description": "A relative path from the app folder to the desktop shortcut icon's ico file..",
  83.           "type": "string"
  84.         },
  85.         "splash_image": {
  86.           "description": "A relative path from the app folder to the splash image icon's png file. The image size should be 256x256px. If a this image is missing, Overwolf will use the "icon" image as a splash image ",
  87.           "type": "string"
  88.         }
  89.       },
  90.       "additionalProperties": false
  91.     },
  92.     "permissions": {
  93.       "description": "An array of permissions that the app requires.",
  94.       "type": "array",
  95.       "uniqueItems": true,
  96.       "items": {
  97.         "type": "string"/*
  98.         use case case-insensitive pattern
  99.         */,
  100.         "pattern": "(?i)(Camera|Microphone|Logging|Extensions|Streaming|DesktopStreaming|Profile|Clipboard|Hotkeys|Media|GameInfo|GameControl|FileSystem|LogitechLed|LogitechArx|OwWebview)"
  101.       }
  102.     },
  103.     "dependencies": {
  104.       "description": "An array of unique IDs of other extensions and services that this extension depends on.",
  105.       "type": "array",
  106.       "uniqueItems": true,
  107.       "items": {
  108.         "type": "string"
  109.       },
  110.       "additionalProperties": false
  111.     },
  112.     "data": {
  113.       "description": "Extension data",
  114.       "type": "object",
  115.       "properties": {
  116.         "windows": {
  117.           "description": "A map from window names to window settings.",
  118.           "type": "object",
  119.           "patternProperties": {
  120.             ".*": {
  121.               "$ref": "#/definitions/extension_window_data"
  122.             }
  123.           }
  124.         },
  125.         "start_window": {
  126.           "description": "The name of the window (from the "windows" list) initially loaded when the app starts.",
  127.           "type": "string"
  128.         },
  129.         "externally_connectable": {
  130.           "description": "A definition of external URLs the web app should be able to access",
  131.           "$ref": "#/definitions/extension_externally_connectable"
  132.         },
  133.         "protocol_override_domains": {
  134.           "description": "Overwolf apps run under a custom url protocol and domain (overwolf-extension://[extension-id]). This means that protocol-relative urls will try to load from a the overwolf-extension protocol. Unless you want this to happen, you can use protocol_override_domains to override the relative protocol with a preferred one",
  135.           "type": "object"
  136.         },
  137.         "force_browser": {
  138.           "description": "Causes links in the app to be opened using the user's default browser or Overwolf's browser. Takes 'user' and 'overwolf' (case insensitive).",
  139.           "type": "string"/*
  140.             use case case-insensitive pattern
  141.           */,
  142.           "pattern": "(?i)(user|overwold)"
  143.         },
  144.         "plugins": {
  145.           "description": "A list of file references to plugins that are provided with the web app. The references should be relative paths from the app folder.",
  146.           "type": "array",
  147.           "items": {
  148.             "type": "string"
  149.           }
  150.         },
  151.         "channel-id": {
  152.           "description": "A unique identifier (you will probably need to make sure the id is unique with Overwolf) that is used to communicate with your in-game plugin that is injected into the game",
  153.           "type": "string"
  154.         },
  155.         "game_events": {
  156.           "description": "A list of game ids for which game events are required.",
  157.           "type": "array",
  158.           "uniqueItems": true,
  159.           "items": {
  160.             "type": "integer"
  161.           }
  162.         },
  163.         "extra-objects": {
  164.           "description": "Allows the access of custom plugin dlls",
  165.           "type": "object",
  166.           "patternProperties": {
  167.             ".*": {
  168.               "$ref": "#/definitions/extra_object"
  169.             }
  170.           }
  171.         },
  172.         "hotkeys": {
  173.           "description": "The map between the hotkey feature name and it's settings.",
  174.           "type": "object",
  175.           "patternProperties": {
  176.             ".*": {
  177.               "$ref": "#/definitions/hotkey"
  178.             }
  179.           }
  180.         },
  181.         "content_scripts": {
  182.           "description": "A list of content scripts to be loaded for specific windows. For instance, for this json, when loading the index window, myscript.js will be loaded and when encountring https://google.com, mystyles.css and myscript2.js will be loaded",
  183.           "type": "array",
  184.           "items": {
  185.             "$ref": "#/definitions/content_script"
  186.           }
  187.         },
  188.         "launch_events": {
  189.           "description": "A list of events causing the app to launch. It is enough that one of the events will occur to launch the app.",
  190.           "type": "array",
  191.           "items": {
  192.             "$ref": "#/definitions/launch_event_settings"
  193.           }
  194.         },
  195.         "user_agent": {
  196.           "description": "A custom user agent for the app to use when creating http requests. Note that using 'navigator.userAgent' will not return the custom user agent, but the default one.",
  197.           "type": "string"
  198.         }
  199.       }
  200.     }
  201.   },
  202.   "definitions": {
  203.     "glob_pattern": {
  204.       "type": "string",
  205.       "format": "glob-pattern"
  206.     },
  207.     "icon": {
  208.       "$ref": "#/definitions/uri"
  209.     },
  210.     "match_pattern": {
  211.       "type": "string",
  212.       "format": "match-pattern",
  213.       "pattern": "^((\\*|http|https|file|ftp|chrome-extension):\\/\\/(\\*|\\*\\.[^\\/\\*]+|[^\\/\\*]+)?(\\/.*))|<all_urls>$"
  214.     },
  215.     "mime_type": {
  216.       "type": "string",
  217.       "format": "mime-type",
  218.       "pattern": "^(?:application|audio|image|message|model|multipart|text|video)\\/[-+.\\w]+$"
  219.     },
  220.     "page": {
  221.       "$ref": "#/definitions/uri"
  222.     },
  223.     "permissions": {
  224.       "type": "array",
  225.       "uniqueItems": true,
  226.       "items": {
  227.         "type": "string",
  228.         "format": "permission"
  229.       }
  230.     },
  231.     "scripts": {
  232.       "type": "array",
  233.       "minItems": 1,
  234.       "uniqueItems": true,
  235.       "items": {
  236.         "$ref": "#/definitions/uri"
  237.       }
  238.     },
  239.     "uri": {
  240.       "type": "string",
  241.       "format": "uri"
  242.     },
  243.     "version_string": {
  244.       "type": "string",
  245.       "pattern": "^(?:\\d{1,5}\\.){0,3}\\d{1,5}$"
  246.     },
  247.     "size": {
  248.       "type": "object",
  249.       "properties": {
  250.         "width": {
  251.           "description": "Defines the width in pixels.",
  252.           "type": "integer"
  253.         },
  254.         "height": {
  255.           "description": "Defines the height in pixels.",
  256.           "type": "integer"
  257.         }
  258.       }
  259.     },
  260.     "point": {
  261.       "type": "object",
  262.       "properties": {
  263.         "top": {
  264.           "description": "Defines the position in the Y axis from the top in pixels.",
  265.           "type": "integer"
  266.         },
  267.         "left": {
  268.           "description": "Defines the position in the X axis from the left in pixels.",
  269.           "type": "integer"
  270.         }
  271.       }
  272.     },
  273.     "extension_window_data": {
  274.       "type": "object",
  275.       "required": [
  276.         "file"
  277.       ],
  278.       "properties": {
  279.         "file": {
  280.           "description": "Points to the file to be loaded inside the window.",
  281.           "type": "string"
  282.         },
  283.         "show_in_taskbar": {
  284.           "description": "Define if the window is displayed in the Windows taskbar and alt-tab window selection menu.",
  285.           "type": "boolean"
  286.         },
  287.         "transparent": {
  288.           "description": "Indicates whether the window will be transparent and borderless. If set to false a standard Overwolf window will be created",
  289.           "type": "boolean"
  290.         },
  291.         "resizable": {
  292.           "description": "Indicates whether the window can be resized.",
  293.           "type": "boolean"
  294.         },
  295.           "is_background_page": {
  296.           "description": "Should be used with main hidden / background window. When set to 'true', the window will not be visible (for better performance)",
  297.           "type": "boolean"
  298.         },
  299.           "grab_focus_on_desktop": {
  300.           "description": "Indicates whether the window will grab the focus automatically when it opens, or leave the focus untouched. Default value = true.
  301.           Only relevant when in the desktop – for in-game focus behavior, use grab_keyboard_focus.",
  302.           "type": "boolean"
  303.         },
  304.          
  305.           "popup_blocker": {
  306.           "description": "  Prevents new browser windows being opened automatically using script. Default value = false",
  307.           "type": "boolean"
  308.         },
  309.          
  310.           "mute": {
  311.           "description": "Mute sounds in window",
  312.           "type": "boolean"
  313.         },
  314.          
  315.         "show_minimize": {
  316.           "description": "Indicates whether to show the window minimize button. Only relevant when not in transparent mode.",
  317.           "type": "boolean"
  318.         },
  319.         "clickthrough": {
  320.           "description": "Indicates whether the window will not receive clicks in-game, instead, the clicks will be passed on to the game.",
  321.           "type": "boolean"
  322.         },
  323.         "disable_rightclick": {
  324.           "description": "When set to true, disable right clicks entirely for this window.",
  325.           "type": "boolean"
  326.         },
  327.         "forcecapture": {
  328.           "description": "Indicates whether this window should always be included in recordings, overriding any other setting.",
  329.           "type": "boolean"
  330.         },
  331.         "show_only_on_stream": {
  332.           "description": "Indicates whether this window is visible only in streams (not visible to the streamer), overriding any other setting.",
  333.           "type": "boolean"
  334.         },
  335.         "ignore_keyboard_events": {
  336.           "description": "Indicates whether the window will not receive keyboard events. Instead, the keyboard events will be passed on to the game.",
  337.           "type": "boolean"
  338.         },
  339.         "in_game_only": {
  340.           "description": "Indicates whether the window will be visible only in game and not on the desktop.",
  341.           "type": "boolean"
  342.         },
  343.         "desktop_only": {
  344.           "description": "Indicates whether the window will be visible only on the desktop and not while in game.",
  345.           "type": "boolean"
  346.         },
  347.         "disable_restore_animation": {
  348.           "description": "Indicates whether the window will animate on minimize/restore while in game.",
  349.           "type": "boolean"
  350.         },
  351.         "grab_keyboard_focus": {
  352.           "description": "Indicates whether the window will grab the keyboard focus automatically when it opens, or leave the keyboard focus untouched.",
  353.           "type": "boolean"
  354.         },
  355.         "size": {
  356.           "description": "Defines the size of the window in pixels.",
  357.           "$ref": "#/definitions/size"
  358.         },
  359.         "min_size": {
  360.           "description": "Defines the minimum size of the window in pixels.",
  361.           "$ref": "#/definitions/size"
  362.         },
  363.         "max_size": {
  364.           "description": "Defines the maximum size of the window in pixels.",
  365.           "$ref": "#/definitions/size"
  366.         },
  367.         "start_position": {
  368.           "description": "The default start position of the window in pixels from the top left corner.",
  369.           "$ref": "#/definitions/point"
  370.         },
  371.         "topmost": {
  372.           "description": "Indicates whether the window will be on top of other Overwolf windows. Handle with care as topmost windows can negatively impact user experience.",
  373.           "type": "boolean"
  374.         },
  375.         "block_top_window_navigation": {
  376.           "description": "Refrain from page-take-over by links",
  377.           "type": "boolean"
  378.         }
  379.       },
  380.       "additionalProperties": false
  381.     },
  382.     "extension_externally_connectable": {
  383.       "type": "object",
  384.       "properties": {
  385.         "matches": {
  386.           "description": "Array of web page URL patterns to match with an external server URL. Use star (*) in place of subdomain to allow access to all subdomains.",
  387.           "type": "array"
  388.         }
  389.       },
  390.       "additionalProperties": false
  391.     },
  392.     "hotkey": {
  393.       "type": "object",
  394.       "required": [
  395.         "title"
  396.       ],
  397.       "properties": {
  398.         "title": {
  399.           "description": "Name of the hotkey as it will appear in the Hotkey tab in the settings.",
  400.           "type": "string"
  401.         },
  402.         "default": {
  403.           "description": "The default key combination.",
  404.           "type": "string"
  405.         },
  406.         "action-type": {
  407.           "description": "Defines the behavior of the hotkey.",
  408.           "type": "string",
  409.           "enum": [
  410.             "toggle",
  411.             "custom"
  412.           ]
  413.         },
  414.         "passthrough": {
  415.           "description": "Defines the behavior of the hotkey.",
  416.           "type": "boolean"
  417.         }
  418.       },
  419.       "additionalProperties": false
  420.     },
  421.     "content_script": {
  422.       "type": "object",
  423.       "properties": {
  424.         "windows": {
  425.           "description": "The list of windows for which to apply this content script.",
  426.           "type": "string"
  427.         },
  428.         "matches": {
  429.           "description": "The list of urls for which to apply this content script.",
  430.           "type": "string"
  431.         },
  432.         "css": {
  433.           "description": "The list of css files to be applied in this content script..",
  434.           "type": "string"
  435.         },
  436.         "js": {
  437.           "description": "The list of js files to be applied in this content script.",
  438.           "type": "string"
  439.         }
  440.       },
  441.       "additionalProperties": false
  442.     },
  443.     "launch_event_settings": {
  444.       "type": "object",
  445.       "properties": {
  446.         "event": {
  447.           "description": "The type name of the event.",
  448.           "type": "string",
  449.           "enum": [
  450.             "GameLaunch"
  451.           ]
  452.         },
  453.         "event_data": {
  454.           "description": "The event data.",
  455.           "$ref": "#/definitions/launch_event"
  456.         },
  457.         "start_minimized": {
  458.           "description": "\tThe app's main window will start minimized.",
  459.           "type": "boolean"
  460.         }
  461.       },
  462.       "additionalProperties": false
  463.     },
  464.     "launch_event": {
  465.       "type": "object",
  466.       "properties": {
  467.         "game_ids": {
  468.           "description": "The list of game class IDs for which the app will launch.",
  469.           "type": "array",
  470.           "items": {
  471.             "type": "integer"
  472.           }
  473.         },
  474.         "wait_for_stable_framerate": {
  475.           "description": "The app won't start until the game's framerate will stabilize around or above the stated framerate.",
  476.           "type": "integer"
  477.         }
  478.       },
  479.       "additionalProperties": false
  480.     },
  481.     "extra_object": {
  482.       "type": "object",
  483.       "properties": {
  484.         "file": {
  485.           "type": "string"
  486.         },
  487.         "class": {
  488.           "type": "string"
  489.         }
  490.       },
  491.       "additionalProperties": false
  492.     }
  493.   }
  494. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top