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