|
| 1 | +/* eslint-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 interface WebManifest { |
| 9 | + /** |
| 10 | + * The background_color member describes the expected background color of the web application. |
| 11 | + */ |
| 12 | + background_color?: string; |
| 13 | + /** |
| 14 | + * The base direction of the manifest. |
| 15 | + */ |
| 16 | + dir?: "ltr" | "rtl" | "auto"; |
| 17 | + /** |
| 18 | + * The item represents the developer's preferred display mode for the web application. |
| 19 | + */ |
| 20 | + display?: "fullscreen" | "standalone" | "minimal-ui" | "browser"; |
| 21 | + /** |
| 22 | + * The icons member is an array of icon objects that can serve as iconic representations of the web application in various contexts. |
| 23 | + */ |
| 24 | + icons?: ManifestImageResource[]; |
| 25 | + /** |
| 26 | + * The primary language for the values of the manifest. |
| 27 | + */ |
| 28 | + lang?: string; |
| 29 | + /** |
| 30 | + * The name of the web application. |
| 31 | + */ |
| 32 | + name?: string; |
| 33 | + /** |
| 34 | + * The orientation member is a string that serves as the default orientation for all top-level browsing contexts of the web application. |
| 35 | + */ |
| 36 | + orientation?: |
| 37 | + | "any" |
| 38 | + | "natural" |
| 39 | + | "landscape" |
| 40 | + | "portrait" |
| 41 | + | "portrait-primary" |
| 42 | + | "portrait-secondary" |
| 43 | + | "landscape-primary" |
| 44 | + | "landscape-secondary"; |
| 45 | + /** |
| 46 | + * Boolean value that is used as a hint for the user agent to say that related applications should be preferred over the web application. |
| 47 | + */ |
| 48 | + prefer_related_applications?: boolean; |
| 49 | + /** |
| 50 | + * Array of application accessible to the underlying application platform that has a relationship with the web application. |
| 51 | + */ |
| 52 | + related_applications?: ExternalApplicationResource[]; |
| 53 | + /** |
| 54 | + * A string that represents the navigation scope of this web application's application context. |
| 55 | + */ |
| 56 | + scope?: string; |
| 57 | + /** |
| 58 | + * A string that represents a short version of the name of the web application. |
| 59 | + */ |
| 60 | + short_name?: string; |
| 61 | + /** |
| 62 | + * Array of shortcut items that provide access to key tasks within a web application. |
| 63 | + */ |
| 64 | + shortcuts?: ShortcutItem[]; |
| 65 | + /** |
| 66 | + * Represents the URL that the developer would prefer the user agent load when the user launches the web application. |
| 67 | + */ |
| 68 | + start_url?: string; |
| 69 | + /** |
| 70 | + * The theme_color member serves as the default theme color for an application context. |
| 71 | + */ |
| 72 | + theme_color?: string; |
| 73 | + /** |
| 74 | + * A string that represents the id of the web application. |
| 75 | + */ |
| 76 | + id?: string; |
| 77 | +} |
| 78 | +export interface ManifestImageResource { |
| 79 | + /** |
| 80 | + * The sizes member is a string consisting of an unordered set of unique space-separated tokens which are ASCII case-insensitive that represents the dimensions of an image for visual media. |
| 81 | + */ |
| 82 | + sizes?: string | "any"; |
| 83 | + /** |
| 84 | + * The src member of an image is a URL from which a user agent can fetch the icon's data. |
| 85 | + */ |
| 86 | + src: string; |
| 87 | + /** |
| 88 | + * The type member of an image is a hint as to the media type of the image. |
| 89 | + */ |
| 90 | + type?: string; |
| 91 | + purpose?: |
| 92 | + | "monochrome" |
| 93 | + | "maskable" |
| 94 | + | "any" |
| 95 | + | "monochrome maskable" |
| 96 | + | "monochrome any" |
| 97 | + | "maskable monochrome" |
| 98 | + | "maskable any" |
| 99 | + | "any monochrome" |
| 100 | + | "any maskable" |
| 101 | + | "monochrome maskable any" |
| 102 | + | "monochrome any maskable" |
| 103 | + | "maskable monochrome any" |
| 104 | + | "maskable any monochrome" |
| 105 | + | "any monochrome maskable" |
| 106 | + | "any maskable monochrome"; |
| 107 | +} |
| 108 | +export interface ExternalApplicationResource { |
| 109 | + /** |
| 110 | + * The platform it is associated to. |
| 111 | + */ |
| 112 | + platform: "chrome_web_store" | "play" | "itunes" | "windows"; |
| 113 | + /** |
| 114 | + * The URL where the application can be found. |
| 115 | + */ |
| 116 | + url?: string; |
| 117 | + /** |
| 118 | + * Information additional to the URL or instead of the URL, depending on the platform. |
| 119 | + */ |
| 120 | + id?: string; |
| 121 | + /** |
| 122 | + * Information about the minimum version of an application related to this web app. |
| 123 | + */ |
| 124 | + min_version?: string; |
| 125 | + /** |
| 126 | + * An array of fingerprint objects used for verifying the application. |
| 127 | + */ |
| 128 | + fingerprints?: { |
| 129 | + type?: string; |
| 130 | + value?: string; |
| 131 | + }[]; |
| 132 | +} |
| 133 | +/** |
| 134 | + * A shortcut item represents a link to a key task or page within a web app. A user agent can use these values to assemble a context menu to be displayed by the operating system when a user engages with the web app's icon. |
| 135 | + */ |
| 136 | +export interface ShortcutItem { |
| 137 | + /** |
| 138 | + * The name member of a shortcut item is a string that represents the name of the shortcut as it is usually displayed to the user in a context menu. |
| 139 | + */ |
| 140 | + name: string; |
| 141 | + /** |
| 142 | + * The short_name member of a shortcut item is a string that represents a short version of the name of the shortcut. It is intended to be used where there is insufficient space to display the full name of the shortcut. |
| 143 | + */ |
| 144 | + short_name?: string; |
| 145 | + /** |
| 146 | + * The description member of a shortcut item is a string that allows the developer to describe the purpose of the shortcut. |
| 147 | + */ |
| 148 | + description?: string; |
| 149 | + /** |
| 150 | + * The url member of a shortcut item is a URL within scope of a processed manifest that opens when the associated shortcut is activated. |
| 151 | + */ |
| 152 | + url: string; |
| 153 | + /** |
| 154 | + * The icons member of a shortcut item serves as iconic representations of the shortcut in various contexts. |
| 155 | + */ |
| 156 | + icons?: ManifestImageResource[]; |
| 157 | +} |
0 commit comments