webext-schema 5.3.3 → 5.3.4

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 CHANGED
@@ -23,12 +23,12 @@
23
23
  "@types/firefox-webext-browser": "^120.0.3",
24
24
  "@types/node": "^20.14.2",
25
25
  "@types/sinon": "^17.0.3",
26
- "c8": "^9.1.0",
26
+ "c8": "^10.1.2",
27
27
  "chai": "^5.1.1",
28
28
  "eslint": "^8.57.0",
29
29
  "eslint-config-standard": "^17.1.0",
30
30
  "eslint-plugin-import": "^2.29.1",
31
- "eslint-plugin-jsdoc": "^48.2.9",
31
+ "eslint-plugin-jsdoc": "^48.2.11",
32
32
  "eslint-plugin-regexp": "^2.6.0",
33
33
  "eslint-plugin-unicorn": "^53.0.0",
34
34
  "mocha": "^10.4.0",
@@ -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.3.3"
57
+ "version": "5.3.4"
58
58
  }
@@ -918,7 +918,7 @@
918
918
  },
919
919
  {
920
920
  "name": "tab",
921
- "$ref": "tags.Tab",
921
+ "$ref": "tabs.Tab",
922
922
  "optional": true,
923
923
  "description": "Details of the $(ref:tabs.Tab) where the command was activated."
924
924
  }
@@ -8723,13 +8723,23 @@
8723
8723
  "matchAboutBlank": {
8724
8724
  "type": "boolean",
8725
8725
  "optional": true,
8726
- "description": "If matchAboutBlank is true, then the code is also injected in about:blank and about:srcdoc frames if your extension has access to its parent document. Code cannot be inserted in top-level about:-frames. By default it is <code>false</code>."
8726
+ "description": "If matchAboutBlank is true, then the code is also injected in about:blank and about:srcdoc frames if your extension has access to its parent document. Ignored if matchOriginAsFallback is specified. By default it is <code>false</code>."
8727
+ },
8728
+ "matchOriginAsFallback": {
8729
+ "type": "boolean",
8730
+ "optional": true,
8731
+ "description": "If matchOriginAsFallback is true, then the code is also injected in about:, data:, blob: when their origin matches the pattern in 'matches', even if the actual document origin is opaque (due to the use of CSP sandbox or iframe sandbox). Match patterns in 'matches' must specify a wildcard path glob. By default it is <code>false</code>."
8727
8732
  },
8728
8733
  "runAt": {
8729
8734
  "$ref": "extensionTypes.RunAt",
8730
8735
  "optional": true,
8731
8736
  "description": "The soonest that the JavaScript or CSS will be injected into the tab. Defaults to \"document_idle\"."
8732
8737
  },
