webext-schema 2.0.3 → 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/modules/update.js +10 -4
- package/package.json +4 -4
- package/schemas/central/webext.json +199 -48
- package/schemas/mail/mailext.json +76 -28
- package/schemas/release/webext.json +10 -1
package/modules/update.js
CHANGED
|
@@ -7,7 +7,7 @@ import { CHAR, INDENT } from './constant.js';
|
|
|
7
7
|
import { URL } from 'url';
|
|
8
8
|
import JSON5 from 'json5';
|
|
9
9
|
import { createFile } from './file-util.js';
|
|
10
|
-
import { getType, isString
|
|
10
|
+
import { getType, isString } from './common.js';
|
|
11
11
|
import commander from 'commander';
|
|
12
12
|
import fetch from 'node-fetch';
|
|
13
13
|
import path from 'path';
|
|
@@ -248,9 +248,9 @@ export const saveSchemaFile = async (channel, info) => {
|
|
|
248
248
|
* update schemas files
|
|
249
249
|
*
|
|
250
250
|
* @param {object} cmdOpts - command options
|
|
251
|
-
* @returns {
|
|
251
|
+
* @returns {void}
|
|
252
252
|
*/
|
|
253
|
-
export const updateSchemas = (cmdOpts = {}) => {
|
|
253
|
+
export const updateSchemas = async (cmdOpts = {}) => {
|
|
254
254
|
const { channel, info } = cmdOpts;
|
|
255
255
|
const func = [];
|
|
256
256
|
if (channel) {
|
|
@@ -264,7 +264,13 @@ export const updateSchemas = (cmdOpts = {}) => {
|
|
|
264
264
|
saveSchemaFile('mail', info)
|
|
265
265
|
);
|
|
266
266
|
}
|
|
267
|
-
|
|
267
|
+
const arr = await Promise.allSettled(func);
|
|
268
|
+
for (const i of arr) {
|
|
269
|
+
const { reason, status } = i;
|
|
270
|
+
if (status === 'rejected' && reason) {
|
|
271
|
+
console.trace(reason);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
268
274
|
};
|
|
269
275
|
|
|
270
276
|
/**
|
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"commander": "^8.3.0",
|
|
28
28
|
"decamelize": "^6.0.0",
|
|
29
29
|
"json5": "^2.2.0",
|
|
30
|
-
"node-fetch": "^3.
|
|
30
|
+
"node-fetch": "^3.1.0",
|
|
31
31
|
"sinon": "^12.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"chai": "^4.3.4",
|
|
36
36
|
"eslint": "^7.32.0",
|
|
37
37
|
"eslint-config-standard": "^16.0.3",
|
|
38
|
-
"eslint-plugin-import": "^2.25.
|
|
38
|
+
"eslint-plugin-import": "^2.25.3",
|
|
39
39
|
"eslint-plugin-jsdoc": "^37.0.3",
|
|
40
40
|
"eslint-plugin-node": "^11.1.0",
|
|
41
41
|
"eslint-plugin-promise": "^5.1.1",
|
|
42
42
|
"mocha": "^9.1.3",
|
|
43
|
-
"nock": "^13.1
|
|
43
|
+
"nock": "^13.2.1"
|
|
44
44
|
},
|
|
45
|
-
"version": "2.0.
|
|
45
|
+
"version": "2.0.4"
|
|
46
46
|
}
|
|
@@ -11731,7 +11731,9 @@
|
|
|
11731
11731
|
"js",
|
|
11732
11732
|
"leaf",
|
|
11733
11733
|
"mainthreadio",
|
|
11734
|
-
"
|
|
11734
|
+
"fileio",
|
|
11735
|
+
"fileioall",
|
|
11736
|
+
"noiostacks",
|
|
11735
11737
|
"screenshots",
|
|
11736
11738
|
"seqstyle",
|
|
11737
11739
|
"stackwalk",
|
|
@@ -11739,15 +11741,16 @@
|
|
|
11739
11741
|
"jstracer",
|
|
11740
11742
|
"jsallocations",
|
|
11741
11743
|
"nostacksampling",
|
|
11742
|
-
"nativeallocations",
|
|
11743
11744
|
"preferencereads",
|
|
11745
|
+
"nativeallocations",
|
|
11744
11746
|
"ipcmessages",
|
|
11745
|
-
"fileio",
|
|
11746
|
-
"fileioall",
|
|
11747
|
-
"noiostacks",
|
|
11748
11747
|
"audiocallbacktracing",
|
|
11749
11748
|
"cpu",
|
|
11750
|
-
"notimerresolutionchange"
|
|
11749
|
+
"notimerresolutionchange",
|
|
11750
|
+
"cpuallthreads",
|
|
11751
|
+
"samplingallthreads",
|
|
11752
|
+
"markersallthreads",
|
|
11753
|
+
"responsiveness"
|
|
11751
11754
|
]
|
|
11752
11755
|
},
|
|
11753
11756
|
{
|
|
@@ -12757,34 +12760,13 @@
|
|
|
12757
12760
|
"postprocess": "manifestVersionCheck"
|
|
12758
12761
|
},
|
|
12759
12762
|
"applications": {
|
|
12760
|
-
"
|
|
12761
|
-
"
|
|
12762
|
-
"
|
|
12763
|
-
"gecko": {
|
|
12764
|
-
"$ref": "FirefoxSpecificProperties",
|
|
12765
|
-
"optional": true
|
|
12766
|
-
}
|
|
12767
|
-
}
|
|
12763
|
+
"$ref": "BrowserSpecificSettings",
|
|
12764
|
+
"description": "The applications property is deprecated, please use 'browser_specific_settings'",
|
|
12765
|
+
"optional": true
|
|
12768
12766
|
},
|
|
12769
12767
|
"browser_specific_settings": {
|
|
12770
|
-
"
|
|
12771
|
-
"optional": true
|
|
12772
|
-
"properties": {
|
|
12773
|
-
"gecko": {
|
|
12774
|
-
"$ref": "FirefoxSpecificProperties",
|
|
12775
|
-
"optional": true
|
|
12776
|
-
},
|
|
12777
|
-
"edge": {
|
|
12778
|
-
"type": "object",
|
|
12779
|
-
"additionalProperties": {
|
|
12780
|
-
"type": "any"
|
|
12781
|
-
},
|
|
12782
|
-
"optional": true
|
|
12783
|
-
}
|
|
12784
|
-
},
|
|
12785
|
-
"additionalProperties": {
|
|
12786
|
-
"$ref": "UnrecognizedProperty"
|
|
12787
|
-
}
|
|
12768
|
+
"$ref": "BrowserSpecificSettings",
|
|
12769
|
+
"optional": true
|
|
12788
12770
|
},
|
|
12789
12771
|
"name": {
|
|
12790
12772
|
"type": "string",
|
|
@@ -12816,6 +12798,32 @@
|
|
|
12816
12798
|
"format": "url",
|
|
12817
12799
|
"optional": true,
|
|
12818
12800
|
"preprocess": "localize"
|
|
12801
|
+
},
|
|
12802
|
+
"install_origins": {
|
|
12803
|
+
"type": "array",
|
|
12804
|
+
"optional": true,
|
|
12805
|
+
"items": {
|
|
12806
|
+
"type": "string",
|
|
12807
|
+
"format": "origin"
|
|
12808
|
+
}
|
|
12809
|
+
},
|
|
12810
|
+
"developer": {
|
|
12811
|
+
"type": "object",
|
|
12812
|
+
"optional": true,
|
|
12813
|
+
"properties": {
|
|
12814
|
+
"name": {
|
|
12815
|
+
"type": "string",
|
|
12816
|
+
"optional": true,
|
|
12817
|
+
"preprocess": "localize"
|
|
12818
|
+
},
|
|
12819
|
+
"url": {
|
|
12820
|
+
"type": "string",
|
|
12821
|
+
"format": "url",
|
|
12822
|
+
"optional": true,
|
|
12823
|
+
"preprocess": "localize",
|
|
12824
|
+
"onError": "warn"
|
|
12825
|
+
}
|
|
12826
|
+
}
|
|
12819
12827
|
}
|
|
12820
12828
|
}
|
|
12821
12829
|
},
|
|
@@ -13031,22 +13039,6 @@
|
|
|
13031
13039
|
}
|
|
13032
13040
|
]
|
|
13033
13041
|
},
|
|
13034
|
-
"developer": {
|
|
13035
|
-
"type": "object",
|
|
13036
|
-
"optional": true,
|
|
13037
|
-
"properties": {
|
|
13038
|
-
"name": {
|
|
13039
|
-
"type": "string",
|
|
13040
|
-
"optional": true,
|
|
13041
|
-
"preprocess": "localize"
|
|
13042
|
-
},
|
|
13043
|
-
"url": {
|
|
13044
|
-
"type": "string",
|
|
13045
|
-
"optional": true,
|
|
13046
|
-
"preprocess": "localize"
|
|
13047
|
-
}
|
|
13048
|
-
}
|
|
13049
|
-
},
|
|
13050
13042
|
"hidden": {
|
|
13051
13043
|
"type": "boolean",
|
|
13052
13044
|
"optional": true,
|
|
@@ -13312,6 +13304,19 @@
|
|
|
13312
13304
|
}
|
|
13313
13305
|
}
|
|
13314
13306
|
},
|
|
13307
|
+
{
|
|
13308
|
+
"id": "BrowserSpecificSettings",
|
|
13309
|
+
"type": "object",
|
|
13310
|
+
"properties": {
|
|
13311
|
+
"gecko": {
|
|
13312
|
+
"$ref": "FirefoxSpecificProperties",
|
|
13313
|
+
"optional": true
|
|
13314
|
+
}
|
|
13315
|
+
},
|
|
13316
|
+
"additionalProperties": {
|
|
13317
|
+
"type": "any"
|
|
13318
|
+
}
|
|
13319
|
+
},
|
|
13315
13320
|
{
|
|
13316
13321
|
"id": "MatchPattern",
|
|
13317
13322
|
"choices": [
|
|
@@ -15357,6 +15362,27 @@
|
|
|
15357
15362
|
"description": "The fully-qualified URL to the resource."
|
|
15358
15363
|
}
|
|
15359
15364
|
},
|
|
15365
|
+
{
|
|
15366
|
+
"name": "getFrameId",
|
|
15367
|
+
"type": "function",
|
|
15368
|
+
"allowedContexts": [
|
|
15369
|
+
"content",
|
|
15370
|
+
"devtools"
|
|
15371
|
+
],
|
|
15372
|
+
"description": "Get the frameId of any window global or frame element.",
|
|
15373
|
+
"parameters": [
|
|
15374
|
+
{
|
|
15375
|
+
"type": "any",
|
|
15376
|
+
"name": "target",
|
|
15377
|
+
"description": "A WindowProxy or a Browsing Context container element (IFrame, Frame, Embed, Object) for the target frame."
|
|
15378
|
+
}
|
|
15379
|
+
],
|
|
15380
|
+
"allowCrossOriginArguments": true,
|
|
15381
|
+
"returns": {
|
|
15382
|
+
"type": "number",
|
|
15383
|
+
"description": "The frameId of the target frame, or -1 if it doesn't exist."
|
|
15384
|
+
}
|
|
15385
|
+
},
|
|
15360
15386
|
{
|
|
15361
15387
|
"name": "setUninstallURL",
|
|
15362
15388
|
"type": "function",
|
|
@@ -15811,6 +15837,131 @@
|
|
|
15811
15837
|
]
|
|
15812
15838
|
}
|
|
15813
15839
|
],
|
|
15840
|
+
"scripting.json": [
|
|
15841
|
+
{
|
|
15842
|
+
"namespace": "manifest",
|
|
15843
|
+
"types": [
|
|
15844
|
+
{
|
|
15845
|
+
"$extend": "OptionalPermissionNoPrompt",
|
|
15846
|
+
"choices": [
|
|
15847
|
+
{
|
|
15848
|
+
"type": "string",
|
|
15849
|
+
"enum": [
|
|
15850
|
+
"scripting"
|
|
15851
|
+
],
|
|
15852
|
+
"min_manifest_version": 3
|
|
15853
|
+
}
|
|
15854
|
+
]
|
|
15855
|
+
}
|
|
15856
|
+
]
|
|
15857
|
+
},
|
|
15858
|
+
{
|
|
15859
|
+
"namespace": "scripting",
|
|
15860
|
+
"description": "Use the scripting API to execute script in different contexts.",
|
|
15861
|
+
"permissions": [
|
|
15862
|
+
"scripting"
|
|
15863
|
+
],
|
|
15864
|
+
"min_manifest_version": 3,
|
|
15865
|
+
"types": [
|
|
15866
|
+
{
|
|
15867
|
+
"id": "ScriptInjection",
|
|
15868
|
+
"type": "object",
|
|
15869
|
+
"description": "Details of a script injection",
|
|
15870
|
+
"properties": {
|
|
15871
|
+
"args": {
|
|
15872
|
+
"type": "array",
|
|
15873
|
+
"optional": true,
|
|
15874
|
+
"description": "The arguments to curry into a provided function. This is only valid if the <code>func</code> parameter is specified. These arguments must be JSON-serializable.",
|
|
15875
|
+
"items": {
|
|
15876
|
+
"type": "any"
|
|
15877
|
+
}
|
|
15878
|
+
},
|
|
15879
|
+
"files": {
|
|
15880
|
+
"type": "array",
|
|
15881
|
+
"optional": true,
|
|
15882
|
+
"description": "The path of the JS or CSS files to inject, relative to the extension's root directory. Exactly one of <code>files</code> and <code>func</code> must be specified.",
|
|
15883
|
+
"minItems": 1,
|
|
15884
|
+
"items": {
|
|
15885
|
+
"type": "string"
|
|
15886
|
+
}
|
|
15887
|
+
},
|
|
15888
|
+
"func": {
|
|
15889
|
+
"type": "function",
|
|
15890
|
+
"optional": true,
|
|
15891
|
+
"description": "A JavaScript function to inject. This function will be serialized, and then deserialized for injection. This means that any bound parameters and execution context will be lost. Exactly one of <code>files</code> and <code>func</code> must be specified."
|
|
15892
|
+
},
|
|
15893
|
+
"target": {
|
|
15894
|
+
"$ref": "InjectionTarget",
|
|
15895
|
+
"description": "Details specifying the target into which to inject the script."
|
|
15896
|
+
}
|
|
15897
|
+
}
|
|
15898
|
+
},
|
|
15899
|
+
{
|
|
15900
|
+
"id": "InjectionResult",
|
|
15901
|
+
"type": "object",
|
|
15902
|
+
"description": "Result of a script injection.",
|
|
15903
|
+
"properties": {
|
|
15904
|
+
"frameId": {
|
|
15905
|
+
"type": "number",
|
|
15906
|
+
"description": "The frame ID associated with the injection."
|
|
15907
|
+
},
|
|
15908
|
+
"result": {
|
|
15909
|
+
"type": "any",
|
|
15910
|
+
"optional": true,
|
|
15911
|
+
"description": "The result of the script execution."
|
|
15912
|
+
}
|
|
15913
|
+
}
|
|
15914
|
+
},
|
|
15915
|
+
{
|
|
15916
|
+
"id": "InjectionTarget",
|
|
15917
|
+
"type": "object",
|
|
15918
|
+
"properties": {
|
|
15919
|
+
"frameIds": {
|
|
15920
|
+
"type": "array",
|
|
15921
|
+
"optional": true,
|
|
15922
|
+
"description": "The IDs of specific frames to inject into.",
|
|
15923
|
+
"items": {
|
|
15924
|
+
"type": "number"
|
|
15925
|
+
}
|
|
15926
|
+
},
|
|
15927
|
+
"tabId": {
|
|
15928
|
+
"type": "number",
|
|
15929
|
+
"description": "The ID of the tab into which to inject."
|
|
15930
|
+
}
|
|
15931
|
+
}
|
|
15932
|
+
}
|
|
15933
|
+
],
|
|
15934
|
+
"functions": [
|
|
15935
|
+
{
|
|
15936
|
+
"name": "executeScript",
|
|
15937
|
+
"type": "function",
|
|
15938
|
+
"description": "Injects a script into a target context. The script will be run at <code>document_idle</code>.",
|
|
15939
|
+
"async": "callback",
|
|
15940
|
+
"parameters": [
|
|
15941
|
+
{
|
|
15942
|
+
"name": "injection",
|
|
15943
|
+
"$ref": "ScriptInjection",
|
|
15944
|
+
"description": "The details of the script which to inject."
|
|
15945
|
+
},
|
|
15946
|
+
{
|
|
15947
|
+
"name": "callback",
|
|
15948
|
+
"type": "function",
|
|
15949
|
+
"description": "Invoked upon completion of the injection. The resulting array contains the result of execution for each frame where the injection succeeded.",
|
|
15950
|
+
"parameters": [
|
|
15951
|
+
{
|
|
15952
|
+
"name": "results",
|
|
15953
|
+
"type": "array",
|
|
15954
|
+
"items": {
|
|
15955
|
+
"$ref": "InjectionResult"
|
|
15956
|
+
}
|
|
15957
|
+
}
|
|
15958
|
+
]
|
|
15959
|
+
}
|
|
15960
|
+
]
|
|
15961
|
+
}
|
|
15962
|
+
]
|
|
15963
|
+
}
|
|
15964
|
+
],
|
|
15814
15965
|
"storage.json": [
|
|
15815
15966
|
{
|
|
15816
15967
|
"namespace": "storage",
|
|
@@ -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",
|
|
@@ -4662,8 +4683,8 @@
|
|
|
4662
4683
|
"data_format": {
|
|
4663
4684
|
"type": "string",
|
|
4664
4685
|
"optional": true,
|
|
4665
|
-
"default": "
|
|
4666
|
-
"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.",
|
|
4667
4688
|
"enum": [
|
|
4668
4689
|
"ArrayBuffer",
|
|
4669
4690
|
"File"
|
|
@@ -4710,17 +4731,17 @@
|
|
|
4710
4731
|
{
|
|
4711
4732
|
"name": "onFileUpload",
|
|
4712
4733
|
"type": "function",
|
|
4713
|
-
"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.",
|
|
4714
4735
|
"parameters": [
|
|
4715
4736
|
{
|
|
4716
4737
|
"name": "account",
|
|
4717
4738
|
"$ref": "CloudFileAccount",
|
|
4718
|
-
"description": "The
|
|
4739
|
+
"description": "The account used for the file upload."
|
|
4719
4740
|
},
|
|
4720
4741
|
{
|
|
4721
4742
|
"name": "fileInfo",
|
|
4722
4743
|
"$ref": "CloudFile",
|
|
4723
|
-
"description": "The file to upload"
|
|
4744
|
+
"description": "The file to upload."
|
|
4724
4745
|
},
|
|
4725
4746
|
{
|
|
4726
4747
|
"name": "tab",
|
|
@@ -4733,12 +4754,17 @@
|
|
|
4733
4754
|
"properties": {
|
|
4734
4755
|
"aborted": {
|
|
4735
4756
|
"type": "boolean",
|
|
4736
|
-
"description": "Set this to true if the file upload was aborted",
|
|
4757
|
+
"description": "Set this to true if the file upload was aborted.",
|
|
4737
4758
|
"optional": true
|
|
4738
4759
|
},
|
|
4739
4760
|
"url": {
|
|
4740
4761
|
"type": "string",
|
|
4741
|
-
"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.",
|
|
4742
4768
|
"optional": true
|
|
4743
4769
|
}
|
|
4744
4770
|
}
|
|
@@ -4751,13 +4777,13 @@
|
|
|
4751
4777
|
{
|
|
4752
4778
|
"name": "account",
|
|
4753
4779
|
"$ref": "CloudFileAccount",
|
|
4754
|
-
"description": "The
|
|
4780
|
+
"description": "The account used for the file upload."
|
|
4755
4781
|
},
|
|
4756
4782
|
{
|
|
4757
4783
|
"type": "integer",
|
|
4758
4784
|
"name": "fileId",
|
|
4759
4785
|
"minimum": 1,
|
|
4760
|
-
"description": "An identifier for this file"
|
|
4786
|
+
"description": "An identifier for this file."
|
|
4761
4787
|
},
|
|
4762
4788
|
{
|
|
4763
4789
|
"name": "tab",
|
|
@@ -4769,18 +4795,18 @@
|
|
|
4769
4795
|
{
|
|
4770
4796
|
"name": "onFileDeleted",
|
|
4771
4797
|
"type": "function",
|
|
4772
|
-
"description": "Fired when a file previously uploaded should be deleted",
|
|
4798
|
+
"description": "Fired when a file previously uploaded should be deleted.",
|
|
4773
4799
|
"parameters": [
|
|
4774
4800
|
{
|
|
4775
4801
|
"name": "account",
|
|
4776
4802
|
"$ref": "CloudFileAccount",
|
|
4777
|
-
"description": "The
|
|
4803
|
+
"description": "The account used for the file upload."
|
|
4778
4804
|
},
|
|
4779
4805
|
{
|
|
4780
4806
|
"type": "integer",
|
|
4781
4807
|
"name": "fileId",
|
|
4782
4808
|
"minimum": 1,
|
|
4783
|
-
"description": "An identifier for this file"
|
|
4809
|
+
"description": "An identifier for this file."
|
|
4784
4810
|
},
|
|
4785
4811
|
{
|
|
4786
4812
|
"name": "tab",
|
|
@@ -4792,24 +4818,24 @@
|
|
|
4792
4818
|
{
|
|
4793
4819
|
"name": "onAccountAdded",
|
|
4794
4820
|
"type": "function",
|
|
4795
|
-
"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.",
|
|
4796
4822
|
"parameters": [
|
|
4797
4823
|
{
|
|
4798
4824
|
"name": "account",
|
|
4799
4825
|
"$ref": "CloudFileAccount",
|
|
4800
|
-
"description": "The created account"
|
|
4826
|
+
"description": "The created account."
|
|
4801
4827
|
}
|
|
4802
4828
|
]
|
|
4803
4829
|
},
|
|
4804
4830
|
{
|
|
4805
4831
|
"name": "onAccountDeleted",
|
|
4806
4832
|
"type": "function",
|
|
4807
|
-
"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.",
|
|
4808
4834
|
"parameters": [
|
|
4809
4835
|
{
|
|
4810
4836
|
"name": "accountId",
|
|
4811
4837
|
"type": "string",
|
|
4812
|
-
"description": "The id of the removed account"
|
|
4838
|
+
"description": "The id of the removed account."
|
|
4813
4839
|
}
|
|
4814
4840
|
]
|
|
4815
4841
|
}
|
|
@@ -4818,11 +4844,11 @@
|
|
|
4818
4844
|
{
|
|
4819
4845
|
"id": "CloudFileAccount",
|
|
4820
4846
|
"type": "object",
|
|
4821
|
-
"description": "Information about a cloud file account",
|
|
4847
|
+
"description": "Information about a cloud file account.",
|
|
4822
4848
|
"properties": {
|
|
4823
4849
|
"id": {
|
|
4824
4850
|
"type": "string",
|
|
4825
|
-
"description": "Unique identifier of the account"
|
|
4851
|
+
"description": "Unique identifier of the account."
|
|
4826
4852
|
},
|
|
4827
4853
|
"configured": {
|
|
4828
4854
|
"type": "boolean",
|
|
@@ -4857,19 +4883,41 @@
|
|
|
4857
4883
|
}
|
|
4858
4884
|
}
|
|
4859
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
|
+
},
|
|
4860
4908
|
{
|
|
4861
4909
|
"id": "CloudFile",
|
|
4862
4910
|
"type": "object",
|
|
4863
|
-
"description": "Information about a cloud file",
|
|
4911
|
+
"description": "Information about a cloud file.",
|
|
4864
4912
|
"properties": {
|
|
4865
4913
|
"id": {
|
|
4866
4914
|
"type": "integer",
|
|
4867
4915
|
"minimum": 1,
|
|
4868
|
-
"description": "An identifier for this file"
|
|
4916
|
+
"description": "An identifier for this file."
|
|
4869
4917
|
},
|
|
4870
4918
|
"name": {
|
|
4871
4919
|
"type": "string",
|
|
4872
|
-
"description": "Filename of the file to be transferred"
|
|
4920
|
+
"description": "Filename of the file to be transferred."
|
|
4873
4921
|
},
|
|
4874
4922
|
"data": {
|
|
4875
4923
|
"choices": [
|
|
@@ -4877,13 +4925,13 @@
|
|
|
4877
4925
|
"type": "object",
|
|
4878
4926
|
"isInstanceOf": "ArrayBuffer",
|
|
4879
4927
|
"additionalProperties": true,
|
|
4880
|
-
"description": "Contents of the file to be transferred"
|
|
4928
|
+
"description": "Contents of the file to be transferred."
|
|
4881
4929
|
},
|
|
4882
4930
|
{
|
|
4883
4931
|
"type": "object",
|
|
4884
4932
|
"isInstanceOf": "File",
|
|
4885
4933
|
"additionalProperties": true,
|
|
4886
|
-
"description": "Contents of the file to be transferred"
|
|
4934
|
+
"description": "Contents of the file to be transferred."
|
|
4887
4935
|
}
|
|
4888
4936
|
]
|
|
4889
4937
|
}
|
|
@@ -4894,7 +4942,7 @@
|
|
|
4894
4942
|
{
|
|
4895
4943
|
"name": "getAccount",
|
|
4896
4944
|
"type": "function",
|
|
4897
|
-
"description": "Retrieve information about a single cloud file account",
|
|
4945
|
+
"description": "Retrieve information about a single cloud file account.",
|
|
4898
4946
|
"allowedContexts": [
|
|
4899
4947
|
"content"
|
|
4900
4948
|
],
|
|
@@ -4903,7 +4951,7 @@
|
|
|
4903
4951
|
{
|
|
4904
4952
|
"name": "accountId",
|
|
4905
4953
|
"type": "string",
|
|
4906
|
-
"description": "Unique identifier of the account"
|
|
4954
|
+
"description": "Unique identifier of the account."
|
|
4907
4955
|
},
|
|
4908
4956
|
{
|
|
4909
4957
|
"type": "function",
|
|
@@ -4920,7 +4968,7 @@
|
|
|
4920
4968
|
{
|
|
4921
4969
|
"name": "getAllAccounts",
|
|
4922
4970
|
"type": "function",
|
|
4923
|
-
"description": "Retrieve all cloud file accounts for the current add-on",
|
|
4971
|
+
"description": "Retrieve all cloud file accounts for the current add-on.",
|
|
4924
4972
|
"allowedContexts": [
|
|
4925
4973
|
"content"
|
|
4926
4974
|
],
|
|
@@ -4944,7 +4992,7 @@
|
|
|
4944
4992
|
{
|
|
4945
4993
|
"name": "updateAccount",
|
|
4946
4994
|
"type": "function",
|
|
4947
|
-
"description": "Update a cloud file account",
|
|
4995
|
+
"description": "Update a cloud file account.",
|
|
4948
4996
|
"allowedContexts": [
|
|
4949
4997
|
"content"
|
|
4950
4998
|
],
|
|
@@ -4953,7 +5001,7 @@
|
|
|
4953
5001
|
{
|
|
4954
5002
|
"name": "accountId",
|
|
4955
5003
|
"type": "string",
|
|
4956
|
-
"description": "Unique identifier of the account"
|
|
5004
|
+
"description": "Unique identifier of the account."
|
|
4957
5005
|
},
|
|
4958
5006
|
{
|
|
4959
5007
|
"name": "updateProperties",
|
|
@@ -8376,6 +8376,10 @@
|
|
|
8376
8376
|
"$ref": "types.Setting",
|
|
8377
8377
|
"description": "This setting controls whether the user-chosen colors override the page's colors."
|
|
8378
8378
|
},
|
|
8379
|
+
"overrideContentColorScheme": {
|
|
8380
|
+
"$ref": "types.Setting",
|
|
8381
|
+
"description": "This setting controls whether a light or dark color scheme overrides the page's preferred color scheme."
|
|
8382
|
+
},
|
|
8379
8383
|
"useDocumentFonts": {
|
|
8380
8384
|
"$ref": "types.Setting",
|
|
8381
8385
|
"description": "This setting controls whether the document's fonts are used."
|
|
@@ -14923,6 +14927,10 @@
|
|
|
14923
14927
|
"httpsOnlyMode": {
|
|
14924
14928
|
"$ref": "types.Setting",
|
|
14925
14929
|
"description": "Allow users to query the mode for 'HTTPS-Only Mode'. This setting's value is of type HTTPSOnlyModeOption, defaulting to <code>never</code>."
|
|
14930
|
+
},
|
|
14931
|
+
"globalPrivacyControl": {
|
|
14932
|
+
"$ref": "types.Setting",
|
|
14933
|
+
"description": "Allow users to query the status of 'Global Privacy Control'. This setting's value is of type boolean, defaulting to <code>false</code>."
|
|
14926
14934
|
}
|
|
14927
14935
|
}
|
|
14928
14936
|
},
|
|
@@ -18504,7 +18512,8 @@
|
|
|
18504
18512
|
"type": "string",
|
|
18505
18513
|
"enum": [
|
|
18506
18514
|
"webRequest",
|
|
18507
|
-
"webRequestBlocking"
|
|
18515
|
+
"webRequestBlocking",
|
|
18516
|
+
"webRequestFilterResponse.serviceWorkerScript"
|
|
18508
18517
|
]
|
|
18509
18518
|
}
|
|
18510
18519
|
]
|