@adonis-agora/authkit-react 0.20.0 → 0.21.0
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/index.d.ts +84 -84
- package/build/index.js +40 -40
- package/build/src/authkit_provider.d.ts +2 -2
- package/build/src/client/client.d.ts +4 -4
- package/build/src/client/types.d.ts +8 -7
- package/build/src/components/authenticated.js +1 -1
- package/build/src/components/can_permission.js +1 -1
- package/build/src/components/interaction_form.d.ts +116 -116
- package/build/src/components/oauth_button.d.ts +115 -115
- package/build/src/components/sign_in_button.d.ts +118 -118
- package/build/src/components/sign_out_button.d.ts +118 -118
- package/build/src/queries/account/index.d.ts +1 -1
- package/build/src/queries/admin/index.d.ts +5 -5
- package/build/src/queries/keys.d.ts +31 -31
- package/package.json +16 -13
- package/skills/authkit-react-auth/SKILL.md +231 -0
package/build/index.d.ts
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
export { useAuth } from './src/use_auth.js';
|
|
2
|
-
export { AuthProvider, AuthContext } from './src/provider.js';
|
|
3
|
-
export type { AuthProviderProps } from './src/provider.js';
|
|
4
|
-
export { AuthkitProvider } from './src/authkit_provider.js';
|
|
5
1
|
export type { AuthkitProviderProps } from './src/authkit_provider.js';
|
|
6
|
-
export {
|
|
7
|
-
export type {
|
|
8
|
-
export {
|
|
9
|
-
export type {
|
|
10
|
-
export {
|
|
11
|
-
export type {
|
|
12
|
-
export { useUser } from './src/hooks/use_user.js';
|
|
13
|
-
export type { UseUserResult } from './src/hooks/use_user.js';
|
|
14
|
-
export { useProfile } from './src/hooks/use_profile.js';
|
|
15
|
-
export type { UseProfileResult, ProfileUpdate, } from './src/hooks/use_profile.js';
|
|
16
|
-
export { useSessions } from './src/hooks/use_sessions.js';
|
|
17
|
-
export type { UseSessionsResult, AuthSession, } from './src/hooks/use_sessions.js';
|
|
18
|
-
export { useAuthorizedApps } from './src/hooks/use_authorized_apps.js';
|
|
19
|
-
export type { UseAuthorizedAppsResult, AuthorizedApp, } from './src/hooks/use_authorized_apps.js';
|
|
20
|
-
export { useOrganizations } from './src/hooks/use_organizations.js';
|
|
21
|
-
export type { UseOrganizationsResult, OrgEntry, } from './src/hooks/use_organizations.js';
|
|
22
|
-
export { useOrganization } from './src/hooks/use_organization.js';
|
|
23
|
-
export type { UseOrganizationResult, ActiveOrgDetail, OrgMemberEntry, } from './src/hooks/use_organization.js';
|
|
24
|
-
export { useSwitchOrganization } from './src/hooks/use_switch_organization.js';
|
|
25
|
-
export type { UseSwitchOrganizationResult } from './src/hooks/use_switch_organization.js';
|
|
26
|
-
export { useOrgInvitations } from './src/hooks/use_org_invitations.js';
|
|
27
|
-
export type { UseOrgInvitationsResult, OrgInvitationEntry, } from './src/hooks/use_org_invitations.js';
|
|
28
|
-
export { jsonRequest, useResource } from './src/hooks/use_resource.js';
|
|
29
|
-
export type { ResourceState } from './src/hooks/use_resource.js';
|
|
30
|
-
export { usePasskeyAutofill } from './src/hooks/use_passkey_autofill.js';
|
|
31
|
-
export type { UsePasskeyAutofillOptions } from './src/hooks/use_passkey_autofill.js';
|
|
32
|
-
export { usePasskeyLogin } from './src/hooks/use_passkey_login.js';
|
|
33
|
-
export type { UsePasskeyLoginOptions, UsePasskeyLoginResult, } from './src/hooks/use_passkey_login.js';
|
|
34
|
-
export { authenticatePasskey, registerPasskey, submitPasskeyVerification, loadStartAuthentication, loadStartRegistration, } from './src/passkey/authenticate.js';
|
|
35
|
-
export type { AuthenticatePasskeyOptions, RegisterPasskeyOptions, SubmitPasskeyVerificationOptions, PasskeyCeremonyDeps, PasskeyRegistrationDeps, StartAuthenticationFn, StartRegistrationFn, } from './src/passkey/authenticate.js';
|
|
36
|
-
export { submitClassicForm } from './src/passkey/classic_form.js';
|
|
37
|
-
export type { SubmitClassicFormOptions, SubmitClassicFormDeps, } from './src/passkey/classic_form.js';
|
|
38
|
-
export { runPasskeyAssertion, runPasskeyRegistration } from './src/passkey/sudo.js';
|
|
39
|
-
export type { RunPasskeyFlowOptions, RunPasskeyAssertionDeps, RunPasskeyRegistrationDeps, } from './src/passkey/sudo.js';
|
|
40
|
-
export { usePasskeyAssertion } from './src/hooks/use_passkey_assertion.js';
|
|
41
|
-
export type { UsePasskeyAssertionOptions, UsePasskeyAssertionResult, } from './src/hooks/use_passkey_assertion.js';
|
|
42
|
-
export { usePasskeyRegistration } from './src/hooks/use_passkey_registration.js';
|
|
43
|
-
export type { UsePasskeyRegistrationOptions, UsePasskeyRegistrationResult, } from './src/hooks/use_passkey_registration.js';
|
|
44
|
-
export { usePasswordStrength, heuristicScorer, } from './src/hooks/use_password_strength.js';
|
|
45
|
-
export type { PasswordStrengthScore, PasswordStrengthResult, PasswordScorer, UsePasswordStrengthOptions, } from './src/hooks/use_password_strength.js';
|
|
46
|
-
export { deriveInitials, currentUrl, buttonClass } from './src/utils.js';
|
|
47
|
-
export { interactionUrls, oauthRedirectUrl, OTP_CODE_FIELD } from './src/interaction/urls.js';
|
|
48
|
-
export type { InteractionUrls, InteractionPostStep, } from './src/interaction/urls.js';
|
|
49
|
-
export { Authenticated, Guest } from './src/components/authenticated.js';
|
|
2
|
+
export { AuthkitProvider } from './src/authkit_provider.js';
|
|
3
|
+
export type { AuthkitClient, AuthkitClientOptions, } from './src/client/client.js';
|
|
4
|
+
export { AuthkitClientError, createAuthkitClient, } from './src/client/client.js';
|
|
5
|
+
export type { AuthkitClientProviderProps } from './src/client/context.js';
|
|
6
|
+
export { AuthkitClientProvider, createAuthkitQueryClient, useAuthkitClient, } from './src/client/context.js';
|
|
7
|
+
export type { AccountAppEntry, AccountAppsResult, AccountCapabilities, AccountLoginMethodsResult, AccountMe, AccountMfaStatus, AccountOrgDetail, AccountOrgEntry, AccountOrgInvitationsResult, AccountOrgsResult, AccountPasskeysResult, AccountSecurityOverview, AccountSessionEntry, AccountSessionsResult, AccountTokensResult, AdminClient, AdminClientListResult, AdminGrantEntry, AdminOrgDetail, AdminOrgEntry, AdminOrgInvitation, AdminOrgListResult, AdminOrgMember, AdminOverview, AdminSessionEntry, AdminUser, AdminUserListResult, ApiErrorBody, AuditEventEntry, AuditListParams, AuditListResult, ChangePasswordInput, CreateClientInput, CreatedClientResult, CreatedPatResult, CreateOrgInput, CreateRoleInput, CreateTokenInput, CreateUserInput, DailyPoint, EmailChangeResult, ImpersonationPanel, KeysRotateInput, KeysRotateResult, KeysStatus, ListMeta, ManagedKeyInfo, OkResult, PasskeySummaryEntry, PatEntry, RegenerateSecretResult, RemovePasskeyResult, RequestEmailChangeInput, RevokeAllResult, RevokeAppResult, RevokeOthersResult, RevokeSessionResult, RevokeSessionsResult, RevokeTokenResult, RoleCatalogEntry, RoleListResult, SettingEntry, SettingListResult, UpdateClientInput, UpdateLoginMethodsResult, UpdateOrgInput, UpdateProfileInput, UpdateProfileResult, UpdateRoleInput, UpdateUserInput, UserLoginMethodsInput, UserSessionsResult, } from './src/client/types.js';
|
|
50
8
|
export type { AuthenticatedProps, GuestProps, } from './src/components/authenticated.js';
|
|
51
|
-
export {
|
|
52
|
-
export type { CanPermissionProps } from './src/components/can_permission.js';
|
|
53
|
-
export { useCan, checkCan, invalidateCanCache } from './src/hooks/use_can.js';
|
|
54
|
-
export type { UseCanResult } from './src/hooks/use_can.js';
|
|
55
|
-
export { SignInButton } from './src/components/sign_in_button.js';
|
|
56
|
-
export type { SignInButtonProps } from './src/components/sign_in_button.js';
|
|
57
|
-
export { SignOutButton } from './src/components/sign_out_button.js';
|
|
58
|
-
export type { SignOutButtonProps } from './src/components/sign_out_button.js';
|
|
59
|
-
export { Avatar } from './src/components/avatar.js';
|
|
60
|
-
export type { AvatarProps } from './src/components/avatar.js';
|
|
61
|
-
export { UserButton } from './src/components/user_button.js';
|
|
62
|
-
export type { UserButtonProps } from './src/components/user_button.js';
|
|
63
|
-
export { UserProfile } from './src/components/user_profile.js';
|
|
64
|
-
export type { UserProfileProps } from './src/components/user_profile.js';
|
|
65
|
-
export { AuthorizedApps } from './src/components/authorized_apps.js';
|
|
9
|
+
export { Authenticated, Guest } from './src/components/authenticated.js';
|
|
66
10
|
export type { AuthorizedAppsProps } from './src/components/authorized_apps.js';
|
|
67
|
-
export {
|
|
68
|
-
export type {
|
|
69
|
-
export {
|
|
70
|
-
export type {
|
|
71
|
-
export {
|
|
11
|
+
export { AuthorizedApps } from './src/components/authorized_apps.js';
|
|
12
|
+
export type { AvatarProps } from './src/components/avatar.js';
|
|
13
|
+
export { Avatar } from './src/components/avatar.js';
|
|
14
|
+
export type { CanPermissionProps } from './src/components/can_permission.js';
|
|
15
|
+
export { CanPermission } from './src/components/can_permission.js';
|
|
72
16
|
export type { InteractionFormProps } from './src/components/interaction_form.js';
|
|
73
|
-
export {
|
|
17
|
+
export { InteractionForm } from './src/components/interaction_form.js';
|
|
18
|
+
export type { KeyRotationProps } from './src/components/key_rotation.js';
|
|
19
|
+
export { KeyRotation } from './src/components/key_rotation.js';
|
|
74
20
|
export type { MagicLinkButtonProps } from './src/components/magic_link_button.js';
|
|
75
|
-
export {
|
|
21
|
+
export { MagicLinkButton } from './src/components/magic_link_button.js';
|
|
76
22
|
export type { OAuthButtonProps } from './src/components/oauth_button.js';
|
|
77
|
-
export {
|
|
78
|
-
export type { OrganizationSwitcherProps } from './src/components/organization_switcher.js';
|
|
79
|
-
export { OrganizationProfile } from './src/components/organization_profile.js';
|
|
23
|
+
export { OAuthButton } from './src/components/oauth_button.js';
|
|
80
24
|
export type { OrganizationProfileProps } from './src/components/organization_profile.js';
|
|
81
|
-
export {
|
|
82
|
-
export type {
|
|
83
|
-
export {
|
|
84
|
-
export type {
|
|
85
|
-
export {
|
|
86
|
-
export type {
|
|
87
|
-
export
|
|
88
|
-
export {
|
|
89
|
-
export
|
|
25
|
+
export { OrganizationProfile } from './src/components/organization_profile.js';
|
|
26
|
+
export type { OrganizationSwitcherProps } from './src/components/organization_switcher.js';
|
|
27
|
+
export { OrganizationSwitcher } from './src/components/organization_switcher.js';
|
|
28
|
+
export type { PasskeyButtonProps } from './src/components/passkey_button.js';
|
|
29
|
+
export { PasskeyButton } from './src/components/passkey_button.js';
|
|
30
|
+
export type { PasswordStrengthMeterProps } from './src/components/password_strength_meter.js';
|
|
31
|
+
export { PasswordStrengthMeter } from './src/components/password_strength_meter.js';
|
|
32
|
+
export type { SignInButtonProps } from './src/components/sign_in_button.js';
|
|
33
|
+
export { SignInButton } from './src/components/sign_in_button.js';
|
|
34
|
+
export type { SignOutButtonProps } from './src/components/sign_out_button.js';
|
|
35
|
+
export { SignOutButton } from './src/components/sign_out_button.js';
|
|
36
|
+
export type { UserButtonProps } from './src/components/user_button.js';
|
|
37
|
+
export { UserButton } from './src/components/user_button.js';
|
|
38
|
+
export type { UserProfileProps } from './src/components/user_profile.js';
|
|
39
|
+
export { UserProfile } from './src/components/user_profile.js';
|
|
40
|
+
export type { AuthkitConfig, AuthkitEndpoints, AuthkitIdpMode, ResolvedAuthkitConfig, } from './src/config.js';
|
|
41
|
+
export { AuthkitConfigContext, buildAuthUrl, DEFAULT_CONFIG, resolveConfig, useAuthkitConfig, } from './src/config.js';
|
|
42
|
+
export type { AuthorizedApp, UseAuthorizedAppsResult, } from './src/hooks/use_authorized_apps.js';
|
|
43
|
+
export { useAuthorizedApps } from './src/hooks/use_authorized_apps.js';
|
|
44
|
+
export type { UseCanResult } from './src/hooks/use_can.js';
|
|
45
|
+
export { checkCan, invalidateCanCache, useCan } from './src/hooks/use_can.js';
|
|
46
|
+
export type { OrgInvitationEntry, UseOrgInvitationsResult, } from './src/hooks/use_org_invitations.js';
|
|
47
|
+
export { useOrgInvitations } from './src/hooks/use_org_invitations.js';
|
|
48
|
+
export type { ActiveOrgDetail, OrgMemberEntry, UseOrganizationResult, } from './src/hooks/use_organization.js';
|
|
49
|
+
export { useOrganization } from './src/hooks/use_organization.js';
|
|
50
|
+
export type { OrgEntry, UseOrganizationsResult, } from './src/hooks/use_organizations.js';
|
|
51
|
+
export { useOrganizations } from './src/hooks/use_organizations.js';
|
|
52
|
+
export type { UsePasskeyAssertionOptions, UsePasskeyAssertionResult, } from './src/hooks/use_passkey_assertion.js';
|
|
53
|
+
export { usePasskeyAssertion } from './src/hooks/use_passkey_assertion.js';
|
|
54
|
+
export type { UsePasskeyAutofillOptions } from './src/hooks/use_passkey_autofill.js';
|
|
55
|
+
export { usePasskeyAutofill } from './src/hooks/use_passkey_autofill.js';
|
|
56
|
+
export type { UsePasskeyLoginOptions, UsePasskeyLoginResult, } from './src/hooks/use_passkey_login.js';
|
|
57
|
+
export { usePasskeyLogin } from './src/hooks/use_passkey_login.js';
|
|
58
|
+
export type { UsePasskeyRegistrationOptions, UsePasskeyRegistrationResult, } from './src/hooks/use_passkey_registration.js';
|
|
59
|
+
export { usePasskeyRegistration } from './src/hooks/use_passkey_registration.js';
|
|
60
|
+
export type { PasswordScorer, PasswordStrengthResult, PasswordStrengthScore, UsePasswordStrengthOptions, } from './src/hooks/use_password_strength.js';
|
|
61
|
+
export { heuristicScorer, usePasswordStrength, } from './src/hooks/use_password_strength.js';
|
|
62
|
+
export type { ProfileUpdate, UseProfileResult, } from './src/hooks/use_profile.js';
|
|
63
|
+
export { useProfile } from './src/hooks/use_profile.js';
|
|
64
|
+
export type { ResourceState } from './src/hooks/use_resource.js';
|
|
65
|
+
export { jsonRequest, useResource } from './src/hooks/use_resource.js';
|
|
66
|
+
export type { AuthSession, UseSessionsResult, } from './src/hooks/use_sessions.js';
|
|
67
|
+
export { useSessions } from './src/hooks/use_sessions.js';
|
|
68
|
+
export type { SignInOptions } from './src/hooks/use_sign_in.js';
|
|
69
|
+
export { useSignIn } from './src/hooks/use_sign_in.js';
|
|
70
|
+
export type { SignOutOptions } from './src/hooks/use_sign_out.js';
|
|
71
|
+
export { useSignOut } from './src/hooks/use_sign_out.js';
|
|
72
|
+
export type { UseSwitchOrganizationResult } from './src/hooks/use_switch_organization.js';
|
|
73
|
+
export { useSwitchOrganization } from './src/hooks/use_switch_organization.js';
|
|
74
|
+
export type { UseUserResult } from './src/hooks/use_user.js';
|
|
75
|
+
export { useUser } from './src/hooks/use_user.js';
|
|
76
|
+
export type { InteractionPostStep, InteractionUrls, } from './src/interaction/urls.js';
|
|
77
|
+
export { interactionUrls, OTP_CODE_FIELD, oauthRedirectUrl } from './src/interaction/urls.js';
|
|
78
|
+
export type { AuthenticatePasskeyOptions, PasskeyCeremonyDeps, PasskeyRegistrationDeps, RegisterPasskeyOptions, StartAuthenticationFn, StartRegistrationFn, SubmitPasskeyVerificationOptions, } from './src/passkey/authenticate.js';
|
|
79
|
+
export { authenticatePasskey, loadStartAuthentication, loadStartRegistration, registerPasskey, submitPasskeyVerification, } from './src/passkey/authenticate.js';
|
|
80
|
+
export type { SubmitClassicFormDeps, SubmitClassicFormOptions, } from './src/passkey/classic_form.js';
|
|
81
|
+
export { submitClassicForm } from './src/passkey/classic_form.js';
|
|
82
|
+
export type { RunPasskeyAssertionDeps, RunPasskeyFlowOptions, RunPasskeyRegistrationDeps, } from './src/passkey/sudo.js';
|
|
83
|
+
export { runPasskeyAssertion, runPasskeyRegistration } from './src/passkey/sudo.js';
|
|
84
|
+
export type { AuthProviderProps } from './src/provider.js';
|
|
85
|
+
export { AuthContext, AuthProvider } from './src/provider.js';
|
|
86
|
+
export { useAccountOrgInvitationsQueryOptions, useAccountOrgQueryOptions, useAccountOrgsQueryOptions, useAccountRevokeAllSessionsMutationOptions, useAccountSessionsQueryOptions, useAppsQueryOptions, useCancelEmailChangeMutationOptions, useChangePasswordMutationOptions, useCreateTokenMutationOptions, useEmailChangeMutationOptions, useLoginMethodsQueryOptions, useMeQueryOptions, useMfaQueryOptions, usePasskeysQueryOptions, useRemovePasskeyMutationOptions, useRevokeAppMutationOptions, useRevokeOtherSessionsMutationOptions, useRevokeSessionMutationOptions, useRevokeTokenMutationOptions, useSecurityQueryOptions, useTokensQueryOptions, useUpdateLoginMethodsMutationOptions, useUpdateProfileMutationOptions, } from './src/queries/account/index.js';
|
|
87
|
+
export { useAddOrgMemberMutationOptions, useAuditQueryOptions, useClientQueryOptions, useClientsQueryOptions, useCreateClientMutationOptions, useCreateOrgInvitationMutationOptions, useCreateOrgMutationOptions, useCreateRoleMutationOptions, useCreateUserMutationOptions, useDeleteClientMutationOptions, useDeleteOrgMutationOptions, useDeleteRoleMutationOptions, useDeleteUserMutationOptions, useDisableUserMutationOptions, useEnableUserMutationOptions, useImpersonationQueryOptions, useKeysQueryOptions, useOrgQueryOptions, useOrgsQueryOptions, useOverviewQueryOptions, useRegenerateClientSecretMutationOptions, useRemoveOrgMemberMutationOptions, useRemoveSettingMutationOptions, useResetPasswordMutationOptions, useRevokeAllSessionsMutationOptions, useRevokeOrgInvitationMutationOptions, useRevokeUserSessionsMutationOptions, useRolesQueryOptions, useRotateKeysMutationOptions, useSessionsQueryOptions, useSetSettingMutationOptions, useSettingsQueryOptions, useUpdateClientMutationOptions, useUpdateOrgMemberRoleMutationOptions, useUpdateOrgMutationOptions, useUpdateRoleMutationOptions, useUpdateUserMutationOptions, useUserQueryOptions, useUserSessionsQueryOptions, useUsersQueryOptions, } from './src/queries/admin/index.js';
|
|
90
88
|
export { authkitKeys } from './src/queries/keys.js';
|
|
91
|
-
export {
|
|
92
|
-
export {
|
|
89
|
+
export { hasAllGlobalRoles, hasAnyGlobalRole, hasGlobalRole, } from './src/roles.js';
|
|
90
|
+
export type { AuthSharedProps, AuthState, AuthUser } from './src/types.js';
|
|
91
|
+
export { useAuth } from './src/use_auth.js';
|
|
92
|
+
export { buttonClass, currentUrl, deriveInitials } from './src/utils.js';
|
package/build/index.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
export { useAuth } from './src/use_auth.js';
|
|
2
|
-
export { AuthProvider, AuthContext } from './src/provider.js';
|
|
3
1
|
export { AuthkitProvider } from './src/authkit_provider.js';
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export { useSignOut } from './src/hooks/use_sign_out.js';
|
|
7
|
-
export { useUser } from './src/hooks/use_user.js';
|
|
8
|
-
export { useProfile } from './src/hooks/use_profile.js';
|
|
9
|
-
export { useSessions } from './src/hooks/use_sessions.js';
|
|
10
|
-
export { useAuthorizedApps } from './src/hooks/use_authorized_apps.js';
|
|
11
|
-
export { useOrganizations } from './src/hooks/use_organizations.js';
|
|
12
|
-
export { useOrganization } from './src/hooks/use_organization.js';
|
|
13
|
-
export { useSwitchOrganization } from './src/hooks/use_switch_organization.js';
|
|
14
|
-
export { useOrgInvitations } from './src/hooks/use_org_invitations.js';
|
|
15
|
-
export { jsonRequest, useResource } from './src/hooks/use_resource.js';
|
|
16
|
-
export { usePasskeyAutofill } from './src/hooks/use_passkey_autofill.js';
|
|
17
|
-
export { usePasskeyLogin } from './src/hooks/use_passkey_login.js';
|
|
18
|
-
export { authenticatePasskey, registerPasskey, submitPasskeyVerification, loadStartAuthentication, loadStartRegistration, } from './src/passkey/authenticate.js';
|
|
19
|
-
export { submitClassicForm } from './src/passkey/classic_form.js';
|
|
20
|
-
export { runPasskeyAssertion, runPasskeyRegistration } from './src/passkey/sudo.js';
|
|
21
|
-
export { usePasskeyAssertion } from './src/hooks/use_passkey_assertion.js';
|
|
22
|
-
export { usePasskeyRegistration } from './src/hooks/use_passkey_registration.js';
|
|
23
|
-
export { usePasswordStrength, heuristicScorer, } from './src/hooks/use_password_strength.js';
|
|
24
|
-
export { deriveInitials, currentUrl, buttonClass } from './src/utils.js';
|
|
25
|
-
export { interactionUrls, oauthRedirectUrl, OTP_CODE_FIELD } from './src/interaction/urls.js';
|
|
2
|
+
export { AuthkitClientError, createAuthkitClient, } from './src/client/client.js';
|
|
3
|
+
export { AuthkitClientProvider, createAuthkitQueryClient, useAuthkitClient, } from './src/client/context.js';
|
|
26
4
|
export { Authenticated, Guest } from './src/components/authenticated.js';
|
|
27
|
-
export { CanPermission } from './src/components/can_permission.js';
|
|
28
|
-
export { useCan, checkCan, invalidateCanCache } from './src/hooks/use_can.js';
|
|
29
|
-
export { SignInButton } from './src/components/sign_in_button.js';
|
|
30
|
-
export { SignOutButton } from './src/components/sign_out_button.js';
|
|
31
|
-
export { Avatar } from './src/components/avatar.js';
|
|
32
|
-
export { UserButton } from './src/components/user_button.js';
|
|
33
|
-
export { UserProfile } from './src/components/user_profile.js';
|
|
34
5
|
export { AuthorizedApps } from './src/components/authorized_apps.js';
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
6
|
+
export { Avatar } from './src/components/avatar.js';
|
|
7
|
+
export { CanPermission } from './src/components/can_permission.js';
|
|
37
8
|
export { InteractionForm } from './src/components/interaction_form.js';
|
|
9
|
+
export { KeyRotation } from './src/components/key_rotation.js';
|
|
38
10
|
export { MagicLinkButton } from './src/components/magic_link_button.js';
|
|
39
11
|
export { OAuthButton } from './src/components/oauth_button.js';
|
|
40
|
-
export { OrganizationSwitcher } from './src/components/organization_switcher.js';
|
|
41
12
|
export { OrganizationProfile } from './src/components/organization_profile.js';
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
13
|
+
export { OrganizationSwitcher } from './src/components/organization_switcher.js';
|
|
14
|
+
export { PasskeyButton } from './src/components/passkey_button.js';
|
|
15
|
+
export { PasswordStrengthMeter } from './src/components/password_strength_meter.js';
|
|
16
|
+
export { SignInButton } from './src/components/sign_in_button.js';
|
|
17
|
+
export { SignOutButton } from './src/components/sign_out_button.js';
|
|
18
|
+
export { UserButton } from './src/components/user_button.js';
|
|
19
|
+
export { UserProfile } from './src/components/user_profile.js';
|
|
20
|
+
export { AuthkitConfigContext, buildAuthUrl, DEFAULT_CONFIG, resolveConfig, useAuthkitConfig, } from './src/config.js';
|
|
21
|
+
export { useAuthorizedApps } from './src/hooks/use_authorized_apps.js';
|
|
22
|
+
export { checkCan, invalidateCanCache, useCan } from './src/hooks/use_can.js';
|
|
23
|
+
export { useOrgInvitations } from './src/hooks/use_org_invitations.js';
|
|
24
|
+
export { useOrganization } from './src/hooks/use_organization.js';
|
|
25
|
+
export { useOrganizations } from './src/hooks/use_organizations.js';
|
|
26
|
+
export { usePasskeyAssertion } from './src/hooks/use_passkey_assertion.js';
|
|
27
|
+
export { usePasskeyAutofill } from './src/hooks/use_passkey_autofill.js';
|
|
28
|
+
export { usePasskeyLogin } from './src/hooks/use_passkey_login.js';
|
|
29
|
+
export { usePasskeyRegistration } from './src/hooks/use_passkey_registration.js';
|
|
30
|
+
export { heuristicScorer, usePasswordStrength, } from './src/hooks/use_password_strength.js';
|
|
31
|
+
export { useProfile } from './src/hooks/use_profile.js';
|
|
32
|
+
export { jsonRequest, useResource } from './src/hooks/use_resource.js';
|
|
33
|
+
export { useSessions } from './src/hooks/use_sessions.js';
|
|
34
|
+
export { useSignIn } from './src/hooks/use_sign_in.js';
|
|
35
|
+
export { useSignOut } from './src/hooks/use_sign_out.js';
|
|
36
|
+
export { useSwitchOrganization } from './src/hooks/use_switch_organization.js';
|
|
37
|
+
export { useUser } from './src/hooks/use_user.js';
|
|
38
|
+
export { interactionUrls, OTP_CODE_FIELD, oauthRedirectUrl } from './src/interaction/urls.js';
|
|
39
|
+
export { authenticatePasskey, loadStartAuthentication, loadStartRegistration, registerPasskey, submitPasskeyVerification, } from './src/passkey/authenticate.js';
|
|
40
|
+
export { submitClassicForm } from './src/passkey/classic_form.js';
|
|
41
|
+
export { runPasskeyAssertion, runPasskeyRegistration } from './src/passkey/sudo.js';
|
|
42
|
+
export { AuthContext, AuthProvider } from './src/provider.js';
|
|
43
|
+
export { useAccountOrgInvitationsQueryOptions, useAccountOrgQueryOptions, useAccountOrgsQueryOptions, useAccountRevokeAllSessionsMutationOptions, useAccountSessionsQueryOptions, useAppsQueryOptions, useCancelEmailChangeMutationOptions, useChangePasswordMutationOptions, useCreateTokenMutationOptions, useEmailChangeMutationOptions, useLoginMethodsQueryOptions, useMeQueryOptions, useMfaQueryOptions, usePasskeysQueryOptions, useRemovePasskeyMutationOptions, useRevokeAppMutationOptions, useRevokeOtherSessionsMutationOptions, useRevokeSessionMutationOptions, useRevokeTokenMutationOptions, useSecurityQueryOptions, useTokensQueryOptions, useUpdateLoginMethodsMutationOptions, useUpdateProfileMutationOptions, } from './src/queries/account/index.js';
|
|
44
|
+
export { useAddOrgMemberMutationOptions, useAuditQueryOptions, useClientQueryOptions, useClientsQueryOptions, useCreateClientMutationOptions, useCreateOrgInvitationMutationOptions, useCreateOrgMutationOptions, useCreateRoleMutationOptions, useCreateUserMutationOptions, useDeleteClientMutationOptions, useDeleteOrgMutationOptions, useDeleteRoleMutationOptions, useDeleteUserMutationOptions, useDisableUserMutationOptions, useEnableUserMutationOptions, useImpersonationQueryOptions, useKeysQueryOptions, useOrgQueryOptions, useOrgsQueryOptions, useOverviewQueryOptions, useRegenerateClientSecretMutationOptions, useRemoveOrgMemberMutationOptions, useRemoveSettingMutationOptions, useResetPasswordMutationOptions, useRevokeAllSessionsMutationOptions, useRevokeOrgInvitationMutationOptions, useRevokeUserSessionsMutationOptions, useRolesQueryOptions, useRotateKeysMutationOptions, useSessionsQueryOptions, useSetSettingMutationOptions, useSettingsQueryOptions, useUpdateClientMutationOptions, useUpdateOrgMemberRoleMutationOptions, useUpdateOrgMutationOptions, useUpdateRoleMutationOptions, useUpdateUserMutationOptions, useUserQueryOptions, useUserSessionsQueryOptions, useUsersQueryOptions, } from './src/queries/admin/index.js';
|
|
46
45
|
export { authkitKeys } from './src/queries/keys.js';
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
46
|
+
export { hasAllGlobalRoles, hasAnyGlobalRole, hasGlobalRole, } from './src/roles.js';
|
|
47
|
+
export { useAuth } from './src/use_auth.js';
|
|
48
|
+
export { buttonClass, currentUrl, deriveInitials } from './src/utils.js';
|
|
@@ -6,7 +6,7 @@ export interface AuthkitProviderProps {
|
|
|
6
6
|
value?: AuthSharedProps['authkit'];
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare function AuthkitProvider({ config, value, children }: AuthkitProviderProps): import("react").FunctionComponentElement<import("react").ProviderProps<{
|
|
9
|
+
export declare function AuthkitProvider({ config, value, children }: AuthkitProviderProps): import("react").FunctionComponentElement<import("react").ProviderProps<import("./config.js").ResolvedAuthkitConfig>> | import("react").FunctionComponentElement<import("react").ProviderProps<{
|
|
10
10
|
user: import("./types.js").AuthUser | null;
|
|
11
11
|
globalRoles: string[];
|
|
12
|
-
} | undefined
|
|
12
|
+
} | undefined>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { AccountAppsResult, AccountLoginMethodsResult, AccountMe, AccountMfaStatus, AccountOrgDetail, AccountOrgInvitationsResult, AccountOrgsResult, AccountPasskeysResult, AccountSecurityOverview, AccountSessionsResult, AccountTokensResult, AdminClient, AdminClientListResult, AdminOrgDetail, AdminOrgEntry, AdminOrgInvitation, AdminOrgListResult, AdminOverview, AdminUser, AdminUserListResult, AuditListParams, AuditListResult, ChangePasswordInput, CreateClientInput, CreateOrgInput, CreateRoleInput, CreateTokenInput, CreateUserInput,
|
|
1
|
+
import type { AccountAppsResult, AccountLoginMethodsResult, AccountMe, AccountMfaStatus, AccountOrgDetail, AccountOrgInvitationsResult, AccountOrgsResult, AccountPasskeysResult, AccountSecurityOverview, AccountSessionsResult, AccountTokensResult, AdminClient, AdminClientListResult, AdminOrgDetail, AdminOrgEntry, AdminOrgInvitation, AdminOrgListResult, AdminOverview, AdminUser, AdminUserListResult, AuditListParams, AuditListResult, ChangePasswordInput, CreateClientInput, CreatedClientResult, CreatedPatResult, CreateOrgInput, CreateRoleInput, CreateTokenInput, CreateUserInput, EmailChangeResult, ImpersonationPanel, KeysRotateInput, KeysRotateResult, KeysStatus, OkResult, RegenerateSecretResult, RemovePasskeyResult, RequestEmailChangeInput, RevokeAllResult, RevokeAppResult, RevokeOthersResult, RevokeSessionResult, RevokeSessionsResult, RevokeTokenResult, RoleCatalogEntry, RoleListResult, SettingEntry, SettingListResult, UpdateClientInput, UpdateLoginMethodsResult, UpdateOrgInput, UpdateProfileInput, UpdateProfileResult, UpdateRoleInput, UpdateUserInput, UserLoginMethodsInput, UserSessionsResult } from './types.js';
|
|
2
2
|
export declare class AuthkitClientError extends Error {
|
|
3
3
|
readonly status: number;
|
|
4
4
|
readonly code?: string | undefined;
|
|
5
|
-
readonly body?: unknown
|
|
6
|
-
constructor(status: number, message: string, code?: string | undefined, body?: unknown
|
|
5
|
+
readonly body?: unknown;
|
|
6
|
+
constructor(status: number, message: string, code?: string | undefined, body?: unknown);
|
|
7
7
|
readonly isUnauthorized: boolean;
|
|
8
8
|
}
|
|
9
9
|
export interface AuthkitClientOptions {
|
|
@@ -32,7 +32,7 @@ declare class AuthkitClient {
|
|
|
32
32
|
readonly list: (params?: {
|
|
33
33
|
search?: string;
|
|
34
34
|
page?: number;
|
|
35
|
-
|
|
35
|
+
size?: number;
|
|
36
36
|
}) => Promise<AdminUserListResult>;
|
|
37
37
|
readonly get: (id: string) => Promise<AdminUser>;
|
|
38
38
|
readonly create: (data: CreateUserInput) => Promise<AdminUser & {
|
|
@@ -13,11 +13,14 @@ export interface AdminUser {
|
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
invited?: boolean;
|
|
15
15
|
}
|
|
16
|
+
export interface ListMeta {
|
|
17
|
+
page: number;
|
|
18
|
+
size: number;
|
|
19
|
+
total: number;
|
|
20
|
+
}
|
|
16
21
|
export interface AdminUserListResult {
|
|
22
|
+
meta: ListMeta;
|
|
17
23
|
data: AdminUser[];
|
|
18
|
-
total: number;
|
|
19
|
-
page: number;
|
|
20
|
-
limit: number;
|
|
21
24
|
}
|
|
22
25
|
export interface CreateUserInput {
|
|
23
26
|
email: string;
|
|
@@ -164,15 +167,13 @@ export interface AuditEventEntry {
|
|
|
164
167
|
createdAt: string;
|
|
165
168
|
}
|
|
166
169
|
export interface AuditListResult {
|
|
170
|
+
meta: ListMeta;
|
|
167
171
|
data: AuditEventEntry[];
|
|
168
|
-
total: number;
|
|
169
|
-
page: number;
|
|
170
|
-
limit: number;
|
|
171
172
|
}
|
|
172
173
|
export interface AuditListParams {
|
|
173
174
|
type?: string;
|
|
174
175
|
page?: number;
|
|
175
|
-
|
|
176
|
+
size?: number;
|
|
176
177
|
subject?: string;
|
|
177
178
|
}
|
|
178
179
|
export interface SettingEntry {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElement, Fragment } from 'react';
|
|
2
2
|
import { useCan } from '../hooks/use_can.js';
|
|
3
3
|
export function CanPermission({ children, permission, resource, loadingFallback = null, fallback = null, }) {
|
|
4
4
|
const { allowed, loading } = useCan(permission, resource);
|