8738
+ "world": {
8739
+ "$ref": "extensionTypes.ExecutionWorld",
8740
+ "optional": true,
8741
+ "description": "The JavaScript world for a script to execute within. Defaults to \"ISOLATED\"."
8742
+ },
8733
8743
  "cookieStoreId": {
8734
8744
  "choices": [
8735
8745
  {
@@ -10094,7 +10104,7 @@
10094
10104
  {
10095
10105
  "name": "updateEnabledRulesets",
10096
10106
  "type": "function",
10097
- "description": "Returns the ids for the current set of enabled static rulesets.",
10107
+ "description": "Modifies the static rulesets enabled/disabled state.",
10098
10108
  "async": "callback",
10099
10109
  "parameters": [
10100
10110
  {
@@ -10126,6 +10136,44 @@
10126
10136
  }
10127
10137
  ]
10128
10138
  },
10139
+ {
10140
+ "name": "updateStaticRules",
10141
+ "type": "function",
10142
+ "description": "Modified individual static rules enabled/disabled state. Changes to rules belonging to a disabled ruleset will take effect when the ruleset becomes enabled.",
10143
+ "async": "callback",
10144
+ "parameters": [
10145
+ {
10146
+ "name": "options",
10147
+ "type": "object",
10148
+ "properties": {
10149
+ "rulesetId": {
10150
+ "type": "string"
10151
+ },
10152
+ "disableRuleIds": {
10153
+ "type": "array",
10154
+ "items": {
10155
+ "type": "integer"
10156
+ },
10157
+ "optional": true,
10158
+ "default": []
10159
+ },
10160
+ "enableRuleIds": {
10161
+ "type": "array",
10162
+ "items": {
10163
+ "type": "integer"
10164
+ },
10165
+ "optional": true,
10166
+ "default": []
10167
+ }
10168
+ }
10169
+ },
10170
+ {
10171
+ "name": "callback",
10172
+ "type": "function",
10173
+ "parameters": []
10174
+ }
10175
+ ]
10176
+ },
10129
10177
  {
10130
10178
  "name": "getAvailableStaticRuleCount",
10131
10179
  "type": "function",
@@ -10144,6 +10192,36 @@
10144
10192
  }
10145
10193
  ]
10146
10194
  },
10195
+ {
10196
+ "name": "getDisabledRuleIds",
10197
+ "type": "function",
10198
+ "description": "Returns the list of individual disabled static rules from a given static ruleset id.",
10199
+ "async": "callback",
10200
+ "parameters": [
10201
+ {
10202
+ "name": "options",
10203
+ "type": "object",
10204
+ "properties": {
10205
+ "rulesetId": {
10206
+ "type": "string"
10207
+ }
10208
+ }
10209
+ },
10210
+ {
10211
+ "name": "callback",
10212
+ "type": "function",
10213
+ "parameters": [
10214
+ {
10215
+ "name": "disabledRuleIds",
10216
+ "type": "array",
10217
+ "items": {
10218
+ "type": "integer"
10219
+ }
10220
+ }
10221
+ ]
10222
+ }
10223
+ ]
10224
+ },
10147
10225
  {
10148
10226
  "name": "getDynamicRules",
10149
10227
  "type": "function",
@@ -10339,13 +10417,25 @@
10339
10417
  "type": "number",
10340
10418
  "description": "The maximum number of static Rulesets an extension can specify as part of the rule_resources manifest key."
10341
10419
  },
10420
+ "MAX_NUMBER_OF_DISABLED_STATIC_RULES": {
10421
+ "type": "number",
10422
+ "description": "The maximum number of static rules that can be disabled on each static ruleset."
10423
+ },
10342
10424
  "MAX_NUMBER_OF_ENABLED_STATIC_RULESETS": {
10343
10425
  "type": "number",
10344
10426
  "description": "The maximum number of static Rulesets an extension can enable at any one time."
10345
10427
  },
10346
10428
  "MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES": {
10347
10429
  "type": "number",
10348
- "description": "The maximum number of dynamic and session rules an extension can add. NOTE: in the Firefox we are enforcing this limit to the session and dynamic rules count separately, instead of enforcing it to the rules count for both combined as the Chrome implementation does."
10430
+ "description": "Deprecated property returning the maximum number of dynamic and session rules an extension can add, replaced by MAX_NUMBER_OF_DYNAMIC_RULES/MAX_NUMBER_OF_SESSION_RULES."
10431
+ },
10432
+ "MAX_NUMBER_OF_DYNAMIC_RULES": {
10433
+ "type": "number",
10434
+ "description": "The maximum number of dynamic session rules an extension can add."
10435
+ },
10436
+ "MAX_NUMBER_OF_SESSION_RULES": {
10437
+ "type": "number",
10438
+ "description": "The maximum number of dynamic session rules an extension can add."
10349
10439
  },
10350
10440
  "MAX_NUMBER_OF_REGEX_RULES": {
10351
10441
  "type": "number",
@@ -12075,6 +12165,15 @@
12075
12165
  ],
12076
12166
  "description": "The soonest that the JavaScript or CSS will be injected into the tab."
12077
12167
  },
12168
+ {
12169
+ "id": "ExecutionWorld",
12170
+ "type": "string",
12171
+ "enum": [
12172
+ "ISOLATED",
12173
+ "MAIN"
12174
+ ],
12175
+ "description": "The JavaScript world for a script to execute within. <code>ISOLATED</code> is the default execution environment of content scripts, <code>MAIN</code> is the web page's execution environment."
12176
+ },
12078
12177
  {
12079
12178
  "id": "CSSOrigin",
12080
12179
  "type": "string",
@@ -13616,6 +13715,16 @@
13616
13715
  "optional": true,
13617
13716
  "default": []
13618
13717
  },
