devtools-protocol 0.0.1103684 → 0.0.1105486

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.
@@ -22880,6 +22880,67 @@
22880
22880
  ]
22881
22881
  }
22882
22882
  ]
22883
+ },
22884
+ {
22885
+ "domain": "Preload",
22886
+ "experimental": true,
22887
+ "types": [
22888
+ {
22889
+ "id": "RuleSetId",
22890
+ "description": "Unique id",
22891
+ "type": "string"
22892
+ },
22893
+ {
22894
+ "id": "RuleSet",
22895
+ "description": "Corresponds to SpeculationRuleSet",
22896
+ "type": "object",
22897
+ "properties": [
22898
+ {
22899
+ "name": "id",
22900
+ "$ref": "RuleSetId"
22901
+ },
22902
+ {
22903
+ "name": "loaderId",
22904
+ "description": "Identifies a document which the rule set is associated with.",
22905
+ "$ref": "Network.LoaderId"
22906
+ },
22907
+ {
22908
+ "name": "sourceText",
22909
+ "description": "Source text of JSON representing the rule set. If it comes from\n<script> tag, it is the textContent of the node. Note that it is\na JSON for valid case.\n\nSee also:\n- https://wicg.github.io/nav-speculation/speculation-rules.html\n- https://github.com/WICG/nav-speculation/blob/main/triggers.md",
22910
+ "type": "string"
22911
+ }
22912
+ ]
22913
+ }
22914
+ ],
22915
+ "commands": [
22916
+ {
22917
+ "name": "enable"
22918
+ },
22919
+ {
22920
+ "name": "disable"
22921
+ }
22922
+ ],
22923
+ "events": [
22924
+ {
22925
+ "name": "ruleSetUpdated",
22926
+ "description": "Upsert. Currently, it is only emitted when a rule set added.",
22927
+ "parameters": [
22928
+ {
22929
+ "name": "ruleSet",
22930
+ "$ref": "RuleSet"
22931
+ }
22932
+ ]
22933
+ },
22934
+ {
22935
+ "name": "ruleSetRemoved",
22936
+ "parameters": [
22937
+ {
22938
+ "name": "id",
22939
+ "$ref": "RuleSetId"
22940
+ }
22941
+ ]
22942
+ }
22943
+ ]
22883
22944
  }
22884
22945
  ]
22885
22946
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1103684",
3
+ "version": "0.0.1105486",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -10814,3 +10814,35 @@ experimental domain DeviceAccess
10814
10814
  parameters
10815
10815
  RequestId id
10816
10816
  array of PromptDevice devices
10817
+
10818
+ experimental domain Preload
10819
+ # Unique id
10820
+ type RuleSetId extends string
10821
+
10822
+ # Corresponds to SpeculationRuleSet
10823
+ type RuleSet extends object
10824
+ properties
10825
+ RuleSetId id
10826
+ # Identifies a document which the rule set is associated with.
10827
+ Network.LoaderId loaderId
10828
+ # Source text of JSON representing the rule set. If it comes from
10829
+ # <script> tag, it is the textContent of the node. Note that it is
10830
+ # a JSON for valid case.
10831
+ #
10832
+ # See also:
10833
+ # - https://wicg.github.io/nav-speculation/speculation-rules.html
10834
+ # - https://github.com/WICG/nav-speculation/blob/main/triggers.md
10835
+ string sourceText
10836
+
10837
+ command enable
10838
+
10839
+ command disable
10840
+
10841
+ # Upsert. Currently, it is only emitted when a rule set added.
10842
+ event ruleSetUpdated
10843
+ parameters
10844
+ RuleSet ruleSet
10845
+
10846
+ event ruleSetRemoved
10847
+ parameters
10848
+ RuleSetId id
@@ -714,6 +714,11 @@ export namespace ProtocolMapping {
714
714
  * selectPrompt or cancelPrompt command.
715
715
  */
716
716
  'DeviceAccess.deviceRequestPrompted': [Protocol.DeviceAccess.DeviceRequestPromptedEvent];
717
+ /**
718
+ * Upsert. Currently, it is only emitted when a rule set added.
719
+ */
720
+ 'Preload.ruleSetUpdated': [Protocol.Preload.RuleSetUpdatedEvent];
721
+ 'Preload.ruleSetRemoved': [Protocol.Preload.RuleSetRemovedEvent];
717
722
  }
