happy2 0.0.5 → 0.0.9

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 (2307) hide show
  1. package/README.md +101 -66
  2. package/package.json +38 -20
  3. package/packages/happy2-server/README.md +162 -19
  4. package/packages/happy2-server/dist/cli.js +12 -5
  5. package/packages/happy2-server/dist/cli.js.map +1 -1
  6. package/packages/happy2-server/dist/index.d.ts +12 -8
  7. package/packages/happy2-server/dist/index.d.ts.map +1 -1
  8. package/packages/happy2-server/dist/index.js +10 -7
  9. package/packages/happy2-server/dist/index.js.map +1 -1
  10. package/packages/happy2-server/dist/modules/agent/agentChatBind.d.ts +19 -0
  11. package/packages/happy2-server/dist/modules/agent/agentChatBind.d.ts.map +1 -0
  12. package/packages/happy2-server/dist/modules/agent/agentChatBind.js +48 -0
  13. package/packages/happy2-server/dist/modules/agent/agentChatBind.js.map +1 -0
  14. package/packages/happy2-server/dist/modules/agent/agentChatGetContext.d.ts +8 -0
  15. package/packages/happy2-server/dist/modules/agent/agentChatGetContext.d.ts.map +1 -0
  16. package/packages/happy2-server/dist/modules/agent/agentChatGetContext.js +89 -0
  17. package/packages/happy2-server/dist/modules/agent/agentChatGetContext.js.map +1 -0
  18. package/packages/happy2-server/dist/modules/agent/agentChatListUnfinishedIds.d.ts +7 -0
  19. package/packages/happy2-server/dist/modules/agent/agentChatListUnfinishedIds.d.ts.map +1 -0
  20. package/packages/happy2-server/dist/modules/agent/agentChatListUnfinishedIds.js +17 -0
  21. package/packages/happy2-server/dist/modules/agent/agentChatListUnfinishedIds.js.map +1 -0
  22. package/packages/happy2-server/dist/modules/agent/agentConversationCreate.d.ts +14 -0
  23. package/packages/happy2-server/dist/modules/agent/agentConversationCreate.d.ts.map +1 -0
  24. package/packages/happy2-server/dist/modules/agent/agentConversationCreate.js +61 -0
  25. package/packages/happy2-server/dist/modules/agent/agentConversationCreate.js.map +1 -0
  26. package/packages/happy2-server/dist/modules/agent/agentCreate.d.ts +21 -0
  27. package/packages/happy2-server/dist/modules/agent/agentCreate.d.ts.map +1 -0
  28. package/packages/happy2-server/dist/modules/agent/agentCreate.js +96 -0
  29. package/packages/happy2-server/dist/modules/agent/agentCreate.js.map +1 -0
  30. package/packages/happy2-server/dist/modules/agent/agentDefaultConversationEnsure.d.ts +10 -0
  31. package/packages/happy2-server/dist/modules/agent/agentDefaultConversationEnsure.d.ts.map +1 -0
  32. package/packages/happy2-server/dist/modules/agent/agentDefaultConversationEnsure.js +57 -0
  33. package/packages/happy2-server/dist/modules/agent/agentDefaultConversationEnsure.js.map +1 -0
  34. package/packages/happy2-server/dist/modules/agent/agentDefaultCreate.d.ts +17 -0
  35. package/packages/happy2-server/dist/modules/agent/agentDefaultCreate.d.ts.map +1 -0
  36. package/packages/happy2-server/dist/modules/agent/agentDefaultCreate.js +67 -0
  37. package/packages/happy2-server/dist/modules/agent/agentDefaultCreate.js.map +1 -0
  38. package/packages/happy2-server/dist/modules/agent/agentDefaultRepair.d.ts +8 -0
  39. package/packages/happy2-server/dist/modules/agent/agentDefaultRepair.d.ts.map +1 -0
  40. package/packages/happy2-server/dist/modules/agent/agentDefaultRepair.js +42 -0
  41. package/packages/happy2-server/dist/modules/agent/agentDefaultRepair.js.map +1 -0
  42. package/packages/happy2-server/dist/modules/agent/agentDefaultRequire.d.ts +7 -0
  43. package/packages/happy2-server/dist/modules/agent/agentDefaultRequire.d.ts.map +1 -0
  44. package/packages/happy2-server/dist/modules/agent/agentDefaultRequire.js +19 -0
  45. package/packages/happy2-server/dist/modules/agent/agentDefaultRequire.js.map +1 -0
  46. package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.d.ts +11 -0
  47. package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.d.ts.map +1 -0
  48. package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.js +29 -0
  49. package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.js.map +1 -0
  50. package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.d.ts +8 -0
  51. package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.d.ts.map +1 -0
  52. package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.js +11 -0
  53. package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.js.map +1 -0
  54. package/packages/happy2-server/dist/modules/agent/agentEffortInitialize.d.ts +8 -0
  55. package/packages/happy2-server/dist/modules/agent/agentEffortInitialize.d.ts.map +1 -0
  56. package/packages/happy2-server/dist/modules/agent/agentEffortInitialize.js +39 -0
  57. package/packages/happy2-server/dist/modules/agent/agentEffortInitialize.js.map +1 -0
  58. package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.d.ts +15 -0
  59. package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.d.ts.map +1 -0
  60. package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.js +68 -0
  61. package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.js.map +1 -0
  62. package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.d.ts +24 -0
  63. package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.d.ts.map +1 -0
  64. package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.js +127 -0
  65. package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.js.map +1 -0
  66. package/packages/happy2-server/dist/modules/agent/agentImageCompleteBuild.d.ts +12 -0
  67. package/packages/happy2-server/dist/modules/agent/agentImageCompleteBuild.d.ts.map +1 -0
  68. package/packages/happy2-server/dist/modules/agent/agentImageCompleteBuild.js +41 -0
  69. package/packages/happy2-server/dist/modules/agent/agentImageCompleteBuild.js.map +1 -0
  70. package/packages/happy2-server/dist/modules/agent/agentImageCreate.d.ts +17 -0
  71. package/packages/happy2-server/dist/modules/agent/agentImageCreate.d.ts.map +1 -0
  72. package/packages/happy2-server/dist/modules/agent/agentImageCreate.js +68 -0
  73. package/packages/happy2-server/dist/modules/agent/agentImageCreate.js.map +1 -0
  74. package/packages/happy2-server/dist/modules/agent/agentImageEnsureDefinitions.d.ts +14 -0
  75. package/packages/happy2-server/dist/modules/agent/agentImageEnsureDefinitions.d.ts.map +1 -0
  76. package/packages/happy2-server/dist/modules/agent/agentImageEnsureDefinitions.js +25 -0
  77. package/packages/happy2-server/dist/modules/agent/agentImageEnsureDefinitions.js.map +1 -0
  78. package/packages/happy2-server/dist/modules/agent/agentImageFailBuild.d.ts +12 -0
  79. package/packages/happy2-server/dist/modules/agent/agentImageFailBuild.d.ts.map +1 -0
  80. package/packages/happy2-server/dist/modules/agent/agentImageFailBuild.js +40 -0
  81. package/packages/happy2-server/dist/modules/agent/agentImageFailBuild.js.map +1 -0
  82. package/packages/happy2-server/dist/modules/agent/agentImageFindDefinition.d.ts +12 -0
  83. package/packages/happy2-server/dist/modules/agent/agentImageFindDefinition.d.ts.map +1 -0
  84. package/packages/happy2-server/dist/modules/agent/agentImageFindDefinition.js +19 -0
  85. package/packages/happy2-server/dist/modules/agent/agentImageFindDefinition.js.map +1 -0
  86. package/packages/happy2-server/dist/modules/agent/agentImageGet.d.ts +8 -0
  87. package/packages/happy2-server/dist/modules/agent/agentImageGet.d.ts.map +1 -0
  88. package/packages/happy2-server/dist/modules/agent/agentImageGet.js +23 -0
  89. package/packages/happy2-server/dist/modules/agent/agentImageGet.js.map +1 -0
  90. package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.d.ts +26 -0
  91. package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.d.ts.map +1 -0
  92. package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.js +74 -0
  93. package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.js.map +1 -0
  94. package/packages/happy2-server/dist/modules/agent/agentImageGetReadyDefault.d.ts +8 -0
  95. package/packages/happy2-server/dist/modules/agent/agentImageGetReadyDefault.d.ts.map +1 -0
  96. package/packages/happy2-server/dist/modules/agent/agentImageGetReadyDefault.js +28 -0
  97. package/packages/happy2-server/dist/modules/agent/agentImageGetReadyDefault.js.map +1 -0
  98. package/packages/happy2-server/dist/modules/agent/agentImageList.d.ts +11 -0
  99. package/packages/happy2-server/dist/modules/agent/agentImageList.d.ts.map +1 -0
  100. package/packages/happy2-server/dist/modules/agent/agentImageList.js +36 -0
  101. package/packages/happy2-server/dist/modules/agent/agentImageList.js.map +1 -0
  102. package/packages/happy2-server/dist/modules/agent/agentImageListRequestedBuildIds.d.ts +7 -0
  103. package/packages/happy2-server/dist/modules/agent/agentImageListRequestedBuildIds.d.ts.map +1 -0
  104. package/packages/happy2-server/dist/modules/agent/agentImageListRequestedBuildIds.js +18 -0
  105. package/packages/happy2-server/dist/modules/agent/agentImageListRequestedBuildIds.js.map +1 -0
  106. package/packages/happy2-server/dist/modules/agent/agentImageRecordBuildOutput.d.ts +14 -0
  107. package/packages/happy2-server/dist/modules/agent/agentImageRecordBuildOutput.d.ts.map +1 -0
  108. package/packages/happy2-server/dist/modules/agent/agentImageRecordBuildOutput.js +45 -0
  109. package/packages/happy2-server/dist/modules/agent/agentImageRecordBuildOutput.js.map +1 -0
  110. package/packages/happy2-server/dist/modules/agent/agentImageReleaseBuildLeases.d.ts +7 -0
  111. package/packages/happy2-server/dist/modules/agent/agentImageReleaseBuildLeases.d.ts.map +1 -0
  112. package/packages/happy2-server/dist/modules/agent/agentImageReleaseBuildLeases.js +33 -0
  113. package/packages/happy2-server/dist/modules/agent/agentImageReleaseBuildLeases.js.map +1 -0
  114. package/packages/happy2-server/dist/modules/agent/agentImageRenewBuildLease.d.ts +7 -0
  115. package/packages/happy2-server/dist/modules/agent/agentImageRenewBuildLease.d.ts.map +1 -0
  116. package/packages/happy2-server/dist/modules/agent/agentImageRenewBuildLease.js +21 -0
  117. package/packages/happy2-server/dist/modules/agent/agentImageRenewBuildLease.js.map +1 -0
  118. package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.d.ts +14 -0
  119. package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.d.ts.map +1 -0
  120. package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.js +73 -0
  121. package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.js.map +1 -0
  122. package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.d.ts +14 -0
  123. package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.d.ts.map +1 -0
  124. package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.js +55 -0
  125. package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.js.map +1 -0
  126. package/packages/happy2-server/dist/modules/agent/agentImageTakeBuild.d.ts +14 -0
  127. package/packages/happy2-server/dist/modules/agent/agentImageTakeBuild.d.ts.map +1 -0
  128. package/packages/happy2-server/dist/modules/agent/agentImageTakeBuild.js +77 -0
  129. package/packages/happy2-server/dist/modules/agent/agentImageTakeBuild.js.map +1 -0
  130. package/packages/happy2-server/dist/modules/agent/agentRunAttach.d.ts +11 -0
  131. package/packages/happy2-server/dist/modules/agent/agentRunAttach.d.ts.map +1 -0
  132. package/packages/happy2-server/dist/modules/agent/agentRunAttach.js +31 -0
  133. package/packages/happy2-server/dist/modules/agent/agentRunAttach.js.map +1 -0
  134. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.d.ts +11 -0
  135. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.d.ts.map +1 -0
  136. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.js +39 -0
  137. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.js.map +1 -0
  138. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.d.ts +8 -0
  139. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.d.ts.map +1 -0
  140. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.js +46 -0
  141. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.js.map +1 -0
  142. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.d.ts +12 -0
  143. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.d.ts.map +1 -0
  144. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.js +58 -0
  145. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.js.map +1 -0
  146. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.d.ts +12 -0
  147. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.d.ts.map +1 -0
  148. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.js +59 -0
  149. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.js.map +1 -0
  150. package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.d.ts +7 -0
  151. package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.d.ts.map +1 -0
  152. package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.js +10 -0
  153. package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.js.map +1 -0
  154. package/packages/happy2-server/dist/modules/agent/agentSecretBindingList.d.ts +11 -0
  155. package/packages/happy2-server/dist/modules/agent/agentSecretBindingList.d.ts.map +1 -0
  156. package/packages/happy2-server/dist/modules/agent/agentSecretBindingList.js +69 -0
  157. package/packages/happy2-server/dist/modules/agent/agentSecretBindingList.js.map +1 -0
  158. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.d.ts +12 -0
  159. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.d.ts.map +1 -0
  160. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.js +44 -0
  161. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.js.map +1 -0
  162. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.d.ts +12 -0
  163. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.d.ts.map +1 -0
  164. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.js +45 -0
  165. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.js.map +1 -0
  166. package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.d.ts +11 -0
  167. package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.d.ts.map +1 -0
  168. package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.js +31 -0
  169. package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.js.map +1 -0
  170. package/packages/happy2-server/dist/modules/agent/agentTurnCheckpoint.d.ts +14 -0
  171. package/packages/happy2-server/dist/modules/agent/agentTurnCheckpoint.d.ts.map +1 -0
  172. package/packages/happy2-server/dist/modules/agent/agentTurnCheckpoint.js +35 -0
  173. package/packages/happy2-server/dist/modules/agent/agentTurnCheckpoint.js.map +1 -0
  174. package/packages/happy2-server/dist/modules/agent/agentTurnComplete.d.ts +18 -0
  175. package/packages/happy2-server/dist/modules/agent/agentTurnComplete.d.ts.map +1 -0
  176. package/packages/happy2-server/dist/modules/agent/agentTurnComplete.js +15 -0
  177. package/packages/happy2-server/dist/modules/agent/agentTurnComplete.js.map +1 -0
  178. package/packages/happy2-server/dist/modules/agent/agentTurnFail.d.ts +18 -0
  179. package/packages/happy2-server/dist/modules/agent/agentTurnFail.d.ts.map +1 -0
  180. package/packages/happy2-server/dist/modules/agent/agentTurnFail.js +21 -0
  181. package/packages/happy2-server/dist/modules/agent/agentTurnFail.js.map +1 -0
  182. package/packages/happy2-server/dist/modules/agent/agentTurnGetRunning.d.ts +21 -0
  183. package/packages/happy2-server/dist/modules/agent/agentTurnGetRunning.d.ts.map +1 -0
  184. package/packages/happy2-server/dist/modules/agent/agentTurnGetRunning.js +21 -0
  185. package/packages/happy2-server/dist/modules/agent/agentTurnGetRunning.js.map +1 -0
  186. package/packages/happy2-server/dist/modules/agent/agentTurnHasRunnable.d.ts +7 -0
  187. package/packages/happy2-server/dist/modules/agent/agentTurnHasRunnable.d.ts.map +1 -0
  188. package/packages/happy2-server/dist/modules/agent/agentTurnHasRunnable.js +27 -0
  189. package/packages/happy2-server/dist/modules/agent/agentTurnHasRunnable.js.map +1 -0
  190. package/packages/happy2-server/dist/modules/agent/agentTurnHasUnfinished.d.ts +7 -0
  191. package/packages/happy2-server/dist/modules/agent/agentTurnHasUnfinished.d.ts.map +1 -0
  192. package/packages/happy2-server/dist/modules/agent/agentTurnHasUnfinished.js +18 -0
  193. package/packages/happy2-server/dist/modules/agent/agentTurnHasUnfinished.js.map +1 -0
  194. package/packages/happy2-server/dist/modules/agent/agentTurnPromptBuild.d.ts +8 -0
  195. package/packages/happy2-server/dist/modules/agent/agentTurnPromptBuild.d.ts.map +1 -0
  196. package/packages/happy2-server/dist/modules/agent/agentTurnPromptBuild.js +10 -0
  197. package/packages/happy2-server/dist/modules/agent/agentTurnPromptBuild.js.map +1 -0
  198. package/packages/happy2-server/dist/modules/agent/agentTurnReleaseLeases.d.ts +7 -0
  199. package/packages/happy2-server/dist/modules/agent/agentTurnReleaseLeases.d.ts.map +1 -0
  200. package/packages/happy2-server/dist/modules/agent/agentTurnReleaseLeases.js +18 -0
  201. package/packages/happy2-server/dist/modules/agent/agentTurnReleaseLeases.js.map +1 -0
  202. package/packages/happy2-server/dist/modules/agent/agentTurnRenewLease.d.ts +11 -0
  203. package/packages/happy2-server/dist/modules/agent/agentTurnRenewLease.d.ts.map +1 -0
  204. package/packages/happy2-server/dist/modules/agent/agentTurnRenewLease.js +21 -0
  205. package/packages/happy2-server/dist/modules/agent/agentTurnRenewLease.js.map +1 -0
  206. package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.d.ts +22 -0
  207. package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.d.ts.map +1 -0
  208. package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.js +107 -0
  209. package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.js.map +1 -0
  210. package/packages/happy2-server/dist/modules/agent/agentTurnTakeNext.d.ts +21 -0
  211. package/packages/happy2-server/dist/modules/agent/agentTurnTakeNext.d.ts.map +1 -0
  212. package/packages/happy2-server/dist/modules/agent/agentTurnTakeNext.js +80 -0
  213. package/packages/happy2-server/dist/modules/agent/agentTurnTakeNext.js.map +1 -0
  214. package/packages/happy2-server/dist/modules/agent/agentUsernameIsAvailable.d.ts +7 -0
  215. package/packages/happy2-server/dist/modules/agent/agentUsernameIsAvailable.d.ts.map +1 -0
  216. package/packages/happy2-server/dist/modules/agent/agentUsernameIsAvailable.js +18 -0
  217. package/packages/happy2-server/dist/modules/agent/agentUsernameIsAvailable.js.map +1 -0
  218. package/packages/happy2-server/dist/modules/agent/impl/agentChatContext.d.ts +18 -0
  219. package/packages/happy2-server/dist/modules/agent/impl/agentChatContext.d.ts.map +1 -0
  220. package/packages/happy2-server/dist/modules/agent/impl/agentChatContext.js +2 -0
  221. package/packages/happy2-server/dist/modules/agent/impl/agentChatContext.js.map +1 -0
  222. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContext.d.ts +6 -0
  223. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContext.d.ts.map +1 -0
  224. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContext.js +2 -0
  225. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContext.js.map +1 -0
  226. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.d.ts +8 -0
  227. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.d.ts.map +1 -0
  228. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.js +52 -0
  229. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.js.map +1 -0
  230. package/packages/happy2-server/dist/modules/agent/impl/agentExecutionImage.d.ts +6 -0
  231. package/packages/happy2-server/dist/modules/agent/impl/agentExecutionImage.d.ts.map +1 -0
  232. package/packages/happy2-server/dist/modules/agent/impl/agentExecutionImage.js +2 -0
  233. package/packages/happy2-server/dist/modules/agent/impl/agentExecutionImage.js.map +1 -0
  234. package/packages/happy2-server/dist/modules/agent/impl/agentImageBuild.d.ts +7 -0
  235. package/packages/happy2-server/dist/modules/agent/impl/agentImageBuild.d.ts.map +1 -0
  236. package/packages/happy2-server/dist/modules/agent/impl/agentImageBuild.js +2 -0
  237. package/packages/happy2-server/dist/modules/agent/impl/agentImageBuild.js.map +1 -0
  238. package/packages/happy2-server/dist/modules/agent/impl/agentImageDetailsSelection.d.ts +396 -0
  239. package/packages/happy2-server/dist/modules/agent/impl/agentImageDetailsSelection.d.ts.map +1 -0
  240. package/packages/happy2-server/dist/modules/agent/impl/agentImageDetailsSelection.js +9 -0
  241. package/packages/happy2-server/dist/modules/agent/impl/agentImageDetailsSelection.js.map +1 -0
  242. package/packages/happy2-server/dist/modules/agent/impl/agentImageSelection.d.ts +341 -0
  243. package/packages/happy2-server/dist/modules/agent/impl/agentImageSelection.d.ts.map +1 -0
  244. package/packages/happy2-server/dist/modules/agent/impl/agentImageSelection.js +22 -0
  245. package/packages/happy2-server/dist/modules/agent/impl/agentImageSelection.js.map +1 -0
  246. package/packages/happy2-server/dist/modules/agent/impl/agentReplyMutationId.d.ts +2 -0
  247. package/packages/happy2-server/dist/modules/agent/impl/agentReplyMutationId.d.ts.map +1 -0
  248. package/packages/happy2-server/dist/modules/agent/impl/agentReplyMutationId.js +4 -0
  249. package/packages/happy2-server/dist/modules/agent/impl/agentReplyMutationId.js.map +1 -0
  250. package/packages/happy2-server/dist/modules/agent/impl/agentSecretAssignment.d.ts +6 -0
  251. package/packages/happy2-server/dist/modules/agent/impl/agentSecretAssignment.d.ts.map +1 -0
  252. package/packages/happy2-server/dist/modules/agent/impl/agentSecretAssignment.js +2 -0
  253. package/packages/happy2-server/dist/modules/agent/impl/agentSecretAssignment.js.map +1 -0
  254. package/packages/happy2-server/dist/modules/agent/impl/agentSecretBinding.d.ts +7 -0
  255. package/packages/happy2-server/dist/modules/agent/impl/agentSecretBinding.d.ts.map +1 -0
  256. package/packages/happy2-server/dist/modules/agent/impl/agentSecretBinding.js +2 -0
  257. package/packages/happy2-server/dist/modules/agent/impl/agentSecretBinding.js.map +1 -0
  258. package/packages/happy2-server/dist/modules/agent/impl/agentTurnPrompt.d.ts +8 -0
  259. package/packages/happy2-server/dist/modules/agent/impl/agentTurnPrompt.d.ts.map +1 -0
  260. package/packages/happy2-server/dist/modules/agent/impl/agentTurnPrompt.js +173 -0
  261. package/packages/happy2-server/dist/modules/agent/impl/agentTurnPrompt.js.map +1 -0
  262. package/packages/happy2-server/dist/modules/agent/impl/agentTurnWork.d.ts +30 -0
  263. package/packages/happy2-server/dist/modules/agent/impl/agentTurnWork.d.ts.map +1 -0
  264. package/packages/happy2-server/dist/modules/agent/impl/agentTurnWork.js +38 -0
  265. package/packages/happy2-server/dist/modules/agent/impl/agentTurnWork.js.map +1 -0
  266. package/packages/happy2-server/dist/modules/agent/impl/agentTurnWorkSelection.d.ts +248 -0
  267. package/packages/happy2-server/dist/modules/agent/impl/agentTurnWorkSelection.d.ts.map +1 -0
  268. package/packages/happy2-server/dist/modules/agent/impl/agentTurnWorkSelection.js +17 -0
  269. package/packages/happy2-server/dist/modules/agent/impl/agentTurnWorkSelection.js.map +1 -0
  270. package/packages/happy2-server/dist/modules/agent/impl/asAgentImage.d.ts +3 -0
  271. package/packages/happy2-server/dist/modules/agent/impl/asAgentImage.d.ts.map +1 -0
  272. package/packages/happy2-server/dist/modules/agent/impl/asAgentImage.js +32 -0
  273. package/packages/happy2-server/dist/modules/agent/impl/asAgentImage.js.map +1 -0
  274. package/packages/happy2-server/dist/modules/agent/impl/asAgentImageDetails.d.ts +3 -0
  275. package/packages/happy2-server/dist/modules/agent/impl/asAgentImageDetails.d.ts.map +1 -0
  276. package/packages/happy2-server/dist/modules/agent/impl/asAgentImageDetails.js +13 -0
  277. package/packages/happy2-server/dist/modules/agent/impl/asAgentImageDetails.js.map +1 -0
  278. package/packages/happy2-server/dist/modules/agent/impl/asRigEventCheckpoint.d.ts +8 -0
  279. package/packages/happy2-server/dist/modules/agent/impl/asRigEventCheckpoint.d.ts.map +1 -0
  280. package/packages/happy2-server/dist/modules/agent/impl/asRigEventCheckpoint.js +18 -0
  281. package/packages/happy2-server/dist/modules/agent/impl/asRigEventCheckpoint.js.map +1 -0
  282. package/packages/happy2-server/dist/modules/agent/impl/ensureDefaultAgentChannelsDb.d.ts +7 -0
  283. package/packages/happy2-server/dist/modules/agent/impl/ensureDefaultAgentChannelsDb.d.ts.map +1 -0
  284. package/packages/happy2-server/dist/modules/agent/impl/ensureDefaultAgentChannelsDb.js +178 -0
  285. package/packages/happy2-server/dist/modules/agent/impl/ensureDefaultAgentChannelsDb.js.map +1 -0
  286. package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.d.ts +21 -0
  287. package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.d.ts.map +1 -0
  288. package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.js +123 -0
  289. package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.js.map +1 -0
  290. package/packages/happy2-server/dist/modules/agent/impl/maxAgentImageBuildLogCharacters.d.ts +2 -0
  291. package/packages/happy2-server/dist/modules/agent/impl/maxAgentImageBuildLogCharacters.d.ts.map +1 -0
  292. package/packages/happy2-server/dist/modules/agent/impl/maxAgentImageBuildLogCharacters.js +2 -0
  293. package/packages/happy2-server/dist/modules/agent/impl/maxAgentImageBuildLogCharacters.js.map +1 -0
  294. package/packages/happy2-server/dist/modules/agent/rigEventCheckpoint.d.ts +8 -0
  295. package/packages/happy2-server/dist/modules/agent/rigEventCheckpoint.d.ts.map +1 -0
  296. package/packages/happy2-server/dist/modules/agent/rigEventCheckpoint.js +27 -0
  297. package/packages/happy2-server/dist/modules/agent/rigEventCheckpoint.js.map +1 -0
  298. package/packages/happy2-server/dist/modules/agent/rigEventGetCheckpoint.d.ts +8 -0
  299. package/packages/happy2-server/dist/modules/agent/rigEventGetCheckpoint.d.ts.map +1 -0
  300. package/packages/happy2-server/dist/modules/agent/rigEventGetCheckpoint.js +23 -0
  301. package/packages/happy2-server/dist/modules/agent/rigEventGetCheckpoint.js.map +1 -0
  302. package/packages/happy2-server/dist/modules/agent/rigEventMarkTrimmed.d.ts +8 -0
  303. package/packages/happy2-server/dist/modules/agent/rigEventMarkTrimmed.d.ts.map +1 -0
  304. package/packages/happy2-server/dist/modules/agent/rigEventMarkTrimmed.js +24 -0
  305. package/packages/happy2-server/dist/modules/agent/rigEventMarkTrimmed.js.map +1 -0
  306. package/packages/happy2-server/dist/modules/agent/types.d.ts +8 -0
  307. package/packages/happy2-server/dist/modules/agent/types.d.ts.map +1 -0
  308. package/packages/happy2-server/dist/modules/agent/types.js +2 -0
  309. package/packages/happy2-server/dist/modules/agent/types.js.map +1 -0
  310. package/packages/happy2-server/dist/modules/agents/daemon.d.ts +15 -1
  311. package/packages/happy2-server/dist/modules/agents/daemon.d.ts.map +1 -1
  312. package/packages/happy2-server/dist/modules/agents/daemon.js +19 -2
  313. package/packages/happy2-server/dist/modules/agents/daemon.js.map +1 -1
  314. package/packages/happy2-server/dist/modules/agents/index.d.ts +0 -2
  315. package/packages/happy2-server/dist/modules/agents/index.d.ts.map +1 -1
  316. package/packages/happy2-server/dist/modules/agents/index.js +0 -1
  317. package/packages/happy2-server/dist/modules/agents/index.js.map +1 -1
  318. package/packages/happy2-server/dist/modules/agents/service.d.ts +90 -15
  319. package/packages/happy2-server/dist/modules/agents/service.d.ts.map +1 -1
  320. package/packages/happy2-server/dist/modules/agents/service.js +701 -124
  321. package/packages/happy2-server/dist/modules/agents/service.js.map +1 -1
  322. package/packages/happy2-server/dist/modules/audit/auditLogList.d.ts +16 -0
  323. package/packages/happy2-server/dist/modules/audit/auditLogList.d.ts.map +1 -0
  324. package/packages/happy2-server/dist/modules/audit/auditLogList.js +37 -0
  325. package/packages/happy2-server/dist/modules/audit/auditLogList.js.map +1 -0
  326. package/packages/happy2-server/dist/modules/auth/accountCreatePassword.d.ts +8 -0
  327. package/packages/happy2-server/dist/modules/auth/accountCreatePassword.d.ts.map +1 -0
  328. package/packages/happy2-server/dist/modules/auth/accountCreatePassword.js +23 -0
  329. package/packages/happy2-server/dist/modules/auth/accountCreatePassword.js.map +1 -0
  330. package/packages/happy2-server/dist/modules/auth/accountFindOidc.d.ts +8 -0
  331. package/packages/happy2-server/dist/modules/auth/accountFindOidc.d.ts.map +1 -0
  332. package/packages/happy2-server/dist/modules/auth/accountFindOidc.js +20 -0
  333. package/packages/happy2-server/dist/modules/auth/accountFindOidc.js.map +1 -0
  334. package/packages/happy2-server/dist/modules/auth/accountFindOrCreateOidc.d.ts +8 -0
  335. package/packages/happy2-server/dist/modules/auth/accountFindOrCreateOidc.d.ts.map +1 -0
  336. package/packages/happy2-server/dist/modules/auth/accountFindOrCreateOidc.js +44 -0
  337. package/packages/happy2-server/dist/modules/auth/accountFindOrCreateOidc.js.map +1 -0
  338. package/packages/happy2-server/dist/modules/auth/accountFindPassword.d.ts +8 -0
  339. package/packages/happy2-server/dist/modules/auth/accountFindPassword.d.ts.map +1 -0
  340. package/packages/happy2-server/dist/modules/auth/accountFindPassword.js +14 -0
  341. package/packages/happy2-server/dist/modules/auth/accountFindPassword.js.map +1 -0
  342. package/packages/happy2-server/dist/modules/auth/accountRegisterPassword.d.ts +8 -0
  343. package/packages/happy2-server/dist/modules/auth/accountRegisterPassword.d.ts.map +1 -0
  344. package/packages/happy2-server/dist/modules/auth/accountRegisterPassword.js +39 -0
  345. package/packages/happy2-server/dist/modules/auth/accountRegisterPassword.js.map +1 -0
  346. package/packages/happy2-server/dist/modules/auth/errors.d.ts +7 -0
  347. package/packages/happy2-server/dist/modules/auth/errors.d.ts.map +1 -0
  348. package/packages/happy2-server/dist/modules/auth/errors.js +13 -0
  349. package/packages/happy2-server/dist/modules/auth/errors.js.map +1 -0
  350. package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.d.ts +6 -0
  351. package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.d.ts.map +1 -0
  352. package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.js +17 -0
  353. package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.js.map +1 -0
  354. package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.test.d.ts +2 -0
  355. package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.test.d.ts.map +1 -0
  356. package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.test.js +18 -0
  357. package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.test.js.map +1 -0
  358. package/packages/happy2-server/dist/modules/auth/impl/accountRow.d.ts +3 -0
  359. package/packages/happy2-server/dist/modules/auth/impl/accountRow.d.ts.map +1 -0
  360. package/packages/happy2-server/dist/modules/auth/impl/accountRow.js +2 -0
  361. package/packages/happy2-server/dist/modules/auth/impl/accountRow.js.map +1 -0
  362. package/packages/happy2-server/dist/modules/auth/impl/asAccount.d.ts +4 -0
  363. package/packages/happy2-server/dist/modules/auth/impl/asAccount.d.ts.map +1 -0
  364. package/packages/happy2-server/dist/modules/auth/impl/asAccount.js +13 -0
  365. package/packages/happy2-server/dist/modules/auth/impl/asAccount.js.map +1 -0
  366. package/packages/happy2-server/dist/modules/auth/impl/asSession.d.ts +7 -0
  367. package/packages/happy2-server/dist/modules/auth/impl/asSession.d.ts.map +1 -0
  368. package/packages/happy2-server/dist/modules/auth/impl/asSession.js +9 -0
  369. package/packages/happy2-server/dist/modules/auth/impl/asSession.js.map +1 -0
  370. package/packages/happy2-server/dist/modules/auth/impl/authorizeNewRegistrationDb.d.ts +4 -0
  371. package/packages/happy2-server/dist/modules/auth/impl/authorizeNewRegistrationDb.d.ts.map +1 -0
  372. package/packages/happy2-server/dist/modules/auth/impl/authorizeNewRegistrationDb.js +42 -0
  373. package/packages/happy2-server/dist/modules/auth/impl/authorizeNewRegistrationDb.js.map +1 -0
  374. package/packages/happy2-server/dist/modules/auth/impl/recordSessionEvent.d.ts +4 -0
  375. package/packages/happy2-server/dist/modules/auth/impl/recordSessionEvent.d.ts.map +1 -0
  376. package/packages/happy2-server/dist/modules/auth/impl/recordSessionEvent.js +16 -0
  377. package/packages/happy2-server/dist/modules/auth/impl/recordSessionEvent.js.map +1 -0
  378. package/packages/happy2-server/dist/modules/auth/impl/requireNewRegistrationRequestAllowedDb.d.ts +4 -0
  379. package/packages/happy2-server/dist/modules/auth/impl/requireNewRegistrationRequestAllowedDb.d.ts.map +1 -0
  380. package/packages/happy2-server/dist/modules/auth/impl/requireNewRegistrationRequestAllowedDb.js +28 -0
  381. package/packages/happy2-server/dist/modules/auth/impl/requireNewRegistrationRequestAllowedDb.js.map +1 -0
  382. package/packages/happy2-server/dist/modules/auth/impl/tokenHash.d.ts +2 -0
  383. package/packages/happy2-server/dist/modules/auth/impl/tokenHash.d.ts.map +1 -0
  384. package/packages/happy2-server/dist/modules/auth/impl/tokenHash.js +5 -0
  385. package/packages/happy2-server/dist/modules/auth/impl/tokenHash.js.map +1 -0
  386. package/packages/happy2-server/dist/modules/auth/magicLinkConsume.d.ts +8 -0
  387. package/packages/happy2-server/dist/modules/auth/magicLinkConsume.d.ts.map +1 -0
  388. package/packages/happy2-server/dist/modules/auth/magicLinkConsume.js +50 -0
  389. package/packages/happy2-server/dist/modules/auth/magicLinkConsume.js.map +1 -0
  390. package/packages/happy2-server/dist/modules/auth/magicLinkCreate.d.ts +7 -0
  391. package/packages/happy2-server/dist/modules/auth/magicLinkCreate.d.ts.map +1 -0
  392. package/packages/happy2-server/dist/modules/auth/magicLinkCreate.js +36 -0
  393. package/packages/happy2-server/dist/modules/auth/magicLinkCreate.js.map +1 -0
  394. package/packages/happy2-server/dist/modules/auth/metadata.d.ts +1 -1
  395. package/packages/happy2-server/dist/modules/auth/metadata.d.ts.map +1 -1
  396. package/packages/happy2-server/dist/modules/auth/methods.d.ts +0 -1
  397. package/packages/happy2-server/dist/modules/auth/methods.d.ts.map +1 -1
  398. package/packages/happy2-server/dist/modules/auth/methods.js +1 -5
  399. package/packages/happy2-server/dist/modules/auth/methods.js.map +1 -1
  400. package/packages/happy2-server/dist/modules/auth/methods.test.js +0 -1
  401. package/packages/happy2-server/dist/modules/auth/methods.test.js.map +1 -1
  402. package/packages/happy2-server/dist/modules/auth/oidcStateConsume.d.ts +12 -0
  403. package/packages/happy2-server/dist/modules/auth/oidcStateConsume.d.ts.map +1 -0
  404. package/packages/happy2-server/dist/modules/auth/oidcStateConsume.js +20 -0
  405. package/packages/happy2-server/dist/modules/auth/oidcStateConsume.js.map +1 -0
  406. package/packages/happy2-server/dist/modules/auth/oidcStateCreate.d.ts +7 -0
  407. package/packages/happy2-server/dist/modules/auth/oidcStateCreate.d.ts.map +1 -0
  408. package/packages/happy2-server/dist/modules/auth/oidcStateCreate.js +17 -0
  409. package/packages/happy2-server/dist/modules/auth/oidcStateCreate.js.map +1 -0
  410. package/packages/happy2-server/dist/modules/auth/service.d.ts +11 -7
  411. package/packages/happy2-server/dist/modules/auth/service.d.ts.map +1 -1
  412. package/packages/happy2-server/dist/modules/auth/service.js +101 -27
  413. package/packages/happy2-server/dist/modules/auth/service.js.map +1 -1
  414. package/packages/happy2-server/dist/modules/auth/sessionCreate.d.ts +8 -0
  415. package/packages/happy2-server/dist/modules/auth/sessionCreate.d.ts.map +1 -0
  416. package/packages/happy2-server/dist/modules/auth/sessionCreate.js +35 -0
  417. package/packages/happy2-server/dist/modules/auth/sessionCreate.js.map +1 -0
  418. package/packages/happy2-server/dist/modules/auth/sessionFindActive.d.ts +8 -0
  419. package/packages/happy2-server/dist/modules/auth/sessionFindActive.d.ts.map +1 -0
  420. package/packages/happy2-server/dist/modules/auth/sessionFindActive.js +22 -0
  421. package/packages/happy2-server/dist/modules/auth/sessionFindActive.js.map +1 -0
  422. package/packages/happy2-server/dist/modules/auth/sessionRefresh.d.ts +8 -0
  423. package/packages/happy2-server/dist/modules/auth/sessionRefresh.d.ts.map +1 -0
  424. package/packages/happy2-server/dist/modules/auth/sessionRefresh.js +37 -0
  425. package/packages/happy2-server/dist/modules/auth/sessionRefresh.js.map +1 -0
  426. package/packages/happy2-server/dist/modules/auth/sessionRevoke.d.ts +8 -0
  427. package/packages/happy2-server/dist/modules/auth/sessionRevoke.d.ts.map +1 -0
  428. package/packages/happy2-server/dist/modules/auth/sessionRevoke.js +25 -0
  429. package/packages/happy2-server/dist/modules/auth/sessionRevoke.js.map +1 -0
  430. package/packages/happy2-server/dist/modules/auth/types.d.ts +22 -0
  431. package/packages/happy2-server/dist/modules/auth/types.d.ts.map +1 -0
  432. package/packages/happy2-server/dist/modules/auth/types.js +2 -0
  433. package/packages/happy2-server/dist/modules/auth/types.js.map +1 -0
  434. package/packages/happy2-server/dist/modules/automation/automationCreate.d.ts +24 -0
  435. package/packages/happy2-server/dist/modules/automation/automationCreate.d.ts.map +1 -0
  436. package/packages/happy2-server/dist/modules/automation/automationCreate.js +84 -0
  437. package/packages/happy2-server/dist/modules/automation/automationCreate.js.map +1 -0
  438. package/packages/happy2-server/dist/modules/automation/automationDelete.d.ts +8 -0
  439. package/packages/happy2-server/dist/modules/automation/automationDelete.d.ts.map +1 -0
  440. package/packages/happy2-server/dist/modules/automation/automationDelete.js +41 -0
  441. package/packages/happy2-server/dist/modules/automation/automationDelete.js.map +1 -0
  442. package/packages/happy2-server/dist/modules/automation/automationList.d.ts +8 -0
  443. package/packages/happy2-server/dist/modules/automation/automationList.d.ts.map +1 -0
  444. package/packages/happy2-server/dist/modules/automation/automationList.js +19 -0
  445. package/packages/happy2-server/dist/modules/automation/automationList.js.map +1 -0
  446. package/packages/happy2-server/dist/modules/automation/automationRunDue.d.ts +9 -0
  447. package/packages/happy2-server/dist/modules/automation/automationRunDue.d.ts.map +1 -0
  448. package/packages/happy2-server/dist/modules/automation/automationRunDue.js +37 -0
  449. package/packages/happy2-server/dist/modules/automation/automationRunDue.js.map +1 -0
  450. package/packages/happy2-server/dist/modules/automation/automationRunEvent.d.ts +9 -0
  451. package/packages/happy2-server/dist/modules/automation/automationRunEvent.d.ts.map +1 -0
  452. package/packages/happy2-server/dist/modules/automation/automationRunEvent.js +68 -0
  453. package/packages/happy2-server/dist/modules/automation/automationRunEvent.js.map +1 -0
  454. package/packages/happy2-server/dist/modules/automation/automationRunNow.d.ts +12 -0
  455. package/packages/happy2-server/dist/modules/automation/automationRunNow.d.ts.map +1 -0
  456. package/packages/happy2-server/dist/modules/automation/automationRunNow.js +15 -0
  457. package/packages/happy2-server/dist/modules/automation/automationRunNow.js.map +1 -0
  458. package/packages/happy2-server/dist/modules/automation/automationRunPendingEvents.d.ts +9 -0
  459. package/packages/happy2-server/dist/modules/automation/automationRunPendingEvents.d.ts.map +1 -0
  460. package/packages/happy2-server/dist/modules/automation/automationRunPendingEvents.js +40 -0
  461. package/packages/happy2-server/dist/modules/automation/automationRunPendingEvents.js.map +1 -0
  462. package/packages/happy2-server/dist/modules/automation/automationRunWebhook.d.ts +12 -0
  463. package/packages/happy2-server/dist/modules/automation/automationRunWebhook.d.ts.map +1 -0
  464. package/packages/happy2-server/dist/modules/automation/automationRunWebhook.js +40 -0
  465. package/packages/happy2-server/dist/modules/automation/automationRunWebhook.js.map +1 -0
  466. package/packages/happy2-server/dist/modules/automation/automationUpdate.d.ts +20 -0
  467. package/packages/happy2-server/dist/modules/automation/automationUpdate.d.ts.map +1 -0
  468. package/packages/happy2-server/dist/modules/automation/automationUpdate.js +90 -0
  469. package/packages/happy2-server/dist/modules/automation/automationUpdate.js.map +1 -0
  470. package/packages/happy2-server/dist/modules/automation/impl/appendAudit.d.ts +7 -0
  471. package/packages/happy2-server/dist/modules/automation/impl/appendAudit.d.ts.map +1 -0
  472. package/packages/happy2-server/dist/modules/automation/impl/appendAudit.js +17 -0
  473. package/packages/happy2-server/dist/modules/automation/impl/appendAudit.js.map +1 -0
  474. package/packages/happy2-server/dist/modules/automation/impl/asAutomation.d.ts +4 -0
  475. package/packages/happy2-server/dist/modules/automation/impl/asAutomation.d.ts.map +1 -0
  476. package/packages/happy2-server/dist/modules/automation/impl/asAutomation.js +25 -0
  477. package/packages/happy2-server/dist/modules/automation/impl/asAutomation.js.map +1 -0
  478. package/packages/happy2-server/dist/modules/automation/impl/automationRow.d.ts +3 -0
  479. package/packages/happy2-server/dist/modules/automation/impl/automationRow.d.ts.map +1 -0
  480. package/packages/happy2-server/dist/modules/automation/impl/automationRow.js +2 -0
  481. package/packages/happy2-server/dist/modules/automation/impl/automationRow.js.map +1 -0
  482. package/packages/happy2-server/dist/modules/automation/impl/automationSummary.d.ts +18 -0
  483. package/packages/happy2-server/dist/modules/automation/impl/automationSummary.d.ts.map +1 -0
  484. package/packages/happy2-server/dist/modules/automation/impl/automationSummary.js +2 -0
  485. package/packages/happy2-server/dist/modules/automation/impl/automationSummary.js.map +1 -0
  486. package/packages/happy2-server/dist/modules/automation/impl/botExists.d.ts +7 -0
  487. package/packages/happy2-server/dist/modules/automation/impl/botExists.d.ts.map +1 -0
  488. package/packages/happy2-server/dist/modules/automation/impl/botExists.js +17 -0
  489. package/packages/happy2-server/dist/modules/automation/impl/botExists.js.map +1 -0
  490. package/packages/happy2-server/dist/modules/automation/impl/chatExists.d.ts +7 -0
  491. package/packages/happy2-server/dist/modules/automation/impl/chatExists.d.ts.map +1 -0
  492. package/packages/happy2-server/dist/modules/automation/impl/chatExists.js +17 -0
  493. package/packages/happy2-server/dist/modules/automation/impl/chatExists.js.map +1 -0
  494. package/packages/happy2-server/dist/modules/automation/impl/eventKinds.d.ts +2 -0
  495. package/packages/happy2-server/dist/modules/automation/impl/eventKinds.d.ts.map +1 -0
  496. package/packages/happy2-server/dist/modules/automation/impl/eventKinds.js +12 -0
  497. package/packages/happy2-server/dist/modules/automation/impl/eventKinds.js.map +1 -0
  498. package/packages/happy2-server/dist/modules/automation/impl/executeAutomation.d.ts +12 -0
  499. package/packages/happy2-server/dist/modules/automation/impl/executeAutomation.d.ts.map +1 -0
  500. package/packages/happy2-server/dist/modules/automation/impl/executeAutomation.js +181 -0
  501. package/packages/happy2-server/dist/modules/automation/impl/executeAutomation.js.map +1 -0
  502. package/packages/happy2-server/dist/modules/automation/impl/getAutomation.d.ts +4 -0
  503. package/packages/happy2-server/dist/modules/automation/impl/getAutomation.d.ts.map +1 -0
  504. package/packages/happy2-server/dist/modules/automation/impl/getAutomation.js +12 -0
  505. package/packages/happy2-server/dist/modules/automation/impl/getAutomation.js.map +1 -0
  506. package/packages/happy2-server/dist/modules/automation/impl/hashesEqual.d.ts +2 -0
  507. package/packages/happy2-server/dist/modules/automation/impl/hashesEqual.d.ts.map +1 -0
  508. package/packages/happy2-server/dist/modules/automation/impl/hashesEqual.js +7 -0
  509. package/packages/happy2-server/dist/modules/automation/impl/hashesEqual.js.map +1 -0
  510. package/packages/happy2-server/dist/modules/automation/impl/jsonObject.d.ts +2 -0
  511. package/packages/happy2-server/dist/modules/automation/impl/jsonObject.d.ts.map +1 -0
  512. package/packages/happy2-server/dist/modules/automation/impl/jsonObject.js +7 -0
  513. package/packages/happy2-server/dist/modules/automation/impl/jsonObject.js.map +1 -0
  514. package/packages/happy2-server/dist/modules/automation/impl/matchesEvent.d.ts +6 -0
  515. package/packages/happy2-server/dist/modules/automation/impl/matchesEvent.d.ts.map +1 -0
  516. package/packages/happy2-server/dist/modules/automation/impl/matchesEvent.js +10 -0
  517. package/packages/happy2-server/dist/modules/automation/impl/matchesEvent.js.map +1 -0
  518. package/packages/happy2-server/dist/modules/automation/impl/moderationAction.d.ts +3 -0
  519. package/packages/happy2-server/dist/modules/automation/impl/moderationAction.d.ts.map +1 -0
  520. package/packages/happy2-server/dist/modules/automation/impl/moderationAction.js +17 -0
  521. package/packages/happy2-server/dist/modules/automation/impl/moderationAction.js.map +1 -0
  522. package/packages/happy2-server/dist/modules/automation/impl/moderationActionType.d.ts +2 -0
  523. package/packages/happy2-server/dist/modules/automation/impl/moderationActionType.d.ts.map +1 -0
  524. package/packages/happy2-server/dist/modules/automation/impl/moderationActionType.js +2 -0
  525. package/packages/happy2-server/dist/modules/automation/impl/moderationActionType.js.map +1 -0
  526. package/packages/happy2-server/dist/modules/automation/impl/optionalObject.d.ts +2 -0
  527. package/packages/happy2-server/dist/modules/automation/impl/optionalObject.d.ts.map +1 -0
  528. package/packages/happy2-server/dist/modules/automation/impl/optionalObject.js +9 -0
  529. package/packages/happy2-server/dist/modules/automation/impl/optionalObject.js.map +1 -0
  530. package/packages/happy2-server/dist/modules/automation/impl/optionalString.d.ts +2 -0
  531. package/packages/happy2-server/dist/modules/automation/impl/optionalString.d.ts.map +1 -0
  532. package/packages/happy2-server/dist/modules/automation/impl/optionalString.js +9 -0
  533. package/packages/happy2-server/dist/modules/automation/impl/optionalString.js.map +1 -0
  534. package/packages/happy2-server/dist/modules/automation/impl/positiveNumber.d.ts +2 -0
  535. package/packages/happy2-server/dist/modules/automation/impl/positiveNumber.d.ts.map +1 -0
  536. package/packages/happy2-server/dist/modules/automation/impl/positiveNumber.js +4 -0
  537. package/packages/happy2-server/dist/modules/automation/impl/positiveNumber.js.map +1 -0
  538. package/packages/happy2-server/dist/modules/automation/impl/requireAdmin.d.ts +7 -0
  539. package/packages/happy2-server/dist/modules/automation/impl/requireAdmin.d.ts.map +1 -0
  540. package/packages/happy2-server/dist/modules/automation/impl/requireAdmin.js +20 -0
  541. package/packages/happy2-server/dist/modules/automation/impl/requireAdmin.js.map +1 -0
  542. package/packages/happy2-server/dist/modules/automation/impl/requiredString.d.ts +2 -0
  543. package/packages/happy2-server/dist/modules/automation/impl/requiredString.d.ts.map +1 -0
  544. package/packages/happy2-server/dist/modules/automation/impl/requiredString.js +7 -0
  545. package/packages/happy2-server/dist/modules/automation/impl/requiredString.js.map +1 -0
  546. package/packages/happy2-server/dist/modules/automation/impl/secretHash.d.ts +2 -0
  547. package/packages/happy2-server/dist/modules/automation/impl/secretHash.d.ts.map +1 -0
  548. package/packages/happy2-server/dist/modules/automation/impl/secretHash.js +5 -0
  549. package/packages/happy2-server/dist/modules/automation/impl/secretHash.js.map +1 -0
  550. package/packages/happy2-server/dist/modules/automation/impl/stringArray.d.ts +2 -0
  551. package/packages/happy2-server/dist/modules/automation/impl/stringArray.d.ts.map +1 -0
  552. package/packages/happy2-server/dist/modules/automation/impl/stringArray.js +9 -0
  553. package/packages/happy2-server/dist/modules/automation/impl/stringArray.js.map +1 -0
  554. package/packages/happy2-server/dist/modules/automation/impl/validateAction.d.ts +3 -0
  555. package/packages/happy2-server/dist/modules/automation/impl/validateAction.d.ts.map +1 -0
  556. package/packages/happy2-server/dist/modules/automation/impl/validateAction.js +20 -0
  557. package/packages/happy2-server/dist/modules/automation/impl/validateAction.js.map +1 -0
  558. package/packages/happy2-server/dist/modules/automation/impl/validateTrigger.d.ts +3 -0
  559. package/packages/happy2-server/dist/modules/automation/impl/validateTrigger.d.ts.map +1 -0
  560. package/packages/happy2-server/dist/modules/automation/impl/validateTrigger.js +18 -0
  561. package/packages/happy2-server/dist/modules/automation/impl/validateTrigger.js.map +1 -0
  562. package/packages/happy2-server/dist/modules/automation/types.d.ts +15 -0
  563. package/packages/happy2-server/dist/modules/automation/types.d.ts.map +1 -0
  564. package/packages/happy2-server/dist/modules/automation/types.js +2 -0
  565. package/packages/happy2-server/dist/modules/automation/types.js.map +1 -0
  566. package/packages/happy2-server/dist/modules/backup/backupCreate.d.ts +16 -0
  567. package/packages/happy2-server/dist/modules/backup/backupCreate.d.ts.map +1 -0
  568. package/packages/happy2-server/dist/modules/backup/backupCreate.js +48 -0
  569. package/packages/happy2-server/dist/modules/backup/backupCreate.js.map +1 -0
  570. package/packages/happy2-server/dist/modules/backup/backupList.d.ts +13 -0
  571. package/packages/happy2-server/dist/modules/backup/backupList.d.ts.map +1 -0
  572. package/packages/happy2-server/dist/modules/backup/backupList.js +31 -0
  573. package/packages/happy2-server/dist/modules/backup/backupList.js.map +1 -0
  574. package/packages/happy2-server/dist/modules/backup/backupUpdate.d.ts +19 -0
  575. package/packages/happy2-server/dist/modules/backup/backupUpdate.d.ts.map +1 -0
  576. package/packages/happy2-server/dist/modules/backup/backupUpdate.js +55 -0
  577. package/packages/happy2-server/dist/modules/backup/backupUpdate.js.map +1 -0
  578. package/packages/happy2-server/dist/modules/backup/impl/asBackup.d.ts +3 -0
  579. package/packages/happy2-server/dist/modules/backup/impl/asBackup.d.ts.map +1 -0
  580. package/packages/happy2-server/dist/modules/backup/impl/asBackup.js +22 -0
  581. package/packages/happy2-server/dist/modules/backup/impl/asBackup.js.map +1 -0
  582. package/packages/happy2-server/dist/modules/backup/impl/assertBackupTransition.d.ts +3 -0
  583. package/packages/happy2-server/dist/modules/backup/impl/assertBackupTransition.d.ts.map +1 -0
  584. package/packages/happy2-server/dist/modules/backup/impl/assertBackupTransition.js +13 -0
  585. package/packages/happy2-server/dist/modules/backup/impl/assertBackupTransition.js.map +1 -0
  586. package/packages/happy2-server/dist/modules/backup/impl/backupDb.d.ts +8 -0
  587. package/packages/happy2-server/dist/modules/backup/impl/backupDb.d.ts.map +1 -0
  588. package/packages/happy2-server/dist/modules/backup/impl/backupDb.js +21 -0
  589. package/packages/happy2-server/dist/modules/backup/impl/backupDb.js.map +1 -0
  590. package/packages/happy2-server/dist/modules/backup/impl/backupSelection.d.ts +229 -0
  591. package/packages/happy2-server/dist/modules/backup/impl/backupSelection.d.ts.map +1 -0
  592. package/packages/happy2-server/dist/modules/backup/impl/backupSelection.js +16 -0
  593. package/packages/happy2-server/dist/modules/backup/impl/backupSelection.js.map +1 -0
  594. package/packages/happy2-server/dist/modules/backup/impl/isUniqueConstraint.d.ts +2 -0
  595. package/packages/happy2-server/dist/modules/backup/impl/isUniqueConstraint.d.ts.map +1 -0
  596. package/packages/happy2-server/dist/modules/backup/impl/isUniqueConstraint.js +12 -0
  597. package/packages/happy2-server/dist/modules/backup/impl/isUniqueConstraint.js.map +1 -0
  598. package/packages/happy2-server/dist/modules/backup/impl/optionalNumber.d.ts +2 -0
  599. package/packages/happy2-server/dist/modules/backup/impl/optionalNumber.d.ts.map +1 -0
  600. package/packages/happy2-server/dist/modules/backup/impl/optionalNumber.js +5 -0
  601. package/packages/happy2-server/dist/modules/backup/impl/optionalNumber.js.map +1 -0
  602. package/packages/happy2-server/dist/modules/bot/botCreate.d.ts +15 -0
  603. package/packages/happy2-server/dist/modules/bot/botCreate.d.ts.map +1 -0
  604. package/packages/happy2-server/dist/modules/bot/botCreate.js +59 -0
  605. package/packages/happy2-server/dist/modules/bot/botCreate.js.map +1 -0
  606. package/packages/happy2-server/dist/modules/bot/botGet.d.ts +8 -0
  607. package/packages/happy2-server/dist/modules/bot/botGet.d.ts.map +1 -0
  608. package/packages/happy2-server/dist/modules/bot/botGet.js +20 -0
  609. package/packages/happy2-server/dist/modules/bot/botGet.js.map +1 -0
  610. package/packages/happy2-server/dist/modules/bot/botList.d.ts +8 -0
  611. package/packages/happy2-server/dist/modules/bot/botList.d.ts.map +1 -0
  612. package/packages/happy2-server/dist/modules/bot/botList.js +29 -0
  613. package/packages/happy2-server/dist/modules/bot/botList.js.map +1 -0
  614. package/packages/happy2-server/dist/modules/bot/botRevoke.d.ts +8 -0
  615. package/packages/happy2-server/dist/modules/bot/botRevoke.d.ts.map +1 -0
  616. package/packages/happy2-server/dist/modules/bot/botRevoke.js +53 -0
  617. package/packages/happy2-server/dist/modules/bot/botRevoke.js.map +1 -0
  618. package/packages/happy2-server/dist/modules/bot/botUpdate.d.ts +16 -0
  619. package/packages/happy2-server/dist/modules/bot/botUpdate.d.ts.map +1 -0
  620. package/packages/happy2-server/dist/modules/bot/botUpdate.js +88 -0
  621. package/packages/happy2-server/dist/modules/bot/botUpdate.js.map +1 -0
  622. package/packages/happy2-server/dist/modules/bot/impl/asBot.d.ts +3 -0
  623. package/packages/happy2-server/dist/modules/bot/impl/asBot.d.ts.map +1 -0
  624. package/packages/happy2-server/dist/modules/bot/impl/asBot.js +18 -0
  625. package/packages/happy2-server/dist/modules/bot/impl/asBot.js.map +1 -0
  626. package/packages/happy2-server/dist/modules/bot/impl/botSelection.d.ts +191 -0
  627. package/packages/happy2-server/dist/modules/bot/impl/botSelection.d.ts.map +1 -0
  628. package/packages/happy2-server/dist/modules/bot/impl/botSelection.js +14 -0
  629. package/packages/happy2-server/dist/modules/bot/impl/botSelection.js.map +1 -0
  630. package/packages/happy2-server/dist/modules/bot/impl/normalizedUsername.d.ts +2 -0
  631. package/packages/happy2-server/dist/modules/bot/impl/normalizedUsername.d.ts.map +1 -0
  632. package/packages/happy2-server/dist/modules/bot/impl/normalizedUsername.js +8 -0
  633. package/packages/happy2-server/dist/modules/bot/impl/normalizedUsername.js.map +1 -0
  634. package/packages/happy2-server/dist/modules/bot/impl/requireFileDb.d.ts +7 -0
  635. package/packages/happy2-server/dist/modules/bot/impl/requireFileDb.d.ts.map +1 -0
  636. package/packages/happy2-server/dist/modules/bot/impl/requireFileDb.js +19 -0
  637. package/packages/happy2-server/dist/modules/bot/impl/requireFileDb.js.map +1 -0
  638. package/packages/happy2-server/dist/modules/call/callCanSignal.d.ts +12 -0
  639. package/packages/happy2-server/dist/modules/call/callCanSignal.d.ts.map +1 -0
  640. package/packages/happy2-server/dist/modules/call/callCanSignal.js +28 -0
  641. package/packages/happy2-server/dist/modules/call/callCanSignal.js.map +1 -0
  642. package/packages/happy2-server/dist/modules/call/callCreate.d.ts +17 -0
  643. package/packages/happy2-server/dist/modules/call/callCreate.d.ts.map +1 -0
  644. package/packages/happy2-server/dist/modules/call/callCreate.js +130 -0
  645. package/packages/happy2-server/dist/modules/call/callCreate.js.map +1 -0
  646. package/packages/happy2-server/dist/modules/call/callEnd.d.ts +15 -0
  647. package/packages/happy2-server/dist/modules/call/callEnd.d.ts.map +1 -0
  648. package/packages/happy2-server/dist/modules/call/callEnd.js +70 -0
  649. package/packages/happy2-server/dist/modules/call/callEnd.js.map +1 -0
  650. package/packages/happy2-server/dist/modules/call/callGet.d.ts +8 -0
  651. package/packages/happy2-server/dist/modules/call/callGet.d.ts.map +1 -0
  652. package/packages/happy2-server/dist/modules/call/callGet.js +14 -0
  653. package/packages/happy2-server/dist/modules/call/callGet.js.map +1 -0
  654. package/packages/happy2-server/dist/modules/call/callList.d.ts +12 -0
  655. package/packages/happy2-server/dist/modules/call/callList.d.ts.map +1 -0
  656. package/packages/happy2-server/dist/modules/call/callList.js +36 -0
  657. package/packages/happy2-server/dist/modules/call/callList.js.map +1 -0
  658. package/packages/happy2-server/dist/modules/call/callParticipationUpdate.d.ts +15 -0
  659. package/packages/happy2-server/dist/modules/call/callParticipationUpdate.d.ts.map +1 -0
  660. package/packages/happy2-server/dist/modules/call/callParticipationUpdate.js +93 -0
  661. package/packages/happy2-server/dist/modules/call/callParticipationUpdate.js.map +1 -0
  662. package/packages/happy2-server/dist/modules/call/impl/getCallProjectionDb.d.ts +8 -0
  663. package/packages/happy2-server/dist/modules/call/impl/getCallProjectionDb.d.ts.map +1 -0
  664. package/packages/happy2-server/dist/modules/call/impl/getCallProjectionDb.js +67 -0
  665. package/packages/happy2-server/dist/modules/call/impl/getCallProjectionDb.js.map +1 -0
  666. package/packages/happy2-server/dist/modules/chat/actions.test.d.ts +2 -0
  667. package/packages/happy2-server/dist/modules/chat/actions.test.d.ts.map +1 -0
  668. package/packages/happy2-server/dist/modules/{collaboration/repository.test.js → chat/actions.test.js} +316 -155
  669. package/packages/happy2-server/dist/modules/chat/actions.test.js.map +1 -0
  670. package/packages/happy2-server/dist/modules/chat/areaHint.d.ts +3 -0
  671. package/packages/happy2-server/dist/modules/chat/areaHint.d.ts.map +1 -0
  672. package/packages/happy2-server/dist/modules/chat/areaHint.js +9 -0
  673. package/packages/happy2-server/dist/modules/chat/areaHint.js.map +1 -0
  674. package/packages/happy2-server/dist/modules/chat/asFile.d.ts +3 -0
  675. package/packages/happy2-server/dist/modules/chat/asFile.d.ts.map +1 -0
  676. package/packages/happy2-server/dist/modules/chat/asFile.js +21 -0
  677. package/packages/happy2-server/dist/modules/chat/asFile.js.map +1 -0
  678. package/packages/happy2-server/dist/modules/chat/asServiceMessage.d.ts +3 -0
  679. package/packages/happy2-server/dist/modules/chat/asServiceMessage.d.ts.map +1 -0
  680. package/packages/happy2-server/dist/modules/chat/asServiceMessage.js +19 -0
  681. package/packages/happy2-server/dist/modules/chat/asServiceMessage.js.map +1 -0
  682. package/packages/happy2-server/dist/modules/chat/asUser.d.ts +3 -0
  683. package/packages/happy2-server/dist/modules/chat/asUser.d.ts.map +1 -0
  684. package/packages/happy2-server/dist/modules/chat/asUser.js +22 -0
  685. package/packages/happy2-server/dist/modules/chat/asUser.js.map +1 -0
  686. package/packages/happy2-server/dist/modules/chat/channelAdvance.d.ts +18 -0
  687. package/packages/happy2-server/dist/modules/chat/channelAdvance.d.ts.map +1 -0
  688. package/packages/happy2-server/dist/modules/chat/channelAdvance.js +38 -0
  689. package/packages/happy2-server/dist/modules/chat/channelAdvance.js.map +1 -0
  690. package/packages/happy2-server/dist/modules/chat/channelCreate.d.ts +18 -0
  691. package/packages/happy2-server/dist/modules/chat/channelCreate.d.ts.map +1 -0
  692. package/packages/happy2-server/dist/modules/chat/channelCreate.js +78 -0
  693. package/packages/happy2-server/dist/modules/chat/channelCreate.js.map +1 -0
  694. package/packages/happy2-server/dist/modules/chat/channelDefaultAgentUpdate.d.ts +15 -0
  695. package/packages/happy2-server/dist/modules/chat/channelDefaultAgentUpdate.d.ts.map +1 -0
  696. package/packages/happy2-server/dist/modules/chat/channelDefaultAgentUpdate.js +66 -0
  697. package/packages/happy2-server/dist/modules/chat/channelDefaultAgentUpdate.js.map +1 -0
  698. package/packages/happy2-server/dist/modules/chat/channelDelete.d.ts +15 -0
  699. package/packages/happy2-server/dist/modules/chat/channelDelete.d.ts.map +1 -0
  700. package/packages/happy2-server/dist/modules/chat/channelDelete.js +67 -0
  701. package/packages/happy2-server/dist/modules/chat/channelDelete.js.map +1 -0
  702. package/packages/happy2-server/dist/modules/chat/channelDirectoryList.d.ts +8 -0
  703. package/packages/happy2-server/dist/modules/chat/channelDirectoryList.d.ts.map +1 -0
  704. package/packages/happy2-server/dist/modules/chat/channelDirectoryList.js +21 -0
  705. package/packages/happy2-server/dist/modules/chat/channelDirectoryList.js.map +1 -0
  706. package/packages/happy2-server/dist/modules/chat/channelJoinPublic.d.ts +11 -0
  707. package/packages/happy2-server/dist/modules/chat/channelJoinPublic.d.ts.map +1 -0
  708. package/packages/happy2-server/dist/modules/chat/channelJoinPublic.js +68 -0
  709. package/packages/happy2-server/dist/modules/chat/channelJoinPublic.js.map +1 -0
  710. package/packages/happy2-server/dist/modules/chat/channelLeave.d.ts +10 -0
  711. package/packages/happy2-server/dist/modules/chat/channelLeave.d.ts.map +1 -0
  712. package/packages/happy2-server/dist/modules/chat/channelLeave.js +67 -0
  713. package/packages/happy2-server/dist/modules/chat/channelLeave.js.map +1 -0
  714. package/packages/happy2-server/dist/modules/chat/channelMemberAdd.d.ts +15 -0
  715. package/packages/happy2-server/dist/modules/chat/channelMemberAdd.d.ts.map +1 -0
  716. package/packages/happy2-server/dist/modules/chat/channelMemberAdd.js +79 -0
  717. package/packages/happy2-server/dist/modules/chat/channelMemberAdd.js.map +1 -0
  718. package/packages/happy2-server/dist/modules/chat/channelMemberRemove.d.ts +14 -0
  719. package/packages/happy2-server/dist/modules/chat/channelMemberRemove.d.ts.map +1 -0
  720. package/packages/happy2-server/dist/modules/chat/channelMemberRemove.js +109 -0
  721. package/packages/happy2-server/dist/modules/chat/channelMemberRemove.js.map +1 -0
  722. package/packages/happy2-server/dist/modules/chat/channelMemberSetRole.d.ts +15 -0
  723. package/packages/happy2-server/dist/modules/chat/channelMemberSetRole.d.ts.map +1 -0
  724. package/packages/happy2-server/dist/modules/chat/channelMemberSetRole.js +107 -0
  725. package/packages/happy2-server/dist/modules/chat/channelMemberSetRole.js.map +1 -0
  726. package/packages/happy2-server/dist/modules/chat/channelPolicyUpdate.d.ts +19 -0
  727. package/packages/happy2-server/dist/modules/chat/channelPolicyUpdate.d.ts.map +1 -0
  728. package/packages/happy2-server/dist/modules/chat/channelPolicyUpdate.js +66 -0
  729. package/packages/happy2-server/dist/modules/chat/channelPolicyUpdate.js.map +1 -0
  730. package/packages/happy2-server/dist/modules/chat/channelSetArchived.d.ts +16 -0
  731. package/packages/happy2-server/dist/modules/chat/channelSetArchived.d.ts.map +1 -0
  732. package/packages/happy2-server/dist/modules/chat/channelSetArchived.js +41 -0
  733. package/packages/happy2-server/dist/modules/chat/channelSetArchived.js.map +1 -0
  734. package/packages/happy2-server/dist/modules/chat/channelTopicUpdate.d.ts +11 -0
  735. package/packages/happy2-server/dist/modules/chat/channelTopicUpdate.d.ts.map +1 -0
  736. package/packages/happy2-server/dist/modules/chat/channelTopicUpdate.js +32 -0
  737. package/packages/happy2-server/dist/modules/chat/channelTopicUpdate.js.map +1 -0
  738. package/packages/happy2-server/dist/modules/chat/channelUpdate.d.ts +21 -0
  739. package/packages/happy2-server/dist/modules/chat/channelUpdate.d.ts.map +1 -0
  740. package/packages/happy2-server/dist/modules/chat/channelUpdate.js +99 -0
  741. package/packages/happy2-server/dist/modules/chat/channelUpdate.js.map +1 -0
  742. package/packages/happy2-server/dist/modules/chat/channelUpdateInsert.d.ts +15 -0
  743. package/packages/happy2-server/dist/modules/chat/channelUpdateInsert.d.ts.map +1 -0
  744. package/packages/happy2-server/dist/modules/chat/channelUpdateInsert.js +33 -0
  745. package/packages/happy2-server/dist/modules/chat/channelUpdateInsert.js.map +1 -0
  746. package/packages/happy2-server/dist/modules/chat/chatAccess.d.ts +5 -0
  747. package/packages/happy2-server/dist/modules/chat/chatAccess.d.ts.map +1 -0
  748. package/packages/happy2-server/dist/modules/chat/chatAccess.js +2 -0
  749. package/packages/happy2-server/dist/modules/chat/chatAccess.js.map +1 -0
  750. package/packages/happy2-server/dist/modules/chat/chatAdvanceWithSequence.d.ts +10 -0
  751. package/packages/happy2-server/dist/modules/chat/chatAdvanceWithSequence.d.ts.map +1 -0
  752. package/packages/happy2-server/dist/modules/chat/chatAdvanceWithSequence.js +43 -0
  753. package/packages/happy2-server/dist/modules/chat/chatAdvanceWithSequence.js.map +1 -0
  754. package/packages/happy2-server/dist/modules/chat/chatAppendAudit.d.ts +15 -0
  755. package/packages/happy2-server/dist/modules/chat/chatAppendAudit.d.ts.map +1 -0
  756. package/packages/happy2-server/dist/modules/chat/chatAppendAudit.js +20 -0
  757. package/packages/happy2-server/dist/modules/chat/chatAppendAudit.js.map +1 -0
  758. package/packages/happy2-server/dist/modules/chat/chatBookmarkCreate.d.ts +20 -0
  759. package/packages/happy2-server/dist/modules/chat/chatBookmarkCreate.d.ts.map +1 -0
  760. package/packages/happy2-server/dist/modules/chat/chatBookmarkCreate.js +68 -0
  761. package/packages/happy2-server/dist/modules/chat/chatBookmarkCreate.js.map +1 -0
  762. package/packages/happy2-server/dist/modules/chat/chatBookmarkDelete.d.ts +14 -0
  763. package/packages/happy2-server/dist/modules/chat/chatBookmarkDelete.d.ts.map +1 -0
  764. package/packages/happy2-server/dist/modules/chat/chatBookmarkDelete.js +42 -0
  765. package/packages/happy2-server/dist/modules/chat/chatBookmarkDelete.js.map +1 -0
  766. package/packages/happy2-server/dist/modules/chat/chatBookmarkList.d.ts +8 -0
  767. package/packages/happy2-server/dist/modules/chat/chatBookmarkList.d.ts.map +1 -0
  768. package/packages/happy2-server/dist/modules/chat/chatBookmarkList.js +46 -0
  769. package/packages/happy2-server/dist/modules/chat/chatBookmarkList.js.map +1 -0
  770. package/packages/happy2-server/dist/modules/chat/chatCanAccess.d.ts +7 -0
  771. package/packages/happy2-server/dist/modules/chat/chatCanAccess.d.ts.map +1 -0
  772. package/packages/happy2-server/dist/modules/chat/chatCanAccess.js +10 -0
  773. package/packages/happy2-server/dist/modules/chat/chatCanAccess.js.map +1 -0
  774. package/packages/happy2-server/dist/modules/chat/chatCanPost.d.ts +7 -0
  775. package/packages/happy2-server/dist/modules/chat/chatCanPost.d.ts.map +1 -0
  776. package/packages/happy2-server/dist/modules/chat/chatCanPost.js +12 -0
  777. package/packages/happy2-server/dist/modules/chat/chatCanPost.js.map +1 -0
  778. package/packages/happy2-server/dist/modules/chat/chatGet.d.ts +8 -0
  779. package/packages/happy2-server/dist/modules/chat/chatGet.d.ts.map +1 -0
  780. package/packages/happy2-server/dist/modules/chat/chatGet.js +14 -0
  781. package/packages/happy2-server/dist/modules/chat/chatGet.js.map +1 -0
  782. package/packages/happy2-server/dist/modules/chat/chatGetAccess.d.ts +8 -0
  783. package/packages/happy2-server/dist/modules/chat/chatGetAccess.d.ts.map +1 -0
  784. package/packages/happy2-server/dist/modules/chat/chatGetAccess.js +53 -0
  785. package/packages/happy2-server/dist/modules/chat/chatGetAccess.js.map +1 -0
  786. package/packages/happy2-server/dist/modules/chat/chatHint.d.ts +3 -0
  787. package/packages/happy2-server/dist/modules/chat/chatHint.d.ts.map +1 -0
  788. package/packages/happy2-server/dist/modules/chat/chatHint.js +14 -0
  789. package/packages/happy2-server/dist/modules/chat/chatHint.js.map +1 -0
  790. package/packages/happy2-server/dist/modules/chat/chatIsPostingRestricted.d.ts +7 -0
  791. package/packages/happy2-server/dist/modules/chat/chatIsPostingRestricted.d.ts.map +1 -0
  792. package/packages/happy2-server/dist/modules/chat/chatIsPostingRestricted.js +18 -0
  793. package/packages/happy2-server/dist/modules/chat/chatIsPostingRestricted.js.map +1 -0
  794. package/packages/happy2-server/dist/modules/chat/chatList.d.ts +8 -0
  795. package/packages/happy2-server/dist/modules/chat/chatList.d.ts.map +1 -0
  796. package/packages/happy2-server/dist/modules/chat/chatList.js +21 -0
  797. package/packages/happy2-server/dist/modules/chat/chatList.js.map +1 -0
  798. package/packages/happy2-server/dist/modules/chat/chatMarkRead.d.ts +15 -0
  799. package/packages/happy2-server/dist/modules/chat/chatMarkRead.d.ts.map +1 -0
  800. package/packages/happy2-server/dist/modules/chat/chatMarkRead.js +122 -0
  801. package/packages/happy2-server/dist/modules/chat/chatMarkRead.js.map +1 -0
  802. package/packages/happy2-server/dist/modules/chat/chatMemberList.d.ts +8 -0
  803. package/packages/happy2-server/dist/modules/chat/chatMemberList.d.ts.map +1 -0
  804. package/packages/happy2-server/dist/modules/chat/chatMemberList.js +36 -0
  805. package/packages/happy2-server/dist/modules/chat/chatMemberList.js.map +1 -0
  806. package/packages/happy2-server/dist/modules/chat/chatMembershipList.d.ts +12 -0
  807. package/packages/happy2-server/dist/modules/chat/chatMembershipList.d.ts.map +1 -0
  808. package/packages/happy2-server/dist/modules/chat/chatMembershipList.js +32 -0
  809. package/packages/happy2-server/dist/modules/chat/chatMembershipList.js.map +1 -0
  810. package/packages/happy2-server/dist/modules/chat/chatPinList.d.ts +8 -0
  811. package/packages/happy2-server/dist/modules/chat/chatPinList.d.ts.map +1 -0
  812. package/packages/happy2-server/dist/modules/chat/chatPinList.js +41 -0
  813. package/packages/happy2-server/dist/modules/chat/chatPinList.js.map +1 -0
  814. package/packages/happy2-server/dist/modules/chat/chatRequireManager.d.ts +8 -0
  815. package/packages/happy2-server/dist/modules/chat/chatRequireManager.d.ts.map +1 -0
  816. package/packages/happy2-server/dist/modules/chat/chatRequireManager.js +47 -0
  817. package/packages/happy2-server/dist/modules/chat/chatRequireManager.js.map +1 -0
  818. package/packages/happy2-server/dist/modules/chat/chatStarReorder.d.ts +10 -0
  819. package/packages/happy2-server/dist/modules/chat/chatStarReorder.d.ts.map +1 -0
  820. package/packages/happy2-server/dist/modules/chat/chatStarReorder.js +49 -0
  821. package/packages/happy2-server/dist/modules/chat/chatStarReorder.js.map +1 -0
  822. package/packages/happy2-server/dist/modules/chat/chatStarSet.d.ts +10 -0
  823. package/packages/happy2-server/dist/modules/chat/chatStarSet.d.ts.map +1 -0
  824. package/packages/happy2-server/dist/modules/chat/chatStarSet.js +61 -0
  825. package/packages/happy2-server/dist/modules/chat/chatStarSet.js.map +1 -0
  826. package/packages/happy2-server/dist/modules/chat/chatUpdateInsert.d.ts +15 -0
  827. package/packages/happy2-server/dist/modules/chat/chatUpdateInsert.d.ts.map +1 -0
  828. package/packages/happy2-server/dist/modules/chat/chatUpdateInsert.js +35 -0
  829. package/packages/happy2-server/dist/modules/chat/chatUpdateInsert.js.map +1 -0
  830. package/packages/happy2-server/dist/modules/chat/chatWorkspaceCanAccess.d.ts +7 -0
  831. package/packages/happy2-server/dist/modules/chat/chatWorkspaceCanAccess.d.ts.map +1 -0
  832. package/packages/happy2-server/dist/modules/chat/chatWorkspaceCanAccess.js +25 -0
  833. package/packages/happy2-server/dist/modules/chat/chatWorkspaceCanAccess.js.map +1 -0
  834. package/packages/happy2-server/dist/modules/chat/chatWorkspaceGetTarget.d.ts +8 -0
  835. package/packages/happy2-server/dist/modules/chat/chatWorkspaceGetTarget.d.ts.map +1 -0
  836. package/packages/happy2-server/dist/modules/chat/chatWorkspaceGetTarget.js +36 -0
  837. package/packages/happy2-server/dist/modules/chat/chatWorkspaceGetTarget.js.map +1 -0
  838. package/packages/happy2-server/dist/modules/chat/directMessageCreate.d.ts +11 -0
  839. package/packages/happy2-server/dist/modules/chat/directMessageCreate.d.ts.map +1 -0
  840. package/packages/happy2-server/dist/modules/chat/directMessageCreate.js +78 -0
  841. package/packages/happy2-server/dist/modules/chat/directMessageCreate.js.map +1 -0
  842. package/packages/happy2-server/dist/modules/chat/directMessageCreateGroup.d.ts +16 -0
  843. package/packages/happy2-server/dist/modules/chat/directMessageCreateGroup.d.ts.map +1 -0
  844. package/packages/happy2-server/dist/modules/chat/directMessageCreateGroup.js +84 -0
  845. package/packages/happy2-server/dist/modules/chat/directMessageCreateGroup.js.map +1 -0
  846. package/packages/happy2-server/dist/modules/chat/fileCanAccessWith.d.ts +7 -0
  847. package/packages/happy2-server/dist/modules/chat/fileCanAccessWith.d.ts.map +1 -0
  848. package/packages/happy2-server/dist/modules/chat/fileCanAccessWith.js +18 -0
  849. package/packages/happy2-server/dist/modules/chat/fileCanAccessWith.js.map +1 -0
  850. package/packages/happy2-server/dist/modules/chat/fileSelection.d.ts +204 -0
  851. package/packages/happy2-server/dist/modules/chat/fileSelection.d.ts.map +1 -0
  852. package/packages/happy2-server/dist/modules/chat/fileSelection.js +15 -0
  853. package/packages/happy2-server/dist/modules/chat/fileSelection.js.map +1 -0
  854. package/packages/happy2-server/dist/modules/chat/impl/advanceChat.d.ts +10 -0
  855. package/packages/happy2-server/dist/modules/chat/impl/advanceChat.d.ts.map +1 -0
  856. package/packages/happy2-server/dist/modules/chat/impl/advanceChat.js +13 -0
  857. package/packages/happy2-server/dist/modules/chat/impl/advanceChat.js.map +1 -0
  858. package/packages/happy2-server/dist/modules/chat/impl/asChat.d.ts +3 -0
  859. package/packages/happy2-server/dist/modules/chat/impl/asChat.d.ts.map +1 -0
  860. package/packages/happy2-server/dist/modules/chat/impl/asChat.js +49 -0
  861. package/packages/happy2-server/dist/modules/chat/impl/asChat.js.map +1 -0
  862. package/packages/happy2-server/dist/modules/chat/impl/chatDescendantIds.d.ts +4 -0
  863. package/packages/happy2-server/dist/modules/chat/impl/chatDescendantIds.d.ts.map +1 -0
  864. package/packages/happy2-server/dist/modules/chat/impl/chatDescendantIds.js +27 -0
  865. package/packages/happy2-server/dist/modules/chat/impl/chatDescendantIds.js.map +1 -0
  866. package/packages/happy2-server/dist/modules/chat/impl/chatDescendantMembershipSync.d.ts +13 -0
  867. package/packages/happy2-server/dist/modules/chat/impl/chatDescendantMembershipSync.d.ts.map +1 -0
  868. package/packages/happy2-server/dist/modules/chat/impl/chatDescendantMembershipSync.js +70 -0
  869. package/packages/happy2-server/dist/modules/chat/impl/chatDescendantMembershipSync.js.map +1 -0
  870. package/packages/happy2-server/dist/modules/chat/impl/chatMutation.d.ts +6 -0
  871. package/packages/happy2-server/dist/modules/chat/impl/chatMutation.d.ts.map +1 -0
  872. package/packages/happy2-server/dist/modules/chat/impl/chatMutation.js +2 -0
  873. package/packages/happy2-server/dist/modules/chat/impl/chatMutation.js.map +1 -0
  874. package/packages/happy2-server/dist/modules/chat/impl/chatSelection.d.ts +559 -0
  875. package/packages/happy2-server/dist/modules/chat/impl/chatSelection.d.ts.map +1 -0
  876. package/packages/happy2-server/dist/modules/chat/impl/chatSelection.js +41 -0
  877. package/packages/happy2-server/dist/modules/chat/impl/chatSelection.js.map +1 -0
  878. package/packages/happy2-server/dist/modules/chat/impl/chatWorkspaceTarget.d.ts +9 -0
  879. package/packages/happy2-server/dist/modules/chat/impl/chatWorkspaceTarget.d.ts.map +1 -0
  880. package/packages/happy2-server/dist/modules/chat/impl/chatWorkspaceTarget.js +2 -0
  881. package/packages/happy2-server/dist/modules/chat/impl/chatWorkspaceTarget.js.map +1 -0
  882. package/packages/happy2-server/dist/modules/chat/impl/createUserAddedServiceMessageDb.d.ts +16 -0
  883. package/packages/happy2-server/dist/modules/chat/impl/createUserAddedServiceMessageDb.d.ts.map +1 -0
  884. package/packages/happy2-server/dist/modules/chat/impl/createUserAddedServiceMessageDb.js +54 -0
  885. package/packages/happy2-server/dist/modules/chat/impl/createUserAddedServiceMessageDb.js.map +1 -0
  886. package/packages/happy2-server/dist/modules/chat/impl/requireActiveIdentityDb.d.ts +7 -0
  887. package/packages/happy2-server/dist/modules/chat/impl/requireActiveIdentityDb.d.ts.map +1 -0
  888. package/packages/happy2-server/dist/modules/chat/impl/requireActiveIdentityDb.js +22 -0
  889. package/packages/happy2-server/dist/modules/chat/impl/requireActiveIdentityDb.js.map +1 -0
  890. package/packages/happy2-server/dist/modules/chat/isUniqueConstraint.d.ts +2 -0
  891. package/packages/happy2-server/dist/modules/chat/isUniqueConstraint.d.ts.map +1 -0
  892. package/packages/happy2-server/dist/modules/chat/isUniqueConstraint.js +10 -0
  893. package/packages/happy2-server/dist/modules/chat/isUniqueConstraint.js.map +1 -0
  894. package/packages/happy2-server/dist/modules/chat/messageRequireInChat.d.ts +10 -0
  895. package/packages/happy2-server/dist/modules/chat/messageRequireInChat.d.ts.map +1 -0
  896. package/packages/happy2-server/dist/modules/chat/messageRequireInChat.js +22 -0
  897. package/packages/happy2-server/dist/modules/chat/messageRequireInChat.js.map +1 -0
  898. package/packages/happy2-server/dist/modules/chat/number.d.ts +2 -0
  899. package/packages/happy2-server/dist/modules/chat/number.d.ts.map +1 -0
  900. package/packages/happy2-server/dist/modules/chat/number.js +12 -0
  901. package/packages/happy2-server/dist/modules/chat/number.js.map +1 -0
  902. package/packages/happy2-server/dist/modules/chat/optionalText.d.ts +2 -0
  903. package/packages/happy2-server/dist/modules/chat/optionalText.d.ts.map +1 -0
  904. package/packages/happy2-server/dist/modules/chat/optionalText.js +5 -0
  905. package/packages/happy2-server/dist/modules/chat/optionalText.js.map +1 -0
  906. package/packages/happy2-server/dist/modules/chat/text.d.ts +2 -0
  907. package/packages/happy2-server/dist/modules/chat/text.d.ts.map +1 -0
  908. package/packages/happy2-server/dist/modules/chat/text.js +10 -0
  909. package/packages/happy2-server/dist/modules/chat/text.js.map +1 -0
  910. package/packages/happy2-server/dist/modules/{collaboration → chat}/types.d.ts +17 -14
  911. package/packages/happy2-server/dist/modules/chat/types.d.ts.map +1 -0
  912. package/packages/happy2-server/dist/modules/chat/types.js.map +1 -0
  913. package/packages/happy2-server/dist/modules/chat/userRequireActive.d.ts +7 -0
  914. package/packages/happy2-server/dist/modules/chat/userRequireActive.d.ts.map +1 -0
  915. package/packages/happy2-server/dist/modules/chat/userRequireActive.js +21 -0
  916. package/packages/happy2-server/dist/modules/chat/userRequireActive.js.map +1 -0
  917. package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.d.ts +7 -0
  918. package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.d.ts.map +1 -0
  919. package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.js +21 -0
  920. package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.js.map +1 -0
  921. package/packages/happy2-server/dist/modules/chat/userSelection.d.ts +231 -0
  922. package/packages/happy2-server/dist/modules/chat/userSelection.d.ts.map +1 -0
  923. package/packages/happy2-server/dist/modules/chat/userSelection.js +16 -0
  924. package/packages/happy2-server/dist/modules/chat/userSelection.js.map +1 -0
  925. package/packages/happy2-server/dist/modules/config/defaults.js +1 -1
  926. package/packages/happy2-server/dist/modules/config/defaults.js.map +1 -1
  927. package/packages/happy2-server/dist/modules/config/defaults.test.js +1 -1
  928. package/packages/happy2-server/dist/modules/config/defaults.test.js.map +1 -1
  929. package/packages/happy2-server/dist/modules/config/loader.d.ts.map +1 -1
  930. package/packages/happy2-server/dist/modules/config/loader.js +0 -1
  931. package/packages/happy2-server/dist/modules/config/loader.js.map +1 -1
  932. package/packages/happy2-server/dist/modules/config/type.d.ts +0 -1
  933. package/packages/happy2-server/dist/modules/config/type.d.ts.map +1 -1
  934. package/packages/happy2-server/dist/modules/data-export/dataExportBuildArtifact.d.ts +8 -0
  935. package/packages/happy2-server/dist/modules/data-export/dataExportBuildArtifact.d.ts.map +1 -0
  936. package/packages/happy2-server/dist/modules/data-export/dataExportBuildArtifact.js +148 -0
  937. package/packages/happy2-server/dist/modules/data-export/dataExportBuildArtifact.js.map +1 -0
  938. package/packages/happy2-server/dist/modules/data-export/dataExportCanAccessChat.d.ts +7 -0
  939. package/packages/happy2-server/dist/modules/data-export/dataExportCanAccessChat.d.ts.map +1 -0
  940. package/packages/happy2-server/dist/modules/data-export/dataExportCanAccessChat.js +19 -0
  941. package/packages/happy2-server/dist/modules/data-export/dataExportCanAccessChat.js.map +1 -0
  942. package/packages/happy2-server/dist/modules/data-export/dataExportCancel.d.ts +13 -0
  943. package/packages/happy2-server/dist/modules/data-export/dataExportCancel.d.ts.map +1 -0
  944. package/packages/happy2-server/dist/modules/data-export/dataExportCancel.js +41 -0
  945. package/packages/happy2-server/dist/modules/data-export/dataExportCancel.js.map +1 -0
  946. package/packages/happy2-server/dist/modules/data-export/dataExportClaimPending.d.ts +8 -0
  947. package/packages/happy2-server/dist/modules/data-export/dataExportClaimPending.d.ts.map +1 -0
  948. package/packages/happy2-server/dist/modules/data-export/dataExportClaimPending.js +53 -0
  949. package/packages/happy2-server/dist/modules/data-export/dataExportClaimPending.js.map +1 -0
  950. package/packages/happy2-server/dist/modules/data-export/dataExportCompleteClaim.d.ts +8 -0
  951. package/packages/happy2-server/dist/modules/data-export/dataExportCompleteClaim.d.ts.map +1 -0
  952. package/packages/happy2-server/dist/modules/data-export/dataExportCompleteClaim.js +63 -0
  953. package/packages/happy2-server/dist/modules/data-export/dataExportCompleteClaim.js.map +1 -0
  954. package/packages/happy2-server/dist/modules/data-export/dataExportFailClaim.d.ts +8 -0
  955. package/packages/happy2-server/dist/modules/data-export/dataExportFailClaim.d.ts.map +1 -0
  956. package/packages/happy2-server/dist/modules/data-export/dataExportFailClaim.js +24 -0
  957. package/packages/happy2-server/dist/modules/data-export/dataExportFailClaim.js.map +1 -0
  958. package/packages/happy2-server/dist/modules/data-export/dataExportGet.d.ts +8 -0
  959. package/packages/happy2-server/dist/modules/data-export/dataExportGet.d.ts.map +1 -0
  960. package/packages/happy2-server/dist/modules/data-export/dataExportGet.js +16 -0
  961. package/packages/happy2-server/dist/modules/data-export/dataExportGet.js.map +1 -0
  962. package/packages/happy2-server/dist/modules/data-export/dataExportList.d.ts +15 -0
  963. package/packages/happy2-server/dist/modules/data-export/dataExportList.d.ts.map +1 -0
  964. package/packages/happy2-server/dist/modules/data-export/dataExportList.js +37 -0
  965. package/packages/happy2-server/dist/modules/data-export/dataExportList.js.map +1 -0
  966. package/packages/happy2-server/dist/modules/data-export/dataExportRequest.d.ts +16 -0
  967. package/packages/happy2-server/dist/modules/data-export/dataExportRequest.d.ts.map +1 -0
  968. package/packages/happy2-server/dist/modules/data-export/dataExportRequest.js +61 -0
  969. package/packages/happy2-server/dist/modules/data-export/dataExportRequest.js.map +1 -0
  970. package/packages/happy2-server/dist/modules/data-export/dataExportRequireExistingUser.d.ts +7 -0
  971. package/packages/happy2-server/dist/modules/data-export/dataExportRequireExistingUser.d.ts.map +1 -0
  972. package/packages/happy2-server/dist/modules/data-export/dataExportRequireExistingUser.js +19 -0
  973. package/packages/happy2-server/dist/modules/data-export/dataExportRequireExistingUser.js.map +1 -0
  974. package/packages/happy2-server/dist/modules/data-export/dataExportRunDue.d.ts +11 -0
  975. package/packages/happy2-server/dist/modules/data-export/dataExportRunDue.d.ts.map +1 -0
  976. package/packages/happy2-server/dist/modules/data-export/dataExportRunDue.js +46 -0
  977. package/packages/happy2-server/dist/modules/data-export/dataExportRunDue.js.map +1 -0
  978. package/packages/happy2-server/dist/modules/data-export/dataExportUpdate.d.ts +17 -0
  979. package/packages/happy2-server/dist/modules/data-export/dataExportUpdate.d.ts.map +1 -0
  980. package/packages/happy2-server/dist/modules/data-export/dataExportUpdate.js +87 -0
  981. package/packages/happy2-server/dist/modules/data-export/dataExportUpdate.js.map +1 -0
  982. package/packages/happy2-server/dist/modules/data-export/impl/asExport.d.ts +3 -0
  983. package/packages/happy2-server/dist/modules/data-export/impl/asExport.d.ts.map +1 -0
  984. package/packages/happy2-server/dist/modules/data-export/impl/asExport.js +21 -0
  985. package/packages/happy2-server/dist/modules/data-export/impl/asExport.js.map +1 -0
  986. package/packages/happy2-server/dist/modules/data-export/impl/assertExportTransition.d.ts +3 -0
  987. package/packages/happy2-server/dist/modules/data-export/impl/assertExportTransition.d.ts.map +1 -0
  988. package/packages/happy2-server/dist/modules/data-export/impl/assertExportTransition.js +14 -0
  989. package/packages/happy2-server/dist/modules/data-export/impl/assertExportTransition.js.map +1 -0
  990. package/packages/happy2-server/dist/modules/data-export/impl/claimedDataExport.d.ts +5 -0
  991. package/packages/happy2-server/dist/modules/data-export/impl/claimedDataExport.d.ts.map +1 -0
  992. package/packages/happy2-server/dist/modules/data-export/impl/claimedDataExport.js +2 -0
  993. package/packages/happy2-server/dist/modules/data-export/impl/claimedDataExport.js.map +1 -0
  994. package/packages/happy2-server/dist/modules/data-export/impl/dataExportRemoveUnclaimedArtifact.d.ts +6 -0
  995. package/packages/happy2-server/dist/modules/data-export/impl/dataExportRemoveUnclaimedArtifact.d.ts.map +1 -0
  996. package/packages/happy2-server/dist/modules/data-export/impl/dataExportRemoveUnclaimedArtifact.js +9 -0
  997. package/packages/happy2-server/dist/modules/data-export/impl/dataExportRemoveUnclaimedArtifact.js.map +1 -0
  998. package/packages/happy2-server/dist/modules/data-export/impl/exportJobDb.d.ts +8 -0
  999. package/packages/happy2-server/dist/modules/data-export/impl/exportJobDb.d.ts.map +1 -0
  1000. package/packages/happy2-server/dist/modules/data-export/impl/exportJobDb.js +21 -0
  1001. package/packages/happy2-server/dist/modules/data-export/impl/exportJobDb.js.map +1 -0
  1002. package/packages/happy2-server/dist/modules/data-export/impl/exportSelection.d.ts +231 -0
  1003. package/packages/happy2-server/dist/modules/data-export/impl/exportSelection.d.ts.map +1 -0
  1004. package/packages/happy2-server/dist/modules/data-export/impl/exportSelection.js +16 -0
  1005. package/packages/happy2-server/dist/modules/data-export/impl/exportSelection.js.map +1 -0
  1006. package/packages/happy2-server/dist/modules/data-export/impl/objectValue.d.ts +2 -0
  1007. package/packages/happy2-server/dist/modules/data-export/impl/objectValue.d.ts.map +1 -0
  1008. package/packages/happy2-server/dist/modules/data-export/impl/objectValue.js +6 -0
  1009. package/packages/happy2-server/dist/modules/data-export/impl/objectValue.js.map +1 -0
  1010. package/packages/happy2-server/dist/modules/drizzle.d.ts +2 -0
  1011. package/packages/happy2-server/dist/modules/drizzle.d.ts.map +1 -1
  1012. package/packages/happy2-server/dist/modules/drizzle.js +16 -0
  1013. package/packages/happy2-server/dist/modules/drizzle.js.map +1 -1
  1014. package/packages/happy2-server/dist/modules/drizzle.test.d.ts +2 -0
  1015. package/packages/happy2-server/dist/modules/drizzle.test.d.ts.map +1 -0
  1016. package/packages/happy2-server/dist/modules/drizzle.test.js +49 -0
  1017. package/packages/happy2-server/dist/modules/drizzle.test.js.map +1 -0
  1018. package/packages/happy2-server/dist/modules/emoji/customEmojiCreate.d.ts +20 -0
  1019. package/packages/happy2-server/dist/modules/emoji/customEmojiCreate.d.ts.map +1 -0
  1020. package/packages/happy2-server/dist/modules/emoji/customEmojiCreate.js +69 -0
  1021. package/packages/happy2-server/dist/modules/emoji/customEmojiCreate.js.map +1 -0
  1022. package/packages/happy2-server/dist/modules/emoji/customEmojiDelete.d.ts +10 -0
  1023. package/packages/happy2-server/dist/modules/emoji/customEmojiDelete.d.ts.map +1 -0
  1024. package/packages/happy2-server/dist/modules/emoji/customEmojiDelete.js +78 -0
  1025. package/packages/happy2-server/dist/modules/emoji/customEmojiDelete.js.map +1 -0
  1026. package/packages/happy2-server/dist/modules/emoji/customEmojiList.d.ts +13 -0
  1027. package/packages/happy2-server/dist/modules/emoji/customEmojiList.d.ts.map +1 -0
  1028. package/packages/happy2-server/dist/modules/emoji/customEmojiList.js +31 -0
  1029. package/packages/happy2-server/dist/modules/emoji/customEmojiList.js.map +1 -0
  1030. package/packages/happy2-server/dist/modules/file/fileCanAccess.d.ts +7 -0
  1031. package/packages/happy2-server/dist/modules/file/fileCanAccess.d.ts.map +1 -0
  1032. package/packages/happy2-server/dist/modules/file/fileCanAccess.js +10 -0
  1033. package/packages/happy2-server/dist/modules/file/fileCanAccess.js.map +1 -0
  1034. package/packages/happy2-server/dist/modules/file/fileCreate.d.ts +11 -0
  1035. package/packages/happy2-server/dist/modules/file/fileCreate.d.ts.map +1 -0
  1036. package/packages/happy2-server/dist/modules/file/fileCreate.js +41 -0
  1037. package/packages/happy2-server/dist/modules/file/fileCreate.js.map +1 -0
  1038. package/packages/happy2-server/dist/modules/file/fileDeleteOwnedUnreferenced.d.ts +7 -0
  1039. package/packages/happy2-server/dist/modules/file/fileDeleteOwnedUnreferenced.d.ts.map +1 -0
  1040. package/packages/happy2-server/dist/modules/file/fileDeleteOwnedUnreferenced.js +32 -0
  1041. package/packages/happy2-server/dist/modules/file/fileDeleteOwnedUnreferenced.js.map +1 -0
  1042. package/packages/happy2-server/dist/modules/file/fileFind.d.ts +8 -0
  1043. package/packages/happy2-server/dist/modules/file/fileFind.d.ts.map +1 -0
  1044. package/packages/happy2-server/dist/modules/file/fileFind.js +17 -0
  1045. package/packages/happy2-server/dist/modules/file/fileFind.js.map +1 -0
  1046. package/packages/happy2-server/dist/modules/file/fileFindUploadedBy.d.ts +8 -0
  1047. package/packages/happy2-server/dist/modules/file/fileFindUploadedBy.d.ts.map +1 -0
  1048. package/packages/happy2-server/dist/modules/file/fileFindUploadedBy.js +17 -0
  1049. package/packages/happy2-server/dist/modules/file/fileFindUploadedBy.js.map +1 -0
  1050. package/packages/happy2-server/dist/modules/file/fileList.d.ts +17 -0
  1051. package/packages/happy2-server/dist/modules/file/fileList.d.ts.map +1 -0
  1052. package/packages/happy2-server/dist/modules/file/fileList.js +53 -0
  1053. package/packages/happy2-server/dist/modules/file/fileList.js.map +1 -0
  1054. package/packages/happy2-server/dist/modules/file/fileListStored.d.ts +8 -0
  1055. package/packages/happy2-server/dist/modules/file/fileListStored.d.ts.map +1 -0
  1056. package/packages/happy2-server/dist/modules/file/fileListStored.js +18 -0
  1057. package/packages/happy2-server/dist/modules/file/fileListStored.js.map +1 -0
  1058. package/packages/happy2-server/dist/modules/file/impl/asFile.d.ts +4 -0
  1059. package/packages/happy2-server/dist/modules/file/impl/asFile.d.ts.map +1 -0
  1060. package/packages/happy2-server/dist/modules/file/impl/asFile.js +22 -0
  1061. package/packages/happy2-server/dist/modules/file/impl/asFile.js.map +1 -0
  1062. package/packages/happy2-server/dist/modules/file/impl/fileRow.d.ts +3 -0
  1063. package/packages/happy2-server/dist/modules/file/impl/fileRow.d.ts.map +1 -0
  1064. package/packages/happy2-server/dist/modules/file/impl/fileRow.js +2 -0
  1065. package/packages/happy2-server/dist/modules/file/impl/fileRow.js.map +1 -0
  1066. package/packages/happy2-server/dist/modules/file/impl/hasFileReference.d.ts +4 -0
  1067. package/packages/happy2-server/dist/modules/file/impl/hasFileReference.d.ts.map +1 -0
  1068. package/packages/happy2-server/dist/modules/file/impl/hasFileReference.js +112 -0
  1069. package/packages/happy2-server/dist/modules/file/impl/hasFileReference.js.map +1 -0
  1070. package/packages/happy2-server/dist/modules/file/types.d.ts +17 -0
  1071. package/packages/happy2-server/dist/modules/file/types.d.ts.map +1 -0
  1072. package/packages/happy2-server/dist/modules/file/types.js +2 -0
  1073. package/packages/happy2-server/dist/modules/file/types.js.map +1 -0
  1074. package/packages/happy2-server/dist/modules/files/routes.test.js +93 -16
  1075. package/packages/happy2-server/dist/modules/files/routes.test.js.map +1 -1
  1076. package/packages/happy2-server/dist/modules/files/storage.d.ts +13 -4
  1077. package/packages/happy2-server/dist/modules/files/storage.d.ts.map +1 -1
  1078. package/packages/happy2-server/dist/modules/files/storage.js +224 -54
  1079. package/packages/happy2-server/dist/modules/files/storage.js.map +1 -1
  1080. package/packages/happy2-server/dist/modules/files/storage.test.js +80 -29
  1081. package/packages/happy2-server/dist/modules/files/storage.test.js.map +1 -1
  1082. package/packages/happy2-server/dist/modules/integration/apiCredentialAuthenticate.d.ts +8 -0
  1083. package/packages/happy2-server/dist/modules/integration/apiCredentialAuthenticate.d.ts.map +1 -0
  1084. package/packages/happy2-server/dist/modules/integration/apiCredentialAuthenticate.js +54 -0
  1085. package/packages/happy2-server/dist/modules/integration/apiCredentialAuthenticate.js.map +1 -0
  1086. package/packages/happy2-server/dist/modules/integration/apiCredentialCreate.d.ts +14 -0
  1087. package/packages/happy2-server/dist/modules/integration/apiCredentialCreate.d.ts.map +1 -0
  1088. package/packages/happy2-server/dist/modules/integration/apiCredentialCreate.js +56 -0
  1089. package/packages/happy2-server/dist/modules/integration/apiCredentialCreate.js.map +1 -0
  1090. package/packages/happy2-server/dist/modules/integration/apiCredentialList.d.ts +8 -0
  1091. package/packages/happy2-server/dist/modules/integration/apiCredentialList.d.ts.map +1 -0
  1092. package/packages/happy2-server/dist/modules/integration/apiCredentialList.js +23 -0
  1093. package/packages/happy2-server/dist/modules/integration/apiCredentialList.js.map +1 -0
  1094. package/packages/happy2-server/dist/modules/integration/apiCredentialRevoke.d.ts +7 -0
  1095. package/packages/happy2-server/dist/modules/integration/apiCredentialRevoke.d.ts.map +1 -0
  1096. package/packages/happy2-server/dist/modules/integration/apiCredentialRevoke.js +28 -0
  1097. package/packages/happy2-server/dist/modules/integration/apiCredentialRevoke.js.map +1 -0
  1098. package/packages/happy2-server/dist/modules/integration/asDelivery.d.ts +3 -0
  1099. package/packages/happy2-server/dist/modules/integration/asDelivery.d.ts.map +1 -0
  1100. package/packages/happy2-server/dist/modules/integration/asDelivery.js +16 -0
  1101. package/packages/happy2-server/dist/modules/integration/asDelivery.js.map +1 -0
  1102. package/packages/happy2-server/dist/modules/integration/botRequire.d.ts +7 -0
  1103. package/packages/happy2-server/dist/modules/integration/botRequire.d.ts.map +1 -0
  1104. package/packages/happy2-server/dist/modules/integration/botRequire.js +10 -0
  1105. package/packages/happy2-server/dist/modules/integration/botRequire.js.map +1 -0
  1106. package/packages/happy2-server/dist/modules/integration/claimedDelivery.d.ts +7 -0
  1107. package/packages/happy2-server/dist/modules/integration/claimedDelivery.d.ts.map +1 -0
  1108. package/packages/happy2-server/dist/modules/integration/claimedDelivery.js +2 -0
  1109. package/packages/happy2-server/dist/modules/integration/claimedDelivery.js.map +1 -0
  1110. package/packages/happy2-server/dist/modules/integration/constraintConflict.d.ts +2 -0
  1111. package/packages/happy2-server/dist/modules/integration/constraintConflict.d.ts.map +1 -0
  1112. package/packages/happy2-server/dist/modules/integration/constraintConflict.js +6 -0
  1113. package/packages/happy2-server/dist/modules/integration/constraintConflict.js.map +1 -0
  1114. package/packages/happy2-server/dist/modules/integration/deliverySelection.d.ts +153 -0
  1115. package/packages/happy2-server/dist/modules/integration/deliverySelection.d.ts.map +1 -0
  1116. package/packages/happy2-server/dist/modules/integration/deliverySelection.js +12 -0
  1117. package/packages/happy2-server/dist/modules/integration/deliverySelection.js.map +1 -0
  1118. package/packages/happy2-server/dist/modules/integration/impl/asCredential.d.ts +3 -0
  1119. package/packages/happy2-server/dist/modules/integration/impl/asCredential.d.ts.map +1 -0
  1120. package/packages/happy2-server/dist/modules/integration/impl/asCredential.js +18 -0
  1121. package/packages/happy2-server/dist/modules/integration/impl/asCredential.js.map +1 -0
  1122. package/packages/happy2-server/dist/modules/integration/impl/asIntegration.d.ts +3 -0
  1123. package/packages/happy2-server/dist/modules/integration/impl/asIntegration.d.ts.map +1 -0
  1124. package/packages/happy2-server/dist/modules/integration/impl/asIntegration.js +19 -0
  1125. package/packages/happy2-server/dist/modules/integration/impl/asIntegration.js.map +1 -0
  1126. package/packages/happy2-server/dist/modules/integration/impl/asSlashCommand.d.ts +3 -0
  1127. package/packages/happy2-server/dist/modules/integration/impl/asSlashCommand.d.ts.map +1 -0
  1128. package/packages/happy2-server/dist/modules/integration/impl/asSlashCommand.js +17 -0
  1129. package/packages/happy2-server/dist/modules/integration/impl/asSlashCommand.js.map +1 -0
  1130. package/packages/happy2-server/dist/modules/integration/impl/createIntegrationRecord.d.ts +15 -0
  1131. package/packages/happy2-server/dist/modules/integration/impl/createIntegrationRecord.d.ts.map +1 -0
  1132. package/packages/happy2-server/dist/modules/integration/impl/createIntegrationRecord.js +25 -0
  1133. package/packages/happy2-server/dist/modules/integration/impl/createIntegrationRecord.js.map +1 -0
  1134. package/packages/happy2-server/dist/modules/integration/impl/credentialSelection.d.ts +174 -0
  1135. package/packages/happy2-server/dist/modules/integration/impl/credentialSelection.d.ts.map +1 -0
  1136. package/packages/happy2-server/dist/modules/integration/impl/credentialSelection.js +13 -0
  1137. package/packages/happy2-server/dist/modules/integration/impl/credentialSelection.js.map +1 -0
  1138. package/packages/happy2-server/dist/modules/integration/impl/findSlashSubscriptionDb.d.ts +11 -0
  1139. package/packages/happy2-server/dist/modules/integration/impl/findSlashSubscriptionDb.d.ts.map +1 -0
  1140. package/packages/happy2-server/dist/modules/integration/impl/findSlashSubscriptionDb.js +22 -0
  1141. package/packages/happy2-server/dist/modules/integration/impl/findSlashSubscriptionDb.js.map +1 -0
  1142. package/packages/happy2-server/dist/modules/integration/impl/futureDate.d.ts +2 -0
  1143. package/packages/happy2-server/dist/modules/integration/impl/futureDate.d.ts.map +1 -0
  1144. package/packages/happy2-server/dist/modules/integration/impl/futureDate.js +8 -0
  1145. package/packages/happy2-server/dist/modules/integration/impl/futureDate.js.map +1 -0
  1146. package/packages/happy2-server/dist/modules/integration/impl/getSlashCommandDb.d.ts +8 -0
  1147. package/packages/happy2-server/dist/modules/integration/impl/getSlashCommandDb.d.ts.map +1 -0
  1148. package/packages/happy2-server/dist/modules/integration/impl/getSlashCommandDb.js +20 -0
  1149. package/packages/happy2-server/dist/modules/integration/impl/getSlashCommandDb.js.map +1 -0
  1150. package/packages/happy2-server/dist/modules/integration/impl/integrationSelection.d.ts +172 -0
  1151. package/packages/happy2-server/dist/modules/integration/impl/integrationSelection.d.ts.map +1 -0
  1152. package/packages/happy2-server/dist/modules/integration/impl/integrationSelection.js +13 -0
  1153. package/packages/happy2-server/dist/modules/integration/impl/integrationSelection.js.map +1 -0
  1154. package/packages/happy2-server/dist/modules/integration/impl/maxEventPayload.d.ts +2 -0
  1155. package/packages/happy2-server/dist/modules/integration/impl/maxEventPayload.d.ts.map +1 -0
  1156. package/packages/happy2-server/dist/modules/integration/impl/maxEventPayload.js +2 -0
  1157. package/packages/happy2-server/dist/modules/integration/impl/maxEventPayload.js.map +1 -0
  1158. package/packages/happy2-server/dist/modules/integration/impl/normalizeScopes.d.ts +3 -0
  1159. package/packages/happy2-server/dist/modules/integration/impl/normalizeScopes.d.ts.map +1 -0
  1160. package/packages/happy2-server/dist/modules/integration/impl/normalizeScopes.js +8 -0
  1161. package/packages/happy2-server/dist/modules/integration/impl/normalizeScopes.js.map +1 -0
  1162. package/packages/happy2-server/dist/modules/integration/impl/normalizedCommand.d.ts +2 -0
  1163. package/packages/happy2-server/dist/modules/integration/impl/normalizedCommand.d.ts.map +1 -0
  1164. package/packages/happy2-server/dist/modules/integration/impl/normalizedCommand.js +8 -0
  1165. package/packages/happy2-server/dist/modules/integration/impl/normalizedCommand.js.map +1 -0
  1166. package/packages/happy2-server/dist/modules/integration/impl/optionalTextBody.d.ts +2 -0
  1167. package/packages/happy2-server/dist/modules/integration/impl/optionalTextBody.d.ts.map +1 -0
  1168. package/packages/happy2-server/dist/modules/integration/impl/optionalTextBody.js +9 -0
  1169. package/packages/happy2-server/dist/modules/integration/impl/optionalTextBody.js.map +1 -0
  1170. package/packages/happy2-server/dist/modules/integration/impl/requireChatMemberDb.d.ts +7 -0
  1171. package/packages/happy2-server/dist/modules/integration/impl/requireChatMemberDb.d.ts.map +1 -0
  1172. package/packages/happy2-server/dist/modules/integration/impl/requireChatMemberDb.js +22 -0
  1173. package/packages/happy2-server/dist/modules/integration/impl/requireChatMemberDb.js.map +1 -0
  1174. package/packages/happy2-server/dist/modules/integration/impl/requireScopeSubset.d.ts +3 -0
  1175. package/packages/happy2-server/dist/modules/integration/impl/requireScopeSubset.d.ts.map +1 -0
  1176. package/packages/happy2-server/dist/modules/integration/impl/requireScopeSubset.js +6 -0
  1177. package/packages/happy2-server/dist/modules/integration/impl/requireScopeSubset.js.map +1 -0
  1178. package/packages/happy2-server/dist/modules/integration/impl/slashCommandSelection.d.ts +153 -0
  1179. package/packages/happy2-server/dist/modules/integration/impl/slashCommandSelection.d.ts.map +1 -0
  1180. package/packages/happy2-server/dist/modules/integration/impl/slashCommandSelection.js +12 -0
  1181. package/packages/happy2-server/dist/modules/integration/impl/slashCommandSelection.js.map +1 -0
  1182. package/packages/happy2-server/dist/modules/integration/impl/slashEventType.d.ts +2 -0
  1183. package/packages/happy2-server/dist/modules/integration/impl/slashEventType.d.ts.map +1 -0
  1184. package/packages/happy2-server/dist/modules/integration/impl/slashEventType.js +4 -0
  1185. package/packages/happy2-server/dist/modules/integration/impl/slashEventType.js.map +1 -0
  1186. package/packages/happy2-server/dist/modules/integration/integrationAppendAudit.d.ts +7 -0
  1187. package/packages/happy2-server/dist/modules/integration/integrationAppendAudit.d.ts.map +1 -0
  1188. package/packages/happy2-server/dist/modules/integration/integrationAppendAudit.js +18 -0
  1189. package/packages/happy2-server/dist/modules/integration/integrationAppendAudit.js.map +1 -0
  1190. package/packages/happy2-server/dist/modules/integration/integrationCreate.d.ts +15 -0
  1191. package/packages/happy2-server/dist/modules/integration/integrationCreate.d.ts.map +1 -0
  1192. package/packages/happy2-server/dist/modules/integration/integrationCreate.js +11 -0
  1193. package/packages/happy2-server/dist/modules/integration/integrationCreate.js.map +1 -0
  1194. package/packages/happy2-server/dist/modules/integration/integrationFinishChange.d.ts +8 -0
  1195. package/packages/happy2-server/dist/modules/integration/integrationFinishChange.d.ts.map +1 -0
  1196. package/packages/happy2-server/dist/modules/integration/integrationFinishChange.js +22 -0
  1197. package/packages/happy2-server/dist/modules/integration/integrationFinishChange.js.map +1 -0
  1198. package/packages/happy2-server/dist/modules/integration/integrationGet.d.ts +8 -0
  1199. package/packages/happy2-server/dist/modules/integration/integrationGet.d.ts.map +1 -0
  1200. package/packages/happy2-server/dist/modules/integration/integrationGet.js +20 -0
  1201. package/packages/happy2-server/dist/modules/integration/integrationGet.js.map +1 -0
  1202. package/packages/happy2-server/dist/modules/integration/integrationInsert.d.ts +17 -0
  1203. package/packages/happy2-server/dist/modules/integration/integrationInsert.d.ts.map +1 -0
  1204. package/packages/happy2-server/dist/modules/integration/integrationInsert.js +29 -0
  1205. package/packages/happy2-server/dist/modules/integration/integrationInsert.js.map +1 -0
  1206. package/packages/happy2-server/dist/modules/integration/integrationList.d.ts +8 -0
  1207. package/packages/happy2-server/dist/modules/integration/integrationList.d.ts.map +1 -0
  1208. package/packages/happy2-server/dist/modules/integration/integrationList.js +20 -0
  1209. package/packages/happy2-server/dist/modules/integration/integrationList.js.map +1 -0
  1210. package/packages/happy2-server/dist/modules/integration/integrationRecordChange.d.ts +8 -0
  1211. package/packages/happy2-server/dist/modules/integration/integrationRecordChange.d.ts.map +1 -0
  1212. package/packages/happy2-server/dist/modules/integration/integrationRecordChange.js +33 -0
  1213. package/packages/happy2-server/dist/modules/integration/integrationRecordChange.js.map +1 -0
  1214. package/packages/happy2-server/dist/modules/integration/integrationRequire.d.ts +8 -0
  1215. package/packages/happy2-server/dist/modules/integration/integrationRequire.d.ts.map +1 -0
  1216. package/packages/happy2-server/dist/modules/integration/integrationRequire.js +14 -0
  1217. package/packages/happy2-server/dist/modules/integration/integrationRequire.js.map +1 -0
  1218. package/packages/happy2-server/dist/modules/integration/integrationRevoke.d.ts +8 -0
  1219. package/packages/happy2-server/dist/modules/integration/integrationRevoke.d.ts.map +1 -0
  1220. package/packages/happy2-server/dist/modules/integration/integrationRevoke.js +53 -0
  1221. package/packages/happy2-server/dist/modules/integration/integrationRevoke.js.map +1 -0
  1222. package/packages/happy2-server/dist/modules/integration/number.d.ts +2 -0
  1223. package/packages/happy2-server/dist/modules/integration/number.d.ts.map +1 -0
  1224. package/packages/happy2-server/dist/modules/integration/number.js +10 -0
  1225. package/packages/happy2-server/dist/modules/integration/number.js.map +1 -0
  1226. package/packages/happy2-server/dist/modules/integration/optionalText.d.ts +2 -0
  1227. package/packages/happy2-server/dist/modules/integration/optionalText.d.ts.map +1 -0
  1228. package/packages/happy2-server/dist/modules/integration/optionalText.js +5 -0
  1229. package/packages/happy2-server/dist/modules/integration/optionalText.js.map +1 -0
  1230. package/packages/happy2-server/dist/modules/integration/optionalTrimmed.d.ts +2 -0
  1231. package/packages/happy2-server/dist/modules/integration/optionalTrimmed.d.ts.map +1 -0
  1232. package/packages/happy2-server/dist/modules/integration/optionalTrimmed.js +10 -0
  1233. package/packages/happy2-server/dist/modules/integration/optionalTrimmed.js.map +1 -0
  1234. package/packages/happy2-server/dist/modules/integration/parseScopes.d.ts +3 -0
  1235. package/packages/happy2-server/dist/modules/integration/parseScopes.d.ts.map +1 -0
  1236. package/packages/happy2-server/dist/modules/integration/parseScopes.js +9 -0
  1237. package/packages/happy2-server/dist/modules/integration/parseScopes.js.map +1 -0
  1238. package/packages/happy2-server/dist/modules/integration/requiredTrimmed.d.ts +2 -0
  1239. package/packages/happy2-server/dist/modules/integration/requiredTrimmed.d.ts.map +1 -0
  1240. package/packages/happy2-server/dist/modules/integration/requiredTrimmed.js +8 -0
  1241. package/packages/happy2-server/dist/modules/integration/requiredTrimmed.js.map +1 -0
  1242. package/packages/happy2-server/dist/modules/integration/serializedPayload.d.ts +2 -0
  1243. package/packages/happy2-server/dist/modules/integration/serializedPayload.d.ts.map +1 -0
  1244. package/packages/happy2-server/dist/modules/integration/serializedPayload.js +15 -0
  1245. package/packages/happy2-server/dist/modules/integration/serializedPayload.js.map +1 -0
  1246. package/packages/happy2-server/dist/modules/integration/slashCommandCreate.d.ts +18 -0
  1247. package/packages/happy2-server/dist/modules/integration/slashCommandCreate.d.ts.map +1 -0
  1248. package/packages/happy2-server/dist/modules/integration/slashCommandCreate.js +71 -0
  1249. package/packages/happy2-server/dist/modules/integration/slashCommandCreate.js.map +1 -0
  1250. package/packages/happy2-server/dist/modules/integration/slashCommandInvoke.d.ts +13 -0
  1251. package/packages/happy2-server/dist/modules/integration/slashCommandInvoke.d.ts.map +1 -0
  1252. package/packages/happy2-server/dist/modules/integration/slashCommandInvoke.js +58 -0
  1253. package/packages/happy2-server/dist/modules/integration/slashCommandInvoke.js.map +1 -0
  1254. package/packages/happy2-server/dist/modules/integration/slashCommandList.d.ts +8 -0
  1255. package/packages/happy2-server/dist/modules/integration/slashCommandList.d.ts.map +1 -0
  1256. package/packages/happy2-server/dist/modules/integration/slashCommandList.js +22 -0
  1257. package/packages/happy2-server/dist/modules/integration/slashCommandList.js.map +1 -0
  1258. package/packages/happy2-server/dist/modules/integration/stringArray.d.ts +2 -0
  1259. package/packages/happy2-server/dist/modules/integration/stringArray.d.ts.map +1 -0
  1260. package/packages/happy2-server/dist/modules/integration/stringArray.js +8 -0
  1261. package/packages/happy2-server/dist/modules/integration/stringArray.js.map +1 -0
  1262. package/packages/happy2-server/dist/modules/integration/text.d.ts +2 -0
  1263. package/packages/happy2-server/dist/modules/integration/text.d.ts.map +1 -0
  1264. package/packages/happy2-server/dist/modules/integration/text.js +8 -0
  1265. package/packages/happy2-server/dist/modules/integration/text.js.map +1 -0
  1266. package/packages/happy2-server/dist/modules/integration/userRequireIntegrationActive.d.ts +7 -0
  1267. package/packages/happy2-server/dist/modules/integration/userRequireIntegrationActive.d.ts.map +1 -0
  1268. package/packages/happy2-server/dist/modules/integration/userRequireIntegrationActive.js +20 -0
  1269. package/packages/happy2-server/dist/modules/integration/userRequireIntegrationActive.js.map +1 -0
  1270. package/packages/happy2-server/dist/modules/integration/userRequireIntegrationAdmin.d.ts +7 -0
  1271. package/packages/happy2-server/dist/modules/integration/userRequireIntegrationAdmin.d.ts.map +1 -0
  1272. package/packages/happy2-server/dist/modules/integration/userRequireIntegrationAdmin.js +20 -0
  1273. package/packages/happy2-server/dist/modules/integration/userRequireIntegrationAdmin.js.map +1 -0
  1274. package/packages/happy2-server/dist/modules/integrations/actions.test.d.ts +2 -0
  1275. package/packages/happy2-server/dist/modules/integrations/actions.test.d.ts.map +1 -0
  1276. package/packages/happy2-server/dist/modules/integrations/{repository.test.js → actions.test.js} +159 -79
  1277. package/packages/happy2-server/dist/modules/integrations/actions.test.js.map +1 -0
  1278. package/packages/happy2-server/dist/modules/integrations/routes.test.js +43 -38
  1279. package/packages/happy2-server/dist/modules/integrations/routes.test.js.map +1 -1
  1280. package/packages/happy2-server/dist/modules/message/impl/dueMessages.d.ts +88 -0
  1281. package/packages/happy2-server/dist/modules/message/impl/dueMessages.d.ts.map +1 -0
  1282. package/packages/happy2-server/dist/modules/message/impl/dueMessages.js +17 -0
  1283. package/packages/happy2-server/dist/modules/message/impl/dueMessages.js.map +1 -0
  1284. package/packages/happy2-server/dist/modules/message/impl/earliestDate.d.ts +2 -0
  1285. package/packages/happy2-server/dist/modules/message/impl/earliestDate.d.ts.map +1 -0
  1286. package/packages/happy2-server/dist/modules/message/impl/earliestDate.js +8 -0
  1287. package/packages/happy2-server/dist/modules/message/impl/earliestDate.js.map +1 -0
  1288. package/packages/happy2-server/dist/modules/message/impl/findClientMutationDb.d.ts +7 -0
  1289. package/packages/happy2-server/dist/modules/message/impl/findClientMutationDb.d.ts.map +1 -0
  1290. package/packages/happy2-server/dist/modules/message/impl/findClientMutationDb.js +26 -0
  1291. package/packages/happy2-server/dist/modules/message/impl/findClientMutationDb.js.map +1 -0
  1292. package/packages/happy2-server/dist/modules/message/impl/messageSendInput.d.ts +22 -0
  1293. package/packages/happy2-server/dist/modules/message/impl/messageSendInput.d.ts.map +1 -0
  1294. package/packages/happy2-server/dist/modules/message/impl/messageSendInput.js +2 -0
  1295. package/packages/happy2-server/dist/modules/message/impl/messageSendInput.js.map +1 -0
  1296. package/packages/happy2-server/dist/modules/message/impl/sendMessageDbInput.d.ts +5 -0
  1297. package/packages/happy2-server/dist/modules/message/impl/sendMessageDbInput.d.ts.map +1 -0
  1298. package/packages/happy2-server/dist/modules/message/impl/sendMessageDbInput.js +2 -0
  1299. package/packages/happy2-server/dist/modules/message/impl/sendMessageDbInput.js.map +1 -0
  1300. package/packages/happy2-server/dist/modules/message/impl/storeClientMutationDb.d.ts +7 -0
  1301. package/packages/happy2-server/dist/modules/message/impl/storeClientMutationDb.d.ts.map +1 -0
  1302. package/packages/happy2-server/dist/modules/message/impl/storeClientMutationDb.js +25 -0
  1303. package/packages/happy2-server/dist/modules/message/impl/storeClientMutationDb.js.map +1 -0
  1304. package/packages/happy2-server/dist/modules/message/messageDelete.d.ts +11 -0
  1305. package/packages/happy2-server/dist/modules/message/messageDelete.d.ts.map +1 -0
  1306. package/packages/happy2-server/dist/modules/message/messageDelete.js +62 -0
  1307. package/packages/happy2-server/dist/modules/message/messageDelete.js.map +1 -0
  1308. package/packages/happy2-server/dist/modules/message/messageEdit.d.ts +17 -0
  1309. package/packages/happy2-server/dist/modules/message/messageEdit.d.ts.map +1 -0
  1310. package/packages/happy2-server/dist/modules/message/messageEdit.js +98 -0
  1311. package/packages/happy2-server/dist/modules/message/messageEdit.js.map +1 -0
  1312. package/packages/happy2-server/dist/modules/message/messageExpireDue.d.ts +8 -0
  1313. package/packages/happy2-server/dist/modules/message/messageExpireDue.d.ts.map +1 -0
  1314. package/packages/happy2-server/dist/modules/message/messageExpireDue.js +56 -0
  1315. package/packages/happy2-server/dist/modules/message/messageExpireDue.js.map +1 -0
  1316. package/packages/happy2-server/dist/modules/message/messageForward.d.ts +16 -0
  1317. package/packages/happy2-server/dist/modules/message/messageForward.d.ts.map +1 -0
  1318. package/packages/happy2-server/dist/modules/message/messageForward.js +159 -0
  1319. package/packages/happy2-server/dist/modules/message/messageForward.js.map +1 -0
  1320. package/packages/happy2-server/dist/modules/message/messageGet.d.ts +8 -0
  1321. package/packages/happy2-server/dist/modules/message/messageGet.d.ts.map +1 -0
  1322. package/packages/happy2-server/dist/modules/message/messageGet.js +14 -0
  1323. package/packages/happy2-server/dist/modules/message/messageGet.js.map +1 -0
  1324. package/packages/happy2-server/dist/modules/message/messageGetProjection.d.ts +8 -0
  1325. package/packages/happy2-server/dist/modules/message/messageGetProjection.d.ts.map +1 -0
  1326. package/packages/happy2-server/dist/modules/message/messageGetProjection.js +229 -0
  1327. package/packages/happy2-server/dist/modules/message/messageGetProjection.js.map +1 -0
  1328. package/packages/happy2-server/dist/modules/message/messageIndexForSearch.d.ts +7 -0
  1329. package/packages/happy2-server/dist/modules/message/messageIndexForSearch.d.ts.map +1 -0
  1330. package/packages/happy2-server/dist/modules/message/messageIndexForSearch.js +41 -0
  1331. package/packages/happy2-server/dist/modules/message/messageIndexForSearch.js.map +1 -0
  1332. package/packages/happy2-server/dist/modules/message/messageIsPast.d.ts +2 -0
  1333. package/packages/happy2-server/dist/modules/message/messageIsPast.d.ts.map +1 -0
  1334. package/packages/happy2-server/dist/modules/message/messageIsPast.js +4 -0
  1335. package/packages/happy2-server/dist/modules/message/messageIsPast.js.map +1 -0
  1336. package/packages/happy2-server/dist/modules/message/messageList.d.ts +18 -0
  1337. package/packages/happy2-server/dist/modules/message/messageList.d.ts.map +1 -0
  1338. package/packages/happy2-server/dist/modules/message/messageList.js +47 -0
  1339. package/packages/happy2-server/dist/modules/message/messageList.js.map +1 -0
  1340. package/packages/happy2-server/dist/modules/message/messagePinSet.d.ts +14 -0
  1341. package/packages/happy2-server/dist/modules/message/messagePinSet.d.ts.map +1 -0
  1342. package/packages/happy2-server/dist/modules/message/messagePinSet.js +62 -0
  1343. package/packages/happy2-server/dist/modules/message/messagePinSet.js.map +1 -0
  1344. package/packages/happy2-server/dist/modules/message/messageReactionSet.d.ts +17 -0
  1345. package/packages/happy2-server/dist/modules/message/messageReactionSet.d.ts.map +1 -0
  1346. package/packages/happy2-server/dist/modules/message/messageReactionSet.js +119 -0
  1347. package/packages/happy2-server/dist/modules/message/messageReactionSet.js.map +1 -0
  1348. package/packages/happy2-server/dist/modules/message/messageRecordDelivery.d.ts +18 -0
  1349. package/packages/happy2-server/dist/modules/message/messageRecordDelivery.d.ts.map +1 -0
  1350. package/packages/happy2-server/dist/modules/message/messageRecordDelivery.js +116 -0
  1351. package/packages/happy2-server/dist/modules/message/messageRecordDelivery.js.map +1 -0
  1352. package/packages/happy2-server/dist/modules/message/messageReplaceMentions.d.ts +10 -0
  1353. package/packages/happy2-server/dist/modules/message/messageReplaceMentions.d.ts.map +1 -0
  1354. package/packages/happy2-server/dist/modules/message/messageReplaceMentions.js +63 -0
  1355. package/packages/happy2-server/dist/modules/message/messageReplaceMentions.js.map +1 -0
  1356. package/packages/happy2-server/dist/modules/message/messageRevisionList.d.ts +13 -0
  1357. package/packages/happy2-server/dist/modules/message/messageRevisionList.d.ts.map +1 -0
  1358. package/packages/happy2-server/dist/modules/message/messageRevisionList.js +36 -0
  1359. package/packages/happy2-server/dist/modules/message/messageRevisionList.js.map +1 -0
  1360. package/packages/happy2-server/dist/modules/message/messageSend.d.ts +12 -0
  1361. package/packages/happy2-server/dist/modules/message/messageSend.d.ts.map +1 -0
  1362. package/packages/happy2-server/dist/modules/message/messageSend.js +12 -0
  1363. package/packages/happy2-server/dist/modules/message/messageSend.js.map +1 -0
  1364. package/packages/happy2-server/dist/modules/message/messageSendAutomated.d.ts +18 -0
  1365. package/packages/happy2-server/dist/modules/message/messageSendAutomated.d.ts.map +1 -0
  1366. package/packages/happy2-server/dist/modules/message/messageSendAutomated.js +32 -0
  1367. package/packages/happy2-server/dist/modules/message/messageSendAutomated.js.map +1 -0
  1368. package/packages/happy2-server/dist/modules/message/messageSendInTransaction.d.ts +12 -0
  1369. package/packages/happy2-server/dist/modules/message/messageSendInTransaction.d.ts.map +1 -0
  1370. package/packages/happy2-server/dist/modules/message/messageSendInTransaction.js +260 -0
  1371. package/packages/happy2-server/dist/modules/message/messageSendInTransaction.js.map +1 -0
  1372. package/packages/happy2-server/dist/modules/moderation/accountBanApply.d.ts +15 -0
  1373. package/packages/happy2-server/dist/modules/moderation/accountBanApply.d.ts.map +1 -0
  1374. package/packages/happy2-server/dist/modules/moderation/accountBanApply.js +73 -0
  1375. package/packages/happy2-server/dist/modules/moderation/accountBanApply.js.map +1 -0
  1376. package/packages/happy2-server/dist/modules/moderation/accountBanExpireDue.d.ts +11 -0
  1377. package/packages/happy2-server/dist/modules/moderation/accountBanExpireDue.d.ts.map +1 -0
  1378. package/packages/happy2-server/dist/modules/moderation/accountBanExpireDue.js +85 -0
  1379. package/packages/happy2-server/dist/modules/moderation/accountBanExpireDue.js.map +1 -0
  1380. package/packages/happy2-server/dist/modules/moderation/accountBanList.d.ts +14 -0
  1381. package/packages/happy2-server/dist/modules/moderation/accountBanList.d.ts.map +1 -0
  1382. package/packages/happy2-server/dist/modules/moderation/accountBanList.js +42 -0
  1383. package/packages/happy2-server/dist/modules/moderation/accountBanList.js.map +1 -0
  1384. package/packages/happy2-server/dist/modules/moderation/accountBanRevoke.d.ts +14 -0
  1385. package/packages/happy2-server/dist/modules/moderation/accountBanRevoke.d.ts.map +1 -0
  1386. package/packages/happy2-server/dist/modules/moderation/accountBanRevoke.js +62 -0
  1387. package/packages/happy2-server/dist/modules/moderation/accountBanRevoke.js.map +1 -0
  1388. package/packages/happy2-server/dist/modules/moderation/impl/accountTarget.d.ts +10 -0
  1389. package/packages/happy2-server/dist/modules/moderation/impl/accountTarget.d.ts.map +1 -0
  1390. package/packages/happy2-server/dist/modules/moderation/impl/accountTarget.js +2 -0
  1391. package/packages/happy2-server/dist/modules/moderation/impl/accountTarget.js.map +1 -0
  1392. package/packages/happy2-server/dist/modules/moderation/impl/accountTargetDb.d.ts +8 -0
  1393. package/packages/happy2-server/dist/modules/moderation/impl/accountTargetDb.d.ts.map +1 -0
  1394. package/packages/happy2-server/dist/modules/moderation/impl/accountTargetDb.js +36 -0
  1395. package/packages/happy2-server/dist/modules/moderation/impl/accountTargetDb.js.map +1 -0
  1396. package/packages/happy2-server/dist/modules/moderation/impl/accountTargetState.d.ts +3 -0
  1397. package/packages/happy2-server/dist/modules/moderation/impl/accountTargetState.d.ts.map +1 -0
  1398. package/packages/happy2-server/dist/modules/moderation/impl/accountTargetState.js +11 -0
  1399. package/packages/happy2-server/dist/modules/moderation/impl/accountTargetState.js.map +1 -0
  1400. package/packages/happy2-server/dist/modules/moderation/impl/advanceChatMutation.d.ts +13 -0
  1401. package/packages/happy2-server/dist/modules/moderation/impl/advanceChatMutation.d.ts.map +1 -0
  1402. package/packages/happy2-server/dist/modules/moderation/impl/advanceChatMutation.js +38 -0
  1403. package/packages/happy2-server/dist/modules/moderation/impl/advanceChatMutation.js.map +1 -0
  1404. package/packages/happy2-server/dist/modules/moderation/impl/applyBanInTransaction.d.ts +8 -0
  1405. package/packages/happy2-server/dist/modules/moderation/impl/applyBanInTransaction.d.ts.map +1 -0
  1406. package/packages/happy2-server/dist/modules/moderation/impl/applyBanInTransaction.js +44 -0
  1407. package/packages/happy2-server/dist/modules/moderation/impl/applyBanInTransaction.js.map +1 -0
  1408. package/packages/happy2-server/dist/modules/moderation/impl/asBan.d.ts +3 -0
  1409. package/packages/happy2-server/dist/modules/moderation/impl/asBan.d.ts.map +1 -0
  1410. package/packages/happy2-server/dist/modules/moderation/impl/asBan.js +26 -0
  1411. package/packages/happy2-server/dist/modules/moderation/impl/asBan.js.map +1 -0
  1412. package/packages/happy2-server/dist/modules/moderation/impl/asModerationAction.d.ts +3 -0
  1413. package/packages/happy2-server/dist/modules/moderation/impl/asModerationAction.d.ts.map +1 -0
  1414. package/packages/happy2-server/dist/modules/moderation/impl/asModerationAction.js +22 -0
  1415. package/packages/happy2-server/dist/modules/moderation/impl/asModerationAction.js.map +1 -0
  1416. package/packages/happy2-server/dist/modules/moderation/impl/asReport.d.ts +3 -0
  1417. package/packages/happy2-server/dist/modules/moderation/impl/asReport.d.ts.map +1 -0
  1418. package/packages/happy2-server/dist/modules/moderation/impl/asReport.js +22 -0
  1419. package/packages/happy2-server/dist/modules/moderation/impl/asReport.js.map +1 -0
  1420. package/packages/happy2-server/dist/modules/moderation/impl/banDb.d.ts +8 -0
  1421. package/packages/happy2-server/dist/modules/moderation/impl/banDb.d.ts.map +1 -0
  1422. package/packages/happy2-server/dist/modules/moderation/impl/banDb.js +22 -0
  1423. package/packages/happy2-server/dist/modules/moderation/impl/banDb.js.map +1 -0
  1424. package/packages/happy2-server/dist/modules/moderation/impl/banSelection.d.ts +212 -0
  1425. package/packages/happy2-server/dist/modules/moderation/impl/banSelection.d.ts.map +1 -0
  1426. package/packages/happy2-server/dist/modules/moderation/impl/banSelection.js +15 -0
  1427. package/packages/happy2-server/dist/modules/moderation/impl/banSelection.js.map +1 -0
  1428. package/packages/happy2-server/dist/modules/moderation/impl/closeElapsedBan.d.ts +8 -0
  1429. package/packages/happy2-server/dist/modules/moderation/impl/closeElapsedBan.d.ts.map +1 -0
  1430. package/packages/happy2-server/dist/modules/moderation/impl/closeElapsedBan.js +30 -0
  1431. package/packages/happy2-server/dist/modules/moderation/impl/closeElapsedBan.js.map +1 -0
  1432. package/packages/happy2-server/dist/modules/moderation/impl/createModerationNotification.d.ts +17 -0
  1433. package/packages/happy2-server/dist/modules/moderation/impl/createModerationNotification.d.ts.map +1 -0
  1434. package/packages/happy2-server/dist/modules/moderation/impl/createModerationNotification.js +44 -0
  1435. package/packages/happy2-server/dist/modules/moderation/impl/createModerationNotification.js.map +1 -0
  1436. package/packages/happy2-server/dist/modules/moderation/impl/deleteUserInTransaction.d.ts +8 -0
  1437. package/packages/happy2-server/dist/modules/moderation/impl/deleteUserInTransaction.d.ts.map +1 -0
  1438. package/packages/happy2-server/dist/modules/moderation/impl/deleteUserInTransaction.js +164 -0
  1439. package/packages/happy2-server/dist/modules/moderation/impl/deleteUserInTransaction.js.map +1 -0
  1440. package/packages/happy2-server/dist/modules/moderation/impl/mergeContext.d.ts +3 -0
  1441. package/packages/happy2-server/dist/modules/moderation/impl/mergeContext.d.ts.map +1 -0
  1442. package/packages/happy2-server/dist/modules/moderation/impl/mergeContext.js +11 -0
  1443. package/packages/happy2-server/dist/modules/moderation/impl/mergeContext.js.map +1 -0
  1444. package/packages/happy2-server/dist/modules/moderation/impl/moderationActionDb.d.ts +8 -0
  1445. package/packages/happy2-server/dist/modules/moderation/impl/moderationActionDb.d.ts.map +1 -0
  1446. package/packages/happy2-server/dist/modules/moderation/impl/moderationActionDb.js +21 -0
  1447. package/packages/happy2-server/dist/modules/moderation/impl/moderationActionDb.js.map +1 -0
  1448. package/packages/happy2-server/dist/modules/moderation/impl/moderationActionSelection.d.ts +250 -0
  1449. package/packages/happy2-server/dist/modules/moderation/impl/moderationActionSelection.d.ts.map +1 -0
  1450. package/packages/happy2-server/dist/modules/moderation/impl/moderationActionSelection.js +17 -0
  1451. package/packages/happy2-server/dist/modules/moderation/impl/moderationActionSelection.js.map +1 -0
  1452. package/packages/happy2-server/dist/modules/moderation/impl/removeFileInTransaction.d.ts +8 -0
  1453. package/packages/happy2-server/dist/modules/moderation/impl/removeFileInTransaction.d.ts.map +1 -0
  1454. package/packages/happy2-server/dist/modules/moderation/impl/removeFileInTransaction.js +73 -0
  1455. package/packages/happy2-server/dist/modules/moderation/impl/removeFileInTransaction.js.map +1 -0
  1456. package/packages/happy2-server/dist/modules/moderation/impl/removeMessageInTransaction.d.ts +11 -0
  1457. package/packages/happy2-server/dist/modules/moderation/impl/removeMessageInTransaction.d.ts.map +1 -0
  1458. package/packages/happy2-server/dist/modules/moderation/impl/removeMessageInTransaction.js +62 -0
  1459. package/packages/happy2-server/dist/modules/moderation/impl/removeMessageInTransaction.js.map +1 -0
  1460. package/packages/happy2-server/dist/modules/moderation/impl/reportDb.d.ts +8 -0
  1461. package/packages/happy2-server/dist/modules/moderation/impl/reportDb.d.ts.map +1 -0
  1462. package/packages/happy2-server/dist/modules/moderation/impl/reportDb.js +21 -0
  1463. package/packages/happy2-server/dist/modules/moderation/impl/reportDb.js.map +1 -0
  1464. package/packages/happy2-server/dist/modules/moderation/impl/reportSelection.d.ts +269 -0
  1465. package/packages/happy2-server/dist/modules/moderation/impl/reportSelection.d.ts.map +1 -0
  1466. package/packages/happy2-server/dist/modules/moderation/impl/reportSelection.js +18 -0
  1467. package/packages/happy2-server/dist/modules/moderation/impl/reportSelection.js.map +1 -0
  1468. package/packages/happy2-server/dist/modules/moderation/impl/requireReportTargetAccess.d.ts +13 -0
  1469. package/packages/happy2-server/dist/modules/moderation/impl/requireReportTargetAccess.d.ts.map +1 -0
  1470. package/packages/happy2-server/dist/modules/moderation/impl/requireReportTargetAccess.js +56 -0
  1471. package/packages/happy2-server/dist/modules/moderation/impl/requireReportTargetAccess.js.map +1 -0
  1472. package/packages/happy2-server/dist/modules/moderation/impl/revokeBanInTransaction.d.ts +8 -0
  1473. package/packages/happy2-server/dist/modules/moderation/impl/revokeBanInTransaction.d.ts.map +1 -0
  1474. package/packages/happy2-server/dist/modules/moderation/impl/revokeBanInTransaction.js +34 -0
  1475. package/packages/happy2-server/dist/modules/moderation/impl/revokeBanInTransaction.js.map +1 -0
  1476. package/packages/happy2-server/dist/modules/moderation/impl/syncUserMutation.d.ts +8 -0
  1477. package/packages/happy2-server/dist/modules/moderation/impl/syncUserMutation.d.ts.map +1 -0
  1478. package/packages/happy2-server/dist/modules/moderation/impl/syncUserMutation.js +31 -0
  1479. package/packages/happy2-server/dist/modules/moderation/impl/syncUserMutation.js.map +1 -0
  1480. package/packages/happy2-server/dist/modules/moderation/moderationActionRevoke.d.ts +17 -0
  1481. package/packages/happy2-server/dist/modules/moderation/moderationActionRevoke.d.ts.map +1 -0
  1482. package/packages/happy2-server/dist/modules/moderation/moderationActionRevoke.js +59 -0
  1483. package/packages/happy2-server/dist/modules/moderation/moderationActionRevoke.js.map +1 -0
  1484. package/packages/happy2-server/dist/modules/moderation/moderationActionTake.d.ts +22 -0
  1485. package/packages/happy2-server/dist/modules/moderation/moderationActionTake.d.ts.map +1 -0
  1486. package/packages/happy2-server/dist/modules/moderation/moderationActionTake.js +133 -0
  1487. package/packages/happy2-server/dist/modules/moderation/moderationActionTake.js.map +1 -0
  1488. package/packages/happy2-server/dist/modules/moderation/moderationReportCreate.d.ts +18 -0
  1489. package/packages/happy2-server/dist/modules/moderation/moderationReportCreate.d.ts.map +1 -0
  1490. package/packages/happy2-server/dist/modules/moderation/moderationReportCreate.js +44 -0
  1491. package/packages/happy2-server/dist/modules/moderation/moderationReportCreate.js.map +1 -0
  1492. package/packages/happy2-server/dist/modules/moderation/moderationReportList.d.ts +14 -0
  1493. package/packages/happy2-server/dist/modules/moderation/moderationReportList.d.ts.map +1 -0
  1494. package/packages/happy2-server/dist/modules/moderation/moderationReportList.js +33 -0
  1495. package/packages/happy2-server/dist/modules/moderation/moderationReportList.js.map +1 -0
  1496. package/packages/happy2-server/dist/modules/moderation/moderationReportUpdate.d.ts +16 -0
  1497. package/packages/happy2-server/dist/modules/moderation/moderationReportUpdate.d.ts.map +1 -0
  1498. package/packages/happy2-server/dist/modules/moderation/moderationReportUpdate.js +52 -0
  1499. package/packages/happy2-server/dist/modules/moderation/moderationReportUpdate.js.map +1 -0
  1500. package/packages/happy2-server/dist/modules/notification/chatNotificationPreferenceSet.d.ts +18 -0
  1501. package/packages/happy2-server/dist/modules/notification/chatNotificationPreferenceSet.d.ts.map +1 -0
  1502. package/packages/happy2-server/dist/modules/notification/chatNotificationPreferenceSet.js +72 -0
  1503. package/packages/happy2-server/dist/modules/notification/chatNotificationPreferenceSet.js.map +1 -0
  1504. package/packages/happy2-server/dist/modules/notification/impl/asNotification.d.ts +3 -0
  1505. package/packages/happy2-server/dist/modules/notification/impl/asNotification.d.ts.map +1 -0
  1506. package/packages/happy2-server/dist/modules/notification/impl/asNotification.js +15 -0
  1507. package/packages/happy2-server/dist/modules/notification/impl/asNotification.js.map +1 -0
  1508. package/packages/happy2-server/dist/modules/notification/notificationList.d.ts +16 -0
  1509. package/packages/happy2-server/dist/modules/notification/notificationList.d.ts.map +1 -0
  1510. package/packages/happy2-server/dist/modules/notification/notificationList.js +50 -0
  1511. package/packages/happy2-server/dist/modules/notification/notificationList.js.map +1 -0
  1512. package/packages/happy2-server/dist/modules/notification/notificationMarkRead.d.ts +14 -0
  1513. package/packages/happy2-server/dist/modules/notification/notificationMarkRead.d.ts.map +1 -0
  1514. package/packages/happy2-server/dist/modules/notification/notificationMarkRead.js +41 -0
  1515. package/packages/happy2-server/dist/modules/notification/notificationMarkRead.js.map +1 -0
  1516. package/packages/happy2-server/dist/modules/notification/notificationPreferenceGet.d.ts +19 -0
  1517. package/packages/happy2-server/dist/modules/notification/notificationPreferenceGet.d.ts.map +1 -0
  1518. package/packages/happy2-server/dist/modules/notification/notificationPreferenceGet.js +48 -0
  1519. package/packages/happy2-server/dist/modules/notification/notificationPreferenceGet.js.map +1 -0
  1520. package/packages/happy2-server/dist/modules/notification/notificationPreferenceUpdate.d.ts +24 -0
  1521. package/packages/happy2-server/dist/modules/notification/notificationPreferenceUpdate.d.ts.map +1 -0
  1522. package/packages/happy2-server/dist/modules/notification/notificationPreferenceUpdate.js +95 -0
  1523. package/packages/happy2-server/dist/modules/notification/notificationPreferenceUpdate.js.map +1 -0
  1524. package/packages/happy2-server/dist/modules/operations/actions.test.d.ts +2 -0
  1525. package/packages/happy2-server/dist/modules/operations/actions.test.d.ts.map +1 -0
  1526. package/packages/happy2-server/dist/modules/operations/{repository.test.js → actions.test.js} +264 -159
  1527. package/packages/happy2-server/dist/modules/operations/actions.test.js.map +1 -0
  1528. package/packages/happy2-server/dist/modules/operations/asAudit.d.ts +3 -0
  1529. package/packages/happy2-server/dist/modules/operations/asAudit.d.ts.map +1 -0
  1530. package/packages/happy2-server/dist/modules/operations/asAudit.js +24 -0
  1531. package/packages/happy2-server/dist/modules/operations/asAudit.js.map +1 -0
  1532. package/packages/happy2-server/dist/modules/operations/auditAppend.d.ts +17 -0
  1533. package/packages/happy2-server/dist/modules/operations/auditAppend.d.ts.map +1 -0
  1534. package/packages/happy2-server/dist/modules/operations/auditAppend.js +41 -0
  1535. package/packages/happy2-server/dist/modules/operations/auditAppend.js.map +1 -0
  1536. package/packages/happy2-server/dist/modules/operations/auditContext.d.ts +6 -0
  1537. package/packages/happy2-server/dist/modules/operations/auditContext.d.ts.map +1 -0
  1538. package/packages/happy2-server/dist/modules/operations/auditContext.js +2 -0
  1539. package/packages/happy2-server/dist/modules/operations/auditContext.js.map +1 -0
  1540. package/packages/happy2-server/dist/modules/operations/auditSelection.d.ts +288 -0
  1541. package/packages/happy2-server/dist/modules/operations/auditSelection.d.ts.map +1 -0
  1542. package/packages/happy2-server/dist/modules/operations/auditSelection.js +19 -0
  1543. package/packages/happy2-server/dist/modules/operations/auditSelection.js.map +1 -0
  1544. package/packages/happy2-server/dist/modules/operations/cursorCondition.d.ts +5 -0
  1545. package/packages/happy2-server/dist/modules/operations/cursorCondition.d.ts.map +1 -0
  1546. package/packages/happy2-server/dist/modules/operations/cursorCondition.js +7 -0
  1547. package/packages/happy2-server/dist/modules/operations/cursorCondition.js.map +1 -0
  1548. package/packages/happy2-server/dist/modules/operations/decodeCursor.d.ts +3 -0
  1549. package/packages/happy2-server/dist/modules/operations/decodeCursor.d.ts.map +1 -0
  1550. package/packages/happy2-server/dist/modules/operations/decodeCursor.js +24 -0
  1551. package/packages/happy2-server/dist/modules/operations/decodeCursor.js.map +1 -0
  1552. package/packages/happy2-server/dist/modules/operations/futureTimestamp.d.ts +2 -0
  1553. package/packages/happy2-server/dist/modules/operations/futureTimestamp.d.ts.map +1 -0
  1554. package/packages/happy2-server/dist/modules/operations/futureTimestamp.js +10 -0
  1555. package/packages/happy2-server/dist/modules/operations/futureTimestamp.js.map +1 -0
  1556. package/packages/happy2-server/dist/modules/operations/impl/cursor.d.ts +6 -0
  1557. package/packages/happy2-server/dist/modules/operations/impl/cursor.d.ts.map +1 -0
  1558. package/packages/happy2-server/dist/modules/operations/impl/cursor.js +2 -0
  1559. package/packages/happy2-server/dist/modules/operations/impl/cursor.js.map +1 -0
  1560. package/packages/happy2-server/dist/modules/operations/impl/encodeCursor.d.ts +2 -0
  1561. package/packages/happy2-server/dist/modules/operations/impl/encodeCursor.d.ts.map +1 -0
  1562. package/packages/happy2-server/dist/modules/operations/impl/encodeCursor.js +7 -0
  1563. package/packages/happy2-server/dist/modules/operations/impl/encodeCursor.js.map +1 -0
  1564. package/packages/happy2-server/dist/modules/operations/json.d.ts +2 -0
  1565. package/packages/happy2-server/dist/modules/operations/json.d.ts.map +1 -0
  1566. package/packages/happy2-server/dist/modules/operations/json.js +4 -0
  1567. package/packages/happy2-server/dist/modules/operations/json.js.map +1 -0
  1568. package/packages/happy2-server/dist/modules/operations/number.d.ts +2 -0
  1569. package/packages/happy2-server/dist/modules/operations/number.d.ts.map +1 -0
  1570. package/packages/happy2-server/dist/modules/operations/number.js +12 -0
  1571. package/packages/happy2-server/dist/modules/operations/number.js.map +1 -0
  1572. package/packages/happy2-server/dist/modules/operations/optionalText.d.ts +2 -0
  1573. package/packages/happy2-server/dist/modules/operations/optionalText.d.ts.map +1 -0
  1574. package/packages/happy2-server/dist/modules/operations/optionalText.js +5 -0
  1575. package/packages/happy2-server/dist/modules/operations/optionalText.js.map +1 -0
  1576. package/packages/happy2-server/dist/modules/operations/page.d.ts +3 -0
  1577. package/packages/happy2-server/dist/modules/operations/page.d.ts.map +1 -0
  1578. package/packages/happy2-server/dist/modules/operations/page.js +12 -0
  1579. package/packages/happy2-server/dist/modules/operations/page.js.map +1 -0
  1580. package/packages/happy2-server/dist/modules/operations/parseJson.d.ts +2 -0
  1581. package/packages/happy2-server/dist/modules/operations/parseJson.d.ts.map +1 -0
  1582. package/packages/happy2-server/dist/modules/operations/parseJson.js +13 -0
  1583. package/packages/happy2-server/dist/modules/operations/parseJson.js.map +1 -0
  1584. package/packages/happy2-server/dist/modules/operations/text.d.ts +2 -0
  1585. package/packages/happy2-server/dist/modules/operations/text.d.ts.map +1 -0
  1586. package/packages/happy2-server/dist/modules/operations/text.js +8 -0
  1587. package/packages/happy2-server/dist/modules/operations/text.js.map +1 -0
  1588. package/packages/happy2-server/dist/modules/operations/types.d.ts +3 -0
  1589. package/packages/happy2-server/dist/modules/operations/types.d.ts.map +1 -1
  1590. package/packages/happy2-server/dist/modules/operations/userRequireOperationsActive.d.ts +10 -0
  1591. package/packages/happy2-server/dist/modules/operations/userRequireOperationsActive.d.ts.map +1 -0
  1592. package/packages/happy2-server/dist/modules/operations/userRequireOperationsActive.js +22 -0
  1593. package/packages/happy2-server/dist/modules/operations/userRequireOperationsActive.js.map +1 -0
  1594. package/packages/happy2-server/dist/modules/operations/userRequireOperationsAdmin.d.ts +7 -0
  1595. package/packages/happy2-server/dist/modules/operations/userRequireOperationsAdmin.d.ts.map +1 -0
  1596. package/packages/happy2-server/dist/modules/operations/userRequireOperationsAdmin.js +13 -0
  1597. package/packages/happy2-server/dist/modules/operations/userRequireOperationsAdmin.js.map +1 -0
  1598. package/packages/happy2-server/dist/modules/presence/impl/listPresenceSettingsWithDb.d.ts +8 -0
  1599. package/packages/happy2-server/dist/modules/presence/impl/listPresenceSettingsWithDb.d.ts.map +1 -0
  1600. package/packages/happy2-server/dist/modules/presence/impl/listPresenceSettingsWithDb.js +41 -0
  1601. package/packages/happy2-server/dist/modules/presence/impl/listPresenceSettingsWithDb.js.map +1 -0
  1602. package/packages/happy2-server/dist/modules/presence/presenceSettingList.d.ts +8 -0
  1603. package/packages/happy2-server/dist/modules/presence/presenceSettingList.d.ts.map +1 -0
  1604. package/packages/happy2-server/dist/modules/presence/presenceSettingList.js +41 -0
  1605. package/packages/happy2-server/dist/modules/presence/presenceSettingList.js.map +1 -0
  1606. package/packages/happy2-server/dist/modules/presence/presenceSettingUpdate.d.ts +18 -0
  1607. package/packages/happy2-server/dist/modules/presence/presenceSettingUpdate.d.ts.map +1 -0
  1608. package/packages/happy2-server/dist/modules/presence/presenceSettingUpdate.js +76 -0
  1609. package/packages/happy2-server/dist/modules/presence/presenceSettingUpdate.js.map +1 -0
  1610. package/packages/happy2-server/dist/modules/realtime/events.d.ts +29 -4
  1611. package/packages/happy2-server/dist/modules/realtime/events.d.ts.map +1 -1
  1612. package/packages/happy2-server/dist/modules/realtime/events.js +41 -4
  1613. package/packages/happy2-server/dist/modules/realtime/events.js.map +1 -1
  1614. package/packages/happy2-server/dist/modules/realtime/local.d.ts +5 -0
  1615. package/packages/happy2-server/dist/modules/realtime/local.d.ts.map +1 -1
  1616. package/packages/happy2-server/dist/modules/realtime/local.js +68 -14
  1617. package/packages/happy2-server/dist/modules/realtime/local.js.map +1 -1
  1618. package/packages/happy2-server/dist/modules/realtime/local.test.js +108 -11
  1619. package/packages/happy2-server/dist/modules/realtime/local.test.js.map +1 -1
  1620. package/packages/happy2-server/dist/modules/realtime/pubsub.d.ts +0 -1
  1621. package/packages/happy2-server/dist/modules/realtime/pubsub.d.ts.map +1 -1
  1622. package/packages/happy2-server/dist/modules/realtime/pubsub.js.map +1 -1
  1623. package/packages/happy2-server/dist/modules/request/idempotencyLeaseAcquire.d.ts +8 -0
  1624. package/packages/happy2-server/dist/modules/request/idempotencyLeaseAcquire.d.ts.map +1 -0
  1625. package/packages/happy2-server/dist/modules/request/idempotencyLeaseAcquire.js +59 -0
  1626. package/packages/happy2-server/dist/modules/request/idempotencyLeaseAcquire.js.map +1 -0
  1627. package/packages/happy2-server/dist/modules/request/idempotencyLeaseComplete.d.ts +8 -0
  1628. package/packages/happy2-server/dist/modules/request/idempotencyLeaseComplete.d.ts.map +1 -0
  1629. package/packages/happy2-server/dist/modules/request/idempotencyLeaseComplete.js +30 -0
  1630. package/packages/happy2-server/dist/modules/request/idempotencyLeaseComplete.js.map +1 -0
  1631. package/packages/happy2-server/dist/modules/request/idempotencyLeaseRelease.d.ts +7 -0
  1632. package/packages/happy2-server/dist/modules/request/idempotencyLeaseRelease.d.ts.map +1 -0
  1633. package/packages/happy2-server/dist/modules/request/idempotencyLeaseRelease.js +23 -0
  1634. package/packages/happy2-server/dist/modules/request/idempotencyLeaseRelease.js.map +1 -0
  1635. package/packages/happy2-server/dist/modules/request/idempotencyRecordPurgeExpired.d.ts +7 -0
  1636. package/packages/happy2-server/dist/modules/request/idempotencyRecordPurgeExpired.d.ts.map +1 -0
  1637. package/packages/happy2-server/dist/modules/request/idempotencyRecordPurgeExpired.js +25 -0
  1638. package/packages/happy2-server/dist/modules/request/idempotencyRecordPurgeExpired.js.map +1 -0
  1639. package/packages/happy2-server/dist/modules/request/impl/idempotencyKey.d.ts +8 -0
  1640. package/packages/happy2-server/dist/modules/request/impl/idempotencyKey.d.ts.map +1 -0
  1641. package/packages/happy2-server/dist/modules/request/impl/idempotencyKey.js +27 -0
  1642. package/packages/happy2-server/dist/modules/request/impl/idempotencyKey.js.map +1 -0
  1643. package/packages/happy2-server/dist/modules/request/index.d.ts +4 -1
  1644. package/packages/happy2-server/dist/modules/request/index.d.ts.map +1 -1
  1645. package/packages/happy2-server/dist/modules/request/index.js +4 -1
  1646. package/packages/happy2-server/dist/modules/request/index.js.map +1 -1
  1647. package/packages/happy2-server/dist/modules/retention/impl/asRetention.d.ts +3 -0
  1648. package/packages/happy2-server/dist/modules/retention/impl/asRetention.d.ts.map +1 -0
  1649. package/packages/happy2-server/dist/modules/retention/impl/asRetention.js +19 -0
  1650. package/packages/happy2-server/dist/modules/retention/impl/asRetention.js.map +1 -0
  1651. package/packages/happy2-server/dist/modules/retention/impl/retentionRunDb.d.ts +8 -0
  1652. package/packages/happy2-server/dist/modules/retention/impl/retentionRunDb.d.ts.map +1 -0
  1653. package/packages/happy2-server/dist/modules/retention/impl/retentionRunDb.js +21 -0
  1654. package/packages/happy2-server/dist/modules/retention/impl/retentionRunDb.js.map +1 -0
  1655. package/packages/happy2-server/dist/modules/retention/impl/retentionSelection.d.ts +170 -0
  1656. package/packages/happy2-server/dist/modules/retention/impl/retentionSelection.d.ts.map +1 -0
  1657. package/packages/happy2-server/dist/modules/retention/impl/retentionSelection.js +13 -0
  1658. package/packages/happy2-server/dist/modules/retention/impl/retentionSelection.js.map +1 -0
  1659. package/packages/happy2-server/dist/modules/retention/retentionRunFinish.d.ts +18 -0
  1660. package/packages/happy2-server/dist/modules/retention/retentionRunFinish.d.ts.map +1 -0
  1661. package/packages/happy2-server/dist/modules/retention/retentionRunFinish.js +48 -0
  1662. package/packages/happy2-server/dist/modules/retention/retentionRunFinish.js.map +1 -0
  1663. package/packages/happy2-server/dist/modules/retention/retentionRunList.d.ts +13 -0
  1664. package/packages/happy2-server/dist/modules/retention/retentionRunList.d.ts.map +1 -0
  1665. package/packages/happy2-server/dist/modules/retention/retentionRunList.js +31 -0
  1666. package/packages/happy2-server/dist/modules/retention/retentionRunList.js.map +1 -0
  1667. package/packages/happy2-server/dist/modules/retention/retentionRunStart.d.ts +14 -0
  1668. package/packages/happy2-server/dist/modules/retention/retentionRunStart.d.ts.map +1 -0
  1669. package/packages/happy2-server/dist/modules/retention/retentionRunStart.js +45 -0
  1670. package/packages/happy2-server/dist/modules/retention/retentionRunStart.js.map +1 -0
  1671. package/packages/happy2-server/dist/modules/sandbox/catalog.d.ts +15 -0
  1672. package/packages/happy2-server/dist/modules/sandbox/catalog.d.ts.map +1 -0
  1673. package/packages/happy2-server/dist/modules/sandbox/catalog.js +31 -0
  1674. package/packages/happy2-server/dist/modules/sandbox/catalog.js.map +1 -0
  1675. package/packages/happy2-server/dist/modules/sandbox/index.d.ts +4 -0
  1676. package/packages/happy2-server/dist/modules/sandbox/index.d.ts.map +1 -0
  1677. package/packages/happy2-server/dist/modules/sandbox/index.js +3 -0
  1678. package/packages/happy2-server/dist/modules/sandbox/index.js.map +1 -0
  1679. package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.d.ts +34 -0
  1680. package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.d.ts.map +1 -0
  1681. package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.js +415 -0
  1682. package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.js.map +1 -0
  1683. package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.test.d.ts +2 -0
  1684. package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.test.d.ts.map +1 -0
  1685. package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.test.js +243 -0
  1686. package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.test.js.map +1 -0
  1687. package/packages/happy2-server/dist/modules/sandbox/types.d.ts +89 -0
  1688. package/packages/happy2-server/dist/modules/sandbox/types.d.ts.map +1 -0
  1689. package/packages/happy2-server/dist/modules/sandbox/types.js +2 -0
  1690. package/packages/happy2-server/dist/modules/sandbox/types.js.map +1 -0
  1691. package/packages/happy2-server/dist/modules/scheduled-message/areaHint.d.ts +3 -0
  1692. package/packages/happy2-server/dist/modules/scheduled-message/areaHint.d.ts.map +1 -0
  1693. package/packages/happy2-server/dist/modules/scheduled-message/areaHint.js +9 -0
  1694. package/packages/happy2-server/dist/modules/scheduled-message/areaHint.js.map +1 -0
  1695. package/packages/happy2-server/dist/modules/scheduled-message/errorMessage.d.ts +2 -0
  1696. package/packages/happy2-server/dist/modules/scheduled-message/errorMessage.d.ts.map +1 -0
  1697. package/packages/happy2-server/dist/modules/scheduled-message/errorMessage.js +4 -0
  1698. package/packages/happy2-server/dist/modules/scheduled-message/errorMessage.js.map +1 -0
  1699. package/packages/happy2-server/dist/modules/scheduled-message/impl/getScheduledMessageWith.d.ts +8 -0
  1700. package/packages/happy2-server/dist/modules/scheduled-message/impl/getScheduledMessageWith.d.ts.map +1 -0
  1701. package/packages/happy2-server/dist/modules/scheduled-message/impl/getScheduledMessageWith.js +38 -0
  1702. package/packages/happy2-server/dist/modules/scheduled-message/impl/getScheduledMessageWith.js.map +1 -0
  1703. package/packages/happy2-server/dist/modules/scheduled-message/impl/scheduledMessageSummary.d.ts +14 -0
  1704. package/packages/happy2-server/dist/modules/scheduled-message/impl/scheduledMessageSummary.d.ts.map +1 -0
  1705. package/packages/happy2-server/dist/modules/scheduled-message/impl/scheduledMessageSummary.js +2 -0
  1706. package/packages/happy2-server/dist/modules/scheduled-message/impl/scheduledMessageSummary.js.map +1 -0
  1707. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageCancel.d.ts +8 -0
  1708. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageCancel.d.ts.map +1 -0
  1709. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageCancel.js +38 -0
  1710. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageCancel.js.map +1 -0
  1711. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageList.d.ts +8 -0
  1712. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageList.d.ts.map +1 -0
  1713. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageList.js +23 -0
  1714. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageList.js.map +1 -0
  1715. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessagePublishDue.d.ts +8 -0
  1716. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessagePublishDue.d.ts.map +1 -0
  1717. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessagePublishDue.js +106 -0
  1718. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessagePublishDue.js.map +1 -0
  1719. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageSchedule.d.ts +21 -0
  1720. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageSchedule.d.ts.map +1 -0
  1721. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageSchedule.js +72 -0
  1722. package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageSchedule.js.map +1 -0
  1723. package/packages/happy2-server/dist/modules/schema.d.ts +1590 -1328
  1724. package/packages/happy2-server/dist/modules/schema.d.ts.map +1 -1
  1725. package/packages/happy2-server/dist/modules/schema.js +64 -46
  1726. package/packages/happy2-server/dist/modules/schema.js.map +1 -1
  1727. package/packages/happy2-server/dist/modules/search/impl/decodeSearchCursor.d.ts +2 -0
  1728. package/packages/happy2-server/dist/modules/search/impl/decodeSearchCursor.d.ts.map +1 -0
  1729. package/packages/happy2-server/dist/modules/search/impl/decodeSearchCursor.js +19 -0
  1730. package/packages/happy2-server/dist/modules/search/impl/decodeSearchCursor.js.map +1 -0
  1731. package/packages/happy2-server/dist/modules/search/impl/encodeSearchCursor.d.ts +2 -0
  1732. package/packages/happy2-server/dist/modules/search/impl/encodeSearchCursor.d.ts.map +1 -0
  1733. package/packages/happy2-server/dist/modules/search/impl/encodeSearchCursor.js +7 -0
  1734. package/packages/happy2-server/dist/modules/search/impl/encodeSearchCursor.js.map +1 -0
  1735. package/packages/happy2-server/dist/modules/search/impl/fuzzyScore.d.ts +2 -0
  1736. package/packages/happy2-server/dist/modules/search/impl/fuzzyScore.d.ts.map +1 -0
  1737. package/packages/happy2-server/dist/modules/search/impl/fuzzyScore.js +23 -0
  1738. package/packages/happy2-server/dist/modules/search/impl/fuzzyScore.js.map +1 -0
  1739. package/packages/happy2-server/dist/modules/search/impl/levenshtein.d.ts +2 -0
  1740. package/packages/happy2-server/dist/modules/search/impl/levenshtein.d.ts.map +1 -0
  1741. package/packages/happy2-server/dist/modules/search/impl/levenshtein.js +16 -0
  1742. package/packages/happy2-server/dist/modules/search/impl/levenshtein.js.map +1 -0
  1743. package/packages/happy2-server/dist/modules/search/impl/resultId.d.ts +12 -0
  1744. package/packages/happy2-server/dist/modules/search/impl/resultId.d.ts.map +1 -0
  1745. package/packages/happy2-server/dist/modules/search/impl/resultId.js +9 -0
  1746. package/packages/happy2-server/dist/modules/search/impl/resultId.js.map +1 -0
  1747. package/packages/happy2-server/dist/modules/search/normalizeSearch.d.ts +2 -0
  1748. package/packages/happy2-server/dist/modules/search/normalizeSearch.d.ts.map +1 -0
  1749. package/packages/happy2-server/dist/modules/search/normalizeSearch.js +4 -0
  1750. package/packages/happy2-server/dist/modules/search/normalizeSearch.js.map +1 -0
  1751. package/packages/happy2-server/dist/modules/search/searchGrams.d.ts +2 -0
  1752. package/packages/happy2-server/dist/modules/search/searchGrams.d.ts.map +1 -0
  1753. package/packages/happy2-server/dist/modules/search/searchGrams.js +11 -0
  1754. package/packages/happy2-server/dist/modules/search/searchGrams.js.map +1 -0
  1755. package/packages/happy2-server/dist/modules/search/searchPageGet.d.ts +28 -0
  1756. package/packages/happy2-server/dist/modules/search/searchPageGet.d.ts.map +1 -0
  1757. package/packages/happy2-server/dist/modules/search/searchPageGet.js +100 -0
  1758. package/packages/happy2-server/dist/modules/search/searchPageGet.js.map +1 -0
  1759. package/packages/happy2-server/dist/modules/search/searchRun.d.ts +20 -0
  1760. package/packages/happy2-server/dist/modules/search/searchRun.d.ts.map +1 -0
  1761. package/packages/happy2-server/dist/modules/search/searchRun.js +15 -0
  1762. package/packages/happy2-server/dist/modules/search/searchRun.js.map +1 -0
  1763. package/packages/happy2-server/dist/modules/server/serverSchemaMigrate.d.ts +7 -0
  1764. package/packages/happy2-server/dist/modules/server/serverSchemaMigrate.d.ts.map +1 -0
  1765. package/packages/happy2-server/dist/modules/server/serverSchemaMigrate.js +24 -0
  1766. package/packages/happy2-server/dist/modules/server/serverSchemaMigrate.js.map +1 -0
  1767. package/packages/happy2-server/dist/modules/server-profile/serverProfileGet.d.ts +14 -0
  1768. package/packages/happy2-server/dist/modules/server-profile/serverProfileGet.d.ts.map +1 -0
  1769. package/packages/happy2-server/dist/modules/server-profile/serverProfileGet.js +36 -0
  1770. package/packages/happy2-server/dist/modules/server-profile/serverProfileGet.js.map +1 -0
  1771. package/packages/happy2-server/dist/modules/server-profile/serverProfileUpdate.d.ts +19 -0
  1772. package/packages/happy2-server/dist/modules/server-profile/serverProfileUpdate.d.ts.map +1 -0
  1773. package/packages/happy2-server/dist/modules/server-profile/serverProfileUpdate.js +99 -0
  1774. package/packages/happy2-server/dist/modules/server-profile/serverProfileUpdate.js.map +1 -0
  1775. package/packages/happy2-server/dist/modules/setup/impl/allowedServerTransition.d.ts +3 -0
  1776. package/packages/happy2-server/dist/modules/setup/impl/allowedServerTransition.d.ts.map +1 -0
  1777. package/packages/happy2-server/dist/modules/setup/impl/allowedServerTransition.js +11 -0
  1778. package/packages/happy2-server/dist/modules/setup/impl/allowedServerTransition.js.map +1 -0
  1779. package/packages/happy2-server/dist/modules/setup/impl/baseImagePresentation.d.ts +13 -0
  1780. package/packages/happy2-server/dist/modules/setup/impl/baseImagePresentation.d.ts.map +1 -0
  1781. package/packages/happy2-server/dist/modules/setup/impl/baseImagePresentation.js +20 -0
  1782. package/packages/happy2-server/dist/modules/setup/impl/baseImagePresentation.js.map +1 -0
  1783. package/packages/happy2-server/dist/modules/setup/impl/baseImageSelectedId.d.ts +2 -0
  1784. package/packages/happy2-server/dist/modules/setup/impl/baseImageSelectedId.d.ts.map +1 -0
  1785. package/packages/happy2-server/dist/modules/setup/impl/baseImageSelectedId.js +6 -0
  1786. package/packages/happy2-server/dist/modules/setup/impl/baseImageSelectedId.js.map +1 -0
  1787. package/packages/happy2-server/dist/modules/setup/impl/baseImageSyncHint.d.ts +3 -0
  1788. package/packages/happy2-server/dist/modules/setup/impl/baseImageSyncHint.d.ts.map +1 -0
  1789. package/packages/happy2-server/dist/modules/setup/impl/baseImageSyncHint.js +8 -0
  1790. package/packages/happy2-server/dist/modules/setup/impl/baseImageSyncHint.js.map +1 -0
  1791. package/packages/happy2-server/dist/modules/setup/impl/completeRegistrationPolicyDb.d.ts +4 -0
  1792. package/packages/happy2-server/dist/modules/setup/impl/completeRegistrationPolicyDb.d.ts.map +1 -0
  1793. package/packages/happy2-server/dist/modules/setup/impl/completeRegistrationPolicyDb.js +60 -0
  1794. package/packages/happy2-server/dist/modules/setup/impl/completeRegistrationPolicyDb.js.map +1 -0
  1795. package/packages/happy2-server/dist/modules/setup/impl/emptyUserSteps.d.ts +3 -0
  1796. package/packages/happy2-server/dist/modules/setup/impl/emptyUserSteps.d.ts.map +1 -0
  1797. package/packages/happy2-server/dist/modules/setup/impl/emptyUserSteps.js +15 -0
  1798. package/packages/happy2-server/dist/modules/setup/impl/emptyUserSteps.js.map +1 -0
  1799. package/packages/happy2-server/dist/modules/setup/impl/encodedMetadata.d.ts +3 -0
  1800. package/packages/happy2-server/dist/modules/setup/impl/encodedMetadata.d.ts.map +1 -0
  1801. package/packages/happy2-server/dist/modules/setup/impl/encodedMetadata.js +22 -0
  1802. package/packages/happy2-server/dist/modules/setup/impl/encodedMetadata.js.map +1 -0
  1803. package/packages/happy2-server/dist/modules/setup/impl/publicStatus.d.ts +9 -0
  1804. package/packages/happy2-server/dist/modules/setup/impl/publicStatus.d.ts.map +1 -0
  1805. package/packages/happy2-server/dist/modules/setup/impl/publicStatus.js +23 -0
  1806. package/packages/happy2-server/dist/modules/setup/impl/publicStatus.js.map +1 -0
  1807. package/packages/happy2-server/dist/modules/setup/impl/readServerSnapshot.d.ts +11 -0
  1808. package/packages/happy2-server/dist/modules/setup/impl/readServerSnapshot.d.ts.map +1 -0
  1809. package/packages/happy2-server/dist/modules/setup/impl/readServerSnapshot.js +39 -0
  1810. package/packages/happy2-server/dist/modules/setup/impl/readServerSnapshot.js.map +1 -0
  1811. package/packages/happy2-server/dist/modules/setup/impl/readUserSteps.d.ts +5 -0
  1812. package/packages/happy2-server/dist/modules/setup/impl/readUserSteps.d.ts.map +1 -0
  1813. package/packages/happy2-server/dist/modules/setup/impl/readUserSteps.js +23 -0
  1814. package/packages/happy2-server/dist/modules/setup/impl/readUserSteps.js.map +1 -0
  1815. package/packages/happy2-server/dist/modules/setup/impl/redactServerSteps.d.ts +3 -0
  1816. package/packages/happy2-server/dist/modules/setup/impl/redactServerSteps.d.ts.map +1 -0
  1817. package/packages/happy2-server/dist/modules/setup/impl/redactServerSteps.js +21 -0
  1818. package/packages/happy2-server/dist/modules/setup/impl/redactServerSteps.js.map +1 -0
  1819. package/packages/happy2-server/dist/modules/setup/impl/requireActiveAdministratorDb.d.ts +3 -0
  1820. package/packages/happy2-server/dist/modules/setup/impl/requireActiveAdministratorDb.d.ts.map +1 -0
  1821. package/packages/happy2-server/dist/modules/setup/impl/requireActiveAdministratorDb.js +16 -0
  1822. package/packages/happy2-server/dist/modules/setup/impl/requireActiveAdministratorDb.js.map +1 -0
  1823. package/packages/happy2-server/dist/modules/setup/impl/requirePrerequisitesDb.d.ts +4 -0
  1824. package/packages/happy2-server/dist/modules/setup/impl/requirePrerequisitesDb.d.ts.map +1 -0
  1825. package/packages/happy2-server/dist/modules/setup/impl/requirePrerequisitesDb.js +21 -0
  1826. package/packages/happy2-server/dist/modules/setup/impl/requirePrerequisitesDb.js.map +1 -0
  1827. package/packages/happy2-server/dist/modules/setup/impl/safeMetadata.d.ts +3 -0
  1828. package/packages/happy2-server/dist/modules/setup/impl/safeMetadata.d.ts.map +1 -0
  1829. package/packages/happy2-server/dist/modules/setup/impl/safeMetadata.js +25 -0
  1830. package/packages/happy2-server/dist/modules/setup/impl/safeMetadata.js.map +1 -0
  1831. package/packages/happy2-server/dist/modules/setup/impl/serverStepDb.d.ts +9 -0
  1832. package/packages/happy2-server/dist/modules/setup/impl/serverStepDb.d.ts.map +1 -0
  1833. package/packages/happy2-server/dist/modules/setup/impl/serverStepDb.js +24 -0
  1834. package/packages/happy2-server/dist/modules/setup/impl/serverStepDb.js.map +1 -0
  1835. package/packages/happy2-server/dist/modules/setup/impl/serverStepRecord.d.ts +3 -0
  1836. package/packages/happy2-server/dist/modules/setup/impl/serverStepRecord.d.ts.map +1 -0
  1837. package/packages/happy2-server/dist/modules/setup/impl/serverStepRecord.js +2 -0
  1838. package/packages/happy2-server/dist/modules/setup/impl/serverStepRecord.js.map +1 -0
  1839. package/packages/happy2-server/dist/modules/setup/impl/setupHint.d.ts +3 -0
  1840. package/packages/happy2-server/dist/modules/setup/impl/setupHint.d.ts.map +1 -0
  1841. package/packages/happy2-server/dist/modules/setup/impl/setupHint.js +9 -0
  1842. package/packages/happy2-server/dist/modules/setup/impl/setupHint.js.map +1 -0
  1843. package/packages/happy2-server/dist/modules/setup/impl/stepPrerequisites.d.ts +3 -0
  1844. package/packages/happy2-server/dist/modules/setup/impl/stepPrerequisites.d.ts.map +1 -0
  1845. package/packages/happy2-server/dist/modules/setup/impl/stepPrerequisites.js +13 -0
  1846. package/packages/happy2-server/dist/modules/setup/impl/stepPrerequisites.js.map +1 -0
  1847. package/packages/happy2-server/dist/modules/setup/impl/stepStatus.d.ts +10 -0
  1848. package/packages/happy2-server/dist/modules/setup/impl/stepStatus.d.ts.map +1 -0
  1849. package/packages/happy2-server/dist/modules/setup/impl/stepStatus.js +30 -0
  1850. package/packages/happy2-server/dist/modules/setup/impl/stepStatus.js.map +1 -0
  1851. package/packages/happy2-server/dist/modules/setup/impl/userStepRecord.d.ts +3 -0
  1852. package/packages/happy2-server/dist/modules/setup/impl/userStepRecord.d.ts.map +1 -0
  1853. package/packages/happy2-server/dist/modules/setup/impl/userStepRecord.js +2 -0
  1854. package/packages/happy2-server/dist/modules/setup/impl/userStepRecord.js.map +1 -0
  1855. package/packages/happy2-server/dist/modules/setup/impl/validatedLastError.d.ts +3 -0
  1856. package/packages/happy2-server/dist/modules/setup/impl/validatedLastError.d.ts.map +1 -0
  1857. package/packages/happy2-server/dist/modules/setup/impl/validatedLastError.js +12 -0
  1858. package/packages/happy2-server/dist/modules/setup/impl/validatedLastError.js.map +1 -0
  1859. package/packages/happy2-server/dist/modules/setup/index.d.ts +16 -0
  1860. package/packages/happy2-server/dist/modules/setup/index.d.ts.map +1 -0
  1861. package/packages/happy2-server/dist/modules/setup/index.js +16 -0
  1862. package/packages/happy2-server/dist/modules/setup/index.js.map +1 -0
  1863. package/packages/happy2-server/dist/modules/setup/setupBaseImageCompleteBuild.d.ts +12 -0
  1864. package/packages/happy2-server/dist/modules/setup/setupBaseImageCompleteBuild.d.ts.map +1 -0
  1865. package/packages/happy2-server/dist/modules/setup/setupBaseImageCompleteBuild.js +67 -0
  1866. package/packages/happy2-server/dist/modules/setup/setupBaseImageCompleteBuild.js.map +1 -0
  1867. package/packages/happy2-server/dist/modules/setup/setupBaseImageFailBuild.d.ts +12 -0
  1868. package/packages/happy2-server/dist/modules/setup/setupBaseImageFailBuild.d.ts.map +1 -0
  1869. package/packages/happy2-server/dist/modules/setup/setupBaseImageFailBuild.js +49 -0
  1870. package/packages/happy2-server/dist/modules/setup/setupBaseImageFailBuild.js.map +1 -0
  1871. package/packages/happy2-server/dist/modules/setup/setupBaseImageGetStatus.d.ts +13 -0
  1872. package/packages/happy2-server/dist/modules/setup/setupBaseImageGetStatus.d.ts.map +1 -0
  1873. package/packages/happy2-server/dist/modules/setup/setupBaseImageGetStatus.js +31 -0
  1874. package/packages/happy2-server/dist/modules/setup/setupBaseImageGetStatus.js.map +1 -0
  1875. package/packages/happy2-server/dist/modules/setup/setupBaseImageRetryBuild.d.ts +11 -0
  1876. package/packages/happy2-server/dist/modules/setup/setupBaseImageRetryBuild.d.ts.map +1 -0
  1877. package/packages/happy2-server/dist/modules/setup/setupBaseImageRetryBuild.js +60 -0
  1878. package/packages/happy2-server/dist/modules/setup/setupBaseImageRetryBuild.js.map +1 -0
  1879. package/packages/happy2-server/dist/modules/setup/setupBaseImageSelect.d.ts +22 -0
  1880. package/packages/happy2-server/dist/modules/setup/setupBaseImageSelect.d.ts.map +1 -0
  1881. package/packages/happy2-server/dist/modules/setup/setupBaseImageSelect.js +144 -0
  1882. package/packages/happy2-server/dist/modules/setup/setupBaseImageSelect.js.map +1 -0
  1883. package/packages/happy2-server/dist/modules/setup/setupChooseRegistrationPolicy.d.ts +8 -0
  1884. package/packages/happy2-server/dist/modules/setup/setupChooseRegistrationPolicy.d.ts.map +1 -0
  1885. package/packages/happy2-server/dist/modules/setup/setupChooseRegistrationPolicy.js +38 -0
  1886. package/packages/happy2-server/dist/modules/setup/setupChooseRegistrationPolicy.js.map +1 -0
  1887. package/packages/happy2-server/dist/modules/setup/setupCreateDefaultAgent.d.ts +20 -0
  1888. package/packages/happy2-server/dist/modules/setup/setupCreateDefaultAgent.d.ts.map +1 -0
  1889. package/packages/happy2-server/dist/modules/setup/setupCreateDefaultAgent.js +97 -0
  1890. package/packages/happy2-server/dist/modules/setup/setupCreateDefaultAgent.js.map +1 -0
  1891. package/packages/happy2-server/dist/modules/setup/setupGetCombinedStatus.d.ts +8 -0
  1892. package/packages/happy2-server/dist/modules/setup/setupGetCombinedStatus.d.ts.map +1 -0
  1893. package/packages/happy2-server/dist/modules/setup/setupGetCombinedStatus.js +73 -0
  1894. package/packages/happy2-server/dist/modules/setup/setupGetCombinedStatus.js.map +1 -0
  1895. package/packages/happy2-server/dist/modules/setup/setupGetCurrentSyncHint.d.ts +11 -0
  1896. package/packages/happy2-server/dist/modules/setup/setupGetCurrentSyncHint.d.ts.map +1 -0
  1897. package/packages/happy2-server/dist/modules/setup/setupGetCurrentSyncHint.js +23 -0
  1898. package/packages/happy2-server/dist/modules/setup/setupGetCurrentSyncHint.js.map +1 -0
  1899. package/packages/happy2-server/dist/modules/setup/setupGetPublicStatus.d.ts +8 -0
  1900. package/packages/happy2-server/dist/modules/setup/setupGetPublicStatus.d.ts.map +1 -0
  1901. package/packages/happy2-server/dist/modules/setup/setupGetPublicStatus.js +13 -0
  1902. package/packages/happy2-server/dist/modules/setup/setupGetPublicStatus.js.map +1 -0
  1903. package/packages/happy2-server/dist/modules/setup/setupGetRegistrationAvailability.d.ts +8 -0
  1904. package/packages/happy2-server/dist/modules/setup/setupGetRegistrationAvailability.d.ts.map +1 -0
  1905. package/packages/happy2-server/dist/modules/setup/setupGetRegistrationAvailability.js +11 -0
  1906. package/packages/happy2-server/dist/modules/setup/setupGetRegistrationAvailability.js.map +1 -0
  1907. package/packages/happy2-server/dist/modules/setup/setupRecordOperationalStep.d.ts +14 -0
  1908. package/packages/happy2-server/dist/modules/setup/setupRecordOperationalStep.d.ts.map +1 -0
  1909. package/packages/happy2-server/dist/modules/setup/setupRecordOperationalStep.js +55 -0
  1910. package/packages/happy2-server/dist/modules/setup/setupRecordOperationalStep.js.map +1 -0
  1911. package/packages/happy2-server/dist/modules/setup/setupSandboxProviderGetSelected.d.ts +10 -0
  1912. package/packages/happy2-server/dist/modules/setup/setupSandboxProviderGetSelected.d.ts.map +1 -0
  1913. package/packages/happy2-server/dist/modules/setup/setupSandboxProviderGetSelected.js +35 -0
  1914. package/packages/happy2-server/dist/modules/setup/setupSandboxProviderGetSelected.js.map +1 -0
  1915. package/packages/happy2-server/dist/modules/setup/setupSandboxProviderSelect.d.ts +11 -0
  1916. package/packages/happy2-server/dist/modules/setup/setupSandboxProviderSelect.d.ts.map +1 -0
  1917. package/packages/happy2-server/dist/modules/setup/setupSandboxProviderSelect.js +72 -0
  1918. package/packages/happy2-server/dist/modules/setup/setupSandboxProviderSelect.js.map +1 -0
  1919. package/packages/happy2-server/dist/modules/setup/types.d.ts +70 -0
  1920. package/packages/happy2-server/dist/modules/setup/types.d.ts.map +1 -0
  1921. package/packages/happy2-server/dist/modules/setup/types.js +29 -0
  1922. package/packages/happy2-server/dist/modules/setup/types.js.map +1 -0
  1923. package/packages/happy2-server/dist/modules/sync/chatSyncGetDifference.d.ts +33 -0
  1924. package/packages/happy2-server/dist/modules/sync/chatSyncGetDifference.d.ts.map +1 -0
  1925. package/packages/happy2-server/dist/modules/sync/chatSyncGetDifference.js +103 -0
  1926. package/packages/happy2-server/dist/modules/sync/chatSyncGetDifference.js.map +1 -0
  1927. package/packages/happy2-server/dist/modules/sync/impl/stateAt.d.ts +3 -0
  1928. package/packages/happy2-server/dist/modules/sync/impl/stateAt.d.ts.map +1 -0
  1929. package/packages/happy2-server/dist/modules/sync/impl/stateAt.js +9 -0
  1930. package/packages/happy2-server/dist/modules/sync/impl/stateAt.js.map +1 -0
  1931. package/packages/happy2-server/dist/modules/sync/impl/syncState.d.ts +3 -0
  1932. package/packages/happy2-server/dist/modules/sync/impl/syncState.d.ts.map +1 -0
  1933. package/packages/happy2-server/dist/modules/sync/impl/syncState.js +8 -0
  1934. package/packages/happy2-server/dist/modules/sync/impl/syncState.js.map +1 -0
  1935. package/packages/happy2-server/dist/modules/sync/syncCompact.d.ts +12 -0
  1936. package/packages/happy2-server/dist/modules/sync/syncCompact.d.ts.map +1 -0
  1937. package/packages/happy2-server/dist/modules/sync/syncCompact.js +141 -0
  1938. package/packages/happy2-server/dist/modules/sync/syncCompact.js.map +1 -0
  1939. package/packages/happy2-server/dist/modules/sync/syncConsumerAcknowledge.d.ts +12 -0
  1940. package/packages/happy2-server/dist/modules/sync/syncConsumerAcknowledge.d.ts.map +1 -0
  1941. package/packages/happy2-server/dist/modules/sync/syncConsumerAcknowledge.js +49 -0
  1942. package/packages/happy2-server/dist/modules/sync/syncConsumerAcknowledge.js.map +1 -0
  1943. package/packages/happy2-server/dist/modules/sync/syncEventInsert.d.ts +15 -0
  1944. package/packages/happy2-server/dist/modules/sync/syncEventInsert.d.ts.map +1 -0
  1945. package/packages/happy2-server/dist/modules/sync/syncEventInsert.js +18 -0
  1946. package/packages/happy2-server/dist/modules/sync/syncEventInsert.js.map +1 -0
  1947. package/packages/happy2-server/dist/modules/sync/syncGetDifference.d.ts +21 -0
  1948. package/packages/happy2-server/dist/modules/sync/syncGetDifference.d.ts.map +1 -0
  1949. package/packages/happy2-server/dist/modules/sync/syncGetDifference.js +175 -0
  1950. package/packages/happy2-server/dist/modules/sync/syncGetDifference.js.map +1 -0
  1951. package/packages/happy2-server/dist/modules/sync/syncGetState.d.ts +8 -0
  1952. package/packages/happy2-server/dist/modules/sync/syncGetState.d.ts.map +1 -0
  1953. package/packages/happy2-server/dist/modules/sync/syncGetState.js +22 -0
  1954. package/packages/happy2-server/dist/modules/sync/syncGetState.js.map +1 -0
  1955. package/packages/happy2-server/dist/modules/sync/syncInitialize.d.ts +7 -0
  1956. package/packages/happy2-server/dist/modules/sync/syncInitialize.d.ts.map +1 -0
  1957. package/packages/happy2-server/dist/modules/sync/syncInitialize.js +24 -0
  1958. package/packages/happy2-server/dist/modules/sync/syncInitialize.js.map +1 -0
  1959. package/packages/happy2-server/dist/modules/sync/syncSequenceNext.d.ts +7 -0
  1960. package/packages/happy2-server/dist/modules/sync/syncSequenceNext.d.ts.map +1 -0
  1961. package/packages/happy2-server/dist/modules/sync/syncSequenceNext.js +22 -0
  1962. package/packages/happy2-server/dist/modules/sync/syncSequenceNext.js.map +1 -0
  1963. package/packages/happy2-server/dist/modules/sync/syncSequenceNextWithTimestamp.d.ts +7 -0
  1964. package/packages/happy2-server/dist/modules/sync/syncSequenceNextWithTimestamp.d.ts.map +1 -0
  1965. package/packages/happy2-server/dist/modules/sync/syncSequenceNextWithTimestamp.js +23 -0
  1966. package/packages/happy2-server/dist/modules/sync/syncSequenceNextWithTimestamp.js.map +1 -0
  1967. package/packages/happy2-server/dist/modules/thread/threadCreate.d.ts +15 -0
  1968. package/packages/happy2-server/dist/modules/thread/threadCreate.d.ts.map +1 -0
  1969. package/packages/happy2-server/dist/modules/thread/threadCreate.js +143 -0
  1970. package/packages/happy2-server/dist/modules/thread/threadCreate.js.map +1 -0
  1971. package/packages/happy2-server/dist/modules/thread/threadFollowSet.d.ts +14 -0
  1972. package/packages/happy2-server/dist/modules/thread/threadFollowSet.d.ts.map +1 -0
  1973. package/packages/happy2-server/dist/modules/thread/threadFollowSet.js +46 -0
  1974. package/packages/happy2-server/dist/modules/thread/threadFollowSet.js.map +1 -0
  1975. package/packages/happy2-server/dist/modules/thread/threadGet.d.ts +8 -0
  1976. package/packages/happy2-server/dist/modules/thread/threadGet.d.ts.map +1 -0
  1977. package/packages/happy2-server/dist/modules/thread/threadGet.js +20 -0
  1978. package/packages/happy2-server/dist/modules/thread/threadGet.js.map +1 -0
  1979. package/packages/happy2-server/dist/modules/thread/threadListMine.d.ts +16 -0
  1980. package/packages/happy2-server/dist/modules/thread/threadListMine.d.ts.map +1 -0
  1981. package/packages/happy2-server/dist/modules/thread/threadListMine.js +49 -0
  1982. package/packages/happy2-server/dist/modules/thread/threadListMine.js.map +1 -0
  1983. package/packages/happy2-server/dist/modules/user/contactList.d.ts +8 -0
  1984. package/packages/happy2-server/dist/modules/user/contactList.d.ts.map +1 -0
  1985. package/packages/happy2-server/dist/modules/user/contactList.js +23 -0
  1986. package/packages/happy2-server/dist/modules/user/contactList.js.map +1 -0
  1987. package/packages/happy2-server/dist/modules/user/impl/asAccess.d.ts +3 -0
  1988. package/packages/happy2-server/dist/modules/user/impl/asAccess.d.ts.map +1 -0
  1989. package/packages/happy2-server/dist/modules/user/impl/asAccess.js +23 -0
  1990. package/packages/happy2-server/dist/modules/user/impl/asAccess.js.map +1 -0
  1991. package/packages/happy2-server/dist/modules/user/impl/asUser.d.ts +4 -0
  1992. package/packages/happy2-server/dist/modules/user/impl/asUser.d.ts.map +1 -0
  1993. package/packages/happy2-server/dist/modules/user/impl/asUser.js +21 -0
  1994. package/packages/happy2-server/dist/modules/user/impl/asUser.js.map +1 -0
  1995. package/packages/happy2-server/dist/modules/user/impl/userHint.d.ts +3 -0
  1996. package/packages/happy2-server/dist/modules/user/impl/userHint.d.ts.map +1 -0
  1997. package/packages/happy2-server/dist/modules/user/impl/userHint.js +9 -0
  1998. package/packages/happy2-server/dist/modules/user/impl/userHint.js.map +1 -0
  1999. package/packages/happy2-server/dist/modules/user/impl/userRow.d.ts +3 -0
  2000. package/packages/happy2-server/dist/modules/user/impl/userRow.d.ts.map +1 -0
  2001. package/packages/happy2-server/dist/modules/user/impl/userRow.js +2 -0
  2002. package/packages/happy2-server/dist/modules/user/impl/userRow.js.map +1 -0
  2003. package/packages/happy2-server/dist/modules/user/types.d.ts +24 -0
  2004. package/packages/happy2-server/dist/modules/user/types.d.ts.map +1 -0
  2005. package/packages/happy2-server/dist/modules/user/types.js +2 -0
  2006. package/packages/happy2-server/dist/modules/user/types.js.map +1 -0
  2007. package/packages/happy2-server/dist/modules/user/userAccessList.d.ts +12 -0
  2008. package/packages/happy2-server/dist/modules/user/userAccessList.d.ts.map +1 -0
  2009. package/packages/happy2-server/dist/modules/user/userAccessList.js +56 -0
  2010. package/packages/happy2-server/dist/modules/user/userAccessList.js.map +1 -0
  2011. package/packages/happy2-server/dist/modules/user/userAdministrationList.d.ts +13 -0
  2012. package/packages/happy2-server/dist/modules/user/userAdministrationList.d.ts.map +1 -0
  2013. package/packages/happy2-server/dist/modules/user/userAdministrationList.js +39 -0
  2014. package/packages/happy2-server/dist/modules/user/userAdministrationList.js.map +1 -0
  2015. package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.d.ts +16 -0
  2016. package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.d.ts.map +1 -0
  2017. package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.js +65 -0
  2018. package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.js.map +1 -0
  2019. package/packages/happy2-server/dist/modules/user/userAnnounceJoinedServer.d.ts +10 -0
  2020. package/packages/happy2-server/dist/modules/user/userAnnounceJoinedServer.d.ts.map +1 -0
  2021. package/packages/happy2-server/dist/modules/user/userAnnounceJoinedServer.js +46 -0
  2022. package/packages/happy2-server/dist/modules/user/userAnnounceJoinedServer.js.map +1 -0
  2023. package/packages/happy2-server/dist/modules/user/userCreateProfile.d.ts +10 -0
  2024. package/packages/happy2-server/dist/modules/user/userCreateProfile.d.ts.map +1 -0
  2025. package/packages/happy2-server/dist/modules/user/userCreateProfile.js +195 -0
  2026. package/packages/happy2-server/dist/modules/user/userCreateProfile.js.map +1 -0
  2027. package/packages/happy2-server/dist/modules/user/userDelete.d.ts +13 -0
  2028. package/packages/happy2-server/dist/modules/user/userDelete.d.ts.map +1 -0
  2029. package/packages/happy2-server/dist/modules/user/userDelete.js +159 -0
  2030. package/packages/happy2-server/dist/modules/user/userDelete.js.map +1 -0
  2031. package/packages/happy2-server/dist/modules/user/userFindActive.d.ts +8 -0
  2032. package/packages/happy2-server/dist/modules/user/userFindActive.d.ts.map +1 -0
  2033. package/packages/happy2-server/dist/modules/user/userFindActive.js +20 -0
  2034. package/packages/happy2-server/dist/modules/user/userFindActive.js.map +1 -0
  2035. package/packages/happy2-server/dist/modules/user/userFindActiveByAccount.d.ts +8 -0
  2036. package/packages/happy2-server/dist/modules/user/userFindActiveByAccount.d.ts.map +1 -0
  2037. package/packages/happy2-server/dist/modules/user/userFindActiveByAccount.js +20 -0
  2038. package/packages/happy2-server/dist/modules/user/userFindActiveByAccount.js.map +1 -0
  2039. package/packages/happy2-server/dist/modules/user/userJoinAutoChannels.d.ts +10 -0
  2040. package/packages/happy2-server/dist/modules/user/userJoinAutoChannels.d.ts.map +1 -0
  2041. package/packages/happy2-server/dist/modules/user/userJoinAutoChannels.js +90 -0
  2042. package/packages/happy2-server/dist/modules/user/userJoinAutoChannels.js.map +1 -0
  2043. package/packages/happy2-server/dist/modules/user/userLastSeenFinalize.d.ts +9 -0
  2044. package/packages/happy2-server/dist/modules/user/userLastSeenFinalize.d.ts.map +1 -0
  2045. package/packages/happy2-server/dist/modules/user/userLastSeenFinalize.js +34 -0
  2046. package/packages/happy2-server/dist/modules/user/userLastSeenFinalize.js.map +1 -0
  2047. package/packages/happy2-server/dist/modules/user/userLastSeenTouch.d.ts +8 -0
  2048. package/packages/happy2-server/dist/modules/user/userLastSeenTouch.d.ts.map +1 -0
  2049. package/packages/happy2-server/dist/modules/user/userLastSeenTouch.js +28 -0
  2050. package/packages/happy2-server/dist/modules/user/userLastSeenTouch.js.map +1 -0
  2051. package/packages/happy2-server/dist/modules/user/userOnboardingUpdateStep.d.ts +12 -0
  2052. package/packages/happy2-server/dist/modules/user/userOnboardingUpdateStep.d.ts.map +1 -0
  2053. package/packages/happy2-server/dist/modules/user/userOnboardingUpdateStep.js +68 -0
  2054. package/packages/happy2-server/dist/modules/user/userOnboardingUpdateStep.js.map +1 -0
  2055. package/packages/happy2-server/dist/modules/user/userSetBanned.d.ts +14 -0
  2056. package/packages/happy2-server/dist/modules/user/userSetBanned.d.ts.map +1 -0
  2057. package/packages/happy2-server/dist/modules/user/userSetBanned.js +98 -0
  2058. package/packages/happy2-server/dist/modules/user/userSetBanned.js.map +1 -0
  2059. package/packages/happy2-server/dist/modules/user/userSetPhoto.d.ts +7 -0
  2060. package/packages/happy2-server/dist/modules/user/userSetPhoto.d.ts.map +1 -0
  2061. package/packages/happy2-server/dist/modules/user/userSetPhoto.js +43 -0
  2062. package/packages/happy2-server/dist/modules/user/userSetPhoto.js.map +1 -0
  2063. package/packages/happy2-server/dist/modules/user/userTouchAccess.d.ts +7 -0
  2064. package/packages/happy2-server/dist/modules/user/userTouchAccess.d.ts.map +1 -0
  2065. package/packages/happy2-server/dist/modules/user/userTouchAccess.js +41 -0
  2066. package/packages/happy2-server/dist/modules/user/userTouchAccess.js.map +1 -0
  2067. package/packages/happy2-server/dist/modules/user/userUpdateProfile.d.ts +8 -0
  2068. package/packages/happy2-server/dist/modules/user/userUpdateProfile.d.ts.map +1 -0
  2069. package/packages/happy2-server/dist/modules/user/userUpdateProfile.js +46 -0
  2070. package/packages/happy2-server/dist/modules/user/userUpdateProfile.js.map +1 -0
  2071. package/packages/happy2-server/dist/modules/webhook/impl/asClaimedDelivery.d.ts +3 -0
  2072. package/packages/happy2-server/dist/modules/webhook/impl/asClaimedDelivery.d.ts.map +1 -0
  2073. package/packages/happy2-server/dist/modules/webhook/impl/asClaimedDelivery.js +12 -0
  2074. package/packages/happy2-server/dist/modules/webhook/impl/asClaimedDelivery.js.map +1 -0
  2075. package/packages/happy2-server/dist/modules/webhook/impl/asSubscription.d.ts +3 -0
  2076. package/packages/happy2-server/dist/modules/webhook/impl/asSubscription.d.ts.map +1 -0
  2077. package/packages/happy2-server/dist/modules/webhook/impl/asSubscription.js +19 -0
  2078. package/packages/happy2-server/dist/modules/webhook/impl/asSubscription.js.map +1 -0
  2079. package/packages/happy2-server/dist/modules/webhook/impl/boundedIdentifier.d.ts +2 -0
  2080. package/packages/happy2-server/dist/modules/webhook/impl/boundedIdentifier.d.ts.map +1 -0
  2081. package/packages/happy2-server/dist/modules/webhook/impl/boundedIdentifier.js +6 -0
  2082. package/packages/happy2-server/dist/modules/webhook/impl/boundedIdentifier.js.map +1 -0
  2083. package/packages/happy2-server/dist/modules/webhook/impl/claimDueDeliveries.d.ts +8 -0
  2084. package/packages/happy2-server/dist/modules/webhook/impl/claimDueDeliveries.d.ts.map +1 -0
  2085. package/packages/happy2-server/dist/modules/webhook/impl/claimDueDeliveries.js +70 -0
  2086. package/packages/happy2-server/dist/modules/webhook/impl/claimDueDeliveries.js.map +1 -0
  2087. package/packages/happy2-server/dist/modules/webhook/impl/completeDelivery.d.ts +8 -0
  2088. package/packages/happy2-server/dist/modules/webhook/impl/completeDelivery.d.ts.map +1 -0
  2089. package/packages/happy2-server/dist/modules/webhook/impl/completeDelivery.js +23 -0
  2090. package/packages/happy2-server/dist/modules/webhook/impl/completeDelivery.js.map +1 -0
  2091. package/packages/happy2-server/dist/modules/webhook/impl/deliveryHttpError.d.ts +6 -0
  2092. package/packages/happy2-server/dist/modules/webhook/impl/deliveryHttpError.d.ts.map +1 -0
  2093. package/packages/happy2-server/dist/modules/webhook/impl/deliveryHttpError.js +10 -0
  2094. package/packages/happy2-server/dist/modules/webhook/impl/deliveryHttpError.js.map +1 -0
  2095. package/packages/happy2-server/dist/modules/webhook/impl/errorMessage.d.ts +2 -0
  2096. package/packages/happy2-server/dist/modules/webhook/impl/errorMessage.d.ts.map +1 -0
  2097. package/packages/happy2-server/dist/modules/webhook/impl/errorMessage.js +4 -0
  2098. package/packages/happy2-server/dist/modules/webhook/impl/errorMessage.js.map +1 -0
  2099. package/packages/happy2-server/dist/modules/webhook/impl/failDelivery.d.ts +8 -0
  2100. package/packages/happy2-server/dist/modules/webhook/impl/failDelivery.d.ts.map +1 -0
  2101. package/packages/happy2-server/dist/modules/webhook/impl/failDelivery.js +31 -0
  2102. package/packages/happy2-server/dist/modules/webhook/impl/failDelivery.js.map +1 -0
  2103. package/packages/happy2-server/dist/modules/webhook/impl/getSubscriptionDb.d.ts +8 -0
  2104. package/packages/happy2-server/dist/modules/webhook/impl/getSubscriptionDb.d.ts.map +1 -0
  2105. package/packages/happy2-server/dist/modules/webhook/impl/getSubscriptionDb.js +20 -0
  2106. package/packages/happy2-server/dist/modules/webhook/impl/getSubscriptionDb.js.map +1 -0
  2107. package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryAttempts.d.ts +2 -0
  2108. package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryAttempts.d.ts.map +1 -0
  2109. package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryAttempts.js +2 -0
  2110. package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryAttempts.js.map +1 -0
  2111. package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryResponse.d.ts +2 -0
  2112. package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryResponse.d.ts.map +1 -0
  2113. package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryResponse.js +2 -0
  2114. package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryResponse.js.map +1 -0
  2115. package/packages/happy2-server/dist/modules/webhook/impl/normalizeEventTypes.d.ts +2 -0
  2116. package/packages/happy2-server/dist/modules/webhook/impl/normalizeEventTypes.d.ts.map +1 -0
  2117. package/packages/happy2-server/dist/modules/webhook/impl/normalizeEventTypes.js +8 -0
  2118. package/packages/happy2-server/dist/modules/webhook/impl/normalizeEventTypes.js.map +1 -0
  2119. package/packages/happy2-server/dist/modules/webhook/impl/normalizedEventType.d.ts +2 -0
  2120. package/packages/happy2-server/dist/modules/webhook/impl/normalizedEventType.d.ts.map +1 -0
  2121. package/packages/happy2-server/dist/modules/webhook/impl/normalizedEventType.js +8 -0
  2122. package/packages/happy2-server/dist/modules/webhook/impl/normalizedEventType.js.map +1 -0
  2123. package/packages/happy2-server/dist/modules/webhook/impl/outgoingSubscriptionIds.d.ts +47 -0
  2124. package/packages/happy2-server/dist/modules/webhook/impl/outgoingSubscriptionIds.d.ts.map +1 -0
  2125. package/packages/happy2-server/dist/modules/webhook/impl/outgoingSubscriptionIds.js +14 -0
  2126. package/packages/happy2-server/dist/modules/webhook/impl/outgoingSubscriptionIds.js.map +1 -0
  2127. package/packages/happy2-server/dist/modules/webhook/impl/positiveLimit.d.ts +2 -0
  2128. package/packages/happy2-server/dist/modules/webhook/impl/positiveLimit.d.ts.map +1 -0
  2129. package/packages/happy2-server/dist/modules/webhook/impl/positiveLimit.js +7 -0
  2130. package/packages/happy2-server/dist/modules/webhook/impl/positiveLimit.js.map +1 -0
  2131. package/packages/happy2-server/dist/modules/webhook/impl/requireChatDb.d.ts +7 -0
  2132. package/packages/happy2-server/dist/modules/webhook/impl/requireChatDb.d.ts.map +1 -0
  2133. package/packages/happy2-server/dist/modules/webhook/impl/requireChatDb.js +19 -0
  2134. package/packages/happy2-server/dist/modules/webhook/impl/requireChatDb.js.map +1 -0
  2135. package/packages/happy2-server/dist/modules/webhook/impl/requiredText.d.ts +2 -0
  2136. package/packages/happy2-server/dist/modules/webhook/impl/requiredText.d.ts.map +1 -0
  2137. package/packages/happy2-server/dist/modules/webhook/impl/requiredText.js +7 -0
  2138. package/packages/happy2-server/dist/modules/webhook/impl/requiredText.js.map +1 -0
  2139. package/packages/happy2-server/dist/modules/webhook/impl/retryDelay.d.ts +2 -0
  2140. package/packages/happy2-server/dist/modules/webhook/impl/retryDelay.d.ts.map +1 -0
  2141. package/packages/happy2-server/dist/modules/webhook/impl/retryDelay.js +8 -0
  2142. package/packages/happy2-server/dist/modules/webhook/impl/retryDelay.js.map +1 -0
  2143. package/packages/happy2-server/dist/modules/webhook/impl/subscriptionSelection.d.ts +172 -0
  2144. package/packages/happy2-server/dist/modules/webhook/impl/subscriptionSelection.d.ts.map +1 -0
  2145. package/packages/happy2-server/dist/modules/webhook/impl/subscriptionSelection.js +13 -0
  2146. package/packages/happy2-server/dist/modules/webhook/impl/subscriptionSelection.js.map +1 -0
  2147. package/packages/happy2-server/dist/modules/webhook/impl/truncate.d.ts +2 -0
  2148. package/packages/happy2-server/dist/modules/webhook/impl/truncate.d.ts.map +1 -0
  2149. package/packages/happy2-server/dist/modules/webhook/impl/truncate.js +4 -0
  2150. package/packages/happy2-server/dist/modules/webhook/impl/truncate.js.map +1 -0
  2151. package/packages/happy2-server/dist/modules/webhook/incomingWebhookCreate.d.ts +14 -0
  2152. package/packages/happy2-server/dist/modules/webhook/incomingWebhookCreate.d.ts.map +1 -0
  2153. package/packages/happy2-server/dist/modules/webhook/incomingWebhookCreate.js +51 -0
  2154. package/packages/happy2-server/dist/modules/webhook/incomingWebhookCreate.js.map +1 -0
  2155. package/packages/happy2-server/dist/modules/webhook/incomingWebhookInvoke.d.ts +8 -0
  2156. package/packages/happy2-server/dist/modules/webhook/incomingWebhookInvoke.d.ts.map +1 -0
  2157. package/packages/happy2-server/dist/modules/webhook/incomingWebhookInvoke.js +56 -0
  2158. package/packages/happy2-server/dist/modules/webhook/incomingWebhookInvoke.js.map +1 -0
  2159. package/packages/happy2-server/dist/modules/webhook/outgoingWebhookCreate.d.ts +17 -0
  2160. package/packages/happy2-server/dist/modules/webhook/outgoingWebhookCreate.d.ts.map +1 -0
  2161. package/packages/happy2-server/dist/modules/webhook/outgoingWebhookCreate.js +55 -0
  2162. package/packages/happy2-server/dist/modules/webhook/outgoingWebhookCreate.js.map +1 -0
  2163. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryDispatchDue.d.ts +17 -0
  2164. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryDispatchDue.d.ts.map +1 -0
  2165. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryDispatchDue.js +58 -0
  2166. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryDispatchDue.js.map +1 -0
  2167. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueOutgoingEvent.d.ts +13 -0
  2168. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueOutgoingEvent.d.ts.map +1 -0
  2169. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueOutgoingEvent.js +54 -0
  2170. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueOutgoingEvent.js.map +1 -0
  2171. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueuePendingSyncEvents.d.ts +8 -0
  2172. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueuePendingSyncEvents.d.ts.map +1 -0
  2173. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueuePendingSyncEvents.js +42 -0
  2174. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueuePendingSyncEvents.js.map +1 -0
  2175. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueSyncSequence.d.ts +8 -0
  2176. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueSyncSequence.d.ts.map +1 -0
  2177. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueSyncSequence.js +38 -0
  2178. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueSyncSequence.js.map +1 -0
  2179. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryList.d.ts +8 -0
  2180. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryList.d.ts.map +1 -0
  2181. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryList.js +27 -0
  2182. package/packages/happy2-server/dist/modules/webhook/webhookDeliveryList.js.map +1 -0
  2183. package/packages/happy2-server/dist/modules/webhook/webhookSubscriptionList.d.ts +8 -0
  2184. package/packages/happy2-server/dist/modules/webhook/webhookSubscriptionList.d.ts.map +1 -0
  2185. package/packages/happy2-server/dist/modules/webhook/webhookSubscriptionList.js +23 -0
  2186. package/packages/happy2-server/dist/modules/webhook/webhookSubscriptionList.js.map +1 -0
  2187. package/packages/happy2-server/dist/modules/workspace/service.d.ts +4 -3
  2188. package/packages/happy2-server/dist/modules/workspace/service.d.ts.map +1 -1
  2189. package/packages/happy2-server/dist/modules/workspace/service.js +72 -24
  2190. package/packages/happy2-server/dist/modules/workspace/service.js.map +1 -1
  2191. package/packages/happy2-server/dist/modules/workspace/types.d.ts +8 -0
  2192. package/packages/happy2-server/dist/modules/workspace/types.d.ts.map +1 -1
  2193. package/packages/happy2-server/dist/modules/workspace/types.js.map +1 -1
  2194. package/packages/happy2-server/dist/routes/agents.d.ts.map +1 -1
  2195. package/packages/happy2-server/dist/routes/agents.js +25 -1
  2196. package/packages/happy2-server/dist/routes/agents.js.map +1 -1
  2197. package/packages/happy2-server/dist/routes/auth.d.ts +4 -2
  2198. package/packages/happy2-server/dist/routes/auth.d.ts.map +1 -1
  2199. package/packages/happy2-server/dist/routes/auth.js +23 -7
  2200. package/packages/happy2-server/dist/routes/auth.js.map +1 -1
  2201. package/packages/happy2-server/dist/routes/automation.d.ts +3 -2
  2202. package/packages/happy2-server/dist/routes/automation.d.ts.map +1 -1
  2203. package/packages/happy2-server/dist/routes/automation.js +20 -13
  2204. package/packages/happy2-server/dist/routes/automation.js.map +1 -1
  2205. package/packages/happy2-server/dist/routes/collaboration.d.ts +2 -2
  2206. package/packages/happy2-server/dist/routes/collaboration.d.ts.map +1 -1
  2207. package/packages/happy2-server/dist/routes/collaboration.js +453 -222
  2208. package/packages/happy2-server/dist/routes/collaboration.js.map +1 -1
  2209. package/packages/happy2-server/dist/routes/files.d.ts +2 -3
  2210. package/packages/happy2-server/dist/routes/files.d.ts.map +1 -1
  2211. package/packages/happy2-server/dist/routes/files.js +283 -96
  2212. package/packages/happy2-server/dist/routes/files.js.map +1 -1
  2213. package/packages/happy2-server/dist/routes/integrations.d.ts +4 -2
  2214. package/packages/happy2-server/dist/routes/integrations.d.ts.map +1 -1
  2215. package/packages/happy2-server/dist/routes/integrations.js +39 -20
  2216. package/packages/happy2-server/dist/routes/integrations.js.map +1 -1
  2217. package/packages/happy2-server/dist/routes/operations.d.ts +2 -2
  2218. package/packages/happy2-server/dist/routes/operations.d.ts.map +1 -1
  2219. package/packages/happy2-server/dist/routes/operations.js +112 -44
  2220. package/packages/happy2-server/dist/routes/operations.js.map +1 -1
  2221. package/packages/happy2-server/dist/routes/operations.test.js +58 -24
  2222. package/packages/happy2-server/dist/routes/operations.test.js.map +1 -1
  2223. package/packages/happy2-server/dist/routes/setup.d.ts +8 -0
  2224. package/packages/happy2-server/dist/routes/setup.d.ts.map +1 -0
  2225. package/packages/happy2-server/dist/routes/setup.js +283 -0
  2226. package/packages/happy2-server/dist/routes/setup.js.map +1 -0
  2227. package/packages/happy2-server/dist/routes/sync.d.ts +2 -2
  2228. package/packages/happy2-server/dist/routes/sync.d.ts.map +1 -1
  2229. package/packages/happy2-server/dist/routes/sync.js +102 -41
  2230. package/packages/happy2-server/dist/routes/sync.js.map +1 -1
  2231. package/packages/happy2-server/dist/routes/workspace.js +1 -1
  2232. package/packages/happy2-server/dist/routes/workspace.js.map +1 -1
  2233. package/packages/happy2-server/dist/server.d.ts +11 -12
  2234. package/packages/happy2-server/dist/server.d.ts.map +1 -1
  2235. package/packages/happy2-server/dist/server.js +137 -89
  2236. package/packages/happy2-server/dist/server.js.map +1 -1
  2237. package/packages/happy2-server/dist/standalone.d.ts.map +1 -1
  2238. package/packages/happy2-server/dist/standalone.js +12 -6
  2239. package/packages/happy2-server/dist/standalone.js.map +1 -1
  2240. package/packages/happy2-server/dist/web/assets/index-DH1SOwNV.js +46 -0
  2241. package/packages/happy2-server/dist/web/assets/index-DZ1uRLgV.css +2 -0
  2242. package/packages/happy2-server/dist/web/index.html +11 -2
  2243. package/packages/happy2-server/drizzle/0011_agent_image_changes.sql +51 -0
  2244. package/packages/happy2-server/drizzle/0012_agent_effort.sql +1 -0
  2245. package/packages/happy2-server/drizzle/0013_agent_turn_started_at.sql +1 -0
  2246. package/packages/happy2-server/drizzle/0014_main_channels.sql +14 -0
  2247. package/packages/happy2-server/drizzle/0015_durable_server_and_user_onboarding.sql +70 -0
  2248. package/packages/happy2-server/drizzle/0016_default_agent.sql +27 -0
  2249. package/packages/happy2-server/drizzle/0017_user_product_last_seen.sql +1 -0
  2250. package/packages/happy2-server/drizzle/0018_threads_are_chats.sql +23 -0
  2251. package/packages/happy2-server/drizzle/0019_channel_agent_audiences.sql +16 -0
  2252. package/packages/happy2-server/drizzle/meta/_journal.json +63 -0
  2253. package/packages/happy2-server/happy2.example.toml +0 -2
  2254. package/packages/happy2-server/dist/modules/agents/docker.d.ts +0 -51
  2255. package/packages/happy2-server/dist/modules/agents/docker.d.ts.map +0 -1
  2256. package/packages/happy2-server/dist/modules/agents/docker.js +0 -256
  2257. package/packages/happy2-server/dist/modules/agents/docker.js.map +0 -1
  2258. package/packages/happy2-server/dist/modules/agents/docker.test.d.ts +0 -2
  2259. package/packages/happy2-server/dist/modules/agents/docker.test.d.ts.map +0 -1
  2260. package/packages/happy2-server/dist/modules/agents/docker.test.js +0 -155
  2261. package/packages/happy2-server/dist/modules/agents/docker.test.js.map +0 -1
  2262. package/packages/happy2-server/dist/modules/automation/repository.d.ts +0 -127
  2263. package/packages/happy2-server/dist/modules/automation/repository.d.ts.map +0 -1
  2264. package/packages/happy2-server/dist/modules/automation/repository.js +0 -821
  2265. package/packages/happy2-server/dist/modules/automation/repository.js.map +0 -1
  2266. package/packages/happy2-server/dist/modules/collaboration/repository.d.ts +0 -839
  2267. package/packages/happy2-server/dist/modules/collaboration/repository.d.ts.map +0 -1
  2268. package/packages/happy2-server/dist/modules/collaboration/repository.js +0 -5795
  2269. package/packages/happy2-server/dist/modules/collaboration/repository.js.map +0 -1
  2270. package/packages/happy2-server/dist/modules/collaboration/repository.test.d.ts +0 -2
  2271. package/packages/happy2-server/dist/modules/collaboration/repository.test.d.ts.map +0 -1
  2272. package/packages/happy2-server/dist/modules/collaboration/repository.test.js.map +0 -1
  2273. package/packages/happy2-server/dist/modules/collaboration/types.d.ts.map +0 -1
  2274. package/packages/happy2-server/dist/modules/collaboration/types.js.map +0 -1
  2275. package/packages/happy2-server/dist/modules/database.d.ts +0 -105
  2276. package/packages/happy2-server/dist/modules/database.d.ts.map +0 -1
  2277. package/packages/happy2-server/dist/modules/database.js +0 -583
  2278. package/packages/happy2-server/dist/modules/database.js.map +0 -1
  2279. package/packages/happy2-server/dist/modules/integrations/index.d.ts +0 -6
  2280. package/packages/happy2-server/dist/modules/integrations/index.d.ts.map +0 -1
  2281. package/packages/happy2-server/dist/modules/integrations/index.js +0 -6
  2282. package/packages/happy2-server/dist/modules/integrations/index.js.map +0 -1
  2283. package/packages/happy2-server/dist/modules/integrations/repository.d.ts +0 -136
  2284. package/packages/happy2-server/dist/modules/integrations/repository.d.ts.map +0 -1
  2285. package/packages/happy2-server/dist/modules/integrations/repository.js +0 -1229
  2286. package/packages/happy2-server/dist/modules/integrations/repository.js.map +0 -1
  2287. package/packages/happy2-server/dist/modules/integrations/repository.test.d.ts +0 -2
  2288. package/packages/happy2-server/dist/modules/integrations/repository.test.d.ts.map +0 -1
  2289. package/packages/happy2-server/dist/modules/integrations/repository.test.js.map +0 -1
  2290. package/packages/happy2-server/dist/modules/operations/export-worker.d.ts +0 -16
  2291. package/packages/happy2-server/dist/modules/operations/export-worker.d.ts.map +0 -1
  2292. package/packages/happy2-server/dist/modules/operations/export-worker.js +0 -56
  2293. package/packages/happy2-server/dist/modules/operations/export-worker.js.map +0 -1
  2294. package/packages/happy2-server/dist/modules/operations/repository.d.ts +0 -215
  2295. package/packages/happy2-server/dist/modules/operations/repository.d.ts.map +0 -1
  2296. package/packages/happy2-server/dist/modules/operations/repository.js +0 -2011
  2297. package/packages/happy2-server/dist/modules/operations/repository.js.map +0 -1
  2298. package/packages/happy2-server/dist/modules/operations/repository.test.d.ts +0 -2
  2299. package/packages/happy2-server/dist/modules/operations/repository.test.d.ts.map +0 -1
  2300. package/packages/happy2-server/dist/modules/operations/repository.test.js.map +0 -1
  2301. package/packages/happy2-server/dist/modules/request/database-idempotency.d.ts +0 -15
  2302. package/packages/happy2-server/dist/modules/request/database-idempotency.d.ts.map +0 -1
  2303. package/packages/happy2-server/dist/modules/request/database-idempotency.js +0 -141
  2304. package/packages/happy2-server/dist/modules/request/database-idempotency.js.map +0 -1
  2305. package/packages/happy2-server/dist/web/assets/index-COvbX8JP.css +0 -2
  2306. package/packages/happy2-server/dist/web/assets/index-DdpugxMO.js +0 -57
  2307. /package/packages/happy2-server/dist/modules/{collaboration → chat}/types.js +0 -0
