devtools-protocol 0.0.1445099 → 0.0.1447524

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.
@@ -10112,7 +10112,7 @@
10112
10112
  },
10113
10113
  {
10114
10114
  "name": "setGeolocationOverride",
10115
- "description": "Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position\nunavailable.",
10115
+ "description": "Overrides the Geolocation Position or Error. Omitting latitude, longitude or\naccuracy emulates position unavailable.",
10116
10116
  "parameters": [
10117
10117
  {
10118
10118
  "name": "latitude",
@@ -10131,6 +10131,30 @@
10131
10131
  "description": "Mock accuracy",
10132
10132
  "optional": true,
10133
10133
  "type": "number"
10134
+ },
10135
+ {
10136
+ "name": "altitude",
10137
+ "description": "Mock altitude",
10138
+ "optional": true,
10139
+ "type": "number"
10140
+ },
10141
+ {
10142
+ "name": "altitudeAccuracy",
10143
+ "description": "Mock altitudeAccuracy",
10144
+ "optional": true,
10145
+ "type": "number"
10146
+ },
10147
+ {
10148
+ "name": "heading",
10149
+ "description": "Mock heading",
10150
+ "optional": true,
10151
+ "type": "number"
10152
+ },
10153
+ {
10154
+ "name": "speed",
10155
+ "description": "Mock speed",
10156
+ "optional": true,
10157
+ "type": "number"
10134
10158
  }
10135
10159
  ]
10136
10160
  },
@@ -16306,6 +16330,63 @@
16306
16330
  }
16307
16331
  ]
16308
16332
  },
