webext-schema 5.4.3 → 5.5.1

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.
@@ -1352,7 +1352,14 @@
1352
1352
  "permissions": {
1353
1353
  "type": "array",
1354
1354
  "items": {
1355
- "$ref": "manifest.OptionalPermission"
1355
+ "choices": [
1356
+ {
1357
+ "$ref": "manifest.OptionalPermission"
1358
+ },
1359
+ {
1360
+ "$ref": "manifest.OptionalOnlyPermission"
1361
+ }
1362
+ ]
1356
1363
  },
1357
1364
  "optional": true,
1358
1365
  "default": []
@@ -1374,7 +1381,14 @@
1374
1381
  "permissions": {
1375
1382
  "type": "array",
1376
1383
  "items": {
1377
- "$ref": "manifest.Permission"
1384
+ "choices": [
1385
+ {
1386
+ "$ref": "manifest.Permission"
1387
+ },
1388
+ {
1389
+ "$ref": "manifest.OptionalOnlyPermission"
1390
+ }
1391
+ ]
1378
1392
  },
1379
1393
  "optional": true,
1380
1394
  "default": []
@@ -1720,6 +1734,11 @@
1720
1734
  "type": "string",
1721
1735
  "optional": true,
1722
1736
  "description": "The TLS channel ID of the page or frame that opened the connection, if requested by the extension or app, and if available."
1737
+ },
1738
+ "userScriptWorldId": {
1739
+ "type": "string",
1740
+ "optional": true,
1741
+ "description": "The worldId of the USER_SCRIPT world that sent the message. Only present on onUserScriptMessage and onUserScriptConnect (in port.sender) events."
1723
1742
  }
1724
1743
  }
1725
1744
  },
@@ -2388,6 +2407,20 @@
2388
2407
  }
2389
2408
  ]
2390
2409
  },
2410
+ {
2411
+ "name": "onUserScriptConnect",
2412
+ "type": "function",
2413
+ "description": "Fired when a connection is made from a USER_SCRIPT world registered through the userScripts API.",
2414
+ "permissions": [
2415
+ "userScripts"
2416
+ ],
2417
+ "parameters": [
2418
+ {
2419
+ "$ref": "Port",
2420
+ "name": "port"
2421
+ }
2422
+ ]
2423
+ },
2391
2424
  {
2392
2425
  "name": "onConnectExternal",
2393
2426
  "type": "function",
@@ -2457,6 +2490,36 @@
2457
2490
  "description": "Return true from the event listener if you wish to call <code>sendResponse</code> after the event listener returns."
2458
2491
  }
2459
2492
  },
2493
+ {
2494
+ "name": "onUserScriptMessage",
2495
+ "type": "function",
2496
+ "description": "Fired when a message is sent from a USER_SCRIPT world registered through the userScripts API.",
2497
+ "permissions": [
2498
+ "userScripts"
2499
+ ],
2500
+ "parameters": [
2501
+ {
2502
+ "name": "message",
2503
+ "type": "any",
2504
+ "optional": true,
2505
+ "description": "The message sent by the calling script."
2506
+ },
2507
+ {
2508
+ "name": "sender",
2509
+ "$ref": "MessageSender"
2510
+ },
2511
+ {
2512
+ "name": "sendResponse",
2513
+ "type": "function",
2514
+ "description": "Function to call (at most once) when you have a response. The argument should be any JSON-ifiable object. If you have more than one <code>onMessage</code> listener in the same document, then only one may send a response. This function becomes invalid when the event listener returns, unless you return true from the event listener to indicate you wish to send a response asynchronously (this will keep the message channel open to the other end until <code>sendResponse</code> is called)."
2515
+ }
2516
+ ],
2517
+ "returns": {
2518
+ "type": "boolean",
2519
+ "optional": true,
2520
+ "description": "Return true from the event listener if you wish to call <code>sendResponse</code> after the event listener returns."
2521
+ }
2522
+ },
2460
2523
  {
2461
2524
  "name": "onRestartRequired",
2462
2525
  "unsupported": true,
@@ -5623,9 +5686,18 @@
5623
5686
  "preprocess": "localize"
5624
5687
  },
