@prostgles/prostgles 2.3.6-dev.1786615880 → 2.3.6-dev.1786992729

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/client/build/js/298.bundle.js +1 -1
  2. package/client/build/js/main.bundle.js +2 -2
  3. package/client/static/logos/hetzner.svg +1 -0
  4. package/dist/common/DBGeneratedSchema.d.ts +21 -25
  5. package/dist/common/DBGeneratedSchema.d.ts.map +1 -1
  6. package/dist/common/llmUtils.d.ts.map +1 -1
  7. package/dist/common/mcp/tablePermissionsSchema.d.ts.map +1 -1
  8. package/dist/common/mcp/tablePermissionsSchema.js +1 -5
  9. package/dist/common/mcp/tablePermissionsSchema.js.map +1 -1
  10. package/dist/common/prostglesApiTypes.d.ts +1 -1
  11. package/dist/common/prostglesApiTypes.d.ts.map +1 -1
  12. package/dist/common/prostglesApiTypes.js +1 -1
  13. package/dist/server/package.json +2 -2
  14. package/dist/server/src/ConnectionManager/ConnectionManager.d.ts +2 -2
  15. package/dist/server/src/ConnectionManager/ConnectionManager.d.ts.map +1 -1
  16. package/dist/server/src/ConnectionManager/ConnectionManager.js +10 -4
  17. package/dist/server/src/ConnectionManager/ConnectionManager.js.map +1 -1
  18. package/dist/server/src/ConnectionManager/compileSchemaConfigProject.d.ts +2 -0
  19. package/dist/server/src/ConnectionManager/compileSchemaConfigProject.d.ts.map +1 -0
  20. package/dist/server/src/ConnectionManager/compileSchemaConfigProject.js +28 -0
  21. package/dist/server/src/ConnectionManager/compileSchemaConfigProject.js.map +1 -0
  22. package/dist/server/src/ConnectionManager/connectionManagerUtils.d.ts +0 -52
  23. package/dist/server/src/ConnectionManager/connectionManagerUtils.d.ts.map +1 -1
  24. package/dist/server/src/ConnectionManager/connectionManagerUtils.js +1 -10
  25. package/dist/server/src/ConnectionManager/connectionManagerUtils.js.map +1 -1
  26. package/dist/server/src/ConnectionManager/getConnectionAuth.d.ts.map +1 -1
  27. package/dist/server/src/ConnectionManager/getConnectionAuth.js +1 -0
  28. package/dist/server/src/ConnectionManager/getConnectionAuth.js.map +1 -1
  29. package/dist/server/src/ConnectionManager/getConnectionServerFunctions.d.ts.map +1 -1
  30. package/dist/server/src/ConnectionManager/getConnectionServerFunctions.js +98 -56
  31. package/dist/server/src/ConnectionManager/getConnectionServerFunctions.js.map +1 -1
  32. package/dist/server/src/ConnectionManager/getHotReloadConfigs.d.ts +4 -76
  33. package/dist/server/src/ConnectionManager/getHotReloadConfigs.d.ts.map +1 -1
  34. package/dist/server/src/ConnectionManager/getHotReloadConfigs.js +6 -5
  35. package/dist/server/src/ConnectionManager/getHotReloadConfigs.js.map +1 -1
  36. package/dist/server/src/ConnectionManager/parseTableConfig.d.ts +2 -1
  37. package/dist/server/src/ConnectionManager/parseTableConfig.d.ts.map +1 -1
  38. package/dist/server/src/ConnectionManager/parseTableConfig.js +84 -76
  39. package/dist/server/src/ConnectionManager/parseTableConfig.js.map +1 -1
  40. package/dist/server/src/ConnectionManager/startConnection.d.ts.map +1 -1
  41. package/dist/server/src/ConnectionManager/startConnection.js +1 -1
  42. package/dist/server/src/ConnectionManager/startConnection.js.map +1 -1
  43. package/dist/server/src/ConnectionManager/syncSchemaConfig.d.ts.map +1 -1
  44. package/dist/server/src/ConnectionManager/syncSchemaConfig.js +4 -26
  45. package/dist/server/src/ConnectionManager/syncSchemaConfig.js.map +1 -1
  46. package/dist/server/src/Logger.d.ts.map +1 -1
  47. package/dist/server/src/Logger.js +53 -11
  48. package/dist/server/src/Logger.js.map +1 -1
  49. package/dist/server/src/McpHub/AnthropicMcpHub/McpOAuth/saveServerInfo.js.map +1 -1
  50. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Documents.mcp.js +3 -3
  51. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Documents.mcp.js.map +1 -1
  52. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateAgenticWorkflowDefinitions.d.ts.map +1 -1
  53. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateDatabaseAccessDefinitions.js +2 -2
  54. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateDatabaseAccessDefinitions.js.map +1 -1
  55. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/createWorkflowExecutionHandlers.d.ts.map +1 -1
  56. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/getAgentConfigWithDefaults.d.ts.map +1 -1
  57. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/setupOrchestrationToolPermissions.d.ts.map +1 -1
  58. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getAgenticWorkflowDockerCoreFiles.d.ts +1 -1
  59. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getAgenticWorkflowDockerCoreFiles.js +1 -1
  60. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/startAgenticWorkflow.d.ts +1 -1
  61. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/startAgenticWorkflow.d.ts.map +1 -1
  62. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/startAgenticWorkflow.js +2 -2
  63. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/startAgenticWorkflow.js.map +1 -1
  64. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Web/Web.mcp.js +4 -4
  65. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Web/Web.mcp.js.map +1 -1
  66. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/getWebDevChatAndConnection.d.ts.map +1 -1
  67. package/dist/server/src/ServiceManager/ServiceManager.d.ts +0 -1
  68. package/dist/server/src/ServiceManager/ServiceManager.d.ts.map +1 -1
  69. package/dist/server/src/ServiceManager/ServiceManager.js +1 -7
  70. package/dist/server/src/ServiceManager/ServiceManager.js.map +1 -1
  71. package/dist/server/src/ServiceManager/ServiceManager.spec.js +1 -1
  72. package/dist/server/src/ServiceManager/ServiceManager.spec.js.map +1 -1
  73. package/dist/server/src/authConfig/getAuth.d.ts +54 -0
  74. package/dist/server/src/authConfig/getAuth.d.ts.map +1 -1
  75. package/dist/server/src/authConfig/getAuth.js +1 -0
  76. package/dist/server/src/authConfig/getAuth.js.map +1 -1
  77. package/dist/server/src/authConfig/sessionUtils.d.ts.map +1 -1
  78. package/dist/server/src/authConfig/subscribeToAuthSetupChanges.d.ts +1 -1
  79. package/dist/server/src/authConfig/subscribeToAuthSetupChanges.d.ts.map +1 -1
  80. package/dist/server/src/cli/cli.js +8 -23
  81. package/dist/server/src/cli/cli.js.map +1 -1
  82. package/dist/server/src/cli/cliUtils.d.ts +1 -0
  83. package/dist/server/src/cli/cliUtils.d.ts.map +1 -1
  84. package/dist/server/src/cli/cliUtils.js +30 -0
  85. package/dist/server/src/cli/cliUtils.js.map +1 -1
  86. package/dist/server/src/cliServer.d.ts +2 -0
  87. package/dist/server/src/cliServer.d.ts.map +1 -0
  88. package/dist/server/src/cliServer.js +4 -0
  89. package/dist/server/src/cliServer.js.map +1 -0
  90. package/dist/server/src/electronConfig.d.ts.map +1 -1
  91. package/dist/server/src/electronConfig.js +3 -3
  92. package/dist/server/src/electronConfig.js.map +1 -1
  93. package/dist/server/src/index.d.ts.map +1 -1
  94. package/dist/server/src/index.js +2 -1
  95. package/dist/server/src/index.js.map +1 -1
  96. package/dist/server/src/init/initUsers.d.ts.map +1 -1
  97. package/dist/server/src/init/prostglesOnReady.d.ts +3 -5
  98. package/dist/server/src/init/prostglesOnReady.d.ts.map +1 -1
  99. package/dist/server/src/init/prostglesOnReady.js +15 -7
  100. package/dist/server/src/init/prostglesOnReady.js.map +1 -1
  101. package/dist/server/src/init/startProstgles.d.ts.map +1 -1
  102. package/dist/server/src/init/startProstgles.js +4 -2
  103. package/dist/server/src/init/startProstgles.js.map +1 -1
  104. package/dist/server/src/publish/getPublishLLM.d.ts +0 -28
  105. package/dist/server/src/publish/getPublishLLM.d.ts.map +1 -1
  106. package/dist/server/src/publish/getPublishLLM.js +5 -43
  107. package/dist/server/src/publish/getPublishLLM.js.map +1 -1
  108. package/dist/server/src/publish/getPublishLlmChats.d.ts.map +1 -1
  109. package/dist/server/src/runtimeMode.d.ts +2 -0
  110. package/dist/server/src/runtimeMode.d.ts.map +1 -0
  111. package/dist/server/src/runtimeMode.js +22 -0
  112. package/dist/server/src/runtimeMode.js.map +1 -0
  113. package/dist/server/src/schemaConfig.d.ts +3 -2
  114. package/dist/server/src/schemaConfig.d.ts.map +1 -1
  115. package/dist/server/src/schemaConfig.js +5 -1
  116. package/dist/server/src/schemaConfig.js.map +1 -1
  117. package/dist/server/src/serverFunctions/adminServerFunctions/{getAgenticWorkflowFunctions.d.ts → agenticWorkflowFunctions.d.ts} +64 -325
  118. package/dist/server/src/serverFunctions/adminServerFunctions/agenticWorkflowFunctions.d.ts.map +1 -0
  119. package/dist/server/src/serverFunctions/adminServerFunctions/agenticWorkflowFunctions.js +150 -0
  120. package/dist/server/src/serverFunctions/adminServerFunctions/agenticWorkflowFunctions.js.map +1 -0
  121. package/dist/server/src/serverFunctions/adminServerFunctions/backupServerFunctions.d.ts +453 -0
  122. package/dist/server/src/serverFunctions/adminServerFunctions/backupServerFunctions.d.ts.map +1 -0
  123. package/dist/server/src/serverFunctions/adminServerFunctions/backupServerFunctions.js +155 -0
  124. package/dist/server/src/serverFunctions/adminServerFunctions/backupServerFunctions.js.map +1 -0
  125. package/dist/server/src/serverFunctions/adminServerFunctions/mcpServerFunctions.d.ts +514 -0
  126. package/dist/server/src/serverFunctions/adminServerFunctions/mcpServerFunctions.d.ts.map +1 -0
  127. package/dist/server/src/serverFunctions/adminServerFunctions/mcpServerFunctions.js +236 -0
  128. package/dist/server/src/serverFunctions/adminServerFunctions/mcpServerFunctions.js.map +1 -0
  129. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.d.ts +3465 -0
  130. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.d.ts.map +1 -0
  131. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.js +448 -0
  132. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.js.map +1 -0
  133. package/dist/server/src/serverFunctions/adminServerFunctions/webAppServerFunctions.d.ts +170 -0
  134. package/dist/server/src/serverFunctions/adminServerFunctions/webAppServerFunctions.d.ts.map +1 -0
  135. package/dist/server/src/serverFunctions/adminServerFunctions/webAppServerFunctions.js +185 -0
  136. package/dist/server/src/serverFunctions/adminServerFunctions/webAppServerFunctions.js.map +1 -0
  137. package/dist/server/src/serverFunctions/applySampleSchema.d.ts +1 -1
  138. package/dist/server/src/serverFunctions/applySampleSchema.d.ts.map +1 -1
  139. package/dist/server/src/serverFunctions/applySampleSchema.js +2 -2
  140. package/dist/server/src/serverFunctions/applySampleSchema.js.map +1 -1
  141. package/dist/server/src/serverFunctions/askLLM/askLLM.d.ts +0 -2
  142. package/dist/server/src/serverFunctions/askLLM/askLLM.d.ts.map +1 -1
  143. package/dist/server/src/serverFunctions/askLLM/askLLM.js +25 -33
  144. package/dist/server/src/serverFunctions/askLLM/askLLM.js.map +1 -1
  145. package/dist/server/src/serverFunctions/askLLM/getLlmLimitWasReached.d.ts +4 -0
  146. package/dist/server/src/serverFunctions/askLLM/getLlmLimitWasReached.d.ts.map +1 -0
  147. package/dist/server/src/serverFunctions/askLLM/getLlmLimitWasReached.js +41 -0
  148. package/dist/server/src/serverFunctions/askLLM/getLlmLimitWasReached.js.map +1 -0
  149. package/dist/server/src/serverFunctions/askLLM/getPastMessages.d.ts.map +1 -1
  150. package/dist/server/src/serverFunctions/askLLM/getValidatedAskLLMChatOptions.d.ts +1 -0
  151. package/dist/server/src/serverFunctions/askLLM/getValidatedAskLLMChatOptions.d.ts.map +1 -1
  152. package/dist/server/src/serverFunctions/askLLM/getValidatedAskLLMChatOptions.js.map +1 -1
  153. package/dist/server/src/serverFunctions/askLLM/handleToolUseResultConfirmation.d.ts.map +1 -1
  154. package/dist/server/src/serverFunctions/askLLM/prostglesLLMTools/getMCPServerTools.d.ts.map +1 -1
  155. package/dist/server/src/serverFunctions/askLLM/prostglesLLMTools/getMcpToolsWithDynamicDescription.d.ts.map +1 -1
  156. package/dist/server/src/serverFunctions/askLLM/refreshModels.d.ts +6 -0
  157. package/dist/server/src/serverFunctions/askLLM/refreshModels.d.ts.map +1 -1
  158. package/dist/server/src/serverFunctions/askLLM/refreshModels.js +44 -1
  159. package/dist/server/src/serverFunctions/askLLM/refreshModels.js.map +1 -1
  160. package/dist/server/src/serverFunctions/askLLM/setupLLMProviders.d.ts.map +1 -1
  161. package/dist/server/src/serverFunctions/askLLM/setupLLMProviders.js +7 -0
  162. package/dist/server/src/serverFunctions/askLLM/setupLLMProviders.js.map +1 -1
  163. package/dist/server/src/serverFunctions/defineFunctionGroup.d.ts +5 -0
  164. package/dist/server/src/serverFunctions/defineFunctionGroup.d.ts.map +1 -0
  165. package/dist/server/src/serverFunctions/defineFunctionGroup.js +7 -0
  166. package/dist/server/src/serverFunctions/defineFunctionGroup.js.map +1 -0
  167. package/dist/server/src/serverFunctions/getConnectionAndDatabaseConfig.d.ts +1 -1
  168. package/dist/server/src/serverFunctions/getConnectionAndDatabaseConfig.d.ts.map +1 -1
  169. package/dist/server/src/serverFunctions/insertConfigWorkspaces.d.ts +8 -0
  170. package/dist/server/src/serverFunctions/insertConfigWorkspaces.d.ts.map +1 -0
  171. package/dist/server/src/serverFunctions/insertConfigWorkspaces.js +59 -0
  172. package/dist/server/src/serverFunctions/insertConfigWorkspaces.js.map +1 -0
  173. package/dist/server/src/serverFunctions/stateServerFunctions.d.ts +3823 -0
  174. package/dist/server/src/serverFunctions/stateServerFunctions.d.ts.map +1 -0
  175. package/dist/server/src/serverFunctions/stateServerFunctions.js +67 -0
  176. package/dist/server/src/serverFunctions/stateServerFunctions.js.map +1 -0
  177. package/dist/server/src/serverFunctions/userServerFunctions/approveToolUse.d.ts +2 -5
  178. package/dist/server/src/serverFunctions/userServerFunctions/approveToolUse.d.ts.map +1 -1
  179. package/dist/server/src/serverFunctions/userServerFunctions/approveToolUse.js +3 -5
  180. package/dist/server/src/serverFunctions/userServerFunctions/approveToolUse.js.map +1 -1
  181. package/dist/server/src/serverFunctions/userServerFunctions/userServerFunctions.d.ts +333 -0
  182. package/dist/server/src/serverFunctions/userServerFunctions/userServerFunctions.d.ts.map +1 -0
  183. package/dist/server/src/serverFunctions/userServerFunctions/userServerFunctions.js +231 -0
  184. package/dist/server/src/serverFunctions/userServerFunctions/userServerFunctions.js.map +1 -0
  185. package/dist/server/src/tableConfig/tableConfigConnections.d.ts.map +1 -1
  186. package/dist/server/src/tableConfig/tableConfigConnections.js +1 -32
  187. package/dist/server/src/tableConfig/tableConfigConnections.js.map +1 -1
  188. package/dist/server/src/tableConfig/tableConfigDatabaseConfig.d.ts.map +1 -1
  189. package/dist/server/src/tableConfig/tableConfigDatabaseConfig.js +10 -1
  190. package/dist/server/src/tableConfig/tableConfigDatabaseConfig.js.map +1 -1
  191. package/dist/server/src/tableConfig/tableConfigLlm/tableConfigLlmChats.d.ts.map +1 -1
  192. package/dist/server/src/tableConfig/tableConfigLlm/tableConfigLlmChats.js +1 -84
  193. package/dist/server/src/tableConfig/tableConfigLlm/tableConfigLlmChats.js.map +1 -1
  194. package/dist/server/src/tableConfig/tableConfigMCPServers.d.ts.map +1 -1
  195. package/dist/server/src/tableConfig/tableConfigMCPServers.js +0 -110
  196. package/dist/server/src/tableConfig/tableConfigMCPServers.js.map +1 -1
  197. package/dist/server/src/tableConfig/tableConfigMigrations.d.ts.map +1 -1
  198. package/dist/server/src/tableConfig/tableConfigPublishedMethods.d.ts.map +1 -1
  199. package/dist/server/src/tableConfig/tableConfigPublishedMethods.js +4 -10
  200. package/dist/server/src/tableConfig/tableConfigPublishedMethods.js.map +1 -1
  201. package/dist/server/src/tableConfig/tableConfigUsers.d.ts +0 -3
  202. package/dist/server/src/tableConfig/tableConfigUsers.d.ts.map +1 -1
  203. package/dist/server/src/tableConfig/tableConfigUsers.js +0 -37
  204. package/dist/server/src/tableConfig/tableConfigUsers.js.map +1 -1
  205. package/dist/server/src/tableHooks/connections.tableHooks.d.ts +4 -0
  206. package/dist/server/src/tableHooks/connections.tableHooks.d.ts.map +1 -0
  207. package/dist/server/src/tableHooks/connections.tableHooks.js +37 -0
  208. package/dist/server/src/tableHooks/connections.tableHooks.js.map +1 -0
  209. package/dist/server/src/tableHooks/llm_chats.tableHook.d.ts +4 -0
  210. package/dist/server/src/tableHooks/llm_chats.tableHook.d.ts.map +1 -0
  211. package/dist/server/src/tableHooks/llm_chats.tableHook.js +84 -0
  212. package/dist/server/src/tableHooks/llm_chats.tableHook.js.map +1 -0
  213. package/dist/server/src/tableHooks/llm_chats_allowed_mcp_tools.tableHooks.d.ts +4 -0
  214. package/dist/server/src/tableHooks/llm_chats_allowed_mcp_tools.tableHooks.d.ts.map +1 -0
  215. package/dist/server/src/tableHooks/llm_chats_allowed_mcp_tools.tableHooks.js +79 -0
  216. package/dist/server/src/tableHooks/llm_chats_allowed_mcp_tools.tableHooks.js.map +1 -0
  217. package/dist/server/src/tableHooks/llm_credentials.tableHooks.d.ts +39 -0
  218. package/dist/server/src/tableHooks/llm_credentials.tableHooks.d.ts.map +1 -0
  219. package/dist/server/src/tableHooks/llm_credentials.tableHooks.js +67 -0
  220. package/dist/server/src/tableHooks/llm_credentials.tableHooks.js.map +1 -0
  221. package/dist/server/src/tableHooks/mcp_server_configs.tableHooks.d.ts +4 -0
  222. package/dist/server/src/tableHooks/mcp_server_configs.tableHooks.d.ts.map +1 -0
  223. package/dist/server/src/tableHooks/mcp_server_configs.tableHooks.js +43 -0
  224. package/dist/server/src/tableHooks/mcp_server_configs.tableHooks.js.map +1 -0
  225. package/dist/server/src/tableHooks/tableHooks.d.ts +2116 -0
  226. package/dist/server/src/tableHooks/tableHooks.d.ts.map +1 -0
  227. package/dist/server/src/tableHooks/tableHooks.js +18 -0
  228. package/dist/server/src/tableHooks/tableHooks.js.map +1 -0
  229. package/dist/server/src/tableHooks/users.tableHooks.d.ts +124 -0
  230. package/dist/server/src/tableHooks/users.tableHooks.d.ts.map +1 -0
  231. package/dist/server/src/tableHooks/users.tableHooks.js +42 -0
  232. package/dist/server/src/tableHooks/users.tableHooks.js.map +1 -0
  233. package/dist/server/src/upsertConnection.d.ts +1 -1
  234. package/dist/server/src/upsertConnection.d.ts.map +1 -1
  235. package/package.json +2 -2
  236. package/dist/server/src/serverFunctions/adminServerFunctions/getAdminServerFunctions.d.ts +0 -5750
  237. package/dist/server/src/serverFunctions/adminServerFunctions/getAdminServerFunctions.d.ts.map +0 -1
  238. package/dist/server/src/serverFunctions/adminServerFunctions/getAdminServerFunctions.js +0 -431
  239. package/dist/server/src/serverFunctions/adminServerFunctions/getAdminServerFunctions.js.map +0 -1
  240. package/dist/server/src/serverFunctions/adminServerFunctions/getAgenticWorkflowFunctions.d.ts.map +0 -1
  241. package/dist/server/src/serverFunctions/adminServerFunctions/getAgenticWorkflowFunctions.js +0 -149
  242. package/dist/server/src/serverFunctions/adminServerFunctions/getAgenticWorkflowFunctions.js.map +0 -1
  243. package/dist/server/src/serverFunctions/adminServerFunctions/getBackupServerFunctions.d.ts +0 -844
  244. package/dist/server/src/serverFunctions/adminServerFunctions/getBackupServerFunctions.d.ts.map +0 -1
  245. package/dist/server/src/serverFunctions/adminServerFunctions/getBackupServerFunctions.js +0 -150
  246. package/dist/server/src/serverFunctions/adminServerFunctions/getBackupServerFunctions.js.map +0 -1
  247. package/dist/server/src/serverFunctions/adminServerFunctions/getDefineAdminFunction.d.ts +0 -80
  248. package/dist/server/src/serverFunctions/adminServerFunctions/getDefineAdminFunction.d.ts.map +0 -1
  249. package/dist/server/src/serverFunctions/adminServerFunctions/getDefineAdminFunction.js +0 -10
  250. package/dist/server/src/serverFunctions/adminServerFunctions/getDefineAdminFunction.js.map +0 -1
  251. package/dist/server/src/serverFunctions/adminServerFunctions/getMcpServerFunctions.d.ts +0 -1031
  252. package/dist/server/src/serverFunctions/adminServerFunctions/getMcpServerFunctions.d.ts.map +0 -1
  253. package/dist/server/src/serverFunctions/adminServerFunctions/getMcpServerFunctions.js +0 -232
  254. package/dist/server/src/serverFunctions/adminServerFunctions/getMcpServerFunctions.js.map +0 -1
  255. package/dist/server/src/serverFunctions/adminServerFunctions/getWebAppServerFunctions.d.ts +0 -482
  256. package/dist/server/src/serverFunctions/adminServerFunctions/getWebAppServerFunctions.d.ts.map +0 -1
  257. package/dist/server/src/serverFunctions/adminServerFunctions/getWebAppServerFunctions.js +0 -186
  258. package/dist/server/src/serverFunctions/adminServerFunctions/getWebAppServerFunctions.js.map +0 -1
  259. package/dist/server/src/serverFunctions/getServerFunctions.d.ts +0 -6653
  260. package/dist/server/src/serverFunctions/getServerFunctions.d.ts.map +0 -1
  261. package/dist/server/src/serverFunctions/getServerFunctions.js +0 -119
  262. package/dist/server/src/serverFunctions/getServerFunctions.js.map +0 -1
  263. package/dist/server/src/serverFunctions/getServerFunctionsContext.d.ts +0 -137
  264. package/dist/server/src/serverFunctions/getServerFunctionsContext.d.ts.map +0 -1
  265. package/dist/server/src/serverFunctions/getServerFunctionsContext.js +0 -29
  266. package/dist/server/src/serverFunctions/getServerFunctionsContext.js.map +0 -1
  267. package/dist/server/src/serverFunctions/userServerFunctions/getLLMAccessParams.d.ts +0 -134
  268. package/dist/server/src/serverFunctions/userServerFunctions/getLLMAccessParams.d.ts.map +0 -1
  269. package/dist/server/src/serverFunctions/userServerFunctions/getLLMAccessParams.js +0 -19
  270. package/dist/server/src/serverFunctions/userServerFunctions/getLLMAccessParams.js.map +0 -1
  271. package/dist/server/src/serverFunctions/userServerFunctions/getUserServerFunctions.d.ts +0 -886
  272. package/dist/server/src/serverFunctions/userServerFunctions/getUserServerFunctions.d.ts.map +0 -1
  273. package/dist/server/src/serverFunctions/userServerFunctions/getUserServerFunctions.js +0 -222
  274. package/dist/server/src/serverFunctions/userServerFunctions/getUserServerFunctions.js.map +0 -1
  275. package/sample_schemas/crypto/node_modules/.package-lock.json +0 -62
