@hexclave/shared 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1144) hide show
  1. package/LICENSE +7 -0
  2. package/dist/ai/image-limits.d.ts +24 -0
  3. package/dist/ai/image-limits.d.ts.map +1 -0
  4. package/dist/ai/image-limits.js +61 -0
  5. package/dist/ai/image-limits.js.map +1 -0
  6. package/dist/ai/unified-prompts/reminders.d.ts +5 -0
  7. package/dist/ai/unified-prompts/reminders.d.ts.map +1 -0
  8. package/dist/ai/unified-prompts/reminders.js +33 -0
  9. package/dist/ai/unified-prompts/reminders.js.map +1 -0
  10. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +11 -0
  11. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -0
  12. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +851 -0
  13. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -0
  14. package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.d.ts +5 -0
  15. package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.d.ts.map +1 -0
  16. package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.js +12 -0
  17. package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.js.map +1 -0
  18. package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.d.ts +5 -0
  19. package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.d.ts.map +1 -0
  20. package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.js +12 -0
  21. package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.js.map +1 -0
  22. package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.d.ts +5 -0
  23. package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.d.ts.map +1 -0
  24. package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.js +12 -0
  25. package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.js.map +1 -0
  26. package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.d.ts +5 -0
  27. package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.d.ts.map +1 -0
  28. package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js +12 -0
  29. package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js.map +1 -0
  30. package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.d.ts +5 -0
  31. package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.d.ts.map +1 -0
  32. package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js +12 -0
  33. package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js.map +1 -0
  34. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts +5 -0
  35. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts.map +1 -0
  36. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.js +64 -0
  37. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.js.map +1 -0
  38. package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.d.ts +5 -0
  39. package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.d.ts.map +1 -0
  40. package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js +12 -0
  41. package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js.map +1 -0
  42. package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.d.ts +5 -0
  43. package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.d.ts.map +1 -0
  44. package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js +12 -0
  45. package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js.map +1 -0
  46. package/dist/ai/unified-prompts/skill-site-prompt.d.ts +5 -0
  47. package/dist/ai/unified-prompts/skill-site-prompt.d.ts.map +1 -0
  48. package/dist/ai/unified-prompts/skill-site-prompt.js +75 -0
  49. package/dist/ai/unified-prompts/skill-site-prompt.js.map +1 -0
  50. package/dist/apps/apps-config.d.ts +168 -0
  51. package/dist/apps/apps-config.d.ts.map +1 -0
  52. package/dist/apps/apps-config.js +157 -0
  53. package/dist/apps/apps-config.js.map +1 -0
  54. package/dist/apps/apps-ui.d.ts +45 -0
  55. package/dist/apps/apps-ui.d.ts.map +1 -0
  56. package/dist/apps/apps-ui.js +109 -0
  57. package/dist/apps/apps-ui.js.map +1 -0
  58. package/dist/chunk-BE-pF4vm.js +34 -0
  59. package/dist/config/db-sync-mappings.d.ts +193 -0
  60. package/dist/config/db-sync-mappings.d.ts.map +1 -0
  61. package/dist/config/db-sync-mappings.js +2255 -0
  62. package/dist/config/db-sync-mappings.js.map +1 -0
  63. package/dist/config/format.d.ts +61 -0
  64. package/dist/config/format.d.ts.map +1 -0
  65. package/dist/config/format.js +337 -0
  66. package/dist/config/format.js.map +1 -0
  67. package/dist/config/migrate-catalogs-to-product-lines.d.ts +14 -0
  68. package/dist/config/migrate-catalogs-to-product-lines.d.ts.map +1 -0
  69. package/dist/config/migrate-catalogs-to-product-lines.js +379 -0
  70. package/dist/config/migrate-catalogs-to-product-lines.js.map +1 -0
  71. package/dist/config/schema-fuzzer.test.d.ts +1 -0
  72. package/dist/config/schema-fuzzer.test.js +401 -0
  73. package/dist/config/schema-fuzzer.test.js.map +1 -0
  74. package/dist/config/schema.d.ts +2315 -0
  75. package/dist/config/schema.d.ts.map +1 -0
  76. package/dist/config/schema.js +1085 -0
  77. package/dist/config/schema.js.map +1 -0
  78. package/dist/config-authoring.d.ts +12 -0
  79. package/dist/config-authoring.d.ts.map +1 -0
  80. package/dist/config-authoring.js +12 -0
  81. package/dist/config-authoring.js.map +1 -0
  82. package/dist/config-authoring.test.d.ts +1 -0
  83. package/dist/config-authoring.test.js +29 -0
  84. package/dist/config-authoring.test.js.map +1 -0
  85. package/dist/config-rendering.d.ts +17 -0
  86. package/dist/config-rendering.d.ts.map +1 -0
  87. package/dist/config-rendering.js +114 -0
  88. package/dist/config-rendering.js.map +1 -0
  89. package/dist/crud.d.ts +98 -0
  90. package/dist/crud.d.ts.map +1 -0
  91. package/dist/crud.js +129 -0
  92. package/dist/crud.js.map +1 -0
  93. package/dist/esm/ai/image-limits.d.ts +24 -0
  94. package/dist/esm/ai/image-limits.d.ts.map +1 -0
  95. package/dist/esm/ai/image-limits.js +53 -0
  96. package/dist/esm/ai/image-limits.js.map +1 -0
  97. package/dist/esm/ai/unified-prompts/reminders.d.ts +5 -0
  98. package/dist/esm/ai/unified-prompts/reminders.d.ts.map +1 -0
  99. package/dist/esm/ai/unified-prompts/reminders.js +31 -0
  100. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -0
  101. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +11 -0
  102. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -0
  103. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +843 -0
  104. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -0
  105. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.d.ts +5 -0
  106. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.d.ts.map +1 -0
  107. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.js +10 -0
  108. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.js.map +1 -0
  109. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.d.ts +5 -0
  110. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.d.ts.map +1 -0
  111. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.js +10 -0
  112. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.js.map +1 -0
  113. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.d.ts +5 -0
  114. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.d.ts.map +1 -0
  115. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.js +10 -0
  116. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.js.map +1 -0
  117. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.d.ts +5 -0
  118. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.d.ts.map +1 -0
  119. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js +10 -0
  120. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js.map +1 -0
  121. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.d.ts +5 -0
  122. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.d.ts.map +1 -0
  123. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js +10 -0
  124. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js.map +1 -0
  125. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts +5 -0
  126. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts.map +1 -0
  127. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.js +61 -0
  128. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.js.map +1 -0
  129. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.d.ts +5 -0
  130. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.d.ts.map +1 -0
  131. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js +10 -0
  132. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js.map +1 -0
  133. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.d.ts +5 -0
  134. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.d.ts.map +1 -0
  135. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js +10 -0
  136. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js.map +1 -0
  137. package/dist/esm/ai/unified-prompts/skill-site-prompt.d.ts +5 -0
  138. package/dist/esm/ai/unified-prompts/skill-site-prompt.d.ts.map +1 -0
  139. package/dist/esm/ai/unified-prompts/skill-site-prompt.js +73 -0
  140. package/dist/esm/ai/unified-prompts/skill-site-prompt.js.map +1 -0
  141. package/dist/esm/apps/apps-config.d.ts +168 -0
  142. package/dist/esm/apps/apps-config.d.ts.map +1 -0
  143. package/dist/esm/apps/apps-config.js +154 -0
  144. package/dist/esm/apps/apps-config.js.map +1 -0
  145. package/dist/esm/apps/apps-ui.d.ts +45 -0
  146. package/dist/esm/apps/apps-ui.d.ts.map +1 -0
  147. package/dist/esm/apps/apps-ui.js +104 -0
  148. package/dist/esm/apps/apps-ui.js.map +1 -0
  149. package/dist/esm/config/db-sync-mappings.d.ts +193 -0
  150. package/dist/esm/config/db-sync-mappings.d.ts.map +1 -0
  151. package/dist/esm/config/db-sync-mappings.js +2253 -0
  152. package/dist/esm/config/db-sync-mappings.js.map +1 -0
  153. package/dist/esm/config/format.d.ts +61 -0
  154. package/dist/esm/config/format.d.ts.map +1 -0
  155. package/dist/esm/config/format.js +327 -0
  156. package/dist/esm/config/format.js.map +1 -0
  157. package/dist/esm/config/migrate-catalogs-to-product-lines.d.ts +14 -0
  158. package/dist/esm/config/migrate-catalogs-to-product-lines.d.ts.map +1 -0
  159. package/dist/esm/config/migrate-catalogs-to-product-lines.js +377 -0
  160. package/dist/esm/config/migrate-catalogs-to-product-lines.js.map +1 -0
  161. package/dist/esm/config/schema-fuzzer.test.d.ts +1 -0
  162. package/dist/esm/config/schema-fuzzer.test.js +401 -0
  163. package/dist/esm/config/schema-fuzzer.test.js.map +1 -0
  164. package/dist/esm/config/schema.d.ts +2315 -0
  165. package/dist/esm/config/schema.d.ts.map +1 -0
  166. package/dist/esm/config/schema.js +1065 -0
  167. package/dist/esm/config/schema.js.map +1 -0
  168. package/dist/esm/config-authoring.d.ts +12 -0
  169. package/dist/esm/config-authoring.d.ts.map +1 -0
  170. package/dist/esm/config-authoring.js +9 -0
  171. package/dist/esm/config-authoring.js.map +1 -0
  172. package/dist/esm/config-authoring.test.d.ts +1 -0
  173. package/dist/esm/config-authoring.test.js +29 -0
  174. package/dist/esm/config-authoring.test.js.map +1 -0
  175. package/dist/esm/config-rendering.d.ts +17 -0
  176. package/dist/esm/config-rendering.d.ts.map +1 -0
  177. package/dist/esm/config-rendering.js +108 -0
  178. package/dist/esm/config-rendering.js.map +1 -0
  179. package/dist/esm/crud.d.ts +98 -0
  180. package/dist/esm/crud.d.ts.map +1 -0
  181. package/dist/esm/crud.js +127 -0
  182. package/dist/esm/crud.js.map +1 -0
  183. package/dist/esm/global.d.ts +1 -0
  184. package/dist/esm/helpers/emails.d.ts +69 -0
  185. package/dist/esm/helpers/emails.d.ts.map +1 -0
  186. package/dist/esm/helpers/emails.js +243 -0
  187. package/dist/esm/helpers/emails.js.map +1 -0
  188. package/dist/esm/helpers/init-prompt.d.ts +5 -0
  189. package/dist/esm/helpers/init-prompt.d.ts.map +1 -0
  190. package/dist/esm/helpers/init-prompt.js +40 -0
  191. package/dist/esm/helpers/init-prompt.js.map +1 -0
  192. package/dist/esm/helpers/password.d.ts +7 -0
  193. package/dist/esm/helpers/password.d.ts.map +1 -0
  194. package/dist/esm/helpers/password.js +13 -0
  195. package/dist/esm/helpers/password.js.map +1 -0
  196. package/dist/esm/helpers/production-mode.d.ts +11 -0
  197. package/dist/esm/helpers/production-mode.d.ts.map +1 -0
  198. package/dist/esm/helpers/production-mode.js +46 -0
  199. package/dist/esm/helpers/production-mode.js.map +1 -0
  200. package/dist/esm/helpers/support-sla.d.ts +48 -0
  201. package/dist/esm/helpers/support-sla.d.ts.map +1 -0
  202. package/dist/esm/helpers/support-sla.js +65 -0
  203. package/dist/esm/helpers/support-sla.js.map +1 -0
  204. package/dist/esm/helpers/support-sla.test.d.ts +1 -0
  205. package/dist/esm/helpers/support-sla.test.js +102 -0
  206. package/dist/esm/helpers/support-sla.test.js.map +1 -0
  207. package/dist/esm/helpers/vault/client-side.d.ts +16 -0
  208. package/dist/esm/helpers/vault/client-side.d.ts.map +1 -0
  209. package/dist/esm/helpers/vault/client-side.js +69 -0
  210. package/dist/esm/helpers/vault/client-side.js.map +1 -0
  211. package/dist/esm/helpers/vault/server-side.d.ts +9 -0
  212. package/dist/esm/helpers/vault/server-side.d.ts.map +1 -0
  213. package/dist/esm/helpers/vault/server-side.js +123 -0
  214. package/dist/esm/helpers/vault/server-side.js.map +1 -0
  215. package/dist/esm/hooks/use-async-callback.d.ts +8 -0
  216. package/dist/esm/hooks/use-async-callback.d.ts.map +1 -0
  217. package/dist/esm/hooks/use-async-callback.js +38 -0
  218. package/dist/esm/hooks/use-async-callback.js.map +1 -0
  219. package/dist/esm/hooks/use-async-external-store.d.ts +9 -0
  220. package/dist/esm/hooks/use-async-external-store.d.ts.map +1 -0
  221. package/dist/esm/hooks/use-async-external-store.js +20 -0
  222. package/dist/esm/hooks/use-async-external-store.js.map +1 -0
  223. package/dist/esm/hooks/use-hash.d.ts +5 -0
  224. package/dist/esm/hooks/use-hash.d.ts.map +1 -0
  225. package/dist/esm/hooks/use-hash.js +15 -0
  226. package/dist/esm/hooks/use-hash.js.map +1 -0
  227. package/dist/esm/hooks/use-hover.d.ts +8 -0
  228. package/dist/esm/hooks/use-hover.d.ts.map +1 -0
  229. package/dist/esm/hooks/use-hover.js +59 -0
  230. package/dist/esm/hooks/use-hover.js.map +1 -0
  231. package/dist/esm/hooks/use-strict-memo.d.ts +10 -0
  232. package/dist/esm/hooks/use-strict-memo.d.ts.map +1 -0
  233. package/dist/esm/hooks/use-strict-memo.js +119 -0
  234. package/dist/esm/hooks/use-strict-memo.js.map +1 -0
  235. package/dist/esm/index.d.ts +5 -0
  236. package/dist/esm/index.js +6 -0
  237. package/dist/esm/interface/admin-interface.d.ts +308 -0
  238. package/dist/esm/interface/admin-interface.d.ts.map +1 -0
  239. package/dist/esm/interface/admin-interface.js +463 -0
  240. package/dist/esm/interface/admin-interface.js.map +1 -0
  241. package/dist/esm/interface/admin-metrics.d.ts +597 -0
  242. package/dist/esm/interface/admin-metrics.d.ts.map +1 -0
  243. package/dist/esm/interface/admin-metrics.js +134 -0
  244. package/dist/esm/interface/admin-metrics.js.map +1 -0
  245. package/dist/esm/interface/client-interface.d.ts +447 -0
  246. package/dist/esm/interface/client-interface.d.ts.map +1 -0
  247. package/dist/esm/interface/client-interface.js +1946 -0
  248. package/dist/esm/interface/client-interface.js.map +1 -0
  249. package/dist/esm/interface/client-interface.test.d.ts +1 -0
  250. package/dist/esm/interface/client-interface.test.js +559 -0
  251. package/dist/esm/interface/client-interface.test.js.map +1 -0
  252. package/dist/esm/interface/conversations.d.ts +314 -0
  253. package/dist/esm/interface/conversations.d.ts.map +1 -0
  254. package/dist/esm/interface/conversations.js +108 -0
  255. package/dist/esm/interface/conversations.js.map +1 -0
  256. package/dist/esm/interface/crud/analytics.d.ts +14 -0
  257. package/dist/esm/interface/crud/analytics.d.ts.map +1 -0
  258. package/dist/esm/interface/crud/analytics.js +1 -0
  259. package/dist/esm/interface/crud/connected-accounts.d.ts +69 -0
  260. package/dist/esm/interface/crud/connected-accounts.d.ts.map +1 -0
  261. package/dist/esm/interface/crud/connected-accounts.js +35 -0
  262. package/dist/esm/interface/crud/connected-accounts.js.map +1 -0
  263. package/dist/esm/interface/crud/contact-channels.d.ts +182 -0
  264. package/dist/esm/interface/crud/contact-channels.d.ts.map +1 -0
  265. package/dist/esm/interface/crud/contact-channels.js +68 -0
  266. package/dist/esm/interface/crud/contact-channels.js.map +1 -0
  267. package/dist/esm/interface/crud/current-user.d.ts +286 -0
  268. package/dist/esm/interface/crud/current-user.d.ts.map +1 -0
  269. package/dist/esm/interface/crud/current-user.js +69 -0
  270. package/dist/esm/interface/crud/current-user.js.map +1 -0
  271. package/dist/esm/interface/crud/email-outbox.d.ts +1466 -0
  272. package/dist/esm/interface/crud/email-outbox.d.ts.map +1 -0
  273. package/dist/esm/interface/crud/email-outbox.js +190 -0
  274. package/dist/esm/interface/crud/email-outbox.js.map +1 -0
  275. package/dist/esm/interface/crud/email-templates.d.ts +86 -0
  276. package/dist/esm/interface/crud/email-templates.d.ts.map +1 -0
  277. package/dist/esm/interface/crud/email-templates.js +46 -0
  278. package/dist/esm/interface/crud/email-templates.js.map +1 -0
  279. package/dist/esm/interface/crud/emails.d.ts +42 -0
  280. package/dist/esm/interface/crud/emails.d.ts.map +1 -0
  281. package/dist/esm/interface/crud/emails.js +19 -0
  282. package/dist/esm/interface/crud/emails.js.map +1 -0
  283. package/dist/esm/interface/crud/internal-api-keys.d.ts +141 -0
  284. package/dist/esm/interface/crud/internal-api-keys.d.ts.map +1 -0
  285. package/dist/esm/interface/crud/internal-api-keys.js +49 -0
  286. package/dist/esm/interface/crud/internal-api-keys.js.map +1 -0
  287. package/dist/esm/interface/crud/invoices.d.ts +43 -0
  288. package/dist/esm/interface/crud/invoices.d.ts.map +1 -0
  289. package/dist/esm/interface/crud/invoices.js +25 -0
  290. package/dist/esm/interface/crud/invoices.js.map +1 -0
  291. package/dist/esm/interface/crud/items.d.ts +31 -0
  292. package/dist/esm/interface/crud/items.d.ts.map +1 -0
  293. package/dist/esm/interface/crud/items.js +23 -0
  294. package/dist/esm/interface/crud/items.js.map +1 -0
  295. package/dist/esm/interface/crud/notification-preferences.d.ts +39 -0
  296. package/dist/esm/interface/crud/notification-preferences.d.ts.map +1 -0
  297. package/dist/esm/interface/crud/notification-preferences.js +31 -0
  298. package/dist/esm/interface/crud/notification-preferences.js.map +1 -0
  299. package/dist/esm/interface/crud/oauth-providers.d.ts +187 -0
  300. package/dist/esm/interface/crud/oauth-providers.d.ts.map +1 -0
  301. package/dist/esm/interface/crud/oauth-providers.js +75 -0
  302. package/dist/esm/interface/crud/oauth-providers.js.map +1 -0
  303. package/dist/esm/interface/crud/products.d.ts +182 -0
  304. package/dist/esm/interface/crud/products.d.ts.map +1 -0
  305. package/dist/esm/interface/crud/products.js +29 -0
  306. package/dist/esm/interface/crud/products.js.map +1 -0
  307. package/dist/esm/interface/crud/project-api-keys.d.ts +204 -0
  308. package/dist/esm/interface/crud/project-api-keys.d.ts.map +1 -0
  309. package/dist/esm/interface/crud/project-api-keys.js +72 -0
  310. package/dist/esm/interface/crud/project-api-keys.js.map +1 -0
  311. package/dist/esm/interface/crud/project-permissions.d.ts +162 -0
  312. package/dist/esm/interface/crud/project-permissions.d.ts.map +1 -0
  313. package/dist/esm/interface/crud/project-permissions.js +104 -0
  314. package/dist/esm/interface/crud/project-permissions.js.map +1 -0
  315. package/dist/esm/interface/crud/projects.d.ts +852 -0
  316. package/dist/esm/interface/crud/projects.d.ts.map +1 -0
  317. package/dist/esm/interface/crud/projects.js +193 -0
  318. package/dist/esm/interface/crud/projects.js.map +1 -0
  319. package/dist/esm/interface/crud/session-replays.d.ts +83 -0
  320. package/dist/esm/interface/crud/session-replays.d.ts.map +1 -0
  321. package/dist/esm/interface/crud/session-replays.js +1 -0
  322. package/dist/esm/interface/crud/sessions.d.ts +151 -0
  323. package/dist/esm/interface/crud/sessions.d.ts.map +1 -0
  324. package/dist/esm/interface/crud/sessions.js +56 -0
  325. package/dist/esm/interface/crud/sessions.js.map +1 -0
  326. package/dist/esm/interface/crud/sign-up-rules.d.ts +15 -0
  327. package/dist/esm/interface/crud/sign-up-rules.d.ts.map +1 -0
  328. package/dist/esm/interface/crud/sign-up-rules.js +1 -0
  329. package/dist/esm/interface/crud/svix-token.d.ts +32 -0
  330. package/dist/esm/interface/crud/svix-token.d.ts.map +1 -0
  331. package/dist/esm/interface/crud/svix-token.js +18 -0
  332. package/dist/esm/interface/crud/svix-token.js.map +1 -0
  333. package/dist/esm/interface/crud/team-invitation-details.d.ts +32 -0
  334. package/dist/esm/interface/crud/team-invitation-details.d.ts.map +1 -0
  335. package/dist/esm/interface/crud/team-invitation-details.js +21 -0
  336. package/dist/esm/interface/crud/team-invitation-details.js.map +1 -0
  337. package/dist/esm/interface/crud/team-invitation.d.ts +55 -0
  338. package/dist/esm/interface/crud/team-invitation.d.ts.map +1 -0
  339. package/dist/esm/interface/crud/team-invitation.js +37 -0
  340. package/dist/esm/interface/crud/team-invitation.js.map +1 -0
  341. package/dist/esm/interface/crud/team-member-profiles.d.ts +287 -0
  342. package/dist/esm/interface/crud/team-member-profiles.d.ts.map +1 -0
  343. package/dist/esm/interface/crud/team-member-profiles.js +58 -0
  344. package/dist/esm/interface/crud/team-member-profiles.js.map +1 -0
  345. package/dist/esm/interface/crud/team-memberships.d.ts +76 -0
  346. package/dist/esm/interface/crud/team-memberships.d.ts.map +1 -0
  347. package/dist/esm/interface/crud/team-memberships.js +54 -0
  348. package/dist/esm/interface/crud/team-memberships.js.map +1 -0
  349. package/dist/esm/interface/crud/team-permissions.d.ts +170 -0
  350. package/dist/esm/interface/crud/team-permissions.d.ts.map +1 -0
  351. package/dist/esm/interface/crud/team-permissions.js +105 -0
  352. package/dist/esm/interface/crud/team-permissions.js.map +1 -0
  353. package/dist/esm/interface/crud/teams.d.ts +300 -0
  354. package/dist/esm/interface/crud/teams.d.ts.map +1 -0
  355. package/dist/esm/interface/crud/teams.js +129 -0
  356. package/dist/esm/interface/crud/teams.js.map +1 -0
  357. package/dist/esm/interface/crud/transactions.d.ts +183 -0
  358. package/dist/esm/interface/crud/transactions.d.ts.map +1 -0
  359. package/dist/esm/interface/crud/transactions.js +85 -0
  360. package/dist/esm/interface/crud/transactions.js.map +1 -0
  361. package/dist/esm/interface/crud/users.d.ts +654 -0
  362. package/dist/esm/interface/crud/users.d.ts.map +1 -0
  363. package/dist/esm/interface/crud/users.js +181 -0
  364. package/dist/esm/interface/crud/users.js.map +1 -0
  365. package/dist/esm/interface/handler-urls.d.ts +51 -0
  366. package/dist/esm/interface/handler-urls.d.ts.map +1 -0
  367. package/dist/esm/interface/handler-urls.js +3 -0
  368. package/dist/esm/interface/page-component-versions.d.ts +25 -0
  369. package/dist/esm/interface/page-component-versions.d.ts.map +1 -0
  370. package/dist/esm/interface/page-component-versions.js +1661 -0
  371. package/dist/esm/interface/page-component-versions.js.map +1 -0
  372. package/dist/esm/interface/server-interface.d.ts +255 -0
  373. package/dist/esm/interface/server-interface.d.ts.map +1 -0
  374. package/dist/esm/interface/server-interface.js +459 -0
  375. package/dist/esm/interface/server-interface.js.map +1 -0
  376. package/dist/esm/interface/webhooks.d.ts +326 -0
  377. package/dist/esm/interface/webhooks.d.ts.map +1 -0
  378. package/dist/esm/interface/webhooks.js +22 -0
  379. package/dist/esm/interface/webhooks.js.map +1 -0
  380. package/dist/esm/known-errors.d.ts +575 -0
  381. package/dist/esm/known-errors.d.ts.map +1 -0
  382. package/dist/esm/known-errors.js +791 -0
  383. package/dist/esm/known-errors.js.map +1 -0
  384. package/dist/esm/local-emulator.d.ts +6 -0
  385. package/dist/esm/local-emulator.d.ts.map +1 -0
  386. package/dist/esm/local-emulator.js +7 -0
  387. package/dist/esm/local-emulator.js.map +1 -0
  388. package/dist/esm/payments/payment-methods.d.ts +64 -0
  389. package/dist/esm/payments/payment-methods.d.ts.map +1 -0
  390. package/dist/esm/payments/payment-methods.js +205 -0
  391. package/dist/esm/payments/payment-methods.js.map +1 -0
  392. package/dist/esm/payments/stripe-limits.d.ts +17 -0
  393. package/dist/esm/payments/stripe-limits.d.ts.map +1 -0
  394. package/dist/esm/payments/stripe-limits.js +17 -0
  395. package/dist/esm/payments/stripe-limits.js.map +1 -0
  396. package/dist/esm/plans.d.ts +72 -0
  397. package/dist/esm/plans.d.ts.map +1 -0
  398. package/dist/esm/plans.js +81 -0
  399. package/dist/esm/plans.js.map +1 -0
  400. package/dist/esm/schema-fields.d.ts +472 -0
  401. package/dist/esm/schema-fields.d.ts.map +1 -0
  402. package/dist/esm/schema-fields.js +1009 -0
  403. package/dist/esm/schema-fields.js.map +1 -0
  404. package/dist/esm/sessions.d.ts +165 -0
  405. package/dist/esm/sessions.d.ts.map +1 -0
  406. package/dist/esm/sessions.js +226 -0
  407. package/dist/esm/sessions.js.map +1 -0
  408. package/dist/esm/stack-config-file.d.ts +15 -0
  409. package/dist/esm/stack-config-file.d.ts.map +1 -0
  410. package/dist/esm/stack-config-file.js +76 -0
  411. package/dist/esm/stack-config-file.js.map +1 -0
  412. package/dist/esm/utils/api-keys.d.ts +26 -0
  413. package/dist/esm/utils/api-keys.d.ts.map +1 -0
  414. package/dist/esm/utils/api-keys.js +77 -0
  415. package/dist/esm/utils/api-keys.js.map +1 -0
  416. package/dist/esm/utils/arrays.d.ts +25 -0
  417. package/dist/esm/utils/arrays.d.ts.map +1 -0
  418. package/dist/esm/utils/arrays.js +552 -0
  419. package/dist/esm/utils/arrays.js.map +1 -0
  420. package/dist/esm/utils/auth-methods.d.ts +6 -0
  421. package/dist/esm/utils/auth-methods.d.ts.map +1 -0
  422. package/dist/esm/utils/auth-methods.js +11 -0
  423. package/dist/esm/utils/auth-methods.js.map +1 -0
  424. package/dist/esm/utils/base64.d.ts +6 -0
  425. package/dist/esm/utils/base64.d.ts.map +1 -0
  426. package/dist/esm/utils/base64.js +25 -0
  427. package/dist/esm/utils/base64.js.map +1 -0
  428. package/dist/esm/utils/booleans.d.ts +8 -0
  429. package/dist/esm/utils/booleans.d.ts.map +1 -0
  430. package/dist/esm/utils/booleans.js +35 -0
  431. package/dist/esm/utils/booleans.js.map +1 -0
  432. package/dist/esm/utils/browser-compat.d.ts +10 -0
  433. package/dist/esm/utils/browser-compat.d.ts.map +1 -0
  434. package/dist/esm/utils/browser-compat.js +21 -0
  435. package/dist/esm/utils/browser-compat.js.map +1 -0
  436. package/dist/esm/utils/bytes.d.ts +17 -0
  437. package/dist/esm/utils/bytes.d.ts.map +1 -0
  438. package/dist/esm/utils/bytes.js +290 -0
  439. package/dist/esm/utils/bytes.js.map +1 -0
  440. package/dist/esm/utils/caches.d.ts +102 -0
  441. package/dist/esm/utils/caches.d.ts.map +1 -0
  442. package/dist/esm/utils/caches.js +185 -0
  443. package/dist/esm/utils/caches.js.map +1 -0
  444. package/dist/esm/utils/cel-fields.d.ts +23 -0
  445. package/dist/esm/utils/cel-fields.d.ts.map +1 -0
  446. package/dist/esm/utils/cel-fields.js +99 -0
  447. package/dist/esm/utils/cel-fields.js.map +1 -0
  448. package/dist/esm/utils/compile-time.d.ts +10 -0
  449. package/dist/esm/utils/compile-time.d.ts.map +1 -0
  450. package/dist/esm/utils/compile-time.js +14 -0
  451. package/dist/esm/utils/compile-time.js.map +1 -0
  452. package/dist/esm/utils/country-codes.d.ts +11 -0
  453. package/dist/esm/utils/country-codes.d.ts.map +1 -0
  454. package/dist/esm/utils/country-codes.js +36 -0
  455. package/dist/esm/utils/country-codes.js.map +1 -0
  456. package/dist/esm/utils/crypto.d.ts +48 -0
  457. package/dist/esm/utils/crypto.d.ts.map +1 -0
  458. package/dist/esm/utils/crypto.js +208 -0
  459. package/dist/esm/utils/crypto.js.map +1 -0
  460. package/dist/esm/utils/currencies.d.ts +8 -0
  461. package/dist/esm/utils/currencies.d.ts.map +1 -0
  462. package/dist/esm/utils/currencies.js +50 -0
  463. package/dist/esm/utils/currencies.js.map +1 -0
  464. package/dist/esm/utils/currency-constants.d.ts +39 -0
  465. package/dist/esm/utils/currency-constants.d.ts.map +1 -0
  466. package/dist/esm/utils/currency-constants.js +42 -0
  467. package/dist/esm/utils/currency-constants.js.map +1 -0
  468. package/dist/esm/utils/dates.d.ts +23 -0
  469. package/dist/esm/utils/dates.d.ts.map +1 -0
  470. package/dist/esm/utils/dates.js +167 -0
  471. package/dist/esm/utils/dates.js.map +1 -0
  472. package/dist/esm/utils/dev-env-state-path.d.ts +6 -0
  473. package/dist/esm/utils/dev-env-state-path.d.ts.map +1 -0
  474. package/dist/esm/utils/dev-env-state-path.js +15 -0
  475. package/dist/esm/utils/dev-env-state-path.js.map +1 -0
  476. package/dist/esm/utils/dom.d.ts +5 -0
  477. package/dist/esm/utils/dom.d.ts.map +1 -0
  478. package/dist/esm/utils/dom.js +11 -0
  479. package/dist/esm/utils/dom.js.map +1 -0
  480. package/dist/esm/utils/env.d.ts +25 -0
  481. package/dist/esm/utils/env.d.ts.map +1 -0
  482. package/dist/esm/utils/env.js +78 -0
  483. package/dist/esm/utils/env.js.map +1 -0
  484. package/dist/esm/utils/errors.d.ts +231 -0
  485. package/dist/esm/utils/errors.d.ts.map +1 -0
  486. package/dist/esm/utils/errors.js +385 -0
  487. package/dist/esm/utils/errors.js.map +1 -0
  488. package/dist/esm/utils/esbuild.d.ts +16 -0
  489. package/dist/esm/utils/esbuild.d.ts.map +1 -0
  490. package/dist/esm/utils/esbuild.js +182 -0
  491. package/dist/esm/utils/esbuild.js.map +1 -0
  492. package/dist/esm/utils/featurebase.d.ts +30 -0
  493. package/dist/esm/utils/featurebase.d.ts.map +1 -0
  494. package/dist/esm/utils/featurebase.js +166 -0
  495. package/dist/esm/utils/featurebase.js.map +1 -0
  496. package/dist/esm/utils/fs.d.ts +9 -0
  497. package/dist/esm/utils/fs.d.ts.map +1 -0
  498. package/dist/esm/utils/fs.js +25 -0
  499. package/dist/esm/utils/fs.js.map +1 -0
  500. package/dist/esm/utils/functions.d.ts +6 -0
  501. package/dist/esm/utils/functions.d.ts.map +1 -0
  502. package/dist/esm/utils/functions.js +34 -0
  503. package/dist/esm/utils/functions.js.map +1 -0
  504. package/dist/esm/utils/geo.d.ts +24 -0
  505. package/dist/esm/utils/geo.d.ts.map +1 -0
  506. package/dist/esm/utils/geo.js +16 -0
  507. package/dist/esm/utils/geo.js.map +1 -0
  508. package/dist/esm/utils/globals.d.ts +13 -0
  509. package/dist/esm/utils/globals.d.ts.map +1 -0
  510. package/dist/esm/utils/globals.js +34 -0
  511. package/dist/esm/utils/globals.js.map +1 -0
  512. package/dist/esm/utils/hashes.d.ts +9 -0
  513. package/dist/esm/utils/hashes.d.ts.map +1 -0
  514. package/dist/esm/utils/hashes.js +40 -0
  515. package/dist/esm/utils/hashes.js.map +1 -0
  516. package/dist/esm/utils/html.d.ts +7 -0
  517. package/dist/esm/utils/html.d.ts.map +1 -0
  518. package/dist/esm/utils/html.js +33 -0
  519. package/dist/esm/utils/html.js.map +1 -0
  520. package/dist/esm/utils/http.d.ts +45 -0
  521. package/dist/esm/utils/http.d.ts.map +1 -0
  522. package/dist/esm/utils/http.js +75 -0
  523. package/dist/esm/utils/http.js.map +1 -0
  524. package/dist/esm/utils/ips.d.ts +8 -0
  525. package/dist/esm/utils/ips.d.ts.map +1 -0
  526. package/dist/esm/utils/ips.js +36 -0
  527. package/dist/esm/utils/ips.js.map +1 -0
  528. package/dist/esm/utils/json.d.ts +15 -0
  529. package/dist/esm/utils/json.d.ts.map +1 -0
  530. package/dist/esm/utils/json.js +178 -0
  531. package/dist/esm/utils/json.js.map +1 -0
  532. package/dist/esm/utils/jsx-editable-transpiler.d.ts +68 -0
  533. package/dist/esm/utils/jsx-editable-transpiler.d.ts.map +1 -0
  534. package/dist/esm/utils/jsx-editable-transpiler.js +216 -0
  535. package/dist/esm/utils/jsx-editable-transpiler.js.map +1 -0
  536. package/dist/esm/utils/jsx-editable-transpiler.test.d.ts +1 -0
  537. package/dist/esm/utils/jsx-editable-transpiler.test.js +122 -0
  538. package/dist/esm/utils/jsx-editable-transpiler.test.js.map +1 -0
  539. package/dist/esm/utils/jwt.d.ts +79 -0
  540. package/dist/esm/utils/jwt.d.ts.map +1 -0
  541. package/dist/esm/utils/jwt.js +102 -0
  542. package/dist/esm/utils/jwt.js.map +1 -0
  543. package/dist/esm/utils/locks.d.ts +17 -0
  544. package/dist/esm/utils/locks.d.ts.map +1 -0
  545. package/dist/esm/utils/locks.js +54 -0
  546. package/dist/esm/utils/locks.js.map +1 -0
  547. package/dist/esm/utils/maps.d.ts +61 -0
  548. package/dist/esm/utils/maps.d.ts.map +1 -0
  549. package/dist/esm/utils/maps.js +297 -0
  550. package/dist/esm/utils/maps.js.map +1 -0
  551. package/dist/esm/utils/math.d.ts +8 -0
  552. package/dist/esm/utils/math.d.ts.map +1 -0
  553. package/dist/esm/utils/math.js +21 -0
  554. package/dist/esm/utils/math.js.map +1 -0
  555. package/dist/esm/utils/monkey-patch.d.ts +7 -0
  556. package/dist/esm/utils/monkey-patch.d.ts.map +1 -0
  557. package/dist/esm/utils/monkey-patch.js +21 -0
  558. package/dist/esm/utils/monkey-patch.js.map +1 -0
  559. package/dist/esm/utils/node-http.d.ts +17 -0
  560. package/dist/esm/utils/node-http.d.ts.map +1 -0
  561. package/dist/esm/utils/node-http.js +38 -0
  562. package/dist/esm/utils/node-http.js.map +1 -0
  563. package/dist/esm/utils/numbers.d.ts +7 -0
  564. package/dist/esm/utils/numbers.d.ts.map +1 -0
  565. package/dist/esm/utils/numbers.js +75 -0
  566. package/dist/esm/utils/numbers.js.map +1 -0
  567. package/dist/esm/utils/oauth.d.ts +11 -0
  568. package/dist/esm/utils/oauth.d.ts.map +1 -0
  569. package/dist/esm/utils/oauth.js +27 -0
  570. package/dist/esm/utils/oauth.js.map +1 -0
  571. package/dist/esm/utils/objects.d.ts +59 -0
  572. package/dist/esm/utils/objects.d.ts.map +1 -0
  573. package/dist/esm/utils/objects.js +818 -0
  574. package/dist/esm/utils/objects.js.map +1 -0
  575. package/dist/esm/utils/paginated-lists.d.ts +442 -0
  576. package/dist/esm/utils/paginated-lists.d.ts.map +1 -0
  577. package/dist/esm/utils/paginated-lists.js +411 -0
  578. package/dist/esm/utils/paginated-lists.js.map +1 -0
  579. package/dist/esm/utils/paginated-lists.test.d.ts +1 -0
  580. package/dist/esm/utils/paginated-lists.test.js +1304 -0
  581. package/dist/esm/utils/paginated-lists.test.js.map +1 -0
  582. package/dist/esm/utils/passkey.d.ts +2 -0
  583. package/dist/esm/utils/passkey.js +1 -0
  584. package/dist/esm/utils/promises.d.ts +80 -0
  585. package/dist/esm/utils/promises.d.ts.map +1 -0
  586. package/dist/esm/utils/promises.js +333 -0
  587. package/dist/esm/utils/promises.js.map +1 -0
  588. package/dist/esm/utils/proxies.d.ts +13 -0
  589. package/dist/esm/utils/proxies.d.ts.map +1 -0
  590. package/dist/esm/utils/proxies.js +197 -0
  591. package/dist/esm/utils/proxies.js.map +1 -0
  592. package/dist/esm/utils/react.d.ts +61 -0
  593. package/dist/esm/utils/react.d.ts.map +1 -0
  594. package/dist/esm/utils/react.js +229 -0
  595. package/dist/esm/utils/react.js.map +1 -0
  596. package/dist/esm/utils/redirect-urls.d.ts +30 -0
  597. package/dist/esm/utils/redirect-urls.d.ts.map +1 -0
  598. package/dist/esm/utils/redirect-urls.js +215 -0
  599. package/dist/esm/utils/redirect-urls.js.map +1 -0
  600. package/dist/esm/utils/regex.d.ts +5 -0
  601. package/dist/esm/utils/regex.d.ts.map +1 -0
  602. package/dist/esm/utils/regex.js +13 -0
  603. package/dist/esm/utils/regex.js.map +1 -0
  604. package/dist/esm/utils/results.d.ts +70 -0
  605. package/dist/esm/utils/results.d.ts.map +1 -0
  606. package/dist/esm/utils/results.js +339 -0
  607. package/dist/esm/utils/results.js.map +1 -0
  608. package/dist/esm/utils/sentry.d.ts +13 -0
  609. package/dist/esm/utils/sentry.d.ts.map +1 -0
  610. package/dist/esm/utils/sentry.js +14 -0
  611. package/dist/esm/utils/sentry.js.map +1 -0
  612. package/dist/esm/utils/stores.d.ts +104 -0
  613. package/dist/esm/utils/stores.d.ts.map +1 -0
  614. package/dist/esm/utils/stores.js +175 -0
  615. package/dist/esm/utils/stores.js.map +1 -0
  616. package/dist/esm/utils/strings.d.ts +76 -0
  617. package/dist/esm/utils/strings.d.ts.map +1 -0
  618. package/dist/esm/utils/strings.js +530 -0
  619. package/dist/esm/utils/strings.js.map +1 -0
  620. package/dist/esm/utils/strings.nicify.test.d.ts +1 -0
  621. package/dist/esm/utils/strings.nicify.test.js +243 -0
  622. package/dist/esm/utils/strings.nicify.test.js.map +1 -0
  623. package/dist/esm/utils/telemetry.d.ts +15 -0
  624. package/dist/esm/utils/telemetry.d.ts.map +1 -0
  625. package/dist/esm/utils/telemetry.js +31 -0
  626. package/dist/esm/utils/telemetry.js.map +1 -0
  627. package/dist/esm/utils/turnstile-browser.d.ts +32 -0
  628. package/dist/esm/utils/turnstile-browser.d.ts.map +1 -0
  629. package/dist/esm/utils/turnstile-browser.js +61 -0
  630. package/dist/esm/utils/turnstile-browser.js.map +1 -0
  631. package/dist/esm/utils/turnstile-flow.d.ts +29 -0
  632. package/dist/esm/utils/turnstile-flow.d.ts.map +1 -0
  633. package/dist/esm/utils/turnstile-flow.js +219 -0
  634. package/dist/esm/utils/turnstile-flow.js.map +1 -0
  635. package/dist/esm/utils/turnstile-flow.test.d.ts +1 -0
  636. package/dist/esm/utils/turnstile-flow.test.js +75 -0
  637. package/dist/esm/utils/turnstile-flow.test.js.map +1 -0
  638. package/dist/esm/utils/turnstile.d.ts +17 -0
  639. package/dist/esm/utils/turnstile.d.ts.map +1 -0
  640. package/dist/esm/utils/turnstile.js +25 -0
  641. package/dist/esm/utils/turnstile.js.map +1 -0
  642. package/dist/esm/utils/typed-arrays.d.ts +14 -0
  643. package/dist/esm/utils/typed-arrays.d.ts.map +1 -0
  644. package/dist/esm/utils/typed-arrays.js +20 -0
  645. package/dist/esm/utils/typed-arrays.js.map +1 -0
  646. package/dist/esm/utils/types.d.ts +77 -0
  647. package/dist/esm/utils/types.d.ts.map +1 -0
  648. package/dist/esm/utils/types.js +55 -0
  649. package/dist/esm/utils/types.js.map +1 -0
  650. package/dist/esm/utils/unicode.d.ts +5 -0
  651. package/dist/esm/utils/unicode.d.ts.map +1 -0
  652. package/dist/esm/utils/unicode.js +24 -0
  653. package/dist/esm/utils/unicode.js.map +1 -0
  654. package/dist/esm/utils/urls.d.ts +28 -0
  655. package/dist/esm/utils/urls.d.ts.map +1 -0
  656. package/dist/esm/utils/urls.js +259 -0
  657. package/dist/esm/utils/urls.js.map +1 -0
  658. package/dist/esm/utils/uuids.d.ts +6 -0
  659. package/dist/esm/utils/uuids.d.ts.map +1 -0
  660. package/dist/esm/utils/uuids.js +36 -0
  661. package/dist/esm/utils/uuids.js.map +1 -0
  662. package/dist/global.d.d.ts +0 -0
  663. package/dist/global.d.ts +1 -0
  664. package/dist/helpers/emails.d.ts +69 -0
  665. package/dist/helpers/emails.d.ts.map +1 -0
  666. package/dist/helpers/emails.js +252 -0
  667. package/dist/helpers/emails.js.map +1 -0
  668. package/dist/helpers/init-prompt.d.ts +5 -0
  669. package/dist/helpers/init-prompt.d.ts.map +1 -0
  670. package/dist/helpers/init-prompt.js +42 -0
  671. package/dist/helpers/init-prompt.js.map +1 -0
  672. package/dist/helpers/password.d.ts +6 -0
  673. package/dist/helpers/password.d.ts.map +1 -0
  674. package/dist/helpers/password.js +15 -0
  675. package/dist/helpers/password.js.map +1 -0
  676. package/dist/helpers/production-mode.d.ts +11 -0
  677. package/dist/helpers/production-mode.d.ts.map +1 -0
  678. package/dist/helpers/production-mode.js +48 -0
  679. package/dist/helpers/production-mode.js.map +1 -0
  680. package/dist/helpers/support-sla.d.ts +48 -0
  681. package/dist/helpers/support-sla.d.ts.map +1 -0
  682. package/dist/helpers/support-sla.js +72 -0
  683. package/dist/helpers/support-sla.js.map +1 -0
  684. package/dist/helpers/support-sla.test.d.ts +1 -0
  685. package/dist/helpers/support-sla.test.js +102 -0
  686. package/dist/helpers/support-sla.test.js.map +1 -0
  687. package/dist/helpers/vault/client-side.d.ts +16 -0
  688. package/dist/helpers/vault/client-side.d.ts.map +1 -0
  689. package/dist/helpers/vault/client-side.js +73 -0
  690. package/dist/helpers/vault/client-side.js.map +1 -0
  691. package/dist/helpers/vault/server-side.d.ts +9 -0
  692. package/dist/helpers/vault/server-side.d.ts.map +1 -0
  693. package/dist/helpers/vault/server-side.js +126 -0
  694. package/dist/helpers/vault/server-side.js.map +1 -0
  695. package/dist/hooks/use-async-callback.d.ts +8 -0
  696. package/dist/hooks/use-async-callback.d.ts.map +1 -0
  697. package/dist/hooks/use-async-callback.js +42 -0
  698. package/dist/hooks/use-async-callback.js.map +1 -0
  699. package/dist/hooks/use-async-external-store.d.ts +9 -0
  700. package/dist/hooks/use-async-external-store.d.ts.map +1 -0
  701. package/dist/hooks/use-async-external-store.js +22 -0
  702. package/dist/hooks/use-async-external-store.js.map +1 -0
  703. package/dist/hooks/use-hash.d.ts +5 -0
  704. package/dist/hooks/use-hash.d.ts.map +1 -0
  705. package/dist/hooks/use-hash.js +17 -0
  706. package/dist/hooks/use-hash.js.map +1 -0
  707. package/dist/hooks/use-hover.d.ts +8 -0
  708. package/dist/hooks/use-hover.d.ts.map +1 -0
  709. package/dist/hooks/use-hover.js +61 -0
  710. package/dist/hooks/use-hover.js.map +1 -0
  711. package/dist/hooks/use-strict-memo.d.ts +10 -0
  712. package/dist/hooks/use-strict-memo.d.ts.map +1 -0
  713. package/dist/hooks/use-strict-memo.js +121 -0
  714. package/dist/hooks/use-strict-memo.js.map +1 -0
  715. package/dist/index-D9ysacya.d.ts +153 -0
  716. package/dist/index-D9ysacya.d.ts.map +1 -0
  717. package/dist/index.d.ts +5 -0
  718. package/dist/index.js +37 -0
  719. package/dist/interface/admin-interface.d.ts +308 -0
  720. package/dist/interface/admin-interface.d.ts.map +1 -0
  721. package/dist/interface/admin-interface.js +465 -0
  722. package/dist/interface/admin-interface.js.map +1 -0
  723. package/dist/interface/admin-metrics.d.ts +597 -0
  724. package/dist/interface/admin-metrics.d.ts.map +1 -0
  725. package/dist/interface/admin-metrics.js +153 -0
  726. package/dist/interface/admin-metrics.js.map +1 -0
  727. package/dist/interface/client-interface.d.ts +447 -0
  728. package/dist/interface/client-interface.d.ts.map +1 -0
  729. package/dist/interface/client-interface.js +1948 -0
  730. package/dist/interface/client-interface.js.map +1 -0
  731. package/dist/interface/client-interface.test.d.ts +1 -0
  732. package/dist/interface/client-interface.test.js +559 -0
  733. package/dist/interface/client-interface.test.js.map +1 -0
  734. package/dist/interface/conversations.d.ts +314 -0
  735. package/dist/interface/conversations.d.ts.map +1 -0
  736. package/dist/interface/conversations.js +121 -0
  737. package/dist/interface/conversations.js.map +1 -0
  738. package/dist/interface/crud/analytics.d.ts +14 -0
  739. package/dist/interface/crud/analytics.d.ts.map +1 -0
  740. package/dist/interface/crud/analytics.js +0 -0
  741. package/dist/interface/crud/connected-accounts.d.ts +68 -0
  742. package/dist/interface/crud/connected-accounts.d.ts.map +1 -0
  743. package/dist/interface/crud/connected-accounts.js +41 -0
  744. package/dist/interface/crud/connected-accounts.js.map +1 -0
  745. package/dist/interface/crud/contact-channels.d.ts +181 -0
  746. package/dist/interface/crud/contact-channels.d.ts.map +1 -0
  747. package/dist/interface/crud/contact-channels.js +76 -0
  748. package/dist/interface/crud/contact-channels.js.map +1 -0
  749. package/dist/interface/crud/current-user.d.ts +285 -0
  750. package/dist/interface/crud/current-user.d.ts.map +1 -0
  751. package/dist/interface/crud/current-user.js +71 -0
  752. package/dist/interface/crud/current-user.js.map +1 -0
  753. package/dist/interface/crud/email-outbox.d.ts +1465 -0
  754. package/dist/interface/crud/email-outbox.d.ts.map +1 -0
  755. package/dist/interface/crud/email-outbox.js +195 -0
  756. package/dist/interface/crud/email-outbox.js.map +1 -0
  757. package/dist/interface/crud/email-templates.d.ts +85 -0
  758. package/dist/interface/crud/email-templates.d.ts.map +1 -0
  759. package/dist/interface/crud/email-templates.js +53 -0
  760. package/dist/interface/crud/email-templates.js.map +1 -0
  761. package/dist/interface/crud/emails.d.ts +41 -0
  762. package/dist/interface/crud/emails.d.ts.map +1 -0
  763. package/dist/interface/crud/emails.js +23 -0
  764. package/dist/interface/crud/emails.js.map +1 -0
  765. package/dist/interface/crud/internal-api-keys.d.ts +140 -0
  766. package/dist/interface/crud/internal-api-keys.d.ts.map +1 -0
  767. package/dist/interface/crud/internal-api-keys.js +56 -0
  768. package/dist/interface/crud/internal-api-keys.js.map +1 -0
  769. package/dist/interface/crud/invoices.d.ts +43 -0
  770. package/dist/interface/crud/invoices.d.ts.map +1 -0
  771. package/dist/interface/crud/invoices.js +28 -0
  772. package/dist/interface/crud/invoices.js.map +1 -0
  773. package/dist/interface/crud/items.d.ts +30 -0
  774. package/dist/interface/crud/items.d.ts.map +1 -0
  775. package/dist/interface/crud/items.js +25 -0
  776. package/dist/interface/crud/items.js.map +1 -0
  777. package/dist/interface/crud/notification-preferences.d.ts +38 -0
  778. package/dist/interface/crud/notification-preferences.d.ts.map +1 -0
  779. package/dist/interface/crud/notification-preferences.js +33 -0
  780. package/dist/interface/crud/notification-preferences.js.map +1 -0
  781. package/dist/interface/crud/oauth-providers.d.ts +186 -0
  782. package/dist/interface/crud/oauth-providers.d.ts.map +1 -0
  783. package/dist/interface/crud/oauth-providers.js +83 -0
  784. package/dist/interface/crud/oauth-providers.js.map +1 -0
  785. package/dist/interface/crud/products.d.ts +182 -0
  786. package/dist/interface/crud/products.d.ts.map +1 -0
  787. package/dist/interface/crud/products.js +32 -0
  788. package/dist/interface/crud/products.js.map +1 -0
  789. package/dist/interface/crud/project-api-keys.d.ts +203 -0
  790. package/dist/interface/crud/project-api-keys.d.ts.map +1 -0
  791. package/dist/interface/crud/project-api-keys.js +79 -0
  792. package/dist/interface/crud/project-api-keys.js.map +1 -0
  793. package/dist/interface/crud/project-permissions.d.ts +161 -0
  794. package/dist/interface/crud/project-permissions.d.ts.map +1 -0
  795. package/dist/interface/crud/project-permissions.js +116 -0
  796. package/dist/interface/crud/project-permissions.js.map +1 -0
  797. package/dist/interface/crud/projects.d.ts +851 -0
  798. package/dist/interface/crud/projects.d.ts.map +1 -0
  799. package/dist/interface/crud/projects.js +204 -0
  800. package/dist/interface/crud/projects.js.map +1 -0
  801. package/dist/interface/crud/session-replays.d.ts +83 -0
  802. package/dist/interface/crud/session-replays.d.ts.map +1 -0
  803. package/dist/interface/crud/session-replays.js +0 -0
  804. package/dist/interface/crud/sessions.d.ts +150 -0
  805. package/dist/interface/crud/sessions.d.ts.map +1 -0
  806. package/dist/interface/crud/sessions.js +62 -0
  807. package/dist/interface/crud/sessions.js.map +1 -0
  808. package/dist/interface/crud/sign-up-rules.d.ts +15 -0
  809. package/dist/interface/crud/sign-up-rules.d.ts.map +1 -0
  810. package/dist/interface/crud/sign-up-rules.js +0 -0
  811. package/dist/interface/crud/svix-token.d.ts +31 -0
  812. package/dist/interface/crud/svix-token.d.ts.map +1 -0
  813. package/dist/interface/crud/svix-token.js +22 -0
  814. package/dist/interface/crud/svix-token.js.map +1 -0
  815. package/dist/interface/crud/team-invitation-details.d.ts +31 -0
  816. package/dist/interface/crud/team-invitation-details.d.ts.map +1 -0
  817. package/dist/interface/crud/team-invitation-details.js +24 -0
  818. package/dist/interface/crud/team-invitation-details.js.map +1 -0
  819. package/dist/interface/crud/team-invitation.d.ts +54 -0
  820. package/dist/interface/crud/team-invitation.d.ts.map +1 -0
  821. package/dist/interface/crud/team-invitation.js +40 -0
  822. package/dist/interface/crud/team-invitation.js.map +1 -0
  823. package/dist/interface/crud/team-member-profiles.d.ts +286 -0
  824. package/dist/interface/crud/team-member-profiles.d.ts.map +1 -0
  825. package/dist/interface/crud/team-member-profiles.js +63 -0
  826. package/dist/interface/crud/team-member-profiles.js.map +1 -0
  827. package/dist/interface/crud/team-memberships.d.ts +75 -0
  828. package/dist/interface/crud/team-memberships.d.ts.map +1 -0
  829. package/dist/interface/crud/team-memberships.js +61 -0
  830. package/dist/interface/crud/team-memberships.js.map +1 -0
  831. package/dist/interface/crud/team-permissions.d.ts +169 -0
  832. package/dist/interface/crud/team-permissions.d.ts.map +1 -0
  833. package/dist/interface/crud/team-permissions.js +117 -0
  834. package/dist/interface/crud/team-permissions.js.map +1 -0
  835. package/dist/interface/crud/teams.d.ts +299 -0
  836. package/dist/interface/crud/teams.d.ts.map +1 -0
  837. package/dist/interface/crud/teams.js +142 -0
  838. package/dist/interface/crud/teams.js.map +1 -0
  839. package/dist/interface/crud/transactions.d.ts +183 -0
  840. package/dist/interface/crud/transactions.d.ts.map +1 -0
  841. package/dist/interface/crud/transactions.js +89 -0
  842. package/dist/interface/crud/transactions.js.map +1 -0
  843. package/dist/interface/crud/users.d.ts +653 -0
  844. package/dist/interface/crud/users.d.ts.map +1 -0
  845. package/dist/interface/crud/users.js +193 -0
  846. package/dist/interface/crud/users.js.map +1 -0
  847. package/dist/interface/handler-urls.d.ts +51 -0
  848. package/dist/interface/handler-urls.d.ts.map +1 -0
  849. package/dist/interface/handler-urls.js +16 -0
  850. package/dist/interface/page-component-versions.d.ts +25 -0
  851. package/dist/interface/page-component-versions.d.ts.map +1 -0
  852. package/dist/interface/page-component-versions.js +1664 -0
  853. package/dist/interface/page-component-versions.js.map +1 -0
  854. package/dist/interface/server-interface.d.ts +255 -0
  855. package/dist/interface/server-interface.d.ts.map +1 -0
  856. package/dist/interface/server-interface.js +461 -0
  857. package/dist/interface/server-interface.js.map +1 -0
  858. package/dist/interface/webhooks.d.ts +326 -0
  859. package/dist/interface/webhooks.d.ts.map +1 -0
  860. package/dist/interface/webhooks.js +24 -0
  861. package/dist/interface/webhooks.js.map +1 -0
  862. package/dist/known-errors.d.ts +575 -0
  863. package/dist/known-errors.d.ts.map +1 -0
  864. package/dist/known-errors.js +794 -0
  865. package/dist/known-errors.js.map +1 -0
  866. package/dist/local-emulator.d.ts +6 -0
  867. package/dist/local-emulator.d.ts.map +1 -0
  868. package/dist/local-emulator.js +10 -0
  869. package/dist/local-emulator.js.map +1 -0
  870. package/dist/payments/payment-methods.d.ts +64 -0
  871. package/dist/payments/payment-methods.d.ts.map +1 -0
  872. package/dist/payments/payment-methods.js +216 -0
  873. package/dist/payments/payment-methods.js.map +1 -0
  874. package/dist/payments/stripe-limits.d.ts +17 -0
  875. package/dist/payments/stripe-limits.d.ts.map +1 -0
  876. package/dist/payments/stripe-limits.js +20 -0
  877. package/dist/payments/stripe-limits.js.map +1 -0
  878. package/dist/plans.d.ts +72 -0
  879. package/dist/plans.d.ts.map +1 -0
  880. package/dist/plans.js +88 -0
  881. package/dist/plans.js.map +1 -0
  882. package/dist/schema-fields.d.ts +472 -0
  883. package/dist/schema-fields.d.ts.map +1 -0
  884. package/dist/schema-fields.js +1188 -0
  885. package/dist/schema-fields.js.map +1 -0
  886. package/dist/sessions.d.ts +165 -0
  887. package/dist/sessions.d.ts.map +1 -0
  888. package/dist/sessions.js +231 -0
  889. package/dist/sessions.js.map +1 -0
  890. package/dist/stack-config-file.d.ts +15 -0
  891. package/dist/stack-config-file.d.ts.map +1 -0
  892. package/dist/stack-config-file.js +82 -0
  893. package/dist/stack-config-file.js.map +1 -0
  894. package/dist/utils/api-keys.d.ts +26 -0
  895. package/dist/utils/api-keys.d.ts.map +1 -0
  896. package/dist/utils/api-keys.js +82 -0
  897. package/dist/utils/api-keys.js.map +1 -0
  898. package/dist/utils/arrays.d.ts +25 -0
  899. package/dist/utils/arrays.d.ts.map +1 -0
  900. package/dist/utils/arrays.js +569 -0
  901. package/dist/utils/arrays.js.map +1 -0
  902. package/dist/utils/auth-methods.d.ts +6 -0
  903. package/dist/utils/auth-methods.d.ts.map +1 -0
  904. package/dist/utils/auth-methods.js +13 -0
  905. package/dist/utils/auth-methods.js.map +1 -0
  906. package/dist/utils/base64.d.ts +6 -0
  907. package/dist/utils/base64.d.ts.map +1 -0
  908. package/dist/utils/base64.js +28 -0
  909. package/dist/utils/base64.js.map +1 -0
  910. package/dist/utils/booleans.d.ts +8 -0
  911. package/dist/utils/booleans.d.ts.map +1 -0
  912. package/dist/utils/booleans.js +38 -0
  913. package/dist/utils/booleans.js.map +1 -0
  914. package/dist/utils/browser-compat.d.ts +10 -0
  915. package/dist/utils/browser-compat.d.ts.map +1 -0
  916. package/dist/utils/browser-compat.js +23 -0
  917. package/dist/utils/browser-compat.js.map +1 -0
  918. package/dist/utils/bytes.d.ts +17 -0
  919. package/dist/utils/bytes.d.ts.map +1 -0
  920. package/dist/utils/bytes.js +304 -0
  921. package/dist/utils/bytes.js.map +1 -0
  922. package/dist/utils/caches.d.ts +102 -0
  923. package/dist/utils/caches.d.ts.map +1 -0
  924. package/dist/utils/caches.js +188 -0
  925. package/dist/utils/caches.js.map +1 -0
  926. package/dist/utils/cel-fields.d.ts +23 -0
  927. package/dist/utils/cel-fields.d.ts.map +1 -0
  928. package/dist/utils/cel-fields.js +108 -0
  929. package/dist/utils/cel-fields.js.map +1 -0
  930. package/dist/utils/compile-time.d.ts +10 -0
  931. package/dist/utils/compile-time.d.ts.map +1 -0
  932. package/dist/utils/compile-time.js +16 -0
  933. package/dist/utils/compile-time.js.map +1 -0
  934. package/dist/utils/country-codes.d.ts +11 -0
  935. package/dist/utils/country-codes.d.ts.map +1 -0
  936. package/dist/utils/country-codes.js +40 -0
  937. package/dist/utils/country-codes.js.map +1 -0
  938. package/dist/utils/crypto.d.ts +48 -0
  939. package/dist/utils/crypto.d.ts.map +1 -0
  940. package/dist/utils/crypto.js +215 -0
  941. package/dist/utils/crypto.js.map +1 -0
  942. package/dist/utils/currencies.d.ts +8 -0
  943. package/dist/utils/currencies.d.ts.map +1 -0
  944. package/dist/utils/currencies.js +52 -0
  945. package/dist/utils/currencies.js.map +1 -0
  946. package/dist/utils/currency-constants.d.ts +39 -0
  947. package/dist/utils/currency-constants.d.ts.map +1 -0
  948. package/dist/utils/currency-constants.js +44 -0
  949. package/dist/utils/currency-constants.js.map +1 -0
  950. package/dist/utils/dates.d.ts +23 -0
  951. package/dist/utils/dates.d.ts.map +1 -0
  952. package/dist/utils/dates.js +176 -0
  953. package/dist/utils/dates.js.map +1 -0
  954. package/dist/utils/dev-env-state-path.d.ts +6 -0
  955. package/dist/utils/dev-env-state-path.d.ts.map +1 -0
  956. package/dist/utils/dev-env-state-path.js +18 -0
  957. package/dist/utils/dev-env-state-path.js.map +1 -0
  958. package/dist/utils/dom.d.ts +5 -0
  959. package/dist/utils/dom.d.ts.map +1 -0
  960. package/dist/utils/dom.js +13 -0
  961. package/dist/utils/dom.js.map +1 -0
  962. package/dist/utils/env.d.ts +25 -0
  963. package/dist/utils/env.d.ts.map +1 -0
  964. package/dist/utils/env.js +85 -0
  965. package/dist/utils/env.js.map +1 -0
  966. package/dist/utils/errors.d.ts +231 -0
  967. package/dist/utils/errors.d.ts.map +1 -0
  968. package/dist/utils/errors.js +393 -0
  969. package/dist/utils/errors.js.map +1 -0
  970. package/dist/utils/esbuild.d.ts +16 -0
  971. package/dist/utils/esbuild.d.ts.map +1 -0
  972. package/dist/utils/esbuild.js +186 -0
  973. package/dist/utils/esbuild.js.map +1 -0
  974. package/dist/utils/featurebase.d.ts +30 -0
  975. package/dist/utils/featurebase.d.ts.map +1 -0
  976. package/dist/utils/featurebase.js +168 -0
  977. package/dist/utils/featurebase.js.map +1 -0
  978. package/dist/utils/fs.d.ts +9 -0
  979. package/dist/utils/fs.d.ts.map +1 -0
  980. package/dist/utils/fs.js +31 -0
  981. package/dist/utils/fs.js.map +1 -0
  982. package/dist/utils/functions.d.ts +6 -0
  983. package/dist/utils/functions.d.ts.map +1 -0
  984. package/dist/utils/functions.js +37 -0
  985. package/dist/utils/functions.js.map +1 -0
  986. package/dist/utils/geo.d.ts +24 -0
  987. package/dist/utils/geo.d.ts.map +1 -0
  988. package/dist/utils/geo.js +18 -0
  989. package/dist/utils/geo.js.map +1 -0
  990. package/dist/utils/globals.d.ts +13 -0
  991. package/dist/utils/globals.d.ts.map +1 -0
  992. package/dist/utils/globals.js +40 -0
  993. package/dist/utils/globals.js.map +1 -0
  994. package/dist/utils/hashes.d.ts +9 -0
  995. package/dist/utils/hashes.d.ts.map +1 -0
  996. package/dist/utils/hashes.js +47 -0
  997. package/dist/utils/hashes.js.map +1 -0
  998. package/dist/utils/html.d.ts +7 -0
  999. package/dist/utils/html.d.ts.map +1 -0
  1000. package/dist/utils/html.js +37 -0
  1001. package/dist/utils/html.js.map +1 -0
  1002. package/dist/utils/http.d.ts +45 -0
  1003. package/dist/utils/http.d.ts.map +1 -0
  1004. package/dist/utils/http.js +79 -0
  1005. package/dist/utils/http.js.map +1 -0
  1006. package/dist/utils/ips.d.ts +8 -0
  1007. package/dist/utils/ips.d.ts.map +1 -0
  1008. package/dist/utils/ips.js +40 -0
  1009. package/dist/utils/ips.js.map +1 -0
  1010. package/dist/utils/json.d.ts +15 -0
  1011. package/dist/utils/json.d.ts.map +1 -0
  1012. package/dist/utils/json.js +182 -0
  1013. package/dist/utils/json.js.map +1 -0
  1014. package/dist/utils/jsx-editable-transpiler.d.ts +68 -0
  1015. package/dist/utils/jsx-editable-transpiler.d.ts.map +1 -0
  1016. package/dist/utils/jsx-editable-transpiler.js +223 -0
  1017. package/dist/utils/jsx-editable-transpiler.js.map +1 -0
  1018. package/dist/utils/jsx-editable-transpiler.test.d.ts +1 -0
  1019. package/dist/utils/jsx-editable-transpiler.test.js +122 -0
  1020. package/dist/utils/jsx-editable-transpiler.test.js.map +1 -0
  1021. package/dist/utils/jwt.d.ts +79 -0
  1022. package/dist/utils/jwt.d.ts.map +1 -0
  1023. package/dist/utils/jwt.js +112 -0
  1024. package/dist/utils/jwt.js.map +1 -0
  1025. package/dist/utils/locks.d.ts +17 -0
  1026. package/dist/utils/locks.d.ts.map +1 -0
  1027. package/dist/utils/locks.js +56 -0
  1028. package/dist/utils/locks.js.map +1 -0
  1029. package/dist/utils/maps.d.ts +61 -0
  1030. package/dist/utils/maps.d.ts.map +1 -0
  1031. package/dist/utils/maps.js +302 -0
  1032. package/dist/utils/maps.js.map +1 -0
  1033. package/dist/utils/math.d.ts +8 -0
  1034. package/dist/utils/math.d.ts.map +1 -0
  1035. package/dist/utils/math.js +23 -0
  1036. package/dist/utils/math.js.map +1 -0
  1037. package/dist/utils/monkey-patch.d.ts +7 -0
  1038. package/dist/utils/monkey-patch.d.ts.map +1 -0
  1039. package/dist/utils/monkey-patch.js +25 -0
  1040. package/dist/utils/monkey-patch.js.map +1 -0
  1041. package/dist/utils/node-http.d.ts +17 -0
  1042. package/dist/utils/node-http.d.ts.map +1 -0
  1043. package/dist/utils/node-http.js +40 -0
  1044. package/dist/utils/node-http.js.map +1 -0
  1045. package/dist/utils/numbers.d.ts +7 -0
  1046. package/dist/utils/numbers.d.ts.map +1 -0
  1047. package/dist/utils/numbers.js +79 -0
  1048. package/dist/utils/numbers.js.map +1 -0
  1049. package/dist/utils/oauth.d.ts +11 -0
  1050. package/dist/utils/oauth.d.ts.map +1 -0
  1051. package/dist/utils/oauth.js +32 -0
  1052. package/dist/utils/oauth.js.map +1 -0
  1053. package/dist/utils/objects.d.ts +59 -0
  1054. package/dist/utils/objects.d.ts.map +1 -0
  1055. package/dist/utils/objects.js +846 -0
  1056. package/dist/utils/objects.js.map +1 -0
  1057. package/dist/utils/paginated-lists.d.ts +442 -0
  1058. package/dist/utils/paginated-lists.d.ts.map +1 -0
  1059. package/dist/utils/paginated-lists.js +414 -0
  1060. package/dist/utils/paginated-lists.js.map +1 -0
  1061. package/dist/utils/paginated-lists.test.d.ts +1 -0
  1062. package/dist/utils/paginated-lists.test.js +1304 -0
  1063. package/dist/utils/paginated-lists.test.js.map +1 -0
  1064. package/dist/utils/passkey.d.ts +2 -0
  1065. package/dist/utils/passkey.js +0 -0
  1066. package/dist/utils/promises.d.ts +80 -0
  1067. package/dist/utils/promises.d.ts.map +1 -0
  1068. package/dist/utils/promises.js +349 -0
  1069. package/dist/utils/promises.js.map +1 -0
  1070. package/dist/utils/proxies.d.ts +13 -0
  1071. package/dist/utils/proxies.d.ts.map +1 -0
  1072. package/dist/utils/proxies.js +201 -0
  1073. package/dist/utils/proxies.js.map +1 -0
  1074. package/dist/utils/react.d.ts +61 -0
  1075. package/dist/utils/react.d.ts.map +1 -0
  1076. package/dist/utils/react.js +243 -0
  1077. package/dist/utils/react.js.map +1 -0
  1078. package/dist/utils/redirect-urls.d.ts +30 -0
  1079. package/dist/utils/redirect-urls.d.ts.map +1 -0
  1080. package/dist/utils/redirect-urls.js +222 -0
  1081. package/dist/utils/redirect-urls.js.map +1 -0
  1082. package/dist/utils/regex.d.ts +5 -0
  1083. package/dist/utils/regex.d.ts.map +1 -0
  1084. package/dist/utils/regex.js +15 -0
  1085. package/dist/utils/regex.js.map +1 -0
  1086. package/dist/utils/results.d.ts +70 -0
  1087. package/dist/utils/results.d.ts.map +1 -0
  1088. package/dist/utils/results.js +342 -0
  1089. package/dist/utils/results.js.map +1 -0
  1090. package/dist/utils/sentry.d.ts +13 -0
  1091. package/dist/utils/sentry.d.ts.map +1 -0
  1092. package/dist/utils/sentry.js +16 -0
  1093. package/dist/utils/sentry.js.map +1 -0
  1094. package/dist/utils/stores.d.ts +104 -0
  1095. package/dist/utils/stores.d.ts.map +1 -0
  1096. package/dist/utils/stores.js +179 -0
  1097. package/dist/utils/stores.js.map +1 -0
  1098. package/dist/utils/strings.d.ts +76 -0
  1099. package/dist/utils/strings.d.ts.map +1 -0
  1100. package/dist/utils/strings.js +549 -0
  1101. package/dist/utils/strings.js.map +1 -0
  1102. package/dist/utils/strings.nicify.test.d.ts +1 -0
  1103. package/dist/utils/strings.nicify.test.js +243 -0
  1104. package/dist/utils/strings.nicify.test.js.map +1 -0
  1105. package/dist/utils/telemetry.d.ts +15 -0
  1106. package/dist/utils/telemetry.d.ts.map +1 -0
  1107. package/dist/utils/telemetry.js +35 -0
  1108. package/dist/utils/telemetry.js.map +1 -0
  1109. package/dist/utils/turnstile-browser.d.ts +32 -0
  1110. package/dist/utils/turnstile-browser.d.ts.map +1 -0
  1111. package/dist/utils/turnstile-browser.js +65 -0
  1112. package/dist/utils/turnstile-browser.js.map +1 -0
  1113. package/dist/utils/turnstile-flow.d.ts +29 -0
  1114. package/dist/utils/turnstile-flow.d.ts.map +1 -0
  1115. package/dist/utils/turnstile-flow.js +225 -0
  1116. package/dist/utils/turnstile-flow.js.map +1 -0
  1117. package/dist/utils/turnstile-flow.test.d.ts +1 -0
  1118. package/dist/utils/turnstile-flow.test.js +75 -0
  1119. package/dist/utils/turnstile-flow.test.js.map +1 -0
  1120. package/dist/utils/turnstile.d.ts +17 -0
  1121. package/dist/utils/turnstile.d.ts.map +1 -0
  1122. package/dist/utils/turnstile.js +31 -0
  1123. package/dist/utils/turnstile.js.map +1 -0
  1124. package/dist/utils/typed-arrays.d.ts +14 -0
  1125. package/dist/utils/typed-arrays.d.ts.map +1 -0
  1126. package/dist/utils/typed-arrays.js +22 -0
  1127. package/dist/utils/typed-arrays.js.map +1 -0
  1128. package/dist/utils/types.d.ts +77 -0
  1129. package/dist/utils/types.d.ts.map +1 -0
  1130. package/dist/utils/types.js +59 -0
  1131. package/dist/utils/types.js.map +1 -0
  1132. package/dist/utils/unicode.d.ts +5 -0
  1133. package/dist/utils/unicode.d.ts.map +1 -0
  1134. package/dist/utils/unicode.js +26 -0
  1135. package/dist/utils/unicode.js.map +1 -0
  1136. package/dist/utils/urls.d.ts +28 -0
  1137. package/dist/utils/urls.d.ts.map +1 -0
  1138. package/dist/utils/urls.js +274 -0
  1139. package/dist/utils/urls.js.map +1 -0
  1140. package/dist/utils/uuids.d.ts +6 -0
  1141. package/dist/utils/uuids.d.ts.map +1 -0
  1142. package/dist/utils/uuids.js +39 -0
  1143. package/dist/utils/uuids.js.map +1 -0
  1144. package/package.json +99 -0
