@hexclave/next 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/README.md +7 -23
  2. package/dist/components/api-key-dialogs.js +18 -18
  3. package/dist/components/api-key-dialogs.js.map +1 -1
  4. package/dist/components/api-key-table.js +19 -19
  5. package/dist/components/api-key-table.js.map +1 -1
  6. package/dist/components/credential-sign-in.js +12 -12
  7. package/dist/components/credential-sign-in.js.map +1 -1
  8. package/dist/components/credential-sign-up.js +19 -19
  9. package/dist/components/credential-sign-up.js.map +1 -1
  10. package/dist/components/elements/separator-with-text.js +3 -3
  11. package/dist/components/elements/separator-with-text.js.map +1 -1
  12. package/dist/components/elements/sidebar-layout.js +15 -15
  13. package/dist/components/elements/sidebar-layout.js.map +1 -1
  14. package/dist/components/elements/user-avatar.js +3 -3
  15. package/dist/components/elements/user-avatar.js.map +1 -1
  16. package/dist/components/link.js +2 -2
  17. package/dist/components/link.js.map +1 -1
  18. package/dist/components/magic-link-sign-in.js +17 -17
  19. package/dist/components/magic-link-sign-in.js.map +1 -1
  20. package/dist/components/message-cards/known-error-message-card.js +2 -2
  21. package/dist/components/message-cards/known-error-message-card.js.map +1 -1
  22. package/dist/components/message-cards/message-card.js +4 -4
  23. package/dist/components/message-cards/message-card.js.map +1 -1
  24. package/dist/components/message-cards/predefined-message-card.js +2 -2
  25. package/dist/components/message-cards/predefined-message-card.js.map +1 -1
  26. package/dist/components/oauth-button.js +15 -15
  27. package/dist/components/oauth-button.js.map +1 -1
  28. package/dist/components/passkey-button.js +2 -2
  29. package/dist/components/passkey-button.js.map +1 -1
  30. package/dist/components/profile-image-editor.js +9 -9
  31. package/dist/components/profile-image-editor.js.map +1 -1
  32. package/dist/components/selected-team-switcher.js +4 -4
  33. package/dist/components/selected-team-switcher.js.map +1 -1
  34. package/dist/components/team-icon.js +4 -4
  35. package/dist/components/team-icon.js.map +1 -1
  36. package/dist/components/team-switcher.js +21 -21
  37. package/dist/components/team-switcher.js.map +1 -1
  38. package/dist/components/user-button.js +13 -13
  39. package/dist/components/user-button.js.map +1 -1
  40. package/dist/components-page/account-settings/active-sessions/active-sessions-page.js +32 -32
  41. package/dist/components-page/account-settings/active-sessions/active-sessions-page.js.map +1 -1
  42. package/dist/components-page/account-settings/api-keys/api-keys-page.js +2 -2
  43. package/dist/components-page/account-settings/api-keys/api-keys-page.js.map +1 -1
  44. package/dist/components-page/account-settings/editable-text.js +5 -5
  45. package/dist/components-page/account-settings/editable-text.js.map +1 -1
  46. package/dist/components-page/account-settings/email-and-auth/emails-section.js +22 -22
  47. package/dist/components-page/account-settings/email-and-auth/emails-section.js.map +1 -1
  48. package/dist/components-page/account-settings/email-and-auth/mfa-section.js +17 -17
  49. package/dist/components-page/account-settings/email-and-auth/mfa-section.js.map +1 -1
  50. package/dist/components-page/account-settings/email-and-auth/otp-section.js +9 -9
  51. package/dist/components-page/account-settings/email-and-auth/otp-section.js.map +1 -1
  52. package/dist/components-page/account-settings/email-and-auth/passkey-section.js +9 -9
  53. package/dist/components-page/account-settings/email-and-auth/passkey-section.js.map +1 -1
  54. package/dist/components-page/account-settings/email-and-auth/password-section.js +23 -23
  55. package/dist/components-page/account-settings/email-and-auth/password-section.js.map +1 -1
  56. package/dist/components-page/account-settings/notifications/notifications-page.js +6 -6
  57. package/dist/components-page/account-settings/notifications/notifications-page.js.map +1 -1
  58. package/dist/components-page/account-settings/payments/payments-panel.js +52 -52
  59. package/dist/components-page/account-settings/payments/payments-panel.js.map +1 -1
  60. package/dist/components-page/account-settings/section.js +4 -4
  61. package/dist/components-page/account-settings/section.js.map +1 -1
  62. package/dist/components-page/account-settings/settings/delete-account-section.js +7 -7
  63. package/dist/components-page/account-settings/settings/delete-account-section.js.map +1 -1
  64. package/dist/components-page/account-settings/settings/sign-out-section.js +2 -2
  65. package/dist/components-page/account-settings/settings/sign-out-section.js.map +1 -1
  66. package/dist/components-page/account-settings/teams/leave-team-section.js +5 -5
  67. package/dist/components-page/account-settings/teams/leave-team-section.js.map +1 -1
  68. package/dist/components-page/account-settings/teams/team-api-keys-section.js +5 -5
  69. package/dist/components-page/account-settings/teams/team-api-keys-section.js.map +1 -1
  70. package/dist/components-page/account-settings/teams/team-creation-page.js +7 -7
  71. package/dist/components-page/account-settings/teams/team-creation-page.js.map +1 -1
  72. package/dist/components-page/account-settings/teams/team-member-invitation-section.js +20 -20
  73. package/dist/components-page/account-settings/teams/team-member-invitation-section.js.map +1 -1
  74. package/dist/components-page/account-settings/teams/team-member-list-section.js +5 -5
  75. package/dist/components-page/account-settings/teams/team-member-list-section.js.map +1 -1
  76. package/dist/components-page/account-settings.js +22 -22
  77. package/dist/components-page/account-settings.js.map +1 -1
  78. package/dist/components-page/auth-page.js +23 -23
  79. package/dist/components-page/auth-page.js.map +1 -1
  80. package/dist/components-page/cli-auth-confirm.js +9 -9
  81. package/dist/components-page/cli-auth-confirm.js.map +1 -1
  82. package/dist/components-page/cli-auth-confirm.test.js +4 -4
  83. package/dist/components-page/cli-auth-confirm.test.js.map +1 -1
  84. package/dist/components-page/email-verification.js +6 -6
  85. package/dist/components-page/email-verification.js.map +1 -1
  86. package/dist/components-page/error-page.js +11 -11
  87. package/dist/components-page/error-page.js.map +1 -1
  88. package/dist/components-page/forgot-password.js +11 -11
  89. package/dist/components-page/forgot-password.js.map +1 -1
  90. package/dist/components-page/magic-link-callback.js +8 -8
  91. package/dist/components-page/magic-link-callback.js.map +1 -1
  92. package/dist/components-page/mfa.js +13 -13
  93. package/dist/components-page/mfa.js.map +1 -1
  94. package/dist/components-page/oauth-callback.js +9 -9
  95. package/dist/components-page/oauth-callback.js.map +1 -1
  96. package/dist/components-page/onboarding.js +11 -11
  97. package/dist/components-page/onboarding.js.map +1 -1
  98. package/dist/components-page/password-reset.js +27 -27
  99. package/dist/components-page/password-reset.js.map +1 -1
  100. package/dist/components-page/section.js +1 -1
  101. package/dist/components-page/sign-out.js +4 -4
  102. package/dist/components-page/sign-out.js.map +1 -1
  103. package/dist/components-page/stack-handler-client.js +9 -9
  104. package/dist/components-page/stack-handler-client.js.map +1 -1
  105. package/dist/components-page/stack-handler.d.ts +14 -9
  106. package/dist/components-page/stack-handler.d.ts.map +1 -1
  107. package/dist/components-page/stack-handler.js +8 -2
  108. package/dist/components-page/stack-handler.js.map +1 -1
  109. package/dist/components-page/team-creation.js +9 -9
  110. package/dist/components-page/team-creation.js.map +1 -1
  111. package/dist/components-page/team-invitation.js +20 -20
  112. package/dist/components-page/team-invitation.js.map +1 -1
  113. package/dist/dev-tool/dev-tool-core.d.ts.map +1 -1
  114. package/dist/dev-tool/dev-tool-core.js +25 -25
  115. package/dist/dev-tool/dev-tool-core.js.map +1 -1
  116. package/dist/dev-tool/dev-tool-trigger-position.test.js +1 -1
  117. package/dist/dev-tool/index.js +6 -6
  118. package/dist/dev-tool/index.js.map +1 -1
  119. package/dist/esm/components/api-key-dialogs.js.map +1 -1
  120. package/dist/esm/components/api-key-table.js.map +1 -1
  121. package/dist/esm/components/credential-sign-in.js.map +1 -1
  122. package/dist/esm/components/credential-sign-up.js.map +1 -1
  123. package/dist/esm/components/elements/separator-with-text.js.map +1 -1
  124. package/dist/esm/components/elements/sidebar-layout.js.map +1 -1
  125. package/dist/esm/components/elements/user-avatar.js.map +1 -1
  126. package/dist/esm/components/link.js.map +1 -1
  127. package/dist/esm/components/magic-link-sign-in.js.map +1 -1
  128. package/dist/esm/components/message-cards/known-error-message-card.js.map +1 -1
  129. package/dist/esm/components/message-cards/message-card.js.map +1 -1
  130. package/dist/esm/components/message-cards/predefined-message-card.js.map +1 -1
  131. package/dist/esm/components/oauth-button.js.map +1 -1
  132. package/dist/esm/components/passkey-button.js.map +1 -1
  133. package/dist/esm/components/profile-image-editor.js.map +1 -1
  134. package/dist/esm/components/selected-team-switcher.js.map +1 -1
  135. package/dist/esm/components/team-icon.js.map +1 -1
  136. package/dist/esm/components/team-switcher.js.map +1 -1
  137. package/dist/esm/components/user-button.js.map +1 -1
  138. package/dist/esm/components-page/account-settings/active-sessions/active-sessions-page.js.map +1 -1
  139. package/dist/esm/components-page/account-settings/api-keys/api-keys-page.js.map +1 -1
  140. package/dist/esm/components-page/account-settings/editable-text.js.map +1 -1
  141. package/dist/esm/components-page/account-settings/email-and-auth/emails-section.js.map +1 -1
  142. package/dist/esm/components-page/account-settings/email-and-auth/mfa-section.js.map +1 -1
  143. package/dist/esm/components-page/account-settings/email-and-auth/otp-section.js.map +1 -1
  144. package/dist/esm/components-page/account-settings/email-and-auth/passkey-section.js.map +1 -1
  145. package/dist/esm/components-page/account-settings/email-and-auth/password-section.js.map +1 -1
  146. package/dist/esm/components-page/account-settings/notifications/notifications-page.js.map +1 -1
  147. package/dist/esm/components-page/account-settings/payments/payments-panel.js +1 -1
  148. package/dist/esm/components-page/account-settings/payments/payments-panel.js.map +1 -1
  149. package/dist/esm/components-page/account-settings/section.js.map +1 -1
  150. package/dist/esm/components-page/account-settings/settings/delete-account-section.js.map +1 -1
  151. package/dist/esm/components-page/account-settings/settings/sign-out-section.js.map +1 -1
  152. package/dist/esm/components-page/account-settings/teams/leave-team-section.js.map +1 -1
  153. package/dist/esm/components-page/account-settings/teams/team-api-keys-section.js +1 -1
  154. package/dist/esm/components-page/account-settings/teams/team-api-keys-section.js.map +1 -1
  155. package/dist/esm/components-page/account-settings/teams/team-creation-page.js.map +1 -1
  156. package/dist/esm/components-page/account-settings/teams/team-member-invitation-section.js.map +1 -1
  157. package/dist/esm/components-page/account-settings/teams/team-member-list-section.js.map +1 -1
  158. package/dist/esm/components-page/account-settings.js.map +1 -1
  159. package/dist/esm/components-page/auth-page.js.map +1 -1
  160. package/dist/esm/components-page/cli-auth-confirm.js.map +1 -1
  161. package/dist/esm/components-page/cli-auth-confirm.test.js +2 -2
  162. package/dist/esm/components-page/cli-auth-confirm.test.js.map +1 -1
  163. package/dist/esm/components-page/email-verification.js.map +1 -1
  164. package/dist/esm/components-page/error-page.js.map +1 -1
  165. package/dist/esm/components-page/forgot-password.js.map +1 -1
  166. package/dist/esm/components-page/magic-link-callback.js.map +1 -1
  167. package/dist/esm/components-page/mfa.js.map +1 -1
  168. package/dist/esm/components-page/oauth-callback.js.map +1 -1
  169. package/dist/esm/components-page/onboarding.js.map +1 -1
  170. package/dist/esm/components-page/password-reset.js.map +1 -1
  171. package/dist/esm/components-page/sign-out.js.map +1 -1
  172. package/dist/esm/components-page/stack-handler-client.js +2 -2
  173. package/dist/esm/components-page/stack-handler-client.js.map +1 -1
  174. package/dist/esm/components-page/stack-handler.d.ts +13 -9
  175. package/dist/esm/components-page/stack-handler.d.ts.map +1 -1
  176. package/dist/esm/components-page/stack-handler.js +5 -2
  177. package/dist/esm/components-page/stack-handler.js.map +1 -1
  178. package/dist/esm/components-page/team-creation.js.map +1 -1
  179. package/dist/esm/components-page/team-invitation.js.map +1 -1
  180. package/dist/esm/dev-tool/dev-tool-core.d.ts.map +1 -1
  181. package/dist/esm/dev-tool/dev-tool-core.js +4 -4
  182. package/dist/esm/dev-tool/dev-tool-core.js.map +1 -1
  183. package/dist/esm/dev-tool/dev-tool-trigger-position.test.js +1 -1
  184. package/dist/esm/dev-tool/index.js.map +1 -1
  185. package/dist/esm/generated/global-css.d.ts +1 -1
  186. package/dist/esm/generated/global-css.js +1 -1
  187. package/dist/esm/generated/global-css.js.map +1 -1
  188. package/dist/esm/generated/quetzal-translations.js.map +1 -1
  189. package/dist/esm/index.d.ts +5 -5
  190. package/dist/esm/index.js +5 -6
  191. package/dist/esm/integrations/convex.js.map +1 -1
  192. package/dist/esm/lib/auth.js +1 -1
  193. package/dist/esm/lib/auth.js.map +1 -1
  194. package/dist/esm/lib/auth.test.js.map +1 -1
  195. package/dist/esm/lib/cookie.js.map +1 -1
  196. package/dist/esm/lib/hooks.d.ts +11 -1
  197. package/dist/esm/lib/hooks.d.ts.map +1 -1
  198. package/dist/esm/lib/hooks.js +19 -9
  199. package/dist/esm/lib/hooks.js.map +1 -1
  200. package/dist/esm/lib/stack-app/api-keys/index.js.map +1 -1
  201. package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.d.ts +11 -11
  202. package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.d.ts.map +1 -1
  203. package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.js +3 -1
  204. package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.js.map +1 -1
  205. package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.d.ts +3 -3
  206. package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.d.ts.map +1 -1
  207. package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.js +2 -2
  208. package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.js.map +1 -1
  209. package/dist/esm/lib/stack-app/apps/implementations/common.d.ts.map +1 -1
  210. package/dist/esm/lib/stack-app/apps/implementations/common.js +3 -3
  211. package/dist/esm/lib/stack-app/apps/implementations/common.js.map +1 -1
  212. package/dist/esm/lib/stack-app/apps/implementations/event-tracker.js.map +1 -1
  213. package/dist/esm/lib/stack-app/apps/implementations/event-tracker.test.js.map +1 -1
  214. package/dist/esm/lib/stack-app/apps/implementations/index.js.map +1 -1
  215. package/dist/esm/lib/stack-app/apps/implementations/redirect-page-urls.js.map +1 -1
  216. package/dist/esm/lib/stack-app/apps/implementations/server-app-impl.js.map +1 -1
  217. package/dist/esm/lib/stack-app/apps/implementations/session-replay.d.ts.map +1 -1
  218. package/dist/esm/lib/stack-app/apps/implementations/session-replay.js +3 -2
  219. package/dist/esm/lib/stack-app/apps/implementations/session-replay.js.map +1 -1
  220. package/dist/esm/lib/stack-app/apps/interfaces/admin-app.d.ts +4 -0
  221. package/dist/esm/lib/stack-app/apps/interfaces/admin-app.d.ts.map +1 -1
  222. package/dist/esm/lib/stack-app/apps/interfaces/admin-app.js +1 -0
  223. package/dist/esm/lib/stack-app/apps/interfaces/admin-app.js.map +1 -1
  224. package/dist/esm/lib/stack-app/apps/interfaces/client-app.d.ts +5 -0
  225. package/dist/esm/lib/stack-app/apps/interfaces/client-app.d.ts.map +1 -1
  226. package/dist/esm/lib/stack-app/apps/interfaces/client-app.js +1 -0
  227. package/dist/esm/lib/stack-app/apps/interfaces/client-app.js.map +1 -1
  228. package/dist/esm/lib/stack-app/apps/interfaces/server-app.d.ts +4 -0
  229. package/dist/esm/lib/stack-app/apps/interfaces/server-app.d.ts.map +1 -1
  230. package/dist/esm/lib/stack-app/apps/interfaces/server-app.js +1 -0
  231. package/dist/esm/lib/stack-app/apps/interfaces/server-app.js.map +1 -1
  232. package/dist/esm/lib/stack-app/common.d.ts +1 -1
  233. package/dist/esm/lib/stack-app/common.js.map +1 -1
  234. package/dist/esm/lib/stack-app/contact-channels/index.js.map +1 -1
  235. package/dist/esm/lib/stack-app/email-templates/index.js.map +1 -1
  236. package/dist/esm/lib/stack-app/internal-api-keys/index.js.map +1 -1
  237. package/dist/esm/lib/stack-app/permissions/index.js.map +1 -1
  238. package/dist/esm/lib/stack-app/projects/index.js.map +1 -1
  239. package/dist/esm/lib/stack-app/teams/index.js.map +1 -1
  240. package/dist/esm/lib/stack-app/url-targets.js.map +1 -1
  241. package/dist/esm/lib/stack-app/url-targets.test.js +1 -1
  242. package/dist/esm/lib/stack-app/url-targets.test.js.map +1 -1
  243. package/dist/esm/lib/stack-app/users/index.js.map +1 -1
  244. package/dist/esm/providers/stack-context.d.ts +3 -2
  245. package/dist/esm/providers/stack-context.d.ts.map +1 -1
  246. package/dist/esm/providers/stack-context.js +3 -1
  247. package/dist/esm/providers/stack-context.js.map +1 -1
  248. package/dist/esm/providers/stack-provider-client.js.map +1 -1
  249. package/dist/esm/providers/stack-provider.d.ts +5 -1
  250. package/dist/esm/providers/stack-provider.d.ts.map +1 -1
  251. package/dist/esm/providers/stack-provider.js +5 -1
  252. package/dist/esm/providers/stack-provider.js.map +1 -1
  253. package/dist/esm/providers/theme-provider.d.ts +6 -2
  254. package/dist/esm/providers/theme-provider.d.ts.map +1 -1
  255. package/dist/esm/providers/theme-provider.js +6 -2
  256. package/dist/esm/providers/theme-provider.js.map +1 -1
  257. package/dist/esm/providers/translation-provider-client.d.ts +4 -3
  258. package/dist/esm/providers/translation-provider-client.d.ts.map +1 -1
  259. package/dist/esm/providers/translation-provider-client.js +4 -2
  260. package/dist/esm/providers/translation-provider-client.js.map +1 -1
  261. package/dist/esm/providers/translation-provider.js.map +1 -1
  262. package/dist/esm/utils/url.js.map +1 -1
  263. package/dist/generated/global-css.d.ts +1 -1
  264. package/dist/generated/global-css.js +1 -1
  265. package/dist/generated/global-css.js.map +1 -1
  266. package/dist/generated/quetzal-translations.js +16 -16
  267. package/dist/generated/quetzal-translations.js.map +1 -1
  268. package/dist/index.d.ts +6 -6
  269. package/dist/index.js +9 -12
  270. package/dist/integrations/convex/component/convex.config.d.ts +1 -1
  271. package/dist/integrations/convex.js +5 -5
  272. package/dist/integrations/convex.js.map +1 -1
  273. package/dist/lib/auth.js +12 -12
  274. package/dist/lib/auth.js.map +1 -1
  275. package/dist/lib/auth.test.js +2 -2
  276. package/dist/lib/auth.test.js.map +1 -1
  277. package/dist/lib/cookie.js +13 -13
  278. package/dist/lib/cookie.js.map +1 -1
  279. package/dist/lib/hooks.d.ts +11 -1
  280. package/dist/lib/hooks.d.ts.map +1 -1
  281. package/dist/lib/hooks.js +19 -8
  282. package/dist/lib/hooks.js.map +1 -1
  283. package/dist/lib/stack-app/api-keys/index.js +2 -2
  284. package/dist/lib/stack-app/api-keys/index.js.map +1 -1
  285. package/dist/lib/stack-app/apps/implementations/admin-app-impl.d.ts +11 -11
  286. package/dist/lib/stack-app/apps/implementations/admin-app-impl.d.ts.map +1 -1
  287. package/dist/lib/stack-app/apps/implementations/admin-app-impl.js +39 -37
  288. package/dist/lib/stack-app/apps/implementations/admin-app-impl.js.map +1 -1
  289. package/dist/lib/stack-app/apps/implementations/client-app-impl.d.ts +3 -3
  290. package/dist/lib/stack-app/apps/implementations/client-app-impl.d.ts.map +1 -1
  291. package/dist/lib/stack-app/apps/implementations/client-app-impl.js +213 -213
  292. package/dist/lib/stack-app/apps/implementations/client-app-impl.js.map +1 -1
  293. package/dist/lib/stack-app/apps/implementations/common.d.ts.map +1 -1
  294. package/dist/lib/stack-app/apps/implementations/common.js +30 -30
  295. package/dist/lib/stack-app/apps/implementations/common.js.map +1 -1
  296. package/dist/lib/stack-app/apps/implementations/event-tracker.js +7 -7
  297. package/dist/lib/stack-app/apps/implementations/event-tracker.js.map +1 -1
  298. package/dist/lib/stack-app/apps/implementations/event-tracker.test.js +3 -3
  299. package/dist/lib/stack-app/apps/implementations/event-tracker.test.js.map +1 -1
  300. package/dist/lib/stack-app/apps/implementations/index.js +4 -4
  301. package/dist/lib/stack-app/apps/implementations/index.js.map +1 -1
  302. package/dist/lib/stack-app/apps/implementations/redirect-page-urls.js +8 -8
  303. package/dist/lib/stack-app/apps/implementations/redirect-page-urls.js.map +1 -1
  304. package/dist/lib/stack-app/apps/implementations/server-app-impl.js +70 -70
  305. package/dist/lib/stack-app/apps/implementations/server-app-impl.js.map +1 -1
  306. package/dist/lib/stack-app/apps/implementations/session-replay.d.ts.map +1 -1
  307. package/dist/lib/stack-app/apps/implementations/session-replay.js +13 -12
  308. package/dist/lib/stack-app/apps/implementations/session-replay.js.map +1 -1
  309. package/dist/lib/stack-app/apps/interfaces/admin-app.d.ts +4 -0
  310. package/dist/lib/stack-app/apps/interfaces/admin-app.d.ts.map +1 -1
  311. package/dist/lib/stack-app/apps/interfaces/admin-app.js +1 -0
  312. package/dist/lib/stack-app/apps/interfaces/admin-app.js.map +1 -1
  313. package/dist/lib/stack-app/apps/interfaces/client-app.d.ts +5 -0
  314. package/dist/lib/stack-app/apps/interfaces/client-app.d.ts.map +1 -1
  315. package/dist/lib/stack-app/apps/interfaces/client-app.js +1 -0
  316. package/dist/lib/stack-app/apps/interfaces/client-app.js.map +1 -1
  317. package/dist/lib/stack-app/apps/interfaces/server-app.d.ts +5 -1
  318. package/dist/lib/stack-app/apps/interfaces/server-app.d.ts.map +1 -1
  319. package/dist/lib/stack-app/apps/interfaces/server-app.js +1 -0
  320. package/dist/lib/stack-app/apps/interfaces/server-app.js.map +1 -1
  321. package/dist/lib/stack-app/common.d.ts +1 -1
  322. package/dist/lib/stack-app/common.js.map +1 -1
  323. package/dist/lib/stack-app/contact-channels/index.js.map +1 -1
  324. package/dist/lib/stack-app/email-templates/index.js.map +1 -1
  325. package/dist/lib/stack-app/internal-api-keys/index.js.map +1 -1
  326. package/dist/lib/stack-app/permissions/index.js.map +1 -1
  327. package/dist/lib/stack-app/projects/index.js.map +1 -1
  328. package/dist/lib/stack-app/teams/index.js.map +1 -1
  329. package/dist/lib/stack-app/url-targets.js +6 -6
  330. package/dist/lib/stack-app/url-targets.js.map +1 -1
  331. package/dist/lib/stack-app/url-targets.test.js +1 -1
  332. package/dist/lib/stack-app/url-targets.test.js.map +1 -1
  333. package/dist/lib/stack-app/users/index.js +3 -3
  334. package/dist/lib/stack-app/users/index.js.map +1 -1
  335. package/dist/providers/stack-context.d.ts +3 -2
  336. package/dist/providers/stack-context.d.ts.map +1 -1
  337. package/dist/providers/stack-context.js +3 -1
  338. package/dist/providers/stack-context.js.map +1 -1
  339. package/dist/providers/stack-provider-client.js +2 -2
  340. package/dist/providers/stack-provider-client.js.map +1 -1
  341. package/dist/providers/stack-provider.d.ts +6 -1
  342. package/dist/providers/stack-provider.d.ts.map +1 -1
  343. package/dist/providers/stack-provider.js +8 -1
  344. package/dist/providers/stack-provider.js.map +1 -1
  345. package/dist/providers/theme-provider.d.ts +6 -2
  346. package/dist/providers/theme-provider.d.ts.map +1 -1
  347. package/dist/providers/theme-provider.js +10 -5
  348. package/dist/providers/theme-provider.js.map +1 -1
  349. package/dist/providers/translation-provider-client.d.ts +4 -3
  350. package/dist/providers/translation-provider-client.d.ts.map +1 -1
  351. package/dist/providers/translation-provider-client.js +4 -1
  352. package/dist/providers/translation-provider-client.js.map +1 -1
  353. package/dist/providers/translation-provider.js +2 -2
  354. package/dist/providers/translation-provider.js.map +1 -1
  355. package/dist/{storage-DxMLntUt.d.ts → storage-kTmOAWHW.d.ts} +1 -1
  356. package/dist/{storage-DxMLntUt.d.ts.map → storage-kTmOAWHW.d.ts.map} +1 -1
  357. package/dist/utils/url.js +2 -2
  358. package/dist/utils/url.js.map +1 -1
  359. package/package.json +5 -5
  360. package/dist/esm/internal/deprecation-warning.d.ts +0 -1
  361. package/dist/esm/internal/deprecation-warning.js +0 -24
  362. package/dist/esm/internal/deprecation-warning.js.map +0 -1
  363. package/dist/internal/deprecation-warning.d.ts +0 -1
  364. package/dist/internal/deprecation-warning.js +0 -24
  365. package/dist/internal/deprecation-warning.js.map +0 -1
