chrome-types 0.1.108 → 0.1.111
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/_all.d.ts +11 -83
- package/index.d.ts +11 -83
- package/package.json +2 -2
package/_all.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Tue May 24 2022 22:36:26 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at f337dcab83c7a8303dac849ac32721f64ae3c4c6
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -1899,7 +1899,7 @@ declare namespace chrome {
|
|
|
1899
1899
|
*/
|
|
1900
1900
|
export type NameFromType = "uninitialized" | "attribute" | "attributeExplicitlyEmpty" | "caption" | "contents" | "placeholder" | "relatedElement" | "title" | "value";
|
|
1901
1901
|
|
|
1902
|
-
export type DescriptionFromType = "ariaDescription" | "buttonLabel" | "relatedElement" | "rubyAnnotation" | "summary" | "svgDescElement" | "tableCaption" | "title";
|
|
1902
|
+
export type DescriptionFromType = "ariaDescription" | "buttonLabel" | "popupElement" | "relatedElement" | "rubyAnnotation" | "summary" | "svgDescElement" | "tableCaption" | "title";
|
|
1903
1903
|
|
|
1904
1904
|
/**
|
|
1905
1905
|
* The input restriction for a object -- even non-controls can be disabled.
|
|
@@ -23284,7 +23284,7 @@ declare namespace chrome {
|
|
|
23284
23284
|
/**
|
|
23285
23285
|
* Whether the injection should be triggered in the target as soon as possible. Note that this is not a guarantee that injection will occur prior to page load, as the page may have already loaded by the time the script reaches the target.
|
|
23286
23286
|
*
|
|
23287
|
-
* @since
|
|
23287
|
+
* @since Chrome 102
|
|
23288
23288
|
*/
|
|
23289
23289
|
injectImmediately?: boolean;
|
|
23290
23290
|
}
|
|
@@ -23375,7 +23375,7 @@ declare namespace chrome {
|
|
|
23375
23375
|
/**
|
|
23376
23376
|
* The JavaScript "world" to run the script in. Defaults to `ISOLATED`.
|
|
23377
23377
|
*
|
|
23378
|
-
* @since
|
|
23378
|
+
* @since Chrome 102
|
|
23379
23379
|
*/
|
|
23380
23380
|
world?: ExecutionWorld;
|
|
23381
23381
|
}
|
|
@@ -24269,80 +24269,6 @@ declare namespace chrome {
|
|
|
24269
24269
|
}
|
|
24270
24270
|
}
|
|
24271
24271
|
|
|
24272
|
-
/**
|
|
24273
|
-
* Use the `chrome.signedInDevices` API to get a list of devices signed into Chrome with the same account as the current profile.
|
|
24274
|
-
*
|
|
24275
|
-
* @alpha
|
|
24276
|
-
* @chrome-permission signedInDevices
|
|
24277
|
-
* @chrome-channel dev
|
|
24278
|
-
*/
|
|
24279
|
-
export namespace signedInDevices {
|
|
24280
|
-
|
|
24281
|
-
export type OS = "win" | "mac" | "linux" | "chrome_os" | "android" | "ios" | "unknown";
|
|
24282
|
-
|
|
24283
|
-
export type DeviceType = "desktop_or_laptop" | "phone" | "tablet" | "unknown";
|
|
24284
|
-
|
|
24285
|
-
export interface DeviceInfo {
|
|
24286
|
-
|
|
24287
|
-
/**
|
|
24288
|
-
* Name of the device. This name is usually set by the user when setting up a device.
|
|
24289
|
-
*/
|
|
24290
|
-
name: string;
|
|
24291
|
-
|
|
24292
|
-
/**
|
|
24293
|
-
* Unique Id for this device. Note: The id is meaningful only in the current device. This id cannot be used to refer to the same device from another device or extension.
|
|
24294
|
-
*/
|
|
24295
|
-
id: string;
|
|
24296
|
-
|
|
24297
|
-
/**
|
|
24298
|
-
* The OS of the device.
|
|
24299
|
-
*/
|
|
24300
|
-
os: OS;
|
|
24301
|
-
|
|
24302
|
-
/**
|
|
24303
|
-
* Device Type.
|
|
24304
|
-
*/
|
|
24305
|
-
type: DeviceType;
|
|
24306
|
-
|
|
24307
|
-
/**
|
|
24308
|
-
* Version of Chrome running on this device.
|
|
24309
|
-
*/
|
|
24310
|
-
chromeVersion: string;
|
|
24311
|
-
}
|
|
24312
|
-
|
|
24313
|
-
/**
|
|
24314
|
-
* Fired when the DeviceInfo object of any of the signed in devices changes, or when a device is added or removed.
|
|
24315
|
-
*/
|
|
24316
|
-
export const onDeviceInfoChange: events.Event<(
|
|
24317
|
-
devices: DeviceInfo[],
|
|
24318
|
-
) => void>;
|
|
24319
|
-
|
|
24320
|
-
/**
|
|
24321
|
-
* Gets the array of signed in devices, signed into the same account as the current profile.
|
|
24322
|
-
*
|
|
24323
|
-
* @param isLocal If true only return the information for the local device. If false or omitted return the list of all devices including the local device.
|
|
24324
|
-
*/
|
|
24325
|
-
export function get(
|
|
24326
|
-
|
|
24327
|
-
isLocal?: boolean,
|
|
24328
|
-
): Promise<DeviceInfo[]>;
|
|
24329
|
-
|
|
24330
|
-
/**
|
|
24331
|
-
* Gets the array of signed in devices, signed into the same account as the current profile.
|
|
24332
|
-
*
|
|
24333
|
-
* @param isLocal If true only return the information for the local device. If false or omitted return the list of all devices including the local device.
|
|
24334
|
-
* @param callback The callback to be invoked with the array of DeviceInfo objects.
|
|
24335
|
-
*/
|
|
24336
|
-
export function get(
|
|
24337
|
-
|
|
24338
|
-
isLocal?: boolean,
|
|
24339
|
-
|
|
24340
|
-
callback?: (
|
|
24341
|
-
devices: DeviceInfo[],
|
|
24342
|
-
) => void,
|
|
24343
|
-
): void;
|
|
24344
|
-
}
|
|
24345
|
-
|
|
24346
24272
|
/**
|
|
24347
24273
|
* Use the `chrome.socket` API to send and receive data over the network using TCP and UDP connections. **Note:** Starting with Chrome 33, this API is deprecated in favor of the {@link sockets.udp}, {@link sockets.tcp} and {@link sockets.tcpServer} APIs.
|
|
24348
24274
|
*
|
|
@@ -26171,7 +26097,7 @@ declare namespace chrome {
|
|
|
26171
26097
|
/**
|
|
26172
26098
|
* The storage area's access level.
|
|
26173
26099
|
*
|
|
26174
|
-
* @since
|
|
26100
|
+
* @since Chrome 102
|
|
26175
26101
|
*/
|
|
26176
26102
|
export type AccessLevel = "TRUSTED_CONTEXTS" | "TRUSTED_AND_UNTRUSTED_CONTEXTS";
|
|
26177
26103
|
|
|
@@ -26333,7 +26259,8 @@ declare namespace chrome {
|
|
|
26333
26259
|
/**
|
|
26334
26260
|
* Sets the desired access level for the storage area. The default will be only trusted contexts.
|
|
26335
26261
|
*
|
|
26336
|
-
* @since Pending
|
|
26262
|
+
* @chrome-returns-extra since Pending
|
|
26263
|
+
* @since Chrome 102
|
|
26337
26264
|
*/
|
|
26338
26265
|
setAccessLevel(
|
|
26339
26266
|
|
|
@@ -26350,7 +26277,7 @@ declare namespace chrome {
|
|
|
26350
26277
|
* Sets the desired access level for the storage area. The default will be only trusted contexts.
|
|
26351
26278
|
*
|
|
26352
26279
|
* @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
|
|
26353
|
-
* @since
|
|
26280
|
+
* @since Chrome 102
|
|
26354
26281
|
*/
|
|
26355
26282
|
setAccessLevel(
|
|
26356
26283
|
|
|
@@ -26425,7 +26352,7 @@ declare namespace chrome {
|
|
|
26425
26352
|
/**
|
|
26426
26353
|
* Items in the `session` storage area are stored in-memory and will not be persisted to disk.
|
|
26427
26354
|
*
|
|
26428
|
-
* @since
|
|
26355
|
+
* @since Chrome 102
|
|
26429
26356
|
* @chrome-min-manifest MV3
|
|
26430
26357
|
*/
|
|
26431
26358
|
export const session: StorageArea & {
|
|
@@ -31548,6 +31475,7 @@ declare namespace chrome {
|
|
|
31548
31475
|
* @since Chrome 43
|
|
31549
31476
|
* @chrome-permission vpnProvider
|
|
31550
31477
|
* @chrome-platform chromeos
|
|
31478
|
+
* @chrome-platform lacros
|
|
31551
31479
|
*/
|
|
31552
31480
|
export namespace vpnProvider {
|
|
31553
31481
|
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Tue May 24 2022 22:36:20 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at f337dcab83c7a8303dac849ac32721f64ae3c4c6
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -1150,7 +1150,7 @@ declare namespace chrome {
|
|
|
1150
1150
|
*/
|
|
1151
1151
|
export type NameFromType = "uninitialized" | "attribute" | "attributeExplicitlyEmpty" | "caption" | "contents" | "placeholder" | "relatedElement" | "title" | "value";
|
|
1152
1152
|
|
|
1153
|
-
export type DescriptionFromType = "ariaDescription" | "buttonLabel" | "relatedElement" | "rubyAnnotation" | "summary" | "svgDescElement" | "tableCaption" | "title";
|
|
1153
|
+
export type DescriptionFromType = "ariaDescription" | "buttonLabel" | "popupElement" | "relatedElement" | "rubyAnnotation" | "summary" | "svgDescElement" | "tableCaption" | "title";
|
|
1154
1154
|
|
|
1155
1155
|
/**
|
|
1156
1156
|
* The input restriction for a object -- even non-controls can be disabled.
|
|
@@ -18178,7 +18178,7 @@ declare namespace chrome {
|
|
|
18178
18178
|
/**
|
|
18179
18179
|
* Whether the injection should be triggered in the target as soon as possible. Note that this is not a guarantee that injection will occur prior to page load, as the page may have already loaded by the time the script reaches the target.
|
|
18180
18180
|
*
|
|
18181
|
-
* @since
|
|
18181
|
+
* @since Chrome 102
|
|
18182
18182
|
*/
|
|
18183
18183
|
injectImmediately?: boolean;
|
|
18184
18184
|
}
|
|
@@ -18269,7 +18269,7 @@ declare namespace chrome {
|
|
|
18269
18269
|
/**
|
|
18270
18270
|
* The JavaScript "world" to run the script in. Defaults to `ISOLATED`.
|
|
18271
18271
|
*
|
|
18272
|
-
* @since
|
|
18272
|
+
* @since Chrome 102
|
|
18273
18273
|
*/
|
|
18274
18274
|
world?: ExecutionWorld;
|
|
18275
18275
|
}
|
|
@@ -18685,80 +18685,6 @@ declare namespace chrome {
|
|
|
18685
18685
|
}
|
|
18686
18686
|
}
|
|
18687
18687
|
|
|
18688
|
-
/**
|
|
18689
|
-
* Use the `chrome.signedInDevices` API to get a list of devices signed into Chrome with the same account as the current profile.
|
|
18690
|
-
*
|
|
18691
|
-
* @alpha
|
|
18692
|
-
* @chrome-permission signedInDevices
|
|
18693
|
-
* @chrome-channel dev
|
|
18694
|
-
*/
|
|
18695
|
-
export namespace signedInDevices {
|
|
18696
|
-
|
|
18697
|
-
export type OS = "win" | "mac" | "linux" | "chrome_os" | "android" | "ios" | "unknown";
|
|
18698
|
-
|
|
18699
|
-
export type DeviceType = "desktop_or_laptop" | "phone" | "tablet" | "unknown";
|
|
18700
|
-
|
|
18701
|
-
export interface DeviceInfo {
|
|
18702
|
-
|
|
18703
|
-
/**
|
|
18704
|
-
* Name of the device. This name is usually set by the user when setting up a device.
|
|
18705
|
-
*/
|
|
18706
|
-
name: string;
|
|
18707
|
-
|
|
18708
|
-
/**
|
|
18709
|
-
* Unique Id for this device. Note: The id is meaningful only in the current device. This id cannot be used to refer to the same device from another device or extension.
|
|
18710
|
-
*/
|
|
18711
|
-
id: string;
|
|
18712
|
-
|
|
18713
|
-
/**
|
|
18714
|
-
* The OS of the device.
|
|
18715
|
-
*/
|
|
18716
|
-
os: OS;
|
|
18717
|
-
|
|
18718
|
-
/**
|
|
18719
|
-
* Device Type.
|
|
18720
|
-
*/
|
|
18721
|
-
type: DeviceType;
|
|
18722
|
-
|
|
18723
|
-
/**
|
|
18724
|
-
* Version of Chrome running on this device.
|
|
18725
|
-
*/
|
|
18726
|
-
chromeVersion: string;
|
|
18727
|
-
}
|
|
18728
|
-
|
|
18729
|
-
/**
|
|
18730
|
-
* Fired when the DeviceInfo object of any of the signed in devices changes, or when a device is added or removed.
|
|
18731
|
-
*/
|
|
18732
|
-
export const onDeviceInfoChange: events.Event<(
|
|
18733
|
-
devices: DeviceInfo[],
|
|
18734
|
-
) => void>;
|
|
18735
|
-
|
|
18736
|
-
/**
|
|
18737
|
-
* Gets the array of signed in devices, signed into the same account as the current profile.
|
|
18738
|
-
*
|
|
18739
|
-
* @param isLocal If true only return the information for the local device. If false or omitted return the list of all devices including the local device.
|
|
18740
|
-
*/
|
|
18741
|
-
export function get(
|
|
18742
|
-
|
|
18743
|
-
isLocal?: boolean,
|
|
18744
|
-
): Promise<DeviceInfo[]>;
|
|
18745
|
-
|
|
18746
|
-
/**
|
|
18747
|
-
* Gets the array of signed in devices, signed into the same account as the current profile.
|
|
18748
|
-
*
|
|
18749
|
-
* @param isLocal If true only return the information for the local device. If false or omitted return the list of all devices including the local device.
|
|
18750
|
-
* @param callback The callback to be invoked with the array of DeviceInfo objects.
|
|
18751
|
-
*/
|
|
18752
|
-
export function get(
|
|
18753
|
-
|
|
18754
|
-
isLocal?: boolean,
|
|
18755
|
-
|
|
18756
|
-
callback?: (
|
|
18757
|
-
devices: DeviceInfo[],
|
|
18758
|
-
) => void,
|
|
18759
|
-
): void;
|
|
18760
|
-
}
|
|
18761
|
-
|
|
18762
18688
|
/**
|
|
18763
18689
|
* Use the `chrome.sockets.tcp` API to send and receive data over the network using TCP connections. This API supersedes the TCP functionality previously found in the `chrome.socket` API.
|
|
18764
18690
|
*
|
|
@@ -19973,7 +19899,7 @@ declare namespace chrome {
|
|
|
19973
19899
|
/**
|
|
19974
19900
|
* The storage area's access level.
|
|
19975
19901
|
*
|
|
19976
|
-
* @since
|
|
19902
|
+
* @since Chrome 102
|
|
19977
19903
|
*/
|
|
19978
19904
|
export type AccessLevel = "TRUSTED_CONTEXTS" | "TRUSTED_AND_UNTRUSTED_CONTEXTS";
|
|
19979
19905
|
|
|
@@ -20135,7 +20061,8 @@ declare namespace chrome {
|
|
|
20135
20061
|
/**
|
|
20136
20062
|
* Sets the desired access level for the storage area. The default will be only trusted contexts.
|
|
20137
20063
|
*
|
|
20138
|
-
* @since Pending
|
|
20064
|
+
* @chrome-returns-extra since Pending
|
|
20065
|
+
* @since Chrome 102
|
|
20139
20066
|
*/
|
|
20140
20067
|
setAccessLevel(
|
|
20141
20068
|
|
|
@@ -20152,7 +20079,7 @@ declare namespace chrome {
|
|
|
20152
20079
|
* Sets the desired access level for the storage area. The default will be only trusted contexts.
|
|
20153
20080
|
*
|
|
20154
20081
|
* @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
|
|
20155
|
-
* @since
|
|
20082
|
+
* @since Chrome 102
|
|
20156
20083
|
*/
|
|
20157
20084
|
setAccessLevel(
|
|
20158
20085
|
|
|
@@ -20227,7 +20154,7 @@ declare namespace chrome {
|
|
|
20227
20154
|
/**
|
|
20228
20155
|
* Items in the `session` storage area are stored in-memory and will not be persisted to disk.
|
|
20229
20156
|
*
|
|
20230
|
-
* @since
|
|
20157
|
+
* @since Chrome 102
|
|
20231
20158
|
* @chrome-min-manifest MV3
|
|
20232
20159
|
*/
|
|
20233
20160
|
export const session: StorageArea & {
|
|
@@ -24782,6 +24709,7 @@ declare namespace chrome {
|
|
|
24782
24709
|
* @since Chrome 43
|
|
24783
24710
|
* @chrome-permission vpnProvider
|
|
24784
24711
|
* @chrome-platform chromeos
|
|
24712
|
+
* @chrome-platform lacros
|
|
24785
24713
|
*/
|
|
24786
24714
|
export namespace vpnProvider {
|
|
24787
24715
|
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
8
|
+
"build-hash": "2f5fb6206f0b00f0"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"url": "https://github.com/GoogleChrome/chrome-types/issues"
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/GoogleChrome/chrome-types",
|
|
19
|
-
"version": "0.1.
|
|
19
|
+
"version": "0.1.111"
|
|
20
20
|
}
|