chrome-types 0.1.82 → 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.
- package/_all.d.ts +83 -10
- package/index.d.ts +83 -10
- 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
|
|
18
|
-
// Built at
|
|
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
|
|
|
@@ -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
|
|
|
@@ -31492,6 +31491,28 @@ declare namespace chrome {
|
|
|
31492
31491
|
requestDetailsJson: string;
|
|
31493
31492
|
}
|
|
31494
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
|
+
|
|
31509
|
+
export interface DOMExceptionDetails {
|
|
31510
|
+
|
|
31511
|
+
name: string;
|
|
31512
|
+
|
|
31513
|
+
message: string;
|
|
31514
|
+
}
|
|
31515
|
+
|
|
31495
31516
|
export interface CreateResponseDetails {
|
|
31496
31517
|
|
|
31497
31518
|
/**
|
|
@@ -31500,9 +31521,29 @@ declare namespace chrome {
|
|
|
31500
31521
|
requestId: number;
|
|
31501
31522
|
|
|
31502
31523
|
/**
|
|
31503
|
-
* The `
|
|
31524
|
+
* The `DOMException`, if any, yielded by the remote request.
|
|
31504
31525
|
*/
|
|
31505
|
-
|
|
31526
|
+
error?: DOMExceptionDetails;
|
|
31527
|
+
|
|
31528
|
+
/**
|
|
31529
|
+
* A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
|
|
31530
|
+
*
|
|
31531
|
+
* TODO(crbug.com/1231802): Reference serialization method or document format.
|
|
31532
|
+
*/
|
|
31533
|
+
responseJson?: string;
|
|
31534
|
+
}
|
|
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;
|
|
31506
31547
|
|
|
31507
31548
|
/**
|
|
31508
31549
|
* A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
|
|
@@ -31520,12 +31561,19 @@ declare namespace chrome {
|
|
|
31520
31561
|
}
|
|
31521
31562
|
|
|
31522
31563
|
/**
|
|
31523
|
-
* Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling
|
|
31564
|
+
* Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
|
|
31524
31565
|
*/
|
|
31525
31566
|
export const onCreateRequest: events.Event<(
|
|
31526
31567
|
requestInfo: CreateRequest,
|
|
31527
31568
|
) => void>;
|
|
31528
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
|
+
|
|
31529
31577
|
/**
|
|
31530
31578
|
* Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
|
|
31531
31579
|
*/
|
|
@@ -31534,7 +31582,14 @@ declare namespace chrome {
|
|
|
31534
31582
|
) => void>;
|
|
31535
31583
|
|
|
31536
31584
|
/**
|
|
31537
|
-
*
|
|
31585
|
+
* Fires when a `onCreateRequest` or `onGetRequest` event is canceled (because the WebAuthn request was aborted by the caller, or because it timed out). When receiving this event, the extension should cancel processing of the corresponding request on the client side. Extensions cannot complete a request once it has been canceled.
|
|
31586
|
+
*/
|
|
31587
|
+
export const onRequestCanceled: events.Event<(
|
|
31588
|
+
requestId: number,
|
|
31589
|
+
) => void>;
|
|
31590
|
+
|
|
31591
|
+
/**
|
|
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).
|
|
31538
31593
|
*/
|
|
31539
31594
|
export function completeCreateRequest(
|
|
31540
31595
|
|
|
@@ -31542,7 +31597,7 @@ declare namespace chrome {
|
|
|
31542
31597
|
): Promise<void>;
|
|
31543
31598
|
|
|
31544
31599
|
/**
|
|
31545
|
-
* Reports the result of a navigator.credentials.create() call. The extension must call this for every onCreateRequest event it has received
|
|
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).
|
|
31546
31601
|
*/
|
|
31547
31602
|
export function completeCreateRequest(
|
|
31548
31603
|
|
|
@@ -31552,7 +31607,25 @@ declare namespace chrome {
|
|
|
31552
31607
|
): void;
|
|
31553
31608
|
|
|
31554
31609
|
/**
|
|
31555
|
-
* Reports the result of a
|
|
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.
|
|
31556
31629
|
*/
|
|
31557
31630
|
export function completeIsUvpaaRequest(
|
|
31558
31631
|
|
|
@@ -31560,7 +31633,7 @@ declare namespace chrome {
|
|
|
31560
31633
|
): Promise<void>;
|
|
31561
31634
|
|
|
31562
31635
|
/**
|
|
31563
|
-
* Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received
|
|
31636
|
+
* Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
|
|
31564
31637
|
*/
|
|
31565
31638
|
export function completeIsUvpaaRequest(
|
|
31566
31639
|
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
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
|
|
|
@@ -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
|
|
|
@@ -20778,6 +20777,28 @@ declare namespace chrome {
|
|
|
20778
20777
|
requestDetailsJson: string;
|
|
20779
20778
|
}
|
|
20780
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
|
+
|
|
20795
|
+
export interface DOMExceptionDetails {
|
|
20796
|
+
|
|
20797
|
+
name: string;
|
|
20798
|
+
|
|
20799
|
+
message: string;
|
|
20800
|
+
}
|
|
20801
|
+
|
|
20781
20802
|
export interface CreateResponseDetails {
|
|
20782
20803
|
|
|
20783
20804
|
/**
|
|
@@ -20786,9 +20807,29 @@ declare namespace chrome {
|
|
|
20786
20807
|
requestId: number;
|
|
20787
20808
|
|
|
20788
20809
|
/**
|
|
20789
|
-
* The `
|
|
20810
|
+
* The `DOMException`, if any, yielded by the remote request.
|
|
20790
20811
|
*/
|
|
20791
|
-
|
|
20812
|
+
error?: DOMExceptionDetails;
|
|
20813
|
+
|
|
20814
|
+
/**
|
|
20815
|
+
* A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
|
|
20816
|
+
*
|
|
20817
|
+
* TODO(crbug.com/1231802): Reference serialization method or document format.
|
|
20818
|
+
*/
|
|
20819
|
+
responseJson?: string;
|
|
20820
|
+
}
|
|
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;
|
|
20792
20833
|
|
|
20793
20834
|
/**
|
|
20794
20835
|
* A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
|
|
@@ -20806,12 +20847,19 @@ declare namespace chrome {
|
|
|
20806
20847
|
}
|
|
20807
20848
|
|
|
20808
20849
|
/**
|
|
20809
|
-
* Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling
|
|
20850
|
+
* Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
|
|
20810
20851
|
*/
|
|
20811
20852
|
export const onCreateRequest: events.Event<(
|
|
20812
20853
|
requestInfo: CreateRequest,
|
|
20813
20854
|
) => void>;
|
|
20814
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
|
+
|
|
20815
20863
|
/**
|
|
20816
20864
|
* Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
|
|
20817
20865
|
*/
|
|
@@ -20820,7 +20868,14 @@ declare namespace chrome {
|
|
|
20820
20868
|
) => void>;
|
|
20821
20869
|
|
|
20822
20870
|
/**
|
|
20823
|
-
*
|
|
20871
|
+
* Fires when a `onCreateRequest` or `onGetRequest` event is canceled (because the WebAuthn request was aborted by the caller, or because it timed out). When receiving this event, the extension should cancel processing of the corresponding request on the client side. Extensions cannot complete a request once it has been canceled.
|
|
20872
|
+
*/
|
|
20873
|
+
export const onRequestCanceled: events.Event<(
|
|
20874
|
+
requestId: number,
|
|
20875
|
+
) => void>;
|
|
20876
|
+
|
|
20877
|
+
/**
|
|
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).
|
|
20824
20879
|
*/
|
|
20825
20880
|
export function completeCreateRequest(
|
|
20826
20881
|
|
|
@@ -20828,7 +20883,7 @@ declare namespace chrome {
|
|
|
20828
20883
|
): Promise<void>;
|
|
20829
20884
|
|
|
20830
20885
|
/**
|
|
20831
|
-
* Reports the result of a navigator.credentials.create() call. The extension must call this for every onCreateRequest event it has received
|
|
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).
|
|
20832
20887
|
*/
|
|
20833
20888
|
export function completeCreateRequest(
|
|
20834
20889
|
|
|
@@ -20838,7 +20893,25 @@ declare namespace chrome {
|
|
|
20838
20893
|
): void;
|
|
20839
20894
|
|
|
20840
20895
|
/**
|
|
20841
|
-
* Reports the result of a
|
|
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.
|
|
20842
20915
|
*/
|
|
20843
20916
|
export function completeIsUvpaaRequest(
|
|
20844
20917
|
|
|
@@ -20846,7 +20919,7 @@ declare namespace chrome {
|
|
|
20846
20919
|
): Promise<void>;
|
|
20847
20920
|
|
|
20848
20921
|
/**
|
|
20849
|
-
* Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received
|
|
20922
|
+
* Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator() call. The extension must call this for every onIsUvpaaRequest event it has received.
|
|
20850
20923
|
*/
|
|
20851
20924
|
export function completeIsUvpaaRequest(
|
|
20852
20925
|
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
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.
|
|
19
|
+
"version": "0.1.86"
|
|
20
20
|
}
|