Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/webappsec-credential-management

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/webappsec-credential-management - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

73

webappsec-credential-management/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for non-npm package W3C (WebAppSec) Credential Management API Level 1, 0.4
// Type definitions for non-npm package W3C (WebAppSec) Credential Management API Level 1, 0.5
// Project: https://github.com/w3c/webappsec-credential-management

@@ -127,3 +127,3 @@ // Definitions by: Iain McGinniss <https://github.com/iainmcgin>

*/
id: string;
readonly id: string;
}

@@ -138,3 +138,3 @@

*/
declare abstract class CredentialBase {
interface Credential {
/**

@@ -145,3 +145,2 @@ * The credential’s identifier. This might be a GUID, username, or email

readonly id: string;
/**

@@ -176,3 +175,5 @@ * The credential’s type.

*/
declare abstract class SiteBoundCredential extends CredentialBase {
// tslint:disable-next-line no-empty-interface
interface SiteBoundCredential extends Credential { }
declare abstract class SiteBoundCredential {
/**

@@ -379,14 +380,19 @@ * A name associated with the credential, intended as a human-understandable

// Spec: https://w3c.github.io/webauthn/
interface txAuthGenericArg {
content: ArrayBuffer;
contentType: string;
}
/**
* @see {@link https://w3c.github.io/webauthn/#enumdef-publickeycredentialtype}
*/
type PublicKeyCredentialType = "public-key";
interface AuthenticationExtensionsClientInputs {
appid?: string;
authnSel?: Array<ArrayBufferView | ArrayBuffer>;
exts?: boolean;
loc?: boolean;
txAuthGeneric?: txAuthGenericArg;
txAuthSimple?: string;
uvi?: boolean;
uvm?: boolean;
}
/**
* @see {@link https://w3c.github.io/webauthn/#enumdef-userverificationrequirement}
*/
type UserVerificationRequirement = "required" | "preferred" | "discouraged";
/**
* @see {@link https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptions}

@@ -399,4 +405,4 @@ */

allowCredentials?: PublicKeyCredentialDescriptor[];
userVerification?: UserVerificationRequirement;
extensions?: any;
userVerification?: "required" | "preferred" | "discouraged";
extensions?: AuthenticationExtensionsClientInputs;
}

@@ -425,3 +431,3 @@

interface PublicKeyCredentialParameters {
type: PublicKeyCredentialType;
type: "public-key";
alg: number;

@@ -431,35 +437,20 @@ }

/**
* @see {@link https://w3c.github.io/webauthn/#transport}
*/
type AuthenticatorTransport = "usb" | "nfc" | "ble" | "internal";
/**
* @see {@link https://w3c.github.io/webauthn/#dictdef-publickeycredentialdescriptor}
*/
interface PublicKeyCredentialDescriptor {
type: PublicKeyCredentialType;
type: "public-key";
id: BufferSource;
transports?: AuthenticatorTransport[];
transports?: Array<"usb" | "nfc" | "ble" | "internal">;
}
/**
* @see {@link https://w3c.github.io/webauthn/#attachment}
*/
type AuthenticatorAttachment = "platform" | "cross-platform";
/**
* @see {@link https://w3c.github.io/webauthn/#dictdef-authenticatorselectioncriteria}
*/
interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: AuthenticatorAttachment;
authenticatorAttachment?: "platform" | "cross-platform";
requireResidentKey?: boolean;
userVerification?: UserVerificationRequirement;
userVerification?: "required" | "preferred" | "discouraged";
}
/**
* @see {@link https://w3c.github.io/webauthn/#attestation-convey}
*/
type AttestationConveyancePreference = "none" | "indirect" | "direct";
/**
* @see {@link https://w3c.github.io/webauthn/#dictdef-makepublickeycredentialoptions}

@@ -477,4 +468,4 @@ */

authenticatorSelection?: AuthenticatorSelectionCriteria;
attestation?: AttestationConveyancePreference;
extensions?: any;
attestation?: "none" | "indirect" | "direct";
extensions?: AuthenticationExtensionsClientInputs;
}

@@ -508,6 +499,6 @@

*/
interface PublicKeyCredential extends CredentialData {
readonly type: PublicKeyCredentialType;
interface PublicKeyCredential extends Credential {
readonly type: "public-key";
readonly rawId: ArrayBuffer;
readonly response: AuthenticatorAttestationResponse|AuthenticatorAssertionResponse;
readonly response: AuthenticatorResponse;
}
{
"name": "@types/webappsec-credential-management",
"version": "0.4.1",
"version": "0.5.0",
"description": "TypeScript definitions for W3C (WebAppSec) Credential Management API Level 1,",

@@ -32,4 +32,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "310a7f542f690fbfe52a00186a18aa066258a06c724186904a4f9dec3cc652ef",
"typesPublisherContentHash": "b9dc87321205999e928e300dbd1e6464ec5b9da7fc9e37c002914ac2294a9b06",
"typeScriptVersion": "2.7"
}

@@ -11,7 +11,7 @@ # Installation

Additional Details
* Last updated: Mon, 08 Jul 2019 23:03:23 GMT
* Last updated: Thu, 11 Jul 2019 21:17:01 GMT
* Dependencies: none
* Global values: CredentialBase, FederatedCredential, PasswordCredential, SiteBoundCredential, fetch
* Global values: FederatedCredential, PasswordCredential, SiteBoundCredential, fetch
# Credits
These definitions were written by Iain McGinniss <https://github.com/iainmcgin>, Joao Peixoto <https://github.com/Hartimer>, and Michael J. Currie <https://github.com/Basaingeal>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc