devtools-protocol 0.0.1280070 → 0.0.1282316

Sign up to get free protection for your applications and to get access to all the features.
@@ -12990,6 +12990,11 @@
12990
12990
  "description": "The reason the cookie was exempted.",
12991
12991
  "$ref": "CookieExemptionReason"
12992
12992
  },
12993
+ {
12994
+ "name": "cookieLine",
12995
+ "description": "The string representing this individual cookie as it would appear in the header.",
12996
+ "type": "string"
12997
+ },
12993
12998
  {
12994
12999
  "name": "cookie",
12995
13000
  "description": "The cookie object representing the cookie.",
@@ -15131,6 +15136,23 @@
15131
15136
  }
15132
15137
  ]
15133
15138
  },
15139
+ {
15140
+ "name": "responseReceivedEarlyHints",
15141
+ "description": "Fired when 103 Early Hints headers is received in addition to the common response.\nNot every responseReceived event will have an responseReceivedEarlyHints fired.\nOnly one responseReceivedEarlyHints may be fired for eached responseReceived event.",
15142
+ "experimental": true,
15143
+ "parameters": [
15144
+ {
15145
+ "name": "requestId",
15146
+ "description": "Request identifier. Used to match this information to another responseReceived event.",
15147
+ "$ref": "RequestId"
15148
+ },
15149
+ {
15150
+ "name": "headers",
15151
+ "description": "Raw response headers as they were received over the wire.",
15152
+ "$ref": "Headers"
15153
+ }
15154
+ ]
15155
+ },
15134
15156
  {
15135
15157
  "name": "trustTokenOperationDone",
15136
15158
  "description": "Fired exactly once for each Trust Token operation. Depending on\nthe type of the operation and whether the operation succeeded or\nfailed, the event is fired before the corresponding request was sent\nor after the response was received.",
@@ -25557,6 +25579,79 @@
25557
25579
  "description": "Resets the cooldown time, if any, to allow the next FedCM call to show\na dialog even if one was recently dismissed by the user."
25558
25580
  }
25559
25581
  ]
25582
+ },
25583
+ {
25584
+ "domain": "PWA",
25585
+ "description": "This domain allows interacting with the browser to control PWAs.",
25586
+ "experimental": true,
25587
+ "types": [
25588
+ {
25589
+ "id": "FileHandlerAccept",
25590
+ "description": "The following types are the replica of\nhttps://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67",
25591
+ "type": "object",
25592
+ "properties": [
25593
+ {
25594
+ "name": "mediaType",
25595
+ "description": "New name of the mimetype according to\nhttps://www.iana.org/assignments/media-types/media-types.xhtml",
25596
+ "type": "string"
25597
+ },
25598
+ {
25599
+ "name": "fileExtensions",
25600
+ "type": "array",
25601
+ "items": {
25602
+ "type": "string"
25603
+ }
25604
+ }
25605
+ ]
25606
+ },
25607
+ {
25608
+ "id": "FileHandler",
25609
+ "type": "object",
25610
+ "properties": [
25611
+ {
25612
+ "name": "action",
25613
+ "type": "string"
25614
+ },
25615
+ {
25616
+ "name": "accepts",
25617
+ "type": "array",
25618
+ "items": {
25619
+ "$ref": "FileHandlerAccept"
25620
+ }
25621
+ },
25622
+ {
25623
+ "name": "displayName",
25624
+ "type": "string"
25625
+ }
25626
+ ]
25627
+ }
25628
+ ],
25629
+ "commands": [
25630
+ {
25631
+ "name": "getOsAppState",
25632
+ "description": "Returns the following OS state for the given manifest id.",
25633
+ "parameters": [
25634
+ {
25635
+ "name": "manifestId",
25636
+ "description": "The id from the webapp's manifest file, commonly it's the url of the\nsite installing the webapp. See\nhttps://web.dev/learn/pwa/web-app-manifest.",
25637
+ "type": "string"
25638
+ }
25639
+ ],
25640
+ "returns": [
25641
+ {
25642
+ "name": "badgeCount",
25643
+ "type": "integer"
25644
+ },
25645
+ {
25646
+ "name": "fileHandlers",
25647
+ "type": "array",
25648
+ "items": {
25649
+ "$ref": "FileHandler"
25650
+ }
25651
+ }
25652
+ ]
25653
+ }
25654
+ ]
25560
25655
  }