13718
+ "optional_host_permissions": {
13719
+ "min_manifest_version": 3,
13720
+ "type": "array",
13721
+ "items": {
13722
+ "$ref": "MatchPattern",
13723
+ "onError": "warn"
13724
+ },
13725
+ "optional": true,
13726
+ "default": []
13727
+ },
13619
13728
  "optional_permissions": {
13620
13729
  "type": "array",
13621
13730
  "items": {
@@ -13980,6 +14089,9 @@
13980
14089
  "type": "string",
13981
14090
  "optional": true
13982
14091
  }
14092
+ },
14093
+ "additionalProperties": {
14094
+ "$ref": "UnrecognizedProperty"
13983
14095
  }
13984
14096
  },
13985
14097
  {
@@ -13996,7 +14108,7 @@
13996
14108
  }
13997
14109
  },
13998
14110
  "additionalProperties": {
13999
- "type": "any"
14111
+ "$ref": "UnrecognizedProperty"
14000
14112
  }
14001
14113
  },
14002
14114
  {
@@ -14137,13 +14249,24 @@
14137
14249
  "match_about_blank": {
14138
14250
  "type": "boolean",
14139
14251
  "optional": true,
14140
- "description": "If matchAboutBlank is true, then the code is also injected in about:blank and about:srcdoc frames if your extension has access to its parent document. Code cannot be inserted in top-level about:-frames. By default it is <code>false</code>."
14252
+ "description": "If match_about_blank is true, then the code is also injected in about:blank and about:srcdoc frames if your extension has access to its parent document. Ignored if match_origin_as_fallback is specified. By default it is <code>false</code>."
14253
+ },
14254
+ "match_origin_as_fallback": {
14255
+ "type": "boolean",
14256
+ "optional": true,
14257
+ "description": "If match_origin_as_fallback is true, then the code is also injected in about:, data:, blob: when their origin matches the pattern in 'matches', even if the actual document origin is opaque (due to the use of CSP sandbox or iframe sandbox). Match patterns in 'matches' must specify a wildcard path glob. By default it is <code>false</code>."
14141
14258
  },
14142
14259
  "run_at": {
14143
14260
  "$ref": "extensionTypes.RunAt",
14144
14261
  "optional": true,
14145
14262
  "default": "document_idle",
14146
14263
  "description": "The soonest that the JavaScript or CSS will be injected into the tab. Defaults to \"document_idle\"."
14264
+ },
14265
+ "world": {
14266
+ "$ref": "extensionTypes.ExecutionWorld",
14267
+ "optional": true,
14268
+ "default": "ISOLATED",
14269
+ "description": "The JavaScript world for a script to execute within. Defaults to \"ISOLATED\"."
14147
14270
  }
14148
14271
  }
14149
14272
  },
@@ -15392,7 +15515,7 @@
15392
15515
  "proxyDNS": {
15393
15516
  "type": "boolean",
15394
15517
  "optional": true,
15395
- "description": "Proxy DNS when using SOCKS v5."
15518
+ "description": "Proxy DNS when using SOCKS. DNS queries get leaked to the network when set to false. True by default for SOCKS v5. False by default for SOCKS v4."
15396
15519
  },
15397
15520
  "respectBeConservative": {
15398
15521
  "type": "boolean",
@@ -16895,9 +17018,10 @@
16895
17018
  "id": "ExecutionWorld",
16896
17019
  "type": "string",
16897
17020
  "enum": [
16898
- "ISOLATED"
17021
+ "ISOLATED",
17022
+ "MAIN"
16899
17023
  ],
16900
- "description": "The JavaScript world for a script to execute within. We currently only support the <code>'ISOLATED'</code> world."
17024
+ "description": "The JavaScript world for a script to execute within. <code>ISOLATED</code> is the default execution environment of content scripts, <code>MAIN</code> is the web page's execution environment."
16901
17025
  },
