devtools-protocol 0.0.1433962 → 0.0.1436416

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.
@@ -17912,6 +17912,7 @@
17912
17912
  "interest-cohort",
17913
17913
  "join-ad-interest-group",
17914
17914
  "keyboard-map",
17915
+ "language-detector",
17915
17916
  "local-fonts",
17916
17917
  "magnetometer",
17917
17918
  "media-playback-while-not-visible",
@@ -17926,6 +17927,7 @@
17926
17927
  "private-state-token-redemption",
17927
17928
  "publickey-credentials-create",
17928
17929
  "publickey-credentials-get",
17930
+ "rewriter",
17929
17931
  "run-ad-auction",
17930
17932
  "screen-wake-lock",
17931
17933
  "serial",
@@ -17936,7 +17938,9 @@
17936
17938
  "speaker-selection",
17937
17939
  "storage-access",
17938
17940
  "sub-apps",
17941
+ "summarizer",
17939
17942
  "sync-xhr",
17943
+ "translator",
17940
17944
  "unload",
17941
17945
  "usb",
17942
17946
  "usb-unrestricted",
@@ -17945,6 +17949,7 @@
17945
17949
  "web-printing",
17946
17950
  "web-share",
17947
17951
  "window-management",
17952
+ "writer",
17948
17953
  "xr-spatial-tracking"
17949
17954
  ]
17950
17955
  },
@@ -27808,6 +27813,15 @@
27808
27813
  "powered-on"
27809
27814
  ]
27810
27815
  },
27816
+ {
27817
+ "id": "GATTOperationType",
27818
+ "description": "Indicates the various types of GATT event.",
27819
+ "type": "string",
27820
+ "enum": [
27821
+ "connection",
27822
+ "discovery"
27823
+ ]
27824
+ },
27811
27825
  {
27812
27826
  "id": "ManufacturerData",
27813
27827
  "description": "Stores the manufacturer data",
@@ -27955,6 +27969,40 @@
27955
27969
  "$ref": "ScanEntry"
27956
27970
  }
27957
27971
  ]
27972
+ },
27973
+ {
27974
+ "name": "simulateGATTOperationResponse",
27975
+ "description": "Simulates the response code from the peripheral with |address| for a\nGATT operation of |type|. The |code| value follows the HCI Error Codes from\nBluetooth Core Specification Vol 2 Part D 1.3 List Of Error Codes.",
27976
+ "parameters": [
27977
+ {
27978
+ "name": "address",
27979
+ "type": "string"
27980
+ },
27981
+ {
27982
+ "name": "type",
27983
+ "$ref": "GATTOperationType"
27984
+ },
27985
+ {
27986
+ "name": "code",
27987
+ "type": "integer"
27988
+ }
27989
+ ]
27990
+ }
27991
+ ],
27992
+ "events": [
27993
+ {
27994
+ "name": "gattOperationReceived",
27995
+ "description": "Event for when a GATT operation of |type| to the peripheral with |address|\nhappened.",
27996
+ "parameters": [
27997
+ {
27998
+ "name": "address",
27999
+ "type": "string"
28000
+ },
28001
+ {
28002
+ "name": "type",
28003
+ "$ref": "GATTOperationType"
28004
+ }
28005
+ ]
27958
28006
  }
27959
28007
  ]
27960
28008
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1433962",
3
+ "version": "0.0.1436416",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -8464,6 +8464,7 @@ domain Page
8464
8464
  interest-cohort
8465
8465
  join-ad-interest-group
8466
8466
  keyboard-map
8467
+ language-detector
8467
8468
  local-fonts
8468
8469
  magnetometer
8469
8470
  media-playback-while-not-visible
@@ -8478,6 +8479,7 @@ domain Page
8478
8479
  private-state-token-redemption
8479
8480
  publickey-credentials-create
8480
8481
  publickey-credentials-get
8482
+ rewriter
8481
8483
  run-ad-auction
8482
8484
  screen-wake-lock
8483
8485
  serial
@@ -8488,7 +8490,9 @@ domain Page
8488
8490
  speaker-selection
