@wacht/jsx 0.0.1-alpha.45 → 0.0.1-alpha.46

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
@@ -49,6 +49,7 @@ import { Substitute } from 'styled-components/dist/types';
49
49
  import { UpdateEnterpriseConnectionPayload } from '@wacht/types';
50
50
  import { UserAuthenticator } from '@wacht/types';
51
51
  import { UserEmailAddress } from '@wacht/types';
52
+ import { UserPasskey } from '@wacht/types';
52
53
  import { UserPhoneNumber } from '@wacht/types';
53
54
  import { Workspace } from '@wacht/types';
54
55
  import { WorkspaceMembership } from '@wacht/types';
@@ -210,6 +211,7 @@ declare type CreateSignInStrategyResult = {
210
211
  (strategy: "email_otp"): SignInEmailOTP;
211
212
  (strategy: "magic_link"): SignInMagicLink;
212
213
  (strategy: "oauth"): SignInOauth;
214
+ (strategy: "passkey"): SignInPasskey;
213
215
  (strategy: "generic"): SignInGeneric;
214
216
  };
215
217
 
@@ -751,6 +753,7 @@ declare type SignInFunction<T extends SignInStrategy> = {
751
753
  ["email_otp"]: SignInEmailOTP;
752
754
  ["magic_link"]: SignInMagicLink;
753
755
  ["oauth"]: SignInOauth;
756
+ ["passkey"]: SignInPasskey;
754
757
  ["generic"]: SignInGeneric;
755
758
  }[T];
756
759
 
@@ -763,13 +766,15 @@ declare type SignInOauth = ({ provider, redirectUri, }: {
763
766
  redirectUri?: string;
764
767
  }) => Promise<ApiResult<InitSSOResponseType>>;
765
768
 
769
+ declare type SignInPasskey = () => Promise<ApiResult<Session>>;
770
+
766
771
  declare type SignInPhone = ({ phone, }: PhoneSignInParams) => Promise<ApiResult<Session>>;
767
772
 
768
773
  declare type SignInPlainEmail = ({ email, password, }: EmailSignInParams) => Promise<ApiResult<Session>>;
769
774
 
770
775
  declare type SignInPlainUsername = ({ username, password, }: UsernameSignInParams) => Promise<ApiResult<Session>>;
771
776
 
772
- declare type SignInStrategy = "username" | "email" | "phone" | "email_otp" | "magic_link" | "oauth" | "generic";
777
+ declare type SignInStrategy = "username" | "email" | "phone" | "email_otp" | "magic_link" | "oauth" | "passkey" | "generic";
773
778
 
774
779
  declare type SignupEmailOTPVerificationParams = {
775
780
  strategy: "email_otp";
@@ -1364,6 +1369,10 @@ export declare function useUser(): {
1364
1369
  updatePassword: (currentPassword: string, newPassword: string) => Promise<ApiResult<unknown>>;
1365
1370
  removePassword: (currentPassword: string) => Promise<ApiResult<unknown>>;
1366
1371
  deleteAccount: (password: string) => Promise<ApiResult<unknown>>;
1372
+ getPasskeys: () => Promise<ApiResult<UserPasskey[]>>;
1373
+ registerPasskey: (name?: string) => Promise<ApiResult<unknown>>;
1374
+ deletePasskey: (id: string) => Promise<ApiResult<unknown>>;
1375
+ renamePasskey: (id: string, name: string) => Promise<ApiResult<unknown>>;
1367
1376
  };
1368
1377
 
1369
1378
  export declare function useUserSignins(): {