devtools-protocol 0.0.1281655 → 0.0.1284279

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.
@@ -5464,6 +5464,8 @@
5464
5464
  "grammar-error",
5465
5465
  "highlight",
5466
5466
  "first-line-inherited",
5467
+ "scroll-marker",
5468
+ "scroll-markers",
5467
5469
  "scrollbar",
5468
5470
  "scrollbar-thumb",
5469
5471
  "scrollbar-button",
@@ -25579,6 +25581,79 @@
25579
25581
  "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
25582
  }
25581
25583
  ]
25584
+ },
25585
+ {
25586
+ "domain": "PWA",
25587
+ "description": "This domain allows interacting with the browser to control PWAs.",
25588
+ "experimental": true,
25589
+ "types": [
25590
+ {
25591
+ "id": "FileHandlerAccept",
25592
+ "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",
25593
+ "type": "object",
25594
+ "properties": [
25595
+ {
25596
+ "name": "mediaType",
25597
+ "description": "New name of the mimetype according to\nhttps://www.iana.org/assignments/media-types/media-types.xhtml",
25598
+ "type": "string"
25599
+ },
25600
+ {
25601
+ "name": "fileExtensions",
25602
+ "type": "array",
25603
+ "items": {
25604
+ "type": "string"
25605
+ }
25606
+ }
25607
+ ]
25608
+ },
25609
+ {
25610
+ "id": "FileHandler",
25611
+ "type": "object",
25612
+ "properties": [
25613
+ {
25614
+ "name": "action",
25615
+ "type": "string"
25616
+ },
25617
+ {
25618
+ "name": "accepts",
25619
+ "type": "array",
25620
+ "items": {
25621
+ "$ref": "FileHandlerAccept"
25622
+ }
25623
+ },
25624
+ {
25625
+ "name": "displayName",
25626
+ "type": "string"
25627
+ }
25628
+ ]
25629
+ }
25630
+ ],
25631
+ "commands": [
25632
+ {
25633
+ "name": "getOsAppState",
25634
+ "description": "Returns the following OS state for the given manifest id.",
25635
+ "parameters": [
25636
+ {
25637
+ "name": "manifestId",
25638
+ "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.",
25639
+ "type": "string"
25640
+ }
25641
+ ],
25642
+ "returns": [
25643
+ {
25644
+ "name": "badgeCount",
25645
+ "type": "integer"
25646
+ },
25647
+ {
25648
+ "name": "fileHandlers",
25649
+ "type": "array",
25650
+ "items": {
25651
+ "$ref": "FileHandler"
25652
+ }
25653
+ }
25654
+ ]
25655
+ }
25656
+ ]
25582
25657
  }
25583
25658
  ]
25584
25659
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1281655",
3
+ "version": "0.0.1284279",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -2575,6 +2575,8 @@ domain DOM
2575
2575
  grammar-error
2576
2576
  highlight
2577
2577
  first-line-inherited
2578
+ scroll-marker
2579
+ scroll-markers
2578
2580
  scrollbar
2579
2581
  scrollbar-thumb
2580
2582
  scrollbar-button
@@ -12123,3 +12125,32 @@ experimental domain FedCm
12123
12125
  # Resets the cooldown time, if any, to allow the next FedCM call to show
12124
12126
  # a dialog even if one was recently dismissed by the user.
12125
12127
  command resetCooldown
12128
+
12129
+ # This domain allows interacting with the browser to control PWAs.
12130
+ experimental domain PWA
12131
+
12132
+ # The following types are the replica of
12133
+ # https://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67
12134
+ type FileHandlerAccept extends object
12135
+ properties
12136
+ # New name of the mimetype according to
12137
+ # https://www.iana.org/assignments/media-types/media-types.xhtml
12138
+ string mediaType
12139
+ array of string fileExtensions
12140
+
12141
+ type FileHandler extends object
12142
+ properties
12143
+ string action
12144
+ array of FileHandlerAccept accepts
12145
+ string displayName
12146
+
12147
+ # Returns the following OS state for the given manifest id.
12148
+ command getOsAppState
12149
+ parameters
12150
+ # The id from the webapp's manifest file, commonly it's the url of the
12151
+ # site installing the webapp. See
12152
+ # https://web.dev/learn/pwa/web-app-manifest.
12153
+ string manifestId
12154
+ returns
12155
+ integer badgeCount
12156
+ 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;
@@ -5916,7 +5916,7 @@ export namespace Protocol {
5916
5916
  /**
5917
5917
  * Pseudo element type.
5918
5918
  */
5919
- export type PseudoType = ('first-line' | 'first-letter' | 'before' | 'after' | 'marker' | 'backdrop' | 'selection' | 'target-text' | 'spelling-error' | 'grammar-error' | 'highlight' | 'first-line-inherited' | 'scrollbar' | 'scrollbar-thumb' | 'scrollbar-button' | 'scrollbar-track' | 'scrollbar-track-piece' | 'scrollbar-corner' | 'resizer' | 'input-list-button' | 'view-transition' | 'view-transition-group' | 'view-transition-image-pair' | 'view-transition-old' | 'view-transition-new');
5919
+ export type PseudoType = ('first-line' | 'first-letter' | 'before' | 'after' | 'marker' | 'backdrop' | 'selection' | 'target-text' | 'spelling-error' | 'grammar-error' | 'highlight' | 'first-line-inherited' | 'scroll-marker' | 'scroll-markers' | 'scrollbar' | 'scrollbar-thumb' | 'scrollbar-button' | 'scrollbar-track' | 'scrollbar-track-piece' | 'scrollbar-corner' | 'resizer' | 'input-list-button' | 'view-transition' | 'view-transition-group' | 'view-transition-image-pair' | 'view-transition-old' | 'view-transition-new');
5920
5920
 
5921
5921
  /**
5922
5922
  * Shadow root type.
@@ -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;