webext-schema 5.6.1 → 6.0.0
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.
- package/modules/browser.js +5 -5
- package/modules/common.js +7 -7
- package/modules/schema.js +3 -3
- package/modules/update.js +0 -4
- package/package.json +14 -15
- package/schemas/beta/webext.json +32 -160
- package/schemas/central/webext.json +29 -203
- package/schemas/mail/mailext.json +14 -8
- package/types/modules/browser.d.ts +5 -5
- package/types/modules/common.d.ts +5 -5
- package/schemas/release/webext.json +0 -22485
|
@@ -6447,6 +6447,12 @@
|
|
|
6447
6447
|
],
|
|
6448
6448
|
"description": "The tab's new favicon URL. This property is only present if the extension's manifest includes the <code>\"tabs\"</code> permission."
|
|
6449
6449
|
},
|
|
6450
|
+
"groupId": {
|
|
6451
|
+
"type": "integer",
|
|
6452
|
+
"optional": true,
|
|
6453
|
+
"minimum": -1,
|
|
6454
|
+
"description": "The tab's new group ID. $(ref:tabGroups.TAB_GROUP_ID_NONE) (-1) if the tab no longer belongs to a tab group."
|
|
6455
|
+
},
|
|
6450
6456
|
"hidden": {
|
|
6451
6457
|
"type": "boolean",
|
|
6452
6458
|
"optional": true,
|
|
@@ -9116,6 +9122,11 @@
|
|
|
9116
9122
|
"optional": true,
|
|
9117
9123
|
"description": "The JavaScript world for a script to execute within. Defaults to \"ISOLATED\"."
|
|
9118
9124
|
},
|
|
9125
|
+
"cssOrigin": {
|
|
9126
|
+
"$ref": "extensionTypes.CSSOrigin",
|
|
9127
|
+
"optional": true,
|
|
9128
|
+
"description": "The css origin of the stylesheet to inject. Defaults to \"author\"."
|
|
9129
|
+
},
|
|
9119
9130
|
"cookieStoreId": {
|
|
9120
9131
|
"choices": [
|
|
9121
9132
|
{
|
|
@@ -12564,7 +12575,8 @@
|
|
|
12564
12575
|
"user",
|
|
12565
12576
|
"author"
|
|
12566
12577
|
],
|
|
12567
|
-
"description": "The origin of the CSS to inject, this affects the cascading order (priority) of the stylesheet."
|
|
12578
|
+
"description": "The origin of the CSS to inject, this affects the cascading order (priority) of the stylesheet.",
|
|
12579
|
+
"preprocess": "stringToLowerCase"
|
|
12568
12580
|
},
|
|
12569
12581
|
{
|
|
12570
12582
|
"id": "InjectDetails",
|
|
@@ -12606,6 +12618,7 @@
|
|
|
12606
12618
|
"cssOrigin": {
|
|
12607
12619
|
"$ref": "CSSOrigin",
|
|
12608
12620
|
"optional": true,
|
|
12621
|
+
"default": "author",
|
|
12609
12622
|
"description": "The css origin of the stylesheet to inject. Defaults to \"author\"."
|
|
12610
12623
|
}
|
|
12611
12624
|
}
|
|
@@ -13503,7 +13516,7 @@
|
|
|
13503
13516
|
},
|
|
13504
13517
|
{
|
|
13505
13518
|
"id": "ExtensionInstallType",
|
|
13506
|
-
"description": "How the extension was installed
|
|
13519
|
+
"description": "How the extension was installed.<dl><dt>development</dt><dd>The extension was loaded unpacked in developer mode,</dd><dt>normal</dt><dd>The extension was installed normally via an .xpi file</dd><dt>sideload</dt><dd>The extension was installed by other software on the machine</dd><dt>admin</dt><dd>The extension was installed by policy</dd><dt>other</dt><dd>The extension was installed by other means.</dd></dl>",
|
|
13507
13520
|
"type": "string",
|
|
13508
13521
|
"enum": [
|
|
13509
13522
|
"development",
|
|
@@ -14698,6 +14711,11 @@
|
|
|
14698
14711
|
"$ref": "ExtensionURL"
|
|
14699
14712
|
}
|
|
14700
14713
|
},
|
|
14714
|
+
"css_origin": {
|
|
14715
|
+
"$ref": "extensionTypes.CSSOrigin",
|
|
14716
|
+
"default": "author",
|
|
14717
|
+
"optional": true
|
|
14718
|
+
},
|
|
14701
14719
|
"js": {
|
|
14702
14720
|
"type": "array",
|
|
14703
14721
|
"optional": true,
|
|
@@ -16600,6 +16618,7 @@
|
|
|
16600
16618
|
"aarch64",
|
|
16601
16619
|
"arm",
|
|
16602
16620
|
"ppc64",
|
|
16621
|
+
"riscv64",
|
|
16603
16622
|
"s390x",
|
|
16604
16623
|
"sparc64",
|
|
16605
16624
|
"x86-32",
|
|
@@ -16976,7 +16995,7 @@
|
|
|
16976
16995
|
],
|
|
16977
16996
|
"returns": {
|
|
16978
16997
|
"$ref": "Port",
|
|
16979
|
-
"description": "Port through which messages can be sent and received. The port's $(ref:runtime.Port
|
|
16998
|
+
"description": "Port through which messages can be sent and received. The port's $(ref:runtime.Port.onDisconnect) event is fired if the extension/app does not exist. "
|
|
16980
16999
|
}
|
|
16981
17000
|
},
|
|
16982
17001
|
{
|
|
@@ -17632,6 +17651,10 @@
|
|
|
17632
17651
|
"items": {
|
|
17633
17652
|
"$ref": "manifest.ExtensionURL"
|
|
17634
17653
|
}
|
|
17654
|
+
},
|
|
17655
|
+
"cssOrigin": {
|
|
17656
|
+
"$ref": "extensionTypes.CSSOrigin",
|
|
17657
|
+
"optional": true
|
|
17635
17658
|
}
|
|
17636
17659
|
}
|
|
17637
17660
|
}
|
|
@@ -17840,203 +17863,6 @@
|
|
|
17840
17863
|
{
|
|
17841
17864
|
"id": "StorageArea",
|
|
17842
17865
|
"type": "object",
|
|
17843
|
-
"functions": [
|
|
17844
|
-
{
|
|
17845
|
-
"name": "get",
|
|
17846
|
-
"type": "function",
|
|
17847
|
-
"description": "Gets one or more items from storage.",
|
|
17848
|
-
"async": "callback",
|
|
17849
|
-
"parameters": [
|
|
17850
|
-
{
|
|
17851
|
-
"name": "keys",
|
|
17852
|
-
"choices": [
|
|
17853
|
-
{
|
|
17854
|
-
"type": "string"
|
|
17855
|
-
},
|
|
17856
|
-
{
|
|
17857
|
-
"type": "array",
|
|
17858
|
-
"items": {
|
|
17859
|
-
"type": "string"
|
|
17860
|
-
}
|
|
17861
|
-
},
|
|
17862
|
-
{
|
|
17863
|
-
"type": "object",
|
|
17864
|
-
"description": "Storage items to return in the callback, where the values are replaced with those from storage if they exist.",
|
|
17865
|
-
"additionalProperties": {
|
|
17866
|
-
"type": "any"
|
|
17867
|
-
}
|
|
17868
|
-
}
|
|
17869
|
-
],
|
|
17870
|
-
"description": "A single key to get, list of keys to get, or a dictionary specifying default values (see description of the object). An empty list or object will return an empty result object. Pass in <code>null</code> to get the entire contents of storage.",
|
|
17871
|
-
"optional": true
|
|
17872
|
-
},
|
|
17873
|
-
{
|
|
17874
|
-
"name": "callback",
|
|
17875
|
-
"type": "function",
|
|
17876
|
-
"description": "Callback with storage items, or on failure (in which case $(ref:runtime.lastError) will be set).",
|
|
17877
|
-
"parameters": [
|
|
17878
|
-
{
|
|
17879
|
-
"name": "items",
|
|
17880
|
-
"type": "object",
|
|
17881
|
-
"additionalProperties": {
|
|
17882
|
-
"type": "any"
|
|
17883
|
-
},
|
|
17884
|
-
"description": "Object with items in their key-value mappings."
|
|
17885
|
-
}
|
|
17886
|
-
]
|
|
17887
|
-
}
|
|
17888
|
-
]
|
|
17889
|
-
},
|
|
17890
|
-
{
|
|
17891
|
-
"name": "getBytesInUse",
|
|
17892
|
-
"unsupported": true,
|
|
17893
|
-
"type": "function",
|
|
17894
|
-
"description": "Gets the amount of space (in bytes) being used by one or more items.",
|
|
17895
|
-
"async": "callback",
|
|
17896
|
-
"parameters": [
|
|
17897
|
-
{
|
|
17898
|
-
"name": "keys",
|
|
17899
|
-
"choices": [
|
|
17900
|
-
{
|
|
17901
|
-
"type": "string"
|
|
17902
|
-
},
|
|
17903
|
-
{
|
|
17904
|
-
"type": "array",
|
|
17905
|
-
"items": {
|
|
17906
|
-
"type": "string"
|
|
17907
|
-
}
|
|
17908
|
-
}
|
|
17909
|
-
],
|
|
17910
|
-
"description": "A single key or list of keys to get the total usage for. An empty list will return 0. Pass in <code>null</code> to get the total usage of all of storage.",
|
|
17911
|
-
"optional": true
|
|
17912
|
-
},
|
|
17913
|
-
{
|
|
17914
|
-
"name": "callback",
|
|
17915
|
-
"type": "function",
|
|
17916
|
-
"description": "Callback with the amount of space being used by storage, or on failure (in which case $(ref:runtime.lastError) will be set).",
|
|
17917
|
-
"parameters": [
|
|
17918
|
-
{
|
|
17919
|
-
"name": "bytesInUse",
|
|
17920
|
-
"type": "integer",
|
|
17921
|
-
"description": "Amount of space being used in storage, in bytes."
|
|
17922
|
-
}
|
|
17923
|
-
]
|
|
17924
|
-
}
|
|
17925
|
-
]
|
|
17926
|
-
},
|
|
17927
|
-
{
|
|
17928
|
-
"name": "getKeys",
|
|
17929
|
-
"type": "function",
|
|
17930
|
-
"description": "Gets the keys of all items in storage.",
|
|
17931
|
-
"async": "callback",
|
|
17932
|
-
"parameters": [
|
|
17933
|
-
{
|
|
17934
|
-
"name": "callback",
|
|
17935
|
-
"type": "function",
|
|
17936
|
-
"description": "Callback with the keys of all items in storage, or on failure (in which case $(ref:runtime.lastError) will be set).",
|
|
17937
|
-
"parameters": [
|
|
17938
|
-
{
|
|
17939
|
-
"name": "keys",
|
|
17940
|
-
"type": "array",
|
|
17941
|
-
"items": {
|
|
17942
|
-
"type": "string"
|
|
17943
|
-
},
|
|
17944
|
-
"description": "The keys of all items in storage."
|
|
17945
|
-
}
|
|
17946
|
-
]
|
|
17947
|
-
}
|
|
17948
|
-
]
|
|
17949
|
-
},
|
|
17950
|
-
{
|
|
17951
|
-
"name": "set",
|
|
17952
|
-
"type": "function",
|
|
17953
|
-
"description": "Sets multiple items.",
|
|
17954
|
-
"async": "callback",
|
|
17955
|
-
"parameters": [
|
|
17956
|
-
{
|
|
17957
|
-
"name": "items",
|
|
17958
|
-
"type": "object",
|
|
17959
|
-
"additionalProperties": {
|
|
17960
|
-
"type": "any"
|
|
17961
|
-
},
|
|
17962
|
-
"description": "<p>An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.</p><p>Primitive values such as numbers will serialize as expected. Values with a <code>typeof</code> <code>\"object\"</code> and <code>\"function\"</code> will typically serialize to <code>{}</code>, with the exception of <code>Array</code> (serializes as expected), <code>Date</code>, and <code>Regex</code> (serialize using their <code>String</code> representation).</p>"
|
|
17963
|
-
},
|
|
17964
|
-
{
|
|
17965
|
-
"name": "callback",
|
|
17966
|
-
"type": "function",
|
|
17967
|
-
"description": "Callback on success, or on failure (in which case $(ref:runtime.lastError) will be set).",
|
|
17968
|
-
"parameters": [],
|
|
17969
|
-
"optional": true
|
|
17970
|
-
}
|
|
17971
|
-
]
|
|
17972
|
-
},
|
|
17973
|
-
{
|
|
17974
|
-
"name": "remove",
|
|
17975
|
-
"type": "function",
|
|
17976
|
-
"description": "Removes one or more items from storage.",
|
|
17977
|
-
"async": "callback",
|
|
17978
|
-
"parameters": [
|
|
17979
|
-
{
|
|
17980
|
-
"name": "keys",
|
|
17981
|
-
"choices": [
|
|
17982
|
-
{
|
|
17983
|
-
"type": "string"
|
|
17984
|
-
},
|
|
17985
|
-
{
|
|
17986
|
-
"type": "array",
|
|
17987
|
-
"items": {
|
|
17988
|
-
"type": "string"
|
|
17989
|
-
}
|
|
17990
|
-
}
|
|
17991
|
-
],
|
|
17992
|
-
"description": "A single key or a list of keys for items to remove."
|
|
17993
|
-
},
|
|
17994
|
-
{
|
|
17995
|
-
"name": "callback",
|
|
17996
|
-
"type": "function",
|
|
17997
|
-
"description": "Callback on success, or on failure (in which case $(ref:runtime.lastError) will be set).",
|
|
17998
|
-
"parameters": [],
|
|
17999
|
-
"optional": true
|
|
18000
|
-
}
|
|
18001
|
-
]
|
|
18002
|
-
},
|
|
18003
|
-
{
|
|
18004
|
-
"name": "clear",
|
|
18005
|
-
"type": "function",
|
|
18006
|
-
"description": "Removes all items from storage.",
|
|
18007
|
-
"async": "callback",
|
|
18008
|
-
"parameters": [
|
|
18009
|
-
{
|
|
18010
|
-
"name": "callback",
|
|
18011
|
-
"type": "function",
|
|
18012
|
-
"description": "Callback on success, or on failure (in which case $(ref:runtime.lastError) will be set).",
|
|
18013
|
-
"parameters": [],
|
|
18014
|
-
"optional": true
|
|
18015
|
-
}
|
|
18016
|
-
]
|
|
18017
|
-
}
|
|
18018
|
-
],
|
|
18019
|
-
"events": [
|
|
18020
|
-
{
|
|
18021
|
-
"name": "onChanged",
|
|
18022
|
-
"type": "function",
|
|
18023
|
-
"description": "Fired when one or more items change.",
|
|
18024
|
-
"parameters": [
|
|
18025
|
-
{
|
|
18026
|
-
"name": "changes",
|
|
18027
|
-
"type": "object",
|
|
18028
|
-
"additionalProperties": {
|
|
18029
|
-
"$ref": "StorageChange"
|
|
18030
|
-
},
|
|
18031
|
-
"description": "Object mapping each key that changed to its corresponding $(ref:storage.StorageChange) for that item."
|
|
18032
|
-
}
|
|
18033
|
-
]
|
|
18034
|
-
}
|
|
18035
|
-
]
|
|
18036
|
-
},
|
|
18037
|
-
{
|
|
18038
|
-
"id": "StorageAreaWithUsage",
|
|
18039
|
-
"type": "object",
|
|
18040
17866
|
"functions": [
|
|
18041
17867
|
{
|
|
18042
17868
|
"name": "get",
|
|
@@ -18248,14 +18074,14 @@
|
|
|
18248
18074
|
{
|
|
18249
18075
|
"name": "areaName",
|
|
18250
18076
|
"type": "string",
|
|
18251
|
-
"description": "The name of the storage area (<code>\"sync\"</code>, <code>\"local\"</code> or <code>\"managed\"</code>) the changes are for."
|
|
18077
|
+
"description": "The name of the storage area (<code>\"session\"</code>, <code>\"sync\"</code>, <code>\"local\"</code> or <code>\"managed\"</code>) the changes are for."
|
|
18252
18078
|
}
|
|
18253
18079
|
]
|
|
18254
18080
|
}
|
|
18255
18081
|
],
|
|
18256
18082
|
"properties": {
|
|
18257
18083
|
"sync": {
|
|
18258
|
-
"$ref": "
|
|
18084
|
+
"$ref": "StorageArea",
|
|
18259
18085
|
"description": "Items in the <code>sync</code> storage area are synced by the browser.",
|
|
18260
18086
|
"properties": {
|
|
18261
18087
|
"QUOTA_BYTES": {
|
|
@@ -18309,7 +18135,7 @@
|
|
|
18309
18135
|
"allowedContexts": [
|
|
18310
18136
|
"devtools"
|
|
18311
18137
|
],
|
|
18312
|
-
"$ref": "
|
|
18138
|
+
"$ref": "StorageArea",
|
|
18313
18139
|
"description": "Items in the <code>session</code> storage area are kept in memory, and only until the either browser or extension is closed or reloaded.",
|
|
18314
18140
|
"properties": {
|
|
18315
18141
|
"QUOTA_BYTES": {
|
|
@@ -381,6 +381,11 @@
|
|
|
381
381
|
"optional": true,
|
|
382
382
|
"description": "The JavaScript world for a script to execute within. Defaults to \"ISOLATED\"."
|
|
383
383
|
},
|
|
384
|
+
"cssOrigin": {
|
|
385
|
+
"$ref": "extensionTypes.CSSOrigin",
|
|
386
|
+
"optional": true,
|
|
387
|
+
"description": "The css origin of the stylesheet to inject. Defaults to \"author\"."
|
|
388
|
+
},
|
|
384
389
|
"cookieStoreId": {
|
|
385
390
|
"choices": [
|
|
386
391
|
{
|
|
@@ -1032,7 +1037,7 @@
|
|
|
1032
1037
|
},
|
|
1033
1038
|
{
|
|
1034
1039
|
"id": "ExtensionInstallType",
|
|
1035
|
-
"description": "How the extension was installed
|
|
1040
|
+
"description": "How the extension was installed.<dl><dt>development</dt><dd>The extension was loaded unpacked in developer mode,</dd><dt>normal</dt><dd>The extension was installed normally via an .xpi file</dd><dt>sideload</dt><dd>The extension was installed by other software on the machine</dd><dt>admin</dt><dd>The extension was installed by policy</dd><dt>other</dt><dd>The extension was installed by other means.</dd></dl>",
|
|
1036
1041
|
"type": "string",
|
|
1037
1042
|
"enum": [
|
|
1038
1043
|
"development",
|
|
@@ -1811,6 +1816,7 @@
|
|
|
1811
1816
|
"aarch64",
|
|
1812
1817
|
"arm",
|
|
1813
1818
|
"ppc64",
|
|
1819
|
+
"riscv64",
|
|
1814
1820
|
"s390x",
|
|
1815
1821
|
"sparc64",
|
|
1816
1822
|
"x86-32",
|
|
@@ -2187,7 +2193,7 @@
|
|
|
2187
2193
|
],
|
|
2188
2194
|
"returns": {
|
|
2189
2195
|
"$ref": "Port",
|
|
2190
|
-
"description": "Port through which messages can be sent and received. The port's $(ref:runtime.Port
|
|
2196
|
+
"description": "Port through which messages can be sent and received. The port's $(ref:runtime.Port.onDisconnect) event is fired if the extension/app does not exist. "
|
|
2191
2197
|
}
|
|
2192
2198
|
},
|
|
2193
2199
|
{
|
|
@@ -6509,7 +6515,7 @@
|
|
|
6509
6515
|
},
|
|
6510
6516
|
{
|
|
6511
6517
|
"namespace": "compose",
|
|
6512
|
-
"
|
|
6518
|
+
"description": "The compose API allows to interact with the message composition window.",
|
|
6513
6519
|
"types": [
|
|
6514
6520
|
{
|
|
6515
6521
|
"id": "ComposeRecipient",
|
|
@@ -11257,7 +11263,7 @@
|
|
|
11257
11263
|
"selectedMessages": {
|
|
11258
11264
|
"$ref": "messages.MessageList",
|
|
11259
11265
|
"optional": true,
|
|
11260
|
-
"description": "The selected message(s) in the message list (a.k.a. the thread pane). Only available for the <var>message_list</var> context. The <permission>messagesRead</permission> permission is required. The returned selection includes the messages which would be affected by a context action through
|
|
11266
|
+
"description": "The selected message(s) in the message list (a.k.a. the thread pane). Only available for the <var>message_list</var> context. The <permission>messagesRead</permission> permission is required. The returned selection includes the messages which would be affected by a context action through Thunderbird's UI, which may not be the currently selected messages. For example, if the user has multiple messages selected and opens the context menu for a message outside that selection, only the message for which the context menu was opened, is returned."
|
|
11261
11267
|
},
|
|
11262
11268
|
"displayedFolder": {
|
|
11263
11269
|
"$ref": "folders.MailFolder",
|
|
@@ -11277,7 +11283,7 @@
|
|
|
11277
11283
|
"$ref": "folders.MailFolder"
|
|
11278
11284
|
},
|
|
11279
11285
|
"optional": true,
|
|
11280
|
-
"description": "The selected folders in the folder pane. Only available for the <var>folder_pane</var> context. The <permission>accountsRead</permission> permission is required. The returned selection includes the folders which would be affected by a context action through
|
|
11286
|
+
"description": "The selected folders in the folder pane. Only available for the <var>folder_pane</var> context. The <permission>accountsRead</permission> permission is required. The returned selection includes the folders which would be affected by a context action through Thunderbird's UI, which may not be the currently selected folders. For example, if the user has multiple folders selected and opens the context menu for a folder outside that selection, only the folder for which the context menu was opened, is returned."
|
|
11281
11287
|
},
|
|
11282
11288
|
"selectedAccount": {
|
|
11283
11289
|
"$ref": "accounts.MailAccount",
|
|
@@ -11431,7 +11437,7 @@
|
|
|
11431
11437
|
"selectedMessages": {
|
|
11432
11438
|
"$ref": "messages.MessageList",
|
|
11433
11439
|
"optional": true,
|
|
11434
|
-
"description": "The selected message(s) in the message list (a.k.a. the thread pane). Only available for the <var>message_list</var> context. The <permission>messagesRead</permission> permission is required. The returned selection includes the messages which would be affected by a context action through
|
|
11440
|
+
"description": "The selected message(s) in the message list (a.k.a. the thread pane). Only available for the <var>message_list</var> context. The <permission>messagesRead</permission> permission is required. The returned selection includes the messages which would be affected by a context action through Thunderbird's UI, which may not be the currently selected messages. For example, if the user has multiple messages selected and opens the context menu for a message outside that selection, only the message for which the context menu was opened, is returned."
|
|
11435
11441
|
},
|
|
11436
11442
|
"displayedFolder": {
|
|
11437
11443
|
"$ref": "folders.MailFolder",
|
|
@@ -11451,7 +11457,7 @@
|
|
|
11451
11457
|
"$ref": "folders.MailFolder"
|
|
11452
11458
|
},
|
|
11453
11459
|
"optional": true,
|
|
11454
|
-
"description": "The selected folders in the folder pane. Only available for the <var>folder_pane</var> context. The <permission>accountsRead</permission> permission is required. The returned selection includes the folders which would be affected by a context action through
|
|
11460
|
+
"description": "The selected folders in the folder pane. Only available for the <var>folder_pane</var> context. The <permission>accountsRead</permission> permission is required. The returned selection includes the folders which would be affected by a context action through Thunderbird's UI, which may not be the currently selected folders. For example, if the user has multiple folders selected and opens the context menu for a folder outside that selection, only the folder for which the context menu was opened, is returned."
|
|
11455
11461
|
},
|
|
11456
11462
|
"selectedAccount": {
|
|
11457
11463
|
"$ref": "accounts.MailAccount",
|
|
@@ -14829,7 +14835,7 @@
|
|
|
14829
14835
|
"type": "boolean",
|
|
14830
14836
|
"name": "preserveGroups",
|
|
14831
14837
|
"optional": true,
|
|
14832
|
-
"description": "Keep grouped
|
|
14838
|
+
"description": "Keep grouped hierarchies. Groups may be specified in a mailbox string as follows: <var>GroupName : user1 <user1@example.com>, user2@example,com ;</var>."
|
|
14833
14839
|
},
|
|
14834
14840
|
{
|
|
14835
14841
|
"type": "function",
|
|
@@ -20,7 +20,7 @@ export function getManifestIcons(): object | string;
|
|
|
20
20
|
export function getManifestVersion(): number;
|
|
21
21
|
export function getOs(): Promise<string>;
|
|
22
22
|
export function makeConnection(id?: number | string, info?: object | boolean): Promise<object>;
|
|
23
|
-
export function sendMessage(id: number | string, msg: any, opt: object): Promise<object>;
|
|
23
|
+
export function sendMessage(id: number | string, msg: string | any[] | object, opt: object): Promise<object>;
|
|
24
24
|
export function isScriptingAvailable(): Promise<boolean>;
|
|
25
25
|
export function executeScriptToTab(opt?: object): Promise<Array<object> | null>;
|
|
26
26
|
export function searchInNewTab(text: string, opt: object): Promise<object>;
|
|
@@ -31,15 +31,15 @@ export function restoreSession(sessionId: string): Promise<object>;
|
|
|
31
31
|
export function setSessionWindowValue(key: string, value: string | object, windowId?: number): Promise<void>;
|
|
32
32
|
export function clearStorage(area?: string): Promise<void>;
|
|
33
33
|
export function getAllStorage(area?: string): Promise<object>;
|
|
34
|
-
export function getStorage(key: any, area?: string): Promise<object>;
|
|
35
|
-
export function removeStorage(key: any, area?: string): Promise<void>;
|
|
34
|
+
export function getStorage(key: string | any[] | object, area?: string): Promise<object>;
|
|
35
|
+
export function removeStorage(key: string | any[] | object, area?: string): Promise<void>;
|
|
36
36
|
export function setStorage(obj: object, area?: string): Promise<void>;
|
|
37
37
|
export function createTab(opt?: object): Promise<object>;
|
|
38
38
|
export function duplicateTab(tabId: number, opt: object): Promise<object>;
|
|
39
39
|
export function queryTabs(opt: object): Promise<Array<object>>;
|
|
40
40
|
export function execScriptToTab(tabId: number | object, opt?: object): Promise<(any[] | boolean) | null>;
|
|
41
41
|
export function execScriptToTabs(opt?: object): Promise<any[]>;
|
|
42
|
-
export function execScriptsToTabInOrder(tabId: number | any[], opts?: any[]): Promise<any>;
|
|
42
|
+
export function execScriptsToTabInOrder(tabId: number | any[], opts?: any[]): Promise<(any[] | boolean) | null>;
|
|
43
43
|
export function getActiveTab(windowId?: number): Promise<object>;
|
|
44
44
|
export function getActiveTabId(windowId?: number): Promise<number | null>;
|
|
45
45
|
export function getAllTabsInWindow(windowId?: number): Promise<Array<object>>;
|
|
@@ -52,7 +52,7 @@ export function removeTab(arg: number | any[]): Promise<void>;
|
|
|
52
52
|
export function updateTab(tabId: number, opt: object): Promise<object>;
|
|
53
53
|
export function warmupTab(tabId: number): Promise<void>;
|
|
54
54
|
export function captureVisibleTab(windowId: number, opt: object): Promise<string | null>;
|
|
55
|
-
export function isTab(tabId:
|
|
55
|
+
export function isTab(tabId: number): Promise<boolean>;
|
|
56
56
|
export function getCurrentTheme(windowId?: number): Promise<object>;
|
|
57
57
|
export function createNewWindow(opt: object): Promise<object>;
|
|
58
58
|
export function getAllNormalWindows(populate?: boolean): Promise<Array<object>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function throwErr(e: object): never;
|
|
2
2
|
export function logErr(e: object): boolean;
|
|
3
|
-
export function logWarn(msg:
|
|
4
|
-
export function logMsg(msg:
|
|
5
|
-
export function getType(o:
|
|
6
|
-
export function isObjectNotEmpty(o:
|
|
7
|
-
export function isString(o:
|
|
3
|
+
export function logWarn(msg: string | object): boolean;
|
|
4
|
+
export function logMsg(msg: string | object): string | object;
|
|
5
|
+
export function getType(o: object): string;
|
|
6
|
+
export function isObjectNotEmpty(o: object): boolean;
|
|
7
|
+
export function isString(o: object): boolean;
|