@schemastore/chrome-manifest 0.0.2 → 0.0.3
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 -1
- package/index.d.ts +48 -25
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,5 +8,5 @@ This package contains type definitions for chrome-manifest.
|
|
|
8
8
|
Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/chrome-manifest.
|
|
9
9
|
|
|
10
10
|
## Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, Feb 24, 2023, 11:23:31 GMT
|
|
12
12
|
* Dependencies: none
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* eslint-disable */
|
|
2
2
|
/**
|
|
3
3
|
* This file was automatically generated by json-schema-to-typescript.
|
|
4
4
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
@@ -7,7 +7,21 @@
|
|
|
7
7
|
|
|
8
8
|
export type MatchPattern = string;
|
|
9
9
|
export type Icon = string;
|
|
10
|
+
/**
|
|
11
|
+
* The list of JavaScript files to be injected into matching pages. These are injected in the order they appear in this array.
|
|
12
|
+
*
|
|
13
|
+
* @minItems 1
|
|
14
|
+
*/
|
|
15
|
+
export type Scripts = [Icon, ...Icon[]];
|
|
10
16
|
export type GlobPattern = string;
|
|
17
|
+
/**
|
|
18
|
+
* Use the chrome.permissions API to request declared optional permissions at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary.
|
|
19
|
+
*/
|
|
20
|
+
export type Permissions = string[];
|
|
21
|
+
/**
|
|
22
|
+
* Permissions help to limit damage if your extension or app is compromised by malware. Some permissions are also displayed to users before installation, as detailed in Permission Warnings.
|
|
23
|
+
*/
|
|
24
|
+
export type Permissions1 = string[];
|
|
11
25
|
|
|
12
26
|
export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
13
27
|
/**
|
|
@@ -77,11 +91,15 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
77
91
|
};
|
|
78
92
|
/**
|
|
79
93
|
* Content scripts are JavaScript files that run in the context of web pages.
|
|
94
|
+
*
|
|
95
|
+
* @minItems 1
|
|
80
96
|
*/
|
|
81
97
|
content_scripts?: [
|
|
82
98
|
{
|
|
83
99
|
/**
|
|
84
100
|
* Specifies which pages this content script will be injected into.
|
|
101
|
+
*
|
|
102
|
+
* @minItems 1
|
|
85
103
|
*/
|
|
86
104
|
matches: [MatchPattern, ...MatchPattern[]];
|
|
87
105
|
/**
|
|
@@ -92,10 +110,7 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
92
110
|
* The list of CSS files to be injected into matching pages. These are injected in the order they appear in this array, before any DOM is constructed or displayed for the page.
|
|
93
111
|
*/
|
|
94
112
|
css?: Icon[];
|
|
95
|
-
|
|
96
|
-
* The list of JavaScript files to be injected into matching pages. These are injected in the order they appear in this array.
|
|
97
|
-
*/
|
|
98
|
-
js?: [Icon, ...Icon[]];
|
|
113
|
+
js?: Scripts;
|
|
99
114
|
/**
|
|
100
115
|
* Controls when the files in js are injected.
|
|
101
116
|
*/
|
|
@@ -120,6 +135,8 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
120
135
|
...{
|
|
121
136
|
/**
|
|
122
137
|
* Specifies which pages this content script will be injected into.
|
|
138
|
+
*
|
|
139
|
+
* @minItems 1
|
|
123
140
|
*/
|
|
124
141
|
matches: [MatchPattern, ...MatchPattern[]];
|
|
125
142
|
/**
|
|
@@ -130,10 +147,7 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
130
147
|
* The list of CSS files to be injected into matching pages. These are injected in the order they appear in this array, before any DOM is constructed or displayed for the page.
|
|
131
148
|
*/
|
|
132
149
|
css?: Icon[];
|
|
133
|
-
|
|
134
|
-
* The list of JavaScript files to be injected into matching pages. These are injected in the order they appear in this array.
|
|
135
|
-
*/
|
|
136
|
-
js?: [Icon, ...Icon[]];
|
|
150
|
+
js?: Scripts;
|
|
137
151
|
/**
|
|
138
152
|
* Controls when the files in js are injected.
|
|
139
153
|
*/
|
|
@@ -173,6 +187,8 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
173
187
|
};
|
|
174
188
|
/**
|
|
175
189
|
* You can use this API to enable users to upload files to your website.
|
|
190
|
+
*
|
|
191
|
+
* @minItems 1
|
|
176
192
|
*/
|
|
177
193
|
file_browser_handlers?: [
|
|
178
194
|
{
|
|
@@ -186,6 +202,8 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
186
202
|
default_title: string;
|
|
187
203
|
/**
|
|
188
204
|
* Filetypes to match.
|
|
205
|
+
*
|
|
206
|
+
* @minItems 1
|
|
189
207
|
*/
|
|
190
208
|
file_filters: [string, ...string[]];
|
|
191
209
|
},
|
|
@@ -200,6 +218,8 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
200
218
|
default_title: string;
|
|
201
219
|
/**
|
|
202
220
|
* Filetypes to match.
|
|
221
|
+
*
|
|
222
|
+
* @minItems 1
|
|
203
223
|
*/
|
|
204
224
|
file_filters: [string, ...string[]];
|
|
205
225
|
}[]
|
|
@@ -233,6 +253,8 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
233
253
|
minimum_chrome_version?: string;
|
|
234
254
|
/**
|
|
235
255
|
* One or more mappings from MIME types to the Native Client module that handles each type.
|
|
256
|
+
*
|
|
257
|
+
* @minItems 1
|
|
236
258
|
*/
|
|
237
259
|
nacl_modules?: [
|
|
238
260
|
{
|
|
@@ -264,6 +286,9 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
264
286
|
* You need to register your app in the Google APIs Console to get the client ID.
|
|
265
287
|
*/
|
|
266
288
|
client_id: string;
|
|
289
|
+
/**
|
|
290
|
+
* @minItems 1
|
|
291
|
+
*/
|
|
267
292
|
scopes: [string, ...string[]];
|
|
268
293
|
};
|
|
269
294
|
/**
|
|
@@ -279,10 +304,7 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
279
304
|
*/
|
|
280
305
|
keyword: string;
|
|
281
306
|
};
|
|
282
|
-
|
|
283
|
-
* Use the chrome.permissions API to request declared optional permissions at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary.
|
|
284
|
-
*/
|
|
285
|
-
optional_permissions?: string[];
|
|
307
|
+
optional_permissions?: Permissions;
|
|
286
308
|
/**
|
|
287
309
|
* To allow users to customize the behavior of your extension, you may wish to provide an options page. If you do, a link to it will be provided from the extensions management page at chrome://extensions. Clicking the Options link opens a new tab pointing at your options page.
|
|
288
310
|
*/
|
|
@@ -305,10 +327,7 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
305
327
|
open_in_tab?: boolean;
|
|
306
328
|
[k: string]: unknown;
|
|
307
329
|
};
|
|
308
|
-
|
|
309
|
-
* Permissions help to limit damage if your extension or app is compromised by malware. Some permissions are also displayed to users before installation, as detailed in Permission Warnings.
|
|
310
|
-
*/
|
|
311
|
-
permissions?: string[];
|
|
330
|
+
permissions?: Permissions1;
|
|
312
331
|
/**
|
|
313
332
|
* Technologies required by the app or extension. Hosting sites such as the Chrome Web Store may use this list to dissuade users from installing apps or extensions that will not work on their computer.
|
|
314
333
|
*/
|
|
@@ -319,6 +338,8 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
319
338
|
"3D"?: {
|
|
320
339
|
/**
|
|
321
340
|
* List of the 3D-related features your app requires.
|
|
341
|
+
*
|
|
342
|
+
* @minItems 1
|
|
322
343
|
*/
|
|
323
344
|
features: ["webgl", ..."webgl"[]];
|
|
324
345
|
};
|
|
@@ -333,6 +354,9 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
333
354
|
* Defines an collection of app or extension pages that are to be served in a sandboxed unique origin, and optionally a Content Security Policy to use with them.
|
|
334
355
|
*/
|
|
335
356
|
sandbox?: {
|
|
357
|
+
/**
|
|
358
|
+
* @minItems 1
|
|
359
|
+
*/
|
|
336
360
|
pages: [Icon, ...Icon[]];
|
|
337
361
|
/**
|
|
338
362
|
* This introduces some fairly strict policies that will make extensions more secure by default, and provides you with the ability to create and enforce rules governing the types of content that can be loaded and executed by your extensions and applications.
|
|
@@ -353,6 +377,8 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
353
377
|
tts_engine?: {
|
|
354
378
|
/**
|
|
355
379
|
* Voices the extension can synthesize.
|
|
380
|
+
*
|
|
381
|
+
* @minItems 1
|
|
356
382
|
*/
|
|
357
383
|
voices: [
|
|
358
384
|
{
|
|
@@ -370,6 +396,8 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
370
396
|
gender?: string;
|
|
371
397
|
/**
|
|
372
398
|
* Events sent to update the client on the progress of speech synthesis.
|
|
399
|
+
*
|
|
400
|
+
* @minItems 1
|
|
373
401
|
*/
|
|
374
402
|
event_types: [
|
|
375
403
|
"start" | "word" | "sentence" | "marker" | "end" | "error",
|
|
@@ -391,6 +419,8 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
391
419
|
gender?: string;
|
|
392
420
|
/**
|
|
393
421
|
* Events sent to update the client on the progress of speech synthesis.
|
|
422
|
+
*
|
|
423
|
+
* @minItems 1
|
|
394
424
|
*/
|
|
395
425
|
event_types: [
|
|
396
426
|
"start" | "word" | "sentence" | "marker" | "end" | "error",
|
|
@@ -425,12 +455,5 @@ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
|
|
|
425
455
|
* via the `patternProperty` "^_execute_page_action$".
|
|
426
456
|
*/
|
|
427
457
|
export interface Command {
|
|
428
|
-
|
|
429
|
-
suggested_key?: {
|
|
430
|
-
/**
|
|
431
|
-
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
432
|
-
* via the `patternProperty` "^(default|mac|windows|linux|chromeos)$".
|
|
433
|
-
*/
|
|
434
|
-
[k: string]: string;
|
|
435
|
-
};
|
|
458
|
+
[k: string]: unknown;
|
|
436
459
|
}
|
package/package.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"name": "@schemastore/chrome-manifest",
|
|
8
8
|
"repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/chrome-manifest",
|
|
9
9
|
"scripts": {},
|
|
10
|
-
"typesPublisherContentHash": "
|
|
10
|
+
"typesPublisherContentHash": "78b2e30e3b2a898c7a2a41c770b30f31d24af03bbbd8ea20a2cc482093bd9ad4",
|
|
11
11
|
"types": "index.d.ts",
|
|
12
|
-
"version": "0.0.
|
|
12
|
+
"version": "0.0.3",
|
|
13
13
|
"typeScriptVersion": "2.2"
|
|
14
14
|
}
|