devtools-protocol 0.0.1454823 → 0.0.1456738

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.
@@ -13444,6 +13444,7 @@
13444
13444
  "mixed-content",
13445
13445
  "origin",
13446
13446
  "inspector",
13447
+ "integrity",
13447
13448
  "subresource-filter",
13448
13449
  "content-type",
13449
13450
  "coep-frame-resource-needs-coep-header",
@@ -14616,6 +14617,75 @@
14616
14617
  }
14617
14618
  ]
14618
14619
  },
14620
+ {
14621
+ "id": "DirectUDPSocketOptions",
14622
+ "experimental": true,
14623
+ "type": "object",
14624
+ "properties": [
14625
+ {
14626
+ "name": "remoteAddr",
14627
+ "optional": true,
14628
+ "type": "string"
14629
+ },
14630
+ {
14631
+ "name": "remotePort",
14632
+ "description": "Unsigned int 16.",
14633
+ "optional": true,
14634
+ "type": "integer"
14635
+ },
14636
+ {
14637
+ "name": "localAddr",
14638
+ "optional": true,
14639
+ "type": "string"
14640
+ },
14641
+ {
14642
+ "name": "localPort",
14643
+ "description": "Unsigned int 16.",
14644
+ "optional": true,
14645
+ "type": "integer"
14646
+ },
14647
+ {
14648
+ "name": "dnsQueryType",
14649
+ "optional": true,
14650
+ "$ref": "DirectSocketDnsQueryType"
14651
+ },
14652
+ {
14653
+ "name": "sendBufferSize",
14654
+ "description": "Expected to be unsigned integer.",
14655
+ "optional": true,
14656
+ "type": "number"
14657
+ },
14658
+ {
14659
+ "name": "receiveBufferSize",
14660
+ "description": "Expected to be unsigned integer.",
14661
+ "optional": true,
14662
+ "type": "number"
14663
+ }
14664
+ ]
14665
+ },
14666
+ {
14667
+ "id": "DirectUDPMessage",
14668
+ "experimental": true,
14669
+ "type": "object",
14670
+ "properties": [
14671
+ {
14672
+ "name": "data",
14673
+ "type": "string"
14674
+ },
14675
+ {
14676
+ "name": "remoteAddr",
14677
+ "description": "Null for connected mode.",
14678
+ "optional": true,
14679
+ "type": "string"
14680
+ },
14681
+ {
14682
+ "name": "remotePort",
14683
+ "description": "Null for connected mode.\nExpected to be unsigned integer.",
14684
+ "optional": true,
14685
+ "type": "integer"
14686
+ }
14687
+ ]
14688
+ },
14619
14689
  {
14620
14690
  "id": "PrivateNetworkRequestPolicy",
14621
14691
  "experimental": true,
@@ -15175,6 +15245,13 @@
15175
15245
  "description": "Longest post body size (in bytes) that would be included in requestWillBeSent notification",
15176
15246
  "optional": true,
15177
15247
  "type": "integer"
15248
+ },
15249
+ {
15250
+ "name": "reportDirectSocketTraffic",
15251
+ "description": "Whether DirectSocket chunk send/receive events should be reported.",
15252
+ "experimental": true,
15253
+ "optional": true,
15254
+ "type": "boolean"
15178
15255
  }
15179
15256
  ]
15180
15257
  },
@@ -16412,8 +16489,67 @@
16412
16489
  ]
16413
16490
  },
16414
16491
  {
16415
- "name": "directTCPSocketChunkError",
16416
- "description": "Fired when there is an error\nwhen writing to tcp direct socket stream.\nFor example, if user writes illegal type like string\ninstead of ArrayBuffer or ArrayBufferView.\nThere's no reporting for reading, because\nwe cannot know errors on the other side.",
16492
+ "name": "directUDPSocketCreated",
16493
+ "description": "Fired upon direct_socket.UDPSocket creation.",
16494
+ "experimental": true,
16495
+ "parameters": [
16496
+ {
16497
+ "name": "identifier",
16498
+ "$ref": "RequestId"
16499
+ },
16500
+ {
16501
+ "name": "options",
16502
+ "$ref": "DirectUDPSocketOptions"
16503
+ },
16504
+ {
16505
+ "name": "timestamp",
16506
+ "$ref": "MonotonicTime"
16507
+ },
16508
+ {
16509
+ "name": "initiator",
16510
+ "optional": true,
16511
+ "$ref": "Initiator"
16512
+ }
16513
+ ]
16514
+ },
16515
+ {
16516
+ "name": "directUDPSocketOpened",
16517
+ "description": "Fired when direct_socket.UDPSocket connection is opened.",
16518
+ "experimental": true,
16519
+ "parameters": [
16520
+ {
16521
+ "name": "identifier",
16522
+ "$ref": "RequestId"
16523
+ },
16524
+ {
16525
+ "name": "localAddr",
16526
+ "type": "string"
16527
+ },
16528
+ {
16529
+ "name": "localPort",
16530
+ "description": "Expected to be unsigned integer.",
16531
+ "type": "integer"
16532
+ },
16533
+ {
16534
+ "name": "timestamp",
16535
+ "$ref": "MonotonicTime"
16536
+ },
16537
+ {
16538
+ "name": "remoteAddr",
16539
+ "optional": true,
16540
+ "type": "string"
16541
+ },
16542
+ {
16543
+ "name": "remotePort",
16544
+ "description": "Expected to be unsigned integer.",
16545
+ "optional": true,
16546
+ "type": "integer"
16547
+ }
16548
+ ]
16549
+ },
16550
+ {
16551
+ "name": "directUDPSocketAborted",
16552
+ "description": "Fired when direct_socket.UDPSocket is aborted.",
16417
16553
  "experimental": true,
16418
16554
  "parameters": [
16419
16555
  {
@@ -16430,6 +16566,59 @@
16430
16566
  }
16431
16567
  ]
16432
16568
  },
