chrome-types 0.1.332 → 0.1.333

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 +34 -2
  2. package/index.d.ts +34 -2
  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 Tue Jan 14 2025 22:30:51 GMT+0000 (Coordinated Universal Time)
18
- // Built at ed9d1ef33d9e104f92310a1d6f40d165dbd39cda
17
+ // Generated on Sat Jan 18 2025 22:30:58 GMT+0000 (Coordinated Universal Time)
18
+ // Built at a34a3de0d4740a229a200c7339a9ef873414a5fe
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -3975,6 +3975,18 @@ declare namespace chrome {
3975
3975
  */
3976
3976
  export namespace bookmarks {
3977
3977
 
3978
+ /**
3979
+ * Indicates the type of folder.
3980
+ *
3981
+ * * bookmarks-bar: The folder whose contents is displayed at the top of the browser window
3982
+ * * other: Bookmarks which are displayed in the full list of bookmarks on all platforms
3983
+ * * mobile: bookmarks generally available on the user's mobile devices, but modifiable by extension or in the bookmarks manager
3984
+ * * managed: a top-level folder that may be present if the system administrator or the custodian of a supervised user has configured bookmarks.
3985
+ *
3986
+ * @since Pending
3987
+ */
3988
+ export type FolderType = "bookmarks-bar" | "other" | "mobile" | "managed";
3989
+
3978
3990
  /**
3979
3991
  * Indicates the reason why this node is unmodifiable. The `managed` value indicates that this node was configured by the system administrator. Omitted if the node can be modified by the user and the extension (default).
3980
3992
  *
@@ -4029,11 +4041,31 @@ declare namespace chrome {
4029
4041
  */
4030
4042
  dateGroupModified?: number;
4031
4043
 
4044
+ /**
4045
+ * If present, this is a folder that is added by the browser and that cannot be modified by the user or the extension. Child nodes may be modified, if this node does not have the `unmodifiable` property set. Omitted if the node can be modified by the user and the extension (default).
4046
+ *
4047
+ * There may be zero, one or multiple nodes of each folder type. A folder may be added or removed by the browser, but not via the extensions API.
4048
+ *
4049
+ * @since Pending
4050
+ */
4051
+ folderType?: FolderType;
4052
+
4032
4053
  /**
4033
4054
  * Indicates the reason why this node is unmodifiable. The `managed` value indicates that this node was configured by the system administrator or by the custodian of a supervised user. Omitted if the node can be modified by the user and the extension (default).
4034
4055
  */
4035
4056
  unmodifiable?: BookmarkTreeNodeUnmodifiable;
4036
4057
 
4058
+ /**
4059
+ * Whether this node is synced with the user's remote account storage by the browser. This can be used to distinguish between account and local-only versions of the same {@link FolderType}. The value of this property may change for an existing node, for example as a result of user action.
4060
+ *
4061
+ * Note: this reflects whether the node is saved to the browser's built-in account provider. It is possible that a node could be synced via a third-party, even if this value is false.
4062
+ *
4063
+ * For managed nodes (nodes where `unmodifiable` is set to `true`), this property will always be `false`.
4064
+ *
4065
+ * @since Pending
4066
+ */
4067
+ syncing: boolean;
4068
+
4037
4069
  /**
4038
4070
  * An ordered list of children of this node.
4039
4071
  */
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Tue Jan 14 2025 22:30:47 GMT+0000 (Coordinated Universal Time)
18
- // Built at ed9d1ef33d9e104f92310a1d6f40d165dbd39cda
17
+ // Generated on Sat Jan 18 2025 22:30:53 GMT+0000 (Coordinated Universal Time)
18
+ // Built at a34a3de0d4740a229a200c7339a9ef873414a5fe
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -1286,6 +1286,18 @@ declare namespace chrome {
1286
1286
  */
1287
1287
  export namespace bookmarks {
1288
1288
 
1289
+ /**
1290
+ * Indicates the type of folder.
1291
+ *
1292
+ * * bookmarks-bar: The folder whose contents is displayed at the top of the browser window
1293
+ * * other: Bookmarks which are displayed in the full list of bookmarks on all platforms
1294
+ * * mobile: bookmarks generally available on the user's mobile devices, but modifiable by extension or in the bookmarks manager
1295
+ * * managed: a top-level folder that may be present if the system administrator or the custodian of a supervised user has configured bookmarks.
1296
+ *
1297
+ * @since Pending
1298
+ */
1299
+ export type FolderType = "bookmarks-bar" | "other" | "mobile" | "managed";
1300
+
1289
1301
  /**
1290
1302
  * Indicates the reason why this node is unmodifiable. The `managed` value indicates that this node was configured by the system administrator. Omitted if the node can be modified by the user and the extension (default).
1291
1303
  *
@@ -1340,11 +1352,31 @@ declare namespace chrome {
1340
1352
  */
1341
1353
  dateGroupModified?: number;
1342
1354
 
1355
+ /**
1356
+ * If present, this is a folder that is added by the browser and that cannot be modified by the user or the extension. Child nodes may be modified, if this node does not have the `unmodifiable` property set. Omitted if the node can be modified by the user and the extension (default).
1357
+ *
1358
+ * There may be zero, one or multiple nodes of each folder type. A folder may be added or removed by the browser, but not via the extensions API.
1359
+ *
1360
+ * @since Pending
1361
+ */
1362
+ folderType?: FolderType;
1363
+
1343
1364
  /**
1344
1365
  * Indicates the reason why this node is unmodifiable. The `managed` value indicates that this node was configured by the system administrator or by the custodian of a supervised user. Omitted if the node can be modified by the user and the extension (default).
1345
1366
  */
1346
1367
  unmodifiable?: BookmarkTreeNodeUnmodifiable;
1347
1368
 
1369
+ /**
1370
+ * Whether this node is synced with the user's remote account storage by the browser. This can be used to distinguish between account and local-only versions of the same {@link FolderType}. The value of this property may change for an existing node, for example as a result of user action.
1371
+ *
1372
+ * Note: this reflects whether the node is saved to the browser's built-in account provider. It is possible that a node could be synced via a third-party, even if this value is false.
1373
+ *
1374
+ * For managed nodes (nodes where `unmodifiable` is set to `true`), this property will always be `false`.
1375
+ *
1376
+ * @since Pending
1377
+ */
1378
+ syncing: boolean;
1379
+
1348
1380
  /**
1349
1381
  * An ordered list of children of this node.
1350
1382
  */
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "3492456e551b8320"
8
+ "build-hash": "41dbc1f5cf0072fd"
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.332"
19
+ "version": "0.1.333"
20
20
  }