16333
+ {
16334
+ "name": "directTCPSocketChunkSent",
16335
+ "description": "Fired when data is sent to tcp direct socket stream.",
16336
+ "experimental": true,
16337
+ "parameters": [
16338
+ {
16339
+ "name": "identifier",
16340
+ "$ref": "RequestId"
16341
+ },
16342
+ {
16343
+ "name": "data",
16344
+ "type": "string"
16345
+ },
16346
+ {
16347
+ "name": "timestamp",
16348
+ "$ref": "MonotonicTime"
16349
+ }
16350
+ ]
16351
+ },
16352
+ {
16353
+ "name": "directTCPSocketChunkReceived",
16354
+ "description": "Fired when data is received from tcp direct socket stream.",
16355
+ "experimental": true,
16356
+ "parameters": [
16357
+ {
16358
+ "name": "identifier",
16359
+ "$ref": "RequestId"
16360
+ },
16361
+ {
16362
+ "name": "data",
16363
+ "type": "string"
16364
+ },
16365
+ {
16366
+ "name": "timestamp",
16367
+ "$ref": "MonotonicTime"
16368
+ }
16369
+ ]
16370
+ },
16371
+ {
16372
+ "name": "directTCPSocketChunkError",
16373
+ "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.",
16374
+ "experimental": true,
16375
+ "parameters": [
16376
+ {
16377
+ "name": "identifier",
16378
+ "$ref": "RequestId"
16379
+ },
16380
+ {
16381
+ "name": "errorMessage",
16382
+ "type": "string"
16383
+ },
16384
+ {
16385
+ "name": "timestamp",
16386
+ "$ref": "MonotonicTime"
16387
+ }
16388
+ ]
16389
+ },
16309
16390
  {
16310
16391
  "name": "requestWillBeSentExtraInfo",
16311
16392
  "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.1445099",
3
+ "version": "0.0.1447524",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -4676,8 +4676,8 @@ domain Emulation
4676
4676
  protanopia
4677
4677
  tritanopia
4678
4678
 
4679
- # Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
4680
- # unavailable.
4679
+ # Overrides the Geolocation Position or Error. Omitting latitude, longitude or
4680
+ # accuracy emulates position unavailable.
4681
4681
  command setGeolocationOverride
4682
4682
  parameters
4683
4683
  # Mock latitude
@@ -4686,6 +4686,14 @@ domain Emulation
4686
4686
  optional number longitude
4687
4687
  # Mock accuracy
4688
4688
  optional number accuracy
4689
+ # Mock altitude
4690
+ optional number altitude
4691
+ # Mock altitudeAccuracy
4692
+ optional number altitudeAccuracy
4693
+ # Mock heading
4694
+ optional number heading
4695
+ # Mock speed
4696
+ optional number speed
4689
4697
 
4690
4698
  experimental command getOverriddenSensorInformation
4691
4699
  parameters
@@ -7504,6 +7512,32 @@ domain Network
7504
7512
  RequestId identifier
7505
7513
  MonotonicTime timestamp
7506
7514
 
7515
+ # Fired when data is sent to tcp direct socket stream.
7516
+ experimental event directTCPSocketChunkSent
7517
+ parameters
7518
+ RequestId identifier
7519
+ binary data
7520
+ MonotonicTime timestamp
7521
+
7522
+ # Fired when data is received from tcp direct socket stream.
7523
+ experimental event directTCPSocketChunkReceived
7524
+ parameters
7525
+ RequestId identifier
7526
+ binary data
7527
+ MonotonicTime timestamp
7528
+
7529
+ # Fired when there is an error
7530
+ # when writing to tcp direct socket stream.
7531
+ # For example, if user writes illegal type like string
7532
+ # instead of ArrayBuffer or ArrayBufferView.
7533
+ # There's no reporting for reading, because
7534
+ # we cannot know errors on the other side.
7535
+ experimental event directTCPSocketChunkError
7536
+ parameters
7537
+ RequestId identifier
7538
+ string errorMessage
7539
+ MonotonicTime timestamp
7540
+
7507
7541
  experimental type PrivateNetworkRequestPolicy extends string
7508
7542
  enum
7509
7543
  Allow
@@ -367,6 +367,23 @@ export namespace ProtocolMapping {
367
367
  * Fired when direct_socket.TCPSocket is closed.
368
368
  */
369
369
  'Network.directTCPSocketClosed': [Protocol.Network.DirectTCPSocketClosedEvent];
370
+ /**
371
+ * Fired when data is sent to tcp direct socket stream.
372
+ */
373
+ 'Network.directTCPSocketChunkSent': [Protocol.Network.DirectTCPSocketChunkSentEvent];
374
+ /**
375
+ * Fired when data is received from tcp direct socket stream.
376
+ */
377
+ 'Network.directTCPSocketChunkReceived': [Protocol.Network.DirectTCPSocketChunkReceivedEvent];
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];
370
387
  /**
371
388
  * Fired when additional information about a requestWillBeSent event is available from the
372
389
  * network stack. Not every requestWillBeSent event will have an additional
@@ -2868,8 +2885,8 @@ export namespace ProtocolMapping {
2868
2885
  returnType: void;
2869
2886
  };
2870
2887
  /**
2871
- * Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
2872
- * unavailable.
2888
+ * Overrides the Geolocation Position or Error. Omitting latitude, longitude or
2889
+ * accuracy emulates position unavailable.
2873
2890
  */
2874
2891
  'Emulation.setGeolocationOverride': {
2875
2892
  paramsType: [Protocol.Emulation.SetGeolocationOverrideRequest?];
@@ -1962,8 +1962,8 @@ export namespace ProtocolProxyApi {
1962
1962
  setEmulatedVisionDeficiency(params: Protocol.Emulation.SetEmulatedVisionDeficiencyRequest): Promise<void>;
1963
1963
 
1964
1964
  /**
1965
- * Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
1966
- * unavailable.
1965
+ * Overrides the Geolocation Position or Error. Omitting latitude, longitude or
1966
+ * accuracy emulates position unavailable.
1967
1967
  */
1968
1968
  setGeolocationOverride(params: Protocol.Emulation.SetGeolocationOverrideRequest): Promise<void>;
1969
1969
 
@@ -2731,6 +2731,26 @@ export namespace ProtocolProxyApi {
2731
2731
  */
2732
2732
  on(event: 'directTCPSocketClosed', listener: (params: Protocol.Network.DirectTCPSocketClosedEvent) => void): void;
2733
2733
 
2734
+ /**
2735
+ * Fired when data is sent to tcp direct socket stream.
2736
+ */
2737
+ on(event: 'directTCPSocketChunkSent', listener: (params: Protocol.Network.DirectTCPSocketChunkSentEvent) => void): void;
2738
+
2739
+ /**
2740
+ * Fired when data is received from tcp direct socket stream.
2741
+ */
2742
+ on(event: 'directTCPSocketChunkReceived', listener: (params: Protocol.Network.DirectTCPSocketChunkReceivedEvent) => void): void;
2743
+
2744
+ /**
2745
+ * Fired when there is an error
2746
+ * when writing to tcp direct socket stream.
2747
+ * For example, if user writes illegal type like string
2748
+ * instead of ArrayBuffer or ArrayBufferView.
2749
+ * There's no reporting for reading, because
2750
+ * we cannot know errors on the other side.
2751
+ */
2752
+ on(event: 'directTCPSocketChunkError', listener: (params: Protocol.Network.DirectTCPSocketChunkErrorEvent) => void): void;
2753
+
2734
2754
  /**
2735
2755
  * Fired when additional information about a requestWillBeSent event is available from the
2736
2756
  * network stack. Not every requestWillBeSent event will have an additional
@@ -2086,8 +2086,8 @@ export namespace ProtocolTestsProxyApi {
2086
2086
  setEmulatedVisionDeficiency(params: Protocol.Emulation.SetEmulatedVisionDeficiencyRequest): Promise<{id: number, result: void, sessionId: string}>;
2087
2087
 
2088
2088
  /**
2089
- * Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
2090
- * unavailable.
2089
+ * Overrides the Geolocation Position or Error. Omitting latitude, longitude or
2090
+ * accuracy emulates position unavailable.
2091
2091
  */
2092
2092
  setGeolocationOverride(params: Protocol.Emulation.SetGeolocationOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2093
2093
 
@@ -2919,6 +2919,32 @@ export namespace ProtocolTestsProxyApi {
2919
2919
  offDirectTCPSocketClosed(listener: (event: { params: Protocol.Network.DirectTCPSocketClosedEvent }) => void): void;
2920
2920
  onceDirectTCPSocketClosed(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketClosedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketClosedEvent }>;
2921
2921
 
2922
+ /**
2923
+ * Fired when data is sent to tcp direct socket stream.
2924
+ */
2925
+ onDirectTCPSocketChunkSent(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkSentEvent }) => void): void;
2926
+ offDirectTCPSocketChunkSent(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkSentEvent }) => void): void;
2927
+ onceDirectTCPSocketChunkSent(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketChunkSentEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketChunkSentEvent }>;
2928
+
2929
+ /**
2930
+ * Fired when data is received from tcp direct socket stream.
2931
+ */
2932
+ onDirectTCPSocketChunkReceived(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }) => void): void;
2933
+ offDirectTCPSocketChunkReceived(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }) => void): void;
2934
+ onceDirectTCPSocketChunkReceived(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }>;
2935
+
2936
+ /**
2937
+ * Fired when there is an error
2938
+ * when writing to tcp direct socket stream.
2939
+ * For example, if user writes illegal type like string
2940
+ * instead of ArrayBuffer or ArrayBufferView.
2941
+ * There's no reporting for reading, because
2942
+ * we cannot know errors on the other side.
2943
+ */
2944
+ onDirectTCPSocketChunkError(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkErrorEvent }) => void): void;
2945
+ offDirectTCPSocketChunkError(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkErrorEvent }) => void): void;
2946
+ onceDirectTCPSocketChunkError(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketChunkErrorEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketChunkErrorEvent }>;
2947
+
2922
2948
  /**
2923
2949
  * Fired when additional information about a requestWillBeSent event is available from the
2924
2950
  * network stack. Not every requestWillBeSent event will have an additional
@@ -8779,6 +8779,22 @@ export namespace Protocol {
8779
8779
  * Mock accuracy
8780
8780
  */
