Skip to content

Commit 57b0199

Browse files
committed
chore: remove unimplemented Web Authentication APIs
1 parent f5b034c commit 57b0199

File tree

4 files changed

+4
-94
lines changed

4 files changed

+4
-94
lines changed

baselines/dom.generated.d.ts

Lines changed: 0 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22
/// DOM APIs
33
/////////////////////////////
44

5-
interface Account {
6-
displayName: string;
7-
id: string;
8-
imageURL?: string;
9-
name?: string;
10-
rpDisplayName: string;
11-
}
12-
135
interface AddEventListenerOptions extends EventListenerOptions {
146
once?: boolean;
157
passive?: boolean;
@@ -77,13 +69,6 @@ interface AnimationPlaybackEventInit extends EventInit {
7769
timelineTime?: number | null;
7870
}
7971

80-
interface AssertionOptions {
81-
allowList?: ScopedCredentialDescriptor[];
82-
extensions?: WebAuthnExtensions;
83-
rpId?: string;
84-
timeoutSeconds?: number;
85-
}
86-
8772
interface AssignedNodesOptions {
8873
flatten?: boolean;
8974
}
@@ -202,15 +187,6 @@ interface ChannelSplitterOptions extends AudioNodeOptions {
202187
numberOfOutputs?: number;
203188
}
204189

205-
interface ClientData {
206-
challenge: string;
207-
extensions?: WebAuthnExtensions;
208-
hashAlg: string | Algorithm;
209-
origin: string;
210-
rpId: string;
211-
tokenBinding?: string;
212-
}
213-
214190
interface ClientQueryOptions {
215191
includeUncontrolled?: boolean;
216192
type?: ClientTypes;
@@ -1669,24 +1645,6 @@ interface SVGBoundingBoxOptions {
16691645
stroke?: boolean;
16701646
}
16711647

1672-
interface ScopedCredentialDescriptor {
1673-
id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
1674-
transports?: Transport[];
1675-
type: ScopedCredentialType;
1676-
}
1677-
1678-
interface ScopedCredentialOptions {
1679-
excludeList?: ScopedCredentialDescriptor[];
1680-
extensions?: WebAuthnExtensions;
1681-
rpId?: string;
1682-
timeoutSeconds?: number;
1683-
}
1684-
1685-
interface ScopedCredentialParameters {
1686-
algorithm: string | Algorithm;
1687-
type: ScopedCredentialType;
1688-
}
1689-
16901648
interface ScrollIntoViewOptions extends ScrollOptions {
16911649
block?: ScrollLogicalPosition;
16921650
inline?: ScrollLogicalPosition;
@@ -1908,9 +1866,6 @@ interface WaveShaperOptions extends AudioNodeOptions {
19081866
oversample?: OverSampleType;
19091867
}
19101868

1911-
interface WebAuthnExtensions {
1912-
}
1913-
19141869
interface WebGLContextAttributes {
19151870
alpha?: boolean;
19161871
antialias?: boolean;
@@ -14613,26 +14568,6 @@ declare var SVGZoomEvent: {
1461314568
new(): SVGZoomEvent;
1461414569
};
1461514570

14616-
interface ScopedCredential {
14617-
readonly id: ArrayBuffer;
14618-
readonly type: ScopedCredentialType;
14619-
}
14620-
14621-
declare var ScopedCredential: {
14622-
prototype: ScopedCredential;
14623-
new(): ScopedCredential;
14624-
};
14625-
14626-
interface ScopedCredentialInfo {
14627-
readonly credential: ScopedCredential;
14628-
readonly publicKey: CryptoKey;
14629-
}
14630-
14631-
declare var ScopedCredentialInfo: {
14632-
prototype: ScopedCredentialInfo;
14633-
new(): ScopedCredentialInfo;
14634-
};
14635-
1463614571
/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */
1463714572
interface Screen {
1463814573
readonly availHeight: number;
@@ -16177,28 +16112,6 @@ declare var WaveShaperNode: {
1617716112
new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
1617816113
};
1617916114

16180-
interface WebAuthentication {
16181-
getAssertion(assertionChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: AssertionOptions): Promise<WebAuthnAssertion>;
16182-
makeCredential(accountInformation: Account, cryptoParameters: ScopedCredentialParameters[], attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;
16183-
}
16184-
16185-
declare var WebAuthentication: {
16186-
prototype: WebAuthentication;
16187-
new(): WebAuthentication;
16188-
};
16189-
16190-
interface WebAuthnAssertion {
16191-
readonly authenticatorData: ArrayBuffer;
16192-
readonly clientData: ArrayBuffer;
16193-
readonly credential: ScopedCredential;
16194-
readonly signature: ArrayBuffer;
16195-
}
16196-
16197-
declare var WebAuthnAssertion: {
16198-
prototype: WebAuthnAssertion;
16199-
new(): WebAuthnAssertion;
16200-
};
16201-
1620216115
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
1620316116
}
1620416117

@@ -19870,7 +19783,6 @@ type RequestRedirect = "error" | "follow" | "manual";
1987019783
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
1987119784
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
1987219785
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
19873-
type ScopedCredentialType = "ScopedCred";
1987419786
type ScrollBehavior = "auto" | "smooth";
1987519787
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
1987619788
type ScrollRestoration = "auto" | "manual";
@@ -19884,7 +19796,6 @@ type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "
1988419796
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
1988519797
type TextTrackMode = "disabled" | "hidden" | "showing";
1988619798
type TouchType = "direct" | "stylus";
19887-
type Transport = "ble" | "nfc" | "usb";
1988819799
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
1988919800
type VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";
1989019801
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";

baselines/dom.iterable.generated.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,6 @@ interface WEBGL_draw_buffers {
267267
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
268268
}
269269

270-
interface WebAuthentication {
271-
makeCredential(accountInformation: Account, cryptoParameters: Iterable<ScopedCredentialParameters>, attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;
272-
}
273-
274270
interface WebGL2RenderingContextBase {
275271
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
276272
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;

inputfiles/knownTypes.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"BigInteger",
1212
"ByteLengthChunk",
1313
"CanvasRenderingContext2DSettings",
14-
"ClientData",
1514
"ClientQueryOptions",
1615
"ClientTypes",
1716
"CompositeOperationOrAuto",

inputfiles/removedTypes.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@
298298
}
299299
}
300300
},
301+
"ScopedCredential": null,
302+
"ScopedCredentialInfo": null,
301303
"ServiceWorkerGlobalScope": {
302304
"properties": {
303305
"property": {
@@ -420,6 +422,8 @@
420422
}
421423
}
422424
},
425+
"WebAuthentication": null,
426+
"WebAuthnAssertion": null,
423427
"WebGLBuffer": {
424428
"extends": null
425429
},

0 commit comments

Comments
 (0)