@wix/auto_sdk_identity_authentication 1.0.30 → 1.0.31
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/meta.d.ts +350 -1
- package/build/cjs/meta.js +127 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/meta.d.mts +350 -1
- package/build/es/meta.mjs +114 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/meta.d.ts +350 -1
- package/build/internal/cjs/meta.js +127 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/meta.d.mts +350 -1
- package/build/internal/es/meta.mjs +114 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { RegisterV2Request as RegisterV2Request$1, StateMachineResponse as StateMachineResponse$1, LoginV2Request as LoginV2Request$1, ChangePasswordRequest as ChangePasswordRequest$1, ChangePasswordResponse as ChangePasswordResponse$1, SignOnRequest as SignOnRequest$1, SignOnResponse as SignOnResponse$1, LogoutRequest as LogoutRequest$1, RawHttpResponse as RawHttpResponse$1, VerifyRequest as VerifyRequest$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
|
+
interface Authentication {
|
|
5
|
+
}
|
|
4
6
|
interface RegisterV2Request {
|
|
5
7
|
/** Identifier of the registering member. */
|
|
6
8
|
loginId: LoginId;
|
|
@@ -481,6 +483,166 @@ interface MapValue {
|
|
|
481
483
|
/** Mapped custom value. */
|
|
482
484
|
value?: Record<string, CustomValue>;
|
|
483
485
|
}
|
|
486
|
+
interface RequireMfaData {
|
|
487
|
+
/**
|
|
488
|
+
* The factors available for the user to perform the required MFA.
|
|
489
|
+
* @maxSize 100
|
|
490
|
+
*/
|
|
491
|
+
availableFactors?: V1Factor[];
|
|
492
|
+
/** The reason the user is required to perform MFA. */
|
|
493
|
+
reason?: MfaReasonWithLiterals;
|
|
494
|
+
}
|
|
495
|
+
interface V1Factor {
|
|
496
|
+
/** Type of verification factor. */
|
|
497
|
+
factorType?: FactorTypeWithLiterals;
|
|
498
|
+
/** Availability status for second factor */
|
|
499
|
+
factorStatus?: FactorStatusWithLiterals;
|
|
500
|
+
}
|
|
501
|
+
declare enum FactorStatus {
|
|
502
|
+
UNKNOWN_FACTOR_STATUS = "UNKNOWN_FACTOR_STATUS",
|
|
503
|
+
ENABLED = "ENABLED",
|
|
504
|
+
REQUIRE_ACTIVATION = "REQUIRE_ACTIVATION",
|
|
505
|
+
REQUIRE_REENROLL = "REQUIRE_REENROLL",
|
|
506
|
+
ENABLED_BY_RULE = "ENABLED_BY_RULE",
|
|
507
|
+
DISABLED_BY_RULE = "DISABLED_BY_RULE"
|
|
508
|
+
}
|
|
509
|
+
/** @enumType */
|
|
510
|
+
type FactorStatusWithLiterals = FactorStatus | 'UNKNOWN_FACTOR_STATUS' | 'ENABLED' | 'REQUIRE_ACTIVATION' | 'REQUIRE_REENROLL' | 'ENABLED_BY_RULE' | 'DISABLED_BY_RULE';
|
|
511
|
+
declare enum MfaReason {
|
|
512
|
+
UNKNOWN_MFA_REASON = "UNKNOWN_MFA_REASON",
|
|
513
|
+
/** Mfa is required due to user settings */
|
|
514
|
+
USER_SETTINGS = "USER_SETTINGS",
|
|
515
|
+
/** Mfa is required due to high risk login */
|
|
516
|
+
HIGH_RISK_LOGIN = "HIGH_RISK_LOGIN"
|
|
517
|
+
}
|
|
518
|
+
/** @enumType */
|
|
519
|
+
type MfaReasonWithLiterals = MfaReason | 'UNKNOWN_MFA_REASON' | 'USER_SETTINGS' | 'HIGH_RISK_LOGIN';
|
|
520
|
+
interface MfaChallengeData {
|
|
521
|
+
/** Type of verifation factor. */
|
|
522
|
+
factorType?: FactorTypeWithLiterals;
|
|
523
|
+
verificationChallengeData?: VerificationChallenge;
|
|
524
|
+
/**
|
|
525
|
+
* Factors types the user can choose from to verify themselves.
|
|
526
|
+
* @maxSize 100
|
|
527
|
+
*/
|
|
528
|
+
availableFactors?: V1Factor[];
|
|
529
|
+
/** The reason the user is required for verification. */
|
|
530
|
+
reason?: MfaReasonWithLiterals;
|
|
531
|
+
}
|
|
532
|
+
interface VerificationChallenge extends VerificationChallengeFactorChallengeDataOneOf {
|
|
533
|
+
pushData?: PushChallengeData;
|
|
534
|
+
webauthnData?: WebAuthnChallengeData;
|
|
535
|
+
/** @maxLength 200 */
|
|
536
|
+
hint?: string | null;
|
|
537
|
+
}
|
|
538
|
+
/** @oneof */
|
|
539
|
+
interface VerificationChallengeFactorChallengeDataOneOf {
|
|
540
|
+
pushData?: PushChallengeData;
|
|
541
|
+
webauthnData?: WebAuthnChallengeData;
|
|
542
|
+
}
|
|
543
|
+
interface PushChallengeData {
|
|
544
|
+
/**
|
|
545
|
+
* This should be tied to a specific push notification.
|
|
546
|
+
* It will be sent in subsequent requests to verify the factor.
|
|
547
|
+
* @maxLength 36
|
|
548
|
+
*/
|
|
549
|
+
transactionId?: string;
|
|
550
|
+
}
|
|
551
|
+
interface WebAuthnChallengeData {
|
|
552
|
+
/**
|
|
553
|
+
* A unique identifier for this challenge that will be used to correlate
|
|
554
|
+
* the authentication response with this challenge.
|
|
555
|
+
* This should be a cryptographically random GUID to prevent guessing attacks.
|
|
556
|
+
* @format GUID
|
|
557
|
+
*/
|
|
558
|
+
challengeId?: string;
|
|
559
|
+
/**
|
|
560
|
+
* The challenge that will be signed by the authenticator during the WebAuthn authentication ceremony.
|
|
561
|
+
* This should be a cryptographically secure random value with at least 16 bytes of entropy.
|
|
562
|
+
* The value is used to prevent replay attacks and MUST be randomly generated by the implementer.
|
|
563
|
+
*/
|
|
564
|
+
challenge?: Uint8Array;
|
|
565
|
+
/**
|
|
566
|
+
* The timeout in milliseconds for the WebAuthn authentication ceremony.
|
|
567
|
+
* After this time, the challenge will be considered expired and the authentication will need to be restarted.
|
|
568
|
+
* This is optional and may be overridden by the client if provided.
|
|
569
|
+
* The WebAuthn spec recommends a timeout of at least 1 minute (60000ms).
|
|
570
|
+
*/
|
|
571
|
+
timeoutMs?: number | null;
|
|
572
|
+
/**
|
|
573
|
+
* Optional list of credentials that are acceptable for this authentication ceremony.
|
|
574
|
+
* If empty, all credentials associated with the user will be considered.
|
|
575
|
+
* @maxSize 50
|
|
576
|
+
*/
|
|
577
|
+
allowCredentials?: PublicKeyCredentialDescriptor[];
|
|
578
|
+
/** Specifies the requirement for user verification during the authentication ceremony. */
|
|
579
|
+
userVerification?: UserVerificationRequirementWithLiterals;
|
|
580
|
+
/**
|
|
581
|
+
* Optional hints to guide the client UI
|
|
582
|
+
* Examples include "security-key" to emphasize external authenticators
|
|
583
|
+
* or "client-device" to emphasize built-in authenticators
|
|
584
|
+
* @maxLength 50
|
|
585
|
+
* @maxSize 10
|
|
586
|
+
*/
|
|
587
|
+
hints?: string[];
|
|
588
|
+
/**
|
|
589
|
+
* Optional extensions for the authentication ceremony
|
|
590
|
+
* Provides additional parameters for specialized WebAuthn functionality
|
|
591
|
+
*/
|
|
592
|
+
extensions?: AuthenticationExtensionInputs;
|
|
593
|
+
}
|
|
594
|
+
interface PublicKeyCredentialDescriptor {
|
|
595
|
+
/** The credential ID */
|
|
596
|
+
id?: Uint8Array;
|
|
597
|
+
/**
|
|
598
|
+
* An optional hint as to the transports used by the credential
|
|
599
|
+
* Examples include "usb", "nfc", "ble", "internal", "hybrid"
|
|
600
|
+
* @maxLength 50
|
|
601
|
+
* @maxSize 10
|
|
602
|
+
*/
|
|
603
|
+
transports?: string[];
|
|
604
|
+
}
|
|
605
|
+
declare enum UserVerificationRequirement {
|
|
606
|
+
/** Default unspecified value */
|
|
607
|
+
USER_VERIFICATION_UNSPECIFIED = "USER_VERIFICATION_UNSPECIFIED",
|
|
608
|
+
/**
|
|
609
|
+
* The Relying Party requires user verification and will fail the operation if the response doesn't have the UV flag
|
|
610
|
+
* set
|
|
611
|
+
*/
|
|
612
|
+
USER_VERIFICATION_REQUIRED = "USER_VERIFICATION_REQUIRED",
|
|
613
|
+
/** The Relying Party prefers user verification but will not fail the operation if unavailable */
|
|
614
|
+
USER_VERIFICATION_PREFERRED = "USER_VERIFICATION_PREFERRED",
|
|
615
|
+
/** The Relying Party does not want user verification employed (e.g., to minimize disruption to the user experience) */
|
|
616
|
+
USER_VERIFICATION_DISCOURAGED = "USER_VERIFICATION_DISCOURAGED"
|
|
617
|
+
}
|
|
618
|
+
/** @enumType */
|
|
619
|
+
type UserVerificationRequirementWithLiterals = UserVerificationRequirement | 'USER_VERIFICATION_UNSPECIFIED' | 'USER_VERIFICATION_REQUIRED' | 'USER_VERIFICATION_PREFERRED' | 'USER_VERIFICATION_DISCOURAGED';
|
|
620
|
+
interface AuthenticationExtensionInputs extends AuthenticationExtensionInputsLargeBlobOperationOneOf {
|
|
621
|
+
/** Read existing large blob data from the authenticator */
|
|
622
|
+
largeBlobRead?: boolean;
|
|
623
|
+
/** Write data to the authenticator's large blob storage */
|
|
624
|
+
largeBlobWrite?: Uint8Array;
|
|
625
|
+
/**
|
|
626
|
+
* FIDO AppID Extension (appid)
|
|
627
|
+
* An AppID that was used for previously registered U2F authenticators
|
|
628
|
+
* This makes already-registered U2F credentials forward-compatible with the WebAuthn API
|
|
629
|
+
* @maxLength 256
|
|
630
|
+
*/
|
|
631
|
+
appid?: string;
|
|
632
|
+
/**
|
|
633
|
+
* User Verification Method Extension (uvm)
|
|
634
|
+
* Requests the authenticator to report which verification methods were used
|
|
635
|
+
* Examples include fingerprint, PIN, or facial recognition
|
|
636
|
+
*/
|
|
637
|
+
uvm?: boolean;
|
|
638
|
+
}
|
|
639
|
+
/** @oneof */
|
|
640
|
+
interface AuthenticationExtensionInputsLargeBlobOperationOneOf {
|
|
641
|
+
/** Read existing large blob data from the authenticator */
|
|
642
|
+
largeBlobRead?: boolean;
|
|
643
|
+
/** Write data to the authenticator's large blob storage */
|
|
644
|
+
largeBlobWrite?: Uint8Array;
|
|
645
|
+
}
|
|
484
646
|
interface LoginV2Request {
|
|
485
647
|
/** Identifier of identity logging in. */
|
|
486
648
|
loginId: LoginId;
|
|
@@ -527,6 +689,40 @@ interface ChangePasswordRequest {
|
|
|
527
689
|
}
|
|
528
690
|
interface ChangePasswordResponse {
|
|
529
691
|
}
|
|
692
|
+
interface LoginWithIdpConnectionRequest {
|
|
693
|
+
/**
|
|
694
|
+
* The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData
|
|
695
|
+
* @format GUID
|
|
696
|
+
*/
|
|
697
|
+
idpConnectionId?: string;
|
|
698
|
+
/**
|
|
699
|
+
* The id of the tenant the caller wants to login into
|
|
700
|
+
* @format GUID
|
|
701
|
+
*/
|
|
702
|
+
tenantId?: string;
|
|
703
|
+
/** The type of the tenant the caller wants to login into */
|
|
704
|
+
tenantType?: TenantTypeWithLiterals;
|
|
705
|
+
customPayload?: Record<string, string>;
|
|
706
|
+
/**
|
|
707
|
+
* This flow ultimately returns an HTML page that asynchronously posts the LoginResponse via the BroadcastChannel API.
|
|
708
|
+
* The message will be posted to a channel named `wix-idp-$session_id`, and encrypted with the `encryption_key`.
|
|
709
|
+
* Encryption key should be base64 encoded. Encryption is done using AES-GCM with a random IV that's sent alongside the payload
|
|
710
|
+
*/
|
|
711
|
+
sessionId?: string;
|
|
712
|
+
encryptionKey?: string;
|
|
713
|
+
visitorId?: string | null;
|
|
714
|
+
bsi?: string | null;
|
|
715
|
+
}
|
|
716
|
+
declare enum TenantType {
|
|
717
|
+
/** Unknown tenant type. This value isn't used. */
|
|
718
|
+
UNKNOWN_TENANT_TYPE = "UNKNOWN_TENANT_TYPE",
|
|
719
|
+
/** The identity is a Wix user. */
|
|
720
|
+
ACCOUNT = "ACCOUNT",
|
|
721
|
+
/** The identity is a member. */
|
|
722
|
+
SITE = "SITE"
|
|
723
|
+
}
|
|
724
|
+
/** @enumType */
|
|
725
|
+
type TenantTypeWithLiterals = TenantType | 'UNKNOWN_TENANT_TYPE' | 'ACCOUNT' | 'SITE';
|
|
530
726
|
interface RawHttpResponse {
|
|
531
727
|
body?: Uint8Array;
|
|
532
728
|
statusCode?: number | null;
|
|
@@ -536,6 +732,38 @@ interface HeadersEntry {
|
|
|
536
732
|
key?: string;
|
|
537
733
|
value?: string;
|
|
538
734
|
}
|
|
735
|
+
interface RawHttpRequest {
|
|
736
|
+
body?: Uint8Array;
|
|
737
|
+
pathParams?: PathParametersEntry[];
|
|
738
|
+
queryParams?: QueryParametersEntry[];
|
|
739
|
+
headers?: HeadersEntry[];
|
|
740
|
+
method?: string;
|
|
741
|
+
rawPath?: string;
|
|
742
|
+
rawQuery?: string;
|
|
743
|
+
}
|
|
744
|
+
interface PathParametersEntry {
|
|
745
|
+
key?: string;
|
|
746
|
+
value?: string;
|
|
747
|
+
}
|
|
748
|
+
interface QueryParametersEntry {
|
|
749
|
+
key?: string;
|
|
750
|
+
value?: string;
|
|
751
|
+
}
|
|
752
|
+
interface LoginCallbackRequest {
|
|
753
|
+
/** state that that received on the redirect */
|
|
754
|
+
state?: string;
|
|
755
|
+
/** session token */
|
|
756
|
+
sessionToken?: string;
|
|
757
|
+
}
|
|
758
|
+
interface LoginWithIdpConnectionTokenParamsRequest {
|
|
759
|
+
/**
|
|
760
|
+
* The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData)
|
|
761
|
+
* @format GUID
|
|
762
|
+
*/
|
|
763
|
+
idpConnectionId?: string;
|
|
764
|
+
/** A set of fields that are required for the connection to be able to identify and authenticate the user */
|
|
765
|
+
tokenParams?: Record<string, string>;
|
|
766
|
+
}
|
|
539
767
|
interface SignOnRequest {
|
|
540
768
|
/** the identifier of the identity */
|
|
541
769
|
loginId: LoginId;
|
|
@@ -615,6 +843,127 @@ interface PushVerifyData {
|
|
|
615
843
|
/** @maxLength 36 */
|
|
616
844
|
transactionId?: string | null;
|
|
617
845
|
}
|
|
846
|
+
interface GetWebauthnChallengeRequest {
|
|
847
|
+
/**
|
|
848
|
+
* Identifier of identity for which the WebAuthn challenge is requested for.
|
|
849
|
+
* If not provided an anonymous webAuthn challenge will be returned.
|
|
850
|
+
*/
|
|
851
|
+
loginId?: LoginId;
|
|
852
|
+
}
|
|
853
|
+
interface GetWebauthnChallengeResponse {
|
|
854
|
+
/** The challenge that will be used for a WebAuthn authentication ceremony. */
|
|
855
|
+
webauthn?: WebAuthnChallengeData;
|
|
856
|
+
}
|
|
857
|
+
/** @docsIgnore */
|
|
858
|
+
type RegisterV2ApplicationErrors = {
|
|
859
|
+
code?: 'UNIMPLEMENTED_FEATURE';
|
|
860
|
+
description?: string;
|
|
861
|
+
data?: Record<string, any>;
|
|
862
|
+
} | {
|
|
863
|
+
code?: 'THROTTLED_FEATURE';
|
|
864
|
+
description?: string;
|
|
865
|
+
data?: Record<string, any>;
|
|
866
|
+
} | {
|
|
867
|
+
code?: 'INVALID_CAPTCHA_TOKEN';
|
|
868
|
+
description?: string;
|
|
869
|
+
data?: Record<string, any>;
|
|
870
|
+
} | {
|
|
871
|
+
code?: 'CAPTCHA_TOKEN_REQUIRED';
|
|
872
|
+
description?: string;
|
|
873
|
+
data?: Record<string, any>;
|
|
874
|
+
} | {
|
|
875
|
+
code?: 'IP_ADDRESS_FILTERED';
|
|
876
|
+
description?: string;
|
|
877
|
+
data?: Record<string, any>;
|
|
878
|
+
} | {
|
|
879
|
+
code?: 'RECAPTCHA_FAILED';
|
|
880
|
+
description?: string;
|
|
881
|
+
data?: Record<string, any>;
|
|
882
|
+
} | {
|
|
883
|
+
code?: 'RECAPTCHA_REQUIRED';
|
|
884
|
+
description?: string;
|
|
885
|
+
data?: Record<string, any>;
|
|
886
|
+
} | {
|
|
887
|
+
code?: 'MISSING_CAPTCHA_TOKEN';
|
|
888
|
+
description?: string;
|
|
889
|
+
data?: Record<string, any>;
|
|
890
|
+
} | {
|
|
891
|
+
code?: 'USER_EMAIL_OFAC_ADDRESS';
|
|
892
|
+
description?: string;
|
|
893
|
+
data?: Record<string, any>;
|
|
894
|
+
} | {
|
|
895
|
+
code?: 'UNSUPPORTED_FIELD';
|
|
896
|
+
description?: string;
|
|
897
|
+
data?: Record<string, any>;
|
|
898
|
+
} | {
|
|
899
|
+
code?: 'ATTRIBUTE_NOT_FOUND';
|
|
900
|
+
description?: string;
|
|
901
|
+
data?: Record<string, any>;
|
|
902
|
+
} | {
|
|
903
|
+
code?: 'CLIENT_METADATA_NOT_FOUND';
|
|
904
|
+
description?: string;
|
|
905
|
+
data?: Record<string, any>;
|
|
906
|
+
} | {
|
|
907
|
+
code?: 'INVALID_LD_SESSION';
|
|
908
|
+
description?: string;
|
|
909
|
+
data?: Record<string, any>;
|
|
910
|
+
} | {
|
|
911
|
+
code?: 'DUPLICATE_EMAIL';
|
|
912
|
+
description?: string;
|
|
913
|
+
data?: Record<string, any>;
|
|
914
|
+
} | {
|
|
915
|
+
code?: 'COULD_NOT_CREATE_SET_ACCOUNT_USER';
|
|
916
|
+
description?: string;
|
|
917
|
+
data?: Record<string, any>;
|
|
918
|
+
} | {
|
|
919
|
+
code?: 'INVALID_USER_TYPE';
|
|
920
|
+
description?: string;
|
|
921
|
+
data?: Record<string, any>;
|
|
922
|
+
} | {
|
|
923
|
+
code?: 'REGISTRATION_TO_EDITORX_NOT_ALLOWED';
|
|
924
|
+
description?: string;
|
|
925
|
+
data?: Record<string, any>;
|
|
926
|
+
};
|
|
927
|
+
/** @docsIgnore */
|
|
928
|
+
type RegisterV2ValidationErrors = {
|
|
929
|
+
ruleName?: 'PROVIDE_TENANT_ID';
|
|
930
|
+
} | {
|
|
931
|
+
ruleName?: 'INVALID_AUTHENTICATOR_ID';
|
|
932
|
+
} | {
|
|
933
|
+
ruleName?: 'VALUEֹֹ_TOO_SHORT';
|
|
934
|
+
} | {
|
|
935
|
+
ruleName?: 'VALUEֹֹ_TOO_LONG';
|
|
936
|
+
} | {
|
|
937
|
+
ruleName?: 'VALUE_DID_NOT_MATCH';
|
|
938
|
+
};
|
|
939
|
+
/** @docsIgnore */
|
|
940
|
+
type LoginV2ApplicationErrors = {
|
|
941
|
+
code?: 'THROTTLED_FEATURE';
|
|
942
|
+
description?: string;
|
|
943
|
+
data?: Record<string, any>;
|
|
944
|
+
} | {
|
|
945
|
+
code?: 'INVALID_CAPTCHA_TOKEN';
|
|
946
|
+
description?: string;
|
|
947
|
+
data?: Record<string, any>;
|
|
948
|
+
} | {
|
|
949
|
+
code?: 'CAPTCHA_TOKEN_REQUIRED';
|
|
950
|
+
description?: string;
|
|
951
|
+
data?: Record<string, any>;
|
|
952
|
+
} | {
|
|
953
|
+
code?: 'REENROLLMENT_REQUIRED_BY_ADMIN';
|
|
954
|
+
description?: string;
|
|
955
|
+
data?: Record<string, any>;
|
|
956
|
+
} | {
|
|
957
|
+
code?: 'TRUSTED_CLIENTS_ONLY';
|
|
958
|
+
description?: string;
|
|
959
|
+
data?: Record<string, any>;
|
|
960
|
+
};
|
|
961
|
+
/** @docsIgnore */
|
|
962
|
+
type LoginV2ValidationErrors = {
|
|
963
|
+
ruleName?: 'PROVIDE_TENANT_ID';
|
|
964
|
+
} | {
|
|
965
|
+
ruleName?: 'INVALID_AUTHENTICATOR_ID';
|
|
966
|
+
};
|
|
618
967
|
|
|
619
968
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
620
969
|
getUrl: (context: any) => string;
|
|
@@ -635,4 +984,4 @@ declare function verify(): __PublicMethodMetaInfo<'POST', {
|
|
|
635
984
|
factorType: string;
|
|
636
985
|
}, VerifyRequest$1, VerifyRequest, StateMachineResponse$1, StateMachineResponse>;
|
|
637
986
|
|
|
638
|
-
export { type __PublicMethodMetaInfo, changePassword, loginV2, logout, registerV2, signOn, verify };
|
|
987
|
+
export { type Address as AddressOriginal, AddressTag as AddressTagOriginal, type AddressTagWithLiterals as AddressTagWithLiteralsOriginal, type AddressWrapper as AddressWrapperOriginal, type AuthenticationExtensionInputsLargeBlobOperationOneOf as AuthenticationExtensionInputsLargeBlobOperationOneOfOriginal, type AuthenticationExtensionInputs as AuthenticationExtensionInputsOriginal, type Authentication as AuthenticationOriginal, type AuthenticatorConnection as AuthenticatorConnectionOriginal, type CallVerifyData as CallVerifyDataOriginal, type CaptchaToken as CaptchaTokenOriginal, type CaptchaTokenTokenOneOf as CaptchaTokenTokenOneOfOriginal, type ChangePasswordRequest as ChangePasswordRequestOriginal, type ChangePasswordResponse as ChangePasswordResponseOriginal, type Connection as ConnectionOriginal, type ConnectionTypeOneOf as ConnectionTypeOneOfOriginal, type CustomField as CustomFieldOriginal, type CustomValue as CustomValueOriginal, type CustomValueValueOneOf as CustomValueValueOneOfOriginal, type Email as EmailOriginal, EmailTag as EmailTagOriginal, type EmailTagWithLiterals as EmailTagWithLiteralsOriginal, type ExternalEmailVerifyData as ExternalEmailVerifyDataOriginal, type Factor as FactorOriginal, FactorStatus as FactorStatusOriginal, type FactorStatusWithLiterals as FactorStatusWithLiteralsOriginal, FactorType as FactorTypeOriginal, type FactorTypeWithLiterals as FactorTypeWithLiteralsOriginal, type GetWebauthnChallengeRequest as GetWebauthnChallengeRequestOriginal, type GetWebauthnChallengeResponse as GetWebauthnChallengeResponseOriginal, type HeadersEntry as HeadersEntryOriginal, type Identity as IdentityOriginal, type IdentityProfile as IdentityProfileOriginal, type IdpConnection as IdpConnectionOriginal, type ListValue as ListValueOriginal, type LoginCallbackRequest as LoginCallbackRequestOriginal, type LoginId as LoginIdOriginal, type LoginIdTypeOneOf as LoginIdTypeOneOfOriginal, type LoginV2ApplicationErrors as LoginV2ApplicationErrorsOriginal, type LoginV2Request as LoginV2RequestOriginal, type LoginV2ValidationErrors as LoginV2ValidationErrorsOriginal, type LoginWithIdpConnectionRequest as LoginWithIdpConnectionRequestOriginal, type LoginWithIdpConnectionTokenParamsRequest as LoginWithIdpConnectionTokenParamsRequestOriginal, type LogoutRequest as LogoutRequestOriginal, type MapValue as MapValueOriginal, type Metadata as MetadataOriginal, type MfaChallengeData as MfaChallengeDataOriginal, MfaReason as MfaReasonOriginal, type MfaReasonWithLiterals as MfaReasonWithLiteralsOriginal, type PathParametersEntry as PathParametersEntryOriginal, type Phone as PhoneOriginal, PhoneTag as PhoneTagOriginal, type PhoneTagWithLiterals as PhoneTagWithLiteralsOriginal, PrivacyStatus as PrivacyStatusOriginal, type PrivacyStatusWithLiterals as PrivacyStatusWithLiteralsOriginal, type PublicKeyCredentialDescriptor as PublicKeyCredentialDescriptorOriginal, type PushChallengeData as PushChallengeDataOriginal, type PushVerifyData as PushVerifyDataOriginal, type QueryParametersEntry as QueryParametersEntryOriginal, type RawHttpRequest as RawHttpRequestOriginal, type RawHttpResponse as RawHttpResponseOriginal, Reason as ReasonOriginal, type ReasonWithLiterals as ReasonWithLiteralsOriginal, type RegisterV2ApplicationErrors as RegisterV2ApplicationErrorsOriginal, type RegisterV2Request as RegisterV2RequestOriginal, type RegisterV2ValidationErrors as RegisterV2ValidationErrorsOriginal, type RequireMfaData as RequireMfaDataOriginal, type SecondaryEmail as SecondaryEmailOriginal, type SignOnRequest as SignOnRequestOriginal, type SignOnResponse as SignOnResponseOriginal, type SmsVerifyData as SmsVerifyDataOriginal, type StateMachineResponse as StateMachineResponseOriginal, type StateMachineResponseStateDataOneOf as StateMachineResponseStateDataOneOfOriginal, StateType as StateTypeOriginal, type StateTypeWithLiterals as StateTypeWithLiteralsOriginal, StatusName as StatusNameOriginal, type StatusNameWithLiterals as StatusNameWithLiteralsOriginal, Status as StatusOriginal, type StatusV2 as StatusV2Original, type StatusWithLiterals as StatusWithLiteralsOriginal, TenantType as TenantTypeOriginal, type TenantTypeWithLiterals as TenantTypeWithLiteralsOriginal, type TotpVerifyData as TotpVerifyDataOriginal, UserVerificationRequirement as UserVerificationRequirementOriginal, type UserVerificationRequirementWithLiterals as UserVerificationRequirementWithLiteralsOriginal, type V1CustomValue as V1CustomValueOriginal, type V1CustomValueValueOneOf as V1CustomValueValueOneOfOriginal, type V1Factor as V1FactorOriginal, type V1ListValue as V1ListValueOriginal, type V1MapValue as V1MapValueOriginal, type VerificationChallengeFactorChallengeDataOneOf as VerificationChallengeFactorChallengeDataOneOfOriginal, type VerificationChallenge as VerificationChallengeOriginal, type VerifyRequestFactorDataOneOf as VerifyRequestFactorDataOneOfOriginal, type VerifyRequest as VerifyRequestOriginal, type WebAuthnChallengeData as WebAuthnChallengeDataOriginal, type WebAuthnVerifyData as WebAuthnVerifyDataOriginal, type __PublicMethodMetaInfo, changePassword, loginV2, logout, registerV2, signOn, verify };
|
package/build/cjs/meta.js
CHANGED
|
@@ -20,6 +20,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// meta.ts
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
|
+
AddressTagOriginal: () => AddressTag,
|
|
24
|
+
EmailTagOriginal: () => EmailTag,
|
|
25
|
+
FactorStatusOriginal: () => FactorStatus,
|
|
26
|
+
FactorTypeOriginal: () => FactorType,
|
|
27
|
+
MfaReasonOriginal: () => MfaReason,
|
|
28
|
+
PhoneTagOriginal: () => PhoneTag,
|
|
29
|
+
PrivacyStatusOriginal: () => PrivacyStatus,
|
|
30
|
+
ReasonOriginal: () => Reason,
|
|
31
|
+
StateTypeOriginal: () => StateType,
|
|
32
|
+
StatusNameOriginal: () => StatusName,
|
|
33
|
+
StatusOriginal: () => Status,
|
|
34
|
+
TenantTypeOriginal: () => TenantType,
|
|
35
|
+
UserVerificationRequirementOriginal: () => UserVerificationRequirement,
|
|
23
36
|
changePassword: () => changePassword2,
|
|
24
37
|
loginV2: () => loginV22,
|
|
25
38
|
logout: () => logout2,
|
|
@@ -401,6 +414,107 @@ function verify(payload) {
|
|
|
401
414
|
return __verify;
|
|
402
415
|
}
|
|
403
416
|
|
|
417
|
+
// src/iam-authentication-v1-authentication-authentication.types.ts
|
|
418
|
+
var PrivacyStatus = /* @__PURE__ */ ((PrivacyStatus2) => {
|
|
419
|
+
PrivacyStatus2["UNDEFINED"] = "UNDEFINED";
|
|
420
|
+
PrivacyStatus2["PUBLIC"] = "PUBLIC";
|
|
421
|
+
PrivacyStatus2["PRIVATE"] = "PRIVATE";
|
|
422
|
+
return PrivacyStatus2;
|
|
423
|
+
})(PrivacyStatus || {});
|
|
424
|
+
var EmailTag = /* @__PURE__ */ ((EmailTag2) => {
|
|
425
|
+
EmailTag2["UNTAGGED"] = "UNTAGGED";
|
|
426
|
+
EmailTag2["MAIN"] = "MAIN";
|
|
427
|
+
EmailTag2["HOME"] = "HOME";
|
|
428
|
+
EmailTag2["WORK"] = "WORK";
|
|
429
|
+
return EmailTag2;
|
|
430
|
+
})(EmailTag || {});
|
|
431
|
+
var PhoneTag = /* @__PURE__ */ ((PhoneTag2) => {
|
|
432
|
+
PhoneTag2["UNTAGGED"] = "UNTAGGED";
|
|
433
|
+
PhoneTag2["MAIN"] = "MAIN";
|
|
434
|
+
PhoneTag2["HOME"] = "HOME";
|
|
435
|
+
PhoneTag2["MOBILE"] = "MOBILE";
|
|
436
|
+
PhoneTag2["WORK"] = "WORK";
|
|
437
|
+
PhoneTag2["FAX"] = "FAX";
|
|
438
|
+
return PhoneTag2;
|
|
439
|
+
})(PhoneTag || {});
|
|
440
|
+
var AddressTag = /* @__PURE__ */ ((AddressTag2) => {
|
|
441
|
+
AddressTag2["UNTAGGED"] = "UNTAGGED";
|
|
442
|
+
AddressTag2["HOME"] = "HOME";
|
|
443
|
+
AddressTag2["WORK"] = "WORK";
|
|
444
|
+
AddressTag2["BILLING"] = "BILLING";
|
|
445
|
+
AddressTag2["SHIPPING"] = "SHIPPING";
|
|
446
|
+
return AddressTag2;
|
|
447
|
+
})(AddressTag || {});
|
|
448
|
+
var StateType = /* @__PURE__ */ ((StateType2) => {
|
|
449
|
+
StateType2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
450
|
+
StateType2["SUCCESS"] = "SUCCESS";
|
|
451
|
+
StateType2["REQUIRE_OWNER_APPROVAL"] = "REQUIRE_OWNER_APPROVAL";
|
|
452
|
+
StateType2["REQUIRE_EMAIL_VERIFICATION"] = "REQUIRE_EMAIL_VERIFICATION";
|
|
453
|
+
StateType2["STATUS_CHECK"] = "STATUS_CHECK";
|
|
454
|
+
return StateType2;
|
|
455
|
+
})(StateType || {});
|
|
456
|
+
var StatusName = /* @__PURE__ */ ((StatusName2) => {
|
|
457
|
+
StatusName2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
458
|
+
StatusName2["PENDING"] = "PENDING";
|
|
459
|
+
StatusName2["ACTIVE"] = "ACTIVE";
|
|
460
|
+
StatusName2["DELETED"] = "DELETED";
|
|
461
|
+
StatusName2["BLOCKED"] = "BLOCKED";
|
|
462
|
+
StatusName2["OFFLINE"] = "OFFLINE";
|
|
463
|
+
return StatusName2;
|
|
464
|
+
})(StatusName || {});
|
|
465
|
+
var Reason = /* @__PURE__ */ ((Reason2) => {
|
|
466
|
+
Reason2["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
467
|
+
Reason2["PENDING_ADMIN_APPROVAL_REQUIRED"] = "PENDING_ADMIN_APPROVAL_REQUIRED";
|
|
468
|
+
Reason2["PENDING_EMAIL_VERIFICATION_REQUIRED"] = "PENDING_EMAIL_VERIFICATION_REQUIRED";
|
|
469
|
+
return Reason2;
|
|
470
|
+
})(Reason || {});
|
|
471
|
+
var FactorType = /* @__PURE__ */ ((FactorType2) => {
|
|
472
|
+
FactorType2["UNKNOWN_FACTOR_TYPE"] = "UNKNOWN_FACTOR_TYPE";
|
|
473
|
+
FactorType2["PASSWORD"] = "PASSWORD";
|
|
474
|
+
FactorType2["SMS"] = "SMS";
|
|
475
|
+
FactorType2["CALL"] = "CALL";
|
|
476
|
+
FactorType2["EMAIL"] = "EMAIL";
|
|
477
|
+
FactorType2["TOTP"] = "TOTP";
|
|
478
|
+
FactorType2["PUSH"] = "PUSH";
|
|
479
|
+
FactorType2["WEBAUTHN"] = "WEBAUTHN";
|
|
480
|
+
FactorType2["RECOVERY_CODE"] = "RECOVERY_CODE";
|
|
481
|
+
return FactorType2;
|
|
482
|
+
})(FactorType || {});
|
|
483
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
484
|
+
Status2["INACTIVE"] = "INACTIVE";
|
|
485
|
+
Status2["ACTIVE"] = "ACTIVE";
|
|
486
|
+
Status2["REQUIRE_REENROLL"] = "REQUIRE_REENROLL";
|
|
487
|
+
return Status2;
|
|
488
|
+
})(Status || {});
|
|
489
|
+
var FactorStatus = /* @__PURE__ */ ((FactorStatus2) => {
|
|
490
|
+
FactorStatus2["UNKNOWN_FACTOR_STATUS"] = "UNKNOWN_FACTOR_STATUS";
|
|
491
|
+
FactorStatus2["ENABLED"] = "ENABLED";
|
|
492
|
+
FactorStatus2["REQUIRE_ACTIVATION"] = "REQUIRE_ACTIVATION";
|
|
493
|
+
FactorStatus2["REQUIRE_REENROLL"] = "REQUIRE_REENROLL";
|
|
494
|
+
FactorStatus2["ENABLED_BY_RULE"] = "ENABLED_BY_RULE";
|
|
495
|
+
FactorStatus2["DISABLED_BY_RULE"] = "DISABLED_BY_RULE";
|
|
496
|
+
return FactorStatus2;
|
|
497
|
+
})(FactorStatus || {});
|
|
498
|
+
var MfaReason = /* @__PURE__ */ ((MfaReason2) => {
|
|
499
|
+
MfaReason2["UNKNOWN_MFA_REASON"] = "UNKNOWN_MFA_REASON";
|
|
500
|
+
MfaReason2["USER_SETTINGS"] = "USER_SETTINGS";
|
|
501
|
+
MfaReason2["HIGH_RISK_LOGIN"] = "HIGH_RISK_LOGIN";
|
|
502
|
+
return MfaReason2;
|
|
503
|
+
})(MfaReason || {});
|
|
504
|
+
var UserVerificationRequirement = /* @__PURE__ */ ((UserVerificationRequirement2) => {
|
|
505
|
+
UserVerificationRequirement2["USER_VERIFICATION_UNSPECIFIED"] = "USER_VERIFICATION_UNSPECIFIED";
|
|
506
|
+
UserVerificationRequirement2["USER_VERIFICATION_REQUIRED"] = "USER_VERIFICATION_REQUIRED";
|
|
507
|
+
UserVerificationRequirement2["USER_VERIFICATION_PREFERRED"] = "USER_VERIFICATION_PREFERRED";
|
|
508
|
+
UserVerificationRequirement2["USER_VERIFICATION_DISCOURAGED"] = "USER_VERIFICATION_DISCOURAGED";
|
|
509
|
+
return UserVerificationRequirement2;
|
|
510
|
+
})(UserVerificationRequirement || {});
|
|
511
|
+
var TenantType = /* @__PURE__ */ ((TenantType2) => {
|
|
512
|
+
TenantType2["UNKNOWN_TENANT_TYPE"] = "UNKNOWN_TENANT_TYPE";
|
|
513
|
+
TenantType2["ACCOUNT"] = "ACCOUNT";
|
|
514
|
+
TenantType2["SITE"] = "SITE";
|
|
515
|
+
return TenantType2;
|
|
516
|
+
})(TenantType || {});
|
|
517
|
+
|
|
404
518
|
// src/iam-authentication-v1-authentication-authentication.meta.ts
|
|
405
519
|
function registerV22() {
|
|
406
520
|
const payload = {};
|
|
@@ -512,6 +626,19 @@ function verify2() {
|
|
|
512
626
|
}
|
|
513
627
|
// Annotate the CommonJS export names for ESM import in node:
|
|
514
628
|
0 && (module.exports = {
|
|
629
|
+
AddressTagOriginal,
|
|
630
|
+
EmailTagOriginal,
|
|
631
|
+
FactorStatusOriginal,
|
|
632
|
+
FactorTypeOriginal,
|
|
633
|
+
MfaReasonOriginal,
|
|
634
|
+
PhoneTagOriginal,
|
|
635
|
+
PrivacyStatusOriginal,
|
|
636
|
+
ReasonOriginal,
|
|
637
|
+
StateTypeOriginal,
|
|
638
|
+
StatusNameOriginal,
|
|
639
|
+
StatusOriginal,
|
|
640
|
+
TenantTypeOriginal,
|
|
641
|
+
UserVerificationRequirementOriginal,
|
|
515
642
|
changePassword,
|
|
516
643
|
loginV2,
|
|
517
644
|
logout,
|