8489
8491
  storage-access
8490
8492
  sub-apps
8493
+ summarizer
8491
8494
  sync-xhr
8495
+ translator
8492
8496
  unload
8493
8497
  usb
8494
8498
  usb-unrestricted
@@ -8497,6 +8501,7 @@ domain Page
8497
8501
  web-printing
8498
8502
  web-share
8499
8503
  window-management
8504
+ writer
8500
8505
  xr-spatial-tracking
8501
8506
 
8502
8507
  # Reason for a permissions policy feature to be disabled.
@@ -13215,6 +13220,12 @@ experimental domain BluetoothEmulation
13215
13220
  powered-off
13216
13221
  powered-on
13217
13222
 
13223
+ # Indicates the various types of GATT event.
13224
+ type GATTOperationType extends string
13225
+ enum
13226
+ connection
13227
+ discovery
13228
+
13218
13229
  # Stores the manufacturer data
13219
13230
  type ManufacturerData extends object
13220
13231
  properties
@@ -13276,3 +13287,19 @@ experimental domain BluetoothEmulation
13276
13287
  command simulateAdvertisement
13277
13288
  parameters
13278
13289
  ScanEntry entry
13290
+
13291
+ # Simulates the response code from the peripheral with |address| for a
13292
+ # GATT operation of |type|. The |code| value follows the HCI Error Codes from
13293
+ # Bluetooth Core Specification Vol 2 Part D 1.3 List Of Error Codes.
13294
+ command simulateGATTOperationResponse
13295
+ parameters
13296
+ string address
13297
+ GATTOperationType type
13298
+ integer code
13299
+
13300
+ # Event for when a GATT operation of |type| to the peripheral with |address|
13301
+ # happened.
13302
+ event gattOperationReceived
13303
+ parameters
13304
+ string address
13305
+ GATTOperationType type
@@ -819,6 +819,11 @@ export namespace ProtocolMapping {
819
819
  * or a command below.
820
820
  */
821
821
  'FedCm.dialogClosed': [Protocol.FedCm.DialogClosedEvent];
822
+ /**
823
+ * Event for when a GATT operation of |type| to the peripheral with |address|
824
+ * happened.
825
+ */
826
+ 'BluetoothEmulation.gattOperationReceived': [Protocol.BluetoothEmulation.GattOperationReceivedEvent];
822
827
  }
823
828
 
824
829
  export interface Commands {
@@ -5297,6 +5302,15 @@ export namespace ProtocolMapping {
5297
5302
  paramsType: [Protocol.BluetoothEmulation.SimulateAdvertisementRequest];
5298
5303
  returnType: void;
5299
5304
  };
5305
+ /**
5306
+ * Simulates the response code from the peripheral with |address| for a
5307
+ * GATT operation of |type|. The |code| value follows the HCI Error Codes from
5308
+ * Bluetooth Core Specification Vol 2 Part D 1.3 List Of Error Codes.
5309
+ */
5310
+ 'BluetoothEmulation.simulateGATTOperationResponse': {
5311
+ paramsType: [Protocol.BluetoothEmulation.SimulateGATTOperationResponseRequest];
5312
+ returnType: void;
5313
+ };
5300
5314
  }
5301
5315
  }
5302
5316
 
@@ -4527,6 +4527,19 @@ export namespace ProtocolProxyApi {
4527
4527
  */
4528
4528
  simulateAdvertisement(params: Protocol.BluetoothEmulation.SimulateAdvertisementRequest): Promise<void>;
4529
4529
 
4530
+ /**
4531
+ * Simulates the response code from the peripheral with |address| for a
4532
+ * GATT operation of |type|. The |code| value follows the HCI Error Codes from
4533
+ * Bluetooth Core Specification Vol 2 Part D 1.3 List Of Error Codes.
4534
+ */
4535
+ simulateGATTOperationResponse(params: Protocol.BluetoothEmulation.SimulateGATTOperationResponseRequest): Promise<void>;
4536
+
4537
+ /**
4538
+ * Event for when a GATT operation of |type| to the peripheral with |address|
4539
+ * happened.
4540
+ */
4541
+ on(event: 'gattOperationReceived', listener: (params: Protocol.BluetoothEmulation.GattOperationReceivedEvent) => void): void;
4542
+
4530
4543
  }
