chrome-types 0.1.83 → 0.1.87

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 +94 -11
  2. package/index.d.ts +94 -11
  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 Tue Jan 25 2022 22:28:04 GMT+0000 (Coordinated Universal Time)
18
- // Built at 804fcff8a78eb3b4ab17d14405602d38c7c8a41a
17
+ // Generated on Wed Feb 09 2022 22:28:20 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 5de99f2d63898410388e1c54d18c8184bbc9a6a4
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -15915,7 +15915,6 @@ declare namespace chrome {
15915
15915
  * @param messageName The name of the message, as specified in the [`messages.json`](https://developer.chrome.com/extensions/i18n-messages) file.
15916
15916
  * @param substitutions Up to 9 substitution strings, if the message requires any.
15917
15917
  * @returns Message localized for current locale.
15918
- * @chrome-disallow-service-workers
15919
15918
  */
15920
15919
  export function getMessage(
15921
15920
 
@@ -17370,8 +17369,9 @@ declare namespace chrome {
17370
17369
  * @chrome-enum "IN\_LOGIN\_SCREEN" The user is in the login screen.
17371
17370
  * @chrome-enum "IN\_SESSION" The user is in the session.
17372
17371
  * @chrome-enum "IN\_LOCK\_SCREEN" The user is in the lock screen.
17372
+ * @chrome-enum "IN\_RMA\_SCREEN" The device is in RMA mode, finalizing repairs.
17373
17373
  */
17374
- export type SessionState = "UNKNOWN" | "IN_OOBE_SCREEN" | "IN_LOGIN_SCREEN" | "IN_SESSION" | "IN_LOCK_SCREEN";
17374
+ export type SessionState = "UNKNOWN" | "IN_OOBE_SCREEN" | "IN_LOGIN_SCREEN" | "IN_SESSION" | "IN_LOCK_SCREEN" | "IN_RMA_SCREEN";
17375
17375
 
17376
17376
  /**
17377
17377
  * Dispatched when the session state changes. `sessionState` is the new session state.
@@ -20728,6 +20728,17 @@ declare namespace chrome {
20728
20728
  text: string,
20729
20729
  ) => void>;
20730
20730
 
20731
+ /**
20732
+ * Sets the description and styling for the default suggestion. The default suggestion is the text that is displayed in the first suggestion row underneath the URL bar.
20733
+ *
20734
+ * @chrome-returns-extra since Pending
20735
+ * @param suggestion A partial SuggestResult object, without the 'content' parameter.
20736
+ */
20737
+ export function setDefaultSuggestion(
20738
+
20739
+ suggestion: DefaultSuggestResult,
20740
+ ): Promise<void>;
20741
+
20731
20742
  /**
20732
20743
  * Sets the description and styling for the default suggestion. The default suggestion is the text that is displayed in the first suggestion row underneath the URL bar.
20733
20744
  *
@@ -20736,6 +20747,11 @@ declare namespace chrome {
20736
20747
  export function setDefaultSuggestion(
20737
20748
 
20738
20749
  suggestion: DefaultSuggestResult,
20750
+
20751
+ /**
20752
+ * @since Pending
20753
+ */
20754
+ callback?: () => void,
20739
20755
  ): void;
20740
20756
  }
20741
20757
 
@@ -31492,6 +31508,28 @@ declare namespace chrome {
31492
31508
  requestDetailsJson: string;
31493
31509
  }
31494
31510
 
31511
+ export interface GetRequest {
31512
+
31513
+ /**
31514
+ * An opaque identifier for the request.
31515
+ */
31516
+ requestId: number;
31517
+
31518
+ /**
31519
+ * An JSON serialized representation of the PublicKeyCredentialRequestOptions passed to navigator.credentials.get().
31520
+ *
31521
+ * TODO(crbug.com/1231802): Reference deserialization method or document format.
31522
+ */
31523
+ requestDetailsJson: string;
31524
+ }
31525
+
31526
+ export interface DOMExceptionDetails {
31527
+
31528
+ name: string;
31529
+
31530
+ message: string;
31531
+ }
31532
+
31495
31533
  export interface CreateResponseDetails {
31496
31534
 
31497
31535
  /**
@@ -31500,9 +31538,29 @@ declare namespace chrome {
31500
31538
  requestId: number;
31501
31539
 
31502
31540
  /**
31503
- * The `name` property of the `DOMException`, if any, yielded by the remote request.
31541
+ * The `DOMException`, if any, yielded by the remote request.
31542
+ */
31543
+ error?: DOMExceptionDetails;
31544
+
31545
+ /**
31546
+ * A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
31547
+ *
31548
+ * TODO(crbug.com/1231802): Reference serialization method or document format.
31549
+ */
31550
+ responseJson?: string;
31551
+ }
31552
+
31553
+ export interface GetResponseDetails {
31554
+
31555
+ /**
31556
+ * The requestId of the `CreateRequest`.
31557
+ */
31558
+ requestId: number;
31559
+
31560
+ /**
31561
+ * The `DOMException`, if any, yielded by the remote request.
31504
31562
  */
31505
- errorName?: string;
31563
+ error?: DOMExceptionDetails;
31506
31564
 
31507
31565
  /**
31508
31566
  * A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
@@ -31520,12 +31578,19 @@ declare namespace chrome {
31520
31578
  }
31521
31579
 
31522
31580
  /**
31523
- * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateCredentialRequest() with the given requestId.
31581
+ * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
31524
31582
  */
31525
31583
  export const onCreateRequest: events.Event<(
31526
31584
  requestInfo: CreateRequest,
31527
31585
  ) => void>;
31528
31586
 
31587
+ /**
31588
+ * Fires when a WebAuthn navigator.credentials.get() call occurs. The extension must supply a response by calling completeGetRequest() with the given requestId.
31589
+ */
31590
+ export const onGetRequest: events.Event<(
31591
+ requestInfo: GetRequest,
31592
+ ) => void>;
31593
+
31529
31594
  /**
31530
31595
  * Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
31531
31596
  */
@@ -31541,7 +31606,7 @@ declare namespace chrome {
31541
31606
  ) => void>;
31542
31607
 
31543
31608
  /**
31544
- * Reports the result of a navigator.credentials.create() call. The extension must call this for every onCreateRequest event it has received; but not if onRequestCanceled has been called for that particular requestId.
31609
+ * Reports the result of a navigator.credentials.create() call. The extension must call this for every onCreateRequest event it has received, unless the request was canceled (in which case, an onRequestCanceled event is fired).
31545
31610
  */
31546
31611
  export function completeCreateRequest(
31547
31612
 
@@ -31549,7 +31614,7 @@ declare namespace chrome {
31549
31614
  ): Promise<void>;
31550
31615
 
31551
31616
  /**
31552
- * Reports the result of a navigator.credentials.create() call. The extension must call this for every onCreateRequest event it has received; but not if onRequestCanceled has been called for that particular requestId.
31617
+ * Reports the result of a navigator.credentials.create() call. The extension must call this for every onCreateRequest event it has received, unless the request was canceled (in which case, an onRequestCanceled event is fired).
31553
31618
  */
31554
31619
  export function completeCreateRequest(
31555
31620
 
@@ -31559,7 +31624,25 @@ declare namespace chrome {
31559
31624
  ): void;
31560
31625
 
31561
31626
  /**
31562
- * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received; but not if onRequestCanceled has been called for that particular requestId.
31627
+ * Reports the result of a navigator.credentials.get() call. The extension must call this for every onGetRequest event it has received, unless the request was canceled (in which case, an onRequestCanceled event is fired).
31628
+ */
31629
+ export function completeGetRequest(
31630
+
31631
+ details: GetResponseDetails,
31632
+ ): Promise<void>;
31633
+
31634
+ /**
31635
+ * Reports the result of a navigator.credentials.get() call. The extension must call this for every onGetRequest event it has received, unless the request was canceled (in which case, an onRequestCanceled event is fired).
31636
+ */
31637
+ export function completeGetRequest(
31638
+
31639
+ details: GetResponseDetails,
31640
+
31641
+ callback?: () => void,
31642
+ ): void;
31643
+
31644
+ /**
31645
+ * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
31563
31646
  */
31564
31647
  export function completeIsUvpaaRequest(
31565
31648
 
@@ -31567,7 +31650,7 @@ declare namespace chrome {
31567
31650
  ): Promise<void>;
31568
31651
 
31569
31652
  /**
31570
- * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received; but not if onRequestCanceled has been called for that particular requestId.
31653
+ * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
31571
31654
  */
31572
31655
  export function completeIsUvpaaRequest(
31573
31656
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Tue Jan 25 2022 22:27:59 GMT+0000 (Coordinated Universal Time)
18
- // Built at 804fcff8a78eb3b4ab17d14405602d38c7c8a41a
17
+ // Generated on Wed Feb 09 2022 22:28:14 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 5de99f2d63898410388e1c54d18c8184bbc9a6a4
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -11216,7 +11216,6 @@ declare namespace chrome {
11216
11216
  * @param messageName The name of the message, as specified in the [`messages.json`](https://developer.chrome.com/extensions/i18n-messages) file.
11217
11217
  * @param substitutions Up to 9 substitution strings, if the message requires any.
11218
11218
  * @returns Message localized for current locale.
11219
- * @chrome-disallow-service-workers
11220
11219
  */
11221
11220
  export function getMessage(
11222
11221
 
@@ -12671,8 +12670,9 @@ declare namespace chrome {
12671
12670
  * @chrome-enum "IN\_LOGIN\_SCREEN" The user is in the login screen.
12672
12671
  * @chrome-enum "IN\_SESSION" The user is in the session.
12673
12672
  * @chrome-enum "IN\_LOCK\_SCREEN" The user is in the lock screen.
12673
+ * @chrome-enum "IN\_RMA\_SCREEN" The device is in RMA mode, finalizing repairs.
12674
12674
  */
12675
- export type SessionState = "UNKNOWN" | "IN_OOBE_SCREEN" | "IN_LOGIN_SCREEN" | "IN_SESSION" | "IN_LOCK_SCREEN";
12675
+ export type SessionState = "UNKNOWN" | "IN_OOBE_SCREEN" | "IN_LOGIN_SCREEN" | "IN_SESSION" | "IN_LOCK_SCREEN" | "IN_RMA_SCREEN";
12676
12676
 
12677
12677
  /**
12678
12678
  * Dispatched when the session state changes. `sessionState` is the new session state.
@@ -13786,6 +13786,17 @@ declare namespace chrome {
13786
13786
  text: string,
13787
13787
  ) => void>;
13788
13788
 
13789
+ /**
13790
+ * Sets the description and styling for the default suggestion. The default suggestion is the text that is displayed in the first suggestion row underneath the URL bar.
13791
+ *
13792
+ * @chrome-returns-extra since Pending
13793
+ * @param suggestion A partial SuggestResult object, without the 'content' parameter.
13794
+ */
13795
+ export function setDefaultSuggestion(
13796
+
13797
+ suggestion: DefaultSuggestResult,
13798
+ ): Promise<void>;
13799
+
13789
13800
  /**
13790
13801
  * Sets the description and styling for the default suggestion. The default suggestion is the text that is displayed in the first suggestion row underneath the URL bar.
13791
13802
  *
@@ -13794,6 +13805,11 @@ declare namespace chrome {
13794
13805
  export function setDefaultSuggestion(
13795
13806
 
13796
13807
  suggestion: DefaultSuggestResult,
13808
+
13809
+ /**
13810
+ * @since Pending
13811
+ */
13812
+ callback?: () => void,
13797
13813
  ): void;
13798
13814
  }
13799
13815
 
@@ -20778,6 +20794,28 @@ declare namespace chrome {
20778
20794
  requestDetailsJson: string;
20779
20795
  }
20780
20796
 
20797
+ export interface GetRequest {
20798
+
20799
+ /**
20800
+ * An opaque identifier for the request.
20801
+ */
20802
+ requestId: number;
20803
+
20804
+ /**
20805
+ * An JSON serialized representation of the PublicKeyCredentialRequestOptions passed to navigator.credentials.get().
20806
+ *
20807
+ * TODO(crbug.com/1231802): Reference deserialization method or document format.
20808
+ */
20809
+ requestDetailsJson: string;
20810
+ }
20811
+
20812
+ export interface DOMExceptionDetails {
20813
+
20814
+ name: string;
20815
+
20816
+ message: string;
20817
+ }
20818
+
20781
20819
  export interface CreateResponseDetails {
20782
20820
 
20783
20821
  /**
@@ -20786,9 +20824,29 @@ declare namespace chrome {
20786
20824
  requestId: number;
20787
20825
 
20788
20826
  /**
20789
- * The `name` property of the `DOMException`, if any, yielded by the remote request.
20827
+ * The `DOMException`, if any, yielded by the remote request.
20828
+ */
20829
+ error?: DOMExceptionDetails;
20830
+
20831
+ /**
20832
+ * A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
20833
+ *
20834
+ * TODO(crbug.com/1231802): Reference serialization method or document format.
20835
+ */
20836
+ responseJson?: string;
20837
+ }
20838
+
20839
+ export interface GetResponseDetails {
20840
+
20841
+ /**
20842
+ * The requestId of the `CreateRequest`.
20843
+ */
20844
+ requestId: number;
20845
+
20846
+ /**
20847
+ * The `DOMException`, if any, yielded by the remote request.
20790
20848
  */
20791
- errorName?: string;
20849
+ error?: DOMExceptionDetails;
20792
20850
 
20793
20851
  /**
20794
20852
  * A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
@@ -20806,12 +20864,19 @@ declare namespace chrome {
20806
20864
  }
20807
20865
 
20808
20866
  /**
20809
- * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateCredentialRequest() with the given requestId.
20867
+ * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
20810
20868
  */
20811
20869
  export const onCreateRequest: events.Event<(
20812
20870
  requestInfo: CreateRequest,
20813
20871
  ) => void>;
20814
20872
 
20873
+ /**
20874
+ * Fires when a WebAuthn navigator.credentials.get() call occurs. The extension must supply a response by calling completeGetRequest() with the given requestId.
20875
+ */
20876
+ export const onGetRequest: events.Event<(
20877
+ requestInfo: GetRequest,
20878
+ ) => void>;
20879
+
20815
20880
  /**
20816
20881
  * Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
20817
20882
  */
@@ -20827,7 +20892,7 @@ declare namespace chrome {
20827
20892
  ) => void>;
20828
20893
 
20829
20894
  /**
20830
- * Reports the result of a navigator.credentials.create() call. The extension must call this for every onCreateRequest event it has received; but not if onRequestCanceled has been called for that particular requestId.
20895
+ * Reports the result of a navigator.credentials.create() call. The extension must call this for every onCreateRequest event it has received, unless the request was canceled (in which case, an onRequestCanceled event is fired).
20831
20896
  */
20832
20897
  export function completeCreateRequest(
20833
20898
 
@@ -20835,7 +20900,7 @@ declare namespace chrome {
20835
20900
  ): Promise<void>;
20836
20901
 
20837
20902
  /**
20838
- * Reports the result of a navigator.credentials.create() call. The extension must call this for every onCreateRequest event it has received; but not if onRequestCanceled has been called for that particular requestId.
20903
+ * Reports the result of a navigator.credentials.create() call. The extension must call this for every onCreateRequest event it has received, unless the request was canceled (in which case, an onRequestCanceled event is fired).
20839
20904
  */
20840
20905
  export function completeCreateRequest(
20841
20906
 
@@ -20845,7 +20910,25 @@ declare namespace chrome {
20845
20910
  ): void;
20846
20911
 
20847
20912
  /**
20848
- * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received; but not if onRequestCanceled has been called for that particular requestId.
20913
+ * Reports the result of a navigator.credentials.get() call. The extension must call this for every onGetRequest event it has received, unless the request was canceled (in which case, an onRequestCanceled event is fired).
20914
+ */
20915
+ export function completeGetRequest(
20916
+
20917
+ details: GetResponseDetails,
20918
+ ): Promise<void>;
20919
+
20920
+ /**
20921
+ * Reports the result of a navigator.credentials.get() call. The extension must call this for every onGetRequest event it has received, unless the request was canceled (in which case, an onRequestCanceled event is fired).
20922
+ */
20923
+ export function completeGetRequest(
20924
+
20925
+ details: GetResponseDetails,
20926
+
20927
+ callback?: () => void,
20928
+ ): void;
20929
+
20930
+ /**
20931
+ * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
20849
20932
  */
20850
20933
  export function completeIsUvpaaRequest(
20851
20934
 
@@ -20853,7 +20936,7 @@ declare namespace chrome {
20853
20936
  ): Promise<void>;
20854
20937
 
20855
20938
  /**
20856
- * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received; but not if onRequestCanceled has been called for that particular requestId.
20939
+ * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
20857
20940
  */
20858
20941
  export function completeIsUvpaaRequest(
20859
20942
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "be4acf675a392b27"
8
+ "build-hash": "b7a71e6f500926e0"
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.83"
19
+ "version": "0.1.87"
20
20
  }