webext-schema 5.0.5 → 5.0.7
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 +7 -7
- package/schemas/beta/webext.json +2 -8
- package/schemas/central/webext.json +88 -48
- package/schemas/mail/mailext.json +870 -460
- package/schemas/release/webext.json +2 -8
package/package.json
CHANGED
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
"decamelize": "^6.0.0",
|
|
34
34
|
"json5": "^2.2.1",
|
|
35
35
|
"node-fetch": "^3.2.10",
|
|
36
|
-
"sinon": "^14.0.
|
|
36
|
+
"sinon": "^14.0.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"c8": "^7.12.0",
|
|
40
|
-
"chai": "^4.3.
|
|
41
|
-
"eslint": "^8.
|
|
40
|
+
"chai": "^4.3.7",
|
|
41
|
+
"eslint": "^8.27.0",
|
|
42
42
|
"eslint-config-standard": "^17.0.0",
|
|
43
43
|
"eslint-plugin-import": "^2.26.0",
|
|
44
|
-
"eslint-plugin-jsdoc": "^39.
|
|
44
|
+
"eslint-plugin-jsdoc": "^39.6.2",
|
|
45
45
|
"eslint-plugin-node": "^11.1.0",
|
|
46
|
-
"eslint-plugin-promise": "^6.
|
|
47
|
-
"mocha": "^10.
|
|
46
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
47
|
+
"mocha": "^10.1.0",
|
|
48
48
|
"nock": "^13.2.9",
|
|
49
49
|
"npm-run-all": "^4.1.5"
|
|
50
50
|
},
|
|
51
|
-
"version": "5.0.
|
|
51
|
+
"version": "5.0.7"
|
|
52
52
|
}
|
package/schemas/beta/webext.json
CHANGED
|
@@ -16262,15 +16262,9 @@
|
|
|
16262
16262
|
"description": "The result of the script execution."
|
|
16263
16263
|
},
|
|
16264
16264
|
"error": {
|
|
16265
|
-
"type": "
|
|
16265
|
+
"type": "any",
|
|
16266
16266
|
"optional": true,
|
|
16267
|
-
"description": "
|
|
16268
|
-
"properties": {
|
|
16269
|
-
"message": {
|
|
16270
|
-
"type": "string",
|
|
16271
|
-
"description": "A message explaining why the injection has failed."
|
|
16272
|
-
}
|
|
16273
|
-
}
|
|
16267
|
+
"description": "The error property is set when the script execution failed. The value is typically an (Error) object with a message property, but could be any value (including primitives and undefined) if the script threw or rejected with such a value."
|
|
16274
16268
|
}
|
|
16275
16269
|
}
|
|
16276
16270
|
},
|
|
@@ -8060,10 +8060,24 @@
|
|
|
8060
8060
|
{
|
|
8061
8061
|
"name": "openPopup",
|
|
8062
8062
|
"type": "function",
|
|
8063
|
-
"
|
|
8064
|
-
"description": "Opens the extension popup window in the active window.",
|
|
8063
|
+
"description": "Opens the extension popup window in the specified window.",
|
|
8065
8064
|
"async": true,
|
|
8066
|
-
"parameters": [
|
|
8065
|
+
"parameters": [
|
|
8066
|
+
{
|
|
8067
|
+
"name": "options",
|
|
8068
|
+
"optional": true,
|
|
8069
|
+
"type": "object",
|
|
8070
|
+
"description": "An object with information about the popup to open.",
|
|
8071
|
+
"properties": {
|
|
8072
|
+
"windowId": {
|
|
8073
|
+
"type": "integer",
|
|
8074
|
+
"minimum": -2,
|
|
8075
|
+
"optional": true,
|
|
8076
|
+
"description": "Defaults to the $(topic:current-window)[current window]."
|
|
8077
|
+
}
|
|
8078
|
+
}
|
|
8079
|
+
}
|
|
8080
|
+
]
|
|
8067
8081
|
}
|
|
8068
8082
|
],
|
|
8069
8083
|
"events": [
|
|
@@ -9697,6 +9711,11 @@
|
|
|
9697
9711
|
"rulesetId": {
|
|
9698
9712
|
"type": "string",
|
|
9699
9713
|
"description": "ID of the Ruleset this rule belongs to."
|
|
9714
|
+
},
|
|
9715
|
+
"extensionId": {
|
|
9716
|
+
"type": "string",
|
|
9717
|
+
"description": "ID of the extension, if this rule belongs to a different extension.",
|
|
9718
|
+
"optional": true
|
|
9700
9719
|
}
|
|
9701
9720
|
}
|
|
9702
9721
|
},
|
|
@@ -9742,7 +9761,7 @@
|
|
|
9742
9761
|
"minItems": 1,
|
|
9743
9762
|
"items": {
|
|
9744
9763
|
"type": "string",
|
|
9745
|
-
"
|
|
9764
|
+
"format": "canonicalDomain"
|
|
9746
9765
|
}
|
|
9747
9766
|
},
|
|
9748
9767
|
"excludedInitiatorDomains": {
|
|
@@ -9751,7 +9770,7 @@
|
|
|
9751
9770
|
"description": "The rule will not match network requests originating from the list of 'initiatorDomains'. If the list is empty or omitted, no domains are excluded. This takes precedence over 'initiatorDomains'.",
|
|
9752
9771
|
"items": {
|
|
9753
9772
|
"type": "string",
|
|
9754
|
-
"
|
|
9773
|
+
"format": "canonicalDomain"
|
|
9755
9774
|
}
|
|
9756
9775
|
},
|
|
9757
9776
|
"requestDomains": {
|
|
@@ -9761,7 +9780,7 @@
|
|
|
9761
9780
|
"minItems": 1,
|
|
9762
9781
|
"items": {
|
|
9763
9782
|
"type": "string",
|
|
9764
|
-
"
|
|
9783
|
+
"format": "canonicalDomain"
|
|
9765
9784
|
}
|
|
9766
9785
|
},
|
|
9767
9786
|
"excludedRequestDomains": {
|
|
@@ -9770,7 +9789,7 @@
|
|
|
9770
9789
|
"description": "The rule will not match network requests when the domains matches one from the list of 'excludedRequestDomains'. If the list is empty or omitted, no domains are excluded. This takes precedence over 'requestDomains'.",
|
|
9771
9790
|
"items": {
|
|
9772
9791
|
"type": "string",
|
|
9773
|
-
"
|
|
9792
|
+
"format": "canonicalDomain"
|
|
9774
9793
|
}
|
|
9775
9794
|
},
|
|
9776
9795
|
"resourceTypes": {
|
|
@@ -9786,7 +9805,6 @@
|
|
|
9786
9805
|
"type": "array",
|
|
9787
9806
|
"optional": true,
|
|
9788
9807
|
"description": "List of resource types which the rule won't match. Cannot be specified if 'resourceTypes' is specified. If neither of them is specified, all resource types except 'main_frame' are matched.",
|
|
9789
|
-
"minItems": 1,
|
|
9790
9808
|
"items": {
|
|
9791
9809
|
"$ref": "ResourceType"
|
|
9792
9810
|
}
|
|
@@ -9804,7 +9822,6 @@
|
|
|
9804
9822
|
"type": "array",
|
|
9805
9823
|
"optional": true,
|
|
9806
9824
|
"description": "List of request methods which the rule won't match. Cannot be specified if 'requestMethods' is specified. If neither of them is specified, all request methods are matched.",
|
|
9807
|
-
"minItems": 1,
|
|
9808
9825
|
"items": {
|
|
9809
9826
|
"type": "string"
|
|
9810
9827
|
}
|
|
@@ -9869,6 +9886,7 @@
|
|
|
9869
9886
|
},
|
|
9870
9887
|
"url": {
|
|
9871
9888
|
"type": "string",
|
|
9889
|
+
"format": "url",
|
|
9872
9890
|
"optional": true,
|
|
9873
9891
|
"description": "The redirect url. Redirects to JavaScript urls are not allowed."
|
|
9874
9892
|
},
|
|
@@ -9880,51 +9898,59 @@
|
|
|
9880
9898
|
}
|
|
9881
9899
|
},
|
|
9882
9900
|
"requestHeaders": {
|
|
9883
|
-
"type": "
|
|
9901
|
+
"type": "array",
|
|
9884
9902
|
"optional": true,
|
|
9885
9903
|
"description": "The request headers to modify for the request. Only valid when type is 'modifyHeaders'.",
|
|
9886
|
-
"
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
"
|
|
9895
|
-
"
|
|
9896
|
-
"
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
"
|
|
9904
|
+
"minItems": 1,
|
|
9905
|
+
"items": {
|
|
9906
|
+
"type": "object",
|
|
9907
|
+
"properties": {
|
|
9908
|
+
"header": {
|
|
9909
|
+
"type": "string",
|
|
9910
|
+
"description": "The name of the request header to be modified."
|
|
9911
|
+
},
|
|
9912
|
+
"operation": {
|
|
9913
|
+
"type": "string",
|
|
9914
|
+
"description": "The operation to be performed on a header. The 'append' operation is not supported for request headers.",
|
|
9915
|
+
"enum": [
|
|
9916
|
+
"set",
|
|
9917
|
+
"remove"
|
|
9918
|
+
]
|
|
9919
|
+
},
|
|
9920
|
+
"value": {
|
|
9921
|
+
"type": "string",
|
|
9922
|
+
"optional": true,
|
|
9923
|
+
"description": "The new value for the header. Must be specified for the 'set' operation."
|
|
9924
|
+
}
|
|
9903
9925
|
}
|
|
9904
9926
|
}
|
|
9905
9927
|
},
|
|
9906
9928
|
"responseHeaders": {
|
|
9907
|
-
"type": "
|
|
9929
|
+
"type": "array",
|
|
9908
9930
|
"optional": true,
|
|
9909
9931
|
"description": "The response headers to modify for the request. Only valid when type is 'modifyHeaders'.",
|
|
9910
|
-
"
|
|
9911
|
-
|
|
9912
|
-
|
|
9913
|
-
|
|
9914
|
-
|
|
9915
|
-
|
|
9916
|
-
|
|
9917
|
-
|
|
9918
|
-
"
|
|
9919
|
-
"
|
|
9920
|
-
"
|
|
9921
|
-
"
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
"
|
|
9932
|
+
"minItems": 1,
|
|
9933
|
+
"items": {
|
|
9934
|
+
"type": "object",
|
|
9935
|
+
"properties": {
|
|
9936
|
+
"header": {
|
|
9937
|
+
"type": "string",
|
|
9938
|
+
"description": "The name of the response header to be modified."
|
|
9939
|
+
},
|
|
9940
|
+
"operation": {
|
|
9941
|
+
"type": "string",
|
|
9942
|
+
"description": "The operation to be performed on a header.",
|
|
9943
|
+
"enum": [
|
|
9944
|
+
"append",
|
|
9945
|
+
"set",
|
|
9946
|
+
"remove"
|
|
9947
|
+
]
|
|
9948
|
+
},
|
|
9949
|
+
"value": {
|
|
9950
|
+
"type": "string",
|
|
9951
|
+
"optional": true,
|
|
9952
|
+
"description": "The new value for the header. Must be specified for the 'append' and 'set' operations."
|
|
9953
|
+
}
|
|
9928
9954
|
}
|
|
9929
9955
|
}
|
|
9930
9956
|
}
|
|
@@ -10031,6 +10057,18 @@
|
|
|
10031
10057
|
}
|
|
10032
10058
|
}
|
|
10033
10059
|
},
|
|
10060
|
+
{
|
|
10061
|
+
"name": "options",
|
|
10062
|
+
"type": "object",
|
|
10063
|
+
"optional": true,
|
|
10064
|
+
"properties": {
|
|
10065
|
+
"includeOtherExtensions": {
|
|
10066
|
+
"type": "boolean",
|
|
10067
|
+
"description": "Whether to account for rules from other installed extensions during rule evaluation.",
|
|
10068
|
+
"optional": true
|
|
10069
|
+
}
|
|
10070
|
+
}
|
|
10071
|
+
},
|
|
10034
10072
|
{
|
|
10035
10073
|
"name": "callback",
|
|
10036
10074
|
"type": "function",
|
|
@@ -13047,7 +13085,8 @@
|
|
|
13047
13085
|
"applications": {
|
|
13048
13086
|
"$ref": "BrowserSpecificSettings",
|
|
13049
13087
|
"description": "The applications property is deprecated, please use 'browser_specific_settings'",
|
|
13050
|
-
"optional": true
|
|
13088
|
+
"optional": true,
|
|
13089
|
+
"max_manifest_version": 2
|
|
13051
13090
|
},
|
|
13052
13091
|
"browser_specific_settings": {
|
|
13053
13092
|
"$ref": "BrowserSpecificSettings",
|
|
@@ -13076,7 +13115,8 @@
|
|
|
13076
13115
|
},
|
|
13077
13116
|
"version": {
|
|
13078
13117
|
"type": "string",
|
|
13079
|
-
"optional": false
|
|
13118
|
+
"optional": false,
|
|
13119
|
+
"format": "versionString"
|
|
13080
13120
|
},
|
|
13081
13121
|
"homepage_url": {
|
|
13082
13122
|
"type": "string",
|