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.
- package/README.md +101 -66
- package/package.json +38 -20
- package/packages/happy2-server/README.md +162 -19
- package/packages/happy2-server/dist/cli.js +12 -5
- package/packages/happy2-server/dist/cli.js.map +1 -1
- package/packages/happy2-server/dist/index.d.ts +12 -8
- package/packages/happy2-server/dist/index.d.ts.map +1 -1
- package/packages/happy2-server/dist/index.js +10 -7
- package/packages/happy2-server/dist/index.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentChatBind.d.ts +19 -0
- package/packages/happy2-server/dist/modules/agent/agentChatBind.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentChatBind.js +48 -0
- package/packages/happy2-server/dist/modules/agent/agentChatBind.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentChatGetContext.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/agentChatGetContext.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentChatGetContext.js +89 -0
- package/packages/happy2-server/dist/modules/agent/agentChatGetContext.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentChatListUnfinishedIds.d.ts +7 -0
- package/packages/happy2-server/dist/modules/agent/agentChatListUnfinishedIds.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentChatListUnfinishedIds.js +17 -0
- package/packages/happy2-server/dist/modules/agent/agentChatListUnfinishedIds.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentConversationCreate.d.ts +14 -0
- package/packages/happy2-server/dist/modules/agent/agentConversationCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentConversationCreate.js +61 -0
- package/packages/happy2-server/dist/modules/agent/agentConversationCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentCreate.d.ts +21 -0
- package/packages/happy2-server/dist/modules/agent/agentCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentCreate.js +96 -0
- package/packages/happy2-server/dist/modules/agent/agentCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultConversationEnsure.d.ts +10 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultConversationEnsure.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultConversationEnsure.js +57 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultConversationEnsure.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultCreate.d.ts +17 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultCreate.js +67 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultRepair.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultRepair.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultRepair.js +42 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultRepair.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultRequire.d.ts +7 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultRequire.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultRequire.js +19 -0
- package/packages/happy2-server/dist/modules/agent/agentDefaultRequire.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.d.ts +11 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.js +29 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.js +11 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortInitialize.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortInitialize.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortInitialize.js +39 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortInitialize.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.d.ts +15 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.js +68 -0
- package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.d.ts +24 -0
- package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.js +127 -0
- package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageCompleteBuild.d.ts +12 -0
- package/packages/happy2-server/dist/modules/agent/agentImageCompleteBuild.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageCompleteBuild.js +41 -0
- package/packages/happy2-server/dist/modules/agent/agentImageCompleteBuild.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageCreate.d.ts +17 -0
- package/packages/happy2-server/dist/modules/agent/agentImageCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageCreate.js +68 -0
- package/packages/happy2-server/dist/modules/agent/agentImageCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageEnsureDefinitions.d.ts +14 -0
- package/packages/happy2-server/dist/modules/agent/agentImageEnsureDefinitions.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageEnsureDefinitions.js +25 -0
- package/packages/happy2-server/dist/modules/agent/agentImageEnsureDefinitions.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageFailBuild.d.ts +12 -0
- package/packages/happy2-server/dist/modules/agent/agentImageFailBuild.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageFailBuild.js +40 -0
- package/packages/happy2-server/dist/modules/agent/agentImageFailBuild.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageFindDefinition.d.ts +12 -0
- package/packages/happy2-server/dist/modules/agent/agentImageFindDefinition.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageFindDefinition.js +19 -0
- package/packages/happy2-server/dist/modules/agent/agentImageFindDefinition.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageGet.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/agentImageGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageGet.js +23 -0
- package/packages/happy2-server/dist/modules/agent/agentImageGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.d.ts +26 -0
- package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.js +74 -0
- package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageGetReadyDefault.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/agentImageGetReadyDefault.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageGetReadyDefault.js +28 -0
- package/packages/happy2-server/dist/modules/agent/agentImageGetReadyDefault.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageList.d.ts +11 -0
- package/packages/happy2-server/dist/modules/agent/agentImageList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageList.js +36 -0
- package/packages/happy2-server/dist/modules/agent/agentImageList.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageListRequestedBuildIds.d.ts +7 -0
- package/packages/happy2-server/dist/modules/agent/agentImageListRequestedBuildIds.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageListRequestedBuildIds.js +18 -0
- package/packages/happy2-server/dist/modules/agent/agentImageListRequestedBuildIds.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageRecordBuildOutput.d.ts +14 -0
- package/packages/happy2-server/dist/modules/agent/agentImageRecordBuildOutput.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageRecordBuildOutput.js +45 -0
- package/packages/happy2-server/dist/modules/agent/agentImageRecordBuildOutput.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageReleaseBuildLeases.d.ts +7 -0
- package/packages/happy2-server/dist/modules/agent/agentImageReleaseBuildLeases.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageReleaseBuildLeases.js +33 -0
- package/packages/happy2-server/dist/modules/agent/agentImageReleaseBuildLeases.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageRenewBuildLease.d.ts +7 -0
- package/packages/happy2-server/dist/modules/agent/agentImageRenewBuildLease.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageRenewBuildLease.js +21 -0
- package/packages/happy2-server/dist/modules/agent/agentImageRenewBuildLease.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.d.ts +14 -0
- package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.js +73 -0
- package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.d.ts +14 -0
- package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.js +55 -0
- package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageTakeBuild.d.ts +14 -0
- package/packages/happy2-server/dist/modules/agent/agentImageTakeBuild.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentImageTakeBuild.js +77 -0
- package/packages/happy2-server/dist/modules/agent/agentImageTakeBuild.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentRunAttach.d.ts +11 -0
- package/packages/happy2-server/dist/modules/agent/agentRunAttach.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentRunAttach.js +31 -0
- package/packages/happy2-server/dist/modules/agent/agentRunAttach.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.d.ts +11 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.js +39 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.js +46 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.d.ts +12 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.js +58 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.d.ts +12 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.js +59 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.d.ts +7 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.js +10 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretBindingList.d.ts +11 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretBindingList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretBindingList.js +69 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretBindingList.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.d.ts +12 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.js +44 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.d.ts +12 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.js +45 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.d.ts +11 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.js +31 -0
- package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnCheckpoint.d.ts +14 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnCheckpoint.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnCheckpoint.js +35 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnCheckpoint.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnComplete.d.ts +18 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnComplete.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnComplete.js +15 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnComplete.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnFail.d.ts +18 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnFail.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnFail.js +21 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnFail.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnGetRunning.d.ts +21 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnGetRunning.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnGetRunning.js +21 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnGetRunning.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnHasRunnable.d.ts +7 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnHasRunnable.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnHasRunnable.js +27 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnHasRunnable.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnHasUnfinished.d.ts +7 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnHasUnfinished.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnHasUnfinished.js +18 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnHasUnfinished.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnPromptBuild.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnPromptBuild.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnPromptBuild.js +10 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnPromptBuild.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnReleaseLeases.d.ts +7 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnReleaseLeases.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnReleaseLeases.js +18 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnReleaseLeases.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnRenewLease.d.ts +11 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnRenewLease.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnRenewLease.js +21 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnRenewLease.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.d.ts +22 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.js +107 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnTakeNext.d.ts +21 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnTakeNext.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnTakeNext.js +80 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnTakeNext.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentUsernameIsAvailable.d.ts +7 -0
- package/packages/happy2-server/dist/modules/agent/agentUsernameIsAvailable.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentUsernameIsAvailable.js +18 -0
- package/packages/happy2-server/dist/modules/agent/agentUsernameIsAvailable.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentChatContext.d.ts +18 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentChatContext.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentChatContext.js +2 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentChatContext.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContext.d.ts +6 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContext.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContext.js +2 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContext.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.js +52 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentExecutionImage.d.ts +6 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentExecutionImage.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentExecutionImage.js +2 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentExecutionImage.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentImageBuild.d.ts +7 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentImageBuild.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentImageBuild.js +2 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentImageBuild.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentImageDetailsSelection.d.ts +396 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentImageDetailsSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentImageDetailsSelection.js +9 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentImageDetailsSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentImageSelection.d.ts +341 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentImageSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentImageSelection.js +22 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentImageSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentReplyMutationId.d.ts +2 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentReplyMutationId.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentReplyMutationId.js +4 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentReplyMutationId.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentSecretAssignment.d.ts +6 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentSecretAssignment.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentSecretAssignment.js +2 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentSecretAssignment.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentSecretBinding.d.ts +7 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentSecretBinding.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentSecretBinding.js +2 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentSecretBinding.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentTurnPrompt.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentTurnPrompt.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentTurnPrompt.js +173 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentTurnPrompt.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentTurnWork.d.ts +30 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentTurnWork.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentTurnWork.js +38 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentTurnWork.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentTurnWorkSelection.d.ts +248 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentTurnWorkSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentTurnWorkSelection.js +17 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentTurnWorkSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/asAgentImage.d.ts +3 -0
- package/packages/happy2-server/dist/modules/agent/impl/asAgentImage.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/asAgentImage.js +32 -0
- package/packages/happy2-server/dist/modules/agent/impl/asAgentImage.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/asAgentImageDetails.d.ts +3 -0
- package/packages/happy2-server/dist/modules/agent/impl/asAgentImageDetails.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/asAgentImageDetails.js +13 -0
- package/packages/happy2-server/dist/modules/agent/impl/asAgentImageDetails.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/asRigEventCheckpoint.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/impl/asRigEventCheckpoint.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/asRigEventCheckpoint.js +18 -0
- package/packages/happy2-server/dist/modules/agent/impl/asRigEventCheckpoint.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/ensureDefaultAgentChannelsDb.d.ts +7 -0
- package/packages/happy2-server/dist/modules/agent/impl/ensureDefaultAgentChannelsDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/ensureDefaultAgentChannelsDb.js +178 -0
- package/packages/happy2-server/dist/modules/agent/impl/ensureDefaultAgentChannelsDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.d.ts +21 -0
- package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.js +123 -0
- package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/maxAgentImageBuildLogCharacters.d.ts +2 -0
- package/packages/happy2-server/dist/modules/agent/impl/maxAgentImageBuildLogCharacters.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/maxAgentImageBuildLogCharacters.js +2 -0
- package/packages/happy2-server/dist/modules/agent/impl/maxAgentImageBuildLogCharacters.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/rigEventCheckpoint.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/rigEventCheckpoint.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/rigEventCheckpoint.js +27 -0
- package/packages/happy2-server/dist/modules/agent/rigEventCheckpoint.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/rigEventGetCheckpoint.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/rigEventGetCheckpoint.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/rigEventGetCheckpoint.js +23 -0
- package/packages/happy2-server/dist/modules/agent/rigEventGetCheckpoint.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/rigEventMarkTrimmed.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/rigEventMarkTrimmed.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/rigEventMarkTrimmed.js +24 -0
- package/packages/happy2-server/dist/modules/agent/rigEventMarkTrimmed.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/types.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/types.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/types.js +2 -0
- package/packages/happy2-server/dist/modules/agent/types.js.map +1 -0
- package/packages/happy2-server/dist/modules/agents/daemon.d.ts +15 -1
- package/packages/happy2-server/dist/modules/agents/daemon.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agents/daemon.js +19 -2
- package/packages/happy2-server/dist/modules/agents/daemon.js.map +1 -1
- package/packages/happy2-server/dist/modules/agents/index.d.ts +0 -2
- package/packages/happy2-server/dist/modules/agents/index.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agents/index.js +0 -1
- package/packages/happy2-server/dist/modules/agents/index.js.map +1 -1
- package/packages/happy2-server/dist/modules/agents/service.d.ts +90 -15
- package/packages/happy2-server/dist/modules/agents/service.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agents/service.js +701 -124
- package/packages/happy2-server/dist/modules/agents/service.js.map +1 -1
- package/packages/happy2-server/dist/modules/audit/auditLogList.d.ts +16 -0
- package/packages/happy2-server/dist/modules/audit/auditLogList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/audit/auditLogList.js +37 -0
- package/packages/happy2-server/dist/modules/audit/auditLogList.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/accountCreatePassword.d.ts +8 -0
- package/packages/happy2-server/dist/modules/auth/accountCreatePassword.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/accountCreatePassword.js +23 -0
- package/packages/happy2-server/dist/modules/auth/accountCreatePassword.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/accountFindOidc.d.ts +8 -0
- package/packages/happy2-server/dist/modules/auth/accountFindOidc.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/accountFindOidc.js +20 -0
- package/packages/happy2-server/dist/modules/auth/accountFindOidc.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/accountFindOrCreateOidc.d.ts +8 -0
- package/packages/happy2-server/dist/modules/auth/accountFindOrCreateOidc.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/accountFindOrCreateOidc.js +44 -0
- package/packages/happy2-server/dist/modules/auth/accountFindOrCreateOidc.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/accountFindPassword.d.ts +8 -0
- package/packages/happy2-server/dist/modules/auth/accountFindPassword.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/accountFindPassword.js +14 -0
- package/packages/happy2-server/dist/modules/auth/accountFindPassword.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/accountRegisterPassword.d.ts +8 -0
- package/packages/happy2-server/dist/modules/auth/accountRegisterPassword.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/accountRegisterPassword.js +39 -0
- package/packages/happy2-server/dist/modules/auth/accountRegisterPassword.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/errors.d.ts +7 -0
- package/packages/happy2-server/dist/modules/auth/errors.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/errors.js +13 -0
- package/packages/happy2-server/dist/modules/auth/errors.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.d.ts +6 -0
- package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.js +17 -0
- package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.test.d.ts +2 -0
- package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.test.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.test.js +18 -0
- package/packages/happy2-server/dist/modules/auth/impl/accessTouchThrottle.test.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/accountRow.d.ts +3 -0
- package/packages/happy2-server/dist/modules/auth/impl/accountRow.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/accountRow.js +2 -0
- package/packages/happy2-server/dist/modules/auth/impl/accountRow.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/asAccount.d.ts +4 -0
- package/packages/happy2-server/dist/modules/auth/impl/asAccount.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/asAccount.js +13 -0
- package/packages/happy2-server/dist/modules/auth/impl/asAccount.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/asSession.d.ts +7 -0
- package/packages/happy2-server/dist/modules/auth/impl/asSession.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/asSession.js +9 -0
- package/packages/happy2-server/dist/modules/auth/impl/asSession.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/authorizeNewRegistrationDb.d.ts +4 -0
- package/packages/happy2-server/dist/modules/auth/impl/authorizeNewRegistrationDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/authorizeNewRegistrationDb.js +42 -0
- package/packages/happy2-server/dist/modules/auth/impl/authorizeNewRegistrationDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/recordSessionEvent.d.ts +4 -0
- package/packages/happy2-server/dist/modules/auth/impl/recordSessionEvent.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/recordSessionEvent.js +16 -0
- package/packages/happy2-server/dist/modules/auth/impl/recordSessionEvent.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/requireNewRegistrationRequestAllowedDb.d.ts +4 -0
- package/packages/happy2-server/dist/modules/auth/impl/requireNewRegistrationRequestAllowedDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/requireNewRegistrationRequestAllowedDb.js +28 -0
- package/packages/happy2-server/dist/modules/auth/impl/requireNewRegistrationRequestAllowedDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/tokenHash.d.ts +2 -0
- package/packages/happy2-server/dist/modules/auth/impl/tokenHash.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/impl/tokenHash.js +5 -0
- package/packages/happy2-server/dist/modules/auth/impl/tokenHash.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/magicLinkConsume.d.ts +8 -0
- package/packages/happy2-server/dist/modules/auth/magicLinkConsume.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/magicLinkConsume.js +50 -0
- package/packages/happy2-server/dist/modules/auth/magicLinkConsume.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/magicLinkCreate.d.ts +7 -0
- package/packages/happy2-server/dist/modules/auth/magicLinkCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/magicLinkCreate.js +36 -0
- package/packages/happy2-server/dist/modules/auth/magicLinkCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/metadata.d.ts +1 -1
- package/packages/happy2-server/dist/modules/auth/metadata.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/auth/methods.d.ts +0 -1
- package/packages/happy2-server/dist/modules/auth/methods.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/auth/methods.js +1 -5
- package/packages/happy2-server/dist/modules/auth/methods.js.map +1 -1
- package/packages/happy2-server/dist/modules/auth/methods.test.js +0 -1
- package/packages/happy2-server/dist/modules/auth/methods.test.js.map +1 -1
- package/packages/happy2-server/dist/modules/auth/oidcStateConsume.d.ts +12 -0
- package/packages/happy2-server/dist/modules/auth/oidcStateConsume.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/oidcStateConsume.js +20 -0
- package/packages/happy2-server/dist/modules/auth/oidcStateConsume.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/oidcStateCreate.d.ts +7 -0
- package/packages/happy2-server/dist/modules/auth/oidcStateCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/oidcStateCreate.js +17 -0
- package/packages/happy2-server/dist/modules/auth/oidcStateCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/service.d.ts +11 -7
- package/packages/happy2-server/dist/modules/auth/service.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/auth/service.js +101 -27
- package/packages/happy2-server/dist/modules/auth/service.js.map +1 -1
- package/packages/happy2-server/dist/modules/auth/sessionCreate.d.ts +8 -0
- package/packages/happy2-server/dist/modules/auth/sessionCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/sessionCreate.js +35 -0
- package/packages/happy2-server/dist/modules/auth/sessionCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/sessionFindActive.d.ts +8 -0
- package/packages/happy2-server/dist/modules/auth/sessionFindActive.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/sessionFindActive.js +22 -0
- package/packages/happy2-server/dist/modules/auth/sessionFindActive.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/sessionRefresh.d.ts +8 -0
- package/packages/happy2-server/dist/modules/auth/sessionRefresh.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/sessionRefresh.js +37 -0
- package/packages/happy2-server/dist/modules/auth/sessionRefresh.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/sessionRevoke.d.ts +8 -0
- package/packages/happy2-server/dist/modules/auth/sessionRevoke.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/sessionRevoke.js +25 -0
- package/packages/happy2-server/dist/modules/auth/sessionRevoke.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/types.d.ts +22 -0
- package/packages/happy2-server/dist/modules/auth/types.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/types.js +2 -0
- package/packages/happy2-server/dist/modules/auth/types.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationCreate.d.ts +24 -0
- package/packages/happy2-server/dist/modules/automation/automationCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationCreate.js +84 -0
- package/packages/happy2-server/dist/modules/automation/automationCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationDelete.d.ts +8 -0
- package/packages/happy2-server/dist/modules/automation/automationDelete.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationDelete.js +41 -0
- package/packages/happy2-server/dist/modules/automation/automationDelete.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/automation/automationList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationList.js +19 -0
- package/packages/happy2-server/dist/modules/automation/automationList.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationRunDue.d.ts +9 -0
- package/packages/happy2-server/dist/modules/automation/automationRunDue.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationRunDue.js +37 -0
- package/packages/happy2-server/dist/modules/automation/automationRunDue.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationRunEvent.d.ts +9 -0
- package/packages/happy2-server/dist/modules/automation/automationRunEvent.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationRunEvent.js +68 -0
- package/packages/happy2-server/dist/modules/automation/automationRunEvent.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationRunNow.d.ts +12 -0
- package/packages/happy2-server/dist/modules/automation/automationRunNow.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationRunNow.js +15 -0
- package/packages/happy2-server/dist/modules/automation/automationRunNow.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationRunPendingEvents.d.ts +9 -0
- package/packages/happy2-server/dist/modules/automation/automationRunPendingEvents.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationRunPendingEvents.js +40 -0
- package/packages/happy2-server/dist/modules/automation/automationRunPendingEvents.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationRunWebhook.d.ts +12 -0
- package/packages/happy2-server/dist/modules/automation/automationRunWebhook.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationRunWebhook.js +40 -0
- package/packages/happy2-server/dist/modules/automation/automationRunWebhook.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationUpdate.d.ts +20 -0
- package/packages/happy2-server/dist/modules/automation/automationUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/automationUpdate.js +90 -0
- package/packages/happy2-server/dist/modules/automation/automationUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/appendAudit.d.ts +7 -0
- package/packages/happy2-server/dist/modules/automation/impl/appendAudit.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/appendAudit.js +17 -0
- package/packages/happy2-server/dist/modules/automation/impl/appendAudit.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/asAutomation.d.ts +4 -0
- package/packages/happy2-server/dist/modules/automation/impl/asAutomation.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/asAutomation.js +25 -0
- package/packages/happy2-server/dist/modules/automation/impl/asAutomation.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/automationRow.d.ts +3 -0
- package/packages/happy2-server/dist/modules/automation/impl/automationRow.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/automationRow.js +2 -0
- package/packages/happy2-server/dist/modules/automation/impl/automationRow.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/automationSummary.d.ts +18 -0
- package/packages/happy2-server/dist/modules/automation/impl/automationSummary.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/automationSummary.js +2 -0
- package/packages/happy2-server/dist/modules/automation/impl/automationSummary.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/botExists.d.ts +7 -0
- package/packages/happy2-server/dist/modules/automation/impl/botExists.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/botExists.js +17 -0
- package/packages/happy2-server/dist/modules/automation/impl/botExists.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/chatExists.d.ts +7 -0
- package/packages/happy2-server/dist/modules/automation/impl/chatExists.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/chatExists.js +17 -0
- package/packages/happy2-server/dist/modules/automation/impl/chatExists.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/eventKinds.d.ts +2 -0
- package/packages/happy2-server/dist/modules/automation/impl/eventKinds.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/eventKinds.js +12 -0
- package/packages/happy2-server/dist/modules/automation/impl/eventKinds.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/executeAutomation.d.ts +12 -0
- package/packages/happy2-server/dist/modules/automation/impl/executeAutomation.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/executeAutomation.js +181 -0
- package/packages/happy2-server/dist/modules/automation/impl/executeAutomation.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/getAutomation.d.ts +4 -0
- package/packages/happy2-server/dist/modules/automation/impl/getAutomation.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/getAutomation.js +12 -0
- package/packages/happy2-server/dist/modules/automation/impl/getAutomation.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/hashesEqual.d.ts +2 -0
- package/packages/happy2-server/dist/modules/automation/impl/hashesEqual.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/hashesEqual.js +7 -0
- package/packages/happy2-server/dist/modules/automation/impl/hashesEqual.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/jsonObject.d.ts +2 -0
- package/packages/happy2-server/dist/modules/automation/impl/jsonObject.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/jsonObject.js +7 -0
- package/packages/happy2-server/dist/modules/automation/impl/jsonObject.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/matchesEvent.d.ts +6 -0
- package/packages/happy2-server/dist/modules/automation/impl/matchesEvent.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/matchesEvent.js +10 -0
- package/packages/happy2-server/dist/modules/automation/impl/matchesEvent.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/moderationAction.d.ts +3 -0
- package/packages/happy2-server/dist/modules/automation/impl/moderationAction.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/moderationAction.js +17 -0
- package/packages/happy2-server/dist/modules/automation/impl/moderationAction.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/moderationActionType.d.ts +2 -0
- package/packages/happy2-server/dist/modules/automation/impl/moderationActionType.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/moderationActionType.js +2 -0
- package/packages/happy2-server/dist/modules/automation/impl/moderationActionType.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/optionalObject.d.ts +2 -0
- package/packages/happy2-server/dist/modules/automation/impl/optionalObject.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/optionalObject.js +9 -0
- package/packages/happy2-server/dist/modules/automation/impl/optionalObject.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/optionalString.d.ts +2 -0
- package/packages/happy2-server/dist/modules/automation/impl/optionalString.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/optionalString.js +9 -0
- package/packages/happy2-server/dist/modules/automation/impl/optionalString.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/positiveNumber.d.ts +2 -0
- package/packages/happy2-server/dist/modules/automation/impl/positiveNumber.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/positiveNumber.js +4 -0
- package/packages/happy2-server/dist/modules/automation/impl/positiveNumber.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/requireAdmin.d.ts +7 -0
- package/packages/happy2-server/dist/modules/automation/impl/requireAdmin.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/requireAdmin.js +20 -0
- package/packages/happy2-server/dist/modules/automation/impl/requireAdmin.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/requiredString.d.ts +2 -0
- package/packages/happy2-server/dist/modules/automation/impl/requiredString.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/requiredString.js +7 -0
- package/packages/happy2-server/dist/modules/automation/impl/requiredString.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/secretHash.d.ts +2 -0
- package/packages/happy2-server/dist/modules/automation/impl/secretHash.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/secretHash.js +5 -0
- package/packages/happy2-server/dist/modules/automation/impl/secretHash.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/stringArray.d.ts +2 -0
- package/packages/happy2-server/dist/modules/automation/impl/stringArray.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/stringArray.js +9 -0
- package/packages/happy2-server/dist/modules/automation/impl/stringArray.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/validateAction.d.ts +3 -0
- package/packages/happy2-server/dist/modules/automation/impl/validateAction.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/validateAction.js +20 -0
- package/packages/happy2-server/dist/modules/automation/impl/validateAction.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/validateTrigger.d.ts +3 -0
- package/packages/happy2-server/dist/modules/automation/impl/validateTrigger.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/impl/validateTrigger.js +18 -0
- package/packages/happy2-server/dist/modules/automation/impl/validateTrigger.js.map +1 -0
- package/packages/happy2-server/dist/modules/automation/types.d.ts +15 -0
- package/packages/happy2-server/dist/modules/automation/types.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/automation/types.js +2 -0
- package/packages/happy2-server/dist/modules/automation/types.js.map +1 -0
- package/packages/happy2-server/dist/modules/backup/backupCreate.d.ts +16 -0
- package/packages/happy2-server/dist/modules/backup/backupCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/backup/backupCreate.js +48 -0
- package/packages/happy2-server/dist/modules/backup/backupCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/backup/backupList.d.ts +13 -0
- package/packages/happy2-server/dist/modules/backup/backupList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/backup/backupList.js +31 -0
- package/packages/happy2-server/dist/modules/backup/backupList.js.map +1 -0
- package/packages/happy2-server/dist/modules/backup/backupUpdate.d.ts +19 -0
- package/packages/happy2-server/dist/modules/backup/backupUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/backup/backupUpdate.js +55 -0
- package/packages/happy2-server/dist/modules/backup/backupUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/backup/impl/asBackup.d.ts +3 -0
- package/packages/happy2-server/dist/modules/backup/impl/asBackup.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/backup/impl/asBackup.js +22 -0
- package/packages/happy2-server/dist/modules/backup/impl/asBackup.js.map +1 -0
- package/packages/happy2-server/dist/modules/backup/impl/assertBackupTransition.d.ts +3 -0
- package/packages/happy2-server/dist/modules/backup/impl/assertBackupTransition.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/backup/impl/assertBackupTransition.js +13 -0
- package/packages/happy2-server/dist/modules/backup/impl/assertBackupTransition.js.map +1 -0
- package/packages/happy2-server/dist/modules/backup/impl/backupDb.d.ts +8 -0
- package/packages/happy2-server/dist/modules/backup/impl/backupDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/backup/impl/backupDb.js +21 -0
- package/packages/happy2-server/dist/modules/backup/impl/backupDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/backup/impl/backupSelection.d.ts +229 -0
- package/packages/happy2-server/dist/modules/backup/impl/backupSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/backup/impl/backupSelection.js +16 -0
- package/packages/happy2-server/dist/modules/backup/impl/backupSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/backup/impl/isUniqueConstraint.d.ts +2 -0
- package/packages/happy2-server/dist/modules/backup/impl/isUniqueConstraint.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/backup/impl/isUniqueConstraint.js +12 -0
- package/packages/happy2-server/dist/modules/backup/impl/isUniqueConstraint.js.map +1 -0
- package/packages/happy2-server/dist/modules/backup/impl/optionalNumber.d.ts +2 -0
- package/packages/happy2-server/dist/modules/backup/impl/optionalNumber.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/backup/impl/optionalNumber.js +5 -0
- package/packages/happy2-server/dist/modules/backup/impl/optionalNumber.js.map +1 -0
- package/packages/happy2-server/dist/modules/bot/botCreate.d.ts +15 -0
- package/packages/happy2-server/dist/modules/bot/botCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/bot/botCreate.js +59 -0
- package/packages/happy2-server/dist/modules/bot/botCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/bot/botGet.d.ts +8 -0
- package/packages/happy2-server/dist/modules/bot/botGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/bot/botGet.js +20 -0
- package/packages/happy2-server/dist/modules/bot/botGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/bot/botList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/bot/botList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/bot/botList.js +29 -0
- package/packages/happy2-server/dist/modules/bot/botList.js.map +1 -0
- package/packages/happy2-server/dist/modules/bot/botRevoke.d.ts +8 -0
- package/packages/happy2-server/dist/modules/bot/botRevoke.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/bot/botRevoke.js +53 -0
- package/packages/happy2-server/dist/modules/bot/botRevoke.js.map +1 -0
- package/packages/happy2-server/dist/modules/bot/botUpdate.d.ts +16 -0
- package/packages/happy2-server/dist/modules/bot/botUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/bot/botUpdate.js +88 -0
- package/packages/happy2-server/dist/modules/bot/botUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/bot/impl/asBot.d.ts +3 -0
- package/packages/happy2-server/dist/modules/bot/impl/asBot.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/bot/impl/asBot.js +18 -0
- package/packages/happy2-server/dist/modules/bot/impl/asBot.js.map +1 -0
- package/packages/happy2-server/dist/modules/bot/impl/botSelection.d.ts +191 -0
- package/packages/happy2-server/dist/modules/bot/impl/botSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/bot/impl/botSelection.js +14 -0
- package/packages/happy2-server/dist/modules/bot/impl/botSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/bot/impl/normalizedUsername.d.ts +2 -0
- package/packages/happy2-server/dist/modules/bot/impl/normalizedUsername.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/bot/impl/normalizedUsername.js +8 -0
- package/packages/happy2-server/dist/modules/bot/impl/normalizedUsername.js.map +1 -0
- package/packages/happy2-server/dist/modules/bot/impl/requireFileDb.d.ts +7 -0
- package/packages/happy2-server/dist/modules/bot/impl/requireFileDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/bot/impl/requireFileDb.js +19 -0
- package/packages/happy2-server/dist/modules/bot/impl/requireFileDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/call/callCanSignal.d.ts +12 -0
- package/packages/happy2-server/dist/modules/call/callCanSignal.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/call/callCanSignal.js +28 -0
- package/packages/happy2-server/dist/modules/call/callCanSignal.js.map +1 -0
- package/packages/happy2-server/dist/modules/call/callCreate.d.ts +17 -0
- package/packages/happy2-server/dist/modules/call/callCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/call/callCreate.js +130 -0
- package/packages/happy2-server/dist/modules/call/callCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/call/callEnd.d.ts +15 -0
- package/packages/happy2-server/dist/modules/call/callEnd.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/call/callEnd.js +70 -0
- package/packages/happy2-server/dist/modules/call/callEnd.js.map +1 -0
- package/packages/happy2-server/dist/modules/call/callGet.d.ts +8 -0
- package/packages/happy2-server/dist/modules/call/callGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/call/callGet.js +14 -0
- package/packages/happy2-server/dist/modules/call/callGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/call/callList.d.ts +12 -0
- package/packages/happy2-server/dist/modules/call/callList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/call/callList.js +36 -0
- package/packages/happy2-server/dist/modules/call/callList.js.map +1 -0
- package/packages/happy2-server/dist/modules/call/callParticipationUpdate.d.ts +15 -0
- package/packages/happy2-server/dist/modules/call/callParticipationUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/call/callParticipationUpdate.js +93 -0
- package/packages/happy2-server/dist/modules/call/callParticipationUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/call/impl/getCallProjectionDb.d.ts +8 -0
- package/packages/happy2-server/dist/modules/call/impl/getCallProjectionDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/call/impl/getCallProjectionDb.js +67 -0
- package/packages/happy2-server/dist/modules/call/impl/getCallProjectionDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/actions.test.d.ts +2 -0
- package/packages/happy2-server/dist/modules/chat/actions.test.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/{collaboration/repository.test.js → chat/actions.test.js} +316 -155
- package/packages/happy2-server/dist/modules/chat/actions.test.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/areaHint.d.ts +3 -0
- package/packages/happy2-server/dist/modules/chat/areaHint.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/areaHint.js +9 -0
- package/packages/happy2-server/dist/modules/chat/areaHint.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/asFile.d.ts +3 -0
- package/packages/happy2-server/dist/modules/chat/asFile.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/asFile.js +21 -0
- package/packages/happy2-server/dist/modules/chat/asFile.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/asServiceMessage.d.ts +3 -0
- package/packages/happy2-server/dist/modules/chat/asServiceMessage.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/asServiceMessage.js +19 -0
- package/packages/happy2-server/dist/modules/chat/asServiceMessage.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/asUser.d.ts +3 -0
- package/packages/happy2-server/dist/modules/chat/asUser.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/asUser.js +22 -0
- package/packages/happy2-server/dist/modules/chat/asUser.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelAdvance.d.ts +18 -0
- package/packages/happy2-server/dist/modules/chat/channelAdvance.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelAdvance.js +38 -0
- package/packages/happy2-server/dist/modules/chat/channelAdvance.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelCreate.d.ts +18 -0
- package/packages/happy2-server/dist/modules/chat/channelCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelCreate.js +78 -0
- package/packages/happy2-server/dist/modules/chat/channelCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelDefaultAgentUpdate.d.ts +15 -0
- package/packages/happy2-server/dist/modules/chat/channelDefaultAgentUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelDefaultAgentUpdate.js +66 -0
- package/packages/happy2-server/dist/modules/chat/channelDefaultAgentUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelDelete.d.ts +15 -0
- package/packages/happy2-server/dist/modules/chat/channelDelete.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelDelete.js +67 -0
- package/packages/happy2-server/dist/modules/chat/channelDelete.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelDirectoryList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/chat/channelDirectoryList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelDirectoryList.js +21 -0
- package/packages/happy2-server/dist/modules/chat/channelDirectoryList.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelJoinPublic.d.ts +11 -0
- package/packages/happy2-server/dist/modules/chat/channelJoinPublic.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelJoinPublic.js +68 -0
- package/packages/happy2-server/dist/modules/chat/channelJoinPublic.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelLeave.d.ts +10 -0
- package/packages/happy2-server/dist/modules/chat/channelLeave.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelLeave.js +67 -0
- package/packages/happy2-server/dist/modules/chat/channelLeave.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelMemberAdd.d.ts +15 -0
- package/packages/happy2-server/dist/modules/chat/channelMemberAdd.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelMemberAdd.js +79 -0
- package/packages/happy2-server/dist/modules/chat/channelMemberAdd.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelMemberRemove.d.ts +14 -0
- package/packages/happy2-server/dist/modules/chat/channelMemberRemove.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelMemberRemove.js +109 -0
- package/packages/happy2-server/dist/modules/chat/channelMemberRemove.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelMemberSetRole.d.ts +15 -0
- package/packages/happy2-server/dist/modules/chat/channelMemberSetRole.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelMemberSetRole.js +107 -0
- package/packages/happy2-server/dist/modules/chat/channelMemberSetRole.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelPolicyUpdate.d.ts +19 -0
- package/packages/happy2-server/dist/modules/chat/channelPolicyUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelPolicyUpdate.js +66 -0
- package/packages/happy2-server/dist/modules/chat/channelPolicyUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelSetArchived.d.ts +16 -0
- package/packages/happy2-server/dist/modules/chat/channelSetArchived.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelSetArchived.js +41 -0
- package/packages/happy2-server/dist/modules/chat/channelSetArchived.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelTopicUpdate.d.ts +11 -0
- package/packages/happy2-server/dist/modules/chat/channelTopicUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelTopicUpdate.js +32 -0
- package/packages/happy2-server/dist/modules/chat/channelTopicUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelUpdate.d.ts +21 -0
- package/packages/happy2-server/dist/modules/chat/channelUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelUpdate.js +99 -0
- package/packages/happy2-server/dist/modules/chat/channelUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelUpdateInsert.d.ts +15 -0
- package/packages/happy2-server/dist/modules/chat/channelUpdateInsert.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelUpdateInsert.js +33 -0
- package/packages/happy2-server/dist/modules/chat/channelUpdateInsert.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatAccess.d.ts +5 -0
- package/packages/happy2-server/dist/modules/chat/chatAccess.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatAccess.js +2 -0
- package/packages/happy2-server/dist/modules/chat/chatAccess.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatAdvanceWithSequence.d.ts +10 -0
- package/packages/happy2-server/dist/modules/chat/chatAdvanceWithSequence.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatAdvanceWithSequence.js +43 -0
- package/packages/happy2-server/dist/modules/chat/chatAdvanceWithSequence.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatAppendAudit.d.ts +15 -0
- package/packages/happy2-server/dist/modules/chat/chatAppendAudit.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatAppendAudit.js +20 -0
- package/packages/happy2-server/dist/modules/chat/chatAppendAudit.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatBookmarkCreate.d.ts +20 -0
- package/packages/happy2-server/dist/modules/chat/chatBookmarkCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatBookmarkCreate.js +68 -0
- package/packages/happy2-server/dist/modules/chat/chatBookmarkCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatBookmarkDelete.d.ts +14 -0
- package/packages/happy2-server/dist/modules/chat/chatBookmarkDelete.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatBookmarkDelete.js +42 -0
- package/packages/happy2-server/dist/modules/chat/chatBookmarkDelete.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatBookmarkList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/chat/chatBookmarkList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatBookmarkList.js +46 -0
- package/packages/happy2-server/dist/modules/chat/chatBookmarkList.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatCanAccess.d.ts +7 -0
- package/packages/happy2-server/dist/modules/chat/chatCanAccess.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatCanAccess.js +10 -0
- package/packages/happy2-server/dist/modules/chat/chatCanAccess.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatCanPost.d.ts +7 -0
- package/packages/happy2-server/dist/modules/chat/chatCanPost.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatCanPost.js +12 -0
- package/packages/happy2-server/dist/modules/chat/chatCanPost.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatGet.d.ts +8 -0
- package/packages/happy2-server/dist/modules/chat/chatGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatGet.js +14 -0
- package/packages/happy2-server/dist/modules/chat/chatGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatGetAccess.d.ts +8 -0
- package/packages/happy2-server/dist/modules/chat/chatGetAccess.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatGetAccess.js +53 -0
- package/packages/happy2-server/dist/modules/chat/chatGetAccess.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatHint.d.ts +3 -0
- package/packages/happy2-server/dist/modules/chat/chatHint.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatHint.js +14 -0
- package/packages/happy2-server/dist/modules/chat/chatHint.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatIsPostingRestricted.d.ts +7 -0
- package/packages/happy2-server/dist/modules/chat/chatIsPostingRestricted.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatIsPostingRestricted.js +18 -0
- package/packages/happy2-server/dist/modules/chat/chatIsPostingRestricted.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/chat/chatList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatList.js +21 -0
- package/packages/happy2-server/dist/modules/chat/chatList.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatMarkRead.d.ts +15 -0
- package/packages/happy2-server/dist/modules/chat/chatMarkRead.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatMarkRead.js +122 -0
- package/packages/happy2-server/dist/modules/chat/chatMarkRead.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatMemberList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/chat/chatMemberList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatMemberList.js +36 -0
- package/packages/happy2-server/dist/modules/chat/chatMemberList.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatMembershipList.d.ts +12 -0
- package/packages/happy2-server/dist/modules/chat/chatMembershipList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatMembershipList.js +32 -0
- package/packages/happy2-server/dist/modules/chat/chatMembershipList.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatPinList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/chat/chatPinList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatPinList.js +41 -0
- package/packages/happy2-server/dist/modules/chat/chatPinList.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatRequireManager.d.ts +8 -0
- package/packages/happy2-server/dist/modules/chat/chatRequireManager.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatRequireManager.js +47 -0
- package/packages/happy2-server/dist/modules/chat/chatRequireManager.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatStarReorder.d.ts +10 -0
- package/packages/happy2-server/dist/modules/chat/chatStarReorder.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatStarReorder.js +49 -0
- package/packages/happy2-server/dist/modules/chat/chatStarReorder.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatStarSet.d.ts +10 -0
- package/packages/happy2-server/dist/modules/chat/chatStarSet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatStarSet.js +61 -0
- package/packages/happy2-server/dist/modules/chat/chatStarSet.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatUpdateInsert.d.ts +15 -0
- package/packages/happy2-server/dist/modules/chat/chatUpdateInsert.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatUpdateInsert.js +35 -0
- package/packages/happy2-server/dist/modules/chat/chatUpdateInsert.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatWorkspaceCanAccess.d.ts +7 -0
- package/packages/happy2-server/dist/modules/chat/chatWorkspaceCanAccess.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatWorkspaceCanAccess.js +25 -0
- package/packages/happy2-server/dist/modules/chat/chatWorkspaceCanAccess.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatWorkspaceGetTarget.d.ts +8 -0
- package/packages/happy2-server/dist/modules/chat/chatWorkspaceGetTarget.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatWorkspaceGetTarget.js +36 -0
- package/packages/happy2-server/dist/modules/chat/chatWorkspaceGetTarget.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/directMessageCreate.d.ts +11 -0
- package/packages/happy2-server/dist/modules/chat/directMessageCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/directMessageCreate.js +78 -0
- package/packages/happy2-server/dist/modules/chat/directMessageCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/directMessageCreateGroup.d.ts +16 -0
- package/packages/happy2-server/dist/modules/chat/directMessageCreateGroup.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/directMessageCreateGroup.js +84 -0
- package/packages/happy2-server/dist/modules/chat/directMessageCreateGroup.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/fileCanAccessWith.d.ts +7 -0
- package/packages/happy2-server/dist/modules/chat/fileCanAccessWith.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/fileCanAccessWith.js +18 -0
- package/packages/happy2-server/dist/modules/chat/fileCanAccessWith.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/fileSelection.d.ts +204 -0
- package/packages/happy2-server/dist/modules/chat/fileSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/fileSelection.js +15 -0
- package/packages/happy2-server/dist/modules/chat/fileSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/advanceChat.d.ts +10 -0
- package/packages/happy2-server/dist/modules/chat/impl/advanceChat.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/advanceChat.js +13 -0
- package/packages/happy2-server/dist/modules/chat/impl/advanceChat.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/asChat.d.ts +3 -0
- package/packages/happy2-server/dist/modules/chat/impl/asChat.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/asChat.js +49 -0
- package/packages/happy2-server/dist/modules/chat/impl/asChat.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatDescendantIds.d.ts +4 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatDescendantIds.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatDescendantIds.js +27 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatDescendantIds.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatDescendantMembershipSync.d.ts +13 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatDescendantMembershipSync.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatDescendantMembershipSync.js +70 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatDescendantMembershipSync.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatMutation.d.ts +6 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatMutation.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatMutation.js +2 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatMutation.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatSelection.d.ts +559 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatSelection.js +41 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatWorkspaceTarget.d.ts +9 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatWorkspaceTarget.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatWorkspaceTarget.js +2 -0
- package/packages/happy2-server/dist/modules/chat/impl/chatWorkspaceTarget.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/createUserAddedServiceMessageDb.d.ts +16 -0
- package/packages/happy2-server/dist/modules/chat/impl/createUserAddedServiceMessageDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/createUserAddedServiceMessageDb.js +54 -0
- package/packages/happy2-server/dist/modules/chat/impl/createUserAddedServiceMessageDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/requireActiveIdentityDb.d.ts +7 -0
- package/packages/happy2-server/dist/modules/chat/impl/requireActiveIdentityDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/impl/requireActiveIdentityDb.js +22 -0
- package/packages/happy2-server/dist/modules/chat/impl/requireActiveIdentityDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/isUniqueConstraint.d.ts +2 -0
- package/packages/happy2-server/dist/modules/chat/isUniqueConstraint.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/isUniqueConstraint.js +10 -0
- package/packages/happy2-server/dist/modules/chat/isUniqueConstraint.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/messageRequireInChat.d.ts +10 -0
- package/packages/happy2-server/dist/modules/chat/messageRequireInChat.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/messageRequireInChat.js +22 -0
- package/packages/happy2-server/dist/modules/chat/messageRequireInChat.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/number.d.ts +2 -0
- package/packages/happy2-server/dist/modules/chat/number.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/number.js +12 -0
- package/packages/happy2-server/dist/modules/chat/number.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/optionalText.d.ts +2 -0
- package/packages/happy2-server/dist/modules/chat/optionalText.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/optionalText.js +5 -0
- package/packages/happy2-server/dist/modules/chat/optionalText.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/text.d.ts +2 -0
- package/packages/happy2-server/dist/modules/chat/text.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/text.js +10 -0
- package/packages/happy2-server/dist/modules/chat/text.js.map +1 -0
- package/packages/happy2-server/dist/modules/{collaboration → chat}/types.d.ts +17 -14
- package/packages/happy2-server/dist/modules/chat/types.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/types.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/userRequireActive.d.ts +7 -0
- package/packages/happy2-server/dist/modules/chat/userRequireActive.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/userRequireActive.js +21 -0
- package/packages/happy2-server/dist/modules/chat/userRequireActive.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.d.ts +7 -0
- package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.js +21 -0
- package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/userSelection.d.ts +231 -0
- package/packages/happy2-server/dist/modules/chat/userSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/userSelection.js +16 -0
- package/packages/happy2-server/dist/modules/chat/userSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/config/defaults.js +1 -1
- package/packages/happy2-server/dist/modules/config/defaults.js.map +1 -1
- package/packages/happy2-server/dist/modules/config/defaults.test.js +1 -1
- package/packages/happy2-server/dist/modules/config/defaults.test.js.map +1 -1
- package/packages/happy2-server/dist/modules/config/loader.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/config/loader.js +0 -1
- package/packages/happy2-server/dist/modules/config/loader.js.map +1 -1
- package/packages/happy2-server/dist/modules/config/type.d.ts +0 -1
- package/packages/happy2-server/dist/modules/config/type.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/data-export/dataExportBuildArtifact.d.ts +8 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportBuildArtifact.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportBuildArtifact.js +148 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportBuildArtifact.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportCanAccessChat.d.ts +7 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportCanAccessChat.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportCanAccessChat.js +19 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportCanAccessChat.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportCancel.d.ts +13 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportCancel.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportCancel.js +41 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportCancel.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportClaimPending.d.ts +8 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportClaimPending.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportClaimPending.js +53 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportClaimPending.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportCompleteClaim.d.ts +8 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportCompleteClaim.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportCompleteClaim.js +63 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportCompleteClaim.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportFailClaim.d.ts +8 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportFailClaim.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportFailClaim.js +24 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportFailClaim.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportGet.d.ts +8 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportGet.js +16 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportList.d.ts +15 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportList.js +37 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportList.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportRequest.d.ts +16 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportRequest.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportRequest.js +61 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportRequest.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportRequireExistingUser.d.ts +7 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportRequireExistingUser.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportRequireExistingUser.js +19 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportRequireExistingUser.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportRunDue.d.ts +11 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportRunDue.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportRunDue.js +46 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportRunDue.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportUpdate.d.ts +17 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportUpdate.js +87 -0
- package/packages/happy2-server/dist/modules/data-export/dataExportUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/asExport.d.ts +3 -0
- package/packages/happy2-server/dist/modules/data-export/impl/asExport.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/asExport.js +21 -0
- package/packages/happy2-server/dist/modules/data-export/impl/asExport.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/assertExportTransition.d.ts +3 -0
- package/packages/happy2-server/dist/modules/data-export/impl/assertExportTransition.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/assertExportTransition.js +14 -0
- package/packages/happy2-server/dist/modules/data-export/impl/assertExportTransition.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/claimedDataExport.d.ts +5 -0
- package/packages/happy2-server/dist/modules/data-export/impl/claimedDataExport.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/claimedDataExport.js +2 -0
- package/packages/happy2-server/dist/modules/data-export/impl/claimedDataExport.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/dataExportRemoveUnclaimedArtifact.d.ts +6 -0
- package/packages/happy2-server/dist/modules/data-export/impl/dataExportRemoveUnclaimedArtifact.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/dataExportRemoveUnclaimedArtifact.js +9 -0
- package/packages/happy2-server/dist/modules/data-export/impl/dataExportRemoveUnclaimedArtifact.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/exportJobDb.d.ts +8 -0
- package/packages/happy2-server/dist/modules/data-export/impl/exportJobDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/exportJobDb.js +21 -0
- package/packages/happy2-server/dist/modules/data-export/impl/exportJobDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/exportSelection.d.ts +231 -0
- package/packages/happy2-server/dist/modules/data-export/impl/exportSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/exportSelection.js +16 -0
- package/packages/happy2-server/dist/modules/data-export/impl/exportSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/objectValue.d.ts +2 -0
- package/packages/happy2-server/dist/modules/data-export/impl/objectValue.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/data-export/impl/objectValue.js +6 -0
- package/packages/happy2-server/dist/modules/data-export/impl/objectValue.js.map +1 -0
- package/packages/happy2-server/dist/modules/drizzle.d.ts +2 -0
- package/packages/happy2-server/dist/modules/drizzle.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/drizzle.js +16 -0
- package/packages/happy2-server/dist/modules/drizzle.js.map +1 -1
- package/packages/happy2-server/dist/modules/drizzle.test.d.ts +2 -0
- package/packages/happy2-server/dist/modules/drizzle.test.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/drizzle.test.js +49 -0
- package/packages/happy2-server/dist/modules/drizzle.test.js.map +1 -0
- package/packages/happy2-server/dist/modules/emoji/customEmojiCreate.d.ts +20 -0
- package/packages/happy2-server/dist/modules/emoji/customEmojiCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/emoji/customEmojiCreate.js +69 -0
- package/packages/happy2-server/dist/modules/emoji/customEmojiCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/emoji/customEmojiDelete.d.ts +10 -0
- package/packages/happy2-server/dist/modules/emoji/customEmojiDelete.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/emoji/customEmojiDelete.js +78 -0
- package/packages/happy2-server/dist/modules/emoji/customEmojiDelete.js.map +1 -0
- package/packages/happy2-server/dist/modules/emoji/customEmojiList.d.ts +13 -0
- package/packages/happy2-server/dist/modules/emoji/customEmojiList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/emoji/customEmojiList.js +31 -0
- package/packages/happy2-server/dist/modules/emoji/customEmojiList.js.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileCanAccess.d.ts +7 -0
- package/packages/happy2-server/dist/modules/file/fileCanAccess.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileCanAccess.js +10 -0
- package/packages/happy2-server/dist/modules/file/fileCanAccess.js.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileCreate.d.ts +11 -0
- package/packages/happy2-server/dist/modules/file/fileCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileCreate.js +41 -0
- package/packages/happy2-server/dist/modules/file/fileCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileDeleteOwnedUnreferenced.d.ts +7 -0
- package/packages/happy2-server/dist/modules/file/fileDeleteOwnedUnreferenced.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileDeleteOwnedUnreferenced.js +32 -0
- package/packages/happy2-server/dist/modules/file/fileDeleteOwnedUnreferenced.js.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileFind.d.ts +8 -0
- package/packages/happy2-server/dist/modules/file/fileFind.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileFind.js +17 -0
- package/packages/happy2-server/dist/modules/file/fileFind.js.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileFindUploadedBy.d.ts +8 -0
- package/packages/happy2-server/dist/modules/file/fileFindUploadedBy.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileFindUploadedBy.js +17 -0
- package/packages/happy2-server/dist/modules/file/fileFindUploadedBy.js.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileList.d.ts +17 -0
- package/packages/happy2-server/dist/modules/file/fileList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileList.js +53 -0
- package/packages/happy2-server/dist/modules/file/fileList.js.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileListStored.d.ts +8 -0
- package/packages/happy2-server/dist/modules/file/fileListStored.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/file/fileListStored.js +18 -0
- package/packages/happy2-server/dist/modules/file/fileListStored.js.map +1 -0
- package/packages/happy2-server/dist/modules/file/impl/asFile.d.ts +4 -0
- package/packages/happy2-server/dist/modules/file/impl/asFile.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/file/impl/asFile.js +22 -0
- package/packages/happy2-server/dist/modules/file/impl/asFile.js.map +1 -0
- package/packages/happy2-server/dist/modules/file/impl/fileRow.d.ts +3 -0
- package/packages/happy2-server/dist/modules/file/impl/fileRow.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/file/impl/fileRow.js +2 -0
- package/packages/happy2-server/dist/modules/file/impl/fileRow.js.map +1 -0
- package/packages/happy2-server/dist/modules/file/impl/hasFileReference.d.ts +4 -0
- package/packages/happy2-server/dist/modules/file/impl/hasFileReference.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/file/impl/hasFileReference.js +112 -0
- package/packages/happy2-server/dist/modules/file/impl/hasFileReference.js.map +1 -0
- package/packages/happy2-server/dist/modules/file/types.d.ts +17 -0
- package/packages/happy2-server/dist/modules/file/types.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/file/types.js +2 -0
- package/packages/happy2-server/dist/modules/file/types.js.map +1 -0
- package/packages/happy2-server/dist/modules/files/routes.test.js +93 -16
- package/packages/happy2-server/dist/modules/files/routes.test.js.map +1 -1
- package/packages/happy2-server/dist/modules/files/storage.d.ts +13 -4
- package/packages/happy2-server/dist/modules/files/storage.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/files/storage.js +224 -54
- package/packages/happy2-server/dist/modules/files/storage.js.map +1 -1
- package/packages/happy2-server/dist/modules/files/storage.test.js +80 -29
- package/packages/happy2-server/dist/modules/files/storage.test.js.map +1 -1
- package/packages/happy2-server/dist/modules/integration/apiCredentialAuthenticate.d.ts +8 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialAuthenticate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialAuthenticate.js +54 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialAuthenticate.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialCreate.d.ts +14 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialCreate.js +56 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialList.js +23 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialList.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialRevoke.d.ts +7 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialRevoke.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialRevoke.js +28 -0
- package/packages/happy2-server/dist/modules/integration/apiCredentialRevoke.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/asDelivery.d.ts +3 -0
- package/packages/happy2-server/dist/modules/integration/asDelivery.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/asDelivery.js +16 -0
- package/packages/happy2-server/dist/modules/integration/asDelivery.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/botRequire.d.ts +7 -0
- package/packages/happy2-server/dist/modules/integration/botRequire.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/botRequire.js +10 -0
- package/packages/happy2-server/dist/modules/integration/botRequire.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/claimedDelivery.d.ts +7 -0
- package/packages/happy2-server/dist/modules/integration/claimedDelivery.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/claimedDelivery.js +2 -0
- package/packages/happy2-server/dist/modules/integration/claimedDelivery.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/constraintConflict.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integration/constraintConflict.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/constraintConflict.js +6 -0
- package/packages/happy2-server/dist/modules/integration/constraintConflict.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/deliverySelection.d.ts +153 -0
- package/packages/happy2-server/dist/modules/integration/deliverySelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/deliverySelection.js +12 -0
- package/packages/happy2-server/dist/modules/integration/deliverySelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/asCredential.d.ts +3 -0
- package/packages/happy2-server/dist/modules/integration/impl/asCredential.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/asCredential.js +18 -0
- package/packages/happy2-server/dist/modules/integration/impl/asCredential.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/asIntegration.d.ts +3 -0
- package/packages/happy2-server/dist/modules/integration/impl/asIntegration.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/asIntegration.js +19 -0
- package/packages/happy2-server/dist/modules/integration/impl/asIntegration.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/asSlashCommand.d.ts +3 -0
- package/packages/happy2-server/dist/modules/integration/impl/asSlashCommand.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/asSlashCommand.js +17 -0
- package/packages/happy2-server/dist/modules/integration/impl/asSlashCommand.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/createIntegrationRecord.d.ts +15 -0
- package/packages/happy2-server/dist/modules/integration/impl/createIntegrationRecord.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/createIntegrationRecord.js +25 -0
- package/packages/happy2-server/dist/modules/integration/impl/createIntegrationRecord.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/credentialSelection.d.ts +174 -0
- package/packages/happy2-server/dist/modules/integration/impl/credentialSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/credentialSelection.js +13 -0
- package/packages/happy2-server/dist/modules/integration/impl/credentialSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/findSlashSubscriptionDb.d.ts +11 -0
- package/packages/happy2-server/dist/modules/integration/impl/findSlashSubscriptionDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/findSlashSubscriptionDb.js +22 -0
- package/packages/happy2-server/dist/modules/integration/impl/findSlashSubscriptionDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/futureDate.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integration/impl/futureDate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/futureDate.js +8 -0
- package/packages/happy2-server/dist/modules/integration/impl/futureDate.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/getSlashCommandDb.d.ts +8 -0
- package/packages/happy2-server/dist/modules/integration/impl/getSlashCommandDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/getSlashCommandDb.js +20 -0
- package/packages/happy2-server/dist/modules/integration/impl/getSlashCommandDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/integrationSelection.d.ts +172 -0
- package/packages/happy2-server/dist/modules/integration/impl/integrationSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/integrationSelection.js +13 -0
- package/packages/happy2-server/dist/modules/integration/impl/integrationSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/maxEventPayload.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integration/impl/maxEventPayload.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/maxEventPayload.js +2 -0
- package/packages/happy2-server/dist/modules/integration/impl/maxEventPayload.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/normalizeScopes.d.ts +3 -0
- package/packages/happy2-server/dist/modules/integration/impl/normalizeScopes.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/normalizeScopes.js +8 -0
- package/packages/happy2-server/dist/modules/integration/impl/normalizeScopes.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/normalizedCommand.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integration/impl/normalizedCommand.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/normalizedCommand.js +8 -0
- package/packages/happy2-server/dist/modules/integration/impl/normalizedCommand.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/optionalTextBody.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integration/impl/optionalTextBody.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/optionalTextBody.js +9 -0
- package/packages/happy2-server/dist/modules/integration/impl/optionalTextBody.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/requireChatMemberDb.d.ts +7 -0
- package/packages/happy2-server/dist/modules/integration/impl/requireChatMemberDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/requireChatMemberDb.js +22 -0
- package/packages/happy2-server/dist/modules/integration/impl/requireChatMemberDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/requireScopeSubset.d.ts +3 -0
- package/packages/happy2-server/dist/modules/integration/impl/requireScopeSubset.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/requireScopeSubset.js +6 -0
- package/packages/happy2-server/dist/modules/integration/impl/requireScopeSubset.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/slashCommandSelection.d.ts +153 -0
- package/packages/happy2-server/dist/modules/integration/impl/slashCommandSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/slashCommandSelection.js +12 -0
- package/packages/happy2-server/dist/modules/integration/impl/slashCommandSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/slashEventType.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integration/impl/slashEventType.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/impl/slashEventType.js +4 -0
- package/packages/happy2-server/dist/modules/integration/impl/slashEventType.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationAppendAudit.d.ts +7 -0
- package/packages/happy2-server/dist/modules/integration/integrationAppendAudit.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationAppendAudit.js +18 -0
- package/packages/happy2-server/dist/modules/integration/integrationAppendAudit.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationCreate.d.ts +15 -0
- package/packages/happy2-server/dist/modules/integration/integrationCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationCreate.js +11 -0
- package/packages/happy2-server/dist/modules/integration/integrationCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationFinishChange.d.ts +8 -0
- package/packages/happy2-server/dist/modules/integration/integrationFinishChange.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationFinishChange.js +22 -0
- package/packages/happy2-server/dist/modules/integration/integrationFinishChange.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationGet.d.ts +8 -0
- package/packages/happy2-server/dist/modules/integration/integrationGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationGet.js +20 -0
- package/packages/happy2-server/dist/modules/integration/integrationGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationInsert.d.ts +17 -0
- package/packages/happy2-server/dist/modules/integration/integrationInsert.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationInsert.js +29 -0
- package/packages/happy2-server/dist/modules/integration/integrationInsert.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/integration/integrationList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationList.js +20 -0
- package/packages/happy2-server/dist/modules/integration/integrationList.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationRecordChange.d.ts +8 -0
- package/packages/happy2-server/dist/modules/integration/integrationRecordChange.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationRecordChange.js +33 -0
- package/packages/happy2-server/dist/modules/integration/integrationRecordChange.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationRequire.d.ts +8 -0
- package/packages/happy2-server/dist/modules/integration/integrationRequire.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationRequire.js +14 -0
- package/packages/happy2-server/dist/modules/integration/integrationRequire.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationRevoke.d.ts +8 -0
- package/packages/happy2-server/dist/modules/integration/integrationRevoke.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/integrationRevoke.js +53 -0
- package/packages/happy2-server/dist/modules/integration/integrationRevoke.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/number.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integration/number.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/number.js +10 -0
- package/packages/happy2-server/dist/modules/integration/number.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/optionalText.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integration/optionalText.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/optionalText.js +5 -0
- package/packages/happy2-server/dist/modules/integration/optionalText.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/optionalTrimmed.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integration/optionalTrimmed.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/optionalTrimmed.js +10 -0
- package/packages/happy2-server/dist/modules/integration/optionalTrimmed.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/parseScopes.d.ts +3 -0
- package/packages/happy2-server/dist/modules/integration/parseScopes.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/parseScopes.js +9 -0
- package/packages/happy2-server/dist/modules/integration/parseScopes.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/requiredTrimmed.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integration/requiredTrimmed.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/requiredTrimmed.js +8 -0
- package/packages/happy2-server/dist/modules/integration/requiredTrimmed.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/serializedPayload.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integration/serializedPayload.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/serializedPayload.js +15 -0
- package/packages/happy2-server/dist/modules/integration/serializedPayload.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/slashCommandCreate.d.ts +18 -0
- package/packages/happy2-server/dist/modules/integration/slashCommandCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/slashCommandCreate.js +71 -0
- package/packages/happy2-server/dist/modules/integration/slashCommandCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/slashCommandInvoke.d.ts +13 -0
- package/packages/happy2-server/dist/modules/integration/slashCommandInvoke.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/slashCommandInvoke.js +58 -0
- package/packages/happy2-server/dist/modules/integration/slashCommandInvoke.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/slashCommandList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/integration/slashCommandList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/slashCommandList.js +22 -0
- package/packages/happy2-server/dist/modules/integration/slashCommandList.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/stringArray.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integration/stringArray.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/stringArray.js +8 -0
- package/packages/happy2-server/dist/modules/integration/stringArray.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/text.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integration/text.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/text.js +8 -0
- package/packages/happy2-server/dist/modules/integration/text.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/userRequireIntegrationActive.d.ts +7 -0
- package/packages/happy2-server/dist/modules/integration/userRequireIntegrationActive.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/userRequireIntegrationActive.js +20 -0
- package/packages/happy2-server/dist/modules/integration/userRequireIntegrationActive.js.map +1 -0
- package/packages/happy2-server/dist/modules/integration/userRequireIntegrationAdmin.d.ts +7 -0
- package/packages/happy2-server/dist/modules/integration/userRequireIntegrationAdmin.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integration/userRequireIntegrationAdmin.js +20 -0
- package/packages/happy2-server/dist/modules/integration/userRequireIntegrationAdmin.js.map +1 -0
- package/packages/happy2-server/dist/modules/integrations/actions.test.d.ts +2 -0
- package/packages/happy2-server/dist/modules/integrations/actions.test.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/integrations/{repository.test.js → actions.test.js} +159 -79
- package/packages/happy2-server/dist/modules/integrations/actions.test.js.map +1 -0
- package/packages/happy2-server/dist/modules/integrations/routes.test.js +43 -38
- package/packages/happy2-server/dist/modules/integrations/routes.test.js.map +1 -1
- package/packages/happy2-server/dist/modules/message/impl/dueMessages.d.ts +88 -0
- package/packages/happy2-server/dist/modules/message/impl/dueMessages.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/impl/dueMessages.js +17 -0
- package/packages/happy2-server/dist/modules/message/impl/dueMessages.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/impl/earliestDate.d.ts +2 -0
- package/packages/happy2-server/dist/modules/message/impl/earliestDate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/impl/earliestDate.js +8 -0
- package/packages/happy2-server/dist/modules/message/impl/earliestDate.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/impl/findClientMutationDb.d.ts +7 -0
- package/packages/happy2-server/dist/modules/message/impl/findClientMutationDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/impl/findClientMutationDb.js +26 -0
- package/packages/happy2-server/dist/modules/message/impl/findClientMutationDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/impl/messageSendInput.d.ts +22 -0
- package/packages/happy2-server/dist/modules/message/impl/messageSendInput.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/impl/messageSendInput.js +2 -0
- package/packages/happy2-server/dist/modules/message/impl/messageSendInput.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/impl/sendMessageDbInput.d.ts +5 -0
- package/packages/happy2-server/dist/modules/message/impl/sendMessageDbInput.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/impl/sendMessageDbInput.js +2 -0
- package/packages/happy2-server/dist/modules/message/impl/sendMessageDbInput.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/impl/storeClientMutationDb.d.ts +7 -0
- package/packages/happy2-server/dist/modules/message/impl/storeClientMutationDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/impl/storeClientMutationDb.js +25 -0
- package/packages/happy2-server/dist/modules/message/impl/storeClientMutationDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageDelete.d.ts +11 -0
- package/packages/happy2-server/dist/modules/message/messageDelete.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageDelete.js +62 -0
- package/packages/happy2-server/dist/modules/message/messageDelete.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageEdit.d.ts +17 -0
- package/packages/happy2-server/dist/modules/message/messageEdit.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageEdit.js +98 -0
- package/packages/happy2-server/dist/modules/message/messageEdit.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageExpireDue.d.ts +8 -0
- package/packages/happy2-server/dist/modules/message/messageExpireDue.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageExpireDue.js +56 -0
- package/packages/happy2-server/dist/modules/message/messageExpireDue.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageForward.d.ts +16 -0
- package/packages/happy2-server/dist/modules/message/messageForward.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageForward.js +159 -0
- package/packages/happy2-server/dist/modules/message/messageForward.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageGet.d.ts +8 -0
- package/packages/happy2-server/dist/modules/message/messageGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageGet.js +14 -0
- package/packages/happy2-server/dist/modules/message/messageGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageGetProjection.d.ts +8 -0
- package/packages/happy2-server/dist/modules/message/messageGetProjection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageGetProjection.js +229 -0
- package/packages/happy2-server/dist/modules/message/messageGetProjection.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageIndexForSearch.d.ts +7 -0
- package/packages/happy2-server/dist/modules/message/messageIndexForSearch.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageIndexForSearch.js +41 -0
- package/packages/happy2-server/dist/modules/message/messageIndexForSearch.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageIsPast.d.ts +2 -0
- package/packages/happy2-server/dist/modules/message/messageIsPast.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageIsPast.js +4 -0
- package/packages/happy2-server/dist/modules/message/messageIsPast.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageList.d.ts +18 -0
- package/packages/happy2-server/dist/modules/message/messageList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageList.js +47 -0
- package/packages/happy2-server/dist/modules/message/messageList.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messagePinSet.d.ts +14 -0
- package/packages/happy2-server/dist/modules/message/messagePinSet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messagePinSet.js +62 -0
- package/packages/happy2-server/dist/modules/message/messagePinSet.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageReactionSet.d.ts +17 -0
- package/packages/happy2-server/dist/modules/message/messageReactionSet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageReactionSet.js +119 -0
- package/packages/happy2-server/dist/modules/message/messageReactionSet.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageRecordDelivery.d.ts +18 -0
- package/packages/happy2-server/dist/modules/message/messageRecordDelivery.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageRecordDelivery.js +116 -0
- package/packages/happy2-server/dist/modules/message/messageRecordDelivery.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageReplaceMentions.d.ts +10 -0
- package/packages/happy2-server/dist/modules/message/messageReplaceMentions.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageReplaceMentions.js +63 -0
- package/packages/happy2-server/dist/modules/message/messageReplaceMentions.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageRevisionList.d.ts +13 -0
- package/packages/happy2-server/dist/modules/message/messageRevisionList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageRevisionList.js +36 -0
- package/packages/happy2-server/dist/modules/message/messageRevisionList.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageSend.d.ts +12 -0
- package/packages/happy2-server/dist/modules/message/messageSend.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageSend.js +12 -0
- package/packages/happy2-server/dist/modules/message/messageSend.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageSendAutomated.d.ts +18 -0
- package/packages/happy2-server/dist/modules/message/messageSendAutomated.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageSendAutomated.js +32 -0
- package/packages/happy2-server/dist/modules/message/messageSendAutomated.js.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageSendInTransaction.d.ts +12 -0
- package/packages/happy2-server/dist/modules/message/messageSendInTransaction.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/message/messageSendInTransaction.js +260 -0
- package/packages/happy2-server/dist/modules/message/messageSendInTransaction.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanApply.d.ts +15 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanApply.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanApply.js +73 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanApply.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanExpireDue.d.ts +11 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanExpireDue.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanExpireDue.js +85 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanExpireDue.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanList.d.ts +14 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanList.js +42 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanList.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanRevoke.d.ts +14 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanRevoke.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanRevoke.js +62 -0
- package/packages/happy2-server/dist/modules/moderation/accountBanRevoke.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/accountTarget.d.ts +10 -0
- package/packages/happy2-server/dist/modules/moderation/impl/accountTarget.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/accountTarget.js +2 -0
- package/packages/happy2-server/dist/modules/moderation/impl/accountTarget.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/accountTargetDb.d.ts +8 -0
- package/packages/happy2-server/dist/modules/moderation/impl/accountTargetDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/accountTargetDb.js +36 -0
- package/packages/happy2-server/dist/modules/moderation/impl/accountTargetDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/accountTargetState.d.ts +3 -0
- package/packages/happy2-server/dist/modules/moderation/impl/accountTargetState.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/accountTargetState.js +11 -0
- package/packages/happy2-server/dist/modules/moderation/impl/accountTargetState.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/advanceChatMutation.d.ts +13 -0
- package/packages/happy2-server/dist/modules/moderation/impl/advanceChatMutation.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/advanceChatMutation.js +38 -0
- package/packages/happy2-server/dist/modules/moderation/impl/advanceChatMutation.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/applyBanInTransaction.d.ts +8 -0
- package/packages/happy2-server/dist/modules/moderation/impl/applyBanInTransaction.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/applyBanInTransaction.js +44 -0
- package/packages/happy2-server/dist/modules/moderation/impl/applyBanInTransaction.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/asBan.d.ts +3 -0
- package/packages/happy2-server/dist/modules/moderation/impl/asBan.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/asBan.js +26 -0
- package/packages/happy2-server/dist/modules/moderation/impl/asBan.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/asModerationAction.d.ts +3 -0
- package/packages/happy2-server/dist/modules/moderation/impl/asModerationAction.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/asModerationAction.js +22 -0
- package/packages/happy2-server/dist/modules/moderation/impl/asModerationAction.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/asReport.d.ts +3 -0
- package/packages/happy2-server/dist/modules/moderation/impl/asReport.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/asReport.js +22 -0
- package/packages/happy2-server/dist/modules/moderation/impl/asReport.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/banDb.d.ts +8 -0
- package/packages/happy2-server/dist/modules/moderation/impl/banDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/banDb.js +22 -0
- package/packages/happy2-server/dist/modules/moderation/impl/banDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/banSelection.d.ts +212 -0
- package/packages/happy2-server/dist/modules/moderation/impl/banSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/banSelection.js +15 -0
- package/packages/happy2-server/dist/modules/moderation/impl/banSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/closeElapsedBan.d.ts +8 -0
- package/packages/happy2-server/dist/modules/moderation/impl/closeElapsedBan.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/closeElapsedBan.js +30 -0
- package/packages/happy2-server/dist/modules/moderation/impl/closeElapsedBan.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/createModerationNotification.d.ts +17 -0
- package/packages/happy2-server/dist/modules/moderation/impl/createModerationNotification.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/createModerationNotification.js +44 -0
- package/packages/happy2-server/dist/modules/moderation/impl/createModerationNotification.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/deleteUserInTransaction.d.ts +8 -0
- package/packages/happy2-server/dist/modules/moderation/impl/deleteUserInTransaction.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/deleteUserInTransaction.js +164 -0
- package/packages/happy2-server/dist/modules/moderation/impl/deleteUserInTransaction.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/mergeContext.d.ts +3 -0
- package/packages/happy2-server/dist/modules/moderation/impl/mergeContext.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/mergeContext.js +11 -0
- package/packages/happy2-server/dist/modules/moderation/impl/mergeContext.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/moderationActionDb.d.ts +8 -0
- package/packages/happy2-server/dist/modules/moderation/impl/moderationActionDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/moderationActionDb.js +21 -0
- package/packages/happy2-server/dist/modules/moderation/impl/moderationActionDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/moderationActionSelection.d.ts +250 -0
- package/packages/happy2-server/dist/modules/moderation/impl/moderationActionSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/moderationActionSelection.js +17 -0
- package/packages/happy2-server/dist/modules/moderation/impl/moderationActionSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/removeFileInTransaction.d.ts +8 -0
- package/packages/happy2-server/dist/modules/moderation/impl/removeFileInTransaction.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/removeFileInTransaction.js +73 -0
- package/packages/happy2-server/dist/modules/moderation/impl/removeFileInTransaction.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/removeMessageInTransaction.d.ts +11 -0
- package/packages/happy2-server/dist/modules/moderation/impl/removeMessageInTransaction.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/removeMessageInTransaction.js +62 -0
- package/packages/happy2-server/dist/modules/moderation/impl/removeMessageInTransaction.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/reportDb.d.ts +8 -0
- package/packages/happy2-server/dist/modules/moderation/impl/reportDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/reportDb.js +21 -0
- package/packages/happy2-server/dist/modules/moderation/impl/reportDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/reportSelection.d.ts +269 -0
- package/packages/happy2-server/dist/modules/moderation/impl/reportSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/reportSelection.js +18 -0
- package/packages/happy2-server/dist/modules/moderation/impl/reportSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/requireReportTargetAccess.d.ts +13 -0
- package/packages/happy2-server/dist/modules/moderation/impl/requireReportTargetAccess.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/requireReportTargetAccess.js +56 -0
- package/packages/happy2-server/dist/modules/moderation/impl/requireReportTargetAccess.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/revokeBanInTransaction.d.ts +8 -0
- package/packages/happy2-server/dist/modules/moderation/impl/revokeBanInTransaction.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/revokeBanInTransaction.js +34 -0
- package/packages/happy2-server/dist/modules/moderation/impl/revokeBanInTransaction.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/syncUserMutation.d.ts +8 -0
- package/packages/happy2-server/dist/modules/moderation/impl/syncUserMutation.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/impl/syncUserMutation.js +31 -0
- package/packages/happy2-server/dist/modules/moderation/impl/syncUserMutation.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/moderationActionRevoke.d.ts +17 -0
- package/packages/happy2-server/dist/modules/moderation/moderationActionRevoke.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/moderationActionRevoke.js +59 -0
- package/packages/happy2-server/dist/modules/moderation/moderationActionRevoke.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/moderationActionTake.d.ts +22 -0
- package/packages/happy2-server/dist/modules/moderation/moderationActionTake.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/moderationActionTake.js +133 -0
- package/packages/happy2-server/dist/modules/moderation/moderationActionTake.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/moderationReportCreate.d.ts +18 -0
- package/packages/happy2-server/dist/modules/moderation/moderationReportCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/moderationReportCreate.js +44 -0
- package/packages/happy2-server/dist/modules/moderation/moderationReportCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/moderationReportList.d.ts +14 -0
- package/packages/happy2-server/dist/modules/moderation/moderationReportList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/moderationReportList.js +33 -0
- package/packages/happy2-server/dist/modules/moderation/moderationReportList.js.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/moderationReportUpdate.d.ts +16 -0
- package/packages/happy2-server/dist/modules/moderation/moderationReportUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/moderation/moderationReportUpdate.js +52 -0
- package/packages/happy2-server/dist/modules/moderation/moderationReportUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/notification/chatNotificationPreferenceSet.d.ts +18 -0
- package/packages/happy2-server/dist/modules/notification/chatNotificationPreferenceSet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/notification/chatNotificationPreferenceSet.js +72 -0
- package/packages/happy2-server/dist/modules/notification/chatNotificationPreferenceSet.js.map +1 -0
- package/packages/happy2-server/dist/modules/notification/impl/asNotification.d.ts +3 -0
- package/packages/happy2-server/dist/modules/notification/impl/asNotification.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/notification/impl/asNotification.js +15 -0
- package/packages/happy2-server/dist/modules/notification/impl/asNotification.js.map +1 -0
- package/packages/happy2-server/dist/modules/notification/notificationList.d.ts +16 -0
- package/packages/happy2-server/dist/modules/notification/notificationList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/notification/notificationList.js +50 -0
- package/packages/happy2-server/dist/modules/notification/notificationList.js.map +1 -0
- package/packages/happy2-server/dist/modules/notification/notificationMarkRead.d.ts +14 -0
- package/packages/happy2-server/dist/modules/notification/notificationMarkRead.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/notification/notificationMarkRead.js +41 -0
- package/packages/happy2-server/dist/modules/notification/notificationMarkRead.js.map +1 -0
- package/packages/happy2-server/dist/modules/notification/notificationPreferenceGet.d.ts +19 -0
- package/packages/happy2-server/dist/modules/notification/notificationPreferenceGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/notification/notificationPreferenceGet.js +48 -0
- package/packages/happy2-server/dist/modules/notification/notificationPreferenceGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/notification/notificationPreferenceUpdate.d.ts +24 -0
- package/packages/happy2-server/dist/modules/notification/notificationPreferenceUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/notification/notificationPreferenceUpdate.js +95 -0
- package/packages/happy2-server/dist/modules/notification/notificationPreferenceUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/actions.test.d.ts +2 -0
- package/packages/happy2-server/dist/modules/operations/actions.test.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/{repository.test.js → actions.test.js} +264 -159
- package/packages/happy2-server/dist/modules/operations/actions.test.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/asAudit.d.ts +3 -0
- package/packages/happy2-server/dist/modules/operations/asAudit.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/asAudit.js +24 -0
- package/packages/happy2-server/dist/modules/operations/asAudit.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/auditAppend.d.ts +17 -0
- package/packages/happy2-server/dist/modules/operations/auditAppend.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/auditAppend.js +41 -0
- package/packages/happy2-server/dist/modules/operations/auditAppend.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/auditContext.d.ts +6 -0
- package/packages/happy2-server/dist/modules/operations/auditContext.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/auditContext.js +2 -0
- package/packages/happy2-server/dist/modules/operations/auditContext.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/auditSelection.d.ts +288 -0
- package/packages/happy2-server/dist/modules/operations/auditSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/auditSelection.js +19 -0
- package/packages/happy2-server/dist/modules/operations/auditSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/cursorCondition.d.ts +5 -0
- package/packages/happy2-server/dist/modules/operations/cursorCondition.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/cursorCondition.js +7 -0
- package/packages/happy2-server/dist/modules/operations/cursorCondition.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/decodeCursor.d.ts +3 -0
- package/packages/happy2-server/dist/modules/operations/decodeCursor.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/decodeCursor.js +24 -0
- package/packages/happy2-server/dist/modules/operations/decodeCursor.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/futureTimestamp.d.ts +2 -0
- package/packages/happy2-server/dist/modules/operations/futureTimestamp.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/futureTimestamp.js +10 -0
- package/packages/happy2-server/dist/modules/operations/futureTimestamp.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/impl/cursor.d.ts +6 -0
- package/packages/happy2-server/dist/modules/operations/impl/cursor.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/impl/cursor.js +2 -0
- package/packages/happy2-server/dist/modules/operations/impl/cursor.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/impl/encodeCursor.d.ts +2 -0
- package/packages/happy2-server/dist/modules/operations/impl/encodeCursor.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/impl/encodeCursor.js +7 -0
- package/packages/happy2-server/dist/modules/operations/impl/encodeCursor.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/json.d.ts +2 -0
- package/packages/happy2-server/dist/modules/operations/json.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/json.js +4 -0
- package/packages/happy2-server/dist/modules/operations/json.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/number.d.ts +2 -0
- package/packages/happy2-server/dist/modules/operations/number.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/number.js +12 -0
- package/packages/happy2-server/dist/modules/operations/number.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/optionalText.d.ts +2 -0
- package/packages/happy2-server/dist/modules/operations/optionalText.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/optionalText.js +5 -0
- package/packages/happy2-server/dist/modules/operations/optionalText.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/page.d.ts +3 -0
- package/packages/happy2-server/dist/modules/operations/page.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/page.js +12 -0
- package/packages/happy2-server/dist/modules/operations/page.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/parseJson.d.ts +2 -0
- package/packages/happy2-server/dist/modules/operations/parseJson.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/parseJson.js +13 -0
- package/packages/happy2-server/dist/modules/operations/parseJson.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/text.d.ts +2 -0
- package/packages/happy2-server/dist/modules/operations/text.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/text.js +8 -0
- package/packages/happy2-server/dist/modules/operations/text.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/types.d.ts +3 -0
- package/packages/happy2-server/dist/modules/operations/types.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/operations/userRequireOperationsActive.d.ts +10 -0
- package/packages/happy2-server/dist/modules/operations/userRequireOperationsActive.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/userRequireOperationsActive.js +22 -0
- package/packages/happy2-server/dist/modules/operations/userRequireOperationsActive.js.map +1 -0
- package/packages/happy2-server/dist/modules/operations/userRequireOperationsAdmin.d.ts +7 -0
- package/packages/happy2-server/dist/modules/operations/userRequireOperationsAdmin.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/operations/userRequireOperationsAdmin.js +13 -0
- package/packages/happy2-server/dist/modules/operations/userRequireOperationsAdmin.js.map +1 -0
- package/packages/happy2-server/dist/modules/presence/impl/listPresenceSettingsWithDb.d.ts +8 -0
- package/packages/happy2-server/dist/modules/presence/impl/listPresenceSettingsWithDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/presence/impl/listPresenceSettingsWithDb.js +41 -0
- package/packages/happy2-server/dist/modules/presence/impl/listPresenceSettingsWithDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/presence/presenceSettingList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/presence/presenceSettingList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/presence/presenceSettingList.js +41 -0
- package/packages/happy2-server/dist/modules/presence/presenceSettingList.js.map +1 -0
- package/packages/happy2-server/dist/modules/presence/presenceSettingUpdate.d.ts +18 -0
- package/packages/happy2-server/dist/modules/presence/presenceSettingUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/presence/presenceSettingUpdate.js +76 -0
- package/packages/happy2-server/dist/modules/presence/presenceSettingUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/realtime/events.d.ts +29 -4
- package/packages/happy2-server/dist/modules/realtime/events.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/realtime/events.js +41 -4
- package/packages/happy2-server/dist/modules/realtime/events.js.map +1 -1
- package/packages/happy2-server/dist/modules/realtime/local.d.ts +5 -0
- package/packages/happy2-server/dist/modules/realtime/local.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/realtime/local.js +68 -14
- package/packages/happy2-server/dist/modules/realtime/local.js.map +1 -1
- package/packages/happy2-server/dist/modules/realtime/local.test.js +108 -11
- package/packages/happy2-server/dist/modules/realtime/local.test.js.map +1 -1
- package/packages/happy2-server/dist/modules/realtime/pubsub.d.ts +0 -1
- package/packages/happy2-server/dist/modules/realtime/pubsub.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/realtime/pubsub.js.map +1 -1
- package/packages/happy2-server/dist/modules/request/idempotencyLeaseAcquire.d.ts +8 -0
- package/packages/happy2-server/dist/modules/request/idempotencyLeaseAcquire.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/request/idempotencyLeaseAcquire.js +59 -0
- package/packages/happy2-server/dist/modules/request/idempotencyLeaseAcquire.js.map +1 -0
- package/packages/happy2-server/dist/modules/request/idempotencyLeaseComplete.d.ts +8 -0
- package/packages/happy2-server/dist/modules/request/idempotencyLeaseComplete.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/request/idempotencyLeaseComplete.js +30 -0
- package/packages/happy2-server/dist/modules/request/idempotencyLeaseComplete.js.map +1 -0
- package/packages/happy2-server/dist/modules/request/idempotencyLeaseRelease.d.ts +7 -0
- package/packages/happy2-server/dist/modules/request/idempotencyLeaseRelease.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/request/idempotencyLeaseRelease.js +23 -0
- package/packages/happy2-server/dist/modules/request/idempotencyLeaseRelease.js.map +1 -0
- package/packages/happy2-server/dist/modules/request/idempotencyRecordPurgeExpired.d.ts +7 -0
- package/packages/happy2-server/dist/modules/request/idempotencyRecordPurgeExpired.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/request/idempotencyRecordPurgeExpired.js +25 -0
- package/packages/happy2-server/dist/modules/request/idempotencyRecordPurgeExpired.js.map +1 -0
- package/packages/happy2-server/dist/modules/request/impl/idempotencyKey.d.ts +8 -0
- package/packages/happy2-server/dist/modules/request/impl/idempotencyKey.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/request/impl/idempotencyKey.js +27 -0
- package/packages/happy2-server/dist/modules/request/impl/idempotencyKey.js.map +1 -0
- package/packages/happy2-server/dist/modules/request/index.d.ts +4 -1
- package/packages/happy2-server/dist/modules/request/index.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/request/index.js +4 -1
- package/packages/happy2-server/dist/modules/request/index.js.map +1 -1
- package/packages/happy2-server/dist/modules/retention/impl/asRetention.d.ts +3 -0
- package/packages/happy2-server/dist/modules/retention/impl/asRetention.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/retention/impl/asRetention.js +19 -0
- package/packages/happy2-server/dist/modules/retention/impl/asRetention.js.map +1 -0
- package/packages/happy2-server/dist/modules/retention/impl/retentionRunDb.d.ts +8 -0
- package/packages/happy2-server/dist/modules/retention/impl/retentionRunDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/retention/impl/retentionRunDb.js +21 -0
- package/packages/happy2-server/dist/modules/retention/impl/retentionRunDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/retention/impl/retentionSelection.d.ts +170 -0
- package/packages/happy2-server/dist/modules/retention/impl/retentionSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/retention/impl/retentionSelection.js +13 -0
- package/packages/happy2-server/dist/modules/retention/impl/retentionSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/retention/retentionRunFinish.d.ts +18 -0
- package/packages/happy2-server/dist/modules/retention/retentionRunFinish.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/retention/retentionRunFinish.js +48 -0
- package/packages/happy2-server/dist/modules/retention/retentionRunFinish.js.map +1 -0
- package/packages/happy2-server/dist/modules/retention/retentionRunList.d.ts +13 -0
- package/packages/happy2-server/dist/modules/retention/retentionRunList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/retention/retentionRunList.js +31 -0
- package/packages/happy2-server/dist/modules/retention/retentionRunList.js.map +1 -0
- package/packages/happy2-server/dist/modules/retention/retentionRunStart.d.ts +14 -0
- package/packages/happy2-server/dist/modules/retention/retentionRunStart.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/retention/retentionRunStart.js +45 -0
- package/packages/happy2-server/dist/modules/retention/retentionRunStart.js.map +1 -0
- package/packages/happy2-server/dist/modules/sandbox/catalog.d.ts +15 -0
- package/packages/happy2-server/dist/modules/sandbox/catalog.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sandbox/catalog.js +31 -0
- package/packages/happy2-server/dist/modules/sandbox/catalog.js.map +1 -0
- package/packages/happy2-server/dist/modules/sandbox/index.d.ts +4 -0
- package/packages/happy2-server/dist/modules/sandbox/index.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sandbox/index.js +3 -0
- package/packages/happy2-server/dist/modules/sandbox/index.js.map +1 -0
- package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.d.ts +34 -0
- package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.js +415 -0
- package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.js.map +1 -0
- package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.test.d.ts +2 -0
- package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.test.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.test.js +243 -0
- package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.test.js.map +1 -0
- package/packages/happy2-server/dist/modules/sandbox/types.d.ts +89 -0
- package/packages/happy2-server/dist/modules/sandbox/types.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sandbox/types.js +2 -0
- package/packages/happy2-server/dist/modules/sandbox/types.js.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/areaHint.d.ts +3 -0
- package/packages/happy2-server/dist/modules/scheduled-message/areaHint.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/areaHint.js +9 -0
- package/packages/happy2-server/dist/modules/scheduled-message/areaHint.js.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/errorMessage.d.ts +2 -0
- package/packages/happy2-server/dist/modules/scheduled-message/errorMessage.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/errorMessage.js +4 -0
- package/packages/happy2-server/dist/modules/scheduled-message/errorMessage.js.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/impl/getScheduledMessageWith.d.ts +8 -0
- package/packages/happy2-server/dist/modules/scheduled-message/impl/getScheduledMessageWith.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/impl/getScheduledMessageWith.js +38 -0
- package/packages/happy2-server/dist/modules/scheduled-message/impl/getScheduledMessageWith.js.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/impl/scheduledMessageSummary.d.ts +14 -0
- package/packages/happy2-server/dist/modules/scheduled-message/impl/scheduledMessageSummary.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/impl/scheduledMessageSummary.js +2 -0
- package/packages/happy2-server/dist/modules/scheduled-message/impl/scheduledMessageSummary.js.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageCancel.d.ts +8 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageCancel.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageCancel.js +38 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageCancel.js.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageList.js +23 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageList.js.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessagePublishDue.d.ts +8 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessagePublishDue.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessagePublishDue.js +106 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessagePublishDue.js.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageSchedule.d.ts +21 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageSchedule.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageSchedule.js +72 -0
- package/packages/happy2-server/dist/modules/scheduled-message/scheduledMessageSchedule.js.map +1 -0
- package/packages/happy2-server/dist/modules/schema.d.ts +1590 -1328
- package/packages/happy2-server/dist/modules/schema.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/schema.js +64 -46
- package/packages/happy2-server/dist/modules/schema.js.map +1 -1
- package/packages/happy2-server/dist/modules/search/impl/decodeSearchCursor.d.ts +2 -0
- package/packages/happy2-server/dist/modules/search/impl/decodeSearchCursor.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/search/impl/decodeSearchCursor.js +19 -0
- package/packages/happy2-server/dist/modules/search/impl/decodeSearchCursor.js.map +1 -0
- package/packages/happy2-server/dist/modules/search/impl/encodeSearchCursor.d.ts +2 -0
- package/packages/happy2-server/dist/modules/search/impl/encodeSearchCursor.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/search/impl/encodeSearchCursor.js +7 -0
- package/packages/happy2-server/dist/modules/search/impl/encodeSearchCursor.js.map +1 -0
- package/packages/happy2-server/dist/modules/search/impl/fuzzyScore.d.ts +2 -0
- package/packages/happy2-server/dist/modules/search/impl/fuzzyScore.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/search/impl/fuzzyScore.js +23 -0
- package/packages/happy2-server/dist/modules/search/impl/fuzzyScore.js.map +1 -0
- package/packages/happy2-server/dist/modules/search/impl/levenshtein.d.ts +2 -0
- package/packages/happy2-server/dist/modules/search/impl/levenshtein.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/search/impl/levenshtein.js +16 -0
- package/packages/happy2-server/dist/modules/search/impl/levenshtein.js.map +1 -0
- package/packages/happy2-server/dist/modules/search/impl/resultId.d.ts +12 -0
- package/packages/happy2-server/dist/modules/search/impl/resultId.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/search/impl/resultId.js +9 -0
- package/packages/happy2-server/dist/modules/search/impl/resultId.js.map +1 -0
- package/packages/happy2-server/dist/modules/search/normalizeSearch.d.ts +2 -0
- package/packages/happy2-server/dist/modules/search/normalizeSearch.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/search/normalizeSearch.js +4 -0
- package/packages/happy2-server/dist/modules/search/normalizeSearch.js.map +1 -0
- package/packages/happy2-server/dist/modules/search/searchGrams.d.ts +2 -0
- package/packages/happy2-server/dist/modules/search/searchGrams.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/search/searchGrams.js +11 -0
- package/packages/happy2-server/dist/modules/search/searchGrams.js.map +1 -0
- package/packages/happy2-server/dist/modules/search/searchPageGet.d.ts +28 -0
- package/packages/happy2-server/dist/modules/search/searchPageGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/search/searchPageGet.js +100 -0
- package/packages/happy2-server/dist/modules/search/searchPageGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/search/searchRun.d.ts +20 -0
- package/packages/happy2-server/dist/modules/search/searchRun.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/search/searchRun.js +15 -0
- package/packages/happy2-server/dist/modules/search/searchRun.js.map +1 -0
- package/packages/happy2-server/dist/modules/server/serverSchemaMigrate.d.ts +7 -0
- package/packages/happy2-server/dist/modules/server/serverSchemaMigrate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/server/serverSchemaMigrate.js +24 -0
- package/packages/happy2-server/dist/modules/server/serverSchemaMigrate.js.map +1 -0
- package/packages/happy2-server/dist/modules/server-profile/serverProfileGet.d.ts +14 -0
- package/packages/happy2-server/dist/modules/server-profile/serverProfileGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/server-profile/serverProfileGet.js +36 -0
- package/packages/happy2-server/dist/modules/server-profile/serverProfileGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/server-profile/serverProfileUpdate.d.ts +19 -0
- package/packages/happy2-server/dist/modules/server-profile/serverProfileUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/server-profile/serverProfileUpdate.js +99 -0
- package/packages/happy2-server/dist/modules/server-profile/serverProfileUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/allowedServerTransition.d.ts +3 -0
- package/packages/happy2-server/dist/modules/setup/impl/allowedServerTransition.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/allowedServerTransition.js +11 -0
- package/packages/happy2-server/dist/modules/setup/impl/allowedServerTransition.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/baseImagePresentation.d.ts +13 -0
- package/packages/happy2-server/dist/modules/setup/impl/baseImagePresentation.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/baseImagePresentation.js +20 -0
- package/packages/happy2-server/dist/modules/setup/impl/baseImagePresentation.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/baseImageSelectedId.d.ts +2 -0
- package/packages/happy2-server/dist/modules/setup/impl/baseImageSelectedId.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/baseImageSelectedId.js +6 -0
- package/packages/happy2-server/dist/modules/setup/impl/baseImageSelectedId.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/baseImageSyncHint.d.ts +3 -0
- package/packages/happy2-server/dist/modules/setup/impl/baseImageSyncHint.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/baseImageSyncHint.js +8 -0
- package/packages/happy2-server/dist/modules/setup/impl/baseImageSyncHint.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/completeRegistrationPolicyDb.d.ts +4 -0
- package/packages/happy2-server/dist/modules/setup/impl/completeRegistrationPolicyDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/completeRegistrationPolicyDb.js +60 -0
- package/packages/happy2-server/dist/modules/setup/impl/completeRegistrationPolicyDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/emptyUserSteps.d.ts +3 -0
- package/packages/happy2-server/dist/modules/setup/impl/emptyUserSteps.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/emptyUserSteps.js +15 -0
- package/packages/happy2-server/dist/modules/setup/impl/emptyUserSteps.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/encodedMetadata.d.ts +3 -0
- package/packages/happy2-server/dist/modules/setup/impl/encodedMetadata.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/encodedMetadata.js +22 -0
- package/packages/happy2-server/dist/modules/setup/impl/encodedMetadata.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/publicStatus.d.ts +9 -0
- package/packages/happy2-server/dist/modules/setup/impl/publicStatus.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/publicStatus.js +23 -0
- package/packages/happy2-server/dist/modules/setup/impl/publicStatus.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/readServerSnapshot.d.ts +11 -0
- package/packages/happy2-server/dist/modules/setup/impl/readServerSnapshot.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/readServerSnapshot.js +39 -0
- package/packages/happy2-server/dist/modules/setup/impl/readServerSnapshot.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/readUserSteps.d.ts +5 -0
- package/packages/happy2-server/dist/modules/setup/impl/readUserSteps.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/readUserSteps.js +23 -0
- package/packages/happy2-server/dist/modules/setup/impl/readUserSteps.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/redactServerSteps.d.ts +3 -0
- package/packages/happy2-server/dist/modules/setup/impl/redactServerSteps.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/redactServerSteps.js +21 -0
- package/packages/happy2-server/dist/modules/setup/impl/redactServerSteps.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/requireActiveAdministratorDb.d.ts +3 -0
- package/packages/happy2-server/dist/modules/setup/impl/requireActiveAdministratorDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/requireActiveAdministratorDb.js +16 -0
- package/packages/happy2-server/dist/modules/setup/impl/requireActiveAdministratorDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/requirePrerequisitesDb.d.ts +4 -0
- package/packages/happy2-server/dist/modules/setup/impl/requirePrerequisitesDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/requirePrerequisitesDb.js +21 -0
- package/packages/happy2-server/dist/modules/setup/impl/requirePrerequisitesDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/safeMetadata.d.ts +3 -0
- package/packages/happy2-server/dist/modules/setup/impl/safeMetadata.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/safeMetadata.js +25 -0
- package/packages/happy2-server/dist/modules/setup/impl/safeMetadata.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/serverStepDb.d.ts +9 -0
- package/packages/happy2-server/dist/modules/setup/impl/serverStepDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/serverStepDb.js +24 -0
- package/packages/happy2-server/dist/modules/setup/impl/serverStepDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/serverStepRecord.d.ts +3 -0
- package/packages/happy2-server/dist/modules/setup/impl/serverStepRecord.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/serverStepRecord.js +2 -0
- package/packages/happy2-server/dist/modules/setup/impl/serverStepRecord.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/setupHint.d.ts +3 -0
- package/packages/happy2-server/dist/modules/setup/impl/setupHint.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/setupHint.js +9 -0
- package/packages/happy2-server/dist/modules/setup/impl/setupHint.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/stepPrerequisites.d.ts +3 -0
- package/packages/happy2-server/dist/modules/setup/impl/stepPrerequisites.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/stepPrerequisites.js +13 -0
- package/packages/happy2-server/dist/modules/setup/impl/stepPrerequisites.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/stepStatus.d.ts +10 -0
- package/packages/happy2-server/dist/modules/setup/impl/stepStatus.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/stepStatus.js +30 -0
- package/packages/happy2-server/dist/modules/setup/impl/stepStatus.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/userStepRecord.d.ts +3 -0
- package/packages/happy2-server/dist/modules/setup/impl/userStepRecord.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/userStepRecord.js +2 -0
- package/packages/happy2-server/dist/modules/setup/impl/userStepRecord.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/validatedLastError.d.ts +3 -0
- package/packages/happy2-server/dist/modules/setup/impl/validatedLastError.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/impl/validatedLastError.js +12 -0
- package/packages/happy2-server/dist/modules/setup/impl/validatedLastError.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/index.d.ts +16 -0
- package/packages/happy2-server/dist/modules/setup/index.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/index.js +16 -0
- package/packages/happy2-server/dist/modules/setup/index.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageCompleteBuild.d.ts +12 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageCompleteBuild.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageCompleteBuild.js +67 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageCompleteBuild.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageFailBuild.d.ts +12 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageFailBuild.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageFailBuild.js +49 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageFailBuild.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageGetStatus.d.ts +13 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageGetStatus.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageGetStatus.js +31 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageGetStatus.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageRetryBuild.d.ts +11 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageRetryBuild.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageRetryBuild.js +60 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageRetryBuild.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageSelect.d.ts +22 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageSelect.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageSelect.js +144 -0
- package/packages/happy2-server/dist/modules/setup/setupBaseImageSelect.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupChooseRegistrationPolicy.d.ts +8 -0
- package/packages/happy2-server/dist/modules/setup/setupChooseRegistrationPolicy.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupChooseRegistrationPolicy.js +38 -0
- package/packages/happy2-server/dist/modules/setup/setupChooseRegistrationPolicy.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupCreateDefaultAgent.d.ts +20 -0
- package/packages/happy2-server/dist/modules/setup/setupCreateDefaultAgent.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupCreateDefaultAgent.js +97 -0
- package/packages/happy2-server/dist/modules/setup/setupCreateDefaultAgent.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupGetCombinedStatus.d.ts +8 -0
- package/packages/happy2-server/dist/modules/setup/setupGetCombinedStatus.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupGetCombinedStatus.js +73 -0
- package/packages/happy2-server/dist/modules/setup/setupGetCombinedStatus.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupGetCurrentSyncHint.d.ts +11 -0
- package/packages/happy2-server/dist/modules/setup/setupGetCurrentSyncHint.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupGetCurrentSyncHint.js +23 -0
- package/packages/happy2-server/dist/modules/setup/setupGetCurrentSyncHint.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupGetPublicStatus.d.ts +8 -0
- package/packages/happy2-server/dist/modules/setup/setupGetPublicStatus.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupGetPublicStatus.js +13 -0
- package/packages/happy2-server/dist/modules/setup/setupGetPublicStatus.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupGetRegistrationAvailability.d.ts +8 -0
- package/packages/happy2-server/dist/modules/setup/setupGetRegistrationAvailability.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupGetRegistrationAvailability.js +11 -0
- package/packages/happy2-server/dist/modules/setup/setupGetRegistrationAvailability.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupRecordOperationalStep.d.ts +14 -0
- package/packages/happy2-server/dist/modules/setup/setupRecordOperationalStep.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupRecordOperationalStep.js +55 -0
- package/packages/happy2-server/dist/modules/setup/setupRecordOperationalStep.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupSandboxProviderGetSelected.d.ts +10 -0
- package/packages/happy2-server/dist/modules/setup/setupSandboxProviderGetSelected.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupSandboxProviderGetSelected.js +35 -0
- package/packages/happy2-server/dist/modules/setup/setupSandboxProviderGetSelected.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupSandboxProviderSelect.d.ts +11 -0
- package/packages/happy2-server/dist/modules/setup/setupSandboxProviderSelect.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/setupSandboxProviderSelect.js +72 -0
- package/packages/happy2-server/dist/modules/setup/setupSandboxProviderSelect.js.map +1 -0
- package/packages/happy2-server/dist/modules/setup/types.d.ts +70 -0
- package/packages/happy2-server/dist/modules/setup/types.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/setup/types.js +29 -0
- package/packages/happy2-server/dist/modules/setup/types.js.map +1 -0
- package/packages/happy2-server/dist/modules/sync/chatSyncGetDifference.d.ts +33 -0
- package/packages/happy2-server/dist/modules/sync/chatSyncGetDifference.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sync/chatSyncGetDifference.js +103 -0
- package/packages/happy2-server/dist/modules/sync/chatSyncGetDifference.js.map +1 -0
- package/packages/happy2-server/dist/modules/sync/impl/stateAt.d.ts +3 -0
- package/packages/happy2-server/dist/modules/sync/impl/stateAt.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sync/impl/stateAt.js +9 -0
- package/packages/happy2-server/dist/modules/sync/impl/stateAt.js.map +1 -0
- package/packages/happy2-server/dist/modules/sync/impl/syncState.d.ts +3 -0
- package/packages/happy2-server/dist/modules/sync/impl/syncState.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sync/impl/syncState.js +8 -0
- package/packages/happy2-server/dist/modules/sync/impl/syncState.js.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncCompact.d.ts +12 -0
- package/packages/happy2-server/dist/modules/sync/syncCompact.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncCompact.js +141 -0
- package/packages/happy2-server/dist/modules/sync/syncCompact.js.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncConsumerAcknowledge.d.ts +12 -0
- package/packages/happy2-server/dist/modules/sync/syncConsumerAcknowledge.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncConsumerAcknowledge.js +49 -0
- package/packages/happy2-server/dist/modules/sync/syncConsumerAcknowledge.js.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncEventInsert.d.ts +15 -0
- package/packages/happy2-server/dist/modules/sync/syncEventInsert.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncEventInsert.js +18 -0
- package/packages/happy2-server/dist/modules/sync/syncEventInsert.js.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncGetDifference.d.ts +21 -0
- package/packages/happy2-server/dist/modules/sync/syncGetDifference.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncGetDifference.js +175 -0
- package/packages/happy2-server/dist/modules/sync/syncGetDifference.js.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncGetState.d.ts +8 -0
- package/packages/happy2-server/dist/modules/sync/syncGetState.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncGetState.js +22 -0
- package/packages/happy2-server/dist/modules/sync/syncGetState.js.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncInitialize.d.ts +7 -0
- package/packages/happy2-server/dist/modules/sync/syncInitialize.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncInitialize.js +24 -0
- package/packages/happy2-server/dist/modules/sync/syncInitialize.js.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncSequenceNext.d.ts +7 -0
- package/packages/happy2-server/dist/modules/sync/syncSequenceNext.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncSequenceNext.js +22 -0
- package/packages/happy2-server/dist/modules/sync/syncSequenceNext.js.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncSequenceNextWithTimestamp.d.ts +7 -0
- package/packages/happy2-server/dist/modules/sync/syncSequenceNextWithTimestamp.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/sync/syncSequenceNextWithTimestamp.js +23 -0
- package/packages/happy2-server/dist/modules/sync/syncSequenceNextWithTimestamp.js.map +1 -0
- package/packages/happy2-server/dist/modules/thread/threadCreate.d.ts +15 -0
- package/packages/happy2-server/dist/modules/thread/threadCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/thread/threadCreate.js +143 -0
- package/packages/happy2-server/dist/modules/thread/threadCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/thread/threadFollowSet.d.ts +14 -0
- package/packages/happy2-server/dist/modules/thread/threadFollowSet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/thread/threadFollowSet.js +46 -0
- package/packages/happy2-server/dist/modules/thread/threadFollowSet.js.map +1 -0
- package/packages/happy2-server/dist/modules/thread/threadGet.d.ts +8 -0
- package/packages/happy2-server/dist/modules/thread/threadGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/thread/threadGet.js +20 -0
- package/packages/happy2-server/dist/modules/thread/threadGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/thread/threadListMine.d.ts +16 -0
- package/packages/happy2-server/dist/modules/thread/threadListMine.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/thread/threadListMine.js +49 -0
- package/packages/happy2-server/dist/modules/thread/threadListMine.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/contactList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/user/contactList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/contactList.js +23 -0
- package/packages/happy2-server/dist/modules/user/contactList.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/impl/asAccess.d.ts +3 -0
- package/packages/happy2-server/dist/modules/user/impl/asAccess.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/impl/asAccess.js +23 -0
- package/packages/happy2-server/dist/modules/user/impl/asAccess.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/impl/asUser.d.ts +4 -0
- package/packages/happy2-server/dist/modules/user/impl/asUser.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/impl/asUser.js +21 -0
- package/packages/happy2-server/dist/modules/user/impl/asUser.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/impl/userHint.d.ts +3 -0
- package/packages/happy2-server/dist/modules/user/impl/userHint.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/impl/userHint.js +9 -0
- package/packages/happy2-server/dist/modules/user/impl/userHint.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/impl/userRow.d.ts +3 -0
- package/packages/happy2-server/dist/modules/user/impl/userRow.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/impl/userRow.js +2 -0
- package/packages/happy2-server/dist/modules/user/impl/userRow.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/types.d.ts +24 -0
- package/packages/happy2-server/dist/modules/user/types.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/types.js +2 -0
- package/packages/happy2-server/dist/modules/user/types.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userAccessList.d.ts +12 -0
- package/packages/happy2-server/dist/modules/user/userAccessList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userAccessList.js +56 -0
- package/packages/happy2-server/dist/modules/user/userAccessList.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userAdministrationList.d.ts +13 -0
- package/packages/happy2-server/dist/modules/user/userAdministrationList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userAdministrationList.js +39 -0
- package/packages/happy2-server/dist/modules/user/userAdministrationList.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.d.ts +16 -0
- package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.js +65 -0
- package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userAnnounceJoinedServer.d.ts +10 -0
- package/packages/happy2-server/dist/modules/user/userAnnounceJoinedServer.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userAnnounceJoinedServer.js +46 -0
- package/packages/happy2-server/dist/modules/user/userAnnounceJoinedServer.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userCreateProfile.d.ts +10 -0
- package/packages/happy2-server/dist/modules/user/userCreateProfile.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userCreateProfile.js +195 -0
- package/packages/happy2-server/dist/modules/user/userCreateProfile.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userDelete.d.ts +13 -0
- package/packages/happy2-server/dist/modules/user/userDelete.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userDelete.js +159 -0
- package/packages/happy2-server/dist/modules/user/userDelete.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userFindActive.d.ts +8 -0
- package/packages/happy2-server/dist/modules/user/userFindActive.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userFindActive.js +20 -0
- package/packages/happy2-server/dist/modules/user/userFindActive.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userFindActiveByAccount.d.ts +8 -0
- package/packages/happy2-server/dist/modules/user/userFindActiveByAccount.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userFindActiveByAccount.js +20 -0
- package/packages/happy2-server/dist/modules/user/userFindActiveByAccount.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userJoinAutoChannels.d.ts +10 -0
- package/packages/happy2-server/dist/modules/user/userJoinAutoChannels.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userJoinAutoChannels.js +90 -0
- package/packages/happy2-server/dist/modules/user/userJoinAutoChannels.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userLastSeenFinalize.d.ts +9 -0
- package/packages/happy2-server/dist/modules/user/userLastSeenFinalize.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userLastSeenFinalize.js +34 -0
- package/packages/happy2-server/dist/modules/user/userLastSeenFinalize.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userLastSeenTouch.d.ts +8 -0
- package/packages/happy2-server/dist/modules/user/userLastSeenTouch.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userLastSeenTouch.js +28 -0
- package/packages/happy2-server/dist/modules/user/userLastSeenTouch.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userOnboardingUpdateStep.d.ts +12 -0
- package/packages/happy2-server/dist/modules/user/userOnboardingUpdateStep.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userOnboardingUpdateStep.js +68 -0
- package/packages/happy2-server/dist/modules/user/userOnboardingUpdateStep.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userSetBanned.d.ts +14 -0
- package/packages/happy2-server/dist/modules/user/userSetBanned.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userSetBanned.js +98 -0
- package/packages/happy2-server/dist/modules/user/userSetBanned.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userSetPhoto.d.ts +7 -0
- package/packages/happy2-server/dist/modules/user/userSetPhoto.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userSetPhoto.js +43 -0
- package/packages/happy2-server/dist/modules/user/userSetPhoto.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userTouchAccess.d.ts +7 -0
- package/packages/happy2-server/dist/modules/user/userTouchAccess.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userTouchAccess.js +41 -0
- package/packages/happy2-server/dist/modules/user/userTouchAccess.js.map +1 -0
- package/packages/happy2-server/dist/modules/user/userUpdateProfile.d.ts +8 -0
- package/packages/happy2-server/dist/modules/user/userUpdateProfile.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/user/userUpdateProfile.js +46 -0
- package/packages/happy2-server/dist/modules/user/userUpdateProfile.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/asClaimedDelivery.d.ts +3 -0
- package/packages/happy2-server/dist/modules/webhook/impl/asClaimedDelivery.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/asClaimedDelivery.js +12 -0
- package/packages/happy2-server/dist/modules/webhook/impl/asClaimedDelivery.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/asSubscription.d.ts +3 -0
- package/packages/happy2-server/dist/modules/webhook/impl/asSubscription.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/asSubscription.js +19 -0
- package/packages/happy2-server/dist/modules/webhook/impl/asSubscription.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/boundedIdentifier.d.ts +2 -0
- package/packages/happy2-server/dist/modules/webhook/impl/boundedIdentifier.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/boundedIdentifier.js +6 -0
- package/packages/happy2-server/dist/modules/webhook/impl/boundedIdentifier.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/claimDueDeliveries.d.ts +8 -0
- package/packages/happy2-server/dist/modules/webhook/impl/claimDueDeliveries.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/claimDueDeliveries.js +70 -0
- package/packages/happy2-server/dist/modules/webhook/impl/claimDueDeliveries.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/completeDelivery.d.ts +8 -0
- package/packages/happy2-server/dist/modules/webhook/impl/completeDelivery.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/completeDelivery.js +23 -0
- package/packages/happy2-server/dist/modules/webhook/impl/completeDelivery.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/deliveryHttpError.d.ts +6 -0
- package/packages/happy2-server/dist/modules/webhook/impl/deliveryHttpError.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/deliveryHttpError.js +10 -0
- package/packages/happy2-server/dist/modules/webhook/impl/deliveryHttpError.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/errorMessage.d.ts +2 -0
- package/packages/happy2-server/dist/modules/webhook/impl/errorMessage.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/errorMessage.js +4 -0
- package/packages/happy2-server/dist/modules/webhook/impl/errorMessage.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/failDelivery.d.ts +8 -0
- package/packages/happy2-server/dist/modules/webhook/impl/failDelivery.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/failDelivery.js +31 -0
- package/packages/happy2-server/dist/modules/webhook/impl/failDelivery.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/getSubscriptionDb.d.ts +8 -0
- package/packages/happy2-server/dist/modules/webhook/impl/getSubscriptionDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/getSubscriptionDb.js +20 -0
- package/packages/happy2-server/dist/modules/webhook/impl/getSubscriptionDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryAttempts.d.ts +2 -0
- package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryAttempts.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryAttempts.js +2 -0
- package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryAttempts.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryResponse.d.ts +2 -0
- package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryResponse.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryResponse.js +2 -0
- package/packages/happy2-server/dist/modules/webhook/impl/maxDeliveryResponse.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/normalizeEventTypes.d.ts +2 -0
- package/packages/happy2-server/dist/modules/webhook/impl/normalizeEventTypes.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/normalizeEventTypes.js +8 -0
- package/packages/happy2-server/dist/modules/webhook/impl/normalizeEventTypes.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/normalizedEventType.d.ts +2 -0
- package/packages/happy2-server/dist/modules/webhook/impl/normalizedEventType.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/normalizedEventType.js +8 -0
- package/packages/happy2-server/dist/modules/webhook/impl/normalizedEventType.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/outgoingSubscriptionIds.d.ts +47 -0
- package/packages/happy2-server/dist/modules/webhook/impl/outgoingSubscriptionIds.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/outgoingSubscriptionIds.js +14 -0
- package/packages/happy2-server/dist/modules/webhook/impl/outgoingSubscriptionIds.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/positiveLimit.d.ts +2 -0
- package/packages/happy2-server/dist/modules/webhook/impl/positiveLimit.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/positiveLimit.js +7 -0
- package/packages/happy2-server/dist/modules/webhook/impl/positiveLimit.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/requireChatDb.d.ts +7 -0
- package/packages/happy2-server/dist/modules/webhook/impl/requireChatDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/requireChatDb.js +19 -0
- package/packages/happy2-server/dist/modules/webhook/impl/requireChatDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/requiredText.d.ts +2 -0
- package/packages/happy2-server/dist/modules/webhook/impl/requiredText.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/requiredText.js +7 -0
- package/packages/happy2-server/dist/modules/webhook/impl/requiredText.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/retryDelay.d.ts +2 -0
- package/packages/happy2-server/dist/modules/webhook/impl/retryDelay.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/retryDelay.js +8 -0
- package/packages/happy2-server/dist/modules/webhook/impl/retryDelay.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/subscriptionSelection.d.ts +172 -0
- package/packages/happy2-server/dist/modules/webhook/impl/subscriptionSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/subscriptionSelection.js +13 -0
- package/packages/happy2-server/dist/modules/webhook/impl/subscriptionSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/truncate.d.ts +2 -0
- package/packages/happy2-server/dist/modules/webhook/impl/truncate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/impl/truncate.js +4 -0
- package/packages/happy2-server/dist/modules/webhook/impl/truncate.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/incomingWebhookCreate.d.ts +14 -0
- package/packages/happy2-server/dist/modules/webhook/incomingWebhookCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/incomingWebhookCreate.js +51 -0
- package/packages/happy2-server/dist/modules/webhook/incomingWebhookCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/incomingWebhookInvoke.d.ts +8 -0
- package/packages/happy2-server/dist/modules/webhook/incomingWebhookInvoke.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/incomingWebhookInvoke.js +56 -0
- package/packages/happy2-server/dist/modules/webhook/incomingWebhookInvoke.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/outgoingWebhookCreate.d.ts +17 -0
- package/packages/happy2-server/dist/modules/webhook/outgoingWebhookCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/outgoingWebhookCreate.js +55 -0
- package/packages/happy2-server/dist/modules/webhook/outgoingWebhookCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryDispatchDue.d.ts +17 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryDispatchDue.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryDispatchDue.js +58 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryDispatchDue.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueOutgoingEvent.d.ts +13 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueOutgoingEvent.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueOutgoingEvent.js +54 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueOutgoingEvent.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueuePendingSyncEvents.d.ts +8 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueuePendingSyncEvents.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueuePendingSyncEvents.js +42 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueuePendingSyncEvents.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueSyncSequence.d.ts +8 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueSyncSequence.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueSyncSequence.js +38 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryEnqueueSyncSequence.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryList.js +27 -0
- package/packages/happy2-server/dist/modules/webhook/webhookDeliveryList.js.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/webhookSubscriptionList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/webhook/webhookSubscriptionList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/webhook/webhookSubscriptionList.js +23 -0
- package/packages/happy2-server/dist/modules/webhook/webhookSubscriptionList.js.map +1 -0
- package/packages/happy2-server/dist/modules/workspace/service.d.ts +4 -3
- package/packages/happy2-server/dist/modules/workspace/service.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/workspace/service.js +72 -24
- package/packages/happy2-server/dist/modules/workspace/service.js.map +1 -1
- package/packages/happy2-server/dist/modules/workspace/types.d.ts +8 -0
- package/packages/happy2-server/dist/modules/workspace/types.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/workspace/types.js.map +1 -1
- package/packages/happy2-server/dist/routes/agents.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/agents.js +25 -1
- package/packages/happy2-server/dist/routes/agents.js.map +1 -1
- package/packages/happy2-server/dist/routes/auth.d.ts +4 -2
- package/packages/happy2-server/dist/routes/auth.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/auth.js +23 -7
- package/packages/happy2-server/dist/routes/auth.js.map +1 -1
- package/packages/happy2-server/dist/routes/automation.d.ts +3 -2
- package/packages/happy2-server/dist/routes/automation.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/automation.js +20 -13
- package/packages/happy2-server/dist/routes/automation.js.map +1 -1
- package/packages/happy2-server/dist/routes/collaboration.d.ts +2 -2
- package/packages/happy2-server/dist/routes/collaboration.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/collaboration.js +453 -222
- package/packages/happy2-server/dist/routes/collaboration.js.map +1 -1
- package/packages/happy2-server/dist/routes/files.d.ts +2 -3
- package/packages/happy2-server/dist/routes/files.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/files.js +283 -96
- package/packages/happy2-server/dist/routes/files.js.map +1 -1
- package/packages/happy2-server/dist/routes/integrations.d.ts +4 -2
- package/packages/happy2-server/dist/routes/integrations.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/integrations.js +39 -20
- package/packages/happy2-server/dist/routes/integrations.js.map +1 -1
- package/packages/happy2-server/dist/routes/operations.d.ts +2 -2
- package/packages/happy2-server/dist/routes/operations.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/operations.js +112 -44
- package/packages/happy2-server/dist/routes/operations.js.map +1 -1
- package/packages/happy2-server/dist/routes/operations.test.js +58 -24
- package/packages/happy2-server/dist/routes/operations.test.js.map +1 -1
- package/packages/happy2-server/dist/routes/setup.d.ts +8 -0
- package/packages/happy2-server/dist/routes/setup.d.ts.map +1 -0
- package/packages/happy2-server/dist/routes/setup.js +283 -0
- package/packages/happy2-server/dist/routes/setup.js.map +1 -0
- package/packages/happy2-server/dist/routes/sync.d.ts +2 -2
- package/packages/happy2-server/dist/routes/sync.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/sync.js +102 -41
- package/packages/happy2-server/dist/routes/sync.js.map +1 -1
- package/packages/happy2-server/dist/routes/workspace.js +1 -1
- package/packages/happy2-server/dist/routes/workspace.js.map +1 -1
- package/packages/happy2-server/dist/server.d.ts +11 -12
- package/packages/happy2-server/dist/server.d.ts.map +1 -1
- package/packages/happy2-server/dist/server.js +137 -89
- package/packages/happy2-server/dist/server.js.map +1 -1
- package/packages/happy2-server/dist/standalone.d.ts.map +1 -1
- package/packages/happy2-server/dist/standalone.js +12 -6
- package/packages/happy2-server/dist/standalone.js.map +1 -1
- package/packages/happy2-server/dist/web/assets/index-DH1SOwNV.js +46 -0
- package/packages/happy2-server/dist/web/assets/index-DZ1uRLgV.css +2 -0
- package/packages/happy2-server/dist/web/index.html +11 -2
- package/packages/happy2-server/drizzle/0011_agent_image_changes.sql +51 -0
- package/packages/happy2-server/drizzle/0012_agent_effort.sql +1 -0
- package/packages/happy2-server/drizzle/0013_agent_turn_started_at.sql +1 -0
- package/packages/happy2-server/drizzle/0014_main_channels.sql +14 -0
- package/packages/happy2-server/drizzle/0015_durable_server_and_user_onboarding.sql +70 -0
- package/packages/happy2-server/drizzle/0016_default_agent.sql +27 -0
- package/packages/happy2-server/drizzle/0017_user_product_last_seen.sql +1 -0
- package/packages/happy2-server/drizzle/0018_threads_are_chats.sql +23 -0
- package/packages/happy2-server/drizzle/0019_channel_agent_audiences.sql +16 -0
- package/packages/happy2-server/drizzle/meta/_journal.json +63 -0
- package/packages/happy2-server/happy2.example.toml +0 -2
- package/packages/happy2-server/dist/modules/agents/docker.d.ts +0 -51
- package/packages/happy2-server/dist/modules/agents/docker.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/agents/docker.js +0 -256
- package/packages/happy2-server/dist/modules/agents/docker.js.map +0 -1
- package/packages/happy2-server/dist/modules/agents/docker.test.d.ts +0 -2
- package/packages/happy2-server/dist/modules/agents/docker.test.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/agents/docker.test.js +0 -155
- package/packages/happy2-server/dist/modules/agents/docker.test.js.map +0 -1
- package/packages/happy2-server/dist/modules/automation/repository.d.ts +0 -127
- package/packages/happy2-server/dist/modules/automation/repository.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/automation/repository.js +0 -821
- package/packages/happy2-server/dist/modules/automation/repository.js.map +0 -1
- package/packages/happy2-server/dist/modules/collaboration/repository.d.ts +0 -839
- package/packages/happy2-server/dist/modules/collaboration/repository.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/collaboration/repository.js +0 -5795
- package/packages/happy2-server/dist/modules/collaboration/repository.js.map +0 -1
- package/packages/happy2-server/dist/modules/collaboration/repository.test.d.ts +0 -2
- package/packages/happy2-server/dist/modules/collaboration/repository.test.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/collaboration/repository.test.js.map +0 -1
- package/packages/happy2-server/dist/modules/collaboration/types.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/collaboration/types.js.map +0 -1
- package/packages/happy2-server/dist/modules/database.d.ts +0 -105
- package/packages/happy2-server/dist/modules/database.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/database.js +0 -583
- package/packages/happy2-server/dist/modules/database.js.map +0 -1
- package/packages/happy2-server/dist/modules/integrations/index.d.ts +0 -6
- package/packages/happy2-server/dist/modules/integrations/index.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/integrations/index.js +0 -6
- package/packages/happy2-server/dist/modules/integrations/index.js.map +0 -1
- package/packages/happy2-server/dist/modules/integrations/repository.d.ts +0 -136
- package/packages/happy2-server/dist/modules/integrations/repository.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/integrations/repository.js +0 -1229
- package/packages/happy2-server/dist/modules/integrations/repository.js.map +0 -1
- package/packages/happy2-server/dist/modules/integrations/repository.test.d.ts +0 -2
- package/packages/happy2-server/dist/modules/integrations/repository.test.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/integrations/repository.test.js.map +0 -1
- package/packages/happy2-server/dist/modules/operations/export-worker.d.ts +0 -16
- package/packages/happy2-server/dist/modules/operations/export-worker.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/operations/export-worker.js +0 -56
- package/packages/happy2-server/dist/modules/operations/export-worker.js.map +0 -1
- package/packages/happy2-server/dist/modules/operations/repository.d.ts +0 -215
- package/packages/happy2-server/dist/modules/operations/repository.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/operations/repository.js +0 -2011
- package/packages/happy2-server/dist/modules/operations/repository.js.map +0 -1
- package/packages/happy2-server/dist/modules/operations/repository.test.d.ts +0 -2
- package/packages/happy2-server/dist/modules/operations/repository.test.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/operations/repository.test.js.map +0 -1
- package/packages/happy2-server/dist/modules/request/database-idempotency.d.ts +0 -15
- package/packages/happy2-server/dist/modules/request/database-idempotency.d.ts.map +0 -1
- package/packages/happy2-server/dist/modules/request/database-idempotency.js +0 -141
- package/packages/happy2-server/dist/modules/request/database-idempotency.js.map +0 -1
- package/packages/happy2-server/dist/web/assets/index-COvbX8JP.css +0 -2
- package/packages/happy2-server/dist/web/assets/index-DdpugxMO.js +0 -57
- /package/packages/happy2-server/dist/modules/{collaboration → chat}/types.js +0 -0
|
@@ -1,821 +0,0 @@
|
|
|
1
|
-
import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
|
|
2
|
-
import { createClient } from "@libsql/client";
|
|
3
|
-
import { createId } from "@paralleldrive/cuid2";
|
|
4
|
-
import { and, asc, desc, eq, gt, isNull, lte, or, sql } from "drizzle-orm";
|
|
5
|
-
import { CollaborationError } from "../collaboration/types.js";
|
|
6
|
-
import { createDatabase, retrySqliteBusy, } from "../drizzle.js";
|
|
7
|
-
import { accounts, auditLogEntries, automationRuns, automations, botIdentities, chats, messages, scheduledMessageAttachments, scheduledMessages, serverSyncState, syncEvents, users, webhookDeliveries, } from "../schema.js";
|
|
8
|
-
export class AutomationRepository {
|
|
9
|
-
collaboration;
|
|
10
|
-
options;
|
|
11
|
-
client;
|
|
12
|
-
db;
|
|
13
|
-
ownsClient;
|
|
14
|
-
constructor(source, collaboration, options = {}) {
|
|
15
|
-
this.collaboration = collaboration;
|
|
16
|
-
this.options = options;
|
|
17
|
-
this.ownsClient = typeof source === "string";
|
|
18
|
-
this.client =
|
|
19
|
-
typeof source === "string"
|
|
20
|
-
? createClient({ url: source, authToken: options.authToken })
|
|
21
|
-
: source;
|
|
22
|
-
this.db = createDatabase(this.client);
|
|
23
|
-
}
|
|
24
|
-
close() {
|
|
25
|
-
if (this.ownsClient)
|
|
26
|
-
this.client.close();
|
|
27
|
-
}
|
|
28
|
-
async listAutomations(actorUserId) {
|
|
29
|
-
await this.requireAdmin(this.db, actorUserId);
|
|
30
|
-
return (await this.db
|
|
31
|
-
.select()
|
|
32
|
-
.from(automations)
|
|
33
|
-
.where(isNull(automations.deletedAt))
|
|
34
|
-
.orderBy(desc(automations.createdAt), desc(automations.id))).map(asAutomation);
|
|
35
|
-
}
|
|
36
|
-
async createAutomation(input) {
|
|
37
|
-
return this.write(async (tx) => {
|
|
38
|
-
await this.requireAdmin(tx, input.actorUserId);
|
|
39
|
-
if (input.chatId && !(await this.chatExists(tx, input.chatId)))
|
|
40
|
-
throw new CollaborationError("not_found", "Automation chat was not found");
|
|
41
|
-
if (input.botId && !(await this.botExists(tx, input.botId)))
|
|
42
|
-
throw new CollaborationError("not_found", "Automation bot was not found");
|
|
43
|
-
validateTrigger(input.triggerType, input.triggerConfig, input.nextRunAt);
|
|
44
|
-
validateAction(input.actionType, input.actionConfig, input.chatId);
|
|
45
|
-
const id = createId();
|
|
46
|
-
const webhookToken = input.triggerType === "webhook"
|
|
47
|
-
? `happy2_auto_${randomBytes(32).toString("base64url")}`
|
|
48
|
-
: undefined;
|
|
49
|
-
const triggerConfig = webhookToken
|
|
50
|
-
? { ...input.triggerConfig, tokenHash: secretHash(webhookToken) }
|
|
51
|
-
: input.triggerConfig;
|
|
52
|
-
await tx.insert(automations).values({
|
|
53
|
-
id,
|
|
54
|
-
name: input.name,
|
|
55
|
-
createdByUserId: input.actorUserId,
|
|
56
|
-
botId: input.botId ?? null,
|
|
57
|
-
chatId: input.chatId ?? null,
|
|
58
|
-
triggerType: input.triggerType,
|
|
59
|
-
triggerConfigJson: JSON.stringify(triggerConfig),
|
|
60
|
-
actionType: input.actionType,
|
|
61
|
-
actionConfigJson: JSON.stringify(input.actionConfig),
|
|
62
|
-
timezone: input.timezone ?? null,
|
|
63
|
-
nextRunAt: input.nextRunAt ?? null,
|
|
64
|
-
});
|
|
65
|
-
const sequence = await this.nextSequence(tx);
|
|
66
|
-
await tx
|
|
67
|
-
.update(automations)
|
|
68
|
-
.set({ createdSequence: sequence })
|
|
69
|
-
.where(eq(automations.id, id));
|
|
70
|
-
await this.insertSyncEvent(tx, {
|
|
71
|
-
sequence,
|
|
72
|
-
kind: "automation.created",
|
|
73
|
-
entityId: id,
|
|
74
|
-
actorUserId: input.actorUserId,
|
|
75
|
-
});
|
|
76
|
-
await this.appendAudit(tx, input.actorUserId, "automation.created", id);
|
|
77
|
-
const row = await getAutomation(tx, id);
|
|
78
|
-
if (!row)
|
|
79
|
-
throw new Error("Automation was not created");
|
|
80
|
-
return {
|
|
81
|
-
automation: asAutomation(row),
|
|
82
|
-
hint: areaHint(sequence, "automations"),
|
|
83
|
-
...(webhookToken ? { webhookToken } : {}),
|
|
84
|
-
};
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
async updateAutomation(input) {
|
|
88
|
-
return this.write(async (tx) => {
|
|
89
|
-
await this.requireAdmin(tx, input.actorUserId);
|
|
90
|
-
const current = await getAutomation(tx, input.automationId);
|
|
91
|
-
if (!current)
|
|
92
|
-
throw new CollaborationError("not_found", "Automation was not found");
|
|
93
|
-
const currentTriggerConfig = jsonObject(current.triggerConfigJson);
|
|
94
|
-
const triggerConfig = input.triggerConfig
|
|
95
|
-
? {
|
|
96
|
-
...input.triggerConfig,
|
|
97
|
-
...(typeof currentTriggerConfig.tokenHash === "string"
|
|
98
|
-
? { tokenHash: currentTriggerConfig.tokenHash }
|
|
99
|
-
: {}),
|
|
100
|
-
}
|
|
101
|
-
: currentTriggerConfig;
|
|
102
|
-
const actionConfig = input.actionConfig ?? jsonObject(current.actionConfigJson);
|
|
103
|
-
validateTrigger(current.triggerType, triggerConfig, input.nextRunAt === null
|
|
104
|
-
? undefined
|
|
105
|
-
: (input.nextRunAt ?? current.nextRunAt ?? undefined));
|
|
106
|
-
validateAction(current.actionType, actionConfig, current.chatId ?? undefined);
|
|
107
|
-
await tx
|
|
108
|
-
.update(automations)
|
|
109
|
-
.set({
|
|
110
|
-
...(input.active === undefined ? {} : { active: input.active ? 1 : 0 }),
|
|
111
|
-
...(input.name === undefined ? {} : { name: input.name }),
|
|
112
|
-
...(input.triggerConfig === undefined
|
|
113
|
-
? {}
|
|
114
|
-
: { triggerConfigJson: JSON.stringify(triggerConfig) }),
|
|
115
|
-
...(input.actionConfig === undefined
|
|
116
|
-
? {}
|
|
117
|
-
: { actionConfigJson: JSON.stringify(actionConfig) }),
|
|
118
|
-
...(input.nextRunAt === undefined ? {} : { nextRunAt: input.nextRunAt }),
|
|
119
|
-
updatedAt: sql `CURRENT_TIMESTAMP`,
|
|
120
|
-
})
|
|
121
|
-
.where(and(eq(automations.id, input.automationId), isNull(automations.deletedAt)));
|
|
122
|
-
const sequence = await this.nextSequence(tx);
|
|
123
|
-
await this.insertSyncEvent(tx, {
|
|
124
|
-
sequence,
|
|
125
|
-
kind: "automation.updated",
|
|
126
|
-
entityId: input.automationId,
|
|
127
|
-
actorUserId: input.actorUserId,
|
|
128
|
-
});
|
|
129
|
-
await this.appendAudit(tx, input.actorUserId, "automation.updated", input.automationId);
|
|
130
|
-
const row = await getAutomation(tx, input.automationId);
|
|
131
|
-
if (!row)
|
|
132
|
-
throw new Error("Automation disappeared");
|
|
133
|
-
return { automation: asAutomation(row), hint: areaHint(sequence, "automations") };
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
async deleteAutomation(actorUserId, automationId) {
|
|
137
|
-
return this.write(async (tx) => {
|
|
138
|
-
await this.requireAdmin(tx, actorUserId);
|
|
139
|
-
const changed = await tx
|
|
140
|
-
.update(automations)
|
|
141
|
-
.set({
|
|
142
|
-
active: 0,
|
|
143
|
-
deletedAt: sql `CURRENT_TIMESTAMP`,
|
|
144
|
-
updatedAt: sql `CURRENT_TIMESTAMP`,
|
|
145
|
-
})
|
|
146
|
-
.where(and(eq(automations.id, automationId), isNull(automations.deletedAt)))
|
|
147
|
-
.returning({ id: automations.id });
|
|
148
|
-
if (changed.length === 0)
|
|
149
|
-
throw new CollaborationError("not_found", "Automation was not found");
|
|
150
|
-
const sequence = await this.nextSequence(tx);
|
|
151
|
-
await this.insertSyncEvent(tx, {
|
|
152
|
-
sequence,
|
|
153
|
-
kind: "automation.deleted",
|
|
154
|
-
entityId: automationId,
|
|
155
|
-
actorUserId,
|
|
156
|
-
});
|
|
157
|
-
await this.appendAudit(tx, actorUserId, "automation.deleted", automationId);
|
|
158
|
-
return areaHint(sequence, "automations");
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
async runAutomationNow(actorUserId, automationId, triggerEventId = `manual:${createId()}`) {
|
|
162
|
-
await this.requireAdmin(this.db, actorUserId);
|
|
163
|
-
return this.executeAutomation(automationId, triggerEventId, actorUserId);
|
|
164
|
-
}
|
|
165
|
-
async runWebhookAutomation(token, idempotencyKey) {
|
|
166
|
-
if (!token.startsWith("happy2_auto_") || token.length > 256)
|
|
167
|
-
throw new CollaborationError("not_found", "Automation webhook was not found");
|
|
168
|
-
if (idempotencyKey !== undefined &&
|
|
169
|
-
(idempotencyKey.length < 1 ||
|
|
170
|
-
idempotencyKey.length > 200 ||
|
|
171
|
-
!/^[\x21-\x7e]+$/.test(idempotencyKey)))
|
|
172
|
-
throw new CollaborationError("invalid", "Idempotency key is invalid");
|
|
173
|
-
const candidates = await this.db
|
|
174
|
-
.select()
|
|
175
|
-
.from(automations)
|
|
176
|
-
.where(and(eq(automations.active, 1), isNull(automations.deletedAt), eq(automations.triggerType, "webhook")))
|
|
177
|
-
.orderBy(asc(automations.id));
|
|
178
|
-
const digest = secretHash(token);
|
|
179
|
-
const row = candidates.find((candidate) => {
|
|
180
|
-
const stored = jsonObject(candidate.triggerConfigJson).tokenHash;
|
|
181
|
-
return typeof stored === "string" && hashesEqual(stored, digest);
|
|
182
|
-
});
|
|
183
|
-
if (!row?.createdByUserId)
|
|
184
|
-
throw new CollaborationError("not_found", "Automation webhook was not found");
|
|
185
|
-
const eventId = idempotencyKey
|
|
186
|
-
? `webhook:${secretHash(`${row.id}:${idempotencyKey}`)}`
|
|
187
|
-
: `webhook:${createId()}`;
|
|
188
|
-
return this.executeAutomation(row.id, eventId, row.createdByUserId);
|
|
189
|
-
}
|
|
190
|
-
async runDueAutomations(limit = 25) {
|
|
191
|
-
const due = await this.db
|
|
192
|
-
.select({
|
|
193
|
-
id: automations.id,
|
|
194
|
-
createdByUserId: automations.createdByUserId,
|
|
195
|
-
nextRunAt: automations.nextRunAt,
|
|
196
|
-
})
|
|
197
|
-
.from(automations)
|
|
198
|
-
.where(and(eq(automations.active, 1), isNull(automations.deletedAt), eq(automations.triggerType, "schedule"), sql `${automations.nextRunAt} is not null`, lte(sql `datetime(${automations.nextRunAt})`, sql `CURRENT_TIMESTAMP`)))
|
|
199
|
-
.orderBy(asc(automations.nextRunAt), asc(automations.id))
|
|
200
|
-
.limit(limit);
|
|
201
|
-
const hints = [];
|
|
202
|
-
for (const row of due) {
|
|
203
|
-
if (!row.createdByUserId || !row.nextRunAt)
|
|
204
|
-
continue;
|
|
205
|
-
try {
|
|
206
|
-
const result = await this.executeAutomation(row.id, `schedule:${row.nextRunAt}`, row.createdByUserId);
|
|
207
|
-
if (result.hint)
|
|
208
|
-
hints.push(result.hint);
|
|
209
|
-
}
|
|
210
|
-
catch {
|
|
211
|
-
// The execution row and automation last_error retain durable failure details.
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return hints;
|
|
215
|
-
}
|
|
216
|
-
/** Processes durable sync events after the event-automation cursor, including after restart. */
|
|
217
|
-
async runPendingEventAutomations(limit = 100) {
|
|
218
|
-
const [cursor] = await this.db
|
|
219
|
-
.select({ sequence: serverSyncState.automationEventSequence })
|
|
220
|
-
.from(serverSyncState)
|
|
221
|
-
.where(eq(serverSyncState.id, 1));
|
|
222
|
-
if (!cursor)
|
|
223
|
-
throw new Error("Sync state has not been initialized");
|
|
224
|
-
const sequences = await this.db
|
|
225
|
-
.selectDistinct({ sequence: syncEvents.sequence })
|
|
226
|
-
.from(syncEvents)
|
|
227
|
-
.where(gt(syncEvents.sequence, cursor.sequence))
|
|
228
|
-
.orderBy(asc(syncEvents.sequence))
|
|
229
|
-
.limit(limit);
|
|
230
|
-
const hints = [];
|
|
231
|
-
for (const row of sequences) {
|
|
232
|
-
hints.push(...(await this.runEventAutomations(row.sequence)));
|
|
233
|
-
await this.db
|
|
234
|
-
.update(serverSyncState)
|
|
235
|
-
.set({
|
|
236
|
-
automationEventSequence: sql `max(${serverSyncState.automationEventSequence}, ${row.sequence})`,
|
|
237
|
-
})
|
|
238
|
-
.where(eq(serverSyncState.id, 1));
|
|
239
|
-
}
|
|
240
|
-
return hints;
|
|
241
|
-
}
|
|
242
|
-
async runEventAutomations(sequence) {
|
|
243
|
-
if (!Number.isSafeInteger(sequence) || sequence < 1)
|
|
244
|
-
throw new TypeError("sequence must be a positive safe integer");
|
|
245
|
-
const [events, definitions] = await Promise.all([
|
|
246
|
-
this.db
|
|
247
|
-
.select({
|
|
248
|
-
id: syncEvents.id,
|
|
249
|
-
kind: syncEvents.kind,
|
|
250
|
-
chatId: syncEvents.chatId,
|
|
251
|
-
entityId: syncEvents.entityId,
|
|
252
|
-
})
|
|
253
|
-
.from(syncEvents)
|
|
254
|
-
.where(eq(syncEvents.sequence, sequence))
|
|
255
|
-
.orderBy(asc(syncEvents.id)),
|
|
256
|
-
this.db
|
|
257
|
-
.select()
|
|
258
|
-
.from(automations)
|
|
259
|
-
.where(and(eq(automations.active, 1), isNull(automations.deletedAt), eq(automations.triggerType, "event")))
|
|
260
|
-
.orderBy(asc(automations.id)),
|
|
261
|
-
]);
|
|
262
|
-
const hints = [];
|
|
263
|
-
for (const event of events) {
|
|
264
|
-
const automated = event.entityId
|
|
265
|
-
? Boolean((await this.db
|
|
266
|
-
.select({ id: messages.id })
|
|
267
|
-
.from(messages)
|
|
268
|
-
.where(and(eq(messages.id, event.entityId), or(eq(messages.kind, "automated"), sql `${messages.senderBotId} is not null`)))
|
|
269
|
-
.limit(1))[0])
|
|
270
|
-
: false;
|
|
271
|
-
for (const definition of definitions) {
|
|
272
|
-
if (definition.createdSequence >= sequence)
|
|
273
|
-
continue;
|
|
274
|
-
const automation = asAutomation(definition);
|
|
275
|
-
if (!matchesEvent(automation.triggerConfig, {
|
|
276
|
-
kind: event.kind,
|
|
277
|
-
chatId: event.chatId ?? undefined,
|
|
278
|
-
automated,
|
|
279
|
-
}))
|
|
280
|
-
continue;
|
|
281
|
-
if (!definition.createdByUserId)
|
|
282
|
-
continue;
|
|
283
|
-
try {
|
|
284
|
-
const result = await this.executeAutomation(automation.id, `sync:${event.id}`, definition.createdByUserId);
|
|
285
|
-
if (result.hint)
|
|
286
|
-
hints.push(result.hint);
|
|
287
|
-
}
|
|
288
|
-
catch {
|
|
289
|
-
// The automation run and last_error persist the failure for administrators.
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
return hints;
|
|
294
|
-
}
|
|
295
|
-
async scheduleMessage(input) {
|
|
296
|
-
if (!(await this.collaboration.canPostToChat(input.actorUserId, input.chatId)))
|
|
297
|
-
throw new CollaborationError("not_found", "Chat was not found");
|
|
298
|
-
for (const fileId of input.attachmentFileIds)
|
|
299
|
-
if (!(await this.collaboration.canAccessFile(input.actorUserId, fileId)))
|
|
300
|
-
throw new CollaborationError("not_found", "Attachment file was not found");
|
|
301
|
-
return this.write(async (tx) => {
|
|
302
|
-
const id = createId();
|
|
303
|
-
try {
|
|
304
|
-
await tx.insert(scheduledMessages).values({
|
|
305
|
-
id,
|
|
306
|
-
chatId: input.chatId,
|
|
307
|
-
createdByUserId: input.actorUserId,
|
|
308
|
-
text: input.text,
|
|
309
|
-
quotedMessageId: input.quotedMessageId ?? null,
|
|
310
|
-
threadRootMessageId: input.threadRootMessageId ?? null,
|
|
311
|
-
scheduledFor: input.scheduledFor,
|
|
312
|
-
timezone: input.timezone ?? null,
|
|
313
|
-
clientMutationId: input.clientMutationId ?? null,
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
catch (error) {
|
|
317
|
-
if (!input.clientMutationId)
|
|
318
|
-
throw error;
|
|
319
|
-
const [existing] = await tx
|
|
320
|
-
.select({ id: scheduledMessages.id })
|
|
321
|
-
.from(scheduledMessages)
|
|
322
|
-
.where(and(eq(scheduledMessages.createdByUserId, input.actorUserId), eq(scheduledMessages.clientMutationId, input.clientMutationId)));
|
|
323
|
-
if (!existing)
|
|
324
|
-
throw error;
|
|
325
|
-
return {
|
|
326
|
-
message: await this.getScheduledMessageWith(tx, input.actorUserId, existing.id),
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
if (input.attachmentFileIds.length > 0)
|
|
330
|
-
await tx.insert(scheduledMessageAttachments).values(input.attachmentFileIds.map((fileId, position) => ({
|
|
331
|
-
scheduledMessageId: id,
|
|
332
|
-
fileId,
|
|
333
|
-
position,
|
|
334
|
-
})));
|
|
335
|
-
const sequence = await this.nextSequence(tx);
|
|
336
|
-
await this.insertSyncEvent(tx, {
|
|
337
|
-
sequence,
|
|
338
|
-
kind: "scheduled.created",
|
|
339
|
-
entityId: id,
|
|
340
|
-
actorUserId: input.actorUserId,
|
|
341
|
-
targetUserId: input.actorUserId,
|
|
342
|
-
});
|
|
343
|
-
return {
|
|
344
|
-
message: await this.getScheduledMessageWith(tx, input.actorUserId, id),
|
|
345
|
-
hint: areaHint(sequence, "scheduled-messages"),
|
|
346
|
-
};
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
async listScheduledMessages(actorUserId) {
|
|
350
|
-
const rows = await this.db
|
|
351
|
-
.select({ id: scheduledMessages.id })
|
|
352
|
-
.from(scheduledMessages)
|
|
353
|
-
.where(eq(scheduledMessages.createdByUserId, actorUserId))
|
|
354
|
-
.orderBy(asc(scheduledMessages.scheduledFor), asc(scheduledMessages.id));
|
|
355
|
-
const messages = [];
|
|
356
|
-
for (const row of rows)
|
|
357
|
-
messages.push(await this.getScheduledMessageWith(this.db, actorUserId, row.id));
|
|
358
|
-
return messages;
|
|
359
|
-
}
|
|
360
|
-
async cancelScheduledMessage(actorUserId, scheduledMessageId) {
|
|
361
|
-
return this.write(async (tx) => {
|
|
362
|
-
const changed = await tx
|
|
363
|
-
.update(scheduledMessages)
|
|
364
|
-
.set({
|
|
365
|
-
status: "cancelled",
|
|
366
|
-
cancelledAt: sql `CURRENT_TIMESTAMP`,
|
|
367
|
-
updatedAt: sql `CURRENT_TIMESTAMP`,
|
|
368
|
-
})
|
|
369
|
-
.where(and(eq(scheduledMessages.id, scheduledMessageId), eq(scheduledMessages.createdByUserId, actorUserId), eq(scheduledMessages.status, "scheduled")))
|
|
370
|
-
.returning({ id: scheduledMessages.id });
|
|
371
|
-
if (changed.length === 0)
|
|
372
|
-
throw new CollaborationError("not_found", "Scheduled message was not found");
|
|
373
|
-
const sequence = await this.nextSequence(tx);
|
|
374
|
-
await this.insertSyncEvent(tx, {
|
|
375
|
-
sequence,
|
|
376
|
-
kind: "scheduled.cancelled",
|
|
377
|
-
entityId: scheduledMessageId,
|
|
378
|
-
actorUserId,
|
|
379
|
-
targetUserId: actorUserId,
|
|
380
|
-
});
|
|
381
|
-
return areaHint(sequence, "scheduled-messages");
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
async publishDueScheduledMessages(limit = 25) {
|
|
385
|
-
const due = await this.db
|
|
386
|
-
.select({ id: scheduledMessages.id, actorUserId: scheduledMessages.createdByUserId })
|
|
387
|
-
.from(scheduledMessages)
|
|
388
|
-
.where(or(and(eq(scheduledMessages.status, "scheduled"), lte(sql `datetime(${scheduledMessages.scheduledFor})`, sql `CURRENT_TIMESTAMP`)), and(eq(scheduledMessages.status, "publishing"), lte(sql `datetime(${scheduledMessages.updatedAt})`, sql `datetime('now', '-1 minute')`))))
|
|
389
|
-
.orderBy(asc(scheduledMessages.scheduledFor), asc(scheduledMessages.id))
|
|
390
|
-
.limit(limit);
|
|
391
|
-
const hints = [];
|
|
392
|
-
for (const row of due) {
|
|
393
|
-
if (!row.actorUserId)
|
|
394
|
-
continue;
|
|
395
|
-
const actorUserId = row.actorUserId;
|
|
396
|
-
const [claimed] = await this.db
|
|
397
|
-
.update(scheduledMessages)
|
|
398
|
-
.set({ status: "publishing", updatedAt: sql `CURRENT_TIMESTAMP` })
|
|
399
|
-
.where(and(eq(scheduledMessages.id, row.id), or(eq(scheduledMessages.status, "scheduled"), and(eq(scheduledMessages.status, "publishing"), lte(sql `datetime(${scheduledMessages.updatedAt})`, sql `datetime('now', '-1 minute')`)))))
|
|
400
|
-
.returning({ id: scheduledMessages.id });
|
|
401
|
-
if (!claimed)
|
|
402
|
-
continue;
|
|
403
|
-
let sent;
|
|
404
|
-
try {
|
|
405
|
-
const scheduled = await this.getScheduledMessageWith(this.db, actorUserId, row.id);
|
|
406
|
-
const [detail] = await this.db
|
|
407
|
-
.select({
|
|
408
|
-
quotedMessageId: scheduledMessages.quotedMessageId,
|
|
409
|
-
threadRootMessageId: scheduledMessages.threadRootMessageId,
|
|
410
|
-
})
|
|
411
|
-
.from(scheduledMessages)
|
|
412
|
-
.where(eq(scheduledMessages.id, row.id));
|
|
413
|
-
sent = await this.collaboration.sendMessage({
|
|
414
|
-
actorUserId,
|
|
415
|
-
chatId: scheduled.chatId,
|
|
416
|
-
text: scheduled.text,
|
|
417
|
-
attachmentFileIds: scheduled.attachmentFileIds,
|
|
418
|
-
quotedMessageId: detail?.quotedMessageId ?? undefined,
|
|
419
|
-
threadRootMessageId: detail?.threadRootMessageId ?? undefined,
|
|
420
|
-
clientMutationId: `scheduled:${row.id}`,
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
catch (error) {
|
|
424
|
-
hints.push(await this.write(async (tx) => {
|
|
425
|
-
await tx
|
|
426
|
-
.update(scheduledMessages)
|
|
427
|
-
.set({
|
|
428
|
-
status: "failed",
|
|
429
|
-
lastError: errorMessage(error),
|
|
430
|
-
updatedAt: sql `CURRENT_TIMESTAMP`,
|
|
431
|
-
})
|
|
432
|
-
.where(eq(scheduledMessages.id, row.id));
|
|
433
|
-
const sequence = await this.nextSequence(tx);
|
|
434
|
-
await this.insertSyncEvent(tx, {
|
|
435
|
-
sequence,
|
|
436
|
-
kind: "scheduled.failed",
|
|
437
|
-
entityId: row.id,
|
|
438
|
-
actorUserId,
|
|
439
|
-
targetUserId: actorUserId,
|
|
440
|
-
});
|
|
441
|
-
return areaHint(sequence, "scheduled-messages");
|
|
442
|
-
}));
|
|
443
|
-
continue;
|
|
444
|
-
}
|
|
445
|
-
const areaHintValue = await this.write(async (tx) => {
|
|
446
|
-
await tx
|
|
447
|
-
.update(scheduledMessages)
|
|
448
|
-
.set({
|
|
449
|
-
status: "published",
|
|
450
|
-
publishedMessageId: sent.message.id,
|
|
451
|
-
publishedAt: sql `CURRENT_TIMESTAMP`,
|
|
452
|
-
updatedAt: sql `CURRENT_TIMESTAMP`,
|
|
453
|
-
})
|
|
454
|
-
.where(eq(scheduledMessages.id, row.id));
|
|
455
|
-
const sequence = await this.nextSequence(tx);
|
|
456
|
-
await this.insertSyncEvent(tx, {
|
|
457
|
-
sequence,
|
|
458
|
-
kind: "scheduled.published",
|
|
459
|
-
entityId: row.id,
|
|
460
|
-
actorUserId,
|
|
461
|
-
targetUserId: actorUserId,
|
|
462
|
-
});
|
|
463
|
-
return areaHint(sequence, "scheduled-messages");
|
|
464
|
-
});
|
|
465
|
-
hints.push(sent.hint, areaHintValue);
|
|
466
|
-
}
|
|
467
|
-
return hints;
|
|
468
|
-
}
|
|
469
|
-
async executeAutomation(automationId, triggerEventId, actorUserId) {
|
|
470
|
-
const claimed = await this.write(async (tx) => {
|
|
471
|
-
const row = await getAutomation(tx, automationId);
|
|
472
|
-
if (!row || row.active !== 1)
|
|
473
|
-
throw new CollaborationError("not_found", "Automation was not found");
|
|
474
|
-
const [existing] = await tx
|
|
475
|
-
.select()
|
|
476
|
-
.from(automationRuns)
|
|
477
|
-
.where(and(eq(automationRuns.automationId, automationId), eq(automationRuns.triggerEventId, triggerEventId)));
|
|
478
|
-
if (existing?.status === "succeeded")
|
|
479
|
-
return {
|
|
480
|
-
automation: asAutomation(row),
|
|
481
|
-
runId: existing.id,
|
|
482
|
-
alreadyCompleted: true,
|
|
483
|
-
};
|
|
484
|
-
let runId;
|
|
485
|
-
if (existing) {
|
|
486
|
-
runId = existing.id;
|
|
487
|
-
const reclaimed = await tx
|
|
488
|
-
.update(automationRuns)
|
|
489
|
-
.set({
|
|
490
|
-
status: "running",
|
|
491
|
-
attempts: sql `${automationRuns.attempts} + 1`,
|
|
492
|
-
startedAt: sql `CURRENT_TIMESTAMP`,
|
|
493
|
-
completedAt: null,
|
|
494
|
-
lastError: null,
|
|
495
|
-
})
|
|
496
|
-
.where(and(eq(automationRuns.id, runId), or(sql `${automationRuns.status} in ('pending', 'failed')`, and(eq(automationRuns.status, "running"), lte(sql `datetime(${automationRuns.startedAt})`, sql `datetime('now', '-1 minute')`)))))
|
|
497
|
-
.returning({ id: automationRuns.id });
|
|
498
|
-
if (reclaimed.length === 0)
|
|
499
|
-
return { automation: asAutomation(row), runId, alreadyCompleted: true };
|
|
500
|
-
}
|
|
501
|
-
else {
|
|
502
|
-
runId = createId();
|
|
503
|
-
await tx.insert(automationRuns).values({
|
|
504
|
-
id: runId,
|
|
505
|
-
automationId,
|
|
506
|
-
triggerEventId,
|
|
507
|
-
scheduledFor: row.nextRunAt,
|
|
508
|
-
status: "running",
|
|
509
|
-
attempts: 1,
|
|
510
|
-
startedAt: sql `CURRENT_TIMESTAMP`,
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
await this.appendAudit(tx, actorUserId, "automation.run", automationId);
|
|
514
|
-
const intervalSeconds = positiveNumber(jsonObject(row.triggerConfigJson).intervalSeconds);
|
|
515
|
-
await tx
|
|
516
|
-
.update(automations)
|
|
517
|
-
.set({
|
|
518
|
-
nextRunAt: intervalSeconds
|
|
519
|
-
? new Date(Date.now() + intervalSeconds * 1_000).toISOString()
|
|
520
|
-
: null,
|
|
521
|
-
...(intervalSeconds || row.triggerType !== "schedule" ? {} : { active: 0 }),
|
|
522
|
-
lastRunAt: sql `CURRENT_TIMESTAMP`,
|
|
523
|
-
lastError: null,
|
|
524
|
-
updatedAt: sql `CURRENT_TIMESTAMP`,
|
|
525
|
-
})
|
|
526
|
-
.where(eq(automations.id, automationId));
|
|
527
|
-
return { automation: asAutomation(row), runId, alreadyCompleted: false };
|
|
528
|
-
});
|
|
529
|
-
if (claimed.alreadyCompleted)
|
|
530
|
-
return { runId: claimed.runId };
|
|
531
|
-
try {
|
|
532
|
-
let hint;
|
|
533
|
-
if (claimed.automation.actionType === "send_message") {
|
|
534
|
-
const config = claimed.automation.actionConfig;
|
|
535
|
-
const chatId = claimed.automation.chatId ?? requiredString(config.chatId, "chatId");
|
|
536
|
-
const sent = await this.collaboration.sendAutomatedMessage({
|
|
537
|
-
actorUserId,
|
|
538
|
-
chatId,
|
|
539
|
-
text: requiredString(config.text, "text"),
|
|
540
|
-
attachmentFileIds: stringArray(config.attachmentFileIds),
|
|
541
|
-
clientMutationId: `automation:${claimed.runId}`,
|
|
542
|
-
botId: claimed.automation.botId,
|
|
543
|
-
});
|
|
544
|
-
hint = sent.hint;
|
|
545
|
-
}
|
|
546
|
-
else if (claimed.automation.actionType === "call_webhook") {
|
|
547
|
-
const subscriptionId = requiredString(claimed.automation.actionConfig.subscriptionId, "subscriptionId");
|
|
548
|
-
await this.db
|
|
549
|
-
.insert(webhookDeliveries)
|
|
550
|
-
.values({
|
|
551
|
-
id: createId(),
|
|
552
|
-
subscriptionId,
|
|
553
|
-
eventId: claimed.runId,
|
|
554
|
-
eventType: "automation.triggered",
|
|
555
|
-
payloadJson: JSON.stringify(claimed.automation.actionConfig.payload ?? {}),
|
|
556
|
-
})
|
|
557
|
-
.onConflictDoNothing();
|
|
558
|
-
}
|
|
559
|
-
else {
|
|
560
|
-
if (!this.options.moderate)
|
|
561
|
-
throw new Error("Moderation automation handler is unavailable");
|
|
562
|
-
const config = claimed.automation.actionConfig;
|
|
563
|
-
const moderated = await this.options.moderate({
|
|
564
|
-
actorUserId,
|
|
565
|
-
reportId: requiredString(config.reportId, "reportId"),
|
|
566
|
-
action: moderationAction(config.action),
|
|
567
|
-
reason: optionalString(config.reason),
|
|
568
|
-
expiresAt: optionalString(config.expiresAt),
|
|
569
|
-
metadata: optionalObject(config.metadata),
|
|
570
|
-
automationRunId: claimed.runId,
|
|
571
|
-
});
|
|
572
|
-
hint = moderated.sync;
|
|
573
|
-
}
|
|
574
|
-
await this.db
|
|
575
|
-
.update(automationRuns)
|
|
576
|
-
.set({
|
|
577
|
-
status: "succeeded",
|
|
578
|
-
resultJson: JSON.stringify({ hint: hint ?? null }),
|
|
579
|
-
completedAt: sql `CURRENT_TIMESTAMP`,
|
|
580
|
-
})
|
|
581
|
-
.where(eq(automationRuns.id, claimed.runId));
|
|
582
|
-
return { hint, runId: claimed.runId };
|
|
583
|
-
}
|
|
584
|
-
catch (error) {
|
|
585
|
-
const message = errorMessage(error);
|
|
586
|
-
await this.write(async (tx) => {
|
|
587
|
-
await tx
|
|
588
|
-
.update(automationRuns)
|
|
589
|
-
.set({
|
|
590
|
-
status: "failed",
|
|
591
|
-
lastError: message,
|
|
592
|
-
completedAt: sql `CURRENT_TIMESTAMP`,
|
|
593
|
-
})
|
|
594
|
-
.where(eq(automationRuns.id, claimed.runId));
|
|
595
|
-
await tx
|
|
596
|
-
.update(automations)
|
|
597
|
-
.set({ lastError: message, updatedAt: sql `CURRENT_TIMESTAMP` })
|
|
598
|
-
.where(eq(automations.id, automationId));
|
|
599
|
-
});
|
|
600
|
-
throw error;
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
async getScheduledMessageWith(executor, actorUserId, id) {
|
|
604
|
-
const [row] = await executor
|
|
605
|
-
.select()
|
|
606
|
-
.from(scheduledMessages)
|
|
607
|
-
.where(and(eq(scheduledMessages.id, id), eq(scheduledMessages.createdByUserId, actorUserId)));
|
|
608
|
-
if (!row)
|
|
609
|
-
throw new CollaborationError("not_found", "Scheduled message was not found");
|
|
610
|
-
const attachments = await executor
|
|
611
|
-
.select({ fileId: scheduledMessageAttachments.fileId })
|
|
612
|
-
.from(scheduledMessageAttachments)
|
|
613
|
-
.where(eq(scheduledMessageAttachments.scheduledMessageId, id))
|
|
614
|
-
.orderBy(asc(scheduledMessageAttachments.position));
|
|
615
|
-
return {
|
|
616
|
-
id,
|
|
617
|
-
chatId: row.chatId,
|
|
618
|
-
text: row.text,
|
|
619
|
-
attachmentFileIds: attachments.map(({ fileId }) => fileId),
|
|
620
|
-
scheduledFor: row.scheduledFor,
|
|
621
|
-
timezone: row.timezone ?? undefined,
|
|
622
|
-
status: row.status,
|
|
623
|
-
publishedMessageId: row.publishedMessageId ?? undefined,
|
|
624
|
-
lastError: row.lastError ?? undefined,
|
|
625
|
-
createdAt: row.createdAt,
|
|
626
|
-
updatedAt: row.updatedAt,
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
async requireAdmin(executor, userId) {
|
|
630
|
-
const [row] = await executor
|
|
631
|
-
.select({ id: users.id })
|
|
632
|
-
.from(users)
|
|
633
|
-
.innerJoin(accounts, eq(accounts.id, users.accountId))
|
|
634
|
-
.where(and(eq(users.id, userId), eq(users.role, "admin"), isNull(users.deletedAt), eq(accounts.active, 1), isNull(accounts.bannedAt), isNull(accounts.deletedAt)));
|
|
635
|
-
if (!row)
|
|
636
|
-
throw new CollaborationError("forbidden", "Server admin permission is required");
|
|
637
|
-
}
|
|
638
|
-
async chatExists(executor, chatId) {
|
|
639
|
-
return Boolean((await executor
|
|
640
|
-
.select({ id: chats.id })
|
|
641
|
-
.from(chats)
|
|
642
|
-
.where(and(eq(chats.id, chatId), isNull(chats.deletedAt)))
|
|
643
|
-
.limit(1))[0]);
|
|
644
|
-
}
|
|
645
|
-
async botExists(executor, botId) {
|
|
646
|
-
return Boolean((await executor
|
|
647
|
-
.select({ id: botIdentities.id })
|
|
648
|
-
.from(botIdentities)
|
|
649
|
-
.where(and(eq(botIdentities.id, botId), eq(botIdentities.active, 1), isNull(botIdentities.deletedAt)))
|
|
650
|
-
.limit(1))[0]);
|
|
651
|
-
}
|
|
652
|
-
async nextSequence(tx) {
|
|
653
|
-
const [row] = await tx
|
|
654
|
-
.update(serverSyncState)
|
|
655
|
-
.set({ sequence: sql `${serverSyncState.sequence} + 1` })
|
|
656
|
-
.where(eq(serverSyncState.id, 1))
|
|
657
|
-
.returning({ sequence: serverSyncState.sequence });
|
|
658
|
-
if (!row)
|
|
659
|
-
throw new Error("Sync state has not been initialized");
|
|
660
|
-
return row.sequence;
|
|
661
|
-
}
|
|
662
|
-
async insertSyncEvent(tx, input) {
|
|
663
|
-
await tx.insert(syncEvents).values({
|
|
664
|
-
sequence: input.sequence,
|
|
665
|
-
kind: input.kind,
|
|
666
|
-
entityId: input.entityId,
|
|
667
|
-
actorUserId: input.actorUserId ?? null,
|
|
668
|
-
targetUserId: input.targetUserId ?? null,
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
async appendAudit(tx, actorUserId, action, targetId) {
|
|
672
|
-
await tx.insert(auditLogEntries).values({
|
|
673
|
-
id: createId(),
|
|
674
|
-
actorUserId,
|
|
675
|
-
action,
|
|
676
|
-
targetType: "automation",
|
|
677
|
-
targetId,
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
write(operation) {
|
|
681
|
-
return retrySqliteBusy(() => this.db.transaction(operation));
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
async function getAutomation(executor, id) {
|
|
685
|
-
const rows = await executor
|
|
686
|
-
.select()
|
|
687
|
-
.from(automations)
|
|
688
|
-
.where(and(eq(automations.id, id), isNull(automations.deletedAt)));
|
|
689
|
-
return rows[0];
|
|
690
|
-
}
|
|
691
|
-
function areaHint(sequence, area) {
|
|
692
|
-
return { sequence: String(sequence), chats: [], areas: [area] };
|
|
693
|
-
}
|
|
694
|
-
function asAutomation(row) {
|
|
695
|
-
const triggerConfig = jsonObject(row.triggerConfigJson);
|
|
696
|
-
delete triggerConfig.tokenHash;
|
|
697
|
-
return {
|
|
698
|
-
id: row.id,
|
|
699
|
-
name: row.name,
|
|
700
|
-
chatId: row.chatId ?? undefined,
|
|
701
|
-
botId: row.botId ?? undefined,
|
|
702
|
-
triggerType: row.triggerType,
|
|
703
|
-
triggerConfig,
|
|
704
|
-
actionType: row.actionType,
|
|
705
|
-
actionConfig: jsonObject(row.actionConfigJson),
|
|
706
|
-
timezone: row.timezone ?? undefined,
|
|
707
|
-
nextRunAt: row.nextRunAt ?? undefined,
|
|
708
|
-
active: row.active === 1,
|
|
709
|
-
lastRunAt: row.lastRunAt ?? undefined,
|
|
710
|
-
lastError: row.lastError ?? undefined,
|
|
711
|
-
createdAt: row.createdAt,
|
|
712
|
-
updatedAt: row.updatedAt,
|
|
713
|
-
};
|
|
714
|
-
}
|
|
715
|
-
function validateTrigger(type, config, nextRunAt) {
|
|
716
|
-
if (type === "schedule") {
|
|
717
|
-
if (!nextRunAt || !Number.isFinite(Date.parse(nextRunAt)))
|
|
718
|
-
throw new CollaborationError("invalid", "Scheduled automation requires nextRunAt");
|
|
719
|
-
const interval = config.intervalSeconds;
|
|
720
|
-
if (interval !== undefined &&
|
|
721
|
-
(!Number.isSafeInteger(interval) ||
|
|
722
|
-
interval < 60 ||
|
|
723
|
-
interval > 31_536_000))
|
|
724
|
-
throw new CollaborationError("invalid", "intervalSeconds must be between 60 and 31536000");
|
|
725
|
-
}
|
|
726
|
-
if (type === "event")
|
|
727
|
-
eventKinds(config);
|
|
728
|
-
}
|
|
729
|
-
function validateAction(type, config, chatId) {
|
|
730
|
-
if (type === "send_message") {
|
|
731
|
-
if (!chatId && typeof config.chatId !== "string")
|
|
732
|
-
throw new CollaborationError("invalid", "Send-message automation requires a chat");
|
|
733
|
-
requiredString(config.text, "actionConfig.text");
|
|
734
|
-
stringArray(config.attachmentFileIds);
|
|
735
|
-
}
|
|
736
|
-
if (type === "call_webhook")
|
|
737
|
-
requiredString(config.subscriptionId, "subscriptionId");
|
|
738
|
-
if (type === "moderate") {
|
|
739
|
-
requiredString(config.reportId, "reportId");
|
|
740
|
-
moderationAction(config.action);
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
function eventKinds(config) {
|
|
744
|
-
if (typeof config.event === "string" && config.event.trim())
|
|
745
|
-
return [config.event];
|
|
746
|
-
if (Array.isArray(config.eventTypes) &&
|
|
747
|
-
config.eventTypes.length > 0 &&
|
|
748
|
-
config.eventTypes.length <= 100 &&
|
|
749
|
-
config.eventTypes.every((value) => typeof value === "string" && value.length > 0 && value.length <= 128))
|
|
750
|
-
return [...new Set(config.eventTypes)];
|
|
751
|
-
throw new CollaborationError("invalid", "Event automation requires triggerConfig.event or triggerConfig.eventTypes");
|
|
752
|
-
}
|
|
753
|
-
function matchesEvent(config, event) {
|
|
754
|
-
const kinds = eventKinds(config);
|
|
755
|
-
if (!kinds.includes("*") && !kinds.includes(event.kind))
|
|
756
|
-
return false;
|
|
757
|
-
if (typeof config.chatId === "string" && config.chatId !== event.chatId)
|
|
758
|
-
return false;
|
|
759
|
-
return config.includeAutomated === true || !event.automated;
|
|
760
|
-
}
|
|
761
|
-
function moderationAction(value) {
|
|
762
|
-
const values = [
|
|
763
|
-
"warn",
|
|
764
|
-
"restrict",
|
|
765
|
-
"remove_message",
|
|
766
|
-
"remove_file",
|
|
767
|
-
"ban",
|
|
768
|
-
"unban",
|
|
769
|
-
"delete_user",
|
|
770
|
-
];
|
|
771
|
-
if (typeof value !== "string" || !values.includes(value))
|
|
772
|
-
throw new CollaborationError("invalid", "actionConfig.action is invalid");
|
|
773
|
-
return value;
|
|
774
|
-
}
|
|
775
|
-
function optionalString(value) {
|
|
776
|
-
if (value === undefined)
|
|
777
|
-
return undefined;
|
|
778
|
-
if (typeof value !== "string")
|
|
779
|
-
throw new CollaborationError("invalid", "Automation action value must be a string");
|
|
780
|
-
return value;
|
|
781
|
-
}
|
|
782
|
-
function optionalObject(value) {
|
|
783
|
-
if (value === undefined)
|
|
784
|
-
return undefined;
|
|
785
|
-
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
786
|
-
throw new CollaborationError("invalid", "Automation metadata must be an object");
|
|
787
|
-
return value;
|
|
788
|
-
}
|
|
789
|
-
function secretHash(value) {
|
|
790
|
-
return createHash("sha256").update(value, "utf8").digest("hex");
|
|
791
|
-
}
|
|
792
|
-
function hashesEqual(left, right) {
|
|
793
|
-
const a = Buffer.from(left, "hex");
|
|
794
|
-
const b = Buffer.from(right, "hex");
|
|
795
|
-
return a.length === b.length && a.length > 0 && timingSafeEqual(a, b);
|
|
796
|
-
}
|
|
797
|
-
function jsonObject(value) {
|
|
798
|
-
const parsed = JSON.parse(value);
|
|
799
|
-
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed))
|
|
800
|
-
throw new Error("Expected JSON object");
|
|
801
|
-
return parsed;
|
|
802
|
-
}
|
|
803
|
-
function requiredString(value, name) {
|
|
804
|
-
if (typeof value !== "string" || value.length === 0)
|
|
805
|
-
throw new CollaborationError("invalid", `${name} is required`);
|
|
806
|
-
return value;
|
|
807
|
-
}
|
|
808
|
-
function stringArray(value) {
|
|
809
|
-
if (value === undefined)
|
|
810
|
-
return [];
|
|
811
|
-
if (!Array.isArray(value) || value.some((entry) => typeof entry !== "string"))
|
|
812
|
-
throw new CollaborationError("invalid", "attachmentFileIds must be an array of ids");
|
|
813
|
-
return [...new Set(value)];
|
|
814
|
-
}
|
|
815
|
-
function positiveNumber(value) {
|
|
816
|
-
return Number.isSafeInteger(value) && value > 0 ? value : undefined;
|
|
817
|
-
}
|
|
818
|
-
function errorMessage(error) {
|
|
819
|
-
return (error instanceof Error ? error.message : String(error)).slice(0, 2_000);
|
|
820
|
-
}
|
|
821
|
-
//# sourceMappingURL=repository.js.map
|