chrome-types 0.1.78 → 0.1.82
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 +148 -7
- package/index.d.ts +148 -7
- 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 Sat Jan
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Sat Jan 15 2022 22:29:31 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 040ad91f1757fcd307097354a34660144bbbf344
|
|
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
|
*/
|
|
@@ -8755,6 +8797,7 @@ declare namespace chrome {
|
|
|
8755
8797
|
* Declarative event action that shows the extension's {@link pageAction page action} while the corresponding conditions are met. This action can be used without [host permissions](https://developer.chrome.com/docs/extensions/declare_permissions#host-permissions), but the extension must have a page action. If the extension has the [activeTab](https://developer.chrome.com/docs/extensions/activeTab) permission, clicking the page action grants access to the active tab.
|
|
8756
8798
|
*
|
|
8757
8799
|
* @deprecated Please use {@link declarativeContent.ShowAction}.
|
|
8800
|
+
* @chrome-deprecated-since Chrome 97
|
|
8758
8801
|
*/
|
|
8759
8802
|
export class ShowPageAction {
|
|
8760
8803
|
constructor(arg: ShowPageAction);
|
|
@@ -8763,7 +8806,7 @@ declare namespace chrome {
|
|
|
8763
8806
|
/**
|
|
8764
8807
|
* Declarative event action that shows the extension's toolbar action ({@link pageAction page action} or {@link browserAction browser action}) while the corresponding conditions are met. This action can be used without [host permissions](https://developer.chrome.com/docs/extensions/declare_permissions#host-permissions). If the extension has the [activeTab](https://developer.chrome.com/docs/extensions/activeTab) permission, clicking the page action grants access to the active tab.
|
|
8765
8808
|
*
|
|
8766
|
-
* @since
|
|
8809
|
+
* @since Chrome 97
|
|
8767
8810
|
*/
|
|
8768
8811
|
export class ShowAction {
|
|
8769
8812
|
constructor(arg: ShowAction);
|
|
@@ -12047,7 +12090,7 @@ declare namespace chrome {
|
|
|
12047
12090
|
*
|
|
12048
12091
|
* Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
|
|
12049
12092
|
*
|
|
12050
|
-
* @since
|
|
12093
|
+
* @since Chrome 97
|
|
12051
12094
|
*/
|
|
12052
12095
|
softwareBackedSubtleCrypto: SubtleCrypto;
|
|
12053
12096
|
}
|
|
@@ -15846,6 +15889,13 @@ declare namespace chrome {
|
|
|
15846
15889
|
*/
|
|
15847
15890
|
export type LanguageCode = string;
|
|
15848
15891
|
|
|
15892
|
+
/**
|
|
15893
|
+
* Gets the accept-languages of the browser. This is different from the locale used by the browser; to get the locale, use {@link i18n.getUILanguage}.
|
|
15894
|
+
*
|
|
15895
|
+
* @chrome-returns-extra since Pending
|
|
15896
|
+
*/
|
|
15897
|
+
export function getAcceptLanguages(): Promise<LanguageCode[]>;
|
|
15898
|
+
|
|
15849
15899
|
/**
|
|
15850
15900
|
* Gets the accept-languages of the browser. This is different from the locale used by the browser; to get the locale, use {@link i18n.getUILanguage}.
|
|
15851
15901
|
*/
|
|
@@ -15854,7 +15904,7 @@ declare namespace chrome {
|
|
|
15854
15904
|
/**
|
|
15855
15905
|
* @param languages Array of LanguageCode
|
|
15856
15906
|
*/
|
|
15857
|
-
callback
|
|
15907
|
+
callback?: (
|
|
15858
15908
|
languages: LanguageCode[],
|
|
15859
15909
|
) => void,
|
|
15860
15910
|
): void;
|
|
@@ -15892,6 +15942,37 @@ declare namespace chrome {
|
|
|
15892
15942
|
*/
|
|
15893
15943
|
export function getUILanguage(): string;
|
|
15894
15944
|
|
|
15945
|
+
/**
|
|
15946
|
+
* Detects the language of the provided text using CLD.
|
|
15947
|
+
*
|
|
15948
|
+
* @chrome-returns-extra since Pending
|
|
15949
|
+
* @param text User input string to be translated.
|
|
15950
|
+
* @since Chrome 47
|
|
15951
|
+
*/
|
|
15952
|
+
export function detectLanguage(
|
|
15953
|
+
|
|
15954
|
+
text: string,
|
|
15955
|
+
): Promise<{
|
|
15956
|
+
|
|
15957
|
+
/**
|
|
15958
|
+
* CLD detected language reliability
|
|
15959
|
+
*/
|
|
15960
|
+
isReliable: boolean,
|
|
15961
|
+
|
|
15962
|
+
/**
|
|
15963
|
+
* array of detectedLanguage
|
|
15964
|
+
*/
|
|
15965
|
+
languages: {
|
|
15966
|
+
|
|
15967
|
+
language: LanguageCode,
|
|
15968
|
+
|
|
15969
|
+
/**
|
|
15970
|
+
* The percentage of the detected language
|
|
15971
|
+
*/
|
|
15972
|
+
percentage: number,
|
|
15973
|
+
}[],
|
|
15974
|
+
}>;
|
|
15975
|
+
|
|
15895
15976
|
/**
|
|
15896
15977
|
* Detects the language of the provided text using CLD.
|
|
15897
15978
|
*
|
|
@@ -15905,7 +15986,7 @@ declare namespace chrome {
|
|
|
15905
15986
|
/**
|
|
15906
15987
|
* @param result LanguageDetectionResult object that holds detected langugae reliability and array of DetectedLanguage
|
|
15907
15988
|
*/
|
|
15908
|
-
callback
|
|
15989
|
+
callback?: (
|
|
15909
15990
|
result: {
|
|
15910
15991
|
|
|
15911
15992
|
/**
|
|
@@ -31379,7 +31460,7 @@ declare namespace chrome {
|
|
|
31379
31460
|
}
|
|
31380
31461
|
|
|
31381
31462
|
/**
|
|
31382
|
-
* 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.
|
|
31383
31464
|
*
|
|
31384
31465
|
* @alpha
|
|
31385
31466
|
* @chrome-permission webAuthenticationProxy
|
|
@@ -31396,6 +31477,41 @@ declare namespace chrome {
|
|
|
31396
31477
|
requestId: number;
|
|
31397
31478
|
}
|
|
31398
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
|
+
|
|
31399
31515
|
export interface IsUvpaaResponseDetails {
|
|
31400
31516
|
|
|
31401
31517
|
requestId: number;
|
|
@@ -31403,6 +31519,13 @@ declare namespace chrome {
|
|
|
31403
31519
|
isUvpaa: boolean;
|
|
31404
31520
|
}
|
|
31405
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
|
+
|
|
31406
31529
|
/**
|
|
31407
31530
|
* Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
|
|
31408
31531
|
*/
|
|
@@ -31410,6 +31533,24 @@ declare namespace chrome {
|
|
|
31410
31533
|
requestInfo: IsUvpaaRequest,
|
|
31411
31534
|
) => void>;
|
|
31412
31535
|
|
|
31536
|
+
/**
|
|
31537
|
+
* 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.
|
|
31538
|
+
*/
|
|
31539
|
+
export function completeCreateRequest(
|
|
31540
|
+
|
|
31541
|
+
details: CreateResponseDetails,
|
|
31542
|
+
): Promise<void>;
|
|
31543
|
+
|
|
31544
|
+
/**
|
|
31545
|
+
* 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.
|
|
31546
|
+
*/
|
|
31547
|
+
export function completeCreateRequest(
|
|
31548
|
+
|
|
31549
|
+
details: CreateResponseDetails,
|
|
31550
|
+
|
|
31551
|
+
callback?: () => void,
|
|
31552
|
+
): void;
|
|
31553
|
+
|
|
31413
31554
|
/**
|
|
31414
31555
|
* 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.
|
|
31415
31556
|
*/
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on Sat Jan
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Sat Jan 15 2022 22:29:25 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 040ad91f1757fcd307097354a34660144bbbf344
|
|
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
|
*/
|
|
@@ -5322,6 +5364,7 @@ declare namespace chrome {
|
|
|
5322
5364
|
* Declarative event action that shows the extension's {@link pageAction page action} while the corresponding conditions are met. This action can be used without [host permissions](https://developer.chrome.com/docs/extensions/declare_permissions#host-permissions), but the extension must have a page action. If the extension has the [activeTab](https://developer.chrome.com/docs/extensions/activeTab) permission, clicking the page action grants access to the active tab.
|
|
5323
5365
|
*
|
|
5324
5366
|
* @deprecated Please use {@link declarativeContent.ShowAction}.
|
|
5367
|
+
* @chrome-deprecated-since Chrome 97
|
|
5325
5368
|
*/
|
|
5326
5369
|
export class ShowPageAction {
|
|
5327
5370
|
constructor(arg: ShowPageAction);
|
|
@@ -5330,7 +5373,7 @@ declare namespace chrome {
|
|
|
5330
5373
|
/**
|
|
5331
5374
|
* Declarative event action that shows the extension's toolbar action ({@link pageAction page action} or {@link browserAction browser action}) while the corresponding conditions are met. This action can be used without [host permissions](https://developer.chrome.com/docs/extensions/declare_permissions#host-permissions). If the extension has the [activeTab](https://developer.chrome.com/docs/extensions/activeTab) permission, clicking the page action grants access to the active tab.
|
|
5332
5375
|
*
|
|
5333
|
-
* @since
|
|
5376
|
+
* @since Chrome 97
|
|
5334
5377
|
*/
|
|
5335
5378
|
export class ShowAction {
|
|
5336
5379
|
constructor(arg: ShowAction);
|
|
@@ -8018,7 +8061,7 @@ declare namespace chrome {
|
|
|
8018
8061
|
*
|
|
8019
8062
|
* Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
|
|
8020
8063
|
*
|
|
8021
|
-
* @since
|
|
8064
|
+
* @since Chrome 97
|
|
8022
8065
|
*/
|
|
8023
8066
|
softwareBackedSubtleCrypto: SubtleCrypto;
|
|
8024
8067
|
}
|
|
@@ -11147,6 +11190,13 @@ declare namespace chrome {
|
|
|
11147
11190
|
*/
|
|
11148
11191
|
export type LanguageCode = string;
|
|
11149
11192
|
|
|
11193
|
+
/**
|
|
11194
|
+
* Gets the accept-languages of the browser. This is different from the locale used by the browser; to get the locale, use {@link i18n.getUILanguage}.
|
|
11195
|
+
*
|
|
11196
|
+
* @chrome-returns-extra since Pending
|
|
11197
|
+
*/
|
|
11198
|
+
export function getAcceptLanguages(): Promise<LanguageCode[]>;
|
|
11199
|
+
|
|
11150
11200
|
/**
|
|
11151
11201
|
* Gets the accept-languages of the browser. This is different from the locale used by the browser; to get the locale, use {@link i18n.getUILanguage}.
|
|
11152
11202
|
*/
|
|
@@ -11155,7 +11205,7 @@ declare namespace chrome {
|
|
|
11155
11205
|
/**
|
|
11156
11206
|
* @param languages Array of LanguageCode
|
|
11157
11207
|
*/
|
|
11158
|
-
callback
|
|
11208
|
+
callback?: (
|
|
11159
11209
|
languages: LanguageCode[],
|
|
11160
11210
|
) => void,
|
|
11161
11211
|
): void;
|
|
@@ -11193,6 +11243,37 @@ declare namespace chrome {
|
|
|
11193
11243
|
*/
|
|
11194
11244
|
export function getUILanguage(): string;
|
|
11195
11245
|
|
|
11246
|
+
/**
|
|
11247
|
+
* Detects the language of the provided text using CLD.
|
|
11248
|
+
*
|
|
11249
|
+
* @chrome-returns-extra since Pending
|
|
11250
|
+
* @param text User input string to be translated.
|
|
11251
|
+
* @since Chrome 47
|
|
11252
|
+
*/
|
|
11253
|
+
export function detectLanguage(
|
|
11254
|
+
|
|
11255
|
+
text: string,
|
|
11256
|
+
): Promise<{
|
|
11257
|
+
|
|
11258
|
+
/**
|
|
11259
|
+
* CLD detected language reliability
|
|
11260
|
+
*/
|
|
11261
|
+
isReliable: boolean,
|
|
11262
|
+
|
|
11263
|
+
/**
|
|
11264
|
+
* array of detectedLanguage
|
|
11265
|
+
*/
|
|
11266
|
+
languages: {
|
|
11267
|
+
|
|
11268
|
+
language: LanguageCode,
|
|
11269
|
+
|
|
11270
|
+
/**
|
|
11271
|
+
* The percentage of the detected language
|
|
11272
|
+
*/
|
|
11273
|
+
percentage: number,
|
|
11274
|
+
}[],
|
|
11275
|
+
}>;
|
|
11276
|
+
|
|
11196
11277
|
/**
|
|
11197
11278
|
* Detects the language of the provided text using CLD.
|
|
11198
11279
|
*
|
|
@@ -11206,7 +11287,7 @@ declare namespace chrome {
|
|
|
11206
11287
|
/**
|
|
11207
11288
|
* @param result LanguageDetectionResult object that holds detected langugae reliability and array of DetectedLanguage
|
|
11208
11289
|
*/
|
|
11209
|
-
callback
|
|
11290
|
+
callback?: (
|
|
11210
11291
|
result: {
|
|
11211
11292
|
|
|
11212
11293
|
/**
|
|
@@ -20665,7 +20746,7 @@ declare namespace chrome {
|
|
|
20665
20746
|
}
|
|
20666
20747
|
|
|
20667
20748
|
/**
|
|
20668
|
-
* 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.
|
|
20669
20750
|
*
|
|
20670
20751
|
* @alpha
|
|
20671
20752
|
* @chrome-permission webAuthenticationProxy
|
|
@@ -20682,6 +20763,41 @@ declare namespace chrome {
|
|
|
20682
20763
|
requestId: number;
|
|
20683
20764
|
}
|
|
20684
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
|
+
|
|
20685
20801
|
export interface IsUvpaaResponseDetails {
|
|
20686
20802
|
|
|
20687
20803
|
requestId: number;
|
|
@@ -20689,6 +20805,13 @@ declare namespace chrome {
|
|
|
20689
20805
|
isUvpaa: boolean;
|
|
20690
20806
|
}
|
|
20691
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
|
+
|
|
20692
20815
|
/**
|
|
20693
20816
|
* Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() call occurs. The extension must supply a response by calling completeIsUvpaaRequest() with the given requestId.
|
|
20694
20817
|
*/
|
|
@@ -20696,6 +20819,24 @@ declare namespace chrome {
|
|
|
20696
20819
|
requestInfo: IsUvpaaRequest,
|
|
20697
20820
|
) => void>;
|
|
20698
20821
|
|
|
20822
|
+
/**
|
|
20823
|
+
* 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.
|
|
20824
|
+
*/
|
|
20825
|
+
export function completeCreateRequest(
|
|
20826
|
+
|
|
20827
|
+
details: CreateResponseDetails,
|
|
20828
|
+
): Promise<void>;
|
|
20829
|
+
|
|
20830
|
+
/**
|
|
20831
|
+
* 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.
|
|
20832
|
+
*/
|
|
20833
|
+
export function completeCreateRequest(
|
|
20834
|
+
|
|
20835
|
+
details: CreateResponseDetails,
|
|
20836
|
+
|
|
20837
|
+
callback?: () => void,
|
|
20838
|
+
): void;
|
|
20839
|
+
|
|
20699
20840
|
/**
|
|
20700
20841
|
* 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.
|
|
20701
20842
|
*/
|
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": "7209106be5968c9c"
|
|
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.82"
|
|
20
20
|
}
|