@@ -0,0 +1,1188 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_chunk = require('./chunk-BE-pF4vm.js');
3
+ let __utils_objects_js = require("./utils/objects.js");
4
+ let __known_errors_js = require("./known-errors.js");
5
+ let __utils_errors_js = require("./utils/errors.js");
6
+ let __utils_strings_js = require("./utils/strings.js");
7
+ let yup = require("yup");
8
+ yup = require_chunk.__toESM(yup);
9
+ let __utils_bytes_js = require("./utils/bytes.js");
10
+ let __utils_currency_constants_js = require("./utils/currency-constants.js");
11
+ let __utils_env_js = require("./utils/env.js");
12
+ let __utils_http_js = require("./utils/http.js");
13
+ let __utils_oauth_js = require("./utils/oauth.js");
14
+ let __utils_country_codes_js = require("./utils/country-codes.js");
15
+ let __utils_urls_js = require("./utils/urls.js");
16
+ let __utils_uuids_js = require("./utils/uuids.js");
17
+
18
+ //#region src/schema-fields.ts
19
+ const MAX_IMAGE_SIZE_BASE64_BYTES = 1e6;
20
+ yup.addMethod(yup.string, "nonEmpty", function(message) {
21
+ return this.test("non-empty", message ?? (({ path }) => `${path} must not be empty`), (value) => {
22
+ return value !== "";
23
+ });
24
+ });
25
+ yup.addMethod(yup.Schema, "hasNested", function(path) {
26
+ if (!path.match(/^[a-zA-Z0-9_$:-]*$/)) throw new __utils_errors_js.HexclaveAssertionError(`yupSchema.hasNested can currently only be used with alphanumeric keys, underscores, dollar signs, colons, and hyphens. Fix this in the future. Provided key: ${JSON.stringify(path)}`);
27
+ const schemaInfo = this.meta()?.stackSchemaInfo;
28
+ if (schemaInfo?.type === "record") return schemaInfo.keySchema.isValidSync(path);
29
+ else if (schemaInfo?.type === "union") return schemaInfo.items.some((s) => s.hasNested(path));
30
+ else try {
31
+ yup.reach(this, path);
32
+ return true;
33
+ } catch (e) {
34
+ if (e instanceof Error && e.message.includes("The schema does not contain the path")) return false;
35
+ throw e;
36
+ }
37
+ });
38
+ yup.addMethod(yup.Schema, "getNested", function(path) {
39
+ if (!path.match(/^[a-zA-Z0-9_$:-]*$/)) throw new __utils_errors_js.HexclaveAssertionError(`yupSchema.getNested can currently only be used with alphanumeric keys, underscores, dollar signs, colons, and hyphens. Fix this in the future. Provided key: ${JSON.stringify(path)}`);
40
+ if (!this.hasNested(path)) throw new __utils_errors_js.HexclaveAssertionError(`Tried to call yupSchema.getNested, but key is not present in the schema. Provided key: ${path}`, {
41
+ path,
42
+ schema: this
43
+ });
44
+ const schemaInfo = this.meta()?.stackSchemaInfo;
45
+ if (schemaInfo?.type === "record") return schemaInfo.valueSchema;
46
+ else if (schemaInfo?.type === "union") return yupUnion(...schemaInfo.items.filter((s) => s.hasNested(path)).map((s) => s.getNested(path)));
47
+ else return yup.reach(this, path);
48
+ });
49
+ (void 0)?.test("hasNested", ({ expect }) => {
50
+ expect(yupObject({ a: yupString() }).hasNested("a")).toBe(true);
51
+ expect(yupObject({}).hasNested("a")).toBe(false);
52
+ expect(yupRecord(yupString(), yupString()).hasNested("a")).toBe(true);
53
+ expect(yupRecord(yupString().oneOf(["a"]), yupString()).hasNested("b")).toBe(false);
54
+ expect(yupUnion(yupString(), yupNumber()).hasNested("a")).toBe(false);
55
+ expect(yupUnion(yupString(), yupObject({ b: yupNumber() })).hasNested("a")).toBe(false);
56
+ expect(yupUnion(yupString(), yupObject({ a: yupNumber() })).hasNested("a")).toBe(true);
57
+ });
58
+ (void 0)?.test("getNested", ({ expect }) => {
59
+ expect(yupObject({ a: yupNumber() }).getNested("a").describe().type).toEqual("number");
60
+ expect(() => yupObject({}).getNested("a")).toThrow();
61
+ expect(() => yupObject({ a: yupObject({ b: yupString() }) }).getNested("a.b")).toThrow();
62
+ expect(yupRecord(yupString().oneOf(["a"]), yupNumber()).getNested("a").describe().type).toEqual("number");
63
+ expect(() => yupRecord(yupString().oneOf(["a"]), yupString()).getNested("b")).toThrow();
64
+ expect(yupUnion(yupString(), yupObject({ a: yupNumber() })).getNested("a").describe().type).toEqual("mixed");
65
+ expect(yupUnion(yupObject({ a: yupString() }), yupObject({ a: yupNumber() })).getNested("a").describe().type).toEqual("mixed");
66
+ });
67
+ async function yupValidate(schema, obj, options) {
68
+ try {
69
+ return await schema.validate(obj, {
70
+ ...(0, __utils_objects_js.omit)(options ?? {}, ["currentUserId"]),
71
+ context: {
72
+ ...options?.context,
73
+ stackAllowUserIdMe: options?.currentUserId !== void 0
74
+ }
75
+ });
76
+ } catch (error) {
77
+ if (error instanceof ReplaceFieldWithOwnUserId) {
78
+ const currentUserId = options?.currentUserId;
79
+ if (!currentUserId) throw new __known_errors_js.KnownErrors.CannotGetOwnUserWithoutUser();
80
+ let pathRemaining = error.path;
81
+ const fieldPath = [];
82
+ while (pathRemaining.length > 0) if (pathRemaining.startsWith("[")) {
83
+ const index = pathRemaining.indexOf("]");
84
+ if (index < 0) throw new __utils_errors_js.HexclaveAssertionError("Invalid path");
85
+ fieldPath.push(JSON.parse(pathRemaining.slice(1, index)));
86
+ pathRemaining = pathRemaining.slice(index + 1);
87
+ } else {
88
+ let dotIndex = pathRemaining.indexOf(".");
89
+ if (dotIndex === -1) dotIndex = pathRemaining.length;
90
+ fieldPath.push(pathRemaining.slice(0, dotIndex));
91
+ pathRemaining = pathRemaining.slice(dotIndex + 1);
92
+ }
93
+ const newObj = (0, __utils_objects_js.deepPlainClone)(obj);
94
+ let it = newObj;
95
+ for (const field of fieldPath.slice(0, -1)) {
96
+ if (!Object.prototype.hasOwnProperty.call(it, field)) throw new __utils_errors_js.HexclaveAssertionError(`Segment ${field} of path ${error.path} not found in object`);
97
+ it = it[field];
98
+ }
99
+ it[fieldPath[fieldPath.length - 1]] = currentUserId;
100
+ return await yupValidate(schema, newObj, options);
101
+ }
102
+ throw error;
103
+ }
104
+ }
105
+ const _idDescription = (identify) => `The unique identifier of the ${identify}`;
106
+ const _displayNameDescription = (identify) => `Human-readable ${identify} display name. This is not a unique identifier.`;
107
+ const _clientMetaDataDescription = (identify) => `Client metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client.`;
108
+ const _clientReadOnlyMetaDataDescription = (identify) => `Client read-only, server-writable metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client. The client can read this data, but cannot modify it. This is useful for things like subscription status.`;
109
+ const _profileImageUrlDescription = (identify) => `URL of the profile image for ${identify}. Can be a Base64 encoded image. Must be smaller than 100KB. Please compress and crop to a square before passing in.`;
110
+ const _serverMetaDataDescription = (identify) => `Server metadata. Used as a data store, only accessible from the server side. You can store secret information related to the ${identify} here.`;
111
+ const _atMillisDescription = (identify) => `(the number of milliseconds since epoch, January 1, 1970, UTC)`;
112
+ const _createdAtMillisDescription = (identify) => `The time the ${identify} was created ${_atMillisDescription(identify)}`;
113
+ const _signedUpAtMillisDescription = `The time the user signed up ${_atMillisDescription}`;
114
+ const _lastActiveAtMillisDescription = `The time the user was last active ${_atMillisDescription}`;
115
+ function yupString(...args) {
116
+ return yup.string(...args).meta({ stackSchemaInfo: { type: "string" } });
117
+ }
118
+ function yupNumber(...args) {
119
+ return yup.number(...args).meta({ stackSchemaInfo: { type: "number" } });
120
+ }
121
+ function yupBoolean(...args) {
122
+ return yup.boolean(...args).meta({ stackSchemaInfo: { type: "boolean" } });
123
+ }
124
+ /**
125
+ * @deprecated, use number of milliseconds since epoch instead
126
+ */
127
+ function yupDate(...args) {
128
+ return yup.date(...args).meta({ stackSchemaInfo: { type: "date" } });
129
+ }
130
+ function _yupMixedInternal(...args) {
131
+ return yup.mixed(...args);
132
+ }
133
+ function yupMixed(...args) {
134
+ return _yupMixedInternal(...args).meta({ stackSchemaInfo: { type: "mixed" } });
135
+ }
136
+ function yupArray(...args) {
137
+ return yup.array(...args).meta({ stackSchemaInfo: { type: "array" } });
138
+ }
139
+ function yupTuple(schemas) {
140
+ if (schemas.length === 0) throw new Error("yupTuple must have at least one schema");
141
+ return yup.tuple(schemas).meta({ stackSchemaInfo: {
142
+ type: "tuple",
143
+ items: schemas
144
+ } });
145
+ }
146
+ function yupObjectWithAutoDefault(...args) {
147
+ return yup.object(...args).test("no-unknown-object-properties", ({ path }) => `${path} contains unknown properties`, (value, context) => {
148
+ if (context.options.context?.noUnknownPathPrefixes?.some((prefix) => context.path.startsWith(prefix))) {
149
+ if (context.schema.spec.noUnknown !== false) {
150
+ const availableKeys = new Set(Object.keys(context.schema.fields));
151
+ const unknownKeys = Object.keys(value ?? {}).filter((key) => !availableKeys.has(key));
152
+ if (unknownKeys.length > 0) return context.createError({
153
+ message: `${context.path || "Object"} contains unknown properties: ${unknownKeys.join(", ")}`,
154
+ path: context.path,
155
+ params: {
156
+ unknownKeys,
157
+ availableKeys
158
+ }
159
+ });
160
+ }
161
+ }
162
+ return true;
163
+ }).meta({ stackSchemaInfo: { type: "object" } });
164
+ }
165
+ function yupObject(...args) {
166
+ return yupObjectWithAutoDefault(...args).default(void 0);
167
+ }
168
+ function yupNever() {
169
+ return _yupMixedInternal().meta({ stackSchemaInfo: { type: "never" } }).test("never", "This value should never be reached", () => false);
170
+ }
171
+ function yupUnion(...args) {
172
+ if (args.length === 0) throw new Error("yupUnion must have at least one schema");
173
+ return _yupMixedInternal().meta({ stackSchemaInfo: {
174
+ type: "union",
175
+ items: args
176
+ } }).test("is-one-of", "Invalid value", async (value, context) => {
177
+ if (value == null) return true;
178
+ const errors = [];
179
+ for (const schema of args) try {
180
+ await yupValidate(schema, value, context.options);
181
+ return true;
182
+ } catch (e) {
183
+ errors.push(e);
184
+ }
185
+ return context.createError({
186
+ message: __utils_strings_js.deindent`
187
+ ${context.path} is not matched by any of the provided schemas:
188
+ ${errors.map((e, i) => __utils_strings_js.deindent`
189
+ Schema ${i}:
190
+ ${e.errors.join("\n")}
191
+ `).join("\n")}`,
192
+ path: context.path
193
+ });
194
+ });
195
+ }
196
+ function yupRecord(keySchema, valueSchema) {
197
+ return yupObject().meta({ stackSchemaInfo: {
198
+ type: "record",
199
+ keySchema,
200
+ valueSchema
201
+ } }).unknown(true).test("record", "${path} must be a record of valid values", async function(value, context) {
202
+ if (value == null) return true;
203
+ const { path, createError } = this;
204
+ if (typeof value !== "object") return createError({ message: `${path} must be an object` });
205
+ for (const key of Object.keys(value)) {
206
+ await yupValidate(keySchema, key, context.options);
207
+ try {
208
+ await yupValidate(valueSchema, value[key], {
209
+ ...context.options,
210
+ context: {
211
+ ...context.options.context,
212
+ path: path ? `${path}.${key}` : key
213
+ }
214
+ });
215
+ } catch (e) {
216
+ return createError({
217
+ path: path ? `${path}.${key}` : key,
218
+ message: e.message
219
+ });
220
+ }
221
+ }
222
+ return true;
223
+ });
224
+ }
225
+ function ensureObjectSchema(schema) {
226
+ if (!(schema instanceof yup.ObjectSchema)) throw new __utils_errors_js.HexclaveAssertionError(`assertObjectSchema: schema is not an ObjectSchema: ${schema.describe().type}`);
227
+ return schema;
228
+ }
229
+ const adaptSchema = yupMixed();
230
+ /**
231
+ * Yup's URL schema does not recognize some URLs (including `http://localhost`) as a valid URL. This schema is a workaround for that.
232
+ */
233
+ const urlSchema = yupString().test({
234
+ name: "no-spaces",
235
+ message: (params) => `${params.path} contains spaces`,
236
+ test: (value) => value == null || !value.includes(" ")
237
+ }).test({
238
+ name: "url",
239
+ message: (params) => `${params.path} is not a valid URL`,
240
+ test: (value) => value == null || (0, __utils_urls_js.isValidUrl)(value)
241
+ });
242
+ /**
243
+ * URL schema that supports wildcard patterns in hostnames (e.g., "https://*.example.com", "http://*:8080")
244
+ */
245
+ const wildcardUrlSchema = yupString().test({
246
+ name: "no-spaces",
247
+ message: (params) => `${params.path} contains spaces`,
248
+ test: (value) => value == null || !value.includes(" ")
249
+ }).test({
250
+ name: "wildcard-url",
251
+ message: (params) => `${params.path} is not a valid URL or wildcard URL pattern`,
252
+ test: (value) => {
253
+ if (value == null) return true;
254
+ if (!value.includes("*")) return (0, __utils_urls_js.isValidUrl)(value);
255
+ try {
256
+ const PLACEHOLDER = "wildcard-placeholder";
257
+ const normalizedUrl = value.replace(/\*/g, PLACEHOLDER);
258
+ const url = new URL(normalizedUrl);
259
+ if (url.username.includes(PLACEHOLDER) || url.password.includes(PLACEHOLDER) || url.pathname.includes(PLACEHOLDER) || url.search.includes(PLACEHOLDER) || url.hash.includes(PLACEHOLDER)) return false;
260
+ if (url.protocol !== "http:" && url.protocol !== "https:") return false;
261
+ return (0, __utils_urls_js.isValidHostnameWithWildcards)(url.hostname.split(PLACEHOLDER).join("*"));
262
+ } catch (e) {
263
+ return false;
264
+ }
265
+ }
266
+ });
267
+ const wildcardProtocolAndDomainSchema = wildcardUrlSchema.test({
268
+ name: "is-protocol-and-domain",
269
+ message: (params) => `${params.path} must be a protocol and domain (with optional port) without any path, query parameters, or hash`,
270
+ test: (value) => {
271
+ if (value == null) return true;
272
+ try {
273
+ const normalized = value.replace(/\*/g, "wildcard-placeholder");
274
+ const url = new URL(normalized);
275
+ return url.protocol !== "" && url.hostname !== "" && url.pathname === "/" && url.search === "" && url.hash === "";
276
+ } catch (e) {
277
+ return false;
278
+ }
279
+ }
280
+ });
281
+ const jsonSchema = yupMixed().nullable().defined().transform((value) => JSON.parse(JSON.stringify(value)));
282
+ const jsonStringSchema = yupString().test("json", (params) => `${params.path} is not valid JSON`, (value) => {
283
+ if (value == null) return true;
284
+ try {
285
+ JSON.parse(value);
286
+ return true;
287
+ } catch (error) {
288
+ return false;
289
+ }
290
+ });
291
+ const jsonStringOrEmptySchema = yupString().test("json", (params) => `${params.path} is not valid JSON`, (value) => {
292
+ if (!value) return true;
293
+ try {
294
+ JSON.parse(value);
295
+ return true;
296
+ } catch (error) {
297
+ return false;
298
+ }
299
+ });
300
+ const base64Schema = yupString().test("is-base64", (params) => `${params.path} is not valid base64`, (value) => {
301
+ if (value == null) return true;
302
+ return (0, __utils_bytes_js.isBase64)(value);
303
+ });
304
+ const passwordSchema = yupString().max(70);
305
+ const countryCodeSchema = yupString().transform((value) => typeof value === "string" ? (0, __utils_country_codes_js.normalizeCountryCode)(value) : value).test({
306
+ name: "country-code",
307
+ message: (params) => `${params.path} must be a 2-letter country code`,
308
+ test: (value) => value == null || (0, __utils_country_codes_js.isValidCountryCode)(value)
309
+ });
310
+ (void 0)?.test("countryCodeSchema", async ({ expect }) => {
311
+ await expect(countryCodeSchema.validate(" us ")).resolves.toBe("US");
312
+ await expect(countryCodeSchema.validate("usa")).rejects.toThrow("must be a 2-letter country code");
313
+ });
314
+ const intervalSchema = yupTuple([yupNumber().min(0).integer().defined(), yupString().oneOf([
315
+ "millisecond",
316
+ "second",
317
+ "minute",
318
+ "hour",
319
+ "day",
320
+ "week",
321
+ "month",
322
+ "year"
323
+ ]).defined()]);
324
+ const dayIntervalSchema = yupTuple([yupNumber().min(0).integer().defined(), yupString().oneOf([
325
+ "day",
326
+ "week",
327
+ "month",
328
+ "year"
329
+ ]).defined()]);
330
+ const intervalOrNeverSchema = yupUnion(intervalSchema.defined(), yupString().oneOf(["never"]).defined());
331
+ const dayIntervalOrNeverSchema = yupUnion(dayIntervalSchema.defined(), yupString().oneOf(["never"]).defined());
332
+ /**
333
+ * This schema is useful for fields where the user can specify the ID, such as price IDs. It is particularly common
334
+ * for IDs in the config schema.
335
+ *
336
+ * Valid IDs:
337
+ * - Must contain only letters, numbers, underscores, and hyphens
338
+ * - Must not start with a hyphen
339
+ * - Maximum length of 63 characters
340
+ */
341
+ const USER_SPECIFIED_ID_PATTERN = /^[a-zA-Z0-9_][a-zA-Z0-9_-]*$/;
342
+ const USER_SPECIFIED_ID_MAX_LENGTH = 63;
343
+ /**
344
+ * Checks if the given string is a valid user-specified ID.
345
+ */
346
+ function isValidUserSpecifiedId(id) {
347
+ return id.length > 0 && id.length <= USER_SPECIFIED_ID_MAX_LENGTH && USER_SPECIFIED_ID_PATTERN.test(id);
348
+ }
349
+ /**
350
+ * Gets the error message for an invalid user-specified ID.
351
+ */
352
+ function getUserSpecifiedIdErrorMessage(idName) {
353
+ return `${idName} must contain only letters, numbers, underscores, and hyphens, and not start with a hyphen`;
354
+ }
355
+ /**
356
+ * Sanitizes user input to create a valid user-specified ID.
357
+ * Converts to lowercase and replaces invalid characters with hyphens.
358
+ * Strips leading hyphens.
359
+ */
360
+ function sanitizeUserSpecifiedId(input) {
361
+ return input.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9_-]/g, "").replace(/^-+/, "");
362
+ }
363
+ const userSpecifiedIdSchema = (idName) => yupString().max(USER_SPECIFIED_ID_MAX_LENGTH).matches(USER_SPECIFIED_ID_PATTERN, getUserSpecifiedIdErrorMessage(idName));
364
+ const moneyAmountSchema = (currency) => yupString().test("money-amount", "Invalid money amount", (value, context) => {
365
+ if (value == null) return true;
366
+ const match = value.match(/^([0-9]+)(\.([0-9]+))?$/);
367
+ if (!match) return context.createError({ message: "Money amount must be in the format of <number> or <number>.<number>" });
368
+ const whole = match[1];
369
+ const decimals = match[3];
370
+ if (decimals && decimals.length > currency.decimals) return context.createError({ message: `Too many decimals; ${currency.code} only has ${currency.decimals} decimals` });
371
+ if (whole !== "0" && whole.startsWith("0")) return context.createError({ message: "Money amount must not have leading zeros" });
372
+ return true;
373
+ });
374
+ /**
375
+ * A stricter email schema that does some additional checks for UX input. (Some emails are allowed by the spec, for
376
+ * example `test@localhost` or `abc@gmail`, but almost certainly a user input error.)
377
+ *
378
+ * Note that some users in the DB have an email that doesn't match this regex, so most of the time you should use
379
+ * `emailSchema` instead until we do the DB migration.
380
+ */
381
+ const strictEmailSchema = (message) => yupString().email(message).max(256).matches(/^[^.]+(\.[^.]+)*@.*\.[^.][^.]+$/, message);
382
+ const emailSchema = yupString().email();
383
+ (void 0)?.test("strictEmailSchema", ({ expect }) => {
384
+ for (const email of [
385
+ "a@example.com",
386
+ "abc@example.com",
387
+ "a.b@example.com",
388
+ "throwaway.mail+token@example.com",
389
+ "email-alt-dash@demo-mail.com",
390
+ "test-account@weird-domain.net",
391
+ "%!~&+{}=|`#@domain.test",
392
+ "admin@a.longtldexample"
393
+ ]) expect(strictEmailSchema(void 0).validateSync(email)).toBe(email);
394
+ for (const email of [
395
+ "test@localhost",
396
+ "test@gmail",
397
+ "test@gmail.com.a",
398
+ "test@gmail.a",
399
+ "test.@example.com",
400
+ "test..test@example.com",
401
+ ".test@example.com"
402
+ ]) expect(() => strictEmailSchema(void 0).validateSync(email)).toThrow();
403
+ });
404
+ const clientOrHigherAuthTypeSchema = yupString().oneOf([
405
+ "client",
406
+ "server",
407
+ "admin"
408
+ ]).defined();
409
+ const serverOrHigherAuthTypeSchema = yupString().oneOf(["server", "admin"]).defined();
410
+ const adminAuthTypeSchema = yupString().oneOf(["admin"]).defined();
411
+ const projectIdSchema = yupString().test((v) => v === void 0 || v === "internal" || (0, __utils_uuids_js.isUuid)(v)).meta({ openapiField: {
412
+ description: _idDescription("project"),
413
+ exampleValue: "e0b52f4d-dece-408c-af49-d23061bb0f8d"
414
+ } });
415
+ const projectBranchIdSchema = yupString().nonEmpty().max(255).meta({ openapiField: {
416
+ description: _idDescription("project branch"),
417
+ exampleValue: "main"
418
+ } });
419
+ const projectDisplayNameSchema = yupString().meta({ openapiField: {
420
+ description: _displayNameDescription("project"),
421
+ exampleValue: "MyMusic"
422
+ } });
423
+ const projectLogoUrlSchema = urlSchema.max(MAX_IMAGE_SIZE_BASE64_BYTES).meta({ openapiField: {
424
+ description: "URL of the logo for the project. This is usually a close to 1:1 image of the company logo.",
425
+ exampleValue: "https://example.com/logo.png"
426
+ } });
427
+ const projectLogoFullUrlSchema = urlSchema.max(MAX_IMAGE_SIZE_BASE64_BYTES).meta({ openapiField: {
428
+ description: "URL of the full logo for the project. This is usually a vertical image with the logo and the company name.",
429
+ exampleValue: "https://example.com/full-logo.png"
430
+ } });
431
+ const projectLogoDarkModeUrlSchema = urlSchema.max(MAX_IMAGE_SIZE_BASE64_BYTES).meta({ openapiField: {
432
+ description: "URL of the dark mode logo for the project. This is usually a close to 1:1 image of the company logo optimized for dark backgrounds.",
433
+ exampleValue: "https://example.com/logo-dark.png"
434
+ } });
435
+ const projectLogoFullDarkModeUrlSchema = urlSchema.max(MAX_IMAGE_SIZE_BASE64_BYTES).meta({ openapiField: {
436
+ description: "URL of the dark mode full logo for the project. This is usually a vertical image with the logo and the company name optimized for dark backgrounds.",
437
+ exampleValue: "https://example.com/full-logo-dark.png"
438
+ } });
439
+ const projectDescriptionSchema = yupString().nullable().meta({ openapiField: {
440
+ description: "A human readable description of the project",
441
+ exampleValue: "A music streaming service"
442
+ } });
443
+ const projectCreatedAtMillisSchema = yupNumber().meta({ openapiField: {
444
+ description: _createdAtMillisDescription("project"),
445
+ exampleValue: 163e10
446
+ } });
447
+ const projectIsProductionModeSchema = yupBoolean().meta({ openapiField: {
448
+ description: "Whether the project is in production mode",
449
+ exampleValue: true
450
+ } });
451
+ const projectOnboardingStatusValues = [
452
+ "config_choice",
453
+ "apps_selection",
454
+ "auth_setup",
455
+ "domain_setup",
456
+ "email_theme_setup",
457
+ "payments_setup",
458
+ "welcome",
459
+ "completed"
460
+ ];
461
+ const projectOnboardingStatusSchema = yupString().oneOf(projectOnboardingStatusValues).meta({ openapiField: {
462
+ description: "The current dashboard onboarding stage for this project.",
463
+ exampleValue: "config_choice"
464
+ } });
465
+ const projectConfigIdSchema = yupString().meta({ openapiField: {
466
+ description: _idDescription("project config"),
467
+ exampleValue: "d09201f0-54f5-40bd-89ff-6d1815ddad24"
468
+ } });
469
+ const projectAllowLocalhostSchema = yupBoolean().meta({ openapiField: {
470
+ description: "Whether localhost is allowed as a domain for this project. Should only be allowed in development mode",
471
+ exampleValue: true
472
+ } });
473
+ const projectCreateTeamOnSignUpSchema = yupBoolean().meta({ openapiField: {
474
+ description: "Whether a team should be created for each user that signs up",
475
+ exampleValue: true
476
+ } });
477
+ const projectMagicLinkEnabledSchema = yupBoolean().meta({ openapiField: {
478
+ description: "Whether magic link authentication is enabled for this project",
479
+ exampleValue: true
480
+ } });
481
+ const projectPasskeyEnabledSchema = yupBoolean().meta({ openapiField: {
482
+ description: "Whether passkey authentication is enabled for this project",
483
+ exampleValue: true
484
+ } });
485
+ const projectClientTeamCreationEnabledSchema = yupBoolean().meta({ openapiField: {
486
+ description: "Whether client users can create teams",
487
+ exampleValue: true
488
+ } });
489
+ const projectClientUserDeletionEnabledSchema = yupBoolean().meta({ openapiField: {
490
+ description: "Whether client users can delete their own account from the client",
491
+ exampleValue: true
492
+ } });
493
+ const projectSignUpEnabledSchema = yupBoolean().meta({ openapiField: {
494
+ description: "Whether users can sign up new accounts, or whether they are only allowed to sign in to existing accounts. Regardless of this option, the server API can always create new users with the `POST /users` endpoint.",
495
+ exampleValue: true
496
+ } });
497
+ const projectCredentialEnabledSchema = yupBoolean().meta({ openapiField: {
498
+ description: "Whether email password authentication is enabled for this project",
499
+ exampleValue: true
500
+ } });
501
+ const oauthIdSchema = yupString().oneOf(__utils_oauth_js.allProviders).meta({ openapiField: {
502
+ description: `OAuth provider ID, one of ${__utils_oauth_js.allProviders.map((x) => `\`${x}\``).join(", ")}`,
503
+ exampleValue: "google"
504
+ } });
505
+ const oauthEnabledSchema = yupBoolean().meta({ openapiField: {
506
+ description: "Whether the OAuth provider is enabled. If an provider is first enabled, then disabled, it will be shown in the list but with enabled=false",
507
+ exampleValue: true
508
+ } });
509
+ const oauthTypeSchema = yupString().oneOf(["shared", "standard"]).meta({ openapiField: {
510
+ description: "OAuth provider type, one of shared, standard. \"shared\" uses Stack shared OAuth keys and it is only meant for development. \"standard\" uses your own OAuth keys and will show your logo and company name when signing in with the provider.",
511
+ exampleValue: "standard"
512
+ } });
513
+ const oauthClientIdSchema = yupString().meta({ openapiField: {
514
+ description: "OAuth client ID. Needs to be specified when using type=\"standard\"",
515
+ exampleValue: "google-oauth-client-id"
516
+ } });
517
+ const oauthClientSecretSchema = yupString().meta({ openapiField: {
518
+ description: "OAuth client secret. Needs to be specified when using type=\"standard\"",
519
+ exampleValue: "google-oauth-client-secret"
520
+ } });
521
+ const oauthFacebookConfigIdSchema = yupString().meta({ openapiField: { description: "The configuration id for Facebook business login (for things like ads and marketing). This is only required if you are using the standard OAuth with Facebook and you are using Facebook business login." } });
522
+ const oauthMicrosoftTenantIdSchema = yupString().meta({ openapiField: { description: "The Microsoft tenant id for Microsoft directory. This is only required if you are using the standard OAuth with Microsoft and you have an Azure AD tenant." } });
523
+ const oauthAppleBundleIdsSchema = yupArray(yupString().defined()).meta({ openapiField: {
524
+ description: "Apple Bundle IDs for native iOS/macOS apps. Required for native Sign In with Apple (in addition to web Apple OAuth which uses the Client ID/Services ID).",
525
+ exampleValue: ["com.example.ios", "com.example.macos"]
526
+ } });
527
+ const oauthAppleBundleIdSchema = yupString().defined().meta({ openapiField: {
528
+ description: "Apple Bundle ID for native iOS/macOS apps.",
529
+ exampleValue: "com.example.ios"
530
+ } });
531
+ const oauthAccountMergeStrategySchema = yupString().oneOf([
532
+ "link_method",
533
+ "raise_error",
534
+ "allow_duplicates"
535
+ ]).meta({ openapiField: {
536
+ description: "Determines how to handle OAuth logins that match an existing user by email. `link_method` adds the OAuth method to the existing user. `raise_error` rejects the login with an error. `allow_duplicates` creates a new user.",
537
+ exampleValue: "link_method"
538
+ } });
539
+ const emailTypeSchema = yupString().oneOf(["shared", "standard"]).meta({ openapiField: {
540
+ description: "Email provider type, one of shared, standard. \"shared\" uses Stack shared email provider and it is only meant for development. \"standard\" uses your own email server and will have your email address as the sender.",
541
+ exampleValue: "standard"
542
+ } });
543
+ const emailSenderNameSchema = yupString().meta({ openapiField: {
544
+ description: "Email sender name. Needs to be specified when using type=\"standard\"",
545
+ exampleValue: "Stack"
546
+ } });
547
+ const emailHostSchema = yupString().meta({ openapiField: {
548
+ description: "Email host. Needs to be specified when using type=\"standard\"",
549
+ exampleValue: "smtp.your-domain.com"
550
+ } });
551
+ const emailPortSchema = yupNumber().min(0).max(65535).meta({ openapiField: {
552
+ description: "Email port. Needs to be specified when using type=\"standard\"",
553
+ exampleValue: 587
554
+ } });
555
+ const emailUsernameSchema = yupString().meta({ openapiField: {
556
+ description: "Email username. Needs to be specified when using type=\"standard\"",
557
+ exampleValue: "smtp-email"
558
+ } });
559
+ const emailSenderEmailSchema = emailSchema.meta({ openapiField: {
560
+ description: "Email sender email. Needs to be specified when using type=\"standard\"",
561
+ exampleValue: "example@your-domain.com"
562
+ } });
563
+ const emailPasswordSchema = passwordSchema.meta({ openapiField: {
564
+ description: "Email password. Needs to be specified when using type=\"standard\"",
565
+ exampleValue: "your-email-password"
566
+ } });
567
+ const handlerPathSchema = yupString().test("is-handler-path", "Handler path must start with /", (value) => value?.startsWith("/")).meta({ openapiField: {
568
+ description: "Handler path. If you did not setup a custom handler path, it should be \"/handler\" by default. It needs to start with /",
569
+ exampleValue: "/handler"
570
+ } });
571
+ const emailThemeSchema = yupString().meta({ openapiField: { description: "Email theme id for the project. Determines the visual style of emails sent by the project." } });
572
+ const emailThemeListSchema = yupRecord(yupString().uuid(), yupObject({
573
+ displayName: yupString().meta({ openapiField: {
574
+ description: "Email theme name",
575
+ exampleValue: "Default Light"
576
+ } }).defined(),
577
+ tsxSource: yupString().meta({ openapiField: { description: "Email theme source code tsx component" } }).defined()
578
+ })).meta({ openapiField: { description: "Record of email theme IDs to their display name and source code" } });
579
+ const templateThemeIdSchema = yupMixed().test((v) => v === void 0 || v === false || v === null || typeof v === "string" && (0, __utils_uuids_js.isUuid)(v)).meta({ openapiField: { description: "Email theme id for the template" } }).optional();
580
+ const emailTemplateListSchema = yupRecord(yupString().uuid(), yupObject({
581
+ displayName: yupString().meta({ openapiField: {
582
+ description: "Email template name",
583
+ exampleValue: "Email Verification"
584
+ } }).defined(),
585
+ tsxSource: yupString().meta({ openapiField: { description: "Email template source code tsx component" } }).defined(),
586
+ themeId: templateThemeIdSchema
587
+ })).meta({ openapiField: { description: "Record of email template IDs to their display name and source code" } });
588
+ const customDashboardsSchema = yupRecord(yupString().uuid(), yupObject({
589
+ displayName: yupString().meta({ openapiField: {
590
+ description: "Custom dashboard name",
591
+ exampleValue: "User Growth Dashboard"
592
+ } }).defined(),
593
+ tsxSource: yupString().meta({ openapiField: { description: "Custom dashboard source code tsx component" } }).defined()
594
+ })).meta({ openapiField: { description: "Record of custom dashboard IDs to their display name and source code" } });
595
+ const customerTypeSchema = yupString().oneOf([
596
+ "user",
597
+ "team",
598
+ "custom"
599
+ ]);
600
+ const validateHasAtLeastOneSupportedCurrency = (value, context) => {
601
+ if (!value) return true;
602
+ if (Object.keys(value).filter((key) => __utils_currency_constants_js.SUPPORTED_CURRENCIES.some((c) => c.code === key)).length === 0) return context.createError({ message: "At least one currency is required" });
603
+ return true;
604
+ };
605
+ const productPriceSchema = yupObject({
606
+ ...(0, __utils_objects_js.typedFromEntries)(__utils_currency_constants_js.SUPPORTED_CURRENCIES.map((currency) => [currency.code, moneyAmountSchema(currency).optional()])),
607
+ interval: dayIntervalSchema.optional(),
608
+ serverOnly: yupBoolean(),
609
+ freeTrial: dayIntervalSchema.optional()
610
+ }).test("at-least-one-currency", (value, context) => validateHasAtLeastOneSupportedCurrency(value, context));
611
+ const pricesSchema = yupRecord(userSpecifiedIdSchema("priceId"), productPriceSchema);
612
+ const productSchema = yupObject({
613
+ displayName: yupString(),
614
+ productLineId: userSpecifiedIdSchema("productLineId").optional().meta({ openapiField: {
615
+ description: "The ID of the product line this product belongs to. Within a product line, all products are mutually exclusive unless they are an add-on to another product in the product line.",
616
+ exampleValue: "product-line-id"
617
+ } }),
618
+ isAddOnTo: yupUnion(yupBoolean().isFalse(), yupRecord(userSpecifiedIdSchema("productId"), yupBoolean().isTrue().defined())).optional().meta({ openapiField: {
619
+ description: "The products that this product is an add-on to. If this is set, the customer must already have one of the products in the record to be able to purchase this product.",
620
+ exampleValue: { "product-id": true }
621
+ } }),
622
+ customerType: customerTypeSchema.defined(),
623
+ freeTrial: dayIntervalSchema.optional(),
624
+ serverOnly: yupBoolean(),
625
+ stackable: yupBoolean(),
626
+ prices: pricesSchema.defined(),
627
+ includedItems: yupRecord(userSpecifiedIdSchema("itemId"), yupObject({
628
+ quantity: yupNumber().defined(),
629
+ repeat: dayIntervalOrNeverSchema.optional(),
630
+ expires: yupString().oneOf([
631
+ "never",
632
+ "when-purchase-expires",
633
+ "when-repeated"
634
+ ]).optional()
635
+ }))
636
+ });
637
+ const productMetadataExample = {
638
+ featureFlag: true,
639
+ source: "marketing-campaign"
640
+ };
641
+ const productClientMetadataSchema = jsonSchema.meta({ openapiField: {
642
+ description: _clientMetaDataDescription("product"),
643
+ exampleValue: productMetadataExample
644
+ } });
645
+ const productClientReadOnlyMetadataSchema = jsonSchema.meta({ openapiField: {
646
+ description: _clientReadOnlyMetaDataDescription("product"),
647
+ exampleValue: productMetadataExample
648
+ } });
649
+ const productServerMetadataSchema = jsonSchema.meta({ openapiField: {
650
+ description: _serverMetaDataDescription("product"),
651
+ exampleValue: productMetadataExample
652
+ } });
653
+ const productSchemaWithMetadata = productSchema.concat(yupObject({
654
+ clientMetadata: productClientMetadataSchema.optional(),
655
+ clientReadOnlyMetadata: productClientReadOnlyMetadataSchema.optional(),
656
+ serverMetadata: productServerMetadataSchema.optional()
657
+ }));
658
+ const inlineProductSchema = yupObject({
659
+ display_name: yupString().defined(),
660
+ customer_type: customerTypeSchema.defined(),
661
+ free_trial: dayIntervalSchema.optional(),
662
+ server_only: yupBoolean().default(true),
663
+ stackable: yupBoolean().default(false),
664
+ prices: yupRecord(userSpecifiedIdSchema("priceId"), yupObject({
665
+ ...(0, __utils_objects_js.typedFromEntries)(__utils_currency_constants_js.SUPPORTED_CURRENCIES.map((currency) => [currency.code, moneyAmountSchema(currency).optional()])),
666
+ interval: dayIntervalSchema.optional(),
667
+ free_trial: dayIntervalSchema.optional()
668
+ }).test("at-least-one-currency", (value, context) => validateHasAtLeastOneSupportedCurrency(value, context))),
669
+ included_items: yupRecord(userSpecifiedIdSchema("itemId"), yupObject({
670
+ quantity: yupNumber(),
671
+ repeat: dayIntervalOrNeverSchema.optional(),
672
+ expires: yupString().oneOf([
673
+ "never",
674
+ "when-purchase-expires",
675
+ "when-repeated"
676
+ ]).optional()
677
+ })),
678
+ client_metadata: productClientMetadataSchema.optional(),
679
+ client_read_only_metadata: productClientReadOnlyMetadataSchema.optional(),
680
+ server_metadata: productServerMetadataSchema.optional()
681
+ });
682
+ var ReplaceFieldWithOwnUserId = class extends Error {
683
+ constructor(path) {
684
+ super(`This error should be caught by whoever validated the schema, and the field in the path '${path}' should be replaced with the current user's id. This is a workaround to yup not providing access to the context inside the transform function.`);
685
+ this.path = path;
686
+ }
687
+ };
688
+ const userIdMeSentinelUuid = "cad564fd-f81b-43f4-b390-98abf3fcc17e";
689
+ const userIdOrMeSchema = yupString().uuid().transform((v) => {
690
+ if (v === "me") return userIdMeSentinelUuid;
691
+ else return v;
692
+ }).test((v, context) => {
693
+ if (!("stackAllowUserIdMe" in (context.options.context ?? {}))) throw new __utils_errors_js.HexclaveAssertionError("userIdOrMeSchema is not allowed in this context. Make sure you're using yupValidate from schema-fields.ts to validate, instead of schema.validate(...).");
694
+ if (!context.options.context?.stackAllowUserIdMe) throw new __utils_errors_js.HexclaveAssertionError("userIdOrMeSchema is not allowed in this context. Make sure you're passing in the currentUserId option in yupValidate.");
695
+ if (v === userIdMeSentinelUuid) throw new ReplaceFieldWithOwnUserId(context.path);
696
+ return true;
697
+ }).meta({ openapiField: {
698
+ description: "The ID of the user, or the special value `me` for the currently authenticated user",
699
+ exampleValue: "3241a285-8329-4d69-8f3d-316e08cf140c"
700
+ } });
701
+ const userIdSchema = yupString().uuid().meta({ openapiField: {
702
+ description: _idDescription("user"),
703
+ exampleValue: "3241a285-8329-4d69-8f3d-316e08cf140c"
704
+ } });
705
+ const primaryEmailSchema = emailSchema.meta({ openapiField: {
706
+ description: "Primary email",
707
+ exampleValue: "johndoe@example.com"
708
+ } });
709
+ const primaryEmailAuthEnabledSchema = yupBoolean().meta({ openapiField: {
710
+ description: "Whether the primary email is used for authentication. If this is set to `false`, the user will not be able to sign in with the primary email with password or OTP",
711
+ exampleValue: true
712
+ } });
713
+ const primaryEmailVerifiedSchema = yupBoolean().meta({ openapiField: {
714
+ description: "Whether the primary email has been verified to belong to this user",
715
+ exampleValue: true
716
+ } });
717
+ const userDisplayNameSchema = yupString().nullable().max(256).meta({ openapiField: {
718
+ description: _displayNameDescription("user"),
719
+ exampleValue: "John Doe"
720
+ } });
721
+ const selectedTeamIdSchema = yupString().uuid().meta({ openapiField: {
722
+ description: "ID of the team currently selected by the user",
723
+ exampleValue: "team-id"
724
+ } });
725
+ const profileImageUrlSchema = urlSchema.max(MAX_IMAGE_SIZE_BASE64_BYTES).meta({ openapiField: {
726
+ description: _profileImageUrlDescription("user"),
727
+ exampleValue: "https://example.com/image.jpg"
728
+ } });
729
+ const signedUpAtMillisSchema = yupNumber().meta({ openapiField: {
730
+ description: _signedUpAtMillisDescription,
731
+ exampleValue: 163e10
732
+ } });
733
+ const userClientMetadataSchema = jsonSchema.meta({ openapiField: {
734
+ description: _clientMetaDataDescription("user"),
735
+ exampleValue: { key: "value" }
736
+ } });
737
+ const userClientReadOnlyMetadataSchema = jsonSchema.meta({ openapiField: {
738
+ description: _clientReadOnlyMetaDataDescription("user"),
739
+ exampleValue: { key: "value" }
740
+ } });
741
+ const userServerMetadataSchema = jsonSchema.meta({ openapiField: {
742
+ description: _serverMetaDataDescription("user"),
743
+ exampleValue: { key: "value" }
744
+ } });
745
+ const userOAuthProviderSchema = yupObject({
746
+ id: yupString().defined(),
747
+ type: yupString().oneOf(__utils_oauth_js.allProviders).defined(),
748
+ provider_user_id: yupString().defined()
749
+ });
750
+ const userLastActiveAtMillisSchema = yupNumber().nullable().meta({ openapiField: {
751
+ description: _lastActiveAtMillisDescription,
752
+ exampleValue: 163e10
753
+ } });
754
+ const userPasskeyAuthEnabledSchema = yupBoolean().meta({ openapiField: {
755
+ hidden: true,
756
+ description: "Whether the user has passkeys enabled",
757
+ exampleValue: false
758
+ } });
759
+ const userOtpAuthEnabledSchema = yupBoolean().meta({ openapiField: {
760
+ hidden: true,
761
+ description: "Whether the user has OTP/magic link enabled. ",
762
+ exampleValue: true
763
+ } });
764
+ const userOtpAuthEnabledMutationSchema = yupBoolean().meta({ openapiField: {
765
+ hidden: true,
766
+ description: "Whether the user has OTP/magic link enabled. Note that only accounts with verified emails can sign-in with OTP.",
767
+ exampleValue: true
768
+ } });
769
+ const userHasPasswordSchema = yupBoolean().meta({ openapiField: {
770
+ hidden: true,
771
+ description: "Whether the user has a password set. If the user does not have a password set, they will not be able to sign in with email/password.",
772
+ exampleValue: true
773
+ } });
774
+ const userPasswordMutationSchema = passwordSchema.nullable().meta({ openapiField: {
775
+ description: "Sets the user's password. Doing so revokes all current sessions.",
776
+ exampleValue: "my-new-password"
777
+ } }).max(70);
778
+ const userPasswordHashMutationSchema = yupString().nonEmpty().meta({ openapiField: { description: "If `password` is not given, sets the user's password hash to the given string in Modular Crypt Format (ex.: `$2a$10$VIhIOofSMqGdGlL4wzE//e.77dAQGqNtF/1dT7bqCrVtQuInWy2qi`). Doing so revokes all current sessions." } });
779
+ const userTotpSecretMutationSchema = base64Schema.nullable().meta({ openapiField: {
780
+ description: "Enables 2FA and sets a TOTP secret for the user. Set to null to disable 2FA.",
781
+ exampleValue: "dG90cC1zZWNyZXQ="
782
+ } });
783
+ const restrictedReasonTypes = [
784
+ "anonymous",
785
+ "email_not_verified",
786
+ "restricted_by_administrator"
787
+ ];
788
+ const restrictedReasonSchema = yupObject({ type: yupString().oneOf(restrictedReasonTypes).defined() });
789
+ const accessTokenPayloadSchema = yupObject({
790
+ sub: yupString().defined(),
791
+ exp: yupNumber().optional(),
792
+ iat: yupNumber().defined(),
793
+ iss: yupString().defined(),
794
+ aud: yupString().defined(),
795
+ project_id: yupString().defined(),
796
+ branch_id: yupString().defined(),
797
+ refresh_token_id: yupString().defined(),
798
+ role: yupString().oneOf(["authenticated"]).defined(),
799
+ name: yupString().defined().nullable(),
800
+ email: yupString().defined().nullable(),
801
+ email_verified: yupBoolean().defined(),
802
+ selected_team_id: yupString().defined().nullable(),
803
+ signed_up_at: yupNumber().defined(),
804
+ is_anonymous: yupBoolean().defined(),
805
+ is_restricted: yupBoolean().defined(),
806
+ restricted_reason: restrictedReasonSchema.defined().nullable(),
807
+ requires_totp_mfa: yupBoolean().defined()
808
+ });
809
+ const signInEmailSchema = strictEmailSchema(void 0).meta({ openapiField: {
810
+ description: "The email to sign in with.",
811
+ exampleValue: "johndoe@example.com"
812
+ } });
813
+ const emailOtpSignInCallbackUrlSchema = urlSchema.meta({ openapiField: {
814
+ description: "The base callback URL to construct the magic link from. A query parameter `code` with the verification code will be appended to it. The page should then make a request to the `/auth/otp/sign-in` endpoint.",
815
+ exampleValue: "https://example.com/handler/magic-link-callback"
816
+ } });
817
+ const emailVerificationCallbackUrlSchema = urlSchema.meta({ openapiField: {
818
+ description: "The base callback URL to construct a verification link for the verification e-mail. A query parameter `code` with the verification code will be appended to it. The page should then make a request to the `/contact-channels/verify` endpoint.",
819
+ exampleValue: "https://example.com/handler/email-verification"
820
+ } });
821
+ const accessTokenResponseSchema = yupString().meta({ openapiField: {
822
+ description: "Short-lived access token that can be used to authenticate the user",
823
+ exampleValue: "eyJhmMiJB2TO...diI4QT"
824
+ } });
825
+ const refreshTokenResponseSchema = yupString().meta({ openapiField: {
826
+ description: "Long-lived refresh token that can be used to obtain a new access token",
827
+ exampleValue: "i8ns3aq2...14y"
828
+ } });
829
+ const signInResponseSchema = yupObject({
830
+ refresh_token: refreshTokenResponseSchema.defined(),
831
+ access_token: accessTokenResponseSchema.defined(),
832
+ is_new_user: yupBoolean().meta({ openapiField: {
833
+ description: "Whether the user is a new user",
834
+ exampleValue: true
835
+ } }).defined(),
836
+ user_id: userIdSchema.defined()
837
+ });
838
+ const teamSystemPermissions = [
839
+ "$update_team",
840
+ "$delete_team",
841
+ "$read_members",
842
+ "$remove_members",
843
+ "$invite_members",
844
+ "$manage_api_keys"
845
+ ];
846
+ const permissionDefinitionIdSchema = yupString().matches(/^\$?[a-z0-9_:]+$/, "Only lowercase letters, numbers, \":\", \"_\" and optional \"$\" at the beginning are allowed").test("is-system-permission", "System permissions must start with a dollar sign", (value, ctx) => {
847
+ if (!value) return true;
848
+ if (value.startsWith("$") && !teamSystemPermissions.includes(value)) return ctx.createError({ message: "Invalid system permission" });
849
+ return true;
850
+ }).meta({ openapiField: {
851
+ description: `The permission ID used to uniquely identify a permission. Can either be a custom permission with lowercase letters, numbers, \`:\`, and \`_\` characters, or one of the system permissions: ${teamSystemPermissions.map((x) => `\`${x}\``).join(", ")}`,
852
+ exampleValue: "read_secret_info"
853
+ } });
854
+ const customPermissionDefinitionIdSchema = yupString().matches(/^[a-z0-9_:]+$/, "Only lowercase letters, numbers, \":\", \"_\" are allowed").meta({ openapiField: {
855
+ description: "The permission ID used to uniquely identify a permission. Can only contain lowercase letters, numbers, \":\", and \"_\" characters",
856
+ exampleValue: "read_secret_info"
857
+ } });
858
+ const teamPermissionDescriptionSchema = yupString().meta({ openapiField: {
859
+ description: "A human-readable description of the permission",
860
+ exampleValue: "Read secret information"
861
+ } });
862
+ const containedPermissionIdsSchema = yupArray(permissionDefinitionIdSchema.defined()).meta({ openapiField: {
863
+ description: "The IDs of the permissions that are contained in this permission",
864
+ exampleValue: ["read_public_info"]
865
+ } });
866
+ const teamIdSchema = yupString().uuid().meta({ openapiField: {
867
+ description: _idDescription("team"),
868
+ exampleValue: "ad962777-8244-496a-b6a2-e0c6a449c79e"
869
+ } });
870
+ const teamDisplayNameSchema = yupString().meta({ openapiField: {
871
+ description: _displayNameDescription("team"),
872
+ exampleValue: "My Team"
873
+ } });
874
+ const teamProfileImageUrlSchema = urlSchema.max(1e6).meta({ openapiField: {
875
+ description: _profileImageUrlDescription("team"),
876
+ exampleValue: "https://example.com/image.jpg"
877
+ } });
878
+ const teamClientMetadataSchema = jsonSchema.meta({ openapiField: {
879
+ description: _clientMetaDataDescription("team"),
880
+ exampleValue: { key: "value" }
881
+ } });
882
+ const teamClientReadOnlyMetadataSchema = jsonSchema.meta({ openapiField: {
883
+ description: _clientReadOnlyMetaDataDescription("team"),
884
+ exampleValue: { key: "value" }
885
+ } });
886
+ const teamServerMetadataSchema = jsonSchema.meta({ openapiField: {
887
+ description: _serverMetaDataDescription("team"),
888
+ exampleValue: { key: "value" }
889
+ } });
890
+ const teamCreatedAtMillisSchema = yupNumber().meta({ openapiField: {
891
+ description: _createdAtMillisDescription("team"),
892
+ exampleValue: 163e10
893
+ } });
894
+ const teamInvitationEmailSchema = emailSchema.meta({ openapiField: {
895
+ description: "The email of the user to invite.",
896
+ exampleValue: "johndoe@example.com"
897
+ } });
898
+ const teamInvitationCallbackUrlSchema = urlSchema.meta({ openapiField: {
899
+ description: "The base callback URL to construct an invite link with. A query parameter `code` with the verification code will be appended to it. The page should then make a request to the `/team-invitations/accept` endpoint.",
900
+ exampleValue: "https://example.com/handler/team-invitation"
901
+ } });
902
+ const teamCreatorUserIdSchema = userIdOrMeSchema.meta({ openapiField: {
903
+ description: "The ID of the creator of the team. If not specified, the user will not be added to the team. Can be either \"me\" or the ID of the user. Only used on the client side.",
904
+ exampleValue: "me"
905
+ } });
906
+ const teamMemberDisplayNameSchema = yupString().meta({ openapiField: {
907
+ description: _displayNameDescription("team member") + " Note that this is separate from the display_name of the user.",
908
+ exampleValue: "John Doe"
909
+ } });
910
+ const teamMemberProfileImageUrlSchema = urlSchema.max(1e6).meta({ openapiField: {
911
+ description: _profileImageUrlDescription("team member"),
912
+ exampleValue: "https://example.com/image.jpg"
913
+ } });
914
+ const contactChannelIdSchema = yupString().uuid().meta({ openapiField: {
915
+ description: _idDescription("contact channel"),
916
+ exampleValue: "b3d396b8-c574-4c80-97b3-50031675ceb2"
917
+ } });
918
+ const contactChannelTypeSchema = yupString().oneOf(["email"]).meta({ openapiField: {
919
+ description: `The type of the contact channel. Currently only "email" is supported.`,
920
+ exampleValue: "email"
921
+ } });
922
+ const contactChannelValueSchema = yupString().when("type", {
923
+ is: "email",
924
+ then: (schema) => schema.email()
925
+ }).meta({ openapiField: {
926
+ description: "The value of the contact channel. For email, this should be a valid email address.",
927
+ exampleValue: "johndoe@example.com"
928
+ } });
929
+ const contactChannelUsedForAuthSchema = yupBoolean().meta({ openapiField: {
930
+ description: "Whether the contact channel is used for authentication. If this is set to `true`, the user will be able to sign in with the contact channel with password or OTP.",
931
+ exampleValue: true
932
+ } });
933
+ const contactChannelIsVerifiedSchema = yupBoolean().meta({ openapiField: {
934
+ description: "Whether the contact channel has been verified. If this is set to `true`, the contact channel has been verified to belong to the user.",
935
+ exampleValue: true
936
+ } });
937
+ const contactChannelIsPrimarySchema = yupBoolean().meta({ openapiField: {
938
+ description: "Whether the contact channel is the primary contact channel. If this is set to `true`, it will be used for authentication and notifications by default.",
939
+ exampleValue: true
940
+ } });
941
+ const oauthProviderIdSchema = yupString().uuid().meta({ openapiField: {
942
+ description: _idDescription("OAuth provider"),
943
+ exampleValue: "b3d396b8-c574-4c80-97b3-50031675ceb2"
944
+ } });
945
+ const oauthProviderEmailSchema = emailSchema.meta({ openapiField: {
946
+ description: "Email of the OAuth provider. This is used to display and identify the OAuth provider in the UI.",
947
+ exampleValue: "test@gmail.com"
948
+ } });
949
+ const oauthProviderTypeSchema = yupString().oneOf(__utils_oauth_js.allProviders).meta({ openapiField: {
950
+ description: `OAuth provider type, one of ${__utils_oauth_js.allProviders.map((x) => `\`${x}\``).join(", ")}`,
951
+ exampleValue: "google"
952
+ } });
953
+ const oauthProviderAllowSignInSchema = yupBoolean().meta({ openapiField: {
954
+ description: "Whether the user can use this OAuth provider to sign in. Only one OAuth provider per type can have this set to `true`.",
955
+ exampleValue: true
956
+ } });
957
+ const oauthProviderAllowConnectedAccountsSchema = yupBoolean().meta({ openapiField: {
958
+ description: "Whether the user can use this OAuth provider as connected account. Multiple OAuth providers per type can have this set to `true`.",
959
+ exampleValue: true
960
+ } });
961
+ const oauthProviderAccountIdSchema = yupString().meta({ openapiField: {
962
+ description: "Account ID of the OAuth provider. This uniquely identifies the account on the provider side.",
963
+ exampleValue: "google-account-id-12345"
964
+ } });
965
+ const oauthProviderProviderConfigIdSchema = yupString().meta({ openapiField: {
966
+ description: "Provider config ID of the OAuth provider. This uniquely identifies the provider config on config.json file",
967
+ exampleValue: "google"
968
+ } });
969
+ const basicAuthorizationHeaderSchema = yupString().test("is-basic-authorization-header", "Authorization header must be in the format \"Basic <base64>\"", (value) => {
970
+ if (!value) return true;
971
+ return (0, __utils_http_js.decodeBasicAuthorizationHeader)(value) !== null;
972
+ });
973
+ const neonAuthorizationHeaderSchema = basicAuthorizationHeaderSchema.test("is-authorization-header", "Invalid client_id:client_secret values; did you use the correct values for the integration?", (value) => {
974
+ if (!value) return true;
975
+ const decoded = (0, __utils_http_js.decodeBasicAuthorizationHeader)(value);
976
+ if (decoded === null) return true;
977
+ const [clientId, clientSecret] = decoded;
978
+ for (const neonClientConfig of JSON.parse((0, __utils_env_js.getProcessEnv)("STACK_INTEGRATION_CLIENTS_CONFIG") || "[]")) if (clientId === neonClientConfig.client_id && clientSecret === neonClientConfig.client_secret) return true;
979
+ return false;
980
+ });
981
+ (void 0)?.test("neonAuthorizationHeaderSchema handles malformed Basic auth as a validation error", async ({ expect }) => {
982
+ await expect(neonAuthorizationHeaderSchema.validate("Basic", { abortEarly: false })).rejects.toThrow("Authorization header must be in the format \"Basic <base64>\"");
983
+ });
984
+ function yupDefinedWhen(schema, triggers) {
985
+ const entries = Object.entries(triggers);
986
+ return schema.when(entries.map(([key]) => key), {
987
+ is: (...values) => entries.every(([key, value], index) => value === values[index]),
988
+ then: (schema) => schema.defined(),
989
+ otherwise: (schema) => schema.optional()
990
+ });
991
+ }
992
+ function yupDefinedAndNonEmptyWhen(schema, triggers) {
993
+ const entries = Object.entries(triggers);
994
+ return schema.when(entries.map(([key]) => key), {
995
+ is: (...values) => entries.every(([key, value], index) => value === values[index]),
996
+ then: (schema) => schema.defined().nonEmpty(),
997
+ otherwise: (schema) => schema.optional()
998
+ });
999
+ }
1000
+ const branchConfigSourceSchema = yupUnion(yupObject({
1001
+ type: yupString().oneOf(["pushed-from-github"]).defined(),
1002
+ owner: yupString().defined(),
1003
+ repo: yupString().defined(),
1004
+ branch: yupString().defined(),
1005
+ commit_hash: yupString().defined(),
1006
+ config_file_path: yupString().defined(),
1007
+ workflow_path: yupString().optional()
1008
+ }), yupObject({ type: yupString().oneOf(["pushed-from-unknown"]).defined() }), yupObject({ type: yupString().oneOf(["unlinked"]).defined() }));
1009
+
1010
+ //#endregion
1011
+ exports.ReplaceFieldWithOwnUserId = ReplaceFieldWithOwnUserId;
1012
+ exports.USER_SPECIFIED_ID_MAX_LENGTH = USER_SPECIFIED_ID_MAX_LENGTH;
1013
+ exports.USER_SPECIFIED_ID_PATTERN = USER_SPECIFIED_ID_PATTERN;
1014
+ exports.accessTokenPayloadSchema = accessTokenPayloadSchema;
1015
+ exports.accessTokenResponseSchema = accessTokenResponseSchema;
1016
+ exports.adaptSchema = adaptSchema;
1017
+ exports.adminAuthTypeSchema = adminAuthTypeSchema;
1018
+ exports.base64Schema = base64Schema;
1019
+ exports.basicAuthorizationHeaderSchema = basicAuthorizationHeaderSchema;
1020
+ exports.branchConfigSourceSchema = branchConfigSourceSchema;
1021
+ exports.clientOrHigherAuthTypeSchema = clientOrHigherAuthTypeSchema;
1022
+ exports.contactChannelIdSchema = contactChannelIdSchema;
1023
+ exports.contactChannelIsPrimarySchema = contactChannelIsPrimarySchema;
1024
+ exports.contactChannelIsVerifiedSchema = contactChannelIsVerifiedSchema;
1025
+ exports.contactChannelTypeSchema = contactChannelTypeSchema;
1026
+ exports.contactChannelUsedForAuthSchema = contactChannelUsedForAuthSchema;
1027
+ exports.contactChannelValueSchema = contactChannelValueSchema;
1028
+ exports.containedPermissionIdsSchema = containedPermissionIdsSchema;
1029
+ exports.countryCodeSchema = countryCodeSchema;
1030
+ exports.customDashboardsSchema = customDashboardsSchema;
1031
+ exports.customPermissionDefinitionIdSchema = customPermissionDefinitionIdSchema;
1032
+ exports.customerTypeSchema = customerTypeSchema;
1033
+ exports.dayIntervalOrNeverSchema = dayIntervalOrNeverSchema;
1034
+ exports.dayIntervalSchema = dayIntervalSchema;
1035
+ exports.emailHostSchema = emailHostSchema;
1036
+ exports.emailOtpSignInCallbackUrlSchema = emailOtpSignInCallbackUrlSchema;
1037
+ exports.emailPasswordSchema = emailPasswordSchema;
1038
+ exports.emailPortSchema = emailPortSchema;
1039
+ exports.emailSchema = emailSchema;
1040
+ exports.emailSenderEmailSchema = emailSenderEmailSchema;
1041
+ exports.emailSenderNameSchema = emailSenderNameSchema;
1042
+ exports.emailTemplateListSchema = emailTemplateListSchema;
1043
+ exports.emailThemeListSchema = emailThemeListSchema;
1044
+ exports.emailThemeSchema = emailThemeSchema;
1045
+ exports.emailTypeSchema = emailTypeSchema;
1046
+ exports.emailUsernameSchema = emailUsernameSchema;
1047
+ exports.emailVerificationCallbackUrlSchema = emailVerificationCallbackUrlSchema;
1048
+ exports.ensureObjectSchema = ensureObjectSchema;
1049
+ exports.getUserSpecifiedIdErrorMessage = getUserSpecifiedIdErrorMessage;
1050
+ exports.handlerPathSchema = handlerPathSchema;
1051
+ exports.inlineProductSchema = inlineProductSchema;
1052
+ exports.intervalOrNeverSchema = intervalOrNeverSchema;
1053
+ exports.intervalSchema = intervalSchema;
1054
+ Object.defineProperty(exports, 'isValidCountryCode', {
1055
+ enumerable: true,
1056
+ get: function () {
1057
+ return __utils_country_codes_js.isValidCountryCode;
1058
+ }
1059
+ });
1060
+ exports.isValidUserSpecifiedId = isValidUserSpecifiedId;
1061
+ exports.jsonSchema = jsonSchema;
1062
+ exports.jsonStringOrEmptySchema = jsonStringOrEmptySchema;
1063
+ exports.jsonStringSchema = jsonStringSchema;
1064
+ exports.moneyAmountSchema = moneyAmountSchema;
1065
+ exports.neonAuthorizationHeaderSchema = neonAuthorizationHeaderSchema;
1066
+ Object.defineProperty(exports, 'normalizeCountryCode', {
1067
+ enumerable: true,
1068
+ get: function () {
1069
+ return __utils_country_codes_js.normalizeCountryCode;
1070
+ }
1071
+ });
1072
+ exports.oauthAccountMergeStrategySchema = oauthAccountMergeStrategySchema;
1073
+ exports.oauthAppleBundleIdSchema = oauthAppleBundleIdSchema;
1074
+ exports.oauthAppleBundleIdsSchema = oauthAppleBundleIdsSchema;
1075
+ exports.oauthClientIdSchema = oauthClientIdSchema;
1076
+ exports.oauthClientSecretSchema = oauthClientSecretSchema;
1077
+ exports.oauthEnabledSchema = oauthEnabledSchema;
1078
+ exports.oauthFacebookConfigIdSchema = oauthFacebookConfigIdSchema;
1079
+ exports.oauthIdSchema = oauthIdSchema;
1080
+ exports.oauthMicrosoftTenantIdSchema = oauthMicrosoftTenantIdSchema;
1081
+ exports.oauthProviderAccountIdSchema = oauthProviderAccountIdSchema;
1082
+ exports.oauthProviderAllowConnectedAccountsSchema = oauthProviderAllowConnectedAccountsSchema;
1083
+ exports.oauthProviderAllowSignInSchema = oauthProviderAllowSignInSchema;
1084
+ exports.oauthProviderEmailSchema = oauthProviderEmailSchema;
1085
+ exports.oauthProviderIdSchema = oauthProviderIdSchema;
1086
+ exports.oauthProviderProviderConfigIdSchema = oauthProviderProviderConfigIdSchema;
1087
+ exports.oauthProviderTypeSchema = oauthProviderTypeSchema;
1088
+ exports.oauthTypeSchema = oauthTypeSchema;
1089
+ exports.passwordSchema = passwordSchema;
1090
+ exports.permissionDefinitionIdSchema = permissionDefinitionIdSchema;
1091
+ exports.pricesSchema = pricesSchema;
1092
+ exports.primaryEmailAuthEnabledSchema = primaryEmailAuthEnabledSchema;
1093
+ exports.primaryEmailSchema = primaryEmailSchema;
1094
+ exports.primaryEmailVerifiedSchema = primaryEmailVerifiedSchema;
1095
+ exports.productClientMetadataSchema = productClientMetadataSchema;
1096
+ exports.productClientReadOnlyMetadataSchema = productClientReadOnlyMetadataSchema;
1097
+ exports.productPriceSchema = productPriceSchema;
1098
+ exports.productSchema = productSchema;
1099
+ exports.productSchemaWithMetadata = productSchemaWithMetadata;
1100
+ exports.productServerMetadataSchema = productServerMetadataSchema;
1101
+ exports.profileImageUrlSchema = profileImageUrlSchema;
1102
+ exports.projectAllowLocalhostSchema = projectAllowLocalhostSchema;
1103
+ exports.projectBranchIdSchema = projectBranchIdSchema;
1104
+ exports.projectClientTeamCreationEnabledSchema = projectClientTeamCreationEnabledSchema;
1105
+ exports.projectClientUserDeletionEnabledSchema = projectClientUserDeletionEnabledSchema;
1106
+ exports.projectConfigIdSchema = projectConfigIdSchema;
1107
+ exports.projectCreateTeamOnSignUpSchema = projectCreateTeamOnSignUpSchema;
1108
+ exports.projectCreatedAtMillisSchema = projectCreatedAtMillisSchema;
1109
+ exports.projectCredentialEnabledSchema = projectCredentialEnabledSchema;
1110
+ exports.projectDescriptionSchema = projectDescriptionSchema;
1111
+ exports.projectDisplayNameSchema = projectDisplayNameSchema;
1112
+ exports.projectIdSchema = projectIdSchema;
1113
+ exports.projectIsProductionModeSchema = projectIsProductionModeSchema;
1114
+ exports.projectLogoDarkModeUrlSchema = projectLogoDarkModeUrlSchema;
1115
+ exports.projectLogoFullDarkModeUrlSchema = projectLogoFullDarkModeUrlSchema;
1116
+ exports.projectLogoFullUrlSchema = projectLogoFullUrlSchema;
1117
+ exports.projectLogoUrlSchema = projectLogoUrlSchema;
1118
+ exports.projectMagicLinkEnabledSchema = projectMagicLinkEnabledSchema;
1119
+ exports.projectOnboardingStatusSchema = projectOnboardingStatusSchema;
1120
+ exports.projectOnboardingStatusValues = projectOnboardingStatusValues;
1121
+ exports.projectPasskeyEnabledSchema = projectPasskeyEnabledSchema;
1122
+ exports.projectSignUpEnabledSchema = projectSignUpEnabledSchema;
1123
+ exports.refreshTokenResponseSchema = refreshTokenResponseSchema;
1124
+ exports.restrictedReasonSchema = restrictedReasonSchema;
1125
+ exports.restrictedReasonTypes = restrictedReasonTypes;
1126
+ exports.sanitizeUserSpecifiedId = sanitizeUserSpecifiedId;
1127
+ exports.selectedTeamIdSchema = selectedTeamIdSchema;
1128
+ exports.serverOrHigherAuthTypeSchema = serverOrHigherAuthTypeSchema;
1129
+ exports.signInEmailSchema = signInEmailSchema;
1130
+ exports.signInResponseSchema = signInResponseSchema;
1131
+ exports.signedUpAtMillisSchema = signedUpAtMillisSchema;
1132
+ exports.strictEmailSchema = strictEmailSchema;
1133
+ exports.teamClientMetadataSchema = teamClientMetadataSchema;
1134
+ exports.teamClientReadOnlyMetadataSchema = teamClientReadOnlyMetadataSchema;
1135
+ exports.teamCreatedAtMillisSchema = teamCreatedAtMillisSchema;
1136
+ exports.teamCreatorUserIdSchema = teamCreatorUserIdSchema;
1137
+ exports.teamDisplayNameSchema = teamDisplayNameSchema;
1138
+ exports.teamIdSchema = teamIdSchema;
1139
+ exports.teamInvitationCallbackUrlSchema = teamInvitationCallbackUrlSchema;
1140
+ exports.teamInvitationEmailSchema = teamInvitationEmailSchema;
1141
+ exports.teamMemberDisplayNameSchema = teamMemberDisplayNameSchema;
1142
+ exports.teamMemberProfileImageUrlSchema = teamMemberProfileImageUrlSchema;
1143
+ exports.teamPermissionDescriptionSchema = teamPermissionDescriptionSchema;
1144
+ exports.teamProfileImageUrlSchema = teamProfileImageUrlSchema;
1145
+ exports.teamServerMetadataSchema = teamServerMetadataSchema;
1146
+ exports.teamSystemPermissions = teamSystemPermissions;
1147
+ exports.templateThemeIdSchema = templateThemeIdSchema;
1148
+ exports.urlSchema = urlSchema;
1149
+ exports.userClientMetadataSchema = userClientMetadataSchema;
1150
+ exports.userClientReadOnlyMetadataSchema = userClientReadOnlyMetadataSchema;
1151
+ exports.userDisplayNameSchema = userDisplayNameSchema;
1152
+ exports.userHasPasswordSchema = userHasPasswordSchema;
1153
+ exports.userIdOrMeSchema = userIdOrMeSchema;
1154
+ exports.userIdSchema = userIdSchema;
1155
+ exports.userLastActiveAtMillisSchema = userLastActiveAtMillisSchema;
1156
+ exports.userOAuthProviderSchema = userOAuthProviderSchema;
1157
+ exports.userOtpAuthEnabledMutationSchema = userOtpAuthEnabledMutationSchema;
1158
+ exports.userOtpAuthEnabledSchema = userOtpAuthEnabledSchema;
1159
+ exports.userPasskeyAuthEnabledSchema = userPasskeyAuthEnabledSchema;
1160
+ exports.userPasswordHashMutationSchema = userPasswordHashMutationSchema;
1161
+ exports.userPasswordMutationSchema = userPasswordMutationSchema;
1162
+ exports.userServerMetadataSchema = userServerMetadataSchema;
1163
+ exports.userSpecifiedIdSchema = userSpecifiedIdSchema;
1164
+ exports.userTotpSecretMutationSchema = userTotpSecretMutationSchema;
1165
+ Object.defineProperty(exports, 'validateCountryCode', {
1166
+ enumerable: true,
1167
+ get: function () {
1168
+ return __utils_country_codes_js.validateCountryCode;
1169
+ }
1170
+ });
1171
+ exports.wildcardProtocolAndDomainSchema = wildcardProtocolAndDomainSchema;
1172
+ exports.wildcardUrlSchema = wildcardUrlSchema;
1173
+ exports.yupArray = yupArray;
1174
+ exports.yupBoolean = yupBoolean;
1175
+ exports.yupDate = yupDate;
1176
+ exports.yupDefinedAndNonEmptyWhen = yupDefinedAndNonEmptyWhen;
1177
+ exports.yupDefinedWhen = yupDefinedWhen;
1178
+ exports.yupMixed = yupMixed;
1179
+ exports.yupNever = yupNever;
1180
+ exports.yupNumber = yupNumber;
1181
+ exports.yupObject = yupObject;
1182
+ exports.yupObjectWithAutoDefault = yupObjectWithAutoDefault;
1183
+ exports.yupRecord = yupRecord;
1184
+ exports.yupString = yupString;
1185
+ exports.yupTuple = yupTuple;
1186
+ exports.yupUnion = yupUnion;
1187
+ exports.yupValidate = yupValidate;
1188
+ //# sourceMappingURL=schema-fields.js.map