16902
17026
  {
16903
17027
  "id": "RegisteredContentScript",
@@ -16936,11 +17060,21 @@
16936
17060
  "type": "string"
16937
17061
  }
16938
17062
  },
17063
+ "matchOriginAsFallback": {
17064
+ "type": "boolean",
17065
+ "optional": true,
17066
+ "description": "If matchOriginAsFallback is true, then the code is also injected in about:, data:, blob: when their origin matches the pattern in 'matches', even if the actual document origin is opaque (due to the use of CSP sandbox or iframe sandbox). Match patterns in 'matches' must specify a wildcard path glob. By default it is <code>false</code>."
17067
+ },
16939
17068
  "runAt": {
16940
17069
  "$ref": "extensionTypes.RunAt",
16941
17070
  "optional": true,
16942
17071
  "description": "Specifies when JavaScript files are injected into the web page. The preferred and default value is <code>document_idle</code>."
16943
17072
  },
17073
+ "world": {
17074
+ "$ref": "ExecutionWorld",
17075
+ "optional": true,
17076
+ "description": "The JavaScript world for a script to execute within. Defaults to \"ISOLATED\"."
17077
+ },
16944
17078
  "persistAcrossSessions": {
16945
17079
  "type": "boolean",
16946
17080
  "optional": true,
@@ -21004,7 +21138,7 @@
21004
21138
  {
21005
21139
  "type": "function",
21006
21140
  "optional": true,
21007
- "name": "callback",
21141
+ "name": "asyncCallback",
21008
21142
  "parameters": [
21009
21143
  {
21010
21144
  "name": "response",
@@ -21023,6 +21157,7 @@
21023
21157
  "type": "array",
21024
21158
  "optional": true,
21025
21159
  "name": "extraInfoSpec",
21160
+ "postprocess": "mutuallyExclusiveBlockingOrAsyncBlocking",
21026
21161
  "description": "Array of extra information that should be passed to the listener function.",
21027
21162
  "items": {
21028
21163
  "$ref": "OnAuthRequiredOptions"
@@ -3174,7 +3174,7 @@
3174
3174
  "optional": true,
3175
3175
  "default": false,
3176
3176
  "type": "boolean",
3177
- "description": "Specifies whether the returned :ref:`accounts.MailAccount` objects should included their account's folders. Defaults to <value>false</value>."
3177
+ "description": "Specifies whether the returned :ref:`accounts.MailAccount` objects should include their account's folders. Defaults to <value>false</value>."
3178
3178
  },
3179
3179
  {
3180
3180
  "type": "function",
@@ -3203,7 +3203,7 @@
3203
3203
  "optional": true,
3204
3204
  "default": true,
3205
3205
  "type": "boolean",
3206
- "description": "Specifies whether the returned :ref:`accounts.MailAccount` objects should included their account's folders. Defaults to <value>true</value>."
3206
+ "description": "Specifies whether the returned :ref:`accounts.MailAccount` objects should include their account's folders. Defaults to <value>true</value>."
3207
3207
  },
3208
3208
  {
3209
3209
  "type": "function",
@@ -8444,7 +8444,7 @@
8444
8444
  "quota": {
8445
8445
  "type": "array",
8446
8446
  "items": {
8447
- "$ref": "MailFolderQuota"
8447
+ "$ref": "folders.MailFolderQuota"
8448
8448
  },
8449
8449
  "optional": true,
8450
8450
  "description": "Quota information, if available."
@@ -10488,6 +10488,37 @@
10488
10488
  }
10489
10489
  ]
10490
10490
  },
10491
+ {
10492
+ "name": "getSelectedFolders",
10493
+ "type": "function",
10494
+ "description": "Lists the selected folders in the folder pane.",
10495
+ "permissions": [
10496
+ "accountsRead"
10497
+ ],
10498
+ "async": "callback",
10499
+ "parameters": [
10500
+ {
10501
+ "name": "tabId",
10502
+ "type": "integer",
10503
+ "description": "Defaults to the active tab of the current window.",
10504
+ "optional": true,
10505
+ "minimum": 1
10506
+ },
10507
+ {
10508
+ "type": "function",
10509
+ "name": "callback",
10510
+ "optional": true,
10511
+ "parameters": [
10512
+ {
10513
+ "type": "array",
10514
+ "items": {
10515
+ "$ref": "folders.MailFolder"
10516
+ }
10517
+ }
10518
+ ]
10519
+ }
10520
+ ]
10521
+ },
10491
10522
  {
10492
10523
  "name": "getSelectedMessages",
10493
10524
  "type": "function",
@@ -10839,18 +10870,19 @@
10839
10870
  "selectedMessages": {
10840
10871
  "$ref": "messages.MessageList",
10841
10872
  "optional": true,
10842
- "description": "The selected message(s), if the context menu was opened in the message list. The <permission>messagesRead</permission> permission is required."
10873
+ "description": "The selected message(s) in the message list (a.k.a. the thread pane). Only available for the `message_list` context. The <permission>messagesRead</permission> permission is required. The returned selection includes the messages which would be affected by a context action through Thunderbirds UI, which may not be the actuall 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."
10843
10874
  },
10844
10875
  "displayedFolder": {
10845
10876
  "$ref": "folders.MailFolder",
10846
10877
  "optional": true,
10847
- "description": "The displayed folder, if the context menu was opened in the message list. The <permission>accountsRead</permission> permission is required."
10878
+ "description": "The displayed folder. Only available for the `message_list` context. The <permission>accountsRead</permission> permission is required."
10848
10879
  },
10849
10880
  "selectedFolder": {
10850
10881
  "$ref": "folders.MailFolder",
10851
10882
  "max_manifest_version": 2,
10852
10883
  "optional": true,
10853
- "description": "The selected folder, if the context menu was opened in the folder pane. The <permission>accountsRead</permission> permission is required."
10884
+ "deprecated": "Deprecated since Thunderbird 128 and removed in Manifest V3: The selectedFolder property has been replaced by the selectedFolders property.",
10885
+ "description": "The selected folder in the folder pane (where the context menu was opened). Only available for the `folder_pane` context. The <permission>accountsRead</permission> permission is required."
10854
10886
  },
10855
10887
  "selectedFolders": {
10856
10888
  "type": "array",
@@ -10858,13 +10890,14 @@
10858
10890
  "$ref": "folders.MailFolder"
10859
10891
  },
10860
10892
  "optional": true,
10861
- "description": "The selected folder(s), if the context menu was opened in the folder pane. The <permission>accountsRead</permission> permission is required."
10893
+ "description": "The selected folders in the folder pane. Only available for the `folder_pane` context. The <permission>accountsRead</permission> permission is required. The returned selection includes the folders which would be affected by a context action through Thunderbirds UI, which may not be the actuall 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."
10862
10894
  },
10863
10895
  "selectedAccount": {
10864
10896
  "$ref": "accounts.MailAccount",
10865
10897
  "max_manifest_version": 2,
10866
10898
  "optional": true,
10867
- "description": "The selected account, if the context menu was opened on an account entry in the folder pane. The <permission>accountsRead</permission> permission is required."
10899
+ "deprecated": "Deprecated since Thunderbird 128 and removed in Manifest V3: The selectedAccount property has been replaced by the selectedFolders property, returning the root folder of the account.",
10900
+ "description": "The selected account in the folder pane, if the context menu was opened on an account entry. Only available for the `folder_pane` context. The <permission>accountsRead</permission> permission is required."
10868
10901
  },
10869
10902
  "attachments": {
10870
10903
  "type": "array",
@@ -11011,18 +11044,19 @@
11011
11044
  "selectedMessages": {
11012
11045
  "$ref": "messages.MessageList",
11013
11046
  "optional": true,
11014
- "description": "The selected message(s), if the context menu was opened in the message list. The <permission>messagesRead</permission> permission is required."
11047
+ "description": "The selected message(s) in the message list (a.k.a. the thread pane). Only available for the `message_list` context. The <permission>messagesRead</permission> permission is required. The returned selection includes the messages which would be affected by a context action through Thunderbirds UI, which may not be the actuall 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."
11015
11048
  },
11016
11049
  "displayedFolder": {
11017
11050
  "$ref": "folders.MailFolder",
11018
11051
  "optional": true,
11019
- "description": "The displayed folder, if the context menu was opened in the message list. The <permission>accountsRead</permission> permission is required."
11052
+ "description": "The displayed folder. Only available for the `message_list` context. The <permission>accountsRead</permission> permission is required."
11020
11053
  },
11021
11054
  "selectedFolder": {
11022
11055
  "$ref": "folders.MailFolder",
11023
11056
  "max_manifest_version": 2,
11024
11057
  "optional": true,
11025
- "description": "The selected folder, if the context menu was opened in the folder pane. The <permission>accountsRead</permission> permission is required."
11058
+ "deprecated": "Deprecated since Thunderbird 128 and removed in Manifest V3: The selectedFolder property has been replaced by the selectedFolders property.",
11059
+ "description": "The selected folder in the folder pane (where the context menu was opened). Only available for the `folder_pane` context. The <permission>accountsRead</permission> permission is required."
11026
11060
  },
11027
11061
  "selectedFolders": {
11028
11062
  "type": "array",
@@ -11030,13 +11064,14 @@
11030
11064
  "$ref": "folders.MailFolder"
11031
11065
  },
11032
11066
  "optional": true,
11033
- "description": "The selected folder(s), if the context menu was opened in the folder pane. The <permission>accountsRead</permission> permission is required."
11067
+ "description": "The selected folders in the folder pane. Only available for the `folder_pane` context. The <permission>accountsRead</permission> permission is required. The returned selection includes the folders which would be affected by a context action through Thunderbirds UI, which may not be the actuall 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."
11034
11068
  },
11035
11069
  "selectedAccount": {
11036
11070
  "$ref": "accounts.MailAccount",
11037
11071
  "max_manifest_version": 2,
11038
11072
  "optional": true,
11039
- "description": "The selected account, if the context menu was opened on an account entry in the folder pane. The <permission>accountsRead</permission> permission is required."
11073
+ "deprecated": "Deprecated since Thunderbird 128 and removed in Manifest V3: The selectedAccount property has been replaced by the selectedFolders property, returning the root folder of the account.",
11074
+ "description": "The selected account in the folder pane, if the context menu was opened on an account entry. Only available for the `folder_pane` context. The <permission>accountsRead</permission> permission is required."
11040
11075
  },
11041
11076
  "attachments": {
11042
11077
  "type": "array",
@@ -11558,11 +11593,17 @@
11558
11593
  "$ref": "tabs.Tab"
11559
11594
  },
11560
11595
  {
11596
+ "max_manifest_version": 2,
11561
11597
  "name": "messages",
11562
11598
  "type": "array",
11563
11599
  "items": {
11564
11600
  "$ref": "messages.MessageHeader"
11565
11601
  }
11602
+ },
11603
+ {
11604
+ "min_manifest_version": 3,
11605
+ "name": "displayedMessages",
11606
+ "$ref": "messages.MessageList"
11566
11607
  }
11567
11608
  ]
11568
11609
  }
@@ -11618,10 +11659,19 @@
11618
11659
  "optional": true,
11619
11660
  "parameters": [
11620
11661
  {
11621
- "type": "array",
11622
- "items": {
11623
- "$ref": "messages.MessageHeader"
11624
- }
11662
+ "choices": [
11663
+ {
11664
+ "max_manifest_version": 2,
11665
+ "type": "array",
11666
+ "items": {
11667
+ "$ref": "messages.MessageHeader"
11668
+ }
11669
+ },
11670
+ {
11671
+ "min_manifest_version": 3,
11672
+ "$ref": "messages.MessageList"
11673
+ }
11674
+ ]
11625
11675
  }
11626
11676
  ]
11627
11677
  }
