@contember/react-client-tenant 2.2.0-alpha.2 → 2.2.0-alpha.5
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/CLAUDE.md +40 -0
- package/dist/development/index.cjs +123 -0
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +123 -0
- package/dist/development/index.js.map +1 -1
- package/dist/development/src/components/forms/AddProjectMemberForm.cjs +59 -0
- package/dist/development/src/components/forms/AddProjectMemberForm.cjs.map +1 -0
- package/dist/development/src/components/forms/AddProjectMemberForm.js +59 -0
- package/dist/development/src/components/forms/AddProjectMemberForm.js.map +1 -0
- package/dist/development/src/components/forms/ChangeMyProfileForm.cjs +58 -0
- package/dist/development/src/components/forms/ChangeMyProfileForm.cjs.map +1 -0
- package/dist/development/src/components/forms/ChangeMyProfileForm.js +58 -0
- package/dist/development/src/components/forms/ChangeMyProfileForm.js.map +1 -0
- package/dist/development/src/components/forms/ChangePasswordForm.cjs +57 -0
- package/dist/development/src/components/forms/ChangePasswordForm.cjs.map +1 -0
- package/dist/development/src/components/forms/ChangePasswordForm.js +57 -0
- package/dist/development/src/components/forms/ChangePasswordForm.js.map +1 -0
- package/dist/development/src/components/forms/ChangeProfileForm.cjs +54 -0
- package/dist/development/src/components/forms/ChangeProfileForm.cjs.map +1 -0
- package/dist/development/src/components/forms/ChangeProfileForm.js +54 -0
- package/dist/development/src/components/forms/ChangeProfileForm.js.map +1 -0
- package/dist/development/src/components/forms/CreateGlobalApiKeyForm.cjs +53 -0
- package/dist/development/src/components/forms/CreateGlobalApiKeyForm.cjs.map +1 -0
- package/dist/development/src/components/forms/CreateGlobalApiKeyForm.js +53 -0
- package/dist/development/src/components/forms/CreateGlobalApiKeyForm.js.map +1 -0
- package/dist/development/src/components/forms/EmailOtpConfirmForm.cjs +51 -0
- package/dist/development/src/components/forms/EmailOtpConfirmForm.cjs.map +1 -0
- package/dist/development/src/components/forms/EmailOtpConfirmForm.js +51 -0
- package/dist/development/src/components/forms/EmailOtpConfirmForm.js.map +1 -0
- package/dist/development/src/components/forms/InviteForm.cjs +23 -3
- package/dist/development/src/components/forms/InviteForm.cjs.map +1 -1
- package/dist/development/src/components/forms/InviteForm.js +23 -3
- package/dist/development/src/components/forms/InviteForm.js.map +1 -1
- package/dist/development/src/components/forms/LoginForm.cjs +5 -3
- package/dist/development/src/components/forms/LoginForm.cjs.map +1 -1
- package/dist/development/src/components/forms/LoginForm.js +5 -3
- package/dist/development/src/components/forms/LoginForm.js.map +1 -1
- package/dist/development/src/components/forms/PasswordlessSignInForm.cjs +5 -3
- package/dist/development/src/components/forms/PasswordlessSignInForm.cjs.map +1 -1
- package/dist/development/src/components/forms/PasswordlessSignInForm.js +5 -3
- package/dist/development/src/components/forms/PasswordlessSignInForm.js.map +1 -1
- package/dist/development/src/components/forms/SetProjectSecretForm.cjs +53 -0
- package/dist/development/src/components/forms/SetProjectSecretForm.cjs.map +1 -0
- package/dist/development/src/components/forms/SetProjectSecretForm.js +53 -0
- package/dist/development/src/components/forms/SetProjectSecretForm.js.map +1 -0
- package/dist/development/src/components/forms/SignUpForm.cjs +66 -0
- package/dist/development/src/components/forms/SignUpForm.cjs.map +1 -0
- package/dist/development/src/components/forms/SignUpForm.js +66 -0
- package/dist/development/src/components/forms/SignUpForm.js.map +1 -0
- package/dist/development/src/components/forms/TenantForm.cjs +8 -4
- package/dist/development/src/components/forms/TenantForm.cjs.map +1 -1
- package/dist/development/src/components/forms/TenantForm.js +8 -4
- package/dist/development/src/components/forms/TenantForm.js.map +1 -1
- package/dist/development/src/components/triggers/DisableEmailOtpTrigger.cjs +32 -0
- package/dist/development/src/components/triggers/DisableEmailOtpTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/DisableEmailOtpTrigger.js +32 -0
- package/dist/development/src/components/triggers/DisableEmailOtpTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/DisableMyPasswordlessTrigger.cjs +32 -0
- package/dist/development/src/components/triggers/DisableMyPasswordlessTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/DisableMyPasswordlessTrigger.js +32 -0
- package/dist/development/src/components/triggers/DisableMyPasswordlessTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/DisableOtpTrigger.cjs +1 -1
- package/dist/development/src/components/triggers/DisableOtpTrigger.cjs.map +1 -1
- package/dist/development/src/components/triggers/DisableOtpTrigger.js +1 -1
- package/dist/development/src/components/triggers/DisableOtpTrigger.js.map +1 -1
- package/dist/development/src/components/triggers/DisablePersonTrigger.cjs +17 -0
- package/dist/development/src/components/triggers/DisablePersonTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/DisablePersonTrigger.js +17 -0
- package/dist/development/src/components/triggers/DisablePersonTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/EnableMyPasswordlessTrigger.cjs +32 -0
- package/dist/development/src/components/triggers/EnableMyPasswordlessTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/EnableMyPasswordlessTrigger.js +32 -0
- package/dist/development/src/components/triggers/EnableMyPasswordlessTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/EnablePersonTrigger.cjs +17 -0
- package/dist/development/src/components/triggers/EnablePersonTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/EnablePersonTrigger.js +17 -0
- package/dist/development/src/components/triggers/EnablePersonTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/ForceSignOutPersonTrigger.cjs +17 -0
- package/dist/development/src/components/triggers/ForceSignOutPersonTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/ForceSignOutPersonTrigger.js +17 -0
- package/dist/development/src/components/triggers/ForceSignOutPersonTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/InitEmailOtpTrigger.cjs +16 -0
- package/dist/development/src/components/triggers/InitEmailOtpTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/InitEmailOtpTrigger.js +16 -0
- package/dist/development/src/components/triggers/InitEmailOtpTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/RegenerateBackupCodesTrigger.cjs +26 -0
- package/dist/development/src/components/triggers/RegenerateBackupCodesTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/RegenerateBackupCodesTrigger.js +26 -0
- package/dist/development/src/components/triggers/RegenerateBackupCodesTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.cjs +1 -1
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -1
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.js +1 -1
- package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.js.map +1 -1
- package/dist/development/src/components/triggers/ResetPersonMfaTrigger.cjs +17 -0
- package/dist/development/src/components/triggers/ResetPersonMfaTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/ResetPersonMfaTrigger.js +17 -0
- package/dist/development/src/components/triggers/ResetPersonMfaTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/RevokeSessionTrigger.cjs +17 -0
- package/dist/development/src/components/triggers/RevokeSessionTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/RevokeSessionTrigger.js +17 -0
- package/dist/development/src/components/triggers/RevokeSessionTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/TenantActionTrigger.cjs +7 -3
- package/dist/development/src/components/triggers/TenantActionTrigger.cjs.map +1 -1
- package/dist/development/src/components/triggers/TenantActionTrigger.js +7 -3
- package/dist/development/src/components/triggers/TenantActionTrigger.js.map +1 -1
- package/dist/development/src/hooks/mutations/auth/useSignUpMutation.cjs +30 -0
- package/dist/development/src/hooks/mutations/auth/useSignUpMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/auth/useSignUpMutation.js +13 -0
- package/dist/development/src/hooks/mutations/auth/useSignUpMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.cjs +30 -0
- package/dist/development/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.js +13 -0
- package/dist/development/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.js +12 -0
- package/dist/development/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.js +12 -0
- package/dist/development/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.cjs +30 -0
- package/dist/development/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.js +13 -0
- package/dist/development/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.cjs +30 -0
- package/dist/development/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.js +13 -0
- package/dist/development/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.js +12 -0
- package/dist/development/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/invite/useUnmanagedInviteMutation.cjs +30 -0
- package/dist/development/src/hooks/mutations/invite/useUnmanagedInviteMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/invite/useUnmanagedInviteMutation.js +13 -0
- package/dist/development/src/hooks/mutations/invite/useUnmanagedInviteMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.cjs +30 -0
- package/dist/development/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.js +13 -0
- package/dist/development/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/person/useChangePasswordMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/person/useChangePasswordMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/person/useChangePasswordMutation.js +12 -0
- package/dist/development/src/hooks/mutations/person/useChangePasswordMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/person/useDisablePersonMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/person/useDisablePersonMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/person/useDisablePersonMutation.js +12 -0
- package/dist/development/src/hooks/mutations/person/useDisablePersonMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/person/useEnablePersonMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/person/useEnablePersonMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/person/useEnablePersonMutation.js +12 -0
- package/dist/development/src/hooks/mutations/person/useEnablePersonMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/person/useForceSignOutPersonMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/person/useForceSignOutPersonMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/person/useForceSignOutPersonMutation.js +12 -0
- package/dist/development/src/hooks/mutations/person/useForceSignOutPersonMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/person/useResetPersonMfaMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/person/useResetPersonMfaMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/person/useResetPersonMfaMutation.js +12 -0
- package/dist/development/src/hooks/mutations/person/useResetPersonMfaMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/project/useSetProjectSecretMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/project/useSetProjectSecretMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/project/useSetProjectSecretMutation.js +12 -0
- package/dist/development/src/hooks/mutations/project/useSetProjectSecretMutation.js.map +1 -0
- package/dist/development/src/hooks/mutations/session/useRevokeSessionMutation.cjs +29 -0
- package/dist/development/src/hooks/mutations/session/useRevokeSessionMutation.cjs.map +1 -0
- package/dist/development/src/hooks/mutations/session/useRevokeSessionMutation.js +12 -0
- package/dist/development/src/hooks/mutations/session/useRevokeSessionMutation.js.map +1 -0
- package/dist/development/src/hooks/queries/useAuthLogQuery.cjs +39 -0
- package/dist/development/src/hooks/queries/useAuthLogQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useAuthLogQuery.js +22 -0
- package/dist/development/src/hooks/queries/useAuthLogQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/useAuthPoliciesQuery.cjs +32 -0
- package/dist/development/src/hooks/queries/useAuthPoliciesQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useAuthPoliciesQuery.js +15 -0
- package/dist/development/src/hooks/queries/useAuthPoliciesQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/useConfigurationQuery.cjs +33 -0
- package/dist/development/src/hooks/queries/useConfigurationQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useConfigurationQuery.js +16 -0
- package/dist/development/src/hooks/queries/useConfigurationQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/useGlobalApiKeysQuery.cjs +32 -0
- package/dist/development/src/hooks/queries/useGlobalApiKeysQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useGlobalApiKeysQuery.js +15 -0
- package/dist/development/src/hooks/queries/useGlobalApiKeysQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/useIdentityProvidersQuery.cjs +32 -0
- package/dist/development/src/hooks/queries/useIdentityProvidersQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useIdentityProvidersQuery.js +15 -0
- package/dist/development/src/hooks/queries/useIdentityProvidersQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/useMailTemplatesQuery.cjs +32 -0
- package/dist/development/src/hooks/queries/useMailTemplatesQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useMailTemplatesQuery.js +15 -0
- package/dist/development/src/hooks/queries/useMailTemplatesQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/useMeQuery.cjs +4 -2
- package/dist/development/src/hooks/queries/useMeQuery.cjs.map +1 -1
- package/dist/development/src/hooks/queries/useMeQuery.js +4 -2
- package/dist/development/src/hooks/queries/useMeQuery.js.map +1 -1
- package/dist/development/src/hooks/queries/useMyIdentityProvidersQuery.cjs +38 -0
- package/dist/development/src/hooks/queries/useMyIdentityProvidersQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useMyIdentityProvidersQuery.js +21 -0
- package/dist/development/src/hooks/queries/useMyIdentityProvidersQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/useMySessionsQuery.cjs +34 -0
- package/dist/development/src/hooks/queries/useMySessionsQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useMySessionsQuery.js +17 -0
- package/dist/development/src/hooks/queries/useMySessionsQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/usePersonQuery.cjs +40 -0
- package/dist/development/src/hooks/queries/usePersonQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/usePersonQuery.js +23 -0
- package/dist/development/src/hooks/queries/usePersonQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/usePersonSessionsQuery.cjs +39 -0
- package/dist/development/src/hooks/queries/usePersonSessionsQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/usePersonSessionsQuery.js +22 -0
- package/dist/development/src/hooks/queries/usePersonSessionsQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/usePersonsQuery.cjs +45 -0
- package/dist/development/src/hooks/queries/usePersonsQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/usePersonsQuery.js +28 -0
- package/dist/development/src/hooks/queries/usePersonsQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/useProjectApiKeysQuery.cjs +49 -0
- package/dist/development/src/hooks/queries/useProjectApiKeysQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useProjectApiKeysQuery.js +32 -0
- package/dist/development/src/hooks/queries/useProjectApiKeysQuery.js.map +1 -0
- package/dist/development/src/hooks/queries/useProjectMembersQuery.cjs +1 -1
- package/dist/development/src/hooks/queries/useProjectMembersQuery.cjs.map +1 -1
- package/dist/development/src/hooks/queries/useProjectMembersQuery.js +1 -1
- package/dist/development/src/hooks/queries/useProjectMembersQuery.js.map +1 -1
- package/dist/development/src/hooks/queries/useProjectSecretsQuery.cjs +45 -0
- package/dist/development/src/hooks/queries/useProjectSecretsQuery.cjs.map +1 -0
- package/dist/development/src/hooks/queries/useProjectSecretsQuery.js +28 -0
- package/dist/development/src/hooks/queries/useProjectSecretsQuery.js.map +1 -0
- package/dist/development/src/hooks/useFetchIdentity.cjs +17 -3
- package/dist/development/src/hooks/useFetchIdentity.cjs.map +1 -1
- package/dist/development/src/hooks/useFetchIdentity.js +17 -3
- package/dist/development/src/hooks/useFetchIdentity.js.map +1 -1
- package/dist/development/src/types/forbidden.cjs +16 -0
- package/dist/development/src/types/forbidden.cjs.map +1 -0
- package/dist/development/src/types/forbidden.js +16 -0
- package/dist/development/src/types/forbidden.js.map +1 -0
- package/dist/production/index.cjs +123 -0
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.js +123 -0
- package/dist/production/index.js.map +1 -1
- package/dist/production/src/components/forms/AddProjectMemberForm.cjs +51 -0
- package/dist/production/src/components/forms/AddProjectMemberForm.cjs.map +1 -0
- package/dist/production/src/components/forms/AddProjectMemberForm.js +51 -0
- package/dist/production/src/components/forms/AddProjectMemberForm.js.map +1 -0
- package/dist/production/src/components/forms/ChangeMyProfileForm.cjs +50 -0
- package/dist/production/src/components/forms/ChangeMyProfileForm.cjs.map +1 -0
- package/dist/production/src/components/forms/ChangeMyProfileForm.js +50 -0
- package/dist/production/src/components/forms/ChangeMyProfileForm.js.map +1 -0
- package/dist/production/src/components/forms/ChangePasswordForm.cjs +49 -0
- package/dist/production/src/components/forms/ChangePasswordForm.cjs.map +1 -0
- package/dist/production/src/components/forms/ChangePasswordForm.js +49 -0
- package/dist/production/src/components/forms/ChangePasswordForm.js.map +1 -0
- package/dist/production/src/components/forms/ChangeProfileForm.cjs +46 -0
- package/dist/production/src/components/forms/ChangeProfileForm.cjs.map +1 -0
- package/dist/production/src/components/forms/ChangeProfileForm.js +46 -0
- package/dist/production/src/components/forms/ChangeProfileForm.js.map +1 -0
- package/dist/production/src/components/forms/CreateGlobalApiKeyForm.cjs +45 -0
- package/dist/production/src/components/forms/CreateGlobalApiKeyForm.cjs.map +1 -0
- package/dist/production/src/components/forms/CreateGlobalApiKeyForm.js +45 -0
- package/dist/production/src/components/forms/CreateGlobalApiKeyForm.js.map +1 -0
- package/dist/production/src/components/forms/EmailOtpConfirmForm.cjs +43 -0
- package/dist/production/src/components/forms/EmailOtpConfirmForm.cjs.map +1 -0
- package/dist/production/src/components/forms/EmailOtpConfirmForm.js +43 -0
- package/dist/production/src/components/forms/EmailOtpConfirmForm.js.map +1 -0
- package/dist/production/src/components/forms/InviteForm.cjs +22 -2
- package/dist/production/src/components/forms/InviteForm.cjs.map +1 -1
- package/dist/production/src/components/forms/InviteForm.js +22 -2
- package/dist/production/src/components/forms/InviteForm.js.map +1 -1
- package/dist/production/src/components/forms/LoginForm.cjs +4 -2
- package/dist/production/src/components/forms/LoginForm.cjs.map +1 -1
- package/dist/production/src/components/forms/LoginForm.js +4 -2
- package/dist/production/src/components/forms/LoginForm.js.map +1 -1
- package/dist/production/src/components/forms/PasswordlessSignInForm.cjs +4 -2
- package/dist/production/src/components/forms/PasswordlessSignInForm.cjs.map +1 -1
- package/dist/production/src/components/forms/PasswordlessSignInForm.js +4 -2
- package/dist/production/src/components/forms/PasswordlessSignInForm.js.map +1 -1
- package/dist/production/src/components/forms/SetProjectSecretForm.cjs +45 -0
- package/dist/production/src/components/forms/SetProjectSecretForm.cjs.map +1 -0
- package/dist/production/src/components/forms/SetProjectSecretForm.js +45 -0
- package/dist/production/src/components/forms/SetProjectSecretForm.js.map +1 -0
- package/dist/production/src/components/forms/SignUpForm.cjs +58 -0
- package/dist/production/src/components/forms/SignUpForm.cjs.map +1 -0
- package/dist/production/src/components/forms/SignUpForm.js +58 -0
- package/dist/production/src/components/forms/SignUpForm.js.map +1 -0
- package/dist/production/src/components/forms/TenantForm.cjs +6 -2
- package/dist/production/src/components/forms/TenantForm.cjs.map +1 -1
- package/dist/production/src/components/forms/TenantForm.js +6 -2
- package/dist/production/src/components/forms/TenantForm.js.map +1 -1
- package/dist/production/src/components/triggers/DisableEmailOtpTrigger.cjs +24 -0
- package/dist/production/src/components/triggers/DisableEmailOtpTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/DisableEmailOtpTrigger.js +24 -0
- package/dist/production/src/components/triggers/DisableEmailOtpTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/DisableMyPasswordlessTrigger.cjs +24 -0
- package/dist/production/src/components/triggers/DisableMyPasswordlessTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/DisableMyPasswordlessTrigger.js +24 -0
- package/dist/production/src/components/triggers/DisableMyPasswordlessTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/DisableOtpTrigger.cjs.map +1 -1
- package/dist/production/src/components/triggers/DisableOtpTrigger.js.map +1 -1
- package/dist/production/src/components/triggers/DisablePersonTrigger.cjs +13 -0
- package/dist/production/src/components/triggers/DisablePersonTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/DisablePersonTrigger.js +13 -0
- package/dist/production/src/components/triggers/DisablePersonTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/EnableMyPasswordlessTrigger.cjs +24 -0
- package/dist/production/src/components/triggers/EnableMyPasswordlessTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/EnableMyPasswordlessTrigger.js +24 -0
- package/dist/production/src/components/triggers/EnableMyPasswordlessTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/EnablePersonTrigger.cjs +13 -0
- package/dist/production/src/components/triggers/EnablePersonTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/EnablePersonTrigger.js +13 -0
- package/dist/production/src/components/triggers/EnablePersonTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/ForceSignOutPersonTrigger.cjs +13 -0
- package/dist/production/src/components/triggers/ForceSignOutPersonTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/ForceSignOutPersonTrigger.js +13 -0
- package/dist/production/src/components/triggers/ForceSignOutPersonTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/InitEmailOtpTrigger.cjs +12 -0
- package/dist/production/src/components/triggers/InitEmailOtpTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/InitEmailOtpTrigger.js +12 -0
- package/dist/production/src/components/triggers/InitEmailOtpTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/RegenerateBackupCodesTrigger.cjs +18 -0
- package/dist/production/src/components/triggers/RegenerateBackupCodesTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/RegenerateBackupCodesTrigger.js +18 -0
- package/dist/production/src/components/triggers/RegenerateBackupCodesTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -1
- package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.js.map +1 -1
- package/dist/production/src/components/triggers/ResetPersonMfaTrigger.cjs +13 -0
- package/dist/production/src/components/triggers/ResetPersonMfaTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/ResetPersonMfaTrigger.js +13 -0
- package/dist/production/src/components/triggers/ResetPersonMfaTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/RevokeSessionTrigger.cjs +13 -0
- package/dist/production/src/components/triggers/RevokeSessionTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/RevokeSessionTrigger.js +13 -0
- package/dist/production/src/components/triggers/RevokeSessionTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/TenantActionTrigger.cjs +6 -2
- package/dist/production/src/components/triggers/TenantActionTrigger.cjs.map +1 -1
- package/dist/production/src/components/triggers/TenantActionTrigger.js +6 -2
- package/dist/production/src/components/triggers/TenantActionTrigger.js.map +1 -1
- package/dist/production/src/hooks/mutations/auth/useSignUpMutation.cjs +30 -0
- package/dist/production/src/hooks/mutations/auth/useSignUpMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/auth/useSignUpMutation.js +13 -0
- package/dist/production/src/hooks/mutations/auth/useSignUpMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.cjs +30 -0
- package/dist/production/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.js +13 -0
- package/dist/production/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.js +12 -0
- package/dist/production/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.js +12 -0
- package/dist/production/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.cjs +30 -0
- package/dist/production/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.js +13 -0
- package/dist/production/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.cjs +30 -0
- package/dist/production/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.js +13 -0
- package/dist/production/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.js +12 -0
- package/dist/production/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/invite/useUnmanagedInviteMutation.cjs +30 -0
- package/dist/production/src/hooks/mutations/invite/useUnmanagedInviteMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/invite/useUnmanagedInviteMutation.js +13 -0
- package/dist/production/src/hooks/mutations/invite/useUnmanagedInviteMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.cjs +30 -0
- package/dist/production/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.js +13 -0
- package/dist/production/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/person/useChangePasswordMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/person/useChangePasswordMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/person/useChangePasswordMutation.js +12 -0
- package/dist/production/src/hooks/mutations/person/useChangePasswordMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/person/useDisablePersonMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/person/useDisablePersonMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/person/useDisablePersonMutation.js +12 -0
- package/dist/production/src/hooks/mutations/person/useDisablePersonMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/person/useEnablePersonMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/person/useEnablePersonMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/person/useEnablePersonMutation.js +12 -0
- package/dist/production/src/hooks/mutations/person/useEnablePersonMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/person/useForceSignOutPersonMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/person/useForceSignOutPersonMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/person/useForceSignOutPersonMutation.js +12 -0
- package/dist/production/src/hooks/mutations/person/useForceSignOutPersonMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/person/useResetPersonMfaMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/person/useResetPersonMfaMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/person/useResetPersonMfaMutation.js +12 -0
- package/dist/production/src/hooks/mutations/person/useResetPersonMfaMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/project/useSetProjectSecretMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/project/useSetProjectSecretMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/project/useSetProjectSecretMutation.js +12 -0
- package/dist/production/src/hooks/mutations/project/useSetProjectSecretMutation.js.map +1 -0
- package/dist/production/src/hooks/mutations/session/useRevokeSessionMutation.cjs +29 -0
- package/dist/production/src/hooks/mutations/session/useRevokeSessionMutation.cjs.map +1 -0
- package/dist/production/src/hooks/mutations/session/useRevokeSessionMutation.js +12 -0
- package/dist/production/src/hooks/mutations/session/useRevokeSessionMutation.js.map +1 -0
- package/dist/production/src/hooks/queries/useAuthLogQuery.cjs +39 -0
- package/dist/production/src/hooks/queries/useAuthLogQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useAuthLogQuery.js +22 -0
- package/dist/production/src/hooks/queries/useAuthLogQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/useAuthPoliciesQuery.cjs +32 -0
- package/dist/production/src/hooks/queries/useAuthPoliciesQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useAuthPoliciesQuery.js +15 -0
- package/dist/production/src/hooks/queries/useAuthPoliciesQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/useConfigurationQuery.cjs +33 -0
- package/dist/production/src/hooks/queries/useConfigurationQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useConfigurationQuery.js +16 -0
- package/dist/production/src/hooks/queries/useConfigurationQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/useGlobalApiKeysQuery.cjs +32 -0
- package/dist/production/src/hooks/queries/useGlobalApiKeysQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useGlobalApiKeysQuery.js +15 -0
- package/dist/production/src/hooks/queries/useGlobalApiKeysQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/useIdentityProvidersQuery.cjs +32 -0
- package/dist/production/src/hooks/queries/useIdentityProvidersQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useIdentityProvidersQuery.js +15 -0
- package/dist/production/src/hooks/queries/useIdentityProvidersQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/useMailTemplatesQuery.cjs +32 -0
- package/dist/production/src/hooks/queries/useMailTemplatesQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useMailTemplatesQuery.js +15 -0
- package/dist/production/src/hooks/queries/useMailTemplatesQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/useMeQuery.cjs +4 -2
- package/dist/production/src/hooks/queries/useMeQuery.cjs.map +1 -1
- package/dist/production/src/hooks/queries/useMeQuery.js +4 -2
- package/dist/production/src/hooks/queries/useMeQuery.js.map +1 -1
- package/dist/production/src/hooks/queries/useMyIdentityProvidersQuery.cjs +38 -0
- package/dist/production/src/hooks/queries/useMyIdentityProvidersQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useMyIdentityProvidersQuery.js +21 -0
- package/dist/production/src/hooks/queries/useMyIdentityProvidersQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/useMySessionsQuery.cjs +34 -0
- package/dist/production/src/hooks/queries/useMySessionsQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useMySessionsQuery.js +17 -0
- package/dist/production/src/hooks/queries/useMySessionsQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/usePersonQuery.cjs +40 -0
- package/dist/production/src/hooks/queries/usePersonQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/usePersonQuery.js +23 -0
- package/dist/production/src/hooks/queries/usePersonQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/usePersonSessionsQuery.cjs +39 -0
- package/dist/production/src/hooks/queries/usePersonSessionsQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/usePersonSessionsQuery.js +22 -0
- package/dist/production/src/hooks/queries/usePersonSessionsQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/usePersonsQuery.cjs +45 -0
- package/dist/production/src/hooks/queries/usePersonsQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/usePersonsQuery.js +28 -0
- package/dist/production/src/hooks/queries/usePersonsQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/useProjectApiKeysQuery.cjs +49 -0
- package/dist/production/src/hooks/queries/useProjectApiKeysQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useProjectApiKeysQuery.js +32 -0
- package/dist/production/src/hooks/queries/useProjectApiKeysQuery.js.map +1 -0
- package/dist/production/src/hooks/queries/useProjectMembersQuery.cjs +1 -1
- package/dist/production/src/hooks/queries/useProjectMembersQuery.cjs.map +1 -1
- package/dist/production/src/hooks/queries/useProjectMembersQuery.js +1 -1
- package/dist/production/src/hooks/queries/useProjectMembersQuery.js.map +1 -1
- package/dist/production/src/hooks/queries/useProjectSecretsQuery.cjs +45 -0
- package/dist/production/src/hooks/queries/useProjectSecretsQuery.cjs.map +1 -0
- package/dist/production/src/hooks/queries/useProjectSecretsQuery.js +28 -0
- package/dist/production/src/hooks/queries/useProjectSecretsQuery.js.map +1 -0
- package/dist/production/src/hooks/useFetchIdentity.cjs +17 -3
- package/dist/production/src/hooks/useFetchIdentity.cjs.map +1 -1
- package/dist/production/src/hooks/useFetchIdentity.js +17 -3
- package/dist/production/src/hooks/useFetchIdentity.js.map +1 -1
- package/dist/production/src/types/forbidden.cjs +16 -0
- package/dist/production/src/types/forbidden.cjs.map +1 -0
- package/dist/production/src/types/forbidden.js +16 -0
- package/dist/production/src/types/forbidden.js.map +1 -0
- package/dist/types/components/IdentityState.d.ts.map +1 -1
- package/dist/types/components/forms/AddProjectMemberForm.d.ts +20 -0
- package/dist/types/components/forms/AddProjectMemberForm.d.ts.map +1 -0
- package/dist/types/components/forms/ChangeMyPasswordForm.d.ts.map +1 -1
- package/dist/types/components/forms/ChangeMyProfileForm.d.ts +20 -0
- package/dist/types/components/forms/ChangeMyProfileForm.d.ts.map +1 -0
- package/dist/types/components/forms/ChangePasswordForm.d.ts +19 -0
- package/dist/types/components/forms/ChangePasswordForm.d.ts.map +1 -0
- package/dist/types/components/forms/ChangeProfileForm.d.ts +21 -0
- package/dist/types/components/forms/ChangeProfileForm.d.ts.map +1 -0
- package/dist/types/components/forms/ConfirmEmailChangeForm.d.ts.map +1 -1
- package/dist/types/components/forms/CreateApiKeyForm.d.ts.map +1 -1
- package/dist/types/components/forms/CreateGlobalApiKeyForm.d.ts +22 -0
- package/dist/types/components/forms/CreateGlobalApiKeyForm.d.ts.map +1 -0
- package/dist/types/components/forms/CreateSessionTokenForm.d.ts.map +1 -1
- package/dist/types/components/forms/EmailOtpConfirmForm.d.ts +21 -0
- package/dist/types/components/forms/EmailOtpConfirmForm.d.ts.map +1 -0
- package/dist/types/components/forms/InviteForm.d.ts +12 -1
- package/dist/types/components/forms/InviteForm.d.ts.map +1 -1
- package/dist/types/components/forms/LoginForm.d.ts +2 -0
- package/dist/types/components/forms/LoginForm.d.ts.map +1 -1
- package/dist/types/components/forms/OtpConfirmForm.d.ts.map +1 -1
- package/dist/types/components/forms/OtpPrepareForm.d.ts.map +1 -1
- package/dist/types/components/forms/PasswordResetForm.d.ts.map +1 -1
- package/dist/types/components/forms/PasswordResetRequestForm.d.ts.map +1 -1
- package/dist/types/components/forms/PasswordlessSignInForm.d.ts +2 -0
- package/dist/types/components/forms/PasswordlessSignInForm.d.ts.map +1 -1
- package/dist/types/components/forms/PasswordlessSignInInitForm.d.ts.map +1 -1
- package/dist/types/components/forms/RequestEmailVerificationForm.d.ts.map +1 -1
- package/dist/types/components/forms/SetProjectSecretForm.d.ts +19 -0
- package/dist/types/components/forms/SetProjectSecretForm.d.ts.map +1 -0
- package/dist/types/components/forms/SignUpForm.d.ts +31 -0
- package/dist/types/components/forms/SignUpForm.d.ts.map +1 -0
- package/dist/types/components/forms/TenantForm.d.ts.map +1 -1
- package/dist/types/components/forms/UpdateProjectMemberForm.d.ts.map +1 -1
- package/dist/types/components/forms/VerifyEmailForm.d.ts.map +1 -1
- package/dist/types/components/forms/index.d.ts +8 -0
- package/dist/types/components/forms/index.d.ts.map +1 -1
- package/dist/types/components/idp/IDP.d.ts.map +1 -1
- package/dist/types/components/idp/IDPInitTrigger.d.ts.map +1 -1
- package/dist/types/components/idp/IDPState.d.ts.map +1 -1
- package/dist/types/components/triggers/DisableEmailOtpTrigger.d.ts +10 -0
- package/dist/types/components/triggers/DisableEmailOtpTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/DisableMyPasswordlessTrigger.d.ts +10 -0
- package/dist/types/components/triggers/DisableMyPasswordlessTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/DisableOtpTrigger.d.ts +3 -1
- package/dist/types/components/triggers/DisableOtpTrigger.d.ts.map +1 -1
- package/dist/types/components/triggers/DisablePersonTrigger.d.ts +11 -0
- package/dist/types/components/triggers/DisablePersonTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/EnableMyPasswordlessTrigger.d.ts +10 -0
- package/dist/types/components/triggers/EnableMyPasswordlessTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/EnablePersonTrigger.d.ts +11 -0
- package/dist/types/components/triggers/EnablePersonTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/ForceSignOutPersonTrigger.d.ts +11 -0
- package/dist/types/components/triggers/ForceSignOutPersonTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/InitEmailOtpTrigger.d.ts +10 -0
- package/dist/types/components/triggers/InitEmailOtpTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/LogoutTrigger.d.ts.map +1 -1
- package/dist/types/components/triggers/RegenerateBackupCodesTrigger.d.ts +14 -0
- package/dist/types/components/triggers/RegenerateBackupCodesTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts +3 -1
- package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts.map +1 -1
- package/dist/types/components/triggers/ResetPersonMfaTrigger.d.ts +11 -0
- package/dist/types/components/triggers/ResetPersonMfaTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/RevokeSessionTrigger.d.ts +11 -0
- package/dist/types/components/triggers/RevokeSessionTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/TenantActionTrigger.d.ts +7 -4
- package/dist/types/components/triggers/TenantActionTrigger.d.ts.map +1 -1
- package/dist/types/components/triggers/index.d.ts +11 -0
- package/dist/types/components/triggers/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/auth/index.d.ts +1 -0
- package/dist/types/hooks/mutations/auth/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/auth/useSignUpMutation.d.ts +95 -0
- package/dist/types/hooks/mutations/auth/useSignUpMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/emailOtp/index.d.ts +4 -0
- package/dist/types/hooks/mutations/emailOtp/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.d.ts +31 -0
- package/dist/types/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/emailOtp/useDisableEmailOtpMutation.d.ts +15 -0
- package/dist/types/hooks/mutations/emailOtp/useDisableEmailOtpMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/emailOtp/useInitEmailOtpMutation.d.ts +15 -0
- package/dist/types/hooks/mutations/emailOtp/useInitEmailOtpMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/identity/index.d.ts +3 -0
- package/dist/types/hooks/mutations/identity/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.d.ts +51 -0
- package/dist/types/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.d.ts +51 -0
- package/dist/types/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/idp/index.d.ts +1 -0
- package/dist/types/hooks/mutations/idp/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.d.ts +19 -0
- package/dist/types/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/index.d.ts +5 -0
- package/dist/types/hooks/mutations/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/invite/index.d.ts +1 -0
- package/dist/types/hooks/mutations/invite/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/invite/useUnmanagedInviteMutation.d.ts +104 -0
- package/dist/types/hooks/mutations/invite/useUnmanagedInviteMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/otp/index.d.ts +1 -0
- package/dist/types/hooks/mutations/otp/index.d.ts.map +1 -1
- package/dist/types/hooks/mutations/otp/useRegenerateBackupCodesMutation.d.ts +27 -0
- package/dist/types/hooks/mutations/otp/useRegenerateBackupCodesMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/person/index.d.ts +6 -0
- package/dist/types/hooks/mutations/person/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/person/useChangePasswordMutation.d.ts +25 -0
- package/dist/types/hooks/mutations/person/useChangePasswordMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/person/useDisablePersonMutation.d.ts +19 -0
- package/dist/types/hooks/mutations/person/useDisablePersonMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/person/useEnablePersonMutation.d.ts +19 -0
- package/dist/types/hooks/mutations/person/useEnablePersonMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/person/useForceSignOutPersonMutation.d.ts +21 -0
- package/dist/types/hooks/mutations/person/useForceSignOutPersonMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/person/useResetPersonMfaMutation.d.ts +19 -0
- package/dist/types/hooks/mutations/person/useResetPersonMfaMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/project/index.d.ts +2 -0
- package/dist/types/hooks/mutations/project/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/project/useSetProjectSecretMutation.d.ts +23 -0
- package/dist/types/hooks/mutations/project/useSetProjectSecretMutation.d.ts.map +1 -0
- package/dist/types/hooks/mutations/session/index.d.ts +2 -0
- package/dist/types/hooks/mutations/session/index.d.ts.map +1 -0
- package/dist/types/hooks/mutations/session/useRevokeSessionMutation.d.ts +19 -0
- package/dist/types/hooks/mutations/session/useRevokeSessionMutation.d.ts.map +1 -0
- package/dist/types/hooks/queries/index.d.ts +13 -0
- package/dist/types/hooks/queries/index.d.ts.map +1 -1
- package/dist/types/hooks/queries/useAuthLogQuery.d.ts +48 -0
- package/dist/types/hooks/queries/useAuthLogQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useAuthPoliciesQuery.d.ts +35 -0
- package/dist/types/hooks/queries/useAuthPoliciesQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useConfigurationQuery.d.ts +139 -0
- package/dist/types/hooks/queries/useConfigurationQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useGlobalApiKeysQuery.d.ts +30 -0
- package/dist/types/hooks/queries/useGlobalApiKeysQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useIdentityProvidersQuery.d.ts +41 -0
- package/dist/types/hooks/queries/useIdentityProvidersQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useMailTemplatesQuery.d.ts +30 -0
- package/dist/types/hooks/queries/useMailTemplatesQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useMeQuery.d.ts +42 -0
- package/dist/types/hooks/queries/useMeQuery.d.ts.map +1 -1
- package/dist/types/hooks/queries/useMyIdentityProvidersQuery.d.ts +22 -0
- package/dist/types/hooks/queries/useMyIdentityProvidersQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useMySessionsQuery.d.ts +28 -0
- package/dist/types/hooks/queries/useMySessionsQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/usePersonQuery.d.ts +99 -0
- package/dist/types/hooks/queries/usePersonQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/usePersonSessionsQuery.d.ts +31 -0
- package/dist/types/hooks/queries/usePersonSessionsQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/usePersonsQuery.d.ts +41 -0
- package/dist/types/hooks/queries/usePersonsQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useProjectApiKeysQuery.d.ts +55 -0
- package/dist/types/hooks/queries/useProjectApiKeysQuery.d.ts.map +1 -0
- package/dist/types/hooks/queries/useProjectMembersQuery.d.ts +4 -0
- package/dist/types/hooks/queries/useProjectMembersQuery.d.ts.map +1 -1
- package/dist/types/hooks/queries/useProjectMembershipsQuery.d.ts.map +1 -1
- package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts +19 -19
- package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts.map +1 -1
- package/dist/types/hooks/queries/useProjectSecretsQuery.d.ts +17 -0
- package/dist/types/hooks/queries/useProjectSecretsQuery.d.ts.map +1 -0
- package/dist/types/hooks/useFetchIdentity.d.ts.map +1 -1
- package/dist/types/hooks/useLogout.d.ts.map +1 -1
- package/dist/types/hooks/usePasswordlessOtpActivator.d.ts.map +1 -1
- package/dist/types/hooks/useTenantApi.d.ts +1 -1
- package/dist/types/hooks/useTenantApi.d.ts.map +1 -1
- package/dist/types/hooks/useTenantMutation.d.ts.map +1 -1
- package/dist/types/hooks/useTenantQueryLoader.d.ts.map +1 -1
- package/dist/types/internal/hooks/useHandleIDPResponse.d.ts.map +1 -1
- package/dist/types/internal/hooks/useInitIDPRedirect.d.ts.map +1 -1
- package/dist/types/internal/hooks/useLogoutInternal.d.ts.map +1 -1
- package/dist/types/internal/hooks/useRedirectToBacklink.d.ts +1 -1
- package/dist/types/internal/hooks/useRedirectToBacklink.d.ts.map +1 -1
- package/dist/types/internal/utils/hashing.d.ts.map +1 -1
- package/dist/types/internal/utils/randomInt.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/types/Identity.d.ts +42 -3
- package/dist/types/types/Identity.d.ts.map +1 -1
- package/dist/types/types/forbidden.d.ts +21 -0
- package/dist/types/types/forbidden.d.ts.map +1 -0
- package/dist/types/types/forms.d.ts +6 -1
- package/dist/types/types/forms.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/package.json +5 -4
- package/src/components/forms/AddProjectMemberForm.tsx +74 -0
- package/src/components/forms/ChangeMyProfileForm.tsx +73 -0
- package/src/components/forms/ChangePasswordForm.tsx +73 -0
- package/src/components/forms/ChangeProfileForm.tsx +70 -0
- package/src/components/forms/CreateGlobalApiKeyForm.tsx +67 -0
- package/src/components/forms/EmailOtpConfirmForm.tsx +64 -0
- package/src/components/forms/InviteForm.tsx +36 -2
- package/src/components/forms/LoginForm.tsx +6 -1
- package/src/components/forms/PasswordlessSignInForm.tsx +6 -1
- package/src/components/forms/SetProjectSecretForm.tsx +67 -0
- package/src/components/forms/SignUpForm.tsx +91 -0
- package/src/components/forms/TenantForm.tsx +6 -2
- package/src/components/forms/index.ts +8 -0
- package/src/components/triggers/DisableEmailOtpTrigger.tsx +27 -0
- package/src/components/triggers/DisableMyPasswordlessTrigger.tsx +27 -0
- package/src/components/triggers/DisableOtpTrigger.tsx +3 -2
- package/src/components/triggers/DisablePersonTrigger.tsx +18 -0
- package/src/components/triggers/EnableMyPasswordlessTrigger.tsx +27 -0
- package/src/components/triggers/EnablePersonTrigger.tsx +18 -0
- package/src/components/triggers/ForceSignOutPersonTrigger.tsx +18 -0
- package/src/components/triggers/InitEmailOtpTrigger.tsx +17 -0
- package/src/components/triggers/RegenerateBackupCodesTrigger.tsx +22 -0
- package/src/components/triggers/RemoveProjectMemberTrigger.tsx +3 -2
- package/src/components/triggers/ResetPersonMfaTrigger.tsx +18 -0
- package/src/components/triggers/RevokeSessionTrigger.tsx +18 -0
- package/src/components/triggers/TenantActionTrigger.tsx +11 -3
- package/src/components/triggers/index.ts +11 -0
- package/src/hooks/mutations/auth/index.ts +1 -0
- package/src/hooks/mutations/auth/useSignUpMutation.ts +28 -0
- package/src/hooks/mutations/emailOtp/index.ts +3 -0
- package/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.ts +19 -0
- package/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.ts +13 -0
- package/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.ts +13 -0
- package/src/hooks/mutations/identity/index.ts +2 -0
- package/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.ts +19 -0
- package/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.ts +19 -0
- package/src/hooks/mutations/idp/index.ts +1 -0
- package/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.tsx +13 -0
- package/src/hooks/mutations/index.ts +5 -0
- package/src/hooks/mutations/invite/index.ts +1 -0
- package/src/hooks/mutations/invite/useUnmanagedInviteMutation.tsx +25 -0
- package/src/hooks/mutations/otp/index.ts +1 -0
- package/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.ts +19 -0
- package/src/hooks/mutations/person/index.ts +5 -0
- package/src/hooks/mutations/person/useChangePasswordMutation.ts +14 -0
- package/src/hooks/mutations/person/useDisablePersonMutation.ts +13 -0
- package/src/hooks/mutations/person/useEnablePersonMutation.ts +13 -0
- package/src/hooks/mutations/person/useForceSignOutPersonMutation.ts +13 -0
- package/src/hooks/mutations/person/useResetPersonMfaMutation.ts +13 -0
- package/src/hooks/mutations/project/index.ts +1 -0
- package/src/hooks/mutations/project/useSetProjectSecretMutation.ts +13 -0
- package/src/hooks/mutations/session/index.ts +1 -0
- package/src/hooks/mutations/session/useRevokeSessionMutation.ts +13 -0
- package/src/hooks/queries/index.ts +13 -0
- package/src/hooks/queries/useAuthLogQuery.ts +28 -0
- package/src/hooks/queries/useAuthPoliciesQuery.ts +26 -0
- package/src/hooks/queries/useConfigurationQuery.ts +42 -0
- package/src/hooks/queries/useGlobalApiKeysQuery.ts +19 -0
- package/src/hooks/queries/useIdentityProvidersQuery.ts +31 -0
- package/src/hooks/queries/useMailTemplatesQuery.ts +25 -0
- package/src/hooks/queries/useMeQuery.ts +6 -2
- package/src/hooks/queries/useMyIdentityProvidersQuery.ts +25 -0
- package/src/hooks/queries/useMySessionsQuery.ts +19 -0
- package/src/hooks/queries/usePersonQuery.ts +35 -0
- package/src/hooks/queries/usePersonSessionsQuery.ts +27 -0
- package/src/hooks/queries/usePersonsQuery.ts +37 -0
- package/src/hooks/queries/useProjectApiKeysQuery.ts +43 -0
- package/src/hooks/queries/useProjectMembersQuery.ts +1 -1
- package/src/hooks/queries/useProjectSecretsQuery.ts +33 -0
- package/src/hooks/useFetchIdentity.ts +18 -3
- package/src/tsconfig.json +1 -0
- package/src/types/Identity.ts +44 -3
- package/src/types/forbidden.ts +31 -0
- package/src/types/forms.ts +6 -1
- package/src/types/index.ts +1 -0
- package/tests/TenantForm.test.tsx +54 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
|
+
import { createTenantMutation } from "../../useTenantMutation.js";
|
|
3
|
+
const disablePersonMutation = TenantApi.mutation$.disablePerson(
|
|
4
|
+
TenantApi.disablePersonResponse$$.error(TenantApi.disablePersonError$$),
|
|
5
|
+
(options) => options.alias("mutation")
|
|
6
|
+
);
|
|
7
|
+
const useDisablePersonMutation = createTenantMutation(disablePersonMutation);
|
|
8
|
+
export {
|
|
9
|
+
disablePersonMutation,
|
|
10
|
+
useDisablePersonMutation
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useDisablePersonMutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDisablePersonMutation.js","sources":["../../../../../../../packages/react-client-tenant/src/hooks/mutations/person/useDisablePersonMutation.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { createTenantMutation } from '../../useTenantMutation.js'\n\nexport const disablePersonMutation = TenantApi.mutation$\n\t.disablePerson(\n\t\tTenantApi\n\t\t\t.disablePersonResponse$$\n\t\t\t.error(TenantApi.disablePersonError$$),\n\t\toptions => options.alias('mutation'),\n\t)\n\nexport const useDisablePersonMutation = createTenantMutation(disablePersonMutation)\nexport type DisablePersonMutationVariables = Parameters<ReturnType<typeof useDisablePersonMutation>>[0]\n"],"names":[],"mappings":";;AAGO,MAAM,wBAAwB,UAAU,UAC7C;AAAA,EACA,UACE,wBACA,MAAM,UAAU,oBAAoB;AAAA,EACtC,CAAA,YAAW,QAAQ,MAAM,UAAU;AACpC;AAEM,MAAM,2BAA2B,qBAAqB,qBAAqB;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const TenantApi = require("@contember/graphql-client-tenant");
|
|
4
|
+
const useTenantMutation = require("../../useTenantMutation.cjs");
|
|
5
|
+
function _interopNamespaceDefault(e) {
|
|
6
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
7
|
+
if (e) {
|
|
8
|
+
for (const k in e) {
|
|
9
|
+
if (k !== "default") {
|
|
10
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: () => e[k]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
n.default = e;
|
|
19
|
+
return Object.freeze(n);
|
|
20
|
+
}
|
|
21
|
+
const TenantApi__namespace = /* @__PURE__ */ _interopNamespaceDefault(TenantApi);
|
|
22
|
+
const enablePersonMutation = TenantApi__namespace.mutation$.enablePerson(
|
|
23
|
+
TenantApi__namespace.enablePersonResponse$$.error(TenantApi__namespace.enablePersonError$$),
|
|
24
|
+
(options) => options.alias("mutation")
|
|
25
|
+
);
|
|
26
|
+
const useEnablePersonMutation = useTenantMutation.createTenantMutation(enablePersonMutation);
|
|
27
|
+
exports.enablePersonMutation = enablePersonMutation;
|
|
28
|
+
exports.useEnablePersonMutation = useEnablePersonMutation;
|
|
29
|
+
//# sourceMappingURL=useEnablePersonMutation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEnablePersonMutation.cjs","sources":["../../../../../../../packages/react-client-tenant/src/hooks/mutations/person/useEnablePersonMutation.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { createTenantMutation } from '../../useTenantMutation.js'\n\nexport const enablePersonMutation = TenantApi.mutation$\n\t.enablePerson(\n\t\tTenantApi\n\t\t\t.enablePersonResponse$$\n\t\t\t.error(TenantApi.enablePersonError$$),\n\t\toptions => options.alias('mutation'),\n\t)\n\nexport const useEnablePersonMutation = createTenantMutation(enablePersonMutation)\nexport type EnablePersonMutationVariables = Parameters<ReturnType<typeof useEnablePersonMutation>>[0]\n"],"names":["TenantApi","createTenantMutation"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAGO,MAAM,uBAAuBA,qBAAU,UAC5C;AAAA,EACAA,qBACE,uBACA,MAAMA,qBAAU,mBAAmB;AAAA,EACrC,CAAA,YAAW,QAAQ,MAAM,UAAU;AACpC;AAEM,MAAM,0BAA0BC,kBAAAA,qBAAqB,oBAAoB;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
|
+
import { createTenantMutation } from "../../useTenantMutation.js";
|
|
3
|
+
const enablePersonMutation = TenantApi.mutation$.enablePerson(
|
|
4
|
+
TenantApi.enablePersonResponse$$.error(TenantApi.enablePersonError$$),
|
|
5
|
+
(options) => options.alias("mutation")
|
|
6
|
+
);
|
|
7
|
+
const useEnablePersonMutation = createTenantMutation(enablePersonMutation);
|
|
8
|
+
export {
|
|
9
|
+
enablePersonMutation,
|
|
10
|
+
useEnablePersonMutation
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useEnablePersonMutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEnablePersonMutation.js","sources":["../../../../../../../packages/react-client-tenant/src/hooks/mutations/person/useEnablePersonMutation.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { createTenantMutation } from '../../useTenantMutation.js'\n\nexport const enablePersonMutation = TenantApi.mutation$\n\t.enablePerson(\n\t\tTenantApi\n\t\t\t.enablePersonResponse$$\n\t\t\t.error(TenantApi.enablePersonError$$),\n\t\toptions => options.alias('mutation'),\n\t)\n\nexport const useEnablePersonMutation = createTenantMutation(enablePersonMutation)\nexport type EnablePersonMutationVariables = Parameters<ReturnType<typeof useEnablePersonMutation>>[0]\n"],"names":[],"mappings":";;AAGO,MAAM,uBAAuB,UAAU,UAC5C;AAAA,EACA,UACE,uBACA,MAAM,UAAU,mBAAmB;AAAA,EACrC,CAAA,YAAW,QAAQ,MAAM,UAAU;AACpC;AAEM,MAAM,0BAA0B,qBAAqB,oBAAoB;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const TenantApi = require("@contember/graphql-client-tenant");
|
|
4
|
+
const useTenantMutation = require("../../useTenantMutation.cjs");
|
|
5
|
+
function _interopNamespaceDefault(e) {
|
|
6
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
7
|
+
if (e) {
|
|
8
|
+
for (const k in e) {
|
|
9
|
+
if (k !== "default") {
|
|
10
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: () => e[k]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
n.default = e;
|
|
19
|
+
return Object.freeze(n);
|
|
20
|
+
}
|
|
21
|
+
const TenantApi__namespace = /* @__PURE__ */ _interopNamespaceDefault(TenantApi);
|
|
22
|
+
const forceSignOutPersonMutation = TenantApi__namespace.mutation$.forceSignOutPerson(
|
|
23
|
+
TenantApi__namespace.forceSignOutPersonResponse$$.error(TenantApi__namespace.forceSignOutPersonError$$),
|
|
24
|
+
(options) => options.alias("mutation")
|
|
25
|
+
);
|
|
26
|
+
const useForceSignOutPersonMutation = useTenantMutation.createTenantMutation(forceSignOutPersonMutation);
|
|
27
|
+
exports.forceSignOutPersonMutation = forceSignOutPersonMutation;
|
|
28
|
+
exports.useForceSignOutPersonMutation = useForceSignOutPersonMutation;
|
|
29
|
+
//# sourceMappingURL=useForceSignOutPersonMutation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useForceSignOutPersonMutation.cjs","sources":["../../../../../../../packages/react-client-tenant/src/hooks/mutations/person/useForceSignOutPersonMutation.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { createTenantMutation } from '../../useTenantMutation.js'\n\nexport const forceSignOutPersonMutation = TenantApi.mutation$\n\t.forceSignOutPerson(\n\t\tTenantApi\n\t\t\t.forceSignOutPersonResponse$$\n\t\t\t.error(TenantApi.forceSignOutPersonError$$),\n\t\toptions => options.alias('mutation'),\n\t)\n\nexport const useForceSignOutPersonMutation = createTenantMutation(forceSignOutPersonMutation)\nexport type ForceSignOutPersonMutationVariables = Parameters<ReturnType<typeof useForceSignOutPersonMutation>>[0]\n"],"names":["TenantApi","createTenantMutation"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAGO,MAAM,6BAA6BA,qBAAU,UAClD;AAAA,EACAA,qBACE,6BACA,MAAMA,qBAAU,yBAAyB;AAAA,EAC3C,CAAA,YAAW,QAAQ,MAAM,UAAU;AACpC;AAEM,MAAM,gCAAgCC,kBAAAA,qBAAqB,0BAA0B;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
|
+
import { createTenantMutation } from "../../useTenantMutation.js";
|
|
3
|
+
const forceSignOutPersonMutation = TenantApi.mutation$.forceSignOutPerson(
|
|
4
|
+
TenantApi.forceSignOutPersonResponse$$.error(TenantApi.forceSignOutPersonError$$),
|
|
5
|
+
(options) => options.alias("mutation")
|
|
6
|
+
);
|
|
7
|
+
const useForceSignOutPersonMutation = createTenantMutation(forceSignOutPersonMutation);
|
|
8
|
+
export {
|
|
9
|
+
forceSignOutPersonMutation,
|
|
10
|
+
useForceSignOutPersonMutation
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useForceSignOutPersonMutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useForceSignOutPersonMutation.js","sources":["../../../../../../../packages/react-client-tenant/src/hooks/mutations/person/useForceSignOutPersonMutation.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { createTenantMutation } from '../../useTenantMutation.js'\n\nexport const forceSignOutPersonMutation = TenantApi.mutation$\n\t.forceSignOutPerson(\n\t\tTenantApi\n\t\t\t.forceSignOutPersonResponse$$\n\t\t\t.error(TenantApi.forceSignOutPersonError$$),\n\t\toptions => options.alias('mutation'),\n\t)\n\nexport const useForceSignOutPersonMutation = createTenantMutation(forceSignOutPersonMutation)\nexport type ForceSignOutPersonMutationVariables = Parameters<ReturnType<typeof useForceSignOutPersonMutation>>[0]\n"],"names":[],"mappings":";;AAGO,MAAM,6BAA6B,UAAU,UAClD;AAAA,EACA,UACE,6BACA,MAAM,UAAU,yBAAyB;AAAA,EAC3C,CAAA,YAAW,QAAQ,MAAM,UAAU;AACpC;AAEM,MAAM,gCAAgC,qBAAqB,0BAA0B;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const TenantApi = require("@contember/graphql-client-tenant");
|
|
4
|
+
const useTenantMutation = require("../../useTenantMutation.cjs");
|
|
5
|
+
function _interopNamespaceDefault(e) {
|
|
6
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
7
|
+
if (e) {
|
|
8
|
+
for (const k in e) {
|
|
9
|
+
if (k !== "default") {
|
|
10
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: () => e[k]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
n.default = e;
|
|
19
|
+
return Object.freeze(n);
|
|
20
|
+
}
|
|
21
|
+
const TenantApi__namespace = /* @__PURE__ */ _interopNamespaceDefault(TenantApi);
|
|
22
|
+
const resetPersonMfaMutation = TenantApi__namespace.mutation$.resetPersonMfa(
|
|
23
|
+
TenantApi__namespace.resetPersonMfaResponse$$.error(TenantApi__namespace.resetPersonMfaError$$),
|
|
24
|
+
(options) => options.alias("mutation")
|
|
25
|
+
);
|
|
26
|
+
const useResetPersonMfaMutation = useTenantMutation.createTenantMutation(resetPersonMfaMutation);
|
|
27
|
+
exports.resetPersonMfaMutation = resetPersonMfaMutation;
|
|
28
|
+
exports.useResetPersonMfaMutation = useResetPersonMfaMutation;
|
|
29
|
+
//# sourceMappingURL=useResetPersonMfaMutation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResetPersonMfaMutation.cjs","sources":["../../../../../../../packages/react-client-tenant/src/hooks/mutations/person/useResetPersonMfaMutation.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { createTenantMutation } from '../../useTenantMutation.js'\n\nexport const resetPersonMfaMutation = TenantApi.mutation$\n\t.resetPersonMfa(\n\t\tTenantApi\n\t\t\t.resetPersonMfaResponse$$\n\t\t\t.error(TenantApi.resetPersonMfaError$$),\n\t\toptions => options.alias('mutation'),\n\t)\n\nexport const useResetPersonMfaMutation = createTenantMutation(resetPersonMfaMutation)\nexport type ResetPersonMfaMutationVariables = Parameters<ReturnType<typeof useResetPersonMfaMutation>>[0]\n"],"names":["TenantApi","createTenantMutation"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAGO,MAAM,yBAAyBA,qBAAU,UAC9C;AAAA,EACAA,qBACE,yBACA,MAAMA,qBAAU,qBAAqB;AAAA,EACvC,CAAA,YAAW,QAAQ,MAAM,UAAU;AACpC;AAEM,MAAM,4BAA4BC,kBAAAA,qBAAqB,sBAAsB;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
|
+
import { createTenantMutation } from "../../useTenantMutation.js";
|
|
3
|
+
const resetPersonMfaMutation = TenantApi.mutation$.resetPersonMfa(
|
|
4
|
+
TenantApi.resetPersonMfaResponse$$.error(TenantApi.resetPersonMfaError$$),
|
|
5
|
+
(options) => options.alias("mutation")
|
|
6
|
+
);
|
|
7
|
+
const useResetPersonMfaMutation = createTenantMutation(resetPersonMfaMutation);
|
|
8
|
+
export {
|
|
9
|
+
resetPersonMfaMutation,
|
|
10
|
+
useResetPersonMfaMutation
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useResetPersonMfaMutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResetPersonMfaMutation.js","sources":["../../../../../../../packages/react-client-tenant/src/hooks/mutations/person/useResetPersonMfaMutation.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { createTenantMutation } from '../../useTenantMutation.js'\n\nexport const resetPersonMfaMutation = TenantApi.mutation$\n\t.resetPersonMfa(\n\t\tTenantApi\n\t\t\t.resetPersonMfaResponse$$\n\t\t\t.error(TenantApi.resetPersonMfaError$$),\n\t\toptions => options.alias('mutation'),\n\t)\n\nexport const useResetPersonMfaMutation = createTenantMutation(resetPersonMfaMutation)\nexport type ResetPersonMfaMutationVariables = Parameters<ReturnType<typeof useResetPersonMfaMutation>>[0]\n"],"names":[],"mappings":";;AAGO,MAAM,yBAAyB,UAAU,UAC9C;AAAA,EACA,UACE,yBACA,MAAM,UAAU,qBAAqB;AAAA,EACvC,CAAA,YAAW,QAAQ,MAAM,UAAU;AACpC;AAEM,MAAM,4BAA4B,qBAAqB,sBAAsB;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const TenantApi = require("@contember/graphql-client-tenant");
|
|
4
|
+
const useTenantMutation = require("../../useTenantMutation.cjs");
|
|
5
|
+
function _interopNamespaceDefault(e) {
|
|
6
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
7
|
+
if (e) {
|
|
8
|
+
for (const k in e) {
|
|
9
|
+
if (k !== "default") {
|
|
10
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: () => e[k]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
n.default = e;
|
|
19
|
+
return Object.freeze(n);
|
|
20
|
+
}
|
|
21
|
+
const TenantApi__namespace = /* @__PURE__ */ _interopNamespaceDefault(TenantApi);
|
|
22
|
+
const setProjectSecretMutation = TenantApi__namespace.mutation$.setProjectSecret(
|
|
23
|
+
TenantApi__namespace.setProjectSecretResponse$$.error(TenantApi__namespace.setProjectSecretError$$),
|
|
24
|
+
(options) => options.alias("mutation")
|
|
25
|
+
);
|
|
26
|
+
const useSetProjectSecretMutation = useTenantMutation.createTenantMutation(setProjectSecretMutation);
|
|
27
|
+
exports.setProjectSecretMutation = setProjectSecretMutation;
|
|
28
|
+
exports.useSetProjectSecretMutation = useSetProjectSecretMutation;
|
|
29
|
+
//# sourceMappingURL=useSetProjectSecretMutation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSetProjectSecretMutation.cjs","sources":["../../../../../../../packages/react-client-tenant/src/hooks/mutations/project/useSetProjectSecretMutation.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { createTenantMutation } from '../../useTenantMutation.js'\n\nexport const setProjectSecretMutation = TenantApi.mutation$\n\t.setProjectSecret(\n\t\tTenantApi\n\t\t\t.setProjectSecretResponse$$\n\t\t\t.error(TenantApi.setProjectSecretError$$),\n\t\toptions => options.alias('mutation'),\n\t)\n\nexport const useSetProjectSecretMutation = createTenantMutation(setProjectSecretMutation)\nexport type SetProjectSecretMutationVariables = Parameters<ReturnType<typeof useSetProjectSecretMutation>>[0]\n"],"names":["TenantApi","createTenantMutation"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAGO,MAAM,2BAA2BA,qBAAU,UAChD;AAAA,EACAA,qBACE,2BACA,MAAMA,qBAAU,uBAAuB;AAAA,EACzC,CAAA,YAAW,QAAQ,MAAM,UAAU;AACpC;AAEM,MAAM,8BAA8BC,kBAAAA,qBAAqB,wBAAwB;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
|
+
import { createTenantMutation } from "../../useTenantMutation.js";
|
|
3
|
+
const setProjectSecretMutation = TenantApi.mutation$.setProjectSecret(
|
|
4
|
+
TenantApi.setProjectSecretResponse$$.error(TenantApi.setProjectSecretError$$),
|
|
5
|
+
(options) => options.alias("mutation")
|
|
6
|
+
);
|
|
7
|
+
const useSetProjectSecretMutation = createTenantMutation(setProjectSecretMutation);
|
|
8
|
+
export {
|
|
9
|
+
setProjectSecretMutation,
|
|
10
|
+
useSetProjectSecretMutation
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useSetProjectSecretMutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSetProjectSecretMutation.js","sources":["../../../../../../../packages/react-client-tenant/src/hooks/mutations/project/useSetProjectSecretMutation.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { createTenantMutation } from '../../useTenantMutation.js'\n\nexport const setProjectSecretMutation = TenantApi.mutation$\n\t.setProjectSecret(\n\t\tTenantApi\n\t\t\t.setProjectSecretResponse$$\n\t\t\t.error(TenantApi.setProjectSecretError$$),\n\t\toptions => options.alias('mutation'),\n\t)\n\nexport const useSetProjectSecretMutation = createTenantMutation(setProjectSecretMutation)\nexport type SetProjectSecretMutationVariables = Parameters<ReturnType<typeof useSetProjectSecretMutation>>[0]\n"],"names":[],"mappings":";;AAGO,MAAM,2BAA2B,UAAU,UAChD;AAAA,EACA,UACE,2BACA,MAAM,UAAU,uBAAuB;AAAA,EACzC,CAAA,YAAW,QAAQ,MAAM,UAAU;AACpC;AAEM,MAAM,8BAA8B,qBAAqB,wBAAwB;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const TenantApi = require("@contember/graphql-client-tenant");
|
|
4
|
+
const useTenantMutation = require("../../useTenantMutation.cjs");
|
|
5
|
+
function _interopNamespaceDefault(e) {
|
|
6
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
7
|
+
if (e) {
|
|
8
|
+
for (const k in e) {
|
|
9
|
+
if (k !== "default") {
|
|
10
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: () => e[k]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
n.default = e;
|
|
19
|
+
return Object.freeze(n);
|
|
20
|
+
}
|
|
21
|
+
const TenantApi__namespace = /* @__PURE__ */ _interopNamespaceDefault(TenantApi);
|
|
22
|
+
const revokeSessionMutation = TenantApi__namespace.mutation$.revokeSession(
|
|
23
|
+
TenantApi__namespace.revokeSessionResponse$$.error(TenantApi__namespace.revokeSessionError$$),
|
|
24
|
+
(options) => options.alias("mutation")
|
|
25
|
+
);
|
|
26
|
+
const useRevokeSessionMutation = useTenantMutation.createTenantMutation(revokeSessionMutation);
|
|
27
|
+
exports.revokeSessionMutation = revokeSessionMutation;
|
|
28
|
+
exports.useRevokeSessionMutation = useRevokeSessionMutation;
|
|
29
|
+
//# sourceMappingURL=useRevokeSessionMutation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRevokeSessionMutation.cjs","sources":["../../../../../../../packages/react-client-tenant/src/hooks/mutations/session/useRevokeSessionMutation.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { createTenantMutation } from '../../useTenantMutation.js'\n\nexport const revokeSessionMutation = TenantApi.mutation$\n\t.revokeSession(\n\t\tTenantApi\n\t\t\t.revokeSessionResponse$$\n\t\t\t.error(TenantApi.revokeSessionError$$),\n\t\toptions => options.alias('mutation'),\n\t)\n\nexport const useRevokeSessionMutation = createTenantMutation(revokeSessionMutation)\nexport type RevokeSessionMutationVariables = Parameters<ReturnType<typeof useRevokeSessionMutation>>[0]\n"],"names":["TenantApi","createTenantMutation"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAGO,MAAM,wBAAwBA,qBAAU,UAC7C;AAAA,EACAA,qBACE,wBACA,MAAMA,qBAAU,oBAAoB;AAAA,EACtC,CAAA,YAAW,QAAQ,MAAM,UAAU;AACpC;AAEM,MAAM,2BAA2BC,kBAAAA,qBAAqB,qBAAqB;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
|
+
import { createTenantMutation } from "../../useTenantMutation.js";
|
|
3
|
+
const revokeSessionMutation = TenantApi.mutation$.revokeSession(
|
|
4
|
+
TenantApi.revokeSessionResponse$$.error(TenantApi.revokeSessionError$$),
|
|
5
|
+
(options) => options.alias("mutation")
|
|
6
|
+
);
|
|
7
|
+
const useRevokeSessionMutation = createTenantMutation(revokeSessionMutation);
|
|
8
|
+
export {
|
|
9
|
+
revokeSessionMutation,
|
|
10
|
+
useRevokeSessionMutation
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useRevokeSessionMutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRevokeSessionMutation.js","sources":["../../../../../../../packages/react-client-tenant/src/hooks/mutations/session/useRevokeSessionMutation.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { createTenantMutation } from '../../useTenantMutation.js'\n\nexport const revokeSessionMutation = TenantApi.mutation$\n\t.revokeSession(\n\t\tTenantApi\n\t\t\t.revokeSessionResponse$$\n\t\t\t.error(TenantApi.revokeSessionError$$),\n\t\toptions => options.alias('mutation'),\n\t)\n\nexport const useRevokeSessionMutation = createTenantMutation(revokeSessionMutation)\nexport type RevokeSessionMutationVariables = Parameters<ReturnType<typeof useRevokeSessionMutation>>[0]\n"],"names":[],"mappings":";;AAGO,MAAM,wBAAwB,UAAU,UAC7C;AAAA,EACA,UACE,wBACA,MAAM,UAAU,oBAAoB;AAAA,EACtC,CAAA,YAAW,QAAQ,MAAM,UAAU;AACpC;AAEM,MAAM,2BAA2B,qBAAqB,qBAAqB;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const TenantApi = require("@contember/graphql-client-tenant");
|
|
4
|
+
const graphqlTsClientApi = require("graphql-ts-client-api");
|
|
5
|
+
const useTenantApi = require("../useTenantApi.cjs");
|
|
6
|
+
const React = require("react");
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
9
|
+
if (e) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
if (k !== "default") {
|
|
12
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: () => e[k]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
const TenantApi__namespace = /* @__PURE__ */ _interopNamespaceDefault(TenantApi);
|
|
24
|
+
const authLogPageFragment = TenantApi__namespace.authLogPage$.entries(TenantApi__namespace.authLogEntry$$).hasMore;
|
|
25
|
+
const useAuthLogQuery = (options = {}) => {
|
|
26
|
+
const executor = useTenantApi.useTenantApi(options);
|
|
27
|
+
return React.useCallback(async (variables = {}) => {
|
|
28
|
+
const result = await executor(
|
|
29
|
+
TenantApi__namespace.query$.authLog(
|
|
30
|
+
{ filter: graphqlTsClientApi.ParameterRef.of("filter"), limit: graphqlTsClientApi.ParameterRef.of("limit"), offset: graphqlTsClientApi.ParameterRef.of("offset") },
|
|
31
|
+
authLogPageFragment
|
|
32
|
+
),
|
|
33
|
+
{ variables }
|
|
34
|
+
);
|
|
35
|
+
return result.authLog;
|
|
36
|
+
}, [executor]);
|
|
37
|
+
};
|
|
38
|
+
exports.useAuthLogQuery = useAuthLogQuery;
|
|
39
|
+
//# sourceMappingURL=useAuthLogQuery.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuthLogQuery.cjs","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useAuthLogQuery.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { ModelType, ParameterRef } from 'graphql-ts-client-api'\nimport { TenantApiOptions, useTenantApi } from '../useTenantApi.js'\nimport { useCallback } from 'react'\n\nconst authLogPageFragment = TenantApi.authLogPage$\n\t.entries(TenantApi.authLogEntry$$)\n\t.hasMore\n\n/** The whole page, not just the entries — `hasMore` drives pagination in the UI. */\nexport type AuthLogQueryResult = ModelType<typeof authLogPageFragment>\n\nexport type AuthLogQueryVariables = { filter?: TenantApi.AuthLogFilter; limit?: number; offset?: number }\n\nexport const useAuthLogQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async (variables: AuthLogQueryVariables = {}): Promise<AuthLogQueryResult> => {\n\t\tconst result = await executor(\n\t\t\tTenantApi.query$.authLog(\n\t\t\t\t{ filter: ParameterRef.of('filter'), limit: ParameterRef.of('limit'), offset: ParameterRef.of('offset') },\n\t\t\t\tauthLogPageFragment,\n\t\t\t),\n\t\t\t{ variables },\n\t\t)\n\n\t\treturn result.authLog\n\t}, [executor])\n}\n"],"names":["TenantApi","useTenantApi","useCallback","ParameterRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,sBAAsBA,qBAAU,aACpC,QAAQA,qBAAU,cAAc,EAChC;AAOK,MAAM,kBAAkB,CAAC,UAA4B,OAAO;AAClE,QAAM,WAAWC,aAAAA,aAAa,OAAO;AACrC,SAAOC,MAAAA,YAAY,OAAO,YAAmC,OAAoC;AAChG,UAAM,SAAS,MAAM;AAAA,MACpBF,qBAAU,OAAO;AAAA,QAChB,EAAE,QAAQG,mBAAAA,aAAa,GAAG,QAAQ,GAAG,OAAOA,mBAAAA,aAAa,GAAG,OAAO,GAAG,QAAQA,mBAAAA,aAAa,GAAG,QAAQ,EAAA;AAAA,QACtG;AAAA,MAAA;AAAA,MAED,EAAE,UAAA;AAAA,IAAU;AAGb,WAAO,OAAO;AAAA,EACf,GAAG,CAAC,QAAQ,CAAC;AACd;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
|
+
import { ParameterRef } from "graphql-ts-client-api";
|
|
3
|
+
import { useTenantApi } from "../useTenantApi.js";
|
|
4
|
+
import { useCallback } from "react";
|
|
5
|
+
const authLogPageFragment = TenantApi.authLogPage$.entries(TenantApi.authLogEntry$$).hasMore;
|
|
6
|
+
const useAuthLogQuery = (options = {}) => {
|
|
7
|
+
const executor = useTenantApi(options);
|
|
8
|
+
return useCallback(async (variables = {}) => {
|
|
9
|
+
const result = await executor(
|
|
10
|
+
TenantApi.query$.authLog(
|
|
11
|
+
{ filter: ParameterRef.of("filter"), limit: ParameterRef.of("limit"), offset: ParameterRef.of("offset") },
|
|
12
|
+
authLogPageFragment
|
|
13
|
+
),
|
|
14
|
+
{ variables }
|
|
15
|
+
);
|
|
16
|
+
return result.authLog;
|
|
17
|
+
}, [executor]);
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
useAuthLogQuery
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=useAuthLogQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuthLogQuery.js","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useAuthLogQuery.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { ModelType, ParameterRef } from 'graphql-ts-client-api'\nimport { TenantApiOptions, useTenantApi } from '../useTenantApi.js'\nimport { useCallback } from 'react'\n\nconst authLogPageFragment = TenantApi.authLogPage$\n\t.entries(TenantApi.authLogEntry$$)\n\t.hasMore\n\n/** The whole page, not just the entries — `hasMore` drives pagination in the UI. */\nexport type AuthLogQueryResult = ModelType<typeof authLogPageFragment>\n\nexport type AuthLogQueryVariables = { filter?: TenantApi.AuthLogFilter; limit?: number; offset?: number }\n\nexport const useAuthLogQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async (variables: AuthLogQueryVariables = {}): Promise<AuthLogQueryResult> => {\n\t\tconst result = await executor(\n\t\t\tTenantApi.query$.authLog(\n\t\t\t\t{ filter: ParameterRef.of('filter'), limit: ParameterRef.of('limit'), offset: ParameterRef.of('offset') },\n\t\t\t\tauthLogPageFragment,\n\t\t\t),\n\t\t\t{ variables },\n\t\t)\n\n\t\treturn result.authLog\n\t}, [executor])\n}\n"],"names":[],"mappings":";;;;AAKA,MAAM,sBAAsB,UAAU,aACpC,QAAQ,UAAU,cAAc,EAChC;AAOK,MAAM,kBAAkB,CAAC,UAA4B,OAAO;AAClE,QAAM,WAAW,aAAa,OAAO;AACrC,SAAO,YAAY,OAAO,YAAmC,OAAoC;AAChG,UAAM,SAAS,MAAM;AAAA,MACpB,UAAU,OAAO;AAAA,QAChB,EAAE,QAAQ,aAAa,GAAG,QAAQ,GAAG,OAAO,aAAa,GAAG,OAAO,GAAG,QAAQ,aAAa,GAAG,QAAQ,EAAA;AAAA,QACtG;AAAA,MAAA;AAAA,MAED,EAAE,UAAA;AAAA,IAAU;AAGb,WAAO,OAAO;AAAA,EACf,GAAG,CAAC,QAAQ,CAAC;AACd;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const TenantApi = require("@contember/graphql-client-tenant");
|
|
4
|
+
const useTenantApi = require("../useTenantApi.cjs");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
7
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
8
|
+
if (e) {
|
|
9
|
+
for (const k in e) {
|
|
10
|
+
if (k !== "default") {
|
|
11
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: () => e[k]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
const TenantApi__namespace = /* @__PURE__ */ _interopNamespaceDefault(TenantApi);
|
|
23
|
+
const authPolicyFragment = TenantApi__namespace.authPolicy$$;
|
|
24
|
+
const useAuthPoliciesQuery = (options = {}) => {
|
|
25
|
+
const executor = useTenantApi.useTenantApi(options);
|
|
26
|
+
return React.useCallback(async ({} = {}) => {
|
|
27
|
+
const result = await executor(TenantApi__namespace.query$.authPolicies(authPolicyFragment), {});
|
|
28
|
+
return result.authPolicies;
|
|
29
|
+
}, [executor]);
|
|
30
|
+
};
|
|
31
|
+
exports.useAuthPoliciesQuery = useAuthPoliciesQuery;
|
|
32
|
+
//# sourceMappingURL=useAuthPoliciesQuery.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuthPoliciesQuery.cjs","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useAuthPoliciesQuery.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { ModelType } from 'graphql-ts-client-api'\nimport { TenantApiOptions, useTenantApi } from '../useTenantApi.js'\nimport { useCallback } from 'react'\n\nconst authPolicyFragment = TenantApi.authPolicy$$\n\nexport type AuthPoliciesQueryResult = readonly ModelType<typeof authPolicyFragment>[]\n\n/**\n * Lists the configured per-role MFA / session policies.\n *\n * Read-only on purpose — policies are written with `contember tenant:apply`.\n * Requires `system:configure`; the resolver **throws** for a caller without it.\n *\n * Note that policies aggregate rather than override: an identity is subject to\n * every policy matching any of its roles, strictest wins.\n */\nexport const useAuthPoliciesQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {} = {}): Promise<AuthPoliciesQueryResult> => {\n\t\tconst result = await executor(TenantApi.query$.authPolicies(authPolicyFragment), {})\n\n\t\treturn result.authPolicies\n\t}, [executor])\n}\n"],"names":["TenantApi","useTenantApi","useCallback"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,qBAAqBA,qBAAU;AAa9B,MAAM,uBAAuB,CAAC,UAA4B,OAAO;AACvE,QAAM,WAAWC,aAAAA,aAAa,OAAO;AACrC,SAAOC,MAAAA,YAAY,OAAO,CAAA,IAAS,OAAyC;AAC3E,UAAM,SAAS,MAAM,SAASF,qBAAU,OAAO,aAAa,kBAAkB,GAAG,EAAE;AAEnF,WAAO,OAAO;AAAA,EACf,GAAG,CAAC,QAAQ,CAAC;AACd;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
|
+
import { useTenantApi } from "../useTenantApi.js";
|
|
3
|
+
import { useCallback } from "react";
|
|
4
|
+
const authPolicyFragment = TenantApi.authPolicy$$;
|
|
5
|
+
const useAuthPoliciesQuery = (options = {}) => {
|
|
6
|
+
const executor = useTenantApi(options);
|
|
7
|
+
return useCallback(async ({} = {}) => {
|
|
8
|
+
const result = await executor(TenantApi.query$.authPolicies(authPolicyFragment), {});
|
|
9
|
+
return result.authPolicies;
|
|
10
|
+
}, [executor]);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
useAuthPoliciesQuery
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useAuthPoliciesQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuthPoliciesQuery.js","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useAuthPoliciesQuery.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { ModelType } from 'graphql-ts-client-api'\nimport { TenantApiOptions, useTenantApi } from '../useTenantApi.js'\nimport { useCallback } from 'react'\n\nconst authPolicyFragment = TenantApi.authPolicy$$\n\nexport type AuthPoliciesQueryResult = readonly ModelType<typeof authPolicyFragment>[]\n\n/**\n * Lists the configured per-role MFA / session policies.\n *\n * Read-only on purpose — policies are written with `contember tenant:apply`.\n * Requires `system:configure`; the resolver **throws** for a caller without it.\n *\n * Note that policies aggregate rather than override: an identity is subject to\n * every policy matching any of its roles, strictest wins.\n */\nexport const useAuthPoliciesQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {} = {}): Promise<AuthPoliciesQueryResult> => {\n\t\tconst result = await executor(TenantApi.query$.authPolicies(authPolicyFragment), {})\n\n\t\treturn result.authPolicies\n\t}, [executor])\n}\n"],"names":[],"mappings":";;;AAKA,MAAM,qBAAqB,UAAU;AAa9B,MAAM,uBAAuB,CAAC,UAA4B,OAAO;AACvE,QAAM,WAAW,aAAa,OAAO;AACrC,SAAO,YAAY,OAAO,CAAA,IAAS,OAAyC;AAC3E,UAAM,SAAS,MAAM,SAAS,UAAU,OAAO,aAAa,kBAAkB,GAAG,EAAE;AAEnF,WAAO,OAAO;AAAA,EACf,GAAG,CAAC,QAAQ,CAAC;AACd;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const TenantApi = require("@contember/graphql-client-tenant");
|
|
4
|
+
const useTenantApi = require("../useTenantApi.cjs");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
7
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
8
|
+
if (e) {
|
|
9
|
+
for (const k in e) {
|
|
10
|
+
if (k !== "default") {
|
|
11
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: () => e[k]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
const TenantApi__namespace = /* @__PURE__ */ _interopNamespaceDefault(TenantApi);
|
|
23
|
+
const rateLimitsFragment = TenantApi__namespace.configRateLimits$.signUpPerIp(TenantApi__namespace.configRateLimitWindow$$).loginPerIp(TenantApi__namespace.configRateLimitWindow$$).passwordResetPerIp(TenantApi__namespace.configRateLimitWindow$$).passwordlessInitPerIp(TenantApi__namespace.configRateLimitWindow$$).emailOtpPerPerson(TenantApi__namespace.configRateLimitWindow$$).emailVerificationPerIp(TenantApi__namespace.configRateLimitWindow$$);
|
|
24
|
+
const configFragment = TenantApi__namespace.config$.signup(TenantApi__namespace.configSignup$$).emailChange(TenantApi__namespace.configEmailChange$$).passwordless(TenantApi__namespace.configPasswordless$$).password(TenantApi__namespace.configPassword$$).login(TenantApi__namespace.configLogin$$.anomalyDetection(TenantApi__namespace.configLoginAnomalyDetection$$)).captcha(TenantApi__namespace.configCaptcha$$.protect(TenantApi__namespace.configCaptchaProtect$$)).rateLimits(rateLimitsFragment).panel(TenantApi__namespace.configPanel$$);
|
|
25
|
+
const useConfigurationQuery = (options = {}) => {
|
|
26
|
+
const executor = useTenantApi.useTenantApi(options);
|
|
27
|
+
return React.useCallback(async ({} = {}) => {
|
|
28
|
+
const result = await executor(TenantApi__namespace.query$.configuration(configFragment), {});
|
|
29
|
+
return result.configuration;
|
|
30
|
+
}, [executor]);
|
|
31
|
+
};
|
|
32
|
+
exports.useConfigurationQuery = useConfigurationQuery;
|
|
33
|
+
//# sourceMappingURL=useConfigurationQuery.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConfigurationQuery.cjs","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useConfigurationQuery.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { ModelType } from 'graphql-ts-client-api'\nimport { TenantApiOptions, useTenantApi } from '../useTenantApi.js'\nimport { useCallback } from 'react'\n\nconst rateLimitsFragment = TenantApi.configRateLimits$\n\t.signUpPerIp(TenantApi.configRateLimitWindow$$)\n\t.loginPerIp(TenantApi.configRateLimitWindow$$)\n\t.passwordResetPerIp(TenantApi.configRateLimitWindow$$)\n\t.passwordlessInitPerIp(TenantApi.configRateLimitWindow$$)\n\t.emailOtpPerPerson(TenantApi.configRateLimitWindow$$)\n\t.emailVerificationPerIp(TenantApi.configRateLimitWindow$$)\n\nconst configFragment = TenantApi.config$\n\t.signup(TenantApi.configSignup$$)\n\t.emailChange(TenantApi.configEmailChange$$)\n\t.passwordless(TenantApi.configPasswordless$$)\n\t.password(TenantApi.configPassword$$)\n\t.login(TenantApi.configLogin$$.anomalyDetection(TenantApi.configLoginAnomalyDetection$$))\n\t.captcha(TenantApi.configCaptcha$$.protect(TenantApi.configCaptchaProtect$$))\n\t.rateLimits(rateLimitsFragment)\n\t.panel(TenantApi.configPanel$$)\n\nexport type ConfigurationQueryResult = ModelType<typeof configFragment>\n\n/**\n * Reads the tenant-wide configuration. Read-only on purpose — the write path is\n * `contember tenant:apply`, there is no `useConfigureMutation`.\n *\n * Requires `system:viewConfig` — the read counterpart of `system:configure`, not\n * the same action. The resolver **throws** for a caller without it rather than\n * returning a default, so consumers must treat the rejection as a normal\n * \"not visible to you\" state.\n */\nexport const useConfigurationQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {} = {}): Promise<ConfigurationQueryResult> => {\n\t\tconst result = await executor(TenantApi.query$.configuration(configFragment), {})\n\n\t\treturn result.configuration\n\t}, [executor])\n}\n"],"names":["TenantApi","useTenantApi","useCallback"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,qBAAqBA,qBAAU,kBACnC,YAAYA,qBAAU,uBAAuB,EAC7C,WAAWA,qBAAU,uBAAuB,EAC5C,mBAAmBA,qBAAU,uBAAuB,EACpD,sBAAsBA,qBAAU,uBAAuB,EACvD,kBAAkBA,qBAAU,uBAAuB,EACnD,uBAAuBA,qBAAU,uBAAuB;AAE1D,MAAM,iBAAiBA,qBAAU,QAC/B,OAAOA,qBAAU,cAAc,EAC/B,YAAYA,qBAAU,mBAAmB,EACzC,aAAaA,qBAAU,oBAAoB,EAC3C,SAASA,qBAAU,gBAAgB,EACnC,MAAMA,qBAAU,cAAc,iBAAiBA,qBAAU,6BAA6B,CAAC,EACvF,QAAQA,qBAAU,gBAAgB,QAAQA,qBAAU,sBAAsB,CAAC,EAC3E,WAAW,kBAAkB,EAC7B,MAAMA,qBAAU,aAAa;AAaxB,MAAM,wBAAwB,CAAC,UAA4B,OAAO;AACxE,QAAM,WAAWC,aAAAA,aAAa,OAAO;AACrC,SAAOC,MAAAA,YAAY,OAAO,CAAA,IAAS,OAA0C;AAC5E,UAAM,SAAS,MAAM,SAASF,qBAAU,OAAO,cAAc,cAAc,GAAG,EAAE;AAEhF,WAAO,OAAO;AAAA,EACf,GAAG,CAAC,QAAQ,CAAC;AACd;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
|
+
import { useTenantApi } from "../useTenantApi.js";
|
|
3
|
+
import { useCallback } from "react";
|
|
4
|
+
const rateLimitsFragment = TenantApi.configRateLimits$.signUpPerIp(TenantApi.configRateLimitWindow$$).loginPerIp(TenantApi.configRateLimitWindow$$).passwordResetPerIp(TenantApi.configRateLimitWindow$$).passwordlessInitPerIp(TenantApi.configRateLimitWindow$$).emailOtpPerPerson(TenantApi.configRateLimitWindow$$).emailVerificationPerIp(TenantApi.configRateLimitWindow$$);
|
|
5
|
+
const configFragment = TenantApi.config$.signup(TenantApi.configSignup$$).emailChange(TenantApi.configEmailChange$$).passwordless(TenantApi.configPasswordless$$).password(TenantApi.configPassword$$).login(TenantApi.configLogin$$.anomalyDetection(TenantApi.configLoginAnomalyDetection$$)).captcha(TenantApi.configCaptcha$$.protect(TenantApi.configCaptchaProtect$$)).rateLimits(rateLimitsFragment).panel(TenantApi.configPanel$$);
|
|
6
|
+
const useConfigurationQuery = (options = {}) => {
|
|
7
|
+
const executor = useTenantApi(options);
|
|
8
|
+
return useCallback(async ({} = {}) => {
|
|
9
|
+
const result = await executor(TenantApi.query$.configuration(configFragment), {});
|
|
10
|
+
return result.configuration;
|
|
11
|
+
}, [executor]);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
useConfigurationQuery
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useConfigurationQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConfigurationQuery.js","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useConfigurationQuery.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { ModelType } from 'graphql-ts-client-api'\nimport { TenantApiOptions, useTenantApi } from '../useTenantApi.js'\nimport { useCallback } from 'react'\n\nconst rateLimitsFragment = TenantApi.configRateLimits$\n\t.signUpPerIp(TenantApi.configRateLimitWindow$$)\n\t.loginPerIp(TenantApi.configRateLimitWindow$$)\n\t.passwordResetPerIp(TenantApi.configRateLimitWindow$$)\n\t.passwordlessInitPerIp(TenantApi.configRateLimitWindow$$)\n\t.emailOtpPerPerson(TenantApi.configRateLimitWindow$$)\n\t.emailVerificationPerIp(TenantApi.configRateLimitWindow$$)\n\nconst configFragment = TenantApi.config$\n\t.signup(TenantApi.configSignup$$)\n\t.emailChange(TenantApi.configEmailChange$$)\n\t.passwordless(TenantApi.configPasswordless$$)\n\t.password(TenantApi.configPassword$$)\n\t.login(TenantApi.configLogin$$.anomalyDetection(TenantApi.configLoginAnomalyDetection$$))\n\t.captcha(TenantApi.configCaptcha$$.protect(TenantApi.configCaptchaProtect$$))\n\t.rateLimits(rateLimitsFragment)\n\t.panel(TenantApi.configPanel$$)\n\nexport type ConfigurationQueryResult = ModelType<typeof configFragment>\n\n/**\n * Reads the tenant-wide configuration. Read-only on purpose — the write path is\n * `contember tenant:apply`, there is no `useConfigureMutation`.\n *\n * Requires `system:viewConfig` — the read counterpart of `system:configure`, not\n * the same action. The resolver **throws** for a caller without it rather than\n * returning a default, so consumers must treat the rejection as a normal\n * \"not visible to you\" state.\n */\nexport const useConfigurationQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {} = {}): Promise<ConfigurationQueryResult> => {\n\t\tconst result = await executor(TenantApi.query$.configuration(configFragment), {})\n\n\t\treturn result.configuration\n\t}, [executor])\n}\n"],"names":[],"mappings":";;;AAKA,MAAM,qBAAqB,UAAU,kBACnC,YAAY,UAAU,uBAAuB,EAC7C,WAAW,UAAU,uBAAuB,EAC5C,mBAAmB,UAAU,uBAAuB,EACpD,sBAAsB,UAAU,uBAAuB,EACvD,kBAAkB,UAAU,uBAAuB,EACnD,uBAAuB,UAAU,uBAAuB;AAE1D,MAAM,iBAAiB,UAAU,QAC/B,OAAO,UAAU,cAAc,EAC/B,YAAY,UAAU,mBAAmB,EACzC,aAAa,UAAU,oBAAoB,EAC3C,SAAS,UAAU,gBAAgB,EACnC,MAAM,UAAU,cAAc,iBAAiB,UAAU,6BAA6B,CAAC,EACvF,QAAQ,UAAU,gBAAgB,QAAQ,UAAU,sBAAsB,CAAC,EAC3E,WAAW,kBAAkB,EAC7B,MAAM,UAAU,aAAa;AAaxB,MAAM,wBAAwB,CAAC,UAA4B,OAAO;AACxE,QAAM,WAAW,aAAa,OAAO;AACrC,SAAO,YAAY,OAAO,CAAA,IAAS,OAA0C;AAC5E,UAAM,SAAS,MAAM,SAAS,UAAU,OAAO,cAAc,cAAc,GAAG,EAAE;AAEhF,WAAO,OAAO;AAAA,EACf,GAAG,CAAC,QAAQ,CAAC;AACd;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const TenantApi = require("@contember/graphql-client-tenant");
|
|
4
|
+
const useTenantApi = require("../useTenantApi.cjs");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
7
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
8
|
+
if (e) {
|
|
9
|
+
for (const k in e) {
|
|
10
|
+
if (k !== "default") {
|
|
11
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: () => e[k]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
const TenantApi__namespace = /* @__PURE__ */ _interopNamespaceDefault(TenantApi);
|
|
23
|
+
const globalApiKeyFragment = TenantApi__namespace.apiKey$$.identity(TenantApi__namespace.identity$$);
|
|
24
|
+
const useGlobalApiKeysQuery = (options = {}) => {
|
|
25
|
+
const executor = useTenantApi.useTenantApi(options);
|
|
26
|
+
return React.useCallback(async ({} = {}) => {
|
|
27
|
+
const result = await executor(TenantApi__namespace.query$.globalApiKeys(globalApiKeyFragment));
|
|
28
|
+
return result.globalApiKeys ?? [];
|
|
29
|
+
}, [executor]);
|
|
30
|
+
};
|
|
31
|
+
exports.useGlobalApiKeysQuery = useGlobalApiKeysQuery;
|
|
32
|
+
//# sourceMappingURL=useGlobalApiKeysQuery.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGlobalApiKeysQuery.cjs","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useGlobalApiKeysQuery.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { ModelType } from 'graphql-ts-client-api'\nimport { TenantApiOptions, useTenantApi } from '../useTenantApi.js'\nimport { useCallback } from 'react'\n\nconst globalApiKeyFragment = TenantApi\n\t.apiKey$$\n\t.identity(TenantApi.identity$$)\n\nexport type GlobalApiKeysQueryResult = readonly ModelType<typeof globalApiKeyFragment>[]\n\nexport const useGlobalApiKeysQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {} = {}): Promise<GlobalApiKeysQueryResult> => {\n\t\tconst result = await executor(TenantApi.query$.globalApiKeys(globalApiKeyFragment))\n\n\t\treturn result.globalApiKeys ?? []\n\t}, [executor])\n}\n"],"names":["TenantApi","useTenantApi","useCallback"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,uBAAuBA,qBAC3B,SACA,SAASA,qBAAU,UAAU;AAIxB,MAAM,wBAAwB,CAAC,UAA4B,OAAO;AACxE,QAAM,WAAWC,aAAAA,aAAa,OAAO;AACrC,SAAOC,MAAAA,YAAY,OAAO,CAAA,IAAS,OAA0C;AAC5E,UAAM,SAAS,MAAM,SAASF,qBAAU,OAAO,cAAc,oBAAoB,CAAC;AAElF,WAAO,OAAO,iBAAiB,CAAA;AAAA,EAChC,GAAG,CAAC,QAAQ,CAAC;AACd;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
|
+
import { useTenantApi } from "../useTenantApi.js";
|
|
3
|
+
import { useCallback } from "react";
|
|
4
|
+
const globalApiKeyFragment = TenantApi.apiKey$$.identity(TenantApi.identity$$);
|
|
5
|
+
const useGlobalApiKeysQuery = (options = {}) => {
|
|
6
|
+
const executor = useTenantApi(options);
|
|
7
|
+
return useCallback(async ({} = {}) => {
|
|
8
|
+
const result = await executor(TenantApi.query$.globalApiKeys(globalApiKeyFragment));
|
|
9
|
+
return result.globalApiKeys ?? [];
|
|
10
|
+
}, [executor]);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
useGlobalApiKeysQuery
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useGlobalApiKeysQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGlobalApiKeysQuery.js","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useGlobalApiKeysQuery.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { ModelType } from 'graphql-ts-client-api'\nimport { TenantApiOptions, useTenantApi } from '../useTenantApi.js'\nimport { useCallback } from 'react'\n\nconst globalApiKeyFragment = TenantApi\n\t.apiKey$$\n\t.identity(TenantApi.identity$$)\n\nexport type GlobalApiKeysQueryResult = readonly ModelType<typeof globalApiKeyFragment>[]\n\nexport const useGlobalApiKeysQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {} = {}): Promise<GlobalApiKeysQueryResult> => {\n\t\tconst result = await executor(TenantApi.query$.globalApiKeys(globalApiKeyFragment))\n\n\t\treturn result.globalApiKeys ?? []\n\t}, [executor])\n}\n"],"names":[],"mappings":";;;AAKA,MAAM,uBAAuB,UAC3B,SACA,SAAS,UAAU,UAAU;AAIxB,MAAM,wBAAwB,CAAC,UAA4B,OAAO;AACxE,QAAM,WAAW,aAAa,OAAO;AACrC,SAAO,YAAY,OAAO,CAAA,IAAS,OAA0C;AAC5E,UAAM,SAAS,MAAM,SAAS,UAAU,OAAO,cAAc,oBAAoB,CAAC;AAElF,WAAO,OAAO,iBAAiB,CAAA;AAAA,EAChC,GAAG,CAAC,QAAQ,CAAC;AACd;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const TenantApi = require("@contember/graphql-client-tenant");
|
|
4
|
+
const useTenantApi = require("../useTenantApi.cjs");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
7
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
8
|
+
if (e) {
|
|
9
|
+
for (const k in e) {
|
|
10
|
+
if (k !== "default") {
|
|
11
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: () => e[k]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
const TenantApi__namespace = /* @__PURE__ */ _interopNamespaceDefault(TenantApi);
|
|
23
|
+
const identityProviderFragment = TenantApi__namespace.identityProvider$$.options(TenantApi__namespace.iDPOptionsOutput$$);
|
|
24
|
+
const useIdentityProvidersQuery = (options = {}) => {
|
|
25
|
+
const executor = useTenantApi.useTenantApi(options);
|
|
26
|
+
return React.useCallback(async ({} = {}) => {
|
|
27
|
+
const result = await executor(TenantApi__namespace.query$.identityProviders(identityProviderFragment), {});
|
|
28
|
+
return result.identityProviders;
|
|
29
|
+
}, [executor]);
|
|
30
|
+
};
|
|
31
|
+
exports.useIdentityProvidersQuery = useIdentityProvidersQuery;
|
|
32
|
+
//# sourceMappingURL=useIdentityProvidersQuery.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIdentityProvidersQuery.cjs","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useIdentityProvidersQuery.ts"],"sourcesContent":["import * as TenantApi from '@contember/graphql-client-tenant'\nimport { ModelType } from 'graphql-ts-client-api'\nimport { TenantApiOptions, useTenantApi } from '../useTenantApi.js'\nimport { useCallback } from 'react'\n\nconst identityProviderFragment = TenantApi.identityProvider$$\n\t.options(TenantApi.iDPOptionsOutput$$)\n\nexport type IdentityProvidersQueryResult = readonly ModelType<typeof identityProviderFragment>[]\n\n/**\n * Lists the identity providers configured on the tenant.\n *\n * Requires `idp:list` (PROJECT_ADMIN / SUPER_ADMIN), so this is an\n * administration view — it cannot be used to render provider buttons on a login\n * screen, where the caller is unauthenticated. Those slugs still come from the\n * application's own configuration.\n *\n * `configuration` is passed through `IdentityProviderHandler.getPublicConfiguration`\n * server-side, which strips the client secret for the built-in oidc / apple /\n * facebook handlers. A third-party handler that does not implement it returns\n * the raw stored configuration, so do not render this blob unconditionally.\n */\nexport const useIdentityProvidersQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {} = {}): Promise<IdentityProvidersQueryResult> => {\n\t\tconst result = await executor(TenantApi.query$.identityProviders(identityProviderFragment), {})\n\n\t\treturn result.identityProviders\n\t}, [executor])\n}\n"],"names":["TenantApi","useTenantApi","useCallback"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,2BAA2BA,qBAAU,mBACzC,QAAQA,qBAAU,kBAAkB;AAiB/B,MAAM,4BAA4B,CAAC,UAA4B,OAAO;AAC5E,QAAM,WAAWC,aAAAA,aAAa,OAAO;AACrC,SAAOC,MAAAA,YAAY,OAAO,CAAA,IAAS,OAA8C;AAChF,UAAM,SAAS,MAAM,SAASF,qBAAU,OAAO,kBAAkB,wBAAwB,GAAG,EAAE;AAE9F,WAAO,OAAO;AAAA,EACf,GAAG,CAAC,QAAQ,CAAC;AACd;;"}
|