chrome-types 0.1.85 → 0.1.86

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 -7
  2. package/index.d.ts +67 -7
  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 Fri Jan 28 2022 04:52:02 GMT+0000 (Coordinated Universal Time)
18
- // Built at b6e837b5eb177ef37cdb563a6ba7895960619541
17
+ // Generated on Thu Feb 03 2022 22:30:14 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 27124edddb3bedc7b89edf1147a3437c82851fd4
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -31491,6 +31491,21 @@ declare namespace chrome {
31491
31491
  requestDetailsJson: string;
31492
31492
  }
31493
31493
 
31494
+ export interface GetRequest {
31495
+
31496
+ /**
31497
+ * An opaque identifier for the request.
31498
+ */
31499
+ requestId: number;
31500
+
31501
+ /**
31502
+ * An JSON serialized representation of the PublicKeyCredentialRequestOptions passed to navigator.credentials.get().
31503
+ *
31504
+ * TODO(crbug.com/1231802): Reference deserialization method or document format.
31505
+ */
31506
+ requestDetailsJson: string;
31507
+ }
31508
+
31494
31509
  export interface DOMExceptionDetails {
31495
31510
 
31496
31511
  name: string;
@@ -31518,6 +31533,26 @@ declare namespace chrome {
31518
31533
  responseJson?: string;
31519
31534
  }
31520
31535
 
31536
+ export interface GetResponseDetails {
31537
+
31538
+ /**
31539
+ * The requestId of the `CreateRequest`.
31540
+ */
31541
+ requestId: number;
31542
+
31543
+ /**
31544
+ * The `DOMException`, if any, yielded by the remote request.
31545
+ */
31546
+ error?: DOMExceptionDetails;
31547
+
31548
+ /**
31549
+ * A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
31550
+ *
31551
+ * TODO(crbug.com/1231802): Reference serialization method or document format.
31552
+ */
31553
+ responseJson?: string;
31554
+ }
31555
+
31521
31556
  export interface IsUvpaaResponseDetails {
31522
31557
 
31523
31558
  requestId: number;
@@ -31526,12 +31561,19 @@ declare namespace chrome {
31526
31561
  }
31527
31562
 
31528
31563
  /**
31529
- * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateCredentialRequest() with the given requestId.
31564
+ * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
31530
31565
  */
31531
31566
  export const onCreateRequest: events.Event<(
31532
31567
  requestInfo: CreateRequest,
31533
31568
  ) => void>;
31534
31569
 
31570
+ /**
31571
+ * Fires when a WebAuthn navigator.credentials.get() call occurs. The extension must supply a response by calling completeGetRequest() with the given requestId.
31572
+ */
31573
+ export const onGetRequest: events.Event<(
31574
+ requestInfo: GetRequest,
31575
+ ) => void>;
31576
+
31535
31577
  /**
31536
31578
  * Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
31537
31579
  */
@@ -31547,7 +31589,7 @@ declare namespace chrome {
31547
31589
  ) => void>;
31548
31590
 
31549
31591
  /**
31550
- * 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.
31592
+ * 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).
31551
31593
  */
31552
31594
  export function completeCreateRequest(
31553
31595
 
@@ -31555,7 +31597,7 @@ declare namespace chrome {
31555
31597
  ): Promise<void>;
31556
31598
 
31557
31599
  /**
31558
- * 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.
31600
+ * 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).
31559
31601
  */
31560
31602
  export function completeCreateRequest(
31561
31603
 
@@ -31565,7 +31607,25 @@ declare namespace chrome {
31565
31607
  ): void;
31566
31608
 
31567
31609
  /**
31568
- * 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.
31610
+ * 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).
31611
+ */
31612
+ export function completeGetRequest(
31613
+
31614
+ details: GetResponseDetails,
31615
+ ): Promise<void>;
31616
+
31617
+ /**
31618
+ * 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).
31619
+ */
31620
+ export function completeGetRequest(
31621
+
31622
+ details: GetResponseDetails,
31623
+
31624
+ callback?: () => void,
31625
+ ): void;
31626
+
31627
+ /**
31628
+ * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
31569
31629
  */
31570
31630
  export function completeIsUvpaaRequest(
31571
31631
 
@@ -31573,7 +31633,7 @@ declare namespace chrome {
31573
31633
  ): Promise<void>;
31574
31634
 
31575
31635
  /**
31576
- * 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.
31636
+ * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
31577
31637
  */
31578
31638
  export function completeIsUvpaaRequest(
31579
31639
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Fri Jan 28 2022 04:51:58 GMT+0000 (Coordinated Universal Time)
18
- // Built at b6e837b5eb177ef37cdb563a6ba7895960619541
17
+ // Generated on Thu Feb 03 2022 22:30:10 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 27124edddb3bedc7b89edf1147a3437c82851fd4
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -20777,6 +20777,21 @@ declare namespace chrome {
20777
20777
  requestDetailsJson: string;
20778
20778
  }
20779
20779
 
20780
+ export interface GetRequest {
20781
+
20782
+ /**
20783
+ * An opaque identifier for the request.
20784
+ */
20785
+ requestId: number;
20786
+
20787
+ /**
20788
+ * An JSON serialized representation of the PublicKeyCredentialRequestOptions passed to navigator.credentials.get().
20789
+ *
20790
+ * TODO(crbug.com/1231802): Reference deserialization method or document format.
20791
+ */
20792
+ requestDetailsJson: string;
20793
+ }
20794
+
20780
20795
  export interface DOMExceptionDetails {
20781
20796
 
20782
20797
  name: string;
@@ -20804,6 +20819,26 @@ declare namespace chrome {
20804
20819
  responseJson?: string;
20805
20820
  }
20806
20821
 
20822
+ export interface GetResponseDetails {
20823
+
20824
+ /**
20825
+ * The requestId of the `CreateRequest`.
20826
+ */
20827
+ requestId: number;
20828
+
20829
+ /**
20830
+ * The `DOMException`, if any, yielded by the remote request.
20831
+ */
20832
+ error?: DOMExceptionDetails;
20833
+
20834
+ /**
20835
+ * A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
20836
+ *
20837
+ * TODO(crbug.com/1231802): Reference serialization method or document format.
20838
+ */
20839
+ responseJson?: string;
20840
+ }
20841
+
20807
20842
  export interface IsUvpaaResponseDetails {
20808
20843
 
20809
20844
  requestId: number;
@@ -20812,12 +20847,19 @@ declare namespace chrome {
20812
20847
  }
20813
20848
 
20814
20849
  /**
20815
- * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateCredentialRequest() with the given requestId.
20850
+ * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
20816
20851
  */
20817
20852
  export const onCreateRequest: events.Event<(
20818
20853
  requestInfo: CreateRequest,
20819
20854
  ) => void>;
20820
20855
 
20856
+ /**
20857
+ * Fires when a WebAuthn navigator.credentials.get() call occurs. The extension must supply a response by calling completeGetRequest() with the given requestId.
20858
+ */
20859
+ export const onGetRequest: events.Event<(
20860
+ requestInfo: GetRequest,
20861
+ ) => void>;
20862
+
20821
20863
  /**
20822
20864
  * Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
20823
20865
  */
@@ -20833,7 +20875,7 @@ declare namespace chrome {
20833
20875
  ) => void>;
20834
20876
 
20835
20877
  /**
20836
- * 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.
20878
+ * 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).
20837
20879
  */
20838
20880
  export function completeCreateRequest(
20839
20881
 
@@ -20841,7 +20883,7 @@ declare namespace chrome {
20841
20883
  ): Promise<void>;
20842
20884
 
20843
20885
  /**
20844
- * 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.
20886
+ * 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).
20845
20887
  */
20846
20888
  export function completeCreateRequest(
20847
20889
 
@@ -20851,7 +20893,25 @@ declare namespace chrome {
20851
20893
  ): void;
20852
20894
 
20853
20895
  /**
20854
- * 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.
20896
+ * 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).
20897
+ */
20898
+ export function completeGetRequest(
20899
+
20900
+ details: GetResponseDetails,
20901
+ ): Promise<void>;
20902
+
20903
+ /**
20904
+ * 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).
20905
+ */
20906
+ export function completeGetRequest(
20907
+
20908
+ details: GetResponseDetails,
20909
+
20910
+ callback?: () => void,
20911
+ ): void;
20912
+
20913
+ /**
20914
+ * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
20855
20915
  */
20856
20916
  export function completeIsUvpaaRequest(
20857
20917
 
@@ -20859,7 +20919,7 @@ declare namespace chrome {
20859
20919
  ): Promise<void>;
20860
20920
 
20861
20921
  /**
20862
- * 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.
20922
+ * Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
20863
20923
  */
20864
20924
  export function completeIsUvpaaRequest(
20865
20925
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "0d21ba8edc4494cb"
8
+ "build-hash": "dff006794b45dbf0"
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.85"
19
+ "version": "0.1.86"
20
20
  }