@hexclave/next 1.0.3 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (864) hide show
  1. package/dist/components/api-key-dialogs.d.ts +1 -1
  2. package/dist/components/api-key-dialogs.js.map +1 -1
  3. package/dist/components/api-key-table.d.ts +1 -1
  4. package/dist/components/api-key-table.js.map +1 -1
  5. package/dist/components/credential-sign-in.js.map +1 -1
  6. package/dist/components/credential-sign-up.js.map +1 -1
  7. package/dist/components/elements/form-warning.js.map +1 -1
  8. package/dist/components/elements/maybe-full-page.js.map +1 -1
  9. package/dist/components/elements/separator-with-text.js.map +1 -1
  10. package/dist/components/elements/sidebar-layout.js.map +1 -1
  11. package/dist/components/elements/ssr-layout-effect.js.map +1 -1
  12. package/dist/components/elements/user-avatar.js.map +1 -1
  13. package/dist/components/link.js.map +1 -1
  14. package/dist/components/magic-link-sign-in.js +2 -2
  15. package/dist/components/magic-link-sign-in.js.map +1 -1
  16. package/dist/components/message-cards/known-error-message-card.js +2 -2
  17. package/dist/components/message-cards/known-error-message-card.js.map +1 -1
  18. package/dist/components/message-cards/message-card.js.map +1 -1
  19. package/dist/components/message-cards/predefined-message-card.js +9 -9
  20. package/dist/components/message-cards/predefined-message-card.js.map +1 -1
  21. package/dist/components/oauth-button-group.js +2 -2
  22. package/dist/components/oauth-button-group.js.map +1 -1
  23. package/dist/components/oauth-button.js +2 -2
  24. package/dist/components/oauth-button.js.map +1 -1
  25. package/dist/components/passkey-button.js +2 -2
  26. package/dist/components/passkey-button.js.map +1 -1
  27. package/dist/components/profile-image-editor.js.map +1 -1
  28. package/dist/components/selected-team-switcher.d.ts +1 -1
  29. package/dist/components/selected-team-switcher.js.map +1 -1
  30. package/dist/components/team-icon.d.ts +1 -1
  31. package/dist/components/team-icon.js.map +1 -1
  32. package/dist/components/team-switcher.d.ts +1 -1
  33. package/dist/components/team-switcher.js.map +1 -1
  34. package/dist/components/use-in-iframe.js.map +1 -1
  35. package/dist/components/user-button.js.map +1 -1
  36. package/dist/components-page/account-settings/active-sessions/active-sessions-page.js.map +1 -1
  37. package/dist/components-page/account-settings/api-keys/api-keys-page.js.map +1 -1
  38. package/dist/components-page/account-settings/editable-text.js.map +1 -1
  39. package/dist/components-page/account-settings/email-and-auth/email-and-auth-page.js.map +1 -1
  40. package/dist/components-page/account-settings/email-and-auth/emails-section.js.map +1 -1
  41. package/dist/components-page/account-settings/email-and-auth/mfa-section.js.map +1 -1
  42. package/dist/components-page/account-settings/email-and-auth/otp-section.js.map +1 -1
  43. package/dist/components-page/account-settings/email-and-auth/passkey-section.js.map +1 -1
  44. package/dist/components-page/account-settings/email-and-auth/password-section.js.map +1 -1
  45. package/dist/components-page/account-settings/notifications/notifications-page.js.map +1 -1
  46. package/dist/components-page/account-settings/page-layout.js.map +1 -1
  47. package/dist/components-page/account-settings/payments/payments-page.d.ts +1 -1
  48. package/dist/components-page/account-settings/payments/payments-page.js.map +1 -1
  49. package/dist/components-page/account-settings/payments/payments-panel.d.ts +1 -1
  50. package/dist/components-page/account-settings/payments/payments-panel.js +6 -6
  51. package/dist/components-page/account-settings/payments/payments-panel.js.map +1 -1
  52. package/dist/components-page/account-settings/profile-page/profile-page.js.map +1 -1
  53. package/dist/components-page/account-settings/section.js.map +1 -1
  54. package/dist/components-page/account-settings/settings/delete-account-section.js.map +1 -1
  55. package/dist/components-page/account-settings/settings/settings-page.js.map +1 -1
  56. package/dist/components-page/account-settings/settings/sign-out-section.js.map +1 -1
  57. package/dist/components-page/account-settings/teams/leave-team-section.d.ts +1 -1
  58. package/dist/components-page/account-settings/teams/leave-team-section.js.map +1 -1
  59. package/dist/components-page/account-settings/teams/team-api-keys-section.d.ts +1 -1
  60. package/dist/components-page/account-settings/teams/team-api-keys-section.js.map +1 -1
  61. package/dist/components-page/account-settings/teams/team-creation-page.js.map +1 -1
  62. package/dist/components-page/account-settings/teams/team-display-name-section.d.ts +1 -1
  63. package/dist/components-page/account-settings/teams/team-display-name-section.js.map +1 -1
  64. package/dist/components-page/account-settings/teams/team-member-invitation-section.d.ts +1 -1
  65. package/dist/components-page/account-settings/teams/team-member-invitation-section.js.map +1 -1
  66. package/dist/components-page/account-settings/teams/team-member-list-section.d.ts +1 -1
  67. package/dist/components-page/account-settings/teams/team-member-list-section.js.map +1 -1
  68. package/dist/components-page/account-settings/teams/team-page.d.ts +1 -1
  69. package/dist/components-page/account-settings/teams/team-page.js.map +1 -1
  70. package/dist/components-page/account-settings/teams/team-profile-image-section.d.ts +1 -1
  71. package/dist/components-page/account-settings/teams/team-profile-image-section.js.map +1 -1
  72. package/dist/components-page/account-settings/teams/team-profile-user-section.d.ts +1 -1
  73. package/dist/components-page/account-settings/teams/team-profile-user-section.js.map +1 -1
  74. package/dist/components-page/account-settings.js.map +1 -1
  75. package/dist/components-page/auth-page.d.ts.map +1 -1
  76. package/dist/components-page/auth-page.js +55 -10
  77. package/dist/components-page/auth-page.js.map +1 -1
  78. package/dist/components-page/cli-auth-confirm.js +3 -3
  79. package/dist/components-page/cli-auth-confirm.js.map +1 -1
  80. package/dist/components-page/cli-auth-confirm.test.js +4 -4
  81. package/dist/components-page/cli-auth-confirm.test.js.map +1 -1
  82. package/dist/components-page/email-verification.js +4 -4
  83. package/dist/components-page/email-verification.js.map +1 -1
  84. package/dist/components-page/error-page.js +9 -9
  85. package/dist/components-page/error-page.js.map +1 -1
  86. package/dist/components-page/forgot-password.js +4 -4
  87. package/dist/components-page/forgot-password.js.map +1 -1
  88. package/dist/components-page/{stack-handler-client.d.ts → hexclave-handler-client.d.ts} +16 -4
  89. package/dist/components-page/hexclave-handler-client.d.ts.map +1 -0
  90. package/dist/components-page/{stack-handler-client.js → hexclave-handler-client.js} +60 -24
  91. package/dist/components-page/hexclave-handler-client.js.map +1 -0
  92. package/dist/components-page/hexclave-handler-client.test.js +51 -0
  93. package/dist/components-page/hexclave-handler-client.test.js.map +1 -0
  94. package/dist/components-page/{stack-handler.d.ts → hexclave-handler.d.ts} +5 -5
  95. package/dist/components-page/hexclave-handler.d.ts.map +1 -0
  96. package/dist/components-page/{stack-handler.js → hexclave-handler.js} +4 -4
  97. package/dist/components-page/hexclave-handler.js.map +1 -0
  98. package/dist/components-page/magic-link-callback.js +7 -7
  99. package/dist/components-page/magic-link-callback.js.map +1 -1
  100. package/dist/components-page/mfa.js +4 -4
  101. package/dist/components-page/mfa.js.map +1 -1
  102. package/dist/components-page/oauth-callback.js +3 -3
  103. package/dist/components-page/oauth-callback.js.map +1 -1
  104. package/dist/components-page/onboarding.js +3 -3
  105. package/dist/components-page/onboarding.js.map +1 -1
  106. package/dist/components-page/password-reset.js +8 -8
  107. package/dist/components-page/password-reset.js.map +1 -1
  108. package/dist/components-page/sign-in.js.map +1 -1
  109. package/dist/components-page/sign-out.d.ts +1 -0
  110. package/dist/components-page/sign-out.d.ts.map +1 -1
  111. package/dist/components-page/sign-out.js +11 -5
  112. package/dist/components-page/sign-out.js.map +1 -1
  113. package/dist/components-page/sign-up.js.map +1 -1
  114. package/dist/components-page/team-creation.js.map +1 -1
  115. package/dist/components-page/team-invitation.js +16 -16
  116. package/dist/components-page/team-invitation.js.map +1 -1
  117. package/dist/dev-tool/dev-tool-core.d.ts +1 -1
  118. package/dist/dev-tool/dev-tool-core.js +13 -13
  119. package/dist/dev-tool/dev-tool-core.js.map +1 -1
  120. package/dist/dev-tool/dev-tool-styles.d.ts +1 -1
  121. package/dist/dev-tool/dev-tool-styles.js +371 -371
  122. package/dist/dev-tool/dev-tool-styles.js.map +1 -1
  123. package/dist/dev-tool/dev-tool-trigger-position.js.map +1 -1
  124. package/dist/dev-tool/dev-tool-trigger-position.test.js.map +1 -1
  125. package/dist/dev-tool/index.d.ts +4 -4
  126. package/dist/dev-tool/index.js +4 -4
  127. package/dist/dev-tool/index.js.map +1 -1
  128. package/dist/esm/components/api-key-dialogs.d.ts +1 -1
  129. package/dist/esm/components/api-key-dialogs.js.map +1 -1
  130. package/dist/esm/components/api-key-table.d.ts +1 -1
  131. package/dist/esm/components/api-key-table.js.map +1 -1
  132. package/dist/esm/components/credential-sign-in.js.map +1 -1
  133. package/dist/esm/components/credential-sign-up.js.map +1 -1
  134. package/dist/esm/components/elements/form-warning.js.map +1 -1
  135. package/dist/esm/components/elements/maybe-full-page.js.map +1 -1
  136. package/dist/esm/components/elements/separator-with-text.js.map +1 -1
  137. package/dist/esm/components/elements/sidebar-layout.js.map +1 -1
  138. package/dist/esm/components/elements/ssr-layout-effect.js.map +1 -1
  139. package/dist/esm/components/elements/user-avatar.js.map +1 -1
  140. package/dist/esm/components/link.js.map +1 -1
  141. package/dist/esm/components/magic-link-sign-in.js +2 -2
  142. package/dist/esm/components/magic-link-sign-in.js.map +1 -1
  143. package/dist/esm/components/message-cards/known-error-message-card.js +2 -2
  144. package/dist/esm/components/message-cards/known-error-message-card.js.map +1 -1
  145. package/dist/esm/components/message-cards/message-card.js.map +1 -1
  146. package/dist/esm/components/message-cards/predefined-message-card.js +9 -9
  147. package/dist/esm/components/message-cards/predefined-message-card.js.map +1 -1
  148. package/dist/esm/components/oauth-button-group.js +2 -2
  149. package/dist/esm/components/oauth-button-group.js.map +1 -1
  150. package/dist/esm/components/oauth-button.js +2 -2
  151. package/dist/esm/components/oauth-button.js.map +1 -1
  152. package/dist/esm/components/passkey-button.js +2 -2
  153. package/dist/esm/components/passkey-button.js.map +1 -1
  154. package/dist/esm/components/profile-image-editor.js.map +1 -1
  155. package/dist/esm/components/selected-team-switcher.js.map +1 -1
  156. package/dist/esm/components/team-icon.js.map +1 -1
  157. package/dist/esm/components/team-switcher.js.map +1 -1
  158. package/dist/esm/components/use-in-iframe.js.map +1 -1
  159. package/dist/esm/components/user-button.js.map +1 -1
  160. package/dist/esm/components-page/account-settings/active-sessions/active-sessions-page.js.map +1 -1
  161. package/dist/esm/components-page/account-settings/api-keys/api-keys-page.js.map +1 -1
  162. package/dist/esm/components-page/account-settings/editable-text.js.map +1 -1
  163. package/dist/esm/components-page/account-settings/email-and-auth/email-and-auth-page.js.map +1 -1
  164. package/dist/esm/components-page/account-settings/email-and-auth/emails-section.js.map +1 -1
  165. package/dist/esm/components-page/account-settings/email-and-auth/mfa-section.js.map +1 -1
  166. package/dist/esm/components-page/account-settings/email-and-auth/otp-section.js.map +1 -1
  167. package/dist/esm/components-page/account-settings/email-and-auth/passkey-section.js.map +1 -1
  168. package/dist/esm/components-page/account-settings/email-and-auth/password-section.js.map +1 -1
  169. package/dist/esm/components-page/account-settings/notifications/notifications-page.js.map +1 -1
  170. package/dist/esm/components-page/account-settings/page-layout.js.map +1 -1
  171. package/dist/esm/components-page/account-settings/payments/payments-page.js.map +1 -1
  172. package/dist/esm/components-page/account-settings/payments/payments-panel.d.ts +1 -1
  173. package/dist/esm/components-page/account-settings/payments/payments-panel.js +5 -5
  174. package/dist/esm/components-page/account-settings/payments/payments-panel.js.map +1 -1
  175. package/dist/esm/components-page/account-settings/profile-page/profile-page.js.map +1 -1
  176. package/dist/esm/components-page/account-settings/section.js.map +1 -1
  177. package/dist/esm/components-page/account-settings/settings/delete-account-section.js.map +1 -1
  178. package/dist/esm/components-page/account-settings/settings/settings-page.js.map +1 -1
  179. package/dist/esm/components-page/account-settings/settings/sign-out-section.js.map +1 -1
  180. package/dist/esm/components-page/account-settings/teams/leave-team-section.js.map +1 -1
  181. package/dist/esm/components-page/account-settings/teams/team-api-keys-section.d.ts +1 -1
  182. package/dist/esm/components-page/account-settings/teams/team-api-keys-section.js.map +1 -1
  183. package/dist/esm/components-page/account-settings/teams/team-creation-page.js.map +1 -1
  184. package/dist/esm/components-page/account-settings/teams/team-display-name-section.js.map +1 -1
  185. package/dist/esm/components-page/account-settings/teams/team-member-invitation-section.js.map +1 -1
  186. package/dist/esm/components-page/account-settings/teams/team-member-list-section.js.map +1 -1
  187. package/dist/esm/components-page/account-settings/teams/team-page.js.map +1 -1
  188. package/dist/esm/components-page/account-settings/teams/team-profile-image-section.js.map +1 -1
  189. package/dist/esm/components-page/account-settings/teams/team-profile-user-section.js.map +1 -1
  190. package/dist/esm/components-page/account-settings.js.map +1 -1
  191. package/dist/esm/components-page/auth-page.d.ts.map +1 -1
  192. package/dist/esm/components-page/auth-page.js +56 -11
  193. package/dist/esm/components-page/auth-page.js.map +1 -1
  194. package/dist/esm/components-page/cli-auth-confirm.js +3 -3
  195. package/dist/esm/components-page/cli-auth-confirm.js.map +1 -1
  196. package/dist/esm/components-page/cli-auth-confirm.test.js +4 -4
  197. package/dist/esm/components-page/cli-auth-confirm.test.js.map +1 -1
  198. package/dist/esm/components-page/email-verification.js +4 -4
  199. package/dist/esm/components-page/email-verification.js.map +1 -1
  200. package/dist/esm/components-page/error-page.js +9 -9
  201. package/dist/esm/components-page/error-page.js.map +1 -1
  202. package/dist/esm/components-page/forgot-password.js +4 -4
  203. package/dist/esm/components-page/forgot-password.js.map +1 -1
  204. package/dist/esm/components-page/{stack-handler-client.d.ts → hexclave-handler-client.d.ts} +15 -4
  205. package/dist/esm/components-page/hexclave-handler-client.d.ts.map +1 -0
  206. package/dist/esm/components-page/{stack-handler-client.js → hexclave-handler-client.js} +59 -24
  207. package/dist/esm/components-page/hexclave-handler-client.js.map +1 -0
  208. package/dist/esm/components-page/hexclave-handler-client.test.js +51 -0
  209. package/dist/esm/components-page/hexclave-handler-client.test.js.map +1 -0
  210. package/dist/esm/components-page/{stack-handler.d.ts → hexclave-handler.d.ts} +5 -5
  211. package/dist/esm/components-page/hexclave-handler.d.ts.map +1 -0
  212. package/dist/esm/components-page/{stack-handler.js → hexclave-handler.js} +4 -4
  213. package/dist/esm/components-page/hexclave-handler.js.map +1 -0
  214. package/dist/esm/components-page/magic-link-callback.js +7 -7
  215. package/dist/esm/components-page/magic-link-callback.js.map +1 -1
  216. package/dist/esm/components-page/mfa.js +4 -4
  217. package/dist/esm/components-page/mfa.js.map +1 -1
  218. package/dist/esm/components-page/oauth-callback.js +3 -3
  219. package/dist/esm/components-page/oauth-callback.js.map +1 -1
  220. package/dist/esm/components-page/onboarding.js +3 -3
  221. package/dist/esm/components-page/onboarding.js.map +1 -1
  222. package/dist/esm/components-page/password-reset.js +8 -8
  223. package/dist/esm/components-page/password-reset.js.map +1 -1
  224. package/dist/esm/components-page/sign-in.js.map +1 -1
  225. package/dist/esm/components-page/sign-out.d.ts +1 -0
  226. package/dist/esm/components-page/sign-out.d.ts.map +1 -1
  227. package/dist/esm/components-page/sign-out.js +11 -5
  228. package/dist/esm/components-page/sign-out.js.map +1 -1
  229. package/dist/esm/components-page/sign-up.js.map +1 -1
  230. package/dist/esm/components-page/team-creation.js.map +1 -1
  231. package/dist/esm/components-page/team-invitation.js +16 -16
  232. package/dist/esm/components-page/team-invitation.js.map +1 -1
  233. package/dist/esm/dev-tool/dev-tool-core.d.ts +1 -1
  234. package/dist/esm/dev-tool/dev-tool-core.js +12 -12
  235. package/dist/esm/dev-tool/dev-tool-core.js.map +1 -1
  236. package/dist/esm/dev-tool/dev-tool-styles.d.ts +1 -1
  237. package/dist/esm/dev-tool/dev-tool-styles.js +371 -371
  238. package/dist/esm/dev-tool/dev-tool-styles.js.map +1 -1
  239. package/dist/esm/dev-tool/dev-tool-trigger-position.js.map +1 -1
  240. package/dist/esm/dev-tool/dev-tool-trigger-position.test.js.map +1 -1
  241. package/dist/esm/dev-tool/index.d.ts +4 -4
  242. package/dist/esm/dev-tool/index.js +4 -4
  243. package/dist/esm/dev-tool/index.js.map +1 -1
  244. package/dist/esm/generated/env.d.ts +26 -0
  245. package/dist/esm/{lib → generated}/env.d.ts.map +1 -1
  246. package/dist/esm/generated/env.js +67 -0
  247. package/dist/esm/generated/env.js.map +1 -0
  248. package/dist/esm/generated/global-css.d.ts +1 -1
  249. package/dist/esm/generated/global-css.js +1 -1
  250. package/dist/esm/generated/global-css.js.map +1 -1
  251. package/dist/esm/generated/quetzal-translations.d.ts +2 -2
  252. package/dist/esm/generated/quetzal-translations.js.map +1 -1
  253. package/dist/esm/global.d.ts +8 -1
  254. package/dist/esm/global.d.ts.map +1 -0
  255. package/dist/esm/index.d.ts +4 -4
  256. package/dist/esm/index.js +3 -3
  257. package/dist/esm/integrations/convex/component/convex.config.js.map +1 -1
  258. package/dist/esm/integrations/convex.js +1 -1
  259. package/dist/esm/integrations/convex.js.map +1 -1
  260. package/dist/esm/lib/auth.js.map +1 -1
  261. package/dist/esm/lib/auth.test.js.map +1 -1
  262. package/dist/esm/lib/cookie.js +2 -2
  263. package/dist/esm/lib/cookie.js.map +1 -1
  264. package/dist/{lib/stack-app → esm/lib/hexclave-app}/api-keys/index.d.ts +2 -2
  265. package/dist/esm/lib/hexclave-app/api-keys/index.d.ts.map +1 -0
  266. package/dist/esm/lib/{stack-app → hexclave-app}/api-keys/index.js +1 -1
  267. package/dist/esm/lib/hexclave-app/api-keys/index.js.map +1 -0
  268. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/admin-app-impl.d.ts +6 -6
  269. package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts.map +1 -0
  270. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/admin-app-impl.js +7 -7
  271. package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.js.map +1 -0
  272. package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.cross-domain.test.js +381 -0
  273. package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.cross-domain.test.js.map +1 -0
  274. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.d.ts +16 -14
  275. package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.d.ts.map +1 -0
  276. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.js +76 -56
  277. package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.js.map +1 -0
  278. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.oauth-prefetch.test.js +1 -1
  279. package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.oauth-prefetch.test.js.map +1 -0
  280. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/common.d.ts +11 -11
  281. package/dist/esm/lib/hexclave-app/apps/implementations/common.d.ts.map +1 -0
  282. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/common.js +34 -20
  283. package/dist/esm/lib/hexclave-app/apps/implementations/common.js.map +1 -0
  284. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.d.ts +1 -1
  285. package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.d.ts.map +1 -0
  286. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.js +1 -1
  287. package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.js.map +1 -0
  288. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.test.js +1 -1
  289. package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.test.js.map +1 -0
  290. package/dist/esm/lib/hexclave-app/apps/implementations/index.d.ts +9 -0
  291. package/dist/esm/lib/hexclave-app/apps/implementations/index.d.ts.map +1 -0
  292. package/dist/esm/lib/hexclave-app/apps/implementations/index.js +27 -0
  293. package/dist/esm/lib/hexclave-app/apps/implementations/index.js.map +1 -0
  294. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/redirect-page-urls.d.ts +1 -1
  295. package/dist/esm/lib/hexclave-app/apps/implementations/redirect-page-urls.d.ts.map +1 -0
  296. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/redirect-page-urls.js +1 -1
  297. package/dist/esm/lib/hexclave-app/apps/implementations/redirect-page-urls.js.map +1 -0
  298. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/server-app-impl.d.ts +4 -4
  299. package/dist/esm/lib/hexclave-app/apps/implementations/server-app-impl.d.ts.map +1 -0
  300. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/server-app-impl.js +7 -7
  301. package/dist/esm/lib/hexclave-app/apps/implementations/server-app-impl.js.map +1 -0
  302. package/dist/{lib/stack-app → esm/lib/hexclave-app}/apps/implementations/session-refresh-subscription.d.ts +1 -1
  303. package/dist/esm/lib/hexclave-app/apps/implementations/session-refresh-subscription.d.ts.map +1 -0
  304. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/session-refresh-subscription.js +1 -1
  305. package/dist/esm/lib/hexclave-app/apps/implementations/session-refresh-subscription.js.map +1 -0
  306. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/session-refresh-subscription.test.js +1 -1
  307. package/dist/esm/lib/hexclave-app/apps/implementations/session-refresh-subscription.test.js.map +1 -0
  308. package/dist/{lib/stack-app → esm/lib/hexclave-app}/apps/implementations/session-replay.d.ts +1 -1
  309. package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.d.ts.map +1 -0
  310. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/session-replay.js +1 -1
  311. package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.js.map +1 -0
  312. package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/session-replay.test.js +1 -1
  313. package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.test.js.map +1 -0
  314. package/dist/esm/lib/{stack-app → hexclave-app}/apps/interfaces/admin-app.d.ts +1 -1
  315. package/dist/esm/lib/hexclave-app/apps/interfaces/admin-app.d.ts.map +1 -0
  316. package/dist/esm/lib/{stack-app → hexclave-app}/apps/interfaces/admin-app.js +3 -3
  317. package/dist/esm/lib/hexclave-app/apps/interfaces/admin-app.js.map +1 -0
  318. package/dist/esm/lib/{stack-app → hexclave-app}/apps/interfaces/client-app.d.ts +4 -4
  319. package/dist/esm/lib/hexclave-app/apps/interfaces/client-app.d.ts.map +1 -0
  320. package/dist/esm/lib/{stack-app → hexclave-app}/apps/interfaces/client-app.js +3 -3
  321. package/dist/esm/lib/hexclave-app/apps/interfaces/client-app.js.map +1 -0
  322. package/dist/esm/lib/{stack-app → hexclave-app}/apps/interfaces/server-app.d.ts +1 -1
  323. package/dist/esm/lib/hexclave-app/apps/interfaces/server-app.d.ts.map +1 -0
  324. package/dist/esm/lib/{stack-app → hexclave-app}/apps/interfaces/server-app.js +3 -3
  325. package/dist/esm/lib/hexclave-app/apps/interfaces/server-app.js.map +1 -0
  326. package/dist/esm/lib/{stack-app → hexclave-app}/common.d.ts +7 -7
  327. package/dist/esm/lib/hexclave-app/common.d.ts.map +1 -0
  328. package/dist/esm/lib/hexclave-app/common.js +7 -0
  329. package/dist/esm/lib/hexclave-app/common.js.map +1 -0
  330. package/dist/esm/lib/{stack-app → hexclave-app}/connected-accounts/index.d.ts +1 -1
  331. package/dist/esm/lib/hexclave-app/connected-accounts/index.d.ts.map +1 -0
  332. package/dist/esm/lib/{stack-app → hexclave-app}/contact-channels/index.d.ts +1 -1
  333. package/dist/esm/lib/hexclave-app/contact-channels/index.d.ts.map +1 -0
  334. package/dist/esm/lib/{stack-app → hexclave-app}/contact-channels/index.js +1 -1
  335. package/dist/esm/lib/hexclave-app/contact-channels/index.js.map +1 -0
  336. package/dist/esm/lib/{stack-app → hexclave-app}/customers/index.d.ts +1 -1
  337. package/dist/esm/lib/hexclave-app/customers/index.d.ts.map +1 -0
  338. package/dist/esm/lib/{stack-app → hexclave-app}/data-vault/index.d.ts +1 -1
  339. package/dist/esm/lib/hexclave-app/data-vault/index.d.ts.map +1 -0
  340. package/dist/{lib/stack-app → esm/lib/hexclave-app}/email/index.d.ts +1 -1
  341. package/dist/esm/lib/hexclave-app/email/index.d.ts.map +1 -0
  342. package/dist/{lib/stack-app → esm/lib/hexclave-app}/email-templates/index.d.ts +1 -1
  343. package/dist/esm/lib/hexclave-app/email-templates/index.d.ts.map +1 -0
  344. package/dist/esm/lib/{stack-app → hexclave-app}/email-templates/index.js +1 -1
  345. package/dist/esm/lib/hexclave-app/email-templates/index.js.map +1 -0
  346. package/dist/esm/lib/{stack-app → hexclave-app}/index.d.ts +2 -2
  347. package/dist/esm/lib/{stack-app → hexclave-app}/index.js +2 -2
  348. package/dist/{lib/stack-app → esm/lib/hexclave-app}/internal-api-keys/index.d.ts +1 -1
  349. package/dist/esm/lib/hexclave-app/internal-api-keys/index.d.ts.map +1 -0
  350. package/dist/esm/lib/{stack-app → hexclave-app}/internal-api-keys/index.js +1 -1
  351. package/dist/esm/lib/hexclave-app/internal-api-keys/index.js.map +1 -0
  352. package/dist/{lib/stack-app → esm/lib/hexclave-app}/notification-categories/index.d.ts +1 -1
  353. package/dist/esm/lib/hexclave-app/notification-categories/index.d.ts.map +1 -0
  354. package/dist/{lib/stack-app → esm/lib/hexclave-app}/permissions/index.d.ts +1 -1
  355. package/dist/esm/lib/hexclave-app/permissions/index.d.ts.map +1 -0
  356. package/dist/esm/lib/{stack-app → hexclave-app}/permissions/index.js +1 -1
  357. package/dist/esm/lib/hexclave-app/permissions/index.js.map +1 -0
  358. package/dist/esm/lib/{stack-app → hexclave-app}/project-configs/index.d.ts +1 -1
  359. package/dist/esm/lib/hexclave-app/project-configs/index.d.ts.map +1 -0
  360. package/dist/esm/lib/{stack-app → hexclave-app}/projects/index.d.ts +1 -1
  361. package/dist/esm/lib/hexclave-app/projects/index.d.ts.map +1 -0
  362. package/dist/esm/lib/{stack-app → hexclave-app}/projects/index.js +1 -1
  363. package/dist/esm/lib/hexclave-app/projects/index.js.map +1 -0
  364. package/dist/{lib/stack-app → esm/lib/hexclave-app}/session-replays/index.d.ts +1 -1
  365. package/dist/esm/lib/hexclave-app/session-replays/index.d.ts.map +1 -0
  366. package/dist/esm/lib/{stack-app → hexclave-app}/teams/index.d.ts +1 -1
  367. package/dist/esm/lib/hexclave-app/teams/index.d.ts.map +1 -0
  368. package/dist/esm/lib/{stack-app → hexclave-app}/teams/index.js +1 -1
  369. package/dist/esm/lib/hexclave-app/teams/index.js.map +1 -0
  370. package/dist/esm/lib/{stack-app → hexclave-app}/url-targets.d.ts +1 -1
  371. package/dist/esm/lib/hexclave-app/url-targets.d.ts.map +1 -0
  372. package/dist/esm/lib/{stack-app → hexclave-app}/url-targets.js +26 -12
  373. package/dist/esm/lib/hexclave-app/url-targets.js.map +1 -0
  374. package/dist/esm/lib/{stack-app → hexclave-app}/url-targets.test.js +13 -1
  375. package/dist/esm/lib/hexclave-app/url-targets.test.js.map +1 -0
  376. package/dist/esm/lib/{stack-app → hexclave-app}/users/index.d.ts +1 -1
  377. package/dist/esm/lib/hexclave-app/users/index.d.ts.map +1 -0
  378. package/dist/esm/lib/{stack-app → hexclave-app}/users/index.js +1 -1
  379. package/dist/esm/lib/hexclave-app/users/index.js.map +1 -0
  380. package/dist/esm/lib/hooks.d.ts +1 -1
  381. package/dist/esm/lib/hooks.js +9 -9
  382. package/dist/esm/lib/hooks.js.map +1 -1
  383. package/dist/esm/lib/translations.js.map +1 -1
  384. package/dist/esm/providers/hexclave-context.d.ts +11 -0
  385. package/dist/esm/providers/hexclave-context.d.ts.map +1 -0
  386. package/dist/esm/providers/hexclave-context.js +12 -0
  387. package/dist/esm/providers/hexclave-context.js.map +1 -0
  388. package/dist/esm/providers/{stack-provider-client.d.ts → hexclave-provider-client.d.ts} +5 -5
  389. package/dist/esm/providers/hexclave-provider-client.d.ts.map +1 -0
  390. package/dist/esm/providers/hexclave-provider-client.js +30 -0
  391. package/dist/esm/providers/hexclave-provider-client.js.map +1 -0
  392. package/dist/esm/providers/{stack-provider.d.ts → hexclave-provider.d.ts} +3 -3
  393. package/dist/esm/providers/hexclave-provider.d.ts.map +1 -0
  394. package/dist/esm/providers/{stack-provider.js → hexclave-provider.js} +6 -6
  395. package/dist/esm/providers/hexclave-provider.js.map +1 -0
  396. package/dist/esm/providers/theme-provider.js.map +1 -1
  397. package/dist/esm/providers/translation-provider-client.js.map +1 -1
  398. package/dist/esm/providers/translation-provider.js.map +1 -1
  399. package/dist/esm/tanstack-start-server-context.d.ts +1 -1
  400. package/dist/esm/utils/browser-script.js.map +1 -1
  401. package/dist/esm/utils/constants.js.map +1 -1
  402. package/dist/esm/utils/url.js.map +1 -1
  403. package/dist/generated/env.d.ts +26 -0
  404. package/dist/{lib → generated}/env.d.ts.map +1 -1
  405. package/dist/generated/env.js +69 -0
  406. package/dist/generated/env.js.map +1 -0
  407. package/dist/generated/global-css.d.ts +1 -1
  408. package/dist/generated/global-css.js +1 -1
  409. package/dist/generated/global-css.js.map +1 -1
  410. package/dist/generated/quetzal-translations.d.ts +2 -2
  411. package/dist/generated/quetzal-translations.js.map +1 -1
  412. package/dist/global.d.ts +8 -1
  413. package/dist/global.d.ts.map +1 -0
  414. package/dist/index.d.ts +18 -18
  415. package/dist/index.js +9 -9
  416. package/dist/integrations/convex/component/convex.config.d.ts +2 -2
  417. package/dist/integrations/convex/component/convex.config.d.ts.map +1 -1
  418. package/dist/integrations/convex/component/convex.config.js.map +1 -1
  419. package/dist/integrations/convex.js +2 -2
  420. package/dist/integrations/convex.js.map +1 -1
  421. package/dist/lib/auth.js.map +1 -1
  422. package/dist/lib/auth.test.js.map +1 -1
  423. package/dist/lib/cookie.js +2 -2
  424. package/dist/lib/cookie.js.map +1 -1
  425. package/dist/{esm/lib/stack-app → lib/hexclave-app}/api-keys/index.d.ts +2 -2
  426. package/dist/{esm/lib/stack-app → lib/hexclave-app}/api-keys/index.d.ts.map +1 -1
  427. package/dist/lib/{stack-app → hexclave-app}/api-keys/index.js +1 -1
  428. package/dist/lib/hexclave-app/api-keys/index.js.map +1 -0
  429. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/admin-app-impl.d.ts +6 -6
  430. package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts.map +1 -0
  431. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/admin-app-impl.js +5 -5
  432. package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.js.map +1 -0
  433. package/dist/lib/hexclave-app/apps/implementations/client-app-impl.cross-domain.test.js +381 -0
  434. package/dist/lib/hexclave-app/apps/implementations/client-app-impl.cross-domain.test.js.map +1 -0
  435. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.d.ts +16 -14
  436. package/dist/lib/hexclave-app/apps/implementations/client-app-impl.d.ts.map +1 -0
  437. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.js +74 -54
  438. package/dist/lib/hexclave-app/apps/implementations/client-app-impl.js.map +1 -0
  439. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.oauth-prefetch.test.js +1 -1
  440. package/dist/lib/hexclave-app/apps/implementations/client-app-impl.oauth-prefetch.test.js.map +1 -0
  441. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/common.d.ts +11 -11
  442. package/dist/lib/hexclave-app/apps/implementations/common.d.ts.map +1 -0
  443. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/common.js +33 -19
  444. package/dist/lib/hexclave-app/apps/implementations/common.js.map +1 -0
  445. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.d.ts +1 -1
  446. package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/event-tracker.d.ts.map +1 -1
  447. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.js +1 -1
  448. package/dist/lib/hexclave-app/apps/implementations/event-tracker.js.map +1 -0
  449. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.test.js +1 -1
  450. package/dist/lib/hexclave-app/apps/implementations/event-tracker.test.js.map +1 -0
  451. package/dist/lib/hexclave-app/apps/implementations/index.d.ts +9 -0
  452. package/dist/lib/hexclave-app/apps/implementations/index.d.ts.map +1 -0
  453. package/dist/lib/hexclave-app/apps/implementations/index.js +31 -0
  454. package/dist/lib/hexclave-app/apps/implementations/index.js.map +1 -0
  455. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/redirect-page-urls.d.ts +1 -1
  456. package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/redirect-page-urls.d.ts.map +1 -1
  457. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/redirect-page-urls.js +1 -1
  458. package/dist/lib/hexclave-app/apps/implementations/redirect-page-urls.js.map +1 -0
  459. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/server-app-impl.d.ts +4 -4
  460. package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/server-app-impl.d.ts.map +1 -1
  461. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/server-app-impl.js +6 -6
  462. package/dist/lib/hexclave-app/apps/implementations/server-app-impl.js.map +1 -0
  463. package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/session-refresh-subscription.d.ts +1 -1
  464. package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/session-refresh-subscription.d.ts.map +1 -1
  465. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/session-refresh-subscription.js +1 -1
  466. package/dist/lib/hexclave-app/apps/implementations/session-refresh-subscription.js.map +1 -0
  467. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/session-refresh-subscription.test.js +1 -1
  468. package/dist/lib/hexclave-app/apps/implementations/session-refresh-subscription.test.js.map +1 -0
  469. package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/session-replay.d.ts +1 -1
  470. package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/session-replay.d.ts.map +1 -1
  471. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/session-replay.js +1 -1
  472. package/dist/lib/hexclave-app/apps/implementations/session-replay.js.map +1 -0
  473. package/dist/lib/hexclave-app/apps/implementations/session-replay.test.d.ts +1 -0
  474. package/dist/lib/{stack-app → hexclave-app}/apps/implementations/session-replay.test.js +1 -1
  475. package/dist/lib/hexclave-app/apps/implementations/session-replay.test.js.map +1 -0
  476. package/dist/lib/{stack-app → hexclave-app}/apps/interfaces/admin-app.d.ts +1 -1
  477. package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/interfaces/admin-app.d.ts.map +1 -1
  478. package/dist/lib/{stack-app → hexclave-app}/apps/interfaces/admin-app.js +2 -2
  479. package/dist/lib/hexclave-app/apps/interfaces/admin-app.js.map +1 -0
  480. package/dist/lib/{stack-app → hexclave-app}/apps/interfaces/client-app.d.ts +4 -4
  481. package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/interfaces/client-app.d.ts.map +1 -1
  482. package/dist/lib/{stack-app → hexclave-app}/apps/interfaces/client-app.js +2 -2
  483. package/dist/lib/hexclave-app/apps/interfaces/client-app.js.map +1 -0
  484. package/dist/lib/{stack-app → hexclave-app}/apps/interfaces/server-app.d.ts +2 -2
  485. package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/interfaces/server-app.d.ts.map +1 -1
  486. package/dist/lib/{stack-app → hexclave-app}/apps/interfaces/server-app.js +2 -2
  487. package/dist/lib/hexclave-app/apps/interfaces/server-app.js.map +1 -0
  488. package/dist/lib/{stack-app → hexclave-app}/common.d.ts +8 -8
  489. package/dist/{esm/lib/stack-app → lib/hexclave-app}/common.d.ts.map +1 -1
  490. package/dist/lib/hexclave-app/common.js +9 -0
  491. package/dist/lib/hexclave-app/common.js.map +1 -0
  492. package/dist/lib/{stack-app → hexclave-app}/connected-accounts/index.d.ts +1 -1
  493. package/dist/{esm/lib/stack-app → lib/hexclave-app}/connected-accounts/index.d.ts.map +1 -1
  494. package/dist/lib/{stack-app → hexclave-app}/contact-channels/index.d.ts +1 -1
  495. package/dist/{esm/lib/stack-app → lib/hexclave-app}/contact-channels/index.d.ts.map +1 -1
  496. package/dist/lib/{stack-app → hexclave-app}/contact-channels/index.js +1 -1
  497. package/dist/lib/hexclave-app/contact-channels/index.js.map +1 -0
  498. package/dist/lib/{stack-app → hexclave-app}/customers/index.d.ts +1 -1
  499. package/dist/{esm/lib/stack-app → lib/hexclave-app}/customers/index.d.ts.map +1 -1
  500. package/dist/lib/{stack-app → hexclave-app}/data-vault/index.d.ts +1 -1
  501. package/dist/{esm/lib/stack-app → lib/hexclave-app}/data-vault/index.d.ts.map +1 -1
  502. package/dist/{esm/lib/stack-app → lib/hexclave-app}/email/index.d.ts +1 -1
  503. package/dist/{esm/lib/stack-app → lib/hexclave-app}/email/index.d.ts.map +1 -1
  504. package/dist/{esm/lib/stack-app → lib/hexclave-app}/email-templates/index.d.ts +1 -1
  505. package/dist/{esm/lib/stack-app → lib/hexclave-app}/email-templates/index.d.ts.map +1 -1
  506. package/dist/lib/{stack-app → hexclave-app}/email-templates/index.js +1 -1
  507. package/dist/lib/hexclave-app/email-templates/index.js.map +1 -0
  508. package/dist/lib/{stack-app → hexclave-app}/index.d.ts +2 -2
  509. package/dist/lib/{stack-app → hexclave-app}/index.js +2 -2
  510. package/dist/{esm/lib/stack-app → lib/hexclave-app}/internal-api-keys/index.d.ts +1 -1
  511. package/dist/{esm/lib/stack-app → lib/hexclave-app}/internal-api-keys/index.d.ts.map +1 -1
  512. package/dist/lib/{stack-app → hexclave-app}/internal-api-keys/index.js +1 -1
  513. package/dist/lib/hexclave-app/internal-api-keys/index.js.map +1 -0
  514. package/dist/{esm/lib/stack-app → lib/hexclave-app}/notification-categories/index.d.ts +1 -1
  515. package/dist/{esm/lib/stack-app → lib/hexclave-app}/notification-categories/index.d.ts.map +1 -1
  516. package/dist/{esm/lib/stack-app → lib/hexclave-app}/permissions/index.d.ts +1 -1
  517. package/dist/{esm/lib/stack-app → lib/hexclave-app}/permissions/index.d.ts.map +1 -1
  518. package/dist/lib/{stack-app → hexclave-app}/permissions/index.js +1 -1
  519. package/dist/lib/hexclave-app/permissions/index.js.map +1 -0
  520. package/dist/lib/{stack-app → hexclave-app}/project-configs/index.d.ts +1 -1
  521. package/dist/{esm/lib/stack-app → lib/hexclave-app}/project-configs/index.d.ts.map +1 -1
  522. package/dist/lib/{stack-app → hexclave-app}/projects/index.d.ts +1 -1
  523. package/dist/{esm/lib/stack-app → lib/hexclave-app}/projects/index.d.ts.map +1 -1
  524. package/dist/lib/{stack-app → hexclave-app}/projects/index.js +1 -1
  525. package/dist/lib/hexclave-app/projects/index.js.map +1 -0
  526. package/dist/{esm/lib/stack-app → lib/hexclave-app}/session-replays/index.d.ts +1 -1
  527. package/dist/{esm/lib/stack-app → lib/hexclave-app}/session-replays/index.d.ts.map +1 -1
  528. package/dist/lib/{stack-app → hexclave-app}/teams/index.d.ts +1 -1
  529. package/dist/{esm/lib/stack-app → lib/hexclave-app}/teams/index.d.ts.map +1 -1
  530. package/dist/lib/{stack-app → hexclave-app}/teams/index.js +1 -1
  531. package/dist/lib/hexclave-app/teams/index.js.map +1 -0
  532. package/dist/lib/{stack-app → hexclave-app}/url-targets.d.ts +1 -1
  533. package/dist/{esm/lib/stack-app → lib/hexclave-app}/url-targets.d.ts.map +1 -1
  534. package/dist/lib/{stack-app → hexclave-app}/url-targets.js +26 -12
  535. package/dist/lib/hexclave-app/url-targets.js.map +1 -0
  536. package/dist/lib/hexclave-app/url-targets.test.d.ts +1 -0
  537. package/dist/lib/{stack-app → hexclave-app}/url-targets.test.js +13 -1
  538. package/dist/lib/hexclave-app/url-targets.test.js.map +1 -0
  539. package/dist/lib/{stack-app → hexclave-app}/users/index.d.ts +1 -1
  540. package/dist/{esm/lib/stack-app → lib/hexclave-app}/users/index.d.ts.map +1 -1
  541. package/dist/lib/{stack-app → hexclave-app}/users/index.js +1 -1
  542. package/dist/lib/hexclave-app/users/index.js.map +1 -0
  543. package/dist/lib/hooks.d.ts +3 -3
  544. package/dist/lib/hooks.d.ts.map +1 -1
  545. package/dist/lib/hooks.js +9 -9
  546. package/dist/lib/hooks.js.map +1 -1
  547. package/dist/lib/translations.js.map +1 -1
  548. package/dist/providers/hexclave-context.d.ts +11 -0
  549. package/dist/providers/hexclave-context.d.ts.map +1 -0
  550. package/dist/providers/hexclave-context.js +15 -0
  551. package/dist/providers/hexclave-context.js.map +1 -0
  552. package/dist/providers/{stack-provider-client.d.ts → hexclave-provider-client.d.ts} +5 -5
  553. package/dist/providers/hexclave-provider-client.d.ts.map +1 -0
  554. package/dist/providers/{stack-provider-client.js → hexclave-provider-client.js} +9 -9
  555. package/dist/providers/hexclave-provider-client.js.map +1 -0
  556. package/dist/providers/{stack-provider.d.ts → hexclave-provider.d.ts} +5 -5
  557. package/dist/providers/hexclave-provider.d.ts.map +1 -0
  558. package/dist/providers/{stack-provider.js → hexclave-provider.js} +6 -6
  559. package/dist/providers/hexclave-provider.js.map +1 -0
  560. package/dist/providers/theme-provider.js.map +1 -1
  561. package/dist/providers/translation-provider-client.js.map +1 -1
  562. package/dist/providers/translation-provider.js.map +1 -1
  563. package/dist/{storage-kTmOAWHW.d.ts → storage-CKzvsBxG.d.ts} +18 -18
  564. package/dist/{storage-kTmOAWHW.d.ts.map → storage-CKzvsBxG.d.ts.map} +1 -1
  565. package/dist/tanstack-start-server-context.d.ts +1 -1
  566. package/dist/utils/browser-script.js.map +1 -1
  567. package/dist/utils/constants.js.map +1 -1
  568. package/dist/utils/url.js.map +1 -1
  569. package/package.json +11 -8
  570. package/src/components/api-key-dialogs.tsx +173 -0
  571. package/src/components/api-key-table.tsx +127 -0
  572. package/src/components/credential-sign-in.tsx +83 -0
  573. package/src/components/credential-sign-up.tsx +108 -0
  574. package/src/components/elements/form-warning.tsx +17 -0
  575. package/src/components/elements/maybe-full-page.tsx +60 -0
  576. package/src/components/elements/separator-with-text.tsx +22 -0
  577. package/src/components/elements/sidebar-layout.tsx +136 -0
  578. package/src/components/elements/ssr-layout-effect.tsx +24 -0
  579. package/src/components/elements/user-avatar.tsx +32 -0
  580. package/src/components/link.tsx +40 -0
  581. package/src/components/magic-link-sign-in.tsx +143 -0
  582. package/src/components/message-cards/known-error-message-card.tsx +33 -0
  583. package/src/components/message-cards/message-card.tsx +46 -0
  584. package/src/components/message-cards/predefined-message-card.tsx +88 -0
  585. package/src/components/oauth-button-group.tsx +35 -0
  586. package/src/components/oauth-button.tsx +222 -0
  587. package/src/components/passkey-button.tsx +43 -0
  588. package/src/components/profile-image-editor.tsx +194 -0
  589. package/src/components/selected-team-switcher.tsx +97 -0
  590. package/src/components/team-icon.tsx +30 -0
  591. package/src/components/team-switcher.tsx +191 -0
  592. package/src/components/use-in-iframe.tsx +18 -0
  593. package/src/components/user-button.tsx +157 -0
  594. package/src/components-page/account-settings/active-sessions/active-sessions-page.tsx +238 -0
  595. package/src/components-page/account-settings/api-keys/api-keys-page.tsx +157 -0
  596. package/src/components-page/account-settings/editable-text.tsx +53 -0
  597. package/src/components-page/account-settings/email-and-auth/email-and-auth-page.tsx +24 -0
  598. package/src/components-page/account-settings/email-and-auth/emails-section.tsx +201 -0
  599. package/src/components-page/account-settings/email-and-auth/mfa-section.tsx +139 -0
  600. package/src/components-page/account-settings/email-and-auth/otp-section.tsx +102 -0
  601. package/src/components-page/account-settings/email-and-auth/passkey-section.tsx +112 -0
  602. package/src/components-page/account-settings/email-and-auth/password-section.tsx +174 -0
  603. package/src/components-page/account-settings/notifications/notifications-page.tsx +44 -0
  604. package/src/components-page/account-settings/page-layout.tsx +11 -0
  605. package/src/components-page/account-settings/payments/payments-page.tsx +73 -0
  606. package/src/components-page/account-settings/payments/payments-panel.tsx +543 -0
  607. package/src/components-page/account-settings/profile-page/profile-page.tsx +61 -0
  608. package/src/components-page/account-settings/section.tsx +26 -0
  609. package/src/components-page/account-settings/settings/delete-account-section.tsx +85 -0
  610. package/src/components-page/account-settings/settings/settings-page.tsx +19 -0
  611. package/src/components-page/account-settings/settings/sign-out-section.tsx +40 -0
  612. package/src/components-page/account-settings/teams/leave-team-section.tsx +57 -0
  613. package/src/components-page/account-settings/teams/team-api-keys-section.tsx +74 -0
  614. package/src/components-page/account-settings/teams/team-creation-page.tsx +92 -0
  615. package/src/components-page/account-settings/teams/team-display-name-section.tsx +31 -0
  616. package/src/components-page/account-settings/teams/team-member-invitation-section.tsx +128 -0
  617. package/src/components-page/account-settings/teams/team-member-list-section.tsx +59 -0
  618. package/src/components-page/account-settings/teams/team-page.tsx +28 -0
  619. package/src/components-page/account-settings/teams/team-profile-image-section.tsx +33 -0
  620. package/src/components-page/account-settings/teams/team-profile-user-section.tsx +29 -0
  621. package/src/components-page/account-settings.tsx +343 -0
  622. package/src/components-page/auth-page.tsx +206 -0
  623. package/src/components-page/cli-auth-confirm.test.tsx +204 -0
  624. package/src/components-page/cli-auth-confirm.tsx +278 -0
  625. package/src/components-page/email-verification.tsx +76 -0
  626. package/src/components-page/error-page.tsx +105 -0
  627. package/src/components-page/forgot-password.tsx +105 -0
  628. package/src/components-page/hexclave-handler-client.test.tsx +64 -0
  629. package/src/components-page/hexclave-handler-client.tsx +364 -0
  630. package/src/components-page/hexclave-handler.tsx +48 -0
  631. package/src/components-page/magic-link-callback.tsx +92 -0
  632. package/src/components-page/mfa.tsx +222 -0
  633. package/src/components-page/oauth-callback.tsx +78 -0
  634. package/src/components-page/onboarding.tsx +176 -0
  635. package/src/components-page/password-reset.tsx +185 -0
  636. package/src/components-page/section.tsx +27 -0
  637. package/src/components-page/sign-in.tsx +34 -0
  638. package/src/components-page/sign-out.tsx +37 -0
  639. package/src/components-page/sign-up.tsx +24 -0
  640. package/src/components-page/team-creation.tsx +78 -0
  641. package/src/components-page/team-invitation.tsx +150 -0
  642. package/src/dev-tool/dev-tool-core.ts +2460 -0
  643. package/src/dev-tool/dev-tool-styles.ts +2758 -0
  644. package/src/dev-tool/dev-tool-trigger-position.test.ts +113 -0
  645. package/src/dev-tool/dev-tool-trigger-position.ts +109 -0
  646. package/src/dev-tool/index.ts +149 -0
  647. package/src/generated/.gitignore +3 -0
  648. package/src/generated/quetzal-translations.ts +4312 -0
  649. package/src/global.css +13 -0
  650. package/src/global.d.ts +12 -0
  651. package/src/index.ts +39 -0
  652. package/src/integrations/convex/component/README.md +74 -0
  653. package/src/integrations/convex/component/convex.config.ts +9 -0
  654. package/src/integrations/convex.ts +28 -0
  655. package/src/lib/auth.test.ts +67 -0
  656. package/src/lib/auth.ts +175 -0
  657. package/src/lib/cookie.ts +421 -0
  658. package/src/lib/hexclave-app/api-keys/index.ts +73 -0
  659. package/src/lib/hexclave-app/apps/implementations/admin-app-impl.ts +1261 -0
  660. package/src/lib/hexclave-app/apps/implementations/client-app-impl.cross-domain.test.ts +454 -0
  661. package/src/lib/hexclave-app/apps/implementations/client-app-impl.oauth-prefetch.test.ts +36 -0
  662. package/src/lib/hexclave-app/apps/implementations/client-app-impl.ts +3956 -0
  663. package/src/lib/hexclave-app/apps/implementations/common.ts +264 -0
  664. package/src/lib/hexclave-app/apps/implementations/event-tracker.test.ts +105 -0
  665. package/src/lib/hexclave-app/apps/implementations/event-tracker.ts +306 -0
  666. package/src/lib/hexclave-app/apps/implementations/index.ts +35 -0
  667. package/src/lib/hexclave-app/apps/implementations/redirect-page-urls.ts +342 -0
  668. package/src/lib/hexclave-app/apps/implementations/server-app-impl.ts +1619 -0
  669. package/src/lib/hexclave-app/apps/implementations/session-refresh-subscription.test.ts +106 -0
  670. package/src/lib/hexclave-app/apps/implementations/session-refresh-subscription.ts +52 -0
  671. package/src/lib/hexclave-app/apps/implementations/session-replay.test.ts +33 -0
  672. package/src/lib/hexclave-app/apps/implementations/session-replay.ts +356 -0
  673. package/src/lib/hexclave-app/apps/index.ts +40 -0
  674. package/src/lib/hexclave-app/apps/interfaces/admin-app.ts +192 -0
  675. package/src/lib/hexclave-app/apps/interfaces/client-app.ts +180 -0
  676. package/src/lib/hexclave-app/apps/interfaces/server-app.ts +129 -0
  677. package/src/lib/hexclave-app/common.ts +216 -0
  678. package/src/lib/hexclave-app/connected-accounts/index.ts +49 -0
  679. package/src/lib/hexclave-app/contact-channels/index.ts +80 -0
  680. package/src/lib/hexclave-app/customers/index.ts +158 -0
  681. package/src/lib/hexclave-app/data-vault/index.ts +12 -0
  682. package/src/lib/hexclave-app/email/index.ts +280 -0
  683. package/src/lib/hexclave-app/email-templates/index.ts +24 -0
  684. package/src/lib/hexclave-app/index.ts +146 -0
  685. package/src/lib/hexclave-app/internal-api-keys/index.ts +55 -0
  686. package/src/lib/hexclave-app/notification-categories/index.ts +12 -0
  687. package/src/lib/hexclave-app/permissions/index.ts +75 -0
  688. package/src/lib/hexclave-app/project-configs/index.ts +103 -0
  689. package/src/lib/hexclave-app/projects/index.ts +236 -0
  690. package/src/lib/hexclave-app/session-replays/index.ts +72 -0
  691. package/src/lib/hexclave-app/teams/index.ts +206 -0
  692. package/src/lib/hexclave-app/url-targets.test.ts +270 -0
  693. package/src/lib/hexclave-app/url-targets.ts +413 -0
  694. package/src/lib/hexclave-app/users/index.ts +523 -0
  695. package/src/lib/hooks.tsx +63 -0
  696. package/src/lib/translations.tsx +23 -0
  697. package/src/providers/hexclave-context.tsx +20 -0
  698. package/src/providers/hexclave-provider-client.tsx +39 -0
  699. package/src/providers/hexclave-provider.tsx +48 -0
  700. package/src/providers/theme-provider.tsx +121 -0
  701. package/src/providers/translation-provider-client.tsx +35 -0
  702. package/src/providers/translation-provider.tsx +25 -0
  703. package/src/tanstack-start-server-context.d.ts +13 -0
  704. package/src/utils/browser-script.tsx +135 -0
  705. package/src/utils/constants.tsx +58 -0
  706. package/src/utils/url.ts +24 -0
  707. package/dist/components-page/stack-handler-client.d.ts.map +0 -1
  708. package/dist/components-page/stack-handler-client.js.map +0 -1
  709. package/dist/components-page/stack-handler.d.ts.map +0 -1
  710. package/dist/components-page/stack-handler.js.map +0 -1
  711. package/dist/esm/components-page/stack-handler-client.d.ts.map +0 -1
  712. package/dist/esm/components-page/stack-handler-client.js.map +0 -1
  713. package/dist/esm/components-page/stack-handler.d.ts.map +0 -1
  714. package/dist/esm/components-page/stack-handler.js.map +0 -1
  715. package/dist/esm/lib/env.d.ts +0 -42
  716. package/dist/esm/lib/env.js +0 -93
  717. package/dist/esm/lib/env.js.map +0 -1
  718. package/dist/esm/lib/stack-app/api-keys/index.js.map +0 -1
  719. package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.d.ts.map +0 -1
  720. package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.js.map +0 -1
  721. package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.cross-domain.test.js +0 -121
  722. package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.cross-domain.test.js.map +0 -1
  723. package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.d.ts.map +0 -1
  724. package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.js.map +0 -1
  725. package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.js.map +0 -1
  726. package/dist/esm/lib/stack-app/apps/implementations/common.d.ts.map +0 -1
  727. package/dist/esm/lib/stack-app/apps/implementations/common.js.map +0 -1
  728. package/dist/esm/lib/stack-app/apps/implementations/event-tracker.js.map +0 -1
  729. package/dist/esm/lib/stack-app/apps/implementations/event-tracker.test.js.map +0 -1
  730. package/dist/esm/lib/stack-app/apps/implementations/index.d.ts +0 -9
  731. package/dist/esm/lib/stack-app/apps/implementations/index.d.ts.map +0 -1
  732. package/dist/esm/lib/stack-app/apps/implementations/index.js +0 -27
  733. package/dist/esm/lib/stack-app/apps/implementations/index.js.map +0 -1
  734. package/dist/esm/lib/stack-app/apps/implementations/redirect-page-urls.js.map +0 -1
  735. package/dist/esm/lib/stack-app/apps/implementations/server-app-impl.js.map +0 -1
  736. package/dist/esm/lib/stack-app/apps/implementations/session-refresh-subscription.js.map +0 -1
  737. package/dist/esm/lib/stack-app/apps/implementations/session-refresh-subscription.test.js.map +0 -1
  738. package/dist/esm/lib/stack-app/apps/implementations/session-replay.js.map +0 -1
  739. package/dist/esm/lib/stack-app/apps/implementations/session-replay.test.js.map +0 -1
  740. package/dist/esm/lib/stack-app/apps/interfaces/admin-app.js.map +0 -1
  741. package/dist/esm/lib/stack-app/apps/interfaces/client-app.js.map +0 -1
  742. package/dist/esm/lib/stack-app/apps/interfaces/server-app.js.map +0 -1
  743. package/dist/esm/lib/stack-app/common.js +0 -7
  744. package/dist/esm/lib/stack-app/common.js.map +0 -1
  745. package/dist/esm/lib/stack-app/contact-channels/index.js.map +0 -1
  746. package/dist/esm/lib/stack-app/email-templates/index.js.map +0 -1
  747. package/dist/esm/lib/stack-app/internal-api-keys/index.js.map +0 -1
  748. package/dist/esm/lib/stack-app/permissions/index.js.map +0 -1
  749. package/dist/esm/lib/stack-app/projects/index.js.map +0 -1
  750. package/dist/esm/lib/stack-app/teams/index.js.map +0 -1
  751. package/dist/esm/lib/stack-app/url-targets.js.map +0 -1
  752. package/dist/esm/lib/stack-app/url-targets.test.js.map +0 -1
  753. package/dist/esm/lib/stack-app/users/index.js.map +0 -1
  754. package/dist/esm/providers/stack-context.d.ts +0 -11
  755. package/dist/esm/providers/stack-context.d.ts.map +0 -1
  756. package/dist/esm/providers/stack-context.js +0 -12
  757. package/dist/esm/providers/stack-context.js.map +0 -1
  758. package/dist/esm/providers/stack-provider-client.d.ts.map +0 -1
  759. package/dist/esm/providers/stack-provider-client.js +0 -30
  760. package/dist/esm/providers/stack-provider-client.js.map +0 -1
  761. package/dist/esm/providers/stack-provider.d.ts.map +0 -1
  762. package/dist/esm/providers/stack-provider.js.map +0 -1
  763. package/dist/lib/env.d.ts +0 -42
  764. package/dist/lib/env.js +0 -95
  765. package/dist/lib/env.js.map +0 -1
  766. package/dist/lib/stack-app/api-keys/index.d.ts.map +0 -1
  767. package/dist/lib/stack-app/api-keys/index.js.map +0 -1
  768. package/dist/lib/stack-app/apps/implementations/admin-app-impl.d.ts.map +0 -1
  769. package/dist/lib/stack-app/apps/implementations/admin-app-impl.js.map +0 -1
  770. package/dist/lib/stack-app/apps/implementations/client-app-impl.cross-domain.test.js +0 -121
  771. package/dist/lib/stack-app/apps/implementations/client-app-impl.cross-domain.test.js.map +0 -1
  772. package/dist/lib/stack-app/apps/implementations/client-app-impl.d.ts.map +0 -1
  773. package/dist/lib/stack-app/apps/implementations/client-app-impl.js.map +0 -1
  774. package/dist/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.js.map +0 -1
  775. package/dist/lib/stack-app/apps/implementations/common.d.ts.map +0 -1
  776. package/dist/lib/stack-app/apps/implementations/common.js.map +0 -1
  777. package/dist/lib/stack-app/apps/implementations/event-tracker.d.ts.map +0 -1
  778. package/dist/lib/stack-app/apps/implementations/event-tracker.js.map +0 -1
  779. package/dist/lib/stack-app/apps/implementations/event-tracker.test.js.map +0 -1
  780. package/dist/lib/stack-app/apps/implementations/index.d.ts +0 -9
  781. package/dist/lib/stack-app/apps/implementations/index.d.ts.map +0 -1
  782. package/dist/lib/stack-app/apps/implementations/index.js +0 -31
  783. package/dist/lib/stack-app/apps/implementations/index.js.map +0 -1
  784. package/dist/lib/stack-app/apps/implementations/redirect-page-urls.d.ts.map +0 -1
  785. package/dist/lib/stack-app/apps/implementations/redirect-page-urls.js.map +0 -1
  786. package/dist/lib/stack-app/apps/implementations/server-app-impl.d.ts.map +0 -1
  787. package/dist/lib/stack-app/apps/implementations/server-app-impl.js.map +0 -1
  788. package/dist/lib/stack-app/apps/implementations/session-refresh-subscription.d.ts.map +0 -1
  789. package/dist/lib/stack-app/apps/implementations/session-refresh-subscription.js.map +0 -1
  790. package/dist/lib/stack-app/apps/implementations/session-refresh-subscription.test.js.map +0 -1
  791. package/dist/lib/stack-app/apps/implementations/session-replay.d.ts.map +0 -1
  792. package/dist/lib/stack-app/apps/implementations/session-replay.js.map +0 -1
  793. package/dist/lib/stack-app/apps/implementations/session-replay.test.js.map +0 -1
  794. package/dist/lib/stack-app/apps/interfaces/admin-app.d.ts.map +0 -1
  795. package/dist/lib/stack-app/apps/interfaces/admin-app.js.map +0 -1
  796. package/dist/lib/stack-app/apps/interfaces/client-app.d.ts.map +0 -1
  797. package/dist/lib/stack-app/apps/interfaces/client-app.js.map +0 -1
  798. package/dist/lib/stack-app/apps/interfaces/server-app.d.ts.map +0 -1
  799. package/dist/lib/stack-app/apps/interfaces/server-app.js.map +0 -1
  800. package/dist/lib/stack-app/common.d.ts.map +0 -1
  801. package/dist/lib/stack-app/common.js +0 -9
  802. package/dist/lib/stack-app/common.js.map +0 -1
  803. package/dist/lib/stack-app/connected-accounts/index.d.ts.map +0 -1
  804. package/dist/lib/stack-app/contact-channels/index.d.ts.map +0 -1
  805. package/dist/lib/stack-app/contact-channels/index.js.map +0 -1
  806. package/dist/lib/stack-app/customers/index.d.ts.map +0 -1
  807. package/dist/lib/stack-app/data-vault/index.d.ts.map +0 -1
  808. package/dist/lib/stack-app/email/index.d.ts.map +0 -1
  809. package/dist/lib/stack-app/email-templates/index.d.ts.map +0 -1
  810. package/dist/lib/stack-app/email-templates/index.js.map +0 -1
  811. package/dist/lib/stack-app/internal-api-keys/index.d.ts.map +0 -1
  812. package/dist/lib/stack-app/internal-api-keys/index.js.map +0 -1
  813. package/dist/lib/stack-app/notification-categories/index.d.ts.map +0 -1
  814. package/dist/lib/stack-app/permissions/index.d.ts.map +0 -1
  815. package/dist/lib/stack-app/permissions/index.js.map +0 -1
  816. package/dist/lib/stack-app/project-configs/index.d.ts.map +0 -1
  817. package/dist/lib/stack-app/projects/index.d.ts.map +0 -1
  818. package/dist/lib/stack-app/projects/index.js.map +0 -1
  819. package/dist/lib/stack-app/session-replays/index.d.ts.map +0 -1
  820. package/dist/lib/stack-app/teams/index.d.ts.map +0 -1
  821. package/dist/lib/stack-app/teams/index.js.map +0 -1
  822. package/dist/lib/stack-app/url-targets.d.ts.map +0 -1
  823. package/dist/lib/stack-app/url-targets.js.map +0 -1
  824. package/dist/lib/stack-app/url-targets.test.js.map +0 -1
  825. package/dist/lib/stack-app/users/index.d.ts.map +0 -1
  826. package/dist/lib/stack-app/users/index.js.map +0 -1
  827. package/dist/providers/stack-context.d.ts +0 -11
  828. package/dist/providers/stack-context.d.ts.map +0 -1
  829. package/dist/providers/stack-context.js +0 -15
  830. package/dist/providers/stack-context.js.map +0 -1
  831. package/dist/providers/stack-provider-client.d.ts.map +0 -1
  832. package/dist/providers/stack-provider-client.js.map +0 -1
  833. package/dist/providers/stack-provider.d.ts.map +0 -1
  834. package/dist/providers/stack-provider.js.map +0 -1
  835. /package/dist/{esm/lib/stack-app/apps/implementations/client-app-impl.cross-domain.test.d.ts → components-page/hexclave-handler-client.test.d.ts} +0 -0
  836. /package/dist/esm/{lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.d.ts → components-page/hexclave-handler-client.test.d.ts} +0 -0
  837. /package/dist/{lib/stack-app → esm/lib/hexclave-app}/apps/implementations/client-app-impl.cross-domain.test.d.ts +0 -0
  838. /package/dist/{lib/stack-app → esm/lib/hexclave-app}/apps/implementations/client-app-impl.oauth-prefetch.test.d.ts +0 -0
  839. /package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.test.d.ts +0 -0
  840. /package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/session-refresh-subscription.test.d.ts +0 -0
  841. /package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/session-replay.test.d.ts +0 -0
  842. /package/dist/esm/lib/{stack-app → hexclave-app}/apps/index.d.ts +0 -0
  843. /package/dist/esm/lib/{stack-app → hexclave-app}/apps/index.js +0 -0
  844. /package/dist/esm/lib/{stack-app → hexclave-app}/connected-accounts/index.js +0 -0
  845. /package/dist/esm/lib/{stack-app → hexclave-app}/customers/index.js +0 -0
  846. /package/dist/esm/lib/{stack-app → hexclave-app}/data-vault/index.js +0 -0
  847. /package/dist/esm/lib/{stack-app → hexclave-app}/email/index.js +0 -0
  848. /package/dist/esm/lib/{stack-app → hexclave-app}/notification-categories/index.js +0 -0
  849. /package/dist/esm/lib/{stack-app → hexclave-app}/project-configs/index.js +0 -0
  850. /package/dist/esm/lib/{stack-app → hexclave-app}/session-replays/index.js +0 -0
  851. /package/dist/esm/lib/{stack-app → hexclave-app}/url-targets.test.d.ts +0 -0
  852. /package/dist/lib/{stack-app/apps/implementations/event-tracker.test.d.ts → hexclave-app/apps/implementations/client-app-impl.cross-domain.test.d.ts} +0 -0
  853. /package/dist/lib/{stack-app/apps/implementations/session-refresh-subscription.test.d.ts → hexclave-app/apps/implementations/client-app-impl.oauth-prefetch.test.d.ts} +0 -0
  854. /package/dist/lib/{stack-app/apps/implementations/session-replay.test.d.ts → hexclave-app/apps/implementations/event-tracker.test.d.ts} +0 -0
  855. /package/dist/lib/{stack-app/url-targets.test.d.ts → hexclave-app/apps/implementations/session-refresh-subscription.test.d.ts} +0 -0
  856. /package/dist/lib/{stack-app → hexclave-app}/apps/index.d.ts +0 -0
  857. /package/dist/lib/{stack-app → hexclave-app}/apps/index.js +0 -0
  858. /package/dist/lib/{stack-app → hexclave-app}/connected-accounts/index.js +0 -0
  859. /package/dist/lib/{stack-app → hexclave-app}/customers/index.js +0 -0
  860. /package/dist/lib/{stack-app → hexclave-app}/data-vault/index.js +0 -0
  861. /package/dist/lib/{stack-app → hexclave-app}/email/index.js +0 -0
  862. /package/dist/lib/{stack-app → hexclave-app}/notification-categories/index.js +0 -0
  863. /package/dist/lib/{stack-app → hexclave-app}/project-configs/index.js +0 -0
  864. /package/dist/lib/{stack-app → hexclave-app}/session-replays/index.js +0 -0
