webext-schema 2.0.0 → 2.0.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/README.md +1 -0
- package/modules/update.js +10 -4
- package/package.json +10 -10
- package/schemas/beta/webext.json +10 -1
- package/schemas/central/webext.json +209 -49
- package/schemas/mail/mailext.json +433 -61
- package/schemas/release/webext.json +56 -1
|
@@ -1772,6 +1772,27 @@
|
|
|
1772
1772
|
"description": "The fully-qualified URL to the resource."
|
|
1773
1773
|
}
|
|
1774
1774
|
},
|
|
1775
|
+
{
|
|
1776
|
+
"name": "getFrameId",
|
|
1777
|
+
"type": "function",
|
|
1778
|
+
"allowedContexts": [
|
|
1779
|
+
"content",
|
|
1780
|
+
"devtools"
|
|
1781
|
+
],
|
|
1782
|
+
"description": "Get the frameId of any window global or frame element.",
|
|
1783
|
+
"parameters": [
|
|
1784
|
+
{
|
|
1785
|
+
"type": "any",
|
|
1786
|
+
"name": "target",
|
|
1787
|
+
"description": "A WindowProxy or a Browsing Context container element (IFrame, Frame, Embed, Object) for the target frame."
|
|
1788
|
+
}
|
|
1789
|
+
],
|
|
1790
|
+
"allowCrossOriginArguments": true,
|
|
1791
|
+
"returns": {
|
|
1792
|
+
"type": "number",
|
|
1793
|
+
"description": "The frameId of the target frame, or -1 if it doesn't exist."
|
|
1794
|
+
}
|
|
1795
|
+
},
|
|
1775
1796
|
{
|
|
1776
1797
|
"name": "setUninstallURL",
|
|
1777
1798
|
"type": "function",
|
|
@@ -2696,7 +2717,7 @@
|
|
|
2696
2717
|
{
|
|
2697
2718
|
"name": "getCurrent",
|
|
2698
2719
|
"type": "function",
|
|
2699
|
-
"async":
|
|
2720
|
+
"async": "callback",
|
|
2700
2721
|
"description": "Returns the current theme for the specified window or the last focused window.",
|
|
2701
2722
|
"parameters": [
|
|
2702
2723
|
{
|
|
@@ -2704,6 +2725,16 @@
|
|
|
2704
2725
|
"name": "windowId",
|
|
2705
2726
|
"optional": true,
|
|
2706
2727
|
"description": "The window for which we want the theme."
|
|
2728
|
+
},
|
|
2729
|
+
{
|
|
2730
|
+
"type": "function",
|
|
2731
|
+
"name": "callback",
|
|
2732
|
+
"optional": true,
|
|
2733
|
+
"parameters": [
|
|
2734
|
+
{
|
|
2735
|
+
"$ref": "ThemeType"
|
|
2736
|
+
}
|
|
2737
|
+
]
|
|
2707
2738
|
}
|
|
2708
2739
|
]
|
|
2709
2740
|
},
|
|
@@ -3197,7 +3228,7 @@
|
|
|
3197
3228
|
{
|
|
3198
3229
|
"name": "onSearchRequest",
|
|
3199
3230
|
"type": "function",
|
|
3200
|
-
"description": "
|
|
3231
|
+
"description": "Registering this listener will create and list a read-only address book in Thunderbird's address book window, similar to LDAP address books. When selecting this address book, users will first see no contacts, but they can search for them, which will fire this event. Contacts returned by the listener callback will be displayed as contact cards in the address book. Several listeners can be registered, to create multiple address books.\n\nThe event also fires for each registered listener (for each created read-only address book), when users type something into the mail composer's <code>To:</code> field, or into similar fields like the calendar meeting attendees field. Contacts returned by the listener callback will be added to the autocomplete results in the dropdown of that field.\n\nExample: <literalinclude>includes/addressBooks/onSearchRequest.js<lang>JavaScript</lang></literalinclude>",
|
|
3201
3232
|
"parameters": [
|
|
3202
3233
|
{
|
|
3203
3234
|
"name": "node",
|
|
@@ -3219,22 +3250,23 @@
|
|
|
3219
3250
|
"extraParameters": [
|
|
3220
3251
|
{
|
|
3221
3252
|
"name": "parameters",
|
|
3253
|
+
"description": "Descriptions for the address book created by registering this listener.",
|
|
3222
3254
|
"type": "object",
|
|
3223
3255
|
"properties": {
|
|
3224
3256
|
"addressBookName": {
|
|
3225
3257
|
"type": "string",
|
|
3226
3258
|
"optional": true,
|
|
3227
|
-
"description": "The
|
|
3259
|
+
"description": "The name of the created address book."
|
|
3228
3260
|
},
|
|
3229
3261
|
"isSecure": {
|
|
3230
3262
|
"type": "boolean",
|
|
3231
3263
|
"optional": true,
|
|
3232
|
-
"description": "Whether the address book
|
|
3264
|
+
"description": "Whether the address book search queries are using encrypted protocols like HTTPS."
|
|
3233
3265
|
},
|
|
3234
3266
|
"id": {
|
|
3235
3267
|
"type": "string",
|
|
3236
3268
|
"optional": true,
|
|
3237
|
-
"description": "The
|
|
3269
|
+
"description": "The unique ID of the created address book. If several listeners have been added, the ``id`` allows to identify which address book initiated the search request. If not provided, a unique ID will be generated for you."
|
|
3238
3270
|
}
|
|
3239
3271
|
}
|
|
3240
3272
|
}
|
|
@@ -3335,11 +3367,24 @@
|
|
|
3335
3367
|
{
|
|
3336
3368
|
"name": "list",
|
|
3337
3369
|
"type": "function",
|
|
3338
|
-
"async":
|
|
3370
|
+
"async": "callback",
|
|
3339
3371
|
"parameters": [
|
|
3340
3372
|
{
|
|
3341
3373
|
"name": "parentId",
|
|
3342
3374
|
"type": "string"
|
|
3375
|
+
},
|
|
3376
|
+
{
|
|
3377
|
+
"type": "function",
|
|
3378
|
+
"name": "callback",
|
|
3379
|
+
"optional": true,
|
|
3380
|
+
"parameters": [
|
|
3381
|
+
{
|
|
3382
|
+
"type": "array",
|
|
3383
|
+
"items": {
|
|
3384
|
+
"$ref": "ContactNode"
|
|
3385
|
+
}
|
|
3386
|
+
}
|
|
3387
|
+
]
|
|
3343
3388
|
}
|
|
3344
3389
|
],
|
|
3345
3390
|
"description": "Gets all the contacts in the address book with the id <code>parentId</code>."
|
|
@@ -3347,7 +3392,7 @@
|
|
|
3347
3392
|
{
|
|
3348
3393
|
"name": "quickSearch",
|
|
3349
3394
|
"type": "function",
|
|
3350
|
-
"async":
|
|
3395
|
+
"async": "callback",
|
|
3351
3396
|
"parameters": [
|
|
3352
3397
|
{
|
|
3353
3398
|
"name": "parentId",
|
|
@@ -3397,18 +3442,41 @@
|
|
|
3397
3442
|
}
|
|
3398
3443
|
}
|
|
3399
3444
|
]
|
|
3445
|
+
},
|
|
3446
|
+
{
|
|
3447
|
+
"type": "function",
|
|
3448
|
+
"name": "callback",
|
|
3449
|
+
"optional": true,
|
|
3450
|
+
"parameters": [
|
|
3451
|
+
{
|
|
3452
|
+
"type": "array",
|
|
3453
|
+
"items": {
|
|
3454
|
+
"$ref": "ContactNode"
|
|
3455
|
+
}
|
|
3456
|
+
}
|
|
3457
|
+
]
|
|
3400
3458
|
}
|
|
3401
3459
|
],
|
|
3402
|
-
"description": "Gets all contacts matching
|
|
3460
|
+
"description": "Gets all contacts matching ``queryInfo`` in the address book with the id ``parentId``."
|
|
3403
3461
|
},
|
|
3404
3462
|
{
|
|
3405
3463
|
"name": "get",
|
|
3406
3464
|
"type": "function",
|
|
3407
|
-
"async":
|
|
3465
|
+
"async": "callback",
|
|
3408
3466
|
"parameters": [
|
|
3409
3467
|
{
|
|
3410
3468
|
"name": "id",
|
|
3411
3469
|
"type": "string"
|
|
3470
|
+
},
|
|
3471
|
+
{
|
|
3472
|
+
"type": "function",
|
|
3473
|
+
"name": "callback",
|
|
3474
|
+
"optional": true,
|
|
3475
|
+
"parameters": [
|
|
3476
|
+
{
|
|
3477
|
+
"$ref": "ContactNode"
|
|
3478
|
+
}
|
|
3479
|
+
]
|
|
3412
3480
|
}
|
|
3413
3481
|
],
|
|
3414
3482
|
"description": "Gets a single contact."
|
|
@@ -3416,7 +3484,7 @@
|
|
|
3416
3484
|
{
|
|
3417
3485
|
"name": "create",
|
|
3418
3486
|
"type": "function",
|
|
3419
|
-
"async":
|
|
3487
|
+
"async": "callback",
|
|
3420
3488
|
"parameters": [
|
|
3421
3489
|
{
|
|
3422
3490
|
"name": "parentId",
|
|
@@ -3431,6 +3499,17 @@
|
|
|
3431
3499
|
{
|
|
3432
3500
|
"name": "properties",
|
|
3433
3501
|
"$ref": "ContactProperties"
|
|
3502
|
+
},
|
|
3503
|
+
{
|
|
3504
|
+
"type": "function",
|
|
3505
|
+
"name": "callback",
|
|
3506
|
+
"optional": true,
|
|
3507
|
+
"parameters": [
|
|
3508
|
+
{
|
|
3509
|
+
"type": "string",
|
|
3510
|
+
"description": "The ID of the new contact."
|
|
3511
|
+
}
|
|
3512
|
+
]
|
|
3434
3513
|
}
|
|
3435
3514
|
],
|
|
3436
3515
|
"description": "Adds a new contact to the address book with the id <code>parentId</code>."
|
|
@@ -3570,11 +3649,24 @@
|
|
|
3570
3649
|
{
|
|
3571
3650
|
"name": "list",
|
|
3572
3651
|
"type": "function",
|
|
3573
|
-
"async":
|
|
3652
|
+
"async": "callback",
|
|
3574
3653
|
"parameters": [
|
|
3575
3654
|
{
|
|
3576
3655
|
"name": "parentId",
|
|
3577
3656
|
"type": "string"
|
|
3657
|
+
},
|
|
3658
|
+
{
|
|
3659
|
+
"type": "function",
|
|
3660
|
+
"name": "callback",
|
|
3661
|
+
"optional": true,
|
|
3662
|
+
"parameters": [
|
|
3663
|
+
{
|
|
3664
|
+
"type": "array",
|
|
3665
|
+
"items": {
|
|
3666
|
+
"$ref": "MailingListNode"
|
|
3667
|
+
}
|
|
3668
|
+
}
|
|
3669
|
+
]
|
|
3578
3670
|
}
|
|
3579
3671
|
],
|
|
3580
3672
|
"description": "Gets all the mailing lists in the address book with id <code>parentId</code>."
|
|
@@ -3582,11 +3674,21 @@
|
|
|
3582
3674
|
{
|
|
3583
3675
|
"name": "get",
|
|
3584
3676
|
"type": "function",
|
|
3585
|
-
"async":
|
|
3677
|
+
"async": "callback",
|
|
3586
3678
|
"parameters": [
|
|
3587
3679
|
{
|
|
3588
3680
|
"name": "id",
|
|
3589
3681
|
"type": "string"
|
|
3682
|
+
},
|
|
3683
|
+
{
|
|
3684
|
+
"type": "function",
|
|
3685
|
+
"name": "callback",
|
|
3686
|
+
"optional": true,
|
|
3687
|
+
"parameters": [
|
|
3688
|
+
{
|
|
3689
|
+
"$ref": "MailingListNode"
|
|
3690
|
+
}
|
|
3691
|
+
]
|
|
3590
3692
|
}
|
|
3591
3693
|
],
|
|
3592
3694
|
"description": "Gets a single mailing list."
|
|
@@ -3594,7 +3696,7 @@
|
|
|
3594
3696
|
{
|
|
3595
3697
|
"name": "create",
|
|
3596
3698
|
"type": "function",
|
|
3597
|
-
"async":
|
|
3699
|
+
"async": "callback",
|
|
3598
3700
|
"parameters": [
|
|
3599
3701
|
{
|
|
3600
3702
|
"name": "parentId",
|
|
@@ -3616,6 +3718,17 @@
|
|
|
3616
3718
|
"optional": true
|
|
3617
3719
|
}
|
|
3618
3720
|
}
|
|
3721
|
+
},
|
|
3722
|
+
{
|
|
3723
|
+
"type": "function",
|
|
3724
|
+
"name": "callback",
|
|
3725
|
+
"optional": true,
|
|
3726
|
+
"parameters": [
|
|
3727
|
+
{
|
|
3728
|
+
"type": "string",
|
|
3729
|
+
"description": "The ID of the new mailing list."
|
|
3730
|
+
}
|
|
3731
|
+
]
|
|
3619
3732
|
}
|
|
3620
3733
|
],
|
|
3621
3734
|
"description": "Creates a new mailing list in the address book with id <code>parentId</code>."
|
|
@@ -3680,11 +3793,24 @@
|
|
|
3680
3793
|
{
|
|
3681
3794
|
"name": "listMembers",
|
|
3682
3795
|
"type": "function",
|
|
3683
|
-
"async":
|
|
3796
|
+
"async": "callback",
|
|
3684
3797
|
"parameters": [
|
|
3685
3798
|
{
|
|
3686
3799
|
"name": "id",
|
|
3687
3800
|
"type": "string"
|
|
3801
|
+
},
|
|
3802
|
+
{
|
|
3803
|
+
"type": "function",
|
|
3804
|
+
"name": "callback",
|
|
3805
|
+
"optional": true,
|
|
3806
|
+
"parameters": [
|
|
3807
|
+
{
|
|
3808
|
+
"type": "array",
|
|
3809
|
+
"items": {
|
|
3810
|
+
"$ref": "contacts.ContactNode"
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3813
|
+
]
|
|
3688
3814
|
}
|
|
3689
3815
|
],
|
|
3690
3816
|
"description": "Gets all contacts that are members of the mailing list with id <code>id</code>."
|
|
@@ -4557,8 +4683,8 @@
|
|
|
4557
4683
|
"data_format": {
|
|
4558
4684
|
"type": "string",
|
|
4559
4685
|
"optional": true,
|
|
4560
|
-
"default": "
|
|
4561
|
-
"description": "Determines the format of the ``data`` argument in ``onFileUpload``.",
|
|
4686
|
+
"default": "File",
|
|
4687
|
+
"description": "Determines the format of the ``data`` argument in ``onFileUpload``. Support for ArrayBuffer will be removed in Thunderbird 102.",
|
|
4562
4688
|
"enum": [
|
|
4563
4689
|
"ArrayBuffer",
|
|
4564
4690
|
"File"
|
|
@@ -4605,17 +4731,17 @@
|
|
|
4605
4731
|
{
|
|
4606
4732
|
"name": "onFileUpload",
|
|
4607
4733
|
"type": "function",
|
|
4608
|
-
"description": "Fired when a file should be uploaded to the cloud file provider",
|
|
4734
|
+
"description": "Fired when a file should be uploaded to the cloud file provider.",
|
|
4609
4735
|
"parameters": [
|
|
4610
4736
|
{
|
|
4611
4737
|
"name": "account",
|
|
4612
4738
|
"$ref": "CloudFileAccount",
|
|
4613
|
-
"description": "The
|
|
4739
|
+
"description": "The account used for the file upload."
|
|
4614
4740
|
},
|
|
4615
4741
|
{
|
|
4616
4742
|
"name": "fileInfo",
|
|
4617
4743
|
"$ref": "CloudFile",
|
|
4618
|
-
"description": "The file to upload"
|
|
4744
|
+
"description": "The file to upload."
|
|
4619
4745
|
},
|
|
4620
4746
|
{
|
|
4621
4747
|
"name": "tab",
|
|
@@ -4628,12 +4754,17 @@
|
|
|
4628
4754
|
"properties": {
|
|
4629
4755
|
"aborted": {
|
|
4630
4756
|
"type": "boolean",
|
|
4631
|
-
"description": "Set this to true if the file upload was aborted",
|
|
4757
|
+
"description": "Set this to true if the file upload was aborted.",
|
|
4632
4758
|
"optional": true
|
|
4633
4759
|
},
|
|
4634
4760
|
"url": {
|
|
4635
4761
|
"type": "string",
|
|
4636
|
-
"description": "The URL where the uploaded file can be accessed",
|
|
4762
|
+
"description": "The URL where the uploaded file can be accessed.",
|
|
4763
|
+
"optional": true
|
|
4764
|
+
},
|
|
4765
|
+
"templateInfo": {
|
|
4766
|
+
"$ref": "CloudFileTemplateInfo",
|
|
4767
|
+
"description": "Information to override the default values used in the cloud file message template.",
|
|
4637
4768
|
"optional": true
|
|
4638
4769
|
}
|
|
4639
4770
|
}
|
|
@@ -4646,13 +4777,13 @@
|
|
|
4646
4777
|
{
|
|
4647
4778
|
"name": "account",
|
|
4648
4779
|
"$ref": "CloudFileAccount",
|
|
4649
|
-
"description": "The
|
|
4780
|
+
"description": "The account used for the file upload."
|
|
4650
4781
|
},
|
|
4651
4782
|
{
|
|
4652
4783
|
"type": "integer",
|
|
4653
4784
|
"name": "fileId",
|
|
4654
4785
|
"minimum": 1,
|
|
4655
|
-
"description": "An identifier for this file"
|
|
4786
|
+
"description": "An identifier for this file."
|
|
4656
4787
|
},
|
|
4657
4788
|
{
|
|
4658
4789
|
"name": "tab",
|
|
@@ -4664,18 +4795,18 @@
|
|
|
4664
4795
|
{
|
|
4665
4796
|
"name": "onFileDeleted",
|
|
4666
4797
|
"type": "function",
|
|
4667
|
-
"description": "Fired when a file previously uploaded should be deleted",
|
|
4798
|
+
"description": "Fired when a file previously uploaded should be deleted.",
|
|
4668
4799
|
"parameters": [
|
|
4669
4800
|
{
|
|
4670
4801
|
"name": "account",
|
|
4671
4802
|
"$ref": "CloudFileAccount",
|
|
4672
|
-
"description": "The
|
|
4803
|
+
"description": "The account used for the file upload."
|
|
4673
4804
|
},
|
|
4674
4805
|
{
|
|
4675
4806
|
"type": "integer",
|
|
4676
4807
|
"name": "fileId",
|
|
4677
4808
|
"minimum": 1,
|
|
4678
|
-
"description": "An identifier for this file"
|
|
4809
|
+
"description": "An identifier for this file."
|
|
4679
4810
|
},
|
|
4680
4811
|
{
|
|
4681
4812
|
"name": "tab",
|
|
@@ -4687,24 +4818,24 @@
|
|
|
4687
4818
|
{
|
|
4688
4819
|
"name": "onAccountAdded",
|
|
4689
4820
|
"type": "function",
|
|
4690
|
-
"description": "Fired when a cloud file account of this add-on was created",
|
|
4821
|
+
"description": "Fired when a cloud file account of this add-on was created.",
|
|
4691
4822
|
"parameters": [
|
|
4692
4823
|
{
|
|
4693
4824
|
"name": "account",
|
|
4694
4825
|
"$ref": "CloudFileAccount",
|
|
4695
|
-
"description": "The created account"
|
|
4826
|
+
"description": "The created account."
|
|
4696
4827
|
}
|
|
4697
4828
|
]
|
|
4698
4829
|
},
|
|
4699
4830
|
{
|
|
4700
4831
|
"name": "onAccountDeleted",
|
|
4701
4832
|
"type": "function",
|
|
4702
|
-
"description": "Fired when a cloud file account of this add-on was deleted",
|
|
4833
|
+
"description": "Fired when a cloud file account of this add-on was deleted.",
|
|
4703
4834
|
"parameters": [
|
|
4704
4835
|
{
|
|
4705
4836
|
"name": "accountId",
|
|
4706
4837
|
"type": "string",
|
|
4707
|
-
"description": "The id of the removed account"
|
|
4838
|
+
"description": "The id of the removed account."
|
|
4708
4839
|
}
|
|
4709
4840
|
]
|
|
4710
4841
|
}
|
|
@@ -4713,11 +4844,11 @@
|
|
|
4713
4844
|
{
|
|
4714
4845
|
"id": "CloudFileAccount",
|
|
4715
4846
|
"type": "object",
|
|
4716
|
-
"description": "Information about a cloud file account",
|
|
4847
|
+
"description": "Information about a cloud file account.",
|
|
4717
4848
|
"properties": {
|
|
4718
4849
|
"id": {
|
|
4719
4850
|
"type": "string",
|
|
4720
|
-
"description": "Unique identifier of the account"
|
|
4851
|
+
"description": "Unique identifier of the account."
|
|
4721
4852
|
},
|
|
4722
4853
|
"configured": {
|
|
4723
4854
|
"type": "boolean",
|
|
@@ -4752,19 +4883,41 @@
|
|
|
4752
4883
|
}
|
|
4753
4884
|
}
|
|
4754
4885
|
},
|
|
4886
|
+
{
|
|
4887
|
+
"id": "CloudFileTemplateInfo",
|
|
4888
|
+
"type": "object",
|
|
4889
|
+
"description": "Information to be used in the cloud file message template.",
|
|
4890
|
+
"properties": {
|
|
4891
|
+
"service_icon": {
|
|
4892
|
+
"type": "string",
|
|
4893
|
+
"optional": true,
|
|
4894
|
+
"description": "A URL pointing to an icon to represent the used cloud file service. Defaults to the icon of the provider add-on."
|
|
4895
|
+
},
|
|
4896
|
+
"service_name": {
|
|
4897
|
+
"type": "string",
|
|
4898
|
+
"optional": true,
|
|
4899
|
+
"description": "A name to represent the used cloud file service. Defaults to the associated cloud file account name."
|
|
4900
|
+
},
|
|
4901
|
+
"service_url": {
|
|
4902
|
+
"type": "string",
|
|
4903
|
+
"optional": true,
|
|
4904
|
+
"description": "An URL to the web page of the used cloud file service, attached the <code>service_name</code>. Defaults to the <code>service_url</code> manifest entry. Set to an empty string in order to not create a link."
|
|
4905
|
+
}
|
|
4906
|
+
}
|
|
4907
|
+
},
|
|
4755
4908
|
{
|
|
4756
4909
|
"id": "CloudFile",
|
|
4757
4910
|
"type": "object",
|
|
4758
|
-
"description": "Information about a cloud file",
|
|
4911
|
+
"description": "Information about a cloud file.",
|
|
4759
4912
|
"properties": {
|
|
4760
4913
|
"id": {
|
|
4761
4914
|
"type": "integer",
|
|
4762
4915
|
"minimum": 1,
|
|
4763
|
-
"description": "An identifier for this file"
|
|
4916
|
+
"description": "An identifier for this file."
|
|
4764
4917
|
},
|
|
4765
4918
|
"name": {
|
|
4766
4919
|
"type": "string",
|
|
4767
|
-
"description": "Filename of the file to be transferred"
|
|
4920
|
+
"description": "Filename of the file to be transferred."
|
|
4768
4921
|
},
|
|
4769
4922
|
"data": {
|
|
4770
4923
|
"choices": [
|
|
@@ -4772,13 +4925,13 @@
|
|
|
4772
4925
|
"type": "object",
|
|
4773
4926
|
"isInstanceOf": "ArrayBuffer",
|
|
4774
4927
|
"additionalProperties": true,
|
|
4775
|
-
"description": "Contents of the file to be transferred"
|
|
4928
|
+
"description": "Contents of the file to be transferred."
|
|
4776
4929
|
},
|
|
4777
4930
|
{
|
|
4778
4931
|
"type": "object",
|
|
4779
4932
|
"isInstanceOf": "File",
|
|
4780
4933
|
"additionalProperties": true,
|
|
4781
|
-
"description": "Contents of the file to be transferred"
|
|
4934
|
+
"description": "Contents of the file to be transferred."
|
|
4782
4935
|
}
|
|
4783
4936
|
]
|
|
4784
4937
|
}
|
|
@@ -4789,7 +4942,7 @@
|
|
|
4789
4942
|
{
|
|
4790
4943
|
"name": "getAccount",
|
|
4791
4944
|
"type": "function",
|
|
4792
|
-
"description": "Retrieve information about a single cloud file account",
|
|
4945
|
+
"description": "Retrieve information about a single cloud file account.",
|
|
4793
4946
|
"allowedContexts": [
|
|
4794
4947
|
"content"
|
|
4795
4948
|
],
|
|
@@ -4798,7 +4951,7 @@
|
|
|
4798
4951
|
{
|
|
4799
4952
|
"name": "accountId",
|
|
4800
4953
|
"type": "string",
|
|
4801
|
-
"description": "Unique identifier of the account"
|
|
4954
|
+
"description": "Unique identifier of the account."
|
|
4802
4955
|
},
|
|
4803
4956
|
{
|
|
4804
4957
|
"type": "function",
|
|
@@ -4815,7 +4968,7 @@
|
|
|
4815
4968
|
{
|
|
4816
4969
|
"name": "getAllAccounts",
|
|
4817
4970
|
"type": "function",
|
|
4818
|
-
"description": "Retrieve all cloud file accounts for the current add-on",
|
|
4971
|
+
"description": "Retrieve all cloud file accounts for the current add-on.",
|
|
4819
4972
|
"allowedContexts": [
|
|
4820
4973
|
"content"
|
|
4821
4974
|
],
|
|
@@ -4839,7 +4992,7 @@
|
|
|
4839
4992
|
{
|
|
4840
4993
|
"name": "updateAccount",
|
|
4841
4994
|
"type": "function",
|
|
4842
|
-
"description": "Update a cloud file account",
|
|
4995
|
+
"description": "Update a cloud file account.",
|
|
4843
4996
|
"allowedContexts": [
|
|
4844
4997
|
"content"
|
|
4845
4998
|
],
|
|
@@ -4848,7 +5001,7 @@
|
|
|
4848
5001
|
{
|
|
4849
5002
|
"name": "accountId",
|
|
4850
5003
|
"type": "string",
|
|
4851
|
-
"description": "Unique identifier of the account"
|
|
5004
|
+
"description": "Unique identifier of the account."
|
|
4852
5005
|
},
|
|
4853
5006
|
{
|
|
4854
5007
|
"name": "updateProperties",
|
|
@@ -5027,6 +5180,11 @@
|
|
|
5027
5180
|
],
|
|
5028
5181
|
"optional": true
|
|
5029
5182
|
},
|
|
5183
|
+
"relatedMessageId": {
|
|
5184
|
+
"description": "The id of the original message (in case of draft, template, forward or reply). Read-only. Is <code>null</code> in all other cases or if the original message was opened from file.",
|
|
5185
|
+
"type": "integer",
|
|
5186
|
+
"optional": true
|
|
5187
|
+
},
|
|
5030
5188
|
"subject": {
|
|
5031
5189
|
"type": "string",
|
|
5032
5190
|
"optional": true
|
|
@@ -5376,11 +5534,31 @@
|
|
|
5376
5534
|
"permissions": [
|
|
5377
5535
|
"compose"
|
|
5378
5536
|
],
|
|
5379
|
-
"async":
|
|
5537
|
+
"async": "callback",
|
|
5380
5538
|
"parameters": [
|
|
5381
5539
|
{
|
|
5382
5540
|
"name": "tabId",
|
|
5383
5541
|
"type": "integer"
|
|
5542
|
+
},
|
|
5543
|
+
{
|
|
5544
|
+
"type": "function",
|
|
5545
|
+
"name": "callback",
|
|
5546
|
+
"optional": true,
|
|
5547
|
+
"parameters": [
|
|
5548
|
+
{
|
|
5549
|
+
"choices": [
|
|
5550
|
+
{
|
|
5551
|
+
"type": "array",
|
|
5552
|
+
"items": {
|
|
5553
|
+
"$ref": "ComposeAttachment"
|
|
5554
|
+
}
|
|
5555
|
+
},
|
|
5556
|
+
{
|
|
5557
|
+
"type": "any"
|
|
5558
|
+
}
|
|
5559
|
+
]
|
|
5560
|
+
}
|
|
5561
|
+
]
|
|
5384
5562
|
}
|
|
5385
5563
|
]
|
|
5386
5564
|
},
|
|
@@ -5391,7 +5569,7 @@
|
|
|
5391
5569
|
"permissions": [
|
|
5392
5570
|
"compose"
|
|
5393
5571
|
],
|
|
5394
|
-
"async":
|
|
5572
|
+
"async": "callback",
|
|
5395
5573
|
"parameters": [
|
|
5396
5574
|
{
|
|
5397
5575
|
"name": "tabId",
|
|
@@ -5412,6 +5590,23 @@
|
|
|
5412
5590
|
"additionalProperties": true
|
|
5413
5591
|
}
|
|
5414
5592
|
}
|
|
5593
|
+
},
|
|
5594
|
+
{
|
|
5595
|
+
"type": "function",
|
|
5596
|
+
"name": "callback",
|
|
5597
|
+
"optional": true,
|
|
5598
|
+
"parameters": [
|
|
5599
|
+
{
|
|
5600
|
+
"choices": [
|
|
5601
|
+
{
|
|
5602
|
+
"$ref": "ComposeAttachment"
|
|
5603
|
+
},
|
|
5604
|
+
{
|
|
5605
|
+
"type": "any"
|
|
5606
|
+
}
|
|
5607
|
+
]
|
|
5608
|
+
}
|
|
5609
|
+
]
|
|
5415
5610
|
}
|
|
5416
5611
|
]
|
|
5417
5612
|
},
|
|
@@ -5422,7 +5617,7 @@
|
|
|
5422
5617
|
"permissions": [
|
|
5423
5618
|
"compose"
|
|
5424
5619
|
],
|
|
5425
|
-
"async":
|
|
5620
|
+
"async": "callback",
|
|
5426
5621
|
"parameters": [
|
|
5427
5622
|
{
|
|
5428
5623
|
"name": "tabId",
|
|
@@ -5448,6 +5643,23 @@
|
|
|
5448
5643
|
"optional": true
|
|
5449
5644
|
}
|
|
5450
5645
|
}
|
|
5646
|
+
},
|
|
5647
|
+
{
|
|
5648
|
+
"type": "function",
|
|
5649
|
+
"name": "callback",
|
|
5650
|
+
"optional": true,
|
|
5651
|
+
"parameters": [
|
|
5652
|
+
{
|
|
5653
|
+
"choices": [
|
|
5654
|
+
{
|
|
5655
|
+
"$ref": "ComposeAttachment"
|
|
5656
|
+
},
|
|
5657
|
+
{
|
|
5658
|
+
"type": "any"
|
|
5659
|
+
}
|
|
5660
|
+
]
|
|
5661
|
+
}
|
|
5662
|
+
]
|
|
5451
5663
|
}
|
|
5452
5664
|
]
|
|
5453
5665
|
},
|
|
@@ -6056,11 +6268,21 @@
|
|
|
6056
6268
|
"name": "isEnabled",
|
|
6057
6269
|
"type": "function",
|
|
6058
6270
|
"description": "Checks whether the composeAction is enabled.",
|
|
6059
|
-
"async":
|
|
6271
|
+
"async": "callback",
|
|
6060
6272
|
"parameters": [
|
|
6061
6273
|
{
|
|
6062
6274
|
"name": "details",
|
|
6063
6275
|
"$ref": "Details"
|
|
6276
|
+
},
|
|
6277
|
+
{
|
|
6278
|
+
"type": "function",
|
|
6279
|
+
"name": "callback",
|
|
6280
|
+
"optional": true,
|
|
6281
|
+
"parameters": [
|
|
6282
|
+
{
|
|
6283
|
+
"type": "boolean"
|
|
6284
|
+
}
|
|
6285
|
+
]
|
|
6064
6286
|
}
|
|
6065
6287
|
]
|
|
6066
6288
|
},
|
|
@@ -8180,12 +8402,29 @@
|
|
|
8180
8402
|
"name": "getDisplayedMessage",
|
|
8181
8403
|
"type": "function",
|
|
8182
8404
|
"description": "Gets the currently displayed message in the specified tab. It returns null if no messages are displayed, or if multiple messages are displayed.",
|
|
8183
|
-
"async":
|
|
8405
|
+
"async": "callback",
|
|
8184
8406
|
"parameters": [
|
|
8185
8407
|
{
|
|
8186
8408
|
"name": "tabId",
|
|
8187
8409
|
"type": "integer",
|
|
8188
8410
|
"minimum": 1
|
|
8411
|
+
},
|
|
8412
|
+
{
|
|
8413
|
+
"type": "function",
|
|
8414
|
+
"name": "callback",
|
|
8415
|
+
"optional": true,
|
|
8416
|
+
"parameters": [
|
|
8417
|
+
{
|
|
8418
|
+
"choices": [
|
|
8419
|
+
{
|
|
8420
|
+
"$ref": "messages.MessageHeader"
|
|
8421
|
+
},
|
|
8422
|
+
{
|
|
8423
|
+
"type": "null"
|
|
8424
|
+
}
|
|
8425
|
+
]
|
|
8426
|
+
}
|
|
8427
|
+
]
|
|
8189
8428
|
}
|
|
8190
8429
|
]
|
|
8191
8430
|
},
|
|
@@ -8193,12 +8432,25 @@
|
|
|
8193
8432
|
"name": "getDisplayedMessages",
|
|
8194
8433
|
"type": "function",
|
|
8195
8434
|
"description": "Gets an array of the currently displayed messages in the specified tab. The array is empty if no messages are displayed.",
|
|
8196
|
-
"async":
|
|
8435
|
+
"async": "callback",
|
|
8197
8436
|
"parameters": [
|
|
8198
8437
|
{
|
|
8199
8438
|
"name": "tabId",
|
|
8200
8439
|
"type": "integer",
|
|
8201
8440
|
"minimum": 1
|
|
8441
|
+
},
|
|
8442
|
+
{
|
|
8443
|
+
"type": "function",
|
|
8444
|
+
"name": "callback",
|
|
8445
|
+
"optional": true,
|
|
8446
|
+
"parameters": [
|
|
8447
|
+
{
|
|
8448
|
+
"type": "array",
|
|
8449
|
+
"items": {
|
|
8450
|
+
"$ref": "messages.MessageHeader"
|
|
8451
|
+
}
|
|
8452
|
+
}
|
|
8453
|
+
]
|
|
8202
8454
|
}
|
|
8203
8455
|
]
|
|
8204
8456
|
}
|
|
@@ -8719,11 +8971,21 @@
|
|
|
8719
8971
|
"name": "isEnabled",
|
|
8720
8972
|
"type": "function",
|
|
8721
8973
|
"description": "Checks whether the messageDisplayAction is enabled.",
|
|
8722
|
-
"async":
|
|
8974
|
+
"async": "callback",
|
|
8723
8975
|
"parameters": [
|
|
8724
8976
|
{
|
|
8725
8977
|
"name": "details",
|
|
8726
8978
|
"$ref": "Details"
|
|
8979
|
+
},
|
|
8980
|
+
{
|
|
8981
|
+
"type": "function",
|
|
8982
|
+
"name": "callback",
|
|
8983
|
+
"optional": true,
|
|
8984
|
+
"parameters": [
|
|
8985
|
+
{
|
|
8986
|
+
"type": "boolean"
|
|
8987
|
+
}
|
|
8988
|
+
]
|
|
8727
8989
|
}
|
|
8728
8990
|
]
|
|
8729
8991
|
},
|
|
@@ -8889,7 +9151,13 @@
|
|
|
8889
9151
|
"headers": {
|
|
8890
9152
|
"type": "object",
|
|
8891
9153
|
"description": "An object of part headers, with the header name as key, and an array of header values as value",
|
|
8892
|
-
"optional": true
|
|
9154
|
+
"optional": true,
|
|
9155
|
+
"additionalProperties": {
|
|
9156
|
+
"type": "array",
|
|
9157
|
+
"items": {
|
|
9158
|
+
"type": "string"
|
|
9159
|
+
}
|
|
9160
|
+
}
|
|
8893
9161
|
},
|
|
8894
9162
|
"name": {
|
|
8895
9163
|
"type": "string",
|
|
@@ -9104,7 +9372,7 @@
|
|
|
9104
9372
|
"name": "list",
|
|
9105
9373
|
"type": "function",
|
|
9106
9374
|
"description": "Gets all messages in a folder.",
|
|
9107
|
-
"async":
|
|
9375
|
+
"async": "callback",
|
|
9108
9376
|
"permissions": [
|
|
9109
9377
|
"accountsRead"
|
|
9110
9378
|
],
|
|
@@ -9112,6 +9380,16 @@
|
|
|
9112
9380
|
{
|
|
9113
9381
|
"name": "folder",
|
|
9114
9382
|
"$ref": "folders.MailFolder"
|
|
9383
|
+
},
|
|
9384
|
+
{
|
|
9385
|
+
"type": "function",
|
|
9386
|
+
"name": "callback",
|
|
9387
|
+
"optional": true,
|
|
9388
|
+
"parameters": [
|
|
9389
|
+
{
|
|
9390
|
+
"$ref": "MessageList"
|
|
9391
|
+
}
|
|
9392
|
+
]
|
|
9115
9393
|
}
|
|
9116
9394
|
]
|
|
9117
9395
|
},
|
|
@@ -9119,11 +9397,21 @@
|
|
|
9119
9397
|
"name": "continueList",
|
|
9120
9398
|
"type": "function",
|
|
9121
9399
|
"description": "Returns the next chunk of messages in a list. See :doc:`how-to/messageLists` for more information.",
|
|
9122
|
-
"async":
|
|
9400
|
+
"async": "callback",
|
|
9123
9401
|
"parameters": [
|
|
9124
9402
|
{
|
|
9125
9403
|
"name": "messageListId",
|
|
9126
9404
|
"type": "string"
|
|
9405
|
+
},
|
|
9406
|
+
{
|
|
9407
|
+
"type": "function",
|
|
9408
|
+
"name": "callback",
|
|
9409
|
+
"optional": true,
|
|
9410
|
+
"parameters": [
|
|
9411
|
+
{
|
|
9412
|
+
"$ref": "MessageList"
|
|
9413
|
+
}
|
|
9414
|
+
]
|
|
9127
9415
|
}
|
|
9128
9416
|
]
|
|
9129
9417
|
},
|
|
@@ -9131,11 +9419,21 @@
|
|
|
9131
9419
|
"name": "get",
|
|
9132
9420
|
"type": "function",
|
|
9133
9421
|
"description": "Returns a specified message.",
|
|
9134
|
-
"async":
|
|
9422
|
+
"async": "callback",
|
|
9135
9423
|
"parameters": [
|
|
9136
9424
|
{
|
|
9137
9425
|
"name": "messageId",
|
|
9138
9426
|
"type": "integer"
|
|
9427
|
+
},
|
|
9428
|
+
{
|
|
9429
|
+
"type": "function",
|
|
9430
|
+
"name": "callback",
|
|
9431
|
+
"optional": true,
|
|
9432
|
+
"parameters": [
|
|
9433
|
+
{
|
|
9434
|
+
"$ref": "MessageHeader"
|
|
9435
|
+
}
|
|
9436
|
+
]
|
|
9139
9437
|
}
|
|
9140
9438
|
]
|
|
9141
9439
|
},
|
|
@@ -9143,23 +9441,43 @@
|
|
|
9143
9441
|
"name": "getFull",
|
|
9144
9442
|
"type": "function",
|
|
9145
9443
|
"description": "Returns a specified message, including all headers and MIME parts.",
|
|
9146
|
-
"async":
|
|
9444
|
+
"async": "callback",
|
|
9147
9445
|
"parameters": [
|
|
9148
9446
|
{
|
|
9149
9447
|
"name": "messageId",
|
|
9150
9448
|
"type": "integer"
|
|
9449
|
+
},
|
|
9450
|
+
{
|
|
9451
|
+
"type": "function",
|
|
9452
|
+
"name": "callback",
|
|
9453
|
+
"optional": true,
|
|
9454
|
+
"parameters": [
|
|
9455
|
+
{
|
|
9456
|
+
"$ref": "MessagePart"
|
|
9457
|
+
}
|
|
9458
|
+
]
|
|
9151
9459
|
}
|
|
9152
9460
|
]
|
|
9153
9461
|
},
|
|
9154
9462
|
{
|
|
9155
9463
|
"name": "getRaw",
|
|
9156
9464
|
"type": "function",
|
|
9157
|
-
"description": "Returns the unmodified source of a message as a `binary string <https://developer.mozilla.org/en-US/docs/Web/API/DOMString/Binary>`__.",
|
|
9158
|
-
"async":
|
|
9465
|
+
"description": "Returns the unmodified source of a message as a `binary string <https://developer.mozilla.org/en-US/docs/Web/API/DOMString/Binary>`__, which is a simple series of 8-bit values. If the message contains non-ASCII characters, the body parts in the binary string cannot be read directly and must be decoded according to their character sets. Use :ref:`messages.getFull` to get the correctly decoded parts. Manually decoding the raw message is probably too error-prone, especially if the message contains MIME parts with different character set encodings or attachments.\n\nTo get a readable version of the raw message as it appears in Thunderbird's message source view, it may be sufficient to decode the message according to the character set specified in its main ``content-type`` header (example: `text/html; charset=UTF-8`) using the following function (see MDN for `supported input encodings <https://developer.mozilla.org/en-US/docs/Web/API/Encoding_API/Encodings>`__): <literalinclude>includes/messages/decodeBinaryString.js<lang>JavaScript</lang></literalinclude>",
|
|
9466
|
+
"async": "callback",
|
|
9159
9467
|
"parameters": [
|
|
9160
9468
|
{
|
|
9161
9469
|
"name": "messageId",
|
|
9162
9470
|
"type": "integer"
|
|
9471
|
+
},
|
|
9472
|
+
{
|
|
9473
|
+
"type": "function",
|
|
9474
|
+
"name": "callback",
|
|
9475
|
+
"optional": true,
|
|
9476
|
+
"parameters": [
|
|
9477
|
+
{
|
|
9478
|
+
"type": "string"
|
|
9479
|
+
}
|
|
9480
|
+
]
|
|
9163
9481
|
}
|
|
9164
9482
|
]
|
|
9165
9483
|
},
|
|
@@ -9167,11 +9485,24 @@
|
|
|
9167
9485
|
"name": "listAttachments",
|
|
9168
9486
|
"type": "function",
|
|
9169
9487
|
"description": "Lists all of the attachments of a message.",
|
|
9170
|
-
"async":
|
|
9488
|
+
"async": "callback",
|
|
9171
9489
|
"parameters": [
|
|
9172
9490
|
{
|
|
9173
9491
|
"name": "messageId",
|
|
9174
9492
|
"type": "integer"
|
|
9493
|
+
},
|
|
9494
|
+
{
|
|
9495
|
+
"type": "function",
|
|
9496
|
+
"name": "callback",
|
|
9497
|
+
"optional": true,
|
|
9498
|
+
"parameters": [
|
|
9499
|
+
{
|
|
9500
|
+
"type": "array",
|
|
9501
|
+
"items": {
|
|
9502
|
+
"$ref": "Attachment"
|
|
9503
|
+
}
|
|
9504
|
+
}
|
|
9505
|
+
]
|
|
9175
9506
|
}
|
|
9176
9507
|
]
|
|
9177
9508
|
},
|
|
@@ -9179,7 +9510,7 @@
|
|
|
9179
9510
|
"name": "getAttachmentFile",
|
|
9180
9511
|
"type": "function",
|
|
9181
9512
|
"description": "Gets the content of an attachment as a DOM <code>File</code> object.",
|
|
9182
|
-
"async":
|
|
9513
|
+
"async": "callback",
|
|
9183
9514
|
"parameters": [
|
|
9184
9515
|
{
|
|
9185
9516
|
"name": "messageId",
|
|
@@ -9189,6 +9520,18 @@
|
|
|
9189
9520
|
"name": "partName",
|
|
9190
9521
|
"type": "string",
|
|
9191
9522
|
"pattern": "^\\d+(\\.\\d+)*$"
|
|
9523
|
+
},
|
|
9524
|
+
{
|
|
9525
|
+
"type": "function",
|
|
9526
|
+
"name": "callback",
|
|
9527
|
+
"optional": true,
|
|
9528
|
+
"parameters": [
|
|
9529
|
+
{
|
|
9530
|
+
"type": "object",
|
|
9531
|
+
"isInstanceOf": "File",
|
|
9532
|
+
"additionalProperties": true
|
|
9533
|
+
}
|
|
9534
|
+
]
|
|
9192
9535
|
}
|
|
9193
9536
|
]
|
|
9194
9537
|
},
|
|
@@ -9196,12 +9539,17 @@
|
|
|
9196
9539
|
"name": "query",
|
|
9197
9540
|
"type": "function",
|
|
9198
9541
|
"description": "Gets all messages that have the specified properties, or all messages if no properties are specified.",
|
|
9199
|
-
"async":
|
|
9542
|
+
"async": "callback",
|
|
9200
9543
|
"parameters": [
|
|
9201
9544
|
{
|
|
9202
9545
|
"type": "object",
|
|
9203
9546
|
"name": "queryInfo",
|
|
9204
9547
|
"properties": {
|
|
9548
|
+
"attachment": {
|
|
9549
|
+
"type": "boolean",
|
|
9550
|
+
"optional": true,
|
|
9551
|
+
"description": "If specified, returns only messages with or without attachments."
|
|
9552
|
+
},
|
|
9205
9553
|
"author": {
|
|
9206
9554
|
"type": "string",
|
|
9207
9555
|
"optional": true,
|
|
@@ -9278,6 +9626,16 @@
|
|
|
9278
9626
|
"description": "Returns only unread (or read if false) messages."
|
|
9279
9627
|
}
|
|
9280
9628
|
}
|
|
9629
|
+
},
|
|
9630
|
+
{
|
|
9631
|
+
"type": "function",
|
|
9632
|
+
"name": "callback",
|
|
9633
|
+
"optional": true,
|
|
9634
|
+
"parameters": [
|
|
9635
|
+
{
|
|
9636
|
+
"$ref": "MessageList"
|
|
9637
|
+
}
|
|
9638
|
+
]
|
|
9281
9639
|
}
|
|
9282
9640
|
]
|
|
9283
9641
|
},
|
|
@@ -9400,8 +9758,22 @@
|
|
|
9400
9758
|
"name": "listTags",
|
|
9401
9759
|
"type": "function",
|
|
9402
9760
|
"description": "Returns a list of tags that can be set on messages, and their human-friendly name, colour, and sort order.",
|
|
9403
|
-
"async":
|
|
9404
|
-
"parameters": [
|
|
9761
|
+
"async": "callback",
|
|
9762
|
+
"parameters": [
|
|
9763
|
+
{
|
|
9764
|
+
"type": "function",
|
|
9765
|
+
"name": "callback",
|
|
9766
|
+
"optional": true,
|
|
9767
|
+
"parameters": [
|
|
9768
|
+
{
|
|
9769
|
+
"type": "array",
|
|
9770
|
+
"items": {
|
|
9771
|
+
"$ref": "MessageTag"
|
|
9772
|
+
}
|
|
9773
|
+
}
|
|
9774
|
+
]
|
|
9775
|
+
}
|
|
9776
|
+
]
|
|
9405
9777
|
}
|
|
9406
9778
|
]
|
|
9407
9779
|
}
|