25561
25656
  ]
25562
25657
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1280070",
3
+ "version": "0.0.1282316",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -6123,6 +6123,8 @@ domain Network
6123
6123
  properties
6124
6124
  # The reason the cookie was exempted.
6125
6125
  CookieExemptionReason exemptionReason
6126
+ # The string representing this individual cookie as it would appear in the header.
6127
+ string cookieLine
6126
6128
  # The cookie object representing the cookie.
6127
6129
  Cookie cookie
6128
6130
 
@@ -6957,6 +6959,16 @@ domain Network
6957
6959
  # the response with the corresponding reason.
6958
6960
  optional array of ExemptedSetCookieWithReason exemptedCookies
6959
6961
 
6962
+ # Fired when 103 Early Hints headers is received in addition to the common response.
6963
+ # Not every responseReceived event will have an responseReceivedEarlyHints fired.
6964
+ # Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
6965
+ experimental event responseReceivedEarlyHints
6966
+ parameters
6967
+ # Request identifier. Used to match this information to another responseReceived event.
6968
+ RequestId requestId
6969
+ # Raw response headers as they were received over the wire.
6970
+ Headers headers
6971
+
6960
6972
  # Fired exactly once for each Trust Token operation. Depending on
6961
6973
  # the type of the operation and whether the operation succeeded or
6962
6974
  # failed, the event is fired before the corresponding request was sent
@@ -12111,3 +12123,32 @@ experimental domain FedCm
12111
12123
  # Resets the cooldown time, if any, to allow the next FedCM call to show
12112
12124
  # a dialog even if one was recently dismissed by the user.
12113
12125
  command resetCooldown
12126
+
12127
+ # This domain allows interacting with the browser to control PWAs.
12128
+ experimental domain PWA
12129
+
12130
+ # The following types are the replica of
12131
+ # https://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67
12132
+ type FileHandlerAccept extends object
12133
+ properties
12134
+ # New name of the mimetype according to
12135
+ # https://www.iana.org/assignments/media-types/media-types.xhtml
12136
+ string mediaType
12137
+ array of string fileExtensions
12138
+
12139
+ type FileHandler extends object
12140
+ properties
12141
+ string action
12142
+ array of FileHandlerAccept accepts
12143
+ string displayName
12144
+
12145
+ # Returns the following OS state for the given manifest id.
12146
+ command getOsAppState
12147
+ parameters
12148
+ # The id from the webapp's manifest file, commonly it's the url of the
12149
+ # site installing the webapp. See
12150
+ # https://web.dev/learn/pwa/web-app-manifest.
12151
+ string manifestId
12152
+ returns
12153
+ integer badgeCount
12154
+ array of FileHandler fileHandlers
@@ -355,6 +355,12 @@ export namespace ProtocolMapping {
355
355
  * it, and responseReceivedExtraInfo may be fired before or after responseReceived.
356
356
  */
357
357
  'Network.responseReceivedExtraInfo': [Protocol.Network.ResponseReceivedExtraInfoEvent];
358
+ /**
359
+ * Fired when 103 Early Hints headers is received in addition to the common response.
360
+ * Not every responseReceived event will have an responseReceivedEarlyHints fired.
361
+ * Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
362
+ */
363
+ 'Network.responseReceivedEarlyHints': [Protocol.Network.ResponseReceivedEarlyHintsEvent];
358
364
  /**
359
365
  * Fired exactly once for each Trust Token operation. Depending on
360
366
  * the type of the operation and whether the operation succeeded or
@@ -4919,6 +4925,13 @@ export namespace ProtocolMapping {
4919
4925
  paramsType: [];
4920
4926
  returnType: void;
4921
4927
  };
4928
+ /**
4929
+ * Returns the following OS state for the given manifest id.
4930
+ */
4931
+ 'PWA.getOsAppState': {
4932
+ paramsType: [Protocol.PWA.GetOsAppStateRequest];
4933
+ returnType: Protocol.PWA.GetOsAppStateResponse;
4934
+ };
4922
4935
  }