718
723
 
719
724
  export interface Commands {
@@ -4629,6 +4634,14 @@ export namespace ProtocolMapping {
4629
4634
  paramsType: [Protocol.DeviceAccess.CancelPromptRequest];
4630
4635
  returnType: void;
4631
4636
  };
4637
+ 'Preload.enable': {
4638
+ paramsType: [];
4639
+ returnType: void;
4640
+ };
4641
+ 'Preload.disable': {
4642
+ paramsType: [];
4643
+ returnType: void;
4644
+ };
4632
4645
  }
4633
4646
  }
4634
4647
 
@@ -104,6 +104,8 @@ export namespace ProtocolProxyApi {
104
104
 
105
105
  DeviceAccess: DeviceAccessApi;
106
106
 
107
+ Preload: PreloadApi;
108
+
107
109
  }
108
110
 
109
111
 
@@ -3941,6 +3943,20 @@ export namespace ProtocolProxyApi {
3941
3943
  on(event: 'deviceRequestPrompted', listener: (params: Protocol.DeviceAccess.DeviceRequestPromptedEvent) => void): void;
3942
3944
 
3943
3945
  }
3946
+
3947
+ export interface PreloadApi {
3948
+ enable(): Promise<void>;
3949
+
3950
+ disable(): Promise<void>;
3951
+
3952
+ /**
3953
+ * Upsert. Currently, it is only emitted when a rule set added.
3954
+ */
3955
+ on(event: 'ruleSetUpdated', listener: (params: Protocol.Preload.RuleSetUpdatedEvent) => void): void;
3956
+
3957
+ on(event: 'ruleSetRemoved', listener: (params: Protocol.Preload.RuleSetRemovedEvent) => void): void;
3958
+
3959
+ }
3944
3960
  }
3945
3961
 
3946
3962
  export default ProtocolProxyApi;
@@ -16895,6 +16895,46 @@ export namespace Protocol {
16895
16895
  devices: PromptDevice[];
16896
16896
  }
16897
16897
  }
16898
+
16899
+ export namespace Preload {
16900
+
16901
+ /**
16902
+ * Unique id
16903
+ */
16904
+ export type RuleSetId = string;
16905
+
16906
+ /**
16907
+ * Corresponds to SpeculationRuleSet
16908
+ */
16909
+ export interface RuleSet {
16910
+ id: RuleSetId;
16911
+ /**
16912
+ * Identifies a document which the rule set is associated with.
16913
+ */
16914
+ loaderId: Network.LoaderId;
16915
+ /**
16916
+ * Source text of JSON representing the rule set. If it comes from
16917
+ * <script> tag, it is the textContent of the node. Note that it is
16918
+ * a JSON for valid case.
16919
+ *
16920
+ * See also:
16921
+ * - https://wicg.github.io/nav-speculation/speculation-rules.html
16922
+ * - https://github.com/WICG/nav-speculation/blob/main/triggers.md
16923
+ */
16924
+ sourceText: string;
16925
+ }
16926
+
16927
+ /**
16928
+ * Upsert. Currently, it is only emitted when a rule set added.
16929
+ */
16930
+ export interface RuleSetUpdatedEvent {
16931
+ ruleSet: RuleSet;
16932
+ }
16933
+
16934
+ export interface RuleSetRemovedEvent {
16935
+ id: RuleSetId;
16936
+ }
16937
+ }
16898
16938
  }
16899
16939
 
16900
16940
  export default Protocol;