5625
5688
  "favicon_url": {
5626
- "type": "string",
5689
+ "choices": [
5690
+ {
5691
+ "type": "string",
5692
+ "format": "relativeUrl",
5693
+ "max_manifest_version": 2
5694
+ },
5695
+ {
5696
+ "type": "string",
5697
+ "format": "strictRelativeUrl"
5698
+ }
5699
+ ],
5627
5700
  "optional": true,
5628
- "format": "url",
5629
5701
  "preprocess": "localize"
5630
5702
  },
5631
5703
  "suggest_url": {
@@ -8631,7 +8703,7 @@
8631
8703
  "STORAGE",
8632
8704
  "MESSAGE"
8633
8705
  ],
8634
- "description": "The type of the quota as defined by RFC2087. A <var>STORAGE</var> quota is constraining the available storage in bytes, a <var>MESSAGE</var> quota is constraining the number of storable messages."
8706
+ "description": "The type of the quota as defined by RFC 2087. A <var>STORAGE</var> quota is constraining the available storage in bytes, a <var>MESSAGE</var> quota is constraining the number of storable messages."
8635
8707
  },
8636
8708
  "limit": {
8637
8709
  "type": "integer",
@@ -10611,7 +10683,7 @@
10611
10683
  {
10612
10684
  "name": "getSelectedFolders",
10613
10685
  "type": "function",
10614
- "description": "Lists the selected folders in the folder pane.",
10686
+ "description": "Lists the selected folders in the folder pane. Does not include folders which are context-clicked, but not selected. The context-clicked folders are always returned by the $(ref:menus.onClicked) event of the menus API.",
10615
10687
  "permissions": [
10616
10688
  "accountsRead"
10617
10689
  ],
@@ -10642,7 +10714,7 @@
10642
10714
  {
10643
10715
  "name": "getSelectedMessages",
10644
10716
  "type": "function",
10645
- "description": "Lists the selected messages in the current folder.",
10717
+ "description": "Lists the selected messages in the current folder. Includes messages in collapsed threads. Does not include messages which are context-clicked, but not selected. The context-clicked messages are always returned by the $(ref:menus.onClicked) event of the menus API.",
10646
10718
  "permissions": [
10647
10719
  "messagesRead"
10648
10720
  ],
@@ -10670,7 +10742,7 @@
10670
10742
  {
10671
10743
  "name": "setSelectedMessages",
10672
10744
  "type": "function",
10673
- "description": "Selects none, one or multiple messages.",
10745
+ "description": "Selects none, one or multiple messages. Opens collapsed threads to show the selection, if required.",
10674
10746
  "permissions": [
10675
10747
  "messagesRead",
10676
10748
  "accountsRead"
@@ -12886,7 +12958,7 @@
12886
12958
  "properties": {
12887
12959
  "body": {
12888
12960
  "type": "string",
12889
- "description": "The content of the part.",
12961
+ "description": "The quoted-printable or base64 decoded content of the part. Only present for parts with a content type of <var>text/*</var> and only if requested, see the <var>decodeContent</var> option of $(ref:messages.getFull). Use $(ref:messages.getAttachmentFile) to retrieve the content of parts which have a content type other than <var>text/*</var>.",
12890
12962
  "optional": true
12891
12963
  },
12892
12964
  "contentType": {
@@ -12906,7 +12978,7 @@
12906
12978
  },
12907
12979
  "headers": {
12908
12980
  "type": "object",
12909
- "description": "A <em>dictionary object</em> of part headers as <em>key-value</em> pairs, with the header name as <em>key</em>, and an array of headers as <em>value</em>.",
12981
+ "description": "A <em>dictionary object</em> of RFC 2047 decoded part headers as <em>key-value</em> pairs, with the header name as <em>key</em>, and an array of headers as <em>value</em>. Only present if requested, see the <var>decodeHeaders</var> option of $(ref:messages.getFull).",
12910
12982
  "optional": true,
12911
12983
  "additionalProperties": {
12912
12984
  "type": "array",
@@ -12933,6 +13005,22 @@
12933
13005
  "description": "Any sub-parts of this part.",
12934
13006
  "optional": true
12935
13007
  },
13008
+ "rawBody": {
13009
+ "type": "string",
13010
+ "description": "The raw content of the part. Only present if requested, see the <var>decodeContent</var> option of $(ref:messages.getFull).",
13011
+ "optional": true
13012
+ },
13013
+ "rawHeaders": {
13014
+ "type": "object",
13015
+ "description": "A <em>dictionary object</em> of raw part headers as <em>key-value</em> pairs, with the header name as <em>key</em>, and an array of headers as <em>value</em>. Only present if requested, see the <var>decodeHeaders</var> option of $(ref:messages.getFull).",
13016
+ "optional": true,
13017
+ "additionalProperties": {
13018
+ "type": "array",
13019
+ "items": {
13020
+ "type": "string"
13021
+ }
13022
+ }
13023
+ },
12936
13024
  "size": {
12937
13025
  "type": "integer",
12938
13026
  "optional": true,
@@ -13252,7 +13340,17 @@
13252
13340
  "properties": {
13253
13341
  "decrypt": {
13254
13342
  "type": "boolean",
13255
- "description": "Whether the message should be decrypted. If the message could not be decrypted, its parts are omitted. Defaults to true.",
13343
+ "description": "Whether the message should be decrypted. If the message could not be decrypted, its parts are omitted. Defaults to <var>true</var>.",
13344
+ "optional": true
13345
+ },
13346
+ "decodeHeaders": {
13347
+ "type": "boolean",
13348
+ "description": "Whether to decode RFC 2047 encoded headers of message parts. Defaults to <var>true</var>. **Note:** Automatic decoding of headers containing a list of comma separated mailbox strings can have unwanted side effects. Example: <literalinclude>includes/messages/badHeader.js<lang>JavaScript</lang></literalinclude>",
13349
+ "optional": true
13350
+ },
13351
+ "decodeContent": {
13352
+ "type": "boolean",
13353
+ "description": "Whether to decode quoted-printable or base64 encoded content of message parts. Defaults to <var>true</var>.",
13256
13354
  "optional": true
13257
13355
  }
13258
13356
  },
@@ -13273,12 +13371,20 @@
13273
13371
  {
13274
13372
  "name": "getRaw",
13275
13373
  "type": "function",
13276
- "description": "Returns the unmodified source of a message. Throws if the message could not be read, for example due to network issues.",
13374
+ "description": "Returns the raw content of a message. Throws if the message could not be read, for example due to network issues.",
13277
13375
  "async": "callback",
13278
13376
  "parameters": [
13279
13377
  {
13280
- "name": "messageId",
13281
- "$ref": "messages.MessageId"
13378
+ "name": "message",
13379
+ "description": "Either a $(ref:messages.MessageId) of an existing message, or a $(ref:messages.MessagePart) with raw header and raw content data representing a full RFC 822 message (the provided data will be used as-is without applying any further encoding). See the <var>decodeHeaders</var> and <var>decodeContent</var> options of $(ref:messages.getFull) for further details on how to retrieve a $(ref:messages.MessagePart) with raw values. You can use $(ref:messengerUtilities.decodeMimeHeader) and $(ref:messengerUtilities.encodeMimeHeader) to manipulate a raw MessagePart.",
13380
+ "choices": [
13381
+ {
13382
+ "$ref": "messages.MessageId"
13383
+ },
13384
+ {
13385
+ "$ref": "messages.MessagePart"
13386
+ }
13387
+ ]
13282
13388
  },
13283
13389
  {
13284
13390
  "name": "options",
@@ -13399,7 +13505,7 @@
13399
13505
  {
13400
13506
  "name": "partName",
13401
13507
  "type": "string",
13402
- "pattern": "^\\d+(\\.\\d+)*$"
13508
+ "pattern": "^\\d+(\\.\\d+\\$?)*$"
13403
13509
  },
13404
13510
  {
13405
13511
  "type": "function",
@@ -13829,7 +13935,7 @@
13829
13935
  "name": "import",
13830
13936
  "type": "function",
13831
13937
  "max_manifest_version": 2,
13832
- "description": "Imports a message into a local Thunderbird folder. To import a message into an IMAP folder, add it to a local folder first and then move it to the IMAP folder.",
13938
+ "description": "Imports a message into a folder. Supports local folders, POP and IMAP folders. Throws, if the destination folder already contains a message with the Message-ID of the message being imported.",
13833
13939
  "async": "callback",
13834
13940
  "permissions": [
13835
13941
  "accountsRead",
@@ -13876,7 +13982,7 @@
13876
13982
  "name": "import",
13877
13983
  "type": "function",
13878
13984
  "min_manifest_version": 3,
13879
- "description": "Imports a message into a local Thunderbird folder. To import a message into an IMAP folder, add it to a local folder first and then move it to the IMAP folder.",
13985
+ "description": "Imports a message into a folder. Supports local folders, POP and IMAP folders. Throws, if the destination folder already contains a message with the Message-ID of the message being imported.",
13880
13986
  "async": "callback",
13881
13987
  "permissions": [
13882
13988
  "accountsRead",
@@ -15841,6 +15947,31 @@
15841
15947
  "description": "The members of the group, if available."
15842
15948
  }
15843
15949
  }
15950
+ },
15951
+ {
15952
+ "id": "MailboxHeaders",
15953
+ "type": "string",
15954
+ "description": "MIME headers, which by default are treated as containing one or more mailbox strings.",
15955
+ "enum": [
15956
+ "bcc",
15957
+ "cc",
15958
+ "from",
15959
+ "reply-to",
15960
+ "resent-bcc",
15961
+ "resent-cc",
15962
+ "resent-from",
15963
+ "resent-reply-to",
15964
+ "resent-sender",
15965
+ "resent-to",
15966
+ "sender",
15967
+ "to",
15968
+ "approved",
15969
+ "disposition-notification-to",
15970
+ "delivered-to",
15971
+ "return-receipt-to",
15972
+ "mail-reply-to",
15973
+ "mail-followup-to"
15974
+ ]
15844
15975
  }
15845
15976
  ],
15846
15977
  "functions": [
@@ -15933,6 +16064,96 @@
15933
16064
  ]
15934
16065
  }
15935
16066
  ]
16067
+ },
16068
+ {
16069
+ "name": "decodeMimeHeader",
16070
+ "type": "function",
16071
+ "description": "Decode the provided header into a readable format according to RFC 2047.",
16072
+ "async": "callback",
16073
+ "parameters": [
16074
+ {
16075
+ "name": "headerName",
16076
+ "type": "string"
16077
+ },
16078
+ {
16079
+ "name": "headerValue",
16080
+ "choices": [
16081
+ {
16082
+ "type": "string"
16083
+ },
16084
+ {
16085
+ "type": "array",
16086
+ "items": {
16087
+ "type": "string"
16088
+ }
16089
+ }
16090
+ ]
16091
+ },
16092
+ {
16093
+ "name": "isMailBoxHeader",
16094
+ "type": "boolean",
16095
+ "optional": true,
16096
+ "description": "Headers containing multiple mailbox strings need special handling. For example the header <var>=?UTF-8?Q?H=C3=B6rst=2C_Kenny?= <K.Hoerst@invalid>, new@thunderbird.bug</var> will be wrongly decoded to <var>Hörst, Kenny <K.Hoerst@invalid>, new@thunderbird.bug</var>, corrupting the structure of the first mailbox string. This option overrides the default behavior of treating the headers defined in $(ref:messengerUtilities.MailboxHeaders) as mailbox headers."
16097
+ },
16098
+ {
16099
+ "type": "function",
16100
+ "name": "callback",
16101
+ "optional": true,
16102
+ "parameters": [
16103
+ {
16104
+ "type": "array",
16105
+ "items": {
16106
+ "type": "string"
16107
+ }
16108
+ }
16109
+ ]
16110
+ }
16111
+ ]
16112
+ },
16113
+ {
16114
+ "name": "encodeMimeHeader",
16115
+ "type": "function",
16116
+ "description": "Encode the provided header according to RFC 2047.",
16117
+ "async": "callback",
16118
+ "parameters": [
16119
+ {
16120
+ "name": "headerName",
16121
+ "type": "string"
16122
+ },
16123
+ {
16124
+ "name": "headerValue",
16125
+ "choices": [
16126
+ {
16127
+ "type": "string"
16128
+ },
16129
+ {
16130
+ "type": "array",
16131
+ "items": {
16132
+ "type": "string"
16133
+ }
16134
+ }
16135
+ ]
16136
+ },
16137
+ {
16138
+ "name": "isMailBoxHeader",
16139
+ "type": "boolean",
16140
+ "optional": true,
16141
+ "description": "Headers containing multiple mailbox strings need special handling. This option overrides the default behavior of treating the headers defined in $(ref:messengerUtilities.MailboxHeaders) as mailbox headers."
16142
+ },
16143
+ {
16144
+ "type": "function",
16145
+ "name": "callback",
16146
+ "optional": true,
16147
+ "parameters": [
16148
+ {
16149
+ "type": "array",
16150
+ "items": {
16151
+ "type": "string"
16152
+ }
16153
+ }
16154
+ ]
16155
+ }
16156
+ ]
15936
16157
  }
15937
16158
  ]
15938
16159
  }
@@ -16260,7 +16481,7 @@
16260
16481
  "allowScriptsToClose": {
16261
16482
  "type": "boolean",
16262
16483
  "optional": true,
16263
- "description": "Allow scripts running inside the window to close the window by calling <code>window.close()</code>."
16484
+ "description": "Allow scripts running inside the window to close the window by calling <code>window.close()</code>. Defaults to <var>true</var> when the given URL points to an extension page (a page included with this extension and loaded with the <var>moz-extension:</var> protocol), defaults to <var>false</var> otherwise."
16264
16485
  },
16265
16486
  "cookieStoreId": {
16266
16487
  "type": "string",
@@ -9085,6 +9085,11 @@
9085
9085
  "type": "string",
9086
9086
  "optional": true,
9087
9087
  "description": "The first-party URL of the cookie, if the cookie is in storage partitioned by the top-level site."
9088
+ },
9089
+ "hasCrossSiteAncestor": {
9090
+ "type": "boolean",
9091
+ "optional": true,
9092
+ "description": "Whether or not the cookie is in a third-party context, respecting ancestor chains."
9088
9093
  }
9089
9094
  }
9090
9095
  },
@@ -12439,7 +12444,8 @@
12439
12444
  "responsiveness",
12440
12445
  "cpufreq",
12441
12446
  "bandwidth",
12442
- "memory"
12447
+ "memory",
12448
+ "tracing"
12443
12449
  ]
12444
12450
  },
12445
12451
  {
@@ -17703,64 +17709,6 @@
17703
17709
  {
17704
17710
  "namespace": "manifest",
17705
17711
  "types": [
17706
- {
17707
- "$extend": "WebExtensionManifest",
17708
- "properties": {
17709
- "telemetry": {
17710
- "type": "object",
17711
- "optional": true,
17712
- "additionalProperties": {
17713
- "$ref": "UnrecognizedProperty"
17714
- },
17715
- "properties": {
17716
- "ping_type": {
17717
- "type": "string"
17718
- },
17719
- "schemaNamespace": {
17720
- "type": "string"
17721
- },
17722
- "public_key": {
17723
- "type": "object",
17724
- "properties": {
17725
- "id": {
17726
- "type": "string"
17727
- },
17728
- "key": {
17729
- "type": "object",
17730
- "properties": {
17731
- "crv": {
17732
- "type": "string",
17733
- "optional": "false"
17734
- },
17735
- "kty": {
17736
- "type": "string",
17737
- "optional": "false"
17738
- },
17739
- "x": {
17740
- "type": "string",
17741
- "optional": "false"
17742
- },
17743
- "y": {
17744
- "type": "string",
17745
- "optional": "false"
17746
- }
17747
- }
17748
- }
17749
- }
17750
- },
17751
- "study_name": {
17752
- "type": "string",
17753
- "optional": true
17754
- },
17755
- "pioneer_id": {
17756
- "type": "boolean",
17757
- "optional": true,
17758
- "default": false
17759
- }
17760
- }
17761
- }
17762
- }
17763
- },
17764
17712
  {
17765
17713
  "$extend": "PermissionPrivileged",
17766
17714
  "choices": [
@@ -17917,39 +17865,6 @@
17917
17865
  }
17918
17866
  ]
17919
17867
  },
17920
- {
17921
- "name": "submitEncryptedPing",
17922
- "type": "function",
17923
- "description": "Submits a custom ping to the Telemetry back-end, with an encrypted payload. Requires a telemetry entry in the manifest to be used.",
17924
- "parameters": [
17925
- {
17926
- "name": "message",
17927
- "type": "object",
17928
- "additionalProperties": {
17929
- "type": "any"
17930
- },
17931
- "description": "The data payload for the ping, which will be encrypted."
17932
- },
17933
- {
17934
- "description": "Options object.",
17935
- "name": "options",
17936
- "type": "object",
17937
- "properties": {
17938
- "schemaName": {
17939
- "type": "string",
17940
- "optional": false,
17941
- "description": "Schema name used for payload."
17942
- },
17943
- "schemaVersion": {
17944
- "type": "integer",
17945
- "optional": false,
17946
- "description": "Schema version used for payload."
17947
- }
17948
- }
17949
- }
17950
- ],
17951
- "async": true
17952
- },
17953
17868
  {
17954
17869
  "name": "canUpload",
17955
17870
  "type": "function",
@@ -18118,6 +18033,7 @@
18118
18033
  },
18119
18034
  {
18120
18035
  "name": "recordEvent",
18036
+ "deprecated": "`recordEvent` is a no-op since Firefox 132 (see bug 1894533)",
18121
18037
  "type": "function",
18122
18038
  "description": "Record an event in Telemetry. Throws when trying to record an unknown event.",
18123
18039
  "async": true,
@@ -18177,6 +18093,7 @@
18177
18093
  },
18178
18094
  {
18179
18095
  "name": "registerEvents",
18096
+ "deprecated": "`registerEvents` is a no-op since Firefox 132 (see bug 1894533)",
18180
18097
  "type": "function",
18181
18098
  "description": "Register new events to record them from addons. See nsITelemetry.idl for more details.",
18182
18099
  "async": true,
@@ -18198,8 +18115,9 @@
18198
18115
  },
18199
18116
  {
18200
18117
  "name": "setEventRecordingEnabled",
18118
+ "deprecated": "`setEventRecordingEnabled` is a no-op since Firefox 133 (see bug 1920562)",
18201
18119
  "type": "function",
18202
- "description": "Enable recording of events in a category. Events default to recording disabled. This allows to toggle recording for all events in the specified category.",
18120
+ "description": "Enable recording of events in a category. Events default to recording enabled. This allows to toggle recording for all events in the specified category.",
18203
18121
  "async": true,
18204
18122
  "parameters": [
18205
18123
  {
package/tsconfig.json CHANGED
@@ -12,5 +12,8 @@
12
12
  "resolveJsonModule": true,
13
13
  "target": "esnext"
14
14
  },
15
- "include": ["index.js", "modules/browser.js"]
15
+ "include": [
16
+ "index.js",
17
+ "modules/browser.js"
18
+ ]
16
19
  }
@@ -1,17 +1,17 @@
1
1
  export function isPermissionGranted(perm: object): Promise<boolean>;
2
2
  export function createBookmark(opt: object): Promise<object>;
3
- export function getBookmarkTreeNode(id?: string | any[]): Promise<any[] | null>;
3
+ export function getBookmarkTreeNode(id?: string | any[]): Promise<Array<object> | null>;
4
4
  export function getCloseTabsByDoubleClickValue(): Promise<object>;
5
5
  export function setContextMenuOnMouseup(): Promise<boolean>;
6
6
  export function clearContextMenuOnMouseup(): Promise<boolean>;
7
7
  export function getNewTabPositionValue(): Promise<object>;
8
8
  export function isCommandCustomizable(): Promise<boolean>;
9
9
  export function updateCommand(id: string, value?: string): Promise<void | null>;
10
- export function getAllContextualIdentities(): Promise<any[] | null>;
10
+ export function getAllContextualIdentities(): Promise<Array<object> | null>;
11
11
  export function getContextualId(cookieStoreId: string): Promise<object>;
12
- export function getEnabledTheme(): Promise<any[] | null>;
12
+ export function getEnabledTheme(): Promise<Array<object> | null>;
13
13
  export function getExtensionInfo(id: string): Promise<object>;
14
- export function getExternalExtensions(): Promise<(any[] | boolean) | null>;
14
+ export function getExternalExtensions(): Promise<Array<object> | null>;
15
15
  export function clearNotification(id: string): Promise<boolean | null>;
16
16
  export function createNotification(id: string, opt: object): Promise<string | null>;
17
17
  export function removePermission(perm: string | any[]): Promise<boolean>;
@@ -22,7 +22,8 @@ export function getOs(): Promise<string>;
22
22
  export function makeConnection(id?: number | string, info?: object | boolean): Promise<object>;
23
23
  export function sendMessage(id: number | string, msg: any, opt: object): Promise<object>;
24
24
  export function isScriptingAvailable(): Promise<boolean>;
25
- export function executeScriptToTab(opt?: object): Promise<(any[] | boolean) | null>;
25
+ export function executeScriptToTab(opt?: object): Promise<Array<object> | null>;
26
+ export function searchInNewTab(text: string, opt: object): Promise<object>;
26
27
  export function searchWithSearchEngine(query: string, opt?: object): Promise<void>;
27
28
  export function getRecentlyClosedTab(windowId?: number): Promise<object>;
28
29
  export function getSessionWindowValue(key: string, windowId?: number): Promise<string | null>;
@@ -35,17 +36,17 @@ export function removeStorage(key: any, area?: string): Promise<void>;
35
36
  export function setStorage(obj: object, area?: string): Promise<void>;
36
37
  export function createTab(opt?: object): Promise<object>;
37
38
  export function duplicateTab(tabId: number, opt: object): Promise<object>;
38
- export function queryTabs(opt: object): Promise<any[] | null>;
39
+ export function queryTabs(opt: object): Promise<Array<object>>;
39
40
  export function execScriptToTab(tabId: number | object, opt?: object): Promise<(any[] | boolean) | null>;
40
41
  export function execScriptToTabs(opt?: object): Promise<any[]>;
41
42
  export function execScriptsToTabInOrder(tabId: number | any[], opts?: any[]): Promise<any>;
42
43
  export function getActiveTab(windowId?: number): Promise<object>;
43
44
  export function getActiveTabId(windowId?: number): Promise<number | null>;
44
- export function getAllTabsInWindow(windowId?: number): Promise<any[] | null>;
45
- export function getHighlightedTab(windowId?: number): Promise<any[] | null>;
45
+ export function getAllTabsInWindow(windowId?: number): Promise<Array<object>>;
46
+ export function getHighlightedTab(windowId?: number): Promise<Array<object>>;
46
47
  export function getTab(tabId: number): Promise<object>;
47
48
  export function highlightTab(index: number | any[], windowId?: number): Promise<object>;
48
- export function moveTab(tabId: number | any[], opt?: object): Promise<any[] | null>;
49
+ export function moveTab(tabId: number | any[], opt?: object): Promise<Array<object> | null>;
49
50
  export function reloadTab(tabId: number, opt: object): Promise<void>;
50
51
  export function removeTab(arg: number | any[]): Promise<void>;
51
52
  export function updateTab(tabId: number, opt: object): Promise<object>;
@@ -54,7 +55,7 @@ export function captureVisibleTab(windowId: number, opt: object): Promise<string
54
55
  export function isTab(tabId: any): Promise<boolean>;
55
56
  export function getCurrentTheme(windowId?: number): Promise<object>;
56
57
  export function createNewWindow(opt: object): Promise<object>;
57
- export function getAllNormalWindows(populate?: boolean): Promise<any[]>;
58
+ export function getAllNormalWindows(populate?: boolean): Promise<Array<object>>;
58
59
  export function getCurrentWindow(opt: object): Promise<object>;
59
60
  export function getWindow(windowId: number, opt: object): Promise<object>;
60
61
  export function checkIncognitoWindowExists(): Promise<boolean>;
@@ -9,17 +9,17 @@ export class Schema {
9
9
  _schema: any;
10
10
  set channel(ch: any);
11
11
  get channel(): any;
12
- _getTargetFromNamespace(key: string): object;
13
- _assignImportMap(): void;
14
- _assignRefMap(): void;
15
- _mockEvents(target: object, events: any[]): object;
16
- _mockFunctions(target: object, funcs: any[]): object;
17
- _mockProperties(target: object, props: object, namespace: string): object;
18
- _mockTypes(target: object, types: any[], namespace: string): object;
19
- _parseSchemaContent(): object;
20
- get(name: string): any[];
12
+ private _getTargetFromNamespace;
13
+ private _assignImportMap;
14
+ private _assignRefMap;
15
+ private _mockEvents;
16
+ private _mockFunctions;
17
+ private _mockProperties;
18
+ private _mockTypes;
19
+ private _parseSchemaContent;
20
+ get(name: string): Array<object> | null;
21
21
  getAll(): object;
22
- list(): any[];
22
+ list(): Array<string>;
23
23
  mock(): object;
24
24
  #private;
25
25
  }