devtools-protocol 0.0.1103117 → 0.0.1103684

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.
@@ -16436,6 +16436,18 @@
16436
16436
  "ActivatedDuringMainFrameNavigation",
16437
16437
  "PreloadingUnsupportedByWebContents"
16438
16438
  ]
16439
+ },
16440
+ {
16441
+ "id": "PrefetchStatus",
16442
+ "description": "List of Prefetch status, which refers to PreloadingTriggeringOutcome.",
16443
+ "type": "string",
16444
+ "enum": [
16445
+ "Running",
16446
+ "Ready",
16447
+ "Success",
16448
+ "Failure",
16449
+ "NotSupported"
16450
+ ]
16439
16451
  }
16440
16452
  ],
16441
16453
  "commands": [
@@ -18036,6 +18048,26 @@
18036
18048
  }
18037
18049
  ]
18038
18050
  },
18051
+ {
18052
+ "name": "prefetchStatusUpdated",
18053
+ "description": "TODO(crbug/1384419): Create a dedicated domain for preloading.\nFired when a prefetch attempt is updated.",
18054
+ "experimental": true,
18055
+ "parameters": [
18056
+ {
18057
+ "name": "initiatingFrameId",
18058
+ "description": "The frame id of the frame initiating prefetch.",
18059
+ "$ref": "FrameId"
18060
+ },
18061
+ {
18062
+ "name": "prefetchUrl",
18063
+ "type": "string"
18064
+ },
18065
+ {
18066
+ "name": "status",
18067
+ "$ref": "PrefetchStatus"
18068
+ }
18069
+ ]
18070
+ },
18039
18071
  {
18040
18072
  "name": "loadEventFired",
18041
18073
  "parameters": [
@@ -22763,6 +22795,91 @@
22763
22795
  "description": "Disables the Media domain."
22764
22796
  }
22765
22797
  ]
22798
+ },
22799
+ {
22800
+ "domain": "DeviceAccess",
22801
+ "experimental": true,
22802
+ "types": [
22803
+ {
22804
+ "id": "RequestId",
22805
+ "description": "Device request id.",
22806
+ "type": "string"
22807
+ },
22808
+ {
22809
+ "id": "DeviceId",
22810
+ "description": "A device id.",
22811
+ "type": "string"
22812
+ },
22813
+ {
22814
+ "id": "PromptDevice",
22815
+ "description": "Device information displayed in a user prompt to select a device.",
22816
+ "type": "object",
22817
+ "properties": [
22818
+ {
22819
+ "name": "id",
22820
+ "$ref": "DeviceId"
22821
+ },
22822
+ {
22823
+ "name": "name",
22824
+ "description": "Display name as it appears in a device request user prompt.",
22825
+ "type": "string"
22826
+ }
22827
+ ]
22828
+ }
22829
+ ],
22830
+ "commands": [
22831
+ {
22832
+ "name": "enable",
22833
+ "description": "Enable events in this domain."
22834
+ },
22835
+ {
22836
+ "name": "disable",
22837
+ "description": "Disable events in this domain."
22838
+ },
22839
+ {
22840
+ "name": "selectPrompt",
22841
+ "description": "Select a device in response to a DeviceAccess.deviceRequestPrompted event.",
22842
+ "parameters": [
22843
+ {
22844
+ "name": "id",
22845
+ "$ref": "RequestId"
22846
+ },
22847
+ {
22848
+ "name": "deviceId",
22849
+ "$ref": "DeviceId"
22850
+ }
22851
+ ]
22852
+ },
22853
+ {
22854
+ "name": "cancelPrompt",
22855
+ "description": "Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.",
22856
+ "parameters": [
22857
+ {
22858
+ "name": "id",
22859
+ "$ref": "RequestId"
22860
+ }
22861
+ ]
22862
+ }
22863
+ ],
22864
+ "events": [
22865
+ {
22866
+ "name": "deviceRequestPrompted",
22867
+ "description": "A device request opened a user prompt to select a device. Respond with the\nselectPrompt or cancelPrompt command.",
22868
+ "parameters": [
22869
+ {
22870
+ "name": "id",
22871
+ "$ref": "RequestId"
22872
+ },
22873
+ {
22874
+ "name": "devices",
22875
+ "type": "array",
22876
+ "items": {
22877
+ "$ref": "PromptDevice"
22878
+ }
22879
+ }
22880
+ ]
22881
+ }
22882
+ ]
22766
22883
  }
22767
22884
  ]
22768
22885
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1103117",
3
+ "version": "0.0.1103684",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -8555,6 +8555,25 @@ domain Page
8555
8555
  # that is incompatible with prerender and has caused the cancellation of the attempt
8556
8556
  optional string disallowedApiMethod
8557
8557
 
8558
+ # List of Prefetch status, which refers to PreloadingTriggeringOutcome.
8559
+ type PrefetchStatus extends string
8560
+ enum
8561
+ Running
8562
+ Ready
8563
+ Success
8564
+ Failure
8565
+ # PreloadingTriggeringOutcome which not used by prefetch.
8566
+ NotSupported
8567
+
8568
+ # TODO(crbug/1384419): Create a dedicated domain for preloading.
8569
+ # Fired when a prefetch attempt is updated.
8570
+ experimental event prefetchStatusUpdated
8571
+ parameters
8572
+ # The frame id of the frame initiating prefetch.
8573
+ FrameId initiatingFrameId
8574
+ string prefetchUrl
8575
+ PrefetchStatus status
8576
+
8558
8577
  event loadEventFired