@@ -0,0 +1,3823 @@
1
+ import type { DBGeneratedSchema } from "../../../common/DBGeneratedSchema";
2
+ import type { DBS } from "../index";
3
+ export type Users = Required<DBGeneratedSchema["users"]["columns"]>;
4
+ export type Connections = Required<DBGeneratedSchema["connections"]["columns"]>;
5
+ import type { AnyObject } from "prostgles-types";
6
+ export declare const stateServerFunctions: {
7
+ anyUser: {
8
+ readonly userFilter: {};
9
+ readonly functions: {
10
+ readonly startConnection: {
11
+ input?: {
12
+ connectionId: "string";
13
+ } | undefined;
14
+ description?: string;
15
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
16
+ connectionId: "string";
17
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
18
+ socketPath: string;
19
+ socketUrl: string | undefined;
20
+ } | undefined>;
21
+ } & {
22
+ unrestrictedDbAccess: true;
23
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
24
+ };
25
+ };
26
+ adminMethods: {
27
+ readonly userFilter: {
28
+ readonly type: "admin";
29
+ };
30
+ readonly functions: {
31
+ readonly startAgenticWorkflow: {
32
+ input?: Pick<{
33
+ readonly chatId: "integer";
34
+ readonly messageId: "string";
35
+ readonly workflowId: "integer";
36
+ readonly name: "string";
37
+ readonly workflowTs: "string";
38
+ readonly autoApproveAllTools: "boolean";
39
+ readonly containerConfiguration: {
40
+ readonly type: {
41
+ readonly timeout: {
42
+ readonly optional: false;
43
+ readonly type: "integer";
44
+ readonly description: "Maximum time in milliseconds the container will be allowed to run. Defaults to 30000. ";
45
+ };
46
+ readonly cpus: {
47
+ readonly optional: true;
48
+ readonly type: "string";
49
+ readonly description: "CPU limit (e.g., '0.5', '1'). Defaults to 1";
50
+ };
51
+ readonly memory: {
52
+ readonly optional: true;
53
+ readonly type: "string";
54
+ readonly description: "Memory limit (e.g., '512m', '1g'). Defaults to 512m";
55
+ };
56
+ readonly readOnly: {
57
+ readonly optional: true;
58
+ readonly type: "boolean";
59
+ readonly description: "Whether to mount the filesystem as read-only. Defaults to true";
60
+ };
61
+ readonly internetAccess: {
62
+ readonly optional: true;
63
+ readonly enum: readonly ["none", "bridge", "host"];
64
+ readonly description: "Whether the container should have access to the internet. Defaults to 'none'. Do not use 'host' unless it is strictly necessary, as it can be a security risk.";
65
+ };
66
+ };
67
+ };
68
+ readonly executionMode: {
69
+ readonly enum: readonly ["series", "parallel"];
70
+ };
71
+ readonly databaseAccessDefinitions: {
72
+ readonly optional: true;
73
+ readonly oneOfType: readonly [{
74
+ readonly mode: {
75
+ readonly enum: readonly ["execute_readonly_sql"];
76
+ };
77
+ }, {
78
+ readonly mode: {
79
+ readonly enum: readonly ["execute_sql"];
80
+ };
81
+ readonly allowedCommands: {
82
+ readonly optional: true;
83
+ readonly record: {
84
+ readonly partial: true;
85
+ readonly keysEnum: readonly ["select", "insert", "update", "delete"];
86
+ readonly values: {
87
+ readonly enum: readonly [1];
88
+ };
89
+ };
90
+ };
91
+ }, {
92
+ readonly mode: {
93
+ readonly enum: readonly ["custom"];
94
+ };
95
+ readonly tablePermissions: {
96
+ readonly title: "Tables";
97
+ readonly description: "Tables the assistant can access";
98
+ readonly record: {
99
+ readonly values: {
100
+ readonly type: {
101
+ readonly select: {
102
+ readonly oneOf: readonly [{
103
+ readonly enum: readonly [true];
104
+ }, {
105
+ readonly type: {
106
+ readonly forcedFilter: {
107
+ readonly optional: true;
108
+ readonly oneOfType: readonly [{
109
+ readonly $and: "any[]";
110
+ }, {
111
+ readonly $or: "any[]";
112
+ }];
113
+ };
114
+ readonly fields: {
115
+ readonly oneOf: readonly [{
116
+ readonly enum: readonly ["*"];
117
+ }, {
118
+ readonly record: {
119
+ readonly values: {
120
+ readonly enum: readonly [1];
121
+ };
122
+ };
123
+ }, {
124
+ readonly record: {
125
+ readonly values: {
126
+ readonly enum: readonly [0];
127
+ };
128
+ };
129
+ }];
130
+ };
131
+ };
132
+ }];
133
+ readonly optional: true;
134
+ };
135
+ readonly update: {
136
+ readonly oneOf: readonly [{
137
+ readonly enum: readonly [true];
138
+ }, {
139
+ readonly type: {
140
+ readonly forcedFilter: {
141
+ readonly optional: true;
142
+ readonly oneOfType: readonly [{
143
+ readonly $and: "any[]";
144
+ }, {
145
+ readonly $or: "any[]";
146
+ }];
147
+ };
148
+ readonly fields: {
149
+ readonly oneOf: readonly [{
150
+ readonly enum: readonly ["*"];
151
+ }, {
152
+ readonly record: {
153
+ readonly values: {
154
+ readonly enum: readonly [1];
155
+ };
156
+ };
157
+ }, {
158
+ readonly record: {
159
+ readonly values: {
160
+ readonly enum: readonly [0];
161
+ };
162
+ };
163
+ }];
164
+ };
165
+ };
166
+ }];
167
+ readonly optional: true;
168
+ };
169
+ readonly insert: {
170
+ readonly oneOf: readonly [{
171
+ readonly enum: readonly [true];
172
+ }, {
173
+ readonly type: {
174
+ readonly fields: {
175
+ readonly oneOf: readonly [{
176
+ readonly enum: readonly ["*"];
177
+ }, {
178
+ readonly record: {
179
+ readonly values: {
180
+ readonly enum: readonly [1];
181
+ };
182
+ };
183
+ }, {
184
+ readonly record: {
185
+ readonly values: {
186
+ readonly enum: readonly [0];
187
+ };
188
+ };
189
+ }];
190
+ };
191
+ };
192
+ }];
193
+ readonly optional: true;
194
+ };
195
+ readonly delete: {
196
+ readonly oneOf: readonly [{
197
+ readonly enum: readonly [true];
198
+ }, {
199
+ readonly type: {
200
+ readonly forcedFilter: {
201
+ readonly optional: true;
202
+ readonly oneOfType: readonly [{
203
+ readonly $and: "any[]";
204
+ }, {
205
+ readonly $or: "any[]";
206
+ }];
207
+ };
208
+ };
209
+ }];
210
+ readonly optional: true;
211
+ };
212
+ };
213
+ };
214
+ };
215
+ };
216
+ readonly ddlStatements: {
217
+ readonly description: "Table create statements";
218
+ readonly type: "string";
219
+ readonly optional: true;
220
+ };
221
+ }];
222
+ };
223
+ readonly orchestrationTools: {
224
+ readonly optional: true;
225
+ readonly oneOf: readonly [{
226
+ readonly enum: readonly [undefined];
227
+ }, {
228
+ readonly record: {
229
+ readonly partial: true;
230
+ readonly values: {
231
+ readonly record: {
232
+ readonly partial: true;
233
+ readonly values: {
234
+ readonly enum: readonly [1];
235
+ };
236
+ };
237
+ };
238
+ };
239
+ }];
240
+ };
241
+ readonly agentDefinitions: {
242
+ optional: boolean;
243
+ record: {
244
+ values: {
245
+ type: {
246
+ readonly prompt: {
247
+ readonly type: "string";
248
+ };
249
+ readonly modelName: {
250
+ readonly type: "string";
251
+ readonly optional: true;
252
+ readonly description: "The name of the LLM model to use for this agent. If not provided, the default model will be used.";
253
+ };
254
+ readonly maxCostUSD: {
255
+ readonly type: "number";
256
+ readonly optional: true;
257
+ readonly description: "The maximum cost in USD that this agent is allowed to incur.";
258
+ };
259
+ readonly maxIterations: {
260
+ readonly type: "number";
261
+ readonly optional: true;
262
+ readonly description: "The maximum number of iterations this agent is allowed to run.";
263
+ };
264
+ readonly tools: {
265
+ readonly optional: true;
266
+ readonly record: {
267
+ readonly partial: true;
268
+ readonly values: {
269
+ readonly record: {
270
+ readonly partial: true;
271
+ readonly values: {
272
+ readonly enum: readonly [1];
273
+ };
274
+ };
275
+ };
276
+ };
277
+ };
278
+ readonly mcpServerConfigs: {
279
+ readonly optional: true;
280
+ readonly description: "SYSTEM ONLY — DO NOT SPECIFY: Do not generate, invent, or prompt the user for configuration IDs. This field is automatically injected by the host runtime when a tool requires user-provided MCP server authorization.";
281
+ readonly record: {
282
+ readonly partial: true;
283
+ readonly values: {
284
+ readonly type: {
285
+ readonly configId: {
286
+ readonly type: "number";
287
+ };
288
+ };
289
+ };
290
+ };
291
+ };
292
+ readonly maxTokens: {
293
+ readonly type: "number";
294
+ readonly optional: true;
295
+ };
296
+ readonly temperature: {
297
+ readonly type: "number";
298
+ readonly optional: true;
299
+ };
300
+ readonly outputSchema: {
301
+ readonly record: {
302
+ readonly values: {
303
+ readonly oneOf: readonly [{
304
+ readonly type: {
305
+ readonly optional: {
306
+ readonly type: "boolean";
307
+ readonly optional: true;
308
+ };
309
+ readonly nullable: {
310
+ readonly type: "boolean";
311
+ readonly optional: true;
312
+ };
313
+ readonly type: {
314
+ readonly enum: readonly ["string", "number", "boolean", "unknown", ...("string[]" | "number[]" | "boolean[]" | "unknown[]")[]];
315
+ };
316
+ };
317
+ }, {
318
+ readonly type: {
319
+ readonly optional: {
320
+ readonly type: "boolean";
321
+ readonly optional: true;
322
+ };
323
+ readonly nullable: {
324
+ readonly type: "boolean";
325
+ readonly optional: true;
326
+ };
327
+ readonly type: {
328
+ readonly record: {
329
+ readonly values: {
330
+ readonly type: {
331
+ readonly optional: {
332
+ readonly type: "boolean";
333
+ readonly optional: true;
334
+ };
335
+ readonly nullable: {
336
+ readonly type: "boolean";
337
+ readonly optional: true;
338
+ };
339
+ readonly type: {
340
+ readonly enum: readonly ["string", "number", "boolean", "unknown", ...("string[]" | "number[]" | "boolean[]" | "unknown[]")[]];
341
+ };
342
+ };
343
+ };
344
+ };
345
+ };
346
+ };
347
+ }, {
348
+ readonly type: {
349
+ readonly optional: {
350
+ readonly type: "boolean";
351
+ readonly optional: true;
352
+ };
353
+ readonly arrayOfType: {
354
+ readonly record: {
355
+ readonly values: {
356
+ readonly type: {
357
+ readonly optional: {
358
+ readonly type: "boolean";
359
+ readonly optional: true;
360
+ };
361
+ readonly nullable: {
362
+ readonly type: "boolean";
363
+ readonly optional: true;
364
+ };
365
+ readonly type: {
366
+ readonly enum: readonly ["string", "number", "boolean", "unknown", ...("string[]" | "number[]" | "boolean[]" | "unknown[]")[]];
367
+ };
368
+ };
369
+ };
370
+ };
371
+ };
372
+ };
373
+ }];
374
+ };
375
+ };
376
+ };
377
+ };
378
+ };
379
+ };
380
+ };
381
+ readonly userInput: {
382
+ readonly optional: true;
383
+ readonly description: string;
384
+ readonly record: {
385
+ readonly values: {
386
+ readonly oneOfType: readonly [{
387
+ readonly title: "string";
388
+ readonly optional: {
389
+ readonly type: "boolean";
390
+ readonly optional: true;
391
+ };
392
+ readonly type: {
393
+ readonly enum: readonly ["table-column-value"];
394
+ };
395
+ readonly tableName: "string";
396
+ readonly columnName: "string";
397
+ readonly defaultValue: {
398
+ readonly type: "any";
399
+ readonly optional: true;
400
+ };
401
+ }, {
402
+ readonly title: "string";
403
+ readonly optional: {
404
+ readonly type: "boolean";
405
+ readonly optional: true;
406
+ };
407
+ readonly type: {
408
+ readonly enum: readonly ["table-column-values"];
409
+ };
410
+ readonly tableName: "string";
411
+ readonly columnName: "string";
412
+ readonly defaultValue: {
413
+ readonly type: "any[]";
414
+ readonly optional: true;
415
+ };
416
+ }, {
417
+ readonly title: "string";
418
+ readonly optional: {
419
+ readonly type: "boolean";
420
+ readonly optional: true;
421
+ };
422
+ readonly type: {
423
+ readonly enum: readonly ["table-filter"];
424
+ };
425
+ readonly tableName: "string";
426
+ readonly defaultValue: {
427
+ readonly record: {
428
+ readonly values: "any";
429
+ };
430
+ readonly optional: true;
431
+ };
432
+ }, {
433
+ readonly title: "string";
434
+ readonly optional: {
435
+ readonly type: "boolean";
436
+ readonly optional: true;
437
+ };
438
+ readonly type: {
439
+ readonly enum: readonly ["table-column"];
440
+ };
441
+ readonly tableName: "string";
442
+ readonly defaultValue: {
443
+ readonly type: "string";
444
+ readonly optional: true;
445
+ };
446
+ }, {
447
+ readonly title: "string";
448
+ readonly optional: {
449
+ readonly type: "boolean";
450
+ readonly optional: true;
451
+ };
452
+ readonly type: {
453
+ readonly enum: readonly ["table-name"];
454
+ };
455
+ readonly defaultValue: {
456
+ readonly type: "string";
457
+ readonly optional: true;
458
+ };
459
+ }, {
460
+ readonly title: "string";
461
+ readonly optional: {
462
+ readonly type: "boolean";
463
+ readonly optional: true;
464
+ };
465
+ readonly type: {
466
+ readonly enum: readonly ["table-and-column"];
467
+ };
468
+ readonly defaultValue: {
469
+ readonly type: {
470
+ readonly tableName: "string";
471
+ readonly columnName: "string";
472
+ };
473
+ readonly optional: true;
474
+ };
475
+ }, {
476
+ readonly title: "string";
477
+ readonly optional: {
478
+ readonly type: "boolean";
479
+ readonly optional: true;
480
+ };
481
+ readonly type: {
482
+ readonly enum: readonly ["enum"];
483
+ };
484
+ readonly values: "string[]";
485
+ readonly defaultValue: {
486
+ readonly type: "string";
487
+ readonly optional: true;
488
+ };
489
+ }, {
490
+ readonly title: "string";
491
+ readonly optional: {
492
+ readonly type: "boolean";
493
+ readonly optional: true;
494
+ };
495
+ readonly type: {
496
+ readonly enum: readonly ["custom"];
497
+ };
498
+ readonly dataType: {
499
+ readonly enum: readonly ["string", "number", "boolean", "Date"];
500
+ };
501
+ readonly defaultValue: {
502
+ readonly type: "unknown";
503
+ readonly optional: true;
504
+ };
505
+ }, {
506
+ readonly title: "string";
507
+ readonly optional: {
508
+ readonly type: "boolean";
509
+ readonly optional: true;
510
+ };
511
+ readonly type: {
512
+ readonly enum: readonly ["folder-path", "file-path", "file-or-folder-path"];
513
+ };
514
+ readonly accessMode: {
515
+ readonly enum: readonly ["read", "read-write"];
516
+ };
517
+ }, {
518
+ readonly title: "string";
519
+ readonly optional: {
520
+ readonly type: "boolean";
521
+ readonly optional: true;
522
+ };
523
+ readonly type: {
524
+ readonly enum: readonly ["folder-paths", "file-paths", "file-or-folder-paths"];
525
+ };
526
+ readonly accessMode: {
527
+ readonly enum: readonly ["read", "read-write"];
528
+ };
529
+ }];
530
+ };
531
+ };
532
+ };
533
+ readonly userInputValue: {
534
+ readonly record: {
535
+ readonly values: {
536
+ readonly type: "unknown";
537
+ };
538
+ };
539
+ };
540
+ readonly newTables: {
541
+ readonly optional: true;
542
+ readonly arrayOfType: {
543
+ readonly name: "string";
544
+ readonly schema: {
545
+ readonly type: "string";
546
+ readonly optional: true;
547
+ };
548
+ readonly columns: {
549
+ readonly arrayOfType: {
550
+ readonly name: "string";
551
+ readonly dataType: "string";
552
+ readonly nullable: {
553
+ readonly type: "boolean";
554
+ readonly optional: true;
555
+ };
556
+ readonly isPrimaryKey: {
557
+ readonly type: "boolean";
558
+ readonly optional: true;
559
+ };
560
+ };
561
+ };
562
+ };
563
+ };
564
+ }, "name" | "userInput" | "userInputValue" | "containerConfiguration" | "databaseAccessDefinitions" | "agentDefinitions" | "chatId" | "workflowId" | "autoApproveAllTools" | "messageId" | "newTables" | "orchestrationTools" | "workflowTs" | "executionMode"> | undefined;
565
+ description?: string;
566
+ run: (args: import("prostgles-types").JSONB.GetObjectType<Pick<{
567
+ readonly chatId: "integer";
568
+ readonly messageId: "string";
569
+ readonly workflowId: "integer";
570
+ readonly name: "string";
571
+ readonly workflowTs: "string";
572
+ readonly autoApproveAllTools: "boolean";
573
+ readonly containerConfiguration: {
574
+ readonly type: {
575
+ readonly timeout: {
576
+ readonly optional: false;
577
+ readonly type: "integer";
578
+ readonly description: "Maximum time in milliseconds the container will be allowed to run. Defaults to 30000. ";
579
+ };
580
+ readonly cpus: {
581
+ readonly optional: true;
582
+ readonly type: "string";
583
+ readonly description: "CPU limit (e.g., '0.5', '1'). Defaults to 1";
584
+ };
585
+ readonly memory: {
586
+ readonly optional: true;
587
+ readonly type: "string";
588
+ readonly description: "Memory limit (e.g., '512m', '1g'). Defaults to 512m";
589
+ };
590
+ readonly readOnly: {
591
+ readonly optional: true;
592
+ readonly type: "boolean";
593
+ readonly description: "Whether to mount the filesystem as read-only. Defaults to true";
594
+ };
595
+ readonly internetAccess: {
596
+ readonly optional: true;
597
+ readonly enum: readonly ["none", "bridge", "host"];
598
+ readonly description: "Whether the container should have access to the internet. Defaults to 'none'. Do not use 'host' unless it is strictly necessary, as it can be a security risk.";
599
+ };
600
+ };
601
+ };
602
+ readonly executionMode: {
603
+ readonly enum: readonly ["series", "parallel"];
604
+ };
605
+ readonly databaseAccessDefinitions: {
606
+ readonly optional: true;
607
+ readonly oneOfType: readonly [{
608
+ readonly mode: {
609
+ readonly enum: readonly ["execute_readonly_sql"];
610
+ };
611
+ }, {
612
+ readonly mode: {
613
+ readonly enum: readonly ["execute_sql"];
614
+ };
615
+ readonly allowedCommands: {
616
+ readonly optional: true;
617
+ readonly record: {
618
+ readonly partial: true;
619
+ readonly keysEnum: readonly ["select", "insert", "update", "delete"];
620
+ readonly values: {
621
+ readonly enum: readonly [1];
622
+ };
623
+ };
624
+ };
625
+ }, {
626
+ readonly mode: {
627
+ readonly enum: readonly ["custom"];
628
+ };
629
+ readonly tablePermissions: {
630
+ readonly title: "Tables";
631
+ readonly description: "Tables the assistant can access";
632
+ readonly record: {
633
+ readonly values: {
634
+ readonly type: {
635
+ readonly select: {
636
+ readonly oneOf: readonly [{
637
+ readonly enum: readonly [true];
638
+ }, {
639
+ readonly type: {
640
+ readonly forcedFilter: {
641
+ readonly optional: true;
642
+ readonly oneOfType: readonly [{
643
+ readonly $and: "any[]";
644
+ }, {
645
+ readonly $or: "any[]";
646
+ }];
647
+ };
648
+ readonly fields: {
649
+ readonly oneOf: readonly [{
650
+ readonly enum: readonly ["*"];
651
+ }, {
652
+ readonly record: {
653
+ readonly values: {
654
+ readonly enum: readonly [1];
655
+ };
656
+ };
657
+ }, {
658
+ readonly record: {
659
+ readonly values: {
660
+ readonly enum: readonly [0];
661
+ };
662
+ };
663
+ }];
664
+ };
665
+ };
666
+ }];
667
+ readonly optional: true;
668
+ };
669
+ readonly update: {
670
+ readonly oneOf: readonly [{
671
+ readonly enum: readonly [true];
672
+ }, {
673
+ readonly type: {
674
+ readonly forcedFilter: {
675
+ readonly optional: true;
676
+ readonly oneOfType: readonly [{
677
+ readonly $and: "any[]";
678
+ }, {
679
+ readonly $or: "any[]";
680
+ }];
681
+ };
682
+ readonly fields: {
683
+ readonly oneOf: readonly [{
684
+ readonly enum: readonly ["*"];
685
+ }, {
686
+ readonly record: {
687
+ readonly values: {
688
+ readonly enum: readonly [1];
689
+ };
690
+ };
691
+ }, {
692
+ readonly record: {
693
+ readonly values: {
694
+ readonly enum: readonly [0];
695
+ };
696
+ };
697
+ }];
698
+ };
699
+ };
700
+ }];
701
+ readonly optional: true;
702
+ };
703
+ readonly insert: {
704
+ readonly oneOf: readonly [{
705
+ readonly enum: readonly [true];
706
+ }, {
707
+ readonly type: {
708
+ readonly fields: {
709
+ readonly oneOf: readonly [{
710
+ readonly enum: readonly ["*"];
711
+ }, {
712
+ readonly record: {
713
+ readonly values: {
714
+ readonly enum: readonly [1];
715
+ };
716
+ };
717
+ }, {
718
+ readonly record: {
719
+ readonly values: {
720
+ readonly enum: readonly [0];
721
+ };
722
+ };
723
+ }];
724
+ };
725
+ };
726
+ }];
727
+ readonly optional: true;
728
+ };
729
+ readonly delete: {
730
+ readonly oneOf: readonly [{
731
+ readonly enum: readonly [true];
732
+ }, {
733
+ readonly type: {
734
+ readonly forcedFilter: {
735
+ readonly optional: true;
736
+ readonly oneOfType: readonly [{
737
+ readonly $and: "any[]";
738
+ }, {
739
+ readonly $or: "any[]";
740
+ }];
741
+ };
742
+ };
743
+ }];
744
+ readonly optional: true;
745
+ };
746
+ };
747
+ };
748
+ };
749
+ };
750
+ readonly ddlStatements: {
751
+ readonly description: "Table create statements";
752
+ readonly type: "string";
753
+ readonly optional: true;
754
+ };
755
+ }];
756
+ };
757
+ readonly orchestrationTools: {
758
+ readonly optional: true;
759
+ readonly oneOf: readonly [{
760
+ readonly enum: readonly [undefined];
761
+ }, {
762
+ readonly record: {
763
+ readonly partial: true;
764
+ readonly values: {
765
+ readonly record: {
766
+ readonly partial: true;
767
+ readonly values: {
768
+ readonly enum: readonly [1];
769
+ };
770
+ };
771
+ };
772
+ };
773
+ }];
774
+ };
775
+ readonly agentDefinitions: {
776
+ optional: boolean;
777
+ record: {
778
+ values: {
779
+ type: {
780
+ readonly prompt: {
781
+ readonly type: "string";
782
+ };
783
+ readonly modelName: {
784
+ readonly type: "string";
785
+ readonly optional: true;
786
+ readonly description: "The name of the LLM model to use for this agent. If not provided, the default model will be used.";
787
+ };
788
+ readonly maxCostUSD: {
789
+ readonly type: "number";
790
+ readonly optional: true;
791
+ readonly description: "The maximum cost in USD that this agent is allowed to incur.";
792
+ };
793
+ readonly maxIterations: {
794
+ readonly type: "number";
795
+ readonly optional: true;
796
+ readonly description: "The maximum number of iterations this agent is allowed to run.";
797
+ };
798
+ readonly tools: {
799
+ readonly optional: true;
800
+ readonly record: {
801
+ readonly partial: true;
802
+ readonly values: {
803
+ readonly record: {
804
+ readonly partial: true;
805
+ readonly values: {
806
+ readonly enum: readonly [1];
807
+ };
808
+ };
809
+ };
810
+ };
811
+ };
812
+ readonly mcpServerConfigs: {
813
+ readonly optional: true;
814
+ readonly description: "SYSTEM ONLY — DO NOT SPECIFY: Do not generate, invent, or prompt the user for configuration IDs. This field is automatically injected by the host runtime when a tool requires user-provided MCP server authorization.";
815
+ readonly record: {
816
+ readonly partial: true;
817
+ readonly values: {
818
+ readonly type: {
819
+ readonly configId: {
820
+ readonly type: "number";
821
+ };
822
+ };
823
+ };
824
+ };
825
+ };
826
+ readonly maxTokens: {
827
+ readonly type: "number";
828
+ readonly optional: true;
829
+ };
830
+ readonly temperature: {
831
+ readonly type: "number";
832
+ readonly optional: true;
833
+ };
834
+ readonly outputSchema: {
835
+ readonly record: {
836
+ readonly values: {
837
+ readonly oneOf: readonly [{
838
+ readonly type: {
839
+ readonly optional: {
840
+ readonly type: "boolean";
841
+ readonly optional: true;
842
+ };
843
+ readonly nullable: {
844
+ readonly type: "boolean";
845
+ readonly optional: true;
846
+ };
847
+ readonly type: {
848
+ readonly enum: readonly ["string", "number", "boolean", "unknown", ...("string[]" | "number[]" | "boolean[]" | "unknown[]")[]];
849
+ };
850
+ };
851
+ }, {
852
+ readonly type: {
853
+ readonly optional: {
854
+ readonly type: "boolean";
855
+ readonly optional: true;
856
+ };
857
+ readonly nullable: {
858
+ readonly type: "boolean";
859
+ readonly optional: true;
860
+ };
861
+ readonly type: {
862
+ readonly record: {
863
+ readonly values: {
864
+ readonly type: {
865
+ readonly optional: {
866
+ readonly type: "boolean";
867
+ readonly optional: true;
868
+ };
869
+ readonly nullable: {
870
+ readonly type: "boolean";
871
+ readonly optional: true;
872
+ };
873
+ readonly type: {
874
+ readonly enum: readonly ["string", "number", "boolean", "unknown", ...("string[]" | "number[]" | "boolean[]" | "unknown[]")[]];
875
+ };
876
+ };
877
+ };
878
+ };
879
+ };
880
+ };
881
+ }, {
882
+ readonly type: {
883
+ readonly optional: {
884
+ readonly type: "boolean";
885
+ readonly optional: true;
886
+ };
887
+ readonly arrayOfType: {
888
+ readonly record: {
889
+ readonly values: {
890
+ readonly type: {
891
+ readonly optional: {
892
+ readonly type: "boolean";
893
+ readonly optional: true;
894
+ };
895
+ readonly nullable: {
896
+ readonly type: "boolean";
897
+ readonly optional: true;
898
+ };
899
+ readonly type: {
900
+ readonly enum: readonly ["string", "number", "boolean", "unknown", ...("string[]" | "number[]" | "boolean[]" | "unknown[]")[]];
901
+ };
902
+ };
903
+ };
904
+ };
905
+ };
906
+ };
907
+ }];
908
+ };
909
+ };
910
+ };
911
+ };
912
+ };
913
+ };
914
+ };
915
+ readonly userInput: {
916
+ readonly optional: true;
917
+ readonly description: string;
918
+ readonly record: {
919
+ readonly values: {
920
+ readonly oneOfType: readonly [{
921
+ readonly title: "string";
922
+ readonly optional: {
923
+ readonly type: "boolean";
924
+ readonly optional: true;
925
+ };
926
+ readonly type: {
927
+ readonly enum: readonly ["table-column-value"];
928
+ };
929
+ readonly tableName: "string";
930
+ readonly columnName: "string";
931
+ readonly defaultValue: {
932
+ readonly type: "any";
933
+ readonly optional: true;
934
+ };
935
+ }, {
936
+ readonly title: "string";
937
+ readonly optional: {
938
+ readonly type: "boolean";
939
+ readonly optional: true;
940
+ };
941
+ readonly type: {
942
+ readonly enum: readonly ["table-column-values"];
943
+ };
944
+ readonly tableName: "string";
945
+ readonly columnName: "string";
946
+ readonly defaultValue: {
947
+ readonly type: "any[]";
948
+ readonly optional: true;
949
+ };
950
+ }, {
951
+ readonly title: "string";
952
+ readonly optional: {
953
+ readonly type: "boolean";
954
+ readonly optional: true;
955
+ };
956
+ readonly type: {
957
+ readonly enum: readonly ["table-filter"];
958
+ };
959
+ readonly tableName: "string";
960
+ readonly defaultValue: {
961
+ readonly record: {
962
+ readonly values: "any";
963
+ };
964
+ readonly optional: true;
965
+ };
966
+ }, {
967
+ readonly title: "string";
968
+ readonly optional: {
969
+ readonly type: "boolean";
970
+ readonly optional: true;
971
+ };
972
+ readonly type: {
973
+ readonly enum: readonly ["table-column"];
974
+ };
975
+ readonly tableName: "string";
976
+ readonly defaultValue: {
977
+ readonly type: "string";
978
+ readonly optional: true;
979
+ };
980
+ }, {
981
+ readonly title: "string";
982
+ readonly optional: {
983
+ readonly type: "boolean";
984
+ readonly optional: true;
985
+ };
986
+ readonly type: {
987
+ readonly enum: readonly ["table-name"];
988
+ };
989
+ readonly defaultValue: {
990
+ readonly type: "string";
991
+ readonly optional: true;
992
+ };
993
+ }, {
994
+ readonly title: "string";
995
+ readonly optional: {
996
+ readonly type: "boolean";
997
+ readonly optional: true;
998
+ };
999
+ readonly type: {
1000
+ readonly enum: readonly ["table-and-column"];
1001
+ };
1002
+ readonly defaultValue: {
1003
+ readonly type: {
1004
+ readonly tableName: "string";
1005
+ readonly columnName: "string";
1006
+ };
1007
+ readonly optional: true;
1008
+ };
1009
+ }, {
1010
+ readonly title: "string";
1011
+ readonly optional: {
1012
+ readonly type: "boolean";
1013
+ readonly optional: true;
1014
+ };
1015
+ readonly type: {
1016
+ readonly enum: readonly ["enum"];
1017
+ };
1018
+ readonly values: "string[]";
1019
+ readonly defaultValue: {
1020
+ readonly type: "string";
1021
+ readonly optional: true;
1022
+ };
1023
+ }, {
1024
+ readonly title: "string";
1025
+ readonly optional: {
1026
+ readonly type: "boolean";
1027
+ readonly optional: true;
1028
+ };
1029
+ readonly type: {
1030
+ readonly enum: readonly ["custom"];
1031
+ };
1032
+ readonly dataType: {
1033
+ readonly enum: readonly ["string", "number", "boolean", "Date"];
1034
+ };
1035
+ readonly defaultValue: {
1036
+ readonly type: "unknown";
1037
+ readonly optional: true;
1038
+ };
1039
+ }, {
1040
+ readonly title: "string";
1041
+ readonly optional: {
1042
+ readonly type: "boolean";
1043
+ readonly optional: true;
1044
+ };
1045
+ readonly type: {
1046
+ readonly enum: readonly ["folder-path", "file-path", "file-or-folder-path"];
1047
+ };
1048
+ readonly accessMode: {
1049
+ readonly enum: readonly ["read", "read-write"];
1050
+ };
1051
+ }, {
1052
+ readonly title: "string";
1053
+ readonly optional: {
1054
+ readonly type: "boolean";
1055
+ readonly optional: true;
1056
+ };
1057
+ readonly type: {
1058
+ readonly enum: readonly ["folder-paths", "file-paths", "file-or-folder-paths"];
1059
+ };
1060
+ readonly accessMode: {
1061
+ readonly enum: readonly ["read", "read-write"];
1062
+ };
1063
+ }];
1064
+ };
1065
+ };
1066
+ };
1067
+ readonly userInputValue: {
1068
+ readonly record: {
1069
+ readonly values: {
1070
+ readonly type: "unknown";
1071
+ };
1072
+ };
1073
+ };
1074
+ readonly newTables: {
1075
+ readonly optional: true;
1076
+ readonly arrayOfType: {
1077
+ readonly name: "string";
1078
+ readonly schema: {
1079
+ readonly type: "string";
1080
+ readonly optional: true;
1081
+ };
1082
+ readonly columns: {
1083
+ readonly arrayOfType: {
1084
+ readonly name: "string";
1085
+ readonly dataType: "string";
1086
+ readonly nullable: {
1087
+ readonly type: "boolean";
1088
+ readonly optional: true;
1089
+ };
1090
+ readonly isPrimaryKey: {
1091
+ readonly type: "boolean";
1092
+ readonly optional: true;
1093
+ };
1094
+ };
1095
+ };
1096
+ };
1097
+ };
1098
+ }, "name" | "userInput" | "userInputValue" | "containerConfiguration" | "databaseAccessDefinitions" | "agentDefinitions" | "chatId" | "workflowId" | "autoApproveAllTools" | "messageId" | "newTables" | "orchestrationTools" | "workflowTs" | "executionMode">>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<import("prostgles-types").JSONB.GetObjectType<{
1099
+ readonly state: {
1100
+ readonly enum: readonly ["finished", "error", "build-error", "timed-out", "aborted"];
1101
+ };
1102
+ readonly name: "string";
1103
+ readonly command: "string";
1104
+ readonly log: {
1105
+ readonly arrayOfType: {
1106
+ readonly type: {
1107
+ readonly enum: readonly ["stdout", "stderr", "error"];
1108
+ };
1109
+ readonly text: "string";
1110
+ };
1111
+ };
1112
+ readonly exitCode: "number";
1113
+ readonly runDuration: "number";
1114
+ readonly buildDuration: "number";
1115
+ }> | {
1116
+ state: "init-error";
1117
+ message: string;
1118
+ error: string | any[] | AnyObject | null | undefined;
1119
+ }>;
1120
+ } & {
1121
+ unrestrictedDbAccess: true;
1122
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1123
+ readonly stopAgenticWorkflow: {
1124
+ input?: {
1125
+ chatId: "integer";
1126
+ messageId: "string";
1127
+ } | undefined;
1128
+ description?: string;
1129
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1130
+ chatId: "integer";
1131
+ messageId: "string";
1132
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
1133
+ success: boolean;
1134
+ }>;
1135
+ } & {
1136
+ unrestrictedDbAccess: true;
1137
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1138
+ readonly getAgenticWorkflowTypes: {
1139
+ input?: {
1140
+ connectionId: "string";
1141
+ workflowId: {
1142
+ optional: true;
1143
+ type: "number";
1144
+ };
1145
+ } | undefined;
1146
+ description?: string;
1147
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1148
+ connectionId: "string";
1149
+ workflowId: {
1150
+ optional: true;
1151
+ type: "number";
1152
+ };
1153
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
1154
+ files: {
1155
+ "defineAgenticWorkflow.ts": string;
1156
+ "defineAgenticWorkflowHandlers.ts": string;
1157
+ };
1158
+ astNodes: any;
1159
+ summary: string;
1160
+ instrumentedFile: string;
1161
+ }>;
1162
+ } & {
1163
+ unrestrictedDbAccess: true;
1164
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1165
+ readonly stopDockerContainer: {
1166
+ input?: {
1167
+ chatId: "integer";
1168
+ toolUseId: "string";
1169
+ } | undefined;
1170
+ description?: string;
1171
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1172
+ chatId: "integer";
1173
+ toolUseId: "string";
1174
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
1175
+ success: boolean;
1176
+ }>;
1177
+ } & {
1178
+ unrestrictedDbAccess: true;
1179
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1180
+ readonly installMCPServer: {
1181
+ input?: {
1182
+ name: "string";
1183
+ } | undefined;
1184
+ description?: string;
1185
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1186
+ name: "string";
1187
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
1188
+ } & {
1189
+ unrestrictedDbAccess: true;
1190
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1191
+ readonly getMCPServersStatus: {
1192
+ input?: {
1193
+ serverName: "string";
1194
+ } | undefined;
1195
+ description?: string;
1196
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1197
+ serverName: "string";
1198
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
1199
+ ok: boolean;
1200
+ message?: string;
1201
+ }>;
1202
+ } & {
1203
+ unrestrictedDbAccess: true;
1204
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1205
+ readonly authenticateMcpServer: {
1206
+ input?: {
1207
+ serverName: "string";
1208
+ origin: "string";
1209
+ config: {
1210
+ type: {
1211
+ readonly type: {
1212
+ readonly enum: readonly ["OAuth"];
1213
+ };
1214
+ readonly scopes: {
1215
+ readonly type: "string[]";
1216
+ };
1217
+ readonly savePngIcon: "boolean";
1218
+ readonly auth: {
1219
+ readonly oneOfType: readonly [{
1220
+ readonly mode: {
1221
+ readonly enum: readonly ["none", "dcr"];
1222
+ };
1223
+ }, {
1224
+ readonly mode: {
1225
+ readonly enum: readonly ["cimd"];
1226
+ };
1227
+ readonly clientMetadataUrl: {
1228
+ readonly type: "string";
1229
+ };
1230
+ }, {
1231
+ readonly mode: {
1232
+ readonly enum: readonly ["bearer"];
1233
+ };
1234
+ readonly bearerToken: {
1235
+ readonly type: "string";
1236
+ };
1237
+ }, {
1238
+ readonly mode: {
1239
+ readonly enum: readonly ["authorization_code"];
1240
+ };
1241
+ readonly clientId: "string";
1242
+ readonly clientSecret: "string";
1243
+ }, {
1244
+ readonly mode: {
1245
+ readonly enum: readonly ["client_credentials"];
1246
+ };
1247
+ readonly clientId: "string";
1248
+ readonly clientSecret: "string";
1249
+ readonly tokenEndpoint: "string";
1250
+ }];
1251
+ };
1252
+ };
1253
+ };
1254
+ } | undefined;
1255
+ description?: string;
1256
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1257
+ serverName: "string";
1258
+ origin: "string";
1259
+ config: {
1260
+ type: {
1261
+ readonly type: {
1262
+ readonly enum: readonly ["OAuth"];
1263
+ };
1264
+ readonly scopes: {
1265
+ readonly type: "string[]";
1266
+ };
1267
+ readonly savePngIcon: "boolean";
1268
+ readonly auth: {
1269
+ readonly oneOfType: readonly [{
1270
+ readonly mode: {
1271
+ readonly enum: readonly ["none", "dcr"];
1272
+ };
1273
+ }, {
1274
+ readonly mode: {
1275
+ readonly enum: readonly ["cimd"];
1276
+ };
1277
+ readonly clientMetadataUrl: {
1278
+ readonly type: "string";
1279
+ };
1280
+ }, {
1281
+ readonly mode: {
1282
+ readonly enum: readonly ["bearer"];
1283
+ };
1284
+ readonly bearerToken: {
1285
+ readonly type: "string";
1286
+ };
1287
+ }, {
1288
+ readonly mode: {
1289
+ readonly enum: readonly ["authorization_code"];
1290
+ };
1291
+ readonly clientId: "string";
1292
+ readonly clientSecret: "string";
1293
+ }, {
1294
+ readonly mode: {
1295
+ readonly enum: readonly ["client_credentials"];
1296
+ };
1297
+ readonly clientId: "string";
1298
+ readonly clientSecret: "string";
1299
+ readonly tokenEndpoint: "string";
1300
+ }];
1301
+ };
1302
+ };
1303
+ };
1304
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
1305
+ } & {
1306
+ unrestrictedDbAccess: true;
1307
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1308
+ readonly getMcpOAuthMetadata: {
1309
+ input?: {
1310
+ serverName: "string";
1311
+ } | undefined;
1312
+ description?: string;
1313
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1314
+ serverName: "string";
1315
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
1316
+ modes: {
1317
+ no_auth: boolean;
1318
+ dcr: boolean;
1319
+ bearer_token: boolean;
1320
+ cimd: boolean;
1321
+ };
1322
+ defaultMode: string | undefined;
1323
+ metadata: {
1324
+ resource: string;
1325
+ authorization_servers: string[];
1326
+ scopes_supported: string[];
1327
+ bearer_methods_supported?: string[];
1328
+ client_id_metadata_document_supported?: boolean;
1329
+ };
1330
+ serverInfo: {
1331
+ issuer: string;
1332
+ authorization_endpoint: string;
1333
+ registration_endpoint?: string;
1334
+ token_endpoint: string;
1335
+ response_types_supported: string[];
1336
+ grant_types_supported: string[];
1337
+ service_documentation?: string;
1338
+ scopes_supported: string[];
1339
+ };
1340
+ }>;
1341
+ } & {
1342
+ unrestrictedDbAccess: true;
1343
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1344
+ readonly reRunMCPServerTool: {
1345
+ input?: {
1346
+ chatId: "integer";
1347
+ serverName: "string";
1348
+ toolName: "string";
1349
+ reRunToolUseId: "string";
1350
+ args: {
1351
+ record: {};
1352
+ optional: true;
1353
+ };
1354
+ } | undefined;
1355
+ description?: string;
1356
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1357
+ chatId: "integer";
1358
+ serverName: "string";
1359
+ toolName: "string";
1360
+ reRunToolUseId: "string";
1361
+ args: {
1362
+ record: {};
1363
+ optional: true;
1364
+ };
1365
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<import("../McpHub/AnthropicMcpHub/McpHub").McpToolCallResponse>;
1366
+ } & {
1367
+ unrestrictedDbAccess: true;
1368
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1369
+ readonly reloadMcpServerTools: {
1370
+ input?: {
1371
+ serverName: "string";
1372
+ } | undefined;
1373
+ description?: string;
1374
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1375
+ serverName: "string";
1376
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<number>;
1377
+ } & {
1378
+ unrestrictedDbAccess: true;
1379
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1380
+ readonly getMcpHostInfo: {
1381
+ input?: Record<string, import("prostgles-types").JSONB.FieldType> | undefined;
1382
+ description?: string;
1383
+ run: (args: import("prostgles-types").JSONB.GetObjectType<Record<string, import("prostgles-types").JSONB.FieldType>>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
1384
+ os: string;
1385
+ npmVersion: string;
1386
+ uvxVersion: string;
1387
+ }>;
1388
+ } & {
1389
+ unrestrictedDbAccess?: undefined;
1390
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1391
+ readonly getDocumentText: {
1392
+ input?: {
1393
+ files: {
1394
+ arrayOf: {
1395
+ type: "FileLike";
1396
+ };
1397
+ };
1398
+ options: {
1399
+ readonly optional: true;
1400
+ readonly type: {
1401
+ readonly from_formats: {
1402
+ readonly optional: true;
1403
+ readonly type: "string[]";
1404
+ readonly allowedValues: readonly ["docx", "pptx", "html", "image", "pdf", "asciidoc", "md", "csv", "xlsx", "xml_uspto", "xml_jats", "xml_xbrl", "mets_gbs", "json_docling", "audio", "vtt", "latex"];
1405
+ };
1406
+ readonly to_formats: {
1407
+ readonly optional: true;
1408
+ readonly type: "string[]";
1409
+ readonly allowedValues: readonly ["md", "json", "yaml", "html", "html_split_page", "text", "doctags"];
1410
+ };
1411
+ readonly image_export_mode: {
1412
+ readonly optional: true;
1413
+ readonly enum: readonly ["placeholder", "embedded", "referenced"];
1414
+ readonly description: "Image export mode for the document (in case of JSON, Markdown or HTML). Allowed values: placeholder, embedded, referenced. Optional, defaults to Embedded.";
1415
+ };
1416
+ readonly page_range: {
1417
+ readonly tuple: readonly ["number", "number"];
1418
+ readonly optional: true;
1419
+ readonly description: "Only convert a range of pages. The page number starts at 1. For example, [1, 3] will convert only the first and third pages of the document.";
1420
+ };
1421
+ readonly do_ocr: {
1422
+ readonly type: "boolean";
1423
+ readonly optional: true;
1424
+ readonly description: "If enabled, the bitmap content will be processed using OCR. Boolean. Optional, defaults to true";
1425
+ };
1426
+ readonly force_ocr: {
1427
+ readonly type: "boolean";
1428
+ readonly optional: true;
1429
+ readonly description: "If enabled, replace existing text with OCR-generated text over content. Boolean. Optional, defaults to false.";
1430
+ };
1431
+ readonly ocr_engine: {
1432
+ readonly enum: readonly ["auto", "easyocr", "ocrmac", "rapidocr", "tesserocr", "tesseract"];
1433
+ readonly optional: true;
1434
+ readonly description: "The OCR engine to use. String. Allowed values: auto, easyocr, ocrmac, rapidocr, tesserocr, tesseract. Optional, defaults to easyocr.";
1435
+ };
1436
+ readonly ocr_lang: {
1437
+ readonly type: "string[]";
1438
+ readonly optional: true;
1439
+ readonly description: "List of languages used by the OCR engine. Note that each OCR engine has different values for the language names. String or list of strings. Optional, defaults to empty.";
1440
+ };
1441
+ readonly document_timeout: {
1442
+ readonly optional: true;
1443
+ readonly type: "number";
1444
+ readonly description: "The timeout for processing each document, in seconds.";
1445
+ };
1446
+ readonly pdf_backend: {
1447
+ readonly enum: readonly ["pypdfium2", "docling_parse", "dlparse_v1", "dlparse_v2", "dlparse_v4"];
1448
+ readonly optional: true;
1449
+ readonly description: "The PDF backend to use. String. Allowed values: pypdfium2, docling_parse, dlparse_v1, dlparse_v2, dlparse_v4. Optional, defaults to docling_parse.";
1450
+ };
1451
+ readonly table_mode: {
1452
+ readonly enum: readonly ["fast", "accurate"];
1453
+ readonly optional: true;
1454
+ readonly description: "Mode to use for table structure, String. Allowed values: fast, accurate. Optional, defaults to accurate.";
1455
+ };
1456
+ readonly do_table_structure: {
1457
+ readonly type: "boolean";
1458
+ readonly optional: true;
1459
+ readonly description: "If enabled, the table structure will be extracted. Boolean. Optional, defaults to true.";
1460
+ };
1461
+ readonly include_images: {
1462
+ readonly type: "boolean";
1463
+ readonly optional: true;
1464
+ readonly description: "If enabled, images will be extracted from the document. Boolean. Optional, defaults to true.";
1465
+ };
1466
+ readonly md_page_break_placeholder: {
1467
+ readonly type: "string";
1468
+ readonly optional: true;
1469
+ readonly description: "Add this placeholder between pages in the markdown output.";
1470
+ };
1471
+ readonly images_scale: {
1472
+ readonly type: "number";
1473
+ readonly optional: true;
1474
+ readonly description: "Scale factor for images. Float. Optional, defaults to 2.0.";
1475
+ };
1476
+ };
1477
+ };
1478
+ } | undefined;
1479
+ description?: string;
1480
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1481
+ files: {
1482
+ arrayOf: {
1483
+ type: "FileLike";
1484
+ };
1485
+ };
1486
+ options: {
1487
+ readonly optional: true;
1488
+ readonly type: {
1489
+ readonly from_formats: {
1490
+ readonly optional: true;
1491
+ readonly type: "string[]";
1492
+ readonly allowedValues: readonly ["docx", "pptx", "html", "image", "pdf", "asciidoc", "md", "csv", "xlsx", "xml_uspto", "xml_jats", "xml_xbrl", "mets_gbs", "json_docling", "audio", "vtt", "latex"];
1493
+ };
1494
+ readonly to_formats: {
1495
+ readonly optional: true;
1496
+ readonly type: "string[]";
1497
+ readonly allowedValues: readonly ["md", "json", "yaml", "html", "html_split_page", "text", "doctags"];
1498
+ };
1499
+ readonly image_export_mode: {
1500
+ readonly optional: true;
1501
+ readonly enum: readonly ["placeholder", "embedded", "referenced"];
1502
+ readonly description: "Image export mode for the document (in case of JSON, Markdown or HTML). Allowed values: placeholder, embedded, referenced. Optional, defaults to Embedded.";
1503
+ };
1504
+ readonly page_range: {
1505
+ readonly tuple: readonly ["number", "number"];
1506
+ readonly optional: true;
1507
+ readonly description: "Only convert a range of pages. The page number starts at 1. For example, [1, 3] will convert only the first and third pages of the document.";
1508
+ };
1509
+ readonly do_ocr: {
1510
+ readonly type: "boolean";
1511
+ readonly optional: true;
1512
+ readonly description: "If enabled, the bitmap content will be processed using OCR. Boolean. Optional, defaults to true";
1513
+ };
1514
+ readonly force_ocr: {
1515
+ readonly type: "boolean";
1516
+ readonly optional: true;
1517
+ readonly description: "If enabled, replace existing text with OCR-generated text over content. Boolean. Optional, defaults to false.";
1518
+ };
1519
+ readonly ocr_engine: {
1520
+ readonly enum: readonly ["auto", "easyocr", "ocrmac", "rapidocr", "tesserocr", "tesseract"];
1521
+ readonly optional: true;
1522
+ readonly description: "The OCR engine to use. String. Allowed values: auto, easyocr, ocrmac, rapidocr, tesserocr, tesseract. Optional, defaults to easyocr.";
1523
+ };
1524
+ readonly ocr_lang: {
1525
+ readonly type: "string[]";
1526
+ readonly optional: true;
1527
+ readonly description: "List of languages used by the OCR engine. Note that each OCR engine has different values for the language names. String or list of strings. Optional, defaults to empty.";
1528
+ };
1529
+ readonly document_timeout: {
1530
+ readonly optional: true;
1531
+ readonly type: "number";
1532
+ readonly description: "The timeout for processing each document, in seconds.";
1533
+ };
1534
+ readonly pdf_backend: {
1535
+ readonly enum: readonly ["pypdfium2", "docling_parse", "dlparse_v1", "dlparse_v2", "dlparse_v4"];
1536
+ readonly optional: true;
1537
+ readonly description: "The PDF backend to use. String. Allowed values: pypdfium2, docling_parse, dlparse_v1, dlparse_v2, dlparse_v4. Optional, defaults to docling_parse.";
1538
+ };
1539
+ readonly table_mode: {
1540
+ readonly enum: readonly ["fast", "accurate"];
1541
+ readonly optional: true;
1542
+ readonly description: "Mode to use for table structure, String. Allowed values: fast, accurate. Optional, defaults to accurate.";
1543
+ };
1544
+ readonly do_table_structure: {
1545
+ readonly type: "boolean";
1546
+ readonly optional: true;
1547
+ readonly description: "If enabled, the table structure will be extracted. Boolean. Optional, defaults to true.";
1548
+ };
1549
+ readonly include_images: {
1550
+ readonly type: "boolean";
1551
+ readonly optional: true;
1552
+ readonly description: "If enabled, images will be extracted from the document. Boolean. Optional, defaults to true.";
1553
+ };
1554
+ readonly md_page_break_placeholder: {
1555
+ readonly type: "string";
1556
+ readonly optional: true;
1557
+ readonly description: "Add this placeholder between pages in the markdown output.";
1558
+ };
1559
+ readonly images_scale: {
1560
+ readonly type: "number";
1561
+ readonly optional: true;
1562
+ readonly description: "Scale factor for images. Float. Optional, defaults to 2.0.";
1563
+ };
1564
+ };
1565
+ };
1566
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<import("prostgles-types").JSONB.GetObjectType<{
1567
+ readonly document: {
1568
+ readonly type: {
1569
+ readonly filename: {
1570
+ readonly oneOf: readonly ["string", {
1571
+ readonly enum: readonly [null];
1572
+ }];
1573
+ };
1574
+ readonly md_content: {
1575
+ readonly oneOf: readonly ["string", {
1576
+ readonly enum: readonly [null];
1577
+ }];
1578
+ };
1579
+ readonly json_content: "any";
1580
+ readonly html_content: {
1581
+ readonly oneOf: readonly ["string", {
1582
+ readonly enum: readonly [null];
1583
+ }];
1584
+ };
1585
+ readonly text_content: {
1586
+ readonly oneOf: readonly ["string", {
1587
+ readonly enum: readonly [null];
1588
+ }];
1589
+ };
1590
+ readonly doctags_content: {
1591
+ readonly oneOf: readonly ["string", {
1592
+ readonly enum: readonly [null];
1593
+ }];
1594
+ };
1595
+ };
1596
+ };
1597
+ readonly status: {
1598
+ readonly enum: readonly ["pending", "started", "failure", "success", "partial_success", "skipped"];
1599
+ };
1600
+ readonly errors: "any[]";
1601
+ }>>;
1602
+ } & {
1603
+ unrestrictedDbAccess?: undefined;
1604
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1605
+ readonly transcribeAudio: {
1606
+ input?: {
1607
+ audio: {
1608
+ type: "FileLike";
1609
+ mimeTypes: {
1610
+ "audio/webm": 1;
1611
+ };
1612
+ };
1613
+ } | undefined;
1614
+ description?: string;
1615
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1616
+ audio: {
1617
+ type: "FileLike";
1618
+ mimeTypes: {
1619
+ "audio/webm": 1;
1620
+ };
1621
+ };
1622
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<import("prostgles-types").JSONB.GetObjectType<{
1623
+ readonly success: {
1624
+ readonly type: "boolean";
1625
+ };
1626
+ readonly transcription: {
1627
+ readonly type: "string";
1628
+ readonly description: "The transcribed text from the audio";
1629
+ };
1630
+ readonly language: {
1631
+ readonly type: "string";
1632
+ readonly description: "Detected language code (e.g., 'en', 'es', 'fr')";
1633
+ };
1634
+ readonly language_probability: {
1635
+ readonly type: "number";
1636
+ readonly description: "Confidence score for detected language (0-1)";
1637
+ };
1638
+ readonly segments: {
1639
+ readonly arrayOfType: {
1640
+ readonly start: {
1641
+ readonly type: "number";
1642
+ readonly description: "Segment start time in seconds";
1643
+ };
1644
+ readonly end: {
1645
+ readonly type: "number";
1646
+ readonly description: "Segment end time in seconds";
1647
+ };
1648
+ readonly text: {
1649
+ readonly type: "string";
1650
+ readonly description: "Transcribed text for this segment";
1651
+ };
1652
+ };
1653
+ readonly description: "Array of transcription segments with timestamps";
1654
+ };
1655
+ }> | import("prostgles-types").JSONB.GetObjectType<{
1656
+ readonly error: {
1657
+ readonly type: "string";
1658
+ readonly description: "Error message describing what went wrong";
1659
+ };
1660
+ }>>;
1661
+ } & {
1662
+ unrestrictedDbAccess?: undefined;
1663
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1664
+ readonly getRunTypescriptInNodejsFiles: {
1665
+ input?: {
1666
+ entrypointTs: "string";
1667
+ packageDependencies: {
1668
+ record: {
1669
+ values: "string";
1670
+ };
1671
+ };
1672
+ } | undefined;
1673
+ description?: string;
1674
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1675
+ entrypointTs: "string";
1676
+ packageDependencies: {
1677
+ record: {
1678
+ values: "string";
1679
+ };
1680
+ };
1681
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
1682
+ "index.ts": string;
1683
+ Dockerfile: string;
1684
+ "package.json": string;
1685
+ "eslint.config.mjs": string;
1686
+ "tsconfig.json": string;
1687
+ }>;
1688
+ } & {
1689
+ unrestrictedDbAccess?: undefined;
1690
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1691
+ readonly setFileStorage: {
1692
+ input?: {
1693
+ connId: "string";
1694
+ tableConfig: {
1695
+ type: {
1696
+ readonly fileTable: {
1697
+ readonly type: "string";
1698
+ readonly optional: true;
1699
+ };
1700
+ readonly storageType: {
1701
+ readonly oneOfType: readonly [{
1702
+ readonly type: {
1703
+ readonly enum: readonly ["local"];
1704
+ };
1705
+ }, {
1706
+ readonly type: {
1707
+ readonly enum: readonly ["S3"];
1708
+ };
1709
+ readonly credential_id: {
1710
+ readonly type: "number";
1711
+ };
1712
+ }];
1713
+ };
1714
+ readonly referencedTables: {
1715
+ readonly record: {
1716
+ readonly values: "any";
1717
+ };
1718
+ readonly optional: true;
1719
+ };
1720
+ readonly delayedDelete: {
1721
+ readonly optional: true;
1722
+ readonly type: {
1723
+ readonly deleteAfterNDays: {
1724
+ readonly type: "number";
1725
+ };
1726
+ readonly checkIntervalHours: {
1727
+ readonly type: "number";
1728
+ readonly optional: true;
1729
+ };
1730
+ };
1731
+ };
1732
+ readonly annotationsTable: {
1733
+ readonly type: "string";
1734
+ readonly optional: true;
1735
+ };
1736
+ readonly extractText: {
1737
+ readonly type: "boolean";
1738
+ readonly optional: true;
1739
+ };
1740
+ };
1741
+ optional: true;
1742
+ };
1743
+ opts: {
1744
+ optional: true;
1745
+ type: {
1746
+ keepS3Data: {
1747
+ type: "boolean";
1748
+ optional: true;
1749
+ };
1750
+ keepFileTable: {
1751
+ type: "boolean";
1752
+ optional: true;
1753
+ };
1754
+ };
1755
+ };
1756
+ } | undefined;
1757
+ description?: string;
1758
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1759
+ connId: "string";
1760
+ tableConfig: {
1761
+ type: {
1762
+ readonly fileTable: {
1763
+ readonly type: "string";
1764
+ readonly optional: true;
1765
+ };
1766
+ readonly storageType: {
1767
+ readonly oneOfType: readonly [{
1768
+ readonly type: {
1769
+ readonly enum: readonly ["local"];
1770
+ };
1771
+ }, {
1772
+ readonly type: {
1773
+ readonly enum: readonly ["S3"];
1774
+ };
1775
+ readonly credential_id: {
1776
+ readonly type: "number";
1777
+ };
1778
+ }];
1779
+ };
1780
+ readonly referencedTables: {
1781
+ readonly record: {
1782
+ readonly values: "any";
1783
+ };
1784
+ readonly optional: true;
1785
+ };
1786
+ readonly delayedDelete: {
1787
+ readonly optional: true;
1788
+ readonly type: {
1789
+ readonly deleteAfterNDays: {
1790
+ readonly type: "number";
1791
+ };
1792
+ readonly checkIntervalHours: {
1793
+ readonly type: "number";
1794
+ readonly optional: true;
1795
+ };
1796
+ };
1797
+ };
1798
+ readonly annotationsTable: {
1799
+ readonly type: "string";
1800
+ readonly optional: true;
1801
+ };
1802
+ readonly extractText: {
1803
+ readonly type: "boolean";
1804
+ readonly optional: true;
1805
+ };
1806
+ };
1807
+ optional: true;
1808
+ };
1809
+ opts: {
1810
+ optional: true;
1811
+ type: {
1812
+ keepS3Data: {
1813
+ type: "boolean";
1814
+ optional: true;
1815
+ };
1816
+ keepFileTable: {
1817
+ type: "boolean";
1818
+ optional: true;
1819
+ };
1820
+ };
1821
+ };
1822
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
1823
+ } & {
1824
+ unrestrictedDbAccess: true;
1825
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1826
+ readonly getStatus: {
1827
+ input?: {
1828
+ connId: "string";
1829
+ } | undefined;
1830
+ description?: string;
1831
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1832
+ connId: "string";
1833
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<import("../../../common/utils").ConnectionStatus>;
1834
+ } & {
1835
+ unrestrictedDbAccess: true;
1836
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1837
+ readonly getSampleSchemas: {
1838
+ input?: Record<string, import("prostgles-types").JSONB.FieldType> | undefined;
1839
+ description?: string;
1840
+ run: (args: import("prostgles-types").JSONB.GetObjectType<Record<string, import("prostgles-types").JSONB.FieldType>>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<import("../../../common/utils").SampleSchema[]>;
1841
+ } & {
1842
+ unrestrictedDbAccess?: undefined;
1843
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1844
+ readonly getCompiledTS: {
1845
+ input?: {
1846
+ ts: "string";
1847
+ } | undefined;
1848
+ description?: string;
1849
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1850
+ ts: "string";
1851
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string>;
1852
+ } & {
1853
+ unrestrictedDbAccess?: undefined;
1854
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1855
+ readonly killPID: {
1856
+ input?: {
1857
+ readonly connId: "string";
1858
+ readonly id_query_hash: "string";
1859
+ readonly type: {
1860
+ readonly enum: readonly ["cancel", "terminate"];
1861
+ readonly optional: true;
1862
+ };
1863
+ } | undefined;
1864
+ description?: string;
1865
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1866
+ readonly connId: "string";
1867
+ readonly id_query_hash: "string";
1868
+ readonly type: {
1869
+ readonly enum: readonly ["cancel", "terminate"];
1870
+ readonly optional: true;
1871
+ };
1872
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<any[]>;
1873
+ } & {
1874
+ unrestrictedDbAccess?: undefined;
1875
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1876
+ readonly setOnMount: {
1877
+ input?: {
1878
+ connId: "string";
1879
+ changes: {
1880
+ type: {
1881
+ on_mount_ts_disabled: {
1882
+ type: "boolean";
1883
+ optional: true;
1884
+ };
1885
+ };
1886
+ };
1887
+ } | undefined;
1888
+ description?: string;
1889
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1890
+ connId: "string";
1891
+ changes: {
1892
+ type: {
1893
+ on_mount_ts_disabled: {
1894
+ type: "boolean";
1895
+ optional: true;
1896
+ };
1897
+ };
1898
+ };
1899
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
1900
+ } & {
1901
+ unrestrictedDbAccess: true;
1902
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1903
+ readonly setTableConfig: {
1904
+ input?: {
1905
+ connId: "string";
1906
+ changes: {
1907
+ type: {
1908
+ table_config_ts: {
1909
+ type: "string";
1910
+ optional: true;
1911
+ };
1912
+ table_config_ts_disabled: {
1913
+ type: "boolean";
1914
+ optional: true;
1915
+ };
1916
+ };
1917
+ };
1918
+ } | undefined;
1919
+ description?: string;
1920
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1921
+ connId: "string";
1922
+ changes: {
1923
+ type: {
1924
+ table_config_ts: {
1925
+ type: "string";
1926
+ optional: true;
1927
+ };
1928
+ table_config_ts_disabled: {
1929
+ type: "boolean";
1930
+ optional: true;
1931
+ };
1932
+ };
1933
+ };
1934
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
1935
+ } & {
1936
+ unrestrictedDbAccess: true;
1937
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1938
+ readonly getNodeTypes: {
1939
+ input?: {
1940
+ projectPath: {
1941
+ type: "string";
1942
+ optional: true;
1943
+ };
1944
+ } | undefined;
1945
+ description?: string;
1946
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1947
+ projectPath: {
1948
+ type: "string";
1949
+ optional: true;
1950
+ };
1951
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
1952
+ content: string;
1953
+ filePath: string;
1954
+ }[]>;
1955
+ } & {
1956
+ unrestrictedDbAccess?: undefined;
1957
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1958
+ readonly backupConnections: {
1959
+ input?: {
1960
+ connectionNames: {
1961
+ optional: true;
1962
+ type: "string[]";
1963
+ };
1964
+ allActive: {
1965
+ optional: true;
1966
+ type: "boolean";
1967
+ };
1968
+ name: "string";
1969
+ } | undefined;
1970
+ description?: string;
1971
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1972
+ connectionNames: {
1973
+ optional: true;
1974
+ type: "string[]";
1975
+ };
1976
+ allActive: {
1977
+ optional: true;
1978
+ type: "boolean";
1979
+ };
1980
+ name: "string";
1981
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
1982
+ } & {
1983
+ unrestrictedDbAccess: true;
1984
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1985
+ readonly restoreConnections: {
1986
+ input?: {
1987
+ backupName: "string";
1988
+ } | undefined;
1989
+ description?: string;
1990
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
1991
+ backupName: "string";
1992
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<number>;
1993
+ } & {
1994
+ unrestrictedDbAccess: true;
1995
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
1996
+ readonly pgDump: {
1997
+ input?: {
1998
+ conId: "string";
1999
+ credId: {
2000
+ oneOf: ("number" | {
2001
+ enum: null[];
2002
+ })[];
2003
+ };
2004
+ opts: {
2005
+ type: {
2006
+ name: {
2007
+ type: "string";
2008
+ optional: true;
2009
+ };
2010
+ initiator: {
2011
+ type: "string";
2012
+ optional: true;
2013
+ };
2014
+ options: {
2015
+ readonly oneOfType: readonly [{
2016
+ readonly command: {
2017
+ readonly enum: readonly ["pg_dumpall"];
2018
+ };
2019
+ readonly clean: {
2020
+ readonly type: "boolean";
2021
+ };
2022
+ readonly dataOnly: {
2023
+ readonly type: "boolean";
2024
+ readonly optional: true;
2025
+ };
2026
+ readonly globalsOnly: {
2027
+ readonly type: "boolean";
2028
+ readonly optional: true;
2029
+ };
2030
+ readonly rolesOnly: {
2031
+ readonly type: "boolean";
2032
+ readonly optional: true;
2033
+ };
2034
+ readonly schemaOnly: {
2035
+ readonly type: "boolean";
2036
+ readonly optional: true;
2037
+ };
2038
+ readonly ifExists: {
2039
+ readonly type: "boolean";
2040
+ readonly optional: true;
2041
+ };
2042
+ readonly encoding: {
2043
+ readonly type: "string";
2044
+ readonly optional: true;
2045
+ };
2046
+ readonly keepLogs: {
2047
+ readonly type: "boolean";
2048
+ readonly optional: true;
2049
+ };
2050
+ }, {
2051
+ readonly command: {
2052
+ readonly enum: readonly ["pg_dump"];
2053
+ };
2054
+ readonly format: {
2055
+ readonly enum: readonly ["p", "t", "c"];
2056
+ };
2057
+ readonly dataOnly: {
2058
+ readonly type: "boolean";
2059
+ readonly optional: true;
2060
+ };
2061
+ readonly clean: {
2062
+ readonly type: "boolean";
2063
+ readonly optional: true;
2064
+ };
2065
+ readonly create: {
2066
+ readonly type: "boolean";
2067
+ readonly optional: true;
2068
+ };
2069
+ readonly encoding: {
2070
+ readonly type: "string";
2071
+ readonly optional: true;
2072
+ };
2073
+ readonly numberOfJobs: {
2074
+ readonly type: "integer";
2075
+ readonly optional: true;
2076
+ };
2077
+ readonly noOwner: {
2078
+ readonly type: "boolean";
2079
+ readonly optional: true;
2080
+ };
2081
+ readonly compressionLevel: {
2082
+ readonly type: "integer";
2083
+ readonly optional: true;
2084
+ };
2085
+ readonly ifExists: {
2086
+ readonly type: "boolean";
2087
+ readonly optional: true;
2088
+ };
2089
+ readonly keepLogs: {
2090
+ readonly type: "boolean";
2091
+ readonly optional: true;
2092
+ };
2093
+ readonly excludeSchema: {
2094
+ readonly type: "string";
2095
+ readonly optional: true;
2096
+ };
2097
+ readonly schemaOnly: {
2098
+ readonly type: "boolean";
2099
+ readonly optional: true;
2100
+ };
2101
+ }];
2102
+ };
2103
+ };
2104
+ };
2105
+ } | undefined;
2106
+ description?: string;
2107
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2108
+ conId: "string";
2109
+ credId: {
2110
+ oneOf: ("number" | {
2111
+ enum: null[];
2112
+ })[];
2113
+ };
2114
+ opts: {
2115
+ type: {
2116
+ name: {
2117
+ type: "string";
2118
+ optional: true;
2119
+ };
2120
+ initiator: {
2121
+ type: "string";
2122
+ optional: true;
2123
+ };
2124
+ options: {
2125
+ readonly oneOfType: readonly [{
2126
+ readonly command: {
2127
+ readonly enum: readonly ["pg_dumpall"];
2128
+ };
2129
+ readonly clean: {
2130
+ readonly type: "boolean";
2131
+ };
2132
+ readonly dataOnly: {
2133
+ readonly type: "boolean";
2134
+ readonly optional: true;
2135
+ };
2136
+ readonly globalsOnly: {
2137
+ readonly type: "boolean";
2138
+ readonly optional: true;
2139
+ };
2140
+ readonly rolesOnly: {
2141
+ readonly type: "boolean";
2142
+ readonly optional: true;
2143
+ };
2144
+ readonly schemaOnly: {
2145
+ readonly type: "boolean";
2146
+ readonly optional: true;
2147
+ };
2148
+ readonly ifExists: {
2149
+ readonly type: "boolean";
2150
+ readonly optional: true;
2151
+ };
2152
+ readonly encoding: {
2153
+ readonly type: "string";
2154
+ readonly optional: true;
2155
+ };
2156
+ readonly keepLogs: {
2157
+ readonly type: "boolean";
2158
+ readonly optional: true;
2159
+ };
2160
+ }, {
2161
+ readonly command: {
2162
+ readonly enum: readonly ["pg_dump"];
2163
+ };
2164
+ readonly format: {
2165
+ readonly enum: readonly ["p", "t", "c"];
2166
+ };
2167
+ readonly dataOnly: {
2168
+ readonly type: "boolean";
2169
+ readonly optional: true;
2170
+ };
2171
+ readonly clean: {
2172
+ readonly type: "boolean";
2173
+ readonly optional: true;
2174
+ };
2175
+ readonly create: {
2176
+ readonly type: "boolean";
2177
+ readonly optional: true;
2178
+ };
2179
+ readonly encoding: {
2180
+ readonly type: "string";
2181
+ readonly optional: true;
2182
+ };
2183
+ readonly numberOfJobs: {
2184
+ readonly type: "integer";
2185
+ readonly optional: true;
2186
+ };
2187
+ readonly noOwner: {
2188
+ readonly type: "boolean";
2189
+ readonly optional: true;
2190
+ };
2191
+ readonly compressionLevel: {
2192
+ readonly type: "integer";
2193
+ readonly optional: true;
2194
+ };
2195
+ readonly ifExists: {
2196
+ readonly type: "boolean";
2197
+ readonly optional: true;
2198
+ };
2199
+ readonly keepLogs: {
2200
+ readonly type: "boolean";
2201
+ readonly optional: true;
2202
+ };
2203
+ readonly excludeSchema: {
2204
+ readonly type: "string";
2205
+ readonly optional: true;
2206
+ };
2207
+ readonly schemaOnly: {
2208
+ readonly type: "boolean";
2209
+ readonly optional: true;
2210
+ };
2211
+ }];
2212
+ };
2213
+ };
2214
+ };
2215
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string | undefined>;
2216
+ } & {
2217
+ unrestrictedDbAccess?: undefined;
2218
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2219
+ readonly pgRestore: {
2220
+ input?: {
2221
+ bkpId: "string";
2222
+ connId: {
2223
+ type: "string";
2224
+ optional: true;
2225
+ };
2226
+ opts: "any";
2227
+ } | undefined;
2228
+ description?: string;
2229
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2230
+ bkpId: "string";
2231
+ connId: {
2232
+ type: "string";
2233
+ optional: true;
2234
+ };
2235
+ opts: "any";
2236
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
2237
+ } & {
2238
+ unrestrictedDbAccess?: undefined;
2239
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2240
+ readonly bkpDelete: {
2241
+ input?: {
2242
+ bkpId: "string";
2243
+ force: {
2244
+ type: "boolean";
2245
+ optional: true;
2246
+ };
2247
+ } | undefined;
2248
+ description?: string;
2249
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2250
+ bkpId: "string";
2251
+ force: {
2252
+ type: "boolean";
2253
+ optional: true;
2254
+ };
2255
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string>;
2256
+ } & {
2257
+ unrestrictedDbAccess?: undefined;
2258
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2259
+ readonly streamBackupFile: {
2260
+ input?: {
2261
+ data: {
2262
+ oneOfType: readonly [{
2263
+ readonly type: {
2264
+ readonly enum: readonly ["start"];
2265
+ };
2266
+ readonly fileName: "string";
2267
+ readonly connectionId: "string";
2268
+ readonly sizeBytes: "integer";
2269
+ readonly restoreOptions: {
2270
+ readonly type: {
2271
+ readonly command: {
2272
+ readonly enum: readonly ["pg_restore", "psql"];
2273
+ };
2274
+ readonly format: {
2275
+ readonly enum: readonly ["p", "t", "c"];
2276
+ };
2277
+ readonly clean: {
2278
+ readonly type: "boolean";
2279
+ };
2280
+ readonly singleTransaction: {
2281
+ readonly type: "boolean";
2282
+ readonly optional: true;
2283
+ };
2284
+ readonly excludeSchema: {
2285
+ readonly type: "string";
2286
+ readonly optional: true;
2287
+ };
2288
+ readonly newDbName: {
2289
+ readonly type: "string";
2290
+ readonly optional: true;
2291
+ };
2292
+ readonly create: {
2293
+ readonly type: "boolean";
2294
+ readonly optional: true;
2295
+ };
2296
+ readonly dataOnly: {
2297
+ readonly type: "boolean";
2298
+ readonly optional: true;
2299
+ };
2300
+ readonly noOwner: {
2301
+ readonly type: "boolean";
2302
+ readonly optional: true;
2303
+ };
2304
+ readonly numberOfJobs: {
2305
+ readonly type: "integer";
2306
+ readonly optional: true;
2307
+ };
2308
+ readonly ifExists: {
2309
+ readonly type: "boolean";
2310
+ readonly optional: true;
2311
+ };
2312
+ readonly keepLogs: {
2313
+ readonly type: "boolean";
2314
+ readonly optional: true;
2315
+ };
2316
+ };
2317
+ };
2318
+ }, {
2319
+ readonly type: {
2320
+ readonly enum: readonly ["chunk"];
2321
+ };
2322
+ readonly streamId: "string";
2323
+ readonly chunk: "Blob";
2324
+ }, {
2325
+ readonly type: {
2326
+ readonly enum: readonly ["end"];
2327
+ };
2328
+ readonly streamId: "string";
2329
+ }];
2330
+ };
2331
+ } | undefined;
2332
+ description?: string;
2333
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2334
+ data: {
2335
+ oneOfType: readonly [{
2336
+ readonly type: {
2337
+ readonly enum: readonly ["start"];
2338
+ };
2339
+ readonly fileName: "string";
2340
+ readonly connectionId: "string";
2341
+ readonly sizeBytes: "integer";
2342
+ readonly restoreOptions: {
2343
+ readonly type: {
2344
+ readonly command: {
2345
+ readonly enum: readonly ["pg_restore", "psql"];
2346
+ };
2347
+ readonly format: {
2348
+ readonly enum: readonly ["p", "t", "c"];
2349
+ };
2350
+ readonly clean: {
2351
+ readonly type: "boolean";
2352
+ };
2353
+ readonly singleTransaction: {
2354
+ readonly type: "boolean";
2355
+ readonly optional: true;
2356
+ };
2357
+ readonly excludeSchema: {
2358
+ readonly type: "string";
2359
+ readonly optional: true;
2360
+ };
2361
+ readonly newDbName: {
2362
+ readonly type: "string";
2363
+ readonly optional: true;
2364
+ };
2365
+ readonly create: {
2366
+ readonly type: "boolean";
2367
+ readonly optional: true;
2368
+ };
2369
+ readonly dataOnly: {
2370
+ readonly type: "boolean";
2371
+ readonly optional: true;
2372
+ };
2373
+ readonly noOwner: {
2374
+ readonly type: "boolean";
2375
+ readonly optional: true;
2376
+ };
2377
+ readonly numberOfJobs: {
2378
+ readonly type: "integer";
2379
+ readonly optional: true;
2380
+ };
2381
+ readonly ifExists: {
2382
+ readonly type: "boolean";
2383
+ readonly optional: true;
2384
+ };
2385
+ readonly keepLogs: {
2386
+ readonly type: "boolean";
2387
+ readonly optional: true;
2388
+ };
2389
+ };
2390
+ };
2391
+ }, {
2392
+ readonly type: {
2393
+ readonly enum: readonly ["chunk"];
2394
+ };
2395
+ readonly streamId: "string";
2396
+ readonly chunk: "Blob";
2397
+ }, {
2398
+ readonly type: {
2399
+ readonly enum: readonly ["end"];
2400
+ };
2401
+ readonly streamId: "string";
2402
+ }];
2403
+ };
2404
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string | undefined>;
2405
+ } & {
2406
+ unrestrictedDbAccess?: undefined;
2407
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2408
+ readonly makeDirectory: {
2409
+ input?: {
2410
+ path: "string";
2411
+ folderName: "string";
2412
+ } | undefined;
2413
+ description?: string;
2414
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2415
+ path: "string";
2416
+ folderName: "string";
2417
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string>;
2418
+ } & {
2419
+ unrestrictedDbAccess?: undefined;
2420
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2421
+ readonly glob: {
2422
+ input?: {
2423
+ pattern: {
2424
+ type: "string";
2425
+ optional: true;
2426
+ };
2427
+ cwd: {
2428
+ type: "string";
2429
+ optional: true;
2430
+ };
2431
+ timeout: {
2432
+ type: "integer";
2433
+ optional: true;
2434
+ };
2435
+ } | undefined;
2436
+ description?: string;
2437
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2438
+ pattern: {
2439
+ type: "string";
2440
+ optional: true;
2441
+ };
2442
+ cwd: {
2443
+ type: "string";
2444
+ optional: true;
2445
+ };
2446
+ timeout: {
2447
+ type: "integer";
2448
+ optional: true;
2449
+ };
2450
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
2451
+ pattern: string;
2452
+ path: string;
2453
+ result: {
2454
+ path: string;
2455
+ name: string;
2456
+ type: string;
2457
+ size: number | undefined;
2458
+ lastModified: number | undefined;
2459
+ created: number | undefined;
2460
+ }[];
2461
+ timedOut: boolean;
2462
+ }>;
2463
+ } & {
2464
+ unrestrictedDbAccess?: undefined;
2465
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2466
+ readonly disablePasswordless: {
2467
+ input?: {
2468
+ username: "string";
2469
+ password: "string";
2470
+ origin: "string";
2471
+ } | undefined;
2472
+ description?: string;
2473
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2474
+ username: "string";
2475
+ password: "string";
2476
+ origin: "string";
2477
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
2478
+ } & {
2479
+ unrestrictedDbAccess: true;
2480
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2481
+ readonly getConnectionDBTypes: {
2482
+ input?: {
2483
+ conId: {
2484
+ type: "string";
2485
+ optional: true;
2486
+ };
2487
+ } | undefined;
2488
+ description?: string;
2489
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2490
+ conId: {
2491
+ type: "string";
2492
+ optional: true;
2493
+ };
2494
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string>;
2495
+ } & {
2496
+ unrestrictedDbAccess?: undefined;
2497
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2498
+ readonly runSql: {
2499
+ input?: {
2500
+ readonly connectionId: "string";
2501
+ readonly query: "string";
2502
+ readonly mode: {
2503
+ readonly enum: readonly ["default", "readOnly"];
2504
+ readonly optional: true;
2505
+ };
2506
+ readonly args: {
2507
+ readonly type: "any";
2508
+ readonly optional: true;
2509
+ };
2510
+ } | undefined;
2511
+ description?: string;
2512
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2513
+ readonly connectionId: "string";
2514
+ readonly query: "string";
2515
+ readonly mode: {
2516
+ readonly enum: readonly ["default", "readOnly"];
2517
+ readonly optional: true;
2518
+ };
2519
+ readonly args: {
2520
+ readonly type: "any";
2521
+ readonly optional: true;
2522
+ };
2523
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
2524
+ command: string;
2525
+ fields: {
2526
+ tsDataType: "string" | "number" | "boolean" | "any" | "Uint8Array" | "string[]" | "number[]" | "boolean[]" | "any[]";
2527
+ dataType: import("prostgles-types").PG_COLUMN_UDT_DATA_TYPE;
2528
+ udt_name: import("prostgles-types").PG_COLUMN_UDT_DATA_TYPE;
2529
+ tableName: string | undefined;
2530
+ tableSchema: string | undefined;
2531
+ columnName: string | undefined;
2532
+ name: string;
2533
+ oid: number;
2534
+ dataTypeID: number;
2535
+ tableID: number;
2536
+ columnID: number;
2537
+ dataTypeSize: number;
2538
+ dataTypeModifier: number;
2539
+ format: string;
2540
+ }[];
2541
+ rowCount: number;
2542
+ rows: unknown[];
2543
+ duration: number | undefined;
2544
+ }>;
2545
+ } & {
2546
+ unrestrictedDbAccess?: undefined;
2547
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2548
+ readonly runConnectionQuery: {
2549
+ input?: {
2550
+ conId: "string";
2551
+ query: "string";
2552
+ args: {
2553
+ type: "any";
2554
+ optional: true;
2555
+ };
2556
+ } | undefined;
2557
+ description?: string;
2558
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2559
+ conId: "string";
2560
+ query: "string";
2561
+ args: {
2562
+ type: "any";
2563
+ optional: true;
2564
+ };
2565
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<AnyObject[]>;
2566
+ } & {
2567
+ unrestrictedDbAccess?: undefined;
2568
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2569
+ readonly getMyIP: {
2570
+ input?: Record<string, import("prostgles-types").JSONB.FieldType> | undefined;
2571
+ description?: string;
2572
+ run: (args: import("prostgles-types").JSONB.GetObjectType<Record<string, import("prostgles-types").JSONB.FieldType>>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
2573
+ ip: string | undefined;
2574
+ ip_address: string;
2575
+ ip_address_remote: string | undefined;
2576
+ x_real_ip: string | undefined;
2577
+ isAllowed: boolean | null | undefined;
2578
+ }>;
2579
+ } & {
2580
+ unrestrictedDbAccess: true;
2581
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2582
+ readonly getConnectedIds: {
2583
+ input?: Record<string, import("prostgles-types").JSONB.FieldType> | undefined;
2584
+ description?: string;
2585
+ run: (args: import("prostgles-types").JSONB.GetObjectType<Record<string, import("prostgles-types").JSONB.FieldType>>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string[]>;
2586
+ } & {
2587
+ unrestrictedDbAccess?: undefined;
2588
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2589
+ readonly toggleService: {
2590
+ input?: {
2591
+ serviceName: "string";
2592
+ enable: "boolean";
2593
+ } | undefined;
2594
+ description?: string;
2595
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2596
+ serviceName: "string";
2597
+ enable: "boolean";
2598
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
2599
+ } & {
2600
+ unrestrictedDbAccess: true;
2601
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2602
+ readonly getDBSize: {
2603
+ input?: {
2604
+ conId: "string";
2605
+ } | undefined;
2606
+ description?: string;
2607
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2608
+ conId: "string";
2609
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string>;
2610
+ } & {
2611
+ unrestrictedDbAccess: true;
2612
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2613
+ readonly getIsSuperUser: {
2614
+ input?: {
2615
+ conId: "string";
2616
+ } | undefined;
2617
+ description?: string;
2618
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2619
+ conId: "string";
2620
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<boolean>;
2621
+ } & {
2622
+ unrestrictedDbAccess?: undefined;
2623
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2624
+ readonly getFileFolderSizeInBytes: {
2625
+ input?: {
2626
+ conId: {
2627
+ type: "string";
2628
+ optional: true;
2629
+ };
2630
+ } | undefined;
2631
+ description?: string;
2632
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2633
+ conId: {
2634
+ type: "string";
2635
+ optional: true;
2636
+ };
2637
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
2638
+ size: number;
2639
+ storagePath: string;
2640
+ }>;
2641
+ } & {
2642
+ unrestrictedDbAccess?: undefined;
2643
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2644
+ readonly testDBConnection: {
2645
+ input?: {
2646
+ connection: {
2647
+ record: {
2648
+ values: "unknown";
2649
+ };
2650
+ };
2651
+ } | undefined;
2652
+ description?: string;
2653
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2654
+ connection: {
2655
+ record: {
2656
+ values: "unknown";
2657
+ };
2658
+ };
2659
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
2660
+ prostglesSchemaVersion: string | undefined;
2661
+ connectionInfo: import("../connectionUtils/getConnectionDetails").ConnectionDetails;
2662
+ canCreateDb: boolean | undefined;
2663
+ isSSLModeFallBack?: boolean;
2664
+ }>;
2665
+ } & {
2666
+ unrestrictedDbAccess?: undefined;
2667
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2668
+ readonly validateConnection: {
2669
+ input?: {
2670
+ connection: "any";
2671
+ } | undefined;
2672
+ description?: string;
2673
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2674
+ connection: "any";
2675
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
2676
+ validatedConnection: any;
2677
+ }>;
2678
+ } & {
2679
+ unrestrictedDbAccess?: undefined;
2680
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2681
+ readonly getInstalledPsqlVersions: {
2682
+ input?: Record<string, import("prostgles-types").JSONB.FieldType> | undefined;
2683
+ description?: string;
2684
+ run: (args: import("prostgles-types").JSONB.GetObjectType<Record<string, import("prostgles-types").JSONB.FieldType>>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<import("../../../common/electronInitTypes").InstalledPrograms | undefined>;
2685
+ } & {
2686
+ unrestrictedDbAccess: true;
2687
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
2688
+ readonly createConnection: {
2689
+ input?: {
2690
+ connection: {
2691
+ record: {
2692
+ values: "any";
2693
+ };
2694
+ };
2695
+ origin: "string";
2696
+ sampleSchemaName: {
2697
+ type: "string";
2698
+ optional: true;
2699
+ };
2700
+ } | undefined;
2701
+ description?: string;
2702
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
2703
+ connection: {
2704
+ record: {
2705
+ values: "any";
2706
+ };
2707
+ };
2708
+ origin: "string";
2709
+ sampleSchemaName: {
2710
+ type: "string";
2711
+ optional: true;
2712
+ };
2713
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
2714
+ connection: Required<{
2715
+ config?: null | {
2716
+ enabled: boolean;
2717
+ path: string;
2718
+ };
2719
+ created?: null | string;
2720
+ db_conn?: null | string;
2721
+ db_connection_timeout?: null | number;
2722
+ db_host?: string;
2723
+ db_name: string;
2724
+ db_pass?: null | string;
2725
+ db_port?: number;
2726
+ db_schema_filter?: null | Record<string, 1> | Record<string, 0>;
2727
+ db_ssl?: "disable" | "allow" | "prefer" | "require" | "verify-ca" | "verify-full";
2728
+ db_user?: string;
2729
+ db_watch_schema?: null | boolean;
2730
+ disable_realtime?: null | boolean;
2731
+ display_options?: null | {
2732
+ prettyTableAndColumnNames: boolean;
2733
+ };
2734
+ id?: string;
2735
+ info?: null | {
2736
+ canCreateDb?: boolean;
2737
+ };
2738
+ is_state_db?: null | boolean;
2739
+ last_updated?: number | string;
2740
+ name: string;
2741
+ on_mount_ts_disabled?: null | boolean;
2742
+ port?: null | number;
2743
+ prgl_params?: null | any;
2744
+ prgl_url?: null | string;
2745
+ ssl_certificate?: null | string;
2746
+ ssl_client_certificate?: null | string;
2747
+ ssl_client_certificate_key?: null | string;
2748
+ ssl_reject_unauthorized?: null | boolean;
2749
+ table_options?: null | Partial<Record<string, {
2750
+ icon?: string;
2751
+ label?: string;
2752
+ rowIconColumn?: string;
2753
+ columns?: Partial<Record<string, {
2754
+ icon?: string;
2755
+ renderAs?: {
2756
+ type: "NONE";
2757
+ } | {
2758
+ type: "URL";
2759
+ } | {
2760
+ type: "Email";
2761
+ } | {
2762
+ type: "Tel";
2763
+ } | {
2764
+ type: "QR Code";
2765
+ } | {
2766
+ type: "Currency";
2767
+ params: {
2768
+ mode: "Fixed";
2769
+ metricPrefix?: boolean;
2770
+ currencyCode: string;
2771
+ } | {
2772
+ mode: "From column";
2773
+ metricPrefix?: boolean;
2774
+ currencyCodeField: string;
2775
+ };
2776
+ } | {
2777
+ type: "Metric Prefix";
2778
+ } | {
2779
+ type: "UNIX Timestamp";
2780
+ } | {
2781
+ type: "Age";
2782
+ params?: {
2783
+ variant: "short" | "full";
2784
+ };
2785
+ } | {
2786
+ type: "Markdown" | "MarkdownPopup";
2787
+ } | {
2788
+ type: "DoclingDocument";
2789
+ } | {
2790
+ type: "HTML";
2791
+ params: {
2792
+ noSanitize?: boolean;
2793
+ allowedHTMLTags?: ("img" | "video" | "audio" | "svg" | "path")[];
2794
+ };
2795
+ } | {
2796
+ type: "Media";
2797
+ params: {
2798
+ contentType?: {
2799
+ mode: "Auto";
2800
+ } | {
2801
+ mode: "Fixed";
2802
+ fixedContentType: ("image" | "video" | "audio");
2803
+ } | {
2804
+ mode: "From column";
2805
+ contentTypeColumnName: string;
2806
+ } | {
2807
+ mode: "From URL Extension";
2808
+ };
2809
+ titleColumn?: string;
2810
+ };
2811
+ };
2812
+ style?: {
2813
+ type: "Conditional";
2814
+ conditions: ({
2815
+ operator: "contains" | "=" | ">" | ">=" | "<" | "<=" | "!=";
2816
+ condition: any;
2817
+ textColor?: string;
2818
+ chipColor?: string;
2819
+ cellColor?: string;
2820
+ borderColor?: string;
2821
+ } | {
2822
+ operator: "in" | "not in";
2823
+ condition: any[];
2824
+ textColor?: string;
2825
+ chipColor?: string;
2826
+ cellColor?: string;
2827
+ borderColor?: string;
2828
+ })[];
2829
+ defaultStyle?: {
2830
+ textColor?: string;
2831
+ chipColor?: string;
2832
+ cellColor?: string;
2833
+ borderColor?: string;
2834
+ };
2835
+ } | {
2836
+ type: "Scale";
2837
+ textColor: string;
2838
+ minColor: string;
2839
+ maxColor: string;
2840
+ } | {
2841
+ type: "Barchart";
2842
+ barColor: string;
2843
+ textColor: string;
2844
+ };
2845
+ }>>;
2846
+ card?: {
2847
+ avatarColumn?: string;
2848
+ headerColumn?: string;
2849
+ subHeaderColumn?: string;
2850
+ visibleColumns?: (string | {
2851
+ column: string;
2852
+ hideLabel?: boolean;
2853
+ })[];
2854
+ };
2855
+ }>>;
2856
+ type: "Standard" | "Connection URI";
2857
+ url_path?: null | string;
2858
+ user_id?: null | string;
2859
+ web_app_directory?: null | string;
2860
+ web_app_templated?: null | boolean;
2861
+ }>;
2862
+ database_config: Required<{
2863
+ allowed_ips?: string[] | undefined;
2864
+ allowed_ips_enabled?: boolean | undefined;
2865
+ auth_created_user_type?: null | "admin" | "public" | "default" | undefined;
2866
+ auth_providers?: null | {
2867
+ website_url: string;
2868
+ email?: {
2869
+ signupType: "withMagicLink";
2870
+ enabled?: boolean;
2871
+ smtp: {
2872
+ type: "smtp";
2873
+ host: string;
2874
+ port: number;
2875
+ secure?: boolean;
2876
+ rejectUnauthorized?: boolean;
2877
+ user: string;
2878
+ pass: string;
2879
+ } | {
2880
+ type: "aws-ses";
2881
+ region: string;
2882
+ accessKeyId: string;
2883
+ secretAccessKey: string;
2884
+ sendingRate?: number;
2885
+ };
2886
+ emailTemplate: {
2887
+ from: string;
2888
+ subject: string;
2889
+ body: string;
2890
+ };
2891
+ emailConfirmationEnabled?: boolean;
2892
+ } | {
2893
+ signupType: "withPassword";
2894
+ enabled?: boolean;
2895
+ minPasswordLength?: number;
2896
+ smtp: {
2897
+ type: "smtp";
2898
+ host: string;
2899
+ port: number;
2900
+ secure?: boolean;
2901
+ rejectUnauthorized?: boolean;
2902
+ user: string;
2903
+ pass: string;
2904
+ } | {
2905
+ type: "aws-ses";
2906
+ region: string;
2907
+ accessKeyId: string;
2908
+ secretAccessKey: string;
2909
+ sendingRate?: number;
2910
+ };
2911
+ emailTemplate: {
2912
+ from: string;
2913
+ subject: string;
2914
+ body: string;
2915
+ };
2916
+ emailConfirmationEnabled?: boolean;
2917
+ };
2918
+ google?: {
2919
+ enabled?: boolean;
2920
+ clientID: string;
2921
+ clientSecret: string;
2922
+ authOpts?: {
2923
+ scope: ("profile" | "email" | "calendar" | "calendar.readonly" | "calendar.events" | "calendar.events.readonly")[];
2924
+ };
2925
+ };
2926
+ github?: {
2927
+ enabled?: boolean;
2928
+ clientID: string;
2929
+ clientSecret: string;
2930
+ authOpts?: {
2931
+ scope: ("read:user" | "user:email")[];
2932
+ };
2933
+ };
2934
+ microsoft?: {
2935
+ enabled?: boolean;
2936
+ clientID: string;
2937
+ clientSecret: string;
2938
+ authOpts?: {
2939
+ prompt: "login" | "none" | "consent" | "select_account" | "create";
2940
+ scope: ("openid" | "profile" | "email" | "offline_access" | "User.Read" | "User.ReadBasic.All" | "User.Read.All")[];
2941
+ };
2942
+ };
2943
+ facebook?: {
2944
+ enabled?: boolean;
2945
+ clientID: string;
2946
+ clientSecret: string;
2947
+ authOpts?: {
2948
+ scope: ("email" | "public_profile" | "user_birthday" | "user_friends" | "user_gender" | "user_hometown")[];
2949
+ };
2950
+ };
2951
+ customOAuth?: {
2952
+ enabled?: boolean;
2953
+ clientID: string;
2954
+ clientSecret: string;
2955
+ displayName: string;
2956
+ displayIconPath?: string;
2957
+ authorizationURL: string;
2958
+ tokenURL: string;
2959
+ authOpts?: {
2960
+ scope: string[];
2961
+ };
2962
+ };
2963
+ } | undefined;
2964
+ backups_config?: null | {
2965
+ enabled?: boolean;
2966
+ cloudConfig: null | {
2967
+ credential_id?: null | number;
2968
+ };
2969
+ frequency: "daily" | "monthly" | "weekly" | "hourly";
2970
+ hour?: number;
2971
+ dayOfWeek?: number;
2972
+ dayOfMonth?: number;
2973
+ keepLast?: number;
2974
+ err?: null | string;
2975
+ dump_options: {
2976
+ command: "pg_dumpall";
2977
+ clean: boolean;
2978
+ dataOnly?: boolean;
2979
+ globalsOnly?: boolean;
2980
+ rolesOnly?: boolean;
2981
+ schemaOnly?: boolean;
2982
+ ifExists?: boolean;
2983
+ encoding?: string;
2984
+ keepLogs?: boolean;
2985
+ } | {
2986
+ command: "pg_dump";
2987
+ format: "p" | "t" | "c";
2988
+ dataOnly?: boolean;
2989
+ clean?: boolean;
2990
+ create?: boolean;
2991
+ encoding?: string;
2992
+ numberOfJobs?: number;
2993
+ noOwner?: boolean;
2994
+ compressionLevel?: number;
2995
+ ifExists?: boolean;
2996
+ keepLogs?: boolean;
2997
+ excludeSchema?: string;
2998
+ schemaOnly?: boolean;
2999
+ };
3000
+ } | undefined;
3001
+ config_sync?: null | {
3002
+ configPath: string;
3003
+ type: "sample-schema" | "cli";
3004
+ toggleableProperties: Partial<Record<"tableConfig" | "functions" | "onMount", 1>>;
3005
+ lastSynced: string;
3006
+ } | undefined;
3007
+ cookie_options?: null | {
3008
+ secure?: boolean;
3009
+ sameSite?: "lax" | "strict" | "none";
3010
+ } | undefined;
3011
+ cors?: null | {
3012
+ allowedOrigins: string[];
3013
+ credentialsAllowed?: boolean;
3014
+ methods?: ("GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS" | "HEAD")[];
3015
+ allowedHeaders?: ("Content-Type" | "Authorization" | "X-Requested-With" | "Accept" | "Origin" | "Access-Control-Allow-Origin")[];
3016
+ } | undefined;
3017
+ cors_csp_devmode_enabled?: boolean | undefined;
3018
+ csp?: null | {
3019
+ fontSrc?: string[];
3020
+ mediaSrc?: string[];
3021
+ objectSrc?: string[];
3022
+ manifestSrc?: string[];
3023
+ defaultSrc?: string[];
3024
+ frameAncestors?: string[];
3025
+ scriptSrc?: string[];
3026
+ styleSrc?: string[];
3027
+ connectSrc?: string[];
3028
+ imgSrc?: string[];
3029
+ frameSrc?: string[];
3030
+ workerSrc?: string[];
3031
+ formAction?: string[];
3032
+ baseUri?: string[];
3033
+ upgradeInsecureRequests?: string[];
3034
+ blockAllMixedContent?: string[];
3035
+ requireSriFor?: ("script" | "style" | "font")[];
3036
+ sandbox?: ("allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-top-navigation")[];
3037
+ } | undefined;
3038
+ csp_add_defaults_enabled?: boolean | undefined;
3039
+ db_host: string;
3040
+ db_name: string;
3041
+ db_port: number;
3042
+ enable_logs?: boolean | undefined;
3043
+ file_table_config?: null | {
3044
+ fileTable?: string;
3045
+ storageType: {
3046
+ type: "local";
3047
+ } | {
3048
+ type: "S3";
3049
+ credential_id: number;
3050
+ };
3051
+ referencedTables?: Record<string, any>;
3052
+ delayedDelete?: {
3053
+ deleteAfterNDays: number;
3054
+ checkIntervalHours?: number;
3055
+ };
3056
+ annotationsTable?: string;
3057
+ extractText?: boolean;
3058
+ } | undefined;
3059
+ id?: number | undefined;
3060
+ login_rate_limit?: {
3061
+ maxAttemptsPerHour: number;
3062
+ groupBy: "x-real-ip" | "remote_ip" | "ip";
3063
+ } | undefined;
3064
+ login_rate_limit_enabled?: boolean | undefined;
3065
+ magic_link_validity_days?: number | undefined;
3066
+ pass_process_env_vars_to_server_side_functions?: boolean | undefined;
3067
+ rest_api_enabled?: null | boolean | undefined;
3068
+ session_max_age_days?: number | undefined;
3069
+ sync_users?: null | boolean | undefined;
3070
+ table_config?: (null | Record<string, {
3071
+ isLookupTable: {
3072
+ values: Record<string, string>;
3073
+ };
3074
+ } | {
3075
+ columns: Record<string, string | {
3076
+ hint?: string;
3077
+ nullable?: boolean;
3078
+ isText?: boolean;
3079
+ trimmed?: boolean;
3080
+ defaultValue?: any;
3081
+ } | {
3082
+ jsonbSchema: {
3083
+ type: "string" | "number" | "boolean" | "Date" | "time" | "timestamp" | "string[]" | "number[]" | "boolean[]" | "Date[]" | "time[]" | "timestamp[]";
3084
+ optional?: boolean;
3085
+ description?: string;
3086
+ } | {
3087
+ type: "RowLookup" | "RowLookup[]" | "ValueLookup" | "ValueLookup[]" | "TableLookup" | "TableLookup[]" | "ColumnLookup" | "ColumnLookup[]";
3088
+ optional?: boolean;
3089
+ description?: string;
3090
+ } | {
3091
+ type: "object";
3092
+ optional?: boolean;
3093
+ description?: string;
3094
+ };
3095
+ }>;
3096
+ }>) | undefined;
3097
+ table_config_ts?: null | string | undefined;
3098
+ table_config_ts_disabled?: null | boolean | undefined;
3099
+ table_schema_positions?: (null | Partial<Record<string, {
3100
+ x: number;
3101
+ y: number;
3102
+ }>>) | undefined;
3103
+ table_schema_transform?: null | {
3104
+ translate: {
3105
+ x: number;
3106
+ y: number;
3107
+ };
3108
+ scale: number;
3109
+ } | undefined;
3110
+ tableConfig?: null | any;
3111
+ trust_proxy?: boolean | undefined;
3112
+ }>;
3113
+ }>;
3114
+ } & {
3115
+ unrestrictedDbAccess: true;
3116
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3117
+ readonly syncSchema: {
3118
+ input?: {
3119
+ connectionId: "string";
3120
+ configPath: "string";
3121
+ } | undefined;
3122
+ description?: string;
3123
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3124
+ connectionId: "string";
3125
+ configPath: "string";
3126
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
3127
+ } & {
3128
+ unrestrictedDbAccess: true;
3129
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3130
+ readonly refreshModels: {
3131
+ input?: Record<string, import("prostgles-types").JSONB.FieldType> | undefined;
3132
+ description?: string;
3133
+ run: (args: import("prostgles-types").JSONB.GetObjectType<Record<string, import("prostgles-types").JSONB.FieldType>>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
3134
+ } & {
3135
+ unrestrictedDbAccess: true;
3136
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3137
+ readonly reloadSchema: {
3138
+ input?: {
3139
+ conId: "string";
3140
+ } | undefined;
3141
+ description?: string;
3142
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3143
+ conId: "string";
3144
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
3145
+ } & {
3146
+ unrestrictedDbAccess?: undefined;
3147
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3148
+ readonly deleteConnection: {
3149
+ input?: {
3150
+ id: "string";
3151
+ dropDatabase: "boolean";
3152
+ } | undefined;
3153
+ description?: string;
3154
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3155
+ id: "string";
3156
+ dropDatabase: "boolean";
3157
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<Required<{
3158
+ config?: null | {
3159
+ enabled: boolean;
3160
+ path: string;
3161
+ } | undefined;
3162
+ created?: null | string | undefined;
3163
+ db_conn?: null | string | undefined;
3164
+ db_connection_timeout?: null | number | undefined;
3165
+ db_host?: string | undefined;
3166
+ db_name: string;
3167
+ db_pass?: null | string | undefined;
3168
+ db_port?: number | undefined;
3169
+ db_schema_filter?: (null | Record<string, 1> | Record<string, 0>) | undefined;
3170
+ db_ssl?: "disable" | "allow" | "prefer" | "require" | "verify-ca" | "verify-full" | undefined;
3171
+ db_user?: string | undefined;
3172
+ db_watch_schema?: null | boolean | undefined;
3173
+ disable_realtime?: null | boolean | undefined;
3174
+ display_options?: null | {
3175
+ prettyTableAndColumnNames: boolean;
3176
+ } | undefined;
3177
+ id?: string | undefined;
3178
+ info?: null | {
3179
+ canCreateDb?: boolean;
3180
+ } | undefined;
3181
+ is_state_db?: null | boolean | undefined;
3182
+ last_updated?: string | undefined;
3183
+ name: string;
3184
+ on_mount_ts_disabled?: null | boolean | undefined;
3185
+ port?: null | number | undefined;
3186
+ prgl_params?: null | any;
3187
+ prgl_url?: null | string | undefined;
3188
+ ssl_certificate?: null | string | undefined;
3189
+ ssl_client_certificate?: null | string | undefined;
3190
+ ssl_client_certificate_key?: null | string | undefined;
3191
+ ssl_reject_unauthorized?: null | boolean | undefined;
3192
+ table_options?: (null | Partial<Record<string, {
3193
+ icon?: string;
3194
+ label?: string;
3195
+ rowIconColumn?: string;
3196
+ columns?: Partial<Record<string, {
3197
+ icon?: string;
3198
+ renderAs?: {
3199
+ type: "NONE";
3200
+ } | {
3201
+ type: "URL";
3202
+ } | {
3203
+ type: "Email";
3204
+ } | {
3205
+ type: "Tel";
3206
+ } | {
3207
+ type: "QR Code";
3208
+ } | {
3209
+ type: "Currency";
3210
+ params: {
3211
+ mode: "Fixed";
3212
+ metricPrefix?: boolean;
3213
+ currencyCode: string;
3214
+ } | {
3215
+ mode: "From column";
3216
+ metricPrefix?: boolean;
3217
+ currencyCodeField: string;
3218
+ };
3219
+ } | {
3220
+ type: "Metric Prefix";
3221
+ } | {
3222
+ type: "UNIX Timestamp";
3223
+ } | {
3224
+ type: "Age";
3225
+ params?: {
3226
+ variant: "short" | "full";
3227
+ };
3228
+ } | {
3229
+ type: "Markdown" | "MarkdownPopup";
3230
+ } | {
3231
+ type: "DoclingDocument";
3232
+ } | {
3233
+ type: "HTML";
3234
+ params: {
3235
+ noSanitize?: boolean;
3236
+ allowedHTMLTags?: ("img" | "video" | "audio" | "svg" | "path")[];
3237
+ };
3238
+ } | {
3239
+ type: "Media";
3240
+ params: {
3241
+ contentType?: {
3242
+ mode: "Auto";
3243
+ } | {
3244
+ mode: "Fixed";
3245
+ fixedContentType: ("image" | "video" | "audio");
3246
+ } | {
3247
+ mode: "From column";
3248
+ contentTypeColumnName: string;
3249
+ } | {
3250
+ mode: "From URL Extension";
3251
+ };
3252
+ titleColumn?: string;
3253
+ };
3254
+ };
3255
+ style?: {
3256
+ type: "Conditional";
3257
+ conditions: ({
3258
+ operator: "contains" | "=" | ">" | ">=" | "<" | "<=" | "!=";
3259
+ condition: any;
3260
+ textColor?: string;
3261
+ chipColor?: string;
3262
+ cellColor?: string;
3263
+ borderColor?: string;
3264
+ } | {
3265
+ operator: "in" | "not in";
3266
+ condition: any[];
3267
+ textColor?: string;
3268
+ chipColor?: string;
3269
+ cellColor?: string;
3270
+ borderColor?: string;
3271
+ })[];
3272
+ defaultStyle?: {
3273
+ textColor?: string;
3274
+ chipColor?: string;
3275
+ cellColor?: string;
3276
+ borderColor?: string;
3277
+ };
3278
+ } | {
3279
+ type: "Scale";
3280
+ textColor: string;
3281
+ minColor: string;
3282
+ maxColor: string;
3283
+ } | {
3284
+ type: "Barchart";
3285
+ barColor: string;
3286
+ textColor: string;
3287
+ };
3288
+ }>>;
3289
+ card?: {
3290
+ avatarColumn?: string;
3291
+ headerColumn?: string;
3292
+ subHeaderColumn?: string;
3293
+ visibleColumns?: (string | {
3294
+ column: string;
3295
+ hideLabel?: boolean;
3296
+ })[];
3297
+ };
3298
+ }>>) | undefined;
3299
+ type: "Standard" | "Connection URI";
3300
+ url_path?: null | string | undefined;
3301
+ user_id?: null | string | undefined;
3302
+ web_app_directory?: null | string | undefined;
3303
+ web_app_templated?: null | boolean | undefined;
3304
+ }>[]>;
3305
+ } & {
3306
+ unrestrictedDbAccess: true;
3307
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3308
+ readonly disconnect: {
3309
+ input?: {
3310
+ conId: "string";
3311
+ } | undefined;
3312
+ description?: string;
3313
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3314
+ conId: "string";
3315
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<boolean>;
3316
+ } & {
3317
+ unrestrictedDbAccess?: undefined;
3318
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3319
+ readonly createWebAppFromTemplate: {
3320
+ input?: {
3321
+ connectionId: "string";
3322
+ clean: {
3323
+ type: "boolean";
3324
+ optional: true;
3325
+ };
3326
+ } | undefined;
3327
+ description?: string;
3328
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3329
+ connectionId: "string";
3330
+ clean: {
3331
+ type: "boolean";
3332
+ optional: true;
3333
+ };
3334
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string>;
3335
+ } & {
3336
+ unrestrictedDbAccess: true;
3337
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3338
+ readonly buildWebApp: {
3339
+ input?: {
3340
+ connectionId: "string";
3341
+ clean: {
3342
+ type: "boolean";
3343
+ optional: true;
3344
+ };
3345
+ } | undefined;
3346
+ description?: string;
3347
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3348
+ connectionId: "string";
3349
+ clean: {
3350
+ type: "boolean";
3351
+ optional: true;
3352
+ };
3353
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<import("../McpHub/DockerSandbox/executeDockerCommand").ExecutionResult>;
3354
+ } & {
3355
+ unrestrictedDbAccess?: undefined;
3356
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3357
+ readonly testWebApp: {
3358
+ input?: {
3359
+ connectionId: "string";
3360
+ } | undefined;
3361
+ description?: string;
3362
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3363
+ connectionId: "string";
3364
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<import("../McpHub/DockerSandbox/executeDockerCommand").ExecutionResult>;
3365
+ } & {
3366
+ unrestrictedDbAccess?: undefined;
3367
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3368
+ readonly writeWebAppFiles: {
3369
+ input?: {
3370
+ connectionId: "string";
3371
+ bypassAllowList: {
3372
+ type: "boolean";
3373
+ optional: true;
3374
+ };
3375
+ files: {
3376
+ record: {
3377
+ values: "string";
3378
+ };
3379
+ };
3380
+ } | undefined;
3381
+ description?: string;
3382
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3383
+ connectionId: "string";
3384
+ bypassAllowList: {
3385
+ type: "boolean";
3386
+ optional: true;
3387
+ };
3388
+ files: {
3389
+ record: {
3390
+ values: "string";
3391
+ };
3392
+ };
3393
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<boolean>;
3394
+ } & {
3395
+ unrestrictedDbAccess: true;
3396
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3397
+ readonly getWebAppComponents: {
3398
+ input?: {
3399
+ connectionId: "string";
3400
+ } | undefined;
3401
+ description?: string;
3402
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3403
+ connectionId: "string";
3404
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
3405
+ components: {
3406
+ filePath: string;
3407
+ name: string;
3408
+ propsTypeString: string | undefined;
3409
+ }[];
3410
+ renderTree: {
3411
+ componentName: string;
3412
+ outputTree: {
3413
+ name: string;
3414
+ children: any[];
3415
+ condition?: string;
3416
+ outputTree?: any[];
3417
+ }[];
3418
+ }[];
3419
+ }>;
3420
+ } & {
3421
+ unrestrictedDbAccess?: undefined;
3422
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3423
+ readonly getWebAppFileList: {
3424
+ input?: {
3425
+ connectionId: "string";
3426
+ } | undefined;
3427
+ description?: string;
3428
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3429
+ connectionId: "string";
3430
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string[]>;
3431
+ } & {
3432
+ unrestrictedDbAccess?: undefined;
3433
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3434
+ readonly readFile: {
3435
+ input?: {
3436
+ filePath: "string";
3437
+ } | undefined;
3438
+ description?: string;
3439
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3440
+ filePath: "string";
3441
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string>;
3442
+ } & {
3443
+ unrestrictedDbAccess?: undefined;
3444
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3445
+ readonly saveFile: {
3446
+ input?: {
3447
+ filePath: "string";
3448
+ content: "string";
3449
+ } | undefined;
3450
+ description?: string;
3451
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3452
+ filePath: "string";
3453
+ content: "string";
3454
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<boolean>;
3455
+ } & {
3456
+ unrestrictedDbAccess?: undefined;
3457
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3458
+ readonly getWebAppFile: {
3459
+ input?: {
3460
+ connectionId: "string";
3461
+ relativePath: "string";
3462
+ } | undefined;
3463
+ description?: string;
3464
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3465
+ connectionId: "string";
3466
+ relativePath: "string";
3467
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string>;
3468
+ } & {
3469
+ unrestrictedDbAccess?: undefined;
3470
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3471
+ readonly saveWebAppFile: {
3472
+ input?: {
3473
+ connectionId: "string";
3474
+ fileName: "string";
3475
+ content: "string";
3476
+ } | undefined;
3477
+ description?: string;
3478
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3479
+ connectionId: "string";
3480
+ fileName: "string";
3481
+ content: "string";
3482
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<boolean>;
3483
+ } & {
3484
+ unrestrictedDbAccess?: undefined;
3485
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3486
+ };
3487
+ };
3488
+ normalUser: {
3489
+ readonly userFilter: {};
3490
+ readonly functions: {
3491
+ readonly approveToolUse: {
3492
+ input?: {
3493
+ id: "integer";
3494
+ response: {
3495
+ enum: readonly ["approve", "deny", "auto-approve"];
3496
+ };
3497
+ schema: "string";
3498
+ } | undefined;
3499
+ description?: string;
3500
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3501
+ id: "integer";
3502
+ response: {
3503
+ enum: readonly ["approve", "deny", "auto-approve"];
3504
+ };
3505
+ schema: "string";
3506
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
3507
+ } & {
3508
+ unrestrictedDbAccess: true;
3509
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3510
+ readonly askLLM: {
3511
+ input?: {
3512
+ connectionId: "string";
3513
+ schema: "string";
3514
+ chatId: "integer";
3515
+ type: {
3516
+ enum: readonly ["new-message", "tool-use-result", "tool-use-result-confirmation"];
3517
+ };
3518
+ userMessage: {
3519
+ arrayOf: {
3520
+ oneOfType: [{
3521
+ readonly type: {
3522
+ readonly enum: readonly ["text"];
3523
+ };
3524
+ readonly text: "string";
3525
+ readonly reasoning: {
3526
+ readonly type: "string";
3527
+ readonly optional: true;
3528
+ readonly description: "Internal reasoning message used by the model to explain its thought process";
3529
+ };
3530
+ }, {
3531
+ readonly type: {
3532
+ readonly enum: readonly ["text-document"];
3533
+ };
3534
+ readonly fileName: "string";
3535
+ readonly mimeType: {
3536
+ readonly enum: readonly ["text/markdown", "text/plain"];
3537
+ };
3538
+ readonly text: "string";
3539
+ }, {
3540
+ readonly type: {
3541
+ readonly enum: readonly ["image", "audio", "video", "application", "text"];
3542
+ };
3543
+ readonly source: {
3544
+ readonly type: {
3545
+ readonly type: {
3546
+ readonly enum: readonly ["base64"];
3547
+ };
3548
+ readonly media_type: "string";
3549
+ readonly data: "string";
3550
+ };
3551
+ };
3552
+ }, {
3553
+ readonly type: {
3554
+ readonly enum: readonly ["tool_use"];
3555
+ };
3556
+ readonly id: "string";
3557
+ readonly name: "string";
3558
+ readonly input: {
3559
+ readonly record: {
3560
+ readonly values: "unknown";
3561
+ };
3562
+ readonly optional: true;
3563
+ };
3564
+ }, {
3565
+ readonly type: {
3566
+ readonly enum: readonly ["tool_result"];
3567
+ };
3568
+ readonly tool_use_id: "string";
3569
+ readonly tool_name: {
3570
+ readonly type: "string";
3571
+ };
3572
+ readonly content: import("prostgles-types").JSONB.BaseOptions & {
3573
+ type?: undefined;
3574
+ arrayOf?: undefined;
3575
+ arrayOfType?: undefined;
3576
+ allowedValues?: undefined;
3577
+ mimeTypes?: undefined;
3578
+ enum?: undefined;
3579
+ tuple?: undefined;
3580
+ record?: undefined;
3581
+ lookup?: undefined;
3582
+ } & {
3583
+ oneOf: readonly import("prostgles-types").JSONB.FieldType[];
3584
+ oneOfType?: undefined;
3585
+ };
3586
+ readonly is_error: {
3587
+ readonly optional: true;
3588
+ readonly type: "boolean";
3589
+ };
3590
+ }];
3591
+ };
3592
+ };
3593
+ } | undefined;
3594
+ description?: string;
3595
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3596
+ connectionId: "string";
3597
+ schema: "string";
3598
+ chatId: "integer";
3599
+ type: {
3600
+ enum: readonly ["new-message", "tool-use-result", "tool-use-result-confirmation"];
3601
+ };
3602
+ userMessage: {
3603
+ arrayOf: {
3604
+ oneOfType: [{
3605
+ readonly type: {
3606
+ readonly enum: readonly ["text"];
3607
+ };
3608
+ readonly text: "string";
3609
+ readonly reasoning: {
3610
+ readonly type: "string";
3611
+ readonly optional: true;
3612
+ readonly description: "Internal reasoning message used by the model to explain its thought process";
3613
+ };
3614
+ }, {
3615
+ readonly type: {
3616
+ readonly enum: readonly ["text-document"];
3617
+ };
3618
+ readonly fileName: "string";
3619
+ readonly mimeType: {
3620
+ readonly enum: readonly ["text/markdown", "text/plain"];
3621
+ };
3622
+ readonly text: "string";
3623
+ }, {
3624
+ readonly type: {
3625
+ readonly enum: readonly ["image", "audio", "video", "application", "text"];
3626
+ };
3627
+ readonly source: {
3628
+ readonly type: {
3629
+ readonly type: {
3630
+ readonly enum: readonly ["base64"];
3631
+ };
3632
+ readonly media_type: "string";
3633
+ readonly data: "string";
3634
+ };
3635
+ };
3636
+ }, {
3637
+ readonly type: {
3638
+ readonly enum: readonly ["tool_use"];
3639
+ };
3640
+ readonly id: "string";
3641
+ readonly name: "string";
3642
+ readonly input: {
3643
+ readonly record: {
3644
+ readonly values: "unknown";
3645
+ };
3646
+ readonly optional: true;
3647
+ };
3648
+ }, {
3649
+ readonly type: {
3650
+ readonly enum: readonly ["tool_result"];
3651
+ };
3652
+ readonly tool_use_id: "string";
3653
+ readonly tool_name: {
3654
+ readonly type: "string";
3655
+ };
3656
+ readonly content: import("prostgles-types").JSONB.BaseOptions & {
3657
+ type?: undefined;
3658
+ arrayOf?: undefined;
3659
+ arrayOfType?: undefined;
3660
+ allowedValues?: undefined;
3661
+ mimeTypes?: undefined;
3662
+ enum?: undefined;
3663
+ tuple?: undefined;
3664
+ record?: undefined;
3665
+ lookup?: undefined;
3666
+ } & {
3667
+ oneOf: readonly import("prostgles-types").JSONB.FieldType[];
3668
+ oneOfType?: undefined;
3669
+ };
3670
+ readonly is_error: {
3671
+ readonly optional: true;
3672
+ readonly type: "boolean";
3673
+ };
3674
+ }];
3675
+ };
3676
+ };
3677
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
3678
+ } & {
3679
+ unrestrictedDbAccess: true;
3680
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3681
+ readonly getFullPrompt: {
3682
+ input?: {
3683
+ prompt: "string";
3684
+ schema: "string";
3685
+ connectionId: "string";
3686
+ } | undefined;
3687
+ description?: string;
3688
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3689
+ prompt: "string";
3690
+ schema: "string";
3691
+ connectionId: "string";
3692
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string>;
3693
+ } & {
3694
+ unrestrictedDbAccess?: undefined;
3695
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3696
+ readonly stopAskLLM: {
3697
+ input?: {
3698
+ chatId: "integer";
3699
+ } | undefined;
3700
+ description?: string;
3701
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3702
+ chatId: "integer";
3703
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
3704
+ } & {
3705
+ unrestrictedDbAccess: true;
3706
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3707
+ readonly sendFeedback: {
3708
+ input?: {
3709
+ details: "string";
3710
+ email: {
3711
+ type: "string";
3712
+ optional: true;
3713
+ };
3714
+ } | undefined;
3715
+ description?: string;
3716
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3717
+ details: "string";
3718
+ email: {
3719
+ type: "string";
3720
+ optional: true;
3721
+ };
3722
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
3723
+ } & {
3724
+ unrestrictedDbAccess?: undefined;
3725
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3726
+ readonly prostglesSignup: {
3727
+ input?: {
3728
+ email: "string";
3729
+ code: "string";
3730
+ } | undefined;
3731
+ description?: string;
3732
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3733
+ email: "string";
3734
+ code: "string";
3735
+ }>, context: import("prostgles-server").RestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
3736
+ error: unknown;
3737
+ hasError: boolean;
3738
+ token?: undefined;
3739
+ host?: undefined;
3740
+ } | {
3741
+ token: string;
3742
+ host: string;
3743
+ readonly error?: undefined;
3744
+ hasError?: undefined;
3745
+ }>;
3746
+ } & {
3747
+ unrestrictedDbAccess?: undefined;
3748
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3749
+ readonly generateToken: {
3750
+ input?: {
3751
+ days: "integer";
3752
+ } | undefined;
3753
+ description?: string;
3754
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3755
+ days: "integer";
3756
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string>;
3757
+ } & {
3758
+ unrestrictedDbAccess: true;
3759
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3760
+ readonly create2FA: {
3761
+ input?: Record<string, import("prostgles-types").JSONB.FieldType> | undefined;
3762
+ description?: string;
3763
+ run: (args: import("prostgles-types").JSONB.GetObjectType<Record<string, import("prostgles-types").JSONB.FieldType>>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<{
3764
+ url: string;
3765
+ secret: string;
3766
+ recoveryCode: string;
3767
+ }>;
3768
+ } & {
3769
+ unrestrictedDbAccess: true;
3770
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3771
+ readonly enable2FA: {
3772
+ input?: {
3773
+ token: "string";
3774
+ } | undefined;
3775
+ description?: string;
3776
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3777
+ token: "string";
3778
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<string>;
3779
+ } & {
3780
+ unrestrictedDbAccess: true;
3781
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3782
+ readonly disable2FA: {
3783
+ input?: Record<string, import("prostgles-types").JSONB.FieldType> | undefined;
3784
+ description?: string;
3785
+ run: (args: import("prostgles-types").JSONB.GetObjectType<Record<string, import("prostgles-types").JSONB.FieldType>>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void[] | undefined>;
3786
+ } & {
3787
+ unrestrictedDbAccess: true;
3788
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3789
+ readonly changePassword: {
3790
+ input?: {
3791
+ oldPassword: "string";
3792
+ newPassword: "string";
3793
+ } | undefined;
3794
+ description?: string;
3795
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3796
+ oldPassword: "string";
3797
+ newPassword: "string";
3798
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<void>;
3799
+ } & {
3800
+ unrestrictedDbAccess: true;
3801
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3802
+ readonly getLLMAllowedChatTools: {
3803
+ input?: {
3804
+ chatId: "integer";
3805
+ } | undefined;
3806
+ description?: string;
3807
+ run: (args: import("prostgles-types").JSONB.GetObjectType<{
3808
+ chatId: "integer";
3809
+ }>, context: import("prostgles-server").UnrestrictedFunctionContext<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>) => import("prostgles-types").MaybePromise<import("../../../common/mcpUtils").AllowedChatTool[] | undefined>;
3810
+ } & {
3811
+ unrestrictedDbAccess: true;
3812
+ } & import("prostgles-server").ServerFunctionContextMarker<DBGeneratedSchema, import("../authConfig/sessionUtils").SUser>;
3813
+ };
3814
+ };
3815
+ };
3816
+ export declare const runConnectionQuery: <T extends AnyObject = AnyObject>(connId: string, query: string, args?: AnyObject | any[], asAdminOpts?: {
3817
+ dbs: DBS;
3818
+ },
3819
+ /**
3820
+ * The database might have been deleted. Try and find one that is available
3821
+ */
3822
+ findFirstAvailableInServer?: boolean) => Promise<T[]>;
3823
+ //# sourceMappingURL=stateServerFunctions.d.ts.map