@wacht/jsx 0.0.1-alpha.45 → 0.0.1-alpha.47
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.cjs.js +813 -707
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.es.js +8377 -7946
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
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";
|
|
@@ -1330,6 +1335,7 @@ export declare function useUser(): {
|
|
|
1330
1335
|
backup_codes_generated?: boolean;
|
|
1331
1336
|
backup_codes?: string[];
|
|
1332
1337
|
has_password?: boolean | undefined;
|
|
1338
|
+
has_passkeys?: boolean | undefined;
|
|
1333
1339
|
public_metadata?: Record<string, unknown> | undefined;
|
|
1334
1340
|
segments?: Segment[] | undefined;
|
|
1335
1341
|
};
|
|
@@ -1364,6 +1370,10 @@ export declare function useUser(): {
|
|
|
1364
1370
|
updatePassword: (currentPassword: string, newPassword: string) => Promise<ApiResult<unknown>>;
|
|
1365
1371
|
removePassword: (currentPassword: string) => Promise<ApiResult<unknown>>;
|
|
1366
1372
|
deleteAccount: (password: string) => Promise<ApiResult<unknown>>;
|
|
1373
|
+
getPasskeys: () => Promise<ApiResult<UserPasskey[]>>;
|
|
1374
|
+
registerPasskey: (name?: string) => Promise<ApiResult<unknown>>;
|
|
1375
|
+
deletePasskey: (id: string) => Promise<ApiResult<unknown>>;
|
|
1376
|
+
renamePasskey: (id: string, name: string) => Promise<ApiResult<unknown>>;
|
|
1367
1377
|
};
|
|
1368
1378
|
|
|
1369
1379
|
export declare function useUserSignins(): {
|