webext-schema 5.1.13 → 5.1.15

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.
@@ -3144,9 +3144,21 @@
3144
3144
  {
3145
3145
  "name": "openUI",
3146
3146
  "type": "function",
3147
- "async": true,
3147
+ "async": "callback",
3148
3148
  "description": "Opens the address book user interface.",
3149
- "parameters": []
3149
+ "parameters": [
3150
+ {
3151
+ "type": "function",
3152
+ "name": "callback",
3153
+ "optional": true,
3154
+ "parameters": [
3155
+ {
3156
+ "name": "return",
3157
+ "$ref": "tabs.Tab"
3158
+ }
3159
+ ]
3160
+ }
3161
+ ]
3150
3162
  },
3151
3163
  {
3152
3164
  "name": "closeUI",
@@ -8254,6 +8266,8 @@
8254
8266
  {
8255
8267
  "type": "object",
8256
8268
  "name": "queryInfo",
8269
+ "optional": true,
8270
+ "default": {},
8257
8271
  "properties": {
8258
8272
  "active": {
8259
8273
  "type": "boolean",
@@ -9499,8 +9513,15 @@
9499
9513
  {
9500
9514
  "name": "openProperties",
9501
9515
  "type": "object",
9502
- "description": "Settings for opening the message. Exactly one of messageId or headerMessageId must be specified.",
9516
+ "description": "Settings for opening the message. Exactly one of messageId, headerMessageId or file must be specified.",
9503
9517
  "properties": {
9518
+ "file": {
9519
+ "type": "object",
9520
+ "optional": true,
9521
+ "isInstanceOf": "File",
9522
+ "additionalProperties": true,
9523
+ "description": "The DOM file object of a message to be opened."
9524
+ },
9504
9525
  "messageId": {
9505
9526
  "type": "integer",
9506
9527
  "optional": true,
@@ -10821,6 +10842,28 @@
10821
10842
  }
10822
10843
  ]
10823
10844
  },
10845
+ {
10846
+ "name": "openAttachment",
10847
+ "type": "function",
10848
+ "description": "Opens the specified attachment",
10849
+ "async": true,
10850
+ "parameters": [
10851
+ {
10852
+ "name": "messageId",
10853
+ "type": "integer"
10854
+ },
10855
+ {
10856
+ "name": "partName",
10857
+ "type": "string",
10858
+ "pattern": "^\\d+(\\.\\d+)*$"
10859
+ },
10860
+ {
10861
+ "name": "tabId",
10862
+ "type": "integer",
10863
+ "description": "The ID of the tab associated with the message opening."
10864
+ }
10865
+ ]
10866
+ },
10824
10867
  {
10825
10868
  "name": "query",
10826
10869
  "type": "function",
@@ -10830,6 +10873,8 @@
10830
10873
  {
10831
10874
  "type": "object",
10832
10875
  "name": "queryInfo",
10876
+ "optional": true,
10877
+ "default": {},
10833
10878
  "properties": {
10834
10879
  "attachment": {
10835
10880
  "type": "boolean",
@@ -11180,9 +11225,180 @@
11180
11225
  ]
11181
11226
  }
11182
11227
  ],
11228
+ "spaces.json": [
11229
+ {
11230
+ "namespace": "spaces",
11231
+ "min_manifest_version": 3,
11232
+ "types": [
11233
+ {
11234
+ "id": "SpaceButtonProperties",
11235
+ "type": "object",
11236
+ "properties": {
11237
+ "badgeBackgroundColor": {
11238
+ "choices": [
11239
+ {
11240
+ "type": "string"
11241
+ },
11242
+ {
11243
+ "$ref": "ColorArray"
11244
+ }
11245
+ ],
11246
+ "optional": true,
11247
+ "description": "Sets the background color of the badge. Can be specified as an array of four integers in the range [0,255] that make up the RGBA color of the badge. For example, opaque red is <value>[255, 0, 0, 255]</value>. Can also be a string with an HTML color name (<value>red</value>) or a HEX color value (<value>#FF0000</value> or <value>#F00</value>). Reset when set to an empty string."
11248
+ },
11249
+ "badgeText": {
11250
+ "type": "string",
11251
+ "optional": true,
11252
+ "description": "Sets the badge text for the button in the spaces toolbar. The badge is displayed on top of the icon. Any number of characters can be set, but only about four can fit in the space. Removed when set to an empty string."
11253
+ },
11254
+ "defaultIcons": {
11255
+ "choices": [
11256
+ {
11257
+ "type": "string"
11258
+ },
11259
+ {
11260
+ "$ref": "manifest.IconPath"
11261
+ }
11262
+ ],
11263
+ "optional": true,
11264
+ "description": "The paths to one or more icons for the button in the spaces toolbar. Defaults to the extension icon, if set to an empty string."
11265
+ },
11266
+ "themeIcons": {
11267
+ "type": "array",
11268
+ "optional": true,
11269
+ "items": {
11270
+ "$ref": "manifest.ThemeIcons"
11271
+ },
11272
+ "description": "Specifies dark and light icons for the button in the spaces toolbar to be used with themes: The ``light`` icons will be used on dark backgrounds and vice versa. At least the set for <em>16px</em> icons should be specified. The set for <em>32px</em> icons will be used on screens with a very high pixel density, if specified."
11273
+ },
11274
+ "title": {
11275
+ "type": "string",
11276
+ "optional": true,
11277
+ "description": "The title for the button in the spaces toolbar, used in the tooltip of the button and as the displayed name in the overflow menu. Defaults to the name of the extension, if set to an empty string."
11278
+ }
11279
+ }
11280
+ },
11281
+ {
11282
+ "id": "ColorArray",
11283
+ "description": "An array of four integers in the range [0,255] that make up the RGBA color. For example, opaque red is <value>[255, 0, 0, 255]</value>.",
11284
+ "type": "array",
11285
+ "items": {
11286
+ "type": "integer",
11287
+ "minimum": 0,
11288
+ "maximum": 255
11289
+ },
11290
+ "minItems": 4,
11291
+ "maxItems": 4
11292
+ }
11293
+ ],
11294
+ "functions": [
11295
+ {
11296
+ "name": "create",
11297
+ "type": "function",
11298
+ "description": "Creates a new space and adds its button to the spaces toolbar.",
11299
+ "async": true,
11300
+ "parameters": [
11301
+ {
11302
+ "name": "spaceId",
11303
+ "type": "string",
11304
+ "pattern": "^[a-zA-Z0-9_]+$",
11305
+ "description": "The unique id to assign to this space. May only contain alphanumeric characters and underscores."
11306
+ },
11307
+ {
11308
+ "name": "defaultUrl",
11309
+ "type": "string",
11310
+ "description": "The default space url, loaded into a tab when the button in the spaces toolbar is clicked. Supported are <value>https://</value> and <value>http://</value> links, as well as links to WebExtension pages."
11311
+ },
11312
+ {
11313
+ "name": "buttonProperties",
11314
+ "description": "Properties of the button for the new space.",
11315
+ "$ref": "spaces.SpaceButtonProperties",
11316
+ "optional": true,
11317
+ "default": {}
11318
+ }
11319
+ ]
11320
+ },
11321
+ {
11322
+ "name": "remove",
11323
+ "type": "function",
11324
+ "description": "Removes the specified space, closes all its tabs and removes its button from the spaces toolbar. Throws an exception if the requested space does not exist or was not created by this extension.",
11325
+ "async": true,
11326
+ "parameters": [
11327
+ {
11328
+ "name": "name",
11329
+ "type": "string",
11330
+ "pattern": "^[a-zA-Z0-9_]+$",
11331
+ "description": "The name of the space which is to be removed. May only contain alphanumeric characters and underscores."
11332
+ }
11333
+ ]
11334
+ },
11335
+ {
11336
+ "name": "update",
11337
+ "type": "function",
11338
+ "description": "Updates the specified space. Throws an exception if the requested space does not exist or was not created by this extension.",
11339
+ "async": true,
11340
+ "parameters": [
11341
+ {
11342
+ "name": "spaceId",
11343
+ "type": "string",
11344
+ "description": "The id of the space whose button is to be updated. May only contain alphanumeric characters and underscores.",
11345
+ "pattern": "^[a-zA-Z0-9_]+$"
11346
+ },
11347
+ {
11348
+ "name": "defaultUrl",
11349
+ "type": "string",
11350
+ "description": "The default space url, loaded into a tab when the button in the spaces toolbar is clicked. Supported are <value>https://</value> and <value>http://</value> links, as well as links to WebExtension pages.",
11351
+ "optional": true
11352
+ },
11353
+ {
11354
+ "name": "buttonProperties",
11355
+ "description": "Only specified button properties will be updated.",
11356
+ "$ref": "spaces.SpaceButtonProperties",
11357
+ "optional": true
11358
+ }
11359
+ ]
11360
+ },
11361
+ {
11362
+ "name": "open",
11363
+ "type": "function",
11364
+ "description": "Opens or switches to the specified space. Throws an exception if the requested space does not exist or was not created by this extension.",
11365
+ "async": "callback",
11366
+ "parameters": [
11367
+ {
11368
+ "name": "spaceId",
11369
+ "type": "string",
11370
+ "description": "The id of the space. May only contain alphanumeric characters and underscores.",
11371
+ "pattern": "^[a-zA-Z0-9_]+$"
11372
+ },
11373
+ {
11374
+ "name": "windowId",
11375
+ "type": "integer",
11376
+ "minimum": -2,
11377
+ "optional": true,
11378
+ "description": "The id of the normal window, where the space should be opened. Defaults to the most recent normal window."
11379
+ },
11380
+ {
11381
+ "type": "function",
11382
+ "name": "callback",
11383
+ "optional": true,
11384
+ "parameters": [
11385
+ {
11386
+ "name": "tab",
11387
+ "$ref": "Tab",
11388
+ "optional": true,
11389
+ "description": "Details about the opened or activated space tab."
11390
+ }
11391
+ ]
11392
+ }
11393
+ ]
11394
+ }
11395
+ ]
11396
+ }
11397
+ ],
11183
11398
  "spacesToolbar.json": [
11184
11399
  {
11185
11400
  "namespace": "spacesToolbar",
11401
+ "max_manifest_version": 2,
11186
11402
  "types": [
11187
11403
  {
11188
11404
  "id": "ButtonProperties",
@@ -11273,27 +11489,27 @@
11273
11489
  {
11274
11490
  "name": "removeButton",
11275
11491
  "type": "function",
11276
- "description": "Removes the specified button from the spaces toolbar. Throws an exception if the requested spaces toolbar button does not exist. If the tab of this button is currently open, it will be closed.",
11492
+ "description": "Removes the specified button from the spaces toolbar. Throws an exception if the requested spaces toolbar button does not exist or was not created by this extension. If the tab of this button is currently open, it will be closed.",
11277
11493
  "async": true,
11278
11494
  "parameters": [
11279
11495
  {
11280
11496
  "name": "id",
11281
11497
  "type": "string",
11282
11498
  "pattern": "^[a-zA-Z0-9_]+$",
11283
- "description": "The id of the button which is to be removed. May only contain alphanumeric characters and underscores."
11499
+ "description": "The id of the spaces toolbar button, which is to be removed. May only contain alphanumeric characters and underscores."
11284
11500
  }
11285
11501
  ]
11286
11502
  },
11287
11503
  {
11288
11504
  "name": "updateButton",
11289
11505
  "type": "function",
11290
- "description": "Updates properties of the specified spaces toolbar button. Throws an exception if the requested spaces toolbar button does not exist.",
11506
+ "description": "Updates properties of the specified spaces toolbar button. Throws an exception if the requested spaces toolbar button does not exist or was not created by this extension.",
11291
11507
  "async": true,
11292
11508
  "parameters": [
11293
11509
  {
11294
11510
  "name": "id",
11295
11511
  "type": "string",
11296
- "description": "The id of the button which is to be updated. May only contain alphanumeric characters and underscores.",
11512
+ "description": "The id of the spaces toolbar button, which is to be updated. May only contain alphanumeric characters and underscores.",
11297
11513
  "pattern": "^[a-zA-Z0-9_]+$"
11298
11514
  },
11299
11515
  {
@@ -11302,6 +11518,40 @@
11302
11518
  "$ref": "spacesToolbar.ButtonProperties"
11303
11519
  }
11304
11520
  ]
11521
+ },
11522
+ {
11523
+ "name": "clickButton",
11524
+ "type": "function",
11525
+ "description": "Trigger a click on the specified spaces toolbar button. Throws an exception if the requested spaces toolbar button does not exist or was not created by this extension.",
11526
+ "async": "callback",
11527
+ "parameters": [
11528
+ {
11529
+ "name": "id",
11530
+ "type": "string",
11531
+ "description": "The id of the spaces toolbar button. May only contain alphanumeric characters and underscores.",
11532
+ "pattern": "^[a-zA-Z0-9_]+$"
11533
+ },
11534
+ {
11535
+ "name": "windowId",
11536
+ "type": "integer",
11537
+ "minimum": -2,
11538
+ "optional": true,
11539
+ "description": "The id of the normal window, where the spaces toolbar button should be clicked. Defaults to the most recent normal window."
11540
+ },
11541
+ {
11542
+ "type": "function",
11543
+ "name": "callback",
11544
+ "optional": true,
11545
+ "parameters": [
11546
+ {
11547
+ "name": "tab",
11548
+ "$ref": "Tab",
11549
+ "optional": true,
11550
+ "description": "Details about the opened or activated tab."
11551
+ }
11552
+ ]
11553
+ }
11554
+ ]
11305
11555
  }
11306
11556
  ]
11307
11557
  }
@@ -11722,6 +11972,8 @@
11722
11972
  {
11723
11973
  "type": "object",
11724
11974
  "name": "queryInfo",
11975
+ "optional": true,
11976
+ "default": {},
11725
11977
  "properties": {
11726
11978
  "mailTab": {
11727
11979
  "type": "boolean",
@@ -11833,12 +12085,12 @@
11833
12085
  "url": {
11834
12086
  "type": "string",
11835
12087
  "optional": true,
11836
- "description": "A URL to navigate the tab to. Only applicable for <value>content</value> tabs and active <value>mail</value> tabs."
12088
+ "description": "A URL of a page to load. If the URL points to a content page (a web page, an extension page or a registered WebExtension protocol handler page), the tab will navigate to the requested page. All other URLs will be opened externally without changing the tab. Note: This function will throw an error, if a content page is loaded into a non-content tab (its type must be either <value>content</value> or <value>mail</value>)."
11837
12089
  },
11838
12090
  "active": {
11839
12091
  "type": "boolean",
11840
12092
  "optional": true,
11841
- "description": "Set this to <value>true</value>, if the tab should be active. Does not affect whether the window is focused (see :ref:`windows.update`). Setting this to <value>false</value> has no effect."
12093
+ "description": "Set this to <value>true</value>, if the tab should become active. Does not affect whether the window is focused (see :ref:`windows.update`). Setting this to <value>false</value> has no effect."
11842
12094
  }
11843
12095
  }
11844
12096
  },
@@ -11860,7 +12112,7 @@
11860
12112
  {
11861
12113
  "name": "move",
11862
12114
  "type": "function",
11863
- "description": "Moves one or more tabs to a new position within its window, or to a new window. Note that tabs can only be moved to and from windows of type <value>normal</value>.",
12115
+ "description": "Moves one or more tabs to a new position within its current window, or to a different window. Note that tabs can only be moved to and from windows of type <value>normal</value>.",
11864
12116
  "async": "callback",
11865
12117
  "parameters": [
11866
12118
  {
@@ -11893,7 +12145,7 @@
11893
12145
  "index": {
11894
12146
  "type": "integer",
11895
12147
  "minimum": -1,
11896
- "description": "The position to move the window to. <value>-1</value> will place the tab at the end of the window."
12148
+ "description": "The position to move the tab to. <value>-1</value> will place the tab at the end of the window."
11897
12149
  }
11898
12150
  }
11899
12151
  },
@@ -11905,17 +12157,10 @@
11905
12157
  {
11906
12158
  "name": "tabs",
11907
12159
  "description": "Details about the moved tabs.",
11908
- "choices": [
11909
- {
11910
- "$ref": "Tab"
11911
- },
11912
- {
11913
- "type": "array",
11914
- "items": {
11915
- "$ref": "Tab"
11916
- }
11917
- }
11918
- ]
12160
+ "type": "array",
12161
+ "items": {
12162
+ "$ref": "Tab"
12163
+ }
11919
12164
  }
11920
12165
  ]
11921
12166
  }
@@ -11924,7 +12169,7 @@
11924
12169
  {
11925
12170
  "name": "reload",
11926
12171
  "type": "function",
11927
- "description": "Reload a tab.",
12172
+ "description": "Reload a tab. Only applicable for tabs which display a content page.",
11928
12173
  "async": "callback",
11929
12174
  "parameters": [
11930
12175
  {
@@ -12181,6 +12426,12 @@
12181
12426
  "minimum": 0,
12182
12427
  "description": "The ID of the tab that has become active."
12183
12428
  },
12429
+ "previousTabId": {
12430
+ "type": "integer",
12431
+ "minimum": 0,
12432
+ "optional": true,
12433
+ "description": "The ID of the tab that was previously active, if that tab is still open."
12434
+ },
12184
12435
  "windowId": {
12185
12436
  "type": "integer",
12186
12437
  "minimum": 0,
@@ -9716,8 +9716,7 @@
9716
9716
  "type": "string",
9717
9717
  "enum": [
9718
9718
  "declarativeNetRequest"
9719
- ],
9720
- "min_manifest_version": 3
9719
+ ]
9721
9720
  }
9722
9721
  ]
9723
9722
  },
@@ -9728,8 +9727,7 @@
9728
9727
  "type": "string",
9729
9728
  "enum": [
9730
9729
  "declarativeNetRequestFeedback"
9731
- ],
9732
- "min_manifest_version": 3
9730
+ ]
9733
9731
  }
9734
9732
  ]
9735
9733
  },
@@ -9740,8 +9738,7 @@
9740
9738
  "type": "string",
9741
9739
  "enum": [
9742
9740
  "declarativeNetRequestWithHostAccess"
9743
- ],
9744
- "min_manifest_version": 3
9741
+ ]
9745
9742
  }
