@thunderid/nextjs 1.12.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/dist/ThunderIDNextClient.d.ts +8 -1
  2. package/dist/ThunderIDNextClient.d.ts.map +1 -1
  3. package/dist/ThunderIDNextClient.js +10 -0
  4. package/dist/ThunderIDNextClient.js.map +1 -1
  5. package/dist/cjs/ThunderIDNextClient.cjs +10 -0
  6. package/dist/cjs/ThunderIDNextClient.cjs.map +1 -1
  7. package/dist/cjs/client/components/account/OrganizationUnitSwitcher/OrganizationUnitSwitcher.cjs +116 -0
  8. package/dist/cjs/client/components/account/OrganizationUnitSwitcher/OrganizationUnitSwitcher.cjs.map +1 -0
  9. package/dist/cjs/client/components/account/UserProfile/UserProfile.cjs +11 -1
  10. package/dist/cjs/client/components/account/UserProfile/UserProfile.cjs.map +1 -1
  11. package/dist/cjs/client/components/account/VerifyAttribute/VerifyAttribute.cjs +80 -0
  12. package/dist/cjs/client/components/account/VerifyAttribute/VerifyAttribute.cjs.map +1 -0
  13. package/dist/cjs/client/components/auth/SignIn/SignIn.cjs +3 -2
  14. package/dist/cjs/client/components/auth/SignIn/SignIn.cjs.map +1 -1
  15. package/dist/cjs/client/components/{admin → management}/AgentCreate/AgentCreate.cjs +1 -1
  16. package/dist/cjs/client/components/management/AgentCreate/AgentCreate.cjs.map +1 -0
  17. package/dist/cjs/client/components/{admin → management}/AgentDetails/AgentDetails.cjs +1 -1
  18. package/dist/cjs/client/components/management/AgentDetails/AgentDetails.cjs.map +1 -0
  19. package/dist/cjs/client/components/{admin → management}/AgentList/AgentList.cjs +1 -1
  20. package/dist/cjs/client/components/management/AgentList/AgentList.cjs.map +1 -0
  21. package/dist/cjs/client/components/{admin → management}/ApplicationCreate/ApplicationCreate.cjs +1 -1
  22. package/dist/cjs/client/components/management/ApplicationCreate/ApplicationCreate.cjs.map +1 -0
  23. package/dist/cjs/client/components/{admin → management}/ApplicationDetails/ApplicationDetails.cjs +1 -1
  24. package/dist/cjs/client/components/management/ApplicationDetails/ApplicationDetails.cjs.map +1 -0
  25. package/dist/cjs/client/components/{admin → management}/ApplicationList/ApplicationList.cjs +1 -1
  26. package/dist/cjs/client/components/management/ApplicationList/ApplicationList.cjs.map +1 -0
  27. package/dist/cjs/client/components/{admin → management}/GroupCreate/GroupCreate.cjs +1 -1
  28. package/dist/cjs/client/components/management/GroupCreate/GroupCreate.cjs.map +1 -0
  29. package/dist/cjs/client/components/management/GroupDetails/GroupDetails.cjs +28 -0
  30. package/dist/cjs/client/components/management/GroupDetails/GroupDetails.cjs.map +1 -0
  31. package/dist/cjs/client/components/{admin → management}/GroupList/GroupList.cjs +1 -1
  32. package/dist/cjs/client/components/management/GroupList/GroupList.cjs.map +1 -0
  33. package/dist/cjs/client/components/{admin → management}/GroupMembers/GroupMembers.cjs +1 -1
  34. package/dist/cjs/client/components/management/GroupMembers/GroupMembers.cjs.map +1 -0
  35. package/dist/cjs/client/components/management/OrganizationUnitCreate/OrganizationUnitCreate.cjs +28 -0
  36. package/dist/cjs/client/components/management/OrganizationUnitCreate/OrganizationUnitCreate.cjs.map +1 -0
  37. package/dist/cjs/client/components/management/OrganizationUnitDetails/OrganizationUnitDetails.cjs +28 -0
  38. package/dist/cjs/client/components/management/OrganizationUnitDetails/OrganizationUnitDetails.cjs.map +1 -0
  39. package/dist/cjs/client/components/management/OrganizationUnitList/OrganizationUnitList.cjs +28 -0
  40. package/dist/cjs/client/components/management/OrganizationUnitList/OrganizationUnitList.cjs.map +1 -0
  41. package/dist/cjs/client/components/management/ProjectCreate/ProjectCreate.cjs +28 -0
  42. package/dist/cjs/client/components/management/ProjectCreate/ProjectCreate.cjs.map +1 -0
  43. package/dist/cjs/client/components/management/ProjectDetails/ProjectDetails.cjs +28 -0
  44. package/dist/cjs/client/components/management/ProjectDetails/ProjectDetails.cjs.map +1 -0
  45. package/dist/cjs/client/components/management/ProjectList/ProjectList.cjs +28 -0
  46. package/dist/cjs/client/components/management/ProjectList/ProjectList.cjs.map +1 -0
  47. package/dist/cjs/client/components/management/ProjectSwitcher/ProjectSwitcher.cjs +30 -0
  48. package/dist/cjs/client/components/management/ProjectSwitcher/ProjectSwitcher.cjs.map +1 -0
  49. package/dist/cjs/client/components/{admin → management}/RoleAssignments/RoleAssignments.cjs +1 -1
  50. package/dist/cjs/client/components/management/RoleAssignments/RoleAssignments.cjs.map +1 -0
  51. package/dist/cjs/client/components/{admin → management}/RoleCreate/RoleCreate.cjs +1 -1
  52. package/dist/cjs/client/components/management/RoleCreate/RoleCreate.cjs.map +1 -0
  53. package/dist/cjs/client/components/management/RoleDetails/RoleDetails.cjs +28 -0
  54. package/dist/cjs/client/components/management/RoleDetails/RoleDetails.cjs.map +1 -0
  55. package/dist/cjs/client/components/{admin → management}/RoleList/RoleList.cjs +1 -1
  56. package/dist/cjs/client/components/management/RoleList/RoleList.cjs.map +1 -0
  57. package/dist/cjs/client/components/{admin → management}/RolePermissions/RolePermissions.cjs +1 -1
  58. package/dist/cjs/client/components/management/RolePermissions/RolePermissions.cjs.map +1 -0
  59. package/dist/cjs/client/components/management/SharingPolicies/SharingPolicies.cjs +28 -0
  60. package/dist/cjs/client/components/management/SharingPolicies/SharingPolicies.cjs.map +1 -0
  61. package/dist/cjs/client/components/{admin → management}/UserCreate/UserCreate.cjs +1 -1
  62. package/dist/cjs/client/components/management/UserCreate/UserCreate.cjs.map +1 -0
  63. package/dist/cjs/client/components/{admin → management}/UserDetails/UserDetails.cjs +1 -1
  64. package/dist/cjs/client/components/management/UserDetails/UserDetails.cjs.map +1 -0
  65. package/dist/cjs/client/components/{admin → management}/UserList/UserList.cjs +1 -1
  66. package/dist/cjs/client/components/management/UserList/UserList.cjs.map +1 -0
  67. package/dist/cjs/client/contexts/ThunderID/ThunderIDProvider.cjs +65 -2
  68. package/dist/cjs/client/contexts/ThunderID/ThunderIDProvider.cjs.map +1 -1
  69. package/dist/cjs/client/index.cjs +29 -17
  70. package/dist/cjs/index.cjs +100 -16
  71. package/dist/cjs/server/actions/account/getAccessibleOrganizationUnitsAction.cjs +53 -0
  72. package/dist/cjs/server/actions/account/getAccessibleOrganizationUnitsAction.cjs.map +1 -0
  73. package/dist/cjs/server/actions/account/getCurrentOrganizationUnitAction.cjs +31 -0
  74. package/dist/cjs/server/actions/account/getCurrentOrganizationUnitAction.cjs.map +1 -0
  75. package/dist/cjs/server/actions/auth/executeSelfFlowAction.cjs +47 -0
  76. package/dist/cjs/server/actions/auth/executeSelfFlowAction.cjs.map +1 -0
  77. package/dist/cjs/server/actions/auth/switchOrganizationUnitAction.cjs +85 -0
  78. package/dist/cjs/server/actions/auth/switchOrganizationUnitAction.cjs.map +1 -0
  79. package/dist/cjs/server/thunderid.cjs +16 -0
  80. package/dist/cjs/server/thunderid.cjs.map +1 -1
  81. package/dist/client/components/account/OrganizationUnitSwitcher/OrganizationUnitSwitcher.d.ts +24 -0
  82. package/dist/client/components/account/OrganizationUnitSwitcher/OrganizationUnitSwitcher.d.ts.map +1 -0
  83. package/dist/client/components/account/OrganizationUnitSwitcher/OrganizationUnitSwitcher.js +112 -0
  84. package/dist/client/components/account/OrganizationUnitSwitcher/OrganizationUnitSwitcher.js.map +1 -0
  85. package/dist/client/components/account/UserProfile/UserProfile.d.ts +7 -1
  86. package/dist/client/components/account/UserProfile/UserProfile.d.ts.map +1 -1
  87. package/dist/client/components/account/UserProfile/UserProfile.js +12 -2
  88. package/dist/client/components/account/UserProfile/UserProfile.js.map +1 -1
  89. package/dist/client/components/account/VerifyAttribute/VerifyAttribute.d.ts +41 -0
  90. package/dist/client/components/account/VerifyAttribute/VerifyAttribute.d.ts.map +1 -0
  91. package/dist/client/components/account/VerifyAttribute/VerifyAttribute.js +75 -0
  92. package/dist/client/components/account/VerifyAttribute/VerifyAttribute.js.map +1 -0
  93. package/dist/client/components/auth/SignIn/SignIn.d.ts +7 -1
  94. package/dist/client/components/auth/SignIn/SignIn.d.ts.map +1 -1
  95. package/dist/client/components/auth/SignIn/SignIn.js +3 -2
  96. package/dist/client/components/auth/SignIn/SignIn.js.map +1 -1
  97. package/dist/client/components/management/AgentCreate/AgentCreate.d.ts.map +1 -0
  98. package/dist/client/components/{admin → management}/AgentCreate/AgentCreate.js +1 -1
  99. package/dist/client/components/management/AgentCreate/AgentCreate.js.map +1 -0
  100. package/dist/client/components/management/AgentDetails/AgentDetails.d.ts.map +1 -0
  101. package/dist/client/components/{admin → management}/AgentDetails/AgentDetails.js +1 -1
  102. package/dist/client/components/management/AgentDetails/AgentDetails.js.map +1 -0
  103. package/dist/client/components/management/AgentList/AgentList.d.ts.map +1 -0
  104. package/dist/client/components/{admin → management}/AgentList/AgentList.js +1 -1
  105. package/dist/client/components/management/AgentList/AgentList.js.map +1 -0
  106. package/dist/client/components/management/ApplicationCreate/ApplicationCreate.d.ts.map +1 -0
  107. package/dist/client/components/{admin → management}/ApplicationCreate/ApplicationCreate.js +1 -1
  108. package/dist/client/components/management/ApplicationCreate/ApplicationCreate.js.map +1 -0
  109. package/dist/client/components/management/ApplicationDetails/ApplicationDetails.d.ts.map +1 -0
  110. package/dist/client/components/{admin → management}/ApplicationDetails/ApplicationDetails.js +1 -1
  111. package/dist/client/components/management/ApplicationDetails/ApplicationDetails.js.map +1 -0
  112. package/dist/client/components/management/ApplicationList/ApplicationList.d.ts.map +1 -0
  113. package/dist/client/components/{admin → management}/ApplicationList/ApplicationList.js +1 -1
  114. package/dist/client/components/management/ApplicationList/ApplicationList.js.map +1 -0
  115. package/dist/client/components/management/GroupCreate/GroupCreate.d.ts.map +1 -0
  116. package/dist/client/components/{admin → management}/GroupCreate/GroupCreate.js +1 -1
  117. package/dist/client/components/management/GroupCreate/GroupCreate.js.map +1 -0
  118. package/dist/client/components/management/GroupDetails/GroupDetails.d.ts +17 -0
  119. package/dist/client/components/management/GroupDetails/GroupDetails.d.ts.map +1 -0
  120. package/dist/client/components/management/GroupDetails/GroupDetails.js +25 -0
  121. package/dist/client/components/management/GroupDetails/GroupDetails.js.map +1 -0
  122. package/dist/client/components/management/GroupList/GroupList.d.ts.map +1 -0
  123. package/dist/client/components/{admin → management}/GroupList/GroupList.js +1 -1
  124. package/dist/client/components/management/GroupList/GroupList.js.map +1 -0
  125. package/dist/client/components/management/GroupMembers/GroupMembers.d.ts.map +1 -0
  126. package/dist/client/components/{admin → management}/GroupMembers/GroupMembers.js +1 -1
  127. package/dist/client/components/management/GroupMembers/GroupMembers.js.map +1 -0
  128. package/dist/client/components/management/OrganizationUnitCreate/OrganizationUnitCreate.d.ts +17 -0
  129. package/dist/client/components/management/OrganizationUnitCreate/OrganizationUnitCreate.d.ts.map +1 -0
  130. package/dist/client/components/management/OrganizationUnitCreate/OrganizationUnitCreate.js +25 -0
  131. package/dist/client/components/management/OrganizationUnitCreate/OrganizationUnitCreate.js.map +1 -0
  132. package/dist/client/components/management/OrganizationUnitDetails/OrganizationUnitDetails.d.ts +17 -0
  133. package/dist/client/components/management/OrganizationUnitDetails/OrganizationUnitDetails.d.ts.map +1 -0
  134. package/dist/client/components/management/OrganizationUnitDetails/OrganizationUnitDetails.js +25 -0
  135. package/dist/client/components/management/OrganizationUnitDetails/OrganizationUnitDetails.js.map +1 -0
  136. package/dist/client/components/management/OrganizationUnitList/OrganizationUnitList.d.ts +17 -0
  137. package/dist/client/components/management/OrganizationUnitList/OrganizationUnitList.d.ts.map +1 -0
  138. package/dist/client/components/management/OrganizationUnitList/OrganizationUnitList.js +25 -0
  139. package/dist/client/components/management/OrganizationUnitList/OrganizationUnitList.js.map +1 -0
  140. package/dist/client/components/management/ProjectCreate/ProjectCreate.d.ts +17 -0
  141. package/dist/client/components/management/ProjectCreate/ProjectCreate.d.ts.map +1 -0
  142. package/dist/client/components/management/ProjectCreate/ProjectCreate.js +25 -0
  143. package/dist/client/components/management/ProjectCreate/ProjectCreate.js.map +1 -0
  144. package/dist/client/components/management/ProjectDetails/ProjectDetails.d.ts +17 -0
  145. package/dist/client/components/management/ProjectDetails/ProjectDetails.d.ts.map +1 -0
  146. package/dist/client/components/management/ProjectDetails/ProjectDetails.js +25 -0
  147. package/dist/client/components/management/ProjectDetails/ProjectDetails.js.map +1 -0
  148. package/dist/client/components/management/ProjectList/ProjectList.d.ts +17 -0
  149. package/dist/client/components/management/ProjectList/ProjectList.d.ts.map +1 -0
  150. package/dist/client/components/management/ProjectList/ProjectList.js +25 -0
  151. package/dist/client/components/management/ProjectList/ProjectList.js.map +1 -0
  152. package/dist/client/components/management/ProjectSwitcher/ProjectSwitcher.d.ts +19 -0
  153. package/dist/client/components/management/ProjectSwitcher/ProjectSwitcher.d.ts.map +1 -0
  154. package/dist/client/components/management/ProjectSwitcher/ProjectSwitcher.js +27 -0
  155. package/dist/client/components/management/ProjectSwitcher/ProjectSwitcher.js.map +1 -0
  156. package/dist/client/components/management/RoleAssignments/RoleAssignments.d.ts.map +1 -0
  157. package/dist/client/components/{admin → management}/RoleAssignments/RoleAssignments.js +1 -1
  158. package/dist/client/components/management/RoleAssignments/RoleAssignments.js.map +1 -0
  159. package/dist/client/components/management/RoleCreate/RoleCreate.d.ts.map +1 -0
  160. package/dist/client/components/{admin → management}/RoleCreate/RoleCreate.js +1 -1
  161. package/dist/client/components/management/RoleCreate/RoleCreate.js.map +1 -0
  162. package/dist/client/components/management/RoleDetails/RoleDetails.d.ts +17 -0
  163. package/dist/client/components/management/RoleDetails/RoleDetails.d.ts.map +1 -0
  164. package/dist/client/components/management/RoleDetails/RoleDetails.js +25 -0
  165. package/dist/client/components/management/RoleDetails/RoleDetails.js.map +1 -0
  166. package/dist/client/components/management/RoleList/RoleList.d.ts.map +1 -0
  167. package/dist/client/components/{admin → management}/RoleList/RoleList.js +1 -1
  168. package/dist/client/components/management/RoleList/RoleList.js.map +1 -0
  169. package/dist/client/components/management/RolePermissions/RolePermissions.d.ts.map +1 -0
  170. package/dist/client/components/{admin → management}/RolePermissions/RolePermissions.js +1 -1
  171. package/dist/client/components/management/RolePermissions/RolePermissions.js.map +1 -0
  172. package/dist/client/components/management/SharingPolicies/SharingPolicies.d.ts +17 -0
  173. package/dist/client/components/management/SharingPolicies/SharingPolicies.d.ts.map +1 -0
  174. package/dist/client/components/management/SharingPolicies/SharingPolicies.js +25 -0
  175. package/dist/client/components/management/SharingPolicies/SharingPolicies.js.map +1 -0
  176. package/dist/client/components/management/UserCreate/UserCreate.d.ts.map +1 -0
  177. package/dist/client/components/{admin → management}/UserCreate/UserCreate.js +1 -1
  178. package/dist/client/components/management/UserCreate/UserCreate.js.map +1 -0
  179. package/dist/client/components/management/UserDetails/UserDetails.d.ts.map +1 -0
  180. package/dist/client/components/{admin → management}/UserDetails/UserDetails.js +1 -1
  181. package/dist/client/components/management/UserDetails/UserDetails.js.map +1 -0
  182. package/dist/client/components/management/UserList/UserList.d.ts.map +1 -0
  183. package/dist/client/components/{admin → management}/UserList/UserList.js +1 -1
  184. package/dist/client/components/management/UserList/UserList.js.map +1 -0
  185. package/dist/client/contexts/ThunderID/ThunderIDProvider.d.ts.map +1 -1
  186. package/dist/client/contexts/ThunderID/ThunderIDProvider.js +67 -4
  187. package/dist/client/contexts/ThunderID/ThunderIDProvider.js.map +1 -1
  188. package/dist/client/index.d.ts +57 -33
  189. package/dist/client/index.d.ts.map +1 -1
  190. package/dist/client/index.js +29 -17
  191. package/dist/client/management.d.ts +3 -0
  192. package/dist/client/management.d.ts.map +1 -0
  193. package/dist/client/management.js +6 -0
  194. package/dist/index.js +30 -18
  195. package/dist/server/actions/account/getAccessibleOrganizationUnitsAction.d.ts +20 -0
  196. package/dist/server/actions/account/getAccessibleOrganizationUnitsAction.d.ts.map +1 -0
  197. package/dist/server/actions/account/getAccessibleOrganizationUnitsAction.js +51 -0
  198. package/dist/server/actions/account/getAccessibleOrganizationUnitsAction.js.map +1 -0
  199. package/dist/server/actions/account/getCurrentOrganizationUnitAction.d.ts +10 -0
  200. package/dist/server/actions/account/getCurrentOrganizationUnitAction.d.ts.map +1 -0
  201. package/dist/server/actions/account/getCurrentOrganizationUnitAction.js +28 -0
  202. package/dist/server/actions/account/getCurrentOrganizationUnitAction.js.map +1 -0
  203. package/dist/server/actions/auth/executeSelfFlowAction.d.ts +20 -0
  204. package/dist/server/actions/auth/executeSelfFlowAction.d.ts.map +1 -0
  205. package/dist/server/actions/auth/executeSelfFlowAction.js +45 -0
  206. package/dist/server/actions/auth/executeSelfFlowAction.js.map +1 -0
  207. package/dist/server/actions/auth/switchOrganizationUnitAction.d.ts +30 -0
  208. package/dist/server/actions/auth/switchOrganizationUnitAction.d.ts.map +1 -0
  209. package/dist/server/actions/auth/switchOrganizationUnitAction.js +82 -0
  210. package/dist/server/actions/auth/switchOrganizationUnitAction.js.map +1 -0
  211. package/dist/server/thunderid.d.ts +2 -1
  212. package/dist/server/thunderid.d.ts.map +1 -1
  213. package/dist/server/thunderid.js +14 -0
  214. package/dist/server/thunderid.js.map +1 -1
  215. package/package.json +3 -3
  216. package/dist/cjs/client/components/admin/AgentCreate/AgentCreate.cjs.map +0 -1
  217. package/dist/cjs/client/components/admin/AgentDetails/AgentDetails.cjs.map +0 -1
  218. package/dist/cjs/client/components/admin/AgentList/AgentList.cjs.map +0 -1
  219. package/dist/cjs/client/components/admin/ApplicationCreate/ApplicationCreate.cjs.map +0 -1
  220. package/dist/cjs/client/components/admin/ApplicationDetails/ApplicationDetails.cjs.map +0 -1
  221. package/dist/cjs/client/components/admin/ApplicationList/ApplicationList.cjs.map +0 -1
  222. package/dist/cjs/client/components/admin/GroupCreate/GroupCreate.cjs.map +0 -1
  223. package/dist/cjs/client/components/admin/GroupList/GroupList.cjs.map +0 -1
  224. package/dist/cjs/client/components/admin/GroupMembers/GroupMembers.cjs.map +0 -1
  225. package/dist/cjs/client/components/admin/RoleAssignments/RoleAssignments.cjs.map +0 -1
  226. package/dist/cjs/client/components/admin/RoleCreate/RoleCreate.cjs.map +0 -1
  227. package/dist/cjs/client/components/admin/RoleList/RoleList.cjs.map +0 -1
  228. package/dist/cjs/client/components/admin/RolePermissions/RolePermissions.cjs.map +0 -1
  229. package/dist/cjs/client/components/admin/UserCreate/UserCreate.cjs.map +0 -1
  230. package/dist/cjs/client/components/admin/UserDetails/UserDetails.cjs.map +0 -1
  231. package/dist/cjs/client/components/admin/UserList/UserList.cjs.map +0 -1
  232. package/dist/client/admin.d.ts +0 -3
  233. package/dist/client/admin.d.ts.map +0 -1
  234. package/dist/client/admin.js +0 -6
  235. package/dist/client/components/admin/AgentCreate/AgentCreate.d.ts.map +0 -1
  236. package/dist/client/components/admin/AgentCreate/AgentCreate.js.map +0 -1
  237. package/dist/client/components/admin/AgentDetails/AgentDetails.d.ts.map +0 -1
  238. package/dist/client/components/admin/AgentDetails/AgentDetails.js.map +0 -1
  239. package/dist/client/components/admin/AgentList/AgentList.d.ts.map +0 -1
  240. package/dist/client/components/admin/AgentList/AgentList.js.map +0 -1
  241. package/dist/client/components/admin/ApplicationCreate/ApplicationCreate.d.ts.map +0 -1
  242. package/dist/client/components/admin/ApplicationCreate/ApplicationCreate.js.map +0 -1
  243. package/dist/client/components/admin/ApplicationDetails/ApplicationDetails.d.ts.map +0 -1
  244. package/dist/client/components/admin/ApplicationDetails/ApplicationDetails.js.map +0 -1
  245. package/dist/client/components/admin/ApplicationList/ApplicationList.d.ts.map +0 -1
  246. package/dist/client/components/admin/ApplicationList/ApplicationList.js.map +0 -1
  247. package/dist/client/components/admin/GroupCreate/GroupCreate.d.ts.map +0 -1
  248. package/dist/client/components/admin/GroupCreate/GroupCreate.js.map +0 -1
  249. package/dist/client/components/admin/GroupList/GroupList.d.ts.map +0 -1
  250. package/dist/client/components/admin/GroupList/GroupList.js.map +0 -1
  251. package/dist/client/components/admin/GroupMembers/GroupMembers.d.ts.map +0 -1
  252. package/dist/client/components/admin/GroupMembers/GroupMembers.js.map +0 -1
  253. package/dist/client/components/admin/RoleAssignments/RoleAssignments.d.ts.map +0 -1
  254. package/dist/client/components/admin/RoleAssignments/RoleAssignments.js.map +0 -1
  255. package/dist/client/components/admin/RoleCreate/RoleCreate.d.ts.map +0 -1
  256. package/dist/client/components/admin/RoleCreate/RoleCreate.js.map +0 -1
  257. package/dist/client/components/admin/RoleList/RoleList.d.ts.map +0 -1
  258. package/dist/client/components/admin/RoleList/RoleList.js.map +0 -1
  259. package/dist/client/components/admin/RolePermissions/RolePermissions.d.ts.map +0 -1
  260. package/dist/client/components/admin/RolePermissions/RolePermissions.js.map +0 -1
  261. package/dist/client/components/admin/UserCreate/UserCreate.d.ts.map +0 -1
  262. package/dist/client/components/admin/UserCreate/UserCreate.js.map +0 -1
  263. package/dist/client/components/admin/UserDetails/UserDetails.d.ts.map +0 -1
  264. package/dist/client/components/admin/UserDetails/UserDetails.js.map +0 -1
  265. package/dist/client/components/admin/UserList/UserList.d.ts.map +0 -1
  266. package/dist/client/components/admin/UserList/UserList.js.map +0 -1
  267. /package/dist/cjs/client/{admin.cjs → management.cjs} +0 -0
  268. /package/dist/client/components/{admin → management}/AgentCreate/AgentCreate.d.ts +0 -0
  269. /package/dist/client/components/{admin → management}/AgentDetails/AgentDetails.d.ts +0 -0
  270. /package/dist/client/components/{admin → management}/AgentList/AgentList.d.ts +0 -0
  271. /package/dist/client/components/{admin → management}/ApplicationCreate/ApplicationCreate.d.ts +0 -0
  272. /package/dist/client/components/{admin → management}/ApplicationDetails/ApplicationDetails.d.ts +0 -0
  273. /package/dist/client/components/{admin → management}/ApplicationList/ApplicationList.d.ts +0 -0
  274. /package/dist/client/components/{admin → management}/GroupCreate/GroupCreate.d.ts +0 -0
  275. /package/dist/client/components/{admin → management}/GroupList/GroupList.d.ts +0 -0
  276. /package/dist/client/components/{admin → management}/GroupMembers/GroupMembers.d.ts +0 -0
  277. /package/dist/client/components/{admin → management}/RoleAssignments/RoleAssignments.d.ts +0 -0
  278. /package/dist/client/components/{admin → management}/RoleCreate/RoleCreate.d.ts +0 -0
  279. /package/dist/client/components/{admin → management}/RoleList/RoleList.d.ts +0 -0
  280. /package/dist/client/components/{admin → management}/RolePermissions/RolePermissions.d.ts +0 -0
  281. /package/dist/client/components/{admin → management}/UserCreate/UserCreate.d.ts +0 -0
  282. /package/dist/client/components/{admin → management}/UserDetails/UserDetails.d.ts +0 -0
  283. /package/dist/client/components/{admin → management}/UserList/UserList.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ThunderIDProvider.js","names":["ThunderIDClientProvider: FC<PropsWithChildren<ThunderIDClientProviderProps>>","reRenderCheckRef: RefObject<boolean>","router: AppRouterInstance","searchParams: ReadonlyURLSearchParams","code: string | null","state: string | null","result: {error?: string; redirectUrl?: string; success: boolean}","result: any","contextValue: ThunderIDContextProps","reactContextValue: ReactThunderIDContextProps","fetchManagementFromServer","ThunderIDContext","ReactThunderIDContext","fetchFlowMetaFromServer"],"sources":["../../../../src/client/contexts/ThunderID/ThunderIDProvider.tsx"],"sourcesContent":["// Copyright 2025 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {\n AttributeSchema,\n EmbeddedFlowExecuteRequestConfig,\n FlowMetadataResponse,\n generateFlattenedUserProfile,\n UpdateMeProfileConfig,\n User,\n UserProfile,\n ThunderIDRuntimeError,\n getVendorPrefix,\n} from '@thunderid/node';\nimport {\n I18nProvider,\n FlowMetaProvider,\n FlowProvider,\n UserProvider,\n ThemeProvider,\n ThunderIDContext as ReactThunderIDContext,\n ThunderIDContextProps as ReactThunderIDContextProps,\n ThunderIDProviderProps,\n} from '@thunderid/react';\nimport {ReadonlyURLSearchParams} from 'next/dist/client/components/navigation.react-server';\nimport {AppRouterInstance} from 'next/dist/shared/lib/app-router-context.shared-runtime';\nimport {useRouter, useSearchParams} from 'next/navigation';\nimport {FC, PropsWithChildren, RefObject, useEffect, useMemo, useRef, useState} from 'react';\nimport ThunderIDContext, {ThunderIDContextProps} from './ThunderIDContext';\nimport {RefreshResult} from '../../../server/actions/refreshToken';\nimport logger from '../../../utils/logger';\nimport fetchFlowMetaFromServer from '../../fetchFlowMetaFromServer';\nimport fetchManagementFromServer from '../../fetchManagementFromServer';\n\n/**\n * Props interface of {@link ThunderIDClientProvider}\n */\nexport type ThunderIDClientProviderProps = Partial<Omit<ThunderIDProviderProps, 'baseUrl' | 'clientId'>> &\n Pick<ThunderIDProviderProps, 'baseUrl' | 'clientId'> & {\n applicationId: ThunderIDContextProps['applicationId'];\n clearSession: () => Promise<void>;\n handleOAuthCallback: (\n code: string,\n state: string,\n ) => Promise<{error?: string; redirectUrl?: string; success: boolean}>;\n /**\n * Flow metadata fetched server-side ahead of time, seeding `FlowMetaProvider` so it can skip\n * its own initial client-side fetch (avoiding a flash of untranslated i18n keys).\n */\n initialMeta?: FlowMetadataResponse | null;\n isSignedIn: boolean;\n organizationHandle: ThunderIDContextProps['organizationHandle'];\n refreshToken: () => Promise<RefreshResult>;\n signIn: ThunderIDContextProps['signIn'];\n signOut: ThunderIDContextProps['signOut'];\n signUp: ThunderIDContextProps['signUp'];\n updateProfile: (\n requestConfig: UpdateMeProfileConfig,\n sessionId?: string,\n ) => Promise<{data: {user: User}; error: string; success: boolean}>;\n user: User | null;\n userProfile: UserProfile;\n userSchema?: Record<string, AttributeSchema> | null;\n };\n\nconst ThunderIDClientProvider: FC<PropsWithChildren<ThunderIDClientProviderProps>> = ({\n baseUrl,\n children,\n endpoints,\n signIn,\n clearSession,\n refreshToken,\n signOut,\n signUp,\n handleOAuthCallback,\n preferences,\n isSignedIn,\n signInUrl,\n signUpUrl,\n user: _user,\n userProfile: _userProfile,\n userSchema: _userSchema = null,\n updateProfile,\n applicationId,\n organizationHandle,\n scopes,\n vendor,\n initialMeta = null,\n}: PropsWithChildren<ThunderIDClientProviderProps>) => {\n const reRenderCheckRef: RefObject<boolean> = useRef(false);\n const router: AppRouterInstance = useRouter();\n const searchParams: ReadonlyURLSearchParams = useSearchParams();\n const [isLoading, setIsLoading] = useState<boolean>(true);\n const [user, setUser] = useState<User | null>(_user);\n const [userProfile, setUserProfile] = useState<UserProfile>(_userProfile);\n const [userSchema, setUserSchema] = useState<Record<string, AttributeSchema> | null>(_userSchema);\n\n useEffect(() => {\n setUserProfile(_userProfile);\n }, [_userProfile]);\n\n useEffect(() => {\n setUserSchema(_userSchema);\n }, [_userSchema]);\n\n useEffect(() => {\n setUser(_user);\n }, [_user]);\n\n // Handle OAuth callback automatically\n useEffect(() => {\n // React 18.x Strict.Mode has a new check for `Ensuring reusable state` to facilitate an upcoming react feature.\n // https://reactjs.org/docs/strict-mode.html#ensuring-reusable-state\n // This will remount all the useEffects to ensure that there are no unexpected side effects.\n // When react remounts the signIn hook of the AuthProvider, it will cause a race condition. Hence, we have to\n // prevent the re-render of this hook as suggested in the following discussion.\n // https://github.com/reactwg/react-18/discussions/18#discussioncomment-795623\n if (reRenderCheckRef.current) {\n return;\n }\n\n reRenderCheckRef.current = true;\n\n // Don't handle callback if already signed in\n if (isSignedIn) return;\n\n (async (): Promise<void> => {\n try {\n const code: string | null = searchParams.get('code');\n const state: string | null = searchParams.get('state');\n const error: string | null = searchParams.get('error');\n\n // Check for OAuth errors first\n if (error) {\n logger.error('[ThunderIDClientProvider] An error was received for the initiated sign-in request.');\n\n return;\n }\n\n // Handle OAuth callback if code and state are present\n if (code && state) {\n setIsLoading(true);\n\n const result: {error?: string; redirectUrl?: string; success: boolean} = await handleOAuthCallback(\n code,\n state,\n );\n\n if (result.success) {\n // Redirect to the success URL\n if (result.redirectUrl) {\n router.push(result.redirectUrl);\n } else {\n // Refresh the page to update authentication state\n window.location.reload();\n }\n } else {\n logger.error(\n `[ThunderIDClientProvider] An error occurred while signing in: ${result.error || 'Authentication failed'}`,\n );\n }\n }\n } catch (error) {\n logger.error('[ThunderIDClientProvider] Failed to handle OAuth callback:', error);\n }\n })();\n }, []);\n\n useEffect(() => {\n // Set loading to false when server has resolved authentication state\n setIsLoading(false);\n }, [isSignedIn, user]);\n\n const handleSignIn = async (payload: any, request: EmbeddedFlowExecuteRequestConfig): Promise<any> => {\n if (!signIn) {\n throw new ThunderIDRuntimeError(\n '`signIn` function is not available.',\n 'ThunderIDClientProvider-handleSignIn-RuntimeError-001',\n 'nextjs',\n );\n }\n\n const result: any = await signIn(payload, request);\n\n // Redirect based flow URL is sent as `signInUrl` in the response.\n // Use window.location.href instead of router.push() — the OAuth authorization\n // endpoint is on an external server, and router.push() would send RSC fetch\n // headers that the identity provider doesn't understand, causing a CORS error.\n if (result?.data?.signInUrl) {\n window.location.href = result.data.signInUrl;\n\n return undefined;\n }\n\n // After the Embedded flow is successful, the URL to navigate next is sent as `afterSignInUrl` in the response.\n if (result?.data?.afterSignInUrl) {\n router.push(result.data.afterSignInUrl);\n\n return undefined;\n }\n\n if (result?.error) {\n throw new Error(result.error);\n }\n\n return result?.data ?? result;\n };\n\n const handleSignUp = async (payload: any, request: EmbeddedFlowExecuteRequestConfig): Promise<any> => {\n if (!signUp) {\n throw new ThunderIDRuntimeError(\n '`signUp` function is not available.',\n 'ThunderIDClientProvider-handleSignUp-RuntimeError-001',\n 'nextjs',\n );\n }\n\n const result: any = await signUp(payload, request);\n\n // Redirect based flow URL is sent as `signUpUrl` in the response.\n if (result?.data?.signUpUrl) {\n router.push(result.data.signUpUrl);\n\n return undefined;\n }\n\n // After the Embedded flow is successful, the URL to navigate next is sent as `afterSignUpUrl` in the response.\n if (result?.data?.afterSignUpUrl) {\n router.push(result.data.afterSignUpUrl);\n\n return undefined;\n }\n\n if (result?.error) {\n throw new Error(result.error);\n }\n\n return result?.data ?? result;\n };\n\n const handleSignOut = async (): Promise<any> => {\n logger.debug('[ThunderIDClientProvider][handleSignOut] `handleSignOut` called.');\n\n try {\n const result: any = await signOut();\n\n logger.debug('[ThunderIDClientProvider][handleSignOut] Sign out result:', result);\n\n if (result?.data?.afterSignOutUrl) {\n router.push(result.data.afterSignOutUrl);\n\n return {location: result.data.afterSignOutUrl, redirected: true};\n }\n\n if (result?.error) {\n logger.error(\n '[ThunderIDClientProvider][handleSignOut] Error result was returned during signing the user out with a button click:',\n result.error,\n );\n }\n\n return result?.data ?? result;\n } catch (error) {\n logger.error(\n '[ThunderIDClientProvider][handleSignOut] Error occurred during signing the user out with a button click:',\n error,\n );\n\n return undefined;\n }\n };\n\n const contextValue: ThunderIDContextProps = useMemo(\n () => ({\n applicationId,\n baseUrl,\n clearSession,\n isLoading,\n isSignedIn,\n organizationHandle,\n preferences,\n refreshToken,\n scopes,\n signIn: handleSignIn,\n signInUrl,\n signOut: handleSignOut,\n signUp: handleSignUp,\n signUpUrl,\n user,\n }),\n [\n baseUrl,\n user,\n isSignedIn,\n isLoading,\n signInUrl,\n signUpUrl,\n applicationId,\n organizationHandle,\n scopes,\n preferences,\n ],\n );\n\n const handleProfileUpdate = (payload: User): void => {\n setUser(payload);\n setUserProfile((prev: UserProfile) => ({\n ...prev,\n flattenedProfile: generateFlattenedUserProfile(payload),\n profile: payload,\n }));\n };\n\n // Bridge into @thunderid/react's own ThunderIDContext. Internal react components rendered by\n // BaseSignIn/BaseSignUp — most notably FlowMetaProvider, which fetches `/flow/meta` and injects\n // its i18n bundle — call react's `useThunderID()` directly. Without this bridge they'd only see\n // react's context default (applicationId/baseUrl undefined, isInitialized false), so the meta\n // fetch would never fire and flow labels would render as untranslated i18n keys. Fields with no\n // nextjs equivalent (token/http helpers meant for direct browser API calls) are stubbed out,\n // since nextjs routes those operations through server actions instead.\n const unsupported = (name: string): (() => Promise<never>) => {\n return () =>\n Promise.reject(\n new ThunderIDRuntimeError(\n `\\`${name}\\` is not supported in @thunderid/nextjs.`,\n `ThunderIDClientProvider-${name}-NotSupportedError-001`,\n 'nextjs',\n ),\n );\n };\n\n const reactContextValue: ReactThunderIDContextProps = useMemo(\n () => ({\n afterSignInUrl: undefined,\n applicationId,\n baseUrl,\n clearSession,\n clientId: undefined,\n discovery: {wellKnown: null},\n // Only the management collection overrides arrive here, so the admin hooks build the URLs the\n // management server action accepts.\n endpoints,\n exchangeToken: unsupported('exchangeToken'),\n getAccessToken: unsupported('getAccessToken'),\n getDecodedIdToken: unsupported('getDecodedIdToken'),\n // The Next.js useGrantedPermissions reads them through a server action instead.\n getGrantedPermissions: unsupported('getGrantedPermissions'),\n getIdToken: unsupported('getIdToken'),\n getStorageManager: () => Promise.resolve(null),\n http: {\n // The admin components and hooks send management requests through a server action that adds\n // the server-held access token, so the token never reaches the browser.\n fetcher: fetchManagementFromServer,\n request: unsupported('http.request'),\n requestAll: unsupported('http.requestAll'),\n },\n instanceId: 0,\n isInitialized: !isLoading,\n isLoading,\n isMetaLoading: false,\n isSignedIn,\n meta: initialMeta ?? null,\n organizationHandle,\n reInitialize: unsupported('reInitialize'),\n recover: unsupported('recover'),\n resolveFlowTemplateLiterals: (text: string | undefined): string => text ?? '',\n scopes,\n signIn: handleSignIn,\n signInSilently: unsupported('signInSilently'),\n signInUrl,\n signOut: handleSignOut,\n signUp: handleSignUp,\n signUpUrl,\n user,\n userSchema,\n vendor: getVendorPrefix(vendor),\n }),\n [\n applicationId,\n baseUrl,\n clearSession,\n endpoints,\n isLoading,\n isSignedIn,\n organizationHandle,\n scopes,\n signInUrl,\n signUpUrl,\n user,\n userSchema,\n initialMeta,\n vendor,\n ],\n );\n\n return (\n <ThunderIDContext.Provider value={contextValue}>\n <ReactThunderIDContext.Provider value={reactContextValue}>\n <I18nProvider preferences={preferences?.i18n}>\n <FlowMetaProvider\n enabled={preferences?.resolveFromMeta !== false}\n initialMeta={initialMeta}\n fetchMeta={fetchFlowMetaFromServer}\n >\n <ThemeProvider theme={preferences?.theme?.overrides} mode={preferences?.theme?.mode}>\n <FlowProvider>\n <UserProvider\n profile={userProfile}\n userSchema={userSchema}\n onUpdateProfile={handleProfileUpdate}\n updateProfile={updateProfile}\n >\n {children}\n </UserProvider>\n </FlowProvider>\n </ThemeProvider>\n </FlowMetaProvider>\n </I18nProvider>\n </ReactThunderIDContext.Provider>\n </ThunderIDContext.Provider>\n );\n};\n\nexport default ThunderIDClientProvider;\n"],"mappings":";;;;;;;;;;;;;;AAmEA,MAAMA,2BAAgF,EACpF,SACA,UACA,WACA,QACA,cACA,cACA,SACA,QACA,qBACA,aACA,YACA,WACA,WACA,MAAM,OACN,a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AAS;OACG;OACZ,iBAAiB;OACF;OAEd;QACY,GACF;OACD;MACC;KACN;IACgB;GACP;;AAIhC,gCAAe"}
