@temboplus/afloat 0.1.77-beta.9 → 0.1.79

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 +7 -0
  2. package/README.md +42 -246
  3. package/esm/mod.d.ts +8 -0
  4. package/esm/mod.d.ts.map +1 -0
  5. package/esm/mod.js +7 -0
  6. package/esm/package.json +3 -0
  7. package/{dist/lib/error/error.api.d.ts → esm/src/errors/api_error.d.ts} +1 -0
  8. package/esm/src/errors/api_error.d.ts.map +1 -0
  9. package/esm/src/errors/api_error.js +90 -0
  10. package/esm/src/errors/index.d.ts +3 -0
  11. package/esm/src/errors/index.d.ts.map +1 -0
  12. package/esm/src/errors/index.js +2 -0
  13. package/{dist/lib/error/error.permission.d.ts → esm/src/errors/permission_error.d.ts} +2 -1
  14. package/esm/src/errors/permission_error.d.ts.map +1 -0
  15. package/esm/src/errors/permission_error.js +70 -0
  16. package/{dist/modules/team-member/team-member.contract.d.ts → esm/src/features/admin/contract.d.ts} +158 -233
  17. package/esm/src/features/admin/contract.d.ts.map +1 -0
  18. package/esm/src/features/admin/contract.js +210 -0
  19. package/esm/src/features/admin/index.d.ts +4 -0
  20. package/esm/src/features/admin/index.d.ts.map +1 -0
  21. package/esm/src/features/admin/index.js +3 -0
  22. package/esm/src/features/admin/repository.d.ts +114 -0
  23. package/esm/src/features/admin/repository.d.ts.map +1 -0
  24. package/esm/src/features/admin/repository.js +248 -0
  25. package/esm/src/features/admin/schemas.d.ts +146 -0
  26. package/esm/src/features/admin/schemas.d.ts.map +1 -0
  27. package/esm/src/features/admin/schemas.js +206 -0
  28. package/esm/src/features/auth/access/contract.d.ts +14 -0
  29. package/esm/src/features/auth/access/contract.d.ts.map +1 -0
  30. package/esm/src/features/auth/access/contract.js +14 -0
  31. package/esm/src/features/auth/access/repository.d.ts +11 -0
  32. package/esm/src/features/auth/access/repository.d.ts.map +1 -0
  33. package/esm/src/features/auth/access/repository.js +25 -0
  34. package/{dist/modules/auth/auth.contract.d.ts → esm/src/features/auth/contract.d.ts} +19 -16
  35. package/esm/src/features/auth/contract.d.ts.map +1 -0
  36. package/esm/src/features/auth/contract.js +43 -0
  37. package/esm/src/features/auth/identity/contract.d.ts +23 -0
  38. package/esm/src/features/auth/identity/contract.d.ts.map +1 -0
  39. package/esm/src/features/auth/identity/contract.js +17 -0
  40. package/esm/src/features/auth/identity/repository.d.ts +22 -0
  41. package/esm/src/features/auth/identity/repository.d.ts.map +1 -0
  42. package/esm/src/features/auth/identity/repository.js +30 -0
  43. package/esm/src/features/auth/index.d.ts +6 -0
  44. package/esm/src/features/auth/index.d.ts.map +1 -0
  45. package/esm/src/features/auth/index.js +5 -0
  46. package/esm/src/features/auth/manager.d.ts +105 -0
  47. package/esm/src/features/auth/manager.d.ts.map +1 -0
  48. package/esm/src/features/auth/manager.js +181 -0
  49. package/{dist/modules/profile/profile.api-contract.d.ts → esm/src/features/auth/profile/contract.d.ts} +6 -8
  50. package/esm/src/features/auth/profile/contract.d.ts.map +1 -0
  51. package/esm/src/features/auth/profile/contract.js +14 -0
  52. package/esm/src/features/auth/profile/repository.d.ts +11 -0
  53. package/esm/src/features/auth/profile/repository.d.ts.map +1 -0
  54. package/esm/src/features/auth/profile/repository.js +25 -0
  55. package/esm/src/features/auth/repository.d.ts +30 -0
  56. package/esm/src/features/auth/repository.d.ts.map +1 -0
  57. package/esm/src/features/auth/repository.js +69 -0
  58. package/{dist/modules/auth/storage/client-store.d.ts → esm/src/features/auth/storage/client_store.d.ts} +2 -1
  59. package/esm/src/features/auth/storage/client_store.d.ts.map +1 -0
  60. package/esm/src/features/auth/storage/client_store.js +46 -0
  61. package/{dist/modules/auth/storage/client-token-handler.d.ts → esm/src/features/auth/storage/client_token_handler.d.ts} +1 -0
  62. package/esm/src/features/auth/storage/client_token_handler.d.ts.map +1 -0
  63. package/esm/src/features/auth/storage/client_token_handler.js +36 -0
  64. package/esm/src/features/auth/storage/server_store.d.ts +24 -0
  65. package/esm/src/features/auth/storage/server_store.d.ts.map +1 -0
  66. package/esm/src/features/auth/storage/server_store.js +34 -0
  67. package/esm/src/features/auth/storage/server_token_handler.d.ts +36 -0
  68. package/esm/src/features/auth/storage/server_token_handler.d.ts.map +1 -0
  69. package/esm/src/features/auth/storage/server_token_handler.js +115 -0
  70. package/{dist/modules → esm/src/features}/auth/storage/types.d.ts +2 -1
  71. package/esm/src/features/auth/storage/types.d.ts.map +1 -0
  72. package/esm/src/features/auth/storage/types.js +1 -0
  73. package/{dist/modules/contact/contact.api-contract.d.ts → esm/src/features/contact/contract.d.ts} +55 -88
  74. package/esm/src/features/contact/contract.d.ts.map +1 -0
  75. package/esm/src/features/contact/contract.js +49 -0
  76. package/esm/src/features/contact/index.d.ts +2 -0
  77. package/esm/src/features/contact/index.d.ts.map +1 -0
  78. package/esm/src/features/contact/index.js +1 -0
  79. package/esm/src/features/contact/repository.d.ts +58 -0
  80. package/esm/src/features/contact/repository.d.ts.map +1 -0
  81. package/esm/src/features/contact/repository.js +108 -0
  82. package/{dist/modules/payout/payout.api-contract.d.ts → esm/src/features/payout/contract.d.ts} +197 -340
  83. package/esm/src/features/payout/contract.d.ts.map +1 -0
  84. package/esm/src/features/payout/contract.js +75 -0
  85. package/esm/src/features/payout/index.d.ts +2 -0
  86. package/esm/src/features/payout/index.d.ts.map +1 -0
  87. package/esm/src/features/payout/index.js +1 -0
  88. package/esm/src/features/payout/repository.d.ts +67 -0
  89. package/esm/src/features/payout/repository.d.ts.map +1 -0
  90. package/esm/src/features/payout/repository.js +163 -0
  91. package/{dist/modules/wallet/wallet.contract.d.ts → esm/src/features/wallet/contract.d.ts} +11 -13
  92. package/esm/src/features/wallet/contract.d.ts.map +1 -0
  93. package/esm/src/features/wallet/contract.js +38 -0
  94. package/esm/src/features/wallet/index.d.ts +2 -0
  95. package/esm/src/features/wallet/index.d.ts.map +1 -0
  96. package/esm/src/features/wallet/index.js +1 -0
  97. package/esm/src/features/wallet/repository.d.ts +57 -0
  98. package/esm/src/features/wallet/repository.d.ts.map +1 -0
  99. package/esm/src/features/wallet/repository.js +93 -0
  100. package/esm/src/models/contact/derivatives/contact.d.ts +172 -0
  101. package/esm/src/models/contact/derivatives/contact.d.ts.map +1 -0
  102. package/esm/src/models/contact/derivatives/contact.js +266 -0
  103. package/esm/src/models/contact/derivatives/contact_info.d.ts +188 -0
  104. package/esm/src/models/contact/derivatives/contact_info.d.ts.map +1 -0
  105. package/esm/src/models/contact/derivatives/contact_info.js +255 -0
  106. package/esm/src/models/contact/index.d.ts +5 -0
  107. package/esm/src/models/contact/index.d.ts.map +1 -0
  108. package/esm/src/models/contact/index.js +4 -0
  109. package/esm/src/models/contact/schemas.d.ts +66 -0
  110. package/esm/src/models/contact/schemas.d.ts.map +1 -0
  111. package/esm/src/models/contact/schemas.js +64 -0
  112. package/esm/src/models/contact/validation.d.ts +37 -0
  113. package/esm/src/models/contact/validation.d.ts.map +1 -0
  114. package/esm/src/models/contact/validation.js +146 -0
  115. package/esm/src/models/index.d.ts +7 -0
  116. package/esm/src/models/index.d.ts.map +1 -0
  117. package/esm/src/models/index.js +6 -0
  118. package/esm/src/models/payout/api.d.ts +29 -0
  119. package/esm/src/models/payout/api.d.ts.map +1 -0
  120. package/esm/src/models/payout/api.js +1 -0
  121. package/esm/src/models/payout/channel.d.ts +58 -0
  122. package/esm/src/models/payout/channel.d.ts.map +1 -0
  123. package/esm/src/models/payout/channel.js +53 -0
  124. package/esm/src/models/payout/derivatives/payout.d.ts +158 -0
  125. package/esm/src/models/payout/derivatives/payout.d.ts.map +1 -0
  126. package/esm/src/models/payout/derivatives/payout.js +271 -0
  127. package/esm/src/models/payout/index.d.ts +7 -0
  128. package/esm/src/models/payout/index.d.ts.map +1 -0
  129. package/esm/src/models/payout/index.js +6 -0
  130. package/esm/src/models/payout/narration.d.ts +164 -0
  131. package/esm/src/models/payout/narration.d.ts.map +1 -0
  132. package/esm/src/models/payout/narration.js +308 -0
  133. package/esm/src/models/payout/schemas.d.ts +156 -0
  134. package/esm/src/models/payout/schemas.d.ts.map +1 -0
  135. package/esm/src/models/payout/schemas.js +105 -0
  136. package/esm/src/models/payout/status.d.ts +33 -0
  137. package/esm/src/models/payout/status.d.ts.map +1 -0
  138. package/esm/src/models/payout/status.js +34 -0
  139. package/{dist/modules/login/permission.type.d.ts → esm/src/models/permission.d.ts} +9 -8
  140. package/esm/src/models/permission.d.ts.map +1 -0
  141. package/esm/src/models/permission.js +50 -0
  142. package/esm/src/models/role.d.ts +21 -0
  143. package/esm/src/models/role.d.ts.map +1 -0
  144. package/esm/src/models/role.js +73 -0
  145. package/esm/src/models/user/authenticated-user.d.ts +77 -0
  146. package/esm/src/models/user/authenticated-user.d.ts.map +1 -0
  147. package/esm/src/models/user/authenticated-user.js +226 -0
  148. package/esm/src/models/user/index.d.ts +4 -0
  149. package/esm/src/models/user/index.d.ts.map +1 -0
  150. package/esm/src/models/user/index.js +3 -0
  151. package/esm/src/models/user/managed-user.d.ts +108 -0
  152. package/esm/src/models/user/managed-user.d.ts.map +1 -0
  153. package/esm/src/models/user/managed-user.js +255 -0
  154. package/{dist/modules/profile/profile.model.d.ts → esm/src/models/user/profile.d.ts} +52 -81
  155. package/esm/src/models/user/profile.d.ts.map +1 -0
  156. package/esm/src/models/user/profile.js +334 -0
  157. package/esm/src/models/wallet/index.d.ts +4 -0
  158. package/esm/src/models/wallet/index.d.ts.map +1 -0
  159. package/esm/src/models/wallet/index.js +3 -0
  160. package/esm/src/models/wallet/schemas.d.ts +95 -0
  161. package/esm/src/models/wallet/schemas.d.ts.map +1 -0
  162. package/esm/src/models/wallet/schemas.js +35 -0
  163. package/esm/src/models/wallet/statement_entry.d.ts +160 -0
  164. package/esm/src/models/wallet/statement_entry.d.ts.map +1 -0
  165. package/esm/src/models/wallet/statement_entry.js +255 -0
  166. package/{dist/modules/wallet/wallet.model.d.ts → esm/src/models/wallet/wallet.d.ts} +37 -31
  167. package/esm/src/models/wallet/wallet.d.ts.map +1 -0
  168. package/esm/src/models/wallet/wallet.js +279 -0
  169. package/esm/src/shared/base_repository.d.ts +80 -0
  170. package/esm/src/shared/base_repository.d.ts.map +1 -0
  171. package/esm/src/shared/base_repository.js +153 -0
  172. package/esm/src/shared/common_responses.d.ts +13 -0
  173. package/esm/src/shared/common_responses.d.ts.map +1 -0
  174. package/esm/src/shared/common_responses.js +10 -0
  175. package/esm/src/shared/index.d.ts +3 -0
  176. package/esm/src/shared/index.d.ts.map +1 -0
  177. package/esm/src/shared/index.js +2 -0
  178. package/esm/src/shared/token_required_repository.d.ts +78 -0
  179. package/esm/src/shared/token_required_repository.d.ts.map +1 -0
  180. package/esm/src/shared/token_required_repository.js +128 -0
  181. package/package.json +23 -49
  182. package/script/mod.d.ts +8 -0
  183. package/script/mod.d.ts.map +1 -0
  184. package/script/mod.js +23 -0
  185. package/script/npm/src/mod.d.ts +8 -0
  186. package/script/npm/src/mod.d.ts.map +1 -0
  187. package/script/npm/src/mod.js +23 -0
  188. package/script/npm/src/src/errors/api_error.d.ts +63 -0
  189. package/script/npm/src/src/errors/api_error.d.ts.map +1 -0
  190. package/script/npm/src/src/errors/api_error.js +94 -0
  191. package/script/npm/src/src/errors/index.d.ts +3 -0
  192. package/script/npm/src/src/errors/index.d.ts.map +1 -0
  193. package/script/npm/src/src/errors/index.js +18 -0
  194. package/script/npm/src/src/errors/permission_error.d.ts +48 -0
  195. package/script/npm/src/src/errors/permission_error.d.ts.map +1 -0
  196. package/script/npm/src/src/errors/permission_error.js +74 -0
  197. package/script/npm/src/src/features/admin/contract.d.ts +842 -0
  198. package/script/npm/src/src/features/admin/contract.d.ts.map +1 -0
  199. package/script/npm/src/src/features/admin/contract.js +213 -0
  200. package/script/npm/src/src/features/admin/index.d.ts +4 -0
  201. package/script/npm/src/src/features/admin/index.d.ts.map +1 -0
  202. package/script/npm/src/src/features/admin/index.js +19 -0
  203. package/script/npm/src/src/features/admin/repository.d.ts +114 -0
  204. package/script/npm/src/src/features/admin/repository.d.ts.map +1 -0
  205. package/script/npm/src/src/features/admin/repository.js +252 -0
  206. package/script/npm/src/src/features/admin/schemas.d.ts +146 -0
  207. package/script/npm/src/src/features/admin/schemas.d.ts.map +1 -0
  208. package/script/npm/src/src/features/admin/schemas.js +209 -0
  209. package/script/npm/src/src/features/auth/access/contract.d.ts +14 -0
  210. package/script/npm/src/src/features/auth/access/contract.d.ts.map +1 -0
  211. package/script/npm/src/src/features/auth/access/contract.js +17 -0
  212. package/script/npm/src/src/features/auth/access/repository.d.ts +11 -0
  213. package/script/npm/src/src/features/auth/access/repository.d.ts.map +1 -0
  214. package/script/npm/src/src/features/auth/access/repository.js +29 -0
  215. package/script/npm/src/src/features/auth/contract.d.ts +112 -0
  216. package/script/npm/src/src/features/auth/contract.d.ts.map +1 -0
  217. package/script/npm/src/src/features/auth/contract.js +46 -0
  218. package/script/npm/src/src/features/auth/identity/contract.d.ts +23 -0
  219. package/script/npm/src/src/features/auth/identity/contract.d.ts.map +1 -0
  220. package/script/npm/src/src/features/auth/identity/contract.js +20 -0
  221. package/script/npm/src/src/features/auth/identity/repository.d.ts +22 -0
  222. package/script/npm/src/src/features/auth/identity/repository.d.ts.map +1 -0
  223. package/script/npm/src/src/features/auth/identity/repository.js +34 -0
  224. package/script/npm/src/src/features/auth/index.d.ts +6 -0
  225. package/script/npm/src/src/features/auth/index.d.ts.map +1 -0
  226. package/script/npm/src/src/features/auth/index.js +21 -0
  227. package/script/npm/src/src/features/auth/manager.d.ts +105 -0
  228. package/script/npm/src/src/features/auth/manager.d.ts.map +1 -0
  229. package/script/npm/src/src/features/auth/manager.js +185 -0
  230. package/script/npm/src/src/features/auth/profile/contract.d.ts +37 -0
  231. package/script/npm/src/src/features/auth/profile/contract.d.ts.map +1 -0
  232. package/script/npm/src/src/features/auth/profile/contract.js +17 -0
  233. package/script/npm/src/src/features/auth/profile/repository.d.ts +11 -0
  234. package/script/npm/src/src/features/auth/profile/repository.d.ts.map +1 -0
  235. package/script/npm/src/src/features/auth/profile/repository.js +29 -0
  236. package/script/npm/src/src/features/auth/repository.d.ts +30 -0
  237. package/script/npm/src/src/features/auth/repository.d.ts.map +1 -0
  238. package/script/npm/src/src/features/auth/repository.js +73 -0
  239. package/script/npm/src/src/features/auth/storage/client_store.d.ts +30 -0
  240. package/script/npm/src/src/features/auth/storage/client_store.d.ts.map +1 -0
  241. package/script/npm/src/src/features/auth/storage/client_store.js +51 -0
  242. package/script/npm/src/src/features/auth/storage/client_token_handler.d.ts +32 -0
  243. package/script/npm/src/src/features/auth/storage/client_token_handler.d.ts.map +1 -0
  244. package/script/npm/src/src/features/auth/storage/client_token_handler.js +40 -0
  245. package/script/npm/src/src/features/auth/storage/server_store.d.ts +24 -0
  246. package/script/npm/src/src/features/auth/storage/server_store.d.ts.map +1 -0
  247. package/script/npm/src/src/features/auth/storage/server_store.js +38 -0
  248. package/script/npm/src/src/features/auth/storage/server_token_handler.d.ts +36 -0
  249. package/script/npm/src/src/features/auth/storage/server_token_handler.d.ts.map +1 -0
  250. package/script/npm/src/src/features/auth/storage/server_token_handler.js +119 -0
  251. package/script/npm/src/src/features/auth/storage/types.d.ts +42 -0
  252. package/script/npm/src/src/features/auth/storage/types.d.ts.map +1 -0
  253. package/script/npm/src/src/features/auth/storage/types.js +2 -0
  254. package/script/npm/src/src/features/contact/contract.d.ts +170 -0
  255. package/script/npm/src/src/features/contact/contract.d.ts.map +1 -0
  256. package/script/npm/src/src/features/contact/contract.js +52 -0
  257. package/script/npm/src/src/features/contact/index.d.ts +2 -0
  258. package/script/npm/src/src/features/contact/index.d.ts.map +1 -0
  259. package/script/npm/src/src/features/contact/index.js +17 -0
  260. package/script/npm/src/src/features/contact/repository.d.ts +58 -0
  261. package/script/npm/src/src/features/contact/repository.d.ts.map +1 -0
  262. package/script/npm/src/src/features/contact/repository.js +112 -0
  263. package/script/npm/src/src/features/payout/contract.d.ts +623 -0
  264. package/script/npm/src/src/features/payout/contract.d.ts.map +1 -0
  265. package/script/npm/src/src/features/payout/contract.js +78 -0
  266. package/script/npm/src/src/features/payout/index.d.ts +2 -0
  267. package/script/npm/src/src/features/payout/index.d.ts.map +1 -0
  268. package/script/npm/src/src/features/payout/index.js +17 -0
  269. package/script/npm/src/src/features/payout/repository.d.ts +67 -0
  270. package/script/npm/src/src/features/payout/repository.d.ts.map +1 -0
  271. package/script/npm/src/src/features/payout/repository.js +167 -0
  272. package/script/npm/src/src/features/wallet/contract.d.ts +137 -0
  273. package/script/npm/src/src/features/wallet/contract.d.ts.map +1 -0
  274. package/script/npm/src/src/features/wallet/contract.js +41 -0
  275. package/script/npm/src/src/features/wallet/index.d.ts +2 -0
  276. package/script/npm/src/src/features/wallet/index.d.ts.map +1 -0
  277. package/script/npm/src/src/features/wallet/index.js +17 -0
  278. package/script/npm/src/src/features/wallet/repository.d.ts +57 -0
  279. package/script/npm/src/src/features/wallet/repository.d.ts.map +1 -0
  280. package/script/npm/src/src/features/wallet/repository.js +97 -0
  281. package/script/npm/src/src/models/contact/derivatives/contact.d.ts +172 -0
  282. package/script/npm/src/src/models/contact/derivatives/contact.d.ts.map +1 -0
  283. package/script/npm/src/src/models/contact/derivatives/contact.js +270 -0
  284. package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts +188 -0
  285. package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts.map +1 -0
  286. package/script/npm/src/src/models/contact/derivatives/contact_info.js +260 -0
  287. package/script/npm/src/src/models/contact/index.d.ts +5 -0
  288. package/script/npm/src/src/models/contact/index.d.ts.map +1 -0
  289. package/script/npm/src/src/models/contact/index.js +20 -0
  290. package/script/npm/src/src/models/contact/schemas.d.ts +66 -0
  291. package/script/npm/src/src/models/contact/schemas.d.ts.map +1 -0
  292. package/script/npm/src/src/models/contact/schemas.js +67 -0
  293. package/script/npm/src/src/models/contact/validation.d.ts +37 -0
  294. package/script/npm/src/src/models/contact/validation.d.ts.map +1 -0
  295. package/script/npm/src/src/models/contact/validation.js +153 -0
  296. package/script/npm/src/src/models/index.d.ts +7 -0
  297. package/script/npm/src/src/models/index.d.ts.map +1 -0
  298. package/script/npm/src/src/models/index.js +22 -0
  299. package/script/npm/src/src/models/payout/api.d.ts +29 -0
  300. package/script/npm/src/src/models/payout/api.d.ts.map +1 -0
  301. package/script/npm/src/src/models/payout/api.js +2 -0
  302. package/script/npm/src/src/models/payout/channel.d.ts +58 -0
  303. package/script/npm/src/src/models/payout/channel.d.ts.map +1 -0
  304. package/script/npm/src/src/models/payout/channel.js +56 -0
  305. package/script/npm/src/src/models/payout/derivatives/payout.d.ts +158 -0
  306. package/script/npm/src/src/models/payout/derivatives/payout.d.ts.map +1 -0
  307. package/script/npm/src/src/models/payout/derivatives/payout.js +275 -0
  308. package/script/npm/src/src/models/payout/index.d.ts +7 -0
  309. package/script/npm/src/src/models/payout/index.d.ts.map +1 -0
  310. package/script/npm/src/src/models/payout/index.js +22 -0
  311. package/script/npm/src/src/models/payout/narration.d.ts +164 -0
  312. package/script/npm/src/src/models/payout/narration.d.ts.map +1 -0
  313. package/script/npm/src/src/models/payout/narration.js +312 -0
  314. package/script/npm/src/src/models/payout/schemas.d.ts +156 -0
  315. package/script/npm/src/src/models/payout/schemas.d.ts.map +1 -0
  316. package/script/npm/src/src/models/payout/schemas.js +108 -0
  317. package/script/npm/src/src/models/payout/status.d.ts +33 -0
  318. package/script/npm/src/src/models/payout/status.d.ts.map +1 -0
  319. package/script/npm/src/src/models/payout/status.js +37 -0
  320. package/script/npm/src/src/models/permission.d.ts +55 -0
  321. package/script/npm/src/src/models/permission.d.ts.map +1 -0
  322. package/script/npm/src/src/models/permission.js +53 -0
  323. package/script/npm/src/src/models/role.d.ts +21 -0
  324. package/script/npm/src/src/models/role.d.ts.map +1 -0
  325. package/script/npm/src/src/models/role.js +77 -0
  326. package/script/npm/src/src/models/user/authenticated-user.d.ts +77 -0
  327. package/script/npm/src/src/models/user/authenticated-user.d.ts.map +1 -0
  328. package/script/npm/src/src/models/user/authenticated-user.js +230 -0
  329. package/script/npm/src/src/models/user/index.d.ts +4 -0
  330. package/script/npm/src/src/models/user/index.d.ts.map +1 -0
  331. package/script/npm/src/src/models/user/index.js +19 -0
  332. package/script/npm/src/src/models/user/managed-user.d.ts +108 -0
  333. package/script/npm/src/src/models/user/managed-user.d.ts.map +1 -0
  334. package/script/npm/src/src/models/user/managed-user.js +260 -0
  335. package/script/npm/src/src/models/user/profile.d.ts +161 -0
  336. package/script/npm/src/src/models/user/profile.d.ts.map +1 -0
  337. package/script/npm/src/src/models/user/profile.js +338 -0
  338. package/script/npm/src/src/models/wallet/index.d.ts +4 -0
  339. package/script/npm/src/src/models/wallet/index.d.ts.map +1 -0
  340. package/script/npm/src/src/models/wallet/index.js +19 -0
  341. package/script/npm/src/src/models/wallet/schemas.d.ts +95 -0
  342. package/script/npm/src/src/models/wallet/schemas.d.ts.map +1 -0
  343. package/script/npm/src/src/models/wallet/schemas.js +38 -0
  344. package/script/npm/src/src/models/wallet/statement_entry.d.ts +160 -0
  345. package/script/npm/src/src/models/wallet/statement_entry.d.ts.map +1 -0
  346. package/script/npm/src/src/models/wallet/statement_entry.js +259 -0
  347. package/script/npm/src/src/models/wallet/wallet.d.ts +147 -0
  348. package/script/npm/src/src/models/wallet/wallet.d.ts.map +1 -0
  349. package/script/npm/src/src/models/wallet/wallet.js +283 -0
  350. package/script/npm/src/src/shared/base_repository.d.ts +80 -0
  351. package/script/npm/src/src/shared/base_repository.d.ts.map +1 -0
  352. package/script/npm/src/src/shared/base_repository.js +157 -0
  353. package/script/npm/src/src/shared/common_responses.d.ts +13 -0
  354. package/script/npm/src/src/shared/common_responses.d.ts.map +1 -0
  355. package/script/npm/src/src/shared/common_responses.js +13 -0
  356. package/script/npm/src/src/shared/index.d.ts +3 -0
  357. package/script/npm/src/src/shared/index.d.ts.map +1 -0
  358. package/script/npm/src/src/shared/index.js +18 -0
  359. package/script/npm/src/src/shared/token_required_repository.d.ts +78 -0
  360. package/script/npm/src/src/shared/token_required_repository.d.ts.map +1 -0
  361. package/script/npm/src/src/shared/token_required_repository.js +132 -0
  362. package/script/package.json +3 -0
  363. package/dist/index.cjs.js +0 -2
  364. package/dist/index.cjs.js.map +0 -1
  365. package/dist/index.d.ts +0 -10
  366. package/dist/index.esm.js +0 -2
  367. package/dist/index.esm.js.map +0 -1
  368. package/dist/lib/api/base-repository.d.ts +0 -175
  369. package/dist/lib/api/index.d.ts +0 -1
  370. package/dist/lib/error/error.utils.d.ts +0 -22
  371. package/dist/lib/error/index.d.ts +0 -3
  372. package/dist/lib/query/index.d.ts +0 -4
  373. package/dist/lib/query/pagination/pagination.d.ts +0 -73
  374. package/dist/lib/query/pagination/pagination.schemas.d.ts +0 -83
  375. package/dist/lib/query/query.builder.d.ts +0 -71
  376. package/dist/lib/query/query.types.d.ts +0 -36
  377. package/dist/modules/auth/auth.manager.d.ts +0 -249
  378. package/dist/modules/auth/auth.repository.d.ts +0 -83
  379. package/dist/modules/auth/auth.store.d.ts +0 -139
  380. package/dist/modules/auth/company-membership.model.d.ts +0 -171
  381. package/dist/modules/auth/index.d.ts +0 -4
  382. package/dist/modules/auth/user.model.d.ts +0 -363
  383. package/dist/modules/contact/contact-info.model.d.ts +0 -485
  384. package/dist/modules/contact/contact-input-handler.d.ts +0 -16
  385. package/dist/modules/contact/contact.dtos.d.ts +0 -84
  386. package/dist/modules/contact/contact.model.d.ts +0 -441
  387. package/dist/modules/contact/contact.repository.d.ts +0 -116
  388. package/dist/modules/contact/index.d.ts +0 -4
  389. package/dist/modules/login/index.d.ts +0 -4
  390. package/dist/modules/login/login.api-contract.d.ts +0 -51
  391. package/dist/modules/login/login.dtos.d.ts +0 -85
  392. package/dist/modules/login/login.model.d.ts +0 -168
  393. package/dist/modules/login/login.repository.d.ts +0 -58
  394. package/dist/modules/payout/index.d.ts +0 -5
  395. package/dist/modules/payout/payout-channel-handler.d.ts +0 -82
  396. package/dist/modules/payout/payout.dtos.d.ts +0 -605
  397. package/dist/modules/payout/payout.model.d.ts +0 -379
  398. package/dist/modules/payout/payout.query.d.ts +0 -133
  399. package/dist/modules/payout/payout.repository.d.ts +0 -181
  400. package/dist/modules/profile/index.d.ts +0 -3
  401. package/dist/modules/profile/profile.dtos.d.ts +0 -80
  402. package/dist/modules/profile/profile.repository.d.ts +0 -56
  403. package/dist/modules/team-member/index.d.ts +0 -4
  404. package/dist/modules/team-member/role.model.d.ts +0 -61
  405. package/dist/modules/team-member/team-member.dtos.d.ts +0 -261
  406. package/dist/modules/team-member/team-member.model.d.ts +0 -237
  407. package/dist/modules/team-member/team-member.repository.d.ts +0 -179
  408. package/dist/modules/wallet/index.d.ts +0 -7
  409. package/dist/modules/wallet/narration.model.d.ts +0 -225
  410. package/dist/modules/wallet/statement-entry.model.d.ts +0 -299
  411. package/dist/modules/wallet/wallet-manager.session.d.ts +0 -143
  412. package/dist/modules/wallet/wallet.dtos.d.ts +0 -204
  413. package/dist/modules/wallet/wallet.query.d.ts +0 -95
  414. package/dist/modules/wallet/wallet.repository.d.ts +0 -205
  415. package/dist/modules/wallet/wallet.utils.d.ts +0 -17
