@prostgles/app 2.3.6-dev.1792145241 → 2.3.6-dev.1792420851

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 (243) hide show
  1. package/client/build/js/733.bundle.js +1 -1
  2. package/client/build/js/main.bundle.js +2 -2
  3. package/dist/common/ColumnConfig/ColumnConfig.d.ts +4 -0
  4. package/dist/common/ColumnConfig/ColumnConfig.d.ts.map +1 -1
  5. package/dist/common/ColumnConfig/columnConfigSchema.d.ts +1723 -0
  6. package/dist/common/ColumnConfig/columnConfigSchema.d.ts.map +1 -0
  7. package/dist/common/ColumnConfig/columnConfigSchema.js +217 -0
  8. package/dist/common/ColumnConfig/columnConfigSchema.js.map +1 -0
  9. package/dist/common/DBGeneratedSchema.d.ts +502 -19
  10. package/dist/common/DBGeneratedSchema.d.ts.map +1 -1
  11. package/dist/common/DashboardTypes.d.ts +2 -0
  12. package/dist/common/DashboardTypes.d.ts.map +1 -1
  13. package/dist/common/Testing.d.ts +3 -0
  14. package/dist/common/Testing.js +3 -0
  15. package/dist/common/llmUtils.d.ts.map +1 -1
  16. package/dist/common/managedTableSchema.d.ts +5 -11
  17. package/dist/common/managedTableSchema.d.ts.map +1 -1
  18. package/dist/common/managedTableSchema.js.map +1 -1
  19. package/dist/common/mcp/tableOptionsJsonbSchema.d.ts +1720 -151
  20. package/dist/common/mcp/tableOptionsJsonbSchema.d.ts.map +1 -1
  21. package/dist/common/mcp/tableOptionsJsonbSchema.js +3 -73
  22. package/dist/common/mcp/tableOptionsJsonbSchema.js.map +1 -1
  23. package/dist/common/mcp/ui.mcp.schema.d.ts +1720 -151
  24. package/dist/common/mcp/ui.mcp.schema.d.ts.map +1 -1
  25. package/dist/common/prostglesApiTypes.d.ts +1 -1
  26. package/dist/common/prostglesApiTypes.d.ts.map +1 -1
  27. package/dist/common/prostglesApiTypes.js +17 -0
  28. package/dist/common/prostglesApiTypes.js.map +1 -1
  29. package/dist/common/prostglesMcp.d.ts +1720 -151
  30. package/dist/common/prostglesMcp.d.ts.map +1 -1
  31. package/dist/common/publishUtils.js +1 -1
  32. package/dist/common/publishUtils.js.map +1 -1
  33. package/dist/common/resolveActionFunction.d.ts +1 -1
  34. package/dist/common/resolveActionFunction.d.ts.map +1 -1
  35. package/dist/common/resolveActionFunction.js +14 -3
  36. package/dist/common/resolveActionFunction.js.map +1 -1
  37. package/dist/common/userSync.d.ts.map +1 -1
  38. package/dist/common/userSync.js +26 -6
  39. package/dist/common/userSync.js.map +1 -1
  40. package/dist/common/utils.d.ts +1 -1
  41. package/dist/common/utils.d.ts.map +1 -1
  42. package/dist/common/utils.js +1 -0
  43. package/dist/common/utils.js.map +1 -1
  44. package/dist/server/package.json +4 -4
  45. package/dist/server/src/BackupManager/BackupManager.d.ts +476 -2
  46. package/dist/server/src/BackupManager/BackupManager.d.ts.map +1 -1
  47. package/dist/server/src/BackupManager/utils.d.ts.map +1 -1
  48. package/dist/server/src/ConnectionManager/ConnectionManager.d.ts +478 -4
  49. package/dist/server/src/ConnectionManager/ConnectionManager.d.ts.map +1 -1
  50. package/dist/server/src/ConnectionManager/ConnectionManager.js +8 -1
  51. package/dist/server/src/ConnectionManager/ConnectionManager.js.map +1 -1
  52. package/dist/server/src/ConnectionManager/getAuditActorTableConfig.d.ts.map +1 -1
  53. package/dist/server/src/ConnectionManager/getAuditActorTableConfig.js +9 -4
  54. package/dist/server/src/ConnectionManager/getAuditActorTableConfig.js.map +1 -1
  55. package/dist/server/src/ConnectionManager/getConnectionAuth.d.ts +491 -1
  56. package/dist/server/src/ConnectionManager/getConnectionAuth.d.ts.map +1 -1
  57. package/dist/server/src/ConnectionManager/getConnectionAuth.js +24 -16
  58. package/dist/server/src/ConnectionManager/getConnectionAuth.js.map +1 -1
  59. package/dist/server/src/ConnectionManager/getConnectionUser.d.ts +10 -0
  60. package/dist/server/src/ConnectionManager/getConnectionUser.d.ts.map +1 -0
  61. package/dist/server/src/ConnectionManager/getConnectionUser.js +22 -0
  62. package/dist/server/src/ConnectionManager/getConnectionUser.js.map +1 -0
  63. package/dist/server/src/ConnectionManager/getHotReloadConfigs.d.ts +491 -2
  64. package/dist/server/src/ConnectionManager/getHotReloadConfigs.d.ts.map +1 -1
  65. package/dist/server/src/ConnectionManager/initConnectionManager.d.ts.map +1 -1
  66. package/dist/server/src/ConnectionManager/initConnectionManager.js +3 -0
  67. package/dist/server/src/ConnectionManager/initConnectionManager.js.map +1 -1
  68. package/dist/server/src/ConnectionManager/modifyClientSchema.d.ts +2 -2
  69. package/dist/server/src/ConnectionManager/modifyClientSchema.d.ts.map +1 -1
  70. package/dist/server/src/ConnectionManager/modifyClientSchema.js +81 -21
  71. package/dist/server/src/ConnectionManager/modifyClientSchema.js.map +1 -1
  72. package/dist/server/src/ConnectionManager/setSyncUserSub.d.ts.map +1 -1
  73. package/dist/server/src/ConnectionManager/setSyncUserSub.js +12 -3
  74. package/dist/server/src/ConnectionManager/setSyncUserSub.js.map +1 -1
  75. package/dist/server/src/ConnectionManager/syncConnectionUsers.d.ts.map +1 -1
  76. package/dist/server/src/ConnectionManager/syncConnectionUsers.js +22 -13
  77. package/dist/server/src/ConnectionManager/syncConnectionUsers.js.map +1 -1
  78. package/dist/server/src/ConnectionManager/validateSchemaConfigActions.d.ts.map +1 -1
  79. package/dist/server/src/ConnectionManager/validateSchemaConfigActions.js +9 -3
  80. package/dist/server/src/ConnectionManager/validateSchemaConfigActions.js.map +1 -1
  81. package/dist/server/src/Logger.d.ts.map +1 -1
  82. package/dist/server/src/Logger.js +1 -2
  83. package/dist/server/src/Logger.js.map +1 -1
  84. package/dist/server/src/McpHub/AnthropicMcpHub/McpOAuth/connectToRemoteMCPServer.d.ts.map +1 -1
  85. package/dist/server/src/McpHub/AnthropicMcpHub/McpOAuth/connectToRemoteMCPServer.js +2 -3
  86. package/dist/server/src/McpHub/AnthropicMcpHub/McpOAuth/connectToRemoteMCPServer.js.map +1 -1
  87. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateAgenticWorkflowDefinitions.d.ts.map +1 -1
  88. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/createWorkflowExecutionHandlers.d.ts.map +1 -1
  89. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/getAgentConfigWithDefaults.d.ts.map +1 -1
  90. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/setupOrchestrationToolPermissions.d.ts.map +1 -1
  91. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Ui.mcp.d.ts +1720 -151
  92. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Ui.mcp.d.ts.map +1 -1
  93. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/getWebDevChatAndConnection.d.ts +476 -2
  94. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/getWebDevChatAndConnection.d.ts.map +1 -1
  95. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers.d.ts +4593 -1455
  96. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers.d.ts.map +1 -1
  97. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMcpHub.d.ts +4651 -1513
  98. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMcpHub.d.ts.map +1 -1
  99. package/dist/server/src/ServiceManager/ServiceManager.spec.d.ts.map +1 -1
  100. package/dist/server/src/ServiceManager/ServiceManager.spec.js +50 -2
  101. package/dist/server/src/ServiceManager/ServiceManager.spec.js.map +1 -1
  102. package/dist/server/src/ServiceManager/startService.d.ts.map +1 -1
  103. package/dist/server/src/ServiceManager/startService.js +15 -7
  104. package/dist/server/src/ServiceManager/startService.js.map +1 -1
  105. package/dist/server/src/authConfig/emailProvider/onEmailRegistration.d.ts.map +1 -1
  106. package/dist/server/src/authConfig/emailProvider/onEmailRegistration.js +1 -0
  107. package/dist/server/src/authConfig/emailProvider/onEmailRegistration.js.map +1 -1
  108. package/dist/server/src/authConfig/getAuth.d.ts +6 -8
  109. package/dist/server/src/authConfig/getAuth.d.ts.map +1 -1
  110. package/dist/server/src/authConfig/getAuth.js +7 -12
  111. package/dist/server/src/authConfig/getAuth.js.map +1 -1
  112. package/dist/server/src/authConfig/getLogin.d.ts +1 -1
  113. package/dist/server/src/authConfig/getLogin.d.ts.map +1 -1
  114. package/dist/server/src/authConfig/getLogin.js +4 -1
  115. package/dist/server/src/authConfig/getLogin.js.map +1 -1
  116. package/dist/server/src/authConfig/getUser.d.ts.map +1 -1
  117. package/dist/server/src/authConfig/getUser.js +2 -2
  118. package/dist/server/src/authConfig/getUser.js.map +1 -1
  119. package/dist/server/src/authConfig/sessionUtils.d.ts +5 -3
  120. package/dist/server/src/authConfig/sessionUtils.d.ts.map +1 -1
  121. package/dist/server/src/authConfig/sessionUtils.js.map +1 -1
  122. package/dist/server/src/authConfig/startRateLimitedLoginAttempt.d.ts.map +1 -1
  123. package/dist/server/src/authConfig/startRateLimitedLoginAttempt.js +3 -1
  124. package/dist/server/src/authConfig/startRateLimitedLoginAttempt.js.map +1 -1
  125. package/dist/server/src/authConfig/subscribeToAuthSetupChanges.d.ts.map +1 -1
  126. package/dist/server/src/authConfig/subscribeToSessionAccessChanges.d.ts +3 -0
  127. package/dist/server/src/authConfig/subscribeToSessionAccessChanges.d.ts.map +1 -0
  128. package/dist/server/src/authConfig/subscribeToSessionAccessChanges.js +34 -0
  129. package/dist/server/src/authConfig/subscribeToSessionAccessChanges.js.map +1 -0
  130. package/dist/server/src/cli/cliE2ETemplate.js +1 -1
  131. package/dist/server/src/cli/cliTemplateFiles.js +1 -0
  132. package/dist/server/src/cli/cliTemplateFiles.js.map +1 -1
  133. package/dist/server/src/createHttpAndIOServers/createHttpServer.d.ts.map +1 -1
  134. package/dist/server/src/createHttpAndIOServers/createHttpServer.js +5 -1
  135. package/dist/server/src/createHttpAndIOServers/createHttpServer.js.map +1 -1
  136. package/dist/server/src/createHttpAndIOServers/setHttpAppSecurity.d.ts.map +1 -1
  137. package/dist/server/src/createHttpAndIOServers/setHttpAppSecurity.js +4 -3
  138. package/dist/server/src/createHttpAndIOServers/setHttpAppSecurity.js.map +1 -1
  139. package/dist/server/src/init/initUsers.d.ts.map +1 -1
  140. package/dist/server/src/init/startProstgles.d.ts.map +1 -1
  141. package/dist/server/src/init/startProstgles.js +1 -4
  142. package/dist/server/src/init/startProstgles.js.map +1 -1
  143. package/dist/server/src/publish/getPublishLLM.d.ts.map +1 -1
  144. package/dist/server/src/publish/getPublishLlmChats.d.ts.map +1 -1
  145. package/dist/server/src/publish/publish.d.ts.map +1 -1
  146. package/dist/server/src/publish/publish.js +105 -24
  147. package/dist/server/src/publish/publish.js.map +1 -1
  148. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.d.ts +975 -4
  149. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.d.ts.map +1 -1
  150. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.js +5 -0
  151. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.js.map +1 -1
  152. package/dist/server/src/serverFunctions/adminServerFunctions/webApp/getTemplatedWebAppConnection.d.ts +476 -2
  153. package/dist/server/src/serverFunctions/adminServerFunctions/webApp/getTemplatedWebAppConnection.d.ts.map +1 -1
  154. package/dist/server/src/serverFunctions/applySampleSchema.d.ts +476 -2
  155. package/dist/server/src/serverFunctions/applySampleSchema.d.ts.map +1 -1
  156. package/dist/server/src/serverFunctions/askLLM/askLLM.d.ts.map +1 -1
  157. package/dist/server/src/serverFunctions/askLLM/getLLMRequestBody.d.ts.map +1 -1
  158. package/dist/server/src/serverFunctions/askLLM/getLLMRequestBody.js +8 -2
  159. package/dist/server/src/serverFunctions/askLLM/getLLMRequestBody.js.map +1 -1
  160. package/dist/server/src/serverFunctions/askLLM/getPastMessages.d.ts.map +1 -1
  161. package/dist/server/src/serverFunctions/askLLM/getValidatedAskLLMChatOptions.d.ts.map +1 -1
  162. package/dist/server/src/serverFunctions/askLLM/handleToolUseResultConfirmation.d.ts.map +1 -1
  163. package/dist/server/src/serverFunctions/askLLM/prostglesLLMTools/getMCPServerTools.d.ts.map +1 -1
  164. package/dist/server/src/serverFunctions/askLLM/prostglesLLMTools/getMcpToolsWithDynamicDescription.d.ts.map +1 -1
  165. package/dist/server/src/serverFunctions/askLLM/refreshModels.d.ts +1 -1
  166. package/dist/server/src/serverFunctions/askLLM/refreshModels.d.ts.map +1 -1
  167. package/dist/server/src/serverFunctions/askLLM/refreshModels.js +12 -27
  168. package/dist/server/src/serverFunctions/askLLM/refreshModels.js.map +1 -1
  169. package/dist/server/src/serverFunctions/deleteConnection.d.ts +476 -2
  170. package/dist/server/src/serverFunctions/deleteConnection.d.ts.map +1 -1
  171. package/dist/server/src/serverFunctions/getConnectionAndDatabaseConfig.d.ts +476 -2
  172. package/dist/server/src/serverFunctions/getConnectionAndDatabaseConfig.d.ts.map +1 -1
  173. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedTable.d.ts +6 -5
  174. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedTable.d.ts.map +1 -1
  175. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedTable.js +1 -0
  176. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedTable.js.map +1 -1
  177. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedWorkspaces.d.ts.map +1 -1
  178. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedWorkspacesFunction.d.ts.map +1 -1
  179. package/dist/server/src/serverFunctions/stateServerFunctions.d.ts +975 -27
  180. package/dist/server/src/serverFunctions/stateServerFunctions.d.ts.map +1 -1
  181. package/dist/server/src/serverFunctions/stateServerFunctions.js +8 -0
  182. package/dist/server/src/serverFunctions/stateServerFunctions.js.map +1 -1
  183. package/dist/server/src/serverFunctions/userServerFunctions/userServerFunctions.d.ts +0 -23
  184. package/dist/server/src/serverFunctions/userServerFunctions/userServerFunctions.d.ts.map +1 -1
  185. package/dist/server/src/serverFunctions/userServerFunctions/userServerFunctions.js +0 -5
  186. package/dist/server/src/serverFunctions/userServerFunctions/userServerFunctions.js.map +1 -1
  187. package/dist/server/src/tableConfig/tableConfigConnections.d.ts.map +1 -1
  188. package/dist/server/src/tableConfig/tableConfigConnections.js +9 -0
  189. package/dist/server/src/tableConfig/tableConfigConnections.js.map +1 -1
  190. package/dist/server/src/tableConfig/tableConfigMigrations.d.ts.map +1 -1
  191. package/dist/server/src/tableConfig/tableConfigMigrations.js.map +1 -1
  192. package/dist/server/src/tableHooks/connection_members.tableHooks.d.ts +21 -0
  193. package/dist/server/src/tableHooks/connection_members.tableHooks.d.ts.map +1 -0
  194. package/dist/server/src/tableHooks/connection_members.tableHooks.js +35 -0
  195. package/dist/server/src/tableHooks/connection_members.tableHooks.js.map +1 -0
  196. package/dist/server/src/tableHooks/llm_credentials.tableHooks.d.ts.map +1 -1
  197. package/dist/server/src/tableHooks/tableHooks.d.ts +1553 -101
  198. package/dist/server/src/tableHooks/tableHooks.d.ts.map +1 -1
  199. package/dist/server/src/tableHooks/tableHooks.js +2 -0
  200. package/dist/server/src/tableHooks/tableHooks.js.map +1 -1
  201. package/dist/server/src/tableHooks/users.tableHooks.d.ts +482 -3
  202. package/dist/server/src/tableHooks/users.tableHooks.d.ts.map +1 -1
  203. package/dist/server/src/testing/cleanupTestServices.d.ts +2 -0
  204. package/dist/server/src/testing/cleanupTestServices.d.ts.map +1 -0
  205. package/dist/server/src/testing/cleanupTestServices.js +48 -0
  206. package/dist/server/src/testing/cleanupTestServices.js.map +1 -0
  207. package/dist/server/src/testing/createTestDeployment.d.ts +13 -1
  208. package/dist/server/src/testing/createTestDeployment.d.ts.map +1 -1
  209. package/dist/server/src/testing/createTestDeployment.js +47 -3
  210. package/dist/server/src/testing/createTestDeployment.js.map +1 -1
  211. package/dist/server/src/upsertConnection.d.ts +476 -2
  212. package/dist/server/src/upsertConnection.d.ts.map +1 -1
  213. package/package.json +4 -4
  214. package/src/ServiceManager/services/speechToText/src/requirements.txt +2 -0
  215. package/dist/server/src/ConnectionManager/getInitiatedPostgresqlPIDs.d.ts +0 -2
  216. package/dist/server/src/ConnectionManager/getInitiatedPostgresqlPIDs.d.ts.map +0 -1
  217. package/dist/server/src/ConnectionManager/getInitiatedPostgresqlPIDs.js +0 -82
  218. package/dist/server/src/ConnectionManager/getInitiatedPostgresqlPIDs.js.map +0 -1
  219. package/dist/server/src/McpHub/DockerSandbox/getContainerLogs.d.ts +0 -2
  220. package/dist/server/src/McpHub/DockerSandbox/getContainerLogs.d.ts.map +0 -1
  221. package/dist/server/src/McpHub/DockerSandbox/getContainerLogs.js +0 -17
  222. package/dist/server/src/McpHub/DockerSandbox/getContainerLogs.js.map +0 -1
  223. package/dist/server/src/ServiceManager/services/documents/documents.service.types.d.ts +0 -39
  224. package/dist/server/src/ServiceManager/services/documents/documents.service.types.d.ts.map +0 -1
  225. package/dist/server/src/ServiceManager/services/documents/documents.service.types.js +0 -45
  226. package/dist/server/src/ServiceManager/services/documents/documents.service.types.js.map +0 -1
  227. package/dist/server/src/getPSQLQueries.d.ts +0 -183
  228. package/dist/server/src/getPSQLQueries.d.ts.map +0 -1
  229. package/dist/server/src/getPSQLQueries.js +0 -121
  230. package/dist/server/src/getPSQLQueries.js.map +0 -1
  231. package/dist/server/src/serverFunctions/adminServerFunctions/webApp/getReactComponents copy.d.ts +0 -10
  232. package/dist/server/src/serverFunctions/adminServerFunctions/webApp/getReactComponents copy.d.ts.map +0 -1
  233. package/dist/server/src/serverFunctions/adminServerFunctions/webApp/getReactComponents copy.js +0 -145
  234. package/dist/server/src/serverFunctions/adminServerFunctions/webApp/getReactComponents copy.js.map +0 -1
  235. package/dist/server/src/tableConfig/tableConfigWebApp.d.ts +0 -5
  236. package/dist/server/src/tableConfig/tableConfigWebApp.d.ts.map +0 -1
  237. package/dist/server/src/tableConfig/tableConfigWebApp.js +0 -19
  238. package/dist/server/src/tableConfig/tableConfigWebApp.js.map +0 -1
  239. package/sample_schemas/food_delivery/dist/connection.js +0 -1008
  240. package/sample_schemas/food_delivery/dist/databaseConfig.js +0 -116
  241. package/sample_schemas/food_delivery/dist/index.js +0 -17
  242. package/sample_schemas/food_delivery/dist/onMount.js +0 -132
  243. package/sample_schemas/food_delivery/dist/workspaceConfig.js +0 -56
