devtools-protocol 0.0.1453708 → 0.0.1456087
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.
- package/json/browser_protocol.json +296 -2
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +125 -7
- package/types/protocol-mapping.d.ts +47 -7
- package/types/protocol-proxy-api.d.ts +50 -7
- package/types/protocol-tests-proxy-api.d.ts +66 -9
- package/types/protocol.d.ts +136 -7
@@ -14616,6 +14616,75 @@
|
|
14616
14616
|
}
|
14617
14617
|
]
|
14618
14618
|
},
|
14619
|
+
{
|
14620
|
+
"id": "DirectUDPSocketOptions",
|
14621
|
+
"experimental": true,
|
14622
|
+
"type": "object",
|
14623
|
+
"properties": [
|
14624
|
+
{
|
14625
|
+
"name": "remoteAddr",
|
14626
|
+
"optional": true,
|
14627
|
+
"type": "string"
|
14628
|
+
},
|
14629
|
+
{
|
14630
|
+
"name": "remotePort",
|
14631
|
+
"description": "Unsigned int 16.",
|
14632
|
+
"optional": true,
|
14633
|
+
"type": "integer"
|
14634
|
+
},
|
14635
|
+
{
|
14636
|
+
"name": "localAddr",
|
14637
|
+
"optional": true,
|
14638
|
+
"type": "string"
|
14639
|
+
},
|
14640
|
+
{
|
14641
|
+
"name": "localPort",
|
14642
|
+
"description": "Unsigned int 16.",
|
14643
|
+
"optional": true,
|
14644
|
+
"type": "integer"
|
14645
|
+
},
|
14646
|
+
{
|
14647
|
+
"name": "dnsQueryType",
|
14648
|
+
"optional": true,
|
14649
|
+
"$ref": "DirectSocketDnsQueryType"
|
14650
|
+
},
|
14651
|
+
{
|
14652
|
+
"name": "sendBufferSize",
|
14653
|
+
"description": "Expected to be unsigned integer.",
|
14654
|
+
"optional": true,
|
14655
|
+
"type": "number"
|
14656
|
+
},
|
14657
|
+
{
|
14658
|
+
"name": "receiveBufferSize",
|
14659
|
+
"description": "Expected to be unsigned integer.",
|
14660
|
+
"optional": true,
|
14661
|
+
"type": "number"
|
14662
|
+
}
|
14663
|
+
]
|
14664
|
+
},
|
14665
|
+
{
|
14666
|
+
"id": "DirectUDPMessage",
|
14667
|
+
"experimental": true,
|
14668
|
+
"type": "object",
|
14669
|
+
"properties": [
|
14670
|
+
{
|
14671
|
+
"name": "data",
|
14672
|
+
"type": "string"
|
14673
|
+
},
|
14674
|
+
{
|
14675
|
+
"name": "remoteAddr",
|
14676
|
+
"description": "Null for connected mode.",
|
14677
|
+
"optional": true,
|
14678
|
+
"type": "string"
|
14679
|
+
},
|
14680
|
+
{
|
14681
|
+
"name": "remotePort",
|
14682
|
+
"description": "Null for connected mode.\nExpected to be unsigned integer.",
|
14683
|
+
"optional": true,
|
14684
|
+
"type": "integer"
|
14685
|
+
}
|
14686
|
+
]
|
14687
|
+
},
|
14619
14688
|
{
|
14620
14689
|
"id": "PrivateNetworkRequestPolicy",
|
14621
14690
|
"experimental": true,
|
@@ -15175,6 +15244,13 @@
|
|
15175
15244
|
"description": "Longest post body size (in bytes) that would be included in requestWillBeSent notification",
|
15176
15245
|
"optional": true,
|
15177
15246
|
"type": "integer"
|
15247
|
+
},
|
15248
|
+
{
|
15249
|
+
"name": "reportDirectSocketTraffic",
|
15250
|
+
"description": "Whether DirectSocket chunk send/receive events should be reported.",
|
15251
|
+
"experimental": true,
|
15252
|
+
"optional": true,
|
15253
|
+
"type": "boolean"
|
15178
15254
|
}
|
15179
15255
|
]
|
15180
15256
|
},
|
@@ -16412,8 +16488,67 @@
|
|
16412
16488
|
]
|
16413
16489
|
},
|
16414
16490
|
{
|
16415
|
-
"name": "
|
16416
|
-
"description": "Fired
|
16491
|
+
"name": "directUDPSocketCreated",
|
16492
|
+
"description": "Fired upon direct_socket.UDPSocket creation.",
|
16493
|
+
"experimental": true,
|
16494
|
+
"parameters": [
|
16495
|
+
{
|
16496
|
+
"name": "identifier",
|
16497
|
+
"$ref": "RequestId"
|
16498
|
+
},
|
16499
|
+
{
|
16500
|
+
"name": "options",
|
16501
|
+
"$ref": "DirectUDPSocketOptions"
|
16502
|
+
},
|
16503
|
+
{
|
16504
|
+
"name": "timestamp",
|
16505
|
+
"$ref": "MonotonicTime"
|
16506
|
+
},
|
16507
|
+
{
|
16508
|
+
"name": "initiator",
|
16509
|
+
"optional": true,
|
16510
|
+
"$ref": "Initiator"
|
16511
|
+
}
|
16512
|
+
]
|
16513
|
+
},
|
16514
|
+
{
|
16515
|
+
"name": "directUDPSocketOpened",
|
16516
|
+
"description": "Fired when direct_socket.UDPSocket connection is opened.",
|
16517
|
+
"experimental": true,
|
16518
|
+
"parameters": [
|
16519
|
+
{
|
16520
|
+
"name": "identifier",
|
16521
|
+
"$ref": "RequestId"
|
16522
|
+
},
|
16523
|
+
{
|
16524
|
+
"name": "localAddr",
|
16525
|
+
"type": "string"
|
16526
|
+
},
|
16527
|
+
{
|
16528
|
+
"name": "localPort",
|
16529
|
+
"description": "Expected to be unsigned integer.",
|
16530
|
+
"type": "integer"
|
16531
|
+
},
|
16532
|
+
{
|
16533
|
+
"name": "timestamp",
|
16534
|
+
"$ref": "MonotonicTime"
|
16535
|
+
},
|
16536
|
+
{
|
16537
|
+
"name": "remoteAddr",
|
16538
|
+
"optional": true,
|
16539
|
+
"type": "string"
|
16540
|
+
},
|
16541
|
+
{
|
16542
|
+
"name": "remotePort",
|
16543
|
+
"description": "Expected to be unsigned integer.",
|
16544
|
+
"optional": true,
|
16545
|
+
"type": "integer"
|
16546
|
+
}
|
16547
|
+
]
|
16548
|
+
},
|
16549
|
+
{
|
16550
|
+
"name": "directUDPSocketAborted",
|
16551
|
+
"description": "Fired when direct_socket.UDPSocket is aborted.",
|
16417
16552
|
"experimental": true,
|
16418
16553
|
"parameters": [
|
16419
16554
|
{
|
@@ -16430,6 +16565,59 @@
|
|
16430
16565
|
}
|
16431
16566
|
]
|
16432
16567
|
},
|
16568
|
+
{
|
16569
|
+
"name": "directUDPSocketClosed",
|
16570
|
+
"description": "Fired when direct_socket.UDPSocket is closed.",
|
16571
|
+
"experimental": true,
|
16572
|
+
"parameters": [
|
16573
|
+
{
|
16574
|
+
"name": "identifier",
|
16575
|
+
"$ref": "RequestId"
|
16576
|
+
},
|
16577
|
+
{
|
16578
|
+
"name": "timestamp",
|
16579
|
+
"$ref": "MonotonicTime"
|
16580
|
+
}
|
16581
|
+
]
|
16582
|
+
},
|
16583
|
+
{
|
16584
|
+
"name": "directUDPSocketChunkSent",
|
16585
|
+
"description": "Fired when message is sent to udp direct socket stream.",
|
16586
|
+
"experimental": true,
|
16587
|
+
"parameters": [
|
16588
|
+
{
|
16589
|
+
"name": "identifier",
|
16590
|
+
"$ref": "RequestId"
|
16591
|
+
},
|
16592
|
+
{
|
16593
|
+
"name": "message",
|
16594
|
+
"$ref": "DirectUDPMessage"
|
16595
|
+
},
|
16596
|
+
{
|
16597
|
+
"name": "timestamp",
|
16598
|
+
"$ref": "MonotonicTime"
|
16599
|
+
}
|
16600
|
+
]
|
16601
|
+
},
|
16602
|
+
{
|
16603
|
+
"name": "directUDPSocketChunkReceived",
|
16604
|
+
"description": "Fired when message is received from udp direct socket stream.",
|
16605
|
+
"experimental": true,
|
16606
|
+
"parameters": [
|
16607
|
+
{
|
16608
|
+
"name": "identifier",
|
16609
|
+
"$ref": "RequestId"
|
16610
|
+
},
|
16611
|
+
{
|
16612
|
+
"name": "message",
|
16613
|
+
"$ref": "DirectUDPMessage"
|
16614
|
+
},
|
16615
|
+
{
|
16616
|
+
"name": "timestamp",
|
16617
|
+
"$ref": "MonotonicTime"
|
16618
|
+
}
|
16619
|
+
]
|
16620
|
+
},
|
16433
16621
|
{
|
16434
16622
|
"name": "requestWillBeSentExtraInfo",
|
16435
16623
|
"description": "Fired when additional information about a requestWillBeSent event is available from the\nnetwork stack. Not every requestWillBeSent event will have an additional\nrequestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent\nor requestWillBeSentExtraInfo will be fired first for the same request.",
|
@@ -23372,6 +23560,17 @@
|
|
23372
23560
|
"excessiveReports"
|
23373
23561
|
]
|
23374
23562
|
},
|
23563
|
+
{
|
23564
|
+
"id": "AttributionReportingReportResult",
|
23565
|
+
"experimental": true,
|
23566
|
+
"type": "string",
|
23567
|
+
"enum": [
|
23568
|
+
"sent",
|
23569
|
+
"prohibited",
|
23570
|
+
"failedToAssemble",
|
23571
|
+
"expired"
|
23572
|
+
]
|
23573
|
+
},
|
23375
23574
|
{
|
23376
23575
|
"id": "RelatedWebsiteSet",
|
23377
23576
|
"description": "A single Related Website Set object.",
|
@@ -24263,6 +24462,40 @@
|
|
24263
24462
|
"$ref": "AttributionReportingAggregatableResult"
|
24264
24463
|
}
|
24265
24464
|
]
|
24465
|
+
},
|
24466
|
+
{
|
24467
|
+
"name": "attributionReportingReportSent",
|
24468
|
+
"experimental": true,
|
24469
|
+
"parameters": [
|
24470
|
+
{
|
24471
|
+
"name": "url",
|
24472
|
+
"type": "string"
|
24473
|
+
},
|
24474
|
+
{
|
24475
|
+
"name": "body",
|
24476
|
+
"type": "object"
|
24477
|
+
},
|
24478
|
+
{
|
24479
|
+
"name": "result",
|
24480
|
+
"$ref": "AttributionReportingReportResult"
|
24481
|
+
},
|
24482
|
+
{
|
24483
|
+
"name": "netError",
|
24484
|
+
"description": "If result is `sent`, populated with net/HTTP status.",
|
24485
|
+
"optional": true,
|
24486
|
+
"type": "integer"
|
24487
|
+
},
|
24488
|
+
{
|
24489
|
+
"name": "netErrorName",
|
24490
|
+
"optional": true,
|
24491
|
+
"type": "string"
|
24492
|
+
},
|
24493
|
+
{
|
24494
|
+
"name": "httpStatusCode",
|
24495
|
+
"optional": true,
|
24496
|
+
"type": "integer"
|
24497
|
+
}
|
24498
|
+
]
|
24266
24499
|
}
|
24267
24500
|
]
|
24268
24501
|
},
|
@@ -28169,6 +28402,15 @@
|
|
28169
28402
|
"unsubscribe-from-notifications"
|
28170
28403
|
]
|
28171
28404
|
},
|
28405
|
+
{
|
28406
|
+
"id": "DescriptorOperationType",
|
28407
|
+
"description": "Indicates the various types of descriptor operation.",
|
28408
|
+
"type": "string",
|
28409
|
+
"enum": [
|
28410
|
+
"read",
|
28411
|
+
"write"
|
28412
|
+
]
|
28413
|
+
},
|
28172
28414
|
{
|
28173
28415
|
"id": "ManufacturerData",
|
28174
28416
|
"description": "Stores the manufacturer data",
|
@@ -28405,6 +28647,29 @@
|
|
28405
28647
|
}
|
28406
28648
|
]
|
28407
28649
|
},
|
28650
|
+
{
|
28651
|
+
"name": "simulateDescriptorOperationResponse",
|
28652
|
+
"description": "Simulates the response from the descriptor with |descriptorId| for a\ndescriptor operation of |type|. The |code| value follows the Error\nCodes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response.\nThe |data| is expected to exist when simulating a successful read operation\nresponse.",
|
28653
|
+
"parameters": [
|
28654
|
+
{
|
28655
|
+
"name": "descriptorId",
|
28656
|
+
"type": "string"
|
28657
|
+
},
|
28658
|
+
{
|
28659
|
+
"name": "type",
|
28660
|
+
"$ref": "DescriptorOperationType"
|
28661
|
+
},
|
28662
|
+
{
|
28663
|
+
"name": "code",
|
28664
|
+
"type": "integer"
|
28665
|
+
},
|
28666
|
+
{
|
28667
|
+
"name": "data",
|
28668
|
+
"optional": true,
|
28669
|
+
"type": "string"
|
28670
|
+
}
|
28671
|
+
]
|
28672
|
+
},
|
28408
28673
|
{
|
28409
28674
|
"name": "addService",
|
28410
28675
|
"description": "Adds a service with |serviceUuid| to the peripheral with |address|.",
|
@@ -28501,6 +28766,16 @@
|
|
28501
28766
|
"type": "string"
|
28502
28767
|
}
|
28503
28768
|
]
|
28769
|
+
},
|
28770
|
+
{
|
28771
|
+
"name": "simulateGATTDisconnection",
|
28772
|
+
"description": "Simulates a GATT disconnection from the peripheral with |address|.",
|
28773
|
+
"parameters": [
|
28774
|
+
{
|
28775
|
+
"name": "address",
|
28776
|
+
"type": "string"
|
28777
|
+
}
|
28778
|
+
]
|
28504
28779
|
}
|
28505
28780
|
],
|
28506
28781
|
"events": [
|
@@ -28541,6 +28816,25 @@
|
|
28541
28816
|
"$ref": "CharacteristicWriteType"
|
28542
28817
|
}
|
28543
28818
|
]
|
28819
|
+
},
|
28820
|
+
{
|
28821
|
+
"name": "descriptorOperationReceived",
|
28822
|
+
"description": "Event for when a descriptor operation of |type| to the descriptor\nrespresented by |descriptorId| happened. |data| is expected to exist when\n|type| is write.",
|
28823
|
+
"parameters": [
|
28824
|
+
{
|
28825
|
+
"name": "descriptorId",
|
28826
|
+
"type": "string"
|
28827
|
+
},
|
28828
|
+
{
|
28829
|
+
"name": "type",
|
28830
|
+
"$ref": "CharacteristicOperationType"
|
28831
|
+
},
|
28832
|
+
{
|
28833
|
+
"name": "data",
|
28834
|
+
"optional": true,
|
28835
|
+
"type": "string"
|
28836
|
+
}
|
28837
|
+
]
|
28544
28838
|
}
|
28545
28839
|
]
|
28546
28840
|
}
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -7018,6 +7018,8 @@ domain Network
|
|
7018
7018
|
experimental optional integer maxResourceBufferSize
|
7019
7019
|
# Longest post body size (in bytes) that would be included in requestWillBeSent notification
|
7020
7020
|
optional integer maxPostDataSize
|
7021
|
+
# Whether DirectSocket chunk send/receive events should be reported.
|
7022
|
+
experimental optional boolean reportDirectSocketTraffic
|
7021
7023
|
|
7022
7024
|
# Returns all browser cookies. Depending on the backend support, will return detailed cookie
|
7023
7025
|
# information in the `cookies` field.
|
@@ -7549,18 +7551,80 @@ domain Network
|
|
7549
7551
|
binary data
|
7550
7552
|
MonotonicTime timestamp
|
7551
7553
|
|
7552
|
-
|
7553
|
-
|
7554
|
-
|
7555
|
-
|
7556
|
-
|
7557
|
-
|
7558
|
-
|
7554
|
+
experimental type DirectUDPSocketOptions extends object
|
7555
|
+
properties
|
7556
|
+
optional string remoteAddr
|
7557
|
+
# Unsigned int 16.
|
7558
|
+
optional integer remotePort
|
7559
|
+
|
7560
|
+
optional string localAddr
|
7561
|
+
# Unsigned int 16.
|
7562
|
+
optional integer localPort
|
7563
|
+
|
7564
|
+
optional DirectSocketDnsQueryType dnsQueryType
|
7565
|
+
|
7566
|
+
# Expected to be unsigned integer.
|
7567
|
+
optional number sendBufferSize
|
7568
|
+
# Expected to be unsigned integer.
|
7569
|
+
optional number receiveBufferSize
|
7570
|
+
|
7571
|
+
|
7572
|
+
# Fired upon direct_socket.UDPSocket creation.
|
7573
|
+
experimental event directUDPSocketCreated
|
7574
|
+
parameters
|
7575
|
+
RequestId identifier
|
7576
|
+
DirectUDPSocketOptions options
|
7577
|
+
MonotonicTime timestamp
|
7578
|
+
optional Initiator initiator
|
7579
|
+
|
7580
|
+
# Fired when direct_socket.UDPSocket connection is opened.
|
7581
|
+
experimental event directUDPSocketOpened
|
7582
|
+
parameters
|
7583
|
+
RequestId identifier
|
7584
|
+
string localAddr
|
7585
|
+
# Expected to be unsigned integer.
|
7586
|
+
integer localPort
|
7587
|
+
MonotonicTime timestamp
|
7588
|
+
optional string remoteAddr
|
7589
|
+
# Expected to be unsigned integer.
|
7590
|
+
optional integer remotePort
|
7591
|
+
|
7592
|
+
# Fired when direct_socket.UDPSocket is aborted.
|
7593
|
+
experimental event directUDPSocketAborted
|
7559
7594
|
parameters
|
7560
7595
|
RequestId identifier
|
7561
7596
|
string errorMessage
|
7562
7597
|
MonotonicTime timestamp
|
7563
7598
|
|
7599
|
+
# Fired when direct_socket.UDPSocket is closed.
|
7600
|
+
experimental event directUDPSocketClosed
|
7601
|
+
parameters
|
7602
|
+
RequestId identifier
|
7603
|
+
MonotonicTime timestamp
|
7604
|
+
|
7605
|
+
experimental type DirectUDPMessage extends object
|
7606
|
+
properties
|
7607
|
+
binary data
|
7608
|
+
# Null for connected mode.
|
7609
|
+
optional string remoteAddr
|
7610
|
+
# Null for connected mode.
|
7611
|
+
# Expected to be unsigned integer.
|
7612
|
+
optional integer remotePort
|
7613
|
+
|
7614
|
+
# Fired when message is sent to udp direct socket stream.
|
7615
|
+
experimental event directUDPSocketChunkSent
|
7616
|
+
parameters
|
7617
|
+
RequestId identifier
|
7618
|
+
DirectUDPMessage message
|
7619
|
+
MonotonicTime timestamp
|
7620
|
+
|
7621
|
+
# Fired when message is received from udp direct socket stream.
|
7622
|
+
experimental event directUDPSocketChunkReceived
|
7623
|
+
parameters
|
7624
|
+
RequestId identifier
|
7625
|
+
DirectUDPMessage message
|
7626
|
+
MonotonicTime timestamp
|
7627
|
+
|
7564
7628
|
experimental type PrivateNetworkRequestPolicy extends string
|
7565
7629
|
enum
|
7566
7630
|
Allow
|
@@ -11380,6 +11444,28 @@ experimental domain Storage
|
|
11380
11444
|
AttributionReportingEventLevelResult eventLevel
|
11381
11445
|
AttributionReportingAggregatableResult aggregatable
|
11382
11446
|
|
11447
|
+
experimental type AttributionReportingReportResult extends string
|
11448
|
+
enum
|
11449
|
+
# A network request was attempted for the report.
|
11450
|
+
sent
|
11451
|
+
# No request was attempted because of browser policy.
|
11452
|
+
prohibited
|
11453
|
+
# No request was attempted because of an error in report assembly,
|
11454
|
+
# e.g. the aggregation service was unavailable.
|
11455
|
+
failedToAssemble
|
11456
|
+
# No request was attempted because the report's expiry passed.
|
11457
|
+
expired
|
11458
|
+
|
11459
|
+
experimental event attributionReportingReportSent
|
11460
|
+
parameters
|
11461
|
+
string url
|
11462
|
+
object body
|
11463
|
+
AttributionReportingReportResult result
|
11464
|
+
# If result is `sent`, populated with net/HTTP status.
|
11465
|
+
optional integer netError
|
11466
|
+
optional string netErrorName
|
11467
|
+
optional integer httpStatusCode
|
11468
|
+
|
11383
11469
|
# A single Related Website Set object.
|
11384
11470
|
experimental type RelatedWebsiteSet extends object
|
11385
11471
|
properties
|
@@ -13385,6 +13471,12 @@ experimental domain BluetoothEmulation
|
|
13385
13471
|
subscribe-to-notifications
|
13386
13472
|
unsubscribe-from-notifications
|
13387
13473
|
|
13474
|
+
# Indicates the various types of descriptor operation.
|
13475
|
+
type DescriptorOperationType extends string
|
13476
|
+
enum
|
13477
|
+
read
|
13478
|
+
write
|
13479
|
+
|
13388
13480
|
# Stores the manufacturer data
|
13389
13481
|
type ManufacturerData extends object
|
13390
13482
|
properties
|
@@ -13481,6 +13573,18 @@ experimental domain BluetoothEmulation
|
|
13481
13573
|
integer code
|
13482
13574
|
optional binary data
|
13483
13575
|
|
13576
|
+
# Simulates the response from the descriptor with |descriptorId| for a
|
13577
|
+
# descriptor operation of |type|. The |code| value follows the Error
|
13578
|
+
# Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response.
|
13579
|
+
# The |data| is expected to exist when simulating a successful read operation
|
13580
|
+
# response.
|
13581
|
+
command simulateDescriptorOperationResponse
|
13582
|
+
parameters
|
13583
|
+
string descriptorId
|
13584
|
+
DescriptorOperationType type
|
13585
|
+
integer code
|
13586
|
+
optional binary data
|
13587
|
+
|
13484
13588
|
# Adds a service with |serviceUuid| to the peripheral with |address|.
|
13485
13589
|
command addService
|
13486
13590
|
parameters
|
@@ -13527,6 +13631,11 @@ experimental domain BluetoothEmulation
|
|
13527
13631
|
parameters
|
13528
13632
|
string descriptorId
|
13529
13633
|
|
13634
|
+
# Simulates a GATT disconnection from the peripheral with |address|.
|
13635
|
+
command simulateGATTDisconnection
|
13636
|
+
parameters
|
13637
|
+
string address
|
13638
|
+
|
13530
13639
|
# Event for when a GATT operation of |type| to the peripheral with |address|
|
13531
13640
|
# happened.
|
13532
13641
|
event gattOperationReceived
|
@@ -13543,3 +13652,12 @@ experimental domain BluetoothEmulation
|
|
13543
13652
|
CharacteristicOperationType type
|
13544
13653
|
optional binary data
|
13545
13654
|
optional CharacteristicWriteType writeType
|
13655
|
+
|
13656
|
+
# Event for when a descriptor operation of |type| to the descriptor
|
13657
|
+
# respresented by |descriptorId| happened. |data| is expected to exist when
|
13658
|
+
# |type| is write.
|
13659
|
+
event descriptorOperationReceived
|
13660
|
+
parameters
|
13661
|
+
string descriptorId
|
13662
|
+
CharacteristicOperationType type
|
13663
|
+
optional binary data
|
@@ -376,14 +376,29 @@ export namespace ProtocolMapping {
|
|
376
376
|
*/
|
377
377
|
'Network.directTCPSocketChunkReceived': [Protocol.Network.DirectTCPSocketChunkReceivedEvent];
|
378
378
|
/**
|
379
|
-
* Fired
|
380
|
-
* when writing to tcp direct socket stream.
|
381
|
-
* For example, if user writes illegal type like string
|
382
|
-
* instead of ArrayBuffer or ArrayBufferView.
|
383
|
-
* There's no reporting for reading, because
|
384
|
-
* we cannot know errors on the other side.
|
379
|
+
* Fired upon direct_socket.UDPSocket creation.
|
385
380
|
*/
|
386
|
-
'Network.
|
381
|
+
'Network.directUDPSocketCreated': [Protocol.Network.DirectUDPSocketCreatedEvent];
|
382
|
+
/**
|
383
|
+
* Fired when direct_socket.UDPSocket connection is opened.
|
384
|
+
*/
|
385
|
+
'Network.directUDPSocketOpened': [Protocol.Network.DirectUDPSocketOpenedEvent];
|
386
|
+
/**
|
387
|
+
* Fired when direct_socket.UDPSocket is aborted.
|
388
|
+
*/
|
389
|
+
'Network.directUDPSocketAborted': [Protocol.Network.DirectUDPSocketAbortedEvent];
|
390
|
+
/**
|
391
|
+
* Fired when direct_socket.UDPSocket is closed.
|
392
|
+
*/
|
393
|
+
'Network.directUDPSocketClosed': [Protocol.Network.DirectUDPSocketClosedEvent];
|
394
|
+
/**
|
395
|
+
* Fired when message is sent to udp direct socket stream.
|
396
|
+
*/
|
397
|
+
'Network.directUDPSocketChunkSent': [Protocol.Network.DirectUDPSocketChunkSentEvent];
|
398
|
+
/**
|
399
|
+
* Fired when message is received from udp direct socket stream.
|
400
|
+
*/
|
401
|
+
'Network.directUDPSocketChunkReceived': [Protocol.Network.DirectUDPSocketChunkReceivedEvent];
|
387
402
|
/**
|
388
403
|
* Fired when additional information about a requestWillBeSent event is available from the
|
389
404
|
* network stack. Not every requestWillBeSent event will have an additional
|
@@ -645,6 +660,7 @@ export namespace ProtocolMapping {
|
|
645
660
|
'Storage.storageBucketDeleted': [Protocol.Storage.StorageBucketDeletedEvent];
|
646
661
|
'Storage.attributionReportingSourceRegistered': [Protocol.Storage.AttributionReportingSourceRegisteredEvent];
|
647
662
|
'Storage.attributionReportingTriggerRegistered': [Protocol.Storage.AttributionReportingTriggerRegisteredEvent];
|
663
|
+
'Storage.attributionReportingReportSent': [Protocol.Storage.AttributionReportingReportSentEvent];
|
648
664
|
/**
|
649
665
|
* Issued when attached to target because of auto-attach or `attachToTarget` command.
|
650
666
|
*/
|
@@ -847,6 +863,12 @@ export namespace ProtocolMapping {
|
|
847
863
|
* expected to exist when |type| is write.
|
848
864
|
*/
|
849
865
|
'BluetoothEmulation.characteristicOperationReceived': [Protocol.BluetoothEmulation.CharacteristicOperationReceivedEvent];
|
866
|
+
/**
|
867
|
+
* Event for when a descriptor operation of |type| to the descriptor
|
868
|
+
* respresented by |descriptorId| happened. |data| is expected to exist when
|
869
|
+
* |type| is write.
|
870
|
+
*/
|
871
|
+
'BluetoothEmulation.descriptorOperationReceived': [Protocol.BluetoothEmulation.DescriptorOperationReceivedEvent];
|
850
872
|
}
|
851
873
|
|
852
874
|
export interface Commands {
|
@@ -5365,6 +5387,17 @@ export namespace ProtocolMapping {
|
|
5365
5387
|
paramsType: [Protocol.BluetoothEmulation.SimulateCharacteristicOperationResponseRequest];
|
5366
5388
|
returnType: void;
|
5367
5389
|
};
|
5390
|
+
/**
|
5391
|
+
* Simulates the response from the descriptor with |descriptorId| for a
|
5392
|
+
* descriptor operation of |type|. The |code| value follows the Error
|
5393
|
+
* Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response.
|
5394
|
+
* The |data| is expected to exist when simulating a successful read operation
|
5395
|
+
* response.
|
5396
|
+
*/
|
5397
|
+
'BluetoothEmulation.simulateDescriptorOperationResponse': {
|
5398
|
+
paramsType: [Protocol.BluetoothEmulation.SimulateDescriptorOperationResponseRequest];
|
5399
|
+
returnType: void;
|
5400
|
+
};
|
5368
5401
|
/**
|
5369
5402
|
* Adds a service with |serviceUuid| to the peripheral with |address|.
|
5370
5403
|
*/
|
@@ -5410,6 +5443,13 @@ export namespace ProtocolMapping {
|
|
5410
5443
|
paramsType: [Protocol.BluetoothEmulation.RemoveDescriptorRequest];
|
5411
5444
|
returnType: void;
|
5412
5445
|
};
|
5446
|
+
/**
|
5447
|
+
* Simulates a GATT disconnection from the peripheral with |address|.
|
5448
|
+
*/
|
5449
|
+
'BluetoothEmulation.simulateGATTDisconnection': {
|
5450
|
+
paramsType: [Protocol.BluetoothEmulation.SimulateGATTDisconnectionRequest];
|
5451
|
+
returnType: void;
|
5452
|
+
};
|
5413
5453
|
}
|
5414
5454
|
}
|
5415
5455
|
|
@@ -2748,14 +2748,34 @@ export namespace ProtocolProxyApi {
|
|
2748
2748
|
on(event: 'directTCPSocketChunkReceived', listener: (params: Protocol.Network.DirectTCPSocketChunkReceivedEvent) => void): void;
|
2749
2749
|
|
2750
2750
|
/**
|
2751
|
-
* Fired
|
2752
|
-
* when writing to tcp direct socket stream.
|
2753
|
-
* For example, if user writes illegal type like string
|
2754
|
-
* instead of ArrayBuffer or ArrayBufferView.
|
2755
|
-
* There's no reporting for reading, because
|
2756
|
-
* we cannot know errors on the other side.
|
2751
|
+
* Fired upon direct_socket.UDPSocket creation.
|
2757
2752
|
*/
|
2758
|
-
on(event: '
|
2753
|
+
on(event: 'directUDPSocketCreated', listener: (params: Protocol.Network.DirectUDPSocketCreatedEvent) => void): void;
|
2754
|
+
|
2755
|
+
/**
|
2756
|
+
* Fired when direct_socket.UDPSocket connection is opened.
|
2757
|
+
*/
|
2758
|
+
on(event: 'directUDPSocketOpened', listener: (params: Protocol.Network.DirectUDPSocketOpenedEvent) => void): void;
|
2759
|
+
|
2760
|
+
/**
|
2761
|
+
* Fired when direct_socket.UDPSocket is aborted.
|
2762
|
+
*/
|
2763
|
+
on(event: 'directUDPSocketAborted', listener: (params: Protocol.Network.DirectUDPSocketAbortedEvent) => void): void;
|
2764
|
+
|
2765
|
+
/**
|
2766
|
+
* Fired when direct_socket.UDPSocket is closed.
|
2767
|
+
*/
|
2768
|
+
on(event: 'directUDPSocketClosed', listener: (params: Protocol.Network.DirectUDPSocketClosedEvent) => void): void;
|
2769
|
+
|
2770
|
+
/**
|
2771
|
+
* Fired when message is sent to udp direct socket stream.
|
2772
|
+
*/
|
2773
|
+
on(event: 'directUDPSocketChunkSent', listener: (params: Protocol.Network.DirectUDPSocketChunkSentEvent) => void): void;
|
2774
|
+
|
2775
|
+
/**
|
2776
|
+
* Fired when message is received from udp direct socket stream.
|
2777
|
+
*/
|
2778
|
+
on(event: 'directUDPSocketChunkReceived', listener: (params: Protocol.Network.DirectUDPSocketChunkReceivedEvent) => void): void;
|
2759
2779
|
|
2760
2780
|
/**
|
2761
2781
|
* Fired when additional information about a requestWillBeSent event is available from the
|
@@ -3832,6 +3852,8 @@ export namespace ProtocolProxyApi {
|
|
3832
3852
|
|
3833
3853
|
on(event: 'attributionReportingTriggerRegistered', listener: (params: Protocol.Storage.AttributionReportingTriggerRegisteredEvent) => void): void;
|
3834
3854
|
|
3855
|
+
on(event: 'attributionReportingReportSent', listener: (params: Protocol.Storage.AttributionReportingReportSentEvent) => void): void;
|
3856
|
+
|
3835
3857
|
}
|
3836
3858
|
|
3837
3859
|
export interface SystemInfoApi {
|
@@ -4579,6 +4601,15 @@ export namespace ProtocolProxyApi {
|
|
4579
4601
|
*/
|
4580
4602
|
simulateCharacteristicOperationResponse(params: Protocol.BluetoothEmulation.SimulateCharacteristicOperationResponseRequest): Promise<void>;
|
4581
4603
|
|
4604
|
+
/**
|
4605
|
+
* Simulates the response from the descriptor with |descriptorId| for a
|
4606
|
+
* descriptor operation of |type|. The |code| value follows the Error
|
4607
|
+
* Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response.
|
4608
|
+
* The |data| is expected to exist when simulating a successful read operation
|
4609
|
+
* response.
|
4610
|
+
*/
|
4611
|
+
simulateDescriptorOperationResponse(params: Protocol.BluetoothEmulation.SimulateDescriptorOperationResponseRequest): Promise<void>;
|
4612
|
+
|
4582
4613
|
/**
|
4583
4614
|
* Adds a service with |serviceUuid| to the peripheral with |address|.
|
4584
4615
|
*/
|
@@ -4612,6 +4643,11 @@ export namespace ProtocolProxyApi {
|
|
4612
4643
|
*/
|
4613
4644
|
removeDescriptor(params: Protocol.BluetoothEmulation.RemoveDescriptorRequest): Promise<void>;
|
4614
4645
|
|
4646
|
+
/**
|
4647
|
+
* Simulates a GATT disconnection from the peripheral with |address|.
|
4648
|
+
*/
|
4649
|
+
simulateGATTDisconnection(params: Protocol.BluetoothEmulation.SimulateGATTDisconnectionRequest): Promise<void>;
|
4650
|
+
|
4615
4651
|
/**
|
4616
4652
|
* Event for when a GATT operation of |type| to the peripheral with |address|
|
4617
4653
|
* happened.
|
@@ -4625,6 +4661,13 @@ export namespace ProtocolProxyApi {
|
|
4625
4661
|
*/
|
4626
4662
|
on(event: 'characteristicOperationReceived', listener: (params: Protocol.BluetoothEmulation.CharacteristicOperationReceivedEvent) => void): void;
|
4627
4663
|
|
4664
|
+
/**
|
4665
|
+
* Event for when a descriptor operation of |type| to the descriptor
|
4666
|
+
* respresented by |descriptorId| happened. |data| is expected to exist when
|
4667
|
+
* |type| is write.
|
4668
|
+
*/
|
4669
|
+
on(event: 'descriptorOperationReceived', listener: (params: Protocol.BluetoothEmulation.DescriptorOperationReceivedEvent) => void): void;
|
4670
|
+
|
4628
4671
|
}
|
4629
4672
|
}
|
4630
4673
|
|
@@ -2940,16 +2940,46 @@ export namespace ProtocolTestsProxyApi {
|
|
2940
2940
|
onceDirectTCPSocketChunkReceived(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }>;
|
2941
2941
|
|
2942
2942
|
/**
|
2943
|
-
* Fired
|
2944
|
-
* when writing to tcp direct socket stream.
|
2945
|
-
* For example, if user writes illegal type like string
|
2946
|
-
* instead of ArrayBuffer or ArrayBufferView.
|
2947
|
-
* There's no reporting for reading, because
|
2948
|
-
* we cannot know errors on the other side.
|
2943
|
+
* Fired upon direct_socket.UDPSocket creation.
|
2949
2944
|
*/
|
2950
|
-
|
2951
|
-
|
2952
|
-
|
2945
|
+
onDirectUDPSocketCreated(listener: (event: { params: Protocol.Network.DirectUDPSocketCreatedEvent }) => void): void;
|
2946
|
+
offDirectUDPSocketCreated(listener: (event: { params: Protocol.Network.DirectUDPSocketCreatedEvent }) => void): void;
|
2947
|
+
onceDirectUDPSocketCreated(eventMatcher?: (event: { params: Protocol.Network.DirectUDPSocketCreatedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectUDPSocketCreatedEvent }>;
|
2948
|
+
|
2949
|
+
/**
|
2950
|
+
* Fired when direct_socket.UDPSocket connection is opened.
|
2951
|
+
*/
|
2952
|
+
onDirectUDPSocketOpened(listener: (event: { params: Protocol.Network.DirectUDPSocketOpenedEvent }) => void): void;
|
2953
|
+
offDirectUDPSocketOpened(listener: (event: { params: Protocol.Network.DirectUDPSocketOpenedEvent }) => void): void;
|
2954
|
+
onceDirectUDPSocketOpened(eventMatcher?: (event: { params: Protocol.Network.DirectUDPSocketOpenedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectUDPSocketOpenedEvent }>;
|
2955
|
+
|
2956
|
+
/**
|
2957
|
+
* Fired when direct_socket.UDPSocket is aborted.
|
2958
|
+
*/
|
2959
|
+
onDirectUDPSocketAborted(listener: (event: { params: Protocol.Network.DirectUDPSocketAbortedEvent }) => void): void;
|
2960
|
+
offDirectUDPSocketAborted(listener: (event: { params: Protocol.Network.DirectUDPSocketAbortedEvent }) => void): void;
|
2961
|
+
onceDirectUDPSocketAborted(eventMatcher?: (event: { params: Protocol.Network.DirectUDPSocketAbortedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectUDPSocketAbortedEvent }>;
|
2962
|
+
|
2963
|
+
/**
|
2964
|
+
* Fired when direct_socket.UDPSocket is closed.
|
2965
|
+
*/
|
2966
|
+
onDirectUDPSocketClosed(listener: (event: { params: Protocol.Network.DirectUDPSocketClosedEvent }) => void): void;
|
2967
|
+
offDirectUDPSocketClosed(listener: (event: { params: Protocol.Network.DirectUDPSocketClosedEvent }) => void): void;
|
2968
|
+
onceDirectUDPSocketClosed(eventMatcher?: (event: { params: Protocol.Network.DirectUDPSocketClosedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectUDPSocketClosedEvent }>;
|
2969
|
+
|
2970
|
+
/**
|
2971
|
+
* Fired when message is sent to udp direct socket stream.
|
2972
|
+
*/
|
2973
|
+
onDirectUDPSocketChunkSent(listener: (event: { params: Protocol.Network.DirectUDPSocketChunkSentEvent }) => void): void;
|
2974
|
+
offDirectUDPSocketChunkSent(listener: (event: { params: Protocol.Network.DirectUDPSocketChunkSentEvent }) => void): void;
|
2975
|
+
onceDirectUDPSocketChunkSent(eventMatcher?: (event: { params: Protocol.Network.DirectUDPSocketChunkSentEvent }) => boolean): Promise<{ params: Protocol.Network.DirectUDPSocketChunkSentEvent }>;
|
2976
|
+
|
2977
|
+
/**
|
2978
|
+
* Fired when message is received from udp direct socket stream.
|
2979
|
+
*/
|
2980
|
+
onDirectUDPSocketChunkReceived(listener: (event: { params: Protocol.Network.DirectUDPSocketChunkReceivedEvent }) => void): void;
|
2981
|
+
offDirectUDPSocketChunkReceived(listener: (event: { params: Protocol.Network.DirectUDPSocketChunkReceivedEvent }) => void): void;
|
2982
|
+
onceDirectUDPSocketChunkReceived(eventMatcher?: (event: { params: Protocol.Network.DirectUDPSocketChunkReceivedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectUDPSocketChunkReceivedEvent }>;
|
2953
2983
|
|
2954
2984
|
/**
|
2955
2985
|
* Fired when additional information about a requestWillBeSent event is available from the
|
@@ -4154,6 +4184,10 @@ export namespace ProtocolTestsProxyApi {
|
|
4154
4184
|
offAttributionReportingTriggerRegistered(listener: (event: { params: Protocol.Storage.AttributionReportingTriggerRegisteredEvent }) => void): void;
|
4155
4185
|
onceAttributionReportingTriggerRegistered(eventMatcher?: (event: { params: Protocol.Storage.AttributionReportingTriggerRegisteredEvent }) => boolean): Promise<{ params: Protocol.Storage.AttributionReportingTriggerRegisteredEvent }>;
|
4156
4186
|
|
4187
|
+
onAttributionReportingReportSent(listener: (event: { params: Protocol.Storage.AttributionReportingReportSentEvent }) => void): void;
|
4188
|
+
offAttributionReportingReportSent(listener: (event: { params: Protocol.Storage.AttributionReportingReportSentEvent }) => void): void;
|
4189
|
+
onceAttributionReportingReportSent(eventMatcher?: (event: { params: Protocol.Storage.AttributionReportingReportSentEvent }) => boolean): Promise<{ params: Protocol.Storage.AttributionReportingReportSentEvent }>;
|
4190
|
+
|
4157
4191
|
}
|
4158
4192
|
|
4159
4193
|
export interface SystemInfoApi {
|
@@ -4989,6 +5023,15 @@ export namespace ProtocolTestsProxyApi {
|
|
4989
5023
|
*/
|
4990
5024
|
simulateCharacteristicOperationResponse(params: Protocol.BluetoothEmulation.SimulateCharacteristicOperationResponseRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4991
5025
|
|
5026
|
+
/**
|
5027
|
+
* Simulates the response from the descriptor with |descriptorId| for a
|
5028
|
+
* descriptor operation of |type|. The |code| value follows the Error
|
5029
|
+
* Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response.
|
5030
|
+
* The |data| is expected to exist when simulating a successful read operation
|
5031
|
+
* response.
|
5032
|
+
*/
|
5033
|
+
simulateDescriptorOperationResponse(params: Protocol.BluetoothEmulation.SimulateDescriptorOperationResponseRequest): Promise<{id: number, result: void, sessionId: string}>;
|
5034
|
+
|
4992
5035
|
/**
|
4993
5036
|
* Adds a service with |serviceUuid| to the peripheral with |address|.
|
4994
5037
|
*/
|
@@ -5022,6 +5065,11 @@ export namespace ProtocolTestsProxyApi {
|
|
5022
5065
|
*/
|
5023
5066
|
removeDescriptor(params: Protocol.BluetoothEmulation.RemoveDescriptorRequest): Promise<{id: number, result: void, sessionId: string}>;
|
5024
5067
|
|
5068
|
+
/**
|
5069
|
+
* Simulates a GATT disconnection from the peripheral with |address|.
|
5070
|
+
*/
|
5071
|
+
simulateGATTDisconnection(params: Protocol.BluetoothEmulation.SimulateGATTDisconnectionRequest): Promise<{id: number, result: void, sessionId: string}>;
|
5072
|
+
|
5025
5073
|
/**
|
5026
5074
|
* Event for when a GATT operation of |type| to the peripheral with |address|
|
5027
5075
|
* happened.
|
@@ -5039,6 +5087,15 @@ export namespace ProtocolTestsProxyApi {
|
|
5039
5087
|
offCharacteristicOperationReceived(listener: (event: { params: Protocol.BluetoothEmulation.CharacteristicOperationReceivedEvent }) => void): void;
|
5040
5088
|
onceCharacteristicOperationReceived(eventMatcher?: (event: { params: Protocol.BluetoothEmulation.CharacteristicOperationReceivedEvent }) => boolean): Promise<{ params: Protocol.BluetoothEmulation.CharacteristicOperationReceivedEvent }>;
|
5041
5089
|
|
5090
|
+
/**
|
5091
|
+
* Event for when a descriptor operation of |type| to the descriptor
|
5092
|
+
* respresented by |descriptorId| happened. |data| is expected to exist when
|
5093
|
+
* |type| is write.
|
5094
|
+
*/
|
5095
|
+
onDescriptorOperationReceived(listener: (event: { params: Protocol.BluetoothEmulation.DescriptorOperationReceivedEvent }) => void): void;
|
5096
|
+
offDescriptorOperationReceived(listener: (event: { params: Protocol.BluetoothEmulation.DescriptorOperationReceivedEvent }) => void): void;
|
5097
|
+
onceDescriptorOperationReceived(eventMatcher?: (event: { params: Protocol.BluetoothEmulation.DescriptorOperationReceivedEvent }) => boolean): Promise<{ params: Protocol.BluetoothEmulation.DescriptorOperationReceivedEvent }>;
|
5098
|
+
|
5042
5099
|
}
|
5043
5100
|
}
|
5044
5101
|
|
package/types/protocol.d.ts
CHANGED
@@ -11715,6 +11715,41 @@ export namespace Protocol {
|
|
11715
11715
|
dnsQueryType?: DirectSocketDnsQueryType;
|
11716
11716
|
}
|
11717
11717
|
|
11718
|
+
export interface DirectUDPSocketOptions {
|
11719
|
+
remoteAddr?: string;
|
11720
|
+
/**
|
11721
|
+
* Unsigned int 16.
|
11722
|
+
*/
|
11723
|
+
remotePort?: integer;
|
11724
|
+
localAddr?: string;
|
11725
|
+
/**
|
11726
|
+
* Unsigned int 16.
|
11727
|
+
*/
|
11728
|
+
localPort?: integer;
|
11729
|
+
dnsQueryType?: DirectSocketDnsQueryType;
|
11730
|
+
/**
|
11731
|
+
* Expected to be unsigned integer.
|
11732
|
+
*/
|
11733
|
+
sendBufferSize?: number;
|
11734
|
+
/**
|
11735
|
+
* Expected to be unsigned integer.
|
11736
|
+
*/
|
11737
|
+
receiveBufferSize?: number;
|
11738
|
+
}
|
11739
|
+
|
11740
|
+
export interface DirectUDPMessage {
|
11741
|
+
data: string;
|
11742
|
+
/**
|
11743
|
+
* Null for connected mode.
|
11744
|
+
*/
|
11745
|
+
remoteAddr?: string;
|
11746
|
+
/**
|
11747
|
+
* Null for connected mode.
|
11748
|
+
* Expected to be unsigned integer.
|
11749
|
+
*/
|
11750
|
+
remotePort?: integer;
|
11751
|
+
}
|
11752
|
+
|
11718
11753
|
export type PrivateNetworkRequestPolicy = ('Allow' | 'BlockFromInsecureToMorePrivate' | 'WarnFromInsecureToMorePrivate' | 'PreflightBlock' | 'PreflightWarn' | 'PermissionBlock' | 'PermissionWarn');
|
11719
11754
|
|
11720
11755
|
export type IPAddressSpace = ('Local' | 'Private' | 'Public' | 'Unknown');
|
@@ -11986,6 +12021,10 @@ export namespace Protocol {
|
|
11986
12021
|
* Longest post body size (in bytes) that would be included in requestWillBeSent notification
|
11987
12022
|
*/
|
11988
12023
|
maxPostDataSize?: integer;
|
12024
|
+
/**
|
12025
|
+
* Whether DirectSocket chunk send/receive events should be reported.
|
12026
|
+
*/
|
12027
|
+
reportDirectSocketTraffic?: boolean;
|
11989
12028
|
}
|
11990
12029
|
|
11991
12030
|
export interface GetAllCookiesResponse {
|
@@ -12861,19 +12900,68 @@ export namespace Protocol {
|
|
12861
12900
|
}
|
12862
12901
|
|
12863
12902
|
/**
|
12864
|
-
* Fired
|
12865
|
-
|
12866
|
-
|
12867
|
-
|
12868
|
-
|
12869
|
-
|
12903
|
+
* Fired upon direct_socket.UDPSocket creation.
|
12904
|
+
*/
|
12905
|
+
export interface DirectUDPSocketCreatedEvent {
|
12906
|
+
identifier: RequestId;
|
12907
|
+
options: DirectUDPSocketOptions;
|
12908
|
+
timestamp: MonotonicTime;
|
12909
|
+
initiator?: Initiator;
|
12910
|
+
}
|
12911
|
+
|
12912
|
+
/**
|
12913
|
+
* Fired when direct_socket.UDPSocket connection is opened.
|
12870
12914
|
*/
|
12871
|
-
export interface
|
12915
|
+
export interface DirectUDPSocketOpenedEvent {
|
12916
|
+
identifier: RequestId;
|
12917
|
+
localAddr: string;
|
12918
|
+
/**
|
12919
|
+
* Expected to be unsigned integer.
|
12920
|
+
*/
|
12921
|
+
localPort: integer;
|
12922
|
+
timestamp: MonotonicTime;
|
12923
|
+
remoteAddr?: string;
|
12924
|
+
/**
|
12925
|
+
* Expected to be unsigned integer.
|
12926
|
+
*/
|
12927
|
+
remotePort?: integer;
|
12928
|
+
}
|
12929
|
+
|
12930
|
+
/**
|
12931
|
+
* Fired when direct_socket.UDPSocket is aborted.
|
12932
|
+
*/
|
12933
|
+
export interface DirectUDPSocketAbortedEvent {
|
12872
12934
|
identifier: RequestId;
|
12873
12935
|
errorMessage: string;
|
12874
12936
|
timestamp: MonotonicTime;
|
12875
12937
|
}
|
12876
12938
|
|
12939
|
+
/**
|
12940
|
+
* Fired when direct_socket.UDPSocket is closed.
|
12941
|
+
*/
|
12942
|
+
export interface DirectUDPSocketClosedEvent {
|
12943
|
+
identifier: RequestId;
|
12944
|
+
timestamp: MonotonicTime;
|
12945
|
+
}
|
12946
|
+
|
12947
|
+
/**
|
12948
|
+
* Fired when message is sent to udp direct socket stream.
|
12949
|
+
*/
|
12950
|
+
export interface DirectUDPSocketChunkSentEvent {
|
12951
|
+
identifier: RequestId;
|
12952
|
+
message: DirectUDPMessage;
|
12953
|
+
timestamp: MonotonicTime;
|
12954
|
+
}
|
12955
|
+
|
12956
|
+
/**
|
12957
|
+
* Fired when message is received from udp direct socket stream.
|
12958
|
+
*/
|
12959
|
+
export interface DirectUDPSocketChunkReceivedEvent {
|
12960
|
+
identifier: RequestId;
|
12961
|
+
message: DirectUDPMessage;
|
12962
|
+
timestamp: MonotonicTime;
|
12963
|
+
}
|
12964
|
+
|
12877
12965
|
/**
|
12878
12966
|
* Fired when additional information about a requestWillBeSent event is available from the
|
12879
12967
|
* network stack. Not every requestWillBeSent event will have an additional
|
@@ -16826,6 +16914,8 @@ export namespace Protocol {
|
|
16826
16914
|
|
16827
16915
|
export type AttributionReportingAggregatableResult = ('success' | 'internalError' | 'noCapacityForAttributionDestination' | 'noMatchingSources' | 'excessiveAttributions' | 'excessiveReportingOrigins' | 'noHistograms' | 'insufficientBudget' | 'insufficientNamedBudget' | 'noMatchingSourceFilterData' | 'notRegistered' | 'prohibitedByBrowserPolicy' | 'deduplicated' | 'reportWindowPassed' | 'excessiveReports');
|
16828
16916
|
|
16917
|
+
export type AttributionReportingReportResult = ('sent' | 'prohibited' | 'failedToAssemble' | 'expired');
|
16918
|
+
|
16829
16919
|
/**
|
16830
16920
|
* A single Related Website Set object.
|
16831
16921
|
*/
|
@@ -17345,6 +17435,18 @@ export namespace Protocol {
|
|
17345
17435
|
eventLevel: AttributionReportingEventLevelResult;
|
17346
17436
|
aggregatable: AttributionReportingAggregatableResult;
|
17347
17437
|
}
|
17438
|
+
|
17439
|
+
export interface AttributionReportingReportSentEvent {
|
17440
|
+
url: string;
|
17441
|
+
body: any;
|
17442
|
+
result: AttributionReportingReportResult;
|
17443
|
+
/**
|
17444
|
+
* If result is `sent`, populated with net/HTTP status.
|
17445
|
+
*/
|
17446
|
+
netError?: integer;
|
17447
|
+
netErrorName?: string;
|
17448
|
+
httpStatusCode?: integer;
|
17449
|
+
}
|
17348
17450
|
}
|
17349
17451
|
|
17350
17452
|
/**
|
@@ -19664,6 +19766,11 @@ export namespace Protocol {
|
|
19664
19766
|
*/
|
19665
19767
|
export type CharacteristicOperationType = ('read' | 'write' | 'subscribe-to-notifications' | 'unsubscribe-from-notifications');
|
19666
19768
|
|
19769
|
+
/**
|
19770
|
+
* Indicates the various types of descriptor operation.
|
19771
|
+
*/
|
19772
|
+
export type DescriptorOperationType = ('read' | 'write');
|
19773
|
+
|
19667
19774
|
/**
|
19668
19775
|
* Stores the manufacturer data
|
19669
19776
|
*/
|
@@ -19767,6 +19874,13 @@ export namespace Protocol {
|
|
19767
19874
|
data?: string;
|
19768
19875
|
}
|
19769
19876
|
|
19877
|
+
export interface SimulateDescriptorOperationResponseRequest {
|
19878
|
+
descriptorId: string;
|
19879
|
+
type: DescriptorOperationType;
|
19880
|
+
code: integer;
|
19881
|
+
data?: string;
|
19882
|
+
}
|
19883
|
+
|
19770
19884
|
export interface AddServiceRequest {
|
19771
19885
|
address: string;
|
19772
19886
|
serviceUuid: string;
|
@@ -19816,6 +19930,10 @@ export namespace Protocol {
|
|
19816
19930
|
descriptorId: string;
|
19817
19931
|
}
|
19818
19932
|
|
19933
|
+
export interface SimulateGATTDisconnectionRequest {
|
19934
|
+
address: string;
|
19935
|
+
}
|
19936
|
+
|
19819
19937
|
/**
|
19820
19938
|
* Event for when a GATT operation of |type| to the peripheral with |address|
|
19821
19939
|
* happened.
|
@@ -19836,6 +19954,17 @@ export namespace Protocol {
|
|
19836
19954
|
data?: string;
|
19837
19955
|
writeType?: CharacteristicWriteType;
|
19838
19956
|
}
|
19957
|
+
|
19958
|
+
/**
|
19959
|
+
* Event for when a descriptor operation of |type| to the descriptor
|
19960
|
+
* respresented by |descriptorId| happened. |data| is expected to exist when
|
19961
|
+
* |type| is write.
|
19962
|
+
*/
|
19963
|
+
export interface DescriptorOperationReceivedEvent {
|
19964
|
+
descriptorId: string;
|
19965
|
+
type: CharacteristicOperationType;
|
19966
|
+
data?: string;
|
19967
|
+
}
|
19839
19968
|
}
|
19840
19969
|
}
|
19841
19970
|
|