@@ -0,0 +1,842 @@
1
+ import { z } from "zod";
2
+ export declare const userManagementContract: {
3
+ getUsers: {
4
+ description: "Retrieve a list of all user accounts in the system";
5
+ query: z.ZodObject<{
6
+ id: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodOptional<z.ZodString>;
8
+ identity: z.ZodOptional<z.ZodString>;
9
+ type: z.ZodOptional<z.ZodString>;
10
+ profileId: z.ZodOptional<z.ZodString>;
11
+ roleId: z.ZodOptional<z.ZodString>;
12
+ resetPassword: z.ZodOptional<z.ZodNumber>;
13
+ isActive: z.ZodOptional<z.ZodNumber>;
14
+ isArchived: z.ZodOptional<z.ZodNumber>;
15
+ createdAt: z.ZodOptional<z.ZodString>;
16
+ updatedAt: z.ZodOptional<z.ZodString>;
17
+ eager: z.ZodOptional<z.ZodString>;
18
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
19
+ type?: string | undefined;
20
+ id?: string | undefined;
21
+ resetPassword?: number | undefined;
22
+ name?: string | undefined;
23
+ identity?: string | undefined;
24
+ profileId?: string | undefined;
25
+ createdAt?: string | undefined;
26
+ updatedAt?: string | undefined;
27
+ eager?: string | undefined;
28
+ roleId?: string | undefined;
29
+ isActive?: number | undefined;
30
+ isArchived?: number | undefined;
31
+ }, {
32
+ type?: string | undefined;
33
+ id?: string | undefined;
34
+ resetPassword?: number | undefined;
35
+ name?: string | undefined;
36
+ identity?: string | undefined;
37
+ profileId?: string | undefined;
38
+ createdAt?: string | undefined;
39
+ updatedAt?: string | undefined;
40
+ eager?: string | undefined;
41
+ roleId?: string | undefined;
42
+ isActive?: number | undefined;
43
+ isArchived?: number | undefined;
44
+ }>;
45
+ summary: "List all user accounts";
46
+ method: "GET";
47
+ path: "/login";
48
+ responses: {
49
+ 200: z.ZodArray<z.ZodObject<{
50
+ id: z.ZodString;
51
+ name: z.ZodString;
52
+ identity: z.ZodString;
53
+ type: z.ZodString;
54
+ profileId: z.ZodString;
55
+ roleId: z.ZodString;
56
+ resetPassword: z.ZodBoolean;
57
+ isActive: z.ZodBoolean;
58
+ isArchived: z.ZodBoolean;
59
+ role: z.ZodOptional<z.ZodType<{
60
+ id: string;
61
+ access: string[];
62
+ name: string;
63
+ createdAt: string;
64
+ updatedAt: string;
65
+ description?: string | undefined;
66
+ }>>;
67
+ createdAt: z.ZodString;
68
+ updatedAt: z.ZodString;
69
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
70
+ type: string;
71
+ id: string;
72
+ resetPassword: boolean;
73
+ name: string;
74
+ identity: string;
75
+ profileId: string;
76
+ createdAt: string;
77
+ updatedAt: string;
78
+ roleId: string;
79
+ isActive: boolean;
80
+ isArchived: boolean;
81
+ role?: {
82
+ id: string;
83
+ access: string[];
84
+ name: string;
85
+ createdAt: string;
86
+ updatedAt: string;
87
+ description?: string | undefined;
88
+ } | undefined;
89
+ }, {
90
+ type: string;
91
+ id: string;
92
+ resetPassword: boolean;
93
+ name: string;
94
+ identity: string;
95
+ profileId: string;
96
+ createdAt: string;
97
+ updatedAt: string;
98
+ roleId: string;
99
+ isActive: boolean;
100
+ isArchived: boolean;
101
+ role?: {
102
+ id: string;
103
+ access: string[];
104
+ name: string;
105
+ createdAt: string;
106
+ updatedAt: string;
107
+ description?: string | undefined;
108
+ } | undefined;
109
+ }>, "many">;
110
+ 401: z.ZodObject<{
111
+ message: z.ZodOptional<z.ZodString>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ message?: string | undefined;
114
+ }, {
115
+ message?: string | undefined;
116
+ }>;
117
+ 403: z.ZodObject<{
118
+ message: z.ZodOptional<z.ZodString>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ message?: string | undefined;
121
+ }, {
122
+ message?: string | undefined;
123
+ }>;
124
+ };
125
+ };
126
+ getUser: {
127
+ description: "Retrieve detailed information about a specific user account";
128
+ pathParams: z.ZodObject<{
129
+ id: z.ZodString;
130
+ }, "strip", z.ZodTypeAny, {
131
+ id: string;
132
+ }, {
133
+ id: string;
134
+ }>;
135
+ query: z.ZodObject<{
136
+ id: z.ZodOptional<z.ZodString>;
137
+ name: z.ZodOptional<z.ZodString>;
138
+ identity: z.ZodOptional<z.ZodString>;
139
+ type: z.ZodOptional<z.ZodString>;
140
+ profileId: z.ZodOptional<z.ZodString>;
141
+ roleId: z.ZodOptional<z.ZodString>;
142
+ resetPassword: z.ZodOptional<z.ZodNumber>;
143
+ isActive: z.ZodOptional<z.ZodNumber>;
144
+ isArchived: z.ZodOptional<z.ZodNumber>;
145
+ createdAt: z.ZodOptional<z.ZodString>;
146
+ updatedAt: z.ZodOptional<z.ZodString>;
147
+ eager: z.ZodOptional<z.ZodString>;
148
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
149
+ type?: string | undefined;
150
+ id?: string | undefined;
151
+ resetPassword?: number | undefined;
152
+ name?: string | undefined;
153
+ identity?: string | undefined;
154
+ profileId?: string | undefined;
155
+ createdAt?: string | undefined;
156
+ updatedAt?: string | undefined;
157
+ eager?: string | undefined;
158
+ roleId?: string | undefined;
159
+ isActive?: number | undefined;
160
+ isArchived?: number | undefined;
161
+ }, {
162
+ type?: string | undefined;
163
+ id?: string | undefined;
164
+ resetPassword?: number | undefined;
165
+ name?: string | undefined;
166
+ identity?: string | undefined;
167
+ profileId?: string | undefined;
168
+ createdAt?: string | undefined;
169
+ updatedAt?: string | undefined;
170
+ eager?: string | undefined;
171
+ roleId?: string | undefined;
172
+ isActive?: number | undefined;
173
+ isArchived?: number | undefined;
174
+ }>;
175
+ summary: "Get user account details";
176
+ method: "GET";
177
+ path: "/login/:id";
178
+ responses: {
179
+ 200: z.ZodObject<{
180
+ id: z.ZodString;
181
+ name: z.ZodString;
182
+ identity: z.ZodString;
183
+ type: z.ZodString;
184
+ profileId: z.ZodString;
185
+ roleId: z.ZodString;
186
+ resetPassword: z.ZodBoolean;
187
+ isActive: z.ZodBoolean;
188
+ isArchived: z.ZodBoolean;
189
+ role: z.ZodOptional<z.ZodType<{
190
+ id: string;
191
+ access: string[];
192
+ name: string;
193
+ createdAt: string;
194
+ updatedAt: string;
195
+ description?: string | undefined;
196
+ }>>;
197
+ createdAt: z.ZodString;
198
+ updatedAt: z.ZodString;
199
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
200
+ type: string;
201
+ id: string;
202
+ resetPassword: boolean;
203
+ name: string;
204
+ identity: string;
205
+ profileId: string;
206
+ createdAt: string;
207
+ updatedAt: string;
208
+ roleId: string;
209
+ isActive: boolean;
210
+ isArchived: boolean;
211
+ role?: {
212
+ id: string;
213
+ access: string[];
214
+ name: string;
215
+ createdAt: string;
216
+ updatedAt: string;
217
+ description?: string | undefined;
218
+ } | undefined;
219
+ }, {
220
+ type: string;
221
+ id: string;
222
+ resetPassword: boolean;
223
+ name: string;
224
+ identity: string;
225
+ profileId: string;
226
+ createdAt: string;
227
+ updatedAt: string;
228
+ roleId: string;
229
+ isActive: boolean;
230
+ isArchived: boolean;
231
+ role?: {
232
+ id: string;
233
+ access: string[];
234
+ name: string;
235
+ createdAt: string;
236
+ updatedAt: string;
237
+ description?: string | undefined;
238
+ } | undefined;
239
+ }>;
240
+ 401: z.ZodObject<{
241
+ message: z.ZodOptional<z.ZodString>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ message?: string | undefined;
244
+ }, {
245
+ message?: string | undefined;
246
+ }>;
247
+ 403: z.ZodObject<{
248
+ message: z.ZodOptional<z.ZodString>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ message?: string | undefined;
251
+ }, {
252
+ message?: string | undefined;
253
+ }>;
254
+ 404: z.ZodObject<{
255
+ message: z.ZodOptional<z.ZodString>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ message?: string | undefined;
258
+ }, {
259
+ message?: string | undefined;
260
+ }>;
261
+ };
262
+ };
263
+ createUser: {
264
+ description: "Create a new user account with specified role and permissions";
265
+ summary: "Create new user account";
266
+ method: "POST";
267
+ body: z.ZodObject<{
268
+ name: z.ZodString;
269
+ identity: z.ZodString;
270
+ password: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
271
+ roleId: z.ZodOptional<z.ZodString>;
272
+ resetPassword: z.ZodOptional<z.ZodBoolean>;
273
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
274
+ name: string;
275
+ identity: string;
276
+ resetPassword?: boolean | undefined;
277
+ password?: string | undefined;
278
+ roleId?: string | undefined;
279
+ }, {
280
+ name: string;
281
+ identity: string;
282
+ resetPassword?: boolean | undefined;
283
+ password?: string | undefined;
284
+ roleId?: string | undefined;
285
+ }>;
286
+ path: "/login";
287
+ responses: {
288
+ 201: z.ZodObject<{
289
+ id: z.ZodString;
290
+ name: z.ZodString;
291
+ identity: z.ZodString;
292
+ type: z.ZodString;
293
+ profileId: z.ZodString;
294
+ roleId: z.ZodString;
295
+ isActive: z.ZodBoolean;
296
+ isArchived: z.ZodBoolean;
297
+ createdAt: z.ZodString;
298
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
299
+ type: string;
300
+ id: string;
301
+ name: string;
302
+ identity: string;
303
+ profileId: string;
304
+ createdAt: string;
305
+ roleId: string;
306
+ isActive: boolean;
307
+ isArchived: boolean;
308
+ }, {
309
+ type: string;
310
+ id: string;
311
+ name: string;
312
+ identity: string;
313
+ profileId: string;
314
+ createdAt: string;
315
+ roleId: string;
316
+ isActive: boolean;
317
+ isArchived: boolean;
318
+ }>;
319
+ 400: z.ZodObject<{
320
+ message: z.ZodOptional<z.ZodString>;
321
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ message?: string | undefined;
324
+ errors?: string[] | undefined;
325
+ }, {
326
+ message?: string | undefined;
327
+ errors?: string[] | undefined;
328
+ }>;
329
+ 401: z.ZodObject<{
330
+ message: z.ZodOptional<z.ZodString>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ message?: string | undefined;
333
+ }, {
334
+ message?: string | undefined;
335
+ }>;
336
+ 403: z.ZodObject<{
337
+ message: z.ZodOptional<z.ZodString>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ message?: string | undefined;
340
+ }, {
341
+ message?: string | undefined;
342
+ }>;
343
+ 409: z.ZodObject<{
344
+ message: z.ZodOptional<z.ZodString>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ message?: string | undefined;
347
+ }, {
348
+ message?: string | undefined;
349
+ }>;
350
+ };
351
+ };
352
+ updateUser: {
353
+ description: "Update user account information, role, status, or force password reset";
354
+ pathParams: z.ZodObject<{
355
+ id: z.ZodString;
356
+ }, "strip", z.ZodTypeAny, {
357
+ id: string;
358
+ }, {
359
+ id: string;
360
+ }>;
361
+ summary: "Update user account";
362
+ method: "PATCH";
363
+ body: z.ZodObject<{
364
+ name: z.ZodOptional<z.ZodString>;
365
+ roleId: z.ZodOptional<z.ZodString>;
366
+ password: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
367
+ resetPassword: z.ZodOptional<z.ZodBoolean>;
368
+ isActive: z.ZodOptional<z.ZodBoolean>;
369
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
370
+ resetPassword?: boolean | undefined;
371
+ name?: string | undefined;
372
+ password?: string | undefined;
373
+ roleId?: string | undefined;
374
+ isActive?: boolean | undefined;
375
+ }, {
376
+ resetPassword?: boolean | undefined;
377
+ name?: string | undefined;
378
+ password?: string | undefined;
379
+ roleId?: string | undefined;
380
+ isActive?: boolean | undefined;
381
+ }>;
382
+ path: "/login/:id";
383
+ responses: {
384
+ 200: z.ZodObject<{
385
+ id: z.ZodString;
386
+ name: z.ZodString;
387
+ identity: z.ZodString;
388
+ type: z.ZodString;
389
+ profileId: z.ZodString;
390
+ roleId: z.ZodString;
391
+ resetPassword: z.ZodBoolean;
392
+ isActive: z.ZodBoolean;
393
+ isArchived: z.ZodBoolean;
394
+ role: z.ZodOptional<z.ZodType<{
395
+ id: string;
396
+ access: string[];
397
+ name: string;
398
+ createdAt: string;
399
+ updatedAt: string;
400
+ description?: string | undefined;
401
+ }>>;
402
+ createdAt: z.ZodString;
403
+ updatedAt: z.ZodString;
404
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
405
+ type: string;
406
+ id: string;
407
+ resetPassword: boolean;
408
+ name: string;
409
+ identity: string;
410
+ profileId: string;
411
+ createdAt: string;
412
+ updatedAt: string;
413
+ roleId: string;
414
+ isActive: boolean;
415
+ isArchived: boolean;
416
+ role?: {
417
+ id: string;
418
+ access: string[];
419
+ name: string;
420
+ createdAt: string;
421
+ updatedAt: string;
422
+ description?: string | undefined;
423
+ } | undefined;
424
+ }, {
425
+ type: string;
426
+ id: string;
427
+ resetPassword: boolean;
428
+ name: string;
429
+ identity: string;
430
+ profileId: string;
431
+ createdAt: string;
432
+ updatedAt: string;
433
+ roleId: string;
434
+ isActive: boolean;
435
+ isArchived: boolean;
436
+ role?: {
437
+ id: string;
438
+ access: string[];
439
+ name: string;
440
+ createdAt: string;
441
+ updatedAt: string;
442
+ description?: string | undefined;
443
+ } | undefined;
444
+ }>;
445
+ 400: z.ZodObject<{
446
+ message: z.ZodOptional<z.ZodString>;
447
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ message?: string | undefined;
450
+ errors?: string[] | undefined;
451
+ }, {
452
+ message?: string | undefined;
453
+ errors?: string[] | undefined;
454
+ }>;
455
+ 401: z.ZodObject<{
456
+ message: z.ZodOptional<z.ZodString>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ message?: string | undefined;
459
+ }, {
460
+ message?: string | undefined;
461
+ }>;
462
+ 403: z.ZodObject<{
463
+ message: z.ZodOptional<z.ZodString>;
464
+ }, "strip", z.ZodTypeAny, {
465
+ message?: string | undefined;
466
+ }, {
467
+ message?: string | undefined;
468
+ }>;
469
+ 404: z.ZodObject<{
470
+ message: z.ZodOptional<z.ZodString>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ message?: string | undefined;
473
+ }, {
474
+ message?: string | undefined;
475
+ }>;
476
+ };
477
+ };
478
+ archiveUser: {
479
+ description: "Archive (soft delete) a user account";
480
+ pathParams: z.ZodObject<{
481
+ id: z.ZodString;
482
+ }, "strip", z.ZodTypeAny, {
483
+ id: string;
484
+ }, {
485
+ id: string;
486
+ }>;
487
+ summary: "Archive user account";
488
+ method: "POST";
489
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
490
+ path: "/login/:id/archive";
491
+ responses: {
492
+ 200: z.ZodObject<{
493
+ id: z.ZodString;
494
+ name: z.ZodString;
495
+ identity: z.ZodString;
496
+ type: z.ZodString;
497
+ profileId: z.ZodString;
498
+ roleId: z.ZodString;
499
+ resetPassword: z.ZodBoolean;
500
+ isActive: z.ZodBoolean;
501
+ isArchived: z.ZodBoolean;
502
+ role: z.ZodOptional<z.ZodType<{
503
+ id: string;
504
+ access: string[];
505
+ name: string;
506
+ createdAt: string;
507
+ updatedAt: string;
508
+ description?: string | undefined;
509
+ }>>;
510
+ createdAt: z.ZodString;
511
+ updatedAt: z.ZodString;
512
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
513
+ type: string;
514
+ id: string;
515
+ resetPassword: boolean;
516
+ name: string;
517
+ identity: string;
518
+ profileId: string;
519
+ createdAt: string;
520
+ updatedAt: string;
521
+ roleId: string;
522
+ isActive: boolean;
523
+ isArchived: boolean;
524
+ role?: {
525
+ id: string;
526
+ access: string[];
527
+ name: string;
528
+ createdAt: string;
529
+ updatedAt: string;
530
+ description?: string | undefined;
531
+ } | undefined;
532
+ }, {
533
+ type: string;
534
+ id: string;
535
+ resetPassword: boolean;
536
+ name: string;
537
+ identity: string;
538
+ profileId: string;
539
+ createdAt: string;
540
+ updatedAt: string;
541
+ roleId: string;
542
+ isActive: boolean;
543
+ isArchived: boolean;
544
+ role?: {
545
+ id: string;
546
+ access: string[];
547
+ name: string;
548
+ createdAt: string;
549
+ updatedAt: string;
550
+ description?: string | undefined;
551
+ } | undefined;
552
+ }>;
553
+ 401: z.ZodObject<{
554
+ message: z.ZodOptional<z.ZodString>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ message?: string | undefined;
557
+ }, {
558
+ message?: string | undefined;
559
+ }>;
560
+ 403: z.ZodObject<{
561
+ message: z.ZodOptional<z.ZodString>;
562
+ }, "strip", z.ZodTypeAny, {
563
+ message?: string | undefined;
564
+ }, {
565
+ message?: string | undefined;
566
+ }>;
567
+ 404: z.ZodObject<{
568
+ message: z.ZodOptional<z.ZodString>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ message?: string | undefined;
571
+ }, {
572
+ message?: string | undefined;
573
+ }>;
574
+ };
575
+ };
576
+ unArchiveUser: {
577
+ description: "Un-archive (soft delete) a user account";
578
+ pathParams: z.ZodObject<{
579
+ id: z.ZodString;
580
+ }, "strip", z.ZodTypeAny, {
581
+ id: string;
582
+ }, {
583
+ id: string;
584
+ }>;
585
+ summary: "Un-archive user account";
586
+ method: "POST";
587
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
588
+ path: "/login/:id/unarchive";
589
+ responses: {
590
+ 200: z.ZodObject<{
591
+ id: z.ZodString;
592
+ name: z.ZodString;
593
+ identity: z.ZodString;
594
+ type: z.ZodString;
595
+ profileId: z.ZodString;
596
+ roleId: z.ZodString;
597
+ resetPassword: z.ZodBoolean;
598
+ isActive: z.ZodBoolean;
599
+ isArchived: z.ZodBoolean;
600
+ role: z.ZodOptional<z.ZodType<{
601
+ id: string;
602
+ access: string[];
603
+ name: string;
604
+ createdAt: string;
605
+ updatedAt: string;
606
+ description?: string | undefined;
607
+ }>>;
608
+ createdAt: z.ZodString;
609
+ updatedAt: z.ZodString;
610
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
611
+ type: string;
612
+ id: string;
613
+ resetPassword: boolean;
614
+ name: string;
615
+ identity: string;
616
+ profileId: string;
617
+ createdAt: string;
618
+ updatedAt: string;
619
+ roleId: string;
620
+ isActive: boolean;
621
+ isArchived: boolean;
622
+ role?: {
623
+ id: string;
624
+ access: string[];
625
+ name: string;
626
+ createdAt: string;
627
+ updatedAt: string;
628
+ description?: string | undefined;
629
+ } | undefined;
630
+ }, {
631
+ type: string;
632
+ id: string;
633
+ resetPassword: boolean;
634
+ name: string;
635
+ identity: string;
636
+ profileId: string;
637
+ createdAt: string;
638
+ updatedAt: string;
639
+ roleId: string;
640
+ isActive: boolean;
641
+ isArchived: boolean;
642
+ role?: {
643
+ id: string;
644
+ access: string[];
645
+ name: string;
646
+ createdAt: string;
647
+ updatedAt: string;
648
+ description?: string | undefined;
649
+ } | undefined;
650
+ }>;
651
+ 401: z.ZodObject<{
652
+ message: z.ZodOptional<z.ZodString>;
653
+ }, "strip", z.ZodTypeAny, {
654
+ message?: string | undefined;
655
+ }, {
656
+ message?: string | undefined;
657
+ }>;
658
+ 403: z.ZodObject<{
659
+ message: z.ZodOptional<z.ZodString>;
660
+ }, "strip", z.ZodTypeAny, {
661
+ message?: string | undefined;
662
+ }, {
663
+ message?: string | undefined;
664
+ }>;
665
+ 404: z.ZodObject<{
666
+ message: z.ZodOptional<z.ZodString>;
667
+ }, "strip", z.ZodTypeAny, {
668
+ message?: string | undefined;
669
+ }, {
670
+ message?: string | undefined;
671
+ }>;
672
+ };
673
+ };
674
+ resetPassword: {
675
+ description: "Reset a user's password and optionally send notification";
676
+ pathParams: z.ZodObject<{
677
+ id: z.ZodString;
678
+ }, "strip", z.ZodTypeAny, {
679
+ id: string;
680
+ }, {
681
+ id: string;
682
+ }>;
683
+ summary: "Reset user password";
684
+ method: "POST";
685
+ body: z.ZodObject<{
686
+ newPassword: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
687
+ sendNotification: z.ZodOptional<z.ZodBoolean>;
688
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
689
+ newPassword?: string | undefined;
690
+ sendNotification?: boolean | undefined;
691
+ }, {
692
+ newPassword?: string | undefined;
693
+ sendNotification?: boolean | undefined;
694
+ }>;
695
+ path: "/login/:id/reset-password";
696
+ responses: {
697
+ 200: z.ZodObject<{
698
+ success: z.ZodBoolean;
699
+ }, "strip", z.ZodTypeAny, {
700
+ success: boolean;
701
+ }, {
702
+ success: boolean;
703
+ }>;
704
+ 400: z.ZodObject<{
705
+ message: z.ZodOptional<z.ZodString>;
706
+ }, "strip", z.ZodTypeAny, {
707
+ message?: string | undefined;
708
+ }, {
709
+ message?: string | undefined;
710
+ }>;
711
+ 401: z.ZodObject<{
712
+ message: z.ZodOptional<z.ZodString>;
713
+ }, "strip", z.ZodTypeAny, {
714
+ message?: string | undefined;
715
+ }, {
716
+ message?: string | undefined;
717
+ }>;
718
+ 403: z.ZodObject<{
719
+ message: z.ZodOptional<z.ZodString>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ message?: string | undefined;
722
+ }, {
723
+ message?: string | undefined;
724
+ }>;
725
+ 404: z.ZodObject<{
726
+ message: z.ZodOptional<z.ZodString>;
727
+ }, "strip", z.ZodTypeAny, {
728
+ message?: string | undefined;
729
+ }, {
730
+ message?: string | undefined;
731
+ }>;
732
+ };
733
+ };
734
+ getRoles: {
735
+ description: "Retrieve a list of all available roles in the system";
736
+ summary: "List all roles";
737
+ method: "GET";
738
+ path: "/role";
739
+ responses: {
740
+ 200: z.ZodArray<z.ZodObject<{
741
+ id: z.ZodString;
742
+ name: z.ZodString;
743
+ description: z.ZodOptional<z.ZodString>;
744
+ access: z.ZodArray<z.ZodString>;
745
+ createdAt: z.ZodString;
746
+ updatedAt: z.ZodString;
747
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
748
+ id: string;
749
+ access: string[];
750
+ name: string;
751
+ createdAt: string;
752
+ updatedAt: string;
753
+ description?: string | undefined;
754
+ }, {
755
+ id: string;
756
+ access: string[];
757
+ name: string;
758
+ createdAt: string;
759
+ updatedAt: string;
760
+ description?: string | undefined;
761
+ }>, "many">;
762
+ 401: z.ZodObject<{
763
+ message: z.ZodOptional<z.ZodString>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ message?: string | undefined;
766
+ }, {
767
+ message?: string | undefined;
768
+ }>;
769
+ 403: z.ZodObject<{
770
+ message: z.ZodOptional<z.ZodString>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ message?: string | undefined;
773
+ }, {
774
+ message?: string | undefined;
775
+ }>;
776
+ };
777
+ };
778
+ getRole: {
779
+ description: "Retrieve detailed information about a specific role";
780
+ pathParams: z.ZodObject<{
781
+ id: z.ZodString;
782
+ }, "strip", z.ZodTypeAny, {
783
+ id: string;
784
+ }, {
785
+ id: string;
786
+ }>;
787
+ summary: "Get role details";
788
+ method: "GET";
789
+ path: "/role/:id";
790
+ responses: {
791
+ 200: z.ZodObject<{
792
+ id: z.ZodString;
793
+ name: z.ZodString;
794
+ description: z.ZodOptional<z.ZodString>;
795
+ access: z.ZodArray<z.ZodString>;
796
+ createdAt: z.ZodString;
797
+ updatedAt: z.ZodString;
798
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
799
+ id: string;
800
+ access: string[];
801
+ name: string;
802
+ createdAt: string;
803
+ updatedAt: string;
804
+ description?: string | undefined;
805
+ }, {
806
+ id: string;
807
+ access: string[];
808
+ name: string;
809
+ createdAt: string;
810
+ updatedAt: string;
811
+ description?: string | undefined;
812
+ }>;
813
+ 401: z.ZodObject<{
814
+ message: z.ZodOptional<z.ZodString>;
815
+ }, "strip", z.ZodTypeAny, {
816
+ message?: string | undefined;
817
+ }, {
818
+ message?: string | undefined;
819
+ }>;
820
+ 403: z.ZodObject<{
821
+ message: z.ZodOptional<z.ZodString>;
822
+ }, "strip", z.ZodTypeAny, {
823
+ message?: string | undefined;
824
+ }, {
825
+ message?: string | undefined;
826
+ }>;
827
+ 404: z.ZodObject<{
828
+ message: z.ZodOptional<z.ZodString>;
829
+ }, "strip", z.ZodTypeAny, {
830
+ message?: string | undefined;
831
+ }, {
832
+ message?: string | undefined;
833
+ }>;
834
+ };
835
+ };
836
+ };
837
+ /**
838
+ * TypeScript type for the complete user management contract.
839
+ * Use this type for strongly typed API client implementations.
840
+ */
841
+ export type UserManagementContract = typeof userManagementContract;
842
+ //# sourceMappingURL=contract.d.ts.map