@contember/react-client-tenant 2.2.0-alpha.2 → 2.2.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (726) hide show
  1. package/CLAUDE.md +40 -0
  2. package/dist/development/index.cjs +123 -0
  3. package/dist/development/index.cjs.map +1 -1
  4. package/dist/development/index.js +123 -0
  5. package/dist/development/index.js.map +1 -1
  6. package/dist/development/src/components/forms/AddProjectMemberForm.cjs +59 -0
  7. package/dist/development/src/components/forms/AddProjectMemberForm.cjs.map +1 -0
  8. package/dist/development/src/components/forms/AddProjectMemberForm.js +59 -0
  9. package/dist/development/src/components/forms/AddProjectMemberForm.js.map +1 -0
  10. package/dist/development/src/components/forms/ChangeMyProfileForm.cjs +58 -0
  11. package/dist/development/src/components/forms/ChangeMyProfileForm.cjs.map +1 -0
  12. package/dist/development/src/components/forms/ChangeMyProfileForm.js +58 -0
  13. package/dist/development/src/components/forms/ChangeMyProfileForm.js.map +1 -0
  14. package/dist/development/src/components/forms/ChangePasswordForm.cjs +57 -0
  15. package/dist/development/src/components/forms/ChangePasswordForm.cjs.map +1 -0
  16. package/dist/development/src/components/forms/ChangePasswordForm.js +57 -0
  17. package/dist/development/src/components/forms/ChangePasswordForm.js.map +1 -0
  18. package/dist/development/src/components/forms/ChangeProfileForm.cjs +54 -0
  19. package/dist/development/src/components/forms/ChangeProfileForm.cjs.map +1 -0
  20. package/dist/development/src/components/forms/ChangeProfileForm.js +54 -0
  21. package/dist/development/src/components/forms/ChangeProfileForm.js.map +1 -0
  22. package/dist/development/src/components/forms/CreateGlobalApiKeyForm.cjs +53 -0
  23. package/dist/development/src/components/forms/CreateGlobalApiKeyForm.cjs.map +1 -0
  24. package/dist/development/src/components/forms/CreateGlobalApiKeyForm.js +53 -0
  25. package/dist/development/src/components/forms/CreateGlobalApiKeyForm.js.map +1 -0
  26. package/dist/development/src/components/forms/EmailOtpConfirmForm.cjs +51 -0
  27. package/dist/development/src/components/forms/EmailOtpConfirmForm.cjs.map +1 -0
  28. package/dist/development/src/components/forms/EmailOtpConfirmForm.js +51 -0
  29. package/dist/development/src/components/forms/EmailOtpConfirmForm.js.map +1 -0
  30. package/dist/development/src/components/forms/InviteForm.cjs +23 -3
  31. package/dist/development/src/components/forms/InviteForm.cjs.map +1 -1
  32. package/dist/development/src/components/forms/InviteForm.js +23 -3
  33. package/dist/development/src/components/forms/InviteForm.js.map +1 -1
  34. package/dist/development/src/components/forms/LoginForm.cjs +5 -3
  35. package/dist/development/src/components/forms/LoginForm.cjs.map +1 -1
  36. package/dist/development/src/components/forms/LoginForm.js +5 -3
  37. package/dist/development/src/components/forms/LoginForm.js.map +1 -1
  38. package/dist/development/src/components/forms/PasswordlessSignInForm.cjs +5 -3
  39. package/dist/development/src/components/forms/PasswordlessSignInForm.cjs.map +1 -1
  40. package/dist/development/src/components/forms/PasswordlessSignInForm.js +5 -3
  41. package/dist/development/src/components/forms/PasswordlessSignInForm.js.map +1 -1
  42. package/dist/development/src/components/forms/SetProjectSecretForm.cjs +53 -0
  43. package/dist/development/src/components/forms/SetProjectSecretForm.cjs.map +1 -0
  44. package/dist/development/src/components/forms/SetProjectSecretForm.js +53 -0
  45. package/dist/development/src/components/forms/SetProjectSecretForm.js.map +1 -0
  46. package/dist/development/src/components/forms/SignUpForm.cjs +66 -0
  47. package/dist/development/src/components/forms/SignUpForm.cjs.map +1 -0
  48. package/dist/development/src/components/forms/SignUpForm.js +66 -0
  49. package/dist/development/src/components/forms/SignUpForm.js.map +1 -0
  50. package/dist/development/src/components/forms/TenantForm.cjs +8 -4
  51. package/dist/development/src/components/forms/TenantForm.cjs.map +1 -1
  52. package/dist/development/src/components/forms/TenantForm.js +8 -4
  53. package/dist/development/src/components/forms/TenantForm.js.map +1 -1
  54. package/dist/development/src/components/triggers/DisableEmailOtpTrigger.cjs +32 -0
  55. package/dist/development/src/components/triggers/DisableEmailOtpTrigger.cjs.map +1 -0
  56. package/dist/development/src/components/triggers/DisableEmailOtpTrigger.js +32 -0
  57. package/dist/development/src/components/triggers/DisableEmailOtpTrigger.js.map +1 -0
  58. package/dist/development/src/components/triggers/DisableMyPasswordlessTrigger.cjs +32 -0
  59. package/dist/development/src/components/triggers/DisableMyPasswordlessTrigger.cjs.map +1 -0
  60. package/dist/development/src/components/triggers/DisableMyPasswordlessTrigger.js +32 -0
  61. package/dist/development/src/components/triggers/DisableMyPasswordlessTrigger.js.map +1 -0
  62. package/dist/development/src/components/triggers/DisableOtpTrigger.cjs +1 -1
  63. package/dist/development/src/components/triggers/DisableOtpTrigger.cjs.map +1 -1
  64. package/dist/development/src/components/triggers/DisableOtpTrigger.js +1 -1
  65. package/dist/development/src/components/triggers/DisableOtpTrigger.js.map +1 -1
  66. package/dist/development/src/components/triggers/DisablePersonTrigger.cjs +17 -0
  67. package/dist/development/src/components/triggers/DisablePersonTrigger.cjs.map +1 -0
  68. package/dist/development/src/components/triggers/DisablePersonTrigger.js +17 -0
  69. package/dist/development/src/components/triggers/DisablePersonTrigger.js.map +1 -0
  70. package/dist/development/src/components/triggers/EnableMyPasswordlessTrigger.cjs +32 -0
  71. package/dist/development/src/components/triggers/EnableMyPasswordlessTrigger.cjs.map +1 -0
  72. package/dist/development/src/components/triggers/EnableMyPasswordlessTrigger.js +32 -0
  73. package/dist/development/src/components/triggers/EnableMyPasswordlessTrigger.js.map +1 -0
  74. package/dist/development/src/components/triggers/EnablePersonTrigger.cjs +17 -0
  75. package/dist/development/src/components/triggers/EnablePersonTrigger.cjs.map +1 -0
  76. package/dist/development/src/components/triggers/EnablePersonTrigger.js +17 -0
  77. package/dist/development/src/components/triggers/EnablePersonTrigger.js.map +1 -0
  78. package/dist/development/src/components/triggers/ForceSignOutPersonTrigger.cjs +17 -0
  79. package/dist/development/src/components/triggers/ForceSignOutPersonTrigger.cjs.map +1 -0
  80. package/dist/development/src/components/triggers/ForceSignOutPersonTrigger.js +17 -0
  81. package/dist/development/src/components/triggers/ForceSignOutPersonTrigger.js.map +1 -0
  82. package/dist/development/src/components/triggers/InitEmailOtpTrigger.cjs +16 -0
  83. package/dist/development/src/components/triggers/InitEmailOtpTrigger.cjs.map +1 -0
  84. package/dist/development/src/components/triggers/InitEmailOtpTrigger.js +16 -0
  85. package/dist/development/src/components/triggers/InitEmailOtpTrigger.js.map +1 -0
  86. package/dist/development/src/components/triggers/RegenerateBackupCodesTrigger.cjs +26 -0
  87. package/dist/development/src/components/triggers/RegenerateBackupCodesTrigger.cjs.map +1 -0
  88. package/dist/development/src/components/triggers/RegenerateBackupCodesTrigger.js +26 -0
  89. package/dist/development/src/components/triggers/RegenerateBackupCodesTrigger.js.map +1 -0
  90. package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.cjs +1 -1
  91. package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -1
  92. package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.js +1 -1
  93. package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.js.map +1 -1
  94. package/dist/development/src/components/triggers/ResetPersonMfaTrigger.cjs +17 -0
  95. package/dist/development/src/components/triggers/ResetPersonMfaTrigger.cjs.map +1 -0
  96. package/dist/development/src/components/triggers/ResetPersonMfaTrigger.js +17 -0
  97. package/dist/development/src/components/triggers/ResetPersonMfaTrigger.js.map +1 -0
  98. package/dist/development/src/components/triggers/RevokeSessionTrigger.cjs +17 -0
  99. package/dist/development/src/components/triggers/RevokeSessionTrigger.cjs.map +1 -0
  100. package/dist/development/src/components/triggers/RevokeSessionTrigger.js +17 -0
  101. package/dist/development/src/components/triggers/RevokeSessionTrigger.js.map +1 -0
  102. package/dist/development/src/components/triggers/TenantActionTrigger.cjs +7 -3
  103. package/dist/development/src/components/triggers/TenantActionTrigger.cjs.map +1 -1
  104. package/dist/development/src/components/triggers/TenantActionTrigger.js +7 -3
  105. package/dist/development/src/components/triggers/TenantActionTrigger.js.map +1 -1
  106. package/dist/development/src/hooks/mutations/auth/useSignUpMutation.cjs +30 -0
  107. package/dist/development/src/hooks/mutations/auth/useSignUpMutation.cjs.map +1 -0
  108. package/dist/development/src/hooks/mutations/auth/useSignUpMutation.js +13 -0
  109. package/dist/development/src/hooks/mutations/auth/useSignUpMutation.js.map +1 -0
  110. package/dist/development/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.cjs +30 -0
  111. package/dist/development/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.cjs.map +1 -0
  112. package/dist/development/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.js +13 -0
  113. package/dist/development/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.js.map +1 -0
  114. package/dist/development/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.cjs +29 -0
  115. package/dist/development/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.cjs.map +1 -0
  116. package/dist/development/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.js +12 -0
  117. package/dist/development/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.js.map +1 -0
  118. package/dist/development/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.cjs +29 -0
  119. package/dist/development/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.cjs.map +1 -0
  120. package/dist/development/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.js +12 -0
  121. package/dist/development/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.js.map +1 -0
  122. package/dist/development/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.cjs +30 -0
  123. package/dist/development/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.cjs.map +1 -0
  124. package/dist/development/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.js +13 -0
  125. package/dist/development/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.js.map +1 -0
  126. package/dist/development/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.cjs +30 -0
  127. package/dist/development/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.cjs.map +1 -0
  128. package/dist/development/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.js +13 -0
  129. package/dist/development/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.js.map +1 -0
  130. package/dist/development/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.cjs +29 -0
  131. package/dist/development/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.cjs.map +1 -0
  132. package/dist/development/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.js +12 -0
  133. package/dist/development/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.js.map +1 -0
  134. package/dist/development/src/hooks/mutations/invite/useUnmanagedInviteMutation.cjs +30 -0
  135. package/dist/development/src/hooks/mutations/invite/useUnmanagedInviteMutation.cjs.map +1 -0
  136. package/dist/development/src/hooks/mutations/invite/useUnmanagedInviteMutation.js +13 -0
  137. package/dist/development/src/hooks/mutations/invite/useUnmanagedInviteMutation.js.map +1 -0
  138. package/dist/development/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.cjs +30 -0
  139. package/dist/development/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.cjs.map +1 -0
  140. package/dist/development/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.js +13 -0
  141. package/dist/development/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.js.map +1 -0
  142. package/dist/development/src/hooks/mutations/person/useChangePasswordMutation.cjs +29 -0
  143. package/dist/development/src/hooks/mutations/person/useChangePasswordMutation.cjs.map +1 -0
  144. package/dist/development/src/hooks/mutations/person/useChangePasswordMutation.js +12 -0
  145. package/dist/development/src/hooks/mutations/person/useChangePasswordMutation.js.map +1 -0
  146. package/dist/development/src/hooks/mutations/person/useDisablePersonMutation.cjs +29 -0
  147. package/dist/development/src/hooks/mutations/person/useDisablePersonMutation.cjs.map +1 -0
  148. package/dist/development/src/hooks/mutations/person/useDisablePersonMutation.js +12 -0
  149. package/dist/development/src/hooks/mutations/person/useDisablePersonMutation.js.map +1 -0
  150. package/dist/development/src/hooks/mutations/person/useEnablePersonMutation.cjs +29 -0
  151. package/dist/development/src/hooks/mutations/person/useEnablePersonMutation.cjs.map +1 -0
  152. package/dist/development/src/hooks/mutations/person/useEnablePersonMutation.js +12 -0
  153. package/dist/development/src/hooks/mutations/person/useEnablePersonMutation.js.map +1 -0
  154. package/dist/development/src/hooks/mutations/person/useForceSignOutPersonMutation.cjs +29 -0
  155. package/dist/development/src/hooks/mutations/person/useForceSignOutPersonMutation.cjs.map +1 -0
  156. package/dist/development/src/hooks/mutations/person/useForceSignOutPersonMutation.js +12 -0
  157. package/dist/development/src/hooks/mutations/person/useForceSignOutPersonMutation.js.map +1 -0
  158. package/dist/development/src/hooks/mutations/person/useResetPersonMfaMutation.cjs +29 -0
  159. package/dist/development/src/hooks/mutations/person/useResetPersonMfaMutation.cjs.map +1 -0
  160. package/dist/development/src/hooks/mutations/person/useResetPersonMfaMutation.js +12 -0
  161. package/dist/development/src/hooks/mutations/person/useResetPersonMfaMutation.js.map +1 -0
  162. package/dist/development/src/hooks/mutations/project/useSetProjectSecretMutation.cjs +29 -0
  163. package/dist/development/src/hooks/mutations/project/useSetProjectSecretMutation.cjs.map +1 -0
  164. package/dist/development/src/hooks/mutations/project/useSetProjectSecretMutation.js +12 -0
  165. package/dist/development/src/hooks/mutations/project/useSetProjectSecretMutation.js.map +1 -0
  166. package/dist/development/src/hooks/mutations/session/useRevokeSessionMutation.cjs +29 -0
  167. package/dist/development/src/hooks/mutations/session/useRevokeSessionMutation.cjs.map +1 -0
  168. package/dist/development/src/hooks/mutations/session/useRevokeSessionMutation.js +12 -0
  169. package/dist/development/src/hooks/mutations/session/useRevokeSessionMutation.js.map +1 -0
  170. package/dist/development/src/hooks/queries/useAuthLogQuery.cjs +39 -0
  171. package/dist/development/src/hooks/queries/useAuthLogQuery.cjs.map +1 -0
  172. package/dist/development/src/hooks/queries/useAuthLogQuery.js +22 -0
  173. package/dist/development/src/hooks/queries/useAuthLogQuery.js.map +1 -0
  174. package/dist/development/src/hooks/queries/useAuthPoliciesQuery.cjs +32 -0
  175. package/dist/development/src/hooks/queries/useAuthPoliciesQuery.cjs.map +1 -0
  176. package/dist/development/src/hooks/queries/useAuthPoliciesQuery.js +15 -0
  177. package/dist/development/src/hooks/queries/useAuthPoliciesQuery.js.map +1 -0
  178. package/dist/development/src/hooks/queries/useConfigurationQuery.cjs +33 -0
  179. package/dist/development/src/hooks/queries/useConfigurationQuery.cjs.map +1 -0
  180. package/dist/development/src/hooks/queries/useConfigurationQuery.js +16 -0
  181. package/dist/development/src/hooks/queries/useConfigurationQuery.js.map +1 -0
  182. package/dist/development/src/hooks/queries/useGlobalApiKeysQuery.cjs +32 -0
  183. package/dist/development/src/hooks/queries/useGlobalApiKeysQuery.cjs.map +1 -0
  184. package/dist/development/src/hooks/queries/useGlobalApiKeysQuery.js +15 -0
  185. package/dist/development/src/hooks/queries/useGlobalApiKeysQuery.js.map +1 -0
  186. package/dist/development/src/hooks/queries/useIdentityProvidersQuery.cjs +32 -0
  187. package/dist/development/src/hooks/queries/useIdentityProvidersQuery.cjs.map +1 -0
  188. package/dist/development/src/hooks/queries/useIdentityProvidersQuery.js +15 -0
  189. package/dist/development/src/hooks/queries/useIdentityProvidersQuery.js.map +1 -0
  190. package/dist/development/src/hooks/queries/useMailTemplatesQuery.cjs +32 -0
  191. package/dist/development/src/hooks/queries/useMailTemplatesQuery.cjs.map +1 -0
  192. package/dist/development/src/hooks/queries/useMailTemplatesQuery.js +15 -0
  193. package/dist/development/src/hooks/queries/useMailTemplatesQuery.js.map +1 -0
  194. package/dist/development/src/hooks/queries/useMeQuery.cjs +4 -2
  195. package/dist/development/src/hooks/queries/useMeQuery.cjs.map +1 -1
  196. package/dist/development/src/hooks/queries/useMeQuery.js +4 -2
  197. package/dist/development/src/hooks/queries/useMeQuery.js.map +1 -1
  198. package/dist/development/src/hooks/queries/useMyIdentityProvidersQuery.cjs +38 -0
  199. package/dist/development/src/hooks/queries/useMyIdentityProvidersQuery.cjs.map +1 -0
  200. package/dist/development/src/hooks/queries/useMyIdentityProvidersQuery.js +21 -0
  201. package/dist/development/src/hooks/queries/useMyIdentityProvidersQuery.js.map +1 -0
  202. package/dist/development/src/hooks/queries/useMySessionsQuery.cjs +34 -0
  203. package/dist/development/src/hooks/queries/useMySessionsQuery.cjs.map +1 -0
  204. package/dist/development/src/hooks/queries/useMySessionsQuery.js +17 -0
  205. package/dist/development/src/hooks/queries/useMySessionsQuery.js.map +1 -0
  206. package/dist/development/src/hooks/queries/usePersonQuery.cjs +40 -0
  207. package/dist/development/src/hooks/queries/usePersonQuery.cjs.map +1 -0
  208. package/dist/development/src/hooks/queries/usePersonQuery.js +23 -0
  209. package/dist/development/src/hooks/queries/usePersonQuery.js.map +1 -0
  210. package/dist/development/src/hooks/queries/usePersonSessionsQuery.cjs +39 -0
  211. package/dist/development/src/hooks/queries/usePersonSessionsQuery.cjs.map +1 -0
  212. package/dist/development/src/hooks/queries/usePersonSessionsQuery.js +22 -0
  213. package/dist/development/src/hooks/queries/usePersonSessionsQuery.js.map +1 -0
  214. package/dist/development/src/hooks/queries/usePersonsQuery.cjs +45 -0
  215. package/dist/development/src/hooks/queries/usePersonsQuery.cjs.map +1 -0
  216. package/dist/development/src/hooks/queries/usePersonsQuery.js +28 -0
  217. package/dist/development/src/hooks/queries/usePersonsQuery.js.map +1 -0
  218. package/dist/development/src/hooks/queries/useProjectApiKeysQuery.cjs +49 -0
  219. package/dist/development/src/hooks/queries/useProjectApiKeysQuery.cjs.map +1 -0
  220. package/dist/development/src/hooks/queries/useProjectApiKeysQuery.js +32 -0
  221. package/dist/development/src/hooks/queries/useProjectApiKeysQuery.js.map +1 -0
  222. package/dist/development/src/hooks/queries/useProjectMembersQuery.cjs +1 -1
  223. package/dist/development/src/hooks/queries/useProjectMembersQuery.cjs.map +1 -1
  224. package/dist/development/src/hooks/queries/useProjectMembersQuery.js +1 -1
  225. package/dist/development/src/hooks/queries/useProjectMembersQuery.js.map +1 -1
  226. package/dist/development/src/hooks/queries/useProjectSecretsQuery.cjs +45 -0
  227. package/dist/development/src/hooks/queries/useProjectSecretsQuery.cjs.map +1 -0
  228. package/dist/development/src/hooks/queries/useProjectSecretsQuery.js +28 -0
  229. package/dist/development/src/hooks/queries/useProjectSecretsQuery.js.map +1 -0
  230. package/dist/development/src/hooks/useFetchIdentity.cjs +17 -3
  231. package/dist/development/src/hooks/useFetchIdentity.cjs.map +1 -1
  232. package/dist/development/src/hooks/useFetchIdentity.js +17 -3
  233. package/dist/development/src/hooks/useFetchIdentity.js.map +1 -1
  234. package/dist/development/src/types/forbidden.cjs +16 -0
  235. package/dist/development/src/types/forbidden.cjs.map +1 -0
  236. package/dist/development/src/types/forbidden.js +16 -0
  237. package/dist/development/src/types/forbidden.js.map +1 -0
  238. package/dist/production/index.cjs +123 -0
  239. package/dist/production/index.cjs.map +1 -1
  240. package/dist/production/index.js +123 -0
  241. package/dist/production/index.js.map +1 -1
  242. package/dist/production/src/components/forms/AddProjectMemberForm.cjs +51 -0
  243. package/dist/production/src/components/forms/AddProjectMemberForm.cjs.map +1 -0
  244. package/dist/production/src/components/forms/AddProjectMemberForm.js +51 -0
  245. package/dist/production/src/components/forms/AddProjectMemberForm.js.map +1 -0
  246. package/dist/production/src/components/forms/ChangeMyProfileForm.cjs +50 -0
  247. package/dist/production/src/components/forms/ChangeMyProfileForm.cjs.map +1 -0
  248. package/dist/production/src/components/forms/ChangeMyProfileForm.js +50 -0
  249. package/dist/production/src/components/forms/ChangeMyProfileForm.js.map +1 -0
  250. package/dist/production/src/components/forms/ChangePasswordForm.cjs +49 -0
  251. package/dist/production/src/components/forms/ChangePasswordForm.cjs.map +1 -0
  252. package/dist/production/src/components/forms/ChangePasswordForm.js +49 -0
  253. package/dist/production/src/components/forms/ChangePasswordForm.js.map +1 -0
  254. package/dist/production/src/components/forms/ChangeProfileForm.cjs +46 -0
  255. package/dist/production/src/components/forms/ChangeProfileForm.cjs.map +1 -0
  256. package/dist/production/src/components/forms/ChangeProfileForm.js +46 -0
  257. package/dist/production/src/components/forms/ChangeProfileForm.js.map +1 -0
  258. package/dist/production/src/components/forms/CreateGlobalApiKeyForm.cjs +45 -0
  259. package/dist/production/src/components/forms/CreateGlobalApiKeyForm.cjs.map +1 -0
  260. package/dist/production/src/components/forms/CreateGlobalApiKeyForm.js +45 -0
  261. package/dist/production/src/components/forms/CreateGlobalApiKeyForm.js.map +1 -0
  262. package/dist/production/src/components/forms/EmailOtpConfirmForm.cjs +43 -0
  263. package/dist/production/src/components/forms/EmailOtpConfirmForm.cjs.map +1 -0
  264. package/dist/production/src/components/forms/EmailOtpConfirmForm.js +43 -0
  265. package/dist/production/src/components/forms/EmailOtpConfirmForm.js.map +1 -0
  266. package/dist/production/src/components/forms/InviteForm.cjs +22 -2
  267. package/dist/production/src/components/forms/InviteForm.cjs.map +1 -1
  268. package/dist/production/src/components/forms/InviteForm.js +22 -2
  269. package/dist/production/src/components/forms/InviteForm.js.map +1 -1
  270. package/dist/production/src/components/forms/LoginForm.cjs +4 -2
  271. package/dist/production/src/components/forms/LoginForm.cjs.map +1 -1
  272. package/dist/production/src/components/forms/LoginForm.js +4 -2
  273. package/dist/production/src/components/forms/LoginForm.js.map +1 -1
  274. package/dist/production/src/components/forms/PasswordlessSignInForm.cjs +4 -2
  275. package/dist/production/src/components/forms/PasswordlessSignInForm.cjs.map +1 -1
  276. package/dist/production/src/components/forms/PasswordlessSignInForm.js +4 -2
  277. package/dist/production/src/components/forms/PasswordlessSignInForm.js.map +1 -1
  278. package/dist/production/src/components/forms/SetProjectSecretForm.cjs +45 -0
  279. package/dist/production/src/components/forms/SetProjectSecretForm.cjs.map +1 -0
  280. package/dist/production/src/components/forms/SetProjectSecretForm.js +45 -0
  281. package/dist/production/src/components/forms/SetProjectSecretForm.js.map +1 -0
  282. package/dist/production/src/components/forms/SignUpForm.cjs +58 -0
  283. package/dist/production/src/components/forms/SignUpForm.cjs.map +1 -0
  284. package/dist/production/src/components/forms/SignUpForm.js +58 -0
  285. package/dist/production/src/components/forms/SignUpForm.js.map +1 -0
  286. package/dist/production/src/components/forms/TenantForm.cjs +6 -2
  287. package/dist/production/src/components/forms/TenantForm.cjs.map +1 -1
  288. package/dist/production/src/components/forms/TenantForm.js +6 -2
  289. package/dist/production/src/components/forms/TenantForm.js.map +1 -1
  290. package/dist/production/src/components/triggers/DisableEmailOtpTrigger.cjs +24 -0
  291. package/dist/production/src/components/triggers/DisableEmailOtpTrigger.cjs.map +1 -0
  292. package/dist/production/src/components/triggers/DisableEmailOtpTrigger.js +24 -0
  293. package/dist/production/src/components/triggers/DisableEmailOtpTrigger.js.map +1 -0
  294. package/dist/production/src/components/triggers/DisableMyPasswordlessTrigger.cjs +24 -0
  295. package/dist/production/src/components/triggers/DisableMyPasswordlessTrigger.cjs.map +1 -0
  296. package/dist/production/src/components/triggers/DisableMyPasswordlessTrigger.js +24 -0
  297. package/dist/production/src/components/triggers/DisableMyPasswordlessTrigger.js.map +1 -0
  298. package/dist/production/src/components/triggers/DisableOtpTrigger.cjs.map +1 -1
  299. package/dist/production/src/components/triggers/DisableOtpTrigger.js.map +1 -1
  300. package/dist/production/src/components/triggers/DisablePersonTrigger.cjs +13 -0
  301. package/dist/production/src/components/triggers/DisablePersonTrigger.cjs.map +1 -0
  302. package/dist/production/src/components/triggers/DisablePersonTrigger.js +13 -0
  303. package/dist/production/src/components/triggers/DisablePersonTrigger.js.map +1 -0
  304. package/dist/production/src/components/triggers/EnableMyPasswordlessTrigger.cjs +24 -0
  305. package/dist/production/src/components/triggers/EnableMyPasswordlessTrigger.cjs.map +1 -0
  306. package/dist/production/src/components/triggers/EnableMyPasswordlessTrigger.js +24 -0
  307. package/dist/production/src/components/triggers/EnableMyPasswordlessTrigger.js.map +1 -0
  308. package/dist/production/src/components/triggers/EnablePersonTrigger.cjs +13 -0
  309. package/dist/production/src/components/triggers/EnablePersonTrigger.cjs.map +1 -0
  310. package/dist/production/src/components/triggers/EnablePersonTrigger.js +13 -0
  311. package/dist/production/src/components/triggers/EnablePersonTrigger.js.map +1 -0
  312. package/dist/production/src/components/triggers/ForceSignOutPersonTrigger.cjs +13 -0
  313. package/dist/production/src/components/triggers/ForceSignOutPersonTrigger.cjs.map +1 -0
  314. package/dist/production/src/components/triggers/ForceSignOutPersonTrigger.js +13 -0
  315. package/dist/production/src/components/triggers/ForceSignOutPersonTrigger.js.map +1 -0
  316. package/dist/production/src/components/triggers/InitEmailOtpTrigger.cjs +12 -0
  317. package/dist/production/src/components/triggers/InitEmailOtpTrigger.cjs.map +1 -0
  318. package/dist/production/src/components/triggers/InitEmailOtpTrigger.js +12 -0
  319. package/dist/production/src/components/triggers/InitEmailOtpTrigger.js.map +1 -0
  320. package/dist/production/src/components/triggers/RegenerateBackupCodesTrigger.cjs +18 -0
  321. package/dist/production/src/components/triggers/RegenerateBackupCodesTrigger.cjs.map +1 -0
  322. package/dist/production/src/components/triggers/RegenerateBackupCodesTrigger.js +18 -0
  323. package/dist/production/src/components/triggers/RegenerateBackupCodesTrigger.js.map +1 -0
  324. package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -1
  325. package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.js.map +1 -1
  326. package/dist/production/src/components/triggers/ResetPersonMfaTrigger.cjs +13 -0
  327. package/dist/production/src/components/triggers/ResetPersonMfaTrigger.cjs.map +1 -0
  328. package/dist/production/src/components/triggers/ResetPersonMfaTrigger.js +13 -0
  329. package/dist/production/src/components/triggers/ResetPersonMfaTrigger.js.map +1 -0
  330. package/dist/production/src/components/triggers/RevokeSessionTrigger.cjs +13 -0
  331. package/dist/production/src/components/triggers/RevokeSessionTrigger.cjs.map +1 -0
  332. package/dist/production/src/components/triggers/RevokeSessionTrigger.js +13 -0
  333. package/dist/production/src/components/triggers/RevokeSessionTrigger.js.map +1 -0
  334. package/dist/production/src/components/triggers/TenantActionTrigger.cjs +6 -2
  335. package/dist/production/src/components/triggers/TenantActionTrigger.cjs.map +1 -1
  336. package/dist/production/src/components/triggers/TenantActionTrigger.js +6 -2
  337. package/dist/production/src/components/triggers/TenantActionTrigger.js.map +1 -1
  338. package/dist/production/src/hooks/mutations/auth/useSignUpMutation.cjs +30 -0
  339. package/dist/production/src/hooks/mutations/auth/useSignUpMutation.cjs.map +1 -0
  340. package/dist/production/src/hooks/mutations/auth/useSignUpMutation.js +13 -0
  341. package/dist/production/src/hooks/mutations/auth/useSignUpMutation.js.map +1 -0
  342. package/dist/production/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.cjs +30 -0
  343. package/dist/production/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.cjs.map +1 -0
  344. package/dist/production/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.js +13 -0
  345. package/dist/production/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.js.map +1 -0
  346. package/dist/production/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.cjs +29 -0
  347. package/dist/production/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.cjs.map +1 -0
  348. package/dist/production/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.js +12 -0
  349. package/dist/production/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.js.map +1 -0
  350. package/dist/production/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.cjs +29 -0
  351. package/dist/production/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.cjs.map +1 -0
  352. package/dist/production/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.js +12 -0
  353. package/dist/production/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.js.map +1 -0
  354. package/dist/production/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.cjs +30 -0
  355. package/dist/production/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.cjs.map +1 -0
  356. package/dist/production/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.js +13 -0
  357. package/dist/production/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.js.map +1 -0
  358. package/dist/production/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.cjs +30 -0
  359. package/dist/production/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.cjs.map +1 -0
  360. package/dist/production/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.js +13 -0
  361. package/dist/production/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.js.map +1 -0
  362. package/dist/production/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.cjs +29 -0
  363. package/dist/production/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.cjs.map +1 -0
  364. package/dist/production/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.js +12 -0
  365. package/dist/production/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.js.map +1 -0
  366. package/dist/production/src/hooks/mutations/invite/useUnmanagedInviteMutation.cjs +30 -0
  367. package/dist/production/src/hooks/mutations/invite/useUnmanagedInviteMutation.cjs.map +1 -0
  368. package/dist/production/src/hooks/mutations/invite/useUnmanagedInviteMutation.js +13 -0
  369. package/dist/production/src/hooks/mutations/invite/useUnmanagedInviteMutation.js.map +1 -0
  370. package/dist/production/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.cjs +30 -0
  371. package/dist/production/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.cjs.map +1 -0
  372. package/dist/production/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.js +13 -0
  373. package/dist/production/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.js.map +1 -0
  374. package/dist/production/src/hooks/mutations/person/useChangePasswordMutation.cjs +29 -0
  375. package/dist/production/src/hooks/mutations/person/useChangePasswordMutation.cjs.map +1 -0
  376. package/dist/production/src/hooks/mutations/person/useChangePasswordMutation.js +12 -0
  377. package/dist/production/src/hooks/mutations/person/useChangePasswordMutation.js.map +1 -0
  378. package/dist/production/src/hooks/mutations/person/useDisablePersonMutation.cjs +29 -0
  379. package/dist/production/src/hooks/mutations/person/useDisablePersonMutation.cjs.map +1 -0
  380. package/dist/production/src/hooks/mutations/person/useDisablePersonMutation.js +12 -0
  381. package/dist/production/src/hooks/mutations/person/useDisablePersonMutation.js.map +1 -0
  382. package/dist/production/src/hooks/mutations/person/useEnablePersonMutation.cjs +29 -0
  383. package/dist/production/src/hooks/mutations/person/useEnablePersonMutation.cjs.map +1 -0
  384. package/dist/production/src/hooks/mutations/person/useEnablePersonMutation.js +12 -0
  385. package/dist/production/src/hooks/mutations/person/useEnablePersonMutation.js.map +1 -0
  386. package/dist/production/src/hooks/mutations/person/useForceSignOutPersonMutation.cjs +29 -0
  387. package/dist/production/src/hooks/mutations/person/useForceSignOutPersonMutation.cjs.map +1 -0
  388. package/dist/production/src/hooks/mutations/person/useForceSignOutPersonMutation.js +12 -0
  389. package/dist/production/src/hooks/mutations/person/useForceSignOutPersonMutation.js.map +1 -0
  390. package/dist/production/src/hooks/mutations/person/useResetPersonMfaMutation.cjs +29 -0
  391. package/dist/production/src/hooks/mutations/person/useResetPersonMfaMutation.cjs.map +1 -0
  392. package/dist/production/src/hooks/mutations/person/useResetPersonMfaMutation.js +12 -0
  393. package/dist/production/src/hooks/mutations/person/useResetPersonMfaMutation.js.map +1 -0
  394. package/dist/production/src/hooks/mutations/project/useSetProjectSecretMutation.cjs +29 -0
  395. package/dist/production/src/hooks/mutations/project/useSetProjectSecretMutation.cjs.map +1 -0
  396. package/dist/production/src/hooks/mutations/project/useSetProjectSecretMutation.js +12 -0
  397. package/dist/production/src/hooks/mutations/project/useSetProjectSecretMutation.js.map +1 -0
  398. package/dist/production/src/hooks/mutations/session/useRevokeSessionMutation.cjs +29 -0
  399. package/dist/production/src/hooks/mutations/session/useRevokeSessionMutation.cjs.map +1 -0
  400. package/dist/production/src/hooks/mutations/session/useRevokeSessionMutation.js +12 -0
  401. package/dist/production/src/hooks/mutations/session/useRevokeSessionMutation.js.map +1 -0
  402. package/dist/production/src/hooks/queries/useAuthLogQuery.cjs +39 -0
  403. package/dist/production/src/hooks/queries/useAuthLogQuery.cjs.map +1 -0
  404. package/dist/production/src/hooks/queries/useAuthLogQuery.js +22 -0
  405. package/dist/production/src/hooks/queries/useAuthLogQuery.js.map +1 -0
  406. package/dist/production/src/hooks/queries/useAuthPoliciesQuery.cjs +32 -0
  407. package/dist/production/src/hooks/queries/useAuthPoliciesQuery.cjs.map +1 -0
  408. package/dist/production/src/hooks/queries/useAuthPoliciesQuery.js +15 -0
  409. package/dist/production/src/hooks/queries/useAuthPoliciesQuery.js.map +1 -0
  410. package/dist/production/src/hooks/queries/useConfigurationQuery.cjs +33 -0
  411. package/dist/production/src/hooks/queries/useConfigurationQuery.cjs.map +1 -0
  412. package/dist/production/src/hooks/queries/useConfigurationQuery.js +16 -0
  413. package/dist/production/src/hooks/queries/useConfigurationQuery.js.map +1 -0
  414. package/dist/production/src/hooks/queries/useGlobalApiKeysQuery.cjs +32 -0
  415. package/dist/production/src/hooks/queries/useGlobalApiKeysQuery.cjs.map +1 -0
  416. package/dist/production/src/hooks/queries/useGlobalApiKeysQuery.js +15 -0
  417. package/dist/production/src/hooks/queries/useGlobalApiKeysQuery.js.map +1 -0
  418. package/dist/production/src/hooks/queries/useIdentityProvidersQuery.cjs +32 -0
  419. package/dist/production/src/hooks/queries/useIdentityProvidersQuery.cjs.map +1 -0
  420. package/dist/production/src/hooks/queries/useIdentityProvidersQuery.js +15 -0
  421. package/dist/production/src/hooks/queries/useIdentityProvidersQuery.js.map +1 -0
  422. package/dist/production/src/hooks/queries/useMailTemplatesQuery.cjs +32 -0
  423. package/dist/production/src/hooks/queries/useMailTemplatesQuery.cjs.map +1 -0
  424. package/dist/production/src/hooks/queries/useMailTemplatesQuery.js +15 -0
  425. package/dist/production/src/hooks/queries/useMailTemplatesQuery.js.map +1 -0
  426. package/dist/production/src/hooks/queries/useMeQuery.cjs +4 -2
  427. package/dist/production/src/hooks/queries/useMeQuery.cjs.map +1 -1
  428. package/dist/production/src/hooks/queries/useMeQuery.js +4 -2
  429. package/dist/production/src/hooks/queries/useMeQuery.js.map +1 -1
  430. package/dist/production/src/hooks/queries/useMyIdentityProvidersQuery.cjs +38 -0
  431. package/dist/production/src/hooks/queries/useMyIdentityProvidersQuery.cjs.map +1 -0
  432. package/dist/production/src/hooks/queries/useMyIdentityProvidersQuery.js +21 -0
  433. package/dist/production/src/hooks/queries/useMyIdentityProvidersQuery.js.map +1 -0
  434. package/dist/production/src/hooks/queries/useMySessionsQuery.cjs +34 -0
  435. package/dist/production/src/hooks/queries/useMySessionsQuery.cjs.map +1 -0
  436. package/dist/production/src/hooks/queries/useMySessionsQuery.js +17 -0
  437. package/dist/production/src/hooks/queries/useMySessionsQuery.js.map +1 -0
  438. package/dist/production/src/hooks/queries/usePersonQuery.cjs +40 -0
  439. package/dist/production/src/hooks/queries/usePersonQuery.cjs.map +1 -0
  440. package/dist/production/src/hooks/queries/usePersonQuery.js +23 -0
  441. package/dist/production/src/hooks/queries/usePersonQuery.js.map +1 -0
  442. package/dist/production/src/hooks/queries/usePersonSessionsQuery.cjs +39 -0
  443. package/dist/production/src/hooks/queries/usePersonSessionsQuery.cjs.map +1 -0
  444. package/dist/production/src/hooks/queries/usePersonSessionsQuery.js +22 -0
  445. package/dist/production/src/hooks/queries/usePersonSessionsQuery.js.map +1 -0
  446. package/dist/production/src/hooks/queries/usePersonsQuery.cjs +45 -0
  447. package/dist/production/src/hooks/queries/usePersonsQuery.cjs.map +1 -0
  448. package/dist/production/src/hooks/queries/usePersonsQuery.js +28 -0
  449. package/dist/production/src/hooks/queries/usePersonsQuery.js.map +1 -0
  450. package/dist/production/src/hooks/queries/useProjectApiKeysQuery.cjs +49 -0
  451. package/dist/production/src/hooks/queries/useProjectApiKeysQuery.cjs.map +1 -0
  452. package/dist/production/src/hooks/queries/useProjectApiKeysQuery.js +32 -0
  453. package/dist/production/src/hooks/queries/useProjectApiKeysQuery.js.map +1 -0
  454. package/dist/production/src/hooks/queries/useProjectMembersQuery.cjs +1 -1
  455. package/dist/production/src/hooks/queries/useProjectMembersQuery.cjs.map +1 -1
  456. package/dist/production/src/hooks/queries/useProjectMembersQuery.js +1 -1
  457. package/dist/production/src/hooks/queries/useProjectMembersQuery.js.map +1 -1
  458. package/dist/production/src/hooks/queries/useProjectSecretsQuery.cjs +45 -0
  459. package/dist/production/src/hooks/queries/useProjectSecretsQuery.cjs.map +1 -0
  460. package/dist/production/src/hooks/queries/useProjectSecretsQuery.js +28 -0
  461. package/dist/production/src/hooks/queries/useProjectSecretsQuery.js.map +1 -0
  462. package/dist/production/src/hooks/useFetchIdentity.cjs +17 -3
  463. package/dist/production/src/hooks/useFetchIdentity.cjs.map +1 -1
  464. package/dist/production/src/hooks/useFetchIdentity.js +17 -3
  465. package/dist/production/src/hooks/useFetchIdentity.js.map +1 -1
  466. package/dist/production/src/types/forbidden.cjs +16 -0
  467. package/dist/production/src/types/forbidden.cjs.map +1 -0
  468. package/dist/production/src/types/forbidden.js +16 -0
  469. package/dist/production/src/types/forbidden.js.map +1 -0
  470. package/dist/types/components/IdentityState.d.ts.map +1 -1
  471. package/dist/types/components/forms/AddProjectMemberForm.d.ts +20 -0
  472. package/dist/types/components/forms/AddProjectMemberForm.d.ts.map +1 -0
  473. package/dist/types/components/forms/ChangeMyPasswordForm.d.ts.map +1 -1
  474. package/dist/types/components/forms/ChangeMyProfileForm.d.ts +20 -0
  475. package/dist/types/components/forms/ChangeMyProfileForm.d.ts.map +1 -0
  476. package/dist/types/components/forms/ChangePasswordForm.d.ts +19 -0
  477. package/dist/types/components/forms/ChangePasswordForm.d.ts.map +1 -0
  478. package/dist/types/components/forms/ChangeProfileForm.d.ts +21 -0
  479. package/dist/types/components/forms/ChangeProfileForm.d.ts.map +1 -0
  480. package/dist/types/components/forms/ConfirmEmailChangeForm.d.ts.map +1 -1
  481. package/dist/types/components/forms/CreateApiKeyForm.d.ts.map +1 -1
  482. package/dist/types/components/forms/CreateGlobalApiKeyForm.d.ts +22 -0
  483. package/dist/types/components/forms/CreateGlobalApiKeyForm.d.ts.map +1 -0
  484. package/dist/types/components/forms/CreateSessionTokenForm.d.ts.map +1 -1
  485. package/dist/types/components/forms/EmailOtpConfirmForm.d.ts +21 -0
  486. package/dist/types/components/forms/EmailOtpConfirmForm.d.ts.map +1 -0
  487. package/dist/types/components/forms/InviteForm.d.ts +12 -1
  488. package/dist/types/components/forms/InviteForm.d.ts.map +1 -1
  489. package/dist/types/components/forms/LoginForm.d.ts +2 -0
  490. package/dist/types/components/forms/LoginForm.d.ts.map +1 -1
  491. package/dist/types/components/forms/OtpConfirmForm.d.ts.map +1 -1
  492. package/dist/types/components/forms/OtpPrepareForm.d.ts.map +1 -1
  493. package/dist/types/components/forms/PasswordResetForm.d.ts.map +1 -1
  494. package/dist/types/components/forms/PasswordResetRequestForm.d.ts.map +1 -1
  495. package/dist/types/components/forms/PasswordlessSignInForm.d.ts +2 -0
  496. package/dist/types/components/forms/PasswordlessSignInForm.d.ts.map +1 -1
  497. package/dist/types/components/forms/PasswordlessSignInInitForm.d.ts.map +1 -1
  498. package/dist/types/components/forms/RequestEmailVerificationForm.d.ts.map +1 -1
  499. package/dist/types/components/forms/SetProjectSecretForm.d.ts +19 -0
  500. package/dist/types/components/forms/SetProjectSecretForm.d.ts.map +1 -0
  501. package/dist/types/components/forms/SignUpForm.d.ts +31 -0
  502. package/dist/types/components/forms/SignUpForm.d.ts.map +1 -0
  503. package/dist/types/components/forms/TenantForm.d.ts.map +1 -1
  504. package/dist/types/components/forms/UpdateProjectMemberForm.d.ts.map +1 -1
  505. package/dist/types/components/forms/VerifyEmailForm.d.ts.map +1 -1
  506. package/dist/types/components/forms/index.d.ts +8 -0
  507. package/dist/types/components/forms/index.d.ts.map +1 -1
  508. package/dist/types/components/idp/IDP.d.ts.map +1 -1
  509. package/dist/types/components/idp/IDPInitTrigger.d.ts.map +1 -1
  510. package/dist/types/components/idp/IDPState.d.ts.map +1 -1
  511. package/dist/types/components/triggers/DisableEmailOtpTrigger.d.ts +10 -0
  512. package/dist/types/components/triggers/DisableEmailOtpTrigger.d.ts.map +1 -0
  513. package/dist/types/components/triggers/DisableMyPasswordlessTrigger.d.ts +10 -0
  514. package/dist/types/components/triggers/DisableMyPasswordlessTrigger.d.ts.map +1 -0
  515. package/dist/types/components/triggers/DisableOtpTrigger.d.ts +3 -1
  516. package/dist/types/components/triggers/DisableOtpTrigger.d.ts.map +1 -1
  517. package/dist/types/components/triggers/DisablePersonTrigger.d.ts +11 -0
  518. package/dist/types/components/triggers/DisablePersonTrigger.d.ts.map +1 -0
  519. package/dist/types/components/triggers/EnableMyPasswordlessTrigger.d.ts +10 -0
  520. package/dist/types/components/triggers/EnableMyPasswordlessTrigger.d.ts.map +1 -0
  521. package/dist/types/components/triggers/EnablePersonTrigger.d.ts +11 -0
  522. package/dist/types/components/triggers/EnablePersonTrigger.d.ts.map +1 -0
  523. package/dist/types/components/triggers/ForceSignOutPersonTrigger.d.ts +11 -0
  524. package/dist/types/components/triggers/ForceSignOutPersonTrigger.d.ts.map +1 -0
  525. package/dist/types/components/triggers/InitEmailOtpTrigger.d.ts +10 -0
  526. package/dist/types/components/triggers/InitEmailOtpTrigger.d.ts.map +1 -0
  527. package/dist/types/components/triggers/LogoutTrigger.d.ts.map +1 -1
  528. package/dist/types/components/triggers/RegenerateBackupCodesTrigger.d.ts +14 -0
  529. package/dist/types/components/triggers/RegenerateBackupCodesTrigger.d.ts.map +1 -0
  530. package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts +3 -1
  531. package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts.map +1 -1
  532. package/dist/types/components/triggers/ResetPersonMfaTrigger.d.ts +11 -0
  533. package/dist/types/components/triggers/ResetPersonMfaTrigger.d.ts.map +1 -0
  534. package/dist/types/components/triggers/RevokeSessionTrigger.d.ts +11 -0
  535. package/dist/types/components/triggers/RevokeSessionTrigger.d.ts.map +1 -0
  536. package/dist/types/components/triggers/TenantActionTrigger.d.ts +7 -4
  537. package/dist/types/components/triggers/TenantActionTrigger.d.ts.map +1 -1
  538. package/dist/types/components/triggers/index.d.ts +11 -0
  539. package/dist/types/components/triggers/index.d.ts.map +1 -1
  540. package/dist/types/hooks/mutations/auth/index.d.ts +1 -0
  541. package/dist/types/hooks/mutations/auth/index.d.ts.map +1 -1
  542. package/dist/types/hooks/mutations/auth/useSignUpMutation.d.ts +95 -0
  543. package/dist/types/hooks/mutations/auth/useSignUpMutation.d.ts.map +1 -0
  544. package/dist/types/hooks/mutations/emailOtp/index.d.ts +4 -0
  545. package/dist/types/hooks/mutations/emailOtp/index.d.ts.map +1 -0
  546. package/dist/types/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.d.ts +31 -0
  547. package/dist/types/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.d.ts.map +1 -0
  548. package/dist/types/hooks/mutations/emailOtp/useDisableEmailOtpMutation.d.ts +15 -0
  549. package/dist/types/hooks/mutations/emailOtp/useDisableEmailOtpMutation.d.ts.map +1 -0
  550. package/dist/types/hooks/mutations/emailOtp/useInitEmailOtpMutation.d.ts +15 -0
  551. package/dist/types/hooks/mutations/emailOtp/useInitEmailOtpMutation.d.ts.map +1 -0
  552. package/dist/types/hooks/mutations/identity/index.d.ts +3 -0
  553. package/dist/types/hooks/mutations/identity/index.d.ts.map +1 -0
  554. package/dist/types/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.d.ts +51 -0
  555. package/dist/types/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.d.ts.map +1 -0
  556. package/dist/types/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.d.ts +51 -0
  557. package/dist/types/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.d.ts.map +1 -0
  558. package/dist/types/hooks/mutations/idp/index.d.ts +1 -0
  559. package/dist/types/hooks/mutations/idp/index.d.ts.map +1 -1
  560. package/dist/types/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.d.ts +19 -0
  561. package/dist/types/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.d.ts.map +1 -0
  562. package/dist/types/hooks/mutations/index.d.ts +5 -0
  563. package/dist/types/hooks/mutations/index.d.ts.map +1 -1
  564. package/dist/types/hooks/mutations/invite/index.d.ts +1 -0
  565. package/dist/types/hooks/mutations/invite/index.d.ts.map +1 -1
  566. package/dist/types/hooks/mutations/invite/useUnmanagedInviteMutation.d.ts +104 -0
  567. package/dist/types/hooks/mutations/invite/useUnmanagedInviteMutation.d.ts.map +1 -0
  568. package/dist/types/hooks/mutations/otp/index.d.ts +1 -0
  569. package/dist/types/hooks/mutations/otp/index.d.ts.map +1 -1
  570. package/dist/types/hooks/mutations/otp/useRegenerateBackupCodesMutation.d.ts +27 -0
  571. package/dist/types/hooks/mutations/otp/useRegenerateBackupCodesMutation.d.ts.map +1 -0
  572. package/dist/types/hooks/mutations/person/index.d.ts +6 -0
  573. package/dist/types/hooks/mutations/person/index.d.ts.map +1 -0
  574. package/dist/types/hooks/mutations/person/useChangePasswordMutation.d.ts +25 -0
  575. package/dist/types/hooks/mutations/person/useChangePasswordMutation.d.ts.map +1 -0
  576. package/dist/types/hooks/mutations/person/useDisablePersonMutation.d.ts +19 -0
  577. package/dist/types/hooks/mutations/person/useDisablePersonMutation.d.ts.map +1 -0
  578. package/dist/types/hooks/mutations/person/useEnablePersonMutation.d.ts +19 -0
  579. package/dist/types/hooks/mutations/person/useEnablePersonMutation.d.ts.map +1 -0
  580. package/dist/types/hooks/mutations/person/useForceSignOutPersonMutation.d.ts +21 -0
  581. package/dist/types/hooks/mutations/person/useForceSignOutPersonMutation.d.ts.map +1 -0
  582. package/dist/types/hooks/mutations/person/useResetPersonMfaMutation.d.ts +19 -0
  583. package/dist/types/hooks/mutations/person/useResetPersonMfaMutation.d.ts.map +1 -0
  584. package/dist/types/hooks/mutations/project/index.d.ts +2 -0
  585. package/dist/types/hooks/mutations/project/index.d.ts.map +1 -0
  586. package/dist/types/hooks/mutations/project/useSetProjectSecretMutation.d.ts +23 -0
  587. package/dist/types/hooks/mutations/project/useSetProjectSecretMutation.d.ts.map +1 -0
  588. package/dist/types/hooks/mutations/session/index.d.ts +2 -0
  589. package/dist/types/hooks/mutations/session/index.d.ts.map +1 -0
  590. package/dist/types/hooks/mutations/session/useRevokeSessionMutation.d.ts +19 -0
  591. package/dist/types/hooks/mutations/session/useRevokeSessionMutation.d.ts.map +1 -0
  592. package/dist/types/hooks/queries/index.d.ts +13 -0
  593. package/dist/types/hooks/queries/index.d.ts.map +1 -1
  594. package/dist/types/hooks/queries/useAuthLogQuery.d.ts +48 -0
  595. package/dist/types/hooks/queries/useAuthLogQuery.d.ts.map +1 -0
  596. package/dist/types/hooks/queries/useAuthPoliciesQuery.d.ts +35 -0
  597. package/dist/types/hooks/queries/useAuthPoliciesQuery.d.ts.map +1 -0
  598. package/dist/types/hooks/queries/useConfigurationQuery.d.ts +139 -0
  599. package/dist/types/hooks/queries/useConfigurationQuery.d.ts.map +1 -0
  600. package/dist/types/hooks/queries/useGlobalApiKeysQuery.d.ts +30 -0
  601. package/dist/types/hooks/queries/useGlobalApiKeysQuery.d.ts.map +1 -0
  602. package/dist/types/hooks/queries/useIdentityProvidersQuery.d.ts +41 -0
  603. package/dist/types/hooks/queries/useIdentityProvidersQuery.d.ts.map +1 -0
  604. package/dist/types/hooks/queries/useMailTemplatesQuery.d.ts +30 -0
  605. package/dist/types/hooks/queries/useMailTemplatesQuery.d.ts.map +1 -0
  606. package/dist/types/hooks/queries/useMeQuery.d.ts +42 -0
  607. package/dist/types/hooks/queries/useMeQuery.d.ts.map +1 -1
  608. package/dist/types/hooks/queries/useMyIdentityProvidersQuery.d.ts +22 -0
  609. package/dist/types/hooks/queries/useMyIdentityProvidersQuery.d.ts.map +1 -0
  610. package/dist/types/hooks/queries/useMySessionsQuery.d.ts +28 -0
  611. package/dist/types/hooks/queries/useMySessionsQuery.d.ts.map +1 -0
  612. package/dist/types/hooks/queries/usePersonQuery.d.ts +99 -0
  613. package/dist/types/hooks/queries/usePersonQuery.d.ts.map +1 -0
  614. package/dist/types/hooks/queries/usePersonSessionsQuery.d.ts +31 -0
  615. package/dist/types/hooks/queries/usePersonSessionsQuery.d.ts.map +1 -0
  616. package/dist/types/hooks/queries/usePersonsQuery.d.ts +41 -0
  617. package/dist/types/hooks/queries/usePersonsQuery.d.ts.map +1 -0
  618. package/dist/types/hooks/queries/useProjectApiKeysQuery.d.ts +55 -0
  619. package/dist/types/hooks/queries/useProjectApiKeysQuery.d.ts.map +1 -0
  620. package/dist/types/hooks/queries/useProjectMembersQuery.d.ts +4 -0
  621. package/dist/types/hooks/queries/useProjectMembersQuery.d.ts.map +1 -1
  622. package/dist/types/hooks/queries/useProjectMembershipsQuery.d.ts.map +1 -1
  623. package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts +19 -19
  624. package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts.map +1 -1
  625. package/dist/types/hooks/queries/useProjectSecretsQuery.d.ts +17 -0
  626. package/dist/types/hooks/queries/useProjectSecretsQuery.d.ts.map +1 -0
  627. package/dist/types/hooks/useFetchIdentity.d.ts.map +1 -1
  628. package/dist/types/hooks/useLogout.d.ts.map +1 -1
  629. package/dist/types/hooks/usePasswordlessOtpActivator.d.ts.map +1 -1
  630. package/dist/types/hooks/useTenantApi.d.ts +1 -1
  631. package/dist/types/hooks/useTenantApi.d.ts.map +1 -1
  632. package/dist/types/hooks/useTenantMutation.d.ts.map +1 -1
  633. package/dist/types/hooks/useTenantQueryLoader.d.ts.map +1 -1
  634. package/dist/types/internal/hooks/useHandleIDPResponse.d.ts.map +1 -1
  635. package/dist/types/internal/hooks/useInitIDPRedirect.d.ts.map +1 -1
  636. package/dist/types/internal/hooks/useLogoutInternal.d.ts.map +1 -1
  637. package/dist/types/internal/hooks/useRedirectToBacklink.d.ts +1 -1
  638. package/dist/types/internal/hooks/useRedirectToBacklink.d.ts.map +1 -1
  639. package/dist/types/internal/utils/hashing.d.ts.map +1 -1
  640. package/dist/types/internal/utils/randomInt.d.ts.map +1 -1
  641. package/dist/types/tsconfig.tsbuildinfo +1 -1
  642. package/dist/types/types/Identity.d.ts +42 -3
  643. package/dist/types/types/Identity.d.ts.map +1 -1
  644. package/dist/types/types/forbidden.d.ts +21 -0
  645. package/dist/types/types/forbidden.d.ts.map +1 -0
  646. package/dist/types/types/forms.d.ts +6 -1
  647. package/dist/types/types/forms.d.ts.map +1 -1
  648. package/dist/types/types/index.d.ts +1 -0
  649. package/dist/types/types/index.d.ts.map +1 -1
  650. package/package.json +5 -4
  651. package/src/components/forms/AddProjectMemberForm.tsx +74 -0
  652. package/src/components/forms/ChangeMyProfileForm.tsx +73 -0
  653. package/src/components/forms/ChangePasswordForm.tsx +73 -0
  654. package/src/components/forms/ChangeProfileForm.tsx +70 -0
  655. package/src/components/forms/CreateGlobalApiKeyForm.tsx +67 -0
  656. package/src/components/forms/EmailOtpConfirmForm.tsx +64 -0
  657. package/src/components/forms/InviteForm.tsx +36 -2
  658. package/src/components/forms/LoginForm.tsx +6 -1
  659. package/src/components/forms/PasswordlessSignInForm.tsx +6 -1
  660. package/src/components/forms/SetProjectSecretForm.tsx +67 -0
  661. package/src/components/forms/SignUpForm.tsx +91 -0
  662. package/src/components/forms/TenantForm.tsx +6 -2
  663. package/src/components/forms/index.ts +8 -0
  664. package/src/components/triggers/DisableEmailOtpTrigger.tsx +27 -0
  665. package/src/components/triggers/DisableMyPasswordlessTrigger.tsx +27 -0
  666. package/src/components/triggers/DisableOtpTrigger.tsx +3 -2
  667. package/src/components/triggers/DisablePersonTrigger.tsx +18 -0
  668. package/src/components/triggers/EnableMyPasswordlessTrigger.tsx +27 -0
  669. package/src/components/triggers/EnablePersonTrigger.tsx +18 -0
  670. package/src/components/triggers/ForceSignOutPersonTrigger.tsx +18 -0
  671. package/src/components/triggers/InitEmailOtpTrigger.tsx +17 -0
  672. package/src/components/triggers/RegenerateBackupCodesTrigger.tsx +22 -0
  673. package/src/components/triggers/RemoveProjectMemberTrigger.tsx +3 -2
  674. package/src/components/triggers/ResetPersonMfaTrigger.tsx +18 -0
  675. package/src/components/triggers/RevokeSessionTrigger.tsx +18 -0
  676. package/src/components/triggers/TenantActionTrigger.tsx +11 -3
  677. package/src/components/triggers/index.ts +11 -0
  678. package/src/hooks/mutations/auth/index.ts +1 -0
  679. package/src/hooks/mutations/auth/useSignUpMutation.ts +28 -0
  680. package/src/hooks/mutations/emailOtp/index.ts +3 -0
  681. package/src/hooks/mutations/emailOtp/useConfirmEmailOtpMutation.ts +19 -0
  682. package/src/hooks/mutations/emailOtp/useDisableEmailOtpMutation.ts +13 -0
  683. package/src/hooks/mutations/emailOtp/useInitEmailOtpMutation.ts +13 -0
  684. package/src/hooks/mutations/identity/index.ts +2 -0
  685. package/src/hooks/mutations/identity/useAddGlobalIdentityRolesMutation.ts +19 -0
  686. package/src/hooks/mutations/identity/useRemoveGlobalIdentityRolesMutation.ts +19 -0
  687. package/src/hooks/mutations/idp/index.ts +1 -0
  688. package/src/hooks/mutations/idp/useDisconnectMyIdentityProviderMutation.tsx +13 -0
  689. package/src/hooks/mutations/index.ts +5 -0
  690. package/src/hooks/mutations/invite/index.ts +1 -0
  691. package/src/hooks/mutations/invite/useUnmanagedInviteMutation.tsx +25 -0
  692. package/src/hooks/mutations/otp/index.ts +1 -0
  693. package/src/hooks/mutations/otp/useRegenerateBackupCodesMutation.ts +19 -0
  694. package/src/hooks/mutations/person/index.ts +5 -0
  695. package/src/hooks/mutations/person/useChangePasswordMutation.ts +14 -0
  696. package/src/hooks/mutations/person/useDisablePersonMutation.ts +13 -0
  697. package/src/hooks/mutations/person/useEnablePersonMutation.ts +13 -0
  698. package/src/hooks/mutations/person/useForceSignOutPersonMutation.ts +13 -0
  699. package/src/hooks/mutations/person/useResetPersonMfaMutation.ts +13 -0
  700. package/src/hooks/mutations/project/index.ts +1 -0
  701. package/src/hooks/mutations/project/useSetProjectSecretMutation.ts +13 -0
  702. package/src/hooks/mutations/session/index.ts +1 -0
  703. package/src/hooks/mutations/session/useRevokeSessionMutation.ts +13 -0
  704. package/src/hooks/queries/index.ts +13 -0
  705. package/src/hooks/queries/useAuthLogQuery.ts +28 -0
  706. package/src/hooks/queries/useAuthPoliciesQuery.ts +26 -0
  707. package/src/hooks/queries/useConfigurationQuery.ts +42 -0
  708. package/src/hooks/queries/useGlobalApiKeysQuery.ts +19 -0
  709. package/src/hooks/queries/useIdentityProvidersQuery.ts +31 -0
  710. package/src/hooks/queries/useMailTemplatesQuery.ts +25 -0
  711. package/src/hooks/queries/useMeQuery.ts +6 -2
  712. package/src/hooks/queries/useMyIdentityProvidersQuery.ts +25 -0
  713. package/src/hooks/queries/useMySessionsQuery.ts +19 -0
  714. package/src/hooks/queries/usePersonQuery.ts +35 -0
  715. package/src/hooks/queries/usePersonSessionsQuery.ts +27 -0
  716. package/src/hooks/queries/usePersonsQuery.ts +37 -0
  717. package/src/hooks/queries/useProjectApiKeysQuery.ts +43 -0
  718. package/src/hooks/queries/useProjectMembersQuery.ts +1 -1
  719. package/src/hooks/queries/useProjectSecretsQuery.ts +33 -0
  720. package/src/hooks/useFetchIdentity.ts +18 -3
  721. package/src/tsconfig.json +1 -0
  722. package/src/types/Identity.ts +44 -3
  723. package/src/types/forbidden.ts +31 -0
  724. package/src/types/forms.ts +6 -1
  725. package/src/types/index.ts +1 -0
  726. package/tests/TenantForm.test.tsx +54 -0
