chrome-types 0.1.332 → 0.1.334

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 +33 -2
  2. package/index.d.ts +33 -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 Fri Jan 24 2025 22:30:41 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 0267fd33f0662227f553f6a9194474b95e52bf5d
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -3975,6 +3975,17 @@ declare namespace chrome {
3975
3975
  */
3976
3976
  export namespace bookmarks {
3977
3977
 
3978
+ /**
3979
+ * Indicates the type of folder.
3980
+ *
3981
+ * @chrome-enum "bookmarks-bar" The folder whose contents is displayed at the top of the browser window.
3982
+ * @chrome-enum "other" Bookmarks which are displayed in the full list of bookmarks on all platforms.
3983
+ * @chrome-enum "mobile" Bookmarks generally available on the user's mobile devices, but modifiable by extension or in the bookmarks manager.
3984
+ * @chrome-enum "managed" A top-level folder that may be present if the system administrator or the custodian of a supervised user has configured bookmarks.
3985
+ * @since Pending
3986
+ */
3987
+ export type FolderType = "bookmarks-bar" | "other" | "mobile" | "managed";
3988
+
3978
3989
  /**
3979
3990
  * 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
3991
  *
@@ -4029,11 +4040,31 @@ declare namespace chrome {
4029
4040
  */
4030
4041
  dateGroupModified?: number;
4031
4042
 
4043
+ /**
4044
+ * 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).
4045
+ *
4046
+ * 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.
4047
+ *
4048
+ * @since Pending
4049
+ */
4050
+ folderType?: FolderType;
4051
+
4032
4052
  /**
4033
4053
  * 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
4054
  */
4035
4055
  unmodifiable?: BookmarkTreeNodeUnmodifiable;
4036
4056
 
4057
+ /**
4058
+ * 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.
4059
+ *
4060
+ * 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.
4061
+ *
4062
+ * For managed nodes (nodes where `unmodifiable` is set to `true`), this property will always be `false`.
4063
+ *
4064
+ * @since Pending
4065
+ */
4066
+ syncing: boolean;
4067
+
4037
4068
  /**
4038
4069
  * An ordered list of children of this node.
4039
4070
  */
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 Fri Jan 24 2025 22:30:37 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 0267fd33f0662227f553f6a9194474b95e52bf5d
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -1286,6 +1286,17 @@ declare namespace chrome {
1286
1286
  */
1287
1287
  export namespace bookmarks {
1288
1288
 
1289
+ /**
1290
+ * Indicates the type of folder.
1291
+ *
1292
+ * @chrome-enum "bookmarks-bar" The folder whose contents is displayed at the top of the browser window.
1293
+ * @chrome-enum "other" Bookmarks which are displayed in the full list of bookmarks on all platforms.
1294
+ * @chrome-enum "mobile" Bookmarks generally available on the user's mobile devices, but modifiable by extension or in the bookmarks manager.
1295
+ * @chrome-enum "managed" A top-level folder that may be present if the system administrator or the custodian of a supervised user has configured bookmarks.
1296
+ * @since Pending
1297
+ */
1298
+ export type FolderType = "bookmarks-bar" | "other" | "mobile" | "managed";
1299
+
1289
1300
  /**
1290
1301
  * 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
1302
  *
@@ -1340,11 +1351,31 @@ declare namespace chrome {
1340
1351
  */
1341
1352
  dateGroupModified?: number;
1342
1353
 
1354
+ /**
1355
+ * 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).
1356
+ *
1357
+ * 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.
1358
+ *
1359
+ * @since Pending
1360
+ */
1361
+ folderType?: FolderType;
1362
+
1343
1363
  /**
1344
1364
  * 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
1365
  */
1346
1366
  unmodifiable?: BookmarkTreeNodeUnmodifiable;
1347
1367
 
1368
+ /**
1369
+ * 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.
1370
+ *
1371
+ * 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.
1372
+ *
1373
+ * For managed nodes (nodes where `unmodifiable` is set to `true`), this property will always be `false`.
1374
+ *
1375
+ * @since Pending
1376
+ */
1377
+ syncing: boolean;
1378
+
1348
1379
  /**
1349
1380
  * An ordered list of children of this node.
1350
1381
  */
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": "560758d4ed75fee7"
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.334"
20
20
  }