8559
8578
  parameters
8560
8579
  Network.MonotonicTime timestamp
@@ -10757,3 +10776,41 @@ experimental domain Media
10757
10776
 
10758
10777
  # Disables the Media domain.
10759
10778
  command disable
10779
+
10780
+ experimental domain DeviceAccess
10781
+ # Device request id.
10782
+ type RequestId extends string
10783
+
10784
+ # A device id.
10785
+ type DeviceId extends string
10786
+
10787
+ # Device information displayed in a user prompt to select a device.
10788
+ type PromptDevice extends object
10789
+ properties
10790
+ DeviceId id
10791
+ # Display name as it appears in a device request user prompt.
10792
+ string name
10793
+
10794
+ # Enable events in this domain.
10795
+ command enable
10796
+
10797
+ # Disable events in this domain.
10798
+ command disable
10799
+
10800
+ # Select a device in response to a DeviceAccess.deviceRequestPrompted event.
10801
+ command selectPrompt
10802
+ parameters
10803
+ RequestId id
10804
+ DeviceId deviceId
10805
+
10806
+ # Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.
10807
+ command cancelPrompt
10808
+ parameters
10809
+ RequestId id
10810
+
10811
+ # A device request opened a user prompt to select a device. Respond with the
10812
+ # selectPrompt or cancelPrompt command.
10813
+ event deviceRequestPrompted
10814
+ parameters
10815
+ RequestId id
10816
+ array of PromptDevice devices
@@ -486,6 +486,11 @@ export namespace ProtocolMapping {
486
486
  * Fired when a prerender attempt is completed.
487
487
  */
488
488
  'Page.prerenderAttemptCompleted': [Protocol.Page.PrerenderAttemptCompletedEvent];
489
+ /**
490
+ * TODO(crbug/1384419): Create a dedicated domain for preloading.
491
+ * Fired when a prefetch attempt is updated.
492
+ */
493
+ 'Page.prefetchStatusUpdated': [Protocol.Page.PrefetchStatusUpdatedEvent];
489
494
  'Page.loadEventFired': [Protocol.Page.LoadEventFiredEvent];
490
495
  /**
491
496
  * Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.
@@ -704,6 +709,11 @@ export namespace ProtocolMapping {
704
709
  * list of player ids and all events again.
705
710
  */
706
711
  'Media.playersCreated': [Protocol.Media.PlayersCreatedEvent];
712
+ /**
713
+ * A device request opened a user prompt to select a device. Respond with the
714
+ * selectPrompt or cancelPrompt command.
715
+ */
716
+ 'DeviceAccess.deviceRequestPrompted': [Protocol.DeviceAccess.DeviceRequestPromptedEvent];
707
717
  }
708
718
 
709
719
  export interface Commands {
@@ -4591,6 +4601,34 @@ export namespace ProtocolMapping {
4591
4601
  paramsType: [];
4592
4602
  returnType: void;
4593
4603
  };
4604
+ /**
4605
+ * Enable events in this domain.
4606
+ */
4607
+ 'DeviceAccess.enable': {
4608
+ paramsType: [];
4609
+ returnType: void;
4610
+ };
4611
+ /**
4612
+ * Disable events in this domain.
4613
+ */
4614
+ 'DeviceAccess.disable': {
4615
+ paramsType: [];
4616
+ returnType: void;
4617
+ };
4618
+ /**
4619
+ * Select a device in response to a DeviceAccess.deviceRequestPrompted event.
4620
+ */
4621
+ 'DeviceAccess.selectPrompt': {
4622
+ paramsType: [Protocol.DeviceAccess.SelectPromptRequest];
4623
+ returnType: void;
4624
+ };
4625
+ /**
4626
+ * Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.
4627
+ */
4628
+ 'DeviceAccess.cancelPrompt': {
4629
+ paramsType: [Protocol.DeviceAccess.CancelPromptRequest];
4630
+ returnType: void;
4631
+ };
4594
4632
  }
4595
4633
  }
4596
4634
 
@@ -102,6 +102,8 @@ export namespace ProtocolProxyApi {
102
102
 
103
103
  Media: MediaApi;
104
104
 
105
+ DeviceAccess: DeviceAccessApi;
106
+
105
107
  }
106
108
 
107
109
 