@@ -740,7 +740,7 @@ export declare const tableHooks: {
740
740
  title?: null | string;
741
741
  ui_path?: null | {
742
742
  page: "/connection-config";
743
- section: "authentication" | "access_control" | "backups" | "table_config" | "details" | "status" | "methods" | "file_storage" | "API" | "webApp" | "security" | "config";
743
+ section: "members" | "authentication" | "access_control" | "backups" | "table_config" | "details" | "status" | "methods" | "file_storage" | "API" | "webApp" | "security" | "config";
744
744
  } | {
745
745
  page: "/server-settings";
746
746
  section: "security" | "auth" | "cloud" | "mcpServers" | "llmProviders" | "services";
@@ -756,7 +756,7 @@ export declare const tableHooks: {
756
756
  title?: null | string;
757
757
  ui_path?: null | {
758
758
  page: "/connection-config";
759
- section: "authentication" | "access_control" | "backups" | "table_config" | "details" | "status" | "methods" | "file_storage" | "API" | "webApp" | "security" | "config";
759
+ section: "members" | "authentication" | "access_control" | "backups" | "table_config" | "details" | "status" | "methods" | "file_storage" | "API" | "webApp" | "security" | "config";
760
760
  } | {
761
761
  page: "/server-settings";
762
762
  section: "security" | "auth" | "cloud" | "mcpServers" | "llmProviders" | "services";
@@ -933,6 +933,31 @@ export declare const tableHooks: {
933
933
  };
934
934
  uploaded?: null | string;
935
935
  }, DBGeneratedSchema, "backups">, DBGeneratedSchema> | undefined;
936
+ readonly connection_members: import("prostgles-server").TableHooksDefinition<Required<{
937
+ connection_id: string;
938
+ role?: "connection_admin" | "member";
939
+ user_id: string;
940
+ }>, import("prostgles-server").DBHandlerServer<DBGeneratedSchema>, undefined, import("prostgles-types").InsertDataWithNested<{
941
+ connection_id: string;
942
+ role?: "connection_admin" | "member";
943
+ user_id: string;
944
+ }, DBGeneratedSchema, "connection_members">, DBGeneratedSchema> | {
945
+ afterAll: {
946
+ commands: {
947
+ update: 1;
948
+ delete: 1;
949
+ };
950
+ changedFields: string[];
951
+ validate: ({ rows, command, dbx }: import("prostgles-server/dist/PublishParser/publishTypesAndUtils").ValidateRowsArgsCommon<Required<{
952
+ connection_id: string;
953
+ role?: "connection_admin" | "member";
954
+ user_id: string;
955
+ }>, import("prostgles-server").DBHandlerServer<DBGeneratedSchema>> & import("prostgles-server/dist/PublishParser/publishTypesAndUtils").TransactionCallbacks<import("prostgles-server").DBHandlerServer<DBGeneratedSchema>> & {
956
+ localParams: undefined | import("prostgles-server/dist/DboBuilder/DboBuilderTypes").LocalParams;
957
+ context: undefined;
958
+ }) => Promise<void>;
959
+ }[];
960
+ };
936
961
  readonly connections?: import("prostgles-server").TableHooksDefinition<Required<{
937
962
  config?: null | {
938
963
  enabled: boolean;
@@ -1314,12 +1339,170 @@ export declare const tableHooks: {
1314
1339
  titleColumn?: string;
1315
1340
  };
1316
1341
  };
1342
+ idx?: number;
1343
+ label?: string;
1344
+ show?: boolean;
1345
+ width?: number;
1346
+ format?: {
1347
+ type: "ActionColumns";
1348
+ params: {
1349
+ actions: ({
1350
+ columnName: string;
1351
+ } | {
1352
+ methodName: string;
1353
+ argName?: string;
1354
+ joinPath?: ({
1355
+ table: string;
1356
+ on: string | (Record<string, string>)[];
1357
+ params?: Record<string, unknown>;
1358
+ reversed?: boolean;
1359
+ })[];
1360
+ conditions?: ({
1361
+ filter: {
1362
+ $and: (Record<string, any>)[];
1363
+ } | {
1364
+ $or: (Record<string, any>)[];
1365
+ };
1366
+ value: {
1367
+ text?: string;
1368
+ icon?: string;
1369
+ variant?: "text" | "faded" | "filled" | "outline";
1370
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
1371
+ disabledInfo?: string;
1372
+ isLoading?: boolean;
1373
+ };
1374
+ })[];
1375
+ defaultValue?: {
1376
+ text?: string;
1377
+ icon?: string;
1378
+ variant?: "text" | "faded" | "filled" | "outline";
1379
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
1380
+ disabledInfo?: string;
1381
+ isLoading?: boolean;
1382
+ };
1383
+ })[];
1384
+ };
1385
+ } | {
1386
+ type: "Action";
1387
+ params: {
1388
+ methodName: string;
1389
+ argName?: string;
1390
+ joinPath?: ({
1391
+ table: string;
1392
+ on: string | (Record<string, string>)[];
1393
+ params?: Record<string, unknown>;
1394
+ reversed?: boolean;
1395
+ })[];
1396
+ conditions?: ({
1397
+ filter: {
1398
+ $and: (Record<string, any>)[];
1399
+ } | {
1400
+ $or: (Record<string, any>)[];
1401
+ };
1402
+ value: {
1403
+ text?: string;
1404
+ icon?: string;
1405
+ variant?: "text" | "faded" | "filled" | "outline";
1406
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
1407
+ disabledInfo?: string;
1408
+ isLoading?: boolean;
1409
+ };
1410
+ })[];
1411
+ defaultValue?: {
1412
+ text?: string;
1413
+ icon?: string;
1414
+ variant?: "text" | "faded" | "filled" | "outline";
1415
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
1416
+ disabledInfo?: string;
1417
+ isLoading?: boolean;
1418
+ };
1419
+ };
1420
+ } | {
1421
+ type: "NONE";
1422
+ } | {
1423
+ type: "URL";
1424
+ } | {
1425
+ type: "Email";
1426
+ } | {
1427
+ type: "Tel";
1428
+ } | {
1429
+ type: "QR Code";
1430
+ } | {
1431
+ type: "Currency";
1432
+ params: {
1433
+ mode: "Fixed";
1434
+ metricPrefix?: boolean;
1435
+ currencyCode: string;
1436
+ } | {
1437
+ mode: "From column";
1438
+ metricPrefix?: boolean;
1439
+ currencyCodeField: string;
1440
+ };
1441
+ } | {
1442
+ type: "Avatar";
1443
+ params?: {
1444
+ firstNameColumn?: string;
1445
+ lastNameColumn?: string;
1446
+ };
1447
+ } | {
1448
+ type: "Metric Prefix";
1449
+ } | {
1450
+ type: "UNIX Timestamp";
1451
+ } | {
1452
+ type: "Age";
1453
+ params?: {
1454
+ variant: "short" | "full";
1455
+ };
1456
+ } | {
1457
+ type: "Markdown" | "MarkdownPopup";
1458
+ } | {
1459
+ type: "JSON Diff" | "Text Diff";
1460
+ params: {
1461
+ oldColumn: string;
1462
+ newColumn: string;
1463
+ };
1464
+ } | {
1465
+ type: "DoclingDocument";
1466
+ } | {
1467
+ type: "Logs";
1468
+ } | {
1469
+ type: "HTML";
1470
+ params: {
1471
+ noSanitize?: boolean;
1472
+ allowedHTMLTags?: ("img" | "video" | "audio" | "svg" | "path")[];
1473
+ };
1474
+ } | {
1475
+ type: "Media";
1476
+ params: {
1477
+ contentType?: {
1478
+ mode: "Auto";
1479
+ } | {
1480
+ mode: "Fixed";
1481
+ fixedContentType: ("image" | "video" | "audio");
1482
+ } | {
1483
+ mode: "From column";
1484
+ contentTypeColumnName: string;
1485
+ } | {
1486
+ mode: "From URL Extension";
1487
+ };
1488
+ titleColumn?: string;
1489
+ };
1490
+ };
1491
+ display?: "drillable-records";
1317
1492
  style?: {
1318
- type: "None";
1493
+ type?: "None";
1319
1494
  fontWeight?: "normal" | "bold";
1495
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1496
+ } | {
1497
+ type: "Icons";
1498
+ size?: number;
1499
+ valueToIconMap: Record<string, string>;
1500
+ fontWeight?: "normal" | "bold";
1501
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1320
1502
  } | {
1321
1503
  type: "Fixed";
1322
1504
  fontWeight?: "normal" | "bold";
1505
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1323
1506
  textColor?: string;
1324
1507
  chipColor?: string;
1325
1508
  cellColor?: string;
@@ -1327,9 +1510,10 @@ export declare const tableHooks: {
1327
1510
  } | {
1328
1511
  type: "Conditional";
1329
1512
  fontWeight?: "normal" | "bold";
1513
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1330
1514
  column?: string;
1331
1515
  conditions: ({
1332
- operator: "contains" | "=" | ">" | ">=" | "<" | "<=" | "!=";
1516
+ operator: "contains" | "=" | ">" | ">=" | "<" | "<=" | "!=" | "not null" | "null";
1333
1517
  condition: any;
1334
1518
  textColor?: string;
1335
1519
  chipColor?: string;
@@ -1352,110 +1536,425 @@ export declare const tableHooks: {
1352
1536
  } | {
1353
1537
  type: "Scale";
1354
1538
  fontWeight?: "normal" | "bold";
1539
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1355
1540
  textColor: string;
1356
1541
  minColor: string;
1357
1542
  maxColor: string;
1358
1543
  } | {
1359
1544
  type: "Barchart";
1360
1545
  fontWeight?: "normal" | "bold";
1546
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1361
1547
  barColor: string;
1362
1548
  textColor: string;
1363
1549
  };
1364
- }>>;
1365
- card?: {
1366
- avatarColumn?: string;
1367
- headerColumn?: string;
1368
- subHeaderColumn?: string;
1369
- visibleColumns?: (string | {
1370
- column: string;
1371
- hideLabel?: boolean;
1372
- })[];
1373
- };
1374
- }>>;
1375
- type: "Standard" | "Connection URI";
1376
- url_path?: null | string;
1377
- user_id?: null | string;
1378
- web_app_directory?: null | string;
1379
- web_app_templated?: null | boolean;
1380
- }>, import("prostgles-server").DBHandlerServer<DBGeneratedSchema>, undefined, import("prostgles-types").InsertDataWithNested<{
1381
- config?: null | {
1382
- enabled: boolean;
1383
- path: string;
1384
- };
1385
- created?: null | string;
1386
- db_conn?: null | string;
1387
- db_connection_timeout?: null | number;
1388
- db_host?: string;
1389
- db_name: string;
1390
- db_pass?: null | string;
1391
- db_port?: number;
1392
- db_schema_filter?: null | Record<string, 1> | Record<string, 0>;
1393
- db_ssl?: "disable" | "allow" | "prefer" | "require" | "verify-ca" | "verify-full";
1394
- db_user?: string;
1395
- db_watch_schema?: null | boolean;
1396
- disable_realtime?: null | boolean;
1397
- display_options?: null | {
1398
- prettyTableAndColumnNames: boolean;
1399
- };
1400
- function_options?: null | Partial<Record<string, {
1401
- action?: {
1402
- conditions?: ({
1403
- filter: {
1404
- $and: (Record<string, any>)[];
1405
- } | {
1406
- $or: (Record<string, any>)[];
1550
+ computedConfig?: {
1551
+ isColumn?: boolean;
1552
+ column?: string;
1553
+ tsDataType: "string" | "number" | "boolean" | "any" | "string[]" | "number[]" | "boolean[]" | "any[]";
1554
+ udt_name: string;
1555
+ funcDef: {
1556
+ key: string;
1557
+ label: string;
1558
+ subLabel: string;
1559
+ isAggregate?: boolean;
1560
+ requiresArg?: "$duration" | "$string_agg" | "$template_string";
1561
+ tsDataTypeCol?: "any" | ("string" | "number" | "boolean" | "any" | "string[]" | "number[]" | "boolean[]" | "any[]")[];
1562
+ udtDataTypeCol?: "any" | string[];
1407
1563
  };
1408
- value: {
1409
- text?: string;
1410
- icon?: string;
1411
- variant?: "text" | "faded" | "filled" | "outline";
1412
- color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
1413
- disabledInfo?: string;
1414
- isLoading?: boolean;
1564
+ args?: {
1565
+ $duration?: {
1566
+ otherColumn: string;
1567
+ };
1568
+ $string_agg?: {
1569
+ separator: string;
1570
+ };
1571
+ $template_string?: string;
1572
+ };
1573
+ aggregateOptions?: {
1574
+ filter?: any;
1575
+ orderBy?: {
1576
+ key: string;
1577
+ asc?: null | boolean;
1578
+ nulls?: null | "first" | "last";
1579
+ nullEmpty?: boolean;
1580
+ };
1415
1581
  };
1416
- })[];
1417
- defaultValue?: {
1418
- text?: string;
1419
- icon?: string;
1420
- variant?: "text" | "faded" | "filled" | "outline";
1421
- color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
1422
- disabledInfo?: string;
1423
- isLoading?: boolean;
1424
- };
1425
- job?: {
1426
- runningText?: string;
1427
- succeededText?: string;
1428
- retryText?: string;
1429
1582
  };
1430
- };
1431
- defaultArgs?: Record<string, any>;
1432
- outputTable?: string;
1433
- }>>;
1434
- id?: string;
1435
- info?: null | {
1436
- canCreateDb?: boolean;
1437
- };
1438
- is_state_db?: null | boolean;
1439
- last_updated?: number | string;
1440
- name: string;
1441
- on_mount_ts_disabled?: null | boolean;
1442
- port?: null | number;
1443
- prgl_params?: null | any;
1444
- prgl_url?: null | string;
1445
- ssl_certificate?: null | string;
1446
- ssl_client_certificate?: null | string;
1447
- ssl_client_certificate_key?: null | string;
1448
- ssl_reject_unauthorized?: null | boolean;
1449
- table_options?: null | Partial<Record<string, {
1450
- icon?: string;
1451
- label?: string;
1452
- referenceDisplay?: {
1453
- columns: ({
1454
- name: string;
1455
- format?: {
1456
- type: "ActionColumns";
1457
- params: {
1458
- actions: ({
1583
+ nested?: {
1584
+ path: ({
1585
+ table: string;
1586
+ on: string | (Record<string, string>)[];
1587
+ params?: Record<string, unknown>;
1588
+ reversed?: boolean;
1589
+ })[];
1590
+ columns: ({
1591
+ name: string;
1592
+ idx?: number;
1593
+ label?: string;
1594
+ show?: boolean;
1595
+ width?: number;
1596
+ format?: {
1597
+ type: "ActionColumns";
1598
+ params: {
1599
+ actions: ({
1600
+ columnName: string;
1601
+ } | {
1602
+ methodName: string;
1603
+ argName?: string;
1604
+ joinPath?: ({
1605
+ table: string;
1606
+ on: string | (Record<string, string>)[];
1607
+ params?: Record<string, unknown>;
1608
+ reversed?: boolean;
1609
+ })[];
1610
+ conditions?: ({
1611
+ filter: {
1612
+ $and: (Record<string, any>)[];
1613
+ } | {
1614
+ $or: (Record<string, any>)[];
1615
+ };
1616
+ value: {
1617
+ text?: string;
1618
+ icon?: string;
1619
+ variant?: "text" | "faded" | "filled" | "outline";
1620
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
1621
+ disabledInfo?: string;
1622
+ isLoading?: boolean;
1623
+ };
1624
+ })[];
1625
+ defaultValue?: {
1626
+ text?: string;
1627
+ icon?: string;
1628
+ variant?: "text" | "faded" | "filled" | "outline";
1629
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
1630
+ disabledInfo?: string;
1631
+ isLoading?: boolean;
1632
+ };
1633
+ })[];
1634
+ };
1635
+ } | {
1636
+ type: "Action";
1637
+ params: {
1638
+ methodName: string;
1639
+ argName?: string;
1640
+ joinPath?: ({
1641
+ table: string;
1642
+ on: string | (Record<string, string>)[];
1643
+ params?: Record<string, unknown>;
1644
+ reversed?: boolean;
1645
+ })[];
1646
+ conditions?: ({
1647
+ filter: {
1648
+ $and: (Record<string, any>)[];
1649
+ } | {
1650
+ $or: (Record<string, any>)[];
1651
+ };
1652
+ value: {
1653
+ text?: string;
1654
+ icon?: string;
1655
+ variant?: "text" | "faded" | "filled" | "outline";
1656
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
1657
+ disabledInfo?: string;
1658
+ isLoading?: boolean;
1659
+ };
1660
+ })[];
1661
+ defaultValue?: {
1662
+ text?: string;
1663
+ icon?: string;
1664
+ variant?: "text" | "faded" | "filled" | "outline";
1665
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
1666
+ disabledInfo?: string;
1667
+ isLoading?: boolean;
1668
+ };
1669
+ };
1670
+ } | {
1671
+ type: "NONE";
1672
+ } | {
1673
+ type: "URL";
1674
+ } | {
1675
+ type: "Email";
1676
+ } | {
1677
+ type: "Tel";
1678
+ } | {
1679
+ type: "QR Code";
1680
+ } | {
1681
+ type: "Currency";
1682
+ params: {
1683
+ mode: "Fixed";
1684
+ metricPrefix?: boolean;
1685
+ currencyCode: string;
1686
+ } | {
1687
+ mode: "From column";
1688
+ metricPrefix?: boolean;
1689
+ currencyCodeField: string;
1690
+ };
1691
+ } | {
1692
+ type: "Avatar";
1693
+ params?: {
1694
+ firstNameColumn?: string;
1695
+ lastNameColumn?: string;
1696
+ };
1697
+ } | {
1698
+ type: "Metric Prefix";
1699
+ } | {
1700
+ type: "UNIX Timestamp";
1701
+ } | {
1702
+ type: "Age";
1703
+ params?: {
1704
+ variant: "short" | "full";
1705
+ };
1706
+ } | {
1707
+ type: "Markdown" | "MarkdownPopup";
1708
+ } | {
1709
+ type: "JSON Diff" | "Text Diff";
1710
+ params: {
1711
+ oldColumn: string;
1712
+ newColumn: string;
1713
+ };
1714
+ } | {
1715
+ type: "DoclingDocument";
1716
+ } | {
1717
+ type: "Logs";
1718
+ } | {
1719
+ type: "HTML";
1720
+ params: {
1721
+ noSanitize?: boolean;
1722
+ allowedHTMLTags?: ("img" | "video" | "audio" | "svg" | "path")[];
1723
+ };
1724
+ } | {
1725
+ type: "Media";
1726
+ params: {
1727
+ contentType?: {
1728
+ mode: "Auto";
1729
+ } | {
1730
+ mode: "Fixed";
1731
+ fixedContentType: ("image" | "video" | "audio");
1732
+ } | {
1733
+ mode: "From column";
1734
+ contentTypeColumnName: string;
1735
+ } | {
1736
+ mode: "From URL Extension";
1737
+ };
1738
+ titleColumn?: string;
1739
+ };
1740
+ };
1741
+ display?: "drillable-records";
1742
+ style?: {
1743
+ type?: "None";
1744
+ fontWeight?: "normal" | "bold";
1745
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1746
+ } | {
1747
+ type: "Icons";
1748
+ size?: number;
1749
+ valueToIconMap: Record<string, string>;
1750
+ fontWeight?: "normal" | "bold";
1751
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1752
+ } | {
1753
+ type: "Fixed";
1754
+ fontWeight?: "normal" | "bold";
1755
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1756
+ textColor?: string;
1757
+ chipColor?: string;
1758
+ cellColor?: string;
1759
+ borderColor?: string;
1760
+ } | {
1761
+ type: "Conditional";
1762
+ fontWeight?: "normal" | "bold";
1763
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1764
+ column?: string;
1765
+ conditions: ({
1766
+ operator: "contains" | "=" | ">" | ">=" | "<" | "<=" | "!=" | "not null" | "null";
1767
+ condition: any;
1768
+ textColor?: string;
1769
+ chipColor?: string;
1770
+ cellColor?: string;
1771
+ borderColor?: string;
1772
+ } | {
1773
+ operator: "in" | "not in";
1774
+ condition: any[];
1775
+ textColor?: string;
1776
+ chipColor?: string;
1777
+ cellColor?: string;
1778
+ borderColor?: string;
1779
+ })[];
1780
+ defaultStyle?: {
1781
+ textColor?: string;
1782
+ chipColor?: string;
1783
+ cellColor?: string;
1784
+ borderColor?: string;
1785
+ };
1786
+ } | {
1787
+ type: "Scale";
1788
+ fontWeight?: "normal" | "bold";
1789
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1790
+ textColor: string;
1791
+ minColor: string;
1792
+ maxColor: string;
1793
+ } | {
1794
+ type: "Barchart";
1795
+ fontWeight?: "normal" | "bold";
1796
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1797
+ barColor: string;
1798
+ textColor: string;
1799
+ };
1800
+ computedConfig?: {
1801
+ isColumn?: boolean;
1802
+ column?: string;
1803
+ tsDataType: "string" | "number" | "boolean" | "any" | "string[]" | "number[]" | "boolean[]" | "any[]";
1804
+ udt_name: string;
1805
+ funcDef: {
1806
+ key: string;
1807
+ label: string;
1808
+ subLabel: string;
1809
+ isAggregate?: boolean;
1810
+ requiresArg?: "$duration" | "$string_agg" | "$template_string";
1811
+ tsDataTypeCol?: "any" | ("string" | "number" | "boolean" | "any" | "string[]" | "number[]" | "boolean[]" | "any[]")[];
1812
+ udtDataTypeCol?: "any" | string[];
1813
+ };
1814
+ args?: {
1815
+ $duration?: {
1816
+ otherColumn: string;
1817
+ };
1818
+ $string_agg?: {
1819
+ separator: string;
1820
+ };
1821
+ $template_string?: string;
1822
+ };
1823
+ aggregateOptions?: {
1824
+ filter?: any;
1825
+ orderBy?: {
1826
+ key: string;
1827
+ asc?: null | boolean;
1828
+ nulls?: null | "first" | "last";
1829
+ nullEmpty?: boolean;
1830
+ };
1831
+ };
1832
+ };
1833
+ })[];
1834
+ fallbackColumn?: string;
1835
+ joinType?: "inner" | "left";
1836
+ limit?: number;
1837
+ sort?: {
1838
+ key: string;
1839
+ asc?: null | boolean;
1840
+ nulls?: null | "first" | "last";
1841
+ nullEmpty?: boolean;
1842
+ };
1843
+ detailedFilter?: any[];
1844
+ detailedHaving?: any[];
1845
+ display?: {
1846
+ type: "values";
1847
+ labels?: "auto" | "none" | "inline" | "above";
1848
+ } | {
1849
+ type: "drillable-records";
1850
+ } | {
1851
+ type: "timechart";
1852
+ dateCol: string;
1853
+ renderStyle: "scatter plot" | "line" | "smooth" | "bars" | "smooth-line";
1854
+ yAxis: {
1855
+ isCountAll: true;
1856
+ } | {
1857
+ isCountAll: false;
1858
+ colName: string;
1859
+ funcName: "$countAll" | "$count" | "$min" | "$max" | "$sum" | "$avg";
1860
+ };
1861
+ };
1862
+ };
1863
+ }>>;
1864
+ card?: {
1865
+ avatarColumn?: string;
1866
+ headerColumn?: string;
1867
+ subHeaderColumn?: string;
1868
+ visibleColumns?: (string | {
1869
+ column: string;
1870
+ hideLabel?: boolean;
1871
+ })[];
1872
+ };
1873
+ }>>;
1874
+ type: "Standard" | "Connection URI";
1875
+ url_path?: null | string;
1876
+ user_id?: null | string;
1877
+ web_app_directory?: null | string;
1878
+ web_app_templated?: null | boolean;
1879
+ }>, import("prostgles-server").DBHandlerServer<DBGeneratedSchema>, undefined, import("prostgles-types").InsertDataWithNested<{
1880
+ config?: null | {
1881
+ enabled: boolean;
1882
+ path: string;
1883
+ };
1884
+ created?: null | string;
1885
+ db_conn?: null | string;
1886
+ db_connection_timeout?: null | number;
1887
+ db_host?: string;
1888
+ db_name: string;
1889
+ db_pass?: null | string;
1890
+ db_port?: number;
1891
+ db_schema_filter?: null | Record<string, 1> | Record<string, 0>;
1892
+ db_ssl?: "disable" | "allow" | "prefer" | "require" | "verify-ca" | "verify-full";
1893
+ db_user?: string;
1894
+ db_watch_schema?: null | boolean;
1895
+ disable_realtime?: null | boolean;
1896
+ display_options?: null | {
1897
+ prettyTableAndColumnNames: boolean;
1898
+ };
1899
+ function_options?: null | Partial<Record<string, {
1900
+ action?: {
1901
+ conditions?: ({
1902
+ filter: {
1903
+ $and: (Record<string, any>)[];
1904
+ } | {
1905
+ $or: (Record<string, any>)[];
1906
+ };
1907
+ value: {
1908
+ text?: string;
1909
+ icon?: string;
1910
+ variant?: "text" | "faded" | "filled" | "outline";
1911
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
1912
+ disabledInfo?: string;
1913
+ isLoading?: boolean;
1914
+ };
1915
+ })[];
1916
+ defaultValue?: {
1917
+ text?: string;
1918
+ icon?: string;
1919
+ variant?: "text" | "faded" | "filled" | "outline";
1920
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
1921
+ disabledInfo?: string;
1922
+ isLoading?: boolean;
1923
+ };
1924
+ job?: {
1925
+ runningText?: string;
1926
+ succeededText?: string;
1927
+ retryText?: string;
1928
+ };
1929
+ };
1930
+ defaultArgs?: Record<string, any>;
1931
+ outputTable?: string;
1932
+ }>>;
1933
+ id?: string;
1934
+ info?: null | {
1935
+ canCreateDb?: boolean;
1936
+ };
1937
+ is_state_db?: null | boolean;
1938
+ last_updated?: number | string;
1939
+ name: string;
1940
+ on_mount_ts_disabled?: null | boolean;
1941
+ port?: null | number;
1942
+ prgl_params?: null | any;
1943
+ prgl_url?: null | string;
1944
+ ssl_certificate?: null | string;
1945
+ ssl_client_certificate?: null | string;
1946
+ ssl_client_certificate_key?: null | string;
1947
+ ssl_reject_unauthorized?: null | boolean;
1948
+ table_options?: null | Partial<Record<string, {
1949
+ icon?: string;
1950
+ label?: string;
1951
+ referenceDisplay?: {
1952
+ columns: ({
1953
+ name: string;
1954
+ format?: {
1955
+ type: "ActionColumns";
1956
+ params: {
1957
+ actions: ({
1459
1958
  columnName: string;
1460
1959
  } | {
1461
1960
  methodName: string;
@@ -1758,12 +2257,170 @@ export declare const tableHooks: {
1758
2257
  titleColumn?: string;
1759
2258
  };
1760
2259
  };
2260
+ idx?: number;
2261
+ label?: string;
2262
+ show?: boolean;
2263
+ width?: number;
2264
+ format?: {
2265
+ type: "ActionColumns";
2266
+ params: {
2267
+ actions: ({
2268
+ columnName: string;
2269
+ } | {
2270
+ methodName: string;
2271
+ argName?: string;
2272
+ joinPath?: ({
2273
+ table: string;
2274
+ on: string | (Record<string, string>)[];
2275
+ params?: Record<string, unknown>;
2276
+ reversed?: boolean;
2277
+ })[];
2278
+ conditions?: ({
2279
+ filter: {
2280
+ $and: (Record<string, any>)[];
2281
+ } | {
2282
+ $or: (Record<string, any>)[];
2283
+ };
2284
+ value: {
2285
+ text?: string;
2286
+ icon?: string;
2287
+ variant?: "text" | "faded" | "filled" | "outline";
2288
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
2289
+ disabledInfo?: string;
2290
+ isLoading?: boolean;
2291
+ };
2292
+ })[];
2293
+ defaultValue?: {
2294
+ text?: string;
2295
+ icon?: string;
2296
+ variant?: "text" | "faded" | "filled" | "outline";
2297
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
2298
+ disabledInfo?: string;
2299
+ isLoading?: boolean;
2300
+ };
2301
+ })[];
2302
+ };
2303
+ } | {
2304
+ type: "Action";
2305
+ params: {
2306
+ methodName: string;
2307
+ argName?: string;
2308
+ joinPath?: ({
2309
+ table: string;
2310
+ on: string | (Record<string, string>)[];
2311
+ params?: Record<string, unknown>;
2312
+ reversed?: boolean;
2313
+ })[];
2314
+ conditions?: ({
2315
+ filter: {
2316
+ $and: (Record<string, any>)[];
2317
+ } | {
2318
+ $or: (Record<string, any>)[];
2319
+ };
2320
+ value: {
2321
+ text?: string;
2322
+ icon?: string;
2323
+ variant?: "text" | "faded" | "filled" | "outline";
2324
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
2325
+ disabledInfo?: string;
2326
+ isLoading?: boolean;
2327
+ };
2328
+ })[];
2329
+ defaultValue?: {
2330
+ text?: string;
2331
+ icon?: string;
2332
+ variant?: "text" | "faded" | "filled" | "outline";
2333
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
2334
+ disabledInfo?: string;
2335
+ isLoading?: boolean;
2336
+ };
2337
+ };
2338
+ } | {
2339
+ type: "NONE";
2340
+ } | {
2341
+ type: "URL";
2342
+ } | {
2343
+ type: "Email";
2344
+ } | {
2345
+ type: "Tel";
2346
+ } | {
2347
+ type: "QR Code";
2348
+ } | {
2349
+ type: "Currency";
2350
+ params: {
2351
+ mode: "Fixed";
2352
+ metricPrefix?: boolean;
2353
+ currencyCode: string;
2354
+ } | {
2355
+ mode: "From column";
2356
+ metricPrefix?: boolean;
2357
+ currencyCodeField: string;
2358
+ };
2359
+ } | {
2360
+ type: "Avatar";
2361
+ params?: {
2362
+ firstNameColumn?: string;
2363
+ lastNameColumn?: string;
2364
+ };
2365
+ } | {
2366
+ type: "Metric Prefix";
2367
+ } | {
2368
+ type: "UNIX Timestamp";
2369
+ } | {
2370
+ type: "Age";
2371
+ params?: {
2372
+ variant: "short" | "full";
2373
+ };
2374
+ } | {
2375
+ type: "Markdown" | "MarkdownPopup";
2376
+ } | {
2377
+ type: "JSON Diff" | "Text Diff";
2378
+ params: {
2379
+ oldColumn: string;
2380
+ newColumn: string;
2381
+ };
2382
+ } | {
2383
+ type: "DoclingDocument";
2384
+ } | {
2385
+ type: "Logs";
2386
+ } | {
2387
+ type: "HTML";
2388
+ params: {
2389
+ noSanitize?: boolean;
2390
+ allowedHTMLTags?: ("img" | "video" | "audio" | "svg" | "path")[];
2391
+ };
2392
+ } | {
2393
+ type: "Media";
2394
+ params: {
2395
+ contentType?: {
2396
+ mode: "Auto";
2397
+ } | {
2398
+ mode: "Fixed";
2399
+ fixedContentType: ("image" | "video" | "audio");
2400
+ } | {
2401
+ mode: "From column";
2402
+ contentTypeColumnName: string;
2403
+ } | {
2404
+ mode: "From URL Extension";
2405
+ };
2406
+ titleColumn?: string;
2407
+ };
2408
+ };
2409
+ display?: "drillable-records";
1761
2410
  style?: {
1762
- type: "None";
2411
+ type?: "None";
1763
2412
  fontWeight?: "normal" | "bold";
2413
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
2414
+ } | {
2415
+ type: "Icons";
2416
+ size?: number;
2417
+ valueToIconMap: Record<string, string>;
2418
+ fontWeight?: "normal" | "bold";
2419
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1764
2420
  } | {
1765
2421
  type: "Fixed";
1766
2422
  fontWeight?: "normal" | "bold";
2423
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1767
2424
  textColor?: string;
1768
2425
  chipColor?: string;
1769
2426
  cellColor?: string;
@@ -1771,9 +2428,10 @@ export declare const tableHooks: {
1771
2428
  } | {
1772
2429
  type: "Conditional";
1773
2430
  fontWeight?: "normal" | "bold";
2431
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1774
2432
  column?: string;
1775
2433
  conditions: ({
1776
- operator: "contains" | "=" | ">" | ">=" | "<" | "<=" | "!=";
2434
+ operator: "contains" | "=" | ">" | ">=" | "<" | "<=" | "!=" | "not null" | "null";
1777
2435
  condition: any;
1778
2436
  textColor?: string;
1779
2437
  chipColor?: string;
@@ -1796,15 +2454,330 @@ export declare const tableHooks: {
1796
2454
  } | {
1797
2455
  type: "Scale";
1798
2456
  fontWeight?: "normal" | "bold";
2457
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1799
2458
  textColor: string;
1800
2459
  minColor: string;
1801
2460
  maxColor: string;
1802
2461
  } | {
1803
2462
  type: "Barchart";
1804
2463
  fontWeight?: "normal" | "bold";
2464
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
1805
2465
  barColor: string;
1806
2466
  textColor: string;
1807
2467
  };
2468
+ computedConfig?: {
2469
+ isColumn?: boolean;
2470
+ column?: string;
2471
+ tsDataType: "string" | "number" | "boolean" | "any" | "string[]" | "number[]" | "boolean[]" | "any[]";
2472
+ udt_name: string;
2473
+ funcDef: {
2474
+ key: string;
2475
+ label: string;
2476
+ subLabel: string;
2477
+ isAggregate?: boolean;
2478
+ requiresArg?: "$duration" | "$string_agg" | "$template_string";
2479
+ tsDataTypeCol?: "any" | ("string" | "number" | "boolean" | "any" | "string[]" | "number[]" | "boolean[]" | "any[]")[];
2480
+ udtDataTypeCol?: "any" | string[];
2481
+ };
2482
+ args?: {
2483
+ $duration?: {
2484
+ otherColumn: string;
2485
+ };
2486
+ $string_agg?: {
2487
+ separator: string;
2488
+ };
2489
+ $template_string?: string;
2490
+ };
2491
+ aggregateOptions?: {
2492
+ filter?: any;
2493
+ orderBy?: {
2494
+ key: string;
2495
+ asc?: null | boolean;
2496
+ nulls?: null | "first" | "last";
2497
+ nullEmpty?: boolean;
2498
+ };
2499
+ };
2500
+ };
2501
+ nested?: {
2502
+ path: ({
2503
+ table: string;
2504
+ on: string | (Record<string, string>)[];
2505
+ params?: Record<string, unknown>;
2506
+ reversed?: boolean;
2507
+ })[];
2508
+ columns: ({
2509
+ name: string;
2510
+ idx?: number;
2511
+ label?: string;
2512
+ show?: boolean;
2513
+ width?: number;
2514
+ format?: {
2515
+ type: "ActionColumns";
2516
+ params: {
2517
+ actions: ({
2518
+ columnName: string;
2519
+ } | {
2520
+ methodName: string;
2521
+ argName?: string;
2522
+ joinPath?: ({
2523
+ table: string;
2524
+ on: string | (Record<string, string>)[];
2525
+ params?: Record<string, unknown>;
2526
+ reversed?: boolean;
2527
+ })[];
2528
+ conditions?: ({
2529
+ filter: {
2530
+ $and: (Record<string, any>)[];
2531
+ } | {
2532
+ $or: (Record<string, any>)[];
2533
+ };
2534
+ value: {
2535
+ text?: string;
2536
+ icon?: string;
2537
+ variant?: "text" | "faded" | "filled" | "outline";
2538
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
2539
+ disabledInfo?: string;
2540
+ isLoading?: boolean;
2541
+ };
2542
+ })[];
2543
+ defaultValue?: {
2544
+ text?: string;
2545
+ icon?: string;
2546
+ variant?: "text" | "faded" | "filled" | "outline";
2547
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
2548
+ disabledInfo?: string;
2549
+ isLoading?: boolean;
2550
+ };
2551
+ })[];
2552
+ };
2553
+ } | {
2554
+ type: "Action";
2555
+ params: {
2556
+ methodName: string;
2557
+ argName?: string;
2558
+ joinPath?: ({
2559
+ table: string;
2560
+ on: string | (Record<string, string>)[];
2561
+ params?: Record<string, unknown>;
2562
+ reversed?: boolean;
2563
+ })[];
2564
+ conditions?: ({
2565
+ filter: {
2566
+ $and: (Record<string, any>)[];
2567
+ } | {
2568
+ $or: (Record<string, any>)[];
2569
+ };
2570
+ value: {
2571
+ text?: string;
2572
+ icon?: string;
2573
+ variant?: "text" | "faded" | "filled" | "outline";
2574
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
2575
+ disabledInfo?: string;
2576
+ isLoading?: boolean;
2577
+ };
2578
+ })[];
2579
+ defaultValue?: {
2580
+ text?: string;
2581
+ icon?: string;
2582
+ variant?: "text" | "faded" | "filled" | "outline";
2583
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
2584
+ disabledInfo?: string;
2585
+ isLoading?: boolean;
2586
+ };
2587
+ };
2588
+ } | {
2589
+ type: "NONE";
2590
+ } | {
2591
+ type: "URL";
2592
+ } | {
2593
+ type: "Email";
2594
+ } | {
2595
+ type: "Tel";
2596
+ } | {
2597
+ type: "QR Code";
2598
+ } | {
2599
+ type: "Currency";
2600
+ params: {
2601
+ mode: "Fixed";
2602
+ metricPrefix?: boolean;
2603
+ currencyCode: string;
2604
+ } | {
2605
+ mode: "From column";
2606
+ metricPrefix?: boolean;
2607
+ currencyCodeField: string;
2608
+ };
2609
+ } | {
2610
+ type: "Avatar";
2611
+ params?: {
2612
+ firstNameColumn?: string;
2613
+ lastNameColumn?: string;
2614
+ };
2615
+ } | {
2616
+ type: "Metric Prefix";
2617
+ } | {
2618
+ type: "UNIX Timestamp";
2619
+ } | {
2620
+ type: "Age";
2621
+ params?: {
2622
+ variant: "short" | "full";
2623
+ };
2624
+ } | {
2625
+ type: "Markdown" | "MarkdownPopup";
2626
+ } | {
2627
+ type: "JSON Diff" | "Text Diff";
2628
+ params: {
2629
+ oldColumn: string;
2630
+ newColumn: string;
2631
+ };
2632
+ } | {
2633
+ type: "DoclingDocument";
2634
+ } | {
2635
+ type: "Logs";
2636
+ } | {
2637
+ type: "HTML";
2638
+ params: {
2639
+ noSanitize?: boolean;
2640
+ allowedHTMLTags?: ("img" | "video" | "audio" | "svg" | "path")[];
2641
+ };
2642
+ } | {
2643
+ type: "Media";
2644
+ params: {
2645
+ contentType?: {
2646
+ mode: "Auto";
2647
+ } | {
2648
+ mode: "Fixed";
2649
+ fixedContentType: ("image" | "video" | "audio");
2650
+ } | {
2651
+ mode: "From column";
2652
+ contentTypeColumnName: string;
2653
+ } | {
2654
+ mode: "From URL Extension";
2655
+ };
2656
+ titleColumn?: string;
2657
+ };
2658
+ };
2659
+ display?: "drillable-records";
2660
+ style?: {
2661
+ type?: "None";
2662
+ fontWeight?: "normal" | "bold";
2663
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
2664
+ } | {
2665
+ type: "Icons";
2666
+ size?: number;
2667
+ valueToIconMap: Record<string, string>;
2668
+ fontWeight?: "normal" | "bold";
2669
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
2670
+ } | {
2671
+ type: "Fixed";
2672
+ fontWeight?: "normal" | "bold";
2673
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
2674
+ textColor?: string;
2675
+ chipColor?: string;
2676
+ cellColor?: string;
2677
+ borderColor?: string;
2678
+ } | {
2679
+ type: "Conditional";
2680
+ fontWeight?: "normal" | "bold";
2681
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
2682
+ column?: string;
2683
+ conditions: ({
2684
+ operator: "contains" | "=" | ">" | ">=" | "<" | "<=" | "!=" | "not null" | "null";
2685
+ condition: any;
2686
+ textColor?: string;
2687
+ chipColor?: string;
2688
+ cellColor?: string;
2689
+ borderColor?: string;
2690
+ } | {
2691
+ operator: "in" | "not in";
2692
+ condition: any[];
2693
+ textColor?: string;
2694
+ chipColor?: string;
2695
+ cellColor?: string;
2696
+ borderColor?: string;
2697
+ })[];
2698
+ defaultStyle?: {
2699
+ textColor?: string;
2700
+ chipColor?: string;
2701
+ cellColor?: string;
2702
+ borderColor?: string;
2703
+ };
2704
+ } | {
2705
+ type: "Scale";
2706
+ fontWeight?: "normal" | "bold";
2707
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
2708
+ textColor: string;
2709
+ minColor: string;
2710
+ maxColor: string;
2711
+ } | {
2712
+ type: "Barchart";
2713
+ fontWeight?: "normal" | "bold";
2714
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
2715
+ barColor: string;
2716
+ textColor: string;
2717
+ };
2718
+ computedConfig?: {
2719
+ isColumn?: boolean;
2720
+ column?: string;
2721
+ tsDataType: "string" | "number" | "boolean" | "any" | "string[]" | "number[]" | "boolean[]" | "any[]";
2722
+ udt_name: string;
2723
+ funcDef: {
2724
+ key: string;
2725
+ label: string;
2726
+ subLabel: string;
2727
+ isAggregate?: boolean;
2728
+ requiresArg?: "$duration" | "$string_agg" | "$template_string";
2729
+ tsDataTypeCol?: "any" | ("string" | "number" | "boolean" | "any" | "string[]" | "number[]" | "boolean[]" | "any[]")[];
2730
+ udtDataTypeCol?: "any" | string[];
2731
+ };
2732
+ args?: {
2733
+ $duration?: {
2734
+ otherColumn: string;
2735
+ };
2736
+ $string_agg?: {
2737
+ separator: string;
2738
+ };
2739
+ $template_string?: string;
2740
+ };
2741
+ aggregateOptions?: {
2742
+ filter?: any;
2743
+ orderBy?: {
2744
+ key: string;
2745
+ asc?: null | boolean;
2746
+ nulls?: null | "first" | "last";
2747
+ nullEmpty?: boolean;
2748
+ };
2749
+ };
2750
+ };
2751
+ })[];
2752
+ fallbackColumn?: string;
2753
+ joinType?: "inner" | "left";
2754
+ limit?: number;
2755
+ sort?: {
2756
+ key: string;
2757
+ asc?: null | boolean;
2758
+ nulls?: null | "first" | "last";
2759
+ nullEmpty?: boolean;
2760
+ };
2761
+ detailedFilter?: any[];
2762
+ detailedHaving?: any[];
2763
+ display?: {
2764
+ type: "values";
2765
+ labels?: "auto" | "none" | "inline" | "above";
2766
+ } | {
2767
+ type: "drillable-records";
2768
+ } | {
2769
+ type: "timechart";
2770
+ dateCol: string;
2771
+ renderStyle: "scatter plot" | "line" | "smooth" | "bars" | "smooth-line";
2772
+ yAxis: {
2773
+ isCountAll: true;
2774
+ } | {
2775
+ isCountAll: false;
2776
+ colName: string;
2777
+ funcName: "$countAll" | "$count" | "$min" | "$max" | "$sum" | "$avg";
2778
+ };
2779
+ };
2780
+ };
1808
2781
  }>>;
1809
2782
  card?: {
1810
2783
  avatarColumn?: string;
@@ -4910,7 +5883,7 @@ export declare const tableHooks: {
4910
5883
  title?: null | string;
4911
5884
  ui_path?: null | {
4912
5885
  page: "/connection-config";
4913
- section: "authentication" | "access_control" | "backups" | "table_config" | "details" | "status" | "methods" | "file_storage" | "API" | "webApp" | "security" | "config";
5886
+ section: "members" | "authentication" | "access_control" | "backups" | "table_config" | "details" | "status" | "methods" | "file_storage" | "API" | "webApp" | "security" | "config";
4914
5887
  } | {
4915
5888
  page: "/server-settings";
4916
5889
  section: "security" | "auth" | "cloud" | "mcpServers" | "llmProviders" | "services";
@@ -5002,6 +5975,11 @@ export declare const tableHooks: {
5002
5975
  };
5003
5976
  uploaded?: null | string;
5004
5977
  }, DBGeneratedSchema, "backups">>[] | undefined;
5978
+ connection_members?: Partial<import("prostgles-types").InsertDataWithNested<{
5979
+ connection_id: string;
5980
+ role?: "connection_admin" | "member";
5981
+ user_id: string;
5982
+ }, DBGeneratedSchema, "connection_members">>[] | undefined;
5005
5983
  connections?: Partial<import("prostgles-types").InsertDataWithNested<{
5006
5984
  config?: null | {
5007
5985
  enabled: boolean;
@@ -5383,12 +6361,170 @@ export declare const tableHooks: {
5383
6361
  titleColumn?: string;
5384
6362
  };
5385
6363
  };
6364
+ idx?: number;
6365
+ label?: string;
6366
+ show?: boolean;
6367
+ width?: number;
6368
+ format?: {
6369
+ type: "ActionColumns";
6370
+ params: {
6371
+ actions: ({
6372
+ columnName: string;
6373
+ } | {
6374
+ methodName: string;
6375
+ argName?: string;
6376
+ joinPath?: ({
6377
+ table: string;
6378
+ on: string | (Record<string, string>)[];
6379
+ params?: Record<string, unknown>;
6380
+ reversed?: boolean;
6381
+ })[];
6382
+ conditions?: ({
6383
+ filter: {
6384
+ $and: (Record<string, any>)[];
6385
+ } | {
6386
+ $or: (Record<string, any>)[];
6387
+ };
6388
+ value: {
6389
+ text?: string;
6390
+ icon?: string;
6391
+ variant?: "text" | "faded" | "filled" | "outline";
6392
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
6393
+ disabledInfo?: string;
6394
+ isLoading?: boolean;
6395
+ };
6396
+ })[];
6397
+ defaultValue?: {
6398
+ text?: string;
6399
+ icon?: string;
6400
+ variant?: "text" | "faded" | "filled" | "outline";
6401
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
6402
+ disabledInfo?: string;
6403
+ isLoading?: boolean;
6404
+ };
6405
+ })[];
6406
+ };
6407
+ } | {
6408
+ type: "Action";
6409
+ params: {
6410
+ methodName: string;
6411
+ argName?: string;
6412
+ joinPath?: ({
6413
+ table: string;
6414
+ on: string | (Record<string, string>)[];
6415
+ params?: Record<string, unknown>;
6416
+ reversed?: boolean;
6417
+ })[];
6418
+ conditions?: ({
6419
+ filter: {
6420
+ $and: (Record<string, any>)[];
6421
+ } | {
6422
+ $or: (Record<string, any>)[];
6423
+ };
6424
+ value: {
6425
+ text?: string;
6426
+ icon?: string;
6427
+ variant?: "text" | "faded" | "filled" | "outline";
6428
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
6429
+ disabledInfo?: string;
6430
+ isLoading?: boolean;
6431
+ };
6432
+ })[];
6433
+ defaultValue?: {
6434
+ text?: string;
6435
+ icon?: string;
6436
+ variant?: "text" | "faded" | "filled" | "outline";
6437
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
6438
+ disabledInfo?: string;
6439
+ isLoading?: boolean;
6440
+ };
6441
+ };
6442
+ } | {
6443
+ type: "NONE";
6444
+ } | {
6445
+ type: "URL";
6446
+ } | {
6447
+ type: "Email";
6448
+ } | {
6449
+ type: "Tel";
6450
+ } | {
6451
+ type: "QR Code";
6452
+ } | {
6453
+ type: "Currency";
6454
+ params: {
6455
+ mode: "Fixed";
6456
+ metricPrefix?: boolean;
6457
+ currencyCode: string;
6458
+ } | {
6459
+ mode: "From column";
6460
+ metricPrefix?: boolean;
6461
+ currencyCodeField: string;
6462
+ };
6463
+ } | {
6464
+ type: "Avatar";
6465
+ params?: {
6466
+ firstNameColumn?: string;
6467
+ lastNameColumn?: string;
6468
+ };
6469
+ } | {
6470
+ type: "Metric Prefix";
6471
+ } | {
6472
+ type: "UNIX Timestamp";
6473
+ } | {
6474
+ type: "Age";
6475
+ params?: {
6476
+ variant: "short" | "full";
6477
+ };
6478
+ } | {
6479
+ type: "Markdown" | "MarkdownPopup";
6480
+ } | {
6481
+ type: "JSON Diff" | "Text Diff";
6482
+ params: {
6483
+ oldColumn: string;
6484
+ newColumn: string;
6485
+ };
6486
+ } | {
6487
+ type: "DoclingDocument";
6488
+ } | {
6489
+ type: "Logs";
6490
+ } | {
6491
+ type: "HTML";
6492
+ params: {
6493
+ noSanitize?: boolean;
6494
+ allowedHTMLTags?: ("img" | "video" | "audio" | "svg" | "path")[];
6495
+ };
6496
+ } | {
6497
+ type: "Media";
6498
+ params: {
6499
+ contentType?: {
6500
+ mode: "Auto";
6501
+ } | {
6502
+ mode: "Fixed";
6503
+ fixedContentType: ("image" | "video" | "audio");
6504
+ } | {
6505
+ mode: "From column";
6506
+ contentTypeColumnName: string;
6507
+ } | {
6508
+ mode: "From URL Extension";
6509
+ };
6510
+ titleColumn?: string;
6511
+ };
6512
+ };
6513
+ display?: "drillable-records";
5386
6514
  style?: {
5387
- type: "None";
6515
+ type?: "None";
5388
6516
  fontWeight?: "normal" | "bold";
6517
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
6518
+ } | {
6519
+ type: "Icons";
6520
+ size?: number;
6521
+ valueToIconMap: Record<string, string>;
6522
+ fontWeight?: "normal" | "bold";
6523
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
5389
6524
  } | {
5390
6525
  type: "Fixed";
5391
6526
  fontWeight?: "normal" | "bold";
6527
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
5392
6528
  textColor?: string;
5393
6529
  chipColor?: string;
5394
6530
  cellColor?: string;
@@ -5396,9 +6532,10 @@ export declare const tableHooks: {
5396
6532
  } | {
5397
6533
  type: "Conditional";
5398
6534
  fontWeight?: "normal" | "bold";
6535
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
5399
6536
  column?: string;
5400
6537
  conditions: ({
5401
- operator: "contains" | "=" | ">" | ">=" | "<" | "<=" | "!=";
6538
+ operator: "contains" | "=" | ">" | ">=" | "<" | "<=" | "!=" | "not null" | "null";
5402
6539
  condition: any;
5403
6540
  textColor?: string;
5404
6541
  chipColor?: string;
@@ -5421,15 +6558,330 @@ export declare const tableHooks: {
5421
6558
  } | {
5422
6559
  type: "Scale";
5423
6560
  fontWeight?: "normal" | "bold";
6561
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
5424
6562
  textColor: string;
5425
6563
  minColor: string;
5426
6564
  maxColor: string;
5427
6565
  } | {
5428
6566
  type: "Barchart";
5429
6567
  fontWeight?: "normal" | "bold";
6568
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
5430
6569
  barColor: string;
5431
6570
  textColor: string;
5432
6571
  };
6572
+ computedConfig?: {
6573
+ isColumn?: boolean;
6574
+ column?: string;
6575
+ tsDataType: "string" | "number" | "boolean" | "any" | "string[]" | "number[]" | "boolean[]" | "any[]";
6576
+ udt_name: string;
6577
+ funcDef: {
6578
+ key: string;
6579
+ label: string;
6580
+ subLabel: string;
6581
+ isAggregate?: boolean;
6582
+ requiresArg?: "$duration" | "$string_agg" | "$template_string";
6583
+ tsDataTypeCol?: "any" | ("string" | "number" | "boolean" | "any" | "string[]" | "number[]" | "boolean[]" | "any[]")[];
6584
+ udtDataTypeCol?: "any" | string[];
6585
+ };
6586
+ args?: {
6587
+ $duration?: {
6588
+ otherColumn: string;
6589
+ };
6590
+ $string_agg?: {
6591
+ separator: string;
6592
+ };
6593
+ $template_string?: string;
6594
+ };
6595
+ aggregateOptions?: {
6596
+ filter?: any;
6597
+ orderBy?: {
6598
+ key: string;
6599
+ asc?: null | boolean;
6600
+ nulls?: null | "first" | "last";
6601
+ nullEmpty?: boolean;
6602
+ };
6603
+ };
6604
+ };
6605
+ nested?: {
6606
+ path: ({
6607
+ table: string;
6608
+ on: string | (Record<string, string>)[];
6609
+ params?: Record<string, unknown>;
6610
+ reversed?: boolean;
6611
+ })[];
6612
+ columns: ({
6613
+ name: string;
6614
+ idx?: number;
6615
+ label?: string;
6616
+ show?: boolean;
6617
+ width?: number;
6618
+ format?: {
6619
+ type: "ActionColumns";
6620
+ params: {
6621
+ actions: ({
6622
+ columnName: string;
6623
+ } | {
6624
+ methodName: string;
6625
+ argName?: string;
6626
+ joinPath?: ({
6627
+ table: string;
6628
+ on: string | (Record<string, string>)[];
6629
+ params?: Record<string, unknown>;
6630
+ reversed?: boolean;
6631
+ })[];
6632
+ conditions?: ({
6633
+ filter: {
6634
+ $and: (Record<string, any>)[];
6635
+ } | {
6636
+ $or: (Record<string, any>)[];
6637
+ };
6638
+ value: {
6639
+ text?: string;
6640
+ icon?: string;
6641
+ variant?: "text" | "faded" | "filled" | "outline";
6642
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
6643
+ disabledInfo?: string;
6644
+ isLoading?: boolean;
6645
+ };
6646
+ })[];
6647
+ defaultValue?: {
6648
+ text?: string;
6649
+ icon?: string;
6650
+ variant?: "text" | "faded" | "filled" | "outline";
6651
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
6652
+ disabledInfo?: string;
6653
+ isLoading?: boolean;
6654
+ };
6655
+ })[];
6656
+ };
6657
+ } | {
6658
+ type: "Action";
6659
+ params: {
6660
+ methodName: string;
6661
+ argName?: string;
6662
+ joinPath?: ({
6663
+ table: string;
6664
+ on: string | (Record<string, string>)[];
6665
+ params?: Record<string, unknown>;
6666
+ reversed?: boolean;
6667
+ })[];
6668
+ conditions?: ({
6669
+ filter: {
6670
+ $and: (Record<string, any>)[];
6671
+ } | {
6672
+ $or: (Record<string, any>)[];
6673
+ };
6674
+ value: {
6675
+ text?: string;
6676
+ icon?: string;
6677
+ variant?: "text" | "faded" | "filled" | "outline";
6678
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
6679
+ disabledInfo?: string;
6680
+ isLoading?: boolean;
6681
+ };
6682
+ })[];
6683
+ defaultValue?: {
6684
+ text?: string;
6685
+ icon?: string;
6686
+ variant?: "text" | "faded" | "filled" | "outline";
6687
+ color?: "default" | "action" | "danger" | "warn" | "green" | "indigo" | "inherit" | "transparent" | "white";
6688
+ disabledInfo?: string;
6689
+ isLoading?: boolean;
6690
+ };
6691
+ };
6692
+ } | {
6693
+ type: "NONE";
6694
+ } | {
6695
+ type: "URL";
6696
+ } | {
6697
+ type: "Email";
6698
+ } | {
6699
+ type: "Tel";
6700
+ } | {
6701
+ type: "QR Code";
6702
+ } | {
6703
+ type: "Currency";
6704
+ params: {
6705
+ mode: "Fixed";
6706
+ metricPrefix?: boolean;
6707
+ currencyCode: string;
6708
+ } | {
6709
+ mode: "From column";
6710
+ metricPrefix?: boolean;
6711
+ currencyCodeField: string;
6712
+ };
6713
+ } | {
6714
+ type: "Avatar";
6715
+ params?: {
6716
+ firstNameColumn?: string;
6717
+ lastNameColumn?: string;
6718
+ };
6719
+ } | {
6720
+ type: "Metric Prefix";
6721
+ } | {
6722
+ type: "UNIX Timestamp";
6723
+ } | {
6724
+ type: "Age";
6725
+ params?: {
6726
+ variant: "short" | "full";
6727
+ };
6728
+ } | {
6729
+ type: "Markdown" | "MarkdownPopup";
6730
+ } | {
6731
+ type: "JSON Diff" | "Text Diff";
6732
+ params: {
6733
+ oldColumn: string;
6734
+ newColumn: string;
6735
+ };
6736
+ } | {
6737
+ type: "DoclingDocument";
6738
+ } | {
6739
+ type: "Logs";
6740
+ } | {
6741
+ type: "HTML";
6742
+ params: {
6743
+ noSanitize?: boolean;
6744
+ allowedHTMLTags?: ("img" | "video" | "audio" | "svg" | "path")[];
6745
+ };
6746
+ } | {
6747
+ type: "Media";
6748
+ params: {
6749
+ contentType?: {
6750
+ mode: "Auto";
6751
+ } | {
6752
+ mode: "Fixed";
6753
+ fixedContentType: ("image" | "video" | "audio");
6754
+ } | {
6755
+ mode: "From column";
6756
+ contentTypeColumnName: string;
6757
+ } | {
6758
+ mode: "From URL Extension";
6759
+ };
6760
+ titleColumn?: string;
6761
+ };
6762
+ };
6763
+ display?: "drillable-records";
6764
+ style?: {
6765
+ type?: "None";
6766
+ fontWeight?: "normal" | "bold";
6767
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
6768
+ } | {
6769
+ type: "Icons";
6770
+ size?: number;
6771
+ valueToIconMap: Record<string, string>;
6772
+ fontWeight?: "normal" | "bold";
6773
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
6774
+ } | {
6775
+ type: "Fixed";
6776
+ fontWeight?: "normal" | "bold";
6777
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
6778
+ textColor?: string;
6779
+ chipColor?: string;
6780
+ cellColor?: string;
6781
+ borderColor?: string;
6782
+ } | {
6783
+ type: "Conditional";
6784
+ fontWeight?: "normal" | "bold";
6785
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
6786
+ column?: string;
6787
+ conditions: ({
6788
+ operator: "contains" | "=" | ">" | ">=" | "<" | "<=" | "!=" | "not null" | "null";
6789
+ condition: any;
6790
+ textColor?: string;
6791
+ chipColor?: string;
6792
+ cellColor?: string;
6793
+ borderColor?: string;
6794
+ } | {
6795
+ operator: "in" | "not in";
6796
+ condition: any[];
6797
+ textColor?: string;
6798
+ chipColor?: string;
6799
+ cellColor?: string;
6800
+ borderColor?: string;
6801
+ })[];
6802
+ defaultStyle?: {
6803
+ textColor?: string;
6804
+ chipColor?: string;
6805
+ cellColor?: string;
6806
+ borderColor?: string;
6807
+ };
6808
+ } | {
6809
+ type: "Scale";
6810
+ fontWeight?: "normal" | "bold";
6811
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
6812
+ textColor: string;
6813
+ minColor: string;
6814
+ maxColor: string;
6815
+ } | {
6816
+ type: "Barchart";
6817
+ fontWeight?: "normal" | "bold";
6818
+ buttonVariant?: "text" | "faded" | "filled" | "outline";
6819
+ barColor: string;
6820
+ textColor: string;
6821
+ };
6822
+ computedConfig?: {
6823
+ isColumn?: boolean;
6824
+ column?: string;
6825
+ tsDataType: "string" | "number" | "boolean" | "any" | "string[]" | "number[]" | "boolean[]" | "any[]";
6826
+ udt_name: string;
6827
+ funcDef: {
6828
+ key: string;
6829
+ label: string;
6830
+ subLabel: string;
6831
+ isAggregate?: boolean;
6832
+ requiresArg?: "$duration" | "$string_agg" | "$template_string";
6833
+ tsDataTypeCol?: "any" | ("string" | "number" | "boolean" | "any" | "string[]" | "number[]" | "boolean[]" | "any[]")[];
6834
+ udtDataTypeCol?: "any" | string[];
6835
+ };
6836
+ args?: {
6837
+ $duration?: {
6838
+ otherColumn: string;
6839
+ };
6840
+ $string_agg?: {
6841
+ separator: string;
6842
+ };
6843
+ $template_string?: string;
6844
+ };
6845
+ aggregateOptions?: {
6846
+ filter?: any;
6847
+ orderBy?: {
6848
+ key: string;
6849
+ asc?: null | boolean;
6850
+ nulls?: null | "first" | "last";
6851
+ nullEmpty?: boolean;
6852
+ };
6853
+ };
6854
+ };
6855
+ })[];
6856
+ fallbackColumn?: string;
6857
+ joinType?: "inner" | "left";
6858
+ limit?: number;
6859
+ sort?: {
6860
+ key: string;
6861
+ asc?: null | boolean;
6862
+ nulls?: null | "first" | "last";
6863
+ nullEmpty?: boolean;
6864
+ };
6865
+ detailedFilter?: any[];
6866
+ detailedHaving?: any[];
6867
+ display?: {
6868
+ type: "values";
6869
+ labels?: "auto" | "none" | "inline" | "above";
6870
+ } | {
6871
+ type: "drillable-records";
6872
+ } | {
6873
+ type: "timechart";
6874
+ dateCol: string;
6875
+ renderStyle: "scatter plot" | "line" | "smooth" | "bars" | "smooth-line";
6876
+ yAxis: {
6877
+ isCountAll: true;
6878
+ } | {
6879
+ isCountAll: false;
6880
+ colName: string;
6881
+ funcName: "$countAll" | "$count" | "$min" | "$max" | "$sum" | "$avg";
6882
+ };
6883
+ };
6884
+ };
5433
6885
  }>>;
5434
6886
  card?: {
5435
6887
  avatarColumn?: string;