16569
+ {
16570
+ "name": "directUDPSocketClosed",
16571
+ "description": "Fired when direct_socket.UDPSocket is closed.",
16572
+ "experimental": true,
16573
+ "parameters": [
16574
+ {
16575
+ "name": "identifier",
16576
+ "$ref": "RequestId"
16577
+ },
16578
+ {
16579
+ "name": "timestamp",
16580
+ "$ref": "MonotonicTime"
16581
+ }
16582
+ ]
16583
+ },
16584
+ {
16585
+ "name": "directUDPSocketChunkSent",
16586
+ "description": "Fired when message is sent to udp direct socket stream.",
16587
+ "experimental": true,
16588
+ "parameters": [
16589
+ {
16590
+ "name": "identifier",
16591
+ "$ref": "RequestId"
16592
+ },
16593
+ {
16594
+ "name": "message",
16595
+ "$ref": "DirectUDPMessage"
16596
+ },
16597
+ {
16598
+ "name": "timestamp",
16599
+ "$ref": "MonotonicTime"
16600
+ }
16601
+ ]
16602
+ },
16603
+ {
16604
+ "name": "directUDPSocketChunkReceived",
16605
+ "description": "Fired when message is received from udp direct socket stream.",
16606
+ "experimental": true,
16607
+ "parameters": [
16608
+ {
16609
+ "name": "identifier",
16610
+ "$ref": "RequestId"
16611
+ },
16612
+ {
16613
+ "name": "message",
16614
+ "$ref": "DirectUDPMessage"
16615
+ },
16616
+ {
16617
+ "name": "timestamp",
16618
+ "$ref": "MonotonicTime"
16619
+ }
16620
+ ]
16621
+ },
16433
16622
  {
16434
16623
  "name": "requestWillBeSentExtraInfo",
16435
16624
  "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.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1454823",
3
+ "version": "0.0.1456738",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -6223,6 +6223,7 @@ domain Network
6223
6223
  mixed-content
6224
6224
  origin
6225
6225
  inspector
6226
+ integrity
6226
6227
  subresource-filter
6227
6228
  content-type
6228
6229
  coep-frame-resource-needs-coep-header
@@ -7018,6 +7019,8 @@ domain Network
7018
7019
  experimental optional integer maxResourceBufferSize
7019
7020
  # Longest post body size (in bytes) that would be included in requestWillBeSent notification
7020
7021
  optional integer maxPostDataSize
7022
+ # Whether DirectSocket chunk send/receive events should be reported.
7023
+ experimental optional boolean reportDirectSocketTraffic
7021
7024
 
7022
7025
  # Returns all browser cookies. Depending on the backend support, will return detailed cookie
7023
7026
  # information in the `cookies` field.
@@ -7549,18 +7552,80 @@ domain Network
7549
7552
  binary data
7550
7553
  MonotonicTime timestamp
7551
7554
 
7552
- # Fired when there is an error
7553
- # when writing to tcp direct socket stream.
7554
- # For example, if user writes illegal type like string
7555
- # instead of ArrayBuffer or ArrayBufferView.
7556
- # There's no reporting for reading, because
7557
- # we cannot know errors on the other side.
7558
- experimental event directTCPSocketChunkError
7555
+ experimental type DirectUDPSocketOptions extends object
7556
+ properties
7557
+ optional string remoteAddr
7558
+ # Unsigned int 16.
7559
+ optional integer remotePort
7560
+
7561
+ optional string localAddr
7562
+ # Unsigned int 16.
7563
+ optional integer localPort
7564
+
7565
+ optional DirectSocketDnsQueryType dnsQueryType
7566
+
7567
+ # Expected to be unsigned integer.
7568
+ optional number sendBufferSize
7569
+ # Expected to be unsigned integer.
7570
+ optional number receiveBufferSize
7571
+
7572
+
7573
+ # Fired upon direct_socket.UDPSocket creation.
7574
+ experimental event directUDPSocketCreated
7575
+ parameters
7576
+ RequestId identifier
7577
+ DirectUDPSocketOptions options
7578
+ MonotonicTime timestamp
7579
+ optional Initiator initiator
7580
+
7581
+ # Fired when direct_socket.UDPSocket connection is opened.
7582
+ experimental event directUDPSocketOpened
7583
+ parameters
7584
+ RequestId identifier
7585
+ string localAddr
7586
+ # Expected to be unsigned integer.
7587
+ integer localPort
7588
+ MonotonicTime timestamp
7589
+ optional string remoteAddr
7590
+ # Expected to be unsigned integer.
7591
+ optional integer remotePort
7592
+
7593
+ # Fired when direct_socket.UDPSocket is aborted.
7594
+ experimental event directUDPSocketAborted
7559
7595
  parameters
7560
7596
  RequestId identifier
7561
7597
  string errorMessage
7562
7598
  MonotonicTime timestamp
7563
7599
 
7600
+ # Fired when direct_socket.UDPSocket is closed.
7601
+ experimental event directUDPSocketClosed
7602
+ parameters
7603
+ RequestId identifier
7604
+ MonotonicTime timestamp
7605
+
7606
+ experimental type DirectUDPMessage extends object
7607
+ properties
7608
+ binary data
7609
+ # Null for connected mode.
7610
+ optional string remoteAddr
7611
+ # Null for connected mode.
7612
+ # Expected to be unsigned integer.
7613
+ optional integer remotePort
7614
+
7615
+ # Fired when message is sent to udp direct socket stream.
7616
+ experimental event directUDPSocketChunkSent
7617
+ parameters
7618
+ RequestId identifier
7619
+ DirectUDPMessage message
7620
+ MonotonicTime timestamp
7621
+
7622
+ # Fired when message is received from udp direct socket stream.
7623
+ experimental event directUDPSocketChunkReceived
7624
+ parameters
7625
+ RequestId identifier
7626
+ DirectUDPMessage message
7627
+ MonotonicTime timestamp
7628
+
7564
7629
  experimental type PrivateNetworkRequestPolicy extends string
7565
7630
  enum
7566
7631
  Allow
@@ -376,14 +376,29 @@ export namespace ProtocolMapping {
376
376
  */
377
377
  'Network.directTCPSocketChunkReceived': [Protocol.Network.DirectTCPSocketChunkReceivedEvent];
378
378
  /**
379
- * Fired when there is an error
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.
385
- */
386
- 'Network.directTCPSocketChunkError': [Protocol.Network.DirectTCPSocketChunkErrorEvent];
379
+ * Fired upon direct_socket.UDPSocket creation.
380
+ */
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
@@ -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 when there is an error
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.
2757
- */
2758
- on(event: 'directTCPSocketChunkError', listener: (params: Protocol.Network.DirectTCPSocketChunkErrorEvent) => void): void;
2751
+ * Fired upon direct_socket.UDPSocket creation.
2752
+ */
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
@@ -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 when there is an error
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.
2949
- */
2950
- onDirectTCPSocketChunkError(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkErrorEvent }) => void): void;
2951
- offDirectTCPSocketChunkError(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkErrorEvent }) => void): void;
2952
- onceDirectTCPSocketChunkError(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketChunkErrorEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketChunkErrorEvent }>;
2943
+ * Fired upon direct_socket.UDPSocket creation.
2944
+ */
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
@@ -10954,7 +10954,7 @@ export namespace Protocol {
10954
10954
  /**
10955
10955
  * The reason why request was blocked.
10956
10956
  */
10957
- export type BlockedReason = ('other' | 'csp' | 'mixed-content' | 'origin' | 'inspector' | 'subresource-filter' | 'content-type' | 'coep-frame-resource-needs-coep-header' | 'coop-sandboxed-iframe-cannot-navigate-to-coop-page' | 'corp-not-same-origin' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-dip' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip' | 'corp-not-same-site' | 'sri-message-signature-mismatch');
10957
+ export type BlockedReason = ('other' | 'csp' | 'mixed-content' | 'origin' | 'inspector' | 'integrity' | 'subresource-filter' | 'content-type' | 'coep-frame-resource-needs-coep-header' | 'coop-sandboxed-iframe-cannot-navigate-to-coop-page' | 'corp-not-same-origin' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-dip' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip' | 'corp-not-same-site' | 'sri-message-signature-mismatch');
10958
10958
 
10959
10959
  /**
10960
10960
  * The reason why request was blocked.
@@ -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 when there is an error
12865
- * when writing to tcp direct socket stream.
12866
- * For example, if user writes illegal type like string
12867
- * instead of ArrayBuffer or ArrayBufferView.
12868
- * There's no reporting for reading, because
12869
- * we cannot know errors on the other side.
12903
+ * Fired upon direct_socket.UDPSocket creation.
12870
12904
  */
12871
- export interface DirectTCPSocketChunkErrorEvent {
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.
12914
+ */
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