@@ -135,6 +135,9 @@ interface AuthenticationExtensionsClientInputs {
135
135
prf?: AuthenticationExtensionsPRFInputs;
136
136
}
137
137
138
+ interface AuthenticationExtensionsClientInputsJSON {
139
+ }
140
+
138
141
interface AuthenticationExtensionsClientOutputs {
139
142
appid?: boolean;
140
143
credProps?: CredentialPropertiesOutput;
@@ -1294,12 +1297,32 @@ interface PublicKeyCredentialCreationOptions {
1294
1297
user: PublicKeyCredentialUserEntity;
1295
1298
}
1296
1299
1300
+ interface PublicKeyCredentialCreationOptionsJSON {
1301
+ attestation?: string;
1302
+ attestationFormats?: string[];
1303
+ authenticatorSelection?: AuthenticatorSelectionCriteria;
1304
+ challenge: Base64URLString;
1305
+ excludeCredentials?: PublicKeyCredentialDescriptorJSON[];
1306
+ extensions?: AuthenticationExtensionsClientInputsJSON;
1307
+ hints?: string[];
1308
+ pubKeyCredParams: PublicKeyCredentialParameters[];
1309
+ rp: PublicKeyCredentialRpEntity;
1310
+ timeout?: number;
1311
+ user: PublicKeyCredentialUserEntityJSON;
1312
+ }
1313
+
1297
1314
interface PublicKeyCredentialDescriptor {
1298
1315
id: BufferSource;
1299
1316
transports?: AuthenticatorTransport[];
1300
1317
type: PublicKeyCredentialType;
1301
1318
}
1302
1319
1320
+ interface PublicKeyCredentialDescriptorJSON {
1321
+ id: Base64URLString;
1322
+ transports?: string[];
1323
+ type: string;
1324
+ }
1325
+
1303
1326
interface PublicKeyCredentialEntity {
1304
1327
name: string;
1305
1328
}
@@ -1318,6 +1341,16 @@ interface PublicKeyCredentialRequestOptions {
1318
1341
userVerification?: UserVerificationRequirement;
1319
1342
}
1320
1343
1344
+ interface PublicKeyCredentialRequestOptionsJSON {
1345
+ allowCredentials?: PublicKeyCredentialDescriptorJSON[];
1346
+ challenge: Base64URLString;
1347
+ extensions?: AuthenticationExtensionsClientInputsJSON;
1348
+ hints?: string[];
1349
+ rpId?: string;
1350
+ timeout?: number;
1351
+ userVerification?: string;
1352
+ }
1353
+
1321
1354
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
1322
1355
id?: string;
1323
1356
}
@@ -1327,6 +1360,12 @@ interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
1327
1360
id: BufferSource;
1328
1361
}
1329
1362
1363
+ interface PublicKeyCredentialUserEntityJSON {
1364
+ displayName: string;
1365
+ id: Base64URLString;
1366
+ name: string;
1367
+ }
1368
+
1330
1369
interface PushSubscriptionJSON {
1331
1370
endpoint?: string;
1332
1371
expirationTime?: EpochTimeStamp | null;
@@ -3494,6 +3533,7 @@ declare var CSSKeyframeRule: {
3494
3533
interface CSSKeyframesRule extends CSSRule {
3495
3534
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */
3496
3535
readonly cssRules: CSSRuleList;
3536
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length) */
3497
3537
readonly length: number;
3498
3538
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */
3499
3539
name: string;
@@ -11108,11 +11148,23 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
11108
11148
readonly validationMessage: string;
11109
11149
/** Returns a ValidityState object that represents the validity states of an element. */
11110
11150
readonly validity: ValidityState;
11111
- /** Returns the value of the data at the cursor's current position. */
11151
+ /**
11152
+ * Returns the value of the data at the cursor's current position.
11153
+ *
11154
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
11155
+ */
11112
11156
value: string;
11113
- /** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
11157
+ /**
11158
+ * Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based.
11159
+ *
11160
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsDate)
11161
+ */
11114
11162
valueAsDate: Date | null;
11115
- /** Returns the input field value as a number. */
11163
+ /**
11164
+ * Returns the input field value as a number.
11165
+ *
11166
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsNumber)
11167
+ */
11116
11168
valueAsNumber: number;
11117
11169
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */
11118
11170
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
@@ -14136,7 +14188,11 @@ declare var ImageBitmap: {
14136
14188
14137
14189
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */
14138
14190
interface ImageBitmapRenderingContext {
14139
- /** Returns the canvas element that the context is bound to. */
14191
+ /**
14192
+ * Returns the canvas element that the context is bound to.
14193
+ *
14194
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/canvas)
14195
+ */
14140
14196
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
14141
14197
/**
14142
14198
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
@@ -17723,6 +17779,8 @@ interface PublicKeyCredential extends Credential {
17723
17779
readonly response: AuthenticatorResponse;
17724
17780
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */
17725
17781
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
17782
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON) */
17783
+ toJSON(): PublicKeyCredentialJSON;
17726
17784
}
17727
17785
17728
17786
declare var PublicKeyCredential: {
@@ -17732,6 +17790,10 @@ declare var PublicKeyCredential: {
17732
17790
isConditionalMediationAvailable(): Promise<boolean>;
17733
17791
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */
17734
17792
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
17793
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static) */
17794
+ parseCreationOptionsFromJSON(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptions;
17795
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static) */
17796
+ parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
17735
17797
};
17736
17798
17737
17799
/**
@@ -28139,6 +28201,7 @@ type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
28139
28201
type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
28140
28202
type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
28141
28203
type AutoFillSection = `section-${string}`;
28204
+ type Base64URLString = string;
28142
28205
type BigInteger = Uint8Array;
28143
28206
type BlobPart = BufferSource | Blob | string;
28144
28207
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
@@ -28191,6 +28254,7 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
28191
28254
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
28192
28255
type OptionalPrefixToken<T extends string> = `${T} ` | "";
28193
28256
type PerformanceEntryList = PerformanceEntry[];
28257
+ type PublicKeyCredentialJSON = any;
28194
28258
type RTCRtpTransform = RTCRtpScriptTransform;
28195
28259
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
28196
28260
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
0 commit comments