chrome-types 0.1.80 → 0.1.84
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 +105 -4
- package/index.d.ts +105 -4
- 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 Jan 27 2022 22:27:05 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at cf396c239436e0250cece84a6ec008fcce6a6cff
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -207,6 +207,17 @@ declare namespace chrome {
|
|
|
207
207
|
isOnToolbar: boolean;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
/**
|
|
211
|
+
* @since Pending
|
|
212
|
+
*/
|
|
213
|
+
export interface OpenPopupOptions {
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* The id of the window to open the action popup in. Defaults to the currently-active window if unspecified.
|
|
217
|
+
*/
|
|
218
|
+
windowId?: number;
|
|
219
|
+
}
|
|
220
|
+
|
|
210
221
|
/**
|
|
211
222
|
* Fired when an action icon is clicked. This event will not fire if the action has a popup.
|
|
212
223
|
*/
|
|
@@ -587,6 +598,30 @@ declare namespace chrome {
|
|
|
587
598
|
userSettings: UserSettings,
|
|
588
599
|
) => void,
|
|
589
600
|
): void;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Opens the extension's popup.
|
|
604
|
+
*
|
|
605
|
+
* @param options Specifies options for opening the popup.
|
|
606
|
+
* @since Pending
|
|
607
|
+
*/
|
|
608
|
+
export function openPopup(
|
|
609
|
+
|
|
610
|
+
options?: OpenPopupOptions,
|
|
611
|
+
): Promise<void>;
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Opens the extension's popup.
|
|
615
|
+
*
|
|
616
|
+
* @param options Specifies options for opening the popup.
|
|
617
|
+
* @since Pending
|
|
618
|
+
*/
|
|
619
|
+
export function openPopup(
|
|
620
|
+
|
|
621
|
+
options?: OpenPopupOptions,
|
|
622
|
+
|
|
623
|
+
callback?: () => void,
|
|
624
|
+
): void;
|
|
590
625
|
}
|
|
591
626
|
|
|
592
627
|
/**
|
|
@@ -15880,7 +15915,6 @@ declare namespace chrome {
|
|
|
15880
15915
|
* @param messageName The name of the message, as specified in the [`messages.json`](https://developer.chrome.com/extensions/i18n-messages) file.
|
|
15881
15916
|
* @param substitutions Up to 9 substitution strings, if the message requires any.
|
|
15882
15917
|
* @returns Message localized for current locale.
|
|
15883
|
-
* @chrome-disallow-service-workers
|
|
15884
15918
|
*/
|
|
15885
15919
|
export function getMessage(
|
|
15886
15920
|
|
|
@@ -31425,7 +31459,7 @@ declare namespace chrome {
|
|
|
31425
31459
|
}
|
|
31426
31460
|
|
|
31427
31461
|
/**
|
|
31428
|
-
* The webAuthenticationProxy API lets remote desktop software running on a remote host intercept Web Authentication API requests in order to handle them on a local client.
|
|
31462
|
+
* The webAuthenticationProxy API lets remote desktop software running on a remote host intercept Web Authentication API (WebAuthn) requests in order to handle them on a local client.
|
|
31429
31463
|
*
|
|
31430
31464
|
* @alpha
|
|
31431
31465
|
* @chrome-permission webAuthenticationProxy
|
|
@@ -31442,6 +31476,41 @@ declare namespace chrome {
|
|
|
31442
31476
|
requestId: number;
|
|
31443
31477
|
}
|
|
31444
31478
|
|
|
31479
|
+
export interface CreateRequest {
|
|
31480
|
+
|
|
31481
|
+
/**
|
|
31482
|
+
* An opaque identifier for the request.
|
|
31483
|
+
*/
|
|
31484
|
+
requestId: number;
|
|
31485
|
+
|
|
31486
|
+
/**
|
|
31487
|
+
* An JSON serialized representation of the PublicKeyCredentialCreationOptions passed to navigator.credentials.create().
|
|
31488
|
+
*
|
|
31489
|
+
* TODO(crbug.com/1231802): Reference deserialization method or document format.
|
|
31490
|
+
*/
|
|
31491
|
+
requestDetailsJson: string;
|
|
31492
|
+
}
|
|
31493
|
+
|
|
31494
|
+
export interface CreateResponseDetails {
|
|
31495
|
+
|
|
31496
|
+
/**
|
|
31497
|
+
* The requestId of the `CreateRequest`.
|
|
31498
|
+
*/
|
|
31499
|
+
requestId: number;
|
|
31500
|
+
|
|
31501
|
+
/**
|
|
31502
|
+
* The `name` property of the `DOMException`, if any, yielded by the remote request.
|
|
31503
|
+
*/
|
|
31504
|
+
errorName?: string;
|
|
31505
|
+
|
|
31506
|
+
/**
|
|
31507
|
+
* A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
|
|
31508
|
+
*
|
|
31509
|
+
* TODO(crbug.com/1231802): Reference serialization method or document format.
|
|
31510
|
+
*/
|
|
31511
|
+
responseJson?: string;
|
|
31512
|
+
}
|
|
31513
|
+
|
|
31445
31514
|
export interface IsUvpaaResponseDetails {
|
|
31446
31515
|
|
|
31447
31516
|
requestId: number;
|
|
@@ -31449,6 +31518,13 @@ declare namespace chrome {
|
|
|
31449
31518
|
isUvpaa: boolean;
|
|
31450
31519
|
}
|
|
31451
31520
|
|
|
31521
|
+
/**
|
|
31522
|
+
* Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateCredentialRequest() with the given requestId.
|
|
31523
|
+
*/
|
|
31524
|
+
export const onCreateRequest: events.Event<(
|
|
31525
|
+
requestInfo: CreateRequest,
|
|
31526
|
+
) => void>;
|
|
31527
|
+
|
|
31452
31528
|
/**
|
|
31453
31529
|
* Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
|
|
31454
31530
|
*/
|
|
@@ -31456,6 +31532,31 @@ declare namespace chrome {
|
|
|
31456
31532
|
requestInfo: IsUvpaaRequest,
|
|
31457
31533
|
) => void>;
|
|
31458
31534
|
|
|
31535
|
+
/**
|
|
31536
|
+
* 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.
|
|
31537
|
+
*/
|
|
31538
|
+
export const onRequestCanceled: events.Event<(
|
|
31539
|
+
requestId: number,
|
|
31540
|
+
) => void>;
|
|
31541
|
+
|
|
31542
|
+
/**
|
|
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.
|
|
31544
|
+
*/
|
|
31545
|
+
export function completeCreateRequest(
|
|
31546
|
+
|
|
31547
|
+
details: CreateResponseDetails,
|
|
31548
|
+
): Promise<void>;
|
|
31549
|
+
|
|
31550
|
+
/**
|
|
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.
|
|
31552
|
+
*/
|
|
31553
|
+
export function completeCreateRequest(
|
|
31554
|
+
|
|
31555
|
+
details: CreateResponseDetails,
|
|
31556
|
+
|
|
31557
|
+
callback?: () => void,
|
|
31558
|
+
): void;
|
|
31559
|
+
|
|
31459
31560
|
/**
|
|
31460
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.
|
|
31461
31562
|
*/
|
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 Jan 27 2022 22:27:00 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at cf396c239436e0250cece84a6ec008fcce6a6cff
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -265,6 +265,17 @@ declare namespace chrome {
|
|
|
265
265
|
isOnToolbar: boolean;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
+
/**
|
|
269
|
+
* @since Pending
|
|
270
|
+
*/
|
|
271
|
+
export interface OpenPopupOptions {
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* The id of the window to open the action popup in. Defaults to the currently-active window if unspecified.
|
|
275
|
+
*/
|
|
276
|
+
windowId?: number;
|
|
277
|
+
}
|
|
278
|
+
|
|
268
279
|
/**
|
|
269
280
|
* Fired when an action icon is clicked. This event will not fire if the action has a popup.
|
|
270
281
|
*/
|
|
@@ -645,6 +656,30 @@ declare namespace chrome {
|
|
|
645
656
|
userSettings: UserSettings,
|
|
646
657
|
) => void,
|
|
647
658
|
): void;
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Opens the extension's popup.
|
|
662
|
+
*
|
|
663
|
+
* @param options Specifies options for opening the popup.
|
|
664
|
+
* @since Pending
|
|
665
|
+
*/
|
|
666
|
+
export function openPopup(
|
|
667
|
+
|
|
668
|
+
options?: OpenPopupOptions,
|
|
669
|
+
): Promise<void>;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Opens the extension's popup.
|
|
673
|
+
*
|
|
674
|
+
* @param options Specifies options for opening the popup.
|
|
675
|
+
* @since Pending
|
|
676
|
+
*/
|
|
677
|
+
export function openPopup(
|
|
678
|
+
|
|
679
|
+
options?: OpenPopupOptions,
|
|
680
|
+
|
|
681
|
+
callback?: () => void,
|
|
682
|
+
): void;
|
|
648
683
|
}
|
|
649
684
|
|
|
650
685
|
/**
|
|
@@ -11181,7 +11216,6 @@ declare namespace chrome {
|
|
|
11181
11216
|
* @param messageName The name of the message, as specified in the [`messages.json`](https://developer.chrome.com/extensions/i18n-messages) file.
|
|
11182
11217
|
* @param substitutions Up to 9 substitution strings, if the message requires any.
|
|
11183
11218
|
* @returns Message localized for current locale.
|
|
11184
|
-
* @chrome-disallow-service-workers
|
|
11185
11219
|
*/
|
|
11186
11220
|
export function getMessage(
|
|
11187
11221
|
|
|
@@ -20711,7 +20745,7 @@ declare namespace chrome {
|
|
|
20711
20745
|
}
|
|
20712
20746
|
|
|
20713
20747
|
/**
|
|
20714
|
-
* The webAuthenticationProxy API lets remote desktop software running on a remote host intercept Web Authentication API requests in order to handle them on a local client.
|
|
20748
|
+
* The webAuthenticationProxy API lets remote desktop software running on a remote host intercept Web Authentication API (WebAuthn) requests in order to handle them on a local client.
|
|
20715
20749
|
*
|
|
20716
20750
|
* @alpha
|
|
20717
20751
|
* @chrome-permission webAuthenticationProxy
|
|
@@ -20728,6 +20762,41 @@ declare namespace chrome {
|
|
|
20728
20762
|
requestId: number;
|
|
20729
20763
|
}
|
|
20730
20764
|
|
|
20765
|
+
export interface CreateRequest {
|
|
20766
|
+
|
|
20767
|
+
/**
|
|
20768
|
+
* An opaque identifier for the request.
|
|
20769
|
+
*/
|
|
20770
|
+
requestId: number;
|
|
20771
|
+
|
|
20772
|
+
/**
|
|
20773
|
+
* An JSON serialized representation of the PublicKeyCredentialCreationOptions passed to navigator.credentials.create().
|
|
20774
|
+
*
|
|
20775
|
+
* TODO(crbug.com/1231802): Reference deserialization method or document format.
|
|
20776
|
+
*/
|
|
20777
|
+
requestDetailsJson: string;
|
|
20778
|
+
}
|
|
20779
|
+
|
|
20780
|
+
export interface CreateResponseDetails {
|
|
20781
|
+
|
|
20782
|
+
/**
|
|
20783
|
+
* The requestId of the `CreateRequest`.
|
|
20784
|
+
*/
|
|
20785
|
+
requestId: number;
|
|
20786
|
+
|
|
20787
|
+
/**
|
|
20788
|
+
* The `name` property of the `DOMException`, if any, yielded by the remote request.
|
|
20789
|
+
*/
|
|
20790
|
+
errorName?: string;
|
|
20791
|
+
|
|
20792
|
+
/**
|
|
20793
|
+
* A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
|
|
20794
|
+
*
|
|
20795
|
+
* TODO(crbug.com/1231802): Reference serialization method or document format.
|
|
20796
|
+
*/
|
|
20797
|
+
responseJson?: string;
|
|
20798
|
+
}
|
|
20799
|
+
|
|
20731
20800
|
export interface IsUvpaaResponseDetails {
|
|
20732
20801
|
|
|
20733
20802
|
requestId: number;
|
|
@@ -20735,6 +20804,13 @@ declare namespace chrome {
|
|
|
20735
20804
|
isUvpaa: boolean;
|
|
20736
20805
|
}
|
|
20737
20806
|
|
|
20807
|
+
/**
|
|
20808
|
+
* Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateCredentialRequest() with the given requestId.
|
|
20809
|
+
*/
|
|
20810
|
+
export const onCreateRequest: events.Event<(
|
|
20811
|
+
requestInfo: CreateRequest,
|
|
20812
|
+
) => void>;
|
|
20813
|
+
|
|
20738
20814
|
/**
|
|
20739
20815
|
* Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
|
|
20740
20816
|
*/
|
|
@@ -20742,6 +20818,31 @@ declare namespace chrome {
|
|
|
20742
20818
|
requestInfo: IsUvpaaRequest,
|
|
20743
20819
|
) => void>;
|
|
20744
20820
|
|
|
20821
|
+
/**
|
|
20822
|
+
* 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.
|
|
20823
|
+
*/
|
|
20824
|
+
export const onRequestCanceled: events.Event<(
|
|
20825
|
+
requestId: number,
|
|
20826
|
+
) => void>;
|
|
20827
|
+
|
|
20828
|
+
/**
|
|
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.
|
|
20830
|
+
*/
|
|
20831
|
+
export function completeCreateRequest(
|
|
20832
|
+
|
|
20833
|
+
details: CreateResponseDetails,
|
|
20834
|
+
): Promise<void>;
|
|
20835
|
+
|
|
20836
|
+
/**
|
|
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.
|
|
20838
|
+
*/
|
|
20839
|
+
export function completeCreateRequest(
|
|
20840
|
+
|
|
20841
|
+
details: CreateResponseDetails,
|
|
20842
|
+
|
|
20843
|
+
callback?: () => void,
|
|
20844
|
+
): void;
|
|
20845
|
+
|
|
20745
20846
|
/**
|
|
20746
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.
|
|
20747
20848
|
*/
|
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": "51015783bc3937c8"
|
|
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.84"
|
|
20
20
|
}
|