@adonis-agora/authkit-react 0.20.1 → 0.22.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 +86 -84
- package/build/index.js +41 -40
- package/build/src/authkit_provider.d.ts +2 -2
- package/build/src/client/client.d.ts +23 -5
- package/build/src/client/client.js +19 -1
- package/build/src/client/types.d.ts +86 -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/passkey/json_registration.d.ts +8 -0
- package/build/src/passkey/json_registration.js +8 -0
- package/build/src/queries/account/index.d.ts +74 -1
- package/build/src/queries/account/index.js +99 -0
- package/build/src/queries/admin/index.d.ts +5 -5
- package/build/src/queries/keys.d.ts +49 -31
- package/build/src/queries/keys.js +18 -0
- package/package.json +13 -13
package/build/index.d.ts
CHANGED
|
@@ -1,92 +1,94 @@
|
|
|
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 { AcceptOrgInvitationResult, AccountAppEntry, AccountAppsResult, AccountCapabilities, AccountLoginMethodsResult, AccountMe, AccountMfaStatus, AccountOrgDetail, AccountOrgEntry, AccountOrgInvitationsResult, AccountOrgsResult, AccountPasskeysResult, AccountSecurityOverview, AccountSessionEntry, AccountSessionsResult, AccountTokensResult, ActivateOrgResult, AdminClient, AdminClientListResult, AdminGrantEntry, AdminOrgDetail, AdminOrgEntry, AdminOrgInvitation, AdminOrgListResult, AdminOrgMember, AdminOverview, AdminSessionEntry, AdminUser, AdminUserListResult, ApiErrorBody, AuditEventEntry, AuditListParams, AuditListResult, ChangePasswordInput, CreateAccountOrgInput, CreateClientInput, CreatedAccountOrgResult, CreatedClientResult, CreatedOrgInvitationResult, CreatedPatResult, CreateOrgInput, CreateRoleInput, CreateTokenInput, CreateUserInput, DailyPoint, DeactivateOrgResult, EmailChangeResult, ImpersonationPanel, InviteOrgMemberInput, KeysRotateInput, KeysRotateResult, KeysStatus, LeaveOrgResult, ListMeta, ManagedKeyInfo, MfaConfirmResult, MfaDisableResult, MfaEnrollResult, MfaRecoveryCodesResult, OkResult, PasskeyRegistrationOptions, PasskeySummaryEntry, PatEntry, RegenerateSecretResult, RemoveOrgMemberResult, RemovePasskeyResult, RequestEmailChangeInput, RevokeAllResult, RevokeAppResult, RevokeOrgInvitationResult, RevokeOthersResult, RevokeSessionResult, RevokeSessionsResult, RevokeTokenResult, RoleCatalogEntry, RoleListResult, SettingEntry, SettingListResult, UpdateClientInput, UpdateLoginMethodsResult, UpdateOrgInput, UpdateOrgMemberRoleResult, 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 { RegisterPasskeyJsonDeps } from './src/passkey/json_registration.js';
|
|
83
|
+
export { registerPasskeyJson } from './src/passkey/json_registration.js';
|
|
84
|
+
export type { RunPasskeyAssertionDeps, RunPasskeyFlowOptions, RunPasskeyRegistrationDeps, } from './src/passkey/sudo.js';
|
|
85
|
+
export { runPasskeyAssertion, runPasskeyRegistration } from './src/passkey/sudo.js';
|
|
86
|
+
export type { AuthProviderProps } from './src/provider.js';
|
|
87
|
+
export { AuthContext, AuthProvider } from './src/provider.js';
|
|
88
|
+
export { useAccountAcceptOrgInvitationMutationOptions, useAccountActivateOrgMutationOptions, useAccountCreateOrgMutationOptions, useAccountDeactivateOrgMutationOptions, useAccountInviteOrgMemberMutationOptions, useAccountLeaveOrgMutationOptions, useAccountOrgInvitationsQueryOptions, useAccountOrgQueryOptions, useAccountOrgsQueryOptions, useAccountRemoveOrgMemberMutationOptions, useAccountRevokeAllSessionsMutationOptions, useAccountRevokeOrgInvitationMutationOptions, useAccountSessionsQueryOptions, useAccountUpdateOrgMemberRoleMutationOptions, useAppsQueryOptions, useCancelEmailChangeMutationOptions, useChangePasswordMutationOptions, useConfirmTotpMutationOptions, useCreateTokenMutationOptions, useDisableTotpMutationOptions, useEmailChangeMutationOptions, useEnrollTotpMutationOptions, useLoginMethodsQueryOptions, useMeQueryOptions, useMfaQueryOptions, usePasskeysQueryOptions, useRegenerateRecoveryCodesMutationOptions, useRegisterPasskeyMutationOptions, useRemovePasskeyMutationOptions, useRevokeAppMutationOptions, useRevokeOtherSessionsMutationOptions, useRevokeSessionMutationOptions, useRevokeTokenMutationOptions, useSecurityQueryOptions, useTokensQueryOptions, useUpdateLoginMethodsMutationOptions, useUpdateProfileMutationOptions, } from './src/queries/account/index.js';
|
|
89
|
+
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
90
|
export { authkitKeys } from './src/queries/keys.js';
|
|
91
|
-
export {
|
|
92
|
-
export {
|
|
91
|
+
export { hasAllGlobalRoles, hasAnyGlobalRole, hasGlobalRole, } from './src/roles.js';
|
|
92
|
+
export type { AuthSharedProps, AuthState, AuthUser } from './src/types.js';
|
|
93
|
+
export { useAuth } from './src/use_auth.js';
|
|
94
|
+
export { buttonClass, currentUrl, deriveInitials } from './src/utils.js';
|
package/build/index.js
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
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 { registerPasskeyJson } from './src/passkey/json_registration.js';
|
|
42
|
+
export { runPasskeyAssertion, runPasskeyRegistration } from './src/passkey/sudo.js';
|
|
43
|
+
export { AuthContext, AuthProvider } from './src/provider.js';
|
|
44
|
+
export { useAccountAcceptOrgInvitationMutationOptions, useAccountActivateOrgMutationOptions, useAccountCreateOrgMutationOptions, useAccountDeactivateOrgMutationOptions, useAccountInviteOrgMemberMutationOptions, useAccountLeaveOrgMutationOptions, useAccountOrgInvitationsQueryOptions, useAccountOrgQueryOptions, useAccountOrgsQueryOptions, useAccountRemoveOrgMemberMutationOptions, useAccountRevokeAllSessionsMutationOptions, useAccountRevokeOrgInvitationMutationOptions, useAccountSessionsQueryOptions, useAccountUpdateOrgMemberRoleMutationOptions, useAppsQueryOptions, useCancelEmailChangeMutationOptions, useChangePasswordMutationOptions, useConfirmTotpMutationOptions, useCreateTokenMutationOptions, useDisableTotpMutationOptions, useEmailChangeMutationOptions, useEnrollTotpMutationOptions, useLoginMethodsQueryOptions, useMeQueryOptions, useMfaQueryOptions, usePasskeysQueryOptions, useRegenerateRecoveryCodesMutationOptions, useRegisterPasskeyMutationOptions, useRemovePasskeyMutationOptions, useRevokeAppMutationOptions, useRevokeOtherSessionsMutationOptions, useRevokeSessionMutationOptions, useRevokeTokenMutationOptions, useSecurityQueryOptions, useTokensQueryOptions, useUpdateLoginMethodsMutationOptions, useUpdateProfileMutationOptions, } from './src/queries/account/index.js';
|
|
45
|
+
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
46
|
export { authkitKeys } from './src/queries/keys.js';
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
47
|
+
export { hasAllGlobalRoles, hasAnyGlobalRole, hasGlobalRole, } from './src/roles.js';
|
|
48
|
+
export { useAuth } from './src/use_auth.js';
|
|
49
|
+
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 { AcceptOrgInvitationResult, AccountAppsResult, AccountLoginMethodsResult, AccountMe, AccountMfaStatus, AccountOrgDetail, AccountOrgInvitationsResult, AccountOrgsResult, AccountPasskeysResult, AccountSecurityOverview, AccountSessionsResult, AccountTokensResult, ActivateOrgResult, AdminClient, AdminClientListResult, AdminOrgDetail, AdminOrgEntry, AdminOrgInvitation, AdminOrgListResult, AdminOverview, AdminUser, AdminUserListResult, AuditListParams, AuditListResult, ChangePasswordInput, CreateAccountOrgInput, CreateClientInput, CreatedAccountOrgResult, CreatedClientResult, CreatedOrgInvitationResult, CreatedPatResult, CreateOrgInput, CreateRoleInput, CreateTokenInput, CreateUserInput, DeactivateOrgResult, EmailChangeResult, ImpersonationPanel, InviteOrgMemberInput, KeysRotateInput, KeysRotateResult, KeysStatus, LeaveOrgResult, MfaConfirmResult, MfaDisableResult, MfaEnrollResult, MfaRecoveryCodesResult, OkResult, PasskeyRegistrationOptions, RegenerateSecretResult, RemoveOrgMemberResult, RemovePasskeyResult, RequestEmailChangeInput, RevokeAllResult, RevokeAppResult, RevokeOrgInvitationResult, RevokeOthersResult, RevokeSessionResult, RevokeSessionsResult, RevokeTokenResult, RoleCatalogEntry, RoleListResult, SettingEntry, SettingListResult, UpdateClientInput, UpdateLoginMethodsResult, UpdateOrgInput, UpdateOrgMemberRoleResult, 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 & {
|
|
@@ -151,7 +151,16 @@ declare class AuthkitClient {
|
|
|
151
151
|
readonly list: () => Promise<AccountAppsResult>;
|
|
152
152
|
readonly revoke: (clientId: string) => Promise<RevokeAppResult>;
|
|
153
153
|
};
|
|
154
|
-
readonly mfa: () => Promise<AccountMfaStatus
|
|
154
|
+
readonly mfa: (() => Promise<AccountMfaStatus>) & {
|
|
155
|
+
enroll: () => Promise<MfaEnrollResult>;
|
|
156
|
+
confirm: (code: string) => Promise<MfaConfirmResult>;
|
|
157
|
+
disable: () => Promise<MfaDisableResult>;
|
|
158
|
+
regenerateRecoveryCodes: () => Promise<MfaRecoveryCodesResult>;
|
|
159
|
+
passkeys: {
|
|
160
|
+
options: () => Promise<PasskeyRegistrationOptions>;
|
|
161
|
+
verify: (response: unknown) => Promise<OkResult>;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
155
164
|
readonly loginMethods: {
|
|
156
165
|
readonly get: () => Promise<AccountLoginMethodsResult>;
|
|
157
166
|
readonly update: (data: {
|
|
@@ -171,6 +180,15 @@ declare class AuthkitClient {
|
|
|
171
180
|
readonly list: () => Promise<AccountOrgsResult>;
|
|
172
181
|
readonly invitations: () => Promise<AccountOrgInvitationsResult>;
|
|
173
182
|
readonly get: (id: string) => Promise<AccountOrgDetail>;
|
|
183
|
+
readonly create: (data: CreateAccountOrgInput) => Promise<CreatedAccountOrgResult>;
|
|
184
|
+
readonly activate: (id: string) => Promise<ActivateOrgResult>;
|
|
185
|
+
readonly deactivate: () => Promise<DeactivateOrgResult>;
|
|
186
|
+
readonly leave: (id: string) => Promise<LeaveOrgResult>;
|
|
187
|
+
readonly invite: (orgId: string, data: InviteOrgMemberInput) => Promise<CreatedOrgInvitationResult>;
|
|
188
|
+
readonly revokeInvitation: (orgId: string, invitationId: string) => Promise<RevokeOrgInvitationResult>;
|
|
189
|
+
readonly updateMemberRole: (orgId: string, accountId: string, role: string) => Promise<UpdateOrgMemberRoleResult>;
|
|
190
|
+
readonly removeMember: (orgId: string, accountId: string) => Promise<RemoveOrgMemberResult>;
|
|
191
|
+
readonly acceptInvitation: (token: string) => Promise<AcceptOrgInvitationResult>;
|
|
174
192
|
};
|
|
175
193
|
};
|
|
176
194
|
}
|
|
@@ -198,7 +198,16 @@ class AuthkitClient {
|
|
|
198
198
|
list: () => this.get(this.a('/apps')),
|
|
199
199
|
revoke: (clientId) => this.delete(this.a(`/apps/${encodeURIComponent(clientId)}`)),
|
|
200
200
|
},
|
|
201
|
-
mfa: () => this.get(this.a('/mfa')),
|
|
201
|
+
mfa: Object.assign(() => this.get(this.a('/mfa')), {
|
|
202
|
+
enroll: () => this.post(this.a('/mfa/totp/enroll')),
|
|
203
|
+
confirm: (code) => this.post(this.a('/mfa/totp/confirm'), { code }),
|
|
204
|
+
disable: () => this.post(this.a('/mfa/totp/disable')),
|
|
205
|
+
regenerateRecoveryCodes: () => this.post(this.a('/mfa/recovery-codes')),
|
|
206
|
+
passkeys: {
|
|
207
|
+
options: () => this.post(this.a('/mfa/passkeys/options')),
|
|
208
|
+
verify: (response) => this.post(this.a('/mfa/passkeys/verify'), { response }),
|
|
209
|
+
},
|
|
210
|
+
}),
|
|
202
211
|
loginMethods: {
|
|
203
212
|
get: () => this.get(this.a('/login-methods')),
|
|
204
213
|
update: (data) => this.put(this.a('/login-methods'), data),
|
|
@@ -216,6 +225,15 @@ class AuthkitClient {
|
|
|
216
225
|
list: () => this.get(this.a('/orgs')),
|
|
217
226
|
invitations: () => this.get(this.a('/orgs/invitations')),
|
|
218
227
|
get: (id) => this.get(this.a(`/orgs/${encodeURIComponent(id)}`)),
|
|
228
|
+
create: (data) => this.post(this.a('/orgs'), data),
|
|
229
|
+
activate: (id) => this.post(this.a(`/orgs/${encodeURIComponent(id)}/activate`)),
|
|
230
|
+
deactivate: () => this.post(this.a('/orgs/deactivate')),
|
|
231
|
+
leave: (id) => this.post(this.a(`/orgs/${encodeURIComponent(id)}/leave`)),
|
|
232
|
+
invite: (orgId, data) => this.post(this.a(`/orgs/${encodeURIComponent(orgId)}/invitations`), data),
|
|
233
|
+
revokeInvitation: (orgId, invitationId) => this.delete(this.a(`/orgs/${encodeURIComponent(orgId)}/invitations/${encodeURIComponent(invitationId)}`)),
|
|
234
|
+
updateMemberRole: (orgId, accountId, role) => this.patch(this.a(`/orgs/${encodeURIComponent(orgId)}/members/${encodeURIComponent(accountId)}`), { role }),
|
|
235
|
+
removeMember: (orgId, accountId) => this.delete(this.a(`/orgs/${encodeURIComponent(orgId)}/members/${encodeURIComponent(accountId)}`)),
|
|
236
|
+
acceptInvitation: (token) => this.post(this.a(`/orgs/invitations/${encodeURIComponent(token)}/accept`)),
|
|
219
237
|
},
|
|
220
238
|
};
|
|
221
239
|
}
|
|
@@ -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 {
|
|
@@ -332,8 +333,29 @@ export interface AccountMfaStatus {
|
|
|
332
333
|
};
|
|
333
334
|
recovery: {
|
|
334
335
|
available: boolean;
|
|
336
|
+
remaining: number | null;
|
|
337
|
+
regenerable: boolean;
|
|
335
338
|
};
|
|
336
339
|
}
|
|
340
|
+
export interface MfaEnrollResult {
|
|
341
|
+
secret: string;
|
|
342
|
+
otpauthUri: string;
|
|
343
|
+
qrDataUrl: string;
|
|
344
|
+
}
|
|
345
|
+
export interface MfaConfirmResult {
|
|
346
|
+
ok: boolean;
|
|
347
|
+
enabled: boolean;
|
|
348
|
+
recoveryCodes: string[];
|
|
349
|
+
}
|
|
350
|
+
export interface MfaDisableResult {
|
|
351
|
+
ok: boolean;
|
|
352
|
+
enabled: boolean;
|
|
353
|
+
}
|
|
354
|
+
export interface MfaRecoveryCodesResult {
|
|
355
|
+
ok: boolean;
|
|
356
|
+
recoveryCodes: string[];
|
|
357
|
+
}
|
|
358
|
+
export type PasskeyRegistrationOptions = Record<string, unknown>;
|
|
337
359
|
export interface AccountPasskeysResult {
|
|
338
360
|
supported: boolean;
|
|
339
361
|
passkeys: PasskeySummaryEntry[];
|
|
@@ -428,6 +450,63 @@ export interface AccountOrgInvitationsResult {
|
|
|
428
450
|
createdAt: string;
|
|
429
451
|
}>;
|
|
430
452
|
}
|
|
453
|
+
export interface CreateAccountOrgInput {
|
|
454
|
+
name: string;
|
|
455
|
+
slug: string;
|
|
456
|
+
}
|
|
457
|
+
export interface CreatedAccountOrgResult {
|
|
458
|
+
id: string;
|
|
459
|
+
name: string;
|
|
460
|
+
slug: string;
|
|
461
|
+
logoUrl: string | null;
|
|
462
|
+
role: string;
|
|
463
|
+
}
|
|
464
|
+
export interface ActivateOrgResult {
|
|
465
|
+
ok: boolean;
|
|
466
|
+
activeOrgId: string;
|
|
467
|
+
slug: string;
|
|
468
|
+
role: string;
|
|
469
|
+
}
|
|
470
|
+
export interface DeactivateOrgResult {
|
|
471
|
+
ok: boolean;
|
|
472
|
+
activeOrgId: null;
|
|
473
|
+
}
|
|
474
|
+
export interface LeaveOrgResult {
|
|
475
|
+
ok: boolean;
|
|
476
|
+
orgId: string;
|
|
477
|
+
}
|
|
478
|
+
export interface InviteOrgMemberInput {
|
|
479
|
+
email: string;
|
|
480
|
+
role?: string;
|
|
481
|
+
}
|
|
482
|
+
export interface CreatedOrgInvitationResult {
|
|
483
|
+
id: string;
|
|
484
|
+
organizationId: string;
|
|
485
|
+
email: string;
|
|
486
|
+
role: string;
|
|
487
|
+
expiresAt: string | null;
|
|
488
|
+
createdAt: string | null;
|
|
489
|
+
}
|
|
490
|
+
export interface RevokeOrgInvitationResult {
|
|
491
|
+
ok: boolean;
|
|
492
|
+
revoked: string;
|
|
493
|
+
}
|
|
494
|
+
export interface UpdateOrgMemberRoleResult {
|
|
495
|
+
ok: boolean;
|
|
496
|
+
orgId: string;
|
|
497
|
+
accountId: string;
|
|
498
|
+
role: string;
|
|
499
|
+
}
|
|
500
|
+
export interface RemoveOrgMemberResult {
|
|
501
|
+
ok: boolean;
|
|
502
|
+
orgId: string;
|
|
503
|
+
accountId: string;
|
|
504
|
+
}
|
|
505
|
+
export interface AcceptOrgInvitationResult {
|
|
506
|
+
ok: boolean;
|
|
507
|
+
organizationId: string;
|
|
508
|
+
role: string;
|
|
509
|
+
}
|
|
431
510
|
export interface ManagedKeyInfo {
|
|
432
511
|
kid: string;
|
|
433
512
|
alg: string;
|
|
@@ -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);
|