chrome-types 0.1.87 → 0.1.90

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.
Files changed (3) hide show
  1. package/_all.d.ts +67 -22
  2. package/index.d.ts +58 -18
  3. package/package.json +2 -2
package/_all.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Wed Feb 09 2022 22:28:20 GMT+0000 (Coordinated Universal Time)
18
- // Built at 5de99f2d63898410388e1c54d18c8184bbc9a6a4
17
+ // Generated on Tue Mar 01 2022 22:28:05 GMT+0000 (Coordinated Universal Time)
18
+ // Built at ef59a59c1fee2af6315d9eebd0920baf5b494243
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -208,7 +208,7 @@ declare namespace chrome {
208
208
  }
209
209
 
210
210
  /**
211
- * @since Pending
211
+ * @since Chrome 99
212
212
  */
213
213
  export interface OpenPopupOptions {
214
214
 
@@ -602,8 +602,9 @@ declare namespace chrome {
602
602
  /**
603
603
  * Opens the extension's popup.
604
604
  *
605
+ * @chrome-returns-extra since Pending
605
606
  * @param options Specifies options for opening the popup.
606
- * @since Pending
607
+ * @since Chrome 99
607
608
  */
608
609
  export function openPopup(
609
610
 
@@ -614,7 +615,7 @@ declare namespace chrome {
614
615
  * Opens the extension's popup.
615
616
  *
616
617
  * @param options Specifies options for opening the popup.
617
- * @since Pending
618
+ * @since Chrome 99
618
619
  */
619
620
  export function openPopup(
620
621
 
@@ -820,9 +821,14 @@ declare namespace chrome {
820
821
  */
821
822
  export function getIsInstalled(): boolean;
822
823
 
824
+ /**
825
+ * @chrome-returns-extra since Pending
826
+ */
827
+ export function installState(): Promise<InstallState>;
828
+
823
829
  export function installState(
824
830
 
825
- callback: (
831
+ callback?: (
826
832
  state: InstallState,
827
833
  ) => void,
828
834
  ): void;
@@ -1839,6 +1845,7 @@ declare namespace chrome {
1839
1845
  * @alpha
1840
1846
  * @chrome-manifest automation
1841
1847
  * @chrome-channel dev
1848
+ * @chrome-disallow-service-workers
1842
1849
  */
1843
1850
  export namespace automation {
1844
1851
 
@@ -7339,7 +7346,7 @@ declare namespace chrome {
7339
7346
  /**
7340
7347
  * Whether the script should inject into any frames where the URL belongs to a scheme that would never match a specified Match Pattern, including about:, data:, blob:, and filesystem: schemes. In these cases, in order to determine if the script should inject, the origin of the URL is checked. If the origin is `null` (as is the case for data: URLs), then the "initiator" or "creator" origin is used (i.e., the origin of the frame that created or navigated this frame). Note that this may not be the parent frame, if the frame was navigated by another frame in the document hierarchy.
7341
7348
  *
7342
- * @since Pending
7349
+ * @since Chrome 99
7343
7350
  */
7344
7351
  match_origin_as_fallback?: boolean;
7345
7352
 
@@ -12572,7 +12579,7 @@ declare namespace chrome {
12572
12579
 
12573
12580
  /**
12574
12581
  * @param response The JSON response object sent by the handler of the request. If an error occurs while connecting to the extension, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
12575
- * @since Pending
12582
+ * @since Chrome 99
12576
12583
  */
12577
12584
  callback?: (
12578
12585
  response: any,
@@ -12591,7 +12598,7 @@ declare namespace chrome {
12591
12598
 
12592
12599
  /**
12593
12600
  * @param response The JSON response object sent by the handler of the request. If an error occurs while connecting to the extension, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
12594
- * @since Pending
12601
+ * @since Chrome 99
12595
12602
  */
12596
12603
  callback?: (
12597
12604
  response: any,
@@ -21529,12 +21536,22 @@ declare namespace chrome {
21529
21536
 
21530
21537
  /**
21531
21538
  * Submits the job for print. If the extension is not listed in PrintingAPIExtensionsAllowlist policy, the user will be prompted to accept the print job.
21539
+ *
21540
+ * @chrome-returns-extra since Pending
21532
21541
  */
21533
21542
  export function submitJob(
21534
21543
 
21535
21544
  request: SubmitJobRequest,
21545
+ ): Promise<SubmitJobResponse>;
21536
21546
 
21537
- callback: (
21547
+ /**
21548
+ * Submits the job for print. If the extension is not listed in PrintingAPIExtensionsAllowlist policy, the user will be prompted to accept the print job.
21549
+ */
21550
+ export function submitJob(
21551
+
21552
+ request: SubmitJobRequest,
21553
+
21554
+ callback?: (
21538
21555
  response: SubmitJobResponse,
21539
21556
  ) => void,
21540
21557
  ): void;
@@ -21542,33 +21559,61 @@ declare namespace chrome {
21542
21559
  /**
21543
21560
  * Cancels previously submitted job.
21544
21561
  *
21562
+ * @chrome-returns-extra since Pending
21545
21563
  * @param jobId The id of the print job to cancel. This should be the same id received in a {@link SubmitJobResponse}.
21546
21564
  */
21547
21565
  export function cancelJob(
21548
21566
 
21549
21567
  jobId: string,
21568
+ ): Promise<void>;
21550
21569
 
21551
- callback: () => void,
21570
+ /**
21571
+ * Cancels previously submitted job.
21572
+ *
21573
+ * @param jobId The id of the print job to cancel. This should be the same id received in a {@link SubmitJobResponse}.
21574
+ */
21575
+ export function cancelJob(
21576
+
21577
+ jobId: string,
21578
+
21579
+ callback?: () => void,
21552
21580
  ): void;
21553
21581
 
21582
+ /**
21583
+ * Returns the list of available printers on the device. This includes manually added, enterprise and discovered printers.
21584
+ *
21585
+ * @chrome-returns-extra since Pending
21586
+ */
21587
+ export function getPrinters(): Promise<Printer[]>;
21588
+
21554
21589
  /**
21555
21590
  * Returns the list of available printers on the device. This includes manually added, enterprise and discovered printers.
21556
21591
  */
21557
21592
  export function getPrinters(
21558
21593
 
21559
- callback: (
21594
+ callback?: (
21560
21595
  printers: Printer[],
21561
21596
  ) => void,
21562
21597
  ): void;
21563
21598
 
21564
21599
  /**
21565
21600
  * Returns the status and capabilities of the printer in [CDD format](https://developers.google.com/cloud-print/docs/cdd#cdd). This call will fail with a runtime error if no printers with given id are installed.
21601
+ *
21602
+ * @chrome-returns-extra since Pending
21566
21603
  */
21567
21604
  export function getPrinterInfo(
21568
21605
 
21569
21606
  printerId: string,
21607
+ ): Promise<GetPrinterInfoResponse>;
21570
21608
 
21571
- callback: (
21609
+ /**
21610
+ * Returns the status and capabilities of the printer in [CDD format](https://developers.google.com/cloud-print/docs/cdd#cdd). This call will fail with a runtime error if no printers with given id are installed.
21611
+ */
21612
+ export function getPrinterInfo(
21613
+
21614
+ printerId: string,
21615
+
21616
+ callback?: (
21572
21617
  response: GetPrinterInfoResponse,
21573
21618
  ) => void,
21574
21619
  ): void;
@@ -22834,7 +22879,7 @@ declare namespace chrome {
22834
22879
 
22835
22880
  /**
22836
22881
  * @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
22837
- * @since Pending
22882
+ * @since Chrome 99
22838
22883
  */
22839
22884
  callback?: (
22840
22885
  response: any,
@@ -22860,7 +22905,7 @@ declare namespace chrome {
22860
22905
 
22861
22906
  /**
22862
22907
  * @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
22863
- * @since Pending
22908
+ * @since Chrome 99
22864
22909
  */
22865
22910
  callback?: (
22866
22911
  response: any,
@@ -22897,7 +22942,7 @@ declare namespace chrome {
22897
22942
 
22898
22943
  /**
22899
22944
  * @param response The response message sent by the native messaging host. If an error occurs while connecting to the native messaging host, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
22900
- * @since Pending
22945
+ * @since Chrome 99
22901
22946
  */
22902
22947
  callback?: (
22903
22948
  response: any,
@@ -28216,7 +28261,7 @@ declare namespace chrome {
28216
28261
 
28217
28262
  /**
28218
28263
  * @param response The JSON response object sent by the handler of the request. If an error occurs while connecting to the specified tab, the callback is called with no arguments and {@link runtime.lastError} is set to the error message.
28219
- * @since Pending
28264
+ * @since Chrome 99
28220
28265
  */
28221
28266
  callback?: (
28222
28267
  response: any,
@@ -28265,7 +28310,7 @@ declare namespace chrome {
28265
28310
 
28266
28311
  /**
28267
28312
  * @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the specified tab, the callback is called with no arguments and {@link runtime.lastError} is set to the error message.
28268
- * @since Pending
28313
+ * @since Chrome 99
28269
28314
  */
28270
28315
  callback?: (
28271
28316
  response: any,
@@ -32169,7 +32214,7 @@ declare namespace chrome {
32169
32214
  /**
32170
32215
  * The ID of the tab in which the frame is.
32171
32216
  */
32172
- tabId: number,
32217
+ tabId?: number,
32173
32218
 
32174
32219
  /**
32175
32220
  * The ID of the process that runs the renderer for this tab.
@@ -32182,7 +32227,7 @@ declare namespace chrome {
32182
32227
  /**
32183
32228
  * The ID of the frame in the given tab.
32184
32229
  */
32185
- frameId: number,
32230
+ frameId?: number,
32186
32231
  },
32187
32232
  ): Promise<{
32188
32233
 
@@ -32214,7 +32259,7 @@ declare namespace chrome {
32214
32259
  /**
32215
32260
  * The ID of the tab in which the frame is.
32216
32261
  */
32217
- tabId: number,
32262
+ tabId?: number,
32218
32263
 
32219
32264
  /**
32220
32265
  * The ID of the process that runs the renderer for this tab.
@@ -32227,7 +32272,7 @@ declare namespace chrome {
32227
32272
  /**
32228
32273
  * The ID of the frame in the given tab.
32229
32274
  */
32230
- frameId: number,
32275
+ frameId?: number,
32231
32276
  },
32232
32277
 
32233
32278
  /**
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Wed Feb 09 2022 22:28:14 GMT+0000 (Coordinated Universal Time)
18
- // Built at 5de99f2d63898410388e1c54d18c8184bbc9a6a4
17
+ // Generated on Tue Mar 01 2022 22:28:01 GMT+0000 (Coordinated Universal Time)
18
+ // Built at ef59a59c1fee2af6315d9eebd0920baf5b494243
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -266,7 +266,7 @@ declare namespace chrome {
266
266
  }
267
267
 
268
268
  /**
269
- * @since Pending
269
+ * @since Chrome 99
270
270
  */
271
271
  export interface OpenPopupOptions {
272
272
 
@@ -660,8 +660,9 @@ declare namespace chrome {
660
660
  /**
661
661
  * Opens the extension's popup.
662
662
  *
663
+ * @chrome-returns-extra since Pending
663
664
  * @param options Specifies options for opening the popup.
664
- * @since Pending
665
+ * @since Chrome 99
665
666
  */
666
667
  export function openPopup(
667
668
 
@@ -672,7 +673,7 @@ declare namespace chrome {
672
673
  * Opens the extension's popup.
673
674
  *
674
675
  * @param options Specifies options for opening the popup.
675
- * @since Pending
676
+ * @since Chrome 99
676
677
  */
677
678
  export function openPopup(
678
679
 
@@ -854,6 +855,7 @@ declare namespace chrome {
854
855
  * @alpha
855
856
  * @chrome-manifest automation
856
857
  * @chrome-channel dev
858
+ * @chrome-disallow-service-workers
857
859
  */
858
860
  export namespace automation {
859
861
 
@@ -3906,7 +3908,7 @@ declare namespace chrome {
3906
3908
  /**
3907
3909
  * Whether the script should inject into any frames where the URL belongs to a scheme that would never match a specified Match Pattern, including about:, data:, blob:, and filesystem: schemes. In these cases, in order to determine if the script should inject, the origin of the URL is checked. If the origin is `null` (as is the case for data: URLs), then the "initiator" or "creator" origin is used (i.e., the origin of the frame that created or navigated this frame). Note that this may not be the parent frame, if the frame was navigated by another frame in the document hierarchy.
3908
3910
  *
3909
- * @since Pending
3911
+ * @since Chrome 99
3910
3912
  */
3911
3913
  match_origin_as_fallback?: boolean;
3912
3914
 
@@ -14422,12 +14424,22 @@ declare namespace chrome {
14422
14424
 
14423
14425
  /**
14424
14426
  * Submits the job for print. If the extension is not listed in PrintingAPIExtensionsAllowlist policy, the user will be prompted to accept the print job.
14427
+ *
14428
+ * @chrome-returns-extra since Pending
14425
14429
  */
14426
14430
  export function submitJob(
14427
14431
 
14428
14432
  request: SubmitJobRequest,
14433
+ ): Promise<SubmitJobResponse>;
14429
14434
 
14430
- callback: (
14435
+ /**
14436
+ * Submits the job for print. If the extension is not listed in PrintingAPIExtensionsAllowlist policy, the user will be prompted to accept the print job.
14437
+ */
14438
+ export function submitJob(
14439
+
14440
+ request: SubmitJobRequest,
14441
+
14442
+ callback?: (
14431
14443
  response: SubmitJobResponse,
14432
14444
  ) => void,
14433
14445
  ): void;
@@ -14435,33 +14447,61 @@ declare namespace chrome {
14435
14447
  /**
14436
14448
  * Cancels previously submitted job.
14437
14449
  *
14450
+ * @chrome-returns-extra since Pending
14438
14451
  * @param jobId The id of the print job to cancel. This should be the same id received in a {@link SubmitJobResponse}.
14439
14452
  */
14440
14453
  export function cancelJob(
14441
14454
 
14442
14455
  jobId: string,
14456
+ ): Promise<void>;
14443
14457
 
14444
- callback: () => void,
14458
+ /**
14459
+ * Cancels previously submitted job.
14460
+ *
14461
+ * @param jobId The id of the print job to cancel. This should be the same id received in a {@link SubmitJobResponse}.
14462
+ */
14463
+ export function cancelJob(
14464
+
14465
+ jobId: string,
14466
+
14467
+ callback?: () => void,
14445
14468
  ): void;
14446
14469
 
14470
+ /**
14471
+ * Returns the list of available printers on the device. This includes manually added, enterprise and discovered printers.
14472
+ *
14473
+ * @chrome-returns-extra since Pending
14474
+ */
14475
+ export function getPrinters(): Promise<Printer[]>;
14476
+
14447
14477
  /**
14448
14478
  * Returns the list of available printers on the device. This includes manually added, enterprise and discovered printers.
14449
14479
  */
14450
14480
  export function getPrinters(
14451
14481
 
14452
- callback: (
14482
+ callback?: (
14453
14483
  printers: Printer[],
14454
14484
  ) => void,
14455
14485
  ): void;
14456
14486
 
14457
14487
  /**
14458
14488
  * Returns the status and capabilities of the printer in [CDD format](https://developers.google.com/cloud-print/docs/cdd#cdd). This call will fail with a runtime error if no printers with given id are installed.
14489
+ *
14490
+ * @chrome-returns-extra since Pending
14459
14491
  */
14460
14492
  export function getPrinterInfo(
14461
14493
 
14462
14494
  printerId: string,
14495
+ ): Promise<GetPrinterInfoResponse>;
14463
14496
 
14464
- callback: (
14497
+ /**
14498
+ * Returns the status and capabilities of the printer in [CDD format](https://developers.google.com/cloud-print/docs/cdd#cdd). This call will fail with a runtime error if no printers with given id are installed.
14499
+ */
14500
+ export function getPrinterInfo(
14501
+
14502
+ printerId: string,
14503
+
14504
+ callback?: (
14465
14505
  response: GetPrinterInfoResponse,
14466
14506
  ) => void,
14467
14507
  ): void;
@@ -15716,7 +15756,7 @@ declare namespace chrome {
15716
15756
 
15717
15757
  /**
15718
15758
  * @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
15719
- * @since Pending
15759
+ * @since Chrome 99
15720
15760
  */
15721
15761
  callback?: (
15722
15762
  response: any,
@@ -15742,7 +15782,7 @@ declare namespace chrome {
15742
15782
 
15743
15783
  /**
15744
15784
  * @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
15745
- * @since Pending
15785
+ * @since Chrome 99
15746
15786
  */
15747
15787
  callback?: (
15748
15788
  response: any,
@@ -15779,7 +15819,7 @@ declare namespace chrome {
15779
15819
 
15780
15820
  /**
15781
15821
  * @param response The response message sent by the native messaging host. If an error occurs while connecting to the native messaging host, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
15782
- * @since Pending
15822
+ * @since Chrome 99
15783
15823
  */
15784
15824
  callback?: (
15785
15825
  response: any,
@@ -18595,7 +18635,7 @@ declare namespace chrome {
18595
18635
 
18596
18636
  /**
18597
18637
  * @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the specified tab, the callback is called with no arguments and {@link runtime.lastError} is set to the error message.
18598
- * @since Pending
18638
+ * @since Chrome 99
18599
18639
  */
18600
18640
  callback?: (
18601
18641
  response: any,
@@ -21455,7 +21495,7 @@ declare namespace chrome {
21455
21495
  /**
21456
21496
  * The ID of the tab in which the frame is.
21457
21497
  */
21458
- tabId: number,
21498
+ tabId?: number,
21459
21499
 
21460
21500
  /**
21461
21501
  * The ID of the process that runs the renderer for this tab.
@@ -21468,7 +21508,7 @@ declare namespace chrome {
21468
21508
  /**
21469
21509
  * The ID of the frame in the given tab.
21470
21510
  */
21471
- frameId: number,
21511
+ frameId?: number,
21472
21512
  },
21473
21513
  ): Promise<{
21474
21514
 
@@ -21500,7 +21540,7 @@ declare namespace chrome {
21500
21540
  /**
21501
21541
  * The ID of the tab in which the frame is.
21502
21542
  */
21503
- tabId: number,
21543
+ tabId?: number,
21504
21544
 
21505
21545
  /**
21506
21546
  * The ID of the process that runs the renderer for this tab.
@@ -21513,7 +21553,7 @@ declare namespace chrome {
21513
21553
  /**
21514
21554
  * The ID of the frame in the given tab.
21515
21555
  */
21516
- frameId: number,
21556
+ frameId?: number,
21517
21557
  },
21518
21558
 
21519
21559
  /**
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "b7a71e6f500926e0"
8
+ "build-hash": "fd1f46065e5a50b7"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
@@ -16,5 +16,5 @@
16
16
  "url": "https://github.com/GoogleChrome/chrome-types/issues"
17
17
  },
18
18
  "homepage": "https://github.com/GoogleChrome/chrome-types",
19
- "version": "0.1.87"
19
+ "version": "0.1.90"
20
20
  }