@@ -12552,6 +12602,21 @@
12552
12602
  "minimum": 1,
12553
12603
  "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."
12554
12604
  },
12605
+ {
12606
+ "id": "InlineTextPart",
12607
+ "type": "object",
12608
+ "description": "An inline part with content type <value>text/*</value>. These parts are not returned by :ref:`listAttachments` and usually make up the readable content of the message, mostly with content type <value>text/plain</value> or <value>text/html</value>",
12609
+ "properties": {
12610
+ "contentType": {
12611
+ "type": "string",
12612
+ "description": "The content type of the part. Most common types for inline text parts are <value>text/plain</value> and <value>text/html</value>. Possible other (deprecated) types are <value>text/richtext</value> and <value>text/enriched</value>. Some calendaring services include an inline text part with type <value>text/calendar</value>."
12613
+ },
12614
+ "content": {
12615
+ "type": "string",
12616
+ "description": "The content of this inline text part."
12617
+ }
12618
+ }
12619
+ },
12555
12620
  {
12556
12621
  "id": "MessageHeader",
12557
12622
  "type": "object",
@@ -12663,7 +12728,7 @@
12663
12728
  "messages": {
12664
12729
  "type": "array",
12665
12730
  "items": {
12666
- "$ref": "MessageHeader"
12731
+ "$ref": "messages.MessageHeader"
12667
12732
  }
12668
12733
  }
12669
12734
  }