@@ -22,14 +22,24 @@ declare function useUser(options: GetUserOptions & {
22
22
  projectIdMustMatch: "internal";
23
23
  }): CurrentInternalUser | null;
24
24
  declare function useUser(options?: GetUserOptions): CurrentUser | CurrentInternalUser | null;
25
+ /**
26
+ * Returns the current Hexclave app associated with the HexclaveProvider.
27
+ *
28
+ * @returns the current Hexclave app
29
+ */
30
+ declare function useHexclaveApp<ProjectId extends string>(options?: {
31
+ projectIdMustMatch?: ProjectId;
32
+ }): StackClientApp<true, ProjectId>;
25
33
  /**
26
34
  * Returns the current Stack app associated with the StackProvider.
27
35
  *
36
+ * @deprecated Use `useHexclaveApp` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration.
37
+ *
28
38
  * @returns the current Stack app
29
39
  */
30
40
  declare function useStackApp<ProjectId extends string>(options?: {
31
41
  projectIdMustMatch?: ProjectId;
32
42
  }): StackClientApp<true, ProjectId>;
33
43
  //#endregion
34
- export { useStackApp, useUser };
44
+ export { useHexclaveApp, useStackApp, useUser };
35
45
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","names":[],"sources":["../../src/lib/hooks.tsx"],"mappings":";;;;;KAQK,cAAA,GAAiB,qBAAA;EACpB,kBAAA;AAAA;;AAHuH;;;;iBAWzG,OAAA,CAAQ,OAAA,EAAS,cAAA;EAAmB,EAAA;EAA0B,kBAAA;AAAA,IAAmC,mBAAA;AAAA,iBACjG,OAAA,CAAQ,OAAA,EAAS,cAAA;EAAmB,EAAA;AAAA,IAA6B,WAAA;AAAA,iBACjE,OAAA,CAAQ,OAAA,EAAS,cAAA;EAAmB,kBAAA;AAAA,IAAmC,mBAAA;AAAA,iBACvE,OAAA,CAAQ,OAAA,GAAU,cAAA,GAAiB,WAAA,GAAc,mBAAA;;AAFjE;;;;iBAoBgB,WAAA,0BAAA,CAAsC,OAAA;EAAW,kBAAA,GAAqB,SAAA;AAAA,IAAmB,cAAA,OAAqB,SAAA"}
1
+ {"version":3,"file":"hooks.d.ts","names":[],"sources":["../../src/lib/hooks.tsx"],"mappings":";;;;;KAQK,cAAA,GAAiB,qBAAA;EACpB,kBAAA;AAAA;;AAHuH;;;;iBAWzG,OAAA,CAAQ,OAAA,EAAS,cAAA;EAAmB,EAAA;EAA0B,kBAAA;AAAA,IAAmC,mBAAA;AAAA,iBACjG,OAAA,CAAQ,OAAA,EAAS,cAAA;EAAmB,EAAA;AAAA,IAA6B,WAAA;AAAA,iBACjE,OAAA,CAAQ,OAAA,EAAS,cAAA;EAAmB,kBAAA;AAAA,IAAmC,mBAAA;AAAA,iBACvE,OAAA,CAAQ,OAAA,GAAU,cAAA,GAAiB,WAAA,GAAc,mBAAA;;AAFjE;;;;iBAoBgB,cAAA,0BAAA,CAAyC,OAAA;EAAW,kBAAA,GAAqB,SAAA;AAAA,IAAmB,cAAA,OAAqB,SAAA;;;;AAnBjI;;;;iBAyCgB,WAAA,0BAAA,CAAsC,OAAA;EAAW,kBAAA,GAAqB,SAAA;AAAA,IAAmB,cAAA,OAAqB,SAAA"}
package/dist/lib/hooks.js CHANGED
@@ -5,26 +5,37 @@ let ___providers_stack_context_js = require("../providers/stack-context.js");
5
5
 
