nucleus-core-ts 0.8.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 (415) hide show
  1. package/LICENSE +48 -0
  2. package/README.md +177 -0
  3. package/dist/client.d.ts +2 -0
  4. package/dist/client.js +1 -0
  5. package/dist/dist/index-0yyw12k6.d.ts +8 -0
  6. package/dist/dist/index-tv67j5qd.d.ts +488 -0
  7. package/dist/dist/index.d.ts +40 -0
  8. package/dist/fe/components/AbstractAnimatedBackground/index.d.ts +7 -0
  9. package/dist/fe/components/AuthorizationPage/components/AuthorizationPage.d.ts +3 -0
  10. package/dist/fe/components/AuthorizationPage/components/ClaimList.d.ts +3 -0
  11. package/dist/fe/components/AuthorizationPage/components/RoleClaimEditor.d.ts +3 -0
  12. package/dist/fe/components/AuthorizationPage/components/RoleList.d.ts +3 -0
  13. package/dist/fe/components/AuthorizationPage/index.d.ts +9 -0
  14. package/dist/fe/components/AuthorizationPage/store/index.d.ts +47 -0
  15. package/dist/fe/components/AuthorizationPage/theme/index.d.ts +82 -0
  16. package/dist/fe/components/AuthorizationPage/types/index.d.ts +64 -0
  17. package/dist/fe/components/Button/components/Button.d.ts +3 -0
  18. package/dist/fe/components/Button/components/ButtonSpinner.d.ts +3 -0
  19. package/dist/fe/components/Button/index.d.ts +6 -0
  20. package/dist/fe/components/Button/theme/index.d.ts +183 -0
  21. package/dist/fe/components/Button/types/index.d.ts +24 -0
  22. package/dist/fe/components/Button/utils/cn.d.ts +3 -0
  23. package/dist/fe/components/Captcha/components/Captcha.d.ts +4 -0
  24. package/dist/fe/components/Captcha/index.d.ts +4 -0
  25. package/dist/fe/components/Captcha/theme.d.ts +53 -0
  26. package/dist/fe/components/Captcha/types.d.ts +60 -0
  27. package/dist/fe/components/ChangePasswordPage/components/ChangePasswordForm.d.ts +4 -0
  28. package/dist/fe/components/ChangePasswordPage/components/ChangePasswordHeader.d.ts +4 -0
  29. package/dist/fe/components/ChangePasswordPage/components/ChangePasswordPage.d.ts +4 -0
  30. package/dist/fe/components/ChangePasswordPage/index.d.ts +7 -0
  31. package/dist/fe/components/ChangePasswordPage/store/index.d.ts +16 -0
  32. package/dist/fe/components/ChangePasswordPage/theme/index.d.ts +48 -0
  33. package/dist/fe/components/ChangePasswordPage/types/index.d.ts +56 -0
  34. package/dist/fe/components/Checkbox/components/Checkbox.d.ts +3 -0
  35. package/dist/fe/components/Checkbox/components/CheckboxIcon.d.ts +3 -0
  36. package/dist/fe/components/Checkbox/components/SwitchTrack.d.ts +3 -0
  37. package/dist/fe/components/Checkbox/index.d.ts +7 -0
  38. package/dist/fe/components/Checkbox/theme/index.d.ts +218 -0
  39. package/dist/fe/components/Checkbox/types/index.d.ts +39 -0
  40. package/dist/fe/components/Checkbox/utils/cn.d.ts +3 -0
  41. package/dist/fe/components/DataTable/DataTable.d.ts +3 -0
  42. package/dist/fe/components/DataTable/components/ActionCell.d.ts +10 -0
  43. package/dist/fe/components/DataTable/components/DataCell.d.ts +18 -0
  44. package/dist/fe/components/DataTable/components/EditableCell.d.ts +14 -0
  45. package/dist/fe/components/DataTable/components/EmptyState.d.ts +8 -0
  46. package/dist/fe/components/DataTable/components/HeaderCell.d.ts +16 -0
  47. package/dist/fe/components/DataTable/components/InfiniteScrollTrigger.d.ts +11 -0
  48. package/dist/fe/components/DataTable/components/LoadingSpinner.d.ts +7 -0
  49. package/dist/fe/components/DataTable/components/ResizeHandle.d.ts +9 -0
  50. package/dist/fe/components/DataTable/components/SelectionCell.d.ts +9 -0
  51. package/dist/fe/components/DataTable/components/SkeletonRow.d.ts +9 -0
  52. package/dist/fe/components/DataTable/components/SkeletonTable.d.ts +10 -0
  53. package/dist/fe/components/DataTable/components/SortIcon.d.ts +9 -0
  54. package/dist/fe/components/DataTable/components/TableHeader.d.ts +20 -0
  55. package/dist/fe/components/DataTable/components/TableRow.d.ts +20 -0
  56. package/dist/fe/components/DataTable/components/index.d.ts +15 -0
  57. package/dist/fe/components/DataTable/hooks/index.d.ts +3 -0
  58. package/dist/fe/components/DataTable/hooks/useAutoFitColumn.d.ts +8 -0
  59. package/dist/fe/components/DataTable/hooks/useResizeColumn.d.ts +12 -0
  60. package/dist/fe/components/DataTable/index.d.ts +6 -0
  61. package/dist/fe/components/DataTable/store/index.d.ts +52 -0
  62. package/dist/fe/components/DataTable/theme/index.d.ts +131 -0
  63. package/dist/fe/components/DataTable/types/index.d.ts +151 -0
  64. package/dist/fe/components/DataTable/utils/cn.d.ts +3 -0
  65. package/dist/fe/components/DatePicker/components/CalendarGrid.d.ts +3 -0
  66. package/dist/fe/components/DatePicker/components/CalendarHeader.d.ts +3 -0
  67. package/dist/fe/components/DatePicker/components/DatePicker.d.ts +3 -0
  68. package/dist/fe/components/DatePicker/components/MonthYearSelector.d.ts +10 -0
  69. package/dist/fe/components/DatePicker/index.d.ts +10 -0
  70. package/dist/fe/components/DatePicker/locales/index.d.ts +5 -0
  71. package/dist/fe/components/DatePicker/theme/index.d.ts +312 -0
  72. package/dist/fe/components/DatePicker/types/index.d.ts +88 -0
  73. package/dist/fe/components/DatePicker/utils/cn.d.ts +3 -0
  74. package/dist/fe/components/DatePicker/utils/date.d.ts +21 -0
  75. package/dist/fe/components/DevicesPage/components/DeviceCard.d.ts +4 -0
  76. package/dist/fe/components/DevicesPage/components/DevicesHeader.d.ts +4 -0
  77. package/dist/fe/components/DevicesPage/components/DevicesPage.d.ts +4 -0
  78. package/dist/fe/components/DevicesPage/index.d.ts +8 -0
  79. package/dist/fe/components/DevicesPage/store/index.d.ts +20 -0
  80. package/dist/fe/components/DevicesPage/theme/index.d.ts +92 -0
  81. package/dist/fe/components/DevicesPage/types/index.d.ts +147 -0
  82. package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordForm.d.ts +4 -0
  83. package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordHeader.d.ts +4 -0
  84. package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordPage.d.ts +4 -0
  85. package/dist/fe/components/ForgotPasswordPage/index.d.ts +7 -0
  86. package/dist/fe/components/ForgotPasswordPage/store/index.d.ts +14 -0
  87. package/dist/fe/components/ForgotPasswordPage/theme/index.d.ts +48 -0
  88. package/dist/fe/components/ForgotPasswordPage/types/index.d.ts +48 -0
  89. package/dist/fe/components/FormBuilder/components/FormBuilder.d.ts +3 -0
  90. package/dist/fe/components/FormBuilder/components/FormField.d.ts +3 -0
  91. package/dist/fe/components/FormBuilder/hooks/useFormBuilder.d.ts +3 -0
  92. package/dist/fe/components/FormBuilder/index.d.ts +6 -0
  93. package/dist/fe/components/FormBuilder/theme/index.d.ts +136 -0
  94. package/dist/fe/components/FormBuilder/types/index.d.ts +150 -0
  95. package/dist/fe/components/FormBuilder/utils/cn.d.ts +3 -0
  96. package/dist/fe/components/FormBuilder/utils/fieldMapping.d.ts +12 -0
  97. package/dist/fe/components/FormBuilder/utils/validation.d.ts +11 -0
  98. package/dist/fe/components/LoginPage/components/LoginForm.d.ts +4 -0
  99. package/dist/fe/components/LoginPage/components/LoginHeader.d.ts +4 -0
  100. package/dist/fe/components/LoginPage/components/LoginPage.d.ts +4 -0
  101. package/dist/fe/components/LoginPage/index.d.ts +8 -0
  102. package/dist/fe/components/LoginPage/store/index.d.ts +22 -0
  103. package/dist/fe/components/LoginPage/theme/index.d.ts +55 -0
  104. package/dist/fe/components/LoginPage/types/index.d.ts +129 -0
  105. package/dist/fe/components/MagicLinkVerifyPage/components/MagicLinkVerifyPage.d.ts +4 -0
  106. package/dist/fe/components/MagicLinkVerifyPage/index.d.ts +5 -0
  107. package/dist/fe/components/MagicLinkVerifyPage/store.d.ts +15 -0
  108. package/dist/fe/components/MagicLinkVerifyPage/theme.d.ts +37 -0
  109. package/dist/fe/components/MagicLinkVerifyPage/types.d.ts +35 -0
  110. package/dist/fe/components/NucleusEntityShowcase.d.ts +3 -0
  111. package/dist/fe/components/NucleusTextInput/components/FloatingLabel.d.ts +3 -0
  112. package/dist/fe/components/NucleusTextInput/components/InputIcons.d.ts +15 -0
  113. package/dist/fe/components/NucleusTextInput/components/NucleusTextInput.d.ts +3 -0
  114. package/dist/fe/components/NucleusTextInput/components/PasswordStrengthIndicator.d.ts +15 -0
  115. package/dist/fe/components/NucleusTextInput/components/TypewriterText.d.ts +3 -0
  116. package/dist/fe/components/NucleusTextInput/index.d.ts +11 -0
  117. package/dist/fe/components/NucleusTextInput/theme/index.d.ts +108 -0
  118. package/dist/fe/components/NucleusTextInput/types/index.d.ts +65 -0
  119. package/dist/fe/components/NucleusTextInput/utils/cn.d.ts +3 -0
  120. package/dist/fe/components/NucleusTextInput/utils/format.d.ts +8 -0
  121. package/dist/fe/components/NucleusTextInput/utils/validation.d.ts +23 -0
  122. package/dist/fe/components/ProfilePage/components/AddressCard.d.ts +4 -0
  123. package/dist/fe/components/ProfilePage/components/PhoneCard.d.ts +4 -0
  124. package/dist/fe/components/ProfilePage/components/ProfileHeader.d.ts +4 -0
  125. package/dist/fe/components/ProfilePage/components/ProfilePage.d.ts +4 -0
  126. package/dist/fe/components/ProfilePage/index.d.ts +10 -0
  127. package/dist/fe/components/ProfilePage/store/index.d.ts +37 -0
  128. package/dist/fe/components/ProfilePage/theme/index.d.ts +101 -0
  129. package/dist/fe/components/ProfilePage/types/index.d.ts +150 -0
  130. package/dist/fe/components/RangePicker/components/RangePicker.d.ts +3 -0
  131. package/dist/fe/components/RangePicker/components/RangeThumb.d.ts +3 -0
  132. package/dist/fe/components/RangePicker/components/RangeTooltip.d.ts +3 -0
  133. package/dist/fe/components/RangePicker/components/RangeTrack.d.ts +3 -0
  134. package/dist/fe/components/RangePicker/index.d.ts +8 -0
  135. package/dist/fe/components/RangePicker/theme/index.d.ts +90 -0
  136. package/dist/fe/components/RangePicker/types/index.d.ts +66 -0
  137. package/dist/fe/components/RangePicker/utils/cn.d.ts +3 -0
  138. package/dist/fe/components/RegisterPage/components/PasswordStrengthIndicator.d.ts +14 -0
  139. package/dist/fe/components/RegisterPage/components/RegisterForm.d.ts +4 -0
  140. package/dist/fe/components/RegisterPage/components/RegisterHeader.d.ts +4 -0
  141. package/dist/fe/components/RegisterPage/components/RegisterPage.d.ts +4 -0
  142. package/dist/fe/components/RegisterPage/index.d.ts +9 -0
  143. package/dist/fe/components/RegisterPage/store/index.d.ts +19 -0
  144. package/dist/fe/components/RegisterPage/theme/index.d.ts +81 -0
  145. package/dist/fe/components/RegisterPage/types/index.d.ts +141 -0
  146. package/dist/fe/components/ResetPasswordPage/components/ResetPasswordForm.d.ts +4 -0
  147. package/dist/fe/components/ResetPasswordPage/components/ResetPasswordHeader.d.ts +4 -0
  148. package/dist/fe/components/ResetPasswordPage/components/ResetPasswordPage.d.ts +4 -0
  149. package/dist/fe/components/ResetPasswordPage/index.d.ts +7 -0
  150. package/dist/fe/components/ResetPasswordPage/store/index.d.ts +15 -0
  151. package/dist/fe/components/ResetPasswordPage/theme/index.d.ts +56 -0
  152. package/dist/fe/components/ResetPasswordPage/types/index.d.ts +50 -0
  153. package/dist/fe/components/SearchBox/components/SearchBox.d.ts +3 -0
  154. package/dist/fe/components/SearchBox/components/SearchBoxDropdown.d.ts +3 -0
  155. package/dist/fe/components/SearchBox/index.d.ts +8 -0
  156. package/dist/fe/components/SearchBox/theme/index.d.ts +141 -0
  157. package/dist/fe/components/SearchBox/types/index.d.ts +47 -0
  158. package/dist/fe/components/SearchBox/utils/cn.d.ts +3 -0
  159. package/dist/fe/components/SearchBox/utils/debounce.d.ts +5 -0
  160. package/dist/fe/components/SearchBox/utils/sanitize.d.ts +9 -0
  161. package/dist/fe/components/SelectBox/components/SelectBox.d.ts +3 -0
  162. package/dist/fe/components/SelectBox/components/SelectDropdown.d.ts +6 -0
  163. package/dist/fe/components/SelectBox/components/SelectOptionItem.d.ts +3 -0
  164. package/dist/fe/components/SelectBox/components/SelectTrigger.d.ts +5 -0
  165. package/dist/fe/components/SelectBox/index.d.ts +8 -0
  166. package/dist/fe/components/SelectBox/theme/index.d.ts +100 -0
  167. package/dist/fe/components/SelectBox/types/index.d.ts +66 -0
  168. package/dist/fe/components/SelectBox/utils/cn.d.ts +3 -0
  169. package/dist/fe/components/SetPasswordPage/components/PasswordStrengthIndicator.d.ts +14 -0
  170. package/dist/fe/components/SetPasswordPage/components/SetPasswordForm.d.ts +4 -0
  171. package/dist/fe/components/SetPasswordPage/components/SetPasswordHeader.d.ts +4 -0
  172. package/dist/fe/components/SetPasswordPage/components/SetPasswordPage.d.ts +4 -0
  173. package/dist/fe/components/SetPasswordPage/index.d.ts +9 -0
  174. package/dist/fe/components/SetPasswordPage/store/index.d.ts +16 -0
  175. package/dist/fe/components/SetPasswordPage/theme/index.d.ts +95 -0
  176. package/dist/fe/components/SetPasswordPage/types/index.d.ts +137 -0
  177. package/dist/fe/components/UsersPage/components/InviteUserModal.d.ts +10 -0
  178. package/dist/fe/components/UsersPage/components/Pagination.d.ts +13 -0
  179. package/dist/fe/components/UsersPage/components/RoleAssignmentModal.d.ts +12 -0
  180. package/dist/fe/components/UsersPage/components/StatsCards.d.ts +10 -0
  181. package/dist/fe/components/UsersPage/components/UserDetailDrawer.d.ts +24 -0
  182. package/dist/fe/components/UsersPage/components/UserFilters.d.ts +18 -0
  183. package/dist/fe/components/UsersPage/components/UserListItem.d.ts +11 -0
  184. package/dist/fe/components/UsersPage/components/UserListSkeleton.d.ts +7 -0
  185. package/dist/fe/components/UsersPage/components/UsersPage.d.ts +8 -0
  186. package/dist/fe/components/UsersPage/index.d.ts +13 -0
  187. package/dist/fe/components/UsersPage/store/index.d.ts +51 -0
  188. package/dist/fe/components/UsersPage/theme/index.d.ts +180 -0
  189. package/dist/fe/components/UsersPage/types/index.d.ts +73 -0
  190. package/dist/fe/components/VerifyEmailPage/components/VerifyEmailPage.d.ts +4 -0
  191. package/dist/fe/components/VerifyEmailPage/index.d.ts +5 -0
  192. package/dist/fe/components/VerifyEmailPage/store/index.d.ts +18 -0
  193. package/dist/fe/components/VerifyEmailPage/theme/index.d.ts +49 -0
  194. package/dist/fe/components/VerifyEmailPage/types/index.d.ts +84 -0
  195. package/dist/fe/hooks/useNucleusEntity.d.ts +3 -0
  196. package/dist/fe/index.d.ts +42 -0
  197. package/dist/fe/index.js +1 -0
  198. package/dist/fe/types/index.d.ts +233 -0
  199. package/dist/fe/utils/cn.d.ts +3 -0
  200. package/dist/fe/utils/columnUtils.d.ts +63 -0
  201. package/dist/fe/utils/endpointKeys.d.ts +9 -0
  202. package/dist/index-0yyw12k6.js +1 -0
  203. package/dist/index-tv67j5qd.js +1 -0
  204. package/dist/index.d.ts +6 -0
  205. package/dist/index.js +1 -0
  206. package/dist/nucleus.config.d.ts +95 -0
  207. package/dist/public/components/CTA.d.ts +2 -0
  208. package/dist/public/components/Capabilities.d.ts +9 -0
  209. package/dist/public/components/Features.d.ts +9 -0
  210. package/dist/public/components/Footer.d.ts +2 -0
  211. package/dist/public/components/Hero.d.ts +2 -0
  212. package/dist/public/components/Managers.d.ts +7 -0
  213. package/dist/public/components/Nav.d.ts +2 -0
  214. package/dist/public/components/Stack.d.ts +7 -0
  215. package/dist/public/components/docs/Docs.d.ts +2 -0
  216. package/dist/public/components/docs/DocsContent.d.ts +19 -0
  217. package/dist/public/components/docs/DocsRightSidebar.d.ts +9 -0
  218. package/dist/public/components/docs/DocsSidebar.d.ts +8 -0
  219. package/dist/public/components/docs/content/authentication.d.ts +3 -0
  220. package/dist/public/components/docs/content/gettingStarted.d.ts +3 -0
  221. package/dist/public/components/docs/docsData.d.ts +18 -0
  222. package/dist/public/components/docs/index.d.ts +7 -0
  223. package/dist/public/components/index.d.ts +10 -0
  224. package/dist/public/index.d.ts +3 -0
  225. package/dist/public/store.d.ts +20 -0
  226. package/dist/scripts/build.d.ts +7 -0
  227. package/dist/scripts/generate-schema.d.ts +3 -0
  228. package/dist/scripts/generate-system-tables-types.d.ts +2 -0
  229. package/dist/scripts/generate-types-schema.d.ts +7 -0
  230. package/dist/scripts/publish.d.ts +7 -0
  231. package/dist/scripts/version.d.ts +7 -0
  232. package/dist/src/Client/ApiCaller/client.d.ts +5 -0
  233. package/dist/src/Client/ApiCaller/examples/usage.example.d.ts +8 -0
  234. package/dist/src/Client/ApiCaller/generator.d.ts +10 -0
  235. package/dist/src/Client/ApiCaller/index.d.ts +7 -0
  236. package/dist/src/Client/ApiCaller/server.d.ts +4 -0
  237. package/dist/src/Client/ApiCaller/system-tables.d.ts +1215 -0
  238. package/dist/src/Client/ApiCaller/types.d.ts +907 -0
  239. package/dist/src/Client/Proxy/httpProxy.d.ts +5 -0
  240. package/dist/src/Client/Proxy/index.d.ts +6 -0
  241. package/dist/src/Client/Proxy/index.js +1 -0
  242. package/dist/src/Client/Proxy/server.d.ts +5 -0
  243. package/dist/src/Client/Proxy/types.d.ts +69 -0
  244. package/dist/src/Client/Proxy/utils.d.ts +12 -0
  245. package/dist/src/Client/Proxy/wsProxy.d.ts +20 -0
  246. package/dist/src/Client/ServerFetch/index.d.ts +19 -0
  247. package/dist/src/Client/ServerFetch/types.d.ts +34 -0
  248. package/dist/src/Client/index.d.ts +4 -0
  249. package/dist/src/ElysiaPlugin/index.d.ts +12 -0
  250. package/dist/src/ElysiaPlugin/publicRoutes.d.ts +9 -0
  251. package/dist/src/ElysiaPlugin/routes/auth/captcha/index.d.ts +46 -0
  252. package/dist/src/ElysiaPlugin/routes/auth/emailVerification/index.d.ts +38 -0
  253. package/dist/src/ElysiaPlugin/routes/auth/index.d.ts +68 -0
  254. package/dist/src/ElysiaPlugin/routes/auth/invite/index.d.ts +43 -0
  255. package/dist/src/ElysiaPlugin/routes/auth/login/index.d.ts +68 -0
  256. package/dist/src/ElysiaPlugin/routes/auth/login/types.d.ts +22 -0
  257. package/dist/src/ElysiaPlugin/routes/auth/login/utils.d.ts +19 -0
  258. package/dist/src/ElysiaPlugin/routes/auth/logout/index.d.ts +33 -0
  259. package/dist/src/ElysiaPlugin/routes/auth/logout/types.d.ts +6 -0
  260. package/dist/src/ElysiaPlugin/routes/auth/logout/utils.d.ts +2 -0
  261. package/dist/src/ElysiaPlugin/routes/auth/magicLink/index.d.ts +41 -0
  262. package/dist/src/ElysiaPlugin/routes/auth/magicLink/types.d.ts +23 -0
  263. package/dist/src/ElysiaPlugin/routes/auth/magicLink/utils.d.ts +4 -0
  264. package/dist/src/ElysiaPlugin/routes/auth/me/index.d.ts +40 -0
  265. package/dist/src/ElysiaPlugin/routes/auth/passwordChange/index.d.ts +33 -0
  266. package/dist/src/ElysiaPlugin/routes/auth/passwordChange/types.d.ts +12 -0
  267. package/dist/src/ElysiaPlugin/routes/auth/passwordChange/utils.d.ts +2 -0
  268. package/dist/src/ElysiaPlugin/routes/auth/passwordReset/index.d.ts +36 -0
  269. package/dist/src/ElysiaPlugin/routes/auth/passwordReset/types.d.ts +16 -0
  270. package/dist/src/ElysiaPlugin/routes/auth/passwordReset/utils.d.ts +3 -0
  271. package/dist/src/ElysiaPlugin/routes/auth/passwordSet/index.d.ts +33 -0
  272. package/dist/src/ElysiaPlugin/routes/auth/passwordSet/types.d.ts +9 -0
  273. package/dist/src/ElysiaPlugin/routes/auth/refresh/index.d.ts +39 -0
  274. package/dist/src/ElysiaPlugin/routes/auth/refresh/types.d.ts +9 -0
  275. package/dist/src/ElysiaPlugin/routes/auth/refresh/utils.d.ts +2 -0
  276. package/dist/src/ElysiaPlugin/routes/auth/register/index.d.ts +47 -0
  277. package/dist/src/ElysiaPlugin/routes/auth/register/types.d.ts +18 -0
  278. package/dist/src/ElysiaPlugin/routes/auth/register/utils.d.ts +8 -0
  279. package/dist/src/ElysiaPlugin/routes/auth/sessions/index.d.ts +33 -0
  280. package/dist/src/ElysiaPlugin/routes/auth/sessions/types.d.ts +67 -0
  281. package/dist/src/ElysiaPlugin/routes/auth/sessions/utils.d.ts +36 -0
  282. package/dist/src/ElysiaPlugin/routes/auth/types.d.ts +153 -0
  283. package/dist/src/ElysiaPlugin/routes/entity/index.d.ts +5 -0
  284. package/dist/src/ElysiaPlugin/routes/entity/types.d.ts +50 -0
  285. package/dist/src/ElysiaPlugin/routes/entity/utils.d.ts +11 -0
  286. package/dist/src/ElysiaPlugin/routes/index.d.ts +5 -0
  287. package/dist/src/ElysiaPlugin/routes/monitoring/index.d.ts +58 -0
  288. package/dist/src/ElysiaPlugin/routes/storage/cdn.d.ts +51 -0
  289. package/dist/src/ElysiaPlugin/routes/storage/helpers.d.ts +53 -0
  290. package/dist/src/ElysiaPlugin/routes/storage/index.d.ts +3 -0
  291. package/dist/src/ElysiaPlugin/routes/verification/index.d.ts +39 -0
  292. package/dist/src/ElysiaPlugin/swagger.d.ts +28 -0
  293. package/dist/src/ElysiaPlugin/utils.d.ts +70 -0
  294. package/dist/src/Managers/Dapr/clients/binding-client.d.ts +15 -0
  295. package/dist/src/Managers/Dapr/clients/config-client.d.ts +27 -0
  296. package/dist/src/Managers/Dapr/clients/crypto-client.d.ts +27 -0
  297. package/dist/src/Managers/Dapr/clients/invoke-client.d.ts +32 -0
  298. package/dist/src/Managers/Dapr/clients/lock-client.d.ts +23 -0
  299. package/dist/src/Managers/Dapr/clients/pubsub-client.d.ts +23 -0
  300. package/dist/src/Managers/Dapr/clients/secret-client.d.ts +19 -0
  301. package/dist/src/Managers/Dapr/clients/state-client.d.ts +55 -0
  302. package/dist/src/Managers/Dapr/clients/workflow-client.d.ts +39 -0
  303. package/dist/src/Managers/Dapr/connection-manager.d.ts +51 -0
  304. package/dist/src/Managers/Dapr/constants.d.ts +49 -0
  305. package/dist/src/Managers/Dapr/dapr-manager.d.ts +160 -0
  306. package/dist/src/Managers/Dapr/error-handling.d.ts +29 -0
  307. package/dist/src/Managers/Dapr/index.d.ts +102 -0
  308. package/dist/src/Managers/Dapr/types.d.ts +121 -0
  309. package/dist/src/Managers/Dapr/utils.d.ts +44 -0
  310. package/dist/src/Managers/File/atomic.d.ts +64 -0
  311. package/dist/src/Managers/File/core.d.ts +188 -0
  312. package/dist/src/Managers/File/index.d.ts +18 -0
  313. package/dist/src/Managers/File/permissions.d.ts +72 -0
  314. package/dist/src/Managers/File/streaming.d.ts +30 -0
  315. package/dist/src/Managers/File/types.d.ts +146 -0
  316. package/dist/src/Managers/File/utils.d.ts +112 -0
  317. package/dist/src/Managers/Postgre/index.d.ts +25 -0
  318. package/dist/src/Managers/Redis/index.d.ts +33 -0
  319. package/dist/src/Managers/index.d.ts +5 -0
  320. package/dist/src/Services/Auth/Fingerprint/Generate/index.d.ts +3 -0
  321. package/dist/src/Services/Auth/Fingerprint/Validate/index.d.ts +3 -0
  322. package/dist/src/Services/Auth/Fingerprint/index.d.ts +5 -0
  323. package/dist/src/Services/Auth/Fingerprint/types.d.ts +20 -0
  324. package/dist/src/Services/Auth/Fingerprint/utils.d.ts +3 -0
  325. package/dist/src/Services/Auth/JWT/Decode/index.d.ts +3 -0
  326. package/dist/src/Services/Auth/JWT/Sign/index.d.ts +3 -0
  327. package/dist/src/Services/Auth/JWT/Verify/index.d.ts +3 -0
  328. package/dist/src/Services/Auth/JWT/index.d.ts +5 -0
  329. package/dist/src/Services/Auth/JWT/types.d.ts +38 -0
  330. package/dist/src/Services/Auth/JWT/utils.d.ts +10 -0
  331. package/dist/src/Services/Auth/Password/Generate/index.d.ts +3 -0
  332. package/dist/src/Services/Auth/Password/Validate/index.d.ts +3 -0
  333. package/dist/src/Services/Auth/Password/index.d.ts +2 -0
  334. package/dist/src/Services/Auth/Password/types.d.ts +16 -0
  335. package/dist/src/Services/Auth/RefreshToken/Delete/index.d.ts +3 -0
  336. package/dist/src/Services/Auth/RefreshToken/Generate/index.d.ts +11 -0
  337. package/dist/src/Services/Auth/RefreshToken/Read/index.d.ts +11 -0
  338. package/dist/src/Services/Auth/RefreshToken/Validate/index.d.ts +11 -0
  339. package/dist/src/Services/Auth/RefreshToken/index.d.ts +5 -0
  340. package/dist/src/Services/Auth/RefreshToken/types.d.ts +27 -0
  341. package/dist/src/Services/Auth/RefreshToken/utils.d.ts +6 -0
  342. package/dist/src/Services/Auth/Session/Issue/index.d.ts +9 -0
  343. package/dist/src/Services/Auth/Session/index.d.ts +2 -0
  344. package/dist/src/Services/Auth/Session/types.d.ts +13 -0
  345. package/dist/src/Services/Auth/SessionStore/Delete/index.d.ts +3 -0
  346. package/dist/src/Services/Auth/SessionStore/Generate/index.d.ts +11 -0
  347. package/dist/src/Services/Auth/SessionStore/Read/index.d.ts +3 -0
  348. package/dist/src/Services/Auth/SessionStore/Update/index.d.ts +24 -0
  349. package/dist/src/Services/Auth/SessionStore/Validate/index.d.ts +3 -0
  350. package/dist/src/Services/Auth/SessionStore/index.d.ts +7 -0
  351. package/dist/src/Services/Auth/SessionStore/types.d.ts +59 -0
  352. package/dist/src/Services/Auth/SessionStore/utils.d.ts +6 -0
  353. package/dist/src/Services/Auth/index.d.ts +7 -0
  354. package/dist/src/Services/Authorization/ClaimSeeder/index.d.ts +6 -0
  355. package/dist/src/Services/Authorization/GodminSetup/index.d.ts +10 -0
  356. package/dist/src/Services/Authorization/Middleware/index.d.ts +21 -0
  357. package/dist/src/Services/Authorization/index.d.ts +5 -0
  358. package/dist/src/Services/Authorization/types.d.ts +68 -0
  359. package/dist/src/Services/Captcha/index.d.ts +15 -0
  360. package/dist/src/Services/Captcha/types.d.ts +69 -0
  361. package/dist/src/Services/Gmail/index.d.ts +62 -0
  362. package/dist/src/Services/Logger/Logger.d.ts +77 -0
  363. package/dist/src/Services/Logger/index.d.ts +5 -0
  364. package/dist/src/Services/Logger/transports.d.ts +54 -0
  365. package/dist/src/Services/Logger/types.d.ts +88 -0
  366. package/dist/src/Services/Logger/utils.d.ts +8 -0
  367. package/dist/src/Services/Monitoring/AlertService.d.ts +29 -0
  368. package/dist/src/Services/Monitoring/collectors/ApplicationCollector.d.ts +30 -0
  369. package/dist/src/Services/Monitoring/collectors/SystemCollector.d.ts +13 -0
  370. package/dist/src/Services/Monitoring/collectors/index.d.ts +3 -0
  371. package/dist/src/Services/Monitoring/index.d.ts +109 -0
  372. package/dist/src/Services/Monitoring/types.d.ts +163 -0
  373. package/dist/src/Services/Notification/index.d.ts +31 -0
  374. package/dist/src/Services/Notification/types.d.ts +59 -0
  375. package/dist/src/Services/RateLimiter/index.d.ts +99 -0
  376. package/dist/src/Services/Verification/index.d.ts +23 -0
  377. package/dist/src/Services/Verification/types.d.ts +135 -0
  378. package/dist/src/Services/index.d.ts +10 -0
  379. package/dist/src/types.d.ts +588 -0
  380. package/package.json +99 -0
  381. package/public/components/CTA.tsx +25 -0
  382. package/public/components/Capabilities.tsx +69 -0
  383. package/public/components/Features.tsx +107 -0
  384. package/public/components/Footer.tsx +60 -0
  385. package/public/components/Hero.tsx +53 -0
  386. package/public/components/Managers.tsx +60 -0
  387. package/public/components/Nav.tsx +107 -0
  388. package/public/components/Stack.tsx +36 -0
  389. package/public/components/docs/Docs.tsx +62 -0
  390. package/public/components/docs/DocsContent.tsx +203 -0
  391. package/public/components/docs/DocsRightSidebar.tsx +53 -0
  392. package/public/components/docs/DocsSidebar.tsx +62 -0
  393. package/public/components/docs/content/authentication.ts +1670 -0
  394. package/public/components/docs/content/gettingStarted.ts +627 -0
  395. package/public/components/docs/docsData.ts +36 -0
  396. package/public/components/docs/index.ts +6 -0
  397. package/public/components/index.ts +9 -0
  398. package/public/docs.css +633 -0
  399. package/public/index.html +81 -0
  400. package/public/index.tsx +52 -0
  401. package/public/store.ts +79 -0
  402. package/public/styles.css +877 -0
  403. package/schemas/bckp/config.nucleus.json +1488 -0
  404. package/schemas/bckp/nucleus.tables.schema.json +24 -0
  405. package/schemas/bckp/table.schema.json +472 -0
  406. package/schemas/config.nucleus.json +1010 -0
  407. package/schemas/nucleus.tables.schema.json +19 -0
  408. package/schemas/table.schema.json +498 -0
  409. package/scripts/build.ts +197 -0
  410. package/scripts/generate-schema.ts +556 -0
  411. package/scripts/generate-system-tables-types.ts +18 -0
  412. package/scripts/generate-types-schema.ts +962 -0
  413. package/scripts/publish.ts +210 -0
  414. package/scripts/version.ts +125 -0
  415. package/src/system.tables.json +1590 -0
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Utility functions for the Dapr manager
3
+ */
4
+ /** biome-ignore-all lint/suspicious/noExplicitAny: <> */
5
+ import type { DaprLogger } from "./types";
6
+ /**
7
+ * Default logger implementation
8
+ */
9
+ export declare const createDefaultLogger: () => DaprLogger;
10
+ /**
11
+ * Create a no-op logger that doesn't log anything
12
+ */
13
+ export declare const createNoopLogger: () => DaprLogger;
14
+ /**
15
+ * Retry a function with exponential backoff
16
+ */
17
+ export declare const retryWithBackoff: <T>(fn: () => Promise<T>, options?: {
18
+ retryCount?: number;
19
+ initialDelayMs?: number;
20
+ maxDelayMs?: number;
21
+ jitter?: number;
22
+ shouldRetry?: (error: unknown) => boolean;
23
+ }) => Promise<T>;
24
+ /**
25
+ * Execute a function with a timeout
26
+ */
27
+ export declare const withTimeout: <T>(fn: () => Promise<T>, timeoutMs: number, errorMessage?: string) => Promise<T>;
28
+ /**
29
+ * Validate that required parameters are provided
30
+ */
31
+ export declare const validateRequired: <T extends Record<string, unknown>>(params: T, requiredKeys: Array<keyof T>, entityName: string) => void;
32
+ /**
33
+ * Safely parse JSON string
34
+ */
35
+ export declare const safeJsonParse: <T>(jsonString: string, defaultValue: T) => T;
36
+ /**
37
+ * Create a memoized function that caches results
38
+ */
39
+ export declare const memoize: <T extends (...args: any[]) => any>(fn: T, getKey?: (...args: Parameters<T>) => string) => T;
40
+ /**
41
+ * Debounce a function
42
+ */
43
+ export declare const debounce: <T extends (...args: any[]) => any>(fn: T, delayMs: number) => ((...args: Parameters<T>) => void);
44
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Bun File Manager - Atomic Operations
3
+ * Safe atomic file operations with backup and rollback support
4
+ */
5
+ import type { AtomicOperationData, AtomicOperationResult, AtomicWriteOptions, BackupOptions, FileData } from "./types";
6
+ /**
7
+ * Default atomic operation configuration
8
+ */
9
+ export declare const DEFAULT_ATOMIC_CONFIG: {
10
+ readonly tempSuffix: ".tmp";
11
+ readonly backup: false;
12
+ readonly sync: true;
13
+ readonly timestamp: true;
14
+ };
15
+ /**
16
+ * Generates unique temporary file path
17
+ */
18
+ export declare const generateTempPath: (originalPath: string, suffix?: string) => string;
19
+ /**
20
+ * Generates backup file path with optional timestamp
21
+ */
22
+ export declare const generateBackupPath: (originalPath: string, backupDir?: string, useTimestamp?: boolean) => string;
23
+ /**
24
+ * Atomic write operation - writes to temp file then renames
25
+ */
26
+ export declare const atomicWrite: ({ path, data, tempSuffix, backup, sync, }: AtomicWriteOptions) => Promise<AtomicOperationResult>;
27
+ /**
28
+ * Atomic JSON write operation
29
+ */
30
+ export declare const atomicJsonWrite: (path: string, data: Record<string, string | number | boolean | null>, options?: Partial<AtomicWriteOptions>) => Promise<AtomicOperationResult>;
31
+ /**
32
+ * Creates backup of existing file
33
+ */
34
+ export declare const createBackup: ({ sourcePath, backupDir, keepOriginal, timestamp, }: BackupOptions) => Promise<string>;
35
+ /**
36
+ * Restores file from backup
37
+ */
38
+ export declare const restoreFromBackup: (backupPath: string, targetPath: string, deleteBackup?: boolean) => Promise<boolean>;
39
+ /**
40
+ * Safe file update with automatic rollback on error
41
+ */
42
+ export declare const safeUpdate: (path: string, updateFunction: (currentData: string) => Promise<FileData> | FileData, options?: Partial<AtomicWriteOptions>) => Promise<AtomicOperationResult>;
43
+ /**
44
+ * Batch atomic operations with rollback support
45
+ */
46
+ export declare const batchAtomicWrite: (operations: ReadonlyArray<AtomicWriteOptions>) => Promise<{
47
+ successful: ReadonlyArray<AtomicOperationData>;
48
+ failed: ReadonlyArray<{
49
+ operation: AtomicWriteOptions;
50
+ error: Error;
51
+ }>;
52
+ }>;
53
+ /**
54
+ * Cleans up temporary and backup files
55
+ */
56
+ export declare const cleanupFiles: (paths: ReadonlyArray<string>) => Promise<{
57
+ cleaned: ReadonlyArray<string>;
58
+ failed: ReadonlyArray<string>;
59
+ }>;
60
+ /**
61
+ * Verifies atomic operation integrity
62
+ */
63
+ export declare const verifyAtomicWrite: (path: string, expectedSize?: number, checksumFunction?: (data: Uint8Array) => string, expectedChecksum?: string) => Promise<boolean>;
64
+ //# sourceMappingURL=atomic.d.ts.map
@@ -0,0 +1,188 @@
1
+ /**
2
+ * Bun File Manager - Core Singleton Class
3
+ * Type-safe CRUD operations using Bun's optimized APIs
4
+ */
5
+ /** biome-ignore-all lint/correctness/noUnusedPrivateClassMembers: <> */
6
+ import { type PERMISSION_MODES } from "./permissions";
7
+ import type { AtomicOperationData, AtomicOperationResult, AtomicWriteOptions, BackupOptions, BulkDeleteResult, ConfigValidationResult, CreateOperationResult, DeleteOperationResult, DirectoryOptions, FileCreateOptions, FileInfo, FileManagerConfig, FilePermissionMode, FileReadOptions, FileSinkOptions, FileUpdateOptions, JsonData, PartialFileManagerConfig, PermissionInfo, PermissionOperationResult, PermissionOptions, ReadOperationResult, StreamChunk, StreamOperationResult, StreamWriter, UpdateOperationResult, UtilityOperationResult } from "./types";
8
+ export declare class BunFileManager {
9
+ private static instance;
10
+ private readonly config;
11
+ private constructor();
12
+ /**
13
+ * Get singleton instance
14
+ */
15
+ static getInstance(): BunFileManager;
16
+ /**
17
+ * Create new file with automatic directory creation
18
+ */
19
+ createFile({ dir, name, data, options, }: FileCreateOptions): CreateOperationResult;
20
+ /**
21
+ * Create JSON file with automatic formatting
22
+ */
23
+ createJsonFile(dir: string, name: string, data: JsonData): CreateOperationResult;
24
+ /**
25
+ * Create directory with recursive option
26
+ */
27
+ createDirectory({ path }: DirectoryOptions): Promise<void>;
28
+ /**
29
+ * Read file in specified format
30
+ */
31
+ readFile<T = string>({ path, format, }: FileReadOptions): ReadOperationResult<T>;
32
+ /**
33
+ * Read JSON file with type safety
34
+ */
35
+ readJsonFile<T extends JsonData = JsonData>(path: string): ReadOperationResult<T>;
36
+ /**
37
+ * Get comprehensive file information
38
+ */
39
+ getFileInfo(path: string): ReadOperationResult<FileInfo>;
40
+ /**
41
+ * Read directory contents
42
+ */
43
+ readDirectory({ path, recursive, }: DirectoryOptions): ReadOperationResult<ReadonlyArray<string>>;
44
+ /**
45
+ * Get files by extension from directory
46
+ */
47
+ getFilesByExtension(dir: string, extension: string): ReadOperationResult<ReadonlyArray<string>>;
48
+ /**
49
+ * Update file with overwrite or append mode
50
+ */
51
+ updateFile({ path, data, mode, }: FileUpdateOptions): UpdateOperationResult;
52
+ /**
53
+ * Update JSON file with merge option
54
+ */
55
+ updateJsonFile(path: string, data: JsonData, merge?: boolean): UpdateOperationResult;
56
+ /**
57
+ * Append data to existing file
58
+ */
59
+ appendToFile(path: string, data: string): UpdateOperationResult;
60
+ /**
61
+ * Delete single file
62
+ */
63
+ deleteFile(path: string): DeleteOperationResult;
64
+ /**
65
+ * Delete directory
66
+ */
67
+ deleteDirectory({ path, recursive, }: DirectoryOptions): DeleteOperationResult;
68
+ /**
69
+ * Delete multiple files with result tracking
70
+ */
71
+ deleteFiles(paths: ReadonlyArray<string>): ReadOperationResult<BulkDeleteResult>;
72
+ /**
73
+ * Check if file exists
74
+ */
75
+ exists(path: string): UtilityOperationResult;
76
+ /**
77
+ * Copy file to new location
78
+ */
79
+ copyFile(sourcePath: string, destinationPath: string): UtilityOperationResult<number>;
80
+ /**
81
+ * Move file to new location
82
+ */
83
+ moveFile(sourcePath: string, destinationPath: string): DeleteOperationResult;
84
+ /**
85
+ * Get formatted file size
86
+ */
87
+ getFormattedFileSize(bytes: number): string;
88
+ /**
89
+ * Get configuration
90
+ */
91
+ getConfig(): FileManagerConfig;
92
+ /**
93
+ * Update configuration with validation
94
+ */
95
+ updateConfig(newConfig: PartialFileManagerConfig): ConfigValidationResult;
96
+ /**
97
+ * Validate configuration without applying
98
+ */
99
+ validateConfiguration(config: PartialFileManagerConfig): ConfigValidationResult;
100
+ /**
101
+ * Create file writer for streaming operations
102
+ */
103
+ createStreamWriter(path: string, options?: FileSinkOptions): Promise<StreamWriter>;
104
+ /**
105
+ * Write data using streaming (memory efficient for large data)
106
+ */
107
+ writeStream(path: string, chunks: ReadonlyArray<StreamChunk>, options?: FileSinkOptions): StreamOperationResult;
108
+ /**
109
+ * Append data using streaming
110
+ */
111
+ appendStream(path: string, chunks: ReadonlyArray<StreamChunk>, options?: FileSinkOptions): StreamOperationResult;
112
+ /**
113
+ * Copy file using streaming (efficient for large files)
114
+ */
115
+ copyFileStream(sourcePath: string, destinationPath: string, options?: FileSinkOptions): StreamOperationResult;
116
+ /**
117
+ * Read file in chunks using streaming
118
+ */
119
+ readFileStream(path: string, chunkProcessor: (chunk: Uint8Array) => Promise<void>): Promise<void>;
120
+ /**
121
+ * Set file permissions using octal mode
122
+ */
123
+ setPermissions(path: string, mode: FilePermissionMode): PermissionOperationResult;
124
+ /**
125
+ * Set permissions using options
126
+ */
127
+ setPermissionsAdvanced(options: PermissionOptions): PermissionOperationResult;
128
+ /**
129
+ * Get detailed file permission information
130
+ */
131
+ getPermissions(path: string): Promise<PermissionInfo>;
132
+ /**
133
+ * Check if file has specific permissions
134
+ */
135
+ checkPermissions(path: string, requiredMode: FilePermissionMode): Promise<boolean>;
136
+ /**
137
+ * Make file readable by owner
138
+ */
139
+ makeFileReadable(path: string): PermissionOperationResult;
140
+ /**
141
+ * Make file writable by owner
142
+ */
143
+ makeFileWritable(path: string): PermissionOperationResult;
144
+ /**
145
+ * Make file executable by owner
146
+ */
147
+ makeFileExecutable(path: string): PermissionOperationResult;
148
+ /**
149
+ * Make file read-only (remove write permissions)
150
+ */
151
+ makeFileReadOnly(path: string): PermissionOperationResult;
152
+ /**
153
+ * Set common permission patterns
154
+ */
155
+ setCommonPermission(path: string, pattern: keyof typeof PERMISSION_MODES): PermissionOperationResult;
156
+ /**
157
+ * Atomic file write (crash-safe)
158
+ */
159
+ atomicWrite(options: AtomicWriteOptions): AtomicOperationResult;
160
+ /**
161
+ * Atomic JSON file write
162
+ */
163
+ atomicJsonWrite(path: string, data: Record<string, string | number | boolean | null>, options?: Partial<AtomicWriteOptions>): AtomicOperationResult;
164
+ /**
165
+ * Create backup of file
166
+ */
167
+ createFileBackup(options: BackupOptions): Promise<string>;
168
+ /**
169
+ * Restore file from backup
170
+ */
171
+ restoreFileFromBackup(backupPath: string, targetPath: string, deleteBackup?: boolean): Promise<boolean>;
172
+ /**
173
+ * Safe file update with automatic rollback
174
+ */
175
+ safeFileUpdate(path: string, updateFunction: (currentData: string) => Promise<string> | string, options?: Partial<AtomicWriteOptions>): AtomicOperationResult;
176
+ /**
177
+ * Batch atomic operations
178
+ */
179
+ batchAtomicOperations(operations: ReadonlyArray<AtomicWriteOptions>): Promise<{
180
+ successful: ReadonlyArray<AtomicOperationData>;
181
+ failed: ReadonlyArray<{
182
+ operation: AtomicWriteOptions;
183
+ error: Error;
184
+ }>;
185
+ }>;
186
+ }
187
+ export default BunFileManager;
188
+ //# sourceMappingURL=core.d.ts.map
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Bun File Manager - Main Export
3
+ * Clean exports for type-safe file operations
4
+ */
5
+ export { BunFileManager } from "./core";
6
+ export type { BulkDeleteResult, BulkOperationFunction, CreateOperationResult, DeleteOperationResult, DirectoryOptions, FileCreateOptions, FileData, FileFormat, FileInfo, FileManagerConfig, FileManagerError, FileOperationResult, FileReadOptions, FileSizeUnit, FileUpdateMode, FileUpdateOptions, JsonData, JsonPrimitive, ReadOperationResult, UpdateOperationResult, UtilityOperationResult, } from "./types";
7
+ export { createFileManagerError, DEFAULT_CONFIG, ensureDirectoryExists, ensureFileExtension, executeBulkOperation, extractDirectoryPath, extractFailedResults, extractSuccessfulResults, FILE_SIZE_UNITS, formatFileSize, isValidJson, resolvePath, safeJsonParse, safeJsonStringify, validateFileExtension, } from "./utils";
8
+ import { BunFileManager } from "./core";
9
+ /**
10
+ * Ready-to-use singleton instance
11
+ * Use this for immediate file operations
12
+ */
13
+ export declare const fileManager: BunFileManager;
14
+ /**
15
+ * Default export - singleton instance
16
+ */
17
+ export default fileManager;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Bun File Manager - Permissions Operations
3
+ * Cross-platform file permissions management
4
+ */
5
+ import type { FilePermissionMode, PermissionInfo, PermissionOperationResult, PermissionOptions } from "./types";
6
+ /**
7
+ * Common permission modes as constants
8
+ */
9
+ export declare const PERMISSION_MODES: {
10
+ readonly OWNER_READ_WRITE: 384;
11
+ readonly OWNER_ALL: 448;
12
+ readonly GROUP_READ: 416;
13
+ readonly GROUP_READ_WRITE: 432;
14
+ readonly ALL_READ: 420;
15
+ readonly ALL_READ_WRITE: 438;
16
+ readonly ALL_READ_EXECUTE: 493;
17
+ readonly ALL_FULL: 511;
18
+ readonly READ_ONLY: 292;
19
+ readonly EXECUTABLE: 493;
20
+ };
21
+ /**
22
+ * Sets file permissions using octal mode
23
+ */
24
+ export declare const setFilePermissions: (path: string, mode: FilePermissionMode) => PermissionOperationResult;
25
+ /**
26
+ * Sets file permissions using permission options
27
+ */
28
+ export declare const setPermissions: ({ path, mode, recursive, }: PermissionOptions) => PermissionOperationResult;
29
+ /**
30
+ * Gets detailed file permission information
31
+ */
32
+ export declare const getFilePermissions: (path: string) => Promise<PermissionInfo>;
33
+ /**
34
+ * Checks if file has specific permissions
35
+ */
36
+ export declare const hasPermissions: (path: string, requiredMode: FilePermissionMode) => Promise<boolean>;
37
+ /**
38
+ * Makes file readable by owner
39
+ */
40
+ export declare const makeReadable: (path: string) => PermissionOperationResult;
41
+ /**
42
+ * Makes file writable by owner
43
+ */
44
+ export declare const makeWritable: (path: string) => PermissionOperationResult;
45
+ /**
46
+ * Makes file executable by owner
47
+ */
48
+ export declare const makeExecutable: (path: string) => PermissionOperationResult;
49
+ /**
50
+ * Removes write permissions (makes read-only)
51
+ */
52
+ export declare const makeReadOnly: (path: string) => PermissionOperationResult;
53
+ /**
54
+ * Sets common permission patterns
55
+ */
56
+ export declare const setCommonPermissions: (path: string, pattern: keyof typeof PERMISSION_MODES) => PermissionOperationResult;
57
+ /**
58
+ * Bulk permission operations
59
+ */
60
+ export declare const setBulkPermissions: (paths: ReadonlyArray<string>, mode: FilePermissionMode) => Promise<{
61
+ success: string[];
62
+ failed: string[];
63
+ }>;
64
+ /**
65
+ * Creates permission mode from readable format
66
+ */
67
+ export declare const createPermissionFromReadable: (ownerRead: boolean, ownerWrite: boolean, ownerExecute: boolean, groupRead?: boolean, groupWrite?: boolean, groupExecute?: boolean, othersRead?: boolean, othersWrite?: boolean, othersExecute?: boolean) => FilePermissionMode;
68
+ /**
69
+ * Formats permission mode as human-readable string
70
+ */
71
+ export declare const formatPermissions: (mode: FilePermissionMode) => string;
72
+ //# sourceMappingURL=permissions.d.ts.map
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Bun File Manager - Streaming Operations
3
+ * FileSink based streaming for large file operations
4
+ */
5
+ import type { FileSinkOptions, StreamChunk, StreamOperationResult, StreamWriter } from "./types";
6
+ /**
7
+ * Default streaming configuration
8
+ */
9
+ export declare const DEFAULT_STREAM_CONFIG: Required<FileSinkOptions>;
10
+ /**
11
+ * Creates a file writer using Bun's FileSink
12
+ */
13
+ export declare const createFileWriter: (path: string, options?: FileSinkOptions) => Promise<StreamWriter>;
14
+ /**
15
+ * Writes data to file using streaming
16
+ */
17
+ export declare const writeStream: (path: string, chunks: ReadonlyArray<StreamChunk>, options?: FileSinkOptions) => StreamOperationResult;
18
+ /**
19
+ * Appends data to file using streaming
20
+ */
21
+ export declare const appendStream: (path: string, chunks: ReadonlyArray<StreamChunk>, options?: FileSinkOptions) => StreamOperationResult;
22
+ /**
23
+ * Copies file using streaming (efficient for large files)
24
+ */
25
+ export declare const copyFileStream: (sourcePath: string, destinationPath: string, options?: FileSinkOptions) => StreamOperationResult;
26
+ /**
27
+ * Reads file in chunks using streaming
28
+ */
29
+ export declare const readFileStream: (path: string, chunkProcessor: (chunk: Uint8Array) => Promise<void>) => Promise<void>;
30
+ //# sourceMappingURL=streaming.d.ts.map
@@ -0,0 +1,146 @@
1
+ /**
2
+ * Bun File Manager - Type Definitions
3
+ * Fully type-safe definitions with dynamic type construction
4
+ */
5
+ export type FileData = string | Blob | ArrayBuffer | Uint8Array;
6
+ export type FileFormat = "text" | "json" | "buffer" | "bytes" | "stream";
7
+ export type FileUpdateMode = "overwrite" | "append";
8
+ export type FileCreateOptions = {
9
+ readonly dir: string;
10
+ readonly name: string;
11
+ readonly data: FileData;
12
+ readonly options?: {
13
+ readonly type?: string;
14
+ readonly createDir?: boolean;
15
+ };
16
+ };
17
+ export type FileReadOptions = {
18
+ readonly path: string;
19
+ readonly format?: FileFormat;
20
+ };
21
+ export type FileUpdateOptions = {
22
+ readonly path: string;
23
+ readonly data: FileData;
24
+ readonly mode?: FileUpdateMode;
25
+ };
26
+ export type DirectoryOptions = {
27
+ readonly path: string;
28
+ readonly recursive?: boolean;
29
+ };
30
+ export type FileInfo = {
31
+ readonly name: string;
32
+ readonly path: string;
33
+ readonly size: number;
34
+ readonly type: string;
35
+ readonly exists: boolean;
36
+ readonly extension: string;
37
+ readonly createdAt?: Date;
38
+ readonly modifiedAt?: Date;
39
+ };
40
+ export type BulkDeleteResult = {
41
+ readonly success: ReadonlyArray<string>;
42
+ readonly failed: ReadonlyArray<string>;
43
+ };
44
+ export type FileOperationResult<T> = {
45
+ readonly success: boolean;
46
+ readonly data?: T;
47
+ readonly error?: string;
48
+ };
49
+ export type JsonPrimitive = string | number | boolean | null;
50
+ export type JsonData = JsonPrimitive | object;
51
+ export type BulkOperationFunction<T, R> = (item: T) => Promise<R>;
52
+ export type FileSizeUnit = "B" | "KB" | "MB" | "GB" | "TB";
53
+ export type FileManagerConfig = {
54
+ readonly defaultEncoding: string;
55
+ readonly defaultCreateDir: boolean;
56
+ readonly defaultRecursive: boolean;
57
+ readonly maxConcurrency: number;
58
+ };
59
+ export type FileManagerError = {
60
+ readonly code: string;
61
+ readonly message: string;
62
+ readonly path?: string;
63
+ readonly operation: string;
64
+ };
65
+ export type CreateOperationResult = Promise<number>;
66
+ export type ReadOperationResult<T = string> = Promise<T>;
67
+ export type UpdateOperationResult = Promise<number>;
68
+ export type DeleteOperationResult = Promise<boolean>;
69
+ export type UtilityOperationResult<T = boolean> = Promise<T>;
70
+ export type FileSinkOptions = {
71
+ readonly highWaterMark?: number;
72
+ readonly autoFlush?: boolean;
73
+ readonly closeOnEnd?: boolean;
74
+ };
75
+ export type StreamChunk = string | ArrayBuffer | Uint8Array;
76
+ export type StreamOperationResult = Promise<number>;
77
+ export type StreamWriter = {
78
+ readonly write: (chunk: StreamChunk) => number | Promise<number>;
79
+ readonly flush: () => number | Promise<number>;
80
+ readonly end: (error?: Error) => number | Promise<number>;
81
+ readonly ref: () => void;
82
+ readonly unref: () => void;
83
+ };
84
+ export type FilePermissionMode = number;
85
+ export type PermissionOptions = {
86
+ readonly path: string;
87
+ readonly mode: FilePermissionMode;
88
+ readonly recursive?: boolean;
89
+ };
90
+ export type PermissionInfo = {
91
+ readonly path: string;
92
+ readonly mode: FilePermissionMode;
93
+ readonly owner: {
94
+ readonly read: boolean;
95
+ readonly write: boolean;
96
+ readonly execute: boolean;
97
+ };
98
+ readonly group: {
99
+ readonly read: boolean;
100
+ readonly write: boolean;
101
+ readonly execute: boolean;
102
+ };
103
+ readonly others: {
104
+ readonly read: boolean;
105
+ readonly write: boolean;
106
+ readonly execute: boolean;
107
+ };
108
+ };
109
+ export type PermissionOperationResult = Promise<boolean>;
110
+ export type AtomicWriteOptions = {
111
+ readonly path: string;
112
+ readonly data: FileData;
113
+ readonly tempSuffix?: string;
114
+ readonly backup?: boolean;
115
+ readonly sync?: boolean;
116
+ };
117
+ export type AtomicOperationResult = Promise<{
118
+ readonly success: boolean;
119
+ readonly bytesWritten: number;
120
+ readonly tempPath?: string;
121
+ readonly backupPath?: string;
122
+ }>;
123
+ export type AtomicOperationData = {
124
+ readonly success: boolean;
125
+ readonly bytesWritten: number;
126
+ readonly tempPath?: string;
127
+ readonly backupPath?: string;
128
+ };
129
+ export type BackupOptions = {
130
+ readonly sourcePath: string;
131
+ readonly backupDir?: string;
132
+ readonly keepOriginal?: boolean;
133
+ readonly timestamp?: boolean;
134
+ };
135
+ export type ConfigValidationResult = {
136
+ readonly isValid: boolean;
137
+ readonly errors: ReadonlyArray<string>;
138
+ readonly warnings: ReadonlyArray<string>;
139
+ };
140
+ export type PartialFileManagerConfig = Partial<FileManagerConfig>;
141
+ export type ConfigValidationOptions = {
142
+ readonly strict?: boolean;
143
+ readonly allowUnknownKeys?: boolean;
144
+ readonly validatePaths?: boolean;
145
+ };
146
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Bun File Manager - Utility Functions
3
+ * Type-safe helper functions for file operations
4
+ */
5
+ import type { BulkOperationFunction, ConfigValidationOptions, ConfigValidationResult, FileManagerConfig, FileManagerError, FilePermissionMode, FileSizeUnit, JsonData, PartialFileManagerConfig } from "./types";
6
+ export declare const DEFAULT_CONFIG: FileManagerConfig;
7
+ export declare const FILE_SIZE_UNITS: ReadonlyArray<FileSizeUnit>;
8
+ /**
9
+ * Resolves and validates file path
10
+ */
11
+ export declare const resolvePath: (path: string) => string;
12
+ /**
13
+ * Extracts directory path from file path
14
+ */
15
+ export declare const extractDirectoryPath: (filePath: string) => string;
16
+ /**
17
+ * Ensures directory exists, creates if not
18
+ */
19
+ export declare const ensureDirectoryExists: (dirPath: string) => Promise<void>;
20
+ /**
21
+ * Validates if path is accessible
22
+ */
23
+ export declare const validatePathAccess: (path: string) => Promise<boolean>;
24
+ /**
25
+ * Formats file size from bytes to human readable format
26
+ */
27
+ export declare const formatFileSize: (bytes: number) => string;
28
+ /**
29
+ * Validates file extension
30
+ */
31
+ export declare const validateFileExtension: (fileName: string, expectedExtension: string) => boolean;
32
+ /**
33
+ * Adds extension to filename if not present
34
+ */
35
+ export declare const ensureFileExtension: (fileName: string, extension: string) => string;
36
+ /**
37
+ * Creates standardized error object
38
+ */
39
+ export declare const createFileManagerError: (code: string, message: string, path?: string, operation?: string) => FileManagerError;
40
+ /**
41
+ * Safely parses JSON string with error handling
42
+ */
43
+ export declare const safeJsonParse: <T = JsonData>(jsonString: string) => T | null;
44
+ /**
45
+ * Safely stringifies JSON with error handling
46
+ */
47
+ export declare const safeJsonStringify: (data: string | number | boolean | null | object) => string;
48
+ /**
49
+ * Validates if string is valid JSON
50
+ */
51
+ export declare const isValidJson: (str: string) => boolean;
52
+ /**
53
+ * Executes bulk operations with concurrency control
54
+ */
55
+ export declare const executeBulkOperation: <T, R>(items: ReadonlyArray<T>, operation: BulkOperationFunction<T, R>, concurrency?: number) => Promise<ReadonlyArray<PromiseSettledResult<R>>>;
56
+ /**
57
+ * Creates array of successful results from bulk operation
58
+ */
59
+ export declare const extractSuccessfulResults: <T>(results: ReadonlyArray<PromiseSettledResult<T>>) => ReadonlyArray<T>;
60
+ /**
61
+ * Creates array of failed results from bulk operation
62
+ */
63
+ export declare const extractFailedResults: <T>(results: ReadonlyArray<PromiseSettledResult<T>>) => ReadonlyArray<string>;
64
+ /**
65
+ * Validates file manager configuration
66
+ */
67
+ export declare const validateConfig: (config: PartialFileManagerConfig, options?: ConfigValidationOptions) => ConfigValidationResult;
68
+ /**
69
+ * Merges partial config with defaults safely
70
+ */
71
+ export declare const mergeConfig: (partial: PartialFileManagerConfig, base?: FileManagerConfig) => FileManagerConfig;
72
+ /**
73
+ * Converts octal permission to readable format
74
+ */
75
+ export declare const parsePermissions: (mode: FilePermissionMode) => {
76
+ owner: {
77
+ read: boolean;
78
+ write: boolean;
79
+ execute: boolean;
80
+ };
81
+ group: {
82
+ read: boolean;
83
+ write: boolean;
84
+ execute: boolean;
85
+ };
86
+ others: {
87
+ read: boolean;
88
+ write: boolean;
89
+ execute: boolean;
90
+ };
91
+ };
92
+ /**
93
+ * Converts readable permissions to octal
94
+ */
95
+ export declare const createPermissionMode: (owner: {
96
+ read: boolean;
97
+ write: boolean;
98
+ execute: boolean;
99
+ }, group: {
100
+ read: boolean;
101
+ write: boolean;
102
+ execute: boolean;
103
+ }, others: {
104
+ read: boolean;
105
+ write: boolean;
106
+ execute: boolean;
107
+ }) => FilePermissionMode;
108
+ /**
109
+ * Validates permission mode
110
+ */
111
+ export declare const validatePermissionMode: (mode: FilePermissionMode) => boolean;
112
+ //# sourceMappingURL=utils.d.ts.map