8781
8781
  accuracy?: number;
8782
+ /**
8783
+ * Mock altitude
8784
+ */
8785
+ altitude?: number;
8786
+ /**
8787
+ * Mock altitudeAccuracy
8788
+ */
8789
+ altitudeAccuracy?: number;
8790
+ /**
8791
+ * Mock heading
8792
+ */
8793
+ heading?: number;
8794
+ /**
8795
+ * Mock speed
8796
+ */
8797
+ speed?: number;
8782
8798
  }
8783
8799
 
8784
8800
  export interface GetOverriddenSensorInformationRequest {
@@ -12803,6 +12819,38 @@ export namespace Protocol {
12803
12819
  timestamp: MonotonicTime;
12804
12820
  }
12805
12821
 
12822
+ /**
12823
+ * Fired when data is sent to tcp direct socket stream.
12824
+ */
12825
+ export interface DirectTCPSocketChunkSentEvent {
12826
+ identifier: RequestId;
12827
+ data: string;
12828
+ timestamp: MonotonicTime;
12829
+ }
12830
+
12831
+ /**
12832
+ * Fired when data is received from tcp direct socket stream.
12833
+ */
12834
+ export interface DirectTCPSocketChunkReceivedEvent {
12835
+ identifier: RequestId;
12836
+ data: string;
12837
+ timestamp: MonotonicTime;
12838
+ }
12839
+
12840
+ /**
12841
+ * Fired when there is an error
12842
+ * when writing to tcp direct socket stream.
12843
+ * For example, if user writes illegal type like string
12844
+ * instead of ArrayBuffer or ArrayBufferView.
12845
+ * There's no reporting for reading, because
12846
+ * we cannot know errors on the other side.
12847
+ */
12848
+ export interface DirectTCPSocketChunkErrorEvent {
12849
+ identifier: RequestId;
12850
+ errorMessage: string;
12851
+ timestamp: MonotonicTime;
12852
+ }
12853
+
12806
12854
  /**
12807
12855
  * Fired when additional information about a requestWillBeSent event is available from the
12808
12856
  * network stack. Not every requestWillBeSent event will have an additional