@@ -0,0 +1,28 @@
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 projectSecretFragment = TenantApi.projectSecretInfo$$;
6
+ const useProjectSecretsQuery = (options = {}) => {
7
+ const executor = useTenantApi(options);
8
+ return useCallback(async ({ projectSlug }) => {
9
+ const result = await executor(
10
+ TenantApi.query$.projectBySlug(
11
+ {
12
+ slug: ParameterRef.of("projectSlug")
13
+ },
14
+ TenantApi.project$.secrets(projectSecretFragment)
15
+ ),
16
+ {
17
+ variables: {
18
+ projectSlug
19
+ }
20
+ }
21
+ );
22
+ return result.projectBySlug?.secrets ?? [];
23
+ }, [executor]);
24
+ };
25
+ export {
26
+ useProjectSecretsQuery
27
+ };
28
+ //# sourceMappingURL=useProjectSecretsQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useProjectSecretsQuery.js","sources":["../../../../../../packages/react-client-tenant/src/hooks/queries/useProjectSecretsQuery.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 projectSecretFragment = TenantApi.projectSecretInfo$$\n\nexport type ProjectSecretsQueryResult = readonly ModelType<typeof projectSecretFragment>[]\n\nexport type ProjectSecretsQueryVariables = {\n\tprojectSlug: string\n}\n\nexport const useProjectSecretsQuery = (options: TenantApiOptions = {}) => {\n\tconst executor = useTenantApi(options)\n\treturn useCallback(async ({ projectSlug }: ProjectSecretsQueryVariables): Promise<ProjectSecretsQueryResult> => {\n\t\tconst result = await executor(\n\t\t\tTenantApi.query$.projectBySlug(\n\t\t\t\t{\n\t\t\t\t\tslug: ParameterRef.of('projectSlug'),\n\t\t\t\t},\n\t\t\t\tTenantApi.project$.secrets(projectSecretFragment),\n\t\t\t),\n\t\t\t{\n\t\t\t\tvariables: {\n\t\t\t\t\tprojectSlug,\n\t\t\t\t},\n\t\t\t},\n\t\t)\n\n\t\treturn result.projectBySlug?.secrets ?? []\n\t}, [executor])\n}\n"],"names":[],"mappings":";;;;AAKA,MAAM,wBAAwB,UAAU;AAQjC,MAAM,yBAAyB,CAAC,UAA4B,OAAO;AACzE,QAAM,WAAW,aAAa,OAAO;AACrC,SAAO,YAAY,OAAO,EAAE,kBAAoF;AAC/G,UAAM,SAAS,MAAM;AAAA,MACpB,UAAU,OAAO;AAAA,QAChB;AAAA,UACC,MAAM,aAAa,GAAG,aAAa;AAAA,QAAA;AAAA,QAEpC,UAAU,SAAS,QAAQ,qBAAqB;AAAA,MAAA;AAAA,MAEjD;AAAA,QACC,WAAW;AAAA,UACV;AAAA,QAAA;AAAA,MACD;AAAA,IACD;AAGD,WAAO,OAAO,eAAe,WAAW,CAAA;AAAA,EACzC,GAAG,CAAC,QAAQ,CAAC;AACd;"}
@@ -4,6 +4,18 @@ const React = require("react");
4
4
  const reactClient = require("@contember/react-client");
