chrome-types 0.1.231 → 0.1.232

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 (3) hide show
  1. package/_all.d.ts +164 -58
  2. package/index.d.ts +130 -24
  3. 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 Thu Aug 31 2023 22:29:55 GMT+0000 (Coordinated Universal Time)
18
- // Built at cd715fdb98572d1150dec612a31dff560090d697
17
+ // Generated on Mon Oct 16 2023 15:23:34 GMT+0000 (Coordinated Universal Time)
18
+ // Built at d25a52c10297a6594185fa294adb9b6b898c0293
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -681,8 +681,8 @@ declare namespace chrome {
681
681
  * Opens the extension's popup.
682
682
  *
683
683
  * @param options Specifies options for opening the popup.
684
- * @alpha
685
- * @chrome-channel dev
684
+ * @since Chrome 118
685
+ * @chrome-install-location policy
686
686
  */
687
687
  export function openPopup(
688
688
 
@@ -693,8 +693,8 @@ declare namespace chrome {
693
693
  * Opens the extension's popup.
694
694
  *
695
695
  * @param options Specifies options for opening the popup.
696
- * @alpha
697
- * @chrome-channel dev
696
+ * @since Chrome 118
697
+ * @chrome-install-location policy
698
698
  */
699
699
  export function openPopup(
700
700
 
@@ -1619,7 +1619,7 @@ declare namespace chrome {
1619
1619
  *
1620
1620
  * To automatically remember the positions of windows you can give them ids. If a window has an id, This id is used to remember the size and position of the window whenever it is moved or resized. This size and position is then used instead of the specified bounds on subsequent opening of a window with the same id. If you need to open a window with an id at a location other than the remembered default, you can create it hidden, move it to the desired location, then show it.
1621
1621
  *
1622
- * @chrome-returns-extra since Pending
1622
+ * @chrome-returns-extra since Chrome 117
1623
1623
  */
1624
1624
  export function create(
1625
1625
 
@@ -4441,7 +4441,7 @@ declare namespace chrome {
4441
4441
  /**
4442
4442
  * Opens a new tab in a browser window associated with the current application and Chrome profile. If no browser window for the Chrome profile is opened, a new one is opened prior to creating the new tab.
4443
4443
  *
4444
- * @chrome-returns-extra since Pending
4444
+ * @chrome-returns-extra since Chrome 117
4445
4445
  * @param options Configures how the tab should be opened.
4446
4446
  */
4447
4447
  export function openTab(
@@ -6765,6 +6765,19 @@ declare namespace chrome {
6765
6765
  */
6766
6766
  export type SameSiteStatus = "no_restriction" | "lax" | "strict" | "unspecified";
6767
6767
 
6768
+ /**
6769
+ * Represents a partitioned cookie's partition key.
6770
+ *
6771
+ * @since Pending
6772
+ */
6773
+ export interface CookiePartitionKey {
6774
+
6775
+ /**
6776
+ * The top-level site the partitioned cookie is available in.
6777
+ */
6778
+ topLevelSite?: string;
6779
+ }
6780
+
6768
6781
  /**
6769
6782
  * Represents information about an HTTP cookie.
6770
6783
  */
@@ -6826,6 +6839,13 @@ declare namespace chrome {
6826
6839
  * The ID of the cookie store containing this cookie, as provided in getAllCookieStores().
6827
6840
  */
6828
6841
  storeId: string;
6842
+
6843
+ /**
6844
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
6845
+ *
6846
+ * @since Pending
6847
+ */
6848
+ partitionKey?: CookiePartitionKey;
6829
6849
  }
6830
6850
 
6831
6851
  /**
@@ -6872,6 +6892,13 @@ declare namespace chrome {
6872
6892
  * The ID of the cookie store in which to look for the cookie. By default, the current execution context's cookie store will be used.
6873
6893
  */
6874
6894
  storeId?: string;
6895
+
6896
+ /**
6897
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
6898
+ *
6899
+ * @since Pending
6900
+ */
6901
+ partitionKey?: CookiePartitionKey;
6875
6902
  }
6876
6903
 
6877
6904
  /**
@@ -6966,6 +6993,13 @@ declare namespace chrome {
6966
6993
  * The cookie store to retrieve cookies from. If omitted, the current execution context's cookie store will be used.
6967
6994
  */
6968
6995
  storeId?: string,
6996
+
6997
+ /**
6998
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
6999
+ *
7000
+ * @since Pending
7001
+ */
7002
+ partitionKey?: CookiePartitionKey,
6969
7003
  },
6970
7004
  ): Promise<Cookie[]>;
6971
7005
 
@@ -7012,6 +7046,13 @@ declare namespace chrome {
7012
7046
  * The cookie store to retrieve cookies from. If omitted, the current execution context's cookie store will be used.
7013
7047
  */
7014
7048
  storeId?: string,
7049
+
7050
+ /**
7051
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
7052
+ *
7053
+ * @since Pending
7054
+ */
7055
+ partitionKey?: CookiePartitionKey,
7015
7056
  },
7016
7057
 
7017
7058
  /**
@@ -7083,6 +7124,13 @@ declare namespace chrome {
7083
7124
  * The ID of the cookie store in which to set the cookie. By default, the cookie is set in the current execution context's cookie store.
7084
7125
  */
7085
7126
  storeId?: string,
7127
+
7128
+ /**
7129
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
7130
+ *
7131
+ * @since Pending
7132
+ */
7133
+ partitionKey?: CookiePartitionKey,
7086
7134
  },
7087
7135
  ): Promise<Cookie | undefined>;
7088
7136
 
@@ -7146,6 +7194,13 @@ declare namespace chrome {
7146
7194
  * The ID of the cookie store in which to set the cookie. By default, the cookie is set in the current execution context's cookie store.
7147
7195
  */
7148
7196
  storeId?: string,
7197
+
7198
+ /**
7199
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
7200
+ *
7201
+ * @since Pending
7202
+ */
7203
+ partitionKey?: CookiePartitionKey,
7149
7204
  },
7150
7205
 
7151
7206
  /**
@@ -7180,6 +7235,13 @@ declare namespace chrome {
7180
7235
  * The ID of the cookie store from which the cookie was removed.
7181
7236
  */
7182
7237
  storeId: string,
7238
+
7239
+ /**
7240
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
7241
+ *
7242
+ * @since Pending
7243
+ */
7244
+ partitionKey?: CookiePartitionKey,
7183
7245
  } | undefined>;
7184
7246
 
7185
7247
  /**
@@ -7209,6 +7271,13 @@ declare namespace chrome {
7209
7271
  * The ID of the cookie store from which the cookie was removed.
7210
7272
  */
7211
7273
  storeId: string,
7274
+
7275
+ /**
7276
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
7277
+ *
7278
+ * @since Pending
7279
+ */
7280
+ partitionKey?: CookiePartitionKey,
7212
7281
  },
7213
7282
  ) => void,
7214
7283
  ): void;
