webext-schema 5.5.4 → 5.5.7

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.
@@ -2382,6 +2382,7 @@
2382
2382
  "audio",
2383
2383
  "launcher",
2384
2384
  "bookmark",
2385
+ "page_action",
2385
2386
  "tab",
2386
2387
  "tools_menu"
2387
2388
  ]
@@ -2389,8 +2390,7 @@
2389
2390
  {
2390
2391
  "type": "string",
2391
2392
  "enum": [
2392
- "browser_action",
2393
- "page_action"
2393
+ "browser_action"
2394
2394
  ],
2395
2395
  "max_manifest_version": 2
2396
2396
  },
@@ -4288,6 +4288,278 @@
4288
4288
  ]
4289
4289
  }
4290
4290
  ],
4291
+ "tabGroups.json": [
4292
+ {
4293
+ "namespace": "manifest",
4294
+ "types": [
4295
+ {
4296
+ "$extend": "OptionalPermissionNoPrompt",
4297
+ "choices": [
4298
+ {
4299
+ "type": "string",
4300
+ "enum": [
4301
+ "tabGroups"
4302
+ ]
4303
+ }
4304
+ ]
4305
+ }
4306
+ ]
4307
+ },
4308
+ {
4309
+ "namespace": "tabGroups",
4310
+ "description": "Use the browser.tabGroups API to interact with the browser's tab grouping system. You can use this API to modify, and rearrange tab groups.",
4311
+ "permissions": [
4312
+ "tabGroups"
4313
+ ],
4314
+ "types": [
4315
+ {
4316
+ "id": "Color",
4317
+ "type": "string",
4318
+ "description": "The group's color, using 'grey' spelling for compatibility with Chromium.",
4319
+ "enum": [
4320
+ "blue",
4321
+ "cyan",
4322
+ "grey",
4323
+ "green",
4324
+ "orange",
4325
+ "pink",
4326
+ "purple",
4327
+ "red",
4328
+ "yellow"
4329
+ ]
4330
+ },
4331
+ {
4332
+ "id": "TabGroup",
4333
+ "type": "object",
4334
+ "description": "State of a tab group inside of an open window.",
4335
+ "properties": {
4336
+ "collapsed": {
4337
+ "type": "boolean",
4338
+ "description": "Whether the tab group is collapsed or expanded in the tab strip."
4339
+ },
4340
+ "color": {
4341
+ "$ref": "Color",
4342
+ "description": "User-selected color name for the tab group's label/icons."
4343
+ },
4344
+ "id": {
4345
+ "type": "integer",
4346
+ "description": "Unique ID of the tab group."
4347
+ },
4348
+ "title": {
4349
+ "type": "string",
4350
+ "optional": true,
4351
+ "description": "User-defined name of the tab group."
4352
+ },
4353
+ "windowId": {
4354
+ "type": "integer",
4355
+ "description": "Window that the tab group is in."
4356
+ }
4357
+ }
4358
+ }
4359
+ ],
4360
+ "properties": {
4361
+ "TAB_GROUP_ID_NONE": {
4362
+ "value": -1,
4363
+ "description": "An ID that represents the absence of a group."
4364
+ }
4365
+ },
4366
+ "functions": [
4367
+ {
4368
+ "name": "get",
4369
+ "type": "function",
4370
+ "description": "Retrieves details about the specified group.",
4371
+ "async": "callback",
4372
+ "parameters": [
4373
+ {
4374
+ "type": "integer",
4375
+ "name": "groupId",
4376
+ "minimum": 0
4377
+ },
4378
+ {
4379
+ "type": "function",
4380
+ "name": "callback",
4381
+ "parameters": [
4382
+ {
4383
+ "name": "group",
4384
+ "$ref": "TabGroup"
4385
+ }
4386
+ ]
4387
+ }
4388
+ ]
4389
+ },
4390
+ {
4391
+ "name": "move",
4392
+ "type": "function",
4393
+ "description": "Move a group within, or to another window.",
4394
+ "async": "callback",
4395
+ "parameters": [
4396
+ {
4397
+ "type": "integer",
4398
+ "name": "groupId",
4399
+ "minimum": 0
4400
+ },
4401
+ {
4402
+ "type": "object",
4403
+ "name": "moveProperties",
4404
+ "properties": {
4405
+ "index": {
4406
+ "type": "integer",
4407
+ "minimum": -1
4408
+ },
4409
+ "windowId": {
4410
+ "type": "integer",
4411
+ "optional": true,
4412
+ "minimum": 0
4413
+ }
4414
+ }
4415
+ },
4416
+ {
4417
+ "type": "function",
4418
+ "name": "callback",
4419
+ "parameters": [
4420
+ {
4421
+ "name": "group",
4422
+ "$ref": "TabGroup"
4423
+ }
4424
+ ]
4425
+ }
4426
+ ]
4427
+ },
4428
+ {
4429
+ "name": "query",
4430
+ "type": "function",
4431
+ "description": "Return all grups, or find groups with specified properties.",
4432
+ "async": "callback",
4433
+ "parameters": [
4434
+ {
4435
+ "type": "object",
4436
+ "name": "queryInfo",
4437
+ "optional": true,
4438
+ "properties": {
4439
+ "collapsed": {
4440
+ "type": "boolean",
4441
+ "optional": true
4442
+ },
4443
+ "color": {
4444
+ "$ref": "Color",
4445
+ "optional": true
4446
+ },
4447
+ "title": {
4448
+ "type": "string",
4449
+ "optional": true
4450
+ },
4451
+ "windowId": {
4452
+ "type": "integer",
4453
+ "optional": true,
4454
+ "minimum": -2
4455
+ }
4456
+ }
4457
+ },
4458
+ {
4459
+ "type": "function",
4460
+ "name": "callback",
4461
+ "parameters": [
4462
+ {
4463
+ "name": "groups",
4464
+ "type": "array",
4465
+ "items": {
4466
+ "$ref": "TabGroup"
4467
+ }
4468
+ }
4469
+ ]
4470
+ }
4471
+ ]
4472
+ },
4473
+ {
4474
+ "name": "update",
4475
+ "type": "function",
4476
+ "description": "Modifies state of a specified group.",
4477
+ "async": "callback",
4478
+ "parameters": [
4479
+ {
4480
+ "type": "integer",
4481
+ "name": "groupId",
4482
+ "minimum": 0
4483
+ },
4484
+ {
4485
+ "type": "object",
4486
+ "name": "updateProperties",
4487
+ "properties": {
4488
+ "collapsed": {
4489
+ "type": "boolean",
4490
+ "optional": true
4491
+ },
4492
+ "color": {
4493
+ "$ref": "Color",
4494
+ "optional": true
4495
+ },
4496
+ "title": {
4497
+ "type": "string",
4498
+ "optional": true
4499
+ }
4500
+ }
4501
+ },
4502
+ {
4503
+ "type": "function",
4504
+ "name": "callback",
4505
+ "parameters": [
4506
+ {
4507
+ "name": "group",
4508
+ "$ref": "TabGroup"
4509
+ }
4510
+ ]
4511
+ }
4512
+ ]
4513
+ }
4514
+ ],
4515
+ "events": [
4516
+ {
4517
+ "name": "onCreated",
4518
+ "type": "function",
4519
+ "description": "Fired when a tab group is created.",
4520
+ "parameters": [
4521
+ {
4522
+ "$ref": "TabGroup",
4523
+ "name": "group"
4524
+ }
4525
+ ]
4526
+ },
4527
+ {
4528
+ "name": "onMoved",
4529
+ "type": "function",
4530
+ "description": "Fired when a tab group is moved, within a window or to another window.",
4531
+ "parameters": [
4532
+ {
4533
+ "$ref": "TabGroup",
4534
+ "name": "group"
4535
+ }
4536
+ ]
4537
+ },
4538
+ {
4539
+ "name": "onRemoved",
4540
+ "type": "function",
4541
+ "description": "Fired when a tab group is removed.",
4542
+ "parameters": [
4543
+ {
4544
+ "$ref": "TabGroup",
4545
+ "name": "group"
4546
+ }
4547
+ ]
4548
+ },
4549
+ {
4550
+ "name": "onUpdated",
4551
+ "type": "function",
4552
+ "description": "Fired when a tab group is updated.",
4553
+ "parameters": [
4554
+ {
4555
+ "$ref": "TabGroup",
4556
+ "name": "group"
4557
+ }
4558
+ ]
4559
+ }
4560
+ ]
4561
+ }
4562
+ ],
4291
4563
  "tabs.json": [
4292
4564
  {
4293
4565
  "namespace": "manifest",
@@ -4528,6 +4800,12 @@
4528
4800
  "optional": true,
4529
4801
  "minimum": -1,
4530
4802
  "description": "The ID of this tab's successor, if any; $(ref:tabs.TAB_ID_NONE) otherwise."
4803
+ },
4804
+ "groupId": {
4805
+ "type": "integer",
4806
+ "optional": true,
4807
+ "minimum": -1,
4808
+ "description": "The ID of the group that the tab belongs to. $(ref:tabGroups.TAB_GROUP_ID_NONE) (-1) if the tab does not belong to a tab group."
4531
4809
  }
4532
4810
  }