@@ -12717,7 +12782,7 @@
12717
12782
  "parts": {
12718
12783
  "type": "array",
12719
12784
  "items": {
12720
- "$ref": "MessagePart"
12785
+ "$ref": "messages.MessagePart"
12721
12786
  },
12722
12787
  "description": "Any sub-parts of this part.",
12723
12788
  "optional": true
@@ -12725,7 +12790,7 @@
12725
12790
  "size": {
12726
12791
  "type": "integer",
12727
12792
  "optional": true,
12728
- "description": "The size of this part. The size of <em>message/*</em> parts is not the actual message size (on disc), but the total size of its decoded body parts, excluding headers."
12793
+ "description": "The size of this part. The size of parts with content type <em>message/rfc822</em> is not the actual message size (on disc), but the total size of its decoded body parts, excluding headers."
12729
12794
  }
12730
12795
  }
12731
12796
  },
@@ -13019,7 +13084,7 @@
13019
13084
  "optional": true,
13020
13085
  "parameters": [
13021
13086
  {
13022
- "$ref": "MessageHeader"
13087
+ "$ref": "messages.MessageHeader"
13023
13088
  }
13024
13089
  ]
13025
13090
  }
@@ -13053,7 +13118,7 @@
13053
13118
  "optional": true,
13054
13119
  "parameters": [
13055
13120
  {
13056
- "$ref": "MessagePart"
13121
+ "$ref": "messages.MessagePart"
13057
13122
  }
13058
13123
  ]
