webext-schema 5.5.7 → 5.6.1

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.
@@ -4288,6 +4288,287 @@
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
+ "properties": {
4438
+ "collapsed": {
4439
+ "type": "boolean",
4440
+ "optional": true
4441
+ },
4442
+ "color": {
4443
+ "$ref": "Color",
4444
+ "optional": true
4445
+ },
4446
+ "title": {
4447
+ "type": "string",
4448
+ "optional": true
4449
+ },
4450
+ "windowId": {
4451
+ "type": "integer",
4452
+ "optional": true,
4453
+ "minimum": -2
4454
+ }
4455
+ }
4456
+ },
4457
+ {
4458
+ "type": "function",
4459
+ "name": "callback",
4460
+ "parameters": [
4461
+ {
4462
+ "name": "groups",
4463
+ "type": "array",
4464
+ "items": {
4465
+ "$ref": "TabGroup"
4466
+ }
4467
+ }
4468
+ ]
4469
+ }
4470
+ ]
4471
+ },
4472
+ {
4473
+ "name": "update",
4474
+ "type": "function",
4475
+ "description": "Modifies state of a specified group.",
4476
+ "async": "callback",
4477
+ "parameters": [
4478
+ {
4479
+ "type": "integer",
4480
+ "name": "groupId",
4481
+ "minimum": 0
4482
+ },
4483
+ {
4484
+ "type": "object",
4485
+ "name": "updateProperties",
4486
+ "properties": {
4487
+ "collapsed": {
4488
+ "type": "boolean",
4489
+ "optional": true
4490
+ },
4491
+ "color": {
4492
+ "$ref": "Color",
4493
+ "optional": true
4494
+ },
4495
+ "title": {
4496
+ "type": "string",
4497
+ "optional": true
4498
+ }
4499
+ }
4500
+ },
4501
+ {
4502
+ "type": "function",
4503
+ "name": "callback",
4504
+ "parameters": [
4505
+ {
4506
+ "name": "group",
4507
+ "$ref": "TabGroup"
4508
+ }
4509
+ ]
4510
+ }
4511
+ ]
4512
+ }
4513
+ ],
4514
+ "events": [
4515
+ {
4516
+ "name": "onCreated",
4517
+ "type": "function",
4518
+ "description": "Fired when a tab group is created.",
4519
+ "parameters": [
4520
+ {
4521
+ "$ref": "TabGroup",
4522
+ "name": "group"
4523
+ }
4524
+ ]
4525
+ },
4526
+ {
4527
+ "name": "onMoved",
4528
+ "type": "function",
4529
+ "description": "Fired when a tab group is moved, within a window or to another window.",
4530
+ "parameters": [
4531
+ {
4532
+ "$ref": "TabGroup",
4533
+ "name": "group"
4534
+ }
4535
+ ]
4536
+ },
4537
+ {
4538
+ "name": "onRemoved",
4539
+ "type": "function",
4540
+ "description": "Fired when a tab group is removed.",
4541
+ "parameters": [
4542
+ {
4543
+ "$ref": "TabGroup",
4544
+ "name": "group"
4545
+ },
4546
+ {
4547
+ "type": "object",
4548
+ "name": "removeInfo",
4549
+ "properties": {
4550
+ "isWindowClosing": {
4551
+ "type": "boolean",
4552
+ "description": "True when the tab group is being closed because its window is being closed."
4553
+ }
4554
+ }
4555
+ }
4556
+ ]
4557
+ },
4558
+ {
4559
+ "name": "onUpdated",
4560
+ "type": "function",
4561
+ "description": "Fired when a tab group is updated.",
4562
+ "parameters": [
4563
+ {
4564
+ "$ref": "TabGroup",
4565
+ "name": "group"
4566
+ }
4567
+ ]
4568
+ }
4569
+ ]
4570
+ }
4571
+ ],
4291
4572
  "tabs.json": [
4292
4573
  {
4293
4574
  "namespace": "manifest",
@@ -4787,6 +5068,10 @@
4787
5068
  "windowId": {
4788
5069
  "type": "integer",
4789
5070
  "optional": true
5071
+ },
5072
+ "cookieStoreId": {
5073
+ "type": "string",
5074
+ "optional": true
4790
5075
  }
4791
5076
  }
4792
5077
  }