9746
9743
  ]
9747
9744
  },
@@ -9750,7 +9747,6 @@
9750
9747
  "properties": {
9751
9748
  "declarative_net_request": {
9752
9749
  "type": "object",
9753
- "min_manifest_version": 3,
9754
9750
  "optional": true,
9755
9751
  "additionalProperties": {
9756
9752
  "$ref": "UnrecognizedProperty"
@@ -13518,7 +13514,7 @@
13518
13514
  "postprocess": "manifestVersionCheck"
13519
13515
  },
13520
13516
  "applications": {
13521
- "$ref": "BrowserSpecificSettings",
13517
+ "$ref": "DeprecatedApplications",
13522
13518
  "description": "The applications property is deprecated, please use 'browser_specific_settings'",
13523
13519
  "optional": true,
13524
13520
  "max_manifest_version": 2
@@ -14140,6 +14136,41 @@
14140
14136
  }
14141
14137
  }
14142
14138
  },
14139
+ {
14140
+ "id": "GeckoAndroidSpecificProperties",
14141
+ "type": "object",
14142
+ "properties": {
14143
+ "strict_min_version": {
14144
+ "type": "string",
14145
+ "optional": true
14146
+ },
14147
+ "strict_max_version": {
14148
+ "type": "string",
14149
+ "optional": true
14150
+ }
14151
+ },
14152
+ "additionalProperties": {
14153
+ "type": "any"
14154
+ }
14155
+ },
14156
+ {
14157
+ "id": "DeprecatedApplications",
14158
+ "type": "object",
14159
+ "properties": {
14160
+ "gecko": {
14161
+ "$ref": "FirefoxSpecificProperties",
14162
+ "optional": true
14163
+ },
14164
+ "gecko_android": {
14165
+ "$ref": "GeckoAndroidSpecificProperties",
14166
+ "optional": true,
14167
+ "unsupported": true
14168
+ }
14169
+ },
14170
+ "additionalProperties": {
14171
+ "type": "any"
14172
+ }
14173
+ },
14143
14174
  {
14144
14175
  "id": "BrowserSpecificSettings",
14145
14176
  "type": "object",
@@ -14147,6 +14178,10 @@
14147
14178
  "gecko": {
14148
14179
  "$ref": "FirefoxSpecificProperties",
14149
14180
  "optional": true
14181
+ },
14182
+ "gecko_android": {
14183
+ "$ref": "GeckoAndroidSpecificProperties",
14184
+ "optional": true
14150
14185
  }
14151
14186
  },
14152
14187
  "additionalProperties": {