@@ -0,0 +1,32 @@
1
+ import { CollaborationError } from "../chat/types.js";
2
+ import {} from "../drizzle.js";
3
+ import { and, eq, isNull } from "drizzle-orm";
4
+ import { chats } from "../schema.js";
5
+ import { messageSend } from "./messageSend.js";
6
+ import { userRequireServerAdmin } from "../chat/userRequireServerAdmin.js";
7
+ /**
8
+ * Sends an automated or bot-attributed message into an existing live chat after requiring a server administrator.
9
+ * Routing through the normal message transaction preserves attachment validation, idempotency, search, mentions, delivery, and channel sequencing.
10
+ */
11
+ export async function messageSendAutomated(executor, input) {
12
+ await userRequireServerAdmin(executor, input.actorUserId);
13
+ const [chat] = await executor
14
+ .select({
15
+ id: chats.id,
16
+ })
17
+ .from(chats)
18
+ .where(and(eq(chats.id, input.chatId), isNull(chats.deletedAt)))
19
+ .limit(1);
20
+ if (!chat)
21
+ throw new CollaborationError("not_found", "Chat was not found");
22
+ return messageSend(executor, {
23
+ actorUserId: input.actorUserId,
24
+ chatId: input.chatId,
25
+ text: input.text,
26
+ attachmentFileIds: input.attachmentFileIds,
27
+ clientMutationId: input.clientMutationId,
28
+ kind: "automated",
29
+ senderBotId: input.botId,
30
+ });
31
+ }
32
+ //# sourceMappingURL=messageSendAutomated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messageSendAutomated.js","sourceRoot":"","sources":["../../../sources/modules/message/messageSendAutomated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA0C,MAAM,kBAAkB,CAAC;AAC9F,OAAO,EAAwB,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACtC,QAAyB,EACzB,KAOC;IAKD,MAAM,sBAAsB,CAAC,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC1D,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,QAAQ;SACxB,MAAM,CAAC;QACJ,EAAE,EAAE,KAAK,CAAC,EAAE;KACf,CAAC;SACD,IAAI,CAAC,KAAK,CAAC;SACX,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;SAC/D,KAAK,CAAC,CAAC,CAAC,CAAC;IACd,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,kBAAkB,CAAC,WAAW,EAAE,oBAAoB,CAAC,CAAC;IAC3E,OAAO,WAAW,CAAC,QAAQ,EAAE;QACzB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;QAC1C,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;QACxC,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,KAAK,CAAC,KAAK;KAC3B,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { type MessageSummary, type MutationHint } from "../chat/types.js";
2
+ import { type DrizzleTransaction } from "../drizzle.js";
3
+ import { type SendMessageDbInput } from "./impl/sendMessageDbInput.js";
4
+ /**
5
+ * Publishes messages with authorized messageAttachments, search and mention projections, delivery records, and any requested agentTurns work.
6
+ * The caller's transaction makes the channel point the boundary for every consequence of sending, including files, notifications, audit evidence, and agent execution.
7
+ */
8
+ export declare function messageSendInTransaction(tx: DrizzleTransaction, input: SendMessageDbInput): Promise<{
9
+ message: MessageSummary;
10
+ hint: MutationHint;
11
+ }>;
12
+ //# sourceMappingURL=messageSendInTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messageSendInTransaction.d.ts","sourceRoot":"","sources":["../../../sources/modules/message/messageSendInTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC9F,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAyCvE;;;GAGG;AACH,wBAAsB,wBAAwB,CAC1C,EAAE,EAAE,kBAAkB,EACtB,KAAK,EAAE,kBAAkB,GAC1B,OAAO,CAAC;IACP,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE,YAAY,CAAC;CACtB,CAAC,CAiSD"}
@@ -0,0 +1,260 @@
1
+ import { CollaborationError } from "../chat/types.js";
2
+ import {} from "../drizzle.js";
3
+ import {} from "./impl/sendMessageDbInput.js";
4
+ import { agentRigBindings, agentTurns, botIdentities, chatMembers, messageAttachments, messageAgentAudiences, messages, serverSettings, userChatPreferences, users, } from "../schema.js";
5
+ import { and, eq, isNull, sql } from "drizzle-orm";
6
+ import { chatHint } from "../chat/chatHint.js";
7
+ import { createId } from "@paralleldrive/cuid2";
8
+ import { earliestDate } from "./impl/earliestDate.js";
9
+ import { number } from "../chat/number.js";
10
+ import { text } from "../chat/text.js";
11
+ import { chatAdvanceWithSequence } from "../chat/chatAdvanceWithSequence.js";
12
+ import { chatAppendAudit } from "../chat/chatAppendAudit.js";
13
+ import { fileCanAccessWith } from "../chat/fileCanAccessWith.js";
14
+ import { chatGetAccess } from "../chat/chatGetAccess.js";
15
+ import { findClientMutationDb } from "./impl/findClientMutationDb.js";
16
+ import { messageGetProjection } from "./messageGetProjection.js";
17
+ import { messageIndexForSearch } from "./messageIndexForSearch.js";
18
+ import { chatIsPostingRestricted } from "../chat/chatIsPostingRestricted.js";
19
+ import { syncSequenceNext } from "../sync/syncSequenceNext.js";
20
+ import { messageRecordDelivery } from "./messageRecordDelivery.js";
21
+ import { messageReplaceMentions } from "./messageReplaceMentions.js";
22
+ import { chatRequireManager } from "../chat/chatRequireManager.js";
23
+ import { messageRequireInChat } from "../chat/messageRequireInChat.js";
24
+ import { userRequireServerAdmin } from "../chat/userRequireServerAdmin.js";
25
+ import { storeClientMutationDb } from "./impl/storeClientMutationDb.js";
26
+ import { agentTurnPromptBuild } from "../agent/agentTurnPromptBuild.js";
27
+ /**
28
+ * Publishes messages with authorized messageAttachments, search and mention projections, delivery records, and any requested agentTurns work.
29
+ * The caller's transaction makes the channel point the boundary for every consequence of sending, including files, notifications, audit evidence, and agent execution.
30
+ */
31
+ export async function messageSendInTransaction(tx, input) {
32
+ const scope = `message.send:${input.chatId}`;
33
+ return (async () => {
34
+ if (input.kind === "automated" && !input.agentSessionId) {
35
+ await userRequireServerAdmin(tx, input.actorUserId);
36
+ if (input.senderBotId &&
37
+ !(await tx
38
+ .select({
39
+ id: botIdentities.id,
40
+ })
41
+ .from(botIdentities)
42
+ .where(and(eq(botIdentities.id, input.senderBotId), eq(botIdentities.active, 1), isNull(botIdentities.deletedAt)))
43
+ .limit(1))[0])
44
+ throw new CollaborationError("not_found", "Bot identity was not found");
45
+ }
46
+ if (input.clientMutationId) {
47
+ const previous = await findClientMutationDb(tx, input.actorUserId, scope, input.clientMutationId);
48
+ if (previous) {
49
+ const message = await messageGetProjection(tx, input.actorUserId, text(previous.messageId));
50
+ if (!message)
51
+ throw new Error("Idempotent message result is missing");
52
+ return {
53
+ message,
54
+ hint: chatHint(number(previous.sequence), input.chatId, number(previous.pts)),
55
+ };
56
+ }
57
+ }
58
+ const access = input.kind === "automated" && !input.agentSessionId
59
+ ? await chatRequireManager(tx, input.actorUserId, input.chatId)
60
+ : await chatGetAccess(tx, input.actorUserId, input.chatId, true);
61
+ if (!access)
62
+ throw new CollaborationError("not_found", "Chat was not found");
63
+ const audience = input.audience ?? "people";
64
+ const requestedTurns = input.agentTurns ?? [];
65
+ if (audience === "people" && requestedTurns.length)
66
+ throw new CollaborationError("invalid", "People-only messages cannot start agent turns");
67
+ if (audience === "agents" && !requestedTurns.length)
68
+ throw new CollaborationError("invalid", "Agent-audience messages require an agent");
69
+ if (input.kind === "automated" && requestedTurns.length)
70
+ throw new CollaborationError("invalid", "Automated messages cannot start agent turns");
71
+ if (access.kind === "dm" && requestedTurns.length && access.dmType !== "direct")
72
+ throw new CollaborationError("invalid", "Group direct messages cannot start agent turns");
73
+ for (const requestedTurn of requestedTurns) {
74
+ const [binding] = await tx
75
+ .select({ userId: agentRigBindings.userId })
76
+ .from(agentRigBindings)
77
+ .innerJoin(chatMembers, and(eq(chatMembers.chatId, agentRigBindings.chatId), eq(chatMembers.userId, agentRigBindings.userId)))
78
+ .innerJoin(users, eq(users.id, agentRigBindings.userId))
79
+ .where(and(eq(agentRigBindings.chatId, input.chatId), eq(agentRigBindings.userId, requestedTurn.agentUserId), eq(agentRigBindings.sessionId, requestedTurn.sessionId), isNull(chatMembers.leftAt), isNull(users.deletedAt), eq(users.kind, "agent")))
80
+ .limit(1);
81
+ if (!binding)
82
+ throw new CollaborationError("conflict", "Agent conversation is not ready");
83
+ }
84
+ let senderUserId = input.kind === "automated" ? undefined : input.actorUserId;
85
+ if (input.agentSessionId) {
86
+ const [agent] = await tx
87
+ .select({
88
+ userId: agentRigBindings.userId,
89
+ })
90
+ .from(agentRigBindings)
91
+ .where(and(eq(agentRigBindings.chatId, input.chatId), eq(agentRigBindings.sessionId, input.agentSessionId)))
92
+ .limit(1);
93
+ if (!agent)
94
+ throw new CollaborationError("forbidden", "Agent session does not own this chat");
95
+ senderUserId = agent.userId;
96
+ }
97
+ if (access.archivedAt)
98
+ throw new CollaborationError("forbidden", "Archived chats are read-only");
99
+ if (await chatIsPostingRestricted(tx, input.actorUserId, input.chatId))
100
+ throw new CollaborationError("forbidden", "Posting is restricted by moderation");
101
+ const expiryMode = input.expiryMode ??
102
+ (input.expiresAt
103
+ ? "after_send"
104
+ : access.defaultExpiryMode === "none"
105
+ ? "none"
106
+ : access.defaultExpiryMode);
107
+ const selfDestructSeconds = input.selfDestructSeconds ?? access.defaultSelfDestructSeconds;
108
+ if (expiryMode !== "none" && !selfDestructSeconds && !input.expiresAt)
109
+ throw new CollaborationError("invalid", "Self-destructing messages require a duration");
110
+ const selfDestructAt = expiryMode === "after_send"
111
+ ? (input.expiresAt ??
112
+ new Date(Date.now() + selfDestructSeconds * 1_000).toISOString())
113
+ : null;
114
+ let retentionSeconds = access.retentionSeconds;
115
+ if (access.retentionMode === "inherit") {
116
+ const [defaults] = await tx
117
+ .select({
118
+ defaultRetentionMode: serverSettings.defaultRetentionMode,
119
+ defaultRetentionSeconds: serverSettings.defaultRetentionSeconds,
120
+ })
121
+ .from(serverSettings)
122
+ .where(eq(serverSettings.id, 1));
123
+ retentionSeconds =
124
+ defaults?.defaultRetentionMode === "duration"
125
+ ? (defaults.defaultRetentionSeconds ?? undefined)
126
+ : undefined;
127
+ }
128
+ else if (access.retentionMode === "forever")
129
+ retentionSeconds = undefined;
130
+ const retentionAt = retentionSeconds
131
+ ? new Date(Date.now() + retentionSeconds * 1_000).toISOString()
132
+ : null;
133
+ const expiresAt = earliestDate(selfDestructAt, retentionAt);
134
+ if (input.quotedMessageId)
135
+ await messageRequireInChat(tx, input.quotedMessageId, input.chatId);
136
+ if (input.forwardedFromMessageId) {
137
+ const source = await messageGetProjection(tx, input.actorUserId, input.forwardedFromMessageId);
138
+ if (!source || source.deletedAt)
139
+ throw new CollaborationError("not_found", "Source message was not found");
140
+ }
141
+ const fileIds = [...new Set(input.attachmentFileIds ?? [])];
142
+ for (const fileId of fileIds)
143
+ if (!(await fileCanAccessWith(tx, input.actorUserId, fileId)))
144
+ throw new CollaborationError("not_found", "Attachment file was not found");
145
+ const id = createId();
146
+ const sequence = await syncSequenceNext(tx);
147
+ const mutation = await chatAdvanceWithSequence(tx, sequence, input.actorUserId, input.chatId, "message.created", id, undefined, true);
148
+ if (mutation.messageSequence === undefined)
149
+ throw new Error("Message sequence was not allocated");
150
+ await tx.insert(messages).values({
151
+ id,
152
+ chatId: input.chatId,
153
+ sequence: mutation.messageSequence,
154
+ changePts: mutation.pts,
155
+ senderUserId,
156
+ kind: input.kind ?? "user",
157
+ text: input.text,
158
+ quotedMessageId: input.quotedMessageId,
159
+ forwardedFromMessageId: input.forwardedFromMessageId,
160
+ expiresAt,
161
+ expiryMode,
162
+ selfDestructSeconds,
163
+ afterReadScope: input.afterReadScope ?? access.defaultAfterReadScope,
164
+ senderBotId: input.senderBotId,
165
+ publishedAt: input.deferPublication ? null : sql `CURRENT_TIMESTAMP`,
166
+ audience,
167
+ });
168
+ if (requestedTurns.length)
169
+ await tx.insert(messageAgentAudiences).values(requestedTurns.map(({ agentUserId }) => ({
170
+ messageId: id,
171
+ agentUserId,
172
+ })));
173
+ const mentions = input.deferPublication
174
+ ? {
175
+ notifyAll: false,
176
+ userIds: [],
177
+ }
178
+ : await messageReplaceMentions(tx, id, input.text);
179
+ if (!input.deferPublication)
180
+ await messageIndexForSearch(tx, id, input.chatId, input.text, 1);
181
+ if (fileIds.length)
182
+ await tx.insert(messageAttachments).values(fileIds.map((fileId, position) => ({
183
+ messageId: id,
184
+ fileId,
185
+ position,
186
+ })));
187
+ if (requestedTurns.length) {
188
+ const turns = [];
189
+ for (const requestedTurn of requestedTurns)
190
+ turns.push({
191
+ userMessageId: id,
192
+ agentUserId: requestedTurn.agentUserId,
193
+ chatId: input.chatId,
194
+ sessionId: requestedTurn.sessionId,
195
+ prompt: access.kind === "dm"
196
+ ? input.text
197
+ : await agentTurnPromptBuild(tx, {
198
+ agentUserId: requestedTurn.agentUserId,
199
+ chatId: input.chatId,
200
+ currentSequence: mutation.messageSequence,
201
+ }),
202
+ });
203
+ await tx.insert(agentTurns).values(turns);
204
+ }
205
+ if (access.parentMessageId) {
206
+ await tx
207
+ .insert(userChatPreferences)
208
+ .values({
209
+ chatId: input.chatId,
210
+ userId: input.actorUserId,
211
+ followed: 1,
212
+ syncSequence: sequence,
213
+ })
214
+ .onConflictDoUpdate({
215
+ target: [userChatPreferences.userId, userChatPreferences.chatId],
216
+ set: {
217
+ followed: 1,
218
+ syncSequence: sequence,
219
+ updatedAt: sql `CURRENT_TIMESTAMP`,
220
+ },
221
+ });
222
+ }
223
+ if (!input.deferPublication)
224
+ await messageRecordDelivery(tx, {
225
+ actorUserId: input.actorUserId,
226
+ chat: access,
227
+ messageId: id,
228
+ messageSequence: mutation.messageSequence,
229
+ mentionedUserIds: mentions.userIds,
230
+ mentionAll: mentions.notifyAll,
231
+ syncSequence: sequence,
232
+ senderUserId,
233
+ });
234
+ if (input.clientMutationId)
235
+ await storeClientMutationDb(tx, input.actorUserId, scope, input.clientMutationId, {
236
+ messageId: id,
237
+ sequence,
238
+ pts: mutation.pts,
239
+ });
240
+ const message = await messageGetProjection(tx, input.actorUserId, id);
241
+ if (!message)
242
+ throw new Error("Created message is not readable");
243
+ if (input.kind === "automated")
244
+ await chatAppendAudit(tx, {
245
+ actorUserId: input.actorUserId,
246
+ action: "message.automated_sent",
247
+ targetType: "message",
248
+ targetId: id,
249
+ chatId: input.chatId,
250
+ after: {
251
+ botId: input.senderBotId,
252
+ },
253
+ });
254
+ return {
255
+ message,
256
+ hint: chatHint(sequence, input.chatId, mutation.pts),
257
+ };
258
+ })();
259
+ }
260
+ //# sourceMappingURL=messageSendInTransaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messageSendInTransaction.js","sourceRoot":"","sources":["../../../sources/modules/message/messageSendInTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA0C,MAAM,kBAAkB,CAAC;AAC9F,OAAO,EAA2B,MAAM,eAAe,CAAC;AAExD,OAAO,EAA2B,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACH,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,qBAAqB,EACrB,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,KAAK,GACR,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EAAE,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AqB,CAAC,EAAE,EAAE,KAAK,CAAC,WAAW,EAAE,KAAK,EAAE,KAAK,CAAC,gBAAgB,EAAE;gBAC9E,SAAS,EAAE,EAAE;gBACb,QAAQ;gBACR,GAAG,EAAE,QAAQ,CAAC,GAAG;aACpB,CAAC,CAAC;QACP,MAAM,OAAO,GAAG,MAAM,oBAAoB,CAAC,EAAE,EAAE,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QACtE,IAAI,CAAC,OAAO;YAAE,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACjE,IAAI,KAAK,CAAC,IAAI,KAAK,WAAW;YAC1B,MAAM,eAAe,CAAC,EAAE,EAAE;gBACtB,WAAW,EAAE,KAAK,CAAC,WAAW;gBAC9B,MAAM,EAAE,wBAAwB;gBAChC,UAAU,EAAE,SAAS;gBACrB,QAAQ,EAAE,EAAE;gBACZ,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,KAAK,EAAE;oBACH,KAAK,EAAE,KAAK,CAAC,WAAW;iBAC3B;aACJ,CAAC,CAAC;QACP,OAAO;YACH,OAAO;YACP,IAAI,EAAE,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,CAAC;SACvD,CAAC;IACN,CAAC,CAAC,EAAE,CAAC;AACT,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type AccountBan } from "../operations/types.js";
2
+ import { type AuditContext } from "../operations/auditContext.js";
3
+ import { type DrizzleExecutor } from "../drizzle.js";
4
+ /**
5
+ * Creates an accountBans record, disables its accounts credential, and revokes active authSessions under operations-administrator authority.
6
+ * The ban, session cutoff, user sync hint, and audit evidence commit together so access disappears at the same boundary the moderation action becomes visible.
7
+ */
8
+ export declare function accountBanApply(executor: DrizzleExecutor, input: {
9
+ actorUserId: string;
10
+ targetUserId: string;
11
+ reason?: string;
12
+ expiresAt?: string;
13
+ context?: AuditContext;
14
+ }): Promise<AccountBan>;
15
+ //# sourceMappingURL=accountBanApply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountBanApply.d.ts","sourceRoot":"","sources":["../../../sources/modules/moderation/accountBanApply.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAmB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,eAAe,CAAC;AAoBtE;;;GAGG;AACH,wBAAsB,eAAe,CACjC,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,YAAY,CAAC;CAC1B,GACF,OAAO,CAAC,UAAU,CAAC,CAwDrB"}
@@ -0,0 +1,73 @@
1
+ import { OperationsError } from "../operations/types.js";
2
+ import {} from "../operations/auditContext.js";
3
+ import { withTransaction } from "../drizzle.js";
4
+ import { accountBans, accounts, authSessions } from "../schema.js";
5
+ import { accountTargetState } from "./impl/accountTargetState.js";
6
+ import { and, eq, isNull, sql } from "drizzle-orm";
7
+ import { createId } from "@paralleldrive/cuid2";
8
+ import { futureTimestamp } from "../operations/futureTimestamp.js";
9
+ import { mergeContext } from "./impl/mergeContext.js";
10
+ import { accountTargetDb } from "./impl/accountTargetDb.js";
11
+ import { auditAppend } from "../operations/auditAppend.js";
12
+ import { banDb } from "./impl/banDb.js";
13
+ import { closeElapsedBan } from "./impl/closeElapsedBan.js";
14
+ import { userRequireOperationsAdmin } from "../operations/userRequireOperationsAdmin.js";
15
+ import { syncUserMutation } from "./impl/syncUserMutation.js";
16
+ /**
17
+ * Creates an accountBans record, disables its accounts credential, and revokes active authSessions under operations-administrator authority.
18
+ * The ban, session cutoff, user sync hint, and audit evidence commit together so access disappears at the same boundary the moderation action becomes visible.
19
+ */
20
+ export async function accountBanApply(executor, input) {
21
+ const expiresAt = futureTimestamp(input.expiresAt, "expiresAt");
22
+ return withTransaction(executor, async (tx) => {
23
+ await userRequireOperationsAdmin(tx, input.actorUserId);
24
+ if (input.actorUserId === input.targetUserId)
25
+ throw new OperationsError("forbidden", "Administrators cannot ban themselves");
26
+ const target = await accountTargetDb(tx, input.targetUserId);
27
+ await closeElapsedBan(tx, target);
28
+ if (target.bannedAt &&
29
+ (!target.banExpiresAt || Date.parse(target.banExpiresAt) > Date.now()))
30
+ throw new OperationsError("conflict", "User already has an active ban");
31
+ const id = createId();
32
+ await tx.insert(accountBans).values({
33
+ id,
34
+ accountId: target.accountId,
35
+ bannedByUserId: input.actorUserId,
36
+ reason: input.reason,
37
+ expiresAt,
38
+ });
39
+ await tx
40
+ .update(accounts)
41
+ .set({
42
+ bannedAt: sql `CURRENT_TIMESTAMP`,
43
+ banExpiresAt: expiresAt ?? null,
44
+ banReason: input.reason ?? null,
45
+ bannedByUserId: input.actorUserId,
46
+ })
47
+ .where(eq(accounts.id, target.accountId));
48
+ const sessions = await tx
49
+ .update(authSessions)
50
+ .set({
51
+ revokedAt: sql `CURRENT_TIMESTAMP`,
52
+ })
53
+ .where(and(eq(authSessions.accountId, target.accountId), isNull(authSessions.revokedAt)))
54
+ .returning({
55
+ id: authSessions.id,
56
+ });
57
+ await syncUserMutation(tx, input.actorUserId, target.userId, "user.banned");
58
+ const ban = await banDb(tx, id);
59
+ await auditAppend(tx, {
60
+ actorUserId: input.actorUserId,
61
+ action: "user.ban_applied",
62
+ targetType: "user",
63
+ targetId: target.userId,
64
+ before: accountTargetState(target),
65
+ after: ban,
66
+ context: mergeContext(input.context, {
67
+ revokedSessionCount: sessions.length,
68
+ }),
69
+ });
70
+ return ban;
71
+ });
72
+ }
73
+ //# sourceMappingURL=accountBanApply.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountBanApply.js","sourceRoot":"","sources":["../../../sources/modules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SAAS,CAAC,CAAC,CACpF;aACA,SAAS,CAAC;YACP,EAAE,EAAE,YAAY,CAAC,EAAE;SACtB,CAAC,CAAC;QACP,MAAM,gBAAgB,CAAC,EAAE,EAAE,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;QAC5E,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAChC,MAAM,WAAW,CAAC,EAAE,EAAE;YAClB,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,MAAM,EAAE,kBAAkB;YAC1B,UAAU,EAAE,MAAM;YAClB,QAAQ,EAAE,MAAM,CAAC,MAAM;YACvB,MAAM,EAAE,kBAAkB,CAAC,MAAM,CAAC;YAClC,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,OAAO,EAAE;gBACjC,mBAAmB,EAAE,QAAQ,CAAC,MAAM;aACvC,CAAC;SACL,CAAC,CAAC;QACH,OAAO,GAAG,CAAC;IACf,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type AuditContext } from "../operations/auditContext.js";
2
+ import { type DrizzleExecutor } from "../drizzle.js";
3
+ /**
4
+ * Closes an elapsed accountBans interval and reactivates accounts only when no other effective ban still blocks the identity.
5
+ * Performing expiry with user synchronization and audit history prevents credentials from reopening without an attributable moderation transition.
6
+ */
7
+ export declare function accountBanExpireDue(executor: DrizzleExecutor, input?: {
8
+ actorUserId?: string;
9
+ context?: AuditContext;
10
+ }): Promise<number>;
11
+ //# sourceMappingURL=accountBanExpireDue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountBanExpireDue.d.ts","sourceRoot":"","sources":["../../../sources/modules/moderation/accountBanExpireDue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,eAAe,CAAC;AAStE;;;GAGG;AACH,wBAAsB,mBAAmB,CACrC,QAAQ,EAAE,eAAe,EACzB,KAAK,CAAC,EAAE;IACJ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;CAC1B,GACF,OAAO,CAAC,MAAM,CAAC,CAsFjB"}
@@ -0,0 +1,85 @@
1
+ import {} from "../operations/auditContext.js";
2
+ import { withTransaction } from "../drizzle.js";
3
+ import { accountBans, accounts, users } from "../schema.js";
4
+ import { and, eq, isNull, lte, sql } from "drizzle-orm";
5
+ import { auditAppend } from "../operations/auditAppend.js";
6
+ import { userRequireOperationsAdmin } from "../operations/userRequireOperationsAdmin.js";
7
+ import { syncUserMutation } from "./impl/syncUserMutation.js";
8
+ /**
9
+ * Closes an elapsed accountBans interval and reactivates accounts only when no other effective ban still blocks the identity.
10
+ * Performing expiry with user synchronization and audit history prevents credentials from reopening without an attributable moderation transition.
11
+ */
12
+ export async function accountBanExpireDue(executor, input) {
13
+ const now = new Date().toISOString();
14
+ const dueCondition = and(sql `${accounts.bannedAt} IS NOT NULL`, sql `${accounts.banExpiresAt} IS NOT NULL`, lte(accounts.banExpiresAt, now));
15
+ if (!input?.actorUserId) {
16
+ const [candidate] = await executor
17
+ .select({
18
+ id: accounts.id,
19
+ })
20
+ .from(accounts)
21
+ .where(dueCondition)
22
+ .limit(1);
23
+ if (!candidate)
24
+ return 0;
25
+ }
26
+ return withTransaction(executor, async (tx) => {
27
+ if (input?.actorUserId)
28
+ await userRequireOperationsAdmin(tx, input.actorUserId);
29
+ const due = await tx
30
+ .select({
31
+ accountId: accounts.id,
32
+ userId: users.id,
33
+ bannedAt: accounts.bannedAt,
34
+ banExpiresAt: accounts.banExpiresAt,
35
+ banReason: accounts.banReason,
36
+ bannedByUserId: accounts.bannedByUserId,
37
+ })
38
+ .from(accounts)
39
+ .leftJoin(users, eq(users.accountId, accounts.id))
40
+ .where(dueCondition);
41
+ for (const row of due) {
42
+ await tx
43
+ .update(accountBans)
44
+ .set({
45
+ revokedAt: sql `coalesce(${accountBans.revokedAt}, ${now})`,
46
+ revokeReason: sql `coalesce(${accountBans.revokeReason}, 'expired')`,
47
+ })
48
+ .where(and(eq(accountBans.accountId, row.accountId), isNull(accountBans.revokedAt), lte(accountBans.expiresAt, now)));
49
+ const updated = await tx
50
+ .update(accounts)
51
+ .set({
52
+ bannedAt: null,
53
+ banExpiresAt: null,
54
+ banReason: null,
55
+ bannedByUserId: null,
56
+ })
57
+ .where(and(eq(accounts.id, row.accountId), sql `${accounts.bannedAt} IS NOT NULL`, sql `${accounts.banExpiresAt} IS NOT NULL`, lte(accounts.banExpiresAt, now)))
58
+ .returning({
59
+ id: accounts.id,
60
+ });
61
+ if (!updated.length)
62
+ continue;
63
+ if (row.userId)
64
+ await syncUserMutation(tx, input?.actorUserId, row.userId, "user.unbanned");
65
+ await auditAppend(tx, {
66
+ actorUserId: input?.actorUserId,
67
+ action: "user.ban_expired",
68
+ targetType: "user",
69
+ targetId: row.userId ?? undefined,
70
+ before: {
71
+ bannedAt: row.bannedAt ?? undefined,
72
+ expiresAt: row.banExpiresAt ?? undefined,
73
+ reason: row.banReason ?? undefined,
74
+ bannedByUserId: row.bannedByUserId ?? undefined,
75
+ },
76
+ after: {
77
+ banned: false,
78
+ },
79
+ context: input?.context,
80
+ });
81
+ }
82
+ return due.length;
83
+ });
84
+ }
85
+ //# sourceMappingURL=accountBanExpireDue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountBanExpireDue.js","sourceRoot":"","sources":["../../../sources/modules/moderation/accountBanExpireDue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAwB,eAAe,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE5D,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,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,CAAC,CAAC;YACP,IAAI,CAAC,OAAO,CAAC,MAAM;gBAAE,SAAS;YAC9B,IAAI,GAAG,CAAC,MAAM;gBACV,MAAM,gBAAgB,CAAC,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;YAChF,MAAM,WAAW,CAAC,EAAE,EAAE;gBAClB,WAAW,EAAE,KAAK,EAAE,WAAW;gBAC/B,MAAM,EAAE,kBAAkB;gBAC1B,UAAU,EAAE,MAAM;gBAClB,QAAQ,EAAE,GAAG,CAAC,MAAM,IAAI,SAAS;gBACjC,MAAM,EAAE;oBACJ,QAAQ,EAAE,GAAG,CAAC,QAAQ,IAAI,SAAS;oBACnC,SAAS,EAAE,GAAG,CAAC,YAAY,IAAI,SAAS;oBACxC,MAAM,EAAE,GAAG,CAAC,SAAS,IAAI,SAAS;oBAClC,cAAc,EAAE,GAAG,CAAC,cAAc,IAAI,SAAS;iBAClD;gBACD,KAAK,EAAE;oBACH,MAAM,EAAE,KAAK;iBAChB;gBACD,OAAO,EAAE,KAAK,EAAE,OAAO;aAC1B,CAAC,CAAC;QACP,CAAC;QACD,OAAO,GAAG,CAAC,MAAM,CAAC;IACtB,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { type AccountBan, type Page } from "../operations/types.js";
2
+ import { type DrizzleExecutor } from "../drizzle.js";
3
+ /**
4
+ * Returns an administrator-only reverse-chronological page of bans filtered by target user and active, expired, or revoked state.
5
+ * Computing lifecycle status against one request timestamp and a banned-at/id cursor keeps pagination stable around expiry boundaries.
6
+ */
7
+ export declare function accountBanList(executor: DrizzleExecutor, input: {
8
+ actorUserId: string;
9
+ targetUserId?: string;
10
+ status?: "active" | "expired" | "revoked";
11
+ before?: string;
12
+ limit: number;
13
+ }): Promise<Page<AccountBan>>;
14
+ //# sourceMappingURL=accountBanList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountBanList.d.ts","sourceRoot":"","sources":["../../../sources/modules/moderation/accountBanList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAarD;;;GAGG;AACH,wBAAsB,cAAc,CAChC,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACjB,GACF,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAiC3B"}
@@ -0,0 +1,42 @@
1
+ import {} from "../operations/types.js";
2
+ import {} from "../drizzle.js";
3
+ import { and, desc, eq, gt, isNull, lte, or, sql } from "drizzle-orm";
4
+ import { accountBans, users } from "../schema.js";
5
+ import { asBan } from "./impl/asBan.js";
6
+ import { banSelection } from "./impl/banSelection.js";
7
+ import { cursorCondition } from "../operations/cursorCondition.js";
8
+ import { decodeCursor } from "../operations/decodeCursor.js";
9
+ import { page } from "../operations/page.js";
10
+ import { userRequireOperationsAdmin } from "../operations/userRequireOperationsAdmin.js";
11
+ /**
12
+ * Returns an administrator-only reverse-chronological page of bans filtered by target user and active, expired, or revoked state.
13
+ * Computing lifecycle status against one request timestamp and a banned-at/id cursor keeps pagination stable around expiry boundaries.
14
+ */
15
+ export async function accountBanList(executor, input) {
16
+ await userRequireOperationsAdmin(executor, input.actorUserId);
17
+ const cursor = decodeCursor(input.before);
18
+ const conditions = [];
19
+ if (input.targetUserId)
20
+ conditions.push(eq(users.id, input.targetUserId));
21
+ const now = new Date().toISOString();
22
+ if (input.status === "active") {
23
+ conditions.push(and(isNull(accountBans.revokedAt), or(isNull(accountBans.expiresAt), gt(accountBans.expiresAt, now))));
24
+ }
25
+ else if (input.status === "expired") {
26
+ conditions.push(and(isNull(accountBans.revokedAt), sql `${accountBans.expiresAt} IS NOT NULL`, lte(accountBans.expiresAt, now)));
27
+ }
28
+ else if (input.status === "revoked") {
29
+ conditions.push(sql `${accountBans.revokedAt} IS NOT NULL`);
30
+ }
31
+ if (cursor)
32
+ conditions.push(cursorCondition(accountBans.bannedAt, accountBans.id, cursor));
33
+ const rows = await executor
34
+ .select(banSelection)
35
+ .from(accountBans)
36
+ .leftJoin(users, eq(users.accountId, accountBans.accountId))
37
+ .where(and(...conditions))
38
+ .orderBy(desc(accountBans.bannedAt), desc(accountBans.id))
39
+ .limit(input.limit + 1);
40
+ return page(rows, input.limit, asBan, (item) => item.bannedAt);
41
+ }
42
+ //# sourceMappingURL=accountBanList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountBanList.js","sourceRoot":"","sources":["../../../sources/modules/moderation/accountBanList.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAwB,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAY,MAAM,aAAa,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAE7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,c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MAAM,IAAI,GAAG,MAAM,QAAQ;SACtB,MAAM,CAAC,YAAY,CAAC;SACpB,IAAI,CAAC,WAAW,CAAC;SACjB,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;SAC3D,KAAK,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,CAAC;SACzB,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;SACzD,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IAC5B,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACnE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { type AccountBan } from "../operations/types.js";
2
+ import { type AuditContext } from "../operations/auditContext.js";
3
+ import { type DrizzleExecutor } from "../drizzle.js";
4
+ /**
5
+ * Revokes the current accountBans interval and restores accounts authority when no remaining ban applies to the target.
6
+ * The administrator-audited transaction keeps account activation, product user state, and the visible moderation record in agreement.
7
+ */
8
+ export declare function accountBanRevoke(executor: DrizzleExecutor, input: {
9
+ actorUserId: string;
10
+ targetUserId: string;
11
+ reason?: string;
12
+ context?: AuditContext;
13
+ }): Promise<AccountBan>;
14
+ //# sourceMappingURL=accountBanRevoke.d.ts.map