6
6
  //#region src/lib/hooks.tsx
7
7
  function useUser(options = {}) {
8
- const stackApp = useStackApp(options);
9
- if (options.projectIdMustMatch && stackApp.projectId !== options.projectIdMustMatch) throw new Error("Unexpected project ID in useStackApp: " + stackApp.projectId);
8
+ const stackApp = useHexclaveApp(options);
9
+ if (options.projectIdMustMatch && stackApp.projectId !== options.projectIdMustMatch) throw new Error("Unexpected project ID in useHexclaveApp: " + stackApp.projectId);
10
10
  if (options.projectIdMustMatch === "internal") return stackApp.useUser(options);
11
11
  else return stackApp.useUser(options);
12
12
  }
13
13
  /**
14
- * Returns the current Stack app associated with the StackProvider.
14
+ * Returns the current Hexclave app associated with the HexclaveProvider.
15
15
  *
16
- * @returns the current Stack app
16
+ * @returns the current Hexclave app
17
17
  */
18
- function useStackApp(options = {}) {
19
- if (typeof react.useContext !== "function") throw new Error("useStackApp() can only be used in a React Client Component. Make sure you're not calling it from a Server Component, or any other environment.");
18
+ function useHexclaveApp(options = {}) {
19
+ if (typeof react.useContext !== "function") throw new Error("useHexclaveApp() can only be used in a React Client Component. Make sure you're not calling it from a Server Component, or any other environment.");
20
20
  const context = (0, react.useContext)(___providers_stack_context_js.StackContext);
21
- if (context === null) throw new Error("useStackApp must be used within a StackProvider");
21
+ if (context === null) throw new Error("useHexclaveApp must be used within a HexclaveProvider");
22
22
  const stackApp = context.app;
23
- if (options.projectIdMustMatch && stackApp.projectId !== options.projectIdMustMatch) throw new Error("Unexpected project ID in useStackApp: " + stackApp.projectId);
23
+ if (options.projectIdMustMatch && stackApp.projectId !== options.projectIdMustMatch) throw new Error("Unexpected project ID in useHexclaveApp: " + stackApp.projectId);
24
24
  return stackApp;
25
25
  }
26
+ /**
27
+ * Returns the current Stack app associated with the StackProvider.
28
+ *
29
+ * @deprecated Use `useHexclaveApp` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration.
30
+ *
31
+ * @returns the current Stack app
32
+ */
33
+ function useStackApp(options = {}) {
34
+ return useHexclaveApp(options);
35
+ }
26
36
 
27
37
  //#endregion
38
+ exports.useHexclaveApp = useHexclaveApp;
28
39
  exports.useStackApp = useStackApp;
29
40
  exports.useUser = useUser;
30
41
  //# sourceMappingURL=hooks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.js","names":["useContext","StackContext"],"sources":["../../src/lib/hooks.tsx"],"sourcesContent":["\n//===========================================\n// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY, INSTEAD EDIT THE CORRESPONDING FILE IN packages/template\n//===========================================\nimport { useContext } from \"react\";\nimport { StackContext } from \"../providers/stack-context\";\nimport type { GetUserOptions as AppGetUserOptions, CurrentInternalUser, CurrentUser, StackClientApp } from \"./stack-app\";\n\ntype GetUserOptions = AppGetUserOptions<true> & {\n projectIdMustMatch?: string,\n};\n\n/**\n * Returns the current user object. Equivalent to `useStackApp().useUser()`.\n *\n * @returns the current user\n */\nexport function useUser(options: GetUserOptions & { or: 'redirect' | 'throw', projectIdMustMatch: \"internal\" }): CurrentInternalUser;\nexport function useUser(options: GetUserOptions & { or: 'redirect' | 'throw' }): CurrentUser;\nexport function useUser(options: GetUserOptions & { projectIdMustMatch: \"internal\" }): CurrentInternalUser | null;\nexport function useUser(options?: GetUserOptions): CurrentUser | CurrentInternalUser | null;\nexport function useUser(options: GetUserOptions = {}): CurrentUser | CurrentInternalUser | null {\n const stackApp = useStackApp(options);\n if (options.projectIdMustMatch && stackApp.projectId !== options.projectIdMustMatch) {\n throw new Error(\"Unexpected project ID in useStackApp: \" + stackApp.projectId);\n }\n if (options.projectIdMustMatch === \"internal\") {\n return stackApp.useUser(options) as CurrentInternalUser;\n } else {\n return stackApp.useUser(options) as CurrentUser;\n }\n}\n\n/**\n * Returns the current Stack app associated with the StackProvider.\n *\n * @returns the current Stack app\n */\nexport function useStackApp<ProjectId extends string>(options: { projectIdMustMatch?: ProjectId } = {}): StackClientApp<true, ProjectId> {\n if (typeof useContext !== \"function\") {\n throw new Error(\"useStackApp() can only be used in a React Client Component. Make sure you're not calling it from a Server Component, or any other environment.\");\n }\n const context = useContext(StackContext);\n if (context === null) {\n throw new Error(\"useStackApp must be used within a StackProvider\");\n }\n const stackApp = context.app;\n if (options.projectIdMustMatch && stackApp.projectId !== options.projectIdMustMatch) {\n throw new Error(\"Unexpected project ID in useStackApp: \" + stackApp.projectId);\n }\n return stackApp as StackClientApp<true, ProjectId>;\n}\n"],"mappings":";;;;;;AAqBA,SAAgB,QAAQ,UAA0B,EAAE,EAA4C;CAC9F,MAAM,WAAW,YAAY,QAAQ;AACrC,KAAI,QAAQ,sBAAsB,SAAS,cAAc,QAAQ,mBAC/D,OAAM,IAAI,MAAM,2CAA2C,SAAS,UAAU;AAEhF,KAAI,QAAQ,uBAAuB,WACjC,QAAO,SAAS,QAAQ,QAAQ;KAEhC,QAAO,SAAS,QAAQ,QAAQ;;;;;;;AASpC,SAAgB,YAAsC,UAA8C,EAAE,EAAmC;AACvI,KAAI,OAAOA,qBAAe,WACxB,OAAM,IAAI,MAAM,iJAAiJ;CAEnK,MAAM,gCAAqBC,2CAAa;AACxC,KAAI,YAAY,KACd,OAAM,IAAI,MAAM,kDAAkD;CAEpE,MAAM,WAAW,QAAQ;AACzB,KAAI,QAAQ,sBAAsB,SAAS,cAAc,QAAQ,mBAC/D,OAAM,IAAI,MAAM,2CAA2C,SAAS,UAAU;AAEhF,QAAO"}
1
+ {"version":3,"file":"hooks.js","names":["useContext","StackContext"],"sources":["../../src/lib/hooks.tsx"],"sourcesContent":["\n//===========================================\n// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY, INSTEAD EDIT THE CORRESPONDING FILE IN packages/template\n//===========================================\nimport { useContext } from \"react\";\nimport { StackContext } from \"../providers/stack-context\";\nimport type { GetUserOptions as AppGetUserOptions, CurrentInternalUser, CurrentUser, StackClientApp } from \"./stack-app\";\n\ntype GetUserOptions = AppGetUserOptions<true> & {\n projectIdMustMatch?: string,\n};\n\n/**\n * Returns the current user object. Equivalent to `useStackApp().useUser()`.\n *\n * @returns the current user\n */\nexport function useUser(options: GetUserOptions & { or: 'redirect' | 'throw', projectIdMustMatch: \"internal\" }): CurrentInternalUser;\nexport function useUser(options: GetUserOptions & { or: 'redirect' | 'throw' }): CurrentUser;\nexport function useUser(options: GetUserOptions & { projectIdMustMatch: \"internal\" }): CurrentInternalUser | null;\nexport function useUser(options?: GetUserOptions): CurrentUser | CurrentInternalUser | null;\nexport function useUser(options: GetUserOptions = {}): CurrentUser | CurrentInternalUser | null {\n const stackApp = useHexclaveApp(options);\n if (options.projectIdMustMatch && stackApp.projectId !== options.projectIdMustMatch) {\n throw new Error(\"Unexpected project ID in useHexclaveApp: \" + stackApp.projectId);\n }\n if (options.projectIdMustMatch === \"internal\") {\n return stackApp.useUser(options) as CurrentInternalUser;\n } else {\n return stackApp.useUser(options) as CurrentUser;\n }\n}\n\n/**\n * Returns the current Hexclave app associated with the HexclaveProvider.\n *\n * @returns the current Hexclave app\n */\nexport function useHexclaveApp<ProjectId extends string>(options: { projectIdMustMatch?: ProjectId } = {}): StackClientApp<true, ProjectId> {\n if (typeof useContext !== \"function\") {\n throw new Error(\"useHexclaveApp() can only be used in a React Client Component. Make sure you're not calling it from a Server Component, or any other environment.\");\n }\n const context = useContext(StackContext);\n if (context === null) {\n throw new Error(\"useHexclaveApp must be used within a HexclaveProvider\");\n }\n const stackApp = context.app;\n if (options.projectIdMustMatch && stackApp.projectId !== options.projectIdMustMatch) {\n throw new Error(\"Unexpected project ID in useHexclaveApp: \" + stackApp.projectId);\n }\n return stackApp as StackClientApp<true, ProjectId>;\n}\n\n/**\n * Returns the current Stack app associated with the StackProvider.\n *\n * @deprecated Use `useHexclaveApp` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration.\n *\n * @returns the current Stack app\n */\nexport function useStackApp<ProjectId extends string>(options: { projectIdMustMatch?: ProjectId } = {}): StackClientApp<true, ProjectId> {\n return useHexclaveApp(options);\n}\n"],"mappings":";;;;;;AAqBA,SAAgB,QAAQ,UAA0B,EAAE,EAA4C;CAC9F,MAAM,WAAW,eAAe,QAAQ;AACxC,KAAI,QAAQ,sBAAsB,SAAS,cAAc,QAAQ,mBAC/D,OAAM,IAAI,MAAM,8CAA8C,SAAS,UAAU;AAEnF,KAAI,QAAQ,uBAAuB,WACjC,QAAO,SAAS,QAAQ,QAAQ;KAEhC,QAAO,SAAS,QAAQ,QAAQ;;;;;;;AASpC,SAAgB,eAAyC,UAA8C,EAAE,EAAmC;AAC1I,KAAI,OAAOA,qBAAe,WACxB,OAAM,IAAI,MAAM,oJAAoJ;CAEtK,MAAM,gCAAqBC,2CAAa;AACxC,KAAI,YAAY,KACd,OAAM,IAAI,MAAM,wDAAwD;CAE1E,MAAM,WAAW,QAAQ;AACzB,KAAI,QAAQ,sBAAsB,SAAS,cAAc,QAAQ,mBAC/D,OAAM,IAAI,MAAM,8CAA8C,SAAS,UAAU;AAEnF,QAAO;;;;;;;;;AAUT,SAAgB,YAAsC,UAA8C,EAAE,EAAmC;AACvI,QAAO,eAAe,QAAQ"}
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_chunk = require('../../../chunk-BE-pF4vm.js');
3
- let _stackframe_stack_shared_dist_utils_objects = require("@hexclave/shared/dist/utils/objects");
3
+ let _hexclave_shared_dist_utils_objects = require("@hexclave/shared/dist/utils/objects");
4
4
 
5
5
  //#region src/lib/stack-app/api-keys/index.ts
6
6
  async function apiKeyCreationOptionsToCrud(type, userIdOrTeamId, options) {
@@ -12,7 +12,7 @@ async function apiKeyCreationOptionsToCrud(type, userIdOrTeamId, options) {
12
12
  };
13
13
  }
14
14
  async function apiKeyUpdateOptionsToCrud(type, options) {
15
- return (0, _stackframe_stack_shared_dist_utils_objects.filterUndefined)({
15
+ return (0, _hexclave_shared_dist_utils_objects.filterUndefined)({
16
16
  description: options.description,
17
17
  expires_at_millis: options.expiresAt == null ? options.expiresAt : options.expiresAt.getTime(),
18
18
  revoked: options.revoked
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/lib/stack-app/api-keys/index.ts"],"sourcesContent":["\n//===========================================\n// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY, INSTEAD EDIT THE CORRESPONDING FILE IN packages/template\n//===========================================\nimport { TeamApiKeysCrud, UserApiKeysCrud, teamApiKeysCreateInputSchema, userApiKeysCreateInputSchema } from \"@stackframe/stack-shared/dist/interface/crud/project-api-keys\";\nimport { filterUndefined } from \"@stackframe/stack-shared/dist/utils/objects\";\nimport { IfAndOnlyIf, PrettifyType } from \"@stackframe/stack-shared/dist/utils/types\";\nimport type * as yup from \"yup\";\n\nexport type ApiKeyType = \"user\" | \"team\";\n\nexport type ApiKey<Type extends ApiKeyType = ApiKeyType, IsFirstView extends boolean = false> =\n & {\n id: string,\n description: string,\n expiresAt?: Date,\n manuallyRevokedAt?: Date | null,\n createdAt: Date,\n value: IfAndOnlyIf<IsFirstView, true, string, { lastFour: string }>,\n update(options: ApiKeyUpdateOptions<Type>): Promise<void>,\n revoke: () => Promise<void>,\n isValid: () => boolean,\n whyInvalid: () => \"manually-revoked\" | \"expired\" | null,\n }\n & (\n | (\"user\" extends Type ? { type: \"user\", userId: string } : never)\n | (\"team\" extends Type ? { type: \"team\", teamId: string } : never)\n );\n\nexport type UserApiKeyFirstView = PrettifyType<ApiKey<\"user\", true>>;\nexport type UserApiKey = PrettifyType<ApiKey<\"user\", false>>;\n\nexport type TeamApiKeyFirstView = PrettifyType<ApiKey<\"team\", true>>;\nexport type TeamApiKey = PrettifyType<ApiKey<\"team\", false>>;\n\nexport type ApiKeyCreationOptions<Type extends ApiKeyType = ApiKeyType> =\n & {\n description: string,\n expiresAt: Date | null,\n /**\n * Whether the API key should be considered public. A public API key will not be detected by the secret scanner, which\n * automatically revokes API keys when it detects that they may have been exposed to the public.\n */\n isPublic?: boolean,\n };\nexport function apiKeyCreationOptionsToCrud(type: \"user\", userId: string, options: ApiKeyCreationOptions<\"user\">): Promise<yup.InferType<typeof userApiKeysCreateInputSchema>>;\nexport function apiKeyCreationOptionsToCrud(type: \"team\", teamId: string, options: ApiKeyCreationOptions<\"team\">): Promise<yup.InferType<typeof teamApiKeysCreateInputSchema>>;\nexport function apiKeyCreationOptionsToCrud(type: ApiKeyType, userIdOrTeamId: string, options: ApiKeyCreationOptions): Promise<yup.InferType<typeof userApiKeysCreateInputSchema> | yup.InferType<typeof teamApiKeysCreateInputSchema>>;\nexport async function apiKeyCreationOptionsToCrud(type: ApiKeyType, userIdOrTeamId: string, options: ApiKeyCreationOptions): Promise<yup.InferType<typeof userApiKeysCreateInputSchema> | yup.InferType<typeof teamApiKeysCreateInputSchema>> {\n return {\n description: options.description,\n expires_at_millis: options.expiresAt == null ? options.expiresAt : options.expiresAt.getTime(),\n is_public: options.isPublic,\n ...(type === \"user\" ? { user_id: userIdOrTeamId } : { team_id: userIdOrTeamId }),\n };\n}\n\n\nexport type ApiKeyUpdateOptions<Type extends ApiKeyType = ApiKeyType> = {\n description?: string,\n expiresAt?: Date | null,\n revoked?: boolean,\n};\nexport function apiKeyUpdateOptionsToCrud(type: \"user\", options: ApiKeyUpdateOptions<\"user\">): Promise<UserApiKeysCrud[\"Client\"][\"Update\"]>;\nexport function apiKeyUpdateOptionsToCrud(type: \"team\", options: ApiKeyUpdateOptions<\"team\">): Promise<TeamApiKeysCrud[\"Client\"][\"Update\"]>;\nexport function apiKeyUpdateOptionsToCrud(type: ApiKeyType, options: ApiKeyUpdateOptions): Promise<UserApiKeysCrud[\"Client\"][\"Update\"] | TeamApiKeysCrud[\"Client\"][\"Update\"]>;\nexport async function apiKeyUpdateOptionsToCrud(type: ApiKeyType, options: ApiKeyUpdateOptions): Promise<UserApiKeysCrud[\"Client\"][\"Update\"] | TeamApiKeysCrud[\"Client\"][\"Update\"]> {\n return filterUndefined({\n description: options.description,\n expires_at_millis: options.expiresAt == null ? options.expiresAt : options.expiresAt.getTime(),\n revoked: options.revoked,\n });\n}\n"],"mappings":";;;;;AAgDA,eAAsB,4BAA4B,MAAkB,gBAAwB,SAAkJ;AAC5O,QAAO;EACL,aAAa,QAAQ;EACrB,mBAAmB,QAAQ,aAAa,OAAO,QAAQ,YAAY,QAAQ,UAAU,SAAS;EAC9F,WAAW,QAAQ;EACnB,GAAI,SAAS,SAAS,EAAE,SAAS,gBAAgB,GAAG,EAAE,SAAS,gBAAgB;EAChF;;AAYH,eAAsB,0BAA0B,MAAkB,SAAkH;AAClL,yEAAuB;EACrB,aAAa,QAAQ;EACrB,mBAAmB,QAAQ,aAAa,OAAO,QAAQ,YAAY,QAAQ,UAAU,SAAS;EAC9F,SAAS,QAAQ;EAClB,CAAC"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/lib/stack-app/api-keys/index.ts"],"sourcesContent":["\n//===========================================\n// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY, INSTEAD EDIT THE CORRESPONDING FILE IN packages/template\n//===========================================\nimport { TeamApiKeysCrud, UserApiKeysCrud, teamApiKeysCreateInputSchema, userApiKeysCreateInputSchema } from \"@hexclave/shared/dist/interface/crud/project-api-keys\";\nimport { filterUndefined } from \"@hexclave/shared/dist/utils/objects\";\nimport { IfAndOnlyIf, PrettifyType } from \"@hexclave/shared/dist/utils/types\";\nimport type * as yup from \"yup\";\n\nexport type ApiKeyType = \"user\" | \"team\";\n\nexport type ApiKey<Type extends ApiKeyType = ApiKeyType, IsFirstView extends boolean = false> =\n & {\n id: string,\n description: string,\n expiresAt?: Date,\n manuallyRevokedAt?: Date | null,\n createdAt: Date,\n value: IfAndOnlyIf<IsFirstView, true, string, { lastFour: string }>,\n update(options: ApiKeyUpdateOptions<Type>): Promise<void>,\n revoke: () => Promise<void>,\n isValid: () => boolean,\n whyInvalid: () => \"manually-revoked\" | \"expired\" | null,\n }\n & (\n | (\"user\" extends Type ? { type: \"user\", userId: string } : never)\n | (\"team\" extends Type ? { type: \"team\", teamId: string } : never)\n );\n\nexport type UserApiKeyFirstView = PrettifyType<ApiKey<\"user\", true>>;\nexport type UserApiKey = PrettifyType<ApiKey<\"user\", false>>;\n\nexport type TeamApiKeyFirstView = PrettifyType<ApiKey<\"team\", true>>;\nexport type TeamApiKey = PrettifyType<ApiKey<\"team\", false>>;\n\nexport type ApiKeyCreationOptions<Type extends ApiKeyType = ApiKeyType> =\n & {\n description: string,\n expiresAt: Date | null,\n /**\n * Whether the API key should be considered public. A public API key will not be detected by the secret scanner, which\n * automatically revokes API keys when it detects that they may have been exposed to the public.\n */\n isPublic?: boolean,\n };\nexport function apiKeyCreationOptionsToCrud(type: \"user\", userId: string, options: ApiKeyCreationOptions<\"user\">): Promise<yup.InferType<typeof userApiKeysCreateInputSchema>>;\nexport function apiKeyCreationOptionsToCrud(type: \"team\", teamId: string, options: ApiKeyCreationOptions<\"team\">): Promise<yup.InferType<typeof teamApiKeysCreateInputSchema>>;\nexport function apiKeyCreationOptionsToCrud(type: ApiKeyType, userIdOrTeamId: string, options: ApiKeyCreationOptions): Promise<yup.InferType<typeof userApiKeysCreateInputSchema> | yup.InferType<typeof teamApiKeysCreateInputSchema>>;\nexport async function apiKeyCreationOptionsToCrud(type: ApiKeyType, userIdOrTeamId: string, options: ApiKeyCreationOptions): Promise<yup.InferType<typeof userApiKeysCreateInputSchema> | yup.InferType<typeof teamApiKeysCreateInputSchema>> {\n return {\n description: options.description,\n expires_at_millis: options.expiresAt == null ? options.expiresAt : options.expiresAt.getTime(),\n is_public: options.isPublic,\n ...(type === \"user\" ? { user_id: userIdOrTeamId } : { team_id: userIdOrTeamId }),\n };\n}\n\n\nexport type ApiKeyUpdateOptions<Type extends ApiKeyType = ApiKeyType> = {\n description?: string,\n expiresAt?: Date | null,\n revoked?: boolean,\n};\nexport function apiKeyUpdateOptionsToCrud(type: \"user\", options: ApiKeyUpdateOptions<\"user\">): Promise<UserApiKeysCrud[\"Client\"][\"Update\"]>;\nexport function apiKeyUpdateOptionsToCrud(type: \"team\", options: ApiKeyUpdateOptions<\"team\">): Promise<TeamApiKeysCrud[\"Client\"][\"Update\"]>;\nexport function apiKeyUpdateOptionsToCrud(type: ApiKeyType, options: ApiKeyUpdateOptions): Promise<UserApiKeysCrud[\"Client\"][\"Update\"] | TeamApiKeysCrud[\"Client\"][\"Update\"]>;\nexport async function apiKeyUpdateOptionsToCrud(type: ApiKeyType, options: ApiKeyUpdateOptions): Promise<UserApiKeysCrud[\"Client\"][\"Update\"] | TeamApiKeysCrud[\"Client\"][\"Update\"]> {\n return filterUndefined({\n description: options.description,\n expires_at_millis: options.expiresAt == null ? options.expiresAt : options.expiresAt.getTime(),\n revoked: options.revoked,\n });\n}\n"],"mappings":";;;;;AAgDA,eAAsB,4BAA4B,MAAkB,gBAAwB,SAAkJ;AAC5O,QAAO;EACL,aAAa,QAAQ;EACrB,mBAAmB,QAAQ,aAAa,OAAO,QAAQ,YAAY,QAAQ,UAAU,SAAS;EAC9F,WAAW,QAAQ;EACnB,GAAI,SAAS,SAAS,EAAE,SAAS,gBAAgB,GAAG,EAAE,SAAS,gBAAgB;EAChF;;AAYH,eAAsB,0BAA0B,MAAkB,SAAkH;AAClL,iEAAuB;EACrB,aAAa,QAAQ;EACrB,mBAAmB,QAAQ,aAAa,OAAO,QAAQ,YAAY,QAAQ,UAAU,SAAS;EAC9F,SAAS,QAAQ;EAClB,CAAC"}
@@ -10,17 +10,17 @@ import { StackClientApp } from "../interfaces/client-app.js";
10
10
  import { AdminEmailTemplate } from "../../email-templates/index.js";
11
11
  import { _StackServerAppImplIncomplete } from "./server-app-impl.js";
12
12
  import { HexclaveAdminInterface } from "@hexclave/shared";
13
- import * as _stackframe_stack_shared_dist_interface_crud_current_user0 from "@hexclave/shared/dist/interface/crud/current-user";
13
+ import * as _hexclave_shared_dist_interface_crud_current_user0 from "@hexclave/shared/dist/interface/crud/current-user";
14
14
  import { Result } from "@hexclave/shared/dist/utils/results";
15
- import * as _stackframe_stack_shared_dist_interface_handler_urls0 from "@hexclave/shared/dist/interface/handler-urls";
16
- import * as _stackframe_stack_shared_dist_interface_client_interface0 from "@hexclave/shared/dist/interface/client-interface";
15
+ import * as _hexclave_shared_dist_interface_handler_urls0 from "@hexclave/shared/dist/interface/handler-urls";
16
+ import * as _hexclave_shared_dist_interface_client_interface0 from "@hexclave/shared/dist/interface/client-interface";
17
17
  import { RestrictedReason } from "@hexclave/shared/dist/schema-fields";
18
18
  import { ProjectsCrud } from "@hexclave/shared/dist/interface/crud/projects";
19
19
  import { CompleteConfig } from "@hexclave/shared/dist/config/schema";
20
20
  import { AnalyticsQueryOptions, AnalyticsQueryResponse } from "@hexclave/shared/dist/interface/crud/analytics";
21
21
  import { AdminGetSessionReplayChunkEventsResponse } from "@hexclave/shared/dist/interface/crud/session-replays";
22
22
  import { Transaction, TransactionType } from "@hexclave/shared/dist/interface/crud/transactions";
23
- import * as _stackframe_stack_shared_dist_sessions0 from "@hexclave/shared/dist/sessions";
23
+ import * as _hexclave_shared_dist_sessions0 from "@hexclave/shared/dist/sessions";
24
24
  import { MoneyAmount } from "@hexclave/shared/dist/utils/currency-constants";
25
25
  import { InternalApiKeyCreateCrudResponse } from "@hexclave/shared/dist/interface/admin-interface";
26
26
  import { InternalApiKeysCrud } from "@hexclave/shared/dist/interface/crud/internal-api-keys";
@@ -138,7 +138,7 @@ declare class _StackAdminAppImplIncomplete<HasTokenStore extends boolean, Projec
138
138
  extraRequestHeaders?: Record<string, string>;
139
139
  projectId?: ProjectId | undefined;
140
140
  publishableClientKey?: string;
141
- urls?: _stackframe_stack_shared_dist_interface_handler_urls0.HandlerUrlOptions;
141
+ urls?: _hexclave_shared_dist_interface_handler_urls0.HandlerUrlOptions;
142
142
  oauthScopesOnSignIn?: Partial<OAuthScopesOnSignIn>;
143
143
  tokenStore?: TokenStoreInit<HasTokenStore> | undefined;
144
144
  redirectMethod?: RedirectMethod;
@@ -157,7 +157,7 @@ declare class _StackAdminAppImplIncomplete<HasTokenStore extends boolean, Projec
157
157
  } & {
158
158
  uniqueIdentifier: string;
159
159
  };
160
- setCurrentUser: (userJsonPromise: Promise<_stackframe_stack_shared_dist_interface_crud_current_user0.CurrentUserCrud["Client"]["Read"] | null>) => void;
160
+ setCurrentUser: (userJsonPromise: Promise<_hexclave_shared_dist_interface_crud_current_user0.CurrentUserCrud["Client"]["Read"] | null>) => void;
161
161
  getConstructorOptions: () => {
162
162
  baseUrl?: string | {
163
163
  browser: string;
@@ -166,7 +166,7 @@ declare class _StackAdminAppImplIncomplete<HasTokenStore extends boolean, Projec
166
166
  extraRequestHeaders?: Record<string, string>;
167
167
  projectId?: ProjectId | undefined;
168
168
  publishableClientKey?: string;
169
- urls?: _stackframe_stack_shared_dist_interface_handler_urls0.HandlerUrlOptions;
169
+ urls?: _hexclave_shared_dist_interface_handler_urls0.HandlerUrlOptions;
170
170
  oauthScopesOnSignIn?: Partial<OAuthScopesOnSignIn>;
171
171
  tokenStore?: TokenStoreInit<HasTokenStore> | undefined;
172
172
  redirectMethod?: RedirectMethod;
@@ -189,18 +189,18 @@ declare class _StackAdminAppImplIncomplete<HasTokenStore extends boolean, Projec
189
189
  sendAnalyticsEventBatch: (body: string, options: {
190
190
  keepalive: boolean;
191
191
  }) => Promise<Result<Response, Error>>;
192
- addRequestListener: (listener: _stackframe_stack_shared_dist_interface_client_interface0.RequestListener) => () => void;
192
+ addRequestListener: (listener: _hexclave_shared_dist_interface_client_interface0.RequestListener) => () => void;
193
193
  sendRequest: (path: string, requestOptions: RequestInit, requestType?: "client" | "server" | "admin") => Promise<Response & {
194
194
  usedTokens: {
195
- accessToken: _stackframe_stack_shared_dist_sessions0.AccessToken;
196
- refreshToken: _stackframe_stack_shared_dist_sessions0.RefreshToken | null;
195
+ accessToken: _hexclave_shared_dist_sessions0.AccessToken;
196
+ refreshToken: _hexclave_shared_dist_sessions0.RefreshToken | null;
197
197
  } | null;
198
198
  }>;
199
199
  getRedirectMethod: () => RedirectMethod;
200
200
  redirectToUrl: (url: string | URL, options?: {
201
201
  replace?: boolean;
202
202
  } | undefined) => Promise<void>;
203
- redirectToHandler: (handlerName: keyof _stackframe_stack_shared_dist_interface_handler_urls0.HandlerUrls, options?: RedirectToOptions) => Promise<void>;
203
+ redirectToHandler: (handlerName: keyof _hexclave_shared_dist_interface_handler_urls0.HandlerUrls, options?: RedirectToOptions) => Promise<void>;
204
204
  refreshOwnedProjects: () => Promise<void>;
205
205
  signInWithTokens: (tokens: {
206
206
  accessToken: string;
@@ -1 +1 @@
1
- {"version":3,"file":"admin-app-impl.d.ts","names":[],"sources":["../../../../../src/lib/stack-app/apps/implementations/admin-app-impl.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2Ea,4BAAA,kEAA8F,6BAAA,CAA8B,aAAA,EAAe,SAAA,aAAsB,aAAA,CAAc,aAAA,EAAe,SAAA;EAAA,UACvL,UAAA,EAAY,sBAAA;EAAA,iBAEb,kBAAA;EAAA,iBAGA,qBAAA;EAAA,iBAIA,qBAAA;EAAA,iBAGA,sBAAA;EAAA,iBAGA,yBAAA;EAAA,iBAGA,sBAAA;EAAA,iBAGA,oCAAA;EAAA,iBAGA,uCAAA;EAAA,iBAGA,eAAA;EAAA,iBAGA,aAAA;EAAA,iBAGA,kBAAA;EAAA,iBAGA,uBAAA;EAAA,iBAGA,kBAAA;EAAA,iBAGA,qCAAA;EAAA,iBAGA,qBAAA;EAAA,iBAGA,uBAAA;EAAA,iBAUA,kBAAA;cAIL,OAAA,EAAS,+BAAA,CAAgC,aAAA,EAAe,SAAA,GAAY,YAAA;IAAiB,gBAAA;IAA2B,WAAA;IAAsB,SAAA,GAAY,sBAAA;EAAA;EA2B9J,oBAAA,CAAqB,IAAA;IAAQ,aAAA;EAAA,IAA0B,cAAA;EAIvD,0BAAA,CAA2B,IAAA,EAAM,YAAA,mBAA+B,SAAA,QAAiB,OAAA,SAAgB,iBAAA;EAUjG,qBAAA,CAAsB,IAAA,EAAM,YAAA,mBAA+B,SAAA,QAAiB,OAAA,SAAgB,YAAA;EA6I5F,2BAAA,CAA4B,IAAA,EAAM,iBAAA,oBAAqC,kBAAA;EASxD,UAAA,CAA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vm.js');
3
- let _stackframe_stack_shared_dist_utils_errors = require("@hexclave/shared/dist/utils/errors");
3
+ let _hexclave_shared_dist_utils_errors = require("@hexclave/shared/dist/utils/errors");
4
4
  let react = require("react");
5
- let _stackframe_stack_shared = require("@hexclave/shared");
6
- let _stackframe_stack_shared_dist_utils_objects = require("@hexclave/shared/dist/utils/objects");
7
- let _stackframe_stack_shared_dist_utils_results = require("@hexclave/shared/dist/utils/results");
5
+ let _hexclave_shared = require("@hexclave/shared");
6
+ let _hexclave_shared_dist_utils_objects = require("@hexclave/shared/dist/utils/objects");
7
+ let _hexclave_shared_dist_utils_results = require("@hexclave/shared/dist/utils/results");
8
8
  let __common_js = require("./common.js");
9
- let _stackframe_stack_shared_dist_helpers_production_mode = require("@hexclave/shared/dist/helpers/production-mode");
9
+ let _hexclave_shared_dist_helpers_production_mode = require("@hexclave/shared/dist/helpers/production-mode");
10
10
  let ______common_js = require("../../common.js");
11
11
  let ______internal_api_keys_index_js = require("../../internal-api-keys/index.js");
12
12
  let ______permissions_index_js = require("../../permissions/index.js");
@@ -52,7 +52,7 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
52
52
  ...extraOptions,
53
53
  interface: extraOptions?.interface ?? (() => {
54
54
  const apiUrls = (0, __common_js.resolveApiUrls)(resolvedOptions.baseUrl);
55
- return new _stackframe_stack_shared.HexclaveAdminInterface({
55
+ return new _hexclave_shared.HexclaveAdminInterface({
56
56
  getBaseUrl: () => apiUrls()[0],
57
57
  getApiUrls: apiUrls,
58
58
  projectId: resolvedOptions.projectId ?? (0, __common_js.getDefaultProjectId)(),
@@ -145,14 +145,14 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
145
145
  return JSON.parse(data.config_string);
146
146
  }
147
147
  _adminOwnedProjectFromCrud(data, onRefresh) {
148
- if (this._tokenStoreInit !== null) throw new _stackframe_stack_shared_dist_utils_errors.HexclaveAssertionError("Owned apps must always have tokenStore === null — did you not create this project with app._createOwnedApp()?");
148
+ if (this._tokenStoreInit !== null) throw new _hexclave_shared_dist_utils_errors.HexclaveAssertionError("Owned apps must always have tokenStore === null — did you not create this project with app._createOwnedApp()?");
149
149
  return {
150
150
  ...this._adminProjectFromCrud(data, onRefresh),
151
151
  app: this
152
152
  };
153
153
  }
154
154
  _adminProjectFromCrud(data, onRefresh) {
155
- if (data.id !== this.projectId) throw new _stackframe_stack_shared_dist_utils_errors.HexclaveAssertionError(`The project ID of the provided project JSON (${data.id}) does not match the project ID of the app (${this.projectId})!`);
155
+ if (data.id !== this.projectId) throw new _hexclave_shared_dist_utils_errors.HexclaveAssertionError(`The project ID of the provided project JSON (${data.id}) does not match the project ID of the app (${this.projectId})!`);
156
156
  const app = this;
157
157
  return {
158
158
  id: data.id,
@@ -184,20 +184,20 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
184
184
  } : {
185
185
  id: p.id,
186
186
  type: "standard",
187
- clientId: p.client_id ?? (0, _stackframe_stack_shared_dist_utils_errors.throwErr)("Client ID is missing"),
188
- clientSecret: p.client_secret ?? (0, _stackframe_stack_shared_dist_utils_errors.throwErr)("Client secret is missing"),
187
+ clientId: p.client_id ?? (0, _hexclave_shared_dist_utils_errors.throwErr)("Client ID is missing"),
188
+ clientSecret: p.client_secret ?? (0, _hexclave_shared_dist_utils_errors.throwErr)("Client secret is missing"),
189
189
  facebookConfigId: p.facebook_config_id,
190
190
  microsoftTenantId: p.microsoft_tenant_id,
191
191
  appleBundleIds: p.apple_bundle_ids
192
192
  }),
193
193
  emailConfig: data.config.email_config.type === "shared" ? { type: "shared" } : {
194
194
  type: "standard",
195
- host: data.config.email_config.host ?? (0, _stackframe_stack_shared_dist_utils_errors.throwErr)("Email host is missing"),
196
- port: data.config.email_config.port ?? (0, _stackframe_stack_shared_dist_utils_errors.throwErr)("Email port is missing"),
197
- username: data.config.email_config.username ?? (0, _stackframe_stack_shared_dist_utils_errors.throwErr)("Email username is missing"),
198
- password: data.config.email_config.password ?? (0, _stackframe_stack_shared_dist_utils_errors.throwErr)("Email password is missing"),
199
- senderName: data.config.email_config.sender_name ?? (0, _stackframe_stack_shared_dist_utils_errors.throwErr)("Email sender name is missing"),
200
- senderEmail: data.config.email_config.sender_email ?? (0, _stackframe_stack_shared_dist_utils_errors.throwErr)("Email sender email is missing")
195
+ host: data.config.email_config.host ?? (0, _hexclave_shared_dist_utils_errors.throwErr)("Email host is missing"),
196
+ port: data.config.email_config.port ?? (0, _hexclave_shared_dist_utils_errors.throwErr)("Email port is missing"),
197
+ username: data.config.email_config.username ?? (0, _hexclave_shared_dist_utils_errors.throwErr)("Email username is missing"),
198
+ password: data.config.email_config.password ?? (0, _hexclave_shared_dist_utils_errors.throwErr)("Email password is missing"),
199
+ senderName: data.config.email_config.sender_name ?? (0, _hexclave_shared_dist_utils_errors.throwErr)("Email sender name is missing"),
200
+ senderEmail: data.config.email_config.sender_email ?? (0, _hexclave_shared_dist_utils_errors.throwErr)("Email sender email is missing")
201
201
  },
202
202
  emailTheme: data.config.email_theme,
203
203
  domains: data.config.domains.map((d) => ({
@@ -253,8 +253,8 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
253
253
  async update(update) {
254
254
  const { requirePublishableClientKey, ...projectUpdate } = update;
255
255
  const updateOptions = (0, ______projects_index_js.adminProjectUpdateOptionsToCrud)(projectUpdate);
256
- const hasConfigUpdate = !!updateOptions.config && (0, _stackframe_stack_shared_dist_utils_objects.typedValues)(updateOptions.config).some((value) => value !== void 0);
257
- if ((0, _stackframe_stack_shared_dist_utils_objects.typedEntries)(updateOptions).some(([key, value]) => {
256
+ const hasConfigUpdate = !!updateOptions.config && (0, _hexclave_shared_dist_utils_objects.typedValues)(updateOptions.config).some((value) => value !== void 0);
257
+ if ((0, _hexclave_shared_dist_utils_objects.typedEntries)(updateOptions).some(([key, value]) => {
258
258
  if (key === "config") return hasConfigUpdate;
259
259
  return value !== void 0;
260
260
  })) {
@@ -270,10 +270,10 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
270
270
  await app._interface.deleteProject();
271
271
  },
272
272
  async getProductionModeErrors() {
273
- return (0, _stackframe_stack_shared_dist_helpers_production_mode.getProductionModeErrors)(data);
273
+ return (0, _hexclave_shared_dist_helpers_production_mode.getProductionModeErrors)(data);
274
274
  },
275
275
  useProductionModeErrors() {
276
- return (0, _stackframe_stack_shared_dist_helpers_production_mode.getProductionModeErrors)(data);
276
+ return (0, _hexclave_shared_dist_helpers_production_mode.getProductionModeErrors)(data);
277
277
  }
278
278
  };
279
279
  }
@@ -286,7 +286,7 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
286
286
  };
287
287
  }
288
288
  async getProject() {
289
- return this._adminProjectFromCrud(_stackframe_stack_shared_dist_utils_results.Result.orThrow(await this._adminProjectCache.getOrWait([], "write-only")), () => this._refreshProject());
289
+ return this._adminProjectFromCrud(_hexclave_shared_dist_utils_results.Result.orThrow(await this._adminProjectCache.getOrWait([], "write-only")), () => this._refreshProject());
290
290
  }
291
291
  useProject() {
292
292
  const crud = (0, __common_js.useAsyncCache)(this._adminProjectCache, [], "adminApp.useProject()");
@@ -332,7 +332,7 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
332
332
  };
333
333
  }
334
334
  async listInternalApiKeys() {
335
- return _stackframe_stack_shared_dist_utils_results.Result.orThrow(await this._internalApiKeysCache.getOrWait([], "write-only")).map((j) => this._createInternalApiKeyFromCrud(j));
335
+ return _hexclave_shared_dist_utils_results.Result.orThrow(await this._internalApiKeysCache.getOrWait([], "write-only")).map((j) => this._createInternalApiKeyFromCrud(j));
336
336
  }
337
337
  useInternalApiKeys() {
338
338
  const crud = (0, __common_js.useAsyncCache)(this._internalApiKeysCache, [], "adminApp.useInternalApiKeys()");
@@ -378,13 +378,13 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
378
378
  }, [crud]);
379
379
  }
380
380
  async listEmailThemes() {
381
- return _stackframe_stack_shared_dist_utils_results.Result.orThrow(await this._adminEmailThemesCache.getOrWait([], "write-only")).map((theme) => ({
381
+ return _hexclave_shared_dist_utils_results.Result.orThrow(await this._adminEmailThemesCache.getOrWait([], "write-only")).map((theme) => ({
382
382
  id: theme.id,
383
383
  displayName: theme.display_name
384
384
  }));
385
385
  }
386
386
  async listEmailTemplates() {
387
- return _stackframe_stack_shared_dist_utils_results.Result.orThrow(await this._adminEmailTemplatesCache.getOrWait([], "write-only")).map((template) => ({
387
+ return _hexclave_shared_dist_utils_results.Result.orThrow(await this._adminEmailTemplatesCache.getOrWait([], "write-only")).map((template) => ({
388
388
  id: template.id,
389
389
  displayName: template.display_name,
390
390
  themeId: template.theme_id,
@@ -392,7 +392,7 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
392
392
  }));
393
393
  }
394
394
  async listEmailDrafts() {
395
- return _stackframe_stack_shared_dist_utils_results.Result.orThrow(await this._adminEmailDraftsCache.getOrWait([], "write-only")).map((draft) => ({
395
+ return _hexclave_shared_dist_utils_results.Result.orThrow(await this._adminEmailDraftsCache.getOrWait([], "write-only")).map((draft) => ({
396
396
  id: draft.id,
397
397
  displayName: draft.display_name,
398
398
  themeId: draft.theme_id,
@@ -414,7 +414,7 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
414
414
  await this._adminTeamPermissionDefinitionsCache.refresh([]);
415
415
  }
416
416
  async listTeamPermissionDefinitions() {
417
- return _stackframe_stack_shared_dist_utils_results.Result.orThrow(await this._adminTeamPermissionDefinitionsCache.getOrWait([], "write-only")).map((p) => this._serverTeamPermissionDefinitionFromCrud(p));
417
+ return _hexclave_shared_dist_utils_results.Result.orThrow(await this._adminTeamPermissionDefinitionsCache.getOrWait([], "write-only")).map((p) => this._serverTeamPermissionDefinitionFromCrud(p));
418
418
  }
419
419
  async listTeamPermissionDefinitionsPaginated(options) {
420
420
  const result = await this._interface.listTeamPermissionDefinitionsPaginated(options);
@@ -443,7 +443,7 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
443
443
  await this._adminProjectPermissionDefinitionsCache.refresh([]);
444
444
  }
445
445
  async listProjectPermissionDefinitions() {
446
- return _stackframe_stack_shared_dist_utils_results.Result.orThrow(await this._adminProjectPermissionDefinitionsCache.getOrWait([], "write-only")).map((p) => this._serverProjectPermissionDefinitionFromCrud(p));
446
+ return _hexclave_shared_dist_utils_results.Result.orThrow(await this._adminProjectPermissionDefinitionsCache.getOrWait([], "write-only")).map((p) => this._serverProjectPermissionDefinitionFromCrud(p));
447
447
  }
448
448
  useProjectPermissionDefinitions() {
449
449
  const crud = (0, __common_js.useAsyncCache)(this._adminProjectPermissionDefinitionsCache, [], "adminApp.useProjectPermissionDefinitions()");
@@ -495,7 +495,7 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
495
495
  response = await this._interface.sendTestEmail({
496
496
  recipient_email: options.recipientEmail,
497
497
  email_config: {
498
- ...(0, _stackframe_stack_shared_dist_utils_objects.pick)(options.emailConfig, [
498
+ ...(0, _hexclave_shared_dist_utils_objects.pick)(options.emailConfig, [
499
499
  "host",
500
500
  "port",
501
501
  "username",
@@ -506,16 +506,16 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
506
506
  }
507
507
  });
508
508
  } catch (error) {
509
- if (error instanceof _stackframe_stack_shared.KnownErrors.ItemQuantityInsufficientAmount) return _stackframe_stack_shared_dist_utils_results.Result.error({ errorMessage: "Monthly email sending limit exceeded for your plan. Please upgrade your plan or wait until next month before sending more test emails." });
509
+ if (error instanceof _hexclave_shared.KnownErrors.ItemQuantityInsufficientAmount) return _hexclave_shared_dist_utils_results.Result.error({ errorMessage: "Monthly email sending limit exceeded for your plan. Please upgrade your plan or wait until next month before sending more test emails." });
510
510
  throw error;
511
511
  }
512
- if (response.success) return _stackframe_stack_shared_dist_utils_results.Result.ok(void 0);
513
- else return _stackframe_stack_shared_dist_utils_results.Result.error({ errorMessage: response.error_message ?? (0, _stackframe_stack_shared_dist_utils_errors.throwErr)("Email test error not specified") });
512
+ if (response.success) return _hexclave_shared_dist_utils_results.Result.ok(void 0);
513
+ else return _hexclave_shared_dist_utils_results.Result.error({ errorMessage: response.error_message ?? (0, _hexclave_shared_dist_utils_errors.throwErr)("Email test error not specified") });
514
514
  }
515
515
  async sendTestWebhook(options) {
516
516
  const response = await this._interface.sendTestWebhook({ endpoint_id: options.endpointId });
517
- if (response.success) return _stackframe_stack_shared_dist_utils_results.Result.ok(void 0);
518
- else return _stackframe_stack_shared_dist_utils_results.Result.error({ errorMessage: response.error_message ?? (0, _stackframe_stack_shared_dist_utils_errors.throwErr)("Webhook test error not specified") });
517
+ if (response.success) return _hexclave_shared_dist_utils_results.Result.ok(void 0);
518
+ else return _hexclave_shared_dist_utils_results.Result.error({ errorMessage: response.error_message ?? (0, _hexclave_shared_dist_utils_errors.throwErr)("Webhook test error not specified") });
519
519
  }
520
520
  async listSentEmails() {
521
521
  return (await this._interface.listSentEmails()).items.map((email) => ({
@@ -596,7 +596,7 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
596
596
  async deleteEmailDraft(id) {
597
597
  await this._interface.deleteEmailDraft(id);
598
598
  const current = this._adminEmailDraftsCache.getIfCached([]);
599
- if (current.status === "ok" && current.data.status === "ok") this._adminEmailDraftsCache.forceSetCachedValue([], _stackframe_stack_shared_dist_utils_results.Result.ok(current.data.data.filter((d) => d.id !== id)));
599
+ if (current.status === "ok" && current.data.status === "ok") this._adminEmailDraftsCache.forceSetCachedValue([], _hexclave_shared_dist_utils_results.Result.ok(current.data.data.filter((d) => d.id !== id)));
600
600
  await this._adminEmailDraftsCache.refresh([]);
601
601
  }
602
602
  async refreshEmailDrafts() {
@@ -674,7 +674,9 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
674
674
  return { renderedHtml: result.rendered_html };
675
675
  }
676
676
  async setupPayments() {
677
- return await this._interface.setupPayments();
677
+ const result = await this._interface.setupPayments();
678
+ await this._stripeAccountInfoCache.refresh([]);
679
+ return result;
678
680
  }
679
681
  async createStripeWidgetAccountSession() {
680
682
  return await this._interface.createStripeWidgetAccountSession();
@@ -708,7 +710,7 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
708
710
  return { refundTransactionId: result.refundTransactionId };
709
711
  }
710
712
  async listTransactions(params) {
711
- return _stackframe_stack_shared_dist_utils_results.Result.orThrow(await this._transactionsCache.getOrWait([
713
+ return _hexclave_shared_dist_utils_results.Result.orThrow(await this._transactionsCache.getOrWait([
712
714
  params.cursor,
713
715
  params.limit,
714
716
  params.type,
@@ -885,7 +887,7 @@ var _StackAdminAppImplIncomplete = class extends __server_app_impl_js._StackServ
885
887
  markedAsSpamAt: new Date(crud.marked_as_spam_at_millis),
886
888
  canHaveDeliveryInfo: true
887
889
  };
888
- default: throw new _stackframe_stack_shared_dist_utils_errors.HexclaveAssertionError(`Unknown email outbox status: ${crud.status}`, { status: crud.status });
890
+ default: throw new _hexclave_shared_dist_utils_errors.HexclaveAssertionError(`Unknown email outbox status: ${crud.status}`, { status: crud.status });
889
891
  }
890
892
  })();
891
893
  }