4923
4936
  }
4924
4937
 
@@ -110,6 +110,8 @@ export namespace ProtocolProxyApi {
110
110
 
111
111
  FedCm: FedCmApi;
112
112
 
113
+ PWA: PWAApi;
114
+
113
115
  }
114
116
 
115
117
 
@@ -2559,6 +2561,13 @@ export namespace ProtocolProxyApi {
2559
2561
  */
2560
2562
  on(event: 'responseReceivedExtraInfo', listener: (params: Protocol.Network.ResponseReceivedExtraInfoEvent) => void): void;
2561
2563
 
2564
+ /**
2565
+ * Fired when 103 Early Hints headers is received in addition to the common response.
2566
+ * Not every responseReceived event will have an responseReceivedEarlyHints fired.
2567
+ * Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
2568
+ */
2569
+ on(event: 'responseReceivedEarlyHints', listener: (params: Protocol.Network.ResponseReceivedEarlyHintsEvent) => void): void;
2570
+
2562
2571
  /**
2563
2572
  * Fired exactly once for each Trust Token operation. Depending on
2564
2573
  * the type of the operation and whether the operation succeeded or
@@ -4189,6 +4198,14 @@ export namespace ProtocolProxyApi {
4189
4198
  on(event: 'dialogClosed', listener: (params: Protocol.FedCm.DialogClosedEvent) => void): void;
4190
4199
 
4191
4200
  }
4201
+
4202
+ export interface PWAApi {
4203
+ /**
4204
+ * Returns the following OS state for the given manifest id.
4205
+ */
4206
+ getOsAppState(params: Protocol.PWA.GetOsAppStateRequest): Promise<Protocol.PWA.GetOsAppStateResponse>;
4207
+
4208
+ }
4192
4209
  }
4193
4210
 
4194
4211
  export default ProtocolProxyApi;
@@ -110,6 +110,8 @@ export namespace ProtocolTestsProxyApi {
110
110
 
111
111
  FedCm: FedCmApi;
112
112
 
113
+ PWA: PWAApi;
114
+
113
115
  }
114
116
 
115
117
 
@@ -2739,6 +2741,15 @@ export namespace ProtocolTestsProxyApi {
2739
2741
  offResponseReceivedExtraInfo(listener: (event: { params: Protocol.Network.ResponseReceivedExtraInfoEvent }) => void): void;
2740
2742
  onceResponseReceivedExtraInfo(eventMatcher?: (event: { params: Protocol.Network.ResponseReceivedExtraInfoEvent }) => boolean): Promise<{ params: Protocol.Network.ResponseReceivedExtraInfoEvent }>;
2741
2743
 
2744
+ /**
2745
+ * Fired when 103 Early Hints headers is received in addition to the common response.
2746
+ * Not every responseReceived event will have an responseReceivedEarlyHints fired.
2747
+ * Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
2748
+ */
2749
+ onResponseReceivedEarlyHints(listener: (event: { params: Protocol.Network.ResponseReceivedEarlyHintsEvent }) => void): void;
2750
+ offResponseReceivedEarlyHints(listener: (event: { params: Protocol.Network.ResponseReceivedEarlyHintsEvent }) => void): void;
2751
+ onceResponseReceivedEarlyHints(eventMatcher?: (event: { params: Protocol.Network.ResponseReceivedEarlyHintsEvent }) => boolean): Promise<{ params: Protocol.Network.ResponseReceivedEarlyHintsEvent }>;
2752
+
2742
2753
  /**
2743
2754
  * Fired exactly once for each Trust Token operation. Depending on
2744
2755
  * the type of the operation and whether the operation succeeded or
@@ -4569,6 +4580,14 @@ export namespace ProtocolTestsProxyApi {
4569
4580
  onceDialogClosed(eventMatcher?: (event: { params: Protocol.FedCm.DialogClosedEvent }) => boolean): Promise<{ params: Protocol.FedCm.DialogClosedEvent }>;
4570
4581
 
4571
4582
  }
4583
+
4584
+ export interface PWAApi {
4585
+ /**
4586
+ * Returns the following OS state for the given manifest id.
4587
+ */
4588
+ getOsAppState(params: Protocol.PWA.GetOsAppStateRequest): Promise<{id: number, result: Protocol.PWA.GetOsAppStateResponse, sessionId: string}>;
4589
+
4590
+ }
4572
4591
  }
