devtools-protocol 0.0.1281655 → 0.0.1282316

Sign up to get free protection for your applications and to get access to all the features.
@@ -25579,6 +25579,79 @@
25579
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."
25580
25580
  }
25581
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
+ ]
25582
25655
  }
25583
25656
  ]
25584
25657
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1281655",
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",
@@ -12123,3 +12123,32 @@ experimental domain FedCm
12123
12123
  # Resets the cooldown time, if any, to allow the next FedCM call to show
12124
12124
  # a dialog even if one was recently dismissed by the user.
12125
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
@@ -4925,6 +4925,13 @@ export namespace ProtocolMapping {
4925
4925
  paramsType: [];
4926
4926
  returnType: void;
4927
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
+ };
4928
4935
  }
4929
4936
  }
4930
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
 
@@ -4196,6 +4198,14 @@ export namespace ProtocolProxyApi {
4196
4198
  on(event: 'dialogClosed', listener: (params: Protocol.FedCm.DialogClosedEvent) => void): void;
4197
4199
 
4198
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
+ }
4199
4209
  }
4200
4210
 
4201
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
 
@@ -4578,6 +4580,14 @@ export namespace ProtocolTestsProxyApi {
4578
4580
  onceDialogClosed(eventMatcher?: (event: { params: Protocol.FedCm.DialogClosedEvent }) => boolean): Promise<{ params: Protocol.FedCm.DialogClosedEvent }>;
4579
4581
 
4580
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
+ }
4581
4591
  }
4582
4592
 
4583
4593
  export default ProtocolTestsProxyApi;
@@ -18277,6 +18277,45 @@ export namespace Protocol {
18277
18277
  dialogId: string;
18278
18278
  }
18279
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
+ }
18280
18319
  }
18281
18320
 
18282
18321
  export default Protocol;