4531
4544
  }
4532
4545
 
@@ -4931,6 +4931,21 @@ export namespace ProtocolTestsProxyApi {
4931
4931
  */
4932
4932
  simulateAdvertisement(params: Protocol.BluetoothEmulation.SimulateAdvertisementRequest): Promise<{id: number, result: void, sessionId: string}>;
4933
4933
 
4934
+ /**
4935
+ * Simulates the response code from the peripheral with |address| for a
4936
+ * GATT operation of |type|. The |code| value follows the HCI Error Codes from
4937
+ * Bluetooth Core Specification Vol 2 Part D 1.3 List Of Error Codes.
4938
+ */
4939
+ simulateGATTOperationResponse(params: Protocol.BluetoothEmulation.SimulateGATTOperationResponseRequest): Promise<{id: number, result: void, sessionId: string}>;
4940
+
4941
+ /**
4942
+ * Event for when a GATT operation of |type| to the peripheral with |address|
4943
+ * happened.
4944
+ */
4945
+ onGattOperationReceived(listener: (event: { params: Protocol.BluetoothEmulation.GattOperationReceivedEvent }) => void): void;
4946
+ offGattOperationReceived(listener: (event: { params: Protocol.BluetoothEmulation.GattOperationReceivedEvent }) => void): void;
4947
+ onceGattOperationReceived(eventMatcher?: (event: { params: Protocol.BluetoothEmulation.GattOperationReceivedEvent }) => boolean): Promise<{ params: Protocol.BluetoothEmulation.GattOperationReceivedEvent }>;
4948
+
4934
4949
  }
4935
4950
  }
4936
4951
 
@@ -13843,7 +13843,7 @@ export namespace Protocol {
13843
13843
  * All Permissions Policy features. This enum should match the one defined
13844
13844
  * in services/network/public/cpp/permissions_policy/permissions_policy_features.json5.
13845
13845
  */
13846
- export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'attribution-reporting' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-private' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'fenced-unpartitioned-storage-read' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'local-fonts' | 'magnetometer' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'popins' | 'private-aggregation' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'sync-xhr' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'web-printing' | 'web-share' | 'window-management' | 'xr-spatial-tracking');
13846
+ export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'attribution-reporting' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-private' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'fenced-unpartitioned-storage-read' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'language-detector' | 'local-fonts' | 'magnetometer' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'popins' | 'private-aggregation' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'rewriter' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'translator' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
13847
13847
 
13848
13848
  /**
13849
13849
  * Reason for a permissions policy feature to be disabled.
@@ -19471,6 +19471,11 @@ export namespace Protocol {
19471
19471
  */
19472
19472
  export type CentralState = ('absent' | 'powered-off' | 'powered-on');
19473
19473
 
19474
+ /**
19475
+ * Indicates the various types of GATT event.
19476
+ */
19477
+ export type GATTOperationType = ('connection' | 'discovery');
19478
+
19474
19479
  /**
19475
19480
  * Stores the manufacturer data
19476
19481
  */
@@ -19545,6 +19550,21 @@ export namespace Protocol {
19545
19550
  export interface SimulateAdvertisementRequest {
19546
19551
  entry: ScanEntry;
19547
19552
  }
19553
+
19554
+ export interface SimulateGATTOperationResponseRequest {
19555
+ address: string;
19556
+ type: GATTOperationType;
19557
+ code: integer;
19558
+ }
19559
+
19560
+ /**
19561
+ * Event for when a GATT operation of |type| to the peripheral with |address|
19562
+ * happened.
19563
+ */
19564
+ export interface GattOperationReceivedEvent {
19565
+ address: string;
19566
+ type: GATTOperationType;
19567
+ }
19548
19568
  }
19549
19569
  }
19550
19570