@wix/auto_sdk_identity_authentication 1.0.18 → 1.0.20
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/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js +0 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +47 -37
- package/build/cjs/index.typings.js +0 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +35 -28
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +0 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +47 -37
- package/build/es/index.typings.mjs +0 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +35 -28
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +0 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +47 -37
- package/build/internal/cjs/index.typings.js +0 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +35 -28
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs +0 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +47 -37
- package/build/internal/es/index.typings.mjs +0 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +35 -28
- package/package.json +2 -2
|
@@ -363,11 +363,6 @@ interface AuthenticatorConnection {
|
|
|
363
363
|
reEnrollmentRequired?: boolean;
|
|
364
364
|
}
|
|
365
365
|
interface Metadata {
|
|
366
|
-
/**
|
|
367
|
-
* General tags. For example, `"isOwner"`.
|
|
368
|
-
* @readonly
|
|
369
|
-
*/
|
|
370
|
-
tags?: string[];
|
|
371
366
|
}
|
|
372
367
|
interface Email {
|
|
373
368
|
/**
|
|
@@ -379,22 +374,33 @@ interface Email {
|
|
|
379
374
|
isVerified?: boolean;
|
|
380
375
|
}
|
|
381
376
|
interface StatusV2 {
|
|
377
|
+
/** Descriptive name of the identity status. */
|
|
382
378
|
name?: StatusNameWithLiterals;
|
|
379
|
+
/** Reasons for the current identity status. */
|
|
383
380
|
reasons?: ReasonWithLiterals[];
|
|
384
381
|
}
|
|
385
382
|
declare enum StatusName {
|
|
383
|
+
/** Unknown status. This value isn't used. */
|
|
386
384
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
385
|
+
/** Identity is pending verification, owner approval, or both. */
|
|
387
386
|
PENDING = "PENDING",
|
|
387
|
+
/** Identity is active and can log in. */
|
|
388
388
|
ACTIVE = "ACTIVE",
|
|
389
|
+
/** Identity is deleted. This identity can't log in. */
|
|
389
390
|
DELETED = "DELETED",
|
|
391
|
+
/** Identity is blocked. This identity can't log in. */
|
|
390
392
|
BLOCKED = "BLOCKED",
|
|
393
|
+
/** Identity is offline. This identity can't log in. */
|
|
391
394
|
OFFLINE = "OFFLINE"
|
|
392
395
|
}
|
|
393
396
|
/** @enumType */
|
|
394
397
|
type StatusNameWithLiterals = StatusName | 'UNKNOWN_STATUS' | 'PENDING' | 'ACTIVE' | 'DELETED' | 'BLOCKED' | 'OFFLINE';
|
|
395
398
|
declare enum Reason {
|
|
399
|
+
/** Unknown reason. This value isn't used. */
|
|
396
400
|
UNKNOWN_REASON = "UNKNOWN_REASON",
|
|
401
|
+
/** The identity is waiting for admin approval. After the approval, the identity has an `ACTIVE` status. */
|
|
397
402
|
PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
|
|
403
|
+
/** The identity has to verify the email. After the verification, the identity has an `ACTIVE` status. */
|
|
398
404
|
PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
|
|
399
405
|
}
|
|
400
406
|
/** @enumType */
|
|
@@ -483,6 +489,29 @@ interface LoginV2Request {
|
|
|
483
489
|
/** Additional data that's relevant for the flow. */
|
|
484
490
|
clientMetaData?: Record<string, any> | null;
|
|
485
491
|
}
|
|
492
|
+
interface WebAuthnVerifyData {
|
|
493
|
+
/**
|
|
494
|
+
* The challenge_id from the WebAuthnChallengeData that was returned in the previous
|
|
495
|
+
* verification response. This will always be present when completing the WebAuthn authentication
|
|
496
|
+
* ceremony with the credential data from the client.
|
|
497
|
+
* @format GUID
|
|
498
|
+
*/
|
|
499
|
+
challengeId?: string | null;
|
|
500
|
+
/**
|
|
501
|
+
* If this field is present, this is a request to complete the WebAuthn authentication
|
|
502
|
+
* with the credential data from the client.
|
|
503
|
+
*
|
|
504
|
+
* The credential contains a JSON string representation of a WebAuthn PublicKeyCredential
|
|
505
|
+
* object returned by the browser during authentication, serialized as per the WebAuthn specification.
|
|
506
|
+
* The SPI implementation should use this to verify the authentication assertion.
|
|
507
|
+
*
|
|
508
|
+
* Any standards-compliant WebAuthn server library should be able to process this serialized format.
|
|
509
|
+
* For details on the serialization format, refer to the W3C WebAuthn specification:
|
|
510
|
+
* https://www.w3.org/TR/webauthn-3/#dom-publickeycredential-tojson
|
|
511
|
+
* @maxLength 3000
|
|
512
|
+
*/
|
|
513
|
+
credential?: string | null;
|
|
514
|
+
}
|
|
486
515
|
interface ChangePasswordRequest {
|
|
487
516
|
/** The new password to set for the logged in user */
|
|
488
517
|
newPassword: string;
|
|
@@ -540,6 +569,7 @@ interface VerifyRequest extends VerifyRequestFactorDataOneOf {
|
|
|
540
569
|
*/
|
|
541
570
|
stateToken?: string;
|
|
542
571
|
factorType: FactorTypeWithLiterals;
|
|
572
|
+
/** Relevant for second factors only. */
|
|
543
573
|
rememberThisDevice?: boolean;
|
|
544
574
|
}
|
|
545
575
|
/** @oneof */
|
|
@@ -583,29 +613,6 @@ interface PushVerifyData {
|
|
|
583
613
|
/** @maxLength 36 */
|
|
584
614
|
transactionId?: string | null;
|
|
585
615
|
}
|
|
586
|
-
interface WebAuthnVerifyData {
|
|
587
|
-
/**
|
|
588
|
-
* The challenge_id from the WebAuthnChallengeData that was returned in the previous
|
|
589
|
-
* verification response. This will always be present when completing the WebAuthn authentication
|
|
590
|
-
* ceremony with the credential data from the client.
|
|
591
|
-
* @format GUID
|
|
592
|
-
*/
|
|
593
|
-
challengeId?: string | null;
|
|
594
|
-
/**
|
|
595
|
-
* If this field is present, this is a request to complete the WebAuthn authentication
|
|
596
|
-
* with the credential data from the client.
|
|
597
|
-
*
|
|
598
|
-
* The credential contains a JSON string representation of a WebAuthn PublicKeyCredential
|
|
599
|
-
* object returned by the browser during authentication, serialized as per the WebAuthn specification.
|
|
600
|
-
* The SPI implementation should use this to verify the authentication assertion.
|
|
601
|
-
*
|
|
602
|
-
* Any standards-compliant WebAuthn server library should be able to process this serialized format.
|
|
603
|
-
* For details on the serialization format, refer to the W3C WebAuthn specification:
|
|
604
|
-
* https://www.w3.org/TR/webauthn-3/#dom-publickeycredential-tojson
|
|
605
|
-
* @maxLength 3000
|
|
606
|
-
*/
|
|
607
|
-
credential?: string | null;
|
|
608
|
-
}
|
|
609
616
|
|
|
610
617
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
611
618
|
getUrl: (context: any) => string;
|
|
@@ -15,7 +15,7 @@ interface RegisterV2Signature {
|
|
|
15
15
|
* member need to verify the email address using a code that is sent to the address.
|
|
16
16
|
* @param - Identifier of the registering member.
|
|
17
17
|
*/
|
|
18
|
-
(loginId: LoginId, options?: RegisterV2Options): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.
|
|
18
|
+
(loginId: LoginId, options?: RegisterV2Options): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`> & {
|
|
19
19
|
__applicationErrorsType?: RegisterV2ApplicationErrors;
|
|
20
20
|
__validationErrorsType?: RegisterV2ValidationErrors;
|
|
21
21
|
}>;
|
|
@@ -30,7 +30,7 @@ interface LoginV2Signature {
|
|
|
30
30
|
* Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens).
|
|
31
31
|
* @param - Identifier of identity logging in.
|
|
32
32
|
*/
|
|
33
|
-
(loginId: LoginId, options?: LoginV2Options): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.
|
|
33
|
+
(loginId: LoginId, options?: LoginV2Options): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`> & {
|
|
34
34
|
__applicationErrorsType?: LoginV2ApplicationErrors;
|
|
35
35
|
__validationErrorsType?: LoginV2ValidationErrors;
|
|
36
36
|
}>;
|
|
@@ -46,7 +46,7 @@ interface ChangePasswordSignature {
|
|
|
46
46
|
declare function signOn$1(httpClient: HttpClient): SignOnSignature;
|
|
47
47
|
interface SignOnSignature {
|
|
48
48
|
/** @param - the identifier of the identity */
|
|
49
|
-
(loginId: LoginId, options?: SignOnOptions): Promise<NonNullablePaths<SignOnResponse, `sessionToken` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.
|
|
49
|
+
(loginId: LoginId, options?: SignOnOptions): Promise<NonNullablePaths<SignOnResponse, `sessionToken` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`>>;
|
|
50
50
|
}
|
|
51
51
|
declare function logout$1(httpClient: HttpClient): LogoutSignature;
|
|
52
52
|
interface LogoutSignature {
|
|
@@ -58,7 +58,7 @@ interface LogoutSignature {
|
|
|
58
58
|
declare function verify$1(httpClient: HttpClient): VerifySignature;
|
|
59
59
|
interface VerifySignature {
|
|
60
60
|
/** */
|
|
61
|
-
(factorType: FactorTypeWithLiterals, options?: VerifyOptions): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.
|
|
61
|
+
(factorType: FactorTypeWithLiterals, options?: VerifyOptions): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`>>;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
declare const registerV2: MaybeContext<BuildRESTFunction<typeof registerV2$1> & typeof registerV2$1>;
|
|
@@ -439,7 +439,6 @@ var TenantType = /* @__PURE__ */ ((TenantType2) => {
|
|
|
439
439
|
TenantType2["UNKNOWN_TENANT_TYPE"] = "UNKNOWN_TENANT_TYPE";
|
|
440
440
|
TenantType2["ACCOUNT"] = "ACCOUNT";
|
|
441
441
|
TenantType2["SITE"] = "SITE";
|
|
442
|
-
TenantType2["ROOT"] = "ROOT";
|
|
443
442
|
return TenantType2;
|
|
444
443
|
})(TenantType || {});
|
|
445
444
|
async function registerV22(loginId, options) {
|