@wacht/jsx 1.0.0-beta.63 → 1.0.0-beta.64

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.ts CHANGED
@@ -180,10 +180,6 @@ export declare function canManageOrganization(membership: WithOrgRoles): boolean
180
180
  */
181
181
  export declare function canManageWorkspace(membership: WithWsRoles): boolean;
182
182
 
183
- declare type ChallengeParams = {
184
- challenge_token?: string;
185
- };
186
-
187
183
  export declare function clearTokenCache(): void;
188
184
 
189
185
  declare const CONNECTION_STATES: {
@@ -351,16 +347,16 @@ export declare const DropdownTrigger: ({ children }: {
351
347
  children: ReactNode;
352
348
  }) => JSX.Element;
353
349
 
354
- declare type EmailOTPSignInParams = ChallengeParams & {
350
+ declare type EmailOTPSignInParams = {
355
351
  email: string;
356
352
  };
357
353
 
358
- declare type EmailOTPVerificationParams = ChallengeParams & {
354
+ declare type EmailOTPVerificationParams = {
359
355
  strategy: "email_otp";
360
356
  redirectUri?: string;
361
357
  };
362
358
 
363
- declare type EmailSignInParams = ChallengeParams & {
359
+ declare type EmailSignInParams = {
364
360
  email: string;
365
361
  password: string;
366
362
  };
@@ -389,7 +385,6 @@ declare type GenericSignInParams = {
389
385
  password?: string;
390
386
  phone?: string;
391
387
  strategy?: string;
392
- challenge_token?: string;
393
388
  };
394
389
 
395
390
  export declare function hasIncompleteProfile(session: Session): boolean;
@@ -442,13 +437,13 @@ declare interface MagicLinkParams {
442
437
  redirectUri?: string;
443
438
  }
444
439
 
445
- declare type MagicLinkSignInParams = ChallengeParams & {
440
+ declare type MagicLinkSignInParams = {
446
441
  email: string;
447
442
  };
448
443
 
449
444
  export declare function MagicLinkVerification({ onSuccess, onError, }?: MagicLinkVerificationProps): JSX.Element;
450
445
 
451
- declare type MagicLinkVerificationParams = ChallengeParams & {
446
+ declare type MagicLinkVerificationParams = {
452
447
  strategy: "magic_link";
453
448
  redirectUri?: string;
454
449
  };
@@ -629,12 +624,12 @@ export declare const PhoneNumberInput: ({ value, onChange, error, countryCode, s
629
624
  setCountryCode: React.Dispatch<React.SetStateAction<string | undefined>>;
630
625
  }) => JSX.Element;
631
626
 
632
- declare type PhoneOTPVerificationParams = ChallengeParams & {
627
+ declare type PhoneOTPVerificationParams = {
633
628
  strategy: "phone_otp";
634
629
  lastDigits?: string;
635
630
  };
636
631
 
637
- declare type PhoneSignInParams = ChallengeParams & {
632
+ declare type PhoneSignInParams = {
638
633
  phone: string;
639
634
  };
640
635
 
@@ -739,8 +734,8 @@ declare type SignIn = {
739
734
  prepareVerification: (params: VerificationParams) => Promise<ApiResult<PrepareVerificationResponse>>;
740
735
  completeVerification: (verificationCode: string) => Promise<Session>;
741
736
  completeProfile: (data: ProfileCompletionData) => Promise<Session>;
742
- identify: (identifier: string, challengeToken?: string) => Promise<IdentifyResult>;
743
- initEnterpriseSso: (connectionId: string, redirectUri?: string, challengeToken?: string) => Promise<{
737
+ identify: (identifier: string) => Promise<IdentifyResult>;
738
+ initEnterpriseSso: (connectionId: string, redirectUri?: string) => Promise<{
744
739
  sso_url: string;
745
740
  session: Session;
746
741
  }>;
@@ -750,17 +745,16 @@ declare type SignInEmailOTP = ({ email, }: EmailOTPSignInParams) => Promise<ApiR
750
745
 
751
746
  export declare function SignInForm(): JSX.Element;
752
747
 
753
- declare type SignInGeneric = ({ email, username, password, phone, strategy, challenge_token, }: GenericSignInParams) => Promise<ApiResult<Session>>;
748
+ declare type SignInGeneric = ({ email, username, password, phone, strategy, }: GenericSignInParams) => Promise<ApiResult<Session>>;
754
749
 
755
750
  declare type SignInMagicLink = ({ email, }: MagicLinkSignInParams) => Promise<ApiResult<Session>>;
756
751
 
757
752
  declare type SignInOauth = ({ provider, redirectUri, }: {
758
753
  provider: OAuthProvider;
759
754
  redirectUri?: string;
760
- challenge_token?: string;
761
755
  }) => Promise<ApiResult<InitSSOResponseType>>;
762
756
 
763
- declare type SignInPasskey = (params?: ChallengeParams) => Promise<ApiResult<Session>>;
757
+ declare type SignInPasskey = () => Promise<ApiResult<Session>>;
764
758
 
765
759
  declare type SignInPhone = ({ phone, }: PhoneSignInParams) => Promise<ApiResult<Session>>;
766
760
 
@@ -768,10 +762,9 @@ declare type SignInPlainEmail = ({ email, password, }: EmailSignInParams) => Pro
768
762
 
769
763
  declare type SignInPlainUsername = ({ username, password, }: UsernameSignInParams) => Promise<ApiResult<Session>>;
770
764
 
771
- declare type SignupEmailOTPVerificationParams = {
765
+ export declare type SignupEmailOTPVerificationParams = {
772
766
  strategy: "email_otp";
773
767
  redirectUri?: string;
774
- challenge_token?: string;
775
768
  };
776
769
 
777
770
  export declare function SignUpForm(): JSX.Element;
@@ -783,10 +776,9 @@ export declare type SignUpFunction = {
783
776
  validateDeploymentInvitation: (token: string) => Promise<DeploymentInvitationData>;
784
777
  };
785
778
 
786
- declare type SignupPhoneOTPVerificationParams = {
779
+ export declare type SignupPhoneOTPVerificationParams = {
787
780
  strategy: "phone_otp";
788
781
  lastDigits?: string;
789
- challenge_token?: string;
790
782
  };
791
783
 
792
784
  declare type SignupVerificationParams = SignupEmailOTPVerificationParams | SignupPhoneOTPVerificationParams;
@@ -1463,7 +1455,7 @@ declare interface UserControlsProps {
1463
1455
  showNotifications?: boolean;
1464
1456
  }
1465
1457
 
1466
- declare type UsernameSignInParams = ChallengeParams & {
1458
+ declare type UsernameSignInParams = {
1467
1459
  username: string;
1468
1460
  password: string;
1469
1461
  };