@contember/react-client-tenant 2.2.0-alpha.3 → 2.2.0-alpha.6
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 +7 -3
- package/dist/development/src/components/forms/LoginForm.cjs.map +1 -1
- package/dist/development/src/components/forms/LoginForm.js +7 -3
- package/dist/development/src/components/forms/LoginForm.js.map +1 -1
- package/dist/development/src/components/forms/PasswordlessSignInForm.cjs +7 -4
- package/dist/development/src/components/forms/PasswordlessSignInForm.cjs.map +1 -1
- package/dist/development/src/components/forms/PasswordlessSignInForm.js +7 -4
- package/dist/development/src/components/forms/PasswordlessSignInForm.js.map +1 -1
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.cjs +2 -1
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.cjs.map +1 -1
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.js +2 -1
- package/dist/development/src/components/forms/PasswordlessSignInInitForm.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 +6 -2
- package/dist/production/src/components/forms/LoginForm.cjs.map +1 -1
- package/dist/production/src/components/forms/LoginForm.js +6 -2
- package/dist/production/src/components/forms/LoginForm.js.map +1 -1
- package/dist/production/src/components/forms/PasswordlessSignInForm.cjs +6 -3
- package/dist/production/src/components/forms/PasswordlessSignInForm.cjs.map +1 -1
- package/dist/production/src/components/forms/PasswordlessSignInForm.js +6 -3
- package/dist/production/src/components/forms/PasswordlessSignInForm.js.map +1 -1
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.cjs +2 -1
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.cjs.map +1 -1
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.js +2 -1
- package/dist/production/src/components/forms/PasswordlessSignInInitForm.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 +43 -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 +8 -1
- package/src/components/forms/PasswordlessSignInForm.tsx +7 -1
- package/src/components/forms/PasswordlessSignInInitForm.tsx +1 -0
- 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,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;;"}
|
|
@@ -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 identityProviderFragment = TenantApi.identityProvider$$.options(TenantApi.iDPOptionsOutput$$);
|
|
5
|
+
const useIdentityProvidersQuery = (options = {}) => {
|
|
6
|
+
const executor = useTenantApi(options);
|
|
7
|
+
return useCallback(async ({} = {}) => {
|
|
8
|
+
const result = await executor(TenantApi.query$.identityProviders(identityProviderFragment), {});
|
|
9
|
+
return result.identityProviders;
|
|
10
|
+
}, [executor]);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
useIdentityProvidersQuery
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useIdentityProvidersQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIdentityProvidersQuery.js","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":[],"mappings":";;;AAKA,MAAM,2BAA2B,UAAU,mBACzC,QAAQ,UAAU,kBAAkB;AAiB/B,MAAM,4BAA4B,CAAC,UAA4B,OAAO;AAC5E,QAAM,WAAW,aAAa,OAAO;AACrC,SAAO,YAAY,OAAO,CAAA,IAAS,OAA8C;AAChF,UAAM,SAAS,MAAM,SAAS,UAAU,OAAO,kBAAkB,wBAAwB,GAAG,EAAE;AAE9F,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 mailTemplateFragment = TenantApi__namespace.mailTemplateData$$;
|
|
24
|
+
const useMailTemplatesQuery = (options = {}) => {
|
|
25
|
+
const executor = useTenantApi.useTenantApi(options);
|
|
26
|
+
return React.useCallback(async ({} = {}) => {
|
|
27
|
+
const result = await executor(TenantApi__namespace.query$.mailTemplates(mailTemplateFragment), {});
|
|
28
|
+
return result.mailTemplates;
|
|
29
|
+
}, [executor]);
|
|
30
|
+
};
|
|
31
|
+
exports.useMailTemplatesQuery = useMailTemplatesQuery;
|
|
32
|
+
//# sourceMappingURL=useMailTemplatesQuery.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMailTemplatesQuery.cjs","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useMailTemplatesQuery.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 mailTemplateFragment = TenantApi.mailTemplateData$$\n\nexport type MailTemplatesQueryResult = readonly ModelType<typeof mailTemplateFragment>[]\n\n/**\n * Lists the configured mail templates, including their rendered `content`.\n *\n * Read-only on purpose — templates are written with `contember tenant:apply`.\n * A template not listed here means the built-in default is in use.\n *\n * Requires `mailTemplate:list`; the resolver **throws** for a caller without it.\n */\nexport const useMailTemplatesQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {} = {}): Promise<MailTemplatesQueryResult> => {\n\t\tconst result = await executor(TenantApi.query$.mailTemplates(mailTemplateFragment), {})\n\n\t\treturn result.mailTemplates\n\t}, [executor])\n}\n"],"names":["TenantApi","useTenantApi","useCallback"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,uBAAuBA,qBAAU;AAYhC,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,GAAG,EAAE;AAEtF,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 mailTemplateFragment = TenantApi.mailTemplateData$$;
|
|
5
|
+
const useMailTemplatesQuery = (options = {}) => {
|
|
6
|
+
const executor = useTenantApi(options);
|
|
7
|
+
return useCallback(async ({} = {}) => {
|
|
8
|
+
const result = await executor(TenantApi.query$.mailTemplates(mailTemplateFragment), {});
|
|
9
|
+
return result.mailTemplates;
|
|
10
|
+
}, [executor]);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
useMailTemplatesQuery
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useMailTemplatesQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMailTemplatesQuery.js","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useMailTemplatesQuery.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 mailTemplateFragment = TenantApi.mailTemplateData$$\n\nexport type MailTemplatesQueryResult = readonly ModelType<typeof mailTemplateFragment>[]\n\n/**\n * Lists the configured mail templates, including their rendered `content`.\n *\n * Read-only on purpose — templates are written with `contember tenant:apply`.\n * A template not listed here means the built-in default is in use.\n *\n * Requires `mailTemplate:list`; the resolver **throws** for a caller without it.\n */\nexport const useMailTemplatesQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {} = {}): Promise<MailTemplatesQueryResult> => {\n\t\tconst result = await executor(TenantApi.query$.mailTemplates(mailTemplateFragment), {})\n\n\t\treturn result.mailTemplates\n\t}, [executor])\n}\n"],"names":[],"mappings":";;;AAKA,MAAM,uBAAuB,UAAU;AAYhC,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,GAAG,EAAE;AAEtF,WAAO,OAAO;AAAA,EACf,GAAG,CAAC,QAAQ,CAAC;AACd;"}
|
|
@@ -20,8 +20,10 @@ function _interopNamespaceDefault(e) {
|
|
|
20
20
|
return Object.freeze(n);
|
|
21
21
|
}
|
|
22
22
|
const TenantApi__namespace = /* @__PURE__ */ _interopNamespaceDefault(TenantApi);
|
|
23
|
-
const identityFragment = TenantApi__namespace.identity$$.person(
|
|
24
|
-
TenantApi__namespace.
|
|
23
|
+
const identityFragment = TenantApi__namespace.identity$$.person(
|
|
24
|
+
TenantApi__namespace.person$.id.email.name.otpEnabled.emailOtpEnabled.passwordlessEnabled.passwordlessAvailable.passwordlessSelfManaged
|
|
25
|
+
).projects(
|
|
26
|
+
TenantApi__namespace.identityProjectRelation$.project(TenantApi__namespace.project$$.permissions(TenantApi__namespace.projectPermissions$$)).memberships(TenantApi__namespace.membership$$.variables(TenantApi__namespace.variableEntry$$))
|
|
25
27
|
).permissions(TenantApi__namespace.identityGlobalPermissions$$);
|
|
26
28
|
const useMeQuery = (options = {}) => {
|
|
27
29
|
const executor = useTenantApi.useTenantApi(options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMeQuery.cjs","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useMeQuery.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 identityFragment = TenantApi\n\t.identity$$\n\t.person(
|
|
1
|
+
{"version":3,"file":"useMeQuery.cjs","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useMeQuery.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 identityFragment = TenantApi\n\t.identity$$\n\t// `passwordlessAvailable` / `passwordlessSelfManaged` resolve the tenant policy server-side; the raw\n\t// `passwordlessEnabled` opt-in alone cannot tell a UI what signing in will actually do.\n\t.person(\n\t\tTenantApi.person$.id.email.name.otpEnabled.emailOtpEnabled.passwordlessEnabled.passwordlessAvailable.passwordlessSelfManaged,\n\t)\n\t.projects(\n\t\tTenantApi\n\t\t\t.identityProjectRelation$\n\t\t\t.project(TenantApi.project$$.permissions(TenantApi.projectPermissions$$))\n\t\t\t.memberships(TenantApi.membership$$.variables(TenantApi.variableEntry$$)),\n\t)\n\t.permissions(TenantApi.identityGlobalPermissions$$)\n\nexport type MeQueryData = ModelType<typeof identityFragment>\n\nexport const useMeQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {}): Promise<MeQueryData> => {\n\t\treturn (await executor(TenantApi.query$.me(identityFragment))).me\n\t}, [executor])\n}\n"],"names":["TenantApi","useTenantApi","useCallback"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,mBAAmBA,qBACvB,WAGA;AAAA,EACAA,qBAAU,QAAQ,GAAG,MAAM,KAAK,WAAW,gBAAgB,oBAAoB,sBAAsB;AACtG,EACC;AAAA,EACAA,qBACE,yBACA,QAAQA,qBAAU,UAAU,YAAYA,qBAAU,oBAAoB,CAAC,EACvE,YAAYA,qBAAU,aAAa,UAAUA,qBAAU,eAAe,CAAC;AAC1E,EACC,YAAYA,qBAAU,2BAA2B;AAI5C,MAAM,aAAa,CAAC,UAA4B,OAAO;AAC7D,QAAM,WAAWC,aAAAA,aAAa,OAAO;AACrC,SAAOC,MAAAA,YAAY,OAAO,OAAiC;AAC1D,YAAQ,MAAM,SAASF,qBAAU,OAAO,GAAG,gBAAgB,CAAC,GAAG;AAAA,EAChE,GAAG,CAAC,QAAQ,CAAC;AACd;;"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
2
|
import { useTenantApi } from "../useTenantApi.js";
|
|
3
3
|
import { useCallback } from "react";
|
|
4
|
-
const identityFragment = TenantApi.identity$$.person(
|
|
5
|
-
TenantApi.
|
|
4
|
+
const identityFragment = TenantApi.identity$$.person(
|
|
5
|
+
TenantApi.person$.id.email.name.otpEnabled.emailOtpEnabled.passwordlessEnabled.passwordlessAvailable.passwordlessSelfManaged
|
|
6
|
+
).projects(
|
|
7
|
+
TenantApi.identityProjectRelation$.project(TenantApi.project$$.permissions(TenantApi.projectPermissions$$)).memberships(TenantApi.membership$$.variables(TenantApi.variableEntry$$))
|
|
6
8
|
).permissions(TenantApi.identityGlobalPermissions$$);
|
|
7
9
|
const useMeQuery = (options = {}) => {
|
|
8
10
|
const executor = useTenantApi(options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMeQuery.js","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useMeQuery.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 identityFragment = TenantApi\n\t.identity$$\n\t.person(
|
|
1
|
+
{"version":3,"file":"useMeQuery.js","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useMeQuery.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 identityFragment = TenantApi\n\t.identity$$\n\t// `passwordlessAvailable` / `passwordlessSelfManaged` resolve the tenant policy server-side; the raw\n\t// `passwordlessEnabled` opt-in alone cannot tell a UI what signing in will actually do.\n\t.person(\n\t\tTenantApi.person$.id.email.name.otpEnabled.emailOtpEnabled.passwordlessEnabled.passwordlessAvailable.passwordlessSelfManaged,\n\t)\n\t.projects(\n\t\tTenantApi\n\t\t\t.identityProjectRelation$\n\t\t\t.project(TenantApi.project$$.permissions(TenantApi.projectPermissions$$))\n\t\t\t.memberships(TenantApi.membership$$.variables(TenantApi.variableEntry$$)),\n\t)\n\t.permissions(TenantApi.identityGlobalPermissions$$)\n\nexport type MeQueryData = ModelType<typeof identityFragment>\n\nexport const useMeQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {}): Promise<MeQueryData> => {\n\t\treturn (await executor(TenantApi.query$.me(identityFragment))).me\n\t}, [executor])\n}\n"],"names":[],"mappings":";;;AAKA,MAAM,mBAAmB,UACvB,WAGA;AAAA,EACA,UAAU,QAAQ,GAAG,MAAM,KAAK,WAAW,gBAAgB,oBAAoB,sBAAsB;AACtG,EACC;AAAA,EACA,UACE,yBACA,QAAQ,UAAU,UAAU,YAAY,UAAU,oBAAoB,CAAC,EACvE,YAAY,UAAU,aAAa,UAAU,UAAU,eAAe,CAAC;AAC1E,EACC,YAAY,UAAU,2BAA2B;AAI5C,MAAM,aAAa,CAAC,UAA4B,OAAO;AAC7D,QAAM,WAAW,aAAa,OAAO;AACrC,SAAO,YAAY,OAAO,OAAiC;AAC1D,YAAQ,MAAM,SAAS,UAAU,OAAO,GAAG,gBAAgB,CAAC,GAAG;AAAA,EAChE,GAAG,CAAC,QAAQ,CAAC;AACd;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 personIdentityProviderFragment = TenantApi__namespace.personIdentityProvider$$.identityProvider(TenantApi__namespace.identityProviderListItem$$);
|
|
24
|
+
const useMyIdentityProvidersQuery = (options = {}) => {
|
|
25
|
+
const executor = useTenantApi.useTenantApi(options);
|
|
26
|
+
return React.useCallback(async ({} = {}) => {
|
|
27
|
+
const result = await executor(
|
|
28
|
+
TenantApi__namespace.query$.me(
|
|
29
|
+
TenantApi__namespace.identity$.person(
|
|
30
|
+
TenantApi__namespace.person$.identityProviders(personIdentityProviderFragment)
|
|
31
|
+
)
|
|
32
|
+
)
|
|
33
|
+
);
|
|
34
|
+
return result.me.person?.identityProviders ?? [];
|
|
35
|
+
}, [executor]);
|
|
36
|
+
};
|
|
37
|
+
exports.useMyIdentityProvidersQuery = useMyIdentityProvidersQuery;
|
|
38
|
+
//# sourceMappingURL=useMyIdentityProvidersQuery.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMyIdentityProvidersQuery.cjs","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useMyIdentityProvidersQuery.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 personIdentityProviderFragment = TenantApi\n\t.personIdentityProvider$$\n\t.identityProvider(TenantApi.identityProviderListItem$$)\n\nexport type MyIdentityProvidersQueryResult = readonly ModelType<typeof personIdentityProviderFragment>[]\n\nexport const useMyIdentityProvidersQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {} = {}): Promise<MyIdentityProvidersQueryResult> => {\n\t\tconst result = await executor(\n\t\t\tTenantApi.query$.me(\n\t\t\t\tTenantApi.identity$.person(\n\t\t\t\t\tTenantApi.person$.identityProviders(personIdentityProviderFragment),\n\t\t\t\t),\n\t\t\t),\n\t\t)\n\n\t\treturn result.me.person?.identityProviders ?? []\n\t}, [executor])\n}\n"],"names":["TenantApi","useTenantApi","useCallback"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,iCAAiCA,qBACrC,yBACA,iBAAiBA,qBAAU,0BAA0B;AAIhD,MAAM,8BAA8B,CAAC,UAA4B,OAAO;AAC9E,QAAM,WAAWC,aAAAA,aAAa,OAAO;AACrC,SAAOC,MAAAA,YAAY,OAAO,CAAA,IAAS,OAAgD;AAClF,UAAM,SAAS,MAAM;AAAA,MACpBF,qBAAU,OAAO;AAAA,QAChBA,qBAAU,UAAU;AAAA,UACnBA,qBAAU,QAAQ,kBAAkB,8BAA8B;AAAA,QAAA;AAAA,MACnE;AAAA,IACD;AAGD,WAAO,OAAO,GAAG,QAAQ,qBAAqB,CAAA;AAAA,EAC/C,GAAG,CAAC,QAAQ,CAAC;AACd;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
|
+
import { useTenantApi } from "../useTenantApi.js";
|
|
3
|
+
import { useCallback } from "react";
|
|
4
|
+
const personIdentityProviderFragment = TenantApi.personIdentityProvider$$.identityProvider(TenantApi.identityProviderListItem$$);
|
|
5
|
+
const useMyIdentityProvidersQuery = (options = {}) => {
|
|
6
|
+
const executor = useTenantApi(options);
|
|
7
|
+
return useCallback(async ({} = {}) => {
|
|
8
|
+
const result = await executor(
|
|
9
|
+
TenantApi.query$.me(
|
|
10
|
+
TenantApi.identity$.person(
|
|
11
|
+
TenantApi.person$.identityProviders(personIdentityProviderFragment)
|
|
12
|
+
)
|
|
13
|
+
)
|
|
14
|
+
);
|
|
15
|
+
return result.me.person?.identityProviders ?? [];
|
|
16
|
+
}, [executor]);
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
useMyIdentityProvidersQuery
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=useMyIdentityProvidersQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMyIdentityProvidersQuery.js","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useMyIdentityProvidersQuery.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 personIdentityProviderFragment = TenantApi\n\t.personIdentityProvider$$\n\t.identityProvider(TenantApi.identityProviderListItem$$)\n\nexport type MyIdentityProvidersQueryResult = readonly ModelType<typeof personIdentityProviderFragment>[]\n\nexport const useMyIdentityProvidersQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {} = {}): Promise<MyIdentityProvidersQueryResult> => {\n\t\tconst result = await executor(\n\t\t\tTenantApi.query$.me(\n\t\t\t\tTenantApi.identity$.person(\n\t\t\t\t\tTenantApi.person$.identityProviders(personIdentityProviderFragment),\n\t\t\t\t),\n\t\t\t),\n\t\t)\n\n\t\treturn result.me.person?.identityProviders ?? []\n\t}, [executor])\n}\n"],"names":[],"mappings":";;;AAKA,MAAM,iCAAiC,UACrC,yBACA,iBAAiB,UAAU,0BAA0B;AAIhD,MAAM,8BAA8B,CAAC,UAA4B,OAAO;AAC9E,QAAM,WAAW,aAAa,OAAO;AACrC,SAAO,YAAY,OAAO,CAAA,IAAS,OAAgD;AAClF,UAAM,SAAS,MAAM;AAAA,MACpB,UAAU,OAAO;AAAA,QAChB,UAAU,UAAU;AAAA,UACnB,UAAU,QAAQ,kBAAkB,8BAA8B;AAAA,QAAA;AAAA,MACnE;AAAA,IACD;AAGD,WAAO,OAAO,GAAG,QAAQ,qBAAqB,CAAA;AAAA,EAC/C,GAAG,CAAC,QAAQ,CAAC;AACd;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 sessionFragment = TenantApi__namespace.sessionInfo$$;
|
|
24
|
+
const useMySessionsQuery = (options = {}) => {
|
|
25
|
+
const executor = useTenantApi.useTenantApi(options);
|
|
26
|
+
return React.useCallback(async ({} = {}) => {
|
|
27
|
+
const result = await executor(
|
|
28
|
+
TenantApi__namespace.query$.me(TenantApi__namespace.identity$.sessions(sessionFragment))
|
|
29
|
+
);
|
|
30
|
+
return result.me.sessions;
|
|
31
|
+
}, [executor]);
|
|
32
|
+
};
|
|
33
|
+
exports.useMySessionsQuery = useMySessionsQuery;
|
|
34
|
+
//# sourceMappingURL=useMySessionsQuery.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMySessionsQuery.cjs","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useMySessionsQuery.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 sessionFragment = TenantApi.sessionInfo$$\n\nexport type MySessionsQueryResult = readonly ModelType<typeof sessionFragment>[]\n\nexport const useMySessionsQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {} = {}): Promise<MySessionsQueryResult> => {\n\t\tconst result = await executor(\n\t\t\tTenantApi.query$.me(TenantApi.identity$.sessions(sessionFragment)),\n\t\t)\n\n\t\treturn result.me.sessions\n\t}, [executor])\n}\n"],"names":["TenantApi","useTenantApi","useCallback"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,kBAAkBA,qBAAU;AAI3B,MAAM,qBAAqB,CAAC,UAA4B,OAAO;AACrE,QAAM,WAAWC,aAAAA,aAAa,OAAO;AACrC,SAAOC,MAAAA,YAAY,OAAO,CAAA,IAAS,OAAuC;AACzE,UAAM,SAAS,MAAM;AAAA,MACpBF,qBAAU,OAAO,GAAGA,qBAAU,UAAU,SAAS,eAAe,CAAC;AAAA,IAAA;AAGlE,WAAO,OAAO,GAAG;AAAA,EAClB,GAAG,CAAC,QAAQ,CAAC;AACd;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as TenantApi from "@contember/graphql-client-tenant";
|
|
2
|
+
import { useTenantApi } from "../useTenantApi.js";
|
|
3
|
+
import { useCallback } from "react";
|
|
4
|
+
const sessionFragment = TenantApi.sessionInfo$$;
|
|
5
|
+
const useMySessionsQuery = (options = {}) => {
|
|
6
|
+
const executor = useTenantApi(options);
|
|
7
|
+
return useCallback(async ({} = {}) => {
|
|
8
|
+
const result = await executor(
|
|
9
|
+
TenantApi.query$.me(TenantApi.identity$.sessions(sessionFragment))
|
|
10
|
+
);
|
|
11
|
+
return result.me.sessions;
|
|
12
|
+
}, [executor]);
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
useMySessionsQuery
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=useMySessionsQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMySessionsQuery.js","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useMySessionsQuery.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 sessionFragment = TenantApi.sessionInfo$$\n\nexport type MySessionsQueryResult = readonly ModelType<typeof sessionFragment>[]\n\nexport const useMySessionsQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({}: {} = {}): Promise<MySessionsQueryResult> => {\n\t\tconst result = await executor(\n\t\t\tTenantApi.query$.me(TenantApi.identity$.sessions(sessionFragment)),\n\t\t)\n\n\t\treturn result.me.sessions\n\t}, [executor])\n}\n"],"names":[],"mappings":";;;AAKA,MAAM,kBAAkB,UAAU;AAI3B,MAAM,qBAAqB,CAAC,UAA4B,OAAO;AACrE,QAAM,WAAW,aAAa,OAAO;AACrC,SAAO,YAAY,OAAO,CAAA,IAAS,OAAuC;AACzE,UAAM,SAAS,MAAM;AAAA,MACpB,UAAU,OAAO,GAAG,UAAU,UAAU,SAAS,eAAe,CAAC;AAAA,IAAA;AAGlE,WAAO,OAAO,GAAG;AAAA,EAClB,GAAG,CAAC,QAAQ,CAAC;AACd;"}
|