@@ -9138,6 +9423,7 @@
9138
9423
  "id": "SameSiteStatus",
9139
9424
  "type": "string",
9140
9425
  "enum": [
9426
+ "unspecified",
9141
9427
  "no_restriction",
9142
9428
  "lax",
9143
9429
  "strict"
@@ -9431,7 +9717,7 @@
9431
9717
  "$ref": "SameSiteStatus",
9432
9718
  "optional": true,
9433
9719
  "description": "The cookie's same-site status.",
9434
- "default": "no_restriction"
9720
+ "default": "unspecified"
9435
9721
  },
9436
9722
  "expirationDate": {
9437
9723
  "type": "number",
@@ -9685,7 +9971,7 @@
9685
9971
  {
9686
9972
  "id": "ResourceType",
9687
9973
  "type": "string",
9688
- "description": "How the requested resource will be used. Comparable to the webRequest.ResourceType type.",
9974
+ "description": "How the requested resource will be used. Comparable to the webRequest.ResourceType type. object_subrequest is unsupported.",
9689
9975
  "enum": [
9690
9976
  "main_frame",
9691
9977
  "sub_frame",
@@ -12747,6 +13033,28 @@
12747
13033
  "description": "Message localized for current locale."
12748
13034
  }
12749
13035
  },
13036
+ {
13037
+ "name": "getPreferredSystemLanguages",
13038
+ "type": "function",
13039
+ "async": "callback",
13040
+ "description": "Gets the preferred locales of the operating system. This is different from the locales set in the browser; to get those, use $(ref:i18n.getAcceptLanguages).",
13041
+ "parameters": [
13042
+ {
13043
+ "type": "function",
13044
+ "name": "callback",
13045
+ "parameters": [
13046
+ {
13047
+ "name": "languages",
13048
+ "type": "array",
13049
+ "items": {
13050
+ "$ref": "LanguageCode"
13051
+ },
13052
+ "description": "Array of LanguageCode"
13053
+ }
13054
+ ]
13055
+ }
13056
+ ]
13057
+ },
12750
13058
  {
12751
13059
  "name": "getUILanguage",
12752
13060
  "type": "function",
@@ -14043,6 +14351,55 @@
14043
14351
  }
14044
14352
  ]
14045
14353
  },
14354
+ {
14355
+ "id": "CommonDataCollectionPermission",
14356
+ "choices": [
14357
+ {
14358
+ "type": "string",
14359
+ "enum": [
14360
+ "authenticationInfo",
14361
+ "bookmarksInfo",
14362
+ "browsingActivity",
14363
+ "financialAndPaymentInfo",
14364
+ "healthInfo",
14365
+ "locationInfo",
14366
+ "personalCommunications",
14367
+ "personallyIdentifyingInfo",
14368
+ "searchTerms",
14369
+ "websiteActivity",
14370
+ "websiteContent"
14371
+ ]
14372
+ }
14373
+ ]
14374
+ },
14375
+ {
14376
+ "id": "DataCollectionPermission",
14377
+ "choices": [
14378
+ {
14379
+ "$ref": "CommonDataCollectionPermission"
14380
+ },
14381
+ {
14382
+ "type": "string",
14383
+ "enum": [
14384
+ "none"
14385
+ ]
14386
+ }
14387
+ ]
14388
+ },
14389
+ {
14390
+ "id": "OptionalDataCollectionPermission",
14391
+ "choices": [
14392
+ {
14393
+ "$ref": "CommonDataCollectionPermission"
14394
+ },
14395
+ {
14396
+ "type": "string",
14397
+ "enum": [
14398
+ "technicalAndInteraction"
14399
+ ]
14400
+ }
14401
+ ]
14402
+ },
14046
14403
  {
14047
14404
  "id": "PermissionNoPrompt",
14048
14405
  "choices": [
@@ -14144,6 +14501,31 @@
14144
14501
  "admin_install_only": {
14145
14502
  "type": "boolean",
14146
14503
  "optional": true
14504
+ },
14505
+ "data_collection_permissions": {
14506
+ "type": "object",
14507
+ "optional": true,
14508
+ "properties": {
14509
+ "required": {
14510
+ "type": "array",
14511
+ "items": {
14512
+ "$ref": "DataCollectionPermission",
14513
+ "onError": "warn"
14514
+ },
14515
+ "optional": true,
14516
+ "default": [],
14517
+ "postprocess": "checkValidRequiredDataCollection"
14518
+ },
14519
+ "optional": {
14520
+ "type": "array",
14521
+ "items": {
14522
+ "$ref": "OptionalDataCollectionPermission",
14523
+ "onError": "warn"
14524
+ },
14525
+ "optional": true,
14526
+ "default": []
14527
+ }
14528
+ }
14147
14529
  }
14148
14530
  },
14149
14531
  "additionalProperties": {
@@ -15349,6 +15731,14 @@
15349
15731
  },
15350
15732
  "optional": true,
15351
15733
  "default": []
15734
+ },
15735
+ "data_collection": {
15736
+ "type": "array",
15737
+ "items": {
15738
+ "$ref": "manifest.OptionalDataCollectionPermission"
15739
+ },
15740
+ "optional": true,
15741
+ "default": []
15352
15742
  }
