webext-schema 5.2.6 → 5.2.8
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/package.json +13 -13
- package/schemas/beta/webext.json +32 -2
- package/schemas/central/webext.json +32 -2
- package/schemas/mail/mailext.json +117 -53
- package/schemas/release/webext.json +1 -0
package/package.json
CHANGED
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"sinon": "^17.0.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@types/firefox-webext-browser": "^
|
|
24
|
-
"@types/node": "^20.
|
|
25
|
-
"@types/sinon": "^17.0.
|
|
26
|
-
"c8": "^
|
|
27
|
-
"chai": "^
|
|
28
|
-
"eslint": "^8.
|
|
23
|
+
"@types/firefox-webext-browser": "^120.0.0",
|
|
24
|
+
"@types/node": "^20.11.5",
|
|
25
|
+
"@types/sinon": "^17.0.3",
|
|
26
|
+
"c8": "^9.1.0",
|
|
27
|
+
"chai": "^5.0.0",
|
|
28
|
+
"eslint": "^8.56.0",
|
|
29
29
|
"eslint-config-standard": "^17.1.0",
|
|
30
|
-
"eslint-plugin-import": "^2.29.
|
|
31
|
-
"eslint-plugin-jsdoc": "^
|
|
32
|
-
"eslint-plugin-regexp": "^2.
|
|
33
|
-
"eslint-plugin-unicorn": "^
|
|
30
|
+
"eslint-plugin-import": "^2.29.1",
|
|
31
|
+
"eslint-plugin-jsdoc": "^48.0.2",
|
|
32
|
+
"eslint-plugin-regexp": "^2.2.0",
|
|
33
|
+
"eslint-plugin-unicorn": "^50.0.1",
|
|
34
34
|
"mocha": "^10.2.0",
|
|
35
35
|
"npm-run-all": "^4.1.5",
|
|
36
|
-
"typescript": "^5.3.
|
|
37
|
-
"undici": "^
|
|
36
|
+
"typescript": "^5.3.3",
|
|
37
|
+
"undici": "^6.4.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "npm run tsc && npm run lint && npm run test",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"update-mail": "node index update --channel=mail -i",
|
|
55
55
|
"update-release": "node index update --channel=release -i"
|
|
56
56
|
},
|
|
57
|
-
"version": "5.2.
|
|
57
|
+
"version": "5.2.8"
|
|
58
58
|
}
|
package/schemas/beta/webext.json
CHANGED
|
@@ -750,6 +750,7 @@
|
|
|
750
750
|
},
|
|
751
751
|
"params": {
|
|
752
752
|
"optional": true,
|
|
753
|
+
"max_manifest_version": 2,
|
|
753
754
|
"type": "array",
|
|
754
755
|
"items": {
|
|
755
756
|
"type": "object",
|
|
@@ -9227,10 +9228,38 @@
|
|
|
9227
9228
|
}
|
|
9228
9229
|
]
|
|
9229
9230
|
},
|
|
9231
|
+
{
|
|
9232
|
+
"name": "move",
|
|
9233
|
+
"type": "function",
|
|
9234
|
+
"description": "Reorder one or more contextual identities by their cookieStoreIDs to a given position.",
|
|
9235
|
+
"async": true,
|
|
9236
|
+
"parameters": [
|
|
9237
|
+
{
|
|
9238
|
+
"name": "cookieStoreIds",
|
|
9239
|
+
"description": "The ID or list of IDs of the contextual identity cookie stores. ",
|
|
9240
|
+
"choices": [
|
|
9241
|
+
{
|
|
9242
|
+
"type": "string"
|
|
9243
|
+
},
|
|
9244
|
+
{
|
|
9245
|
+
"type": "array",
|
|
9246
|
+
"items": {
|
|
9247
|
+
"type": "string"
|
|
9248
|
+
}
|
|
9249
|
+
}
|
|
9250
|
+
]
|
|
9251
|
+
},
|
|
9252
|
+
{
|
|
9253
|
+
"type": "integer",
|
|
9254
|
+
"name": "position",
|
|
9255
|
+
"description": "The position the contextual identity should move to."
|
|
9256
|
+
}
|
|
9257
|
+
]
|
|
9258
|
+
},
|
|
9230
9259
|
{
|
|
9231
9260
|
"name": "remove",
|
|
9232
9261
|
"type": "function",
|
|
9233
|
-
"description": "Deletes a
|
|
9262
|
+
"description": "Deletes a contextual identity by its cookie Store ID.",
|
|
9234
9263
|
"async": true,
|
|
9235
9264
|
"parameters": [
|
|
9236
9265
|
{
|
|
@@ -12576,7 +12605,8 @@
|
|
|
12576
12605
|
"processcpu",
|
|
12577
12606
|
"power",
|
|
12578
12607
|
"responsiveness",
|
|
12579
|
-
"cpufreq"
|
|
12608
|
+
"cpufreq",
|
|
12609
|
+
"bandwidth"
|
|
12580
12610
|
]
|
|
12581
12611
|
},
|
|
12582
12612
|
{
|
|
@@ -750,6 +750,7 @@
|
|
|
750
750
|
},
|
|
751
751
|
"params": {
|
|
752
752
|
"optional": true,
|
|
753
|
+
"max_manifest_version": 2,
|
|
753
754
|
"type": "array",
|
|
754
755
|
"items": {
|
|
755
756
|
"type": "object",
|
|
@@ -9227,10 +9228,38 @@
|
|
|
9227
9228
|
}
|
|
9228
9229
|
]
|
|
9229
9230
|
},
|
|
9231
|
+
{
|
|
9232
|
+
"name": "move",
|
|
9233
|
+
"type": "function",
|
|
9234
|
+
"description": "Reorder one or more contextual identities by their cookieStoreIDs to a given position.",
|
|
9235
|
+
"async": true,
|
|
9236
|
+
"parameters": [
|
|
9237
|
+
{
|
|
9238
|
+
"name": "cookieStoreIds",
|
|
9239
|
+
"description": "The ID or list of IDs of the contextual identity cookie stores. ",
|
|
9240
|
+
"choices": [
|
|
9241
|
+
{
|
|
9242
|
+
"type": "string"
|
|
9243
|
+
},
|
|
9244
|
+
{
|
|
9245
|
+
"type": "array",
|
|
9246
|
+
"items": {
|
|
9247
|
+
"type": "string"
|
|
9248
|
+
}
|
|
9249
|
+
}
|
|
9250
|
+
]
|
|
9251
|
+
},
|
|
9252
|
+
{
|
|
9253
|
+
"type": "integer",
|
|
9254
|
+
"name": "position",
|
|
9255
|
+
"description": "The position the contextual identity should move to."
|
|
9256
|
+
}
|
|
9257
|
+
]
|
|
9258
|
+
},
|
|
9230
9259
|
{
|
|
9231
9260
|
"name": "remove",
|
|
9232
9261
|
"type": "function",
|
|
9233
|
-
"description": "Deletes a
|
|
9262
|
+
"description": "Deletes a contextual identity by its cookie Store ID.",
|
|
9234
9263
|
"async": true,
|
|
9235
9264
|
"parameters": [
|
|
9236
9265
|
{
|
|
@@ -12576,7 +12605,8 @@
|
|
|
12576
12605
|
"processcpu",
|
|
12577
12606
|
"power",
|
|
12578
12607
|
"responsiveness",
|
|
12579
|
-
"cpufreq"
|
|
12608
|
+
"cpufreq",
|
|
12609
|
+
"bandwidth"
|
|
12580
12610
|
]
|
|
12581
12611
|
},
|
|
12582
12612
|
{
|
|
@@ -2337,7 +2337,7 @@
|
|
|
2337
2337
|
"properties": {
|
|
2338
2338
|
"stylesheet": {
|
|
2339
2339
|
"optional": true,
|
|
2340
|
-
"description": "URL to a stylesheet introducing additional CSS variables, extending the theme-able areas of Thunderbird. The `theme_experiment add-on in our example repository <https://github.com/thunderbird/sample-extensions/tree/master/theme_experiment>`__ is using the stylesheet shown below, to add the <value>--chat-button-color</value> CSS color variable: <literalinclude>includes/theme/theme_experiment_style.css<lang>CSS</lang></literalinclude>The following <em>manifest.json</em> file maps the </value>--chat-button-color</value> CSS color variable to the theme color key <value>exp_chat_button</value> and uses it to set a color for the chat button: <literalinclude>includes/theme/theme_experiment_manifest.json<lang>JSON</lang></literalinclude>",
|
|
2340
|
+
"description": "URL to a stylesheet introducing additional CSS variables, extending the theme-able areas of Thunderbird. The `theme_experiment add-on in our example repository <https://github.com/thunderbird/sample-extensions/tree/master/manifest_v2/theme_experiment>`__ is using the stylesheet shown below, to add the <value>--chat-button-color</value> CSS color variable: <literalinclude>includes/theme/theme_experiment_style.css<lang>CSS</lang></literalinclude>The following <em>manifest.json</em> file maps the </value>--chat-button-color</value> CSS color variable to the theme color key <value>exp_chat_button</value> and uses it to set a color for the chat button: <literalinclude>includes/theme/theme_experiment_manifest.json<lang>JSON</lang></literalinclude>",
|
|
2341
2341
|
"$ref": "ExtensionURL"
|
|
2342
2342
|
},
|
|
2343
2343
|
"images": {
|
|
@@ -3494,7 +3494,7 @@
|
|
|
3494
3494
|
{
|
|
3495
3495
|
"id": "ContactProperties",
|
|
3496
3496
|
"type": "object",
|
|
3497
|
-
"description": "A set of individual properties for a particular contact, and its vCard string. Further information can be found in :
|
|
3497
|
+
"description": "A set of individual properties for a particular contact, and its vCard string. Further information can be found in :doc:`examples/vcard`.",
|
|
3498
3498
|
"patternProperties": {
|
|
3499
3499
|
"^\\w+$": {
|
|
3500
3500
|
"choices": [
|
|
@@ -4114,7 +4114,7 @@
|
|
|
4114
4114
|
"preprocess": "localize"
|
|
4115
4115
|
},
|
|
4116
4116
|
"default_icon": {
|
|
4117
|
-
"$ref": "IconPath",
|
|
4117
|
+
"$ref": "manifest.IconPath",
|
|
4118
4118
|
"description": "The paths to one or more icons for the action button.",
|
|
4119
4119
|
"optional": true
|
|
4120
4120
|
},
|
|
@@ -4213,7 +4213,7 @@
|
|
|
4213
4213
|
"preprocess": "localize"
|
|
4214
4214
|
},
|
|
4215
4215
|
"default_icon": {
|
|
4216
|
-
"$ref": "IconPath",
|
|
4216
|
+
"$ref": "manifest.IconPath",
|
|
4217
4217
|
"description": "The paths to one or more icons for the browserAction button.",
|
|
4218
4218
|
"optional": true
|
|
4219
4219
|
},
|
|
@@ -5712,7 +5712,7 @@
|
|
|
5712
5712
|
"properties": {
|
|
5713
5713
|
"id": {
|
|
5714
5714
|
"type": "string",
|
|
5715
|
-
"description": "The ID of a contact or mailing list from the :doc:`contacts` and :doc:`mailingLists
|
|
5715
|
+
"description": "The ID of a contact or mailing list from the :doc:`contacts` and :doc:`mailingLists`."
|
|
5716
5716
|
},
|
|
5717
5717
|
"type": {
|
|
5718
5718
|
"type": "string",
|
|
@@ -5762,7 +5762,7 @@
|
|
|
5762
5762
|
"properties": {
|
|
5763
5763
|
"identityId": {
|
|
5764
5764
|
"type": "string",
|
|
5765
|
-
"description": "The ID of an identity from the :doc:`accounts
|
|
5765
|
+
"description": "The ID of an identity from the :doc:`accounts`. The settings from the identity will be used in the composed message. If ``replyTo`` is also specified, the ``replyTo`` property of the identity is overridden. The permission <permission>accountsRead</permission> is required to include the ``identityId``.",
|
|
5766
5766
|
"optional": true
|
|
5767
5767
|
},
|
|
5768
5768
|
"from": {
|
|
@@ -5848,7 +5848,7 @@
|
|
|
5848
5848
|
},
|
|
5849
5849
|
"relatedMessageId": {
|
|
5850
5850
|
"description": "The id of the original message (in case of draft, template, forward or reply). Read-only. Is <value>null</value> in all other cases or if the original message was opened from file.",
|
|
5851
|
-
"
|
|
5851
|
+
"$ref": "messages.MessageId",
|
|
5852
5852
|
"optional": true
|
|
5853
5853
|
},
|
|
5854
5854
|
"subject": {
|
|
@@ -6224,9 +6224,8 @@
|
|
|
6224
6224
|
{
|
|
6225
6225
|
"name": "messageId",
|
|
6226
6226
|
"description": "If specified, the message or template to edit as a new message.",
|
|
6227
|
-
"
|
|
6228
|
-
"optional": true
|
|
6229
|
-
"minimum": 1
|
|
6227
|
+
"$ref": "messages.MessageId",
|
|
6228
|
+
"optional": true
|
|
6230
6229
|
},
|
|
6231
6230
|
{
|
|
6232
6231
|
"name": "details",
|
|
@@ -6255,8 +6254,7 @@
|
|
|
6255
6254
|
{
|
|
6256
6255
|
"name": "messageId",
|
|
6257
6256
|
"description": "The message to reply to, as retrieved using other APIs.",
|
|
6258
|
-
"
|
|
6259
|
-
"minimum": 1
|
|
6257
|
+
"$ref": "messages.MessageId"
|
|
6260
6258
|
},
|
|
6261
6259
|
{
|
|
6262
6260
|
"name": "replyType",
|
|
@@ -6295,8 +6293,7 @@
|
|
|
6295
6293
|
{
|
|
6296
6294
|
"name": "messageId",
|
|
6297
6295
|
"description": "The message to forward, as retrieved using other APIs.",
|
|
6298
|
-
"
|
|
6299
|
-
"minimum": 1
|
|
6296
|
+
"$ref": "messages.MessageId"
|
|
6300
6297
|
},
|
|
6301
6298
|
{
|
|
6302
6299
|
"name": "forwardType",
|
|
@@ -6733,7 +6730,7 @@
|
|
|
6733
6730
|
"preprocess": "localize"
|
|
6734
6731
|
},
|
|
6735
6732
|
"default_icon": {
|
|
6736
|
-
"$ref": "IconPath",
|
|
6733
|
+
"$ref": "manifest.IconPath",
|
|
6737
6734
|
"description": "The paths to one or more icons for the composeAction button.",
|
|
6738
6735
|
"optional": true
|
|
6739
6736
|
},
|
|
@@ -7819,6 +7816,12 @@
|
|
|
7819
7816
|
}
|
|
7820
7817
|
}
|
|
7821
7818
|
],
|
|
7819
|
+
"properties": {
|
|
7820
|
+
"DEFAULT_MOST_RECENT_LIMIT": {
|
|
7821
|
+
"value": -1,
|
|
7822
|
+
"description": "The number of most recent folders used in Thunderbird's UI. Controled by the <value>mail.folder_widget.max_recent</value> preference."
|
|
7823
|
+
}
|
|
7824
|
+
},
|
|
7822
7825
|
"functions": [
|
|
7823
7826
|
{
|
|
7824
7827
|
"name": "query",
|
|
@@ -7930,10 +7933,10 @@
|
|
|
7930
7933
|
"optional": true,
|
|
7931
7934
|
"description": "Whether the folder is a root folder, or not."
|
|
7932
7935
|
},
|
|
7933
|
-
"
|
|
7934
|
-
"type": "
|
|
7936
|
+
"limit": {
|
|
7937
|
+
"type": "integer",
|
|
7935
7938
|
"optional": true,
|
|
7936
|
-
"description": "
|
|
7939
|
+
"description": "Limits the number of returned folders. If used together with <value>recent</value>, supports being set to :ref:`folders.DEFAULT_MOST_RECENT_LIMIT`"
|
|
7937
7940
|
},
|
|
7938
7941
|
"name": {
|
|
7939
7942
|
"choices": [
|
|
@@ -7962,7 +7965,7 @@
|
|
|
7962
7965
|
"recent": {
|
|
7963
7966
|
"type": "boolean",
|
|
7964
7967
|
"optional": true,
|
|
7965
|
-
"description": "Whether the folder (excluding subfolders) has been used within the last month, or not. The returned folders will be sorted by their recentness.
|
|
7968
|
+
"description": "Whether the folder (excluding subfolders) has been used within the last month, or not. The returned folders will be sorted by their recentness."
|
|
7966
7969
|
},
|
|
7967
7970
|
"specialUse": {
|
|
7968
7971
|
"type": "array",
|
|
@@ -9266,7 +9269,7 @@
|
|
|
9266
9269
|
"type": "array",
|
|
9267
9270
|
"description": "The IDs of the messages, which should be selected. The mail tab will switch to the folder of the selected messages. Throws if they belong to different folders. Array can be empty to deselect any currently selected message.",
|
|
9268
9271
|
"items": {
|
|
9269
|
-
"
|
|
9272
|
+
"$ref": "messages.MessageId"
|
|
9270
9273
|
}
|
|
9271
9274
|
}
|
|
9272
9275
|
]
|
|
@@ -9762,6 +9765,37 @@
|
|
|
9762
9765
|
}
|
|
9763
9766
|
}
|
|
9764
9767
|
}
|
|
9768
|
+
},
|
|
9769
|
+
{
|
|
9770
|
+
"id": "SingleMenuIconPath",
|
|
9771
|
+
"choices": [
|
|
9772
|
+
{
|
|
9773
|
+
"type": "string",
|
|
9774
|
+
"format": "imageDataOrStrictRelativeUrl"
|
|
9775
|
+
},
|
|
9776
|
+
{
|
|
9777
|
+
"type": "string",
|
|
9778
|
+
"pattern": "^(moz-extension|blob):.*$"
|
|
9779
|
+
}
|
|
9780
|
+
],
|
|
9781
|
+
"description": "The provided path may be a relative path to an icon file, an image <value>data:</value> URL, a <value>blob:</value> URL or a <value>moz-extension:<value> URL. The <value>data:</value> or <value>blob:</value> URLs can be retrieved as follows: <literalinclude>includes/DataBlobUrls.js<lang>JavaScript</lang></literalinclude>,"
|
|
9782
|
+
},
|
|
9783
|
+
{
|
|
9784
|
+
"id": "MenuIconPath",
|
|
9785
|
+
"choices": [
|
|
9786
|
+
{
|
|
9787
|
+
"$ref": "SingleMenuIconPath"
|
|
9788
|
+
},
|
|
9789
|
+
{
|
|
9790
|
+
"type": "object",
|
|
9791
|
+
"patternProperties": {
|
|
9792
|
+
"^[1-9]\\d*$": {
|
|
9793
|
+
"$ref": "SingleMenuIconPath"
|
|
9794
|
+
}
|
|
9795
|
+
}
|
|
9796
|
+
}
|
|
9797
|
+
],
|
|
9798
|
+
"description": "Either a <em>string</em> to specify a single icon path to be used for all sizes, or a <em>dictionary object</em> to specify paths for multiple icons in different sizes, so the icon does not have to be scaled for a device with a different pixel density. Each entry is a <em>name-value</em> pair with <em>name</em> being a size and <em>value</em> being a path to the icon for the specified size. Example: <literalinclude>includes/IconPath.json<lang>JSON</lang></literalinclude>See the `MDN documentation about choosing icon sizes <https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_action#choosing_icon_sizes>`__ for more information on this. "
|
|
9765
9799
|
}
|
|
9766
9800
|
],
|
|
9767
9801
|
"functions": [
|
|
@@ -9796,7 +9830,7 @@
|
|
|
9796
9830
|
"description": "The unique ID to assign to this item. Mandatory for event pages. Cannot be the same as another ID for this extension."
|
|
9797
9831
|
},
|
|
9798
9832
|
"icons": {
|
|
9799
|
-
"$ref": "
|
|
9833
|
+
"$ref": "MenuIconPath",
|
|
9800
9834
|
"optional": true,
|
|
9801
9835
|
"description": "Custom icons to display next to the menu item. Custom icons can only be set for items appearing in submenus."
|
|
9802
9836
|
},
|
|
@@ -9937,7 +9971,7 @@
|
|
|
9937
9971
|
"optional": true
|
|
9938
9972
|
},
|
|
9939
9973
|
"icons": {
|
|
9940
|
-
"$ref": "
|
|
9974
|
+
"$ref": "MenuIconPath",
|
|
9941
9975
|
"optional": "omit-key-if-missing"
|
|
9942
9976
|
},
|
|
9943
9977
|
"title": {
|
|
@@ -10312,9 +10346,8 @@
|
|
|
10312
10346
|
"description": "The DOM file object of a message to be opened."
|
|
10313
10347
|
},
|
|
10314
10348
|
"messageId": {
|
|
10315
|
-
"
|
|
10349
|
+
"$ref": "messages.MessageId",
|
|
10316
10350
|
"optional": true,
|
|
10317
|
-
"minimum": 1,
|
|
10318
10351
|
"description": "The id of a message to be opened. Will throw an <em>ExtensionError</em>, if the provided ``messageId`` is unknown or invalid."
|
|
10319
10352
|
},
|
|
10320
10353
|
"headerMessageId": {
|
|
@@ -10385,7 +10418,7 @@
|
|
|
10385
10418
|
"preprocess": "localize"
|
|
10386
10419
|
},
|
|
10387
10420
|
"default_icon": {
|
|
10388
|
-
"$ref": "IconPath",
|
|
10421
|
+
"$ref": "manifest.IconPath",
|
|
10389
10422
|
"description": "The paths to one or more icons for the messageDisplayAction button.",
|
|
10390
10423
|
"optional": true
|
|
10391
10424
|
},
|
|
@@ -11106,6 +11139,9 @@
|
|
|
11106
11139
|
"messagesMove",
|
|
11107
11140
|
"messagesRead",
|
|
11108
11141
|
"messagesTags",
|
|
11142
|
+
"messagesTagsList",
|
|
11143
|
+
"messagesUpdate",
|
|
11144
|
+
"messagesModifyPermanent",
|
|
11109
11145
|
"sensitiveDataUpload"
|
|
11110
11146
|
]
|
|
11111
11147
|
}
|
|
@@ -11119,6 +11155,12 @@
|
|
|
11119
11155
|
"messagesRead"
|
|
11120
11156
|
],
|
|
11121
11157
|
"types": [
|
|
11158
|
+
{
|
|
11159
|
+
"id": "MessageId",
|
|
11160
|
+
"type": "integer",
|
|
11161
|
+
"minimum": 1,
|
|
11162
|
+
"description": "A unique id representing a :ref:`messages.MessageHeader` and the associated message. This id doesn’t refer to the Message-ID email header. It is an internal tracking number that does not remain after a restart. Nor does it follow an email that has been moved to a different folder."
|
|
11163
|
+
},
|
|
11122
11164
|
{
|
|
11123
11165
|
"id": "MessageHeader",
|
|
11124
11166
|
"type": "object",
|
|
@@ -11166,8 +11208,7 @@
|
|
|
11166
11208
|
"type": "boolean"
|
|
11167
11209
|
},
|
|
11168
11210
|
"id": {
|
|
11169
|
-
"
|
|
11170
|
-
"minimum": 1
|
|
11211
|
+
"$ref": "messages.MessageId"
|
|
11171
11212
|
},
|
|
11172
11213
|
"junk": {
|
|
11173
11214
|
"description": "Whether the message has been marked as junk. Always <value>false</value> for news/nntp messages and external messages.",
|
|
@@ -11215,7 +11256,7 @@
|
|
|
11215
11256
|
{
|
|
11216
11257
|
"id": "MessageList",
|
|
11217
11258
|
"type": "object",
|
|
11218
|
-
"description": "See :doc:`
|
|
11259
|
+
"description": "See :doc:`examples/messageLists` for more information.",
|
|
11219
11260
|
"properties": {
|
|
11220
11261
|
"id": {
|
|
11221
11262
|
"type": "string",
|
|
@@ -11306,7 +11347,7 @@
|
|
|
11306
11347
|
},
|
|
11307
11348
|
"tags": {
|
|
11308
11349
|
"type": "array",
|
|
11309
|
-
"description": "Tags associated with this message. For a list of available tags, call the
|
|
11350
|
+
"description": "Tags associated with this message. For a list of available tags, call the :ref:`messages.tags.list` method.",
|
|
11310
11351
|
"optional": true,
|
|
11311
11352
|
"items": {
|
|
11312
11353
|
"type": "string"
|
|
@@ -11321,7 +11362,7 @@
|
|
|
11321
11362
|
"properties": {
|
|
11322
11363
|
"contentType": {
|
|
11323
11364
|
"type": "string",
|
|
11324
|
-
"description": "The content type of the attachment."
|
|
11365
|
+
"description": "The content type of the attachment. A value of <value>text/x-moz-deleted</value> indicates that the original attachment was permanently deleted and replaced by a placeholder text attachment with some meta information about the original attachment."
|
|
11325
11366
|
},
|
|
11326
11367
|
"name": {
|
|
11327
11368
|
"type": "string",
|
|
@@ -11491,7 +11532,7 @@
|
|
|
11491
11532
|
{
|
|
11492
11533
|
"name": "continueList",
|
|
11493
11534
|
"type": "function",
|
|
11494
|
-
"description": "Returns the next chunk of messages in a list. See :doc:`
|
|
11535
|
+
"description": "Returns the next chunk of messages in a list. See :doc:`examples/messageLists` for more information.",
|
|
11495
11536
|
"async": "callback",
|
|
11496
11537
|
"parameters": [
|
|
11497
11538
|
{
|
|
@@ -11530,7 +11571,7 @@
|
|
|
11530
11571
|
"parameters": [
|
|
11531
11572
|
{
|
|
11532
11573
|
"name": "messageId",
|
|
11533
|
-
"
|
|
11574
|
+
"$ref": "messages.MessageId"
|
|
11534
11575
|
},
|
|
11535
11576
|
{
|
|
11536
11577
|
"type": "function",
|
|
@@ -11552,7 +11593,7 @@
|
|
|
11552
11593
|
"parameters": [
|
|
11553
11594
|
{
|
|
11554
11595
|
"name": "messageId",
|
|
11555
|
-
"
|
|
11596
|
+
"$ref": "messages.MessageId"
|
|
11556
11597
|
},
|
|
11557
11598
|
{
|
|
11558
11599
|
"type": "function",
|
|
@@ -11574,7 +11615,7 @@
|
|
|
11574
11615
|
"parameters": [
|
|
11575
11616
|
{
|
|
11576
11617
|
"name": "messageId",
|
|
11577
|
-
"
|
|
11618
|
+
"$ref": "messages.MessageId"
|
|
11578
11619
|
},
|
|
11579
11620
|
{
|
|
11580
11621
|
"name": "options",
|
|
@@ -11634,7 +11675,7 @@
|
|
|
11634
11675
|
"parameters": [
|
|
11635
11676
|
{
|
|
11636
11677
|
"name": "messageId",
|
|
11637
|
-
"
|
|
11678
|
+
"$ref": "messages.MessageId"
|
|
11638
11679
|
},
|
|
11639
11680
|
{
|
|
11640
11681
|
"type": "function",
|
|
@@ -11659,7 +11700,7 @@
|
|
|
11659
11700
|
"parameters": [
|
|
11660
11701
|
{
|
|
11661
11702
|
"name": "messageId",
|
|
11662
|
-
"
|
|
11703
|
+
"$ref": "messages.MessageId"
|
|
11663
11704
|
},
|
|
11664
11705
|
{
|
|
11665
11706
|
"name": "partName",
|
|
@@ -11680,6 +11721,31 @@
|
|
|
11680
11721
|
}
|
|
11681
11722
|
]
|
|
11682
11723
|
},
|
|
11724
|
+
{
|
|
11725
|
+
"name": "deleteAttachments",
|
|
11726
|
+
"type": "function",
|
|
11727
|
+
"description": "Deletes the specified attachments and replaces them by placeholder text attachments with meta information about the original attachments and a <value>text/x-moz-deleted</value> content type. This permanently modifies the message.",
|
|
11728
|
+
"permissions": [
|
|
11729
|
+
"messagesModifyPermanent"
|
|
11730
|
+
],
|
|
11731
|
+
"async": true,
|
|
11732
|
+
"parameters": [
|
|
11733
|
+
{
|
|
11734
|
+
"name": "messageId",
|
|
11735
|
+
"type": "integer"
|
|
11736
|
+
},
|
|
11737
|
+
{
|
|
11738
|
+
"name": "partNames",
|
|
11739
|
+
"type": "array",
|
|
11740
|
+
"description": "An array of attachments, identifiying the to be detached attachments by their <value>partName</value>.",
|
|
11741
|
+
"items": {
|
|
11742
|
+
"type": "string",
|
|
11743
|
+
"pattern": "^\\d+(\\.\\d+)*$"
|
|
11744
|
+
},
|
|
11745
|
+
"minItems": 1
|
|
11746
|
+
}
|
|
11747
|
+
]
|
|
11748
|
+
},
|
|
11683
11749
|
{
|
|
11684
11750
|
"name": "openAttachment",
|
|
11685
11751
|
"type": "function",
|
|
@@ -11688,7 +11754,7 @@
|
|
|
11688
11754
|
"parameters": [
|
|
11689
11755
|
{
|
|
11690
11756
|
"name": "messageId",
|
|
11691
|
-
"
|
|
11757
|
+
"$ref": "messages.MessageId"
|
|
11692
11758
|
},
|
|
11693
11759
|
{
|
|
11694
11760
|
"name": "partName",
|
|
@@ -11801,7 +11867,7 @@
|
|
|
11801
11867
|
"tags": {
|
|
11802
11868
|
"$ref": "messages.tags.TagsDetail",
|
|
11803
11869
|
"optional": true,
|
|
11804
|
-
"description": "Returns only messages with the specified tags. For a list of available tags, call the :ref:`messages.
|
|
11870
|
+
"description": "Returns only messages with the specified tags. For a list of available tags, call the :ref:`messages.tags.list` method."
|
|
11805
11871
|
},
|
|
11806
11872
|
"toDate": {
|
|
11807
11873
|
"$ref": "extensionTypes.Date",
|
|
@@ -11879,13 +11945,15 @@
|
|
|
11879
11945
|
{
|
|
11880
11946
|
"name": "update",
|
|
11881
11947
|
"type": "function",
|
|
11882
|
-
"description": "
|
|
11948
|
+
"description": "Updates message properties and tags. Updating external messages will throw an <em>ExtensionError</em>.",
|
|
11883
11949
|
"async": true,
|
|
11950
|
+
"permissions": [
|
|
11951
|
+
"messagesUpdate"
|
|
11952
|
+
],
|
|
11884
11953
|
"parameters": [
|
|
11885
11954
|
{
|
|
11886
11955
|
"name": "messageId",
|
|
11887
|
-
"
|
|
11888
|
-
"minimum": 1
|
|
11956
|
+
"$ref": "messages.MessageId"
|
|
11889
11957
|
},
|
|
11890
11958
|
{
|
|
11891
11959
|
"name": "newProperties",
|
|
@@ -11908,8 +11976,7 @@
|
|
|
11908
11976
|
"type": "array",
|
|
11909
11977
|
"description": "The IDs of the messages to move.",
|
|
11910
11978
|
"items": {
|
|
11911
|
-
"
|
|
11912
|
-
"minimum": 1
|
|
11979
|
+
"$ref": "messages.MessageId"
|
|
11913
11980
|
}
|
|
11914
11981
|
},
|
|
11915
11982
|
{
|
|
@@ -11943,8 +12010,7 @@
|
|
|
11943
12010
|
"type": "array",
|
|
11944
12011
|
"description": "The IDs of the messages to copy.",
|
|
11945
12012
|
"items": {
|
|
11946
|
-
"
|
|
11947
|
-
"minimum": 1
|
|
12013
|
+
"$ref": "messages.MessageId"
|
|
11948
12014
|
}
|
|
11949
12015
|
},
|
|
11950
12016
|
{
|
|
@@ -11977,8 +12043,7 @@
|
|
|
11977
12043
|
"type": "array",
|
|
11978
12044
|
"description": "The IDs of the messages to delete.",
|
|
11979
12045
|
"items": {
|
|
11980
|
-
"
|
|
11981
|
-
"minimum": 1
|
|
12046
|
+
"$ref": "messages.MessageId"
|
|
11982
12047
|
}
|
|
11983
12048
|
},
|
|
11984
12049
|
{
|
|
@@ -12050,8 +12115,7 @@
|
|
|
12050
12115
|
"type": "array",
|
|
12051
12116
|
"description": "The IDs of the messages to archive.",
|
|
12052
12117
|
"items": {
|
|
12053
|
-
"
|
|
12054
|
-
"minimum": 1
|
|
12118
|
+
"$ref": "messages.MessageId"
|
|
12055
12119
|
}
|
|
12056
12120
|
}
|
|
12057
12121
|
]
|
|
@@ -12168,9 +12232,6 @@
|
|
|
12168
12232
|
},
|
|
12169
12233
|
{
|
|
12170
12234
|
"namespace": "messages.tags",
|
|
12171
|
-
"permissions": [
|
|
12172
|
-
"messagesRead"
|
|
12173
|
-
],
|
|
12174
12235
|
"types": [
|
|
12175
12236
|
{
|
|
12176
12237
|
"id": "MessageTag",
|
|
@@ -12201,7 +12262,7 @@
|
|
|
12201
12262
|
"properties": {
|
|
12202
12263
|
"tags": {
|
|
12203
12264
|
"type": "object",
|
|
12204
|
-
"description": "A <em>dictionary object</em> with one or more filter condition as <em>key-value</em> pairs, the <em>key</em> being the tag to filter on, and the <em>value</em> being a boolean expression, requesting whether a message must include (<value>true</value>) or exclude (<value>false</value>) the tag. For a list of available tags, call the :ref:`messages.
|
|
12265
|
+
"description": "A <em>dictionary object</em> with one or more filter condition as <em>key-value</em> pairs, the <em>key</em> being the tag to filter on, and the <em>value</em> being a boolean expression, requesting whether a message must include (<value>true</value>) or exclude (<value>false</value>) the tag. For a list of available tags, call the :ref:`messages.tags.list` method.",
|
|
12205
12266
|
"patternProperties": {
|
|
12206
12267
|
".*": {
|
|
12207
12268
|
"type": "boolean"
|
|
@@ -12225,6 +12286,9 @@
|
|
|
12225
12286
|
"type": "function",
|
|
12226
12287
|
"description": "Returns a list of tags that can be set on messages, and their human-friendly name, colour, and sort order.",
|
|
12227
12288
|
"async": "callback",
|
|
12289
|
+
"permissions": [
|
|
12290
|
+
"messagesTagsList"
|
|
12291
|
+
],
|
|
12228
12292
|
"parameters": [
|
|
12229
12293
|
{
|
|
12230
12294
|
"type": "function",
|