@contember/react-client-tenant 1.3.0-alpha.26 → 2.0.0-alpha.1
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/development/components/IdentityProvider.cjs +38 -0
- package/dist/development/components/IdentityProvider.cjs.map +1 -0
- package/dist/development/components/IdentityProvider.js +38 -0
- package/dist/development/components/IdentityProvider.js.map +1 -0
- package/dist/development/components/IdentityState.cjs +14 -0
- package/dist/development/components/IdentityState.cjs.map +1 -0
- package/dist/development/components/IdentityState.js +14 -0
- package/dist/development/components/IdentityState.js.map +1 -0
- package/dist/development/components/forms/ChangeMyPasswordForm.cjs +59 -0
- package/dist/development/components/forms/ChangeMyPasswordForm.cjs.map +1 -0
- package/dist/development/components/forms/ChangeMyPasswordForm.js +59 -0
- package/dist/development/components/forms/ChangeMyPasswordForm.js.map +1 -0
- package/dist/development/components/forms/CreateApiKeyForm.cjs +57 -0
- package/dist/development/components/forms/CreateApiKeyForm.cjs.map +1 -0
- package/dist/development/components/forms/CreateApiKeyForm.js +57 -0
- package/dist/development/components/forms/CreateApiKeyForm.js.map +1 -0
- package/dist/development/components/forms/CreateSessionTokenForm.cjs +50 -0
- package/dist/development/components/forms/CreateSessionTokenForm.cjs.map +1 -0
- package/dist/development/components/forms/CreateSessionTokenForm.js +50 -0
- package/dist/development/components/forms/CreateSessionTokenForm.js.map +1 -0
- package/dist/development/components/forms/InviteForm.cjs +62 -0
- package/dist/development/components/forms/InviteForm.cjs.map +1 -0
- package/dist/development/components/forms/InviteForm.js +62 -0
- package/dist/development/components/forms/InviteForm.js.map +1 -0
- package/dist/development/components/forms/LoginForm.cjs +85 -0
- package/dist/development/components/forms/LoginForm.cjs.map +1 -0
- package/dist/development/components/forms/LoginForm.js +85 -0
- package/dist/development/components/forms/LoginForm.js.map +1 -0
- package/dist/development/components/forms/OtpConfirmForm.cjs +49 -0
- package/dist/development/components/forms/OtpConfirmForm.cjs.map +1 -0
- package/dist/development/components/forms/OtpConfirmForm.js +49 -0
- package/dist/development/components/forms/OtpConfirmForm.js.map +1 -0
- package/dist/development/components/forms/OtpPrepareForm.cjs +36 -0
- package/dist/development/components/forms/OtpPrepareForm.cjs.map +1 -0
- package/dist/development/components/forms/OtpPrepareForm.js +36 -0
- package/dist/development/components/forms/OtpPrepareForm.js.map +1 -0
- package/dist/development/components/forms/PasswordResetForm.cjs +62 -0
- package/dist/development/components/forms/PasswordResetForm.cjs.map +1 -0
- package/dist/development/components/forms/PasswordResetForm.js +62 -0
- package/dist/development/components/forms/PasswordResetForm.js.map +1 -0
- package/dist/development/components/forms/PasswordResetRequestForm.cjs +49 -0
- package/dist/development/components/forms/PasswordResetRequestForm.cjs.map +1 -0
- package/dist/development/components/forms/PasswordResetRequestForm.js +49 -0
- package/dist/development/components/forms/PasswordResetRequestForm.js.map +1 -0
- package/dist/development/components/forms/TenantForm.cjs +91 -0
- package/dist/development/components/forms/TenantForm.cjs.map +1 -0
- package/dist/development/components/forms/TenantForm.js +91 -0
- package/dist/development/components/forms/TenantForm.js.map +1 -0
- package/dist/development/components/forms/UpdateProjectMemberForm.cjs +64 -0
- package/dist/development/components/forms/UpdateProjectMemberForm.cjs.map +1 -0
- package/dist/development/components/forms/UpdateProjectMemberForm.js +64 -0
- package/dist/development/components/forms/UpdateProjectMemberForm.js.map +1 -0
- package/dist/development/components/idp/IDP.cjs +56 -0
- package/dist/development/components/idp/IDP.cjs.map +1 -0
- package/dist/development/components/idp/IDP.js +56 -0
- package/dist/development/components/idp/IDP.js.map +1 -0
- package/dist/development/components/idp/IDPInitTrigger.cjs +16 -0
- package/dist/development/components/idp/IDPInitTrigger.cjs.map +1 -0
- package/dist/development/components/idp/IDPInitTrigger.js +16 -0
- package/dist/development/components/idp/IDPInitTrigger.js.map +1 -0
- package/dist/development/components/idp/IDPState.cjs +14 -0
- package/dist/development/components/idp/IDPState.cjs.map +1 -0
- package/dist/development/components/idp/IDPState.js +14 -0
- package/dist/development/components/idp/IDPState.js.map +1 -0
- package/dist/development/components/triggers/DisableOtpTrigger.cjs +32 -0
- package/dist/development/components/triggers/DisableOtpTrigger.cjs.map +1 -0
- package/dist/development/components/triggers/DisableOtpTrigger.js +32 -0
- package/dist/development/components/triggers/DisableOtpTrigger.js.map +1 -0
- package/dist/development/components/triggers/LogoutTrigger.cjs +16 -0
- package/dist/development/components/triggers/LogoutTrigger.cjs.map +1 -0
- package/dist/development/components/triggers/LogoutTrigger.js +16 -0
- package/dist/development/components/triggers/LogoutTrigger.js.map +1 -0
- package/dist/development/components/triggers/RemoveProjectMemberTrigger.cjs +17 -0
- package/dist/development/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -0
- package/dist/development/components/triggers/RemoveProjectMemberTrigger.js +17 -0
- package/dist/development/components/triggers/RemoveProjectMemberTrigger.js.map +1 -0
- package/dist/development/components/triggers/TenantActionTrigger.cjs +37 -0
- package/dist/development/components/triggers/TenantActionTrigger.cjs.map +1 -0
- package/dist/development/components/triggers/TenantActionTrigger.js +37 -0
- package/dist/development/components/triggers/TenantActionTrigger.js.map +1 -0
- package/dist/development/contexts.cjs +34 -0
- package/dist/development/contexts.cjs.map +1 -0
- package/dist/development/contexts.js +34 -0
- package/dist/development/contexts.js.map +1 -0
- package/dist/development/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs +30 -0
- package/dist/development/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/apiKey/useCreateApiKeyMutation.js +13 -0
- package/dist/development/hooks/mutations/apiKey/useCreateApiKeyMutation.js.map +1 -0
- package/dist/development/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs +30 -0
- package/dist/development/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js +13 -0
- package/dist/development/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js.map +1 -0
- package/dist/development/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs +30 -0
- package/dist/development/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/apiKey/useCreateSessionTokenMutation.js +13 -0
- package/dist/development/hooks/mutations/apiKey/useCreateSessionTokenMutation.js.map +1 -0
- package/dist/development/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs +29 -0
- package/dist/development/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/apiKey/useDisableApiKeyMutation.js +12 -0
- package/dist/development/hooks/mutations/apiKey/useDisableApiKeyMutation.js.map +1 -0
- package/dist/development/hooks/mutations/auth/useChangeMyPasswordMutation.cjs +29 -0
- package/dist/development/hooks/mutations/auth/useChangeMyPasswordMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/auth/useChangeMyPasswordMutation.js +12 -0
- package/dist/development/hooks/mutations/auth/useChangeMyPasswordMutation.js.map +1 -0
- package/dist/development/hooks/mutations/auth/useSignInMutation.cjs +33 -0
- package/dist/development/hooks/mutations/auth/useSignInMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/auth/useSignInMutation.js +16 -0
- package/dist/development/hooks/mutations/auth/useSignInMutation.js.map +1 -0
- package/dist/development/hooks/mutations/auth/useSignOutMutation.cjs +29 -0
- package/dist/development/hooks/mutations/auth/useSignOutMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/auth/useSignOutMutation.js +12 -0
- package/dist/development/hooks/mutations/auth/useSignOutMutation.js.map +1 -0
- package/dist/development/hooks/mutations/idp/useInitSignInIDPMutation.cjs +31 -0
- package/dist/development/hooks/mutations/idp/useInitSignInIDPMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/idp/useInitSignInIDPMutation.js +14 -0
- package/dist/development/hooks/mutations/idp/useInitSignInIDPMutation.js.map +1 -0
- package/dist/development/hooks/mutations/idp/useSignInIdpMutation.cjs +33 -0
- package/dist/development/hooks/mutations/idp/useSignInIdpMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/idp/useSignInIdpMutation.js +16 -0
- package/dist/development/hooks/mutations/idp/useSignInIdpMutation.js.map +1 -0
- package/dist/development/hooks/mutations/invite/useInviteMutation.cjs +30 -0
- package/dist/development/hooks/mutations/invite/useInviteMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/invite/useInviteMutation.js +13 -0
- package/dist/development/hooks/mutations/invite/useInviteMutation.js.map +1 -0
- package/dist/development/hooks/mutations/memberships/useAddProjectMemberMutation.cjs +29 -0
- package/dist/development/hooks/mutations/memberships/useAddProjectMemberMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/memberships/useAddProjectMemberMutation.js +12 -0
- package/dist/development/hooks/mutations/memberships/useAddProjectMemberMutation.js.map +1 -0
- package/dist/development/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs +29 -0
- package/dist/development/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/memberships/useRemoveProjectMemberMutation.js +12 -0
- package/dist/development/hooks/mutations/memberships/useRemoveProjectMemberMutation.js.map +1 -0
- package/dist/development/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs +29 -0
- package/dist/development/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/memberships/useUpdateProjectMemberMutation.js +12 -0
- package/dist/development/hooks/mutations/memberships/useUpdateProjectMemberMutation.js.map +1 -0
- package/dist/development/hooks/mutations/otp/useConfirmOtpMutation.cjs +29 -0
- package/dist/development/hooks/mutations/otp/useConfirmOtpMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/otp/useConfirmOtpMutation.js +12 -0
- package/dist/development/hooks/mutations/otp/useConfirmOtpMutation.js.map +1 -0
- package/dist/development/hooks/mutations/otp/useDisableOtpMutation.cjs +29 -0
- package/dist/development/hooks/mutations/otp/useDisableOtpMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/otp/useDisableOtpMutation.js +12 -0
- package/dist/development/hooks/mutations/otp/useDisableOtpMutation.js.map +1 -0
- package/dist/development/hooks/mutations/otp/usePrepareOtpMutation.cjs +30 -0
- package/dist/development/hooks/mutations/otp/usePrepareOtpMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/otp/usePrepareOtpMutation.js +13 -0
- package/dist/development/hooks/mutations/otp/usePrepareOtpMutation.js.map +1 -0
- package/dist/development/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs +32 -0
- package/dist/development/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js +15 -0
- package/dist/development/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js.map +1 -0
- package/dist/development/hooks/mutations/passwordReset/useResetPasswordMutation.cjs +32 -0
- package/dist/development/hooks/mutations/passwordReset/useResetPasswordMutation.cjs.map +1 -0
- package/dist/development/hooks/mutations/passwordReset/useResetPasswordMutation.js +15 -0
- package/dist/development/hooks/mutations/passwordReset/useResetPasswordMutation.js.map +1 -0
- package/dist/development/hooks/queries/useMeQuery.cjs +33 -0
- package/dist/development/hooks/queries/useMeQuery.cjs.map +1 -0
- package/dist/development/hooks/queries/useMeQuery.js +16 -0
- package/dist/development/hooks/queries/useMeQuery.js.map +1 -0
- package/dist/development/hooks/queries/useProjectMembersQuery.cjs +47 -0
- package/dist/development/hooks/queries/useProjectMembersQuery.cjs.map +1 -0
- package/dist/development/hooks/queries/useProjectMembersQuery.js +30 -0
- package/dist/development/hooks/queries/useProjectMembersQuery.js.map +1 -0
- package/dist/development/hooks/queries/useProjectMembershipsQuery.cjs +34 -0
- package/dist/development/hooks/queries/useProjectMembershipsQuery.cjs.map +1 -0
- package/dist/development/hooks/queries/useProjectMembershipsQuery.js +17 -0
- package/dist/development/hooks/queries/useProjectMembershipsQuery.js.map +1 -0
- package/dist/development/hooks/queries/useProjectRolesDefinitionQuery.cjs +36 -0
- package/dist/development/hooks/queries/useProjectRolesDefinitionQuery.cjs.map +1 -0
- package/dist/development/hooks/queries/useProjectRolesDefinitionQuery.js +19 -0
- package/dist/development/hooks/queries/useProjectRolesDefinitionQuery.js.map +1 -0
- package/dist/development/hooks/useFetchIdentity.cjs +52 -0
- package/dist/development/hooks/useFetchIdentity.cjs.map +1 -0
- package/dist/development/hooks/useFetchIdentity.js +52 -0
- package/dist/development/hooks/useFetchIdentity.js.map +1 -0
- package/dist/development/hooks/useLogout.cjs +10 -0
- package/dist/development/hooks/useLogout.cjs.map +1 -0
- package/dist/development/hooks/useLogout.js +10 -0
- package/dist/development/hooks/useLogout.js.map +1 -0
- package/dist/development/hooks/useTenantApi.cjs +11 -4
- package/dist/development/hooks/useTenantApi.cjs.map +1 -1
- package/dist/development/hooks/useTenantApi.js +12 -5
- package/dist/development/hooks/useTenantApi.js.map +1 -1
- package/dist/development/hooks/useTenantMutation.cjs +33 -0
- package/dist/development/hooks/useTenantMutation.cjs.map +1 -0
- package/dist/development/hooks/useTenantMutation.js +33 -0
- package/dist/development/hooks/useTenantMutation.js.map +1 -0
- package/dist/development/hooks/useTenantQueryLoader.cjs +36 -0
- package/dist/development/hooks/useTenantQueryLoader.cjs.map +1 -0
- package/dist/development/hooks/useTenantQueryLoader.js +36 -0
- package/dist/development/hooks/useTenantQueryLoader.js.map +1 -0
- package/dist/development/index.cjs +130 -0
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +132 -2
- package/dist/development/index.js.map +1 -1
- package/dist/development/internal/hooks/useHandleIDPResponse.cjs +51 -0
- package/dist/development/internal/hooks/useHandleIDPResponse.cjs.map +1 -0
- package/dist/development/internal/hooks/useHandleIDPResponse.js +51 -0
- package/dist/development/internal/hooks/useHandleIDPResponse.js.map +1 -0
- package/dist/development/internal/hooks/useIDPAutoInit.cjs +19 -0
- package/dist/development/internal/hooks/useIDPAutoInit.cjs.map +1 -0
- package/dist/development/internal/hooks/useIDPAutoInit.js +19 -0
- package/dist/development/internal/hooks/useIDPAutoInit.js.map +1 -0
- package/dist/development/internal/hooks/useIDPStateStore.cjs +19 -0
- package/dist/development/internal/hooks/useIDPStateStore.cjs.map +1 -0
- package/dist/development/internal/hooks/useIDPStateStore.js +19 -0
- package/dist/development/internal/hooks/useIDPStateStore.js.map +1 -0
- package/dist/development/internal/hooks/useInitIDPRedirect.cjs +44 -0
- package/dist/development/internal/hooks/useInitIDPRedirect.cjs.map +1 -0
- package/dist/development/internal/hooks/useInitIDPRedirect.js +44 -0
- package/dist/development/internal/hooks/useInitIDPRedirect.js.map +1 -0
- package/dist/development/internal/hooks/useLogoutInternal.cjs +35 -0
- package/dist/development/internal/hooks/useLogoutInternal.cjs.map +1 -0
- package/dist/development/internal/hooks/useLogoutInternal.js +35 -0
- package/dist/development/internal/hooks/useLogoutInternal.js.map +1 -0
- package/dist/development/internal/hooks/useRedirectToBacklink.cjs +31 -0
- package/dist/development/internal/hooks/useRedirectToBacklink.cjs.map +1 -0
- package/dist/development/internal/hooks/useRedirectToBacklink.js +31 -0
- package/dist/development/internal/hooks/useRedirectToBacklink.js.map +1 -0
- package/dist/development/internal/utils/getBaseHref.cjs +8 -0
- package/dist/development/internal/utils/getBaseHref.cjs.map +1 -0
- package/dist/development/internal/utils/getBaseHref.js +8 -0
- package/dist/development/internal/utils/getBaseHref.js.map +1 -0
- package/dist/production/components/IdentityProvider.cjs +26 -0
- package/dist/production/components/IdentityProvider.cjs.map +1 -0
- package/dist/production/components/IdentityProvider.js +26 -0
- package/dist/production/components/IdentityProvider.js.map +1 -0
- package/dist/production/components/IdentityState.cjs +10 -0
- package/dist/production/components/IdentityState.cjs.map +1 -0
- package/dist/production/components/IdentityState.js +10 -0
- package/dist/production/components/IdentityState.js.map +1 -0
- package/dist/production/components/forms/ChangeMyPasswordForm.cjs +51 -0
- package/dist/production/components/forms/ChangeMyPasswordForm.cjs.map +1 -0
- package/dist/production/components/forms/ChangeMyPasswordForm.js +51 -0
- package/dist/production/components/forms/ChangeMyPasswordForm.js.map +1 -0
- package/dist/production/components/forms/CreateApiKeyForm.cjs +49 -0
- package/dist/production/components/forms/CreateApiKeyForm.cjs.map +1 -0
- package/dist/production/components/forms/CreateApiKeyForm.js +49 -0
- package/dist/production/components/forms/CreateApiKeyForm.js.map +1 -0
- package/dist/production/components/forms/CreateSessionTokenForm.cjs +42 -0
- package/dist/production/components/forms/CreateSessionTokenForm.cjs.map +1 -0
- package/dist/production/components/forms/CreateSessionTokenForm.js +42 -0
- package/dist/production/components/forms/CreateSessionTokenForm.js.map +1 -0
- package/dist/production/components/forms/InviteForm.cjs +54 -0
- package/dist/production/components/forms/InviteForm.cjs.map +1 -0
- package/dist/production/components/forms/InviteForm.js +54 -0
- package/dist/production/components/forms/InviteForm.js.map +1 -0
- package/dist/production/components/forms/LoginForm.cjs +77 -0
- package/dist/production/components/forms/LoginForm.cjs.map +1 -0
- package/dist/production/components/forms/LoginForm.js +77 -0
- package/dist/production/components/forms/LoginForm.js.map +1 -0
- package/dist/production/components/forms/OtpConfirmForm.cjs +41 -0
- package/dist/production/components/forms/OtpConfirmForm.cjs.map +1 -0
- package/dist/production/components/forms/OtpConfirmForm.js +41 -0
- package/dist/production/components/forms/OtpConfirmForm.js.map +1 -0
- package/dist/production/components/forms/OtpPrepareForm.cjs +28 -0
- package/dist/production/components/forms/OtpPrepareForm.cjs.map +1 -0
- package/dist/production/components/forms/OtpPrepareForm.js +28 -0
- package/dist/production/components/forms/OtpPrepareForm.js.map +1 -0
- package/dist/production/components/forms/PasswordResetForm.cjs +54 -0
- package/dist/production/components/forms/PasswordResetForm.cjs.map +1 -0
- package/dist/production/components/forms/PasswordResetForm.js +54 -0
- package/dist/production/components/forms/PasswordResetForm.js.map +1 -0
- package/dist/production/components/forms/PasswordResetRequestForm.cjs +41 -0
- package/dist/production/components/forms/PasswordResetRequestForm.cjs.map +1 -0
- package/dist/production/components/forms/PasswordResetRequestForm.js +41 -0
- package/dist/production/components/forms/PasswordResetRequestForm.js.map +1 -0
- package/dist/production/components/forms/TenantForm.cjs +83 -0
- package/dist/production/components/forms/TenantForm.cjs.map +1 -0
- package/dist/production/components/forms/TenantForm.js +83 -0
- package/dist/production/components/forms/TenantForm.js.map +1 -0
- package/dist/production/components/forms/UpdateProjectMemberForm.cjs +56 -0
- package/dist/production/components/forms/UpdateProjectMemberForm.cjs.map +1 -0
- package/dist/production/components/forms/UpdateProjectMemberForm.js +56 -0
- package/dist/production/components/forms/UpdateProjectMemberForm.js.map +1 -0
- package/dist/production/components/idp/IDP.cjs +48 -0
- package/dist/production/components/idp/IDP.cjs.map +1 -0
- package/dist/production/components/idp/IDP.js +48 -0
- package/dist/production/components/idp/IDP.js.map +1 -0
- package/dist/production/components/idp/IDPInitTrigger.cjs +12 -0
- package/dist/production/components/idp/IDPInitTrigger.cjs.map +1 -0
- package/dist/production/components/idp/IDPInitTrigger.js +12 -0
- package/dist/production/components/idp/IDPInitTrigger.js.map +1 -0
- package/dist/production/components/idp/IDPState.cjs +10 -0
- package/dist/production/components/idp/IDPState.cjs.map +1 -0
- package/dist/production/components/idp/IDPState.js +10 -0
- package/dist/production/components/idp/IDPState.js.map +1 -0
- package/dist/production/components/triggers/DisableOtpTrigger.cjs +24 -0
- package/dist/production/components/triggers/DisableOtpTrigger.cjs.map +1 -0
- package/dist/production/components/triggers/DisableOtpTrigger.js +24 -0
- package/dist/production/components/triggers/DisableOtpTrigger.js.map +1 -0
- package/dist/production/components/triggers/LogoutTrigger.cjs +12 -0
- package/dist/production/components/triggers/LogoutTrigger.cjs.map +1 -0
- package/dist/production/components/triggers/LogoutTrigger.js +12 -0
- package/dist/production/components/triggers/LogoutTrigger.js.map +1 -0
- package/dist/production/components/triggers/RemoveProjectMemberTrigger.cjs +13 -0
- package/dist/production/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -0
- package/dist/production/components/triggers/RemoveProjectMemberTrigger.js +13 -0
- package/dist/production/components/triggers/RemoveProjectMemberTrigger.js.map +1 -0
- package/dist/production/components/triggers/TenantActionTrigger.cjs +33 -0
- package/dist/production/components/triggers/TenantActionTrigger.cjs.map +1 -0
- package/dist/production/components/triggers/TenantActionTrigger.js +33 -0
- package/dist/production/components/triggers/TenantActionTrigger.js.map +1 -0
- package/dist/production/contexts.cjs +34 -0
- package/dist/production/contexts.cjs.map +1 -0
- package/dist/production/contexts.js +34 -0
- package/dist/production/contexts.js.map +1 -0
- package/dist/production/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs +30 -0
- package/dist/production/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/apiKey/useCreateApiKeyMutation.js +13 -0
- package/dist/production/hooks/mutations/apiKey/useCreateApiKeyMutation.js.map +1 -0
- package/dist/production/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs +30 -0
- package/dist/production/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js +13 -0
- package/dist/production/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js.map +1 -0
- package/dist/production/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs +30 -0
- package/dist/production/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/apiKey/useCreateSessionTokenMutation.js +13 -0
- package/dist/production/hooks/mutations/apiKey/useCreateSessionTokenMutation.js.map +1 -0
- package/dist/production/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs +29 -0
- package/dist/production/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/apiKey/useDisableApiKeyMutation.js +12 -0
- package/dist/production/hooks/mutations/apiKey/useDisableApiKeyMutation.js.map +1 -0
- package/dist/production/hooks/mutations/auth/useChangeMyPasswordMutation.cjs +29 -0
- package/dist/production/hooks/mutations/auth/useChangeMyPasswordMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/auth/useChangeMyPasswordMutation.js +12 -0
- package/dist/production/hooks/mutations/auth/useChangeMyPasswordMutation.js.map +1 -0
- package/dist/production/hooks/mutations/auth/useSignInMutation.cjs +33 -0
- package/dist/production/hooks/mutations/auth/useSignInMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/auth/useSignInMutation.js +16 -0
- package/dist/production/hooks/mutations/auth/useSignInMutation.js.map +1 -0
- package/dist/production/hooks/mutations/auth/useSignOutMutation.cjs +29 -0
- package/dist/production/hooks/mutations/auth/useSignOutMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/auth/useSignOutMutation.js +12 -0
- package/dist/production/hooks/mutations/auth/useSignOutMutation.js.map +1 -0
- package/dist/production/hooks/mutations/idp/useInitSignInIDPMutation.cjs +31 -0
- package/dist/production/hooks/mutations/idp/useInitSignInIDPMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/idp/useInitSignInIDPMutation.js +14 -0
- package/dist/production/hooks/mutations/idp/useInitSignInIDPMutation.js.map +1 -0
- package/dist/production/hooks/mutations/idp/useSignInIdpMutation.cjs +33 -0
- package/dist/production/hooks/mutations/idp/useSignInIdpMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/idp/useSignInIdpMutation.js +16 -0
- package/dist/production/hooks/mutations/idp/useSignInIdpMutation.js.map +1 -0
- package/dist/production/hooks/mutations/invite/useInviteMutation.cjs +30 -0
- package/dist/production/hooks/mutations/invite/useInviteMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/invite/useInviteMutation.js +13 -0
- package/dist/production/hooks/mutations/invite/useInviteMutation.js.map +1 -0
- package/dist/production/hooks/mutations/memberships/useAddProjectMemberMutation.cjs +29 -0
- package/dist/production/hooks/mutations/memberships/useAddProjectMemberMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/memberships/useAddProjectMemberMutation.js +12 -0
- package/dist/production/hooks/mutations/memberships/useAddProjectMemberMutation.js.map +1 -0
- package/dist/production/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs +29 -0
- package/dist/production/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/memberships/useRemoveProjectMemberMutation.js +12 -0
- package/dist/production/hooks/mutations/memberships/useRemoveProjectMemberMutation.js.map +1 -0
- package/dist/production/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs +29 -0
- package/dist/production/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/memberships/useUpdateProjectMemberMutation.js +12 -0
- package/dist/production/hooks/mutations/memberships/useUpdateProjectMemberMutation.js.map +1 -0
- package/dist/production/hooks/mutations/otp/useConfirmOtpMutation.cjs +29 -0
- package/dist/production/hooks/mutations/otp/useConfirmOtpMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/otp/useConfirmOtpMutation.js +12 -0
- package/dist/production/hooks/mutations/otp/useConfirmOtpMutation.js.map +1 -0
- package/dist/production/hooks/mutations/otp/useDisableOtpMutation.cjs +29 -0
- package/dist/production/hooks/mutations/otp/useDisableOtpMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/otp/useDisableOtpMutation.js +12 -0
- package/dist/production/hooks/mutations/otp/useDisableOtpMutation.js.map +1 -0
- package/dist/production/hooks/mutations/otp/usePrepareOtpMutation.cjs +30 -0
- package/dist/production/hooks/mutations/otp/usePrepareOtpMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/otp/usePrepareOtpMutation.js +13 -0
- package/dist/production/hooks/mutations/otp/usePrepareOtpMutation.js.map +1 -0
- package/dist/production/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs +32 -0
- package/dist/production/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js +15 -0
- package/dist/production/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js.map +1 -0
- package/dist/production/hooks/mutations/passwordReset/useResetPasswordMutation.cjs +32 -0
- package/dist/production/hooks/mutations/passwordReset/useResetPasswordMutation.cjs.map +1 -0
- package/dist/production/hooks/mutations/passwordReset/useResetPasswordMutation.js +15 -0
- package/dist/production/hooks/mutations/passwordReset/useResetPasswordMutation.js.map +1 -0
- package/dist/production/hooks/queries/useMeQuery.cjs +33 -0
- package/dist/production/hooks/queries/useMeQuery.cjs.map +1 -0
- package/dist/production/hooks/queries/useMeQuery.js +16 -0
- package/dist/production/hooks/queries/useMeQuery.js.map +1 -0
- package/dist/production/hooks/queries/useProjectMembersQuery.cjs +47 -0
- package/dist/production/hooks/queries/useProjectMembersQuery.cjs.map +1 -0
- package/dist/production/hooks/queries/useProjectMembersQuery.js +30 -0
- package/dist/production/hooks/queries/useProjectMembersQuery.js.map +1 -0
- package/dist/production/hooks/queries/useProjectMembershipsQuery.cjs +34 -0
- package/dist/production/hooks/queries/useProjectMembershipsQuery.cjs.map +1 -0
- package/dist/production/hooks/queries/useProjectMembershipsQuery.js +17 -0
- package/dist/production/hooks/queries/useProjectMembershipsQuery.js.map +1 -0
- package/dist/production/hooks/queries/useProjectRolesDefinitionQuery.cjs +36 -0
- package/dist/production/hooks/queries/useProjectRolesDefinitionQuery.cjs.map +1 -0
- package/dist/production/hooks/queries/useProjectRolesDefinitionQuery.js +19 -0
- package/dist/production/hooks/queries/useProjectRolesDefinitionQuery.js.map +1 -0
- package/dist/production/hooks/useFetchIdentity.cjs +52 -0
- package/dist/production/hooks/useFetchIdentity.cjs.map +1 -0
- package/dist/production/hooks/useFetchIdentity.js +52 -0
- package/dist/production/hooks/useFetchIdentity.js.map +1 -0
- package/dist/production/hooks/useLogout.cjs +10 -0
- package/dist/production/hooks/useLogout.cjs.map +1 -0
- package/dist/production/hooks/useLogout.js +10 -0
- package/dist/production/hooks/useLogout.js.map +1 -0
- package/dist/production/hooks/useTenantApi.cjs +11 -4
- package/dist/production/hooks/useTenantApi.cjs.map +1 -1
- package/dist/production/hooks/useTenantApi.js +12 -5
- package/dist/production/hooks/useTenantApi.js.map +1 -1
- package/dist/production/hooks/useTenantMutation.cjs +33 -0
- package/dist/production/hooks/useTenantMutation.cjs.map +1 -0
- package/dist/production/hooks/useTenantMutation.js +33 -0
- package/dist/production/hooks/useTenantMutation.js.map +1 -0
- package/dist/production/hooks/useTenantQueryLoader.cjs +36 -0
- package/dist/production/hooks/useTenantQueryLoader.cjs.map +1 -0
- package/dist/production/hooks/useTenantQueryLoader.js +36 -0
- package/dist/production/hooks/useTenantQueryLoader.js.map +1 -0
- package/dist/production/index.cjs +130 -0
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.js +132 -2
- package/dist/production/index.js.map +1 -1
- package/dist/production/internal/hooks/useHandleIDPResponse.cjs +51 -0
- package/dist/production/internal/hooks/useHandleIDPResponse.cjs.map +1 -0
- package/dist/production/internal/hooks/useHandleIDPResponse.js +51 -0
- package/dist/production/internal/hooks/useHandleIDPResponse.js.map +1 -0
- package/dist/production/internal/hooks/useIDPAutoInit.cjs +19 -0
- package/dist/production/internal/hooks/useIDPAutoInit.cjs.map +1 -0
- package/dist/production/internal/hooks/useIDPAutoInit.js +19 -0
- package/dist/production/internal/hooks/useIDPAutoInit.js.map +1 -0
- package/dist/production/internal/hooks/useIDPStateStore.cjs +19 -0
- package/dist/production/internal/hooks/useIDPStateStore.cjs.map +1 -0
- package/dist/production/internal/hooks/useIDPStateStore.js +19 -0
- package/dist/production/internal/hooks/useIDPStateStore.js.map +1 -0
- package/dist/production/internal/hooks/useInitIDPRedirect.cjs +44 -0
- package/dist/production/internal/hooks/useInitIDPRedirect.cjs.map +1 -0
- package/dist/production/internal/hooks/useInitIDPRedirect.js +44 -0
- package/dist/production/internal/hooks/useInitIDPRedirect.js.map +1 -0
- package/dist/production/internal/hooks/useLogoutInternal.cjs +35 -0
- package/dist/production/internal/hooks/useLogoutInternal.cjs.map +1 -0
- package/dist/production/internal/hooks/useLogoutInternal.js +35 -0
- package/dist/production/internal/hooks/useLogoutInternal.js.map +1 -0
- package/dist/production/internal/hooks/useRedirectToBacklink.cjs +31 -0
- package/dist/production/internal/hooks/useRedirectToBacklink.cjs.map +1 -0
- package/dist/production/internal/hooks/useRedirectToBacklink.js +31 -0
- package/dist/production/internal/hooks/useRedirectToBacklink.js.map +1 -0
- package/dist/production/internal/utils/getBaseHref.cjs +8 -0
- package/dist/production/internal/utils/getBaseHref.cjs.map +1 -0
- package/dist/production/internal/utils/getBaseHref.js +8 -0
- package/dist/production/internal/utils/getBaseHref.js.map +1 -0
- package/dist/types/components/IdentityProvider.d.ts +6 -0
- package/dist/types/components/IdentityProvider.d.ts.map +1 -0
- package/dist/types/components/IdentityState.d.ts +8 -0
- package/dist/types/components/IdentityState.d.ts.map +1 -0
- package/dist/types/components/forms/ChangeMyPasswordForm.d.ts +19 -0
- package/dist/types/components/forms/ChangeMyPasswordForm.d.ts.map +1 -0
- package/dist/types/components/forms/CreateApiKeyForm.d.ts +23 -0
- package/dist/types/components/forms/CreateApiKeyForm.d.ts.map +1 -0
- package/dist/types/components/forms/CreateSessionTokenForm.d.ts +22 -0
- package/dist/types/components/forms/CreateSessionTokenForm.d.ts.map +1 -0
- package/dist/types/components/forms/InviteForm.d.ts +25 -0
- package/dist/types/components/forms/InviteForm.d.ts.map +1 -0
- package/dist/types/components/forms/LoginForm.d.ts +20 -0
- package/dist/types/components/forms/LoginForm.d.ts.map +1 -0
- package/dist/types/components/forms/OtpConfirmForm.d.ts +17 -0
- package/dist/types/components/forms/OtpConfirmForm.d.ts.map +1 -0
- package/dist/types/components/forms/OtpPrepareForm.d.ts +19 -0
- package/dist/types/components/forms/OtpPrepareForm.d.ts.map +1 -0
- package/dist/types/components/forms/PasswordResetForm.d.ts +20 -0
- package/dist/types/components/forms/PasswordResetForm.d.ts.map +1 -0
- package/dist/types/components/forms/PasswordResetRequestForm.d.ts +17 -0
- package/dist/types/components/forms/PasswordResetRequestForm.d.ts.map +1 -0
- package/dist/types/components/forms/TenantForm.d.ts +37 -0
- package/dist/types/components/forms/TenantForm.d.ts.map +1 -0
- package/dist/types/components/forms/UpdateProjectMemberForm.d.ts +19 -0
- package/dist/types/components/forms/UpdateProjectMemberForm.d.ts.map +1 -0
- package/dist/types/components/forms/index.d.ts +11 -0
- package/dist/types/components/forms/index.d.ts.map +1 -0
- package/dist/types/components/idp/IDP.d.ts +10 -0
- package/dist/types/components/idp/IDP.d.ts.map +1 -0
- package/dist/types/components/idp/IDPInitTrigger.d.ts +7 -0
- package/dist/types/components/idp/IDPInitTrigger.d.ts.map +1 -0
- package/dist/types/components/idp/IDPState.d.ts +8 -0
- package/dist/types/components/idp/IDPState.d.ts.map +1 -0
- package/dist/types/components/idp/index.d.ts +4 -0
- package/dist/types/components/idp/index.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +6 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/components/triggers/DisableOtpTrigger.d.ts +8 -0
- package/dist/types/components/triggers/DisableOtpTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/LogoutTrigger.d.ts +5 -0
- package/dist/types/components/triggers/LogoutTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts +9 -0
- package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/TenantActionTrigger.d.ts +22 -0
- package/dist/types/components/triggers/TenantActionTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/index.d.ts +4 -0
- package/dist/types/components/triggers/index.d.ts.map +1 -0
- package/dist/types/contexts.d.ts +20 -0
- package/dist/types/contexts.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +6 -0
- package/dist/types/hooks/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/apiKey/index.d.ts +5 -0
- package/dist/types/hooks/mutations/apiKey/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/apiKey/useCreateApiKeyMutation.d.ts +83 -0
- package/dist/types/hooks/mutations/apiKey/useCreateApiKeyMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.d.ts +73 -0
- package/dist/types/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/apiKey/useCreateSessionTokenMutation.d.ts +65 -0
- package/dist/types/hooks/mutations/apiKey/useCreateSessionTokenMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/apiKey/useDisableApiKeyMutation.d.ts +21 -0
- package/dist/types/hooks/mutations/apiKey/useDisableApiKeyMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/auth/index.d.ts +4 -0
- package/dist/types/hooks/mutations/auth/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/auth/useChangeMyPasswordMutation.d.ts +21 -0
- package/dist/types/hooks/mutations/auth/useChangeMyPasswordMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/auth/useSignInMutation.d.ts +69 -0
- package/dist/types/hooks/mutations/auth/useSignInMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/auth/useSignOutMutation.d.ts +21 -0
- package/dist/types/hooks/mutations/auth/useSignOutMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/idp/index.d.ts +3 -0
- package/dist/types/hooks/mutations/idp/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/idp/useInitSignInIDPMutation.d.ts +17 -0
- package/dist/types/hooks/mutations/idp/useInitSignInIDPMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/idp/useSignInIdpMutation.d.ts +76 -0
- package/dist/types/hooks/mutations/idp/useSignInIdpMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/index.d.ts +8 -0
- package/dist/types/hooks/mutations/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/invite/index.d.ts +2 -0
- package/dist/types/hooks/mutations/invite/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/invite/useInviteMutation.d.ts +103 -0
- package/dist/types/hooks/mutations/invite/useInviteMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/memberships/index.d.ts +4 -0
- package/dist/types/hooks/mutations/memberships/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/memberships/useAddProjectMemberMutation.d.ts +33 -0
- package/dist/types/hooks/mutations/memberships/useAddProjectMemberMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/memberships/useRemoveProjectMemberMutation.d.ts +23 -0
- package/dist/types/hooks/mutations/memberships/useRemoveProjectMemberMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/memberships/useUpdateProjectMemberMutation.d.ts +33 -0
- package/dist/types/hooks/mutations/memberships/useUpdateProjectMemberMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/otp/index.d.ts +4 -0
- package/dist/types/hooks/mutations/otp/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/otp/useConfirmOtpMutation.d.ts +21 -0
- package/dist/types/hooks/mutations/otp/useConfirmOtpMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/otp/useDisableOtpMutation.d.ts +17 -0
- package/dist/types/hooks/mutations/otp/useDisableOtpMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/otp/usePrepareOtpMutation.d.ts +25 -0
- package/dist/types/hooks/mutations/otp/usePrepareOtpMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/passwordReset/index.d.ts +3 -0
- package/dist/types/hooks/mutations/passwordReset/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.d.ts +23 -0
- package/dist/types/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/passwordReset/useResetPasswordMutation.d.ts +23 -0
- package/dist/types/hooks/mutations/passwordReset/useResetPasswordMutation.d.ts.map +1 -0
- package/dist/types/hooks/queries/index.d.ts +5 -0
- package/dist/types/hooks/queries/index.d.ts.map +1 -0
- package/dist/types/hooks/queries/useMeQuery.d.ts +52 -0
- package/dist/types/hooks/queries/useMeQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useProjectMembersQuery.d.ts +43 -0
- package/dist/types/hooks/queries/useProjectMembersQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useProjectMembershipsQuery.d.ts +20 -0
- package/dist/types/hooks/queries/useProjectMembershipsQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts +66 -0
- package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts.map +1 -0
- package/dist/types/hooks/useFetchIdentity.d.ts +6 -0
- package/dist/types/hooks/useFetchIdentity.d.ts.map +1 -0
- package/dist/types/hooks/useLogout.d.ts +4 -0
- package/dist/types/hooks/useLogout.d.ts.map +1 -0
- package/dist/types/hooks/useTenantApi.d.ts +7 -2
- package/dist/types/hooks/useTenantApi.d.ts.map +1 -1
- package/dist/types/hooks/useTenantMutation.d.ts +25 -0
- package/dist/types/hooks/useTenantMutation.d.ts.map +1 -0
- package/dist/types/hooks/useTenantQueryLoader.d.ts +17 -0
- package/dist/types/hooks/useTenantQueryLoader.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/internal/hooks/useHandleIDPResponse.d.ts +10 -0
- package/dist/types/internal/hooks/useHandleIDPResponse.d.ts.map +1 -0
- package/dist/types/internal/hooks/useIDPAutoInit.d.ts +2 -0
- package/dist/types/internal/hooks/useIDPAutoInit.d.ts.map +1 -0
- package/dist/types/internal/hooks/useIDPStateStore.d.ts +9 -0
- package/dist/types/internal/hooks/useIDPStateStore.d.ts.map +1 -0
- package/dist/types/internal/hooks/useInitIDPRedirect.d.ts +15 -0
- package/dist/types/internal/hooks/useInitIDPRedirect.d.ts.map +1 -0
- package/dist/types/internal/hooks/useLogoutInternal.d.ts +4 -0
- package/dist/types/internal/hooks/useLogoutInternal.d.ts.map +1 -0
- package/dist/types/internal/hooks/useRedirectToBacklink.d.ts +4 -0
- package/dist/types/internal/hooks/useRedirectToBacklink.d.ts.map +1 -0
- package/dist/types/internal/utils/getBaseHref.d.ts +2 -0
- package/dist/types/internal/utils/getBaseHref.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/types/Identity.d.ts +19 -0
- package/dist/types/types/Identity.d.ts.map +1 -0
- package/dist/types/types/IdentityMethods.d.ts +5 -0
- package/dist/types/types/IdentityMethods.d.ts.map +1 -0
- package/dist/types/types/IdentityStateValue.d.ts +2 -0
- package/dist/types/types/IdentityStateValue.d.ts.map +1 -0
- package/dist/types/types/forms.d.ts +18 -0
- package/dist/types/types/forms.d.ts.map +1 -0
- package/dist/types/types/idp.d.ts +30 -0
- package/dist/types/types/idp.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +6 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/package.json +6 -2
- package/src/components/IdentityProvider.tsx +39 -0
- package/src/components/IdentityState.tsx +14 -0
- package/src/components/forms/ChangeMyPasswordForm.tsx +75 -0
- package/src/components/forms/CreateApiKeyForm.tsx +72 -0
- package/src/components/forms/CreateSessionTokenForm.tsx +64 -0
- package/src/components/forms/InviteForm.tsx +79 -0
- package/src/components/forms/LoginForm.tsx +110 -0
- package/src/components/forms/OtpConfirmForm.tsx +61 -0
- package/src/components/forms/OtpPrepareForm.tsx +45 -0
- package/src/components/forms/PasswordResetForm.tsx +80 -0
- package/src/components/forms/PasswordResetRequestForm.tsx +64 -0
- package/src/components/forms/TenantForm.tsx +116 -0
- package/src/components/forms/UpdateProjectMemberForm.tsx +77 -0
- package/src/components/forms/index.ts +10 -0
- package/src/components/idp/IDP.tsx +65 -0
- package/src/components/idp/IDPInitTrigger.tsx +17 -0
- package/src/components/idp/IDPState.tsx +14 -0
- package/src/components/idp/index.ts +3 -0
- package/src/components/index.ts +5 -0
- package/src/components/triggers/DisableOtpTrigger.tsx +25 -0
- package/src/components/triggers/LogoutTrigger.tsx +10 -0
- package/src/components/triggers/RemoveProjectMemberTrigger.tsx +18 -0
- package/src/components/triggers/TenantActionTrigger.tsx +41 -0
- package/src/components/triggers/index.ts +3 -0
- package/src/contexts.ts +34 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/mutations/apiKey/index.ts +4 -0
- package/src/hooks/mutations/apiKey/useCreateApiKeyMutation.tsx +19 -0
- package/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.tsx +19 -0
- package/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.tsx +19 -0
- package/src/hooks/mutations/apiKey/useDisableApiKeyMutation.tsx +14 -0
- package/src/hooks/mutations/auth/index.ts +3 -0
- package/src/hooks/mutations/auth/useChangeMyPasswordMutation.ts +14 -0
- package/src/hooks/mutations/auth/useSignInMutation.ts +25 -0
- package/src/hooks/mutations/auth/useSignOutMutation.ts +12 -0
- package/src/hooks/mutations/idp/index.ts +2 -0
- package/src/hooks/mutations/idp/useInitSignInIDPMutation.ts +29 -0
- package/src/hooks/mutations/idp/useSignInIdpMutation.ts +35 -0
- package/src/hooks/mutations/index.ts +7 -0
- package/src/hooks/mutations/invite/index.ts +1 -0
- package/src/hooks/mutations/invite/useInviteMutation.tsx +20 -0
- package/src/hooks/mutations/memberships/index.ts +3 -0
- package/src/hooks/mutations/memberships/useAddProjectMemberMutation.ts +13 -0
- package/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.ts +13 -0
- package/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.ts +13 -0
- package/src/hooks/mutations/otp/index.ts +3 -0
- package/src/hooks/mutations/otp/useConfirmOtpMutation.ts +13 -0
- package/src/hooks/mutations/otp/useDisableOtpMutation.ts +10 -0
- package/src/hooks/mutations/otp/usePrepareOtpMutation.ts +16 -0
- package/src/hooks/mutations/passwordReset/index.ts +2 -0
- package/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.ts +17 -0
- package/src/hooks/mutations/passwordReset/useResetPasswordMutation.ts +17 -0
- package/src/hooks/queries/index.ts +4 -0
- package/src/hooks/queries/useMeQuery.ts +23 -0
- package/src/hooks/queries/useProjectMembersQuery.ts +43 -0
- package/src/hooks/queries/useProjectMembershipsQuery.ts +25 -0
- package/src/hooks/queries/useProjectRolesDefinitionQuery.ts +34 -0
- package/src/hooks/useFetchIdentity.ts +55 -0
- package/src/hooks/useLogout.ts +7 -0
- package/src/hooks/useTenantApi.ts +18 -6
- package/src/hooks/useTenantMutation.ts +45 -0
- package/src/hooks/useTenantQueryLoader.ts +49 -0
- package/src/index.ts +3 -0
- package/src/internal/hooks/useHandleIDPResponse.ts +64 -0
- package/src/internal/hooks/useIDPAutoInit.ts +18 -0
- package/src/internal/hooks/useIDPStateStore.ts +18 -0
- package/src/internal/hooks/useInitIDPRedirect.ts +48 -0
- package/src/internal/hooks/useLogoutInternal.ts +35 -0
- package/src/internal/hooks/useRedirectToBacklink.ts +42 -0
- package/src/internal/utils/getBaseHref.ts +4 -0
- package/src/tsconfig.json +1 -0
- package/src/types/Identity.ts +20 -0
- package/src/types/IdentityMethods.ts +4 -0
- package/src/types/IdentityStateValue.ts +6 -0
- package/src/types/forms.ts +26 -0
- package/src/types/idp.ts +25 -0
- package/src/types/index.ts +5 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { FormContextValue, FormError, FormState } from '../../types';
|
|
3
|
+
import { UpdateProjectMemberErrorCode, MembershipInput } from '@contember/graphql-client-tenant';
|
|
4
|
+
export type UpdateProjectMemberFormValues = {
|
|
5
|
+
memberships: readonly MembershipInput[];
|
|
6
|
+
};
|
|
7
|
+
export type UpdateProjectMemberFormErrorCode = UpdateProjectMemberErrorCode | 'UNKNOWN_ERROR' | 'FIELD_REQUIRED';
|
|
8
|
+
export type UpdateProjectMemberFormState = FormState;
|
|
9
|
+
export type UpdateProjectMemberFormError = FormError<UpdateProjectMemberFormValues, UpdateProjectMemberFormErrorCode>;
|
|
10
|
+
export type UpdateProjectMemberFormContextValue = FormContextValue<UpdateProjectMemberFormValues, UpdateProjectMemberFormErrorCode>;
|
|
11
|
+
export interface UpdateProjectMemberFormProps {
|
|
12
|
+
children: ReactElement;
|
|
13
|
+
identityId: string;
|
|
14
|
+
projectSlug: string;
|
|
15
|
+
onSuccess?: (args: {}) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const useUpdateProjectMemberForm: () => UpdateProjectMemberFormContextValue;
|
|
18
|
+
export declare const UpdateProjectMemberForm: ({ children, onSuccess, identityId, projectSlug }: UpdateProjectMemberFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=UpdateProjectMemberForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateProjectMemberForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/UpdateProjectMemberForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAA;AAEzD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEpE,OAAO,EAAE,4BAA4B,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAGhG,MAAM,MAAM,6BAA6B,GAAG;IAC3C,WAAW,EAAE,SAAS,eAAe,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,gCAAgC,GACzC,4BAA4B,GAC5B,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAAA;AAEpD,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAAC,6BAA6B,EAAE,gCAAgC,CAAC,CAAA;AAErH,MAAM,MAAM,mCAAmC,GAAG,gBAAgB,CAAC,6BAA6B,EAAE,gCAAgC,CAAC,CAAA;AAEnI,MAAM,WAAW,4BAA4B;IAC5C,QAAQ,EAAE,YAAY,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,EAAG,KAAK,IAAI,CAAA;CAC/B;AAED,eAAO,MAAM,0BAA0B,2CAAuD,CAAA;AAE9F,eAAO,MAAM,uBAAuB,qDAAsD,4BAA4B,4CAoCrH,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './CreateApiKeyForm';
|
|
2
|
+
export * from './CreateSessionTokenForm';
|
|
3
|
+
export * from './ChangeMyPasswordForm';
|
|
4
|
+
export * from './InviteForm';
|
|
5
|
+
export * from './LoginForm';
|
|
6
|
+
export * from './PasswordResetForm';
|
|
7
|
+
export * from './PasswordResetRequestForm';
|
|
8
|
+
export * from './OtpPrepareForm';
|
|
9
|
+
export * from './OtpConfirmForm';
|
|
10
|
+
export * from './UpdateProjectMemberForm';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IDPInitError, IDPResponseError } from '../../types/idp';
|
|
3
|
+
export interface IDPProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
onLogin?: () => void;
|
|
6
|
+
onInitError?: (error: IDPInitError) => void;
|
|
7
|
+
onResponseError?: (error: IDPResponseError) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const IDP: ({ children, onResponseError, onInitError, onLogin }: IDPProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=IDP.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDP.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/IDP.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAA;AAEvE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAiB,MAAM,iBAAiB,CAAA;AAK/E,MAAM,WAAW,QAAQ;IACxB,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAA;IAC3C,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;CACnD;AAED,eAAO,MAAM,GAAG,wDAAyD,QAAQ,4CAkDhF,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export interface IDPInitTriggerProps {
|
|
3
|
+
children: ReactElement;
|
|
4
|
+
identityProvider: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const IDPInitTrigger: ({ identityProvider, ...props }: IDPInitTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=IDPInitTrigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDPInitTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/IDPInitTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAA;AAKnD,MAAM,WAAW,mBAAmB;IACnC,QAAQ,EAAE,YAAY,CAAA;IACtB,gBAAgB,EAAE,MAAM,CAAA;CACxB;AAED,eAAO,MAAM,cAAc,mCAAoC,mBAAmB,4CAKjF,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IDPStateType } from '../../types';
|
|
3
|
+
export interface IDPStateProps {
|
|
4
|
+
state: IDPStateType | IDPStateType[];
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const IDPState: ({ state, children }: IDPStateProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
//# sourceMappingURL=IDPState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDPState.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/IDPState.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG1C,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,YAAY,GAAG,YAAY,EAAE,CAAA;IACpC,QAAQ,EAAE,SAAS,CAAA;CACnB;AAED,eAAO,MAAM,QAAQ,wBAAyB,aAAa,mDAI1D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export interface DisableOtpTriggerProps {
|
|
3
|
+
children: ReactElement;
|
|
4
|
+
onSuccess?: () => void;
|
|
5
|
+
onError?: (e: unknown) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const DisableOtpTrigger: ({ onSuccess, ...props }: DisableOtpTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=DisableOtpTrigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisableOtpTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/DisableOtpTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,OAAO,CAAA;AAKjD,MAAM,WAAW,sBAAsB;IACtC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CAC9B;AAED,eAAO,MAAM,iBAAiB,4BAA6B,sBAAsB,4CAahF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogoutTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/LogoutTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,OAAO,CAAA;AAI9C,eAAO,MAAM,aAAa,iBAAkB;IAC3C,QAAQ,EAAE,SAAS,CAAA;CACnB,4CAGA,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { RemoveProjectMemberMutationVariables } from '../../hooks';
|
|
3
|
+
export type RemoveProjectMemberTriggerProps = RemoveProjectMemberMutationVariables & {
|
|
4
|
+
children: ReactElement;
|
|
5
|
+
onSuccess?: () => void;
|
|
6
|
+
onError?: (e: unknown) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const RemoveProjectMemberTrigger: ({ identityId, projectSlug, ...props }: RemoveProjectMemberTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=RemoveProjectMemberTrigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveProjectMemberTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/RemoveProjectMemberTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,OAAO,CAAA;AAEjD,OAAO,EAAE,oCAAoC,EAAkC,MAAM,aAAa,CAAA;AAElG,MAAM,MAAM,+BAA+B,GACxC,oCAAoC,GACpC;IACD,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CAC9B,CAAA;AAGF,eAAO,MAAM,0BAA0B,0CAA2C,+BAA+B,4CAIhH,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MouseEventHandler, ReactElement } from 'react';
|
|
2
|
+
export interface TenantActionTriggerProps<OkResult, Error extends string> {
|
|
3
|
+
children: ReactElement;
|
|
4
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
5
|
+
onSuccess?: (args: {
|
|
6
|
+
result: OkResult;
|
|
7
|
+
}) => void;
|
|
8
|
+
onError?: (args: {
|
|
9
|
+
code: Error | 'UNKNOWN_ERROR';
|
|
10
|
+
error: unknown;
|
|
11
|
+
}) => void;
|
|
12
|
+
execute: () => Promise<({
|
|
13
|
+
ok: true;
|
|
14
|
+
} & (OkResult extends undefined ? {} : {
|
|
15
|
+
result: OkResult;
|
|
16
|
+
})) | {
|
|
17
|
+
ok: false;
|
|
18
|
+
error?: Error;
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
21
|
+
export declare const TenantActionTrigger: <OkResult, Error extends string>({ onError: onErrorIn, onSuccess: onSuccessIn, onClick: onClickProp, execute: executeIn, ...props }: TenantActionTriggerProps<OkResult, Error>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=TenantActionTrigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TenantActionTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/TenantActionTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,iBAAiB,EAAE,YAAY,EAAqB,MAAM,OAAO,CAAA;AAMzF,MAAM,WAAW,wBAAwB,CAAC,QAAQ,EAAE,KAAK,SAAS,MAAM;IACvE,QAAQ,EAAE,YAAY,CAAA;IACtB,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;IAC9C,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAC,MAAM,EAAE,QAAQ,CAAA;KAAC,KAAK,IAAI,CAAA;IAC9C,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,KAAK,GAAG,eAAe,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAA;IAC3E,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC;QAAE,EAAE,EAAE,IAAI,CAAA;KAAE,GAAG,CAAC,QAAQ,SAAS,SAAS,GAAG,EAAE,GAAG;QAAE,MAAM,EAAE,QAAQ,CAAA;KAAE,CAAC,CAAC,GAAG;QAAE,EAAE,EAAE,KAAK,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,CAAA;CAChI;AAED,eAAO,MAAM,mBAAmB,uIAAwI,yBAAyB,QAAQ,EAAE,KAAK,CAAC,4CAyBhN,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FormContextValue, Identity, IdentityMethods, IdentityStateValue, IDPMethods, IDPStateValue } from './types';
|
|
2
|
+
/** @internal */
|
|
3
|
+
export declare const IdentityContext: import("react").Context<Identity | undefined>;
|
|
4
|
+
export declare const useIdentity: () => Identity | undefined;
|
|
5
|
+
/** @internal */
|
|
6
|
+
export declare const IdentityMethodsContext: import("react").Context<IdentityMethods>;
|
|
7
|
+
export declare const useIdentityMethods: () => IdentityMethods;
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const IdentityStateContext: import("react").Context<IdentityStateValue>;
|
|
10
|
+
export declare const useIdentityState: () => IdentityStateValue;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const FormContext: import("react").Context<FormContextValue<any, any, any>>;
|
|
13
|
+
export declare const useForm: () => FormContextValue<any, any, any>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const IDPStateContextProvider: import("react").Context<IDPStateValue>;
|
|
16
|
+
export declare const useIDPState: () => IDPStateValue;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const IDPMethodsContextProvider: import("react").Context<IDPMethods>;
|
|
19
|
+
export declare const useIDPMethods: () => IDPMethods;
|
|
20
|
+
//# sourceMappingURL=contexts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../src/contexts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,eAAe,EAAE,kBAAkB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAGpH,gBAAgB;AAChB,eAAO,MAAM,eAAe,+CAAsB,CAAA;AAClD,eAAO,MAAM,WAAW,4BAAsB,CAAA;AAG9C,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,0CAA6B,CAAA;AAChE,eAAO,MAAM,kBAAkB,uBAA6B,CAAA;AAG5D,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,6CAA2B,CAAA;AAC5D,eAAO,MAAM,gBAAgB,0BAA2B,CAAA;AAIxD,gBAAgB;AAChB,eAAO,MAAM,WAAW,0DAAkB,CAAA;AAC1C,eAAO,MAAM,OAAO,uCAAkB,CAAA;AAItC,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,wCAAqB,CAAA;AACzD,eAAO,MAAM,WAAW,qBAAqB,CAAA;AAG7C,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,qCAAuB,CAAA;AAC7D,eAAO,MAAM,aAAa,kBAAuB,CAAA"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
export * from './mutations';
|
|
2
|
+
export * from './queries';
|
|
3
|
+
export * from './useFetchIdentity';
|
|
4
|
+
export * from './useLogout';
|
|
1
5
|
export * from './useTenantApi';
|
|
6
|
+
export * from './useTenantQueryLoader';
|
|
7
|
+
export * from './useTenantMutation';
|
|
2
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/mutations/apiKey/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as TenantApi from '@contember/graphql-client-tenant';
|
|
2
|
+
import { ModelType } from 'graphql-ts-client-api';
|
|
3
|
+
declare const createApiKeyMutationResult: TenantApi.CreateApiKeyResultFetcher<{
|
|
4
|
+
readonly apiKey: {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
} & {
|
|
7
|
+
readonly token?: string | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
readonly identity: {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
} & {
|
|
12
|
+
readonly description?: string | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
readonly roles?: readonly string[] | undefined;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}, {}>;
|
|
18
|
+
export type CreateApiKeyMutationResult = ModelType<typeof createApiKeyMutationResult>;
|
|
19
|
+
export declare const createApiKeyMutation: TenantApi.MutationFetcher<{
|
|
20
|
+
readonly mutation?: ({
|
|
21
|
+
readonly ok: boolean;
|
|
22
|
+
} & {
|
|
23
|
+
readonly error?: ({
|
|
24
|
+
readonly code: TenantApi.CreateApiKeyErrorCode;
|
|
25
|
+
} & {
|
|
26
|
+
readonly developerMessage: string;
|
|
27
|
+
} & {
|
|
28
|
+
readonly endUserMessage?: string | undefined;
|
|
29
|
+
} & {
|
|
30
|
+
readonly membershipValidation?: readonly ({
|
|
31
|
+
readonly code: TenantApi.MembershipValidationErrorCode;
|
|
32
|
+
} & {
|
|
33
|
+
readonly role: string;
|
|
34
|
+
} & {
|
|
35
|
+
readonly variable?: string | undefined;
|
|
36
|
+
})[] | undefined;
|
|
37
|
+
}) | undefined;
|
|
38
|
+
} & {
|
|
39
|
+
readonly result?: {
|
|
40
|
+
readonly apiKey: {
|
|
41
|
+
readonly id: string;
|
|
42
|
+
} & {
|
|
43
|
+
readonly token?: string | undefined;
|
|
44
|
+
} & {
|
|
45
|
+
readonly identity: {
|
|
46
|
+
readonly id: string;
|
|
47
|
+
} & {
|
|
48
|
+
readonly description?: string | undefined;
|
|
49
|
+
} & {
|
|
50
|
+
readonly roles?: readonly string[] | undefined;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
} | undefined;
|
|
54
|
+
}) | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
readonly projectSlug: string;
|
|
57
|
+
readonly memberships: readonly TenantApi.MembershipInput[];
|
|
58
|
+
readonly description: string;
|
|
59
|
+
readonly tokenHash?: string | undefined;
|
|
60
|
+
}>;
|
|
61
|
+
export declare const useCreateApiKeyMutation: ({ headers, apiToken }?: import("../..").TenantApiOptions) => (variables: {
|
|
62
|
+
readonly projectSlug: string;
|
|
63
|
+
readonly memberships: readonly TenantApi.MembershipInput[];
|
|
64
|
+
readonly description: string;
|
|
65
|
+
readonly tokenHash?: string | undefined;
|
|
66
|
+
}) => Promise<import("../../useTenantMutation").TenantMutationResponse<{
|
|
67
|
+
readonly apiKey: {
|
|
68
|
+
readonly id: string;
|
|
69
|
+
} & {
|
|
70
|
+
readonly token?: string | undefined;
|
|
71
|
+
} & {
|
|
72
|
+
readonly identity: {
|
|
73
|
+
readonly id: string;
|
|
74
|
+
} & {
|
|
75
|
+
readonly description?: string | undefined;
|
|
76
|
+
} & {
|
|
77
|
+
readonly roles?: readonly string[] | undefined;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
}, TenantApi.CreateApiKeyErrorCode>>;
|
|
81
|
+
export type CreateApiKeyMutationVariables = Parameters<ReturnType<typeof useCreateApiKeyMutation>>[0];
|
|
82
|
+
export {};
|
|
83
|
+
//# sourceMappingURL=useCreateApiKeyMutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateApiKeyMutation.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/mutations/apiKey/useCreateApiKeyMutation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;MAAmG,CAAA;AAEnI,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAErF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;oCAA6C,CAAA;AACjF,MAAM,MAAM,6BAA6B,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as TenantApi from '@contember/graphql-client-tenant';
|
|
2
|
+
import { ModelType } from 'graphql-ts-client-api';
|
|
3
|
+
declare const createGlobalApiKeyMutationResult: TenantApi.CreateApiKeyResultFetcher<{
|
|
4
|
+
readonly apiKey: {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
} & {
|
|
7
|
+
readonly token?: string | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
readonly identity: {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
} & {
|
|
12
|
+
readonly description?: string | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
readonly roles?: readonly string[] | undefined;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}, {}>;
|
|
18
|
+
export type CreateGlobalApiKeyMutationResult = ModelType<typeof createGlobalApiKeyMutationResult>;
|
|
19
|
+
export declare const createGlobalApiKeyMutation: TenantApi.MutationFetcher<{
|
|
20
|
+
readonly mutation?: ({
|
|
21
|
+
readonly ok: boolean;
|
|
22
|
+
} & {
|
|
23
|
+
readonly error?: ({
|
|
24
|
+
readonly code: TenantApi.CreateApiKeyErrorCode;
|
|
25
|
+
} & {
|
|
26
|
+
readonly developerMessage: string;
|
|
27
|
+
} & {
|
|
28
|
+
readonly endUserMessage?: string | undefined;
|
|
29
|
+
}) | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
readonly result?: {
|
|
32
|
+
readonly apiKey: {
|
|
33
|
+
readonly id: string;
|
|
34
|
+
} & {
|
|
35
|
+
readonly token?: string | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
readonly identity: {
|
|
38
|
+
readonly id: string;
|
|
39
|
+
} & {
|
|
40
|
+
readonly description?: string | undefined;
|
|
41
|
+
} & {
|
|
42
|
+
readonly roles?: readonly string[] | undefined;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
} | undefined;
|
|
46
|
+
}) | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
readonly description: string;
|
|
49
|
+
readonly roles?: readonly string[] | undefined;
|
|
50
|
+
readonly tokenHash?: string | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
export declare const useCreateGlobalApiKeyMutation: ({ headers, apiToken }?: import("../..").TenantApiOptions) => (variables: {
|
|
53
|
+
readonly description: string;
|
|
54
|
+
readonly roles?: readonly string[] | undefined;
|
|
55
|
+
readonly tokenHash?: string | undefined;
|
|
56
|
+
}) => Promise<import("../../useTenantMutation").TenantMutationResponse<{
|
|
57
|
+
readonly apiKey: {
|
|
58
|
+
readonly id: string;
|
|
59
|
+
} & {
|
|
60
|
+
readonly token?: string | undefined;
|
|
61
|
+
} & {
|
|
62
|
+
readonly identity: {
|
|
63
|
+
readonly id: string;
|
|
64
|
+
} & {
|
|
65
|
+
readonly description?: string | undefined;
|
|
66
|
+
} & {
|
|
67
|
+
readonly roles?: readonly string[] | undefined;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
}, TenantApi.CreateApiKeyErrorCode>>;
|
|
71
|
+
export type CreateGlobalApiKeyMutationVariables = Parameters<ReturnType<typeof useCreateGlobalApiKeyMutation>>[0];
|
|
72
|
+
export {};
|
|
73
|
+
//# sourceMappingURL=useCreateGlobalApiKeyMutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateGlobalApiKeyMutation.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,QAAA,MAAM,gCAAgC;;;;;;;;;;;;;;MAAmG,CAAA;AAEzI,MAAM,MAAM,gCAAgC,GAAG,SAAS,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAEjG,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;oCAAmD,CAAA;AAC7F,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as TenantApi from '@contember/graphql-client-tenant';
|
|
2
|
+
import { ModelType } from 'graphql-ts-client-api';
|
|
3
|
+
declare const createSessionTokenMutationResult: TenantApi.CreateSessionTokenResultFetcher<{
|
|
4
|
+
readonly token: string;
|
|
5
|
+
} & {
|
|
6
|
+
readonly person: {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
} & {
|
|
9
|
+
readonly email?: string | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
readonly name?: string | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
readonly otpEnabled: boolean;
|
|
14
|
+
};
|
|
15
|
+
}, {}>;
|
|
16
|
+
export type CreateSessionTokenMutationResult = ModelType<typeof createSessionTokenMutationResult>;
|
|
17
|
+
export declare const createSessionTokenMutation: TenantApi.MutationFetcher<{
|
|
18
|
+
readonly mutation?: ({
|
|
19
|
+
readonly ok: boolean;
|
|
20
|
+
} & {
|
|
21
|
+
readonly error?: ({
|
|
22
|
+
readonly code: TenantApi.CreateSessionTokenErrorCode;
|
|
23
|
+
} & {
|
|
24
|
+
readonly developerMessage: string;
|
|
25
|
+
}) | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
readonly result?: ({
|
|
28
|
+
readonly token: string;
|
|
29
|
+
} & {
|
|
30
|
+
readonly person: {
|
|
31
|
+
readonly id: string;
|
|
32
|
+
} & {
|
|
33
|
+
readonly email?: string | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
readonly name?: string | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
readonly otpEnabled: boolean;
|
|
38
|
+
};
|
|
39
|
+
}) | undefined;
|
|
40
|
+
}) | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
readonly email?: string | undefined;
|
|
43
|
+
readonly personId?: string | undefined;
|
|
44
|
+
readonly expiration?: number | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const useCreateSessionTokenMutation: ({ headers, apiToken }?: import("../..").TenantApiOptions) => (variables: {
|
|
47
|
+
readonly email?: string | undefined;
|
|
48
|
+
readonly personId?: string | undefined;
|
|
49
|
+
readonly expiration?: number | undefined;
|
|
50
|
+
}) => Promise<import("../../useTenantMutation").TenantMutationResponse<{
|
|
51
|
+
readonly token: string;
|
|
52
|
+
} & {
|
|
53
|
+
readonly person: {
|
|
54
|
+
readonly id: string;
|
|
55
|
+
} & {
|
|
56
|
+
readonly email?: string | undefined;
|
|
57
|
+
} & {
|
|
58
|
+
readonly name?: string | undefined;
|
|
59
|
+
} & {
|
|
60
|
+
readonly otpEnabled: boolean;
|
|
61
|
+
};
|
|
62
|
+
}, TenantApi.CreateSessionTokenErrorCode>>;
|
|
63
|
+
export type CreateSessionTokenMutationVariables = Parameters<ReturnType<typeof useCreateSessionTokenMutation>>[0];
|
|
64
|
+
export {};
|
|
65
|
+
//# sourceMappingURL=useCreateSessionTokenMutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateSessionTokenMutation.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/mutations/apiKey/useCreateSessionTokenMutation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,QAAA,MAAM,gCAAgC;;;;;;;;;;;;MAAuE,CAAA;AAE7G,MAAM,MAAM,gCAAgC,GAAG,SAAS,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAEjG,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;0CAAmD,CAAA;AAC7F,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as TenantApi from '@contember/graphql-client-tenant';
|
|
2
|
+
export declare const disableApiKeyMutation: TenantApi.MutationFetcher<{
|
|
3
|
+
readonly mutation?: ({
|
|
4
|
+
readonly ok: boolean;
|
|
5
|
+
} & {
|
|
6
|
+
readonly error?: ({
|
|
7
|
+
readonly code: "KEY_NOT_FOUND";
|
|
8
|
+
} & {
|
|
9
|
+
readonly developerMessage: string;
|
|
10
|
+
} & {
|
|
11
|
+
readonly endUserMessage?: string | undefined;
|
|
12
|
+
}) | undefined;
|
|
13
|
+
}) | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
readonly id: string;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const useDisableApiKeyMutation: ({ headers, apiToken }?: import("../..").TenantApiOptions) => (variables: {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
}) => Promise<import("../../useTenantMutation").TenantMutationResponse<unknown, "KEY_NOT_FOUND">>;
|
|
20
|
+
export type DisableApiKeyMutationVariables = Parameters<ReturnType<typeof useDisableApiKeyMutation>>[0];
|
|
21
|
+
//# sourceMappingURL=useDisableApiKeyMutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDisableApiKeyMutation.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/mutations/apiKey/useDisableApiKeyMutation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAI7D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;EAMhC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;iGAA8C,CAAA;AACnF,MAAM,MAAM,8BAA8B,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/mutations/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as TenantApi from '@contember/graphql-client-tenant';
|
|
2
|
+
export declare const changeMyPasswordMutation: TenantApi.MutationFetcher<{
|
|
3
|
+
readonly mutation?: ({
|
|
4
|
+
readonly ok: boolean;
|
|
5
|
+
} & {
|
|
6
|
+
readonly error?: ({
|
|
7
|
+
readonly code: TenantApi.ChangeMyPasswordErrorCode;
|
|
8
|
+
} & {
|
|
9
|
+
readonly developerMessage: string;
|
|
10
|
+
}) | undefined;
|
|
11
|
+
}) | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
readonly currentPassword: string;
|
|
14
|
+
readonly newPassword: string;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const useChangeMyPasswordMutation: ({ headers, apiToken }?: import("../..").TenantApiOptions) => (variables: {
|
|
17
|
+
readonly currentPassword: string;
|
|
18
|
+
readonly newPassword: string;
|
|
19
|
+
}) => Promise<import("../../useTenantMutation").TenantMutationResponse<unknown, TenantApi.ChangeMyPasswordErrorCode>>;
|
|
20
|
+
export type ChangeMyPasswordMutationVariables = Parameters<ReturnType<typeof useChangeMyPasswordMutation>>[0];
|
|
21
|
+
//# sourceMappingURL=useChangeMyPasswordMutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChangeMyPasswordMutation.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/mutations/auth/useChangeMyPasswordMutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAG7D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;EAOnC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;qHAAiD,CAAA;AACzF,MAAM,MAAM,iCAAiC,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as TenantApi from '@contember/graphql-client-tenant';
|
|
2
|
+
import { ModelType } from 'graphql-ts-client-api';
|
|
3
|
+
declare const signInResultFragment: TenantApi.SignInResultFetcher<{
|
|
4
|
+
readonly token: string;
|
|
5
|
+
} & {
|
|
6
|
+
readonly person: {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
} & {
|
|
9
|
+
readonly email?: string | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
readonly name?: string | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
readonly otpEnabled: boolean;
|
|
14
|
+
};
|
|
15
|
+
}, {}>;
|
|
16
|
+
export type SignInMutationResult = ModelType<typeof signInResultFragment>;
|
|
17
|
+
export declare const signInMutation: TenantApi.MutationFetcher<{
|
|
18
|
+
readonly mutation?: ({
|
|
19
|
+
readonly ok: boolean;
|
|
20
|
+
} & {
|
|
21
|
+
readonly error?: ({
|
|
22
|
+
readonly code: TenantApi.SignInErrorCode;
|
|
23
|
+
} & {
|
|
24
|
+
readonly developerMessage: string;
|
|
25
|
+
} & {
|
|
26
|
+
readonly endUserMessage?: string | undefined;
|
|
27
|
+
}) | undefined;
|
|
28
|
+
} & {
|
|
29
|
+
readonly result?: ({
|
|
30
|
+
readonly token: string;
|
|
31
|
+
} & {
|
|
32
|
+
readonly person: {
|
|
33
|
+
readonly id: string;
|
|
34
|
+
} & {
|
|
35
|
+
readonly email?: string | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
readonly name?: string | undefined;
|
|
38
|
+
} & {
|
|
39
|
+
readonly otpEnabled: boolean;
|
|
40
|
+
};
|
|
41
|
+
}) | undefined;
|
|
42
|
+
}) | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
readonly email: string;
|
|
45
|
+
readonly password: string;
|
|
46
|
+
readonly expiration?: number | undefined;
|
|
47
|
+
readonly otpToken?: string | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const useSignInMutation: ({ headers, apiToken }?: import("../../useTenantApi").TenantApiOptions) => (variables: {
|
|
50
|
+
readonly email: string;
|
|
51
|
+
readonly password: string;
|
|
52
|
+
readonly expiration?: number | undefined;
|
|
53
|
+
readonly otpToken?: string | undefined;
|
|
54
|
+
}) => Promise<import("../../useTenantMutation").TenantMutationResponse<{
|
|
55
|
+
readonly token: string;
|
|
56
|
+
} & {
|
|
57
|
+
readonly person: {
|
|
58
|
+
readonly id: string;
|
|
59
|
+
} & {
|
|
60
|
+
readonly email?: string | undefined;
|
|
61
|
+
} & {
|
|
62
|
+
readonly name?: string | undefined;
|
|
63
|
+
} & {
|
|
64
|
+
readonly otpEnabled: boolean;
|
|
65
|
+
};
|
|
66
|
+
}, TenantApi.SignInErrorCode>>;
|
|
67
|
+
export type SignInMutationVariables = Parameters<ReturnType<typeof useSignInMutation>>[0];
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=useSignInMutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSignInMutation.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/mutations/auth/useSignInMutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,QAAA,MAAM,oBAAoB;;;;;;;;;;;;MAAsD,CAAA;AAEhF,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEzE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQzB,CAAA;AAGF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;8BAE5B,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as TenantApi from '@contember/graphql-client-tenant';
|
|
2
|
+
export declare const signOutMutation: TenantApi.MutationFetcher<{
|
|
3
|
+
readonly mutation?: ({
|
|
4
|
+
readonly ok: boolean;
|
|
5
|
+
} & {
|
|
6
|
+
readonly error?: ({
|
|
7
|
+
readonly code: TenantApi.SignOutErrorCode;
|
|
8
|
+
} & {
|
|
9
|
+
readonly developerMessage: string;
|
|
10
|
+
} & {
|
|
11
|
+
readonly endUserMessage?: string | undefined;
|
|
12
|
+
}) | undefined;
|
|
13
|
+
}) | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
readonly all?: boolean | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const useSignOutMutation: ({ headers, apiToken }?: import("../..").TenantApiOptions) => (variables: {
|
|
18
|
+
readonly all?: boolean | undefined;
|
|
19
|
+
}) => Promise<import("../../useTenantMutation").TenantMutationResponse<unknown, TenantApi.SignOutErrorCode>>;
|
|
20
|
+
export type SignOutMutationVariables = Parameters<ReturnType<typeof useSignOutMutation>>[0];
|
|
21
|
+
//# sourceMappingURL=useSignOutMutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSignOutMutation.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/mutations/auth/useSignOutMutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAG7D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;EAK3B,CAAA;AAED,eAAO,MAAM,kBAAkB;;4GAAwC,CAAA;AACvE,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|