@dfns/sdk 0.4.0-alpha.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,6 +29,8 @@ export type UserLoginChallenge = {
29
29
  challengeIdentifier: Jwt;
30
30
  externalAuthenticationUrl: string;
31
31
  allowCredentials: AllowCredentials;
32
+ attestation: AuthenticatorAttestationOptions;
33
+ userVerification: AuthenticatorRequirementOptions;
32
34
  };
33
35
  export type UserLogin = {
34
36
  token: Jwt;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfns/sdk",
3
- "version": "0.4.0-alpha.2",
3
+ "version": "0.4.0",
4
4
  "dependencies": {
5
5
  "buffer": "6.0.3",
6
6
  "cross-fetch": "3.1.6",
package/signer.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export type CredentialFactor = 'first' | 'second' | 'either';
2
2
  export type CredentialKind = 'Key' | 'Fido2' | 'Password' | 'Totp' | 'RecoveryKey';
3
3
  export type CredentialTransport = 'usb' | 'nfc' | 'ble' | 'internal';
4
+ export type UserVerificationRequirement = 'required' | 'preferred' | 'discouraged';
4
5
  export type AllowCredential = {
5
6
  type: 'public-key';
6
7
  id: string;
@@ -24,6 +25,7 @@ export type UserActionChallenge = {
24
25
  key: AllowCredential[];
25
26
  webauthn: AllowCredential[];
26
27
  };
28
+ userVerification: UserVerificationRequirement;
27
29
  };
28
30
  export type KeyAssertion = {
29
31
  kind: 'Key';
package/store.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { AllowCredential, CredentialKind } from './signer';
1
+ import { AllowCredential, CredentialKind, UserVerificationRequirement } from './signer';
2
2
  export type AuthenticatorAttachment = 'platform' | 'cross-platform';
3
3
  export type ResidentKeyRequirement = 'required' | 'preferred' | 'discouraged';
4
- export type UserVerificationRequirement = 'required' | 'preferred' | 'discouraged';
5
4
  export type AttestationConveyancePreference = 'none' | 'indirect' | 'direct' | 'enterprise';
6
5
  export type UserRegistrationChallenge = {
7
6
  temporaryAuthenticationToken: string;