4533
4811
  },
@@ -4739,6 +5017,7 @@
4739
5017
  "autoDiscardable",
4740
5018
  "discarded",
4741
5019
  "favIconUrl",
5020
+ "groupId",
4742
5021
  "hidden",
4743
5022
  "isArticle",
4744
5023
  "mutedInfo",
@@ -5166,6 +5445,12 @@
5166
5445
  "optional": true,
5167
5446
  "description": "The ID of the tab that opened this tab. If specified, the opener tab must be in the same window as this tab."
5168
5447
  },
5448
+ "groupId": {
5449
+ "type": "integer",
5450
+ "minimum": -1,
5451
+ "optional": true,
5452
+ "description": "The ID of the group that the tabs are in, or $(ref:tabGroups.TAB_GROUP_ID_NONE) (-1) for ungrouped tabs."
5453
+ },
5169
5454
  "screen": {
5170
5455
  "choices": [
5171
5456
  {
@@ -6002,6 +6287,95 @@
6002
6287
  "parameters": []
6003
6288
  }
6004
6289
  ]
6290
+ },
6291
+ {
6292
+ "name": "group",
6293
+ "type": "function",
6294
+ "description": "Adds one or more tabs to a specified group, or if no group is specified, adds the given tabs to a newly created group.",
6295
+ "async": "callback",
6296
+ "parameters": [
6297
+ {
6298
+ "name": "options",
6299
+ "type": "object",
6300
+ "properties": {
6301
+ "tabIds": {
6302
+ "description": "The tab ID or list of tab IDs to add to the specified group.",
6303
+ "choices": [
6304
+ {
6305
+ "type": "integer",
6306
+ "minimum": 0
6307
+ },
6308
+ {
6309
+ "type": "array",
6310
+ "items": {
6311
+ "type": "integer",
6312
+ "minimum": 0
6313
+ },
6314
+ "minItems": 1
6315
+ }
6316
+ ]
6317
+ },
6318
+ "groupId": {
6319
+ "type": "integer",
6320
+ "description": "The ID of the group to add the tabs to. If not specified, a new group will be created.",
6321
+ "minimum": 0,
6322
+ "optional": true
6323
+ },
6324
+ "createProperties": {
6325
+ "type": "object",
6326
+ "optional": true,
6327
+ "description": "Configurations for creating a group. Cannot be used if groupId is already specified.",
6328
+ "properties": {
6329
+ "windowId": {
6330
+ "type": "integer",
6331
+ "minimum": -2,
6332
+ "optional": true,
6333
+ "description": "The window of the new group. Defaults to the current window."
6334
+ }
6335
+ }
6336
+ }
6337
+ }
6338
+ },
6339
+ {
6340
+ "type": "function",
6341
+ "name": "callback",
6342
+ "optional": true,
6343
+ "parameters": [
6344
+ {
6345
+ "name": "groupId",
6346
+ "type": "integer",
6347
+ "minimum": 0,
6348
+ "description": "The ID of the group that the tabs were added to."
6349
+ }
6350
+ ]
6351
+ }
6352
+ ]
6353
+ },
6354
+ {
6355
+ "name": "ungroup",
6356
+ "type": "function",
6357
+ "description": "Removes one or more tabs from their respective groups. If any groups become empty, they are deleted.",
6358
+ "async": true,
6359
+ "parameters": [
6360
+ {
6361
+ "name": "tabIds",
6362
+ "description": "The tab ID or list of tab IDs to remove from their respective groups.",
6363
+ "choices": [
6364
+ {
6365
+ "type": "integer",
6366
+ "minimum": 0
6367
+ },
6368
+ {
6369
+ "type": "array",
6370
+ "items": {
6371
+ "type": "integer",
6372
+ "minimum": 0
6373
+ },
6374
+ "minItems": 1
6375
+ }
6376
+ ]
6377
+ }
6378
+ ]
6005
6379
  }
6006
6380
  ],
6007
6381
  "events": [
@@ -7189,6 +7563,7 @@
7189
7563
  "name": "create",
7190
7564
  "type": "function",
7191
7565
  "description": "Creates an alarm. After the delay is expired, the onAlarm event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.",
7566
+ "async": "callback",
7192
7567
  "parameters": [
7193
7568
  {
7194
7569
  "type": "string",
@@ -7217,6 +7592,12 @@
7217
7592
  "description": "Number of minutes after which the alarm should recur repeatedly."
7218
7593
  }
7219
7594
  }
7595
+ },
7596
+ {
7597
+ "type": "function",
7598
+ "name": "callback",
7599
+ "optional": true,
7600
+ "parameters": []
7220
7601
  }
7221
7602
  ]
7222
7603
  },
@@ -13934,6 +14315,54 @@
13934
14315
  }
13935
14316
  ]
13936
14317
  },
14318
+ {
14319
+ "id": "CommonDataCollectionPermission",
14320
+ "choices": [
14321
+ {
14322
+ "type": "string",
14323
+ "enum": [
14324
+ "authenticationInfo",
14325
+ "bookmarksInfo",
14326
+ "browsingHistory",
14327
+ "financialAndPaymentInfo",
14328
+ "healthInfo",
14329
+ "locationInfo",
14330
+ "personalCommunications",
14331
+ "personallyIdentifyingInfo",
14332
+ "websiteActivity",
14333
+ "websiteContent"
14334
+ ]
14335
+ }
14336
+ ]
14337
+ },
14338
+ {
14339
+ "id": "DataCollectionPermission",
14340
+ "choices": [
14341
+ {
14342
+ "$ref": "CommonDataCollectionPermission"
14343
+ },
14344
+ {
14345
+ "type": "string",
14346
+ "enum": [
14347
+ "none"
14348
+ ]
14349
+ }
14350
+ ]
14351
+ },
14352
+ {
14353
+ "id": "OptionalDataCollectionPermission",
14354
+ "choices": [
14355
+ {
14356
+ "$ref": "CommonDataCollectionPermission"
14357
+ },
14358
+ {
14359
+ "type": "string",
14360
+ "enum": [
14361
+ "technicalAndInteraction"
14362
+ ]
14363
+ }
14364
+ ]
14365
+ },
13937
14366
  {
13938
14367
  "id": "PermissionNoPrompt",
13939
14368
  "choices": [
@@ -14035,6 +14464,31 @@
14035
14464
  "admin_install_only": {
14036
14465
  "type": "boolean",
14037
14466
  "optional": true
14467
+ },
14468
+ "data_collection_permissions": {
14469
+ "type": "object",
14470
+ "optional": true,
14471
+ "properties": {
14472
+ "required": {
14473
+ "type": "array",
14474
+ "items": {
14475
+ "$ref": "DataCollectionPermission",
14476
+ "onError": "warn"
14477
+ },
14478
+ "optional": true,
14479
+ "default": [],
14480
+ "postprocess": "checkValidRequiredDataCollection"
14481
+ },
14482
+ "optional": {
14483
+ "type": "array",
14484
+ "items": {
14485
+ "$ref": "OptionalDataCollectionPermission",
14486
+ "onError": "warn"
14487
+ },
14488
+ "optional": true,
14489
+ "default": []
14490
+ }
14491
+ }
14038
14492
  }
14039
14493
  },
14040
14494
  "additionalProperties": {
@@ -15240,6 +15694,14 @@
15240
15694
  },
15241
15695
  "optional": true,
15242
15696
  "default": []
15697
+ },
15698
+ "data_collection": {
15699
+ "type": "array",
15700
+ "items": {
15701
+ "$ref": "manifest.OptionalDataCollectionPermission"
15702
+ },
15703
+ "optional": true,
15704
+ "default": []
15243
15705
  }