1
+ {"version":3,"file":"ThunderIDProvider.js","names":["ThunderIDClientProvider: FC<PropsWithChildren<ThunderIDClientProviderProps>>","reRenderCheckRef: RefObject<boolean>","router: AppRouterInstance","searchParams: ReadonlyURLSearchParams","code: string | null","state: string | null","result: {error?: string; redirectUrl?: string; success: boolean}","result: SwitchOrganizationUnitActionResult","switchOrganizationUnitAction","sessionId: string | undefined","getSessionId","refreshedUser: User | null","getUserAction","getCurrentOrganizationUnitAction","result: any","contextValue: ThunderIDContextProps","result: Awaited<ReturnType<typeof getUserProfileAction>>","getUserProfileAction","reactContextValue: ReactThunderIDContextProps","fetchManagementFromServer","ThunderIDContext","ReactThunderIDContext","fetchFlowMetaFromServer"],"sources":["../../../../src/client/contexts/ThunderID/ThunderIDProvider.tsx"],"sourcesContent":["// Copyright 2025 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {\n AttributeSchema,\n EmbeddedFlowExecuteRequestConfig,\n FlowMetadataResponse,\n generateFlattenedUserProfile,\n UpdateMeProfileConfig,\n User,\n UserProfile,\n ThunderIDRuntimeError,\n getVendorPrefix,\n CurrentOrganizationUnit,\n SwitchOrganizationUnitOptions,\n ThunderIDAPIError,\n} from '@thunderid/node';\nimport {\n I18nProvider,\n FlowMetaProvider,\n FlowProvider,\n UserProvider,\n ThemeProvider,\n ThunderIDContext as ReactThunderIDContext,\n ThunderIDContextProps as ReactThunderIDContextProps,\n ThunderIDProviderProps,\n useCurrentProjectState,\n} from '@thunderid/react';\nimport {ReadonlyURLSearchParams} from 'next/dist/client/components/navigation.react-server';\nimport {AppRouterInstance} from 'next/dist/shared/lib/app-router-context.shared-runtime';\nimport {useRouter, useSearchParams} from 'next/navigation';\nimport {FC, PropsWithChildren, RefObject, useEffect, useMemo, useRef, useState} from 'react';\nimport ThunderIDContext, {ThunderIDContextProps} from './ThunderIDContext';\nimport getCurrentOrganizationUnitAction from '../../../server/actions/account/getCurrentOrganizationUnitAction';\nimport getUserAction from '../../../server/actions/account/getUserAction';\nimport getUserProfileAction from '../../../server/actions/account/getUserProfileAction';\nimport switchOrganizationUnitAction, {\n SwitchOrganizationUnitActionResult,\n} from '../../../server/actions/auth/switchOrganizationUnitAction';\nimport getSessionId from '../../../server/actions/getSessionId';\nimport {RefreshResult} from '../../../server/actions/refreshToken';\nimport logger from '../../../utils/logger';\nimport fetchFlowMetaFromServer from '../../fetchFlowMetaFromServer';\nimport fetchManagementFromServer from '../../fetchManagementFromServer';\n\n/**\n * Props interface of {@link ThunderIDClientProvider}\n */\nexport type ThunderIDClientProviderProps = Partial<Omit<ThunderIDProviderProps, 'baseUrl' | 'clientId'>> &\n Pick<ThunderIDProviderProps, 'baseUrl' | 'clientId'> & {\n applicationId: ThunderIDContextProps['applicationId'];\n clearSession: () => Promise<void>;\n handleOAuthCallback: (\n code: string,\n state: string,\n ) => Promise<{error?: string; redirectUrl?: string; success: boolean}>;\n /**\n * Flow metadata fetched server-side ahead of time, seeding `FlowMetaProvider` so it can skip\n * its own initial client-side fetch (avoiding a flash of untranslated i18n keys).\n */\n initialMeta?: FlowMetadataResponse | null;\n isSignedIn: boolean;\n organizationHandle: ThunderIDContextProps['organizationHandle'];\n refreshToken: () => Promise<RefreshResult>;\n signIn: ThunderIDContextProps['signIn'];\n signOut: ThunderIDContextProps['signOut'];\n signUp: ThunderIDContextProps['signUp'];\n updateProfile: (\n requestConfig: UpdateMeProfileConfig,\n sessionId?: string,\n ) => Promise<{data: {user: User}; error: string; success: boolean}>;\n user: User | null;\n userProfile: UserProfile;\n userSchema?: Record<string, AttributeSchema> | null;\n };\n\nconst ThunderIDClientProvider: FC<PropsWithChildren<ThunderIDClientProviderProps>> = ({\n baseUrl,\n children,\n endpoints,\n signIn,\n clearSession,\n refreshToken,\n signOut,\n signUp,\n handleOAuthCallback,\n preferences,\n isSignedIn,\n signInUrl,\n signUpUrl,\n user: _user,\n userProfile: _userProfile,\n userSchema: _userSchema = null,\n updateProfile,\n applicationId,\n organizationHandle,\n scopes,\n vendor,\n initialMeta = null,\n}: PropsWithChildren<ThunderIDClientProviderProps>) => {\n const reRenderCheckRef: RefObject<boolean> = useRef(false);\n const router: AppRouterInstance = useRouter();\n const searchParams: ReadonlyURLSearchParams = useSearchParams();\n const [isLoading, setIsLoading] = useState<boolean>(true);\n const [user, setUser] = useState<User | null>(_user);\n const [userProfile, setUserProfile] = useState<UserProfile>(_userProfile);\n const [userSchema, setUserSchema] = useState<Record<string, AttributeSchema> | null>(_userSchema);\n\n useEffect(() => {\n setUserProfile(_userProfile);\n }, [_userProfile]);\n\n useEffect(() => {\n setUserSchema(_userSchema);\n }, [_userSchema]);\n\n useEffect(() => {\n setUser(_user);\n }, [_user]);\n\n // Handle OAuth callback automatically\n useEffect(() => {\n // React 18.x Strict.Mode has a new check for `Ensuring reusable state` to facilitate an upcoming react feature.\n // https://reactjs.org/docs/strict-mode.html#ensuring-reusable-state\n // This will remount all the useEffects to ensure that there are no unexpected side effects.\n // When react remounts the signIn hook of the AuthProvider, it will cause a race condition. Hence, we have to\n // prevent the re-render of this hook as suggested in the following discussion.\n // https://github.com/reactwg/react-18/discussions/18#discussioncomment-795623\n if (reRenderCheckRef.current) {\n return;\n }\n\n reRenderCheckRef.current = true;\n\n // Don't handle callback if already signed in\n if (isSignedIn) return;\n\n (async (): Promise<void> => {\n try {\n const code: string | null = searchParams.get('code');\n const state: string | null = searchParams.get('state');\n const error: string | null = searchParams.get('error');\n\n // Check for OAuth errors first\n if (error) {\n logger.error('[ThunderIDClientProvider] An error was received for the initiated sign-in request.');\n\n return;\n }\n\n // Handle OAuth callback if code and state are present\n if (code && state) {\n setIsLoading(true);\n\n const result: {error?: string; redirectUrl?: string; success: boolean} = await handleOAuthCallback(\n code,\n state,\n );\n\n if (result.success) {\n // Redirect to the success URL\n if (result.redirectUrl) {\n router.push(result.redirectUrl);\n } else {\n // Refresh the page to update authentication state\n window.location.reload();\n }\n } else {\n logger.error(\n `[ThunderIDClientProvider] An error occurred while signing in: ${result.error || 'Authentication failed'}`,\n );\n }\n }\n } catch (error) {\n logger.error('[ThunderIDClientProvider] Failed to handle OAuth callback:', error);\n }\n })();\n }, []);\n\n useEffect(() => {\n // Set loading to false when server has resolved authentication state\n setIsLoading(false);\n }, [isSignedIn, user]);\n\n const [currentOrganizationUnit, setCurrentOrganizationUnit] = useState<CurrentOrganizationUnit | null>(null);\n // The current project is client-side context for the management UI, kept in the browser like the\n // React SDK's: it changes no session, cookie or token.\n const {currentProject, setCurrentProject} = useCurrentProjectState(getVendorPrefix(vendor));\n\n useEffect(() => {\n if (!isSignedIn) {\n setCurrentOrganizationUnit(null);\n\n return;\n }\n\n getCurrentOrganizationUnitAction()\n .then(setCurrentOrganizationUnit)\n .catch(() => setCurrentOrganizationUnit(null));\n }, [isSignedIn, user]);\n\n /**\n * Signs in again bounded to another organization unit through a server action. Redirect mode sends the\n * browser to the unit's authorization endpoint and resolves with `undefined`; embedded mode replaces\n * the session in place and resolves with the refreshed user. A failure keeps the previous session and\n * rejects with an error whose code is one of `OrganizationUnitSwitchErrorCodes`.\n */\n const handleSwitchOrganizationUnit = async (\n organizationUnitId: string,\n options?: SwitchOrganizationUnitOptions,\n ): Promise<User | undefined> => {\n const result: SwitchOrganizationUnitActionResult = await switchOrganizationUnitAction(organizationUnitId, {\n redirect: options?.redirect,\n });\n\n if (!result.success) {\n throw new ThunderIDAPIError(\n JSON.stringify({code: result.code, message: {defaultValue: 'Switching the organization unit failed'}}),\n result.code,\n 'nextjs',\n result.statusCode,\n );\n }\n\n if (result.data.signInUrl) {\n // The authorization endpoint is on the identity server, so leave the app rather than route.\n window.location.href = result.data.signInUrl;\n\n return undefined;\n }\n\n const sessionId: string | undefined = await getSessionId();\n const refreshed: Awaited<ReturnType<typeof getUserAction>> | undefined = sessionId\n ? await getUserAction(sessionId)\n : undefined;\n const refreshedUser: User | null = refreshed?.data?.user ?? null;\n\n if (refreshedUser) {\n setUser(refreshedUser);\n }\n\n setCurrentOrganizationUnit(await getCurrentOrganizationUnitAction());\n router.refresh();\n\n return refreshedUser ?? undefined;\n };\n\n const handleSignIn = async (payload: any, request: EmbeddedFlowExecuteRequestConfig): Promise<any> => {\n if (!signIn) {\n throw new ThunderIDRuntimeError(\n '`signIn` function is not available.',\n 'ThunderIDClientProvider-handleSignIn-RuntimeError-001',\n 'nextjs',\n );\n }\n\n const result: any = await signIn(payload, request);\n\n // Redirect based flow URL is sent as `signInUrl` in the response.\n // Use window.location.href instead of router.push() — the OAuth authorization\n // endpoint is on an external server, and router.push() would send RSC fetch\n // headers that the identity provider doesn't understand, causing a CORS error.\n if (result?.data?.signInUrl) {\n window.location.href = result.data.signInUrl;\n\n return undefined;\n }\n\n // After the Embedded flow is successful, the URL to navigate next is sent as `afterSignInUrl` in the response.\n if (result?.data?.afterSignInUrl) {\n router.push(result.data.afterSignInUrl);\n\n return undefined;\n }\n\n if (result?.error) {\n throw new Error(result.error);\n }\n\n return result?.data ?? result;\n };\n\n const handleSignUp = async (payload: any, request: EmbeddedFlowExecuteRequestConfig): Promise<any> => {\n if (!signUp) {\n throw new ThunderIDRuntimeError(\n '`signUp` function is not available.',\n 'ThunderIDClientProvider-handleSignUp-RuntimeError-001',\n 'nextjs',\n );\n }\n\n const result: any = await signUp(payload, request);\n\n // Redirect based flow URL is sent as `signUpUrl` in the response.\n if (result?.data?.signUpUrl) {\n router.push(result.data.signUpUrl);\n\n return undefined;\n }\n\n // After the Embedded flow is successful, the URL to navigate next is sent as `afterSignUpUrl` in the response.\n if (result?.data?.afterSignUpUrl) {\n router.push(result.data.afterSignUpUrl);\n\n return undefined;\n }\n\n if (result?.error) {\n throw new Error(result.error);\n }\n\n return result?.data ?? result;\n };\n\n const handleSignOut = async (): Promise<any> => {\n logger.debug('[ThunderIDClientProvider][handleSignOut] `handleSignOut` called.');\n\n try {\n const result: any = await signOut();\n\n logger.debug('[ThunderIDClientProvider][handleSignOut] Sign out result:', result);\n\n if (result?.data?.afterSignOutUrl) {\n router.push(result.data.afterSignOutUrl);\n\n return {location: result.data.afterSignOutUrl, redirected: true};\n }\n\n if (result?.error) {\n logger.error(\n '[ThunderIDClientProvider][handleSignOut] Error result was returned during signing the user out with a button click:',\n result.error,\n );\n }\n\n return result?.data ?? result;\n } catch (error) {\n logger.error(\n '[ThunderIDClientProvider][handleSignOut] Error occurred during signing the user out with a button click:',\n error,\n );\n\n return undefined;\n }\n };\n\n const contextValue: ThunderIDContextProps = useMemo(\n () => ({\n applicationId,\n baseUrl,\n clearSession,\n currentOrganizationUnit,\n currentProject,\n getCurrentOrganizationUnit: getCurrentOrganizationUnitAction,\n isLoading,\n isSignedIn,\n organizationHandle,\n preferences,\n refreshToken,\n setCurrentProject,\n switchOrganizationUnit: handleSwitchOrganizationUnit,\n scopes,\n signIn: handleSignIn,\n signInUrl,\n signOut: handleSignOut,\n signUp: handleSignUp,\n signUpUrl,\n user,\n }),\n [\n baseUrl,\n user,\n isSignedIn,\n isLoading,\n signInUrl,\n signUpUrl,\n applicationId,\n organizationHandle,\n scopes,\n preferences,\n currentOrganizationUnit,\n currentProject,\n setCurrentProject,\n ],\n );\n\n const handleProfileUpdate = (payload: User): void => {\n setUser(payload);\n setUserProfile((prev: UserProfile) => ({\n ...prev,\n flattenedProfile: generateFlattenedUserProfile(payload),\n profile: payload,\n }));\n };\n\n /**\n * Re-reads `/users/me` through the server-held session, so a change made outside the profile API,\n * such as a recorded verification, shows.\n */\n const revalidateProfile = async (): Promise<void> => {\n if (preferences?.user?.fetchUserProfile === false) return;\n\n const result: Awaited<ReturnType<typeof getUserProfileAction>> = await getUserProfileAction(\n (await getSessionId()) ?? '',\n );\n\n if (result.success) {\n handleProfileUpdate(result.data.userProfile.profile);\n }\n };\n\n // Bridge into @thunderid/react's own ThunderIDContext. Internal react components rendered by\n // BaseSignIn/BaseSignUp — most notably FlowMetaProvider, which fetches `/flow/meta` and injects\n // its i18n bundle — call react's `useThunderID()` directly. Without this bridge they'd only see\n // react's context default (applicationId/baseUrl undefined, isInitialized false), so the meta\n // fetch would never fire and flow labels would render as untranslated i18n keys. Fields with no\n // nextjs equivalent (token/http helpers meant for direct browser API calls) are stubbed out,\n // since nextjs routes those operations through server actions instead.\n const unsupported = (name: string): (() => Promise<never>) => {\n return () =>\n Promise.reject(\n new ThunderIDRuntimeError(\n `\\`${name}\\` is not supported in @thunderid/nextjs.`,\n `ThunderIDClientProvider-${name}-NotSupportedError-001`,\n 'nextjs',\n ),\n );\n };\n\n const reactContextValue: ReactThunderIDContextProps = useMemo(\n () => ({\n afterSignInUrl: undefined,\n applicationId,\n baseUrl,\n clearSession,\n clientId: undefined,\n currentOrganizationUnit,\n currentProject,\n discovery: {wellKnown: null},\n // Only the management collection overrides arrive here, so the admin hooks build the URLs the\n // management server action accepts.\n endpoints,\n exchangeToken: unsupported('exchangeToken'),\n getAccessToken: unsupported('getAccessToken'),\n getCurrentOrganizationUnit: getCurrentOrganizationUnitAction,\n getDecodedIdToken: unsupported('getDecodedIdToken'),\n // The Next.js useGrantedPermissions reads them through a server action instead.\n getGrantedPermissions: unsupported('getGrantedPermissions'),\n getIdToken: unsupported('getIdToken'),\n getStorageManager: () => Promise.resolve(null),\n http: {\n // The admin components and hooks send management requests through a server action that adds\n // the server-held access token, so the token never reaches the browser.\n fetcher: fetchManagementFromServer,\n request: unsupported('http.request'),\n requestAll: unsupported('http.requestAll'),\n },\n instanceId: 0,\n isInitialized: !isLoading,\n isLoading,\n isMetaLoading: false,\n isSignedIn,\n meta: initialMeta ?? null,\n organizationHandle,\n reInitialize: unsupported('reInitialize'),\n recover: unsupported('recover'),\n resolveFlowTemplateLiterals: (text: string | undefined): string => text ?? '',\n scopes,\n setCurrentProject,\n signIn: handleSignIn,\n signInSilently: unsupported('signInSilently'),\n signInUrl,\n signOut: handleSignOut,\n signUp: handleSignUp,\n signUpUrl,\n switchOrganizationUnit: handleSwitchOrganizationUnit,\n user,\n userSchema,\n vendor: getVendorPrefix(vendor),\n }),\n [\n applicationId,\n baseUrl,\n clearSession,\n endpoints,\n isLoading,\n isSignedIn,\n organizationHandle,\n scopes,\n signInUrl,\n signUpUrl,\n user,\n userSchema,\n initialMeta,\n vendor,\n currentOrganizationUnit,\n currentProject,\n setCurrentProject,\n ],\n );\n\n return (\n <ThunderIDContext.Provider value={contextValue}>\n <ReactThunderIDContext.Provider value={reactContextValue}>\n <I18nProvider preferences={preferences?.i18n}>\n <FlowMetaProvider\n enabled={preferences?.resolveFromMeta !== false}\n initialMeta={initialMeta}\n fetchMeta={fetchFlowMetaFromServer}\n >\n <ThemeProvider theme={preferences?.theme?.overrides} mode={preferences?.theme?.mode}>\n <FlowProvider>\n <UserProvider\n profile={userProfile}\n userSchema={userSchema}\n onUpdateProfile={handleProfileUpdate}\n revalidateProfile={revalidateProfile}\n updateProfile={updateProfile}\n >\n {children}\n </UserProvider>\n </FlowProvider>\n </ThemeProvider>\n </FlowMetaProvider>\n </I18nProvider>\n </ReactThunderIDContext.Provider>\n </ThunderIDContext.Provider>\n );\n};\n\nexport default ThunderIDClientProvider;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA8EA,MAAMA,2BAAgF,EACpF,SACA,UACA,WACA,QACA,cACA,cACA,SACA,QACA,qBACA,aACA,YACA,WACA,WACA,MAAM,OACN,aAAa,cACb,YAAY,cAAc,MAC1B,eACA,eACA,oBACA,QACA,QACA,cAAc,WACuC;CACrD,MAAMC,mBAAuC,OAAO,MAAM;CAC1D,MAAMC,SAA4B,WAAW;CAC7C,MAAMC,eAAwC,iBAAiB;CAC/D,MAAM,CAAC,WAAW,gBAAgB,SAAkB,KAAK;CACzD,MAAM,CAAC,MAAM,WAAW,SAAsB,MAAM;CACpD,MAAM,CAAC,aAAa,kBAAkB,SAAsB,aAAa;CACzE,MAAM,CAAC,YAAY,iBAAiB,SAAiD,YAAY;AAEjG,iBAAgB;AACd,iBAAe,aAAa;IAC3B,CAAC,aAAa,CAAC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Y,aAAa;EACrC,yBAAyB,QAAQ,QAAQ,KAAK;EAC9C,MAAM;GAGJ,SAASM;GACT,SAAS,YAAY,eAAe;GACpC,YAAY,YAAY,kBAAkB;GAC3C;EACD,YAAY;EACZ,eAAe,CAAC;EAChB;EACA,eAAe;EACf;EACA,MAAM,eAAe;EACrB;EACA,cAAc,YAAY,eAAe;EACzC,SAAS,YAAY,UAAU;EAC/B,8BAA8B,SAAqC,QAAQ;EAC3E;EACA;EACA,QAAQ;EACR,gBAAgB,YAAY,iBAAiB;EAC7C;EACA,SAAS;EACT,QAAQ;EACR;EACA,wBAAwB;EACxB;EACA;EACA,QAAQ,gBAAgB,OAAO;EAChC,GACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CACF;AAED,QACE,oBAACC,yBAAiB;EAAS,OAAO;YAChC,oBAACC,iBAAsB;GAAS,OAAO;aACrC,oBAAC;IAAa,aAAa,aAAa;cACtC,oBAAC;KACC,SAAS,aAAa,oBAAoB;KAC7B;KACb,WAAWC;eAEX,oBAAC;MAAc,OAAO,aAAa,OAAO;MAAW,MAAM,aAAa,OAAO;gBAC7E,oBAAC,0BACC,oBAAC;OACC,SAAS;OACG;OACZ,iBAAiB;OACE;OACJ;OAEd;QACY,GACF;OACD;MACC;KACN;IACgB;GACP;;AAIhC,gCAAe"}
@@ -25,44 +25,68 @@ export { default as UserProfile } from './components/account/UserProfile/UserPro
25
25
  export type { UserProfileProps } from './components/account/UserProfile/UserProfile';
26
26
  export { default as ChangeCredential } from './components/account/ChangeCredential/ChangeCredential';
27
27
  export type { ChangeCredentialProps } from './components/account/ChangeCredential/ChangeCredential';
28
+ export { default as OrganizationUnitSwitcher } from './components/account/OrganizationUnitSwitcher/OrganizationUnitSwitcher';
29
+ export type { OrganizationUnitSwitcherProps } from './components/account/OrganizationUnitSwitcher/OrganizationUnitSwitcher';
30
+ export { default as VerifyAttribute } from './components/account/VerifyAttribute/VerifyAttribute';
31
+ export type { VerifyAttributeProps } from './components/account/VerifyAttribute/VerifyAttribute';
28
32
  export { default as UserSelect } from './components/primitives/UserSelect/UserSelect';
29
33
  export type { UserSelectProps } from './components/primitives/UserSelect/UserSelect';
30
34
  export { default as AuthFlowSelect } from './components/primitives/AuthFlowSelect/AuthFlowSelect';
31
35
  export type { AuthFlowSelectProps } from './components/primitives/AuthFlowSelect/AuthFlowSelect';
32
36
  export { default as UserTypeSelect } from './components/primitives/UserTypeSelect/UserTypeSelect';
33
37
  export type { UserTypeSelectProps } from './components/primitives/UserTypeSelect/UserTypeSelect';
34
- export { default as UserList } from './components/admin/UserList/UserList';
35
- export type { UserListProps } from './components/admin/UserList/UserList';
36
- export { default as UserCreate } from './components/admin/UserCreate/UserCreate';
37
- export type { UserCreateProps } from './components/admin/UserCreate/UserCreate';
38
- export { default as UserDetails } from './components/admin/UserDetails/UserDetails';
39
- export type { UserDetailsProps } from './components/admin/UserDetails/UserDetails';
40
- export { default as GroupList } from './components/admin/GroupList/GroupList';
41
- export type { GroupListProps } from './components/admin/GroupList/GroupList';
42
- export { default as GroupCreate } from './components/admin/GroupCreate/GroupCreate';
43
- export type { GroupCreateProps } from './components/admin/GroupCreate/GroupCreate';
44
- export { default as GroupMembers } from './components/admin/GroupMembers/GroupMembers';
45
- export type { GroupMembersProps } from './components/admin/GroupMembers/GroupMembers';
46
- export { default as RoleList } from './components/admin/RoleList/RoleList';
47
- export type { RoleListProps } from './components/admin/RoleList/RoleList';
48
- export { default as RoleCreate } from './components/admin/RoleCreate/RoleCreate';
49
- export type { RoleCreateProps } from './components/admin/RoleCreate/RoleCreate';
50
- export { default as RoleAssignments } from './components/admin/RoleAssignments/RoleAssignments';
51
- export type { RoleAssignmentsProps } from './components/admin/RoleAssignments/RoleAssignments';
52
- export { default as RolePermissions } from './components/admin/RolePermissions/RolePermissions';
53
- export type { RolePermissionsProps } from './components/admin/RolePermissions/RolePermissions';
54
- export { default as AgentList } from './components/admin/AgentList/AgentList';
55
- export type { AgentListProps } from './components/admin/AgentList/AgentList';
56
- export { default as AgentCreate } from './components/admin/AgentCreate/AgentCreate';
57
- export type { AgentCreateProps } from './components/admin/AgentCreate/AgentCreate';
58
- export { default as AgentDetails } from './components/admin/AgentDetails/AgentDetails';
59
- export type { AgentDetailsProps } from './components/admin/AgentDetails/AgentDetails';
60
- export { default as ApplicationList } from './components/admin/ApplicationList/ApplicationList';
61
- export type { ApplicationListProps } from './components/admin/ApplicationList/ApplicationList';
62
- export { default as ApplicationCreate } from './components/admin/ApplicationCreate/ApplicationCreate';
63
- export type { ApplicationCreateProps } from './components/admin/ApplicationCreate/ApplicationCreate';
64
- export { default as ApplicationDetails } from './components/admin/ApplicationDetails/ApplicationDetails';
65
- export type { ApplicationDetailsProps } from './components/admin/ApplicationDetails/ApplicationDetails';
38
+ export { default as UserList } from './components/management/UserList/UserList';
39
+ export type { UserListProps } from './components/management/UserList/UserList';
40
+ export { default as UserCreate } from './components/management/UserCreate/UserCreate';
41
+ export type { UserCreateProps } from './components/management/UserCreate/UserCreate';
42
+ export { default as UserDetails } from './components/management/UserDetails/UserDetails';
43
+ export type { UserDetailsProps } from './components/management/UserDetails/UserDetails';
44
+ export { default as GroupList } from './components/management/GroupList/GroupList';
45
+ export type { GroupListProps } from './components/management/GroupList/GroupList';
46
+ export { default as GroupCreate } from './components/management/GroupCreate/GroupCreate';
47
+ export type { GroupCreateProps } from './components/management/GroupCreate/GroupCreate';
48
+ export { default as GroupMembers } from './components/management/GroupMembers/GroupMembers';
49
+ export type { GroupMembersProps } from './components/management/GroupMembers/GroupMembers';
50
+ export { default as RoleList } from './components/management/RoleList/RoleList';
51
+ export type { RoleListProps } from './components/management/RoleList/RoleList';
52
+ export { default as RoleCreate } from './components/management/RoleCreate/RoleCreate';
53
+ export type { RoleCreateProps } from './components/management/RoleCreate/RoleCreate';
54
+ export { default as RoleAssignments } from './components/management/RoleAssignments/RoleAssignments';
55
+ export type { RoleAssignmentsProps } from './components/management/RoleAssignments/RoleAssignments';
56
+ export { default as RolePermissions } from './components/management/RolePermissions/RolePermissions';
57
+ export type { RolePermissionsProps } from './components/management/RolePermissions/RolePermissions';
58
+ export { default as GroupDetails } from './components/management/GroupDetails/GroupDetails';
59
+ export type { GroupDetailsProps } from './components/management/GroupDetails/GroupDetails';
60
+ export { default as RoleDetails } from './components/management/RoleDetails/RoleDetails';
61
+ export type { RoleDetailsProps } from './components/management/RoleDetails/RoleDetails';
62
+ export { default as AgentList } from './components/management/AgentList/AgentList';
63
+ export type { AgentListProps } from './components/management/AgentList/AgentList';
64
+ export { default as AgentCreate } from './components/management/AgentCreate/AgentCreate';
65
+ export type { AgentCreateProps } from './components/management/AgentCreate/AgentCreate';
66
+ export { default as AgentDetails } from './components/management/AgentDetails/AgentDetails';
67
+ export type { AgentDetailsProps } from './components/management/AgentDetails/AgentDetails';
68
+ export { default as ApplicationList } from './components/management/ApplicationList/ApplicationList';
69
+ export type { ApplicationListProps } from './components/management/ApplicationList/ApplicationList';
70
+ export { default as ApplicationCreate } from './components/management/ApplicationCreate/ApplicationCreate';
71
+ export type { ApplicationCreateProps } from './components/management/ApplicationCreate/ApplicationCreate';
72
+ export { default as ApplicationDetails } from './components/management/ApplicationDetails/ApplicationDetails';
73
+ export type { ApplicationDetailsProps } from './components/management/ApplicationDetails/ApplicationDetails';
74
+ export { default as ProjectList } from './components/management/ProjectList/ProjectList';
75
+ export type { ProjectListProps } from './components/management/ProjectList/ProjectList';
76
+ export { default as ProjectCreate } from './components/management/ProjectCreate/ProjectCreate';
77
+ export type { ProjectCreateProps } from './components/management/ProjectCreate/ProjectCreate';
78
+ export { default as ProjectDetails } from './components/management/ProjectDetails/ProjectDetails';
79
+ export type { ProjectDetailsProps } from './components/management/ProjectDetails/ProjectDetails';
80
+ export { default as ProjectSwitcher } from './components/management/ProjectSwitcher/ProjectSwitcher';
81
+ export type { ProjectSwitcherProps } from './components/management/ProjectSwitcher/ProjectSwitcher';
82
+ export { default as OrganizationUnitList } from './components/management/OrganizationUnitList/OrganizationUnitList';
83
+ export type { OrganizationUnitListProps } from './components/management/OrganizationUnitList/OrganizationUnitList';
84
+ export { default as OrganizationUnitCreate } from './components/management/OrganizationUnitCreate/OrganizationUnitCreate';
85
+ export type { OrganizationUnitCreateProps } from './components/management/OrganizationUnitCreate/OrganizationUnitCreate';
86
+ export { default as OrganizationUnitDetails } from './components/management/OrganizationUnitDetails/OrganizationUnitDetails';
87
+ export type { OrganizationUnitDetailsProps } from './components/management/OrganizationUnitDetails/OrganizationUnitDetails';
88
+ export { default as SharingPolicies } from './components/management/SharingPolicies/SharingPolicies';
89
+ export type { SharingPoliciesProps } from './components/management/SharingPolicies/SharingPolicies';
66
90
  export { default as useGrantedPermissions } from './hooks/management/useGrantedPermissions';
67
- export * from './admin';
91
+ export * from './management';
68
92
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,mCAAmC,CAAC;AAE1E,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,4CAA4C,CAAC;AAC/E,YAAY,EAAC,aAAa,EAAC,MAAM,4CAA4C,CAAC;AAE9E,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,8CAA8C,CAAC;AAClF,YAAY,EAAC,cAAc,EAAC,MAAM,8CAA8C,CAAC;AAEjF,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,qDAAqD,CAAC;AAC5F,YAAY,EAAC,iBAAiB,EAAC,MAAM,qDAAqD,CAAC;AAE3F,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,qDAAqD,CAAC;AAC5F,YAAY,EAAC,iBAAiB,EAAC,MAAM,qDAAqD,CAAC;AAE3F,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,iCAAiC,CAAC;AAClE,YAAY,EAAC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C"}
@@ -8,30 +8,42 @@ import DeviceGrant_default from "./components/auth/DeviceGrant/DeviceGrant.js";
8
8
  import SignOutButton_default from "./components/auth/buttons/SignOutButton/SignOutButton.js";
9
9
  import User_default from "./components/account/User/User.js";
10
10
  import SignUp_default from "./components/auth/SignUp/SignUp.js";
11
+ import VerifyAttribute_default from "./components/account/VerifyAttribute/VerifyAttribute.js";
11
12
  import UserProfile_default from "./components/account/UserProfile/UserProfile.js";
12
13
  import UserDropdown_default from "./components/account/UserDropdown/UserDropdown.js";
13
14
  import UserAvatar_default from "./components/account/UserAvatar/UserAvatar.js";
14
15
  import ChangeCredential_default from "./components/account/ChangeCredential/ChangeCredential.js";
16
+ import OrganizationUnitSwitcher_default from "./components/account/OrganizationUnitSwitcher/OrganizationUnitSwitcher.js";
15
17
  import UserSelect_default from "./components/primitives/UserSelect/UserSelect.js";
16
18
  import AuthFlowSelect_default from "./components/primitives/AuthFlowSelect/AuthFlowSelect.js";
17
19
  import UserTypeSelect_default from "./components/primitives/UserTypeSelect/UserTypeSelect.js";
18
- import UserList_default from "./components/admin/UserList/UserList.js";
19
- import UserCreate_default from "./components/admin/UserCreate/UserCreate.js";
20
- import UserDetails_default from "./components/admin/UserDetails/UserDetails.js";
21
- import GroupList_default from "./components/admin/GroupList/GroupList.js";
22
- import GroupCreate_default from "./components/admin/GroupCreate/GroupCreate.js";
23
- import GroupMembers_default from "./components/admin/GroupMembers/GroupMembers.js";
24
- import RoleList_default from "./components/admin/RoleList/RoleList.js";
25
- import RoleCreate_default from "./components/admin/RoleCreate/RoleCreate.js";
26
- import RoleAssignments_default from "./components/admin/RoleAssignments/RoleAssignments.js";
27
- import RolePermissions_default from "./components/admin/RolePermissions/RolePermissions.js";
28
- import AgentList_default from "./components/admin/AgentList/AgentList.js";
29
- import AgentCreate_default from "./components/admin/AgentCreate/AgentCreate.js";
30
- import AgentDetails_default from "./components/admin/AgentDetails/AgentDetails.js";
31
- import ApplicationList_default from "./components/admin/ApplicationList/ApplicationList.js";
32
- import ApplicationCreate_default from "./components/admin/ApplicationCreate/ApplicationCreate.js";
33
- import ApplicationDetails_default from "./components/admin/ApplicationDetails/ApplicationDetails.js";
20
+ import UserList_default from "./components/management/UserList/UserList.js";
21
+ import UserCreate_default from "./components/management/UserCreate/UserCreate.js";
22
+ import UserDetails_default from "./components/management/UserDetails/UserDetails.js";
23
+ import GroupList_default from "./components/management/GroupList/GroupList.js";
24
+ import GroupCreate_default from "./components/management/GroupCreate/GroupCreate.js";
25
+ import GroupMembers_default from "./components/management/GroupMembers/GroupMembers.js";
26
+ import RoleList_default from "./components/management/RoleList/RoleList.js";
27
+ import RoleCreate_default from "./components/management/RoleCreate/RoleCreate.js";
28
+ import RoleAssignments_default from "./components/management/RoleAssignments/RoleAssignments.js";
29
+ import RolePermissions_default from "./components/management/RolePermissions/RolePermissions.js";
30
+ import GroupDetails_default from "./components/management/GroupDetails/GroupDetails.js";
31
+ import RoleDetails_default from "./components/management/RoleDetails/RoleDetails.js";
32
+ import AgentList_default from "./components/management/AgentList/AgentList.js";
33
+ import AgentCreate_default from "./components/management/AgentCreate/AgentCreate.js";
34
+ import AgentDetails_default from "./components/management/AgentDetails/AgentDetails.js";
35
+ import ApplicationList_default from "./components/management/ApplicationList/ApplicationList.js";
36
+ import ApplicationCreate_default from "./components/management/ApplicationCreate/ApplicationCreate.js";
37
+ import ApplicationDetails_default from "./components/management/ApplicationDetails/ApplicationDetails.js";
38
+ import ProjectList_default from "./components/management/ProjectList/ProjectList.js";
39
+ import ProjectCreate_default from "./components/management/ProjectCreate/ProjectCreate.js";
40
+ import ProjectDetails_default from "./components/management/ProjectDetails/ProjectDetails.js";
41
+ import ProjectSwitcher_default from "./components/management/ProjectSwitcher/ProjectSwitcher.js";
42
+ import OrganizationUnitList_default from "./components/management/OrganizationUnitList/OrganizationUnitList.js";
43
+ import OrganizationUnitCreate_default from "./components/management/OrganizationUnitCreate/OrganizationUnitCreate.js";
44
+ import OrganizationUnitDetails_default from "./components/management/OrganizationUnitDetails/OrganizationUnitDetails.js";
45
+ import SharingPolicies_default from "./components/management/SharingPolicies/SharingPolicies.js";
34
46
  import useGrantedPermissions_default from "./hooks/management/useGrantedPermissions.js";
35
- import { BaseAgentCreate, BaseAgentDetails, BaseAgentList, BaseApplicationCreate, BaseApplicationDetails, BaseApplicationList, BaseGroupCreate, BaseGroupList, BaseGroupMembers, BaseRoleAssignments, BaseRoleCreate, BaseRoleList, BaseRolePermissions, BaseUserCreate, BaseUserDetails, BaseUserList, useManagementRequestConfig } from "./admin.js";
47
+ import { BaseAgentCreate, BaseAgentDetails, BaseAgentList, BaseApplicationCreate, BaseApplicationDetails, BaseApplicationList, BaseGroupCreate, BaseGroupDetails, BaseGroupList, BaseGroupMembers, BaseOrganizationUnitCreate, BaseOrganizationUnitDetails, BaseOrganizationUnitList, BaseProjectCreate, BaseProjectDetails, BaseProjectList, BaseProjectSwitcher, BaseRoleAssignments, BaseRoleCreate, BaseRoleDetails, BaseRoleList, BaseRolePermissions, BaseSharingPolicies, BaseUserCreate, BaseUserDetails, BaseUserList, useManagementRequestConfig } from "./management.js";
36
48
 
37
49
  export { };
@@ -0,0 +1,3 @@
1
+ export { type AdminListRenderProps, BaseUserList, type BaseUserListProps, type BaseUserListRenderProps, BaseUserCreate, type BaseUserCreateProps, type BaseUserCreateRenderProps, BaseUserDetails, type BaseUserDetailsProps, type BaseUserDetailsRenderProps, BaseGroupList, type BaseGroupListProps, type BaseGroupListRenderProps, BaseGroupCreate, type BaseGroupCreateProps, type BaseGroupCreateRenderProps, BaseGroupMembers, type BaseGroupMembersProps, type BaseGroupMembersRenderProps, BaseRoleList, type BaseRoleListProps, type BaseRoleListRenderProps, BaseRoleCreate, type BaseRoleCreateProps, type BaseRoleCreateRenderProps, BaseRoleAssignments, type BaseRoleAssignmentsProps, type BaseRoleAssignmentsRenderProps, BaseRolePermissions, type BaseRolePermissionsProps, type BaseRolePermissionsRenderProps, type RolePermissionChange, type RolePermissionResourceServer, BaseGroupDetails, type BaseGroupDetailsProps, type BaseGroupDetailsRenderProps, BaseRoleDetails, type BaseRoleDetailsProps, type BaseRoleDetailsRenderProps, BaseAgentList, type BaseAgentListProps, type BaseAgentListRenderProps, BaseAgentCreate, type BaseAgentCreateProps, type BaseAgentCreateRenderProps, BaseAgentDetails, type BaseAgentDetailsProps, type BaseAgentDetailsRenderProps, BaseApplicationList, type BaseApplicationListProps, type BaseApplicationListRenderProps, BaseApplicationCreate, type BaseApplicationCreateProps, type BaseApplicationCreateRenderProps, type ApplicationCreateSubmission, BaseApplicationDetails, type BaseApplicationDetailsProps, type BaseApplicationDetailsRenderProps, type ApplicationUpdateSubmission, type ApplicationFormValues, type ApplicationTextField, BaseProjectList, type BaseProjectListProps, type BaseProjectListRenderProps, BaseProjectCreate, type BaseProjectCreateProps, type BaseProjectCreateRenderProps, type ProjectCreateSubmission, type ProjectCreateField, BaseProjectDetails, type BaseProjectDetailsProps, type BaseProjectDetailsRenderProps, type ProjectUpdateSubmission, BaseProjectSwitcher, type BaseProjectSwitcherProps, type BaseProjectSwitcherRenderProps, BaseOrganizationUnitList, type BaseOrganizationUnitListProps, type BaseOrganizationUnitListRenderProps, BaseOrganizationUnitCreate, type BaseOrganizationUnitCreateProps, type BaseOrganizationUnitCreateRenderProps, type OrganizationUnitCreateSubmission, type OrganizationUnitCreateField, BaseOrganizationUnitDetails, type BaseOrganizationUnitDetailsProps, type BaseOrganizationUnitDetailsRenderProps, type OrganizationUnitUpdateSubmission, type OrganizationUnitContents, BaseSharingPolicies, type BaseSharingPoliciesProps, type BaseSharingPoliciesRenderProps, } from '@thunderid/react';
2
+ export { useManagementRequestConfig, type ManagementCollection, type GrantedPermissions } from '@thunderid/react';
3
+ //# sourceMappingURL=management.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"management.d.ts","sourceRoot":"","sources":["../../src/client/management.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,KAAK,oBAAoB,EACzB,YAAY,EACZ,KAAK,iBAAiB,E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BAAkB,EAClB,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACnC,wBAAwB,EACxB,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EACxC,0BAA0B,EAC1B,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC1C,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,EAChC,2BAA2B,EAC3B,KAAK,gCAAgC,EACrC,KAAK,sCAAsC,EAC3C,KAAK,gCAAgC,EACrC,KAAK,wBAAwB,EAC7B,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,GACpC,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAC,0BAA0B,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAC,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ 'use client';
2
+
3
+
4
+ import { BaseAgentCreate, BaseAgentDetails, BaseAgentList, BaseApplicationCreate, BaseApplicationDetails, BaseApplicationList, BaseGroupCreate, BaseGroupDetails, BaseGroupList, BaseGroupMembers, BaseOrganizationUnitCreate, BaseOrganizationUnitDetails, BaseOrganizationUnitList, BaseProjectCreate, BaseProjectDetails, BaseProjectList, BaseProjectSwitcher, BaseRoleAssignments, BaseRoleCreate, BaseRoleDetails, BaseRoleList, BaseRolePermissions, BaseSharingPolicies, BaseUserCreate, BaseUserDetails, BaseUserList, useManagementRequestConfig } from "@thunderid/react";
5
+
6
+ export { BaseAgentCreate, BaseAgentDetails, BaseAgentList, BaseApplicationCreate, BaseApplicationDetails, BaseApplicationList, BaseGroupCreate, BaseGroupDetails, BaseGroupList, BaseGroupMembers, BaseOrganizationUnitCreate, BaseOrganizationUnitDetails, BaseOrganizationUnitList, BaseProjectCreate, BaseProjectDetails, BaseProjectList, BaseProjectSwitcher, BaseRoleAssignments, BaseRoleCreate, BaseRoleDetails, BaseRoleList, BaseRolePermissions, BaseSharingPolicies, BaseUserCreate, BaseUserDetails, BaseUserList, useManagementRequestConfig };
package/dist/index.js CHANGED
@@ -15,31 +15,43 @@ import DeviceGrant_default from "./client/components/auth/DeviceGrant/DeviceGran
15
15
  import SignOutButton_default from "./client/components/auth/buttons/SignOutButton/SignOutButton.js";
16
16
  import User_default from "./client/components/account/User/User.js";
17
17
  import SignUp_default from "./client/components/auth/SignUp/SignUp.js";
18
+ import VerifyAttribute_default from "./client/components/account/VerifyAttribute/VerifyAttribute.js";
18
19
  import UserProfile_default from "./client/components/account/UserProfile/UserProfile.js";
19
20
  import UserDropdown_default from "./client/components/account/UserDropdown/UserDropdown.js";
20
21
  import UserAvatar_default from "./client/components/account/UserAvatar/UserAvatar.js";
21
22
  import ChangeCredential_default from "./client/components/account/ChangeCredential/ChangeCredential.js";
23
+ import OrganizationUnitSwitcher_default from "./client/components/account/OrganizationUnitSwitcher/OrganizationUnitSwitcher.js";
22
24
  import UserSelect_default from "./client/components/primitives/UserSelect/UserSelect.js";
23
25
  import AuthFlowSelect_default from "./client/components/primitives/AuthFlowSelect/AuthFlowSelect.js";
24
26
  import UserTypeSelect_default from "./client/components/primitives/UserTypeSelect/UserTypeSelect.js";
25
- import UserList_default from "./client/components/admin/UserList/UserList.js";
26
- import UserCreate_default from "./client/components/admin/UserCreate/UserCreate.js";
27
- import UserDetails_default from "./client/components/admin/UserDetails/UserDetails.js";
28
- import GroupList_default from "./client/components/admin/GroupList/GroupList.js";
29
- import GroupCreate_default from "./client/components/admin/GroupCreate/GroupCreate.js";
30
- import GroupMembers_default from "./client/components/admin/GroupMembers/GroupMembers.js";
31
- import RoleList_default from "./client/components/admin/RoleList/RoleList.js";
32
- import RoleCreate_default from "./client/components/admin/RoleCreate/RoleCreate.js";
33
- import RoleAssignments_default from "./client/components/admin/RoleAssignments/RoleAssignments.js";
34
- import RolePermissions_default from "./client/components/admin/RolePermissions/RolePermissions.js";
35
- import AgentList_default from "./client/components/admin/AgentList/AgentList.js";
36
- import AgentCreate_default from "./client/components/admin/AgentCreate/AgentCreate.js";
37
- import AgentDetails_default from "./client/components/admin/AgentDetails/AgentDetails.js";
38
- import ApplicationList_default from "./client/components/admin/ApplicationList/ApplicationList.js";
39
- import ApplicationCreate_default from "./client/components/admin/ApplicationCreate/ApplicationCreate.js";
40
- import ApplicationDetails_default from "./client/components/admin/ApplicationDetails/ApplicationDetails.js";
27
+ import UserList_default from "./client/components/management/UserList/UserList.js";
28
+ import UserCreate_default from "./client/components/management/UserCreate/UserCreate.js";
29
+ import UserDetails_default from "./client/components/management/UserDetails/UserDetails.js";
30
+ import GroupList_default from "./client/components/management/GroupList/GroupList.js";
31
+ import GroupCreate_default from "./client/components/management/GroupCreate/GroupCreate.js";
32
+ import GroupMembers_default from "./client/components/management/GroupMembers/GroupMembers.js";
33
+ import RoleList_default from "./client/components/management/RoleList/RoleList.js";
34
+ import RoleCreate_default from "./client/components/management/RoleCreate/RoleCreate.js";
35
+ import RoleAssignments_default from "./client/components/management/RoleAssignments/RoleAssignments.js";
36
+ import RolePermissions_default from "./client/components/management/RolePermissions/RolePermissions.js";
37
+ import GroupDetails_default from "./client/components/management/GroupDetails/GroupDetails.js";
38
+ import RoleDetails_default from "./client/components/management/RoleDetails/RoleDetails.js";
39
+ import AgentList_default from "./client/components/management/AgentList/AgentList.js";
40
+ import AgentCreate_default from "./client/components/management/AgentCreate/AgentCreate.js";
41
+ import AgentDetails_default from "./client/components/management/AgentDetails/AgentDetails.js";
42
+ import ApplicationList_default from "./client/components/management/ApplicationList/ApplicationList.js";
43
+ import ApplicationCreate_default from "./client/components/management/ApplicationCreate/ApplicationCreate.js";
44
+ import ApplicationDetails_default from "./client/components/management/ApplicationDetails/ApplicationDetails.js";
45
+ import ProjectList_default from "./client/components/management/ProjectList/ProjectList.js";
46
+ import ProjectCreate_default from "./client/components/management/ProjectCreate/ProjectCreate.js";
47
+ import ProjectDetails_default from "./client/components/management/ProjectDetails/ProjectDetails.js";
48
+ import ProjectSwitcher_default from "./client/components/management/ProjectSwitcher/ProjectSwitcher.js";
49
+ import OrganizationUnitList_default from "./client/components/management/OrganizationUnitList/OrganizationUnitList.js";
50
+ import OrganizationUnitCreate_default from "./client/components/management/OrganizationUnitCreate/OrganizationUnitCreate.js";
51
+ import OrganizationUnitDetails_default from "./client/components/management/OrganizationUnitDetails/OrganizationUnitDetails.js";
52
+ import SharingPolicies_default from "./client/components/management/SharingPolicies/SharingPolicies.js";
41
53
  import useGrantedPermissions_default from "./client/hooks/management/useGrantedPermissions.js";
42
- import { BaseAgentCreate, BaseAgentDetails, BaseAgentList, BaseApplicationCreate, BaseApplicationDetails, BaseApplicationList, BaseGroupCreate, BaseGroupList, BaseGroupMembers, BaseRoleAssignments, BaseRoleCreate, BaseRoleList, BaseRolePermissions, BaseUserCreate, BaseUserDetails, BaseUserList, useManagementRequestConfig } from "./client/admin.js";
54
+ import { BaseAgentCreate, BaseAgentDetails, BaseAgentList, BaseApplicationCreate, BaseApplicationDetails, BaseApplicationList, BaseGroupCreate, BaseGroupDetails, BaseGroupList, BaseGroupMembers, BaseOrganizationUnitCreate, BaseOrganizationUnitDetails, BaseOrganizationUnitList, BaseProjectCreate, BaseProjectDetails, BaseProjectList, BaseProjectSwitcher, BaseRoleAssignments, BaseRoleCreate, BaseRoleDetails, BaseRoleList, BaseRolePermissions, BaseSharingPolicies, BaseUserCreate, BaseUserDetails, BaseUserList, useManagementRequestConfig } from "./client/management.js";
43
55
  import "./client/index.js";
44
56
 
45
- export { AgentCreate_default as AgentCreate, AgentDetails_default as AgentDetails, AgentList_default as AgentList, ApplicationCreate_default as ApplicationCreate, ApplicationDetails_default as ApplicationDetails, ApplicationList_default as ApplicationList, AuthFlowSelect_default as AuthFlowSelect, BaseAgentCreate, BaseAgentDetails, BaseAgentList, BaseApplicationCreate, BaseApplicationDetails, BaseApplicationList, BaseGroupCreate, BaseGroupList, BaseGroupMembers, BaseRoleAssignments, BaseRoleCreate, BaseRoleList, BaseRolePermissions, BaseUserCreate, BaseUserDetails, BaseUserList, ChangeCredential_default as ChangeCredential, DeviceGrant_default as DeviceGrant, GroupCreate_default as GroupCreate, GroupList_default as GroupList, GroupMembers_default as GroupMembers, RoleAssignments_default as RoleAssignments, RoleCreate_default as RoleCreate, RoleList_default as RoleList, RolePermissions_default as RolePermissions, SignIn_default as SignIn, SignInButton_default as SignInButton, SignOutButton_default as SignOutButton, SignUp_default as SignUp, SignUpButton_default as SignUpButton, SignedIn_default as SignedIn, SignedOut_default as SignedOut, ThunderIDNextClient_default as ThunderIDNext, ThunderIDProvider_default as ThunderIDProvider, User_default as User, UserAvatar_default as UserAvatar, UserCreate_default as UserCreate, UserDetails_default as UserDetails, UserDropdown_default as UserDropdown, UserList_default as UserList, UserProfile_default as UserProfile, UserSelect_default as UserSelect, UserTypeSelect_default as UserTypeSelect, backchannelLogout_default as backchannelLogout, createRouteMatcher_default as createRouteMatcher, removeChunkedCookieFromHeader, replaceChunkedCookieInHeader, thunderIDProxy_default as thunderIDProxy, thunderid_default as thunderid, useGrantedPermissions_default as useGrantedPermissions, useManagementRequestConfig, useThunderID_default as useThunderID };
57
+ export { AgentCreate_default as AgentCreate, AgentDetails_default as AgentDetails, AgentList_default as AgentList, ApplicationCreate_default as ApplicationCreate, ApplicationDetails_default as ApplicationDetails, ApplicationList_default as ApplicationList, AuthFlowSelect_default as AuthFlowSelect, BaseAgentCreate, BaseAgentDetails, BaseAgentList, BaseApplicationCreate, BaseApplicationDetails, BaseApplicationList, BaseGroupCreate, BaseGroupDetails, BaseGroupList, BaseGroupMembers, BaseOrganizationUnitCreate, BaseOrganizationUnitDetails, BaseOrganizationUnitList, BaseProjectCreate, BaseProjectDetails, BaseProjectList, BaseProjectSwitcher, BaseRoleAssignments, BaseRoleCreate, BaseRoleDetails, BaseRoleList, BaseRolePermissions, BaseSharingPolicies, BaseUserCreate, BaseUserDetails, BaseUserList, ChangeCredential_default as ChangeCredential, DeviceGrant_default as DeviceGrant, GroupCreate_default as GroupCreate, GroupDetails_default as GroupDetails, GroupList_default as GroupList, GroupMembers_default as GroupMembers, OrganizationUnitCreate_default as OrganizationUnitCreate, OrganizationUnitDetails_default as OrganizationUnitDetails, OrganizationUnitList_default as OrganizationUnitList, OrganizationUnitSwitcher_default as OrganizationUnitSwitcher, ProjectCreate_default as ProjectCreate, ProjectDetails_default as ProjectDetails, ProjectList_default as ProjectList, ProjectSwitcher_default as ProjectSwitcher, RoleAssignments_default as RoleAssignments, RoleCreate_default as RoleCreate, RoleDetails_default as RoleDetails, RoleList_default as RoleList, RolePermissions_default as RolePermissions, SharingPolicies_default as SharingPolicies, SignIn_default as SignIn, SignInButton_default as SignInButton, SignOutButton_default as SignOutButton, SignUp_default as SignUp, SignUpButton_default as SignUpButton, SignedIn_default as SignedIn, SignedOut_default as SignedOut, ThunderIDNextClient_default as ThunderIDNext, ThunderIDProvider_default as ThunderIDProvider, User_default as User, UserAvatar_default as UserAvatar, UserCreate_default as UserCreate, UserDetails_default as UserDetails, UserDropdown_default as UserDropdown, UserList_default as UserList, UserProfile_default as UserProfile, UserSelect_default as UserSelect, UserTypeSelect_default as UserTypeSelect, VerifyAttribute_default as VerifyAttribute, backchannelLogout_default as backchannelLogout, createRouteMatcher_default as createRouteMatcher, removeChunkedCookieFromHeader, replaceChunkedCookieInHeader, thunderIDProxy_default as thunderIDProxy, thunderid_default as thunderid, useGrantedPermissions_default as useGrantedPermissions, useManagementRequestConfig, useThunderID_default as useThunderID };
@@ -0,0 +1,20 @@
1
+ import { AccessibleOrganizationUnitList, AccessibleOrganizationUnitsOptions } from '@thunderid/node';
2
+ export type GetAccessibleOrganizationUnitsActionResult = {
3
+ data: AccessibleOrganizationUnitList;
4
+ success: true;
5
+ } | {
6
+ code?: string;
7
+ statusCode?: number;
8
+ success: false;
9
+ };
10
+ /**
11
+ * Lists the organization units the signed-in user can access (`/users/me/ous`) with the session's
12
+ * access token, which stays on the server. Only `scope`, `limit` and `offset` are taken from the caller;
13
+ * the session is the one in the request's cookie.
14
+ *
15
+ * Failures are returned rather than thrown, so the error crosses the server action boundary with its
16
+ * status and code, and without the server's message.
17
+ */
18
+ declare const getAccessibleOrganizationUnitsAction: ({ limit, offset, scope, }?: AccessibleOrganizationUnitsOptions) => Promise<GetAccessibleOrganizationUnitsActionResult>;
19
+ export default getAccessibleOrganizationUnitsAction;
20
+ //# sourceMappingURL=getAccessibleOrganizationUnitsAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccessibleOrganizationUnitsAction.d.ts","sourceRoot":"","sources":["../../../../src/server/actions/account/getAccessibleOrganizationUnitsAction.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EAInC,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,0CAA0C,GAClD;IAAC,IAAI,EAAE,8BAA8B,CAAC;IAAC,OAAO,EAAE,IAAI,CAAA;CAAC,GACrD;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,KAAK,CAAA;CAAC,CAAC;AAEzD;;;;;;;GAOG;AACH,QAAA,MAAM,oCAAoC,GAAU,4BAIjD,kCAAuC,KAAG,OAAO,CAAC,0CAA0C,CAgC9F,CAAC;AAEF,eAAe,oCAAoC,CAAC"}
@@ -0,0 +1,51 @@
1
+ 'use server';
2
+
3
+
4
+ import getClient_default from "../../getClient.js";
5
+ import getAccessToken_default from "../getAccessToken.js";
6
+ import { ThunderIDAPIError, getAccessibleOrganizationUnits, resolveResourceEndpoint } from "@thunderid/node";
7
+
8
+ //#region src/server/actions/account/getAccessibleOrganizationUnitsAction.ts
9
+ /**
10
+ * Lists the organization units the signed-in user can access (`/users/me/ous`) with the session's
11
+ * access token, which stays on the server. Only `scope`, `limit` and `offset` are taken from the caller;
12
+ * the session is the one in the request's cookie.
13
+ *
14
+ * Failures are returned rather than thrown, so the error crosses the server action boundary with its
15
+ * status and code, and without the server's message.
16
+ */
17
+ const getAccessibleOrganizationUnitsAction = async ({ limit, offset, scope } = {}) => {
18
+ const accessToken = await getAccessToken_default();
19
+ if (!accessToken) return {
20
+ statusCode: 401,
21
+ success: false
22
+ };
23
+ try {
24
+ const client = getClient_default();
25
+ if (!client.isInitialized) await client.initialize({});
26
+ const config = await client.getConfiguration();
27
+ return {
28
+ data: await getAccessibleOrganizationUnits({
29
+ baseUrl: config.baseUrl,
30
+ headers: { Authorization: `Bearer ${accessToken}` },
31
+ limit,
32
+ offset,
33
+ scope: scope === "siblings" ? "siblings" : void 0,
34
+ url: resolveResourceEndpoint("usersMeOrganizationUnits", config)
35
+ }),
36
+ success: true
37
+ };
38
+ } catch (error) {
39
+ if (error instanceof ThunderIDAPIError) return {
40
+ code: error.code,
41
+ statusCode: error.statusCode,
42
+ success: false
43
+ };
44
+ return { success: false };
45
+ }
46
+ };
47
+ var getAccessibleOrganizationUnitsAction_default = getAccessibleOrganizationUnitsAction;
48
+
49
+ //#endregion
50
+ export { getAccessibleOrganizationUnitsAction_default as default };
51
+ //# sourceMappingURL=getAccessibleOrganizationUnitsAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccessibleOrganizationUnitsAction.js","names":["accessToken: string | undefined","getAccessToken","getClient","config: ThunderIDNextConfig"],"sources":["../../../../src/server/actions/account/getAccessibleOrganizationUnitsAction.ts"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use server';\n\nimport {\n AccessibleOrganizationUnitList,\n AccessibleOrganizationUnitsOptions,\n ThunderIDAPIError,\n getAccessibleOrganizationUnits,\n resolveResourceEndpoint,\n} from '@thunderid/node';\nimport {ThunderIDNextConfig} from '../../../models/config';\nimport getClient from '../../getClient';\nimport getAccessToken from '../getAccessToken';\n\nexport type GetAccessibleOrganizationUnitsActionResult =\n | {data: AccessibleOrganizationUnitList; success: true}\n | {code?: string; statusCode?: number; success: false};\n\n/**\n * Lists the organization units the signed-in user can access (`/users/me/ous`) with the session's\n * access token, which stays on the server. Only `scope`, `limit` and `offset` are taken from the caller;\n * the session is the one in the request's cookie.\n *\n * Failures are returned rather than thrown, so the error crosses the server action boundary with its\n * status and code, and without the server's message.\n */\nconst getAccessibleOrganizationUnitsAction = async ({\n limit,\n offset,\n scope,\n}: AccessibleOrganizationUnitsOptions = {}): Promise<GetAccessibleOrganizationUnitsActionResult> => {\n const accessToken: string | undefined = await getAccessToken();\n\n if (!accessToken) {\n return {statusCode: 401, success: false};\n }\n\n try {\n const client = getClient();\n\n if (!client.isInitialized) {\n await client.initialize({} as ThunderIDNextConfig);\n }\n\n const config: ThunderIDNextConfig = await client.getConfiguration();\n const data: AccessibleOrganizationUnitList = await getAccessibleOrganizationUnits({\n baseUrl: config.baseUrl,\n headers: {Authorization: `Bearer ${accessToken}`},\n limit,\n offset,\n scope: scope === 'siblings' ? 'siblings' : undefined,\n url: resolveResourceEndpoint('usersMeOrganizationUnits', config),\n });\n\n return {data, success: true};\n } catch (error) {\n if (error instanceof ThunderIDAPIError) {\n return {code: error.code, statusCode: error.statusCode, success: false};\n }\n\n return {success: false};\n }\n};\n\nexport default getAccessibleOrganizationUnitsAction;\n"],"mappings":";;;;;;;;;;;;;;;;AA4BA,MAAM,uCAAuC,OAAO,EAClD,OACA,QACA,UACsC,EAAE,KAA0D;CAClG,MAAMA,cAAkC,MAAMC,wBAAgB;AAE9D,KAAI,CAAC,YACH,QAAO;EAAC,YAAY;EAAK,SAAS;EAAM;AAG1C,KAAI;EACF,MAAM,SAASC,mBAAW;AAE1B,MAAI,CAAC,OAAO,cACV,OAAM,OAAO,WAAW,EAAE,CAAwB;EAGpD,MAAMC,SAA8B,MAAM,OAAO,kBAAkB;AAUnE,SAAO;GAAC,MATqC,MAAM,+BAA+B;IAChF,SAAS,OAAO;IAChB,SAAS,EAAC,eAAe,UAAU,eAAc;IACjD;IACA;IACA,OAAO,UAAU,aAAa,aAAa;IAC3C,KAAK,wBAAwB,4BAA4B,OAAO;IACjE,CAAC;GAEY,SAAS;GAAK;UACrB,OAAO;AACd,MAAI,iBAAiB,kBACnB,QAAO;GAAC,MAAM,MAAM;GAAM,YAAY,MAAM;GAAY,SAAS;GAAM;AAGzE,SAAO,EAAC,SAAS,OAAM;;;AAI3B,mDAAe"}
@@ -0,0 +1,10 @@
1
+ import { CurrentOrganizationUnit } from '@thunderid/node';
2
+ /**
3
+ * Reads the organization unit the signed-in session was issued for from the `ouId`, `ouHandle` and
4
+ * `ouName` claims of the session's token, or `null` when they are absent (an access token carries
5
+ * `ouId` only when the application's token configuration asks for it). For display only, never for
6
+ * an authorization decision.
7
+ */
8
+ declare const getCurrentOrganizationUnitAction: () => Promise<CurrentOrganizationUnit | null>;
9
+ export default getCurrentOrganizationUnitAction;
10
+ //# sourceMappingURL=getCurrentOrganizationUnitAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurrentOrganizationUnitAction.d.ts","sourceRoot":"","sources":["../../../../src/server/actions/account/getCurrentOrganizationUnitAction.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,uBAAuB,EAAuC,MAAM,iBAAiB,CAAC;AAI9F;;;;;GAKG;AACH,QAAA,MAAM,gCAAgC,QAAa,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAYxF,CAAC;AAEF,eAAe,gCAAgC,CAAC"}
@@ -0,0 +1,28 @@
1
+ 'use server';
2
+
3
+
4
+ import getAccessToken_default from "../getAccessToken.js";
5
+ import { getCurrentOrganizationUnitFromClaims } from "@thunderid/node";
6
+ import { decodeJwt } from "jose";
7
+
8
+ //#region src/server/actions/account/getCurrentOrganizationUnitAction.ts
9
+ /**
10
+ * Reads the organization unit the signed-in session was issued for from the `ouId`, `ouHandle` and
11
+ * `ouName` claims of the session's token, or `null` when they are absent (an access token carries
12
+ * `ouId` only when the application's token configuration asks for it). For display only, never for
13
+ * an authorization decision.
14
+ */
15
+ const getCurrentOrganizationUnitAction = async () => {
16
+ const accessToken = await getAccessToken_default();
17
+ if (!accessToken) return null;
18
+ try {
19
+ return getCurrentOrganizationUnitFromClaims(decodeJwt(accessToken));
20
+ } catch {
21
+ return null;
22
+ }
23
+ };
24
+ var getCurrentOrganizationUnitAction_default = getCurrentOrganizationUnitAction;
25
+
26
+ //#endregion
27
+ export { getCurrentOrganizationUnitAction_default as default };
28
+ //# sourceMappingURL=getCurrentOrganizationUnitAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurrentOrganizationUnitAction.js","names":["accessToken: string | undefined","getAccessToken"],"sources":["../../../../src/server/actions/account/getCurrentOrganizationUnitAction.ts"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use server';\n\nimport {CurrentOrganizationUnit, getCurrentOrganizationUnitFromClaims} from '@thunderid/node';\nimport {decodeJwt} from 'jose';\nimport getAccessToken from '../getAccessToken';\n\n/**\n * Reads the organization unit the signed-in session was issued for from the `ouId`, `ouHandle` and\n * `ouName` claims of the session's token, or `null` when they are absent (an access token carries\n * `ouId` only when the application's token configuration asks for it). For display only, never for\n * an authorization decision.\n */\nconst getCurrentOrganizationUnitAction = async (): Promise<CurrentOrganizationUnit | null> => {\n const accessToken: string | undefined = await getAccessToken();\n\n if (!accessToken) {\n return null;\n }\n\n try {\n return getCurrentOrganizationUnitFromClaims(decodeJwt(accessToken) as Record<string, unknown>);\n } catch {\n return null;\n }\n};\n\nexport default getCurrentOrganizationUnitAction;\n"],"mappings":";;;;;;;;;;;;;;AAeA,MAAM,mCAAmC,YAAqD;CAC5F,MAAMA,cAAkC,MAAMC,wBAAgB;AAE9D,KAAI,CAAC,YACH,QAAO;AAGT,KAAI;AACF,SAAO,qCAAqC,UAAU,YAAY,CAA4B;SACxF;AACN,SAAO;;;AAIX,+CAAe"}
@@ -0,0 +1,20 @@
1
+ import { EmbeddedSelfFlowResponse } from '@thunderid/node';
2
+ export type ExecuteSelfFlowActionResult = {
3
+ data: EmbeddedSelfFlowResponse;
4
+ success: true;
5
+ } | {
6
+ statusCode?: number;
7
+ success: false;
8
+ };
9
+ /**
10
+ * Executes one step of a `SELF` flow, such as self attribute verification, for the signed-in
11
+ * user, with the access token of the server-held session. The request carries no session ID, token
12
+ * or user ID: the session comes from the request cookie, and only the fields of a step are forwarded.
13
+ * A new flow must be a `SELF` flow named by its handle.
14
+ *
15
+ * Never throws across the server action boundary. A failure carries only its HTTP status, never the
16
+ * reply of the server, which the browser reports as a refusal.
17
+ */
18
+ declare const executeSelfFlowAction: (request: unknown) => Promise<ExecuteSelfFlowActionResult>;
19
+ export default executeSelfFlowAction;
20
+ //# sourceMappingURL=executeSelfFlowAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executeSelfFlowAction.d.ts","sourceRoot":"","sources":["../../../../src/server/actions/auth/executeSelfFlowAction.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,wBAAwB,EAIzB,MAAM,iBAAiB,CAAC;AAIzB,MAAM,MAAM,2BAA2B,GACnC;IAAC,IAAI,EAAE,wBAAwB,CAAC;IAAC,OAAO,EAAE,IAAI,CAAA;CAAC,GAC/C;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,KAAK,CAAA;CAAC,CAAC;AAE1C;;;;;;;;GAQG;AACH,QAAA,MAAM,qBAAqB,GAAU,SAAS,OAAO,KAAG,OAAO,CAAC,2BAA2B,CAsB1F,CAAC;AAEF,eAAe,qBAAqB,CAAC"}