15353
15743
  }
15354
15744
  },
@@ -15378,6 +15768,14 @@
15378
15768
  },
15379
15769
  "optional": true,
15380
15770
  "default": []
15771
+ },
15772
+ "data_collection": {
15773
+ "type": "array",
15774
+ "items": {
15775
+ "$ref": "manifest.OptionalDataCollectionPermission"
15776
+ },
15777
+ "optional": true,
15778
+ "default": []
15381
15779
  }
15382
15780
  }
15383
15781
  }
@@ -18527,6 +18925,7 @@
18527
18925
  {
18528
18926
  "name": "assertThrows",
18529
18927
  "type": "function",
18928
+ "allowAmbiguousOptionalArguments": true,
18530
18929
  "parameters": [
18531
18930
  {
18532
18931
  "name": "func",
@@ -18534,7 +18933,9 @@
18534
18933
  },
18535
18934
  {
18536
18935
  "name": "expectedError",
18537
- "$ref": "ExpectedError"
18936
+ "$ref": "ExpectedError",
18937
+ "optional": true,
18938
+ "description": "Required, unless running with extensions.wpt.enabled"
18538
18939
  },
18539
18940
  {
18540
18941
  "name": "message",
@@ -18542,6 +18943,21 @@
18542
18943
  "optional": true
18543
18944
  }
18544
18945
  ]
18946
+ },
18947
+ {
18948
+ "name": "runTests",
18949
+ "type": "function",
18950
+ "async": true,
18951
+ "parameters": [
18952
+ {
18953
+ "name": "tests",
18954
+ "type": "array",
18955
+ "minItems": 1,
18956
+ "items": {
18957
+ "type": "function"
18958
+ }
18959
+ }
18960
+ ]
18545
18961
  }
18546
18962
  ],
18547
18963
  "types": [
@@ -20527,7 +20943,6 @@
20527
20943
  "script",
20528
20944
  "image",
20529
20945
  "object",
20530
- "object_subrequest",
20531
20946
  "xmlhttprequest",
20532
20947
  "xslt",
20533
20948
  "ping",
@@ -20954,7 +21369,6 @@
20954
21369
  "cryptomining_content",
20955
21370
  "emailtracking",
20956
21371
  "emailtracking_content",
20957
- "consentmanager",
20958
21372
  "tracking",
20959
21373
  "tracking_ad",
20960
21374
  "tracking_analytics",
@@ -20962,7 +21376,9 @@
20962
21376
  "tracking_content",
20963
21377
  "any_basic_tracking",
20964
21378
  "any_strict_tracking",
20965
- "any_social_tracking"
21379
+ "any_social_tracking",
21380
+ "consentmanager",
21381
+ "antifraud"
20966
21382
  ],
20967
21383
  "description": "Tracking flags that match our internal tracking classification"
20968
21384
  },
@@ -1,4 +1,4 @@
1
- export const ESR_VER: 128;
1
+ export const ESR_VER: 115;
2
2
  export function fetchText(url: string): Promise<string>;
3
3
  export function getChannelUrl(channel: string): string;
4
4
  export function getSchemaData(file: string, baseUrl: string): Promise<object>;