chrome-types 0.1.84 → 0.1.88

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 +95 -10
  2. package/index.d.ts +95 -10
  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 Thu Jan 27 2022 22:27:05 GMT+0000 (Coordinated Universal Time)
18
- // Built at cf396c239436e0250cece84a6ec008fcce6a6cff
17
+ // Generated on Thu Feb 17 2022 22:27:57 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 2f4279452de958d9539298dd7c0740dea7790af4
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -1839,6 +1839,7 @@ declare namespace chrome {
1839
1839
  * @alpha
1840
1840
  * @chrome-manifest automation
1841
1841
  * @chrome-channel dev
1842
+ * @chrome-disallow-service-workers
1842
1843
  */
1843
1844
  export namespace automation {
1844
1845
 
@@ -17369,8 +17370,9 @@ declare namespace chrome {
17369
17370
  * @chrome-enum "IN\_LOGIN\_SCREEN" The user is in the login screen.
17370
17371
  * @chrome-enum "IN\_SESSION" The user is in the session.
17371
17372
  * @chrome-enum "IN\_LOCK\_SCREEN" The user is in the lock screen.
17373
+ * @chrome-enum "IN\_RMA\_SCREEN" The device is in RMA mode, finalizing repairs.
17372
17374
  */
17373
- export type SessionState = "UNKNOWN" | "IN_OOBE_SCREEN" | "IN_LOGIN_SCREEN" | "IN_SESSION" | "IN_LOCK_SCREEN";
17375
+ export type SessionState = "UNKNOWN" | "IN_OOBE_SCREEN" | "IN_LOGIN_SCREEN" | "IN_SESSION" | "IN_LOCK_SCREEN" | "IN_RMA_SCREEN";
17374
17376
 
17375
17377
  /**
17376
17378
  * Dispatched when the session state changes. `sessionState` is the new session state.
@@ -20727,6 +20729,17 @@ declare namespace chrome {
20727
20729
  text: string,
20728
20730
  ) => void>;
20729
20731
 
20732
+ /**
20733
+ * 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.
20734
+ *
20735
+ * @chrome-returns-extra since Pending
20736
+ * @param suggestion A partial SuggestResult object, without the 'content' parameter.
20737
+ */
20738
+ export function setDefaultSuggestion(
20739
+
20740
+ suggestion: DefaultSuggestResult,
20741
+ ): Promise<void>;
20742
+
20730
20743
  /**
20731
20744
  * 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.
20732
20745
  *
@@ -20735,6 +20748,11 @@ declare namespace chrome {
20735
20748
  export function setDefaultSuggestion(
20736
20749
 
20737
20750
  suggestion: DefaultSuggestResult,
20751
+
20752
+ /**
20753
+ * @since Pending
20754
+ */
20755
+ callback?: () => void,
20738
20756
  ): void;
20739
20757
  }
20740
20758
 
@@ -31491,6 +31509,28 @@ declare namespace chrome {
31491
31509
  requestDetailsJson: string;
31492
31510
  }
31493
31511
 
31512
+ export interface GetRequest {
31513
+
31514
+ /**
31515
+ * An opaque identifier for the request.
31516
+ */
31517
+ requestId: number;
31518
+
31519
+ /**
31520
+ * An JSON serialized representation of the PublicKeyCredentialRequestOptions passed to navigator.credentials.get().
31521
+ *
31522
+ * TODO(crbug.com/1231802): Reference deserialization method or document format.
31523
+ */
31524
+ requestDetailsJson: string;
31525
+ }
31526
+
31527
+ export interface DOMExceptionDetails {
31528
+
31529
+ name: string;
31530
+
31531
+ message: string;
31532
+ }
31533
+
31494
31534
  export interface CreateResponseDetails {
31495
31535
 
31496
31536
  /**
@@ -31499,9 +31539,29 @@ declare namespace chrome {
31499
31539
  requestId: number;
31500
31540
 
31501
31541
  /**
31502
- * The `name` property of the `DOMException`, if any, yielded by the remote request.
31542
+ * The `DOMException`, if any, yielded by the remote request.
31543
+ */
31544
+ error?: DOMExceptionDetails;
31545
+
31546
+ /**
31547
+ * A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
31548
+ *
31549
+ * TODO(crbug.com/1231802): Reference serialization method or document format.
31550
+ */
31551
+ responseJson?: string;
31552
+ }
31553
+
31554
+ export interface GetResponseDetails {
31555
+
31556
+ /**
31557
+ * The requestId of the `CreateRequest`.
31558
+ */
31559
+ requestId: number;
31560
+
31561
+ /**
31562
+ * The `DOMException`, if any, yielded by the remote request.
31503
31563
  */
31504
- errorName?: string;
31564
+ error?: DOMExceptionDetails;
31505
31565
 
31506
31566
  /**
31507
31567
  * A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
@@ -31519,12 +31579,19 @@ declare namespace chrome {
31519
31579
  }
31520
31580
 
31521
31581
  /**
31522
- * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateCredentialRequest() with the given requestId.
31582
+ * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
31523
31583
  */
31524
31584
  export const onCreateRequest: events.Event<(
31525
31585
  requestInfo: CreateRequest,
31526
31586
  ) => void>;
31527
31587
 
31588
+ /**
31589
+ * Fires when a WebAuthn navigator.credentials.get() call occurs. The extension must supply a response by calling completeGetRequest() with the given requestId.
31590
+ */
31591
+ export const onGetRequest: events.Event<(
31592
+ requestInfo: GetRequest,
31593
+ ) => void>;
31594
+
31528
31595
  /**
31529
31596
  * Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
31530
31597
  */
@@ -31540,7 +31607,7 @@ declare namespace chrome {
31540
31607
  ) => void>;
31541
31608
 
31542
31609
  /**
31543
- * 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.
31610
+ * 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).
31544
31611
  */
31545
31612
  export function completeCreateRequest(
31546
31613
 
@@ -31548,7 +31615,7 @@ declare namespace chrome {
31548
31615
  ): Promise<void>;
31549
31616
 
31550
31617
  /**
31551
- * 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.
31618
+ * 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).
31552
31619
  */
31553
31620
  export function completeCreateRequest(
31554
31621
 
@@ -31558,7 +31625,25 @@ declare namespace chrome {
31558
31625
  ): void;
31559
31626
 
31560
31627
  /**
31561
- * 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.
31628
+ * 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).
31629
+ */
31630
+ export function completeGetRequest(
31631
+
31632
+ details: GetResponseDetails,
31633
+ ): Promise<void>;
31634
+
31635
+ /**
31636
+ * 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).
31637
+ */
31638
+ export function completeGetRequest(
31639
+
31640
+ details: GetResponseDetails,
31641
+
31642
+ callback?: () => void,
31643
+ ): void;
31644
+
31645
+ /**
31646
+ * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
31562
31647
  */
31563
31648
  export function completeIsUvpaaRequest(
31564
31649
 
@@ -31566,7 +31651,7 @@ declare namespace chrome {
31566
31651
  ): Promise<void>;
31567
31652
 
31568
31653
  /**
31569
- * 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.
31654
+ * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
31570
31655
  */
31571
31656
  export function completeIsUvpaaRequest(
31572
31657
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Thu Jan 27 2022 22:27:00 GMT+0000 (Coordinated Universal Time)
18
- // Built at cf396c239436e0250cece84a6ec008fcce6a6cff
17
+ // Generated on Thu Feb 17 2022 22:27:53 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 2f4279452de958d9539298dd7c0740dea7790af4
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -854,6 +854,7 @@ declare namespace chrome {
854
854
  * @alpha
855
855
  * @chrome-manifest automation
856
856
  * @chrome-channel dev
857
+ * @chrome-disallow-service-workers
857
858
  */
858
859
  export namespace automation {
859
860
 
@@ -12670,8 +12671,9 @@ declare namespace chrome {
12670
12671
  * @chrome-enum "IN\_LOGIN\_SCREEN" The user is in the login screen.
12671
12672
  * @chrome-enum "IN\_SESSION" The user is in the session.
12672
12673
  * @chrome-enum "IN\_LOCK\_SCREEN" The user is in the lock screen.
12674
+ * @chrome-enum "IN\_RMA\_SCREEN" The device is in RMA mode, finalizing repairs.
12673
12675
  */
12674
- export type SessionState = "UNKNOWN" | "IN_OOBE_SCREEN" | "IN_LOGIN_SCREEN" | "IN_SESSION" | "IN_LOCK_SCREEN";
12676
+ export type SessionState = "UNKNOWN" | "IN_OOBE_SCREEN" | "IN_LOGIN_SCREEN" | "IN_SESSION" | "IN_LOCK_SCREEN" | "IN_RMA_SCREEN";
12675
12677
 
12676
12678
  /**
12677
12679
  * Dispatched when the session state changes. `sessionState` is the new session state.
@@ -13785,6 +13787,17 @@ declare namespace chrome {
13785
13787
  text: string,
13786
13788
  ) => void>;
13787
13789
 
13790
+ /**
13791
+ * 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.
13792
+ *
13793
+ * @chrome-returns-extra since Pending
13794
+ * @param suggestion A partial SuggestResult object, without the 'content' parameter.
13795
+ */
13796
+ export function setDefaultSuggestion(
13797
+
13798
+ suggestion: DefaultSuggestResult,
13799
+ ): Promise<void>;
13800
+
13788
13801
  /**
13789
13802
  * 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.
13790
13803
  *
@@ -13793,6 +13806,11 @@ declare namespace chrome {
13793
13806
  export function setDefaultSuggestion(
13794
13807
 
13795
13808
  suggestion: DefaultSuggestResult,
13809
+
13810
+ /**
13811
+ * @since Pending
13812
+ */
13813
+ callback?: () => void,
13796
13814
  ): void;
13797
13815
  }
13798
13816
 
@@ -20777,6 +20795,28 @@ declare namespace chrome {
20777
20795
  requestDetailsJson: string;
20778
20796
  }
20779
20797
 
20798
+ export interface GetRequest {
20799
+
20800
+ /**
20801
+ * An opaque identifier for the request.
20802
+ */
20803
+ requestId: number;
20804
+
20805
+ /**
20806
+ * An JSON serialized representation of the PublicKeyCredentialRequestOptions passed to navigator.credentials.get().
20807
+ *
20808
+ * TODO(crbug.com/1231802): Reference deserialization method or document format.
20809
+ */
20810
+ requestDetailsJson: string;
20811
+ }
20812
+
20813
+ export interface DOMExceptionDetails {
20814
+
20815
+ name: string;
20816
+
20817
+ message: string;
20818
+ }
20819
+
20780
20820
  export interface CreateResponseDetails {
20781
20821
 
20782
20822
  /**
@@ -20785,9 +20825,29 @@ declare namespace chrome {
20785
20825
  requestId: number;
20786
20826
 
20787
20827
  /**
20788
- * The `name` property of the `DOMException`, if any, yielded by the remote request.
20828
+ * The `DOMException`, if any, yielded by the remote request.
20829
+ */
20830
+ error?: DOMExceptionDetails;
20831
+
20832
+ /**
20833
+ * A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
20834
+ *
20835
+ * TODO(crbug.com/1231802): Reference serialization method or document format.
20836
+ */
20837
+ responseJson?: string;
20838
+ }
20839
+
20840
+ export interface GetResponseDetails {
20841
+
20842
+ /**
20843
+ * The requestId of the `CreateRequest`.
20844
+ */
20845
+ requestId: number;
20846
+
20847
+ /**
20848
+ * The `DOMException`, if any, yielded by the remote request.
20789
20849
  */
20790
- errorName?: string;
20850
+ error?: DOMExceptionDetails;
20791
20851
 
20792
20852
  /**
20793
20853
  * A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
@@ -20805,12 +20865,19 @@ declare namespace chrome {
20805
20865
  }
20806
20866
 
20807
20867
  /**
20808
- * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateCredentialRequest() with the given requestId.
20868
+ * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
20809
20869
  */
20810
20870
  export const onCreateRequest: events.Event<(
20811
20871
  requestInfo: CreateRequest,
20812
20872
  ) => void>;
20813
20873
 
20874
+ /**
20875
+ * Fires when a WebAuthn navigator.credentials.get() call occurs. The extension must supply a response by calling completeGetRequest() with the given requestId.
20876
+ */
20877
+ export const onGetRequest: events.Event<(
20878
+ requestInfo: GetRequest,
20879
+ ) => void>;
20880
+
20814
20881
  /**
20815
20882
  * Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
20816
20883
  */
@@ -20826,7 +20893,7 @@ declare namespace chrome {
20826
20893
  ) => void>;
20827
20894
 
20828
20895
  /**
20829
- * 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.
20896
+ * 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).
20830
20897
  */
20831
20898
  export function completeCreateRequest(
20832
20899
 
@@ -20834,7 +20901,7 @@ declare namespace chrome {
20834
20901
  ): Promise<void>;
20835
20902
 
20836
20903
  /**
20837
- * 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.
20904
+ * 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).
20838
20905
  */
20839
20906
  export function completeCreateRequest(
20840
20907
 
@@ -20844,7 +20911,25 @@ declare namespace chrome {
20844
20911
  ): void;
20845
20912
 
20846
20913
  /**
20847
- * 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.
20914
+ * 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).
20915
+ */
20916
+ export function completeGetRequest(
20917
+
20918
+ details: GetResponseDetails,
20919
+ ): Promise<void>;
20920
+
20921
+ /**
20922
+ * 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).
20923
+ */
20924
+ export function completeGetRequest(
20925
+
20926
+ details: GetResponseDetails,
20927
+
20928
+ callback?: () => void,
20929
+ ): void;
20930
+
20931
+ /**
20932
+ * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
20848
20933
  */
20849
20934
  export function completeIsUvpaaRequest(
20850
20935
 
@@ -20852,7 +20937,7 @@ declare namespace chrome {
20852
20937
  ): Promise<void>;
20853
20938
 
20854
20939
  /**
20855
- * 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.
20940
+ * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
20856
20941
  */
20857
20942
  export function completeIsUvpaaRequest(
20858
20943
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "51015783bc3937c8"
8
+ "build-hash": "bf70dc6175255465"
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.84"
19
+ "version": "0.1.88"
20
20
  }