13059
13124
  }
@@ -13143,7 +13208,32 @@
13143
13208
  {
13144
13209
  "type": "array",
13145
13210
  "items": {
13146
- "$ref": "MessageAttachment"
13211
+ "$ref": "messages.MessageAttachment"
13212
+ }
13213
+ }
13214
+ ]
13215
+ }
13216
+ ]
13217
+ },
13218
+ {
13219
+ "name": "listInlineTextParts",
13220
+ "type": "function",
13221
+ "description": "Lists all inline text parts of a message. These parts are not returned by :ref:`listAttachments` and usually make up the readable content of the message, mostly with content type <value>text/plain</value> or <value>text/html</value>. If a message only includes a <value>text/html</value> part, the method :ref:`messengerUtilities.convertToPlainText` can be used to retreive a plain text version. \n\n**Note:** A message usually contains only one inline text part per subtype, but technically messages can contain multiple inline text parts per subtype.",
13222
+ "async": "callback",
13223
+ "parameters": [
13224
+ {
13225
+ "name": "messageId",
13226
+ "$ref": "messages.MessageId"
13227
+ },
13228
+ {
13229
+ "type": "function",
13230
+ "name": "callback",
13231
+ "optional": true,
13232
+ "parameters": [
13233
+ {
13234
+ "type": "array",
13235
+ "items": {
13236
+ "$ref": "messages.InlineTextPart"
13147
13237
  }
13148
13238
  }
13149
13239
  ]
@@ -13415,7 +13505,7 @@
13415
13505
  },
13416
13506
  {
13417
13507
  "name": "newProperties",
13418
- "$ref": "MessageProperties"
13508
+ "$ref": "messages.MessageProperties"
13419
13509
  }
13420
13510
  ]
13421
13511
  },