@@ -10316,7 +10385,7 @@ declare namespace chrome {
10316
10385
  *
10317
10386
  * The user has accepted the dangerous download.
10318
10387
  */
10319
- export type DangerType = "file" | "url" | "content" | "uncommon" | "host" | "unwanted" | "safe" | "accepted" | "allowlistedByPolicy" | "asyncScanning" | "passwordProtected" | "blockedTooLarge" | "sensitiveContentWarning" | "sensitiveContentBlock" | "unsupportedFileType" | "deepScannedFailed" | "deepScannedSafe" | "deepScannedOpenedDangerous" | "promptForScaning" | "accountCompromise";
10388
+ export type DangerType = "file" | "url" | "content" | "uncommon" | "host" | "unwanted" | "safe" | "accepted" | "allowlistedByPolicy" | "asyncScanning" | "passwordProtected" | "blockedTooLarge" | "sensitiveContentWarning" | "sensitiveContentBlock" | "unsupportedFileType" | "deepScannedFailed" | "deepScannedSafe" | "deepScannedOpenedDangerous" | "promptForScanning" | "promptForLocalPasswordScanning" | "accountCompromise";
10320
10389
 
10321
10390
  /**
10322
10391
  * in\_progress
@@ -10981,6 +11050,7 @@ declare namespace chrome {
10981
11050
  * Enable or disable the gray shelf at the bottom of every window associated with the current browser profile. The shelf will be disabled as long as at least one extension has disabled it. Enabling the shelf while at least one other extension has disabled it will return an error through {@link runtime.lastError}. Requires the `"downloads.shelf"` permission in addition to the `"downloads"` permission.
10982
11051
  *
10983
11052
  * @deprecated Use {@link setUiOptions} instead.
11053
+ * @chrome-deprecated-since Chrome 117
10984
11054
  */
10985
11055
  export function setShelfEnabled(
10986
11056
 
@@ -11018,6 +11088,7 @@ declare namespace chrome {
11018
11088
  *
11019
11089
  * @since Chrome 46
11020
11090
  * @chrome-permission enterprise.deviceAttributes
11091
+ * @chrome-install-location policy
11021
11092
  * @chrome-platform chromeos
11022
11093
  * @chrome-platform lacros
11023
11094
  */
@@ -11132,6 +11203,7 @@ declare namespace chrome {
11132
11203
  *
11133
11204
  * @since Chrome 71
11134
11205
  * @chrome-permission enterprise.hardwarePlatform
11206
+ * @chrome-install-location policy
11135
11207
  */
11136
11208
  export namespace enterprise.hardwarePlatform {
11137
11209
 
@@ -11167,6 +11239,7 @@ declare namespace chrome {
11167
11239
  *
11168
11240
  * @since Chrome 85
11169
11241
  * @chrome-permission enterprise.networkingAttributes
11242
+ * @chrome-install-location policy
11170
11243
  * @chrome-platform chromeos
11171
11244
  * @chrome-platform lacros
11172
11245
  */
@@ -11214,6 +11287,7 @@ declare namespace chrome {
11214
11287
  * Use the `chrome.enterprise.platformKeys` API to generate keys and install certificates for these keys. The certificates will be managed by the platform and can be used for TLS authentication, network access or by other extension through {@link platformKeys chrome.platformKeys}.
11215
11288
  *
11216
11289
  * @chrome-permission enterprise.platformKeys
11290
+ * @chrome-install-location policy
11217
11291
  * @chrome-platform chromeos
11218
11292
  * @chrome-platform lacros
11219
11293
  */
@@ -12513,7 +12587,7 @@ declare namespace chrome {
12513
12587
  /**
12514
12588
  * Get the display path of an Entry object. The display path is based on the full path of the file or directory on the local file system, but may be made more readable for display purposes.
12515
12589
  *
12516
- * @chrome-returns-extra since Pending
12590
+ * @chrome-returns-extra since Chrome 117
12517
12591
  */
12518
12592
  export function getDisplayPath(
12519
12593
 
@@ -12535,7 +12609,7 @@ declare namespace chrome {
12535
12609
  /**
12536
12610
  * Get a writable Entry from another Entry. This call will fail with a runtime error if the application does not have the 'write' permission under 'fileSystem'. If entry is a DirectoryEntry, this call will fail if the application does not have the 'directory' permission under 'fileSystem'.
12537
12611
  *
12538
- * @chrome-returns-extra since Pending
12612
+ * @chrome-returns-extra since Chrome 117
12539
12613
  */
12540
12614
  export function getWritableEntry(
12541
12615
 
@@ -12557,7 +12631,7 @@ declare namespace chrome {
12557
12631
  /**
12558
12632
  * Gets whether this Entry is writable or not.
12559
12633
  *
12560
- * @chrome-returns-extra since Pending
12634
+ * @chrome-returns-extra since Chrome 117
12561
12635
  */
12562
12636
  export function isWritableEntry(
12563
12637
 
@@ -12615,7 +12689,7 @@ declare namespace chrome {
12615
12689
  /**
12616
12690
  * Returns whether the app has permission to restore the entry with the given id.
12617
12691
  *
12618
- * @chrome-returns-extra since Pending
12692
+ * @chrome-returns-extra since Chrome 117
12619
12693
  */
12620
12694
  export function isRestorable(
12621
12695
 
@@ -12645,7 +12719,7 @@ declare namespace chrome {
12645
12719
  /**
12646
12720
  * Requests access to a file system for a volume represented by `options.volumeId`. If `options.writable` is set to true, then the file system will be writable. Otherwise, it will be read-only. The `writable` option requires the `"fileSystem": {"write"}` permission in the manifest. Available to kiosk apps running in kiosk session only. For manual-launch kiosk mode, a confirmation dialog will be shown on top of the active app window. In case of an error, `fileSystem` will be undefined, and `chrome.runtime.lastError` will be set.
12647
12721
  *
12648
- * @chrome-returns-extra since Pending
12722
+ * @chrome-returns-extra since Chrome 117
12649
12723
  * @since Chrome 44
12650
12724
  */
12651
12725
  export function requestFileSystem(
@@ -12670,7 +12744,7 @@ declare namespace chrome {
12670
12744
  /**
12671
12745
  * Returns a list of volumes available for `requestFileSystem()`. The `"fileSystem": {"requestFileSystem"}` manifest permission is required. Available to kiosk apps running in the kiosk session only. In case of an error, `volumes` will be undefined, and `chrome.runtime.lastError` will be set.
12672
12746
  *
12673
- * @chrome-returns-extra since Pending
12747
+ * @chrome-returns-extra since Chrome 117
12674
12748
  * @since Chrome 44
12675
12749
  */
12676
12750
  export function getVolumeList(): Promise<Volume[] | undefined>;
@@ -12720,7 +12794,7 @@ declare namespace chrome {
12720
12794
  export type CommonActionId = "SAVE_FOR_OFFLINE" | "OFFLINE_NOT_NECESSARY" | "SHARE";
12721
12795
 
12722
12796
  /**
12723
- * @since Pending
12797
+ * @since Chrome 117
12724
12798
  */
12725
12799
  export interface CloudIdentifier {
12726
12800
 
@@ -12770,7 +12844,7 @@ declare namespace chrome {
12770
12844
  /**
12771
12845
  * Cloud storage representation of this entry. Must be provided if requested in `options` and the file is backed by cloud storage. For local files not backed by cloud storage, it should be undefined when requested.
12772
12846
  *
12773
- * @since Pending
12847
+ * @since Chrome 117
12774
12848
  */
12775
12849
  cloudIdentifier?: CloudIdentifier;
12776
12850
  }
@@ -12971,7 +13045,7 @@ declare namespace chrome {
12971
13045
  /**
12972
13046
  * Set to `true` if `cloudIdentifier` value is requested.
12973
13047
  *
12974
- * @since Pending
13048
+ * @since Chrome 117
12975
13049
  */
12976
13050
  cloudIdentifier: boolean;
12977
13051
  }
@@ -14782,7 +14856,7 @@ declare namespace chrome {
14782
14856
  /**
14783
14857
  * Enumerate connected HID devices.
14784
14858
  *
14785
- * @chrome-returns-extra since Pending
14859
+ * @chrome-returns-extra since Chrome 117
14786
14860
  * @param options The properties to search for on target devices.
14787
14861
  */
14788
14862
  export function getDevices(
@@ -14807,7 +14881,7 @@ declare namespace chrome {
14807
14881
  /**
14808
14882
  * Open a connection to an HID device for communication.
14809
14883
  *
14810
- * @chrome-returns-extra since Pending
14884
+ * @chrome-returns-extra since Chrome 117
14811
14885
  * @param deviceId The {@link HidDeviceInfo.deviceId} of the device to open.
14812
14886
  */
14813
14887
  export function connect(
@@ -14832,7 +14906,7 @@ declare namespace chrome {
14832
14906
  /**
14833
14907
  * Disconnect from a device. Invoking operations on a device after calling this is safe but has no effect.
14834
14908
  *
14835
- * @chrome-returns-extra since Pending
14909
+ * @chrome-returns-extra since Chrome 117
14836
14910
  * @param connectionId The `connectionId` returned by {@link connect}.
14837
14911
  */
14838
14912
  export function disconnect(
@@ -14876,7 +14950,7 @@ declare namespace chrome {
14876
14950
  *
14877
14951
  * _Note:_ Do not include a report ID prefix in `data`. It will be added if necessary.
14878
14952
  *
14879
- * @chrome-returns-extra since Pending
14953
+ * @chrome-returns-extra since Chrome 117
14880
14954
  * @param connectionId The `connectionId` returned by {@link connect}.
14881
14955
  * @param reportId The report ID to use, or `0` if none.
14882
14956
  * @param data The report data.
@@ -14913,7 +14987,7 @@ declare namespace chrome {
14913
14987
  /**
14914
14988
  * Request a feature report from the device.
14915
14989
  *
14916
- * @chrome-returns-extra since Pending
14990
+ * @chrome-returns-extra since Chrome 117
14917
14991
  * @param connectionId The `connectionId` returned by {@link connect}.
14918
14992
  * @param reportId The report ID, or `0` if none.
14919
14993
  */
@@ -14949,7 +15023,7 @@ declare namespace chrome {
14949
15023
  *
14950
15024
  * _Note:_ Do not include a report ID prefix in `data`. It will be added if necessary.
14951
15025
  *
14952
- * @chrome-returns-extra since Pending
15026
+ * @chrome-returns-extra since Chrome 117
14953
15027
  * @param connectionId The `connectionId` returned by {@link connect}.
14954
15028
  * @param reportId The report ID to use, or `0` if none.
14955
15029
  * @param data The report data.
@@ -21116,7 +21190,7 @@ declare namespace chrome {
21116
21190
  }
21117
21191
 
21118
21192
  /**
21119
- * Use the `chrome.permissions` API to request [declared optional permissions](https://developer.chrome.com/docs/extensions/reference/permissions/#manifest) at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary.
21193
+ * Use the `chrome.permissions` API to request [declared optional permissions](https://developer.chrome.com/docs/extensions/mv3/declare_permissions/) at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary.
21120
21194
  */
21121
21195
  export namespace permissions {
21122
21196
 
@@ -21804,6 +21878,7 @@ declare namespace chrome {
21804
21878
  *
21805
21879
  * @since Chrome 79
21806
21880
  * @chrome-permission printingMetrics
21881
+ * @chrome-install-location policy
21807
21882
  * @chrome-platform chromeos
21808
21883
  * @chrome-platform lacros
21809
21884
  */
@@ -22097,15 +22172,6 @@ declare namespace chrome {
22097
22172
  */
22098
22173
  thirdPartyCookiesAllowed: types.ChromeSetting<boolean>,
22099
22174
 
22100
- /**
22101
- * If enabled, the experimental [Privacy Sandbox](https://www.chromium.org/Home/chromium-privacy/privacy-sandbox) features are active. The value of this preference is of type boolean, and the default value is `true`.
22102
- *
22103
- * @deprecated We’re deprecating the API {@link websites.privacySandboxEnabled chrome.privacy.websites.privacySandboxEnabled}, though it will remain active for backward compatibility until release M113. Instead, please use {@link websites.topicsEnabled chrome.privacy.websites.topicsEnabled}, {@link websites.fledgeEnabled chrome.privacy.websites.fledgeEnabled} and {@link websites.adMeasurementEnabled chrome.privacy.websites.adMeasurementEnabled}. During the migration period: 1. Enabling privacySandboxEnabled will CLEAR the new APIs listed above because extensions aren’t allowed to enable them; 2. Disabling privacySandboxEnabled will also disable the new APIs; 3. Clearing privacySandboxEnabled will also clear the new APIs.
22104
- * @since Chrome 90
22105
- * @chrome-deprecated-since Chrome 111
22106
- */
22107
- privacySandboxEnabled: types.ChromeSetting<boolean>,
22108
-
22109
22175
  /**
22110
22176
  * If disabled, the [Topics API](https://developer.chrome.com/en/docs/privacy-sandbox/topics/) is deactivated. The value of this preference is of type boolean, and the default value is `true`. Extensions may only disable this API by setting the value to `false`. If you try setting this API to `true`, it will throw an error.
22111
22177
  *
@@ -23765,6 +23831,13 @@ declare namespace chrome {
23765
23831
  */
23766
23832
  allFrames?: boolean;
23767
23833
 
23834
+ /**
23835
+ * Whether the script should inject into any frames where the URL belongs to a scheme that would never match a specified Match Pattern, including about:, data:, blob:, and filesystem: schemes. In these cases, in order to determine if the script should inject, the origin of the URL is checked. If the origin is `null` (as is the case for data: URLs), then the "initiator" or "creator" origin is used (i.e., the origin of the frame that created or navigated this frame). Note that this may not be the parent frame, if the frame was navigated by another frame in the document hierarchy.
23836
+ *
23837
+ * @since Pending
23838
+ */
23839
+ matchOriginAsFallback?: boolean;
23840
+
23768
23841
  /**
23769
23842
  * Specifies when JavaScript files are injected into the web page. The preferred and default value is `document_idle`.
23770
23843
  */
@@ -24291,7 +24364,7 @@ declare namespace chrome {
24291
24364
  /**
24292
24365
  * Returns information about available serial devices on the system. The list is regenerated each time this method is called.
24293
24366
  *
24294
- * @chrome-returns-extra since Pending
24367
+ * @chrome-returns-extra since Chrome 117
24295
24368
  */
24296
24369
  export function getDevices(): Promise<DeviceInfo[]>;
24297
24370
 
@@ -24310,7 +24383,7 @@ declare namespace chrome {
24310
24383
  /**
24311
24384
  * Connects to a given serial port.
24312
24385
  *
24313
- * @chrome-returns-extra since Pending
24386
+ * @chrome-returns-extra since Chrome 117
24314
24387
  * @param path The system path of the serial port to open.
24315
24388
  * @param options Port configuration options.
24316
24389
  */
@@ -24342,7 +24415,7 @@ declare namespace chrome {
24342
24415
  /**
24343
24416
  * Update the option settings on an open serial port connection.
24344
24417
  *
24345
- * @chrome-returns-extra since Pending
24418
+ * @chrome-returns-extra since Chrome 117
24346
24419
  * @param connectionId The id of the opened connection.
24347
24420
  * @param options Port configuration options.
24348
24421
  */
@@ -24374,7 +24447,7 @@ declare namespace chrome {
24374
24447
  /**
24375
24448
  * Disconnects from a serial port.
24376
24449
  *
24377
- * @chrome-returns-extra since Pending
24450
+ * @chrome-returns-extra since Chrome 117
24378
24451
  * @param connectionId The id of the opened connection.
24379
24452
  */
24380
24453
  export function disconnect(
@@ -24400,7 +24473,7 @@ declare namespace chrome {
24400
24473
  /**
24401
24474
  * Pauses or unpauses an open connection.
24402
24475
  *
24403
- * @chrome-returns-extra since Pending
24476
+ * @chrome-returns-extra since Chrome 117
24404
24477
  * @param connectionId The id of the opened connection.
24405
24478
  * @param paused Flag to indicate whether to pause or unpause.
24406
24479
  */
@@ -24430,7 +24503,7 @@ declare namespace chrome {
24430
24503
  /**
24431
24504
  * Retrieves the state of a given connection.
24432
24505
  *
24433
- * @chrome-returns-extra since Pending
24506
+ * @chrome-returns-extra since Chrome 117
24434
24507
  * @param connectionId The id of the opened connection.
24435
24508
  */
24436
24509
  export function getInfo(
@@ -24456,7 +24529,7 @@ declare namespace chrome {
24456
24529
  /**
24457
24530
  * Retrieves the list of currently opened serial port connections owned by the application.
24458
24531
  *
24459
- * @chrome-returns-extra since Pending
24532
+ * @chrome-returns-extra since Chrome 117
24460
24533
  */
24461
24534
  export function getConnections(): Promise<ConnectionInfo[]>;
24462
24535
 
@@ -24475,7 +24548,7 @@ declare namespace chrome {
24475
24548
  /**
24476
24549
  * Writes data to the given connection.
24477
24550
  *
24478
- * @chrome-returns-extra since Pending
24551
+ * @chrome-returns-extra since Chrome 117
24479
24552
  * @param connectionId The id of the connection.
24480
24553
  * @param data The data to send.
24481
24554
  */
@@ -24507,7 +24580,7 @@ declare namespace chrome {
24507
24580
  /**
24508
24581
  * Flushes all bytes in the given connection's input and output buffers.
24509
24582
  *
24510
- * @chrome-returns-extra since Pending
24583
+ * @chrome-returns-extra since Chrome 117
24511
24584
  */
24512
24585
  export function flush(
24513
24586
 
@@ -24529,7 +24602,7 @@ declare namespace chrome {
24529
24602
  /**
24530
24603
  * Retrieves the state of control signals on a given connection.
24531
24604
  *
24532
- * @chrome-returns-extra since Pending
24605
+ * @chrome-returns-extra since Chrome 117
24533
24606
  * @param connectionId The id of the connection.
24534
24607
  */
24535
24608
  export function getControlSignals(
@@ -24555,7 +24628,7 @@ declare namespace chrome {
24555
24628
  /**
24556
24629
  * Sets the state of control signals on a given connection.
24557
24630
  *
24558
- * @chrome-returns-extra since Pending
24631
+ * @chrome-returns-extra since Chrome 117
24559
24632
  * @param connectionId The id of the connection.
24560
24633
  * @param signals The set of signal changes to send to the device.
24561
24634
  */
@@ -24587,7 +24660,7 @@ declare namespace chrome {
24587
24660
  /**
24588
24661
  * Suspends character transmission on a given connection and places the transmission line in a break state until the clearBreak is called.
24589
24662
  *
24590
- * @chrome-returns-extra since Pending
24663
+ * @chrome-returns-extra since Chrome 117
24591
24664
  * @param connectionId The id of the connection.
24592
24665
  * @since Chrome 45
24593
24666
  */
@@ -24614,7 +24687,7 @@ declare namespace chrome {
24614
24687
  /**
24615
24688
  * Restore character transmission on a given connection and place the transmission line in a nonbreak state.
24616
24689
  *
24617
- * @chrome-returns-extra since Pending
24690
+ * @chrome-returns-extra since Chrome 117
24618
24691
  * @param connectionId The id of the connection.
24619
24692
  * @since Chrome 45
24620
24693
  */
@@ -27198,7 +27271,7 @@ declare namespace chrome {
27198
27271
  *
27199
27272
  * Note this call can fail. For example, if the user is not signed in to Chrome or if there is no network operation. To handle these errors it is important chrome.runtime.lastError is checked in the callback.
27200
27273
  *
27201
- * @chrome-returns-extra since Pending
27274
+ * @chrome-returns-extra since Chrome 117
27202
27275
  */
27203
27276
  export function requestFileSystem(): Promise<DOMFileSystem>;
27204
27277
 
@@ -27221,7 +27294,7 @@ declare namespace chrome {
27221
27294
  /**
27222
27295
  * Sets the default conflict resolution policy for the `'syncable'` file storage for the app. By default it is set to `'last_write_win'`. When conflict resolution policy is set to `'last_write_win'` conflicts for existing files are automatically resolved next time the file is updated. `callback` can be optionally given to know if the request has succeeded or not.
27223
27296
  *
27224
- * @chrome-returns-extra since Pending
27297
+ * @chrome-returns-extra since Chrome 117
27225
27298
  */
27226
27299
  export function setConflictResolutionPolicy(
27227
27300
 
@@ -27243,7 +27316,7 @@ declare namespace chrome {
27243
27316
  /**
27244
27317
  * Gets the current conflict resolution policy.
27245
27318
  *
27246
- * @chrome-returns-extra since Pending
27319
+ * @chrome-returns-extra since Chrome 117
27247
27320
  */
27248
27321
  export function getConflictResolutionPolicy(): Promise<ConflictResolutionPolicy>;
27249
27322
 
@@ -27262,7 +27335,7 @@ declare namespace chrome {
27262
27335
  /**
27263
27336
  * Returns the current usage and quota in bytes for the `'syncable'` file storage for the app.
27264
27337
  *
27265
- * @chrome-returns-extra since Pending
27338
+ * @chrome-returns-extra since Chrome 117
27266
27339
  */
27267
27340
  export function getUsageAndQuota(
27268
27341
 
@@ -27286,7 +27359,7 @@ declare namespace chrome {
27286
27359
  /**
27287
27360
  * Returns the {@link FileStatus} for the given `fileEntry`. The status value can be `'synced'`, `'pending'` or `'conflicting'`. Note that `'conflicting'` state only happens when the service's conflict resolution policy is set to `'manual'`.
27288
27361
  *
27289
- * @chrome-returns-extra since Pending
27362
+ * @chrome-returns-extra since Chrome 117
27290
27363
  */
27291
27364
  export function getFileStatus(
27292
27365
 
@@ -27310,7 +27383,7 @@ declare namespace chrome {
27310
27383
  /**
27311
27384
  * Returns each {@link FileStatus} for the given `fileEntry` array. Typically called with the result from dirReader.readEntries().
27312
27385
  *
27313
- * @chrome-returns-extra since Pending
27386
+ * @chrome-returns-extra since Chrome 117
27314
27387
  */
27315
27388
  export function getFileStatuses(
27316
27389
 
@@ -27334,7 +27407,7 @@ declare namespace chrome {
27334
27407
  /**
27335
27408
  * Returns the current sync backend status.
27336
27409
  *
27337
- * @chrome-returns-extra since Pending
27410
+ * @chrome-returns-extra since Chrome 117
27338
27411
  */
27339
27412
  export function getServiceStatus(): Promise<ServiceStatus>;
27340
27413
 
@@ -27675,7 +27748,7 @@ declare namespace chrome {
27675
27748
  /**
27676
27749
  * An enum to tell if the display is detected and used by the system. The display is considered 'inactive', if it is not detected by the system (maybe disconnected, or considered disconnected due to sleep mode, etc). This state is used to keep existing display when the all displays are disconnected, for example.
27677
27750
  *
27678
- * @since Pending
27751
+ * @since Chrome 117
27679
27752
  */
27680
27753
  export type ActiveState = "active" | "inactive";
27681
27754
 
@@ -27723,7 +27796,7 @@ declare namespace chrome {
27723
27796
  /**
27724
27797
  * Active if the display is detected and used by the system.
27725
27798
  *
27726
- * @since Pending
27799
+ * @since Chrome 117
27727
27800
  */
27728
27801
  activeState: ActiveState;
27729
27802
 
@@ -32496,7 +32569,7 @@ declare namespace chrome {
32496
32569
  allFrames?: boolean;
32497
32570
 
32498
32571
  /**
32499
- * Excludes pages that this content script would otherwise be injected into. See [Match Patterns](https://developer.chrome.com/docs/extensions/match_patterns) for more details on the syntax of these strings.
32572
+ * Excludes pages that this user script would otherwise be injected into. See [Match Patterns](https://developer.chrome.com/docs/extensions/match_patterns) for more details on the syntax of these strings.
32500
32573
  */
32501
32574
  excludeMatches?: string[];
32502
32575
 
@@ -32505,13 +32578,23 @@ declare namespace chrome {
32505
32578
  */
32506
32579
  id: string;
32507
32580
 
32581
+ /**
32582
+ * Specifies wildcard patterns for pages this user script will be injected into.
32583
+ */
32584
+ includeGlobs?: string[];
32585
+
32586
+ /**
32587
+ * Specifies wildcard patterns for pages this user script will NOT be injected into.
32588
+ */
32589
+ excludeGlobs?: string[];
32590
+
32508
32591
  /**
32509
32592
  * The list of ScriptSource objects defining sources of scripts to be injected into matching pages.
32510
32593
  */
32511
32594
  js: ScriptSource[];
32512
32595
 
32513
32596
  /**
32514
- * Specifies which pages this content script will be injected into. See [Match Patterns](https://developer.chrome.com/docs/extensions/match_patterns) for more details on the syntax of these strings.
32597
+ * Specifies which pages this user script will be injected into. See [Match Patterns](https://developer.chrome.com/docs/extensions/match_patterns) for more details on the syntax of these strings. This property must be specified for ${ref:register}.
32515
32598
  */
32516
32599
  matches?: string[];
32517
32600
 
@@ -32599,6 +32682,29 @@ declare namespace chrome {
32599
32682
 
32600
32683
  callback?: () => void,
32601
32684
  ): void;
32685
+
32686
+ /**
32687
+ * Updates one or more user scripts for this extension.
32688
+ *
32689
+ * @param scripts Contains a list of user scripts to be updated. A property is only updated for the existing script if it is specified in this object. If there are errors during script parsing/file validation, or if the IDs specified do not correspond to a fully registered script, then no scripts are updated.
32690
+ */
32691
+ export function update(
32692
+
32693
+ scripts: RegisteredUserScript[],
32694
+ ): Promise<void>;
32695
+
32696
+ /**
32697
+ * Updates one or more user scripts for this extension.
32698
+ *
32699
+ * @param scripts Contains a list of user scripts to be updated. A property is only updated for the existing script if it is specified in this object. If there are errors during script parsing/file validation, or if the IDs specified do not correspond to a fully registered script, then no scripts are updated.
32700
+ * @param callback Called once scripts have been fully updated or if an error occurs.
32701
+ */
32702
+ export function update(
32703
+
32704
+ scripts: RegisteredUserScript[],
32705
+
32706
+ callback?: () => void,
32707
+ ): void;
32602
32708
  }
32603
32709
 
32604
32710
  /**
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Thu Aug 31 2023 22:29:49 GMT+0000 (Coordinated Universal Time)
18
- // Built at cd715fdb98572d1150dec612a31dff560090d697
17
+ // Generated on Mon Oct 16 2023 15:23:25 GMT+0000 (Coordinated Universal Time)
18
+ // Built at d25a52c10297a6594185fa294adb9b6b898c0293
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -739,8 +739,8 @@ declare namespace chrome {
739
739
  * Opens the extension's popup.
740
740
  *
741
741
  * @param options Specifies options for opening the popup.
742
- * @alpha
743
- * @chrome-channel dev
742
+ * @since Chrome 118
743
+ * @chrome-install-location policy
744
744
  */
745
745
  export function openPopup(
746
746
 
@@ -751,8 +751,8 @@ declare namespace chrome {
751
751
  * Opens the extension's popup.
752
752
  *
753
753
  * @param options Specifies options for opening the popup.
754
- * @alpha
755
- * @chrome-channel dev
754
+ * @since Chrome 118
755
+ * @chrome-install-location policy
756
756
  */
757
757
  export function openPopup(
758
758
 
@@ -3511,6 +3511,19 @@ declare namespace chrome {
3511
3511
  */
3512
3512
  export type SameSiteStatus = "no_restriction" | "lax" | "strict" | "unspecified";
3513
3513
 
3514
+ /**
3515
+ * Represents a partitioned cookie's partition key.
3516
+ *
3517
+ * @since Pending
3518
+ */
3519
+ export interface CookiePartitionKey {
3520
+
3521
+ /**
3522
+ * The top-level site the partitioned cookie is available in.
3523
+ */
3524
+ topLevelSite?: string;
3525
+ }
3526
+
3514
3527
  /**
3515
3528
  * Represents information about an HTTP cookie.
3516
3529
  */
@@ -3572,6 +3585,13 @@ declare namespace chrome {
3572
3585
  * The ID of the cookie store containing this cookie, as provided in getAllCookieStores().
3573
3586
  */
3574
3587
  storeId: string;
3588
+
3589
+ /**
3590
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
3591
+ *
3592
+ * @since Pending
3593
+ */
3594
+ partitionKey?: CookiePartitionKey;
3575
3595
  }
3576
3596
 
3577
3597
  /**
@@ -3618,6 +3638,13 @@ declare namespace chrome {
3618
3638
  * The ID of the cookie store in which to look for the cookie. By default, the current execution context's cookie store will be used.
3619
3639
  */
3620
3640
  storeId?: string;
3641
+
3642
+ /**
3643
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
3644
+ *
3645
+ * @since Pending
3646
+ */
3647
+ partitionKey?: CookiePartitionKey;
3621
3648
  }
3622
3649
 
3623
3650
  /**
@@ -3712,6 +3739,13 @@ declare namespace chrome {
3712
3739
  * The cookie store to retrieve cookies from. If omitted, the current execution context's cookie store will be used.
3713
3740
  */
3714
3741
  storeId?: string,
3742
+
3743
+ /**
3744
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
3745
+ *
3746
+ * @since Pending
3747
+ */
3748
+ partitionKey?: CookiePartitionKey,
3715
3749
  },
3716
3750
  ): Promise<Cookie[]>;
3717
3751
 
@@ -3758,6 +3792,13 @@ declare namespace chrome {
3758
3792
  * The cookie store to retrieve cookies from. If omitted, the current execution context's cookie store will be used.
3759
3793
  */
3760
3794
  storeId?: string,
3795
+
3796
+ /**
3797
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
3798
+ *
3799
+ * @since Pending
3800
+ */
3801
+ partitionKey?: CookiePartitionKey,
3761
3802
  },
3762
3803
 
3763
3804
  /**
@@ -3829,6 +3870,13 @@ declare namespace chrome {
3829
3870
  * The ID of the cookie store in which to set the cookie. By default, the cookie is set in the current execution context's cookie store.
3830
3871
  */
3831
3872
  storeId?: string,
3873
+
3874
+ /**
3875
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
3876
+ *
3877
+ * @since Pending
3878
+ */
3879
+ partitionKey?: CookiePartitionKey,
3832
3880
  },
3833
3881
  ): Promise<Cookie | undefined>;
3834
3882
 
@@ -3892,6 +3940,13 @@ declare namespace chrome {
3892
3940
  * The ID of the cookie store in which to set the cookie. By default, the cookie is set in the current execution context's cookie store.
3893
3941
  */
3894
3942
  storeId?: string,
3943
+
3944
+ /**
3945
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
3946
+ *
3947
+ * @since Pending
3948
+ */
3949
+ partitionKey?: CookiePartitionKey,
3895
3950
  },
3896
3951
 
3897
3952
  /**
@@ -3926,6 +3981,13 @@ declare namespace chrome {
3926
3981
  * The ID of the cookie store from which the cookie was removed.
3927
3982
  */
3928
3983
  storeId: string,
3984
+
3985
+ /**
3986
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
3987
+ *
3988
+ * @since Pending
3989
+ */
3990
+ partitionKey?: CookiePartitionKey,
3929
3991
  } | undefined>;
3930
3992
 
3931
3993
  /**
@@ -3955,6 +4017,13 @@ declare namespace chrome {
3955
4017
  * The ID of the cookie store from which the cookie was removed.
3956
4018
  */
3957
4019
  storeId: string,
4020
+
4021
+ /**
4022
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
4023
+ *
4024
+ * @since Pending
4025
+ */
4026
+ partitionKey?: CookiePartitionKey,
3958
4027
  },
3959
4028
  ) => void,
3960
4029
  ): void;
@@ -6446,7 +6515,7 @@ declare namespace chrome {
6446
6515
  *
6447
6516
  * The user has accepted the dangerous download.
6448
6517
  */
6449
- export type DangerType = "file" | "url" | "content" | "uncommon" | "host" | "unwanted" | "safe" | "accepted" | "allowlistedByPolicy" | "asyncScanning" | "passwordProtected" | "blockedTooLarge" | "sensitiveContentWarning" | "sensitiveContentBlock" | "unsupportedFileType" | "deepScannedFailed" | "deepScannedSafe" | "deepScannedOpenedDangerous" | "promptForScaning" | "accountCompromise";
6518
+ export type DangerType = "file" | "url" | "content" | "uncommon" | "host" | "unwanted" | "safe" | "accepted" | "allowlistedByPolicy" | "asyncScanning" | "passwordProtected" | "blockedTooLarge" | "sensitiveContentWarning" | "sensitiveContentBlock" | "unsupportedFileType" | "deepScannedFailed" | "deepScannedSafe" | "deepScannedOpenedDangerous" | "promptForScanning" | "promptForLocalPasswordScanning" | "accountCompromise";
6450
6519
 
6451
6520
  /**
6452
6521
  * in\_progress
@@ -7111,6 +7180,7 @@ declare namespace chrome {
7111
7180
  * Enable or disable the gray shelf at the bottom of every window associated with the current browser profile. The shelf will be disabled as long as at least one extension has disabled it. Enabling the shelf while at least one other extension has disabled it will return an error through {@link runtime.lastError}. Requires the `"downloads.shelf"` permission in addition to the `"downloads"` permission.
7112
7181
  *
7113
7182
  * @deprecated Use {@link setUiOptions} instead.
7183
+ * @chrome-deprecated-since Chrome 117
7114
7184
  */
7115
7185
  export function setShelfEnabled(
7116
7186
 
@@ -7148,6 +7218,7 @@ declare namespace chrome {
7148
7218
  *
7149
7219
  * @since Chrome 46
7150
7220
  * @chrome-permission enterprise.deviceAttributes
7221
+ * @chrome-install-location policy
7151
7222
  * @chrome-platform chromeos
7152
7223
  * @chrome-platform lacros
7153
7224
  */
@@ -7262,6 +7333,7 @@ declare namespace chrome {
7262
7333
  *
7263
7334
  * @since Chrome 71
7264
7335
  * @chrome-permission enterprise.hardwarePlatform
7336
+ * @chrome-install-location policy
7265
7337
  */
7266
7338
  export namespace enterprise.hardwarePlatform {
7267
7339
 
@@ -7297,6 +7369,7 @@ declare namespace chrome {
7297
7369
  *
7298
7370
  * @since Chrome 85
7299
7371
  * @chrome-permission enterprise.networkingAttributes
7372
+ * @chrome-install-location policy
7300
7373
  * @chrome-platform chromeos
7301
7374
  * @chrome-platform lacros
7302
7375
  */
@@ -7344,6 +7417,7 @@ declare namespace chrome {
7344
7417
  * Use the `chrome.enterprise.platformKeys` API to generate keys and install certificates for these keys. The certificates will be managed by the platform and can be used for TLS authentication, network access or by other extension through {@link platformKeys chrome.platformKeys}.
7345
7418
  *
7346
7419
  * @chrome-permission enterprise.platformKeys
7420
+ * @chrome-install-location policy
7347
7421
  * @chrome-platform chromeos
7348
7422
  * @chrome-platform lacros
7349
7423
  */
@@ -8432,7 +8506,7 @@ declare namespace chrome {
8432
8506
  export type CommonActionId = "SAVE_FOR_OFFLINE" | "OFFLINE_NOT_NECESSARY" | "SHARE";
8433
8507
 
8434
8508
  /**
8435
- * @since Pending
8509
+ * @since Chrome 117
8436
8510
  */
8437
8511
  export interface CloudIdentifier {
8438
8512
 
@@ -8482,7 +8556,7 @@ declare namespace chrome {
8482
8556
  /**
8483
8557
  * Cloud storage representation of this entry. Must be provided if requested in `options` and the file is backed by cloud storage. For local files not backed by cloud storage, it should be undefined when requested.
8484
8558
  *
8485
- * @since Pending
8559
+ * @since Chrome 117
8486
8560
  */
8487
8561
  cloudIdentifier?: CloudIdentifier;
8488
8562
  }
@@ -8683,7 +8757,7 @@ declare namespace chrome {
8683
8757
  /**
8684
8758
  * Set to `true` if `cloudIdentifier` value is requested.
8685
8759
  *
8686
- * @since Pending
8760
+ * @since Chrome 117
8687
8761
  */
8688
8762
  cloudIdentifier: boolean;
8689
8763
  }
@@ -15880,7 +15954,7 @@ declare namespace chrome {
15880
15954
  }
15881
15955
 
15882
15956
  /**
15883
- * Use the `chrome.permissions` API to request [declared optional permissions](https://developer.chrome.com/docs/extensions/reference/permissions/#manifest) at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary.
15957
+ * Use the `chrome.permissions` API to request [declared optional permissions](https://developer.chrome.com/docs/extensions/mv3/declare_permissions/) at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary.
15884
15958
  */
15885
15959
  export namespace permissions {
15886
15960
 
@@ -16568,6 +16642,7 @@ declare namespace chrome {
16568
16642
  *
16569
16643
  * @since Chrome 79
16570
16644
  * @chrome-permission printingMetrics
16645
+ * @chrome-install-location policy
16571
16646
  * @chrome-platform chromeos
16572
16647
  * @chrome-platform lacros
16573
16648
  */
@@ -16861,15 +16936,6 @@ declare namespace chrome {
16861
16936
  */
16862
16937
  thirdPartyCookiesAllowed: types.ChromeSetting<boolean>,
16863
16938
 
16864
- /**
16865
- * If enabled, the experimental [Privacy Sandbox](https://www.chromium.org/Home/chromium-privacy/privacy-sandbox) features are active. The value of this preference is of type boolean, and the default value is `true`.
16866
- *
16867
- * @deprecated We’re deprecating the API {@link websites.privacySandboxEnabled chrome.privacy.websites.privacySandboxEnabled}, though it will remain active for backward compatibility until release M113. Instead, please use {@link websites.topicsEnabled chrome.privacy.websites.topicsEnabled}, {@link websites.fledgeEnabled chrome.privacy.websites.fledgeEnabled} and {@link websites.adMeasurementEnabled chrome.privacy.websites.adMeasurementEnabled}. During the migration period: 1. Enabling privacySandboxEnabled will CLEAR the new APIs listed above because extensions aren’t allowed to enable them; 2. Disabling privacySandboxEnabled will also disable the new APIs; 3. Clearing privacySandboxEnabled will also clear the new APIs.
16868
- * @since Chrome 90
16869
- * @chrome-deprecated-since Chrome 111
16870
- */
16871
- privacySandboxEnabled: types.ChromeSetting<boolean>,
16872
-
16873
16939
  /**
16874
16940
  * If disabled, the [Topics API](https://developer.chrome.com/en/docs/privacy-sandbox/topics/) is deactivated. The value of this preference is of type boolean, and the default value is `true`. Extensions may only disable this API by setting the value to `false`. If you try setting this API to `true`, it will throw an error.
16875
16941
  *
@@ -18518,6 +18584,13 @@ declare namespace chrome {
18518
18584
  */
18519
18585
  allFrames?: boolean;
18520
18586
 
18587
+ /**
18588
+ * Whether the script should inject into any frames where the URL belongs to a scheme that would never match a specified Match Pattern, including about:, data:, blob:, and filesystem: schemes. In these cases, in order to determine if the script should inject, the origin of the URL is checked. If the origin is `null` (as is the case for data: URLs), then the "initiator" or "creator" origin is used (i.e., the origin of the frame that created or navigated this frame). Note that this may not be the parent frame, if the frame was navigated by another frame in the document hierarchy.
18589
+ *
18590
+ * @since Pending
18591
+ */
18592
+ matchOriginAsFallback?: boolean;
18593
+
18521
18594
  /**
18522
18595
  * Specifies when JavaScript files are injected into the web page. The preferred and default value is `document_idle`.
18523
18596
  */
@@ -20939,7 +21012,7 @@ declare namespace chrome {
20939
21012
  /**
20940
21013
  * An enum to tell if the display is detected and used by the system. The display is considered 'inactive', if it is not detected by the system (maybe disconnected, or considered disconnected due to sleep mode, etc). This state is used to keep existing display when the all displays are disconnected, for example.
20941
21014
  *
20942
- * @since Pending
21015
+ * @since Chrome 117
20943
21016
  */
20944
21017
  export type ActiveState = "active" | "inactive";
20945
21018
 
@@ -20987,7 +21060,7 @@ declare namespace chrome {
20987
21060
  /**
20988
21061
  * Active if the display is detected and used by the system.
20989
21062
  *
20990
- * @since Pending
21063
+ * @since Chrome 117
20991
21064
  */
20992
21065
  activeState: ActiveState;
20993
21066
 
@@ -25368,7 +25441,7 @@ declare namespace chrome {
25368
25441
  allFrames?: boolean;
25369
25442
 
25370
25443
  /**
25371
- * Excludes pages that this content script would otherwise be injected into. See [Match Patterns](https://developer.chrome.com/docs/extensions/match_patterns) for more details on the syntax of these strings.
25444
+ * Excludes pages that this user script would otherwise be injected into. See [Match Patterns](https://developer.chrome.com/docs/extensions/match_patterns) for more details on the syntax of these strings.
25372
25445
  */
25373
25446
  excludeMatches?: string[];
25374
25447
 
@@ -25377,13 +25450,23 @@ declare namespace chrome {
25377
25450
  */
25378
25451
  id: string;
25379
25452
 
25453
+ /**
25454
+ * Specifies wildcard patterns for pages this user script will be injected into.
25455
+ */
25456
+ includeGlobs?: string[];
25457
+
25458
+ /**
25459
+ * Specifies wildcard patterns for pages this user script will NOT be injected into.
25460
+ */
25461
+ excludeGlobs?: string[];
25462
+
25380
25463
  /**
25381
25464
  * The list of ScriptSource objects defining sources of scripts to be injected into matching pages.
25382
25465
  */
25383
25466
  js: ScriptSource[];
25384
25467
 
25385
25468
  /**
25386
- * Specifies which pages this content script will be injected into. See [Match Patterns](https://developer.chrome.com/docs/extensions/match_patterns) for more details on the syntax of these strings.
25469
+ * Specifies which pages this user script will be injected into. See [Match Patterns](https://developer.chrome.com/docs/extensions/match_patterns) for more details on the syntax of these strings. This property must be specified for ${ref:register}.
25387
25470
  */
25388
25471
  matches?: string[];
25389
25472
 
@@ -25471,6 +25554,29 @@ declare namespace chrome {
25471
25554
 
25472
25555
  callback?: () => void,
25473
25556
  ): void;
25557
+
25558
+ /**
25559
+ * Updates one or more user scripts for this extension.
25560
+ *
25561
+ * @param scripts Contains a list of user scripts to be updated. A property is only updated for the existing script if it is specified in this object. If there are errors during script parsing/file validation, or if the IDs specified do not correspond to a fully registered script, then no scripts are updated.
25562
+ */
25563
+ export function update(
25564
+
25565
+ scripts: RegisteredUserScript[],
25566
+ ): Promise<void>;
25567
+
25568
+ /**
25569
+ * Updates one or more user scripts for this extension.
25570
+ *
25571
+ * @param scripts Contains a list of user scripts to be updated. A property is only updated for the existing script if it is specified in this object. If there are errors during script parsing/file validation, or if the IDs specified do not correspond to a fully registered script, then no scripts are updated.
25572
+ * @param callback Called once scripts have been fully updated or if an error occurs.
25573
+ */
25574
+ export function update(
25575
+
25576
+ scripts: RegisteredUserScript[],
25577
+
25578
+ callback?: () => void,
25579
+ ): void;
25474
25580
  }
25475
25581
 
25476
25582
  /**
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "b811888e408f0eac"
8
+ "build-hash": "aa3becd82eb24172"
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.231"
19
+ "version": "0.1.232"
20
20
  }