5
5
  const useLogoutInternal = require("../internal/hooks/useLogoutInternal.cjs");
6
6
  const useMeQuery = require("./queries/useMeQuery.cjs");
7
+ const deniedGlobalPermissions = {
8
+ canCreateProject: false,
9
+ canDeployEntrypoint: false,
10
+ canViewConfiguration: false,
11
+ canListIdentityProviders: false,
12
+ canListMailTemplates: false,
13
+ canManageConfiguration: false,
14
+ canViewAuthLog: false,
15
+ canListPersons: false,
16
+ canListGlobalApiKeys: false,
17
+ canCreateGlobalApiKey: false
18
+ };
7
19
  const useFetchIdentity = () => {
8
20
  const sessionToken = reactClient.useSessionToken();
9
21
  const fetchMe = useMeQuery.useMeQuery();
@@ -19,7 +31,6 @@ const useFetchIdentity = () => {
19
31
  const response = await fetchMe({});
20
32
  const person = response.person;
21
33
  const projects = response.projects;
22
- const permissions = response.permissions ?? { canCreateProject: false };
23
34
  setIdentityState({
24
35
  state: "success",
25
36
  identity: {
@@ -29,9 +40,12 @@ const useFetchIdentity = () => {
29
40
  projects: projects.map((it) => ({
30
41
  name: it.project.name,
31
42
  slug: it.project.slug,
32
- roles: it.memberships.map((it2) => it2.role)
43
+ roles: it.memberships.map((it2) => it2.role),
44
+ permissions: it.project.permissions
33
45
  })),
34
- permissions
46
+ // `permissions` is nullable on an identity the caller may not inspect; that never
47
+ // applies to `me`, but denying everything is the safe reading if it ever does.
48
+ permissions: response.permissions ?? deniedGlobalPermissions
35
49
  }
36
50
  });
37
51
  } catch (e) {
@@ -1 +1 @@
1
- {"version":3,"file":"useFetchIdentity.cjs","sources":["../../../../../packages/react-client-tenant/src/hooks/useFetchIdentity.ts"],"sourcesContent":["import { useCallback, useMemo, useState } from 'react'\nimport { Identity, IdentityMethods, IdentityStateValue } from '../types/index.js'\nimport { GraphQlClientError, useSessionToken } from '@contember/react-client'\nimport { useLogoutInternal } from '../internal/hooks/useLogoutInternal.js'\nimport { useMeQuery } from './queries/index.js'\n\nexport const useFetchIdentity = (): [{ state: IdentityStateValue; identity: Identity | undefined }, IdentityMethods] => {\n\tconst sessionToken = useSessionToken()\n\tconst fetchMe = useMeQuery()\n\n\tconst [identityState, setIdentityState] = useState<ReturnType<typeof useFetchIdentity>[0]>({\n\t\tstate: sessionToken ? 'loading' : 'none',\n\t\tidentity: undefined,\n\t})\n\n\tconst clearIdentity = useCallback(() => setIdentityState({ state: 'cleared', identity: undefined }), [])\n\tconst logout = useLogoutInternal(clearIdentity)\n\n\tconst fetch = useCallback(async () => {\n\t\tsetIdentityState({ state: 'loading', identity: undefined })\n\t\ttry {\n\t\t\tconst response = await fetchMe({})\n\t\t\tconst person = response.person\n\t\t\tconst projects = response.projects\n\t\t\tconst permissions = response.permissions ?? { canCreateProject: false }\n\n\t\t\tsetIdentityState({\n\t\t\t\tstate: 'success',\n\t\t\t\tidentity: {\n\t\t\t\t\tid: response.id,\n\t\t\t\t\troles: response.roles ?? [],\n\t\t\t\t\tperson: person ?? undefined,\n\t\t\t\t\tprojects: projects.map(it => ({\n\t\t\t\t\t\tname: it.project.name,\n\t\t\t\t\t\tslug: it.project.slug,\n\t\t\t\t\t\troles: it.memberships.map(it => it.role),\n\t\t\t\t\t})),\n\t\t\t\t\tpermissions,\n\t\t\t\t},\n\t\t\t})\n\t\t} catch (e) {\n\t\t\tconsole.error(e)\n\t\t\tif (e instanceof GraphQlClientError && e.response?.status === 401) {\n\t\t\t\tlogout({ noRedirect: true })\n\t\t\t} else {\n\t\t\t\tsetIdentityState({ state: 'failed', identity: undefined })\n\t\t\t}\n\t\t}\n\t}, [fetchMe, logout])\n\n\treturn [\n\t\tidentityState,\n\t\tuseMemo((): IdentityMethods => ({\n\t\t\tclearIdentity,\n\t\t\trefreshIdentity: fetch,\n\t\t}), [clearIdentity, fetch]),\n\t]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IACD;AAAA,EACD,GAAG,CAAC,SAAS,MAAM,CAAC;AAEpB,SAAO;AAAA,IACN;AAAA,IACAC,MAAAA,QAAQ,OAAwB;AAAA,MAC/B;AAAA,MACA,iBAAiB;AAAA,IAAA,IACd,CAAC,eAAe,KAAK,CAAC;AAAA,EAAA;AAE5B;;"}
1
+ {"version":3,"file":"useFetchIdentity.cjs","sources":["../../../../../packages/react-client-tenant/src/hooks/useFetchIdentity.ts"],"sourcesContent":["import { useCallback, useMemo, useState } from 'react'\nimport { Identity, IdentityGlobalPermissions, IdentityMethods, IdentityStateValue } from '../types/index.js'\nimport { GraphQlClientError, useSessionToken } from '@contember/react-client'\nimport { useLogoutInternal } from '../internal/hooks/useLogoutInternal.js'\nimport { useMeQuery } from './queries/index.js'\n\nconst deniedGlobalPermissions: IdentityGlobalPermissions = {\n\tcanCreateProject: false,\n\tcanDeployEntrypoint: false,\n\tcanViewConfiguration: false,\n\tcanListIdentityProviders: false,\n\tcanListMailTemplates: false,\n\tcanManageConfiguration: false,\n\tcanViewAuthLog: false,\n\tcanListPersons: false,\n\tcanListGlobalApiKeys: false,\n\tcanCreateGlobalApiKey: false,\n}\n\nexport const useFetchIdentity = (): [{ state: IdentityStateValue; identity: Identity | undefined }, IdentityMethods] => {\n\tconst sessionToken = useSessionToken()\n\tconst fetchMe = useMeQuery()\n\n\tconst [identityState, setIdentityState] = useState<ReturnType<typeof useFetchIdentity>[0]>({\n\t\tstate: sessionToken ? 'loading' : 'none',\n\t\tidentity: undefined,\n\t})\n\n\tconst clearIdentity = useCallback(() => setIdentityState({ state: 'cleared', identity: undefined }), [])\n\tconst logout = useLogoutInternal(clearIdentity)\n\n\tconst fetch = useCallback(async () => {\n\t\tsetIdentityState({ state: 'loading', identity: undefined })\n\t\ttry {\n\t\t\tconst response = await fetchMe({})\n\t\t\tconst person = response.person\n\t\t\tconst projects = response.projects\n\n\t\t\tsetIdentityState({\n\t\t\t\tstate: 'success',\n\t\t\t\tidentity: {\n\t\t\t\t\tid: response.id,\n\t\t\t\t\troles: response.roles ?? [],\n\t\t\t\t\tperson: person ?? undefined,\n\t\t\t\t\tprojects: projects.map(it => ({\n\t\t\t\t\t\tname: it.project.name,\n\t\t\t\t\t\tslug: it.project.slug,\n\t\t\t\t\t\troles: it.memberships.map(it => it.role),\n\t\t\t\t\t\tpermissions: it.project.permissions,\n\t\t\t\t\t})),\n\t\t\t\t\t// `permissions` is nullable on an identity the caller may not inspect; that never\n\t\t\t\t\t// applies to `me`, but denying everything is the safe reading if it ever does.\n\t\t\t\t\tpermissions: response.permissions ?? deniedGlobalPermissions,\n\t\t\t\t},\n\t\t\t})\n\t\t} catch (e) {\n\t\t\tconsole.error(e)\n\t\t\tif (e instanceof GraphQlClientError && e.response?.status === 401) {\n\t\t\t\tlogout({ noRedirect: true })\n\t\t\t} else {\n\t\t\t\tsetIdentityState({ state: 'failed', identity: undefined })\n\t\t\t}\n\t\t}\n\t}, [fetchMe, logout])\n\n\treturn [\n\t\tidentityState,\n\t\tuseMemo((): IdentityMethods => ({\n\t\t\tclearIdentity,\n\t\t\trefreshIdentity: fetch,\n\t\t}), [clearIdentity, fetch]),\n\t]\n}\n"],"names":["useSessionToken","useMeQuery","useState","useCallback","useLogoutInternal","it","GraphQlClientError","useMemo"],"mappings":";;;;;;AAMA,MAAM,0BAAqD;AAAA,EAC1D,kBAAkB;AAAA,EAClB,qBAAqB;AAAA,EACrB,sBAAsB;AAAA,EACtB,0BAA0B;AAAA,EAC1B,sBAAsB;AAAA,EACtB,wBAAwB;AAAA,EACxB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,sBAAsB;AAAA,EACtB,uBAAuB;AACxB;AAEO,MAAM,mBAAmB,MAAwF;AACvH,QAAM,eAAeA,YAAAA,gBAAA;AACrB,QAAM,UAAUC,WAAAA,WAAA;AAEhB,QAAM,CAAC,eAAe,gBAAgB,IAAIC,eAAiD;AAAA,IAC1F,OAAO,eAAe,YAAY;AAAA,IAClC,UAAU;AAAA,E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} from "@contember/react-client";
3
3
  import { useLogoutInternal } from "../internal/hooks/useLogoutInternal.js";
4
4
  import { useMeQuery } from "./queries/useMeQuery.js";
5
+ const deniedGlobalPermissions = {
6
+ canCreateProject: false,
7
+ canDeployEntrypoint: false,
8
+ canViewConfiguration: false,
9
+ canListIdentityProviders: false,
10
+ canListMailTemplates: false,
11
+ canManageConfiguration: false,
12
+ canViewAuthLog: false,
13
+ canListPersons: false,
14
+ canListGlobalApiKeys: false,
15
+ canCreateGlobalApiKey: false
16
+ };
5
17
  const useFetchIdentity = () => {
6
18
  const sessionToken = useSessionToken();
7
19
  const fetchMe = useMeQuery();
@@ -17,7 +29,6 @@ const useFetchIdentity = () => {
17
29
  const response = await fetchMe({});
18
30
  const person = response.person;
19
31
  const projects = response.projects;
20
- const permissions = response.permissions ?? { canCreateProject: false };
21
32
  setIdentityState({
22
33
  state: "success",
23
34
  identity: {
@@ -27,9 +38,12 @@ const useFetchIdentity = () => {
27
38
  projects: projects.map((it) => ({
28
39
  name: it.project.name,
29
40
  slug: it.project.slug,
30
- roles: it.memberships.map((it2) => it2.role)
41
+ roles: it.memberships.map((it2) => it2.role),
42
+ permissions: it.project.permissions
31
43
  })),
32
- permissions
44
+ // `permissions` is nullable on an identity the caller may not inspect; that never
45
+ // applies to `me`, but denying everything is the safe reading if it ever does.
46
+ permissions: response.permissions ?? deniedGlobalPermissions
33
47
  }
34
48
  });
35
49
  } catch (e) {
@@ -1 +1 @@
1
- {"version":3,"file":"useFetchIdentity.js","sources":["../../../../../packages/react-client-tenant/src/hooks/useFetchIdentity.ts"],"sourcesContent":["import { useCallback, useMemo, useState } from 'react'\nimport { Identity, IdentityMethods, IdentityStateValue } from '../types/index.js'\nimport { GraphQlClientError, useSessionToken } from '@contember/react-client'\nimport { useLogoutInternal } from '../internal/hooks/useLogoutInternal.js'\nimport { useMeQuery } from './queries/index.js'\n\nexport const useFetchIdentity = (): [{ state: IdentityStateValue; identity: Identity | undefined }, IdentityMethods] => {\n\tconst sessionToken = useSessionToken()\n\tconst fetchMe = useMeQuery()\n\n\tconst [identityState, setIdentityState] = useState<ReturnType<typeof useFetchIdentity>[0]>({\n\t\tstate: sessionToken ? 'loading' : 'none',\n\t\tidentity: undefined,\n\t})\n\n\tconst clearIdentity = useCallback(() => setIdentityState({ state: 'cleared', identity: undefined }), [])\n\tconst logout = useLogoutInternal(clearIdentity)\n\n\tconst fetch = useCallback(async () => {\n\t\tsetIdentityState({ state: 'loading', identity: undefined })\n\t\ttry {\n\t\t\tconst response = await fetchMe({})\n\t\t\tconst person = response.person\n\t\t\tconst projects = response.projects\n\t\t\tconst permissions = response.permissions ?? { canCreateProject: false }\n\n\t\t\tsetIdentityState({\n\t\t\t\tstate: 'success',\n\t\t\t\tidentity: {\n\t\t\t\t\tid: response.id,\n\t\t\t\t\troles: response.roles ?? [],\n\t\t\t\t\tperson: person ?? undefined,\n\t\t\t\t\tprojects: projects.map(it => ({\n\t\t\t\t\t\tname: it.project.name,\n\t\t\t\t\t\tslug: it.project.slug,\n\t\t\t\t\t\troles: it.memberships.map(it => it.role),\n\t\t\t\t\t})),\n\t\t\t\t\tpermissions,\n\t\t\t\t},\n\t\t\t})\n\t\t} catch (e) {\n\t\t\tconsole.error(e)\n\t\t\tif (e instanceof GraphQlClientError && e.response?.status === 401) {\n\t\t\t\tlogout({ noRedirect: true })\n\t\t\t} else {\n\t\t\t\tsetIdentityState({ state: 'failed', identity: undefined })\n\t\t\t}\n\t\t}\n\t}, [fetchMe, logout])\n\n\treturn [\n\t\tidentityState,\n\t\tuseMemo((): IdentityMethods => ({\n\t\t\tclearIdentity,\n\t\t\trefreshIdentity: fetch,\n\t\t}), [clearIdentity, fetch]),\n\t]\n}\n"],"names":["it"],"mappings":";;;;AAMO,MAAM,mBAAmB,MAAwF;AACvH,QAAM,eAAe,gBAAA;AACrB,QAAM,UAAU,WAAA;AAEhB,QAAM,CAAC,eAAe,gBAAgB,IAAI,SAAiD;AAAA,IAC1F,OAAO,eAAe,YAAY;AAAA,IAClC,UAAU;AAAA,EAAA,CACV;AAED,QAAM,gBAAgB,YAAY,MAAM,iBAAiB,EAAE,OAAO,WAAW,UAAU,QAAW,GAAG,EAAE;AACvG,QAAM,SAAS,kBAAkB,aAAa;AAE9C,QAAM,QAAQ,YAAY,YAAY;AACrC,qBAAiB,EAAE,OAAO,WAAW,UAAU,QAAW;AAC1D,QAAI;AACH,YAAM,WAAW,MAAM,QAAQ,EAAE;AACjC,YAAM,SAAS,SAAS;AACxB,YAAM,WAAW,SAAS;AAC1B,YAAM,cAAc,SAAS,eAAe,EAAE,kBAAkB,MAAA;AAEhE,uBAAiB;AAAA,QAChB,OAAO;AAAA,QACP,UAAU;AAAA,UACT,IAAI,SAAS;AAAA,UACb,OAAO,SAAS,SAAS,CAAA;AAAA,UACzB,QAAQ,UAAU;AAAA,UAClB,UAAU,SAAS,IAAI,CAAA,QAAO;AAAA,YAC7B,MAAM,GAAG,QAAQ;AAAA,YACjB,MAAM,GAAG,QAAQ;AAAA,YACjB,OAAO,GAAG,YAAY,IAAI,CAAAA,QAAMA,IAAG,IAAI;AAAA,UAAA,EACtC;AAAA,UACF;AAAA,QAAA;AAAA,MACD,CACA;AAAA,IACF,SAAS,GAAG;AACX,cAAQ,MAAM,CAAC;AACf,UAAI,aAAa,sBAAsB,EAAE,UAAU,WAAW,KAAK;AAClE,eAAO,EAAE,YAAY,MAAM;AAAA,MAC5B,OAAO;AACN,yBAAiB,EAAE,OAAO,UAAU,UAAU,QAAW;AAAA,MAC1D;AAAA,IACD;AAAA,EACD,GAAG,CAAC,SAAS,MAAM,CAAC;AAEpB,SAAO;AAAA,IACN;AAAA,IACA,QAAQ,OAAwB;AAAA,MAC/B;AAAA,MACA,iBAAiB;AAAA,IAAA,IACd,CAAC,eAAe,KAAK,CAAC;AAAA,EAAA;AAE5B;"}
1
+ {"version":3,"file":"useFetchIdentity.js","sources":["../../../../../packages/react-client-tenant/src/hooks/useFetchIdentity.ts"],"sourcesContent":["import { useCallback, useMemo, useState } from 'react'\nimport { Identity, IdentityGlobalPermissions, IdentityMethods, IdentityStateValue } from '../types/index.js'\nimport { GraphQlClientError, useSessionToken } from '@contember/react-client'\nimport { useLogoutInternal } from '../internal/hooks/useLogoutInternal.js'\nimport { useMeQuery } from './queries/index.js'\n\nconst deniedGlobalPermissions: IdentityGlobalPermissions = {\n\tcanCreateProject: false,\n\tcanDeployEntrypoint: false,\n\tcanViewConfiguration: false,\n\tcanListIdentityProviders: false,\n\tcanListMailTemplates: false,\n\tcanManageConfiguration: false,\n\tcanViewAuthLog: false,\n\tcanListPersons: false,\n\tcanListGlobalApiKeys: false,\n\tcanCreateGlobalApiKey: false,\n}\n\nexport const useFetchIdentity = (): [{ state: IdentityStateValue; identity: Identity | undefined }, IdentityMethods] => {\n\tconst sessionToken = useSessionToken()\n\tconst fetchMe = useMeQuery()\n\n\tconst [identityState, setIdentityState] = useState<ReturnType<typeof useFetchIdentity>[0]>({\n\t\tstate: sessionToken ? 'loading' : 'none',\n\t\tidentity: undefined,\n\t})\n\n\tconst clearIdentity = useCallback(() => setIdentityState({ state: 'cleared', identity: undefined }), [])\n\tconst logout = useLogoutInternal(clearIdentity)\n\n\tconst fetch = useCallback(async () => {\n\t\tsetIdentityState({ state: 'loading', identity: undefined })\n\t\ttry {\n\t\t\tconst response = await fetchMe({})\n\t\t\tconst person = response.person\n\t\t\tconst projects = response.projects\n\n\t\t\tsetIdentityState({\n\t\t\t\tstate: 'success',\n\t\t\t\tidentity: {\n\t\t\t\t\tid: response.id,\n\t\t\t\t\troles: response.roles ?? [],\n\t\t\t\t\tperson: person ?? undefined,\n\t\t\t\t\tprojects: projects.map(it => ({\n\t\t\t\t\t\tname: it.project.name,\n\t\t\t\t\t\tslug: it.project.slug,\n\t\t\t\t\t\troles: it.memberships.map(it => it.role),\n\t\t\t\t\t\tpermissions: it.project.permissions,\n\t\t\t\t\t})),\n\t\t\t\t\t// `permissions` is nullable on an identity the caller may not inspect; that never\n\t\t\t\t\t// applies to `me`, but denying everything is the safe reading if it ever does.\n\t\t\t\t\tpermissions: response.permissions ?? deniedGlobalPermissions,\n\t\t\t\t},\n\t\t\t})\n\t\t} catch (e) {\n\t\t\tconsole.error(e)\n\t\t\tif (e instanceof GraphQlClientError && e.response?.status === 401) {\n\t\t\t\tlogout({ noRedirect: true })\n\t\t\t} else {\n\t\t\t\tsetIdentityState({ state: 'failed', identity: undefined })\n\t\t\t}\n\t\t}\n\t}, [fetchMe, logout])\n\n\treturn [\n\t\tidentityState,\n\t\tuseMemo((): IdentityMethods => ({\n\t\t\tclearIdentity,\n\t\t\trefreshIdentity: fetch,\n\t\t}), [clearIdentity, fetch]),\n\t]\n}\n"],"names":["it"],"mappings":";;;;AAMA,MAAM,0BAAqD;AAAA,EAC1D,kBAAkB;AAAA,EAClB,qBAAqB;AAAA,EACrB,sBAAsB;AAAA,EACtB,0BAA0B;AAAA,EAC1B,sBAAsB;AAAA,EACtB,wBAAwB;AAAA,EACxB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,sBAAsB;AAAA,EACtB,uBAAuB;AACxB;AAEO,MAAM,mBAAmB,MAAwF;AACvH,QAAM,eAAe,gBAAA;AACrB,QAAM,UAAU,WAAA;AAEhB,QAAM,CAAC,eAAe,gBAAgB,IAAI,SAAiD;AAAA,IAC1F,OAAO,eAAe,YAAY;AAAA,IAClC,UAAU;AAAA,EAAA,CACV;AAED,QAAM,gBAAgB,YAAY,MAAM,iBAAiB,EAAE,OAAO,WAAW,UAAU,QAAW,GAAG,EAAE;AACvG,QAAM,SAAS,kBAAkB,aAAa;AAE9C,QAAM,QAAQ,YAAY,YAAY;AACrC,qBAAiB,EAAE,OAAO,WAAW,UAAU,QAAW;AAC1D,QAAI;AACH,YAAM,WAAW,MAAM,QAAQ,EAAE;AACjC,YAAM,SAAS,SAAS;AACxB,YAAM,WAAW,SAAS;AAE1B,uBAAiB;AAAA,QAChB,OAAO;AAAA,QACP,UAAU;AAAA,UACT,IAAI,SAAS;AAAA,UACb,OAAO,SAAS,SAAS,CAAA;AAAA,UACzB,QAAQ,UAAU;AAAA,UAClB,UAAU,SAAS,IAAI,CAAA,QAAO;AAAA,YAC7B,MAAM,GAAG,QAAQ;AAAA,YACjB,MAAM,GAAG,QAAQ;AAAA,YACjB,OAAO,GAAG,YAAY,IAAI,CAAAA,QAAMA,IAAG,IAAI;AAAA,YACvC,aAAa,GAAG,QAAQ;AAAA,UAAA,EACvB;AAAA;AAAA;AAAA,UAGF,aAAa,SAAS,eAAe;AAAA,QAAA;AAAA,MACtC,CACA;AAAA,IACF,SAAS,GAAG;AACX,cAAQ,MAAM,CAAC;AACf,UAAI,aAAa,sBAAsB,EAAE,UAAU,WAAW,KAAK;AAClE,eAAO,EAAE,YAAY,MAAM;AAAA,MAC5B,OAAO;AACN,yBAAiB,EAAE,OAAO,UAAU,UAAU,QAAW;AAAA,MAC1D;AAAA,IACD;AAAA,EACD,GAAG,CAAC,SAAS,MAAM,CAAC;AAEpB,SAAO;AAAA,IACN;AAAA,IACA,QAAQ,OAAwB;AAAA,MAC/B;AAAA,MACA,iBAAiB;AAAA,IAAA,IACd,CAAC,eAAe,KAAK,CAAC;AAAA,EAAA;AAE5B;"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const graphqlClient = require("@contember/graphql-client");
4
+ const isForbiddenError = (error) => {
5
+ if (!(error instanceof graphqlClient.GraphQlClientError)) {
6
+ return false;
7
+ }
8
+ if (error.type === "forbidden") {
9
+ return true;
10
+ }
11
+ return error.errors?.some((it) => it?.extensions?.code === "ForbiddenError") ?? false;
12
+ };
13
+ const toFormErrorCode = (error) => isForbiddenError(error) ? "FORBIDDEN" : "UNKNOWN_ERROR";
14
+ exports.isForbiddenError = isForbiddenError;
15
+ exports.toFormErrorCode = toFormErrorCode;
16
+ //# sourceMappingURL=forbidden.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forbidden.cjs","sources":["../../../../../packages/react-client-tenant/src/types/forbidden.ts"],"sourcesContent":["import { GraphQlClientError } from '@contember/graphql-client'\nimport { FormErrorCode } from './forms.js'\n\n/**\n * Tells a permission rejection apart from a genuine failure.\n *\n * The listing queries return an empty result when the caller may not see\n * anything, but the configuration queries (`configuration`, `authPolicies`,\n * `identityProviders`, `mailTemplates`) throw instead. Their resolvers call\n * `requireAccess`, which raises a `ForbiddenError` carrying\n * `extensions.code = 'ForbiddenError'` — that is what this matches.\n *\n * A view can then say \"you do not have access to this\" instead of showing a\n * failure the user cannot act on.\n */\nexport const isForbiddenError = (error: unknown): boolean => {\n\tif (!(error instanceof GraphQlClientError)) {\n\t\treturn false\n\t}\n\tif (error.type === 'forbidden') {\n\t\treturn true\n\t}\n\treturn error.errors?.some(it => it?.extensions?.code === 'ForbiddenError') ?? false\n}\n\n/**\n * Classifies an error thrown by a mutation. Unlike the queries above, a denied mutation always\n * throws — it never answers `ok: false` — so without this split every denial would reach the user\n * as \"something went wrong, please try again later\", which is advice they cannot act on.\n */\nexport const toFormErrorCode = (error: unknown): FormErrorCode => isForbiddenError(error) ? 'FORBIDDEN' : 'UNKNOWN_ERROR'\n"],"names":["GraphQlClientError"],"mappings":";;;AAeO,MAAM,mBAAmB,CAAC,UAA4B;AAC5D,MAAI,EAAE,iBAAiBA,cAAAA,qBAAqB;AAC3C,WAAO;AAAA,EACR;AACA,MAAI,MAAM,SAAS,aAAa;AAC/B,WAAO;AAAA,EACR;AACA,SAAO,MAAM,QAAQ,KAAK,CAAA,OAAM,IAAI,YAAY,SAAS,gBAAgB,KAAK;AAC/E;AAOO,MAAM,kBAAkB,CAAC,UAAkC,iBAAiB,KAAK,IAAI,cAAc;;;"}
@@ -0,0 +1,16 @@
1
+ import { GraphQlClientError } from "@contember/graphql-client";
2
+ const isForbiddenError = (error) => {
3
+ if (!(error instanceof GraphQlClientError)) {
4
+ return false;
5
+ }
6
+ if (error.type === "forbidden") {
7
+ return true;
8
+ }
9
+ return error.errors?.some((it) => it?.extensions?.code === "ForbiddenError") ?? false;
10
+ };
11
+ const toFormErrorCode = (error) => isForbiddenError(error) ? "FORBIDDEN" : "UNKNOWN_ERROR";
12
+ export {
13
+ isForbiddenError,
14
+ toFormErrorCode
15
+ };
16
+ //# sourceMappingURL=forbidden.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forbidden.js","sources":["../../../../../packages/react-client-tenant/src/types/forbidden.ts"],"sourcesContent":["import { GraphQlClientError } from '@contember/graphql-client'\nimport { FormErrorCode } from './forms.js'\n\n/**\n * Tells a permission rejection apart from a genuine failure.\n *\n * The listing queries return an empty result when the caller may not see\n * anything, but the configuration queries (`configuration`, `authPolicies`,\n * `identityProviders`, `mailTemplates`) throw instead. Their resolvers call\n * `requireAccess`, which raises a `ForbiddenError` carrying\n * `extensions.code = 'ForbiddenError'` — that is what this matches.\n *\n * A view can then say \"you do not have access to this\" instead of showing a\n * failure the user cannot act on.\n */\nexport const isForbiddenError = (error: unknown): boolean => {\n\tif (!(error instanceof GraphQlClientError)) {\n\t\treturn false\n\t}\n\tif (error.type === 'forbidden') {\n\t\treturn true\n\t}\n\treturn error.errors?.some(it => it?.extensions?.code === 'ForbiddenError') ?? false\n}\n\n/**\n * Classifies an error thrown by a mutation. Unlike the queries above, a denied mutation always\n * throws — it never answers `ok: false` — so without this split every denial would reach the user\n * as \"something went wrong, please try again later\", which is advice they cannot act on.\n */\nexport const toFormErrorCode = (error: unknown): FormErrorCode => isForbiddenError(error) ? 'FORBIDDEN' : 'UNKNOWN_ERROR'\n"],"names":[],"mappings":";AAeO,MAAM,mBAAmB,CAAC,UAA4B;AAC5D,MAAI,EAAE,iBAAiB,qBAAqB;AAC3C,WAAO;AAAA,EACR;AACA,MAAI,MAAM,SAAS,aAAa;AAC/B,WAAO;AAAA,EACR;AACA,SAAO,MAAM,QAAQ,KAAK,CAAA,OAAM,IAAI,YAAY,SAAS,gBAAgB,KAAK;AAC/E;AAOO,MAAM,kBAAkB,CAAC,UAAkC,iBAAiB,KAAK,IAAI,cAAc;"}
@@ -1 +1 @@
1
- {"version":3,"file":"IdentityState.d.ts","sourceRoot":"","sources":["../../../src/components/IdentityState.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAGtD,MAAM,WAAW,kBAAkB;IAClC,KAAK,EAAE,kBAAkB,GAAG,kBAAkB,EAAE,CAAA;IAChD,QAAQ,EAAE,SAAS,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,GAAI,qBAAqB,kBAAkB,mDAIpE,CAAA"}
1
+ {"version":3,"file":"IdentityState.d.ts","sourceRoot":"","sources":["../../../src/components/IdentityState.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAGtD,MAAM,WAAW,kBAAkB;IAClC,KAAK,EAAE,kBAAkB,GAAG,kBAAkB,EAAE,CAAA;IAChD,QAAQ,EAAE,SAAS,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,wBAAyB,kBAAkB,mDAIpE,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { ReactElement } from 'react';
2
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
3
+ import { AddProjectMemberErrorCode, MembershipInput } from '@contember/graphql-client-tenant';
4
+ export type AddProjectMemberFormValues = {
5
+ identityId: string;
6
+ memberships: readonly MembershipInput[];
7
+ };
8
+ export type AddProjectMemberFormErrorCode = AddProjectMemberErrorCode | 'UNKNOWN_ERROR' | 'FIELD_REQUIRED';
9
+ export type AddProjectMemberFormState = FormState;
10
+ export type AddProjectMemberFormError = FormError<AddProjectMemberFormValues, AddProjectMemberFormErrorCode>;
11
+ export type AddProjectMemberFormContextValue = FormContextValue<AddProjectMemberFormValues, AddProjectMemberFormErrorCode>;
12
+ export interface AddProjectMemberFormProps {
13
+ children: ReactElement;
14
+ projectSlug: string;
15
+ initialMemberships?: readonly MembershipInput[];
16
+ onSuccess?: (args: {}) => void;
17
+ }
18
+ export declare const useAddProjectMemberForm: () => AddProjectMemberFormContextValue;
19
+ export declare const AddProjectMemberForm: ({ children, onSuccess, projectSlug, initialMemberships }: AddProjectMemberFormProps) => import("react/jsx-runtime").JSX.Element;
20
+ //# sourceMappingURL=AddProjectMemberForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddProjectMemberForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/AddProjectMemberForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAG7F,MAAM,MAAM,0BAA0B,GAAG;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,SAAS,eAAe,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,6BAA6B,GACtC,yBAAyB,GACzB,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAA;AAEjD,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE5G,MAAM,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE1H,MAAM,WAAW,yBAAyB;IACzC,QAAQ,EAAE,YAAY,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,CAAC,EAAE,SAAS,eAAe,EAAE,CAAA;IAC/C,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,IAAI,CAAA;CAC9B;AAED,eAAO,MAAM,uBAAuB,EAAc,MAAM,gCAAgC,CAAA;AAExF,eAAO,MAAM,oBAAoB,6DAA8D,yBAAyB,4CA+BvH,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChangeMyPasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/ChangeMyPasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AAE5E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,0BAA0B,GAAG;IACxC,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,6BAA6B,GACtC,yBAAyB,GACzB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,eAAe,CAAA;AAElB,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAA;AAEjD,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE5G,MAAM,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE1H,MAAM,WAAW,yBAAyB;IACzC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,uBAAuB,EAAc,MAAM,gCAAgC,CAAA;AAExF,eAAO,MAAM,oBAAoB,GAAI,yBAAyB,yBAAyB,4CAkCtF,CAAA"}
1
+ {"version":3,"file":"ChangeMyPasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/ChangeMyPasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AAE5E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,0BAA0B,GAAG;IACxC,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,6BAA6B,GACtC,yBAAyB,GACzB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,eAAe,CAAA;AAElB,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAA;AAEjD,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE5G,MAAM,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE1H,MAAM,WAAW,yBAAyB;IACzC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,uBAAuB,EAAc,MAAM,gCAAgC,CAAA;AAExF,eAAO,MAAM,oBAAoB,4BAA6B,yBAAyB,4CAkCtF,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { ReactElement } from 'react';
2
+ import { ChangeMyProfileErrorCode } from '@contember/graphql-client-tenant';
3
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
4
+ export type ChangeMyProfileFormValues = {
5
+ email: string;
6
+ name: string;
7
+ };
8
+ export type ChangeMyProfileFormErrorCode = ChangeMyProfileErrorCode | 'FIELD_REQUIRED' | 'INVALID_VALUE' | 'UNKNOWN_ERROR';
9
+ export type ChangeMyProfileFormState = FormState;
10
+ export type ChangeMyProfileFormError = FormError<ChangeMyProfileFormValues, ChangeMyProfileFormErrorCode>;
11
+ export type ChangeMyProfileFormContextValue = FormContextValue<ChangeMyProfileFormValues, ChangeMyProfileFormErrorCode>;
12
+ export interface ChangeMyProfileFormProps {
13
+ children: ReactElement;
14
+ /** Prefill the fields, typically from `useIdentity()`. */
15
+ initialValues?: Partial<ChangeMyProfileFormValues>;
16
+ onSuccess?: () => void;
17
+ }
18
+ export declare const useChangeMyProfileForm: () => ChangeMyProfileFormContextValue;
19
+ export declare const ChangeMyProfileForm: ({ children, onSuccess, initialValues }: ChangeMyProfileFormProps) => import("react/jsx-runtime").JSX.Element;
20
+ //# sourceMappingURL=ChangeMyProfileForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChangeMyProfileForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/ChangeMyProfileForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAW,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAA;AAE3E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,yBAAyB,GAAG;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,4BAA4B,GACrC,wBAAwB,GACxB,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAAA;AAEhD,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAAC,yBAAyB,EAAE,4BAA4B,CAAC,CAAA;AAEzG,MAAM,MAAM,+BAA+B,GAAG,gBAAgB,CAAC,yBAAyB,EAAE,4BAA4B,CAAC,CAAA;AAEvH,MAAM,WAAW,wBAAwB;IACxC,QAAQ,EAAE,YAAY,CAAA;IACtB,0DAA0D;IAC1D,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;IAClD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,sBAAsB,EAAc,MAAM,+BAA+B,CAAA;AAEtF,eAAO,MAAM,mBAAmB,2CAA4C,wBAAwB,4CAgCnG,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { ReactElement } from 'react';
2
+ import { ChangePasswordErrorCode } from '@contember/graphql-client-tenant';
3
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
4
+ export type ChangePasswordFormValues = {
5
+ password: string;
6
+ passwordConfirmation: string;
7
+ };
8
+ export type ChangePasswordFormErrorCode = ChangePasswordErrorCode | 'FIELD_REQUIRED' | 'INVALID_VALUE' | 'PASSWORD_MISMATCH' | 'UNKNOWN_ERROR';
9
+ export type ChangePasswordFormState = FormState;
10
+ export type ChangePasswordFormError = FormError<ChangePasswordFormValues, ChangePasswordFormErrorCode>;
11
+ export type ChangePasswordFormContextValue = FormContextValue<ChangePasswordFormValues, ChangePasswordFormErrorCode>;
12
+ export interface ChangePasswordFormProps {
13
+ children: ReactElement;
14
+ personId: string;
15
+ onSuccess?: () => void;
16
+ }
17
+ export declare const useChangePasswordForm: () => ChangePasswordFormContextValue;
18
+ export declare const ChangePasswordForm: ({ children, onSuccess, personId }: ChangePasswordFormProps) => import("react/jsx-runtime").JSX.Element;
19
+ //# sourceMappingURL=ChangePasswordForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChangePasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/ChangePasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAE1E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,wBAAwB,GAAG;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,2BAA2B,GACpC,uBAAuB,GACvB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,eAAe,CAAA;AAElB,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAA;AAE/C,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,wBAAwB,EAAE,2BAA2B,CAAC,CAAA;AAEtG,MAAM,MAAM,8BAA8B,GAAG,gBAAgB,CAAC,wBAAwB,EAAE,2BAA2B,CAAC,CAAA;AAEpH,MAAM,WAAW,uBAAuB;IACvC,QAAQ,EAAE,YAAY,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,qBAAqB,EAAc,MAAM,8BAA8B,CAAA;AAEpF,eAAO,MAAM,kBAAkB,sCAAuC,uBAAuB,4CAiC5F,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { ReactElement } from 'react';
2
+ import { ChangeProfileErrorCode } from '@contember/graphql-client-tenant';
3
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
4
+ export type ChangeProfileFormValues = {
5
+ email: string;
6
+ name: string;
7
+ };
8
+ export type ChangeProfileFormErrorCode = ChangeProfileErrorCode | 'FIELD_REQUIRED' | 'INVALID_VALUE' | 'UNKNOWN_ERROR';
9
+ export type ChangeProfileFormState = FormState;
10
+ export type ChangeProfileFormError = FormError<ChangeProfileFormValues, ChangeProfileFormErrorCode>;
11
+ export type ChangeProfileFormContextValue = FormContextValue<ChangeProfileFormValues, ChangeProfileFormErrorCode>;
12
+ export interface ChangeProfileFormProps {
13
+ children: ReactElement;
14
+ personId: string;
15
+ /** Prefill the fields, typically from `usePersonQuery()`. */
16
+ initialValues?: Partial<ChangeProfileFormValues>;
17
+ onSuccess?: () => void;
18
+ }
19
+ export declare const useChangeProfileForm: () => ChangeProfileFormContextValue;
20
+ export declare const ChangeProfileForm: ({ children, onSuccess, personId, initialValues }: ChangeProfileFormProps) => import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=ChangeProfileForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChangeProfileForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/ChangeProfileForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAW,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAA;AAEzE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,0BAA0B,GACnC,sBAAsB,GACtB,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAA;AAE9C,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,CAAA;AAEnG,MAAM,MAAM,6BAA6B,GAAG,gBAAgB,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,CAAA;AAEjH,MAAM,WAAW,sBAAsB;IACtC,QAAQ,EAAE,YAAY,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,6DAA6D;IAC7D,aAAa,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,CAAA;IAChD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,oBAAoB,EAAc,MAAM,6BAA6B,CAAA;AAElF,eAAO,MAAM,iBAAiB,qDAAsD,sBAAsB,4CA6BzG,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmEmailChangeForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/ConfirmEmailChangeForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAE9E,OAAO,EAAE,gBAAgB,EAAE,SAAS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AO,MAAM,mBAAmB,EAAc,MAAM,4BAA4B,CAAA;AAEhF,eAAO,MAAM,gBAAgB,6DAA8D,qBAAqB,4CA+B/G,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { ReactElement } from 'react';
2
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
3
+ import { CreateApiKeyErrorCode } from '@contember/graphql-client-tenant';
4
+ import { CreateGlobalApiKeyMutationResult } from '../../hooks/index.js';
5
+ export type CreateGlobalApiKeyFormValues = {
6
+ description: string;
7
+ roles: readonly string[];
8
+ };
9
+ export type CreateGlobalApiKeyFormErrorCode = CreateApiKeyErrorCode | 'UNKNOWN_ERROR' | 'FIELD_REQUIRED';
10
+ export type CreateGlobalApiKeyFormState = FormState;
11
+ export type CreateGlobalApiKeyFormError = FormError<CreateGlobalApiKeyFormValues, CreateGlobalApiKeyFormErrorCode>;
12
+ export type CreateGlobalApiKeyFormContextValue = FormContextValue<CreateGlobalApiKeyFormValues, CreateGlobalApiKeyFormErrorCode>;
13
+ export interface CreateGlobalApiKeyFormProps {
14
+ children: ReactElement;
15
+ initialRoles?: readonly string[];
16
+ onSuccess?: (args: {
17
+ result: CreateGlobalApiKeyMutationResult;
18
+ }) => void;
19
+ }
20
+ export declare const useCreateGlobalApiKeyForm: () => CreateGlobalApiKeyFormContextValue;
21
+ export declare const CreateGlobalApiKeyForm: ({ children, onSuccess, initialRoles }: CreateGlobalApiKeyFormProps) => import("react/jsx-runtime").JSX.Element;
22
+ //# sourceMappingURL=CreateGlobalApiKeyForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateGlobalApiKeyForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/CreateGlobalApiKeyForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,qBAAqB,E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B,CAAC,CAAA;AAElH,MAAM,MAAM,kCAAkC,GAAG,gBAAgB,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAEhI,MAAM,WAAW,2BAA2B;IAC3C,QAAQ,EAAE,YAAY,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,gCAAgC,CAAA;KAAE,KAAK,IAAI,CAAA;CACxE;AAED,eAAO,MAAM,yBAAyB,EAAc,MAAM,kCAAkC,CAAA;AAE5F,eAAO,MAAM,sBAAsB,kDAAmD,2BAA2B,4CA0BhH,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { ReactElement } from 'react';
2
+ import { ConfirmEmailOtpErrorCode } from '@contember/graphql-client-tenant';
3
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
4
+ import { ConfirmEmailOtpMutationResult } from '../../hooks/index.js';
5
+ export type EmailOtpConfirmFormValues = {
6
+ otpToken: string;
7
+ };
8
+ export type EmailOtpConfirmFormErrorCode = ConfirmEmailOtpErrorCode | 'FIELD_REQUIRED' | 'INVALID_VALUE' | 'UNKNOWN_ERROR';
9
+ export type EmailOtpConfirmFormState = FormState;
10
+ export type EmailOtpConfirmFormError = FormError<EmailOtpConfirmFormValues, EmailOtpConfirmFormErrorCode>;
11
+ export type EmailOtpConfirmFormContextValue = FormContextValue<EmailOtpConfirmFormValues, EmailOtpConfirmFormErrorCode>;
12
+ export interface EmailOtpConfirmFormProps {
13
+ children: ReactElement;
14
+ /** The result carries freshly issued backup codes — show them once, they are not retrievable later. */
15
+ onSuccess?: (args: {
16
+ result: ConfirmEmailOtpMutationResult;
17
+ }) => void;
18
+ }
19
+ export declare const useEmailOtpConfirmForm: () => EmailOtpConfirmFormContextValue;
20
+ export declare const EmailOtpConfirmForm: ({ children, onSuccess }: EmailOtpConfirmFormProps) => import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=EmailOtpConfirmForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmailOtpConfirmForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/EmailOtpConfirmForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAA;AAE3E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,6BAA6B,EAA8B,MAAM,sBAAsB,CAAA;AAEhG,MAAM,MAAM,yBAAyB,GAAG;IACvC,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,4BAA4B,GACrC,wBAAwB,GACxB,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAAA;AAEhD,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAAC,yBAAyB,EAAE,4BAA4B,CAAC,CAAA;AAEzG,MAAM,MAAM,+BAA+B,GAAG,gBAAgB,CAAC,yBAAyB,EAAE,4BAA4B,CAAC,CAAA;AAEvH,MAAM,WAAW,wBAAwB;IACxC,QAAQ,EAAE,YAAY,CAAA;IACtB,uGAAuG;IACvG,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,6BAA6B,CAAA;KAAE,KAAK,IAAI,CAAA;CACrE;AAED,eAAO,MAAM,sBAAsB,EAAc,MAAM,+BAA+B,CAAA;AAEtF,eAAO,MAAM,mBAAmB,4BAA6B,wBAAwB,4CAgCpF,CAAA"}
@@ -6,6 +6,10 @@ export type InviteFormValues = {
6
6
  email: string;
7
7
  name: string;
8
8
  memberships: readonly MembershipInput[];
9
+ /** Switches to `unmanagedInvite`: create the member without sending mail. Requires `allowUnmanaged` on the form. */
10
+ unmanaged: boolean;
11
+ /** Only read when `unmanaged` is set; empty means the account is created without a password. */
12
+ password: string;
9
13
  };
10
14
  export type InviteFormErrorCode = InviteErrorCode | 'UNKNOWN_ERROR' | 'FIELD_REQUIRED';
11
15
  export type InviteFormState = FormState;
@@ -16,10 +20,17 @@ export interface InviteFormProps {
16
20
  projectSlug: string;
17
21
  inviteOptions?: InviteOptions;
18
22
  initialMemberships?: readonly MembershipInput[];
23
+ /**
24
+ * Lets the form submit through `unmanagedInvite` when `values.unmanaged` is
25
+ * set — no invitation e-mail, optionally with a password. Off by default, so
26
+ * a host app has to opt into offering it. Submitting with `values.unmanaged`
27
+ * set but this off throws rather than falling back to a mailed invitation.
28
+ */
29
+ allowUnmanaged?: boolean;
19
30
  onSuccess?: (args: {
20
31
  result: InviteMutationResult;
21
32
  }) => void;
22
33
  }
23
34
  export declare const useInviteForm: () => InviteFormContextValue;
24
- export declare const InviteForm: ({ children, onSuccess, projectSlug, initialMemberships, inviteOptions }: InviteFormProps) => import("react/jsx-runtime").JSX.Element;
35
+ export declare const InviteForm: ({ children, onSuccess, projectSlug, initialMemberships, inviteOptions, allowUnmanaged }: InviteFormProps) => import("react/jsx-runtime").JSX.Element;
25
36
  //# sourceMappingURL=InviteForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InviteForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/InviteForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClG,OAAO,EAAE,oBAAoB,EAAqB,MAAM,sBAAsB,CAAA;AAE9E,MAAM,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,SAAS,eA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IAChG,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAC5B,eAAe,GACf,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,eAAe,GAAG,SAAS,CAAA;AAEvC,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAA;AAE9E,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAA;AAE5F,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE,YAAY,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,kBAAkB,CAAC,EAAE,SAAS,eAAe,EAAE,CAAA;IAC/C;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,oBAAoB,CAAA;KAAE,KAAK,IAAI,CAAA;CAC5D;AAED,eAAO,MAAM,aAAa,EAAc,MAAM,sBAAsB,CAAA;AAEpE,eAAO,MAAM,UAAU,4FACmE,eAAe,4CAwDxG,CAAA"}
@@ -5,6 +5,8 @@ export type LoginFormValues = {
5
5
  email: string;
6
6
  password: string;
7
7
  otpToken: string;
8
+ /** Alternative to `otpToken` for a user who lost their authenticator. */
9
+ backupCode: string;
8
10
  };
9
11
  export type LoginFormErrorCode = SignInErrorCode | 'FIELD_REQUIRED' | 'INVALID_VALUE' | 'UNKNOWN_ERROR';
10
12
  export type LoginFormState = FormState | 'otp-required';
@@ -1 +1 @@
1
- {"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/LoginForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAG1D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,EAAE,gBAAgB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AE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,iBAAiB,EAAc,MAAM,0BAA0B,CAAA;AAE5E,eAAO,MAAM,cAAc,GAAI,yBAAyB,mBAAmB,4CA8B1E,CAAA"}
1
+ {"version":3,"file":"OtpConfirmForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/OtpConfirmForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAGtE,MAAM,MAAM,oBAAoB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAChC,mBAAmB,GACnB,gBAAgB,GAChB,eAAe,CAAA;AAElB,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAA;AAE3C,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAE1F,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAExG,MAAM,WAAW,mBAAmB;IACnC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,iBAAiB,EAAc,MAAM,0BAA0B,CAAA;AAE5E,eAAO,MAAM,cAAc,4BAA6B,mBAAmB,4CA8B1E,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"OtpPrepareForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/OtpPrepareForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;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;AAElF,eAAO,MAAM,iBAAiB,GAAI,gCAAgC,sBAAsB,4CAqCvF,CAAA"}
1
+ {"version":3,"file":"PasswordResetForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordResetForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAA;AAEzE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,0BAA0B,GACnC,sBAAsB,GACtB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,eAAe,CAAA;AAElB,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAA;AAE9C,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,CAAA;AAEnG,MAAM,MAAM,6BAA6B,GAAG,gBAAgB,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,CAAA;AAEjH,MAAM,WAAW,sBAAsB;IACtC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,oBAAoB,EAAc,MAAM,6BAA6B,CAAA;AAElF,eAAO,MAAM,iBAAiB,mCAAoC,sBAAsB,4CAqCvF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordResetRequestForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordResetRequestForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAA;AAEtF,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,8BAA8B,GAAG;IAC5C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,iCAAiC,GAC1C,mCAAmC,GACnC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,6BAA6B,GAAG,SAAS,CAAA;AAErD,MAAM,MAAM,6BAA6B,GAAG,SAAS,CAAC,8BAA8B,EAAE,iCAAiC,CAAC,CAAA;AAExH,MAAM,MAAM,oCAAoC,GAAG,gBAAgB,CAAC,8BAA8B,EAAE,iCAAiC,CAAC,CAAA;AAEtI,MAAM,WAAW,6BAA6B;IAC7C,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,2BAA2B,EAAc,MAAM,oCAAoC,CAAA;AAEhG,eAAO,MAAM,wBAAwB,GAAI,yBAAyB,6BAA6B,4CA0B9F,CAAA"}
1
+ {"version":3,"file":"PasswordResetRequestForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordResetRequestForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAA;AAEtF,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,8BAA8B,GAAG;IAC5C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,iCAAiC,GAC1C,mCAAmC,GACnC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,6BAA6B,GAAG,SAAS,CAAA;AAErD,MAAM,MAAM,6BAA6B,GAAG,SAAS,CAAC,8BAA8B,EAAE,iCAAiC,CAAC,CAAA;AAExH,MAAM,MAAM,oCAAoC,GAAG,gBAAgB,CAAC,8BAA8B,EAAE,iCAAiC,CAAC,CAAA;AAEtI,MAAM,WAAW,6BAA6B;IAC7C,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,2BAA2B,EAAc,MAAM,oCAAoC,CAAA;AAEhG,eAAO,MAAM,wBAAwB,4BAA6B,6BAA6B,4CA0B9F,CAAA"}
@@ -4,6 +4,8 @@ import { FormContextValue, FormError, FormState } from '../../types/forms.js';
4
4
  export type PasswordlessSignInFormValues = {
5
5
  token: string;
6
6
  otpToken: string;
7
+ /** Alternative to `otpToken` for a user who lost their authenticator. */
8
+ backupCode: string;
7
9
  };
8
10
  export type PasswordlessSignInFormErrorCode = TenantApi.SignInPasswordlessErrorCode | 'FIELD_REQUIRED' | 'INVALID_VALUE' | 'UNKNOWN_ERROR';
9
11
  export type PasswordlessSignInFormState = FormState | 'otp-required';
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordlessSignInForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordlessSignInForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAE7D,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAI1D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAG7E,MAAM,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,+BAA+B,GACxC,SAAS,CAAC,2BAA2B,GACrC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,2BAA2B,GACpC,SAAS,GACT,cAAc,CAAA;AAEjB,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAElH,MAAM,MAAM,kCAAkC,GAAG,gBAAgB,CAChE,4BAA4B,EAC5B,+BAA+B,EAC/B,2BAA2B,CAC3B,CAAA;AAED,MAAM,WAAW,2BAA2B;IAC3C,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,SAAS,CAAC,0BAA0B,CAAA;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,yBAAyB,EAAc,MAAM,kCAAkC,CAAA;AAO5F,eAAO,MAAM,sBAAsB,GAClC,uEAAkG,2BAA2B,4CA8C7H,CAAA"}
1
+ {"version":3,"file":"PasswordlessSignInForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordlessSignInForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAE7D,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAI1D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAG7E,MAAM,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,yEAAyE;IACzE,UAAU,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,+BAA+B,GACxC,SAAS,CAAC,2BAA2B,GACrC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,2BAA2B,GACpC,SAAS,GACT,cAAc,CAAA;AAEjB,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAElH,MAAM,MAAM,kCAAkC,GAAG,gBAAgB,CAChE,4BAA4B,EAC5B,+BAA+B,EAC/B,2BAA2B,CAC3B,CAAA;AAED,MAAM,WAAW,2BAA2B;IAC3C,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,SAAS,CAAC,0BAA0B,CAAA;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,yBAAyB,EAAc,MAAM,kCAAkC,CAAA;AAO5F,eAAO,MAAM,sBAAsB,0EACgE,2BAA2B,4CAiD7H,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordlessSignInInitForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordlessSignInInitForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAC1D,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAE7D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,oCAAoC,EAAqC,MAAM,sBAAsB,CAAA;AAI9G,MAAM,MAAM,gCAAgC,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,mCAAmC,GAC5C,SAAS,CAAC,+BAA+B,GACzC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,+BAA+B,GAAG,SAAS,CAAA;AAEvD,MAAM,MAAM,+BAA+B,GAAG,SAAS,CAAC,gCAAgC,EAAE,mCAAmC,CAAC,CAAA;AAE9H,MAAM,MAAM,sCAAsC,GAAG,gBAAgB,CAAC,gCAAgC,EAAE,mCAAmC,CAAC,CAAA;AAE5I,MAAM,WAAW,+BAA+B;IAC/C,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,oCAAoC,CAAA;KAAE,KAAK,IAAI,CAAA;CAC5E;AAED,eAAO,MAAM,6BAA6B,EAAc,MAAM,sCAAsC,CAAA;AAEpG,eAAO,MAAM,0BAA0B,GAAI,yBAAyB,+BAA+B,4CAkClG,CAAA"}
1
+ {"version":3,"file":"PasswordlessSignInInitForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordlessSignInInitForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAC1D,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAE7D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,oCAAoC,EAAqC,MAAM,sBAAsB,CAAA;AAI9G,MAAM,MAAM,gCAAgC,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,mCAAmC,GAC5C,SAAS,CAAC,+BAA+B,GACzC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,+BAA+B,GAAG,SAAS,CAAA;AAEvD,MAAM,MAAM,+BAA+B,GAAG,SAAS,CAAC,gCAAgC,EAAE,mCAAmC,CAAC,CAAA;AAE9H,MAAM,MAAM,sCAAsC,GAAG,gBAAgB,CAAC,gCAAgC,EAAE,mCAAmC,CAAC,CAAA;AAE5I,MAAM,WAAW,+BAA+B;IAC/C,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,oCAAoC,CAAA;KAAE,KAAK,IAAI,CAAA;CAC5E;AAED,eAAO,MAAM,6BAA6B,EAAc,MAAM,sCAAsC,CAAA;AAEpG,eAAO,MAAM,0BAA0B,4BAA6B,+BAA+B,4CAkClG,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"RequestEmailVerificationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/RequestEmailVerificationForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAA;AAEpF,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,kCAAkC,GAAG;IAChD,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,qCAAqC,GAC9C,iCAAiC,GACjC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,iCAAiC,GAAG,SAAS,CAAA;AAEzD,MAAM,MAAM,iCAAiC,GAAG,SAAS,CAAC,kCAAkC,EAAE,qCAAqC,CAAC,CAAA;AAEpI,MAAM,MAAM,wCAAwC,GAAG,gBAAgB,CAAC,kCAAkC,EAAE,qCAAqC,CAAC,CAAA;AAElJ,MAAM,WAAW,iCAAiC;IACjD,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,+BAA+B,EAAc,MAAM,wCAAwC,CAAA;AAExG,eAAO,MAAM,4BAA4B,GAAI,yBAAyB,iCAAiC,4CA0BtG,CAAA"}
1
+ {"version":3,"file":"RequestEmailVerificationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/RequestEmailVerificationForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAA;AAEpF,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,kCAAkC,GAAG;IAChD,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,qCAAqC,GAC9C,iCAAiC,GACjC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,iCAAiC,GAAG,SAAS,CAAA;AAEzD,MAAM,MAAM,iCAAiC,GAAG,SAAS,CAAC,kCAAkC,EAAE,qCAAqC,CAAC,CAAA;AAEpI,MAAM,MAAM,wCAAwC,GAAG,gBAAgB,CAAC,kCAAkC,EAAE,qCAAqC,CAAC,CAAA;AAElJ,MAAM,WAAW,iCAAiC;IACjD,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,+BAA+B,EAAc,MAAM,wCAAwC,CAAA;AAExG,eAAO,MAAM,4BAA4B,4BAA6B,iCAAiC,4CA0BtG,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { ReactElement } from 'react';
2
+ import { SetProjectSecretErrorCode } from '@contember/graphql-client-tenant';
3
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
4
+ export type SetProjectSecretFormValues = {
5
+ key: string;
6
+ value: string;
7
+ };
8
+ export type SetProjectSecretFormErrorCode = SetProjectSecretErrorCode | 'FIELD_REQUIRED' | 'UNKNOWN_ERROR';
9
+ export type SetProjectSecretFormState = FormState;
10
+ export type SetProjectSecretFormError = FormError<SetProjectSecretFormValues, SetProjectSecretFormErrorCode>;
11
+ export type SetProjectSecretFormContextValue = FormContextValue<SetProjectSecretFormValues, SetProjectSecretFormErrorCode>;
12
+ export interface SetProjectSecretFormProps {
13
+ children: ReactElement;
14
+ projectSlug: string;
15
+ onSuccess?: () => void;
16
+ }
17
+ export declare const useSetProjectSecretForm: () => SetProjectSecretFormContextValue;
18
+ export declare const SetProjectSecretForm: ({ children, onSuccess, projectSlug }: SetProjectSecretFormProps) => import("react/jsx-runtime").JSX.Element;
19
+ //# sourceMappingURL=SetProjectSecretForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetProjectSecretForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/SetProjectSecretForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AAE5E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,0BAA0B,GAAG;IACxC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,6BAA6B,GACtC,yBAAyB,GACzB,gBAAgB,GAChB,eAAe,CAAA;AAElB,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAA;AAEjD,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE5G,MAAM,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE1H,MAAM,WAAW,yBAAyB;IACzC,QAAQ,EAAE,YAAY,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,uBAAuB,EAAc,MAAM,gCAAgC,CAAA;AAExF,eAAO,MAAM,oBAAoB,yCAA0C,yBAAyB,4CA+BnG,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { ReactElement } from 'react';
2
+ import { SignUpErrorCode } from '@contember/graphql-client-tenant';
3
+ import { FormContextValue, FormError, FormState } from '../../types/forms.js';
4
+ import { SignUpMutationResult } from '../../hooks/index.js';
5
+ export type SignUpFormValues = {
6
+ email: string;
7
+ password: string;
8
+ passwordConfirmation: string;
9
+ name: string;
10
+ };
11
+ export type SignUpFormErrorCode = SignUpErrorCode | 'FIELD_REQUIRED' | 'INVALID_VALUE' | 'PASSWORD_MISMATCH' | 'UNKNOWN_ERROR';
12
+ export type SignUpFormState = FormState;
13
+ export type SignUpFormError = FormError<SignUpFormValues, SignUpFormErrorCode>;
14
+ export type SignUpFormContextValue = FormContextValue<SignUpFormValues, SignUpFormErrorCode>;
15
+ export interface SignUpFormProps {
16
+ children: ReactElement;
17
+ /** Tenant roles for the new identity. Only a caller allowed to grant them may pass this. */
18
+ roles?: readonly string[];
19
+ captchaToken?: string;
20
+ onSuccess?: (args: {
21
+ result: SignUpMutationResult;
22
+ }) => void;
23
+ }
24
+ export declare const useSignUpForm: () => SignUpFormContextValue;
25
+ /**
26
+ * Open registration. Note that `signUp` only creates the account — it does not
27
+ * sign anyone in, so a host app usually follows a success with `LoginForm` or,
28
+ * when e-mail verification is required, with a "check your inbox" screen.
29
+ */
30
+ export declare const SignUpForm: ({ children, onSuccess, roles, captchaToken }: SignUpFormProps) => import("react/jsx-runtime").JSX.Element;
31
+ //# sourceMappingURL=SignUpForm.d.ts.map