webext-schema 5.0.9 → 5.0.10
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 +2 -2
- package/schemas/beta/webext.json +229 -4
package/package.json
CHANGED
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"eslint-plugin-jsdoc": "^39.6.4",
|
|
45
45
|
"eslint-plugin-node": "^11.1.0",
|
|
46
46
|
"eslint-plugin-promise": "^6.1.1",
|
|
47
|
-
"mocha": "^10.
|
|
47
|
+
"mocha": "^10.2.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.10"
|
|
52
52
|
}
|
package/schemas/beta/webext.json
CHANGED
|
@@ -3267,6 +3267,11 @@
|
|
|
3267
3267
|
"minLength": 1,
|
|
3268
3268
|
"description": "The text that is displayed in the URL dropdown. Can contain XML-style markup for styling. The supported tags are 'url' (for a literal URL), 'match' (for highlighting text that matched what the user's query), and 'dim' (for dim helper text). The styles can be nested, eg. <dim><match>dimmed match</match></dim>. You must escape the five predefined entities to display them as text: stackoverflow.com/a/1091953/89484 "
|
|
3269
3269
|
},
|
|
3270
|
+
"deletable": {
|
|
3271
|
+
"type": "boolean",
|
|
3272
|
+
"optional": true,
|
|
3273
|
+
"description": "Whether the suggest result can be deleted by the user."
|
|
3274
|
+
},
|
|
3270
3275
|
"descriptionStyles": {
|
|
3271
3276
|
"optional": true,
|
|
3272
3277
|
"unsupported": true,
|
|
@@ -3431,6 +3436,17 @@
|
|
|
3431
3436
|
"type": "function",
|
|
3432
3437
|
"description": "User has ended the keyword input session without accepting the input.",
|
|
3433
3438
|
"parameters": []
|
|
3439
|
+
},
|
|
3440
|
+
{
|
|
3441
|
+
"name": "onDeleteSuggestion",
|
|
3442
|
+
"type": "function",
|
|
3443
|
+
"description": "User has deleted a suggested result.",
|
|
3444
|
+
"parameters": [
|
|
3445
|
+
{
|
|
3446
|
+
"type": "string",
|
|
3447
|
+
"name": "text"
|
|
3448
|
+
}
|
|
3449
|
+
]
|
|
3434
3450
|
}
|
|
3435
3451
|
]
|
|
3436
3452
|
}
|
|
@@ -9662,6 +9678,46 @@
|
|
|
9662
9678
|
"min_manifest_version": 3
|
|
9663
9679
|
}
|
|
9664
9680
|
]
|
|
9681
|
+
},
|
|
9682
|
+
{
|
|
9683
|
+
"$extend": "WebExtensionManifest",
|
|
9684
|
+
"properties": {
|
|
9685
|
+
"declarative_net_request": {
|
|
9686
|
+
"type": "object",
|
|
9687
|
+
"min_manifest_version": 3,
|
|
9688
|
+
"optional": true,
|
|
9689
|
+
"additionalProperties": {
|
|
9690
|
+
"$ref": "UnrecognizedProperty"
|
|
9691
|
+
},
|
|
9692
|
+
"properties": {
|
|
9693
|
+
"rule_resources": {
|
|
9694
|
+
"type": "array",
|
|
9695
|
+
"minItems": 1,
|
|
9696
|
+
"items": {
|
|
9697
|
+
"type": "object",
|
|
9698
|
+
"additionalProperties": {
|
|
9699
|
+
"$ref": "UnrecognizedProperty"
|
|
9700
|
+
},
|
|
9701
|
+
"properties": {
|
|
9702
|
+
"id": {
|
|
9703
|
+
"type": "string",
|
|
9704
|
+
"pattern": "^[^_]",
|
|
9705
|
+
"description": "A non-empty string uniquely identifying the ruleset. IDs beginning with '_' are reserved for internal use."
|
|
9706
|
+
},
|
|
9707
|
+
"enabled": {
|
|
9708
|
+
"type": "boolean",
|
|
9709
|
+
"description": "Whether the ruleset is enabled by default."
|
|
9710
|
+
},
|
|
9711
|
+
"path": {
|
|
9712
|
+
"$ref": "manifest.ExtensionURL",
|
|
9713
|
+
"description": "The path of the JSON ruleset relative to the extension directory."
|
|
9714
|
+
}
|
|
9715
|
+
}
|
|
9716
|
+
}
|
|
9717
|
+
}
|
|
9718
|
+
}
|
|
9719
|
+
}
|
|
9720
|
+
}
|
|
9665
9721
|
}
|
|
9666
9722
|
]
|
|
9667
9723
|
},
|
|
@@ -9719,6 +9775,95 @@
|
|
|
9719
9775
|
}
|
|
9720
9776
|
}
|
|
9721
9777
|
},
|
|
9778
|
+
{
|
|
9779
|
+
"id": "URLTransform",
|
|
9780
|
+
"type": "object",
|
|
9781
|
+
"description": "Describes the type of the Rule.action.redirect.transform property.",
|
|
9782
|
+
"properties": {
|
|
9783
|
+
"scheme": {
|
|
9784
|
+
"type": "string",
|
|
9785
|
+
"optional": true,
|
|
9786
|
+
"description": "The new scheme for the request.",
|
|
9787
|
+
"enum": [
|
|
9788
|
+
"http",
|
|
9789
|
+
"https",
|
|
9790
|
+
"moz-extension"
|
|
9791
|
+
]
|
|
9792
|
+
},
|
|
9793
|
+
"username": {
|
|
9794
|
+
"type": "string",
|
|
9795
|
+
"optional": true,
|
|
9796
|
+
"description": "The new username for the request."
|
|
9797
|
+
},
|
|
9798
|
+
"password": {
|
|
9799
|
+
"type": "string",
|
|
9800
|
+
"optional": true,
|
|
9801
|
+
"description": "The new password for the request."
|
|
9802
|
+
},
|
|
9803
|
+
"host": {
|
|
9804
|
+
"type": "string",
|
|
9805
|
+
"optional": true,
|
|
9806
|
+
"description": "The new host name for the request."
|
|
9807
|
+
},
|
|
9808
|
+
"port": {
|
|
9809
|
+
"type": "string",
|
|
9810
|
+
"optional": true,
|
|
9811
|
+
"description": "The new port for the request. If empty, the existing port is cleared."
|
|
9812
|
+
},
|
|
9813
|
+
"path": {
|
|
9814
|
+
"type": "string",
|
|
9815
|
+
"optional": true,
|
|
9816
|
+
"description": "The new path for the request. If empty, the existing path is cleared."
|
|
9817
|
+
},
|
|
9818
|
+
"query": {
|
|
9819
|
+
"type": "string",
|
|
9820
|
+
"optional": true,
|
|
9821
|
+
"description": "The new query for the request. Should be either empty, in which case the existing query is cleared; or should begin with '?'. Cannot be specified if 'queryTransform' is specified."
|
|
9822
|
+
},
|
|
9823
|
+
"queryTransform": {
|
|
9824
|
+
"type": "object",
|
|
9825
|
+
"optional": true,
|
|
9826
|
+
"description": "Add, remove or replace query key-value pairs. Cannot be specified if 'query' is specified.",
|
|
9827
|
+
"properties": {
|
|
9828
|
+
"removeParams": {
|
|
9829
|
+
"type": "array",
|
|
9830
|
+
"optional": true,
|
|
9831
|
+
"description": "The list of query keys to be removed.",
|
|
9832
|
+
"items": {
|
|
9833
|
+
"type": "string"
|
|
9834
|
+
}
|
|
9835
|
+
},
|
|
9836
|
+
"addOrReplaceParams": {
|
|
9837
|
+
"type": "array",
|
|
9838
|
+
"optional": true,
|
|
9839
|
+
"description": "The list of query key-value pairs to be added or replaced.",
|
|
9840
|
+
"items": {
|
|
9841
|
+
"type": "object",
|
|
9842
|
+
"properties": {
|
|
9843
|
+
"key": {
|
|
9844
|
+
"type": "string"
|
|
9845
|
+
},
|
|
9846
|
+
"value": {
|
|
9847
|
+
"type": "string"
|
|
9848
|
+
},
|
|
9849
|
+
"replaceOnly": {
|
|
9850
|
+
"type": "boolean",
|
|
9851
|
+
"optional": true,
|
|
9852
|
+
"description": "If true, the query key is replaced only if it's already present. Otherwise, the key is also added if it's missing.",
|
|
9853
|
+
"default": false
|
|
9854
|
+
}
|
|
9855
|
+
}
|
|
9856
|
+
}
|
|
9857
|
+
}
|
|
9858
|
+
}
|
|
9859
|
+
},
|
|
9860
|
+
"fragment": {
|
|
9861
|
+
"type": "string",
|
|
9862
|
+
"optional": true,
|
|
9863
|
+
"description": "The new fragment for the request. Should be either empty, in which case the existing fragment is cleared; or should begin with '#'."
|
|
9864
|
+
}
|
|
9865
|
+
}
|
|
9866
|
+
},
|
|
9722
9867
|
{
|
|
9723
9868
|
"id": "Rule",
|
|
9724
9869
|
"type": "object",
|
|
@@ -9880,9 +10025,9 @@
|
|
|
9880
10025
|
"description": "Path relative to the extension directory. Should start with '/'."
|
|
9881
10026
|
},
|
|
9882
10027
|
"transform": {
|
|
9883
|
-
"
|
|
10028
|
+
"$ref": "URLTransform",
|
|
9884
10029
|
"optional": true,
|
|
9885
|
-
"description": "
|
|
10030
|
+
"description": "Url transformations to perform."
|
|
9886
10031
|
},
|
|
9887
10032
|
"url": {
|
|
9888
10033
|
"type": "string",
|
|
@@ -9911,8 +10056,9 @@
|
|
|
9911
10056
|
},
|
|
9912
10057
|
"operation": {
|
|
9913
10058
|
"type": "string",
|
|
9914
|
-
"description": "The operation to be performed on a header.
|
|
10059
|
+
"description": "The operation to be performed on a header.",
|
|
9915
10060
|
"enum": [
|
|
10061
|
+
"append",
|
|
9916
10062
|
"set",
|
|
9917
10063
|
"remove"
|
|
9918
10064
|
]
|
|
@@ -9920,7 +10066,7 @@
|
|
|
9920
10066
|
"value": {
|
|
9921
10067
|
"type": "string",
|
|
9922
10068
|
"optional": true,
|
|
9923
|
-
"description": "The new value for the header. Must be specified for the 'set'
|
|
10069
|
+
"description": "The new value for the header. Must be specified for the 'append' and 'set' operations."
|
|
9924
10070
|
}
|
|
9925
10071
|
}
|
|
9926
10072
|
}
|
|
@@ -9996,6 +10142,80 @@
|
|
|
9996
10142
|
}
|
|
9997
10143
|
]
|
|
9998
10144
|
},
|
|
10145
|
+
{
|
|
10146
|
+
"name": "getEnabledRulesets",
|
|
10147
|
+
"type": "function",
|
|
10148
|
+
"description": "Returns the ids for the current set of enabled static rulesets.",
|
|
10149
|
+
"async": "callback",
|
|
10150
|
+
"parameters": [
|
|
10151
|
+
{
|
|
10152
|
+
"name": "callback",
|
|
10153
|
+
"type": "function",
|
|
10154
|
+
"parameters": [
|
|
10155
|
+
{
|
|
10156
|
+
"type": "array",
|
|
10157
|
+
"name": "rulesetIds",
|
|
10158
|
+
"items": {
|
|
10159
|
+
"type": "string"
|
|
10160
|
+
}
|
|
10161
|
+
}
|
|
10162
|
+
]
|
|
10163
|
+
}
|
|
10164
|
+
]
|
|
10165
|
+
},
|
|
10166
|
+
{
|
|
10167
|
+
"name": "updateEnabledRulesets",
|
|
10168
|
+
"type": "function",
|
|
10169
|
+
"description": "Returns the ids for the current set of enabled static rulesets.",
|
|
10170
|
+
"async": "callback",
|
|
10171
|
+
"parameters": [
|
|
10172
|
+
{
|
|
10173
|
+
"name": "updateRulesetOptions",
|
|
10174
|
+
"type": "object",
|
|
10175
|
+
"properties": {
|
|
10176
|
+
"disableRulesetIds": {
|
|
10177
|
+
"type": "array",
|
|
10178
|
+
"items": {
|
|
10179
|
+
"type": "string"
|
|
10180
|
+
},
|
|
10181
|
+
"optional": true,
|
|
10182
|
+
"default": []
|
|
10183
|
+
},
|
|
10184
|
+
"enableRulesetIds": {
|
|
10185
|
+
"type": "array",
|
|
10186
|
+
"items": {
|
|
10187
|
+
"type": "string"
|
|
10188
|
+
},
|
|
10189
|
+
"optional": true,
|
|
10190
|
+
"default": []
|
|
10191
|
+
}
|
|
10192
|
+
}
|
|
10193
|
+
},
|
|
10194
|
+
{
|
|
10195
|
+
"name": "callback",
|
|
10196
|
+
"type": "function",
|
|
10197
|
+
"parameters": []
|
|
10198
|
+
}
|
|
10199
|
+
]
|
|
10200
|
+
},
|
|
10201
|
+
{
|
|
10202
|
+
"name": "getAvailableStaticRuleCount",
|
|
10203
|
+
"type": "function",
|
|
10204
|
+
"description": "Returns the remaining number of static rules an extension can enable",
|
|
10205
|
+
"async": "callback",
|
|
10206
|
+
"parameters": [
|
|
10207
|
+
{
|
|
10208
|
+
"name": "callback",
|
|
10209
|
+
"type": "function",
|
|
10210
|
+
"parameters": [
|
|
10211
|
+
{
|
|
10212
|
+
"name": "count",
|
|
10213
|
+
"type": "integer"
|
|
10214
|
+
}
|
|
10215
|
+
]
|
|
10216
|
+
}
|
|
10217
|
+
]
|
|
10218
|
+
},
|
|
9999
10219
|
{
|
|
10000
10220
|
"name": "getSessionRules",
|
|
10001
10221
|
"type": "function",
|
|
@@ -19730,6 +19950,11 @@
|
|
|
19730
19950
|
"description": "The key exchange algorithm used in this request if state is \"secure\".",
|
|
19731
19951
|
"optional": true
|
|
19732
19952
|
},
|
|
19953
|
+
"secretKeyLength": {
|
|
19954
|
+
"type": "number",
|
|
19955
|
+
"description": "The length (in bits) of the secret key.",
|
|
19956
|
+
"optional": true
|
|
19957
|
+
},
|
|
19733
19958
|
"signatureSchemeName": {
|
|
19734
19959
|
"type": "string",
|
|
19735
19960
|
"description": "The signature scheme used in this request if state is \"secure\".",
|