15244
15706
  }
15245
15707
  },
@@ -15269,6 +15731,14 @@
15269
15731
  },
15270
15732
  "optional": true,
15271
15733
  "default": []
15734
+ },
15735
+ "data_collection": {
15736
+ "type": "array",
15737
+ "items": {
15738
+ "$ref": "manifest.OptionalDataCollectionPermission"
15739
+ },
15740
+ "optional": true,
15741
+ "default": []
15272
15742
  }
15273
15743
  }
15274
15744
  }
@@ -18418,6 +18888,7 @@
18418
18888
  {
18419
18889
  "name": "assertThrows",
18420
18890
  "type": "function",
18891
+ "allowAmbiguousOptionalArguments": true,
18421
18892
  "parameters": [
18422
18893
  {
18423
18894
  "name": "func",
@@ -18425,7 +18896,9 @@
18425
18896
  },
18426
18897
  {
18427
18898
  "name": "expectedError",
18428
- "$ref": "ExpectedError"
18899
+ "$ref": "ExpectedError",
18900
+ "optional": true,
18901
+ "description": "Required, unless running with extensions.wpt.enabled"
18429
18902
  },
18430
18903
  {
18431
18904
  "name": "message",
@@ -18433,6 +18906,21 @@
18433
18906
  "optional": true
18434
18907
  }
18435
18908
  ]
18909
+ },
18910
+ {
18911
+ "name": "runTests",
18912
+ "type": "function",
18913
+ "async": true,
18914
+ "parameters": [
18915
+ {
18916
+ "name": "tests",
18917
+ "type": "array",
18918
+ "minItems": 1,
18919
+ "items": {
18920
+ "type": "function"
18921
+ }
18922
+ }
18923
+ ]
18436
18924
  }
18437
18925
  ],
18438
18926
  "types": [
@@ -19080,7 +19568,8 @@
19080
19568
  "content"
19081
19569
  ],
19082
19570
  "description": "Delete the models the extension downloaded.",
19083
- "async": true
19571
+ "async": true,
19572
+ "parameters": []
19084
19573
  }
19085
19574
  ]
19086
19575
  }
@@ -20844,6 +21333,7 @@
20844
21333
  "cryptomining_content",
20845
21334
  "emailtracking",
20846
21335
  "emailtracking_content",
21336
+ "consentmanager",
20847
21337
  "tracking",
20848
21338
  "tracking_ad",
20849
21339
  "tracking_analytics",