@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,1304 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { stringCompare } from "./strings.js";
3
+ import { ArrayPaginatedList, PaginatedList } from "./paginated-lists.js";
4
+
5
+ //#region src/utils/paginated-lists.test.ts
6
+ const items = (result) => result.items.map((i) => i.item);
7
+ describe("ArrayPaginatedList", () => {
8
+ describe("basic forward pagination (next)", () => {
9
+ it("should return all items when limit is greater than array length", async () => {
10
+ const list = new ArrayPaginatedList([
11
+ 1,
12
+ 2,
13
+ 3
14
+ ]);
15
+ const result = await list.next({
16
+ after: list.getFirstCursor(),
17
+ limit: 10,
18
+ filter: () => true,
19
+ orderBy: (a, b) => a - b,
20
+ limitPrecision: "exact"
21
+ });
22
+ expect(items(result)).toEqual([
23
+ 1,
24
+ 2,
25
+ 3
26
+ ]);
27
+ expect(result.isFirst).toBe(true);
28
+ expect(result.isLast).toBe(true);
29
+ });
30
+ it("should return exact limit when more items exist", async () => {
31
+ const list = new ArrayPaginatedList([
32
+ 1,
33
+ 2,
34
+ 3,
35
+ 4,
36
+ 5
37
+ ]);
38
+ const result = await list.next({
39
+ after: list.getFirstCursor(),
40
+ limit: 3,
41
+ filter: () => true,
42
+ orderBy: (a, b) => a - b,
43
+ limitPrecision: "exact"
44
+ });
45
+ expect(items(result)).toEqual([
46
+ 1,
47
+ 2,
48
+ 3
49
+ ]);
50
+ expect(result.isFirst).toBe(true);
51
+ expect(result.isLast).toBe(false);
52
+ });
53
+ it("should continue from cursor correctly", async () => {
54
+ const list = new ArrayPaginatedList([
55
+ 1,
56
+ 2,
57
+ 3,
58
+ 4,
59
+ 5
60
+ ]);
61
+ const first = await list.next({
62
+ after: list.getFirstCursor(),
63
+ limit: 2,
64
+ filter: () => true,
65
+ orderBy: (a, b) => a - b,
66
+ limitPrecision: "exact"
67
+ });
68
+ expect(items(first)).toEqual([1, 2]);
69
+ expect(first.cursor).toBe("before-2");
70
+ const second = await list.next({
71
+ after: first.cursor,
72
+ limit: 2,
73
+ filter: () => true,
74
+ orderBy: (a, b) => a - b,
75
+ limitPrecision: "exact"
76
+ });
77
+ expect(items(second)).toEqual([3, 4]);
78
+ expect(second.isFirst).toBe(false);
79
+ expect(second.isLast).toBe(false);
80
+ });
81
+ it("should handle empty array", async () => {
82
+ const list = new ArrayPaginatedList([]);
83
+ const result = await list.next({
84
+ after: list.getFirstCursor(),
85
+ limit: 10,
86
+ filter: () => true,
87
+ orderBy: (a, b) => a - b,
88
+ limitPrecision: "exact"
89
+ });
90
+ expect(items(result)).toEqual([]);
91
+ expect(result.isFirst).toBe(true);
92
+ expect(result.isLast).toBe(true);
93
+ });
94
+ it("should handle limit of 0", async () => {
95
+ const list = new ArrayPaginatedList([
96
+ 1,
97
+ 2,
98
+ 3
99
+ ]);
100
+ expect(items(await list.next({
101
+ after: list.getFirstCursor(),
102
+ limit: 0,
103
+ filter: () => true,
104
+ orderBy: (a, b) => a - b,
105
+ limitPrecision: "exact"
106
+ }))).toEqual([]);
107
+ });
108
+ });
109
+ describe("backward pagination (prev)", () => {
110
+ it("should return items before cursor", async () => {
111
+ const list = new ArrayPaginatedList([
112
+ 1,
113
+ 2,
114
+ 3,
115
+ 4,
116
+ 5
117
+ ]);
118
+ const result = await list.prev({
119
+ before: list.getLastCursor(),
120
+ limit: 2,
121
+ filter: () => true,
122
+ orderBy: (a, b) => a - b,
123
+ limitPrecision: "exact"
124
+ });
125
+ expect(items(result)).toEqual([4, 5]);
126
+ expect(result.isFirst).toBe(false);
127
+ expect(result.isLast).toBe(true);
128
+ });
129
+ it("should paginate backwards correctly", async () => {
130
+ const list = new ArrayPaginatedList([
131
+ 1,
132
+ 2,
133
+ 3,
134
+ 4,
135
+ 5
136
+ ]);
137
+ const last = await list.prev({
138
+ before: list.getLastCursor(),
139
+ limit: 2,
140
+ filter: () => true,
141
+ orderBy: (a, b) => a - b,
142
+ limitPrecision: "exact"
143
+ });
144
+ expect(items(last)).toEqual([4, 5]);
145
+ const middle = await list.prev({
146
+ before: last.cursor,
147
+ limit: 2,
148
+ filter: () => true,
149
+ orderBy: (a, b) => a - b,
150
+ limitPrecision: "exact"
151
+ });
152
+ expect(items(middle)).toEqual([2, 3]);
153
+ const first = await list.prev({
154
+ before: middle.cursor,
155
+ limit: 2,
156
+ filter: () => true,
157
+ orderBy: (a, b) => a - b,
158
+ limitPrecision: "exact"
159
+ });
160
+ expect(items(first)).toEqual([1]);
161
+ expect(first.isFirst).toBe(true);
162
+ });
163
+ });
164
+ describe("cursor semantics (prevCursor and nextCursor)", () => {
165
+ it("should have prevCursor before the item and nextCursor after", async () => {
166
+ const list = new ArrayPaginatedList([
167
+ 10,
168
+ 20,
169
+ 30
170
+ ]);
171
+ const result = await list.next({
172
+ after: list.getFirstCursor(),
173
+ limit: 3,
174
+ filter: () => true,
175
+ orderBy: (a, b) => a - b,
176
+ limitPrecision: "exact"
177
+ });
178
+ expect(result.items[0].prevCursor).toBe("before-0");
179
+ expect(result.items[0].nextCursor).toBe("before-1");
180
+ expect(result.items[1].prevCursor).toBe("before-1");
181
+ expect(result.items[1].nextCursor).toBe("before-2");
182
+ expect(result.items[2].prevCursor).toBe("before-2");
183
+ expect(result.items[2].nextCursor).toBe("before-3");
184
+ });
185
+ it("should allow using nextCursor to continue forward pagination", async () => {
186
+ const list = new ArrayPaginatedList([
187
+ 1,
188
+ 2,
189
+ 3,
190
+ 4,
191
+ 5
192
+ ]);
193
+ const first = await list.next({
194
+ after: list.getFirstCursor(),
195
+ limit: 2,
196
+ filter: () => true,
197
+ orderBy: (a, b) => a - b,
198
+ limitPrecision: "exact"
199
+ });
200
+ const continueFrom = first.items[first.items.length - 1].nextCursor;
201
+ expect(items(await list.next({
202
+ after: continueFrom,
203
+ limit: 2,
204
+ filter: () => true,
205
+ orderBy: (a, b) => a - b,
206
+ limitPrecision: "exact"
207
+ }))).toEqual([3, 4]);
208
+ });
209
+ it("should allow using prevCursor to go back", async () => {
210
+ const list = new ArrayPaginatedList([
211
+ 1,
212
+ 2,
213
+ 3,
214
+ 4,
215
+ 5
216
+ ]);
217
+ const middle = await list.next({
218
+ after: "before-2",
219
+ limit: 3,
220
+ filter: () => true,
221
+ orderBy: (a, b) => a - b,
222
+ limitPrecision: "exact"
223
+ });
224
+ expect(items(middle)).toEqual([
225
+ 3,
226
+ 4,
227
+ 5
228
+ ]);
229
+ expect(middle.items[0].prevCursor).toBe("before-2");
230
+ expect(items(await list.prev({
231
+ before: middle.items[0].prevCursor,
232
+ limit: 2,
233
+ filter: () => true,
234
+ orderBy: (a, b) => a - b,
235
+ limitPrecision: "exact"
236
+ }))).toEqual([1, 2]);
237
+ });
238
+ });
239
+ describe("filtering", () => {
240
+ it("should filter items correctly", async () => {
241
+ const list = new ArrayPaginatedList([
242
+ 1,
243
+ 2,
244
+ 3,
245
+ 4,
246
+ 5,
247
+ 6
248
+ ]);
249
+ expect(items(await list.next({
250
+ after: list.getFirstCursor(),
251
+ limit: 10,
252
+ filter: (n) => n % 2 === 0,
253
+ orderBy: (a, b) => a - b,
254
+ limitPrecision: "exact"
255
+ }))).toEqual([
256
+ 2,
257
+ 4,
258
+ 6
259
+ ]);
260
+ });
261
+ it("should respect limit with filtering", async () => {
262
+ const list = new ArrayPaginatedList([
263
+ 1,
264
+ 2,
265
+ 3,
266
+ 4,
267
+ 5,
268
+ 6,
269
+ 7,
270
+ 8,
271
+ 9,
272
+ 10
273
+ ]);
274
+ expect(items(await list.next({
275
+ after: list.getFirstCursor(),
276
+ limit: 2,
277
+ filter: (n) => n % 2 === 0,
278
+ orderBy: (a, b) => a - b,
279
+ limitPrecision: "exact"
280
+ }))).toEqual([2, 4]);
281
+ });
282
+ it("should handle filter that matches nothing", async () => {
283
+ const list = new ArrayPaginatedList([
284
+ 1,
285
+ 2,
286
+ 3
287
+ ]);
288
+ expect(items(await list.next({
289
+ after: list.getFirstCursor(),
290
+ limit: 10,
291
+ filter: () => false,
292
+ orderBy: (a, b) => a - b,
293
+ limitPrecision: "exact"
294
+ }))).toEqual([]);
295
+ });
296
+ });
297
+ describe("ordering", () => {
298
+ it("should sort items in ascending order", async () => {
299
+ const list = new ArrayPaginatedList([
300
+ 5,
301
+ 2,
302
+ 8,
303
+ 1,
304
+ 9
305
+ ]);
306
+ expect(items(await list.next({
307
+ after: list.getFirstCursor(),
308
+ limit: 10,
309
+ filter: () => true,
310
+ orderBy: (a, b) => a - b,
311
+ limitPrecision: "exact"
312
+ }))).toEqual([
313
+ 1,
314
+ 2,
315
+ 5,
316
+ 8,
317
+ 9
318
+ ]);
319
+ });
320
+ it("should sort items in descending order", async () => {
321
+ const list = new ArrayPaginatedList([
322
+ 5,
323
+ 2,
324
+ 8,
325
+ 1,
326
+ 9
327
+ ]);
328
+ expect(items(await list.next({
329
+ after: list.getFirstCursor(),
330
+ limit: 10,
331
+ filter: () => true,
332
+ orderBy: (a, b) => b - a,
333
+ limitPrecision: "exact"
334
+ }))).toEqual([
335
+ 9,
336
+ 8,
337
+ 5,
338
+ 2,
339
+ 1
340
+ ]);
341
+ });
342
+ it("should sort objects by property", async () => {
343
+ const list = new ArrayPaginatedList([
344
+ {
345
+ name: "Charlie",
346
+ age: 30
347
+ },
348
+ {
349
+ name: "Alice",
350
+ age: 25
351
+ },
352
+ {
353
+ name: "Bob",
354
+ age: 35
355
+ }
356
+ ]);
357
+ expect(items(await list.next({
358
+ after: list.getFirstCursor(),
359
+ limit: 10,
360
+ filter: () => true,
361
+ orderBy: (a, b) => stringCompare(a.name, b.name),
362
+ limitPrecision: "exact"
363
+ })).map((p) => p.name)).toEqual([
364
+ "Alice",
365
+ "Bob",
366
+ "Charlie"
367
+ ]);
368
+ expect(items(await list.next({
369
+ after: list.getFirstCursor(),
370
+ limit: 10,
371
+ filter: () => true,
372
+ orderBy: (a, b) => a.age - b.age,
373
+ limitPrecision: "exact"
374
+ })).map((p) => p.name)).toEqual([
375
+ "Alice",
376
+ "Charlie",
377
+ "Bob"
378
+ ]);
379
+ });
380
+ });
381
+ describe("limitPrecision", () => {
382
+ it("exact should return exactly the limit", async () => {
383
+ const list = new ArrayPaginatedList([
384
+ 1,
385
+ 2,
386
+ 3,
387
+ 4,
388
+ 5
389
+ ]);
390
+ expect((await list.next({
391
+ after: list.getFirstCursor(),
392
+ limit: 3,
393
+ filter: () => true,
394
+ orderBy: (a, b) => a - b,
395
+ limitPrecision: "exact"
396
+ })).items.length).toBe(3);
397
+ });
398
+ it("at-least should return at least the limit (or all if less available)", async () => {
399
+ const list = new ArrayPaginatedList([
400
+ 1,
401
+ 2,
402
+ 3,
403
+ 4,
404
+ 5
405
+ ]);
406
+ expect((await list.next({
407
+ after: list.getFirstCursor(),
408
+ limit: 3,
409
+ filter: () => true,
410
+ orderBy: (a, b) => a - b,
411
+ limitPrecision: "at-least"
412
+ })).items.length).toBeGreaterThanOrEqual(3);
413
+ });
414
+ it("at-most should return at most the limit", async () => {
415
+ const list = new ArrayPaginatedList([
416
+ 1,
417
+ 2,
418
+ 3,
419
+ 4,
420
+ 5
421
+ ]);
422
+ expect((await list.next({
423
+ after: list.getFirstCursor(),
424
+ limit: 3,
425
+ filter: () => true,
426
+ orderBy: (a, b) => a - b,
427
+ limitPrecision: "at-most"
428
+ })).items.length).toBeLessThanOrEqual(3);
429
+ });
430
+ it("approximate should allow flexibility in either direction", async () => {
431
+ const list = new ArrayPaginatedList([
432
+ 1,
433
+ 2,
434
+ 3,
435
+ 4,
436
+ 5
437
+ ]);
438
+ const result = await list.next({
439
+ after: list.getFirstCursor(),
440
+ limit: 3,
441
+ filter: () => true,
442
+ orderBy: (a, b) => a - b,
443
+ limitPrecision: "approximate"
444
+ });
445
+ expect(result.items.length).toBeGreaterThan(0);
446
+ expect(items(result).every((n) => typeof n === "number")).toBe(true);
447
+ });
448
+ it("approximate should still make progress when limit > 0", async () => {
449
+ const list = new ArrayPaginatedList([
450
+ 1,
451
+ 2,
452
+ 3,
453
+ 4,
454
+ 5,
455
+ 6,
456
+ 7,
457
+ 8,
458
+ 9,
459
+ 10
460
+ ]);
461
+ const allItems = [];
462
+ let cursor = list.getFirstCursor();
463
+ let iterations = 0;
464
+ const maxIterations = 20;
465
+ while (iterations < maxIterations) {
466
+ const result = await list.next({
467
+ after: cursor,
468
+ limit: 2,
469
+ filter: () => true,
470
+ orderBy: (a, b) => a - b,
471
+ limitPrecision: "approximate"
472
+ });
473
+ if (result.items.length === 0) break;
474
+ allItems.push(...items(result));
475
+ expect(result.cursor).not.toBe(cursor);
476
+ cursor = result.cursor;
477
+ iterations++;
478
+ if (result.isLast) break;
479
+ }
480
+ expect(allItems.length).toBeGreaterThan(0);
481
+ });
482
+ });
483
+ describe("getFirstCursor and getLastCursor", () => {
484
+ it("should return correct cursor format", () => {
485
+ const list = new ArrayPaginatedList([
486
+ 1,
487
+ 2,
488
+ 3
489
+ ]);
490
+ expect(list.getFirstCursor()).toBe("before-0");
491
+ expect(list.getLastCursor()).toBe("before-3");
492
+ });
493
+ it("should work for empty array", () => {
494
+ const list = new ArrayPaginatedList([]);
495
+ expect(list.getFirstCursor()).toBe("before-0");
496
+ expect(list.getLastCursor()).toBe("before-0");
497
+ });
498
+ });
499
+ describe("compare", () => {
500
+ it("should compare items using the orderBy function", () => {
501
+ const list = new ArrayPaginatedList([
502
+ 1,
503
+ 2,
504
+ 3
505
+ ]);
506
+ const orderBy = (a, b) => a - b;
507
+ expect(list.compare(orderBy, 1, 2)).toBeLessThan(0);
508
+ expect(list.compare(orderBy, 2, 1)).toBeGreaterThan(0);
509
+ expect(list.compare(orderBy, 1, 1)).toBe(0);
510
+ });
511
+ });
512
+ });
513
+ describe("PaginatedList.empty", () => {
514
+ it("should return empty results", async () => {
515
+ const list = PaginatedList.empty();
516
+ const result = await list.next({
517
+ after: list.getFirstCursor(),
518
+ limit: 10,
519
+ filter: {},
520
+ orderBy: {},
521
+ limitPrecision: "exact"
522
+ });
523
+ expect(result.items).toEqual([]);
524
+ expect(result.isFirst).toBe(true);
525
+ expect(result.isLast).toBe(true);
526
+ });
527
+ it("should have first cursor", () => {
528
+ const list = PaginatedList.empty();
529
+ expect(list.getFirstCursor()).toBe("first");
530
+ expect(list.getLastCursor()).toBe("last");
531
+ });
532
+ });
533
+ describe("PaginatedList.map", () => {
534
+ it("should transform items", async () => {
535
+ const doubled = new ArrayPaginatedList([
536
+ 1,
537
+ 2,
538
+ 3
539
+ ]).map({
540
+ itemMapper: (n) => n * 2,
541
+ oldItemFromNewItem: (n) => n / 2,
542
+ oldFilterFromNewFilter: (f) => f,
543
+ oldOrderByFromNewOrderBy: (o) => o
544
+ });
545
+ expect(items(await doubled.next({
546
+ after: doubled.getFirstCursor(),
547
+ limit: 10,
548
+ filter: () => true,
549
+ orderBy: (a, b) => a - b,
550
+ limitPrecision: "exact"
551
+ }))).toEqual([
552
+ 2,
553
+ 4,
554
+ 6
555
+ ]);
556
+ });
557
+ it("should preserve cursor semantics", async () => {
558
+ const doubled = new ArrayPaginatedList([
559
+ 1,
560
+ 2,
561
+ 3
562
+ ]).map({
563
+ itemMapper: (n) => n * 2,
564
+ oldItemFromNewItem: (n) => n / 2,
565
+ oldFilterFromNewFilter: (f) => f,
566
+ oldOrderByFromNewOrderBy: (o) => o
567
+ });
568
+ const first = await doubled.next({
569
+ after: doubled.getFirstCursor(),
570
+ limit: 1,
571
+ filter: () => true,
572
+ orderBy: (a, b) => a - b,
573
+ limitPrecision: "exact"
574
+ });
575
+ expect(items(first)).toEqual([2]);
576
+ expect(items(await doubled.next({
577
+ after: first.cursor,
578
+ limit: 1,
579
+ filter: () => true,
580
+ orderBy: (a, b) => a - b,
581
+ limitPrecision: "exact"
582
+ }))).toEqual([4]);
583
+ });
584
+ });
585
+ describe("PaginatedList.filter", () => {
586
+ it("should filter items", async () => {
587
+ const evens = new ArrayPaginatedList([
588
+ 1,
589
+ 2,
590
+ 3,
591
+ 4,
592
+ 5,
593
+ 6
594
+ ]).filter({
595
+ filter: (n) => n % 2 === 0,
596
+ oldFilterFromNewFilter: () => () => true,
597
+ estimateItemsToFetch: ({ limit }) => limit * 2
598
+ });
599
+ expect(items(await evens.next({
600
+ after: evens.getFirstCursor(),
601
+ limit: 10,
602
+ filter: void 0,
603
+ orderBy: (a, b) => a - b,
604
+ limitPrecision: "exact"
605
+ }))).toEqual([
606
+ 2,
607
+ 4,
608
+ 6
609
+ ]);
610
+ });
611
+ });
612
+ describe("PaginatedList.addFilter", () => {
613
+ it("should add additional filter constraint", async () => {
614
+ const evenAndGreaterThan5 = new ArrayPaginatedList([
615
+ 1,
616
+ 2,
617
+ 3,
618
+ 4,
619
+ 5,
620
+ 6,
621
+ 7,
622
+ 8,
623
+ 9,
624
+ 10
625
+ ]).filter({
626
+ filter: (n) => n % 2 === 0,
627
+ oldFilterFromNewFilter: () => () => true,
628
+ estimateItemsToFetch: ({ limit }) => limit * 2
629
+ }).addFilter({
630
+ filter: (n) => n > 5,
631
+ estimateItemsToFetch: ({ limit }) => limit * 2
632
+ });
633
+ expect(items(await evenAndGreaterThan5.next({
634
+ after: evenAndGreaterThan5.getFirstCursor(),
635
+ limit: 10,
636
+ filter: void 0,
637
+ orderBy: (a, b) => a - b,
638
+ limitPrecision: "exact"
639
+ }))).toEqual([
640
+ 6,
641
+ 8,
642
+ 10
643
+ ]);
644
+ });
645
+ });
646
+ describe("PaginatedList.flatMap", () => {
647
+ it("should expand items", async () => {
648
+ const expanded = new ArrayPaginatedList([
649
+ 1,
650
+ 2,
651
+ 3
652
+ ]).flatMap({
653
+ itemMapper: (entry) => [{
654
+ item: entry.item,
655
+ prevCursor: entry.prevCursor,
656
+ nextCursor: entry.nextCursor
657
+ }, {
658
+ item: entry.item + .5,
659
+ prevCursor: entry.prevCursor,
660
+ nextCursor: entry.nextCursor
661
+ }],
662
+ compare: (_, a, b) => a - b,
663
+ newCursorFromOldCursor: (c) => c,
664
+ oldCursorFromNewCursor: (c) => c,
665
+ oldFilterFromNewFilter: (f) => f,
666
+ oldOrderByFromNewOrderBy: (o) => o,
667
+ estimateItemsToFetch: ({ limit }) => limit
668
+ });
669
+ expect(items(await expanded.next({
670
+ after: expanded.getFirstCursor(),
671
+ limit: 10,
672
+ filter: () => true,
673
+ orderBy: (a, b) => a - b,
674
+ limitPrecision: "exact"
675
+ }))).toEqual([
676
+ 1,
677
+ 1.5,
678
+ 2,
679
+ 2.5,
680
+ 3,
681
+ 3.5
682
+ ]);
683
+ });
684
+ it("should filter out items (return empty array)", async () => {
685
+ const evensOnly = new ArrayPaginatedList([
686
+ 1,
687
+ 2,
688
+ 3,
689
+ 4,
690
+ 5
691
+ ]).flatMap({
692
+ itemMapper: (entry) => entry.item % 2 === 0 ? [{
693
+ item: entry.item,
694
+ prevCursor: entry.prevCursor,
695
+ nextCursor: entry.nextCursor
696
+ }] : [],
697
+ compare: (_, a, b) => a - b,
698
+ newCursorFromOldCursor: (c) => c,
699
+ oldCursorFromNewCursor: (c) => c,
700
+ oldFilterFromNewFilter: (f) => f,
701
+ oldOrderByFromNewOrderBy: (o) => o,
702
+ estimateItemsToFetch: ({ limit }) => limit * 2
703
+ });
704
+ expect(items(await evensOnly.next({
705
+ after: evensOnly.getFirstCursor(),
706
+ limit: 10,
707
+ filter: () => true,
708
+ orderBy: (a, b) => a - b,
709
+ limitPrecision: "exact"
710
+ }))).toEqual([2, 4]);
711
+ });
712
+ });
713
+ describe("PaginatedList.merge", () => {
714
+ it("should merge two lists", async () => {
715
+ const list1 = new ArrayPaginatedList([
716
+ 1,
717
+ 3,
718
+ 5
719
+ ]);
720
+ const list2 = new ArrayPaginatedList([
721
+ 2,
722
+ 4,
723
+ 6
724
+ ]);
725
+ const merged = PaginatedList.merge(list1, list2);
726
+ expect(items(await merged.next({
727
+ after: merged.getFirstCursor(),
728
+ limit: 10,
729
+ filter: () => true,
730
+ orderBy: (a, b) => a - b,
731
+ limitPrecision: "exact"
732
+ }))).toEqual([
733
+ 1,
734
+ 2,
735
+ 3,
736
+ 4,
737
+ 5,
738
+ 6
739
+ ]);
740
+ });
741
+ it("should merge three lists", async () => {
742
+ const list1 = new ArrayPaginatedList([
743
+ 1,
744
+ 4,
745
+ 7
746
+ ]);
747
+ const list2 = new ArrayPaginatedList([
748
+ 2,
749
+ 5,
750
+ 8
751
+ ]);
752
+ const list3 = new ArrayPaginatedList([
753
+ 3,
754
+ 6,
755
+ 9
756
+ ]);
757
+ const merged = PaginatedList.merge(list1, list2, list3);
758
+ expect(items(await merged.next({
759
+ after: merged.getFirstCursor(),
760
+ limit: 10,
761
+ filter: () => true,
762
+ orderBy: (a, b) => a - b,
763
+ limitPrecision: "exact"
764
+ }))).toEqual([
765
+ 1,
766
+ 2,
767
+ 3,
768
+ 4,
769
+ 5,
770
+ 6,
771
+ 7,
772
+ 8,
773
+ 9
774
+ ]);
775
+ });
776
+ it("should handle empty lists in merge", async () => {
777
+ const list1 = new ArrayPaginatedList([
778
+ 1,
779
+ 2,
780
+ 3
781
+ ]);
782
+ const list2 = new ArrayPaginatedList([]);
783
+ const merged = PaginatedList.merge(list1, list2);
784
+ expect(items(await merged.next({
785
+ after: merged.getFirstCursor(),
786
+ limit: 10,
787
+ filter: () => true,
788
+ orderBy: (a, b) => a - b,
789
+ limitPrecision: "exact"
790
+ }))).toEqual([
791
+ 1,
792
+ 2,
793
+ 3
794
+ ]);
795
+ });
796
+ it("should paginate through merged list", async () => {
797
+ const list1 = new ArrayPaginatedList([
798
+ 1,
799
+ 3,
800
+ 5,
801
+ 7,
802
+ 9
803
+ ]);
804
+ const list2 = new ArrayPaginatedList([
805
+ 2,
806
+ 4,
807
+ 6,
808
+ 8,
809
+ 10
810
+ ]);
811
+ const merged = PaginatedList.merge(list1, list2);
812
+ const first = await merged.next({
813
+ after: merged.getFirstCursor(),
814
+ limit: 4,
815
+ filter: () => true,
816
+ orderBy: (a, b) => a - b,
817
+ limitPrecision: "exact"
818
+ });
819
+ expect(items(first)).toEqual([
820
+ 1,
821
+ 2,
822
+ 3,
823
+ 4
824
+ ]);
825
+ expect(items(await merged.next({
826
+ after: first.cursor,
827
+ limit: 4,
828
+ filter: () => true,
829
+ orderBy: (a, b) => a - b,
830
+ limitPrecision: "exact"
831
+ }))).toEqual([
832
+ 5,
833
+ 6,
834
+ 7,
835
+ 8
836
+ ]);
837
+ });
838
+ it("should have JSON-encoded cursor", () => {
839
+ const list1 = new ArrayPaginatedList([1, 2]);
840
+ const list2 = new ArrayPaginatedList([3, 4]);
841
+ const cursor = PaginatedList.merge(list1, list2).getFirstCursor();
842
+ expect(() => JSON.parse(cursor)).not.toThrow();
843
+ expect(JSON.parse(cursor)).toEqual(["before-0", "before-0"]);
844
+ });
845
+ it("should paginate backward through merged list correctly", async () => {
846
+ const list1 = new ArrayPaginatedList([
847
+ 1,
848
+ 3,
849
+ 5
850
+ ]);
851
+ const list2 = new ArrayPaginatedList([
852
+ 2,
853
+ 4,
854
+ 6
855
+ ]);
856
+ const merged = PaginatedList.merge(list1, list2);
857
+ const last = await merged.prev({
858
+ before: merged.getLastCursor(),
859
+ limit: 3,
860
+ filter: () => true,
861
+ orderBy: (a, b) => a - b,
862
+ limitPrecision: "exact"
863
+ });
864
+ expect(items(last)).toEqual([
865
+ 4,
866
+ 5,
867
+ 6
868
+ ]);
869
+ expect(last.isLast).toBe(true);
870
+ expect(last.isFirst).toBe(false);
871
+ const middle = await merged.prev({
872
+ before: last.cursor,
873
+ limit: 3,
874
+ filter: () => true,
875
+ orderBy: (a, b) => a - b,
876
+ limitPrecision: "exact"
877
+ });
878
+ expect(items(middle)).toEqual([
879
+ 1,
880
+ 2,
881
+ 3
882
+ ]);
883
+ expect(middle.isFirst).toBe(true);
884
+ });
885
+ it("should paginate backward through entire merged list", async () => {
886
+ const list1 = new ArrayPaginatedList([
887
+ 1,
888
+ 3,
889
+ 5,
890
+ 7,
891
+ 9
892
+ ]);
893
+ const list2 = new ArrayPaginatedList([
894
+ 2,
895
+ 4,
896
+ 6,
897
+ 8,
898
+ 10
899
+ ]);
900
+ const merged = PaginatedList.merge(list1, list2);
901
+ const allItems = [];
902
+ let cursor = merged.getLastCursor();
903
+ let isFirst = false;
904
+ while (!isFirst) {
905
+ const result = await merged.prev({
906
+ before: cursor,
907
+ limit: 3,
908
+ filter: () => true,
909
+ orderBy: (a, b) => a - b,
910
+ limitPrecision: "exact"
911
+ });
912
+ allItems.unshift(...items(result));
913
+ cursor = result.cursor;
914
+ isFirst = result.isFirst;
915
+ }
916
+ expect(allItems).toEqual([
917
+ 1,
918
+ 2,
919
+ 3,
920
+ 4,
921
+ 5,
922
+ 6,
923
+ 7,
924
+ 8,
925
+ 9,
926
+ 10
927
+ ]);
928
+ });
929
+ it("should have consistent forward and backward pagination results", async () => {
930
+ const list1 = new ArrayPaginatedList([
931
+ 1,
932
+ 4,
933
+ 7
934
+ ]);
935
+ const list2 = new ArrayPaginatedList([
936
+ 2,
937
+ 5,
938
+ 8
939
+ ]);
940
+ const list3 = new ArrayPaginatedList([
941
+ 3,
942
+ 6,
943
+ 9
944
+ ]);
945
+ const merged = PaginatedList.merge(list1, list2, list3);
946
+ const forwardItems = [];
947
+ let forwardCursor = merged.getFirstCursor();
948
+ let isLast = false;
949
+ while (!isLast) {
950
+ const result = await merged.next({
951
+ after: forwardCursor,
952
+ limit: 2,
953
+ filter: () => true,
954
+ orderBy: (a, b) => a - b,
955
+ limitPrecision: "exact"
956
+ });
957
+ forwardItems.push(...items(result));
958
+ forwardCursor = result.cursor;
959
+ isLast = result.isLast;
960
+ }
961
+ const backwardItems = [];
962
+ let backwardCursor = merged.getLastCursor();
963
+ let isFirst = false;
964
+ while (!isFirst) {
965
+ const result = await merged.prev({
966
+ before: backwardCursor,
967
+ limit: 2,
968
+ filter: () => true,
969
+ orderBy: (a, b) => a - b,
970
+ limitPrecision: "exact"
971
+ });
972
+ backwardItems.unshift(...items(result));
973
+ backwardCursor = result.cursor;
974
+ isFirst = result.isFirst;
975
+ }
976
+ expect(forwardItems).toEqual([
977
+ 1,
978
+ 2,
979
+ 3,
980
+ 4,
981
+ 5,
982
+ 6,
983
+ 7,
984
+ 8,
985
+ 9
986
+ ]);
987
+ expect(backwardItems).toEqual([
988
+ 1,
989
+ 2,
990
+ 3,
991
+ 4,
992
+ 5,
993
+ 6,
994
+ 7,
995
+ 8,
996
+ 9
997
+ ]);
998
+ });
999
+ });
1000
+ describe("edge cases", () => {
1001
+ it("should handle single item", async () => {
1002
+ const list = new ArrayPaginatedList([42]);
1003
+ const result = await list.next({
1004
+ after: list.getFirstCursor(),
1005
+ limit: 10,
1006
+ filter: () => true,
1007
+ orderBy: (a, b) => a - b,
1008
+ limitPrecision: "exact"
1009
+ });
1010
+ expect(items(result)).toEqual([42]);
1011
+ expect(result.isFirst).toBe(true);
1012
+ expect(result.isLast).toBe(true);
1013
+ });
1014
+ it("should handle duplicate values", async () => {
1015
+ const list = new ArrayPaginatedList([
1016
+ 1,
1017
+ 1,
1018
+ 2,
1019
+ 2,
1020
+ 3,
1021
+ 3
1022
+ ]);
1023
+ expect(items(await list.next({
1024
+ after: list.getFirstCursor(),
1025
+ limit: 10,
1026
+ filter: () => true,
1027
+ orderBy: (a, b) => a - b,
1028
+ limitPrecision: "exact"
1029
+ }))).toEqual([
1030
+ 1,
1031
+ 1,
1032
+ 2,
1033
+ 2,
1034
+ 3,
1035
+ 3
1036
+ ]);
1037
+ });
1038
+ it("should handle negative numbers", async () => {
1039
+ const list = new ArrayPaginatedList([
1040
+ -3,
1041
+ -1,
1042
+ 0,
1043
+ 1,
1044
+ 3
1045
+ ]);
1046
+ expect(items(await list.next({
1047
+ after: list.getFirstCursor(),
1048
+ limit: 10,
1049
+ filter: () => true,
1050
+ orderBy: (a, b) => a - b,
1051
+ limitPrecision: "exact"
1052
+ }))).toEqual([
1053
+ -3,
1054
+ -1,
1055
+ 0,
1056
+ 1,
1057
+ 3
1058
+ ]);
1059
+ });
1060
+ it("should handle string items", async () => {
1061
+ const list = new ArrayPaginatedList([
1062
+ "banana",
1063
+ "apple",
1064
+ "cherry"
1065
+ ]);
1066
+ expect(items(await list.next({
1067
+ after: list.getFirstCursor(),
1068
+ limit: 10,
1069
+ filter: () => true,
1070
+ orderBy: (a, b) => stringCompare(a, b),
1071
+ limitPrecision: "exact"
1072
+ }))).toEqual([
1073
+ "apple",
1074
+ "banana",
1075
+ "cherry"
1076
+ ]);
1077
+ });
1078
+ it("should handle object items", async () => {
1079
+ const list = new ArrayPaginatedList([{
1080
+ id: 1,
1081
+ value: "a"
1082
+ }, {
1083
+ id: 2,
1084
+ value: "b"
1085
+ }]);
1086
+ expect(items(await list.next({
1087
+ after: list.getFirstCursor(),
1088
+ limit: 10,
1089
+ filter: () => true,
1090
+ orderBy: (a, b) => a.id - b.id,
1091
+ limitPrecision: "exact"
1092
+ }))).toEqual([{
1093
+ id: 1,
1094
+ value: "a"
1095
+ }, {
1096
+ id: 2,
1097
+ value: "b"
1098
+ }]);
1099
+ });
1100
+ });
1101
+ describe("complete pagination walkthrough", () => {
1102
+ it("should paginate forward through entire list", async () => {
1103
+ const list = new ArrayPaginatedList([
1104
+ 1,
1105
+ 2,
1106
+ 3,
1107
+ 4,
1108
+ 5,
1109
+ 6,
1110
+ 7,
1111
+ 8,
1112
+ 9,
1113
+ 10
1114
+ ]);
1115
+ const allItems = [];
1116
+ let cursor = list.getFirstCursor();
1117
+ let isLast = false;
1118
+ while (!isLast) {
1119
+ const result = await list.next({
1120
+ after: cursor,
1121
+ limit: 3,
1122
+ filter: () => true,
1123
+ orderBy: (a, b) => a - b,
1124
+ limitPrecision: "exact"
1125
+ });
1126
+ allItems.push(...items(result));
1127
+ cursor = result.cursor;
1128
+ isLast = result.isLast;
1129
+ }
1130
+ expect(allItems).toEqual([
1131
+ 1,
1132
+ 2,
1133
+ 3,
1134
+ 4,
1135
+ 5,
1136
+ 6,
1137
+ 7,
1138
+ 8,
1139
+ 9,
1140
+ 10
1141
+ ]);
1142
+ });
1143
+ it("should paginate backward through entire list", async () => {
1144
+ const list = new ArrayPaginatedList([
1145
+ 1,
1146
+ 2,
1147
+ 3,
1148
+ 4,
1149
+ 5,
1150
+ 6,
1151
+ 7,
1152
+ 8,
1153
+ 9,
1154
+ 10
1155
+ ]);
1156
+ const allItems = [];
1157
+ let cursor = list.getLastCursor();
1158
+ let isFirst = false;
1159
+ while (!isFirst) {
1160
+ const result = await list.prev({
1161
+ before: cursor,
1162
+ limit: 3,
1163
+ filter: () => true,
1164
+ orderBy: (a, b) => a - b,
1165
+ limitPrecision: "exact"
1166
+ });
1167
+ allItems.unshift(...items(result));
1168
+ cursor = result.cursor;
1169
+ isFirst = result.isFirst;
1170
+ }
1171
+ expect(allItems).toEqual([
1172
+ 1,
1173
+ 2,
1174
+ 3,
1175
+ 4,
1176
+ 5,
1177
+ 6,
1178
+ 7,
1179
+ 8,
1180
+ 9,
1181
+ 10
1182
+ ]);
1183
+ });
1184
+ });
1185
+ describe("unsorted array pagination", () => {
1186
+ it("should correctly paginate through an unsorted array with sorting", async () => {
1187
+ const list = new ArrayPaginatedList([
1188
+ 3,
1189
+ 1,
1190
+ 2
1191
+ ]);
1192
+ const first = await list.next({
1193
+ after: list.getFirstCursor(),
1194
+ limit: 2,
1195
+ filter: () => true,
1196
+ orderBy: (a, b) => a - b,
1197
+ limitPrecision: "exact"
1198
+ });
1199
+ expect(items(first)).toEqual([1, 2]);
1200
+ expect(items(await list.next({
1201
+ after: first.cursor,
1202
+ limit: 2,
1203
+ filter: () => true,
1204
+ orderBy: (a, b) => a - b,
1205
+ limitPrecision: "exact"
1206
+ }))).toEqual([3]);
1207
+ });
1208
+ it("should maintain sorted order across pagination boundaries", async () => {
1209
+ const list = new ArrayPaginatedList([
1210
+ 5,
1211
+ 4,
1212
+ 3,
1213
+ 2,
1214
+ 1
1215
+ ]);
1216
+ const allItems = [];
1217
+ let cursor = list.getFirstCursor();
1218
+ let isLast = false;
1219
+ while (!isLast) {
1220
+ const result = await list.next({
1221
+ after: cursor,
1222
+ limit: 2,
1223
+ filter: () => true,
1224
+ orderBy: (a, b) => a - b,
1225
+ limitPrecision: "exact"
1226
+ });
1227
+ allItems.push(...items(result));
1228
+ cursor = result.cursor;
1229
+ isLast = result.isLast;
1230
+ }
1231
+ expect(allItems).toEqual([
1232
+ 1,
1233
+ 2,
1234
+ 3,
1235
+ 4,
1236
+ 5
1237
+ ]);
1238
+ });
1239
+ it("should handle random order array correctly", async () => {
1240
+ const list = new ArrayPaginatedList([
1241
+ 7,
1242
+ 2,
1243
+ 9,
1244
+ 1,
1245
+ 5,
1246
+ 8,
1247
+ 3,
1248
+ 6,
1249
+ 4
1250
+ ]);
1251
+ const allItems = [];
1252
+ let cursor = list.getFirstCursor();
1253
+ let isLast = false;
1254
+ while (!isLast) {
1255
+ const result = await list.next({
1256
+ after: cursor,
1257
+ limit: 3,
1258
+ filter: () => true,
1259
+ orderBy: (a, b) => a - b,
1260
+ limitPrecision: "exact"
1261
+ });
1262
+ allItems.push(...items(result));
1263
+ cursor = result.cursor;
1264
+ isLast = result.isLast;
1265
+ }
1266
+ expect(allItems).toEqual([
1267
+ 1,
1268
+ 2,
1269
+ 3,
1270
+ 4,
1271
+ 5,
1272
+ 6,
1273
+ 7,
1274
+ 8,
1275
+ 9
1276
+ ]);
1277
+ });
1278
+ it("should have consistent cursor semantics with sorted data", async () => {
1279
+ const list = new ArrayPaginatedList([
1280
+ 3,
1281
+ 1,
1282
+ 2
1283
+ ]);
1284
+ const first = await list.next({
1285
+ after: list.getFirstCursor(),
1286
+ limit: 1,
1287
+ filter: () => true,
1288
+ orderBy: (a, b) => a - b,
1289
+ limitPrecision: "exact"
1290
+ });
1291
+ expect(items(first)).toEqual([1]);
1292
+ expect(items(await list.next({
1293
+ after: first.cursor,
1294
+ limit: 1,
1295
+ filter: () => true,
1296
+ orderBy: (a, b) => a - b,
1297
+ limitPrecision: "exact"
1298
+ }))).toEqual([2]);
1299
+ });
1300
+ });
1301
+
1302
+ //#endregion
1303
+ export { };
1304
+ //# sourceMappingURL=paginated-lists.test.js.map