@@ -0,0 +1,192 @@
1
+
2
+ //===========================================
3
+ // THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template
4
+ //===========================================
5
+ import { AnalyticsQueryOptions, AnalyticsQueryResponse } from "@hexclave/shared/dist/interface/crud/analytics";
6
+ import type { AdminGetSessionReplayChunkEventsResponse, AdminGetSessionReplayAllEventsResponse } from "@hexclave/shared/dist/interface/crud/session-replays";
7
+ import type { Transaction, TransactionType } from "@hexclave/shared/dist/interface/crud/transactions";
8
+ import { InternalSession } from "@hexclave/shared/dist/sessions";
9
+ import type { MoneyAmount } from "@hexclave/shared/dist/utils/currency-constants";
10
+ import { Result } from "@hexclave/shared/dist/utils/results";
11
+ import { AsyncStoreProperty, EmailConfig } from "../../common";
12
+ import { AdminEmailOutbox, AdminSentEmail } from "../../email";
13
+ import { InternalApiKey, InternalApiKeyCreateOptions, InternalApiKeyFirstView } from "../../internal-api-keys";
14
+ import { AdminProjectPermission, AdminProjectPermissionDefinition, AdminProjectPermissionDefinitionCreateOptions, AdminProjectPermissionDefinitionUpdateOptions, AdminTeamPermission, AdminTeamPermissionDefinition, AdminTeamPermissionDefinitionCreateOptions, AdminTeamPermissionDefinitionUpdateOptions } from "../../permissions";
15
+ import { AdminProject } from "../../projects";
16
+ import { _HexclaveAdminAppImpl } from "../implementations";
17
+ import { StackServerApp, StackServerAppConstructorOptions } from "./server-app";
18
+
19
+ export type EmailOutboxListOptions = {
20
+ status?: string,
21
+ simpleStatus?: string,
22
+ limit?: number,
23
+ cursor?: string,
24
+ };
25
+
26
+ export type EmailOutboxListResult = {
27
+ items: AdminEmailOutbox[],
28
+ nextCursor: string | null,
29
+ };
30
+
31
+ export type EmailOutboxUpdateOptions = {
32
+ isPaused?: boolean,
33
+ scheduledAtMillis?: number,
34
+ cancel?: boolean,
35
+ tsxSource?: string,
36
+ themeId?: string | null,
37
+ };
38
+
39
+ export type ManagedEmailProviderSetupResult = {
40
+ domainId: string,
41
+ subdomain: string,
42
+ senderLocalPart: string,
43
+ nameServerRecords: string[],
44
+ status: ManagedEmailProviderStatus["status"],
45
+ };
46
+
47
+ export type ManagedEmailProviderStatus = {
48
+ status: "pending_dns" | "pending_verification" | "verified" | "applied" | "failed",
49
+ };
50
+
51
+ export type ManagedEmailProviderListItem = {
52
+ domainId: string,
53
+ subdomain: string,
54
+ senderLocalPart: string,
55
+ status: ManagedEmailProviderStatus["status"],
56
+ nameServerRecords: string[],
57
+ };
58
+
59
+ import type { AdminSessionReplay, ListSessionReplayChunksOptions, ListSessionReplayChunksResult, ListSessionReplaysOptions, ListSessionReplaysResult, SessionReplayAllEventsResult } from "../../session-replays";
60
+ export type { AdminSessionReplay, AdminSessionReplayChunk, ListSessionReplaysOptions, ListSessionReplaysResult, ListSessionReplayChunksOptions, ListSessionReplayChunksResult, SessionReplayAllEventsResult } from "../../session-replays";
61
+
62
+
63
+ /** @deprecated Use `HexclaveAdminAppConstructorOptions` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */
64
+ export type StackAdminAppConstructorOptions<HasTokenStore extends boolean, ProjectId extends string> = (
65
+ & StackServerAppConstructorOptions<HasTokenStore, ProjectId>
66
+ & {
67
+ superSecretAdminKey?: string,
68
+ projectOwnerSession?: InternalSession | (() => Promise<string | null>),
69
+ }
70
+ );
71
+
72
+
73
+ /** @deprecated Use `HexclaveAdminApp` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */
74
+ export type StackAdminApp<HasTokenStore extends boolean = boolean, ProjectId extends string = string> = (
75
+ & AsyncStoreProperty<"project", [], AdminProject, false>
76
+ & AsyncStoreProperty<"internalApiKeys", [], InternalApiKey[], true>
77
+ & AsyncStoreProperty<"teamPermissionDefinitions", [], AdminTeamPermissionDefinition[], true>
78
+ & AsyncStoreProperty<"projectPermissionDefinitions", [], AdminProjectPermissionDefinition[], true>
79
+ & AsyncStoreProperty<"emailThemes", [], { id: string, displayName: string }[], true>
80
+ & AsyncStoreProperty<"emailPreview", [{ themeId?: string | null | false, themeTsxSource?: string, templateId?: string, templateTsxSource?: string }], string, false>
81
+ & AsyncStoreProperty<"emailPreviewWithEditableMarkers", [{ themeId?: string | null | false, themeTsxSource?: string, templateId?: string, templateTsxSource?: string, editableSource?: 'template' | 'theme' | 'both' }], { html: string, editableRegions?: Record<string, unknown> }, false> // THIS_LINE_PLATFORM react-like
82
+ & AsyncStoreProperty<"emailTemplates", [], { id: string, displayName: string, themeId?: string, tsxSource: string }[], true>
83
+ & AsyncStoreProperty<"emailDrafts", [], { id: string, displayName: string, themeId: string | undefined | false, tsxSource: string, sentAt: Date | null }[], true>
84
+ & AsyncStoreProperty<"stripeAccountInfo", [], { account_id: string, charges_enabled: boolean, details_submitted: boolean, payouts_enabled: boolean } | null, false>
85
+ & AsyncStoreProperty<
86
+ "transactions",
87
+ [{
88
+ cursor?: string,
89
+ limit?: number,
90
+ type?: TransactionType,
91
+ customerType?: 'user' | 'team' | 'custom',
92
+ customerId?: string,
93
+ }],
94
+ { transactions: Transaction[], nextCursor: string | null },
95
+ true
96
+ >
97
+ & {
98
+ createInternalApiKey(options: InternalApiKeyCreateOptions): Promise<InternalApiKeyFirstView>,
99
+
100
+ createTeamPermissionDefinition(data: AdminTeamPermissionDefinitionCreateOptions): Promise<AdminTeamPermission>,
101
+ updateTeamPermissionDefinition(permissionId: string, data: AdminTeamPermissionDefinitionUpdateOptions): Promise<void>,
102
+ deleteTeamPermissionDefinition(permissionId: string): Promise<void>,
103
+ /**
104
+ * @param options.query Free-text search; matches against permission ID and description.
105
+ */
106
+ listTeamPermissionDefinitionsPaginated(options: { limit: number, cursor?: string, query?: string }): Promise<{ items: AdminTeamPermissionDefinition[], nextCursor: string | null }>,
107
+
108
+ createProjectPermissionDefinition(data: AdminProjectPermissionDefinitionCreateOptions): Promise<AdminProjectPermission>,
109
+ updateProjectPermissionDefinition(permissionId: string, data: AdminProjectPermissionDefinitionUpdateOptions): Promise<void>,
110
+ deleteProjectPermissionDefinition(permissionId: string): Promise<void>,
111
+
112
+ useSvixToken(): { token: string, url: string | undefined }, // THIS_LINE_PLATFORM react-like
113
+
114
+ sendTestEmail(options: {
115
+ recipientEmail: string,
116
+ emailConfig: EmailConfig,
117
+ }): Promise<Result<undefined, { errorMessage: string }>>,
118
+
119
+ sendTestWebhook(options: { endpointId: string }): Promise<Result<undefined, { errorMessage: string }>>,
120
+
121
+ sendSignInInvitationEmail(email: string, callbackUrl: string): Promise<void>,
122
+
123
+ listSentEmails(): Promise<AdminSentEmail[]>,
124
+ setupManagedEmailProvider(options: { subdomain: string, senderLocalPart: string }): Promise<ManagedEmailProviderSetupResult>,
125
+ checkManagedEmailStatus(options: { domainId: string, subdomain: string, senderLocalPart: string }): Promise<ManagedEmailProviderStatus>,
126
+ listManagedEmailDomains(): Promise<ManagedEmailProviderListItem[]>,
127
+ applyManagedEmailProvider(options: { domainId: string }): Promise<{ status: "applied" }>,
128
+ deleteManagedEmailDomain(options: { resendDomainId: string }): Promise<{ status: "deleted" }>,
129
+
130
+ useEmailTheme(id: string): { displayName: string, tsxSource: string }, // THIS_LINE_PLATFORM react-like
131
+ createEmailTheme(displayName: string): Promise<{ id: string }>,
132
+ updateEmailTheme(id: string, tsxSource: string): Promise<void>,
133
+ deleteEmailTheme(id: string): Promise<void>,
134
+ saveChatMessage(threadId: string, message: any): Promise<void>,
135
+ listChatMessages(threadId: string): Promise<{ messages: Array<any> }>,
136
+ rewriteTemplateSourceWithAI(templateTsxSource: string): Promise<{ tsxSource: string }>,
137
+ updateEmailTemplate(id: string, tsxSource: string, themeId: string | null | false): Promise<{ renderedHtml: string }>,
138
+ createEmailTemplate(displayName: string): Promise<{ id: string }>,
139
+ deleteEmailTemplate(id: string): Promise<void>,
140
+
141
+ setupPayments(): Promise<{ url: string }>,
142
+ createStripeWidgetAccountSession(): Promise<{ client_secret: string }>,
143
+ getPaymentMethodConfigs(): Promise<{ configId: string, methods: Array<{ id: string, name: string, enabled: boolean, available: boolean, overridable: boolean }> } | null>,
144
+ updatePaymentMethodConfigs(configId: string, updates: Record<string, 'on' | 'off'>): Promise<void>,
145
+ createEmailDraft(options: { displayName: string, themeId?: string | undefined | false, tsxSource?: string }): Promise<{ id: string }>,
146
+ updateEmailDraft(id: string, data: { displayName?: string, themeId?: string | undefined | false, tsxSource?: string }): Promise<void>,
147
+ deleteEmailDraft(id: string): Promise<void>,
148
+ refreshEmailDrafts(): Promise<void>,
149
+ createItemQuantityChange(options: (
150
+ { userId: string, itemId: string, quantity: number, expiresAt?: string, description?: string } |
151
+ { teamId: string, itemId: string, quantity: number, expiresAt?: string, description?: string } |
152
+ { customCustomerId: string, itemId: string, quantity: number, expiresAt?: string, description?: string }
153
+ )): Promise<void>,
154
+ refundTransaction(options: {
155
+ type: "subscription" | "one-time-purchase",
156
+ id: string,
157
+ invoiceId?: string,
158
+ amountUsd: MoneyAmount,
159
+ endAction?: "now" | "at-period-end",
160
+ }): Promise<{ refundTransactionId: string }>,
161
+ queryAnalytics(options: AnalyticsQueryOptions): Promise<AnalyticsQueryResponse>,
162
+
163
+ listSessionReplays(options?: ListSessionReplaysOptions): Promise<ListSessionReplaysResult>,
164
+ getSessionReplay(sessionReplayId: string): Promise<AdminSessionReplay>,
165
+ listSessionReplayChunks(sessionReplayId: string, options?: ListSessionReplayChunksOptions): Promise<ListSessionReplayChunksResult>,
166
+ getSessionReplayChunkEvents(sessionReplayId: string, chunkId: string): Promise<AdminGetSessionReplayChunkEventsResponse>,
167
+ getSessionReplayEvents(sessionReplayId: string, options?: { offset?: number, limit?: number }): Promise<SessionReplayAllEventsResult>,
168
+
169
+ // Email Outbox methods
170
+ listOutboxEmails(options?: EmailOutboxListOptions): Promise<EmailOutboxListResult>,
171
+ getOutboxEmail(id: string): Promise<AdminEmailOutbox>,
172
+ updateOutboxEmail(id: string, options: EmailOutboxUpdateOptions): Promise<AdminEmailOutbox>,
173
+ pauseOutboxEmail(id: string): Promise<AdminEmailOutbox>,
174
+ unpauseOutboxEmail(id: string): Promise<AdminEmailOutbox>,
175
+ cancelOutboxEmail(id: string): Promise<AdminEmailOutbox>,
176
+ }
177
+ & StackServerApp<HasTokenStore, ProjectId>
178
+ );
179
+ /** @deprecated Use `HexclaveAdminAppConstructor` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */
180
+ export type StackAdminAppConstructor = {
181
+ new <
182
+ HasTokenStore extends boolean,
183
+ ProjectId extends string
184
+ >(options: StackAdminAppConstructorOptions<HasTokenStore, ProjectId>): StackAdminApp<HasTokenStore, ProjectId>,
185
+ new(options: StackAdminAppConstructorOptions<boolean, string>): StackAdminApp<boolean, string>,
186
+ };
187
+ export type HexclaveAdminAppConstructorOptions<HasTokenStore extends boolean, ProjectId extends string> = StackAdminAppConstructorOptions<HasTokenStore, ProjectId>;
188
+ export type HexclaveAdminApp<HasTokenStore extends boolean = boolean, ProjectId extends string = string> = StackAdminApp<HasTokenStore, ProjectId>;
189
+ export type HexclaveAdminAppConstructor = StackAdminAppConstructor;
190
+ export const HexclaveAdminApp: HexclaveAdminAppConstructor = _HexclaveAdminAppImpl;
191
+ /** @deprecated Use `HexclaveAdminApp` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */
192
+ export const StackAdminApp: StackAdminAppConstructor = HexclaveAdminApp;
@@ -0,0 +1,180 @@
1
+
2
+ //===========================================
3
+ // THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template
4
+ //===========================================
5
+ import { KnownErrors } from "@hexclave/shared";
6
+ import { CurrentUserCrud } from "@hexclave/shared/dist/interface/crud/current-user";
7
+ import { Result } from "@hexclave/shared/dist/utils/results";
8
+ import { AsyncStoreProperty, AuthLike, GetCurrentPartialUserOptions, GetCurrentUserOptions, HandlerUrlOptions, HandlerUrls, OAuthScopesOnSignIn, RedirectMethod, RedirectToOptions, ResolvedHandlerUrls, hexclaveAppInternalsSymbol, TokenStoreInit } from "../../common";
9
+ import type { RequestListener } from "@hexclave/shared/dist/interface/client-interface";
10
+ import { CustomerInvoicesList, CustomerInvoicesRequestOptions, CustomerProductsList, CustomerProductsRequestOptions, Item } from "../../customers";
11
+ import { Project } from "../../projects";
12
+ import { ProjectCurrentUser, SyncedPartialUser, TokenPartialUser } from "../../users";
13
+ import { _HexclaveClientAppImpl } from "../implementations";
14
+ import { AnalyticsOptions } from "../implementations/session-replay";
15
+
16
+ /** @deprecated Use `HexclaveClientAppConstructorOptions` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */
17
+ export type StackClientAppConstructorOptions<HasTokenStore extends boolean, ProjectId extends string> = {
18
+ baseUrl?: string | { browser: string, server: string },
19
+ extraRequestHeaders?: Record<string, string>,
20
+ projectId?: ProjectId,
21
+ publishableClientKey?: string,
22
+ urls?: HandlerUrlOptions,
23
+ oauthScopesOnSignIn?: Partial<OAuthScopesOnSignIn>,
24
+ tokenStore?: TokenStoreInit<HasTokenStore>,
25
+ redirectMethod?: RedirectMethod,
26
+ inheritsFrom?: StackClientApp<any, any>,
27
+
28
+ /**
29
+ * Whether to show the Hexclave dev tool indicator in browser-like development environments.
30
+ *
31
+ * Defaults to true.
32
+ */
33
+ devTool?: boolean,
34
+
35
+ /**
36
+ * By default, the Stack app will automatically prefetch some data from Stack's server when this app is first
37
+ * constructed. This improves the performance of your app, but will create network requests that are unnecessary if
38
+ * the app is never used or disposed of immediately. To disable this behavior, set this option to true.
39
+ */
40
+ noAutomaticPrefetch?: boolean,
41
+
42
+ /**
43
+ * Options for analytics and session recording. Replays are disabled by default;
44
+ * set `{ replays: { enabled: true } }` to opt in.
45
+ */
46
+ analytics?: AnalyticsOptions,
47
+ } & (
48
+ { tokenStore: TokenStoreInit<HasTokenStore> } | { tokenStore?: undefined, inheritsFrom: StackClientApp<HasTokenStore, any> }
49
+ ) & (
50
+ string extends ProjectId ? unknown : ({ projectId: ProjectId } | { inheritsFrom: StackClientApp<any, ProjectId> })
51
+ );
52
+
53
+
54
+ /** @deprecated Use `HexclaveClientAppJson` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */
55
+ export type StackClientAppJson<HasTokenStore extends boolean, ProjectId extends string> = StackClientAppConstructorOptions<HasTokenStore, ProjectId> & { inheritsFrom?: undefined } & {
56
+ uniqueIdentifier: string,
57
+ // note: if you add more fields here, make sure to ensure the checkString in the constructor has/doesn't have them
58
+ };
59
+
60
+ /** @deprecated Use `HexclaveClientApp` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */
61
+ export type StackClientApp<HasTokenStore extends boolean = boolean, ProjectId extends string = string> = (
62
+ & {
63
+ readonly projectId: ProjectId,
64
+
65
+ /**
66
+ * The version of the Hexclave SDK.
67
+ */
68
+ readonly version: string,
69
+
70
+ /**
71
+ * @deprecated `app.urls` is static and does not include runtime redirect-back parameters.
72
+ * For navigation, prefer `redirectToXyz()` methods (for example `redirectToSignIn()`).
73
+ */
74
+ readonly urls: Readonly<ResolvedHandlerUrls>,
75
+
76
+ signInWithOAuth(provider: string, options?: { returnTo?: string }): Promise<void>,
77
+ signInWithCredential(options: { email: string, password: string, noRedirect?: boolean }): Promise<Result<undefined, KnownErrors["EmailPasswordMismatch"] | KnownErrors["InvalidTotpCode"]>>,
78
+ signUpWithCredential(options: {
79
+ email: string,
80
+ password: string,
81
+ noRedirect?: boolean,
82
+ } & ({ noVerificationCallback: true } | { noVerificationCallback?: false, verificationCallbackUrl?: string })): Promise<Result<undefined, KnownErrors["UserWithEmailAlreadyExists"] | KnownErrors["PasswordRequirementsNotMet"] | KnownErrors["BotChallengeFailed"]>>,
83
+ signInWithPasskey(): Promise<Result<undefined, KnownErrors["PasskeyAuthenticationFailed"] | KnownErrors["InvalidTotpCode"] | KnownErrors["PasskeyWebAuthnError"]>>,
84
+ callOAuthCallback(): Promise<boolean>,
85
+ promptCliLogin(options: { appUrl: string, expiresInMillis?: number, anonRefreshToken?: string, promptLink?: (url: string, loginCode: string) => void }): Promise<Result<string, KnownErrors["CliAuthError"] | KnownErrors["CliAuthExpiredError"] | KnownErrors["CliAuthUsedError"]>>,
86
+ sendForgotPasswordEmail(email: string, options?: { callbackUrl?: string }): Promise<Result<undefined, KnownErrors["UserNotFound"]>>,
87
+ sendMagicLinkEmail(email: string, options?: { callbackUrl?: string }): Promise<Result<{ nonce: string }, KnownErrors["RedirectUrlNotWhitelisted"] | KnownErrors["BotChallengeFailed"]>>,
88
+ resetPassword(options: { code: string, password: string }): Promise<Result<undefined, KnownErrors["VerificationCodeError"]>>,
89
+ verifyPasswordResetCode(code: string): Promise<Result<undefined, KnownErrors["VerificationCodeError"]>>,
90
+ verifyTeamInvitationCode(code: string): Promise<Result<undefined, KnownErrors["VerificationCodeError"] | KnownErrors["TeamInvitationEmailMismatch"]>>,
91
+ acceptTeamInvitation(code: string): Promise<Result<undefined, KnownErrors["VerificationCodeError"] | KnownErrors["TeamInvitationEmailMismatch"]>>,
92
+ getTeamInvitationDetails(code: string): Promise<Result<{ teamDisplayName: string }, KnownErrors["VerificationCodeError"] | KnownErrors["TeamInvitationEmailMismatch"]>>,
93
+ verifyEmail(code: string): Promise<Result<undefined, KnownErrors["VerificationCodeError"]>>,
94
+ signInWithMagicLink(code: string, options?: { noRedirect?: boolean }): Promise<Result<undefined, KnownErrors["VerificationCodeError"] | KnownErrors["InvalidTotpCode"]>>,
95
+ signInWithMfa(otp: string, code: string, options?: { noRedirect?: boolean }): Promise<Result<undefined, KnownErrors["VerificationCodeError"] | KnownErrors["InvalidTotpCode"]>>,
96
+
97
+ redirectToOAuthCallback(): Promise<void>,
98
+
99
+ getConvexClientAuth(options: HasTokenStore extends false ? { tokenStore: TokenStoreInit } : { tokenStore?: TokenStoreInit }): (args: { forceRefreshToken: boolean }) => Promise<string | null>,
100
+ getConvexHttpClientAuth(options: { tokenStore: TokenStoreInit }): Promise<string>,
101
+
102
+ useUser(options: GetCurrentUserOptions<HasTokenStore> & { or: 'redirect' }): ProjectCurrentUser<ProjectId>,
103
+ useUser(options: GetCurrentUserOptions<HasTokenStore> & { or: 'throw' }): ProjectCurrentUser<ProjectId>,
104
+ useUser(options: GetCurrentUserOptions<HasTokenStore> & { or: 'anonymous' }): ProjectCurrentUser<ProjectId>,
105
+ useUser(options?: GetCurrentUserOptions<HasTokenStore>): ProjectCurrentUser<ProjectId> | null,
106
+
107
+ getUser(options: GetCurrentUserOptions<HasTokenStore> & { or: 'redirect' }): Promise<ProjectCurrentUser<ProjectId>>,
108
+ getUser(options: GetCurrentUserOptions<HasTokenStore> & { or: 'throw' }): Promise<ProjectCurrentUser<ProjectId>>,
109
+ getUser(options: GetCurrentUserOptions<HasTokenStore> & { or: 'anonymous' }): Promise<ProjectCurrentUser<ProjectId>>,
110
+ getUser(options?: GetCurrentUserOptions<HasTokenStore>): Promise<ProjectCurrentUser<ProjectId> | null>,
111
+
112
+ cancelSubscription(options: { productId: string, subscriptionId?: string } | { productId: string, subscriptionId?: string, teamId: string }): Promise<void>,
113
+
114
+ // note: we don't special-case 'anonymous' here to return non-null, see GetPartialUserOptions for more details
115
+ getPartialUser(options: GetCurrentPartialUserOptions<HasTokenStore> & { from: 'token' }): Promise<TokenPartialUser | null>,
116
+ getPartialUser(options: GetCurrentPartialUserOptions<HasTokenStore> & { from: 'convex' }): Promise<TokenPartialUser | null>,
117
+ getPartialUser(options: GetCurrentPartialUserOptions<HasTokenStore>): Promise<SyncedPartialUser | TokenPartialUser | null>,
118
+ usePartialUser(options: GetCurrentPartialUserOptions<HasTokenStore> & { from: 'token' }): TokenPartialUser | null,
119
+ usePartialUser(options: GetCurrentPartialUserOptions<HasTokenStore> & { from: 'convex' }): TokenPartialUser | null,
120
+ usePartialUser(options: GetCurrentPartialUserOptions<HasTokenStore>): SyncedPartialUser | TokenPartialUser | null,
121
+ useNavigate(): (to: string) => void, // THIS_LINE_PLATFORM react-like
122
+
123
+ [hexclaveAppInternalsSymbol]: {
124
+ toClientJson(): StackClientAppJson<HasTokenStore, ProjectId>,
125
+ setCurrentUser(userJsonPromise: Promise<CurrentUserCrud['Client']['Read'] | null>): void,
126
+ getConstructorOptions(): StackClientAppConstructorOptions<HasTokenStore, ProjectId> & { inheritsFrom?: undefined },
127
+ sendSessionReplayBatch(body: string, options: { keepalive: boolean }): Promise<Result<Response, Error>>,
128
+ sendAnalyticsEventBatch(body: string, options: { keepalive: boolean }): Promise<Result<Response, Error>>,
129
+ addRequestListener(listener: RequestListener): () => void,
130
+ sendRequest(path: string, requestOptions: RequestInit, requestType?: "client" | "server" | "admin"): Promise<Response>,
131
+ getRedirectMethod(): RedirectMethod,
132
+ redirectToUrl(url: string | URL, options?: { replace?: boolean }): Promise<void>,
133
+ redirectToHandler(handlerName: keyof HandlerUrls, options?: RedirectToOptions): Promise<void>,
134
+ signInWithTokens(tokens: { accessToken: string, refreshToken: string }): Promise<void>,
135
+ },
136
+ }
137
+ & AsyncStoreProperty<"project", [], Project, false>
138
+ & AsyncStoreProperty<
139
+ "item",
140
+ [{ itemId: string, userId: string } | { itemId: string, teamId: string } | { itemId: string, customCustomerId: string }],
141
+ Item,
142
+ false
143
+ >
144
+ & AsyncStoreProperty<
145
+ "products",
146
+ [options: CustomerProductsRequestOptions],
147
+ CustomerProductsList,
148
+ true
149
+ >
150
+ & AsyncStoreProperty<
151
+ "invoices",
152
+ [options: CustomerInvoicesRequestOptions],
153
+ CustomerInvoicesList,
154
+ true
155
+ >
156
+ & { [K in `redirectTo${Capitalize<keyof Omit<HandlerUrls, 'handler' | 'oauthCallback'>>}`]: (options?: RedirectToOptions) => Promise<void> }
157
+ & AuthLike<HasTokenStore extends false ? { tokenStore: TokenStoreInit } : { tokenStore?: TokenStoreInit }>
158
+ );
159
+ /** @deprecated Use `HexclaveClientAppConstructor` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */
160
+ export type StackClientAppConstructor = {
161
+ new <
162
+ TokenStoreType extends string,
163
+ HasTokenStore extends (TokenStoreType extends {} ? true : boolean),
164
+ ProjectId extends string
165
+ >(options: StackClientAppConstructorOptions<HasTokenStore, ProjectId>): StackClientApp<HasTokenStore, ProjectId>,
166
+ new(options: StackClientAppConstructorOptions<boolean, string>): StackClientApp<boolean, string>,
167
+
168
+ [hexclaveAppInternalsSymbol]: {
169
+ fromClientJson<HasTokenStore extends boolean, ProjectId extends string>(
170
+ json: StackClientAppJson<HasTokenStore, ProjectId>
171
+ ): StackClientApp<HasTokenStore, ProjectId>,
172
+ },
173
+ };
174
+ export type HexclaveClientAppConstructorOptions<HasTokenStore extends boolean, ProjectId extends string> = StackClientAppConstructorOptions<HasTokenStore, ProjectId>;
175
+ export type HexclaveClientAppJson<HasTokenStore extends boolean, ProjectId extends string> = StackClientAppJson<HasTokenStore, ProjectId>;
176
+ export type HexclaveClientApp<HasTokenStore extends boolean = boolean, ProjectId extends string = string> = StackClientApp<HasTokenStore, ProjectId>;
177
+ export type HexclaveClientAppConstructor = StackClientAppConstructor;
178
+ export const HexclaveClientApp: HexclaveClientAppConstructor = _HexclaveClientAppImpl;
179
+ /** @deprecated Use `HexclaveClientApp` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */
180
+ export const StackClientApp: StackClientAppConstructor = HexclaveClientApp;
@@ -0,0 +1,129 @@
1
+
2
+ //===========================================
3
+ // THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template
4
+ //===========================================
5
+ import { KnownErrors } from "@hexclave/shared";
6
+ import { Result } from "@hexclave/shared/dist/utils/results";
7
+ import type { GenericQueryCtx } from "convex/server";
8
+ import { AsyncStoreProperty, GetCurrentPartialUserOptions, GetCurrentUserOptions } from "../../common";
9
+ import { CustomerProductsList, CustomerProductsRequestOptions, InlineProduct, ServerItem } from "../../customers";
10
+ import { DataVaultStore } from "../../data-vault";
11
+ import { EmailDeliveryInfo, SendEmailOptions } from "../../email";
12
+ import { ServerListTeamsOptions, ServerListUsersOptions, ServerTeam, ServerTeamCreateOptions } from "../../teams";
13
+ import { ProjectCurrentServerUser, ServerOAuthProvider, ServerUser, ServerUserCreateOptions, SyncedPartialServerUser, TokenPartialUser } from "../../users";
14
+ import { _HexclaveServerAppImpl } from "../implementations";
15
+ import { StackClientApp, StackClientAppConstructorOptions } from "./client-app";
16
+
17
+
18
+ /** @deprecated Use `HexclaveServerAppConstructorOptions` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */
19
+ export type StackServerAppConstructorOptions<HasTokenStore extends boolean, ProjectId extends string> = StackClientAppConstructorOptions<HasTokenStore, ProjectId> & {
20
+ secretServerKey?: string,
21
+ };
22
+
23
+ /** @deprecated Use `HexclaveServerApp` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */
24
+ export type StackServerApp<HasTokenStore extends boolean = boolean, ProjectId extends string = string> = (
25
+ & {
26
+ createTeam(data: ServerTeamCreateOptions): Promise<ServerTeam>,
27
+ /**
28
+ * @deprecated use `getUser()` instead
29
+ */
30
+ getServerUser(): Promise<ProjectCurrentServerUser<ProjectId> | null>,
31
+
32
+ createUser(options: ServerUserCreateOptions): Promise<ServerUser>,
33
+ grantProduct(options: (
34
+ ({ userId: string } | { teamId: string } | { customCustomerId: string }) &
35
+ ({ productId: string } | { product: InlineProduct }) &
36
+ { quantity?: number }
37
+ )): Promise<void>,
38
+
39
+ useUser(options: GetCurrentUserOptions<HasTokenStore> & { or: 'redirect' }): ProjectCurrentServerUser<ProjectId>,
40
+ useUser(options: GetCurrentUserOptions<HasTokenStore> & { or: 'throw' }): ProjectCurrentServerUser<ProjectId>,
41
+ useUser(options: GetCurrentUserOptions<HasTokenStore> & { or: 'anonymous' }): ProjectCurrentServerUser<ProjectId>,
42
+ useUser(options?: GetCurrentUserOptions<HasTokenStore>): ProjectCurrentServerUser<ProjectId> | null,
43
+ useUser(id: string): ServerUser | null,
44
+ useUser(options: { apiKey: string, or?: "return-null" | "anonymous" }): ServerUser | null,
45
+ useUser(options: { from: "convex", ctx: GenericQueryCtx<any>, or?: "return-null" | "anonymous" }): ServerUser | null,
46
+
47
+ getUser(options: GetCurrentUserOptions<HasTokenStore> & { or: 'redirect' }): Promise<ProjectCurrentServerUser<ProjectId>>,
48
+ getUser(options: GetCurrentUserOptions<HasTokenStore> & { or: 'throw' }): Promise<ProjectCurrentServerUser<ProjectId>>,
49
+ getUser(options: GetCurrentUserOptions<HasTokenStore> & { or: 'anonymous' }): Promise<ProjectCurrentServerUser<ProjectId>>,
50
+ getUser(options?: GetCurrentUserOptions<HasTokenStore>): Promise<ProjectCurrentServerUser<ProjectId> | null>,
51
+ getUser(id: string): Promise<ServerUser | null>,
52
+ getUser(options: { apiKey: string, or?: "return-null" | "anonymous" }): Promise<ServerUser | null>,
53
+ getUser(options: { from: "convex", ctx: GenericQueryCtx<any>, or?: "return-null" | "anonymous" }): Promise<ServerUser | null>,
54
+
55
+ // note: we don't special-case 'anonymous' here to return non-null, see GetPartialUserOptions for more details
56
+ getPartialUser(options: GetCurrentPartialUserOptions<HasTokenStore> & { from: 'token' }): Promise<TokenPartialUser | null>,
57
+ getPartialUser(options: GetCurrentPartialUserOptions<HasTokenStore> & { from: 'convex' }): Promise<TokenPartialUser | null>,
58
+ getPartialUser(options: GetCurrentPartialUserOptions<HasTokenStore>): Promise<SyncedPartialServerUser | TokenPartialUser | null>,
59
+ usePartialUser(options: GetCurrentPartialUserOptions<HasTokenStore> & { from: 'token' }): TokenPartialUser | null,
60
+ usePartialUser(options: GetCurrentPartialUserOptions<HasTokenStore> & { from: 'convex' }): TokenPartialUser | null,
61
+ usePartialUser(options: GetCurrentPartialUserOptions<HasTokenStore>): SyncedPartialServerUser | TokenPartialUser | null,
62
+ useTeam(id: string): ServerTeam | null,
63
+ useTeam(options: { apiKey: string }): ServerTeam | null,
64
+ getTeam(id: string): Promise<ServerTeam | null>,
65
+ getTeam(options: { apiKey: string }): Promise<ServerTeam | null>,
66
+
67
+
68
+ useUsers(options?: ServerListUsersOptions): ServerUser[] & { nextCursor: string | null }, // THIS_LINE_PLATFORM react-like
69
+ listUsers(options?: ServerListUsersOptions): Promise<ServerUser[] & { nextCursor: string | null }>,
70
+
71
+ /**
72
+ * Returns every direct (or recursive) team permission grant for every
73
+ * member of the given team in one request. Use this instead of calling
74
+ * `user.listPermissions(team)` per row when rendering a roster — that
75
+ * pattern produces an N+1 over the team-member endpoint.
76
+ */
77
+ listTeamMemberPermissions(teamId: string, options?: { recursive?: boolean }): Promise<{ userId: string, permissionId: string }[]>,
78
+ useTeamMemberPermissions(teamId: string, options?: { recursive?: boolean }): { userId: string, permissionId: string }[],
79
+
80
+ // TODO this should actually be on ServerUser
81
+ createOAuthProvider(options: {
82
+ userId: string,
83
+ accountId: string,
84
+ providerConfigId: string,
85
+ email: string,
86
+ allowSignIn: boolean,
87
+ allowConnectedAccounts: boolean,
88
+ }): Promise<Result<ServerOAuthProvider, InstanceType<typeof KnownErrors.OAuthProviderAccountIdAlreadyUsedForSignIn>>>,
89
+
90
+ sendEmail(options: SendEmailOptions): Promise<void>,
91
+
92
+ getEmailDeliveryStats(): Promise<EmailDeliveryInfo>,
93
+ useEmailDeliveryStats(): EmailDeliveryInfo,
94
+
95
+ activateEmailCapacityBoost(): Promise<void>,
96
+ }
97
+ & AsyncStoreProperty<"user", [id: string], ServerUser | null, false>
98
+ & Omit<AsyncStoreProperty<"users", [], ServerUser[], true>, "listUsers" | "useUsers">
99
+ & AsyncStoreProperty<"teams", [options?: ServerListTeamsOptions], ServerTeam[] & { nextCursor: string | null }, true>
100
+ & AsyncStoreProperty<"dataVaultStore", [id: string], DataVaultStore, false>
101
+ & AsyncStoreProperty<
102
+ "item",
103
+ [{ itemId: string, userId: string } | { itemId: string, teamId: string } | { itemId: string, customCustomerId: string }],
104
+ ServerItem,
105
+ false
106
+ >
107
+ & AsyncStoreProperty<
108
+ "products",
109
+ [options: CustomerProductsRequestOptions],
110
+ CustomerProductsList,
111
+ true
112
+ >
113
+ & StackClientApp<HasTokenStore, ProjectId>
114
+ );
115
+ /** @deprecated Use `HexclaveServerAppConstructor` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */
116
+ export type StackServerAppConstructor = {
117
+ new <
118
+ TokenStoreType extends string,
119
+ HasTokenStore extends (TokenStoreType extends {} ? true : boolean),
120
+ ProjectId extends string
121
+ >(options: StackServerAppConstructorOptions<HasTokenStore, ProjectId>): StackServerApp<HasTokenStore, ProjectId>,
122
+ new (options: StackServerAppConstructorOptions<boolean, string>): StackServerApp<boolean, string>,
123
+ };
124
+ export type HexclaveServerAppConstructorOptions<HasTokenStore extends boolean, ProjectId extends string> = StackServerAppConstructorOptions<HasTokenStore, ProjectId>;
125
+ export type HexclaveServerApp<HasTokenStore extends boolean = boolean, ProjectId extends string = string> = StackServerApp<HasTokenStore, ProjectId>;
126
+ export type HexclaveServerAppConstructor = StackServerAppConstructor;
127
+ export const HexclaveServerApp: HexclaveServerAppConstructor = _HexclaveServerAppImpl;
128
+ /** @deprecated Use `HexclaveServerApp` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */
129
+ export const StackServerApp: StackServerAppConstructor = HexclaveServerApp;