@@ -133,6 +133,34 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions {
133
133
processorOptions?: any;
134
134
}
135
135
136
+ interface AuthenticationExtensionsClientInputs {
137
+ appid?: string;
138
+ authnSel?: AuthenticatorSelectionList;
139
+ exts?: boolean;
140
+ loc?: boolean;
141
+ txAuthGeneric?: txAuthGenericArg;
142
+ txAuthSimple?: string;
143
+ uvi?: boolean;
144
+ uvm?: boolean;
145
+ }
146
+
147
+ interface AuthenticationExtensionsClientOutputs {
148
+ appid?: boolean;
149
+ authnSel?: boolean;
150
+ exts?: AuthenticationExtensionsSupported;
151
+ loc?: Coordinates;
152
+ txAuthGeneric?: ArrayBuffer;
153
+ txAuthSimple?: string;
154
+ uvi?: ArrayBuffer;
155
+ uvm?: UvmEntries;
156
+ }
157
+
158
+ interface AuthenticatorSelectionCriteria {
159
+ authenticatorAttachment?: AuthenticatorAttachment;
160
+ requireResidentKey?: boolean;
161
+ userVerification?: UserVerificationRequirement;
162
+ }
163
+
136
164
interface BiquadFilterOptions extends AudioNodeOptions {
137
165
Q?: number;
138
166
detune?: number;
@@ -252,11 +280,13 @@ interface ConvolverOptions extends AudioNodeOptions {
252
280
}
253
281
254
282
interface CredentialCreationOptions {
283
+ publicKey?: PublicKeyCredentialCreationOptions;
255
284
signal?: AbortSignal;
256
285
}
257
286
258
287
interface CredentialRequestOptions {
259
288
mediation?: CredentialMediationRequirement;
289
+ publicKey?: PublicKeyCredentialRequestOptions;
260
290
signal?: AbortSignal;
261
291
}
262
292
@@ -1034,6 +1064,52 @@ interface PropertyIndexedKeyframes {
1034
1064
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
1035
1065
}
1036
1066
1067
+ interface PublicKeyCredentialCreationOptions {
1068
+ attestation?: AttestationConveyancePreference;
1069
+ authenticatorSelection?: AuthenticatorSelectionCriteria;
1070
+ challenge: BufferSource;
1071
+ excludeCredentials?: PublicKeyCredentialDescriptor[];
1072
+ extensions?: AuthenticationExtensionsClientInputs;
1073
+ pubKeyCredParams: PublicKeyCredentialParameters[];
1074
+ rp: PublicKeyCredentialRpEntity;
1075
+ timeout?: number;
1076
+ user: PublicKeyCredentialUserEntity;
1077
+ }
1078
+
1079
+ interface PublicKeyCredentialDescriptor {
1080
+ id: BufferSource;
1081
+ transports?: AuthenticatorTransport[];
1082
+ type: PublicKeyCredentialType;
1083
+ }
1084
+
1085
+ interface PublicKeyCredentialEntity {
1086
+ icon?: string;
1087
+ name: string;
1088
+ }
1089
+
1090
+ interface PublicKeyCredentialParameters {
1091
+ alg: COSEAlgorithmIdentifier;
1092
+ type: PublicKeyCredentialType;
1093
+ }
1094
+
1095
+ interface PublicKeyCredentialRequestOptions {
1096
+ allowCredentials?: PublicKeyCredentialDescriptor[];
1097
+ challenge: BufferSource;
1098
+ extensions?: AuthenticationExtensionsClientInputs;
1099
+ rpId?: string;
1100
+ timeout?: number;
1101
+ userVerification?: UserVerificationRequirement;
1102
+ }
1103
+
1104
+ interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
1105
+ id?: string;
1106
+ }
1107
+
1108
+ interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
1109
+ displayName: string;
1110
+ id: BufferSource;
1111
+ }
1112
+
1037
1113
interface PushPermissionDescriptor extends PermissionDescriptor {
1038
1114
name: "push";
1039
1115
userVisibleOnly?: boolean;
@@ -1762,6 +1838,11 @@ interface WorkletOptions {
1762
1838
credentials?: RequestCredentials;
1763
1839
}
1764
1840
1841
+ interface txAuthGenericArg {
1842
+ content: ArrayBuffer;
1843
+ contentType: string;
1844
+ }
1845
+
1765
1846
interface EventListener {
1766
1847
(evt: Event): void;
1767
1848
}
@@ -2287,6 +2368,35 @@ declare var AudioWorkletNode: {
2287
2368
new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
2288
2369
};
2289
2370
2371
+ interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
2372
+ readonly authenticatorData: ArrayBuffer;
2373
+ readonly signature: ArrayBuffer;
2374
+ readonly userHandle: ArrayBuffer | null;
2375
+ }
2376
+
2377
+ declare var AuthenticatorAssertionResponse: {
2378
+ prototype: AuthenticatorAssertionResponse;
2379
+ new(): AuthenticatorAssertionResponse;
2380
+ };
2381
+
2382
+ interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
2383
+ readonly attestationObject: ArrayBuffer;
2384
+ }
2385
+
2386
+ declare var AuthenticatorAttestationResponse: {
2387
+ prototype: AuthenticatorAttestationResponse;
2388
+ new(): AuthenticatorAttestationResponse;
2389
+ };
2390
+
2391
+ interface AuthenticatorResponse {
2392
+ readonly clientDataJSON: ArrayBuffer;
2393
+ }
2394
+
2395
+ declare var AuthenticatorResponse: {
2396
+ prototype: AuthenticatorResponse;
2397
+ new(): AuthenticatorResponse;
2398
+ };
2399
+
2290
2400
interface BarProp {
2291
2401
readonly visible: boolean;
2292
2402
}
@@ -11832,6 +11942,18 @@ declare var PromiseRejectionEvent: {
11832
11942
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
11833
11943
};
11834
11944
11945
+ interface PublicKeyCredential extends Credential {
11946
+ readonly rawId: ArrayBuffer;
11947
+ readonly response: AuthenticatorResponse;
11948
+ getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
11949
+ }
11950
+
11951
+ declare var PublicKeyCredential: {
11952
+ prototype: PublicKeyCredential;
11953
+ new(): PublicKeyCredential;
11954
+ isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
11955
+ };
11956
+
11835
11957
/** This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. */
11836
11958
interface PushManager {
11837
11959
getSubscription(): Promise<PushSubscription | null>;
@@ -19785,6 +19907,12 @@ type ConstrainBoolean = boolean | ConstrainBooleanParameters;
19785
19907
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
19786
19908
type PerformanceEntryList = PerformanceEntry[];
19787
19909
type VibratePattern = number | number[];
19910
+ type COSEAlgorithmIdentifier = number;
19911
+ type AuthenticatorSelectionList = AAGUID[];
19912
+ type AAGUID = BufferSource;
19913
+ type AuthenticationExtensionsSupported = string[];
19914
+ type UvmEntry = number[];
19915
+ type UvmEntries = UvmEntry[];
19788
19916
type AlgorithmIdentifier = string | Algorithm;
19789
19917
type HashAlgorithmIdentifier = AlgorithmIdentifier;
19790
19918
type BigInteger = Uint8Array;
@@ -19822,8 +19950,11 @@ type WindowProxy = Window;
19822
19950
type AlignSetting = "start" | "center" | "end" | "left" | "right";
19823
19951
type AnimationPlayState = "idle" | "running" | "paused" | "finished";
19824
19952
type AppendMode = "segments" | "sequence";
19953
+ type AttestationConveyancePreference = "none" | "indirect" | "direct";
19825
19954
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
19826
19955
type AudioContextState = "suspended" | "running" | "closed";
19956
+ type AuthenticatorAttachment = "platform" | "cross-platform";
19957
+ type AuthenticatorTransport = "usb" | "nfc" | "ble" | "internal";
19827
19958
type AutoKeyword = "auto";
19828
19959
type AutomationRate = "a-rate" | "k-rate";
19829
19960
type BinaryType = "blob" | "arraybuffer";
@@ -19889,6 +20020,7 @@ type PermissionName = "geolocation" | "notifications" | "push" | "midi" | "camer
19889
20020
type PermissionState = "granted" | "denied" | "prompt";
19890
20021
type PlaybackDirection = "normal" | "reverse" | "alternate" | "alternate-reverse";
19891
20022
type PositionAlignSetting = "line-left" | "center" | "line-right" | "auto";
20023
+ type PublicKeyCredentialType = "public-key";
19892
20024
type PushEncryptionKeyName = "p256dh" | "auth";
19893
20025
type PushPermissionState = "denied" | "granted" | "prompt";
19894
20026
type RTCBundlePolicy = "balanced" | "max-compat" | "max-bundle";
@@ -19944,6 +20076,7 @@ type TextTrackKind = "subtitles" | "captions" | "descriptions" | "chapters" | "m
19944
20076
type TextTrackMode = "disabled" | "hidden" | "showing";
19945
20077
type TouchType = "direct" | "stylus";
19946
20078
type Transport = "usb" | "nfc" | "ble";
20079
+ type UserVerificationRequirement = "required" | "preferred" | "discouraged";
19947
20080
type VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";
19948
20081
type VideoFacingModeEnum = "user" | "environment" | "left" | "right";
19949
20082
type VisibilityState = "hidden" | "visible" | "prerender";
0 commit comments