@loginid/websdk3 1.5.0 → 1.6.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.
package/dist/index.d.cts CHANGED
@@ -128,7 +128,7 @@ type PubKeyCredentialDescriptor = {
128
128
  * Base64 encoded byte array of the public key identifier.
129
129
  */
130
130
  id: string;
131
- transports?: Array<'usb' | 'nfc' | 'ble' | 'internal' | 'hybrid'>;
131
+ transports?: Array<'usb' | 'nfc' | 'ble' | 'internal' | 'hybrid' | 'cable' | 'smart-card'>;
132
132
  type: 'public-key';
133
133
  };
134
134
 
@@ -180,6 +180,14 @@ type AuthInit = {
180
180
  * List of fallback methods (in priority order) available to this client.
181
181
  */
182
182
  fallbackOptions?: Array<'otp:client' | 'otp:email' | 'otp:sms'>;
183
+ /**
184
+ * Match score of the device
185
+ */
186
+ matchScore?: number;
187
+ /**
188
+ * Type of passkey supported by the client.
189
+ */
190
+ passkeyType?: string;
183
191
  /**
184
192
  * An opaque object containing session data.
185
193
  */
@@ -251,19 +259,11 @@ type AuthInitRequestBody = {
251
259
  user?: UserLogin;
252
260
  };
253
261
 
254
- type CodeResult = {
255
- /**
256
- * Generated code
257
- */
258
- code: string;
262
+ type JWT = {
259
263
  /**
260
- * Expiration time of the code
264
+ * Device ID
261
265
  */
262
- expiresAt: string;
263
- };
264
-
265
- type JWT = {
266
- code?: CodeResult;
266
+ deviceID?: string;
267
267
  /**
268
268
  * JWT access token
269
269
  */
@@ -599,7 +599,7 @@ type CreationResult = {
599
599
  * These values are the transports that the authenticator is believed to support,
600
600
  * or an empty sequence if the information is unavailable.
601
601
  */
602
- transports?: Array<'usb' | 'nfc' | 'ble' | 'internal' | 'hybrid'>;
602
+ transports?: Array<'usb' | 'nfc' | 'ble' | 'internal' | 'hybrid' | 'cable' | 'smart-card'>;
603
603
  };
604
604
 
605
605
  type RegCompleteRequestBody = {
@@ -968,6 +968,7 @@ interface ConfirmTransactionOptions extends PasskeyOptions {
968
968
  }
969
969
  interface PasskeyResult {
970
970
  jwtAccess: string;
971
+ deviceID?: string;
971
972
  }
972
973
  interface LoginIDUser {
973
974
  username: string;
@@ -1226,4 +1227,4 @@ interface DoesDeviceSupportPasskeysResponse {
1226
1227
  */
1227
1228
  declare function doesDeviceSupportPasskeys(): Promise<DoesDeviceSupportPasskeysResponse>;
1228
1229
 
1229
- export { ApiError, type Application, type AuthCode, type AuthCodeRequestSMSRequestBody, type AuthCodeVerifyRequestBody, type AuthCompleteRequestBody, type AuthInit, type AuthInitRequestBody, AuthService, type AuthenticateWithPasskeysOptions, type AuthenticatorAssertionResponse, type AuthenticatorSelectionCriteria, type BadRequestError, BaseHttpRequest, CancelError, CancelablePromise, type CodeResult, type ConfirmTransactionOptions, type CreationResult, type DeletePasskeyOptions, type DeviceInfo, type DeviceInfoRequestBody, type DoesDeviceSupportPasskeysResponse, type GrantCreateRequestBody, type GrantCreateResponseBody, type JWT, type ListPasskeysOptions, type LoginIDConfig, LoginIDService, type LoginIDUser, LoginIDWebSDK, MgmtService, OpenAPI, type OpenAPIConfig, type Passkey, type PasskeyCollection, PasskeyError, type PasskeyManagementOptions, type PasskeyOptions, type PasskeyRenameRequestBody, type PasskeyResult, PasskeysService, type ProfileEmailUpdateRequestBody, type ProfilePhoneUpdateRequestBody, type ProfilePhoneVerifyRequestBody, ProfileService, type PubKeyCredentialDescriptor, type PublicKeyCredentialCreationOptions, type PublicKeyCredentialParameters, type PublicKeyCredentialRequestOptions, type PublicKeyCredentialRpEntity, type PublicKeyCredentialUserEntity, type RegCompleteRequestBody, type RegInit, type RegInitRequestBody, RegService, type RegisterWithPasskeyOptions, type RenamePasskeyOptions, type TokenVerifyRequestBody, type Transports, type TxComplete, type TxCompleteRequestBody, type TxInit, type TxInitRequestBody, TxService, type User, type UserLogin, type UsernameType, type Version, VersionService, WebAuthnHelper, createPasskeyCredential, LoginIDWebSDK as default, doesDeviceSupportPasskeys, getPasskeyCredential, isConditionalUIAvailable, isPlatformAuthenticatorAvailable };
1230
+ export { ApiError, type Application, type AuthCode, type AuthCodeRequestSMSRequestBody, type AuthCodeVerifyRequestBody, type AuthCompleteRequestBody, type AuthInit, type AuthInitRequestBody, AuthService, type AuthenticateWithPasskeysOptions, type AuthenticatorAssertionResponse, type AuthenticatorSelectionCriteria, type BadRequestError, BaseHttpRequest, CancelError, CancelablePromise, type ConfirmTransactionOptions, type CreationResult, type DeletePasskeyOptions, type DeviceInfo, type DeviceInfoRequestBody, type DoesDeviceSupportPasskeysResponse, type GrantCreateRequestBody, type GrantCreateResponseBody, type JWT, type ListPasskeysOptions, type LoginIDConfig, LoginIDService, type LoginIDUser, LoginIDWebSDK, MgmtService, OpenAPI, type OpenAPIConfig, type Passkey, type PasskeyCollection, PasskeyError, type PasskeyManagementOptions, type PasskeyOptions, type PasskeyRenameRequestBody, type PasskeyResult, PasskeysService, type ProfileEmailUpdateRequestBody, type ProfilePhoneUpdateRequestBody, type ProfilePhoneVerifyRequestBody, ProfileService, type PubKeyCredentialDescriptor, type PublicKeyCredentialCreationOptions, type PublicKeyCredentialParameters, type PublicKeyCredentialRequestOptions, type PublicKeyCredentialRpEntity, type PublicKeyCredentialUserEntity, type RegCompleteRequestBody, type RegInit, type RegInitRequestBody, RegService, type RegisterWithPasskeyOptions, type RenamePasskeyOptions, type TokenVerifyRequestBody, type Transports, type TxComplete, type TxCompleteRequestBody, type TxInit, type TxInitRequestBody, TxService, type User, type UserLogin, type UsernameType, type Version, VersionService, WebAuthnHelper, createPasskeyCredential, LoginIDWebSDK as default, doesDeviceSupportPasskeys, getPasskeyCredential, isConditionalUIAvailable, isPlatformAuthenticatorAvailable };
package/dist/index.d.ts CHANGED
@@ -128,7 +128,7 @@ type PubKeyCredentialDescriptor = {
128
128
  * Base64 encoded byte array of the public key identifier.
129
129
  */
130
130
  id: string;
131
- transports?: Array<'usb' | 'nfc' | 'ble' | 'internal' | 'hybrid'>;
131
+ transports?: Array<'usb' | 'nfc' | 'ble' | 'internal' | 'hybrid' | 'cable' | 'smart-card'>;
132
132
  type: 'public-key';
133
133
  };
134
134
 
@@ -180,6 +180,14 @@ type AuthInit = {
180
180
  * List of fallback methods (in priority order) available to this client.
181
181
  */
182
182
  fallbackOptions?: Array<'otp:client' | 'otp:email' | 'otp:sms'>;
183
+ /**
184
+ * Match score of the device
185
+ */
186
+ matchScore?: number;
187
+ /**
188
+ * Type of passkey supported by the client.
189
+ */
190
+ passkeyType?: string;
183
191
  /**
184
192
  * An opaque object containing session data.
185
193
  */
@@ -251,19 +259,11 @@ type AuthInitRequestBody = {
251
259
  user?: UserLogin;
252
260
  };
253
261
 
254
- type CodeResult = {
255
- /**
256
- * Generated code
257
- */
258
- code: string;
262
+ type JWT = {
259
263
  /**
260
- * Expiration time of the code
264
+ * Device ID
261
265
  */
262
- expiresAt: string;
263
- };
264
-
265
- type JWT = {
266
- code?: CodeResult;
266
+ deviceID?: string;
267
267
  /**
268
268
  * JWT access token
269
269
  */
@@ -599,7 +599,7 @@ type CreationResult = {
599
599
  * These values are the transports that the authenticator is believed to support,
600
600
  * or an empty sequence if the information is unavailable.
601
601
  */
602
- transports?: Array<'usb' | 'nfc' | 'ble' | 'internal' | 'hybrid'>;
602
+ transports?: Array<'usb' | 'nfc' | 'ble' | 'internal' | 'hybrid' | 'cable' | 'smart-card'>;
603
603
  };
604
604
 
605
605
  type RegCompleteRequestBody = {
@@ -968,6 +968,7 @@ interface ConfirmTransactionOptions extends PasskeyOptions {
968
968
  }
969
969
  interface PasskeyResult {
970
970
  jwtAccess: string;
971
+ deviceID?: string;
971
972
  }
972
973
  interface LoginIDUser {
973
974
  username: string;
@@ -1226,4 +1227,4 @@ interface DoesDeviceSupportPasskeysResponse {
1226
1227
  */
1227
1228
  declare function doesDeviceSupportPasskeys(): Promise<DoesDeviceSupportPasskeysResponse>;
1228
1229
 
1229
- export { ApiError, type Application, type AuthCode, type AuthCodeRequestSMSRequestBody, type AuthCodeVerifyRequestBody, type AuthCompleteRequestBody, type AuthInit, type AuthInitRequestBody, AuthService, type AuthenticateWithPasskeysOptions, type AuthenticatorAssertionResponse, type AuthenticatorSelectionCriteria, type BadRequestError, BaseHttpRequest, CancelError, CancelablePromise, type CodeResult, type ConfirmTransactionOptions, type CreationResult, type DeletePasskeyOptions, type DeviceInfo, type DeviceInfoRequestBody, type DoesDeviceSupportPasskeysResponse, type GrantCreateRequestBody, type GrantCreateResponseBody, type JWT, type ListPasskeysOptions, type LoginIDConfig, LoginIDService, type LoginIDUser, LoginIDWebSDK, MgmtService, OpenAPI, type OpenAPIConfig, type Passkey, type PasskeyCollection, PasskeyError, type PasskeyManagementOptions, type PasskeyOptions, type PasskeyRenameRequestBody, type PasskeyResult, PasskeysService, type ProfileEmailUpdateRequestBody, type ProfilePhoneUpdateRequestBody, type ProfilePhoneVerifyRequestBody, ProfileService, type PubKeyCredentialDescriptor, type PublicKeyCredentialCreationOptions, type PublicKeyCredentialParameters, type PublicKeyCredentialRequestOptions, type PublicKeyCredentialRpEntity, type PublicKeyCredentialUserEntity, type RegCompleteRequestBody, type RegInit, type RegInitRequestBody, RegService, type RegisterWithPasskeyOptions, type RenamePasskeyOptions, type TokenVerifyRequestBody, type Transports, type TxComplete, type TxCompleteRequestBody, type TxInit, type TxInitRequestBody, TxService, type User, type UserLogin, type UsernameType, type Version, VersionService, WebAuthnHelper, createPasskeyCredential, LoginIDWebSDK as default, doesDeviceSupportPasskeys, getPasskeyCredential, isConditionalUIAvailable, isPlatformAuthenticatorAvailable };
1230
+ export { ApiError, type Application, type AuthCode, type AuthCodeRequestSMSRequestBody, type AuthCodeVerifyRequestBody, type AuthCompleteRequestBody, type AuthInit, type AuthInitRequestBody, AuthService, type AuthenticateWithPasskeysOptions, type AuthenticatorAssertionResponse, type AuthenticatorSelectionCriteria, type BadRequestError, BaseHttpRequest, CancelError, CancelablePromise, type ConfirmTransactionOptions, type CreationResult, type DeletePasskeyOptions, type DeviceInfo, type DeviceInfoRequestBody, type DoesDeviceSupportPasskeysResponse, type GrantCreateRequestBody, type GrantCreateResponseBody, type JWT, type ListPasskeysOptions, type LoginIDConfig, LoginIDService, type LoginIDUser, LoginIDWebSDK, MgmtService, OpenAPI, type OpenAPIConfig, type Passkey, type PasskeyCollection, PasskeyError, type PasskeyManagementOptions, type PasskeyOptions, type PasskeyRenameRequestBody, type PasskeyResult, PasskeysService, type ProfileEmailUpdateRequestBody, type ProfilePhoneUpdateRequestBody, type ProfilePhoneVerifyRequestBody, ProfileService, type PubKeyCredentialDescriptor, type PublicKeyCredentialCreationOptions, type PublicKeyCredentialParameters, type PublicKeyCredentialRequestOptions, type PublicKeyCredentialRpEntity, type PublicKeyCredentialUserEntity, type RegCompleteRequestBody, type RegInit, type RegInitRequestBody, RegService, type RegisterWithPasskeyOptions, type RenamePasskeyOptions, type TokenVerifyRequestBody, type Transports, type TxComplete, type TxCompleteRequestBody, type TxInit, type TxInitRequestBody, TxService, type User, type UserLogin, type UsernameType, type Version, VersionService, WebAuthnHelper, createPasskeyCredential, LoginIDWebSDK as default, doesDeviceSupportPasskeys, getPasskeyCredential, isConditionalUIAvailable, isPlatformAuthenticatorAvailable };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loginid/websdk3",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",