@@ -3069,6 +3071,12 @@ export namespace ProtocolProxyApi {
3069
3071
  */
3070
3072
  on(event: 'prerenderAttemptCompleted', listener: (params: Protocol.Page.PrerenderAttemptCompletedEvent) => void): void;
3071
3073
 
3074
+ /**
3075
+ * TODO(crbug/1384419): Create a dedicated domain for preloading.
3076
+ * Fired when a prefetch attempt is updated.
3077
+ */
3078
+ on(event: 'prefetchStatusUpdated', listener: (params: Protocol.Page.PrefetchStatusUpdatedEvent) => void): void;
3079
+
3072
3080
  on(event: 'loadEventFired', listener: (params: Protocol.Page.LoadEventFiredEvent) => void): void;
3073
3081
 
3074
3082
  /**
@@ -3904,6 +3912,35 @@ export namespace ProtocolProxyApi {
3904
3912
  on(event: 'playersCreated', listener: (params: Protocol.Media.PlayersCreatedEvent) => void): void;
3905
3913
 
3906
3914
  }
3915
+
3916
+ export interface DeviceAccessApi {
3917
+ /**
3918
+ * Enable events in this domain.
3919
+ */
3920
+ enable(): Promise<void>;
3921
+
3922
+ /**
3923
+ * Disable events in this domain.
3924
+ */
3925
+ disable(): Promise<void>;
3926
+
3927
+ /**
3928
+ * Select a device in response to a DeviceAccess.deviceRequestPrompted event.
3929
+ */
3930
+ selectPrompt(params: Protocol.DeviceAccess.SelectPromptRequest): Promise<void>;
3931
+
3932
+ /**
3933
+ * Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.
3934
+ */
3935
+ cancelPrompt(params: Protocol.DeviceAccess.CancelPromptRequest): Promise<void>;
3936
+
3937
+ /**
3938
+ * A device request opened a user prompt to select a device. Respond with the
3939
+ * selectPrompt or cancelPrompt command.
3940
+ */
3941
+ on(event: 'deviceRequestPrompted', listener: (params: Protocol.DeviceAccess.DeviceRequestPromptedEvent) => void): void;
3942
+
3943
+ }
3907
3944
  }
3908
3945
 
3909
3946
  export default ProtocolProxyApi;
@@ -12906,6 +12906,11 @@ export namespace Protocol {
12906
12906
  */
12907
12907
  export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'InProgressNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'MaxNumOfRunningPrerendersExceeded' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'EmbedderTriggeredAndCrossOriginRedirected' | 'MemoryLimitExceeded' | 'FailToGetMemoryUsage' | 'DataSaverEnabled' | 'HasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirect' | 'CrossSiteNavigation' | 'SameSiteCrossOriginRedirect' | 'SameSiteCrossOriginNavigation' | 'SameSiteCrossOriginRedirectNotOptIn' | 'SameSiteCrossOriginNavigationNotOptIn' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents');
12908
12908
 
12909
+ /**
12910
+ * List of Prefetch status, which refers to PreloadingTriggeringOutcome.
12911
+ */
12912
+ export type PrefetchStatus = ('Running' | 'Ready' | 'Success' | 'Failure' | 'NotSupported');
12913
+
12909
12914
  export interface AddScriptToEvaluateOnLoadRequest {
12910
12915
  scriptSource: string;
12911
12916
  }
@@ -13941,6 +13946,19 @@ export namespace Protocol {
13941
13946
  disallowedApiMethod?: string;
13942
13947
  }
13943
13948
 
13949
+ /**
13950
+ * TODO(crbug/1384419): Create a dedicated domain for preloading.
13951
+ * Fired when a prefetch attempt is updated.
13952
+ */
13953
+ export interface PrefetchStatusUpdatedEvent {
13954
+ /**
13955
+ * The frame id of the frame initiating prefetch.
13956
+ */
13957
+ initiatingFrameId: FrameId;
13958
+ prefetchUrl: string;
13959
+ status: PrefetchStatus;
13960
+ }
13961
+
13944
13962
  export interface LoadEventFiredEvent {
13945
13963
  timestamp: Network.MonotonicTime;
13946
13964
  }
@@ -16835,6 +16853,48 @@ export namespace Protocol {
16835
16853
  players: PlayerId[];
16836
16854
  }
16837
16855
  }
16856
+
16857
+ export namespace DeviceAccess {
16858
+
16859
+ /**
16860
+ * Device request id.
16861
+ */
16862
+ export type RequestId = string;
16863
+
16864
+ /**
16865
+ * A device id.
16866
+ */
16867
+ export type DeviceId = string;
16868
+
16869
+ /**
16870
+ * Device information displayed in a user prompt to select a device.
16871
+ */
16872
+ export interface PromptDevice {
16873
+ id: DeviceId;
16874
+ /**
16875
+ * Display name as it appears in a device request user prompt.
16876
+ */
16877
+ name: string;
16878
+ }
16879
+
16880
+ export interface SelectPromptRequest {
16881
+ id: RequestId;
16882
+ deviceId: DeviceId;
16883
+ }
16884
+
16885
+ export interface CancelPromptRequest {
16886
+ id: RequestId;
16887
+ }
16888
+
16889
+ /**
16890
+ * A device request opened a user prompt to select a device. Respond with the
16891
+ * selectPrompt or cancelPrompt command.
16892
+ */
16893
+ export interface DeviceRequestPromptedEvent {
16894
+ id: RequestId;
16895
+ devices: PromptDevice[];
16896
+ }
16897
+ }
16838
16898
  }
16839
16899
 
16840
16900
  export default Protocol;