4573
4592
 
4574
4593
  export default ProtocolTestsProxyApi;
@@ -10729,6 +10729,10 @@ export namespace Protocol {
10729
10729
  * The reason the cookie was exempted.
10730
10730
  */
10731
10731
  exemptionReason: CookieExemptionReason;
10732
+ /**
10733
+ * The string representing this individual cookie as it would appear in the header.
10734
+ */
10735
+ cookieLine: string;
10732
10736
  /**
10733
10737
  * The cookie object representing the cookie.
10734
10738
  */
@@ -12172,6 +12176,22 @@ export namespace Protocol {
12172
12176
  exemptedCookies?: ExemptedSetCookieWithReason[];
12173
12177
  }
12174
12178
 
12179
+ /**
12180
+ * Fired when 103 Early Hints headers is received in addition to the common response.
12181
+ * Not every responseReceived event will have an responseReceivedEarlyHints fired.
12182
+ * Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
12183
+ */
12184
+ export interface ResponseReceivedEarlyHintsEvent {
12185
+ /**
12186
+ * Request identifier. Used to match this information to another responseReceived event.
12187
+ */
12188
+ requestId: RequestId;
12189
+ /**
12190
+ * Raw response headers as they were received over the wire.
12191
+ */
12192
+ headers: Headers;
12193
+ }
12194
+
12175
12195
  export const enum TrustTokenOperationDoneEventStatus {
12176
12196
  Ok = 'Ok',
12177
12197
  InvalidArgument = 'InvalidArgument',
@@ -18257,6 +18277,45 @@ export namespace Protocol {
18257
18277
  dialogId: string;
18258
18278
  }
18259
18279
  }
18280
+
18281
+ /**
18282
+ * This domain allows interacting with the browser to control PWAs.
18283
+ */
18284
+ export namespace PWA {
18285
+
18286
+ /**
18287
+ * The following types are the replica of
18288
+ * https://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67
18289
+ */
18290
+ export interface FileHandlerAccept {
18291
+ /**
18292
+ * New name of the mimetype according to
18293
+ * https://www.iana.org/assignments/media-types/media-types.xhtml
18294
+ */
18295
+ mediaType: string;
18296
+ fileExtensions: string[];
18297
+ }
18298
+
18299
+ export interface FileHandler {
18300
+ action: string;
18301
+ accepts: FileHandlerAccept[];
18302
+ displayName: string;
18303
+ }
18304
+
18305
+ export interface GetOsAppStateRequest {
18306
+ /**
18307
+ * The id from the webapp's manifest file, commonly it's the url of the
18308
+ * site installing the webapp. See
18309
+ * https://web.dev/learn/pwa/web-app-manifest.
18310
+ */
18311
+ manifestId: string;
18312
+ }
18313
+
18314
+ export interface GetOsAppStateResponse {
18315
+ badgeCount: integer;
18316
+ fileHandlers: FileHandler[];
18317
+ }
18318
+ }
18260
18319
  }
18261
18320
 
18262
18321
  export default Protocol;