@schemastore/chrome-manifest 0.0.2

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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -0
  3. package/index.d.ts +436 -0
  4. package/package.json +14 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Florian Imdahl. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # Installation
2
+ > `npm install --save @schemastore/chrome-manifest`
3
+
4
+ # Summary
5
+ This package contains type definitions for chrome-manifest.
6
+
7
+ ## Details
8
+ Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/chrome-manifest.
9
+
10
+ ## Additional Details
11
+ * Last updated: Wed, Apr 20, 2022, 07:13:18 GMT
12
+ * Dependencies: none
package/index.d.ts ADDED
@@ -0,0 +1,436 @@
1
+ /* tslint:disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
8
+ export type MatchPattern = string;
9
+ export type Icon = string;
10
+ export type GlobPattern = string;
11
+
12
+ export interface JSONSchemaForGoogleChromeExtensionManifestFiles {
13
+ /**
14
+ * One integer specifying the version of the manifest file format your package requires.
15
+ */
16
+ manifest_version: 2 | 3;
17
+ /**
18
+ * The name of the extension
19
+ */
20
+ name: string;
21
+ /**
22
+ * One to four dot-separated integers identifying the version of this extension.
23
+ */
24
+ version: string;
25
+ /**
26
+ * Specifies the subdirectory of _locales that contains the default strings for this extension.
27
+ */
28
+ default_locale?: string;
29
+ /**
30
+ * A plain text description of the extension
31
+ */
32
+ description?: string;
33
+ /**
34
+ * One or more icons that represent the extension, app, or theme. Recommended format: PNG; also BMP, GIF, ICO, JPEG.
35
+ */
36
+ icons?: {
37
+ /**
38
+ * Used as the favicon for an extension's pages and infobar.
39
+ */
40
+ "16"?: string;
41
+ /**
42
+ * Used on the extension management page (chrome://extensions).
43
+ */
44
+ "48"?: string;
45
+ /**
46
+ * Used during installation and in the Chrome Web Store.
47
+ */
48
+ "128"?: string;
49
+ /**
50
+ * Used during installation and in the Chrome Web Store.
51
+ */
52
+ "256"?: string;
53
+ [k: string]: unknown;
54
+ };
55
+ /**
56
+ * Override pages are a way to substitute an HTML file from your extension for a page that Google Chrome normally provides.
57
+ */
58
+ chrome_url_overrides?: {
59
+ /**
60
+ * The page that appears when the user chooses the Bookmark Manager menu item from the Chrome menu or, on Mac, the Bookmark Manager item from the Bookmarks menu. You can also get to this page by entering the URL chrome://bookmarks.
61
+ */
62
+ bookmarks?: string;
63
+ /**
64
+ * The page that appears when the user chooses the History menu item from the Chrome menu or, on Mac, the Show Full History item from the History menu. You can also get to this page by entering the URL chrome://history.
65
+ */
66
+ history?: string;
67
+ /**
68
+ * The page that appears when the user creates a new tab or window. You can also get to this page by entering the URL chrome://newtab.
69
+ */
70
+ newtab?: string;
71
+ };
72
+ /**
73
+ * Use the commands API to add keyboard shortcuts that trigger actions in your extension, for example, an action to open the browser action or send a command to the extension.
74
+ */
75
+ commands?: {
76
+ [k: string]: unknown;
77
+ };
78
+ /**
79
+ * Content scripts are JavaScript files that run in the context of web pages.
80
+ */
81
+ content_scripts?: [
82
+ {
83
+ /**
84
+ * Specifies which pages this content script will be injected into.
85
+ */
86
+ matches: [MatchPattern, ...MatchPattern[]];
87
+ /**
88
+ * Excludes pages that this content script would otherwise be injected into.
89
+ */
90
+ exclude_matches?: MatchPattern[];
91
+ /**
92
+ * 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
+ */
94
+ 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[]];
99
+ /**
100
+ * Controls when the files in js are injected.
101
+ */
102
+ run_at?: "document_start" | "document_end" | "document_idle";
103
+ /**
104
+ * Controls whether the content script runs in all frames of the matching page, or only the top frame.
105
+ */
106
+ all_frames?: boolean;
107
+ /**
108
+ * Applied after matches to include only those URLs that also match this glob. Intended to emulate the @include Greasemonkey keyword.
109
+ */
110
+ include_globs?: GlobPattern[];
111
+ /**
112
+ * Applied after matches to exclude URLs that match this glob. Intended to emulate the @exclude Greasemonkey keyword.
113
+ */
114
+ exclude_globs?: GlobPattern[];
115
+ /**
116
+ * Whether to insert the content script on about:blank and about:srcdoc.
117
+ */
118
+ match_about_blank?: boolean;
119
+ },
120
+ ...{
121
+ /**
122
+ * Specifies which pages this content script will be injected into.
123
+ */
124
+ matches: [MatchPattern, ...MatchPattern[]];
125
+ /**
126
+ * Excludes pages that this content script would otherwise be injected into.
127
+ */
128
+ exclude_matches?: MatchPattern[];
129
+ /**
130
+ * 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
+ */
132
+ 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[]];
137
+ /**
138
+ * Controls when the files in js are injected.
139
+ */
140
+ run_at?: "document_start" | "document_end" | "document_idle";
141
+ /**
142
+ * Controls whether the content script runs in all frames of the matching page, or only the top frame.
143
+ */
144
+ all_frames?: boolean;
145
+ /**
146
+ * Applied after matches to include only those URLs that also match this glob. Intended to emulate the @include Greasemonkey keyword.
147
+ */
148
+ include_globs?: GlobPattern[];
149
+ /**
150
+ * Applied after matches to exclude URLs that match this glob. Intended to emulate the @exclude Greasemonkey keyword.
151
+ */
152
+ exclude_globs?: GlobPattern[];
153
+ /**
154
+ * Whether to insert the content script on about:blank and about:srcdoc.
155
+ */
156
+ match_about_blank?: boolean;
157
+ }[]
158
+ ];
159
+ /**
160
+ * A DevTools extension adds functionality to the Chrome DevTools. It can add new UI panels and sidebars, interact with the inspected page, get information about network requests, and more.
161
+ */
162
+ devtools_page?: string;
163
+ /**
164
+ * Declares which extensions, apps, and web pages can connect to your extension via runtime.connect and runtime.sendMessage.
165
+ */
166
+ externally_connectable?: {
167
+ ids?: string[];
168
+ matches?: string[];
169
+ /**
170
+ * Indicates that the extension would like to make use of the TLS channel ID of the web page connecting to it. The web page must also opt to send the TLS channel ID to the extension via setting includeTlsChannelId to true in runtime.connect's connectInfo or runtime.sendMessage's options.
171
+ */
172
+ accepts_tls_channel_id?: boolean;
173
+ };
174
+ /**
175
+ * You can use this API to enable users to upload files to your website.
176
+ */
177
+ file_browser_handlers?: [
178
+ {
179
+ /**
180
+ * Used by event handling code to differentiate between multiple file handlers
181
+ */
182
+ id: string;
183
+ /**
184
+ * What the button will display.
185
+ */
186
+ default_title: string;
187
+ /**
188
+ * Filetypes to match.
189
+ */
190
+ file_filters: [string, ...string[]];
191
+ },
192
+ ...{
193
+ /**
194
+ * Used by event handling code to differentiate between multiple file handlers
195
+ */
196
+ id: string;
197
+ /**
198
+ * What the button will display.
199
+ */
200
+ default_title: string;
201
+ /**
202
+ * Filetypes to match.
203
+ */
204
+ file_filters: [string, ...string[]];
205
+ }[]
206
+ ];
207
+ /**
208
+ * The URL of the homepage for this extension.
209
+ */
210
+ homepage_url?: string;
211
+ /**
212
+ * Specify how this extension will behave if allowed to run in incognito mode.
213
+ */
214
+ incognito?: "spanning" | "split" | "not_allowed";
215
+ /**
216
+ * Allows your extension to handle keystrokes, set the composition, and manage the candidate window.
217
+ */
218
+ input_components?: {
219
+ name: string;
220
+ type: string;
221
+ id: string;
222
+ description: string;
223
+ language: string;
224
+ layouts: unknown[];
225
+ }[];
226
+ /**
227
+ * This value can be used to control the unique ID of an extension, app, or theme when it is loaded during development.
228
+ */
229
+ key?: string;
230
+ /**
231
+ * The version of Chrome that your extension, app, or theme requires, if any.
232
+ */
233
+ minimum_chrome_version?: string;
234
+ /**
235
+ * One or more mappings from MIME types to the Native Client module that handles each type.
236
+ */
237
+ nacl_modules?: [
238
+ {
239
+ /**
240
+ * The location of a Native Client manifest (a .nmf file) within the extension directory.
241
+ */
242
+ path: string;
243
+ /**
244
+ * The MIME type for which the Native Client module will be registered as content handler.
245
+ */
246
+ mime_type: string;
247
+ },
248
+ ...{
249
+ /**
250
+ * The location of a Native Client manifest (a .nmf file) within the extension directory.
251
+ */
252
+ path: string;
253
+ /**
254
+ * The MIME type for which the Native Client module will be registered as content handler.
255
+ */
256
+ mime_type: string;
257
+ }[]
258
+ ];
259
+ /**
260
+ * Use the Chrome Identity API to authenticate users: the getAuthToken for users logged into their Google Account and the launchWebAuthFlow for users logged into a non-Google account.
261
+ */
262
+ oauth2?: {
263
+ /**
264
+ * You need to register your app in the Google APIs Console to get the client ID.
265
+ */
266
+ client_id: string;
267
+ scopes: [string, ...string[]];
268
+ };
269
+ /**
270
+ * Whether the app or extension is expected to work offline. When Chrome detects that it is offline, apps with this field set to true will be highlighted on the New Tab page.
271
+ */
272
+ offline_enabled?: boolean;
273
+ /**
274
+ * The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox.
275
+ */
276
+ omnibox?: {
277
+ /**
278
+ * The keyword that will trigger your extension.
279
+ */
280
+ keyword: string;
281
+ };
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[];
286
+ /**
287
+ * 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
+ */
289
+ options_page?: string;
290
+ /**
291
+ * To allow users to customize the behavior of your extension, you may wish to provide an options page. If you do, an Options link will be shown on the extensions management page at chrome://extensions which opens a dialogue containing your options page.
292
+ */
293
+ options_ui?: {
294
+ /**
295
+ * The path to your options page, relative to your extension's root.
296
+ */
297
+ page: string;
298
+ /**
299
+ * If true, a Chrome user agent stylesheet will be applied to your options page. The default value is false, but we recommend you enable it for a consistent UI with Chrome.
300
+ */
301
+ chrome_style?: boolean;
302
+ /**
303
+ * If true, your extension's options page will be opened in a new tab rather than embedded in chrome://extensions. The default is false, and we recommend that you don't change it. This is only useful to delay the inevitable deprecation of the old options UI! It will be removed soon, so try not to use it. It will break.
304
+ */
305
+ open_in_tab?: boolean;
306
+ [k: string]: unknown;
307
+ };
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[];
312
+ /**
313
+ * 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
+ */
315
+ requirements?: {
316
+ /**
317
+ * The '3D' requirement denotes GPU hardware acceleration.
318
+ */
319
+ "3D"?: {
320
+ /**
321
+ * List of the 3D-related features your app requires.
322
+ */
323
+ features: ["webgl", ..."webgl"[]];
324
+ };
325
+ /**
326
+ * Indicates if an app or extension requires NPAPI to run. This requirement is enabled by default when the manifest includes the 'plugins' field.
327
+ */
328
+ plugins?: {
329
+ npapi: boolean;
330
+ };
331
+ };
332
+ /**
333
+ * 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
+ */
335
+ sandbox?: {
336
+ pages: [Icon, ...Icon[]];
337
+ /**
338
+ * 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.
339
+ */
340
+ content_security_policy?: string;
341
+ };
342
+ /**
343
+ * The short name is typically used where there is insufficient space to display the full name.
344
+ */
345
+ short_name?: string;
346
+ /**
347
+ * If you publish using the Chrome Developer Dashboard, ignore this field. If you host your own extension or app: URL to an update manifest XML file.
348
+ */
349
+ update_url?: string;
350
+ /**
351
+ * Register itself as a speech engine.
352
+ */
353
+ tts_engine?: {
354
+ /**
355
+ * Voices the extension can synthesize.
356
+ */
357
+ voices: [
358
+ {
359
+ /**
360
+ * Identifies the name of the voice and the engine used.
361
+ */
362
+ voice_name: string;
363
+ /**
364
+ * Almost always, a voice can synthesize speech in just a single language. When an engine supports more than one language, it can easily register a separate voice for each language.
365
+ */
366
+ lang?: string;
367
+ /**
368
+ * If your voice corresponds to a male or female voice, you can use this parameter to help clients choose the most appropriate voice for their application.
369
+ */
370
+ gender?: string;
371
+ /**
372
+ * Events sent to update the client on the progress of speech synthesis.
373
+ */
374
+ event_types: [
375
+ "start" | "word" | "sentence" | "marker" | "end" | "error",
376
+ ...("start" | "word" | "sentence" | "marker" | "end" | "error")[]
377
+ ];
378
+ },
379
+ ...{
380
+ /**
381
+ * Identifies the name of the voice and the engine used.
382
+ */
383
+ voice_name: string;
384
+ /**
385
+ * Almost always, a voice can synthesize speech in just a single language. When an engine supports more than one language, it can easily register a separate voice for each language.
386
+ */
387
+ lang?: string;
388
+ /**
389
+ * If your voice corresponds to a male or female voice, you can use this parameter to help clients choose the most appropriate voice for their application.
390
+ */
391
+ gender?: string;
392
+ /**
393
+ * Events sent to update the client on the progress of speech synthesis.
394
+ */
395
+ event_types: [
396
+ "start" | "word" | "sentence" | "marker" | "end" | "error",
397
+ ...("start" | "word" | "sentence" | "marker" | "end" | "error")[]
398
+ ];
399
+ }[]
400
+ ];
401
+ };
402
+ /**
403
+ * In addition to the version field, which is used for update purposes, version_name can be set to a descriptive version string and will be used for display purposes if present.
404
+ */
405
+ version_name?: string;
406
+ chrome_settings_overrides?: unknown;
407
+ content_pack?: unknown;
408
+ current_locale?: unknown;
409
+ import?: unknown;
410
+ platforms?: unknown;
411
+ signature?: unknown;
412
+ spellcheck?: unknown;
413
+ storage?: unknown;
414
+ system_indicator?: unknown;
415
+ [k: string]: unknown;
416
+ }
417
+ /**
418
+ * This interface was referenced by `undefined`'s JSON-Schema definition
419
+ * via the `patternProperty` ".*".
420
+ *
421
+ * This interface was referenced by `undefined`'s JSON-Schema definition
422
+ * via the `patternProperty` "^_execute_browser_action$".
423
+ *
424
+ * This interface was referenced by `undefined`'s JSON-Schema definition
425
+ * via the `patternProperty` "^_execute_page_action$".
426
+ */
427
+ export interface Command {
428
+ description?: string;
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
+ };
436
+ }
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "author": "Florian Imdahl <git@ffflorian.de>",
3
+ "dependencies": {},
4
+ "description": "TypeScript definitions for chrome-manifest.",
5
+ "license": "MIT",
6
+ "main": "index.d.ts",
7
+ "name": "@schemastore/chrome-manifest",
8
+ "repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/chrome-manifest",
9
+ "scripts": {},
10
+ "typesPublisherContentHash": "865b9b02deaa20d96d7d0b9a261b46f3dd040da98622ed1b49cc2b2b1d8bde24",
11
+ "types": "index.d.ts",
12
+ "version": "0.0.2",
13
+ "typeScriptVersion": "2.2"
14
+ }