webext-schema 6.0.0 → 7.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/.github/FUNDING.yml +13 -0
- package/.github/workflows/node.js.yml +31 -0
- package/eslint.config.mjs +52 -0
- package/modules/schema.js +3 -4
- package/modules/update.js +0 -5
- package/package.json +13 -14
- package/schemas/beta/webext.json +9 -6
- package/schemas/central/webext.json +6 -3
- package/schemas/mail/mailext.json +312 -90
- package/test/browser.test.js +3040 -0
- package/test/commander.test.js +134 -0
- package/test/common.test.js +120 -0
- package/test/constant.test.js +34 -0
- package/test/file/test 2.cmd +2 -0
- package/test/file/test 2.sh +2 -0
- package/test/file/test.cmd +2 -0
- package/test/file/test.js +1 -0
- package/test/file/test.sh +2 -0
- package/test/file/test.txt +1 -0
- package/test/file-util.test.js +370 -0
- package/test/index.test.js +13 -0
- package/test/mocha/setup.js +40 -0
- package/test/schema.test.js +1280 -0
- package/test/update.test.js +1022 -0
- package/types/modules/update.d.ts +0 -1
- package/schemas/esr/webext.json +0 -21462
|
@@ -2653,7 +2653,7 @@
|
|
|
2653
2653
|
},
|
|
2654
2654
|
{
|
|
2655
2655
|
"type": "array",
|
|
2656
|
-
"description": "An RGBA array of 3 integers and a fractional (a float between 0 and 1). For example <var>[220, 20, 60, 0.5]
|
|
2656
|
+
"description": "An RGBA array of 3 integers and a fractional (a float between 0 and 1). For example <var>[220, 20, 60, 0.5]</var> for the color *crimson* with 50% opacity.",
|
|
2657
2657
|
"minItems": 4,
|
|
2658
2658
|
"maxItems": 4,
|
|
2659
2659
|
"items": {
|
|
@@ -3001,9 +3001,10 @@
|
|
|
3001
3001
|
"optional": true,
|
|
3002
3002
|
"type": "string",
|
|
3003
3003
|
"enum": [
|
|
3004
|
+
"auto",
|
|
3004
3005
|
"light",
|
|
3005
3006
|
"dark",
|
|
3006
|
-
"
|
|
3007
|
+
"system"
|
|
3007
3008
|
]
|
|
3008
3009
|
},
|
|
3009
3010
|
"content_color_scheme": {
|
|
@@ -3011,9 +3012,10 @@
|
|
|
3011
3012
|
"optional": true,
|
|
3012
3013
|
"type": "string",
|
|
3013
3014
|
"enum": [
|
|
3015
|
+
"auto",
|
|
3014
3016
|
"light",
|
|
3015
3017
|
"dark",
|
|
3016
|
-
"
|
|
3018
|
+
"system"
|
|
3017
3019
|
]
|
|
3018
3020
|
}
|
|
3019
3021
|
},
|
|
@@ -4018,45 +4020,85 @@
|
|
|
4018
4020
|
"types": [
|
|
4019
4021
|
{
|
|
4020
4022
|
"id": "QueryInfo",
|
|
4021
|
-
"
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
"type": "
|
|
4026
|
-
"
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4023
|
+
"choices": [
|
|
4024
|
+
{
|
|
4025
|
+
"max_manifest_version": 2,
|
|
4026
|
+
"description": "Object defining a query for $(ref:contacts.quickSearch).",
|
|
4027
|
+
"type": "object",
|
|
4028
|
+
"properties": {
|
|
4029
|
+
"searchString": {
|
|
4030
|
+
"type": "string",
|
|
4031
|
+
"optional": true,
|
|
4032
|
+
"description": "One or more space-separated terms to search for in predefined contact fields (defined by the preference <var>mail.addr_book.quicksearchquery.format</var>)."
|
|
4033
|
+
},
|
|
4034
|
+
"includeLocal": {
|
|
4035
|
+
"type": "boolean",
|
|
4036
|
+
"optional": true,
|
|
4037
|
+
"default": true,
|
|
4038
|
+
"description": "Whether to include results from local address books. Defaults to <var>true</var>."
|
|
4039
|
+
},
|
|
4040
|
+
"includeRemote": {
|
|
4041
|
+
"type": "boolean",
|
|
4042
|
+
"optional": true,
|
|
4043
|
+
"default": true,
|
|
4044
|
+
"description": "Whether to include results from remote address books. Defaults to <var>true</var>."
|
|
4045
|
+
},
|
|
4046
|
+
"includeReadOnly": {
|
|
4047
|
+
"type": "boolean",
|
|
4048
|
+
"optional": true,
|
|
4049
|
+
"default": true,
|
|
4050
|
+
"description": "Whether to include results from read-only address books. Defaults to <var>true</var>."
|
|
4051
|
+
},
|
|
4052
|
+
"includeReadWrite": {
|
|
4053
|
+
"type": "boolean",
|
|
4054
|
+
"optional": true,
|
|
4055
|
+
"default": true,
|
|
4056
|
+
"description": "Whether to include results from read-write address books. Defaults to <var>true</var>."
|
|
4057
|
+
}
|
|
4058
|
+
}
|
|
4052
4059
|
},
|
|
4053
|
-
|
|
4054
|
-
"
|
|
4055
|
-
"
|
|
4056
|
-
"
|
|
4057
|
-
"
|
|
4060
|
+
{
|
|
4061
|
+
"min_manifest_version": 3,
|
|
4062
|
+
"description": "Object defining a query for $(ref:contacts.query).",
|
|
4063
|
+
"type": "object",
|
|
4064
|
+
"properties": {
|
|
4065
|
+
"parentId": {
|
|
4066
|
+
"type": "string",
|
|
4067
|
+
"optional": true,
|
|
4068
|
+
"description": "The id of the address book to search. If not specified, all address books are searched."
|
|
4069
|
+
},
|
|
4070
|
+
"searchString": {
|
|
4071
|
+
"type": "string",
|
|
4072
|
+
"optional": true,
|
|
4073
|
+
"description": "One or more space-separated terms to search for in predefined contact fields (defined by the preference <var>mail.addr_book.quicksearchquery.format</var>)."
|
|
4074
|
+
},
|
|
4075
|
+
"includeLocal": {
|
|
4076
|
+
"type": "boolean",
|
|
4077
|
+
"optional": true,
|
|
4078
|
+
"default": true,
|
|
4079
|
+
"description": "Whether to include results from local address books. Defaults to <var>true</var>."
|
|
4080
|
+
},
|
|
4081
|
+
"includeRemote": {
|
|
4082
|
+
"type": "boolean",
|
|
4083
|
+
"optional": true,
|
|
4084
|
+
"default": true,
|
|
4085
|
+
"description": "Whether to include results from remote address books. Defaults to <var>true</var>."
|
|
4086
|
+
},
|
|
4087
|
+
"includeReadOnly": {
|
|
4088
|
+
"type": "boolean",
|
|
4089
|
+
"optional": true,
|
|
4090
|
+
"default": true,
|
|
4091
|
+
"description": "Whether to include results from read-only address books. Defaults to <var>true</var>."
|
|
4092
|
+
},
|
|
4093
|
+
"includeReadWrite": {
|
|
4094
|
+
"type": "boolean",
|
|
4095
|
+
"optional": true,
|
|
4096
|
+
"default": true,
|
|
4097
|
+
"description": "Whether to include results from read-write address books. Defaults to <var>true</var>."
|
|
4098
|
+
}
|
|
4099
|
+
}
|
|
4058
4100
|
}
|
|
4059
|
-
|
|
4101
|
+
]
|
|
4060
4102
|
},
|
|
4061
4103
|
{
|
|
4062
4104
|
"id": "ContactNode",
|
|
@@ -6522,7 +6564,7 @@
|
|
|
6522
6564
|
"choices": [
|
|
6523
6565
|
{
|
|
6524
6566
|
"type": "string",
|
|
6525
|
-
"description": "A name and email address in
|
|
6567
|
+
"description": "A name and email address in mailbox format (<var>Name <email@example.com></var>), or just an email address. Mailing lists are specified as <var>ListName <ListName></var>. Use $(ref:messengerUtilities.parseMailboxString) to extract the name and/or the email from the mailbox string, or to expand mailing list entries."
|
|
6526
6568
|
},
|
|
6527
6569
|
{
|
|
6528
6570
|
"type": "object",
|
|
@@ -6535,7 +6577,7 @@
|
|
|
6535
6577
|
"nodeId": {
|
|
6536
6578
|
"type": "string",
|
|
6537
6579
|
"min_manifest_version": 3,
|
|
6538
|
-
"description": "The ID of a contact or mailing list node from the $(doc:
|
|
6580
|
+
"description": "The ID of a contact or mailing list node from the $(doc:addressBooks.contacts) or $(doc:addressBooks.mailingLists)."
|
|
6539
6581
|
},
|
|
6540
6582
|
"type": {
|
|
6541
6583
|
"type": "string",
|
|
@@ -6744,12 +6786,12 @@
|
|
|
6744
6786
|
}
|
|
6745
6787
|
],
|
|
6746
6788
|
"optional": true,
|
|
6747
|
-
"description": "
|
|
6789
|
+
"description": "This value overrides the default fcc setting (defined by the used identity) for this message only. Either a $(ref:folders.MailFolder) specifying the folder for the copy of the sent message, or an empty string to not save a copy at all. The permission <permission>accountsRead</permission> is required to use this property."
|
|
6748
6790
|
},
|
|
6749
6791
|
"overrideDefaultFccFolderId": {
|
|
6750
6792
|
"min_manifest_version": 3,
|
|
6751
6793
|
"$ref": "folders.MailFolderId",
|
|
6752
|
-
"description": "
|
|
6794
|
+
"description": "This value overrides the default fcc setting (defined by the used identity) for this message only. Either a $(ref:folders.MailFolderId) specifying the folder for the copy of the sent message, or an empty string to not save a copy at all. Reset when set to <var>null</var>. The permission <permission>accountsRead</permission> is required to use this property.",
|
|
6753
6795
|
"optional": "omit-key-if-missing"
|
|
6754
6796
|
},
|
|
6755
6797
|
"plainTextBody": {
|
|
@@ -6770,7 +6812,7 @@
|
|
|
6770
6812
|
"optional": true
|
|
6771
6813
|
},
|
|
6772
6814
|
"relatedMessageId": {
|
|
6773
|
-
"description": "The id of the original message (in case of draft, template, forward or reply). Read-only. Is <var>undefined</var> in all other cases or if the original message was opened from file.",
|
|
6815
|
+
"description": "The id of the original message (in case of draft, template, forward or reply). Read-only. Is <var>undefined</var> in all other cases or if the original message was opened from file. The <permission>messagesRead</permission> permission is required to use this property.",
|
|
6774
6816
|
"$ref": "messages.MessageId",
|
|
6775
6817
|
"optional": true
|
|
6776
6818
|
},
|
|
@@ -6953,7 +6995,8 @@
|
|
|
6953
6995
|
"parameters": [
|
|
6954
6996
|
{
|
|
6955
6997
|
"name": "tab",
|
|
6956
|
-
"$ref": "tabs.Tab"
|
|
6998
|
+
"$ref": "tabs.Tab",
|
|
6999
|
+
"description": "The tab of the associated compose window. By the time the event listener is called, this window may have already been destroyed."
|
|
6957
7000
|
},
|
|
6958
7001
|
{
|
|
6959
7002
|
"name": "sendInfo",
|
|
@@ -6982,7 +7025,11 @@
|
|
|
6982
7025
|
"items": {
|
|
6983
7026
|
"$ref": "messages.MessageHeader"
|
|
6984
7027
|
},
|
|
6985
|
-
"description": "Copies of the sent message. The number of created copies depends on the applied file carbon copy configuration (fcc)."
|
|
7028
|
+
"description": "Copies of the sent message. The number of created copies depends on the applied file carbon copy configuration (fcc). The <permission>messagesRead</permission> permission is required for this property to be included."
|
|
7029
|
+
},
|
|
7030
|
+
"details": {
|
|
7031
|
+
"$ref": "ComposeDetails",
|
|
7032
|
+
"description": "The $(ref:compose.ComposeDetails) of the send message."
|
|
6986
7033
|
}
|
|
6987
7034
|
}
|
|
6988
7035
|
}
|
|
@@ -7023,7 +7070,11 @@
|
|
|
7023
7070
|
"items": {
|
|
7024
7071
|
"$ref": "messages.MessageHeader"
|
|
7025
7072
|
},
|
|
7026
|
-
"description": "An array with exactly one element, the saved message."
|
|
7073
|
+
"description": "An array with exactly one element, the saved message. The <permission>messagesRead</permission> permission is required for this property to be included."
|
|
7074
|
+
},
|
|
7075
|
+
"details": {
|
|
7076
|
+
"$ref": "ComposeDetails",
|
|
7077
|
+
"description": "The $(ref:compose.ComposeDetails) of the saved message."
|
|
7027
7078
|
}
|
|
7028
7079
|
}
|
|
7029
7080
|
}
|
|
@@ -9918,7 +9969,7 @@
|
|
|
9918
9969
|
{
|
|
9919
9970
|
"name": "key",
|
|
9920
9971
|
"type": "string",
|
|
9921
|
-
"description": "The tag key of the requested folder. See $(ref:messages.tags.list
|
|
9972
|
+
"description": "The tag key of the requested folder. See $(ref:messages.tags.list) for the available tags. Throws when specifying an invalid tag key."
|
|
9922
9973
|
},
|
|
9923
9974
|
{
|
|
9924
9975
|
"type": "function",
|
|
@@ -10855,7 +10906,7 @@
|
|
|
10855
10906
|
{
|
|
10856
10907
|
"name": "getListedMessages",
|
|
10857
10908
|
"type": "function",
|
|
10858
|
-
"description": "Lists the messages in the current view, honoring sort order and filters.",
|
|
10909
|
+
"description": "Lists the messages in the current view, honoring sort order and filters as used in the UI. Sort order of the returned messages can be overridden via the <var>options</var> parameter",
|
|
10859
10910
|
"permissions": [
|
|
10860
10911
|
"messagesRead"
|
|
10861
10912
|
],
|
|
@@ -10868,6 +10919,40 @@
|
|
|
10868
10919
|
"optional": true,
|
|
10869
10920
|
"minimum": 1
|
|
10870
10921
|
},
|
|
10922
|
+
{
|
|
10923
|
+
"name": "options",
|
|
10924
|
+
"type": "object",
|
|
10925
|
+
"optional": true,
|
|
10926
|
+
"properties": {
|
|
10927
|
+
"sortType": {
|
|
10928
|
+
"type": "string",
|
|
10929
|
+
"description": "Specifies how the returned messages should be sorted. This does not change the actual sort of the displayed messages. Default sort order is <var>descending</var>, if not specified otherwise. Returning sorted messages is faster than manually sorting the messages afterwards, but slower than returning the messages in their original order.",
|
|
10930
|
+
"optional": true,
|
|
10931
|
+
"enum": [
|
|
10932
|
+
"author",
|
|
10933
|
+
"date",
|
|
10934
|
+
"flagged",
|
|
10935
|
+
"junk",
|
|
10936
|
+
"junkScore",
|
|
10937
|
+
"priority",
|
|
10938
|
+
"read",
|
|
10939
|
+
"recipients",
|
|
10940
|
+
"size",
|
|
10941
|
+
"subject",
|
|
10942
|
+
"tags"
|
|
10943
|
+
]
|
|
10944
|
+
},
|
|
10945
|
+
"sortOrder": {
|
|
10946
|
+
"type": "string",
|
|
10947
|
+
"optional": true,
|
|
10948
|
+
"description": "The sort order for the returned messages. Ignored if <var>sortType</var> is not specified.",
|
|
10949
|
+
"enum": [
|
|
10950
|
+
"ascending",
|
|
10951
|
+
"descending"
|
|
10952
|
+
]
|
|
10953
|
+
}
|
|
10954
|
+
}
|
|
10955
|
+
},
|
|
10871
10956
|
{
|
|
10872
10957
|
"type": "function",
|
|
10873
10958
|
"name": "callback",
|
|
@@ -13061,6 +13146,7 @@
|
|
|
13061
13146
|
}
|
|
13062
13147
|
},
|
|
13063
13148
|
"date": {
|
|
13149
|
+
"description": "The date and time when the message was sent, according to the Date header in the message.",
|
|
13064
13150
|
"$ref": "extensionTypes.Date"
|
|
13065
13151
|
},
|
|
13066
13152
|
"external": {
|
|
@@ -13097,6 +13183,18 @@
|
|
|
13097
13183
|
"minimum": 0,
|
|
13098
13184
|
"maximum": 100
|
|
13099
13185
|
},
|
|
13186
|
+
"priority": {
|
|
13187
|
+
"type": "string",
|
|
13188
|
+
"description": "The priority of the message.",
|
|
13189
|
+
"enum": [
|
|
13190
|
+
"none",
|
|
13191
|
+
"lowest",
|
|
13192
|
+
"low",
|
|
13193
|
+
"normal",
|
|
13194
|
+
"high",
|
|
13195
|
+
"highest"
|
|
13196
|
+
]
|
|
13197
|
+
},
|
|
13100
13198
|
"read": {
|
|
13101
13199
|
"type": "boolean",
|
|
13102
13200
|
"optional": true,
|
|
@@ -13180,15 +13278,9 @@
|
|
|
13180
13278
|
]
|
|
13181
13279
|
},
|
|
13182
13280
|
"headers": {
|
|
13183
|
-
"
|
|
13281
|
+
"$ref": "messages.HeadersDictionary",
|
|
13184
13282
|
"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).",
|
|
13185
|
-
"optional": true
|
|
13186
|
-
"additionalProperties": {
|
|
13187
|
-
"type": "array",
|
|
13188
|
-
"items": {
|
|
13189
|
-
"type": "string"
|
|
13190
|
-
}
|
|
13191
|
-
}
|
|
13283
|
+
"optional": true
|
|
13192
13284
|
},
|
|
13193
13285
|
"name": {
|
|
13194
13286
|
"type": "string",
|
|
@@ -13214,15 +13306,9 @@
|
|
|
13214
13306
|
"optional": true
|
|
13215
13307
|
},
|
|
13216
13308
|
"rawHeaders": {
|
|
13217
|
-
"
|
|
13309
|
+
"$ref": "messages.HeadersDictionary",
|
|
13218
13310
|
"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).",
|
|
13219
|
-
"optional": true
|
|
13220
|
-
"additionalProperties": {
|
|
13221
|
-
"type": "array",
|
|
13222
|
-
"items": {
|
|
13223
|
-
"type": "string"
|
|
13224
|
-
}
|
|
13225
|
-
}
|
|
13311
|
+
"optional": true
|
|
13226
13312
|
},
|
|
13227
13313
|
"size": {
|
|
13228
13314
|
"type": "integer",
|
|
@@ -13280,14 +13366,8 @@
|
|
|
13280
13366
|
"description": "The content type of the attachment. A value of <var>text/x-moz-deleted</var> indicates that the original attachment was permanently deleted and replaced by a placeholder text attachment with some meta information about the original attachment."
|
|
13281
13367
|
},
|
|
13282
13368
|
"headers": {
|
|
13283
|
-
"
|
|
13284
|
-
"description": "A <em>dictionary object</em> of RFC 2047 decoded attachment headers as <em>key-value</em> pairs, with the header name as <em>key</em>, and an array of headers as <em>value</em>."
|
|
13285
|
-
"additionalProperties": {
|
|
13286
|
-
"type": "array",
|
|
13287
|
-
"items": {
|
|
13288
|
-
"type": "string"
|
|
13289
|
-
}
|
|
13290
|
-
}
|
|
13369
|
+
"$ref": "messages.HeadersDictionary",
|
|
13370
|
+
"description": "A <em>dictionary object</em> of RFC 2047 decoded attachment headers as <em>key-value</em> pairs, with the header name as <em>key</em>, and an array of headers as <em>value</em>."
|
|
13291
13371
|
},
|
|
13292
13372
|
"name": {
|
|
13293
13373
|
"type": "string",
|
|
@@ -13313,6 +13393,17 @@
|
|
|
13313
13393
|
}
|
|
13314
13394
|
}
|
|
13315
13395
|
},
|
|
13396
|
+
{
|
|
13397
|
+
"id": "HeadersDictionary",
|
|
13398
|
+
"type": "object",
|
|
13399
|
+
"description": "A <em>dictionary object</em> of headers as <em>key-value</em> pairs, with the header name as <em>key</em>, and an array of headers as <em>value</em>.",
|
|
13400
|
+
"additionalProperties": {
|
|
13401
|
+
"type": "array",
|
|
13402
|
+
"items": {
|
|
13403
|
+
"type": "string"
|
|
13404
|
+
}
|
|
13405
|
+
}
|
|
13406
|
+
},
|
|
13316
13407
|
{
|
|
13317
13408
|
"id": "QueryRange",
|
|
13318
13409
|
"type": "object",
|
|
@@ -13443,6 +13534,40 @@
|
|
|
13443
13534
|
"name": "folderId",
|
|
13444
13535
|
"$ref": "folders.MailFolderId"
|
|
13445
13536
|
},
|
|
13537
|
+
{
|
|
13538
|
+
"name": "options",
|
|
13539
|
+
"type": "object",
|
|
13540
|
+
"optional": true,
|
|
13541
|
+
"properties": {
|
|
13542
|
+
"sortType": {
|
|
13543
|
+
"type": "string",
|
|
13544
|
+
"description": "Specifies how the returned messages should be sorted. Default sort order is <var>descending</var>, if not specified otherwise. Returning sorted messages is faster than manually sorting the messages afterwards, but slower than returning the messages in their original order.",
|
|
13545
|
+
"optional": true,
|
|
13546
|
+
"enum": [
|
|
13547
|
+
"author",
|
|
13548
|
+
"date",
|
|
13549
|
+
"flagged",
|
|
13550
|
+
"junk",
|
|
13551
|
+
"junkScore",
|
|
13552
|
+
"priority",
|
|
13553
|
+
"read",
|
|
13554
|
+
"recipients",
|
|
13555
|
+
"size",
|
|
13556
|
+
"subject",
|
|
13557
|
+
"tags"
|
|
13558
|
+
]
|
|
13559
|
+
},
|
|
13560
|
+
"sortOrder": {
|
|
13561
|
+
"type": "string",
|
|
13562
|
+
"description": "The sort order for the returned messages. Ignored if <var>sortType</var> is not specified.",
|
|
13563
|
+
"optional": true,
|
|
13564
|
+
"enum": [
|
|
13565
|
+
"ascending",
|
|
13566
|
+
"descending"
|
|
13567
|
+
]
|
|
13568
|
+
}
|
|
13569
|
+
}
|
|
13570
|
+
},
|
|
13446
13571
|
{
|
|
13447
13572
|
"type": "function",
|
|
13448
13573
|
"name": "callback",
|
|
@@ -13477,6 +13602,40 @@
|
|
|
13477
13602
|
}
|
|
13478
13603
|
]
|
|
13479
13604
|
},
|
|
13605
|
+
{
|
|
13606
|
+
"name": "options",
|
|
13607
|
+
"type": "object",
|
|
13608
|
+
"optional": true,
|
|
13609
|
+
"properties": {
|
|
13610
|
+
"sortType": {
|
|
13611
|
+
"type": "string",
|
|
13612
|
+
"description": "Specifies how the returned messages should be sorted. Default sort order is <var>descending</var>, if not specified otherwise. Returning sorted messages is faster than manually sorting the messages afterwards, but slower than returning the messages in their original order.",
|
|
13613
|
+
"optional": true,
|
|
13614
|
+
"enum": [
|
|
13615
|
+
"author",
|
|
13616
|
+
"date",
|
|
13617
|
+
"flagged",
|
|
13618
|
+
"junk",
|
|
13619
|
+
"junkScore",
|
|
13620
|
+
"priority",
|
|
13621
|
+
"read",
|
|
13622
|
+
"recipients",
|
|
13623
|
+
"size",
|
|
13624
|
+
"subject",
|
|
13625
|
+
"tags"
|
|
13626
|
+
]
|
|
13627
|
+
},
|
|
13628
|
+
"sortOrder": {
|
|
13629
|
+
"type": "string",
|
|
13630
|
+
"optional": true,
|
|
13631
|
+
"description": "The sort order for the returned messages. Ignored if <var>sortType</var> is not specified.",
|
|
13632
|
+
"enum": [
|
|
13633
|
+
"ascending",
|
|
13634
|
+
"descending"
|
|
13635
|
+
]
|
|
13636
|
+
}
|
|
13637
|
+
}
|
|
13638
|
+
},
|
|
13480
13639
|
{
|
|
13481
13640
|
"type": "function",
|
|
13482
13641
|
"name": "callback",
|
|
@@ -13589,6 +13748,40 @@
|
|
|
13589
13748
|
}
|
|
13590
13749
|
]
|
|
13591
13750
|
},
|
|
13751
|
+
{
|
|
13752
|
+
"name": "getHeaders",
|
|
13753
|
+
"type": "function",
|
|
13754
|
+
"description": "Returns all message headers of the specified message, without MIME structure parsing. Throws an error if the message cannot be read, for example due to network issues. This function is significantly faster than $(ref:messages.getFull) when only the header information is required.",
|
|
13755
|
+
"async": "callback",
|
|
13756
|
+
"parameters": [
|
|
13757
|
+
{
|
|
13758
|
+
"name": "messageId",
|
|
13759
|
+
"$ref": "messages.MessageId"
|
|
13760
|
+
},
|
|
13761
|
+
{
|
|
13762
|
+
"name": "options",
|
|
13763
|
+
"type": "object",
|
|
13764
|
+
"properties": {
|
|
13765
|
+
"decodeHeaders": {
|
|
13766
|
+
"type": "boolean",
|
|
13767
|
+
"description": "Whether to decode RFC 2047 encoded headers. Defaults to <var>true</var>.",
|
|
13768
|
+
"optional": true
|
|
13769
|
+
}
|
|
13770
|
+
},
|
|
13771
|
+
"optional": true
|
|
13772
|
+
},
|
|
13773
|
+
{
|
|
13774
|
+
"type": "function",
|
|
13775
|
+
"name": "callback",
|
|
13776
|
+
"optional": true,
|
|
13777
|
+
"parameters": [
|
|
13778
|
+
{
|
|
13779
|
+
"$ref": "messages.HeadersDictionary"
|
|
13780
|
+
}
|
|
13781
|
+
]
|
|
13782
|
+
}
|
|
13783
|
+
]
|
|
13784
|
+
},
|
|
13592
13785
|
{
|
|
13593
13786
|
"name": "getRaw",
|
|
13594
13787
|
"type": "function",
|
|
@@ -13666,7 +13859,7 @@
|
|
|
13666
13859
|
{
|
|
13667
13860
|
"name": "listAttachments",
|
|
13668
13861
|
"type": "function",
|
|
13669
|
-
"description": "Lists the attachments of a message.",
|
|
13862
|
+
"description": "Lists the attachments of a message. If the message is encrypted, the attachments of the decrypted message are listed.",
|
|
13670
13863
|
"async": "callback",
|
|
13671
13864
|
"parameters": [
|
|
13672
13865
|
{
|
|
@@ -13691,7 +13884,7 @@
|
|
|
13691
13884
|
{
|
|
13692
13885
|
"name": "listInlineTextParts",
|
|
13693
13886
|
"type": "function",
|
|
13694
|
-
"description": "Lists all inline text parts of a message. These parts are not returned by $(ref:messages.listAttachments) and usually make up the readable content of the message, mostly with content type <var>text/plain</var> or <var>text/html</var>. If a message only includes a part with content type <var>text/html</var>, the method $(ref:messengerUtilities.convertToPlainText) can be used to retreive a plain text version.",
|
|
13887
|
+
"description": "Lists all inline text parts of a message. These parts are not returned by $(ref:messages.listAttachments) and usually make up the readable content of the message, mostly with content type <var>text/plain</var> or <var>text/html</var>. If a message only includes a part with content type <var>text/html</var>, the method $(ref:messengerUtilities.convertToPlainText) can be used to retreive a plain text version. If the message is encrypted, the inline text parts of the decrypted message are listed.",
|
|
13695
13888
|
"async": "callback",
|
|
13696
13889
|
"parameters": [
|
|
13697
13890
|
{
|
|
@@ -13716,7 +13909,7 @@
|
|
|
13716
13909
|
{
|
|
13717
13910
|
"name": "getAttachmentFile",
|
|
13718
13911
|
"type": "function",
|
|
13719
|
-
"description": "Gets the content of a $(ref:messages.MessageAttachment) as a $(url:dom-file)[File] object.",
|
|
13912
|
+
"description": "Gets the content of a $(ref:messages.MessageAttachment) as a $(url:dom-file)[File] object. If the message is encrypted, the function retrieves the attachment from the decrypted message.",
|
|
13720
13913
|
"async": "callback",
|
|
13721
13914
|
"parameters": [
|
|
13722
13915
|
{
|
|
@@ -13725,6 +13918,7 @@
|
|
|
13725
13918
|
},
|
|
13726
13919
|
{
|
|
13727
13920
|
"name": "partName",
|
|
13921
|
+
"description": "The <var>partName</var> of an attachment to be retrieved from the decrypted message.",
|
|
13728
13922
|
"type": "string",
|
|
13729
13923
|
"pattern": "^\\d+(\\.\\d+\\$?)*$"
|
|
13730
13924
|
},
|
|
@@ -13745,7 +13939,7 @@
|
|
|
13745
13939
|
{
|
|
13746
13940
|
"name": "deleteAttachments",
|
|
13747
13941
|
"type": "function",
|
|
13748
|
-
"description": "Deletes the specified attachments and replaces them by placeholder text attachments with meta information about the original attachments and a <var>text/x-moz-deleted</var> content type. This permanently modifies the message.",
|
|
13942
|
+
"description": "Deletes the specified attachments and replaces them by placeholder text attachments with meta information about the original attachments and a <var>text/x-moz-deleted</var> content type. This permanently modifies the message. Deleting attachments of encrypted messages is not supported and will throw an <em>ExtensionError</em>.",
|
|
13749
13943
|
"permissions": [
|
|
13750
13944
|
"messagesModifyPermanent"
|
|
13751
13945
|
],
|
|
@@ -14499,10 +14693,11 @@
|
|
|
14499
14693
|
},
|
|
14500
14694
|
"mode": {
|
|
14501
14695
|
"type": "string",
|
|
14502
|
-
"description": "Whether all of the tag filters must apply,
|
|
14696
|
+
"description": "Whether <var>all</var> of the tag filters must apply, <var>any</var> of them, or <var>none</var>. The <var>none</var> mode ignores the provided filters and selects only messages without any tags.",
|
|
14503
14697
|
"enum": [
|
|
14504
14698
|
"all",
|
|
14505
|
-
"any"
|
|
14699
|
+
"any",
|
|
14700
|
+
"none"
|
|
14506
14701
|
]
|
|
14507
14702
|
}
|
|
14508
14703
|
}
|
|
@@ -14553,7 +14748,7 @@
|
|
|
14553
14748
|
"type": "function",
|
|
14554
14749
|
"description": "Fired when a message tag has been deleted.",
|
|
14555
14750
|
"permissions": [
|
|
14556
|
-
"
|
|
14751
|
+
"messagesTagsList"
|
|
14557
14752
|
],
|
|
14558
14753
|
"parameters": [
|
|
14559
14754
|
{
|
|
@@ -14694,13 +14889,17 @@
|
|
|
14694
14889
|
"messengerSettings"
|
|
14695
14890
|
],
|
|
14696
14891
|
"properties": {
|
|
14892
|
+
"messageLineLengthLimit": {
|
|
14893
|
+
"$ref": "types.Setting",
|
|
14894
|
+
"description": "The line length limit for outgoing messages, to comply with requirements from RFC 2822. See description of $(ref:messengerSettings.messagePlainTextFlowedOutputEnabled). This property is read-only."
|
|
14895
|
+
},
|
|
14697
14896
|
"messagePlainTextFlowedOutputEnabled": {
|
|
14698
14897
|
"$ref": "types.Setting",
|
|
14699
|
-
"description": "Whether long lines in outgoing plain text messages will get soft line breaks (<var> \n</var>) or hard line breaks (<var>\n</var>), to comply with requirements from RFC 2822. Soft line breaks will be ignored when displayed by the receiving client. When flowed output is enabled, add-ons should not create plain text messages with manually inserted hard or soft line breaks to achieve a certain text width, as that will most probably interfere with the default line break handling and generate ridged text. When flowed output is disabled, add-ons could add hard line breaks to have control over the final message, but any line longer than the maximum line length will still receive additional hard line breaks. See $(ref:messengerSettings.messageLineLengthLimit)."
|
|
14898
|
+
"description": "Whether long lines in outgoing plain text messages will get soft line breaks (<var> \n</var>) or hard line breaks (<var>\n</var>), to comply with requirements from RFC 2822. Soft line breaks will be ignored when displayed by the receiving client. When flowed output is enabled, add-ons should not create plain text messages with manually inserted hard or soft line breaks to achieve a certain text width, as that will most probably interfere with the default line break handling and generate ridged text. When flowed output is disabled, add-ons could add hard line breaks to have control over the final message, but any line longer than the maximum line length will still receive additional hard line breaks. See $(ref:messengerSettings.messageLineLengthLimit). This property is read-only."
|
|
14700
14899
|
},
|
|
14701
|
-
"
|
|
14900
|
+
"readerDisplayAttachmentsInline": {
|
|
14702
14901
|
"$ref": "types.Setting",
|
|
14703
|
-
"description": "
|
|
14902
|
+
"description": "Whether supported attachments (for example, media files) are shown inline within the body of displayed messages. This property is read-only."
|
|
14704
14903
|
}
|
|
14705
14904
|
}
|
|
14706
14905
|
}
|
|
@@ -14832,10 +15031,33 @@
|
|
|
14832
15031
|
"description": "The string to be parsed (e.g. <var>User <user@example.com>, other-user@example.com</var>)"
|
|
14833
15032
|
},
|
|
14834
15033
|
{
|
|
14835
|
-
"
|
|
14836
|
-
"name": "preserveGroups",
|
|
15034
|
+
"name": "options",
|
|
14837
15035
|
"optional": true,
|
|
14838
|
-
"
|
|
15036
|
+
"choices": [
|
|
15037
|
+
{
|
|
15038
|
+
"type": "boolean",
|
|
15039
|
+
"deprecated": "Specify the options object instead of a plain boolean to preserve groups.",
|
|
15040
|
+
"description": "Keep grouped hierarchies. Groups may be specified in a mailbox string as follows: <var>GroupName : user1 <user1@example.com>, user2@example,com ;</var>."
|
|
15041
|
+
},
|
|
15042
|
+
{
|
|
15043
|
+
"type": "object",
|
|
15044
|
+
"properties": {
|
|
15045
|
+
"preserveGroups": {
|
|
15046
|
+
"type": "boolean",
|
|
15047
|
+
"optional": true,
|
|
15048
|
+
"description": "Keep grouped hierarchies. Groups may be specified in a mailbox string as follows: <var>GroupName : user1 <user1@example.com>, user2@example,com ;</var>."
|
|
15049
|
+
},
|
|
15050
|
+
"expandMailingLists": {
|
|
15051
|
+
"type": "boolean",
|
|
15052
|
+
"optional": true,
|
|
15053
|
+
"permissions": [
|
|
15054
|
+
"addressBooks"
|
|
15055
|
+
],
|
|
15056
|
+
"description": "Expand Thunderbird mailing lists (specified as <var>ListName <ListName></var>) and include the parsed primary email addresses of all members. When used together with <var>preserveGroups</var>, the mailing list's name and hierarchy are preserved. If the mailing list does not exist, or the <permission>addressBook</permission> permission is not granted, the entries are not expanded and returned unchanged."
|
|
15057
|
+
}
|
|
15058
|
+
}
|
|
15059
|
+
}
|
|
15060
|
+
]
|
|
14839
15061
|
},
|
|
14840
15062
|
{
|
|
14841
15063
|
"type": "function",
|
|
@@ -16176,7 +16398,7 @@
|
|
|
16176
16398
|
"title": {
|
|
16177
16399
|
"type": "string",
|
|
16178
16400
|
"optional": true,
|
|
16179
|
-
"description": "Match page titles against a pattern."
|
|
16401
|
+
"description": "Match page titles against a pattern. The <permission>tabs</permission> permission is required to use this property."
|
|
16180
16402
|
},
|
|
16181
16403
|
"url": {
|
|
16182
16404
|
"choices": [
|
|
@@ -16191,7 +16413,7 @@
|
|
|
16191
16413
|
}
|
|
16192
16414
|
],
|
|
16193
16415
|
"optional": true,
|
|
16194
|
-
"description": "Match tabs against one or more $(url:match-patterns)[URL Patterns]. Fragment identifiers are not matched."
|
|
16416
|
+
"description": "Match tabs against one or more $(url:match-patterns)[URL Patterns]. Fragment identifiers are not matched. The <permission>tabs</permission> permission is required to use this property."
|
|
16195
16417
|
},
|
|
16196
16418
|
"windowId": {
|
|
16197
16419
|
"type": "integer",
|
|
@@ -16290,7 +16512,7 @@
|
|
|
16290
16512
|
{
|
|
16291
16513
|
"name": "move",
|
|
16292
16514
|
"type": "function",
|
|
16293
|
-
"description": "Moves one or more tabs to a new position within its current window, or to a different window. Tabs can only be moved to and from windows of type <var>normal</var>.",
|
|
16515
|
+
"description": "Moves one or more tabs to a new position within its current window, or to a different window. Tabs can only be moved to and from windows of type <var>normal</var>. The primary mail tab cannot be moved, attempting to actively reposition it will throw an <em>ExtensionError</em>. Other tabs also cannot be placed before the primary mail tab, they will automatically be positioned after it, ensuring that the primary mail tab always remains first.",
|
|
16294
16516
|
"async": "callback",
|
|
16295
16517
|
"parameters": [
|
|
16296
16518
|
{
|