@@ -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;
@@ -251,11 +279,13 @@ interface ConvolverOptions extends AudioNodeOptions {
251
279
}
252
280
253
281
interface CredentialCreationOptions {
282
+ publicKey?: PublicKeyCredentialCreationOptions;
254
283
signal?: AbortSignal;
255
284
}
256
285
257
286
interface CredentialRequestOptions {
258
287
mediation?: CredentialMediationRequirement;
288
+ publicKey?: PublicKeyCredentialRequestOptions;
259
289
signal?: AbortSignal;
260
290
}
261
291
@@ -1033,6 +1063,52 @@ interface PropertyIndexedKeyframes {
1033
1063
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
1034
1064
}
1035
1065
1066
+ interface PublicKeyCredentialCreationOptions {
1067
+ attestation?: AttestationConveyancePreference;
1068
+ authenticatorSelection?: AuthenticatorSelectionCriteria;
1069
+ challenge: BufferSource;
1070
+ excludeCredentials?: PublicKeyCredentialDescriptor[];
1071
+ extensions?: AuthenticationExtensionsClientInputs;
1072
+ pubKeyCredParams: PublicKeyCredentialParameters[];
1073
+ rp: PublicKeyCredentialRpEntity;
1074
+ timeout?: number;
1075
+ user: PublicKeyCredentialUserEntity;
1076
+ }
1077
+
1078
+ interface PublicKeyCredentialDescriptor {
1079
+ id: BufferSource;
1080
+ transports?: AuthenticatorTransport[];
1081
+ type: PublicKeyCredentialType;
1082
+ }
1083
+
1084
+ interface PublicKeyCredentialEntity {
1085
+ icon?: string;
1086
+ name: string;
1087
+ }
1088
+
1089
+ interface PublicKeyCredentialParameters {
1090
+ alg: COSEAlgorithmIdentifier;
1091
+ type: PublicKeyCredentialType;
1092
+ }
1093
+
1094
+ interface PublicKeyCredentialRequestOptions {
1095
+ allowCredentials?: PublicKeyCredentialDescriptor[];
1096
+ challenge: BufferSource;
1097
+ extensions?: AuthenticationExtensionsClientInputs;
1098
+ rpId?: string;
1099
+ timeout?: number;
1100
+ userVerification?: UserVerificationRequirement;
1101
+ }
1102
+
1103
+ interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
1104
+ id?: string;
1105
+ }
1106
+
1107
+ interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
1108
+ displayName: string;
1109
+ id: BufferSource;
1110
+ }
1111
+
1036
1112
interface PushPermissionDescriptor extends PermissionDescriptor {
1037
1113
name: "push";
1038
1114
userVisibleOnly?: boolean;
@@ -1761,6 +1837,11 @@ interface WorkletOptions {
1761
1837
credentials?: RequestCredentials;
1762
1838
}
1763
1839
1840
+ interface txAuthGenericArg {
1841
+ content: ArrayBuffer;
1842
+ contentType: string;
1843
+ }
1844
+
1764
1845
interface EventListener {
1765
1846
(evt: Event): void;
1766
1847
}
@@ -2286,6 +2367,35 @@ declare var AudioWorkletNode: {
2286
2367
new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
2287
2368
};
2288
2369
2370
+ interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
2371
+ readonly authenticatorData: ArrayBuffer;
2372
+ readonly signature: ArrayBuffer;
2373
+ readonly userHandle: ArrayBuffer | null;
2374
+ }
2375
+
2376
+ declare var AuthenticatorAssertionResponse: {
2377
+ prototype: AuthenticatorAssertionResponse;
2378
+ new(): AuthenticatorAssertionResponse;
2379
+ };
2380
+
2381
+ interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
2382
+ readonly attestationObject: ArrayBuffer;
2383
+ }
2384
+
2385
+ declare var AuthenticatorAttestationResponse: {
2386
+ prototype: AuthenticatorAttestationResponse;
2387
+ new(): AuthenticatorAttestationResponse;
2388
+ };
2389
+
2390
+ interface AuthenticatorResponse {
2391
+ readonly clientDataJSON: ArrayBuffer;
2392
+ }
2393
+
2394
+ declare var AuthenticatorResponse: {
2395
+ prototype: AuthenticatorResponse;
2396
+ new(): AuthenticatorResponse;
2397
+ };
2398
+
2289
2399
interface BarProp {
2290
2400
readonly visible: boolean;
2291
2401
}
@@ -11830,6 +11940,18 @@ declare var PromiseRejectionEvent: {
11830
11940
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
11831
11941
};
11832
11942
11943
+ interface PublicKeyCredential extends Credential {
11944
+ readonly rawId: ArrayBuffer;
11945
+ readonly response: AuthenticatorResponse;
11946
+ getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
11947
+ }
11948
+
11949
+ declare var PublicKeyCredential: {
11950
+ prototype: PublicKeyCredential;
11951
+ new(): PublicKeyCredential;
11952
+ isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
11953
+ };
11954
+
11833
11955
/** This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. */
11834
11956
interface PushManager {
11835
11957
getSubscription(): Promise<PushSubscription | null>;
@@ -18776,6 +18898,12 @@ type ConstrainBoolean = boolean | ConstrainBooleanParameters;
18776
18898
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
18777
18899
type PerformanceEntryList = PerformanceEntry[];
18778
18900
type VibratePattern = number | number[];
18901
+ type COSEAlgorithmIdentifier = number;
18902
+ type AuthenticatorSelectionList = AAGUID[];
18903
+ type AAGUID = BufferSource;
18904
+ type AuthenticationExtensionsSupported = string[];
18905
+ type UvmEntry = number[];
18906
+ type UvmEntries = UvmEntry[];
18779
18907
type AlgorithmIdentifier = string | Algorithm;
18780
18908
type HashAlgorithmIdentifier = AlgorithmIdentifier;
18781
18909
type BigInteger = Uint8Array;
@@ -18810,8 +18938,11 @@ type WindowProxy = Window;
18810
18938
type AlignSetting = "start" | "center" | "end" | "left" | "right";
18811
18939
type AnimationPlayState = "idle" | "running" | "paused" | "finished";
18812
18940
type AppendMode = "segments" | "sequence";
18941
+ type AttestationConveyancePreference = "none" | "indirect" | "direct";
18813
18942
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
18814
18943
type AudioContextState = "suspended" | "running" | "closed";
18944
+ type AuthenticatorAttachment = "platform" | "cross-platform";
18945
+ type AuthenticatorTransport = "usb" | "nfc" | "ble" | "internal";
18815
18946
type AutoKeyword = "auto";
18816
18947
type AutomationRate = "a-rate" | "k-rate";
18817
18948
type BinaryType = "blob" | "arraybuffer";
@@ -18877,6 +19008,7 @@ type PermissionName = "geolocation" | "notifications" | "push" | "midi" | "camer
18877
19008
type PermissionState = "granted" | "denied" | "prompt";
18878
19009
type PlaybackDirection = "normal" | "reverse" | "alternate" | "alternate-reverse";
18879
19010
type PositionAlignSetting = "line-left" | "center" | "line-right" | "auto";
19011
+ type PublicKeyCredentialType = "public-key";
18880
19012
type PushEncryptionKeyName = "p256dh" | "auth";
18881
19013
type PushPermissionState = "denied" | "granted" | "prompt";
18882
19014
type RTCBundlePolicy = "balanced" | "max-compat" | "max-bundle";
@@ -18932,6 +19064,7 @@ type TextTrackKind = "subtitles" | "captions" | "descriptions" | "chapters" | "m
18932
19064
type TextTrackMode = "disabled" | "hidden" | "showing";
18933
19065
type TouchType = "direct" | "stylus";
18934
19066
type Transport = "usb" | "nfc" | "ble";
19067
+ type UserVerificationRequirement = "required" | "preferred" | "discouraged";
18935
19068
type VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";
18936
19069
type VideoFacingModeEnum = "user" | "environment" | "left" | "right";
18937
19070
type VisibilityState = "hidden" | "visible" | "prerender";
0 commit comments