chrome-types 0.1.79 → 0.1.83
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 +112 -3
- package/index.d.ts +112 -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
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Tue Jan 25 2022 22:28:04 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 804fcff8a78eb3b4ab17d14405602d38c7c8a41a
|
|
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
|
/**
|
|
@@ -7301,6 +7336,13 @@ declare namespace chrome {
|
|
|
7301
7336
|
*/
|
|
7302
7337
|
all_frames?: boolean;
|
|
7303
7338
|
|
|
7339
|
+
/**
|
|
7340
|
+
* Whether the script should inject into any frames where the URL belongs to a scheme that would never match a specified Match Pattern, including about:, data:, blob:, and filesystem: schemes. In these cases, in order to determine if the script should inject, the origin of the URL is checked. If the origin is `null` (as is the case for data: URLs), then the "initiator" or "creator" origin is used (i.e., the origin of the frame that created or navigated this frame). Note that this may not be the parent frame, if the frame was navigated by another frame in the document hierarchy.
|
|
7341
|
+
*
|
|
7342
|
+
* @since Pending
|
|
7343
|
+
*/
|
|
7344
|
+
match_origin_as_fallback?: boolean;
|
|
7345
|
+
|
|
7304
7346
|
/**
|
|
7305
7347
|
* Whether the script should inject into an about:blank frame where the parent or opener frame matches one of the patterns declared in matches. Defaults to false.
|
|
7306
7348
|
*/
|
|
@@ -31418,7 +31460,7 @@ declare namespace chrome {
|
|
|
31418
31460
|
}
|
|
31419
31461
|
|
|
31420
31462
|
/**
|
|
31421
|
-
* 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.
|
|
31463
|
+
* 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.
|
|
31422
31464
|
*
|
|
31423
31465
|
* @alpha
|
|
31424
31466
|
* @chrome-permission webAuthenticationProxy
|
|
@@ -31435,6 +31477,41 @@ declare namespace chrome {
|
|
|
31435
31477
|
requestId: number;
|
|
31436
31478
|
}
|
|
31437
31479
|
|
|
31480
|
+
export interface CreateRequest {
|
|
31481
|
+
|
|
31482
|
+
/**
|
|
31483
|
+
* An opaque identifier for the request.
|
|
31484
|
+
*/
|
|
31485
|
+
requestId: number;
|
|
31486
|
+
|
|
31487
|
+
/**
|
|
31488
|
+
* An JSON serialized representation of the PublicKeyCredentialCreationOptions passed to navigator.credentials.create().
|
|
31489
|
+
*
|
|
31490
|
+
* TODO(crbug.com/1231802): Reference deserialization method or document format.
|
|
31491
|
+
*/
|
|
31492
|
+
requestDetailsJson: string;
|
|
31493
|
+
}
|
|
31494
|
+
|
|
31495
|
+
export interface CreateResponseDetails {
|
|
31496
|
+
|
|
31497
|
+
/**
|
|
31498
|
+
* The requestId of the `CreateRequest`.
|
|
31499
|
+
*/
|
|
31500
|
+
requestId: number;
|
|
31501
|
+
|
|
31502
|
+
/**
|
|
31503
|
+
* The `name` property of the `DOMException`, if any, yielded by the remote request.
|
|
31504
|
+
*/
|
|
31505
|
+
errorName?: string;
|
|
31506
|
+
|
|
31507
|
+
/**
|
|
31508
|
+
* A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
|
|
31509
|
+
*
|
|
31510
|
+
* TODO(crbug.com/1231802): Reference serialization method or document format.
|
|
31511
|
+
*/
|
|
31512
|
+
responseJson?: string;
|
|
31513
|
+
}
|
|
31514
|
+
|
|
31438
31515
|
export interface IsUvpaaResponseDetails {
|
|
31439
31516
|
|
|
31440
31517
|
requestId: number;
|
|
@@ -31442,6 +31519,13 @@ declare namespace chrome {
|
|
|
31442
31519
|
isUvpaa: boolean;
|
|
31443
31520
|
}
|
|
31444
31521
|
|
|
31522
|
+
/**
|
|
31523
|
+
* Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateCredentialRequest() with the given requestId.
|
|
31524
|
+
*/
|
|
31525
|
+
export const onCreateRequest: events.Event<(
|
|
31526
|
+
requestInfo: CreateRequest,
|
|
31527
|
+
) => void>;
|
|
31528
|
+
|
|
31445
31529
|
/**
|
|
31446
31530
|
* Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
|
|
31447
31531
|
*/
|
|
@@ -31449,6 +31533,31 @@ declare namespace chrome {
|
|
|
31449
31533
|
requestInfo: IsUvpaaRequest,
|
|
31450
31534
|
) => void>;
|
|
31451
31535
|
|
|
31536
|
+
/**
|
|
31537
|
+
* 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.
|
|
31538
|
+
*/
|
|
31539
|
+
export const onRequestCanceled: events.Event<(
|
|
31540
|
+
requestId: number,
|
|
31541
|
+
) => void>;
|
|
31542
|
+
|
|
31543
|
+
/**
|
|
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.
|
|
31545
|
+
*/
|
|
31546
|
+
export function completeCreateRequest(
|
|
31547
|
+
|
|
31548
|
+
details: CreateResponseDetails,
|
|
31549
|
+
): Promise<void>;
|
|
31550
|
+
|
|
31551
|
+
/**
|
|
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.
|
|
31553
|
+
*/
|
|
31554
|
+
export function completeCreateRequest(
|
|
31555
|
+
|
|
31556
|
+
details: CreateResponseDetails,
|
|
31557
|
+
|
|
31558
|
+
callback?: () => void,
|
|
31559
|
+
): void;
|
|
31560
|
+
|
|
31452
31561
|
/**
|
|
31453
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.
|
|
31454
31563
|
*/
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on Tue Jan
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Tue Jan 25 2022 22:27:59 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 804fcff8a78eb3b4ab17d14405602d38c7c8a41a
|
|
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
|
/**
|
|
@@ -3868,6 +3903,13 @@ declare namespace chrome {
|
|
|
3868
3903
|
*/
|
|
3869
3904
|
all_frames?: boolean;
|
|
3870
3905
|
|
|
3906
|
+
/**
|
|
3907
|
+
* Whether the script should inject into any frames where the URL belongs to a scheme that would never match a specified Match Pattern, including about:, data:, blob:, and filesystem: schemes. In these cases, in order to determine if the script should inject, the origin of the URL is checked. If the origin is `null` (as is the case for data: URLs), then the "initiator" or "creator" origin is used (i.e., the origin of the frame that created or navigated this frame). Note that this may not be the parent frame, if the frame was navigated by another frame in the document hierarchy.
|
|
3908
|
+
*
|
|
3909
|
+
* @since Pending
|
|
3910
|
+
*/
|
|
3911
|
+
match_origin_as_fallback?: boolean;
|
|
3912
|
+
|
|
3871
3913
|
/**
|
|
3872
3914
|
* Whether the script should inject into an about:blank frame where the parent or opener frame matches one of the patterns declared in matches. Defaults to false.
|
|
3873
3915
|
*/
|
|
@@ -20704,7 +20746,7 @@ declare namespace chrome {
|
|
|
20704
20746
|
}
|
|
20705
20747
|
|
|
20706
20748
|
/**
|
|
20707
|
-
* 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.
|
|
20749
|
+
* 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.
|
|
20708
20750
|
*
|
|
20709
20751
|
* @alpha
|
|
20710
20752
|
* @chrome-permission webAuthenticationProxy
|
|
@@ -20721,6 +20763,41 @@ declare namespace chrome {
|
|
|
20721
20763
|
requestId: number;
|
|
20722
20764
|
}
|
|
20723
20765
|
|
|
20766
|
+
export interface CreateRequest {
|
|
20767
|
+
|
|
20768
|
+
/**
|
|
20769
|
+
* An opaque identifier for the request.
|
|
20770
|
+
*/
|
|
20771
|
+
requestId: number;
|
|
20772
|
+
|
|
20773
|
+
/**
|
|
20774
|
+
* An JSON serialized representation of the PublicKeyCredentialCreationOptions passed to navigator.credentials.create().
|
|
20775
|
+
*
|
|
20776
|
+
* TODO(crbug.com/1231802): Reference deserialization method or document format.
|
|
20777
|
+
*/
|
|
20778
|
+
requestDetailsJson: string;
|
|
20779
|
+
}
|
|
20780
|
+
|
|
20781
|
+
export interface CreateResponseDetails {
|
|
20782
|
+
|
|
20783
|
+
/**
|
|
20784
|
+
* The requestId of the `CreateRequest`.
|
|
20785
|
+
*/
|
|
20786
|
+
requestId: number;
|
|
20787
|
+
|
|
20788
|
+
/**
|
|
20789
|
+
* The `name` property of the `DOMException`, if any, yielded by the remote request.
|
|
20790
|
+
*/
|
|
20791
|
+
errorName?: string;
|
|
20792
|
+
|
|
20793
|
+
/**
|
|
20794
|
+
* A JSON serialized representation of the `PublicKeyCredential` (https://w3c.github.io/webauthn/#publickeycredential), if any, yielded by the remote request.
|
|
20795
|
+
*
|
|
20796
|
+
* TODO(crbug.com/1231802): Reference serialization method or document format.
|
|
20797
|
+
*/
|
|
20798
|
+
responseJson?: string;
|
|
20799
|
+
}
|
|
20800
|
+
|
|
20724
20801
|
export interface IsUvpaaResponseDetails {
|
|
20725
20802
|
|
|
20726
20803
|
requestId: number;
|
|
@@ -20728,6 +20805,13 @@ declare namespace chrome {
|
|
|
20728
20805
|
isUvpaa: boolean;
|
|
20729
20806
|
}
|
|
20730
20807
|
|
|
20808
|
+
/**
|
|
20809
|
+
* Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateCredentialRequest() with the given requestId.
|
|
20810
|
+
*/
|
|
20811
|
+
export const onCreateRequest: events.Event<(
|
|
20812
|
+
requestInfo: CreateRequest,
|
|
20813
|
+
) => void>;
|
|
20814
|
+
|
|
20731
20815
|
/**
|
|
20732
20816
|
* Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
|
|
20733
20817
|
*/
|
|
@@ -20735,6 +20819,31 @@ declare namespace chrome {
|
|
|
20735
20819
|
requestInfo: IsUvpaaRequest,
|
|
20736
20820
|
) => void>;
|
|
20737
20821
|
|
|
20822
|
+
/**
|
|
20823
|
+
* 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.
|
|
20824
|
+
*/
|
|
20825
|
+
export const onRequestCanceled: events.Event<(
|
|
20826
|
+
requestId: number,
|
|
20827
|
+
) => void>;
|
|
20828
|
+
|
|
20829
|
+
/**
|
|
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.
|
|
20831
|
+
*/
|
|
20832
|
+
export function completeCreateRequest(
|
|
20833
|
+
|
|
20834
|
+
details: CreateResponseDetails,
|
|
20835
|
+
): Promise<void>;
|
|
20836
|
+
|
|
20837
|
+
/**
|
|
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.
|
|
20839
|
+
*/
|
|
20840
|
+
export function completeCreateRequest(
|
|
20841
|
+
|
|
20842
|
+
details: CreateResponseDetails,
|
|
20843
|
+
|
|
20844
|
+
callback?: () => void,
|
|
20845
|
+
): void;
|
|
20846
|
+
|
|
20738
20847
|
/**
|
|
20739
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.
|
|
20740
20849
|
*/
|
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": "be4acf675a392b27"
|
|
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.83"
|
|
20
20
|
}
|