@graphoria/server 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/NOTICE +10 -0
- package/README.md +129 -0
- package/cli.ts +105 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/src/ai/agent/agent.d.ts +37 -0
- package/dist/src/ai/agent/agent.d.ts.map +1 -0
- package/dist/src/ai/agent/index.d.ts +3 -0
- package/dist/src/ai/agent/index.d.ts.map +1 -0
- package/dist/src/ai/agent/providers/anthropic.d.ts +10 -0
- package/dist/src/ai/agent/providers/anthropic.d.ts.map +1 -0
- package/dist/src/ai/agent/providers/index.d.ts +8 -0
- package/dist/src/ai/agent/providers/index.d.ts.map +1 -0
- package/dist/src/ai/agent/providers/ollama.d.ts +11 -0
- package/dist/src/ai/agent/providers/ollama.d.ts.map +1 -0
- package/dist/src/ai/agent/providers/openai.d.ts +14 -0
- package/dist/src/ai/agent/providers/openai.d.ts.map +1 -0
- package/dist/src/ai/agent/types.d.ts +51 -0
- package/dist/src/ai/agent/types.d.ts.map +1 -0
- package/dist/src/ai/ask-field.test.d.ts +2 -0
- package/dist/src/ai/ask-field.test.d.ts.map +1 -0
- package/dist/src/ai/index.d.ts +7 -0
- package/dist/src/ai/index.d.ts.map +1 -0
- package/dist/src/ai/mcp/create-server.d.ts +14 -0
- package/dist/src/ai/mcp/create-server.d.ts.map +1 -0
- package/dist/src/ai/mcp/create-server.test.d.ts +2 -0
- package/dist/src/ai/mcp/create-server.test.d.ts.map +1 -0
- package/dist/src/ai/mcp/index.d.ts +13 -0
- package/dist/src/ai/mcp/index.d.ts.map +1 -0
- package/dist/src/ai/mcp/index.test.d.ts +2 -0
- package/dist/src/ai/mcp/index.test.d.ts.map +1 -0
- package/dist/src/ai/mcp/instructions.d.ts +2 -0
- package/dist/src/ai/mcp/instructions.d.ts.map +1 -0
- package/dist/src/ai/tools/agent.d.ts +4 -0
- package/dist/src/ai/tools/agent.d.ts.map +1 -0
- package/dist/src/ai/tools/agent.test.d.ts +2 -0
- package/dist/src/ai/tools/agent.test.d.ts.map +1 -0
- package/dist/src/ai/tools/core.d.ts +75 -0
- package/dist/src/ai/tools/core.d.ts.map +1 -0
- package/dist/src/ai/tools/query-data.d.ts +35 -0
- package/dist/src/ai/tools/query-data.d.ts.map +1 -0
- package/dist/src/analyzeQuery/analyzers/fragmentAnalyzer.d.ts +5 -0
- package/dist/src/analyzeQuery/analyzers/fragmentAnalyzer.d.ts.map +1 -0
- package/dist/src/analyzeQuery/analyzers/operationAnalyzer.d.ts +6 -0
- package/dist/src/analyzeQuery/analyzers/operationAnalyzer.d.ts.map +1 -0
- package/dist/src/analyzeQuery/analyzers/selectionAnalyzer.d.ts +6 -0
- package/dist/src/analyzeQuery/analyzers/selectionAnalyzer.d.ts.map +1 -0
- package/dist/src/analyzeQuery/analyzers/variableAnalyzer.d.ts +4 -0
- package/dist/src/analyzeQuery/analyzers/variableAnalyzer.d.ts.map +1 -0
- package/dist/src/analyzeQuery/depthLimit.d.ts +16 -0
- package/dist/src/analyzeQuery/depthLimit.d.ts.map +1 -0
- package/dist/src/analyzeQuery/depthLimit.test.d.ts +2 -0
- package/dist/src/analyzeQuery/depthLimit.test.d.ts.map +1 -0
- package/dist/src/analyzeQuery/directiveUtils.d.ts +4 -0
- package/dist/src/analyzeQuery/directiveUtils.d.ts.map +1 -0
- package/dist/src/analyzeQuery/directiveUtils.test.d.ts +2 -0
- package/dist/src/analyzeQuery/directiveUtils.test.d.ts.map +1 -0
- package/dist/src/analyzeQuery/index.d.ts +5 -0
- package/dist/src/analyzeQuery/index.d.ts.map +1 -0
- package/dist/src/analyzeQuery/index.test.d.ts +2 -0
- package/dist/src/analyzeQuery/index.test.d.ts.map +1 -0
- package/dist/src/analyzeQuery/resolveVariables.d.ts +71 -0
- package/dist/src/analyzeQuery/resolveVariables.d.ts.map +1 -0
- package/dist/src/analyzeQuery/resolveVariables.test.d.ts +2 -0
- package/dist/src/analyzeQuery/resolveVariables.test.d.ts.map +1 -0
- package/dist/src/analyzeQuery/staticValues.test.d.ts +2 -0
- package/dist/src/analyzeQuery/staticValues.test.d.ts.map +1 -0
- package/dist/src/analyzeQuery/typeUtils.d.ts +9 -0
- package/dist/src/analyzeQuery/typeUtils.d.ts.map +1 -0
- package/dist/src/analyzeQuery/types.d.ts +54 -0
- package/dist/src/analyzeQuery/types.d.ts.map +1 -0
- package/dist/src/analyzeQuery/valueExtractors.d.ts +4 -0
- package/dist/src/analyzeQuery/valueExtractors.d.ts.map +1 -0
- package/dist/src/authentication/duration.d.ts +14 -0
- package/dist/src/authentication/duration.d.ts.map +1 -0
- package/dist/src/authentication/duration.test.d.ts +2 -0
- package/dist/src/authentication/duration.test.d.ts.map +1 -0
- package/dist/src/authentication/index.d.ts +4 -0
- package/dist/src/authentication/index.d.ts.map +1 -0
- package/dist/src/authentication/index.test.d.ts +2 -0
- package/dist/src/authentication/index.test.d.ts.map +1 -0
- package/dist/src/authentication/jwt.d.ts +10 -0
- package/dist/src/authentication/jwt.d.ts.map +1 -0
- package/dist/src/authentication/jwt.test.d.ts +2 -0
- package/dist/src/authentication/jwt.test.d.ts.map +1 -0
- package/dist/src/authentication/paseto.d.ts +7 -0
- package/dist/src/authentication/paseto.d.ts.map +1 -0
- package/dist/src/authentication/paseto.test.d.ts +2 -0
- package/dist/src/authentication/paseto.test.d.ts.map +1 -0
- package/dist/src/authentication/tokenRepository.d.ts +14 -0
- package/dist/src/authentication/tokenRepository.d.ts.map +1 -0
- package/dist/src/authentication/tokenRepository.test.d.ts +2 -0
- package/dist/src/authentication/tokenRepository.test.d.ts.map +1 -0
- package/dist/src/authentication/types.d.ts +42 -0
- package/dist/src/authentication/types.d.ts.map +1 -0
- package/dist/src/cli/seedAuth.d.ts +4 -0
- package/dist/src/cli/seedAuth.d.ts.map +1 -0
- package/dist/src/cli/seedAuth.test.d.ts +2 -0
- package/dist/src/cli/seedAuth.test.d.ts.map +1 -0
- package/dist/src/cli/seedAuthArgs.d.ts +9 -0
- package/dist/src/cli/seedAuthArgs.d.ts.map +1 -0
- package/dist/src/config/helpers/cronHelper.d.ts +21 -0
- package/dist/src/config/helpers/cronHelper.d.ts.map +1 -0
- package/dist/src/config/helpers/cronHelper.test.d.ts +2 -0
- package/dist/src/config/helpers/cronHelper.test.d.ts.map +1 -0
- package/dist/src/config/helpers/index.d.ts +4 -0
- package/dist/src/config/helpers/index.d.ts.map +1 -0
- package/dist/src/config/helpers/operationHelper.d.ts +44 -0
- package/dist/src/config/helpers/operationHelper.d.ts.map +1 -0
- package/dist/src/config/helpers/queueHelper.d.ts +20 -0
- package/dist/src/config/helpers/queueHelper.d.ts.map +1 -0
- package/dist/src/config/helpers/queueHelper.test.d.ts +2 -0
- package/dist/src/config/helpers/queueHelper.test.d.ts.map +1 -0
- package/dist/src/config/index.d.ts +236 -0
- package/dist/src/config/index.d.ts.map +1 -0
- package/dist/src/config/types/ai.d.ts +29 -0
- package/dist/src/config/types/ai.d.ts.map +1 -0
- package/dist/src/config/types/auth.d.ts +112 -0
- package/dist/src/config/types/auth.d.ts.map +1 -0
- package/dist/src/config/types/configuration.d.ts +61 -0
- package/dist/src/config/types/configuration.d.ts.map +1 -0
- package/dist/src/config/types/cron.d.ts +81 -0
- package/dist/src/config/types/cron.d.ts.map +1 -0
- package/dist/src/config/types/db.d.ts +210 -0
- package/dist/src/config/types/db.d.ts.map +1 -0
- package/dist/src/config/types/index.d.ts +17 -0
- package/dist/src/config/types/index.d.ts.map +1 -0
- package/dist/src/config/types/operation.d.ts +226 -0
- package/dist/src/config/types/operation.d.ts.map +1 -0
- package/dist/src/config/types/queue.d.ts +142 -0
- package/dist/src/config/types/queue.d.ts.map +1 -0
- package/dist/src/config/types/remote-rest.d.ts +18 -0
- package/dist/src/config/types/remote-rest.d.ts.map +1 -0
- package/dist/src/config/types/remote-schema.d.ts +27 -0
- package/dist/src/config/types/remote-schema.d.ts.map +1 -0
- package/dist/src/config/types/virtual-columns.d.ts +89 -0
- package/dist/src/config/types/virtual-columns.d.ts.map +1 -0
- package/dist/src/config/types/virtual-columns.test.d.ts +2 -0
- package/dist/src/config/types/virtual-columns.test.d.ts.map +1 -0
- package/dist/src/configuration/getSchemas/index.d.ts +867 -0
- package/dist/src/configuration/getSchemas/index.d.ts.map +1 -0
- package/dist/src/configuration/getSchemas/mergeEntities/index.d.ts +412 -0
- package/dist/src/configuration/getSchemas/mergeEntities/index.d.ts.map +1 -0
- package/dist/src/configuration/getSchemas/type-definition-generator/index.d.ts +16 -0
- package/dist/src/configuration/getSchemas/type-definition-generator/index.d.ts.map +1 -0
- package/dist/src/configuration/getSchemas/type-definition-generator/index.test.d.ts +2 -0
- package/dist/src/configuration/getSchemas/type-definition-generator/index.test.d.ts.map +1 -0
- package/dist/src/configuration/gql/buildExecute.d.ts +31 -0
- package/dist/src/configuration/gql/buildExecute.d.ts.map +1 -0
- package/dist/src/configuration/gql/buildExecute.test.d.ts +2 -0
- package/dist/src/configuration/gql/buildExecute.test.d.ts.map +1 -0
- package/dist/src/configuration/gql/gqlAuthOperations.d.ts +9 -0
- package/dist/src/configuration/gql/gqlAuthOperations.d.ts.map +1 -0
- package/dist/src/configuration/gql/gqlAuthOperations.test.d.ts +2 -0
- package/dist/src/configuration/gql/gqlAuthOperations.test.d.ts.map +1 -0
- package/dist/src/configuration/gql/handleGraphQLRequestFactory.d.ts +28 -0
- package/dist/src/configuration/gql/handleGraphQLRequestFactory.d.ts.map +1 -0
- package/dist/src/configuration/gql/handleGraphQLRequestFactory.test.d.ts +2 -0
- package/dist/src/configuration/gql/handleGraphQLRequestFactory.test.d.ts.map +1 -0
- package/dist/src/configuration/gql/handleGraphQLSubscriptionFactory.d.ts +19 -0
- package/dist/src/configuration/gql/handleGraphQLSubscriptionFactory.d.ts.map +1 -0
- package/dist/src/configuration/index.d.ts +719 -0
- package/dist/src/configuration/index.d.ts.map +1 -0
- package/dist/src/configuration/rest/generateOpenAPI.d.ts +19 -0
- package/dist/src/configuration/rest/generateOpenAPI.d.ts.map +1 -0
- package/dist/src/configuration/rest/handleRESTRequestFactory.d.ts +12 -0
- package/dist/src/configuration/rest/handleRESTRequestFactory.d.ts.map +1 -0
- package/dist/src/configuration/rest/handleRESTRequestFactory.test.d.ts +2 -0
- package/dist/src/configuration/rest/handleRESTRequestFactory.test.d.ts.map +1 -0
- package/dist/src/configuration/rest/index.d.ts +20 -0
- package/dist/src/configuration/rest/index.d.ts.map +1 -0
- package/dist/src/configuration/rest/openApiErrors.d.ts +71 -0
- package/dist/src/configuration/rest/openApiErrors.d.ts.map +1 -0
- package/dist/src/console/App.d.ts +3 -0
- package/dist/src/console/App.d.ts.map +1 -0
- package/dist/src/console/Login.d.ts +6 -0
- package/dist/src/console/Login.d.ts.map +1 -0
- package/dist/src/console/api.d.ts +17 -0
- package/dist/src/console/api.d.ts.map +1 -0
- package/dist/src/console/api.test.d.ts +2 -0
- package/dist/src/console/api.test.d.ts.map +1 -0
- package/dist/src/console/client.d.ts +67 -0
- package/dist/src/console/client.d.ts.map +1 -0
- package/dist/src/console/frontend.d.ts +8 -0
- package/dist/src/console/frontend.d.ts.map +1 -0
- package/dist/src/console/pages/ConfigPage.d.ts +2 -0
- package/dist/src/console/pages/ConfigPage.d.ts.map +1 -0
- package/dist/src/console/pages/RolesPage.d.ts +2 -0
- package/dist/src/console/pages/RolesPage.d.ts.map +1 -0
- package/dist/src/console/pages/StatusPage.d.ts +2 -0
- package/dist/src/console/pages/StatusPage.d.ts.map +1 -0
- package/dist/src/console/pages/TablesPage.d.ts +2 -0
- package/dist/src/console/pages/TablesPage.d.ts.map +1 -0
- package/dist/src/console/useApi.d.ts +8 -0
- package/dist/src/console/useApi.d.ts.map +1 -0
- package/dist/src/cron/index.d.ts +63 -0
- package/dist/src/cron/index.d.ts.map +1 -0
- package/dist/src/databases/auth/auth-operations.d.ts +11 -0
- package/dist/src/databases/auth/auth-operations.d.ts.map +1 -0
- package/dist/src/databases/auth/password.d.ts +3 -0
- package/dist/src/databases/auth/password.d.ts.map +1 -0
- package/dist/src/databases/auth/password.test.d.ts +2 -0
- package/dist/src/databases/auth/password.test.d.ts.map +1 -0
- package/dist/src/databases/common.d.ts +53 -0
- package/dist/src/databases/common.d.ts.map +1 -0
- package/dist/src/databases/common.test.d.ts +2 -0
- package/dist/src/databases/common.test.d.ts.map +1 -0
- package/dist/src/databases/core/executor.d.ts +10 -0
- package/dist/src/databases/core/executor.d.ts.map +1 -0
- package/dist/src/databases/core/executor.test.d.ts +2 -0
- package/dist/src/databases/core/executor.test.d.ts.map +1 -0
- package/dist/src/databases/core/function-mapping.d.ts +38 -0
- package/dist/src/databases/core/function-mapping.d.ts.map +1 -0
- package/dist/src/databases/core/identifier.d.ts +2 -0
- package/dist/src/databases/core/identifier.d.ts.map +1 -0
- package/dist/src/databases/core/identifier.test.d.ts +2 -0
- package/dist/src/databases/core/identifier.test.d.ts.map +1 -0
- package/dist/src/databases/core/query-builder.d.ts +64 -0
- package/dist/src/databases/core/query-builder.d.ts.map +1 -0
- package/dist/src/databases/core/query-builder.test.d.ts +2 -0
- package/dist/src/databases/core/query-builder.test.d.ts.map +1 -0
- package/dist/src/databases/directives.d.ts +16 -0
- package/dist/src/databases/directives.d.ts.map +1 -0
- package/dist/src/databases/directives.test.d.ts +2 -0
- package/dist/src/databases/directives.test.d.ts.map +1 -0
- package/dist/src/databases/engines/mssql/auth.d.ts +9 -0
- package/dist/src/databases/engines/mssql/auth.d.ts.map +1 -0
- package/dist/src/databases/engines/mssql/auth.test.d.ts +2 -0
- package/dist/src/databases/engines/mssql/auth.test.d.ts.map +1 -0
- package/dist/src/databases/engines/mssql/connection.d.ts +14 -0
- package/dist/src/databases/engines/mssql/connection.d.ts.map +1 -0
- package/dist/src/databases/engines/mssql/format.d.ts +5 -0
- package/dist/src/databases/engines/mssql/format.d.ts.map +1 -0
- package/dist/src/databases/engines/mssql/getStructure.d.ts +48 -0
- package/dist/src/databases/engines/mssql/getStructure.d.ts.map +1 -0
- package/dist/src/databases/engines/mssql/getViews.d.ts +7 -0
- package/dist/src/databases/engines/mssql/getViews.d.ts.map +1 -0
- package/dist/src/databases/engines/mssql/query/index.d.ts +7 -0
- package/dist/src/databases/engines/mssql/query/index.d.ts.map +1 -0
- package/dist/src/databases/engines/mssql/query/index.test.d.ts +2 -0
- package/dist/src/databases/engines/mssql/query/index.test.d.ts.map +1 -0
- package/dist/src/databases/engines/mysql/auth.d.ts +9 -0
- package/dist/src/databases/engines/mysql/auth.d.ts.map +1 -0
- package/dist/src/databases/engines/mysql/auth.test.d.ts +2 -0
- package/dist/src/databases/engines/mysql/auth.test.d.ts.map +1 -0
- package/dist/src/databases/engines/mysql/connection.d.ts +14 -0
- package/dist/src/databases/engines/mysql/connection.d.ts.map +1 -0
- package/dist/src/databases/engines/mysql/format.d.ts +5 -0
- package/dist/src/databases/engines/mysql/format.d.ts.map +1 -0
- package/dist/src/databases/engines/mysql/getStructure.d.ts +48 -0
- package/dist/src/databases/engines/mysql/getStructure.d.ts.map +1 -0
- package/dist/src/databases/engines/mysql/getViews.d.ts +7 -0
- package/dist/src/databases/engines/mysql/getViews.d.ts.map +1 -0
- package/dist/src/databases/engines/mysql/query/index.d.ts +7 -0
- package/dist/src/databases/engines/mysql/query/index.d.ts.map +1 -0
- package/dist/src/databases/engines/mysql/query/index.test.d.ts +2 -0
- package/dist/src/databases/engines/mysql/query/index.test.d.ts.map +1 -0
- package/dist/src/databases/engines/postgresql/auth.d.ts +9 -0
- package/dist/src/databases/engines/postgresql/auth.d.ts.map +1 -0
- package/dist/src/databases/engines/postgresql/auth.test.d.ts +2 -0
- package/dist/src/databases/engines/postgresql/auth.test.d.ts.map +1 -0
- package/dist/src/databases/engines/postgresql/connection.d.ts +14 -0
- package/dist/src/databases/engines/postgresql/connection.d.ts.map +1 -0
- package/dist/src/databases/engines/postgresql/format.d.ts +5 -0
- package/dist/src/databases/engines/postgresql/format.d.ts.map +1 -0
- package/dist/src/databases/engines/postgresql/getStructure.d.ts +48 -0
- package/dist/src/databases/engines/postgresql/getStructure.d.ts.map +1 -0
- package/dist/src/databases/engines/postgresql/getViews.d.ts +7 -0
- package/dist/src/databases/engines/postgresql/getViews.d.ts.map +1 -0
- package/dist/src/databases/engines/postgresql/query/index.d.ts +7 -0
- package/dist/src/databases/engines/postgresql/query/index.d.ts.map +1 -0
- package/dist/src/databases/engines/postgresql/query/index.test.d.ts +2 -0
- package/dist/src/databases/engines/postgresql/query/index.test.d.ts.map +1 -0
- package/dist/src/databases/engines/shared/claims.d.ts +2 -0
- package/dist/src/databases/engines/shared/claims.d.ts.map +1 -0
- package/dist/src/databases/engines/shared/types.d.ts +8 -0
- package/dist/src/databases/engines/shared/types.d.ts.map +1 -0
- package/dist/src/databases/high-level-operations.d.ts +146 -0
- package/dist/src/databases/high-level-operations.d.ts.map +1 -0
- package/dist/src/databases/high-level-operations.test.d.ts +2 -0
- package/dist/src/databases/high-level-operations.test.d.ts.map +1 -0
- package/dist/src/databases/index.d.ts +8 -0
- package/dist/src/databases/index.d.ts.map +1 -0
- package/dist/src/databases/metadata/structure.d.ts +56 -0
- package/dist/src/databases/metadata/structure.d.ts.map +1 -0
- package/dist/src/databases/schemaBuilder/convert.d.ts +2 -0
- package/dist/src/databases/schemaBuilder/convert.d.ts.map +1 -0
- package/dist/src/databases/schemaBuilder/generateCreateTable/index.d.ts +15 -0
- package/dist/src/databases/schemaBuilder/generateCreateTable/index.d.ts.map +1 -0
- package/dist/src/databases/schemaBuilder/generateCreateTable/index.test.d.ts +2 -0
- package/dist/src/databases/schemaBuilder/generateCreateTable/index.test.d.ts.map +1 -0
- package/dist/src/databases/schemaBuilder/generateCreateView/index.d.ts +18 -0
- package/dist/src/databases/schemaBuilder/generateCreateView/index.d.ts.map +1 -0
- package/dist/src/databases/schemaBuilder/generateInsert/index.d.ts +8 -0
- package/dist/src/databases/schemaBuilder/generateInsert/index.d.ts.map +1 -0
- package/dist/src/databases/schemaBuilder/generateInsert/index.test.d.ts +2 -0
- package/dist/src/databases/schemaBuilder/generateInsert/index.test.d.ts.map +1 -0
- package/dist/src/databases/schemaBuilder/generateSchemaCreation/index.d.ts +7 -0
- package/dist/src/databases/schemaBuilder/generateSchemaCreation/index.d.ts.map +1 -0
- package/dist/src/databases/schemaBuilder/generateSchemaCreation/index.test.d.ts +2 -0
- package/dist/src/databases/schemaBuilder/generateSchemaCreation/index.test.d.ts.map +1 -0
- package/dist/src/databases/schemaBuilder/mssqlToPostgres/convertView.d.ts +2 -0
- package/dist/src/databases/schemaBuilder/mssqlToPostgres/convertView.d.ts.map +1 -0
- package/dist/src/databases/schemaBuilder/utils.d.ts +8 -0
- package/dist/src/databases/schemaBuilder/utils.d.ts.map +1 -0
- package/dist/src/databases/sqlTypeUtils.d.ts +24 -0
- package/dist/src/databases/sqlTypeUtils.d.ts.map +1 -0
- package/dist/src/databases/sqlTypeUtils.test.d.ts +2 -0
- package/dist/src/databases/sqlTypeUtils.test.d.ts.map +1 -0
- package/dist/src/databases/transformers/data-transformers.d.ts +215 -0
- package/dist/src/databases/transformers/data-transformers.d.ts.map +1 -0
- package/dist/src/databases/transformers/data-transformers.test.d.ts +2 -0
- package/dist/src/databases/transformers/data-transformers.test.d.ts.map +1 -0
- package/dist/src/databases/transformers/genResolverName.d.ts +2 -0
- package/dist/src/databases/transformers/genResolverName.d.ts.map +1 -0
- package/dist/src/databases/transformers/genResolverName.test.d.ts +2 -0
- package/dist/src/databases/transformers/genResolverName.test.d.ts.map +1 -0
- package/dist/src/index.d.ts +139 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/logging/index.d.ts +21 -0
- package/dist/src/logging/index.d.ts.map +1 -0
- package/dist/src/queues/kafka.d.ts +22 -0
- package/dist/src/queues/kafka.d.ts.map +1 -0
- package/dist/src/queues/rabbitmq.d.ts +34 -0
- package/dist/src/queues/rabbitmq.d.ts.map +1 -0
- package/dist/src/queues/rabbitmq.test.d.ts +2 -0
- package/dist/src/queues/rabbitmq.test.d.ts.map +1 -0
- package/dist/src/remoteREST/index.d.ts +13 -0
- package/dist/src/remoteREST/index.d.ts.map +1 -0
- package/dist/src/remoteREST/parse.d.ts +8 -0
- package/dist/src/remoteREST/parse.d.ts.map +1 -0
- package/dist/src/remoteREST/parse.test.d.ts +2 -0
- package/dist/src/remoteREST/parse.test.d.ts.map +1 -0
- package/dist/src/remoteREST/proxy.d.ts +6 -0
- package/dist/src/remoteREST/proxy.d.ts.map +1 -0
- package/dist/src/remoteREST/proxy.test.d.ts +2 -0
- package/dist/src/remoteREST/proxy.test.d.ts.map +1 -0
- package/dist/src/remoteREST/transform.d.ts +8 -0
- package/dist/src/remoteREST/transform.d.ts.map +1 -0
- package/dist/src/remoteREST/transform.test.d.ts +2 -0
- package/dist/src/remoteREST/transform.test.d.ts.map +1 -0
- package/dist/src/remoteREST/types.d.ts +37 -0
- package/dist/src/remoteREST/types.d.ts.map +1 -0
- package/dist/src/remoteSchemas/index.d.ts +13 -0
- package/dist/src/remoteSchemas/index.d.ts.map +1 -0
- package/dist/src/remoteSchemas/introspect.d.ts +7 -0
- package/dist/src/remoteSchemas/introspect.d.ts.map +1 -0
- package/dist/src/remoteSchemas/introspect.test.d.ts +2 -0
- package/dist/src/remoteSchemas/introspect.test.d.ts.map +1 -0
- package/dist/src/remoteSchemas/proxy.d.ts +7 -0
- package/dist/src/remoteSchemas/proxy.d.ts.map +1 -0
- package/dist/src/remoteSchemas/proxy.test.d.ts +2 -0
- package/dist/src/remoteSchemas/proxy.test.d.ts.map +1 -0
- package/dist/src/remoteSchemas/transform.d.ts +9 -0
- package/dist/src/remoteSchemas/transform.d.ts.map +1 -0
- package/dist/src/remoteSchemas/transform.test.d.ts +2 -0
- package/dist/src/remoteSchemas/transform.test.d.ts.map +1 -0
- package/dist/src/remoteSchemas/types.d.ts +41 -0
- package/dist/src/remoteSchemas/types.d.ts.map +1 -0
- package/dist/src/singletons/ai.d.ts +25 -0
- package/dist/src/singletons/ai.d.ts.map +1 -0
- package/dist/src/singletons/ai.test.d.ts +2 -0
- package/dist/src/singletons/ai.test.d.ts.map +1 -0
- package/dist/src/singletons/authentication.d.ts +4 -0
- package/dist/src/singletons/authentication.d.ts.map +1 -0
- package/dist/src/singletons/cache/index.d.ts +5 -0
- package/dist/src/singletons/cache/index.d.ts.map +1 -0
- package/dist/src/singletons/cache/lruCacheStore.d.ts +12 -0
- package/dist/src/singletons/cache/lruCacheStore.d.ts.map +1 -0
- package/dist/src/singletons/cache/lruCacheStore.test.d.ts +2 -0
- package/dist/src/singletons/cache/lruCacheStore.test.d.ts.map +1 -0
- package/dist/src/singletons/cache/redisCacheStore.d.ts +16 -0
- package/dist/src/singletons/cache/redisCacheStore.d.ts.map +1 -0
- package/dist/src/singletons/cache/redisClient.d.ts +3 -0
- package/dist/src/singletons/cache/redisClient.d.ts.map +1 -0
- package/dist/src/singletons/cache/registry.d.ts +7 -0
- package/dist/src/singletons/cache/registry.d.ts.map +1 -0
- package/dist/src/singletons/cache/registry.test.d.ts +2 -0
- package/dist/src/singletons/cache/registry.test.d.ts.map +1 -0
- package/dist/src/singletons/cache/types.d.ts +8 -0
- package/dist/src/singletons/cache/types.d.ts.map +1 -0
- package/dist/src/singletons/cron.d.ts +69 -0
- package/dist/src/singletons/cron.d.ts.map +1 -0
- package/dist/src/singletons/databases.d.ts +27 -0
- package/dist/src/singletons/databases.d.ts.map +1 -0
- package/dist/src/singletons/databases.test.d.ts +2 -0
- package/dist/src/singletons/databases.test.d.ts.map +1 -0
- package/dist/src/singletons/env.d.ts +494 -0
- package/dist/src/singletons/env.d.ts.map +1 -0
- package/dist/src/singletons/queues.d.ts +17 -0
- package/dist/src/singletons/queues.d.ts.map +1 -0
- package/dist/src/subscriptions/index.d.ts +4 -0
- package/dist/src/subscriptions/index.d.ts.map +1 -0
- package/dist/src/subscriptions/strategies/database.d.ts +12 -0
- package/dist/src/subscriptions/strategies/database.d.ts.map +1 -0
- package/dist/src/subscriptions/strategies/index.d.ts +12 -0
- package/dist/src/subscriptions/strategies/index.d.ts.map +1 -0
- package/dist/src/subscriptions/strategies/queue.d.ts +11 -0
- package/dist/src/subscriptions/strategies/queue.d.ts.map +1 -0
- package/dist/src/subscriptions/types.d.ts +67 -0
- package/dist/src/subscriptions/types.d.ts.map +1 -0
- package/dist/src/subscriptions/utils/polling.d.ts +17 -0
- package/dist/src/subscriptions/utils/polling.d.ts.map +1 -0
- package/dist/src/types/common.d.ts +44 -0
- package/dist/src/types/common.d.ts.map +1 -0
- package/dist/src/types/configuration.d.ts +28 -0
- package/dist/src/types/configuration.d.ts.map +1 -0
- package/dist/src/types/db.d.ts +43 -0
- package/dist/src/types/db.d.ts.map +1 -0
- package/dist/src/types/env.d.ts +2302 -0
- package/dist/src/types/env.d.ts.map +1 -0
- package/dist/src/types/env.test.d.ts +2 -0
- package/dist/src/types/env.test.d.ts.map +1 -0
- package/dist/src/types/resolver.d.ts +121 -0
- package/dist/src/types/resolver.d.ts.map +1 -0
- package/dist/src/types/zod/ai.d.ts +6 -0
- package/dist/src/types/zod/ai.d.ts.map +1 -0
- package/dist/src/types/zod/auth.d.ts +76 -0
- package/dist/src/types/zod/auth.d.ts.map +1 -0
- package/dist/src/types/zod/configuration.d.ts +1278 -0
- package/dist/src/types/zod/configuration.d.ts.map +1 -0
- package/dist/src/types/zod/configuration.test.d.ts +2 -0
- package/dist/src/types/zod/configuration.test.d.ts.map +1 -0
- package/dist/src/types/zod/cron.d.ts +32 -0
- package/dist/src/types/zod/cron.d.ts.map +1 -0
- package/dist/src/types/zod/db.d.ts +441 -0
- package/dist/src/types/zod/db.d.ts.map +1 -0
- package/dist/src/types/zod/db.test.d.ts +2 -0
- package/dist/src/types/zod/db.test.d.ts.map +1 -0
- package/dist/src/types/zod/mcp.d.ts +6 -0
- package/dist/src/types/zod/mcp.d.ts.map +1 -0
- package/dist/src/types/zod/operation.d.ts +9 -0
- package/dist/src/types/zod/operation.d.ts.map +1 -0
- package/dist/src/types/zod/queue.d.ts +656 -0
- package/dist/src/types/zod/queue.d.ts.map +1 -0
- package/dist/src/types/zod/queue.test.d.ts +2 -0
- package/dist/src/types/zod/queue.test.d.ts.map +1 -0
- package/dist/src/types/zod/remoteREST.d.ts +6 -0
- package/dist/src/types/zod/remoteREST.d.ts.map +1 -0
- package/dist/src/types/zod/remoteSchema.d.ts +6 -0
- package/dist/src/types/zod/remoteSchema.d.ts.map +1 -0
- package/dist/src/utils/benchmark.d.ts +2 -0
- package/dist/src/utils/benchmark.d.ts.map +1 -0
- package/dist/src/utils/event-emitter.d.ts +19 -0
- package/dist/src/utils/event-emitter.d.ts.map +1 -0
- package/dist/src/utils/responses.d.ts +19 -0
- package/dist/src/utils/responses.d.ts.map +1 -0
- package/dist/src/utils/responses.test.d.ts +2 -0
- package/dist/src/utils/responses.test.d.ts.map +1 -0
- package/dist/src/utils/safeJSONParse.d.ts +2 -0
- package/dist/src/utils/safeJSONParse.d.ts.map +1 -0
- package/dist/src/utils/selection.d.ts +3 -0
- package/dist/src/utils/selection.d.ts.map +1 -0
- package/dist/src/utils/selection.test.d.ts +2 -0
- package/dist/src/utils/selection.test.d.ts.map +1 -0
- package/dist/src/utils/sessionVariables.d.ts +47 -0
- package/dist/src/utils/sessionVariables.d.ts.map +1 -0
- package/dist/src/utils/sessionVariables.test.d.ts +2 -0
- package/dist/src/utils/sessionVariables.test.d.ts.map +1 -0
- package/dist/src/utils/writeSchema.d.ts +3 -0
- package/dist/src/utils/writeSchema.d.ts.map +1 -0
- package/dist/standalone.d.ts +3 -0
- package/dist/standalone.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +119 -0
- package/playgrounds/console/index.html +25 -0
- package/playgrounds/graphiql/index.html +1144 -0
- package/playgrounds/scalar/index.html +19 -0
- package/src/ai/agent/agent.ts +222 -0
- package/src/ai/agent/index.ts +2 -0
- package/src/ai/agent/providers/anthropic.ts +113 -0
- package/src/ai/agent/providers/index.ts +62 -0
- package/src/ai/agent/providers/ollama.ts +128 -0
- package/src/ai/agent/providers/openai.ts +100 -0
- package/src/ai/agent/types.ts +65 -0
- package/src/ai/index.ts +8 -0
- package/src/ai/mcp/create-server.ts +444 -0
- package/src/ai/mcp/index.ts +80 -0
- package/src/ai/mcp/instructions.ts +103 -0
- package/src/ai/tools/agent.ts +111 -0
- package/src/ai/tools/core.ts +486 -0
- package/src/ai/tools/query-data.ts +109 -0
- package/src/analyzeQuery/analyzers/fragmentAnalyzer.ts +29 -0
- package/src/analyzeQuery/analyzers/operationAnalyzer.ts +50 -0
- package/src/analyzeQuery/analyzers/selectionAnalyzer.ts +135 -0
- package/src/analyzeQuery/analyzers/variableAnalyzer.ts +17 -0
- package/src/analyzeQuery/depthLimit.ts +124 -0
- package/src/analyzeQuery/directiveUtils.ts +99 -0
- package/src/analyzeQuery/index.ts +66 -0
- package/src/analyzeQuery/resolveVariables.ts +394 -0
- package/src/analyzeQuery/typeUtils.ts +47 -0
- package/src/analyzeQuery/types.ts +57 -0
- package/src/analyzeQuery/valueExtractors.ts +96 -0
- package/src/authentication/duration.ts +50 -0
- package/src/authentication/index.ts +34 -0
- package/src/authentication/jwt.ts +220 -0
- package/src/authentication/paseto.ts +256 -0
- package/src/authentication/tokenRepository.ts +75 -0
- package/src/authentication/types.ts +78 -0
- package/src/cli/seedAuth.ts +51 -0
- package/src/cli/seedAuthArgs.ts +50 -0
- package/src/config/helpers/cronHelper.ts +29 -0
- package/src/config/helpers/index.ts +8 -0
- package/src/config/helpers/operationHelper.ts +146 -0
- package/src/config/helpers/queueHelper.ts +27 -0
- package/src/config/index.ts +315 -0
- package/src/config/types/ai.ts +35 -0
- package/src/config/types/auth.ts +147 -0
- package/src/config/types/configuration.ts +69 -0
- package/src/config/types/cron.ts +140 -0
- package/src/config/types/db.ts +256 -0
- package/src/config/types/index.ts +129 -0
- package/src/config/types/operation.ts +253 -0
- package/src/config/types/queue.ts +172 -0
- package/src/config/types/remote-rest.ts +28 -0
- package/src/config/types/remote-schema.ts +39 -0
- package/src/config/types/virtual-columns.ts +157 -0
- package/src/configuration/getSchemas/index.ts +82 -0
- package/src/configuration/getSchemas/mergeEntities/index.ts +221 -0
- package/src/configuration/getSchemas/type-definition-generator/index.ts +511 -0
- package/src/configuration/gql/buildExecute.ts +54 -0
- package/src/configuration/gql/gqlAuthOperations.ts +150 -0
- package/src/configuration/gql/handleGraphQLRequestFactory.ts +415 -0
- package/src/configuration/gql/handleGraphQLSubscriptionFactory.ts +249 -0
- package/src/configuration/index.ts +138 -0
- package/src/configuration/rest/generateOpenAPI.ts +361 -0
- package/src/configuration/rest/handleRESTRequestFactory.ts +335 -0
- package/src/configuration/rest/index.ts +167 -0
- package/src/configuration/rest/openApiErrors.ts +106 -0
- package/src/console/api.ts +270 -0
- package/src/cron/index.ts +251 -0
- package/src/databases/auth/auth-operations.ts +36 -0
- package/src/databases/auth/password.ts +4 -0
- package/src/databases/common.ts +642 -0
- package/src/databases/core/executor.ts +97 -0
- package/src/databases/core/function-mapping.ts +176 -0
- package/src/databases/core/identifier.ts +8 -0
- package/src/databases/core/query-builder.ts +47 -0
- package/src/databases/directives.ts +112 -0
- package/src/databases/engines/mssql/auth.ts +112 -0
- package/src/databases/engines/mssql/connection.ts +151 -0
- package/src/databases/engines/mssql/format.ts +23 -0
- package/src/databases/engines/mssql/getStructure.ts +112 -0
- package/src/databases/engines/mssql/getViews.ts +17 -0
- package/src/databases/engines/mssql/query/index.ts +306 -0
- package/src/databases/engines/mysql/auth.ts +100 -0
- package/src/databases/engines/mysql/connection.ts +100 -0
- package/src/databases/engines/mysql/format.ts +23 -0
- package/src/databases/engines/mysql/getStructure.ts +116 -0
- package/src/databases/engines/mysql/getViews.ts +20 -0
- package/src/databases/engines/mysql/query/index.ts +291 -0
- package/src/databases/engines/postgresql/auth.ts +98 -0
- package/src/databases/engines/postgresql/connection.ts +99 -0
- package/src/databases/engines/postgresql/format.ts +23 -0
- package/src/databases/engines/postgresql/getStructure.ts +149 -0
- package/src/databases/engines/postgresql/getViews.ts +20 -0
- package/src/databases/engines/postgresql/query/index.ts +291 -0
- package/src/databases/engines/shared/claims.ts +26 -0
- package/src/databases/engines/shared/types.ts +7 -0
- package/src/databases/high-level-operations.ts +272 -0
- package/src/databases/index.ts +28 -0
- package/src/databases/metadata/structure.ts +12 -0
- package/src/databases/schemaBuilder/convert.ts +121 -0
- package/src/databases/schemaBuilder/generateCreateTable/index.ts +133 -0
- package/src/databases/schemaBuilder/generateCreateView/index.ts +101 -0
- package/src/databases/schemaBuilder/generateInsert/index.ts +47 -0
- package/src/databases/schemaBuilder/generateSchemaCreation/index.ts +29 -0
- package/src/databases/schemaBuilder/mssqlToPostgres/convertView.ts +47 -0
- package/src/databases/schemaBuilder/utils.ts +17 -0
- package/src/databases/sqlTypeUtils.ts +91 -0
- package/src/databases/transformers/data-transformers.ts +128 -0
- package/src/databases/transformers/genResolverName.ts +18 -0
- package/src/index.ts +461 -0
- package/src/logging/index.ts +69 -0
- package/src/queues/kafka.ts +409 -0
- package/src/queues/rabbitmq.ts +331 -0
- package/src/remoteREST/index.ts +46 -0
- package/src/remoteREST/parse.ts +68 -0
- package/src/remoteREST/proxy.ts +92 -0
- package/src/remoteREST/transform.ts +121 -0
- package/src/remoteREST/types.ts +38 -0
- package/src/remoteSchemas/index.ts +48 -0
- package/src/remoteSchemas/introspect.ts +44 -0
- package/src/remoteSchemas/proxy.ts +146 -0
- package/src/remoteSchemas/transform.ts +210 -0
- package/src/remoteSchemas/types.ts +43 -0
- package/src/singletons/ai.ts +91 -0
- package/src/singletons/authentication.ts +13 -0
- package/src/singletons/cache/index.ts +4 -0
- package/src/singletons/cache/lruCacheStore.ts +34 -0
- package/src/singletons/cache/redisCacheStore.ts +81 -0
- package/src/singletons/cache/redisClient.ts +12 -0
- package/src/singletons/cache/registry.ts +51 -0
- package/src/singletons/cache/types.ts +7 -0
- package/src/singletons/cron.ts +21 -0
- package/src/singletons/databases.ts +68 -0
- package/src/singletons/env.ts +3 -0
- package/src/singletons/queues.ts +101 -0
- package/src/subscriptions/index.ts +20 -0
- package/src/subscriptions/strategies/database.ts +68 -0
- package/src/subscriptions/strategies/index.ts +38 -0
- package/src/subscriptions/strategies/queue.ts +61 -0
- package/src/subscriptions/types.ts +74 -0
- package/src/subscriptions/utils/polling.ts +119 -0
- package/src/types/common.ts +57 -0
- package/src/types/configuration.ts +52 -0
- package/src/types/db.ts +87 -0
- package/src/types/env.ts +137 -0
- package/src/types/resolver.ts +181 -0
- package/src/types/zod/ai.ts +8 -0
- package/src/types/zod/auth.ts +96 -0
- package/src/types/zod/configuration.ts +46 -0
- package/src/types/zod/cron.ts +35 -0
- package/src/types/zod/db.ts +146 -0
- package/src/types/zod/mcp.ts +8 -0
- package/src/types/zod/operation.ts +37 -0
- package/src/types/zod/queue.ts +182 -0
- package/src/types/zod/remoteREST.ts +8 -0
- package/src/types/zod/remoteSchema.ts +11 -0
- package/src/utils/benchmark.ts +13 -0
- package/src/utils/event-emitter.ts +217 -0
- package/src/utils/responses.ts +42 -0
- package/src/utils/safeJSONParse.ts +10 -0
- package/src/utils/selection.ts +35 -0
- package/src/utils/sessionVariables.ts +131 -0
- package/src/utils/writeSchema.ts +13 -0
- package/standalone.ts +32 -0
|
@@ -0,0 +1,1278 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ConfigurationZod: z.ZodPipe<z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
version: z.ZodString;
|
|
5
|
+
tokenStrategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
jwt: "jwt";
|
|
7
|
+
paseto_local: "paseto_local";
|
|
8
|
+
paseto_public: "paseto_public";
|
|
9
|
+
}>>>;
|
|
10
|
+
databases: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
enabled: z.ZodBoolean;
|
|
13
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"mssql">, z.ZodLiteral<"pg">, z.ZodLiteral<"mysql">]>;
|
|
14
|
+
connection: z.ZodObject<{
|
|
15
|
+
host: z.ZodString;
|
|
16
|
+
port: z.ZodNumber;
|
|
17
|
+
user: z.ZodString;
|
|
18
|
+
password: z.ZodString;
|
|
19
|
+
database: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
fieldNaming: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
22
|
+
repository: z.ZodOptional<z.ZodCustom<import("../../config").CustomRepositoryFactory<import("./db").DatabaseType>, import("../../config").CustomRepositoryFactory<import("./db").DatabaseType>>>;
|
|
23
|
+
onConnect: z.ZodOptional<z.ZodCustom<import("../../config").OnConnectHandler<import("./db").DatabaseType>, import("../../config").OnConnectHandler<import("./db").DatabaseType>>>;
|
|
24
|
+
schema: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
database: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
26
|
+
columns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
dataType: z.ZodString;
|
|
29
|
+
isNullable: z.ZodBoolean;
|
|
30
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
virtual: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
function: z.ZodOptional<z.ZodString>;
|
|
33
|
+
params: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
|
+
expression: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>>>;
|
|
36
|
+
relationships: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
|
+
schema: z.ZodString;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
40
|
+
source: z.ZodString;
|
|
41
|
+
target: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>>>>;
|
|
44
|
+
description: z.ZodOptional<z.ZodString>;
|
|
45
|
+
columnDescriptions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
46
|
+
}, z.core.$strip>>>>>>>;
|
|
47
|
+
excludedTables: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
connectionOptions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
50
|
+
max: z.ZodDefault<z.ZodNumber>;
|
|
51
|
+
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
52
|
+
connectionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
53
|
+
maxLifetime: z.ZodDefault<z.ZodNumber>;
|
|
54
|
+
tls: z.ZodDefault<z.ZodBoolean>;
|
|
55
|
+
prepare: z.ZodDefault<z.ZodBoolean>;
|
|
56
|
+
bigint: z.ZodDefault<z.ZodBoolean>;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
pool: z.ZodDefault<z.ZodObject<{
|
|
59
|
+
max: z.ZodDefault<z.ZodNumber>;
|
|
60
|
+
min: z.ZodDefault<z.ZodNumber>;
|
|
61
|
+
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
connectionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
64
|
+
requestTimeout: z.ZodDefault<z.ZodNumber>;
|
|
65
|
+
encrypt: z.ZodDefault<z.ZodBoolean>;
|
|
66
|
+
trustServerCertificate: z.ZodDefault<z.ZodBoolean>;
|
|
67
|
+
trustedConnection: z.ZodDefault<z.ZodBoolean>;
|
|
68
|
+
parseJSON: z.ZodDefault<z.ZodBoolean>;
|
|
69
|
+
}, z.core.$strip>]>>;
|
|
70
|
+
}, z.core.$strip>>>;
|
|
71
|
+
queues: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
|
|
72
|
+
name: z.ZodString;
|
|
73
|
+
autoSetup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
74
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
75
|
+
reconnect: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
initialDelay: z.ZodDefault<z.ZodNumber>;
|
|
77
|
+
maxDelay: z.ZodDefault<z.ZodNumber>;
|
|
78
|
+
multiplier: z.ZodDefault<z.ZodNumber>;
|
|
79
|
+
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
publishers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
82
|
+
topic: z.ZodString;
|
|
83
|
+
routingKey: z.ZodOptional<z.ZodString>;
|
|
84
|
+
persistent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
85
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
86
|
+
}, z.core.$strip>>>>;
|
|
87
|
+
subscribers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
88
|
+
topic: z.ZodString;
|
|
89
|
+
pattern: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
90
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
91
|
+
group: z.ZodOptional<z.ZodString>;
|
|
92
|
+
durable: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
autoDelete: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
handler: z.ZodOptional<z.ZodCustom<import("./queue").SubscriberHandler, import("./queue").SubscriberHandler>>;
|
|
95
|
+
}, z.core.$strip>>>>;
|
|
96
|
+
topics: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
97
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
98
|
+
headers: "headers";
|
|
99
|
+
topic: "topic";
|
|
100
|
+
direct: "direct";
|
|
101
|
+
fanout: "fanout";
|
|
102
|
+
}>>>;
|
|
103
|
+
durable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
104
|
+
autoDelete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
105
|
+
}, z.core.$strip>>>>;
|
|
106
|
+
type: z.ZodLiteral<"rabbitmq">;
|
|
107
|
+
connection: z.ZodUnion<readonly [z.ZodURL, z.ZodObject<{
|
|
108
|
+
hostname: z.ZodDefault<z.ZodString>;
|
|
109
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
110
|
+
username: z.ZodOptional<z.ZodString>;
|
|
111
|
+
password: z.ZodOptional<z.ZodString>;
|
|
112
|
+
vhost: z.ZodDefault<z.ZodString>;
|
|
113
|
+
}, z.core.$strip>]>;
|
|
114
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
115
|
+
name: string;
|
|
116
|
+
autoSetup: boolean;
|
|
117
|
+
enabled: boolean;
|
|
118
|
+
publishers: Record<string, {
|
|
119
|
+
topic: string;
|
|
120
|
+
persistent: boolean;
|
|
121
|
+
routingKey?: string | undefined;
|
|
122
|
+
headers?: Record<string, string> | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
subscribers: Record<string, {
|
|
125
|
+
topic: string;
|
|
126
|
+
pattern: string;
|
|
127
|
+
queue?: string | undefined;
|
|
128
|
+
group?: string | undefined;
|
|
129
|
+
durable?: boolean | undefined;
|
|
130
|
+
autoDelete?: boolean | undefined;
|
|
131
|
+
handler?: import("./queue").SubscriberHandler | undefined;
|
|
132
|
+
}>;
|
|
133
|
+
topics: Record<string, {
|
|
134
|
+
type: "headers" | "topic" | "direct" | "fanout";
|
|
135
|
+
durable: boolean;
|
|
136
|
+
autoDelete: boolean;
|
|
137
|
+
}>;
|
|
138
|
+
type: "rabbitmq";
|
|
139
|
+
connection: string | {
|
|
140
|
+
hostname: string;
|
|
141
|
+
port: number;
|
|
142
|
+
vhost: string;
|
|
143
|
+
username?: string | undefined;
|
|
144
|
+
password?: string | undefined;
|
|
145
|
+
};
|
|
146
|
+
reconnect?: {
|
|
147
|
+
initialDelay: number;
|
|
148
|
+
maxDelay: number;
|
|
149
|
+
multiplier: number;
|
|
150
|
+
maxAttempts: number;
|
|
151
|
+
} | undefined;
|
|
152
|
+
} & {
|
|
153
|
+
exchanges: Array<{
|
|
154
|
+
name: string;
|
|
155
|
+
type: "topic" | "direct" | "fanout" | "headers";
|
|
156
|
+
options?: {
|
|
157
|
+
durable?: boolean;
|
|
158
|
+
autoDelete?: boolean;
|
|
159
|
+
};
|
|
160
|
+
publishers: Array<{
|
|
161
|
+
name: string;
|
|
162
|
+
resolverName: string;
|
|
163
|
+
routingKey: string;
|
|
164
|
+
options?: {
|
|
165
|
+
persistent?: boolean;
|
|
166
|
+
headers?: Record<string, string>;
|
|
167
|
+
};
|
|
168
|
+
}>;
|
|
169
|
+
}>;
|
|
170
|
+
queues: Array<{
|
|
171
|
+
name: string;
|
|
172
|
+
queue?: string;
|
|
173
|
+
groupId?: string;
|
|
174
|
+
bindings: Array<{
|
|
175
|
+
exchange: string;
|
|
176
|
+
pattern: string;
|
|
177
|
+
}>;
|
|
178
|
+
queueOptions?: {
|
|
179
|
+
durable?: boolean;
|
|
180
|
+
autoDelete?: boolean;
|
|
181
|
+
};
|
|
182
|
+
handler?: import("./queue").SubscriberHandler;
|
|
183
|
+
}>;
|
|
184
|
+
}, {
|
|
185
|
+
name: string;
|
|
186
|
+
autoSetup: boolean;
|
|
187
|
+
enabled: boolean;
|
|
188
|
+
publishers: Record<string, {
|
|
189
|
+
topic: string;
|
|
190
|
+
persistent: boolean;
|
|
191
|
+
routingKey?: string | undefined;
|
|
192
|
+
headers?: Record<string, string> | undefined;
|
|
193
|
+
}>;
|
|
194
|
+
subscribers: Record<string, {
|
|
195
|
+
topic: string;
|
|
196
|
+
pattern: string;
|
|
197
|
+
queue?: string | undefined;
|
|
198
|
+
group?: string | undefined;
|
|
199
|
+
durable?: boolean | undefined;
|
|
200
|
+
autoDelete?: boolean | undefined;
|
|
201
|
+
handler?: import("./queue").SubscriberHandler | undefined;
|
|
202
|
+
}>;
|
|
203
|
+
topics: Record<string, {
|
|
204
|
+
type: "headers" | "topic" | "direct" | "fanout";
|
|
205
|
+
durable: boolean;
|
|
206
|
+
autoDelete: boolean;
|
|
207
|
+
}>;
|
|
208
|
+
type: "rabbitmq";
|
|
209
|
+
connection: string | {
|
|
210
|
+
hostname: string;
|
|
211
|
+
port: number;
|
|
212
|
+
vhost: string;
|
|
213
|
+
username?: string | undefined;
|
|
214
|
+
password?: string | undefined;
|
|
215
|
+
};
|
|
216
|
+
reconnect?: {
|
|
217
|
+
initialDelay: number;
|
|
218
|
+
maxDelay: number;
|
|
219
|
+
multiplier: number;
|
|
220
|
+
maxAttempts: number;
|
|
221
|
+
} | undefined;
|
|
222
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
223
|
+
name: z.ZodString;
|
|
224
|
+
autoSetup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
225
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
226
|
+
reconnect: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
initialDelay: z.ZodDefault<z.ZodNumber>;
|
|
228
|
+
maxDelay: z.ZodDefault<z.ZodNumber>;
|
|
229
|
+
multiplier: z.ZodDefault<z.ZodNumber>;
|
|
230
|
+
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
publishers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
233
|
+
topic: z.ZodString;
|
|
234
|
+
routingKey: z.ZodOptional<z.ZodString>;
|
|
235
|
+
persistent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
236
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
237
|
+
}, z.core.$strip>>>>;
|
|
238
|
+
subscribers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
239
|
+
topic: z.ZodString;
|
|
240
|
+
pattern: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
241
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
242
|
+
group: z.ZodOptional<z.ZodString>;
|
|
243
|
+
durable: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
+
autoDelete: z.ZodOptional<z.ZodBoolean>;
|
|
245
|
+
handler: z.ZodOptional<z.ZodCustom<import("./queue").SubscriberHandler, import("./queue").SubscriberHandler>>;
|
|
246
|
+
}, z.core.$strip>>>>;
|
|
247
|
+
topics: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
248
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
headers: "headers";
|
|
250
|
+
topic: "topic";
|
|
251
|
+
direct: "direct";
|
|
252
|
+
fanout: "fanout";
|
|
253
|
+
}>>>;
|
|
254
|
+
durable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
255
|
+
autoDelete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
256
|
+
}, z.core.$strip>>>>;
|
|
257
|
+
type: z.ZodLiteral<"kafka">;
|
|
258
|
+
connection: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
259
|
+
brokers: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
260
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
261
|
+
ssl: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
262
|
+
sasl: z.ZodOptional<z.ZodObject<{
|
|
263
|
+
mechanism: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
264
|
+
plain: "plain";
|
|
265
|
+
"scram-sha-256": "scram-sha-256";
|
|
266
|
+
"scram-sha-512": "scram-sha-512";
|
|
267
|
+
}>>>;
|
|
268
|
+
username: z.ZodString;
|
|
269
|
+
password: z.ZodString;
|
|
270
|
+
}, z.core.$strip>>;
|
|
271
|
+
}, z.core.$strip>]>;
|
|
272
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
273
|
+
name: string;
|
|
274
|
+
autoSetup: boolean;
|
|
275
|
+
enabled: boolean;
|
|
276
|
+
publishers: Record<string, {
|
|
277
|
+
topic: string;
|
|
278
|
+
persistent: boolean;
|
|
279
|
+
routingKey?: string | undefined;
|
|
280
|
+
headers?: Record<string, string> | undefined;
|
|
281
|
+
}>;
|
|
282
|
+
subscribers: Record<string, {
|
|
283
|
+
topic: string;
|
|
284
|
+
pattern: string;
|
|
285
|
+
queue?: string | undefined;
|
|
286
|
+
group?: string | undefined;
|
|
287
|
+
durable?: boolean | undefined;
|
|
288
|
+
autoDelete?: boolean | undefined;
|
|
289
|
+
handler?: import("./queue").SubscriberHandler | undefined;
|
|
290
|
+
}>;
|
|
291
|
+
topics: Record<string, {
|
|
292
|
+
type: "headers" | "topic" | "direct" | "fanout";
|
|
293
|
+
durable: boolean;
|
|
294
|
+
autoDelete: boolean;
|
|
295
|
+
}>;
|
|
296
|
+
type: "kafka";
|
|
297
|
+
connection: string | {
|
|
298
|
+
brokers: string | string[];
|
|
299
|
+
ssl: boolean;
|
|
300
|
+
clientId?: string | undefined;
|
|
301
|
+
sasl?: {
|
|
302
|
+
mechanism: "plain" | "scram-sha-256" | "scram-sha-512";
|
|
303
|
+
username: string;
|
|
304
|
+
password: string;
|
|
305
|
+
} | undefined;
|
|
306
|
+
};
|
|
307
|
+
reconnect?: {
|
|
308
|
+
initialDelay: number;
|
|
309
|
+
maxDelay: number;
|
|
310
|
+
multiplier: number;
|
|
311
|
+
maxAttempts: number;
|
|
312
|
+
} | undefined;
|
|
313
|
+
} & {
|
|
314
|
+
exchanges: Array<{
|
|
315
|
+
name: string;
|
|
316
|
+
type: "topic" | "direct" | "fanout" | "headers";
|
|
317
|
+
options?: {
|
|
318
|
+
durable?: boolean;
|
|
319
|
+
autoDelete?: boolean;
|
|
320
|
+
};
|
|
321
|
+
publishers: Array<{
|
|
322
|
+
name: string;
|
|
323
|
+
resolverName: string;
|
|
324
|
+
routingKey: string;
|
|
325
|
+
options?: {
|
|
326
|
+
persistent?: boolean;
|
|
327
|
+
headers?: Record<string, string>;
|
|
328
|
+
};
|
|
329
|
+
}>;
|
|
330
|
+
}>;
|
|
331
|
+
queues: Array<{
|
|
332
|
+
name: string;
|
|
333
|
+
queue?: string;
|
|
334
|
+
groupId?: string;
|
|
335
|
+
bindings: Array<{
|
|
336
|
+
exchange: string;
|
|
337
|
+
pattern: string;
|
|
338
|
+
}>;
|
|
339
|
+
queueOptions?: {
|
|
340
|
+
durable?: boolean;
|
|
341
|
+
autoDelete?: boolean;
|
|
342
|
+
};
|
|
343
|
+
handler?: import("./queue").SubscriberHandler;
|
|
344
|
+
}>;
|
|
345
|
+
}, {
|
|
346
|
+
name: string;
|
|
347
|
+
autoSetup: boolean;
|
|
348
|
+
enabled: boolean;
|
|
349
|
+
publishers: Record<string, {
|
|
350
|
+
topic: string;
|
|
351
|
+
persistent: boolean;
|
|
352
|
+
routingKey?: string | undefined;
|
|
353
|
+
headers?: Record<string, string> | undefined;
|
|
354
|
+
}>;
|
|
355
|
+
subscribers: Record<string, {
|
|
356
|
+
topic: string;
|
|
357
|
+
pattern: string;
|
|
358
|
+
queue?: string | undefined;
|
|
359
|
+
group?: string | undefined;
|
|
360
|
+
durable?: boolean | undefined;
|
|
361
|
+
autoDelete?: boolean | undefined;
|
|
362
|
+
handler?: import("./queue").SubscriberHandler | undefined;
|
|
363
|
+
}>;
|
|
364
|
+
topics: Record<string, {
|
|
365
|
+
type: "headers" | "topic" | "direct" | "fanout";
|
|
366
|
+
durable: boolean;
|
|
367
|
+
autoDelete: boolean;
|
|
368
|
+
}>;
|
|
369
|
+
type: "kafka";
|
|
370
|
+
connection: string | {
|
|
371
|
+
brokers: string | string[];
|
|
372
|
+
ssl: boolean;
|
|
373
|
+
clientId?: string | undefined;
|
|
374
|
+
sasl?: {
|
|
375
|
+
mechanism: "plain" | "scram-sha-256" | "scram-sha-512";
|
|
376
|
+
username: string;
|
|
377
|
+
password: string;
|
|
378
|
+
} | undefined;
|
|
379
|
+
};
|
|
380
|
+
reconnect?: {
|
|
381
|
+
initialDelay: number;
|
|
382
|
+
maxDelay: number;
|
|
383
|
+
multiplier: number;
|
|
384
|
+
maxAttempts: number;
|
|
385
|
+
} | undefined;
|
|
386
|
+
}>>], "type">>>>;
|
|
387
|
+
cron: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
388
|
+
name: z.ZodString;
|
|
389
|
+
pattern: z.ZodString;
|
|
390
|
+
query: z.ZodOptional<z.ZodString>;
|
|
391
|
+
variables: z.ZodOptional<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>>;
|
|
392
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
393
|
+
paused: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
394
|
+
maxRuns: z.ZodOptional<z.ZodNumber>;
|
|
395
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
396
|
+
startAt: z.ZodOptional<z.ZodString>;
|
|
397
|
+
stopAt: z.ZodOptional<z.ZodString>;
|
|
398
|
+
protect: z.ZodOptional<z.ZodBoolean>;
|
|
399
|
+
catchErrors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
400
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
401
|
+
onTick: z.ZodOptional<z.ZodCustom<import("./cron").TickCallback<Record<string, unknown>>, import("./cron").TickCallback<Record<string, unknown>>>>;
|
|
402
|
+
}, z.core.$strip>>>>;
|
|
403
|
+
operations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
404
|
+
description: z.ZodOptional<z.ZodString>;
|
|
405
|
+
query: z.ZodOptional<z.ZodString>;
|
|
406
|
+
handler: z.ZodOptional<z.ZodCustom<import("./operation").OperationHandler<any, any, any>, import("./operation").OperationHandler<any, any, any>>>;
|
|
407
|
+
input: z.ZodOptional<z.ZodCustom<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
408
|
+
output: z.ZodOptional<z.ZodCustom<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
409
|
+
hooks: z.ZodOptional<z.ZodObject<{
|
|
410
|
+
init: z.ZodOptional<z.ZodCustom<import("./operation").OperationInitHook<any>, import("./operation").OperationInitHook<any>>>;
|
|
411
|
+
beforeRequest: z.ZodOptional<z.ZodCustom<import("./operation").OperationBeforeRequestHook<any, any, any>, import("./operation").OperationBeforeRequestHook<any, any, any>>>;
|
|
412
|
+
afterRequest: z.ZodOptional<z.ZodCustom<import("./operation").OperationAfterRequestHook<any>, import("./operation").OperationAfterRequestHook<any>>>;
|
|
413
|
+
}, z.core.$strip>>;
|
|
414
|
+
rest: z.ZodOptional<z.ZodObject<{
|
|
415
|
+
path: z.ZodString;
|
|
416
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
417
|
+
GET: "GET";
|
|
418
|
+
POST: "POST";
|
|
419
|
+
PUT: "PUT";
|
|
420
|
+
PATCH: "PATCH";
|
|
421
|
+
DELETE: "DELETE";
|
|
422
|
+
}>>;
|
|
423
|
+
pathParams: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
424
|
+
queryParams: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
425
|
+
body: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
426
|
+
}, z.core.$strip>>;
|
|
427
|
+
graphql: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
428
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
429
|
+
name: z.ZodOptional<z.ZodString>;
|
|
430
|
+
}, z.core.$strip>>>;
|
|
431
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
432
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
433
|
+
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
434
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
435
|
+
allowStale: z.ZodOptional<z.ZodBoolean>;
|
|
436
|
+
updateAgeOnGet: z.ZodOptional<z.ZodBoolean>;
|
|
437
|
+
updateAgeOnHas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
438
|
+
ttlAutopurge: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
439
|
+
}, z.core.$strip>>;
|
|
440
|
+
}, z.core.$strip>>>>;
|
|
441
|
+
auth: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
442
|
+
enabled: z.ZodBoolean;
|
|
443
|
+
database: z.ZodString;
|
|
444
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
445
|
+
autoCreateTables: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
446
|
+
permissions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodObject<{
|
|
447
|
+
tables: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodObject<{
|
|
448
|
+
columns: z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodArray<z.ZodString>]>;
|
|
449
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
450
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
451
|
+
column: z.ZodString;
|
|
452
|
+
direction: z.ZodEnum<{
|
|
453
|
+
ASC: "ASC";
|
|
454
|
+
DESC: "DESC";
|
|
455
|
+
ASC_NULLS_FIRST: "ASC_NULLS_FIRST";
|
|
456
|
+
ASC_NULLS_LAST: "ASC_NULLS_LAST";
|
|
457
|
+
DESC_NULLS_FIRST: "DESC_NULLS_FIRST";
|
|
458
|
+
DESC_NULLS_LAST: "DESC_NULLS_LAST";
|
|
459
|
+
}>;
|
|
460
|
+
}, z.core.$strip>>>;
|
|
461
|
+
}, z.core.$strip>]>>]>>>;
|
|
462
|
+
storedProcedures: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
463
|
+
queues: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
464
|
+
operations: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
465
|
+
remoteSchemas: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
466
|
+
remoteREST: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
467
|
+
}, z.core.$strip>>>>>;
|
|
468
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
469
|
+
permissions: {
|
|
470
|
+
[k: string]: {
|
|
471
|
+
tables: "ALL" | {
|
|
472
|
+
[x: string]: {
|
|
473
|
+
columns: "ALL" | string[];
|
|
474
|
+
} & import("../configuration").TableFilter;
|
|
475
|
+
};
|
|
476
|
+
storedProcedures: string[] | "ALL";
|
|
477
|
+
queues: string[] | "ALL";
|
|
478
|
+
operations: string[] | "ALL";
|
|
479
|
+
remoteSchemas: string[] | "ALL";
|
|
480
|
+
remoteREST: string[] | "ALL";
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
enabled: boolean;
|
|
484
|
+
database: string;
|
|
485
|
+
schema: string;
|
|
486
|
+
autoCreateTables: boolean;
|
|
487
|
+
} | undefined, {
|
|
488
|
+
enabled: boolean;
|
|
489
|
+
database: string;
|
|
490
|
+
schema: string;
|
|
491
|
+
autoCreateTables: boolean;
|
|
492
|
+
permissions: Record<string, {
|
|
493
|
+
tables: string[] | "ALL" | Record<string, "ALL" | {
|
|
494
|
+
columns: string[] | "ALL";
|
|
495
|
+
filter?: Record<string, Record<string, unknown>> | undefined;
|
|
496
|
+
orderBy?: {
|
|
497
|
+
column: string;
|
|
498
|
+
direction: "ASC" | "DESC" | "ASC_NULLS_FIRST" | "ASC_NULLS_LAST" | "DESC_NULLS_FIRST" | "DESC_NULLS_LAST";
|
|
499
|
+
}[] | undefined;
|
|
500
|
+
}>;
|
|
501
|
+
storedProcedures: string[] | "ALL";
|
|
502
|
+
queues: string[] | "ALL";
|
|
503
|
+
operations: string[] | "ALL";
|
|
504
|
+
remoteSchemas: string[] | "ALL";
|
|
505
|
+
remoteREST: string[] | "ALL";
|
|
506
|
+
}>;
|
|
507
|
+
}>>;
|
|
508
|
+
remoteSchemas: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
509
|
+
name: z.ZodString;
|
|
510
|
+
url: z.ZodURL;
|
|
511
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
512
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
513
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
514
|
+
forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
515
|
+
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
516
|
+
introspection: z.ZodOptional<z.ZodObject<{
|
|
517
|
+
interval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
518
|
+
}, z.core.$strip>>;
|
|
519
|
+
}, z.core.$strip>>>>;
|
|
520
|
+
remoteREST: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
521
|
+
name: z.ZodString;
|
|
522
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
523
|
+
specUrl: z.ZodOptional<z.ZodURL>;
|
|
524
|
+
specPath: z.ZodOptional<z.ZodString>;
|
|
525
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
526
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
527
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
528
|
+
forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
529
|
+
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
530
|
+
}, z.core.$strip>>>>;
|
|
531
|
+
ai: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
532
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
533
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
534
|
+
endpoint: z.ZodDefault<z.ZodString>;
|
|
535
|
+
mcp: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
536
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
537
|
+
}, z.core.$strip>>>;
|
|
538
|
+
}, z.core.$strip>>>;
|
|
539
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
540
|
+
enabledDatabases: {
|
|
541
|
+
name: string;
|
|
542
|
+
enabled: boolean;
|
|
543
|
+
type: "mssql" | "mysql" | "pg";
|
|
544
|
+
connection: {
|
|
545
|
+
host: string;
|
|
546
|
+
port: number;
|
|
547
|
+
user: string;
|
|
548
|
+
password: string;
|
|
549
|
+
database: string;
|
|
550
|
+
};
|
|
551
|
+
fieldNaming: string;
|
|
552
|
+
repository?: import("../../config").CustomRepositoryFactory<import("./db").DatabaseType> | undefined;
|
|
553
|
+
onConnect?: import("../../config").OnConnectHandler<import("./db").DatabaseType> | undefined;
|
|
554
|
+
schema?: {
|
|
555
|
+
database: Record<string, {
|
|
556
|
+
columns: {
|
|
557
|
+
name: string;
|
|
558
|
+
dataType: string;
|
|
559
|
+
isNullable: boolean;
|
|
560
|
+
description: string | null;
|
|
561
|
+
virtual?: boolean | undefined;
|
|
562
|
+
function?: string | undefined;
|
|
563
|
+
params?: string[] | undefined;
|
|
564
|
+
expression?: string | undefined;
|
|
565
|
+
}[];
|
|
566
|
+
relationships: {
|
|
567
|
+
schema: string;
|
|
568
|
+
name: string;
|
|
569
|
+
columns: {
|
|
570
|
+
source: string;
|
|
571
|
+
target: string;
|
|
572
|
+
}[];
|
|
573
|
+
}[];
|
|
574
|
+
columnDescriptions: Record<string, string>;
|
|
575
|
+
description?: string | undefined;
|
|
576
|
+
}>;
|
|
577
|
+
excludedTables: string[];
|
|
578
|
+
} | undefined;
|
|
579
|
+
connectionOptions?: {
|
|
580
|
+
max: number;
|
|
581
|
+
idleTimeout: number;
|
|
582
|
+
connectionTimeout: number;
|
|
583
|
+
maxLifetime: number;
|
|
584
|
+
tls: boolean;
|
|
585
|
+
prepare: boolean;
|
|
586
|
+
bigint: boolean;
|
|
587
|
+
} | {
|
|
588
|
+
pool: {
|
|
589
|
+
max: number;
|
|
590
|
+
min: number;
|
|
591
|
+
idleTimeout: number;
|
|
592
|
+
};
|
|
593
|
+
connectionTimeout: number;
|
|
594
|
+
requestTimeout: number;
|
|
595
|
+
encrypt: boolean;
|
|
596
|
+
trustServerCertificate: boolean;
|
|
597
|
+
trustedConnection: boolean;
|
|
598
|
+
parseJSON: boolean;
|
|
599
|
+
} | undefined;
|
|
600
|
+
}[];
|
|
601
|
+
auth: {
|
|
602
|
+
databaseEntity: {
|
|
603
|
+
name: string;
|
|
604
|
+
enabled: boolean;
|
|
605
|
+
type: "mssql" | "mysql" | "pg";
|
|
606
|
+
connection: {
|
|
607
|
+
host: string;
|
|
608
|
+
port: number;
|
|
609
|
+
user: string;
|
|
610
|
+
password: string;
|
|
611
|
+
database: string;
|
|
612
|
+
};
|
|
613
|
+
fieldNaming: string;
|
|
614
|
+
repository?: import("../../config").CustomRepositoryFactory<import("./db").DatabaseType> | undefined;
|
|
615
|
+
onConnect?: import("../../config").OnConnectHandler<import("./db").DatabaseType> | undefined;
|
|
616
|
+
schema?: {
|
|
617
|
+
database: Record<string, {
|
|
618
|
+
columns: {
|
|
619
|
+
name: string;
|
|
620
|
+
dataType: string;
|
|
621
|
+
isNullable: boolean;
|
|
622
|
+
description: string | null;
|
|
623
|
+
virtual?: boolean | undefined;
|
|
624
|
+
function?: string | undefined;
|
|
625
|
+
params?: string[] | undefined;
|
|
626
|
+
expression?: string | undefined;
|
|
627
|
+
}[];
|
|
628
|
+
relationships: {
|
|
629
|
+
schema: string;
|
|
630
|
+
name: string;
|
|
631
|
+
columns: {
|
|
632
|
+
source: string;
|
|
633
|
+
target: string;
|
|
634
|
+
}[];
|
|
635
|
+
}[];
|
|
636
|
+
columnDescriptions: Record<string, string>;
|
|
637
|
+
description?: string | undefined;
|
|
638
|
+
}>;
|
|
639
|
+
excludedTables: string[];
|
|
640
|
+
} | undefined;
|
|
641
|
+
connectionOptions?: {
|
|
642
|
+
max: number;
|
|
643
|
+
idleTimeout: number;
|
|
644
|
+
connectionTimeout: number;
|
|
645
|
+
maxLifetime: number;
|
|
646
|
+
tls: boolean;
|
|
647
|
+
prepare: boolean;
|
|
648
|
+
bigint: boolean;
|
|
649
|
+
} | {
|
|
650
|
+
pool: {
|
|
651
|
+
max: number;
|
|
652
|
+
min: number;
|
|
653
|
+
idleTimeout: number;
|
|
654
|
+
};
|
|
655
|
+
connectionTimeout: number;
|
|
656
|
+
requestTimeout: number;
|
|
657
|
+
encrypt: boolean;
|
|
658
|
+
trustServerCertificate: boolean;
|
|
659
|
+
trustedConnection: boolean;
|
|
660
|
+
parseJSON: boolean;
|
|
661
|
+
} | undefined;
|
|
662
|
+
};
|
|
663
|
+
permissions: {
|
|
664
|
+
[k: string]: {
|
|
665
|
+
tables: "ALL" | {
|
|
666
|
+
[x: string]: {
|
|
667
|
+
columns: "ALL" | string[];
|
|
668
|
+
} & import("../configuration").TableFilter;
|
|
669
|
+
};
|
|
670
|
+
storedProcedures: string[] | "ALL";
|
|
671
|
+
queues: string[] | "ALL";
|
|
672
|
+
operations: string[] | "ALL";
|
|
673
|
+
remoteSchemas: string[] | "ALL";
|
|
674
|
+
remoteREST: string[] | "ALL";
|
|
675
|
+
};
|
|
676
|
+
};
|
|
677
|
+
enabled: boolean;
|
|
678
|
+
database: string;
|
|
679
|
+
schema: string;
|
|
680
|
+
autoCreateTables: boolean;
|
|
681
|
+
};
|
|
682
|
+
name: string;
|
|
683
|
+
version: string;
|
|
684
|
+
tokenStrategy: "jwt" | "paseto_local" | "paseto_public";
|
|
685
|
+
databases: {
|
|
686
|
+
name: string;
|
|
687
|
+
enabled: boolean;
|
|
688
|
+
type: "mssql" | "mysql" | "pg";
|
|
689
|
+
connection: {
|
|
690
|
+
host: string;
|
|
691
|
+
port: number;
|
|
692
|
+
user: string;
|
|
693
|
+
password: string;
|
|
694
|
+
database: string;
|
|
695
|
+
};
|
|
696
|
+
fieldNaming: string;
|
|
697
|
+
repository?: import("../../config").CustomRepositoryFactory<import("./db").DatabaseType> | undefined;
|
|
698
|
+
onConnect?: import("../../config").OnConnectHandler<import("./db").DatabaseType> | undefined;
|
|
699
|
+
schema?: {
|
|
700
|
+
database: Record<string, {
|
|
701
|
+
columns: {
|
|
702
|
+
name: string;
|
|
703
|
+
dataType: string;
|
|
704
|
+
isNullable: boolean;
|
|
705
|
+
description: string | null;
|
|
706
|
+
virtual?: boolean | undefined;
|
|
707
|
+
function?: string | undefined;
|
|
708
|
+
params?: string[] | undefined;
|
|
709
|
+
expression?: string | undefined;
|
|
710
|
+
}[];
|
|
711
|
+
relationships: {
|
|
712
|
+
schema: string;
|
|
713
|
+
name: string;
|
|
714
|
+
columns: {
|
|
715
|
+
source: string;
|
|
716
|
+
target: string;
|
|
717
|
+
}[];
|
|
718
|
+
}[];
|
|
719
|
+
columnDescriptions: Record<string, string>;
|
|
720
|
+
description?: string | undefined;
|
|
721
|
+
}>;
|
|
722
|
+
excludedTables: string[];
|
|
723
|
+
} | undefined;
|
|
724
|
+
connectionOptions?: {
|
|
725
|
+
max: number;
|
|
726
|
+
idleTimeout: number;
|
|
727
|
+
connectionTimeout: number;
|
|
728
|
+
maxLifetime: number;
|
|
729
|
+
tls: boolean;
|
|
730
|
+
prepare: boolean;
|
|
731
|
+
bigint: boolean;
|
|
732
|
+
} | {
|
|
733
|
+
pool: {
|
|
734
|
+
max: number;
|
|
735
|
+
min: number;
|
|
736
|
+
idleTimeout: number;
|
|
737
|
+
};
|
|
738
|
+
connectionTimeout: number;
|
|
739
|
+
requestTimeout: number;
|
|
740
|
+
encrypt: boolean;
|
|
741
|
+
trustServerCertificate: boolean;
|
|
742
|
+
trustedConnection: boolean;
|
|
743
|
+
parseJSON: boolean;
|
|
744
|
+
} | undefined;
|
|
745
|
+
}[];
|
|
746
|
+
queues: (({
|
|
747
|
+
name: string;
|
|
748
|
+
autoSetup: boolean;
|
|
749
|
+
enabled: boolean;
|
|
750
|
+
publishers: Record<string, {
|
|
751
|
+
topic: string;
|
|
752
|
+
persistent: boolean;
|
|
753
|
+
routingKey?: string | undefined;
|
|
754
|
+
headers?: Record<string, string> | undefined;
|
|
755
|
+
}>;
|
|
756
|
+
subscribers: Record<string, {
|
|
757
|
+
topic: string;
|
|
758
|
+
pattern: string;
|
|
759
|
+
queue?: string | undefined;
|
|
760
|
+
group?: string | undefined;
|
|
761
|
+
durable?: boolean | undefined;
|
|
762
|
+
autoDelete?: boolean | undefined;
|
|
763
|
+
handler?: import("./queue").SubscriberHandler | undefined;
|
|
764
|
+
}>;
|
|
765
|
+
topics: Record<string, {
|
|
766
|
+
type: "headers" | "topic" | "direct" | "fanout";
|
|
767
|
+
durable: boolean;
|
|
768
|
+
autoDelete: boolean;
|
|
769
|
+
}>;
|
|
770
|
+
type: "rabbitmq";
|
|
771
|
+
connection: string | {
|
|
772
|
+
hostname: string;
|
|
773
|
+
port: number;
|
|
774
|
+
vhost: string;
|
|
775
|
+
username?: string | undefined;
|
|
776
|
+
password?: string | undefined;
|
|
777
|
+
};
|
|
778
|
+
reconnect?: {
|
|
779
|
+
initialDelay: number;
|
|
780
|
+
maxDelay: number;
|
|
781
|
+
multiplier: number;
|
|
782
|
+
maxAttempts: number;
|
|
783
|
+
} | undefined;
|
|
784
|
+
} & {
|
|
785
|
+
exchanges: Array<{
|
|
786
|
+
name: string;
|
|
787
|
+
type: "topic" | "direct" | "fanout" | "headers";
|
|
788
|
+
options?: {
|
|
789
|
+
durable?: boolean;
|
|
790
|
+
autoDelete?: boolean;
|
|
791
|
+
};
|
|
792
|
+
publishers: Array<{
|
|
793
|
+
name: string;
|
|
794
|
+
resolverName: string;
|
|
795
|
+
routingKey: string;
|
|
796
|
+
options?: {
|
|
797
|
+
persistent?: boolean;
|
|
798
|
+
headers?: Record<string, string>;
|
|
799
|
+
};
|
|
800
|
+
}>;
|
|
801
|
+
}>;
|
|
802
|
+
queues: Array<{
|
|
803
|
+
name: string;
|
|
804
|
+
queue?: string;
|
|
805
|
+
groupId?: string;
|
|
806
|
+
bindings: Array<{
|
|
807
|
+
exchange: string;
|
|
808
|
+
pattern: string;
|
|
809
|
+
}>;
|
|
810
|
+
queueOptions?: {
|
|
811
|
+
durable?: boolean;
|
|
812
|
+
autoDelete?: boolean;
|
|
813
|
+
};
|
|
814
|
+
handler?: import("./queue").SubscriberHandler;
|
|
815
|
+
}>;
|
|
816
|
+
}) | ({
|
|
817
|
+
name: string;
|
|
818
|
+
autoSetup: boolean;
|
|
819
|
+
enabled: boolean;
|
|
820
|
+
publishers: Record<string, {
|
|
821
|
+
topic: string;
|
|
822
|
+
persistent: boolean;
|
|
823
|
+
routingKey?: string | undefined;
|
|
824
|
+
headers?: Record<string, string> | undefined;
|
|
825
|
+
}>;
|
|
826
|
+
subscribers: Record<string, {
|
|
827
|
+
topic: string;
|
|
828
|
+
pattern: string;
|
|
829
|
+
queue?: string | undefined;
|
|
830
|
+
group?: string | undefined;
|
|
831
|
+
durable?: boolean | undefined;
|
|
832
|
+
autoDelete?: boolean | undefined;
|
|
833
|
+
handler?: import("./queue").SubscriberHandler | undefined;
|
|
834
|
+
}>;
|
|
835
|
+
topics: Record<string, {
|
|
836
|
+
type: "headers" | "topic" | "direct" | "fanout";
|
|
837
|
+
durable: boolean;
|
|
838
|
+
autoDelete: boolean;
|
|
839
|
+
}>;
|
|
840
|
+
type: "kafka";
|
|
841
|
+
connection: string | {
|
|
842
|
+
brokers: string | string[];
|
|
843
|
+
ssl: boolean;
|
|
844
|
+
clientId?: string | undefined;
|
|
845
|
+
sasl?: {
|
|
846
|
+
mechanism: "plain" | "scram-sha-256" | "scram-sha-512";
|
|
847
|
+
username: string;
|
|
848
|
+
password: string;
|
|
849
|
+
} | undefined;
|
|
850
|
+
};
|
|
851
|
+
reconnect?: {
|
|
852
|
+
initialDelay: number;
|
|
853
|
+
maxDelay: number;
|
|
854
|
+
multiplier: number;
|
|
855
|
+
maxAttempts: number;
|
|
856
|
+
} | undefined;
|
|
857
|
+
} & {
|
|
858
|
+
exchanges: Array<{
|
|
859
|
+
name: string;
|
|
860
|
+
type: "topic" | "direct" | "fanout" | "headers";
|
|
861
|
+
options?: {
|
|
862
|
+
durable?: boolean;
|
|
863
|
+
autoDelete?: boolean;
|
|
864
|
+
};
|
|
865
|
+
publishers: Array<{
|
|
866
|
+
name: string;
|
|
867
|
+
resolverName: string;
|
|
868
|
+
routingKey: string;
|
|
869
|
+
options?: {
|
|
870
|
+
persistent?: boolean;
|
|
871
|
+
headers?: Record<string, string>;
|
|
872
|
+
};
|
|
873
|
+
}>;
|
|
874
|
+
}>;
|
|
875
|
+
queues: Array<{
|
|
876
|
+
name: string;
|
|
877
|
+
queue?: string;
|
|
878
|
+
groupId?: string;
|
|
879
|
+
bindings: Array<{
|
|
880
|
+
exchange: string;
|
|
881
|
+
pattern: string;
|
|
882
|
+
}>;
|
|
883
|
+
queueOptions?: {
|
|
884
|
+
durable?: boolean;
|
|
885
|
+
autoDelete?: boolean;
|
|
886
|
+
};
|
|
887
|
+
handler?: import("./queue").SubscriberHandler;
|
|
888
|
+
}>;
|
|
889
|
+
}))[];
|
|
890
|
+
cron: {
|
|
891
|
+
name: string;
|
|
892
|
+
pattern: string;
|
|
893
|
+
paused: boolean;
|
|
894
|
+
catchErrors: boolean;
|
|
895
|
+
query?: string | undefined;
|
|
896
|
+
variables?: Record<string, unknown> | undefined;
|
|
897
|
+
timezone?: string | undefined;
|
|
898
|
+
maxRuns?: number | undefined;
|
|
899
|
+
interval?: number | undefined;
|
|
900
|
+
startAt?: string | undefined;
|
|
901
|
+
stopAt?: string | undefined;
|
|
902
|
+
protect?: boolean | undefined;
|
|
903
|
+
context?: Record<string, any> | undefined;
|
|
904
|
+
onTick?: import("./cron").TickCallback<Record<string, unknown>> | undefined;
|
|
905
|
+
}[];
|
|
906
|
+
operations: Record<string, {
|
|
907
|
+
graphql: {
|
|
908
|
+
enabled: boolean;
|
|
909
|
+
name?: string | undefined;
|
|
910
|
+
};
|
|
911
|
+
description?: string | undefined;
|
|
912
|
+
query?: string | undefined;
|
|
913
|
+
handler?: import("./operation").OperationHandler<any, any, any> | undefined;
|
|
914
|
+
input?: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>> | undefined;
|
|
915
|
+
output?: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>> | undefined;
|
|
916
|
+
hooks?: {
|
|
917
|
+
init?: import("./operation").OperationInitHook<any> | undefined;
|
|
918
|
+
beforeRequest?: import("./operation").OperationBeforeRequestHook<any, any, any> | undefined;
|
|
919
|
+
afterRequest?: import("./operation").OperationAfterRequestHook<any> | undefined;
|
|
920
|
+
} | undefined;
|
|
921
|
+
rest?: {
|
|
922
|
+
path: string;
|
|
923
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
924
|
+
pathParams?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
925
|
+
queryParams?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
926
|
+
body?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
927
|
+
} | undefined;
|
|
928
|
+
cache?: {
|
|
929
|
+
updateAgeOnHas: boolean;
|
|
930
|
+
ttlAutopurge: boolean;
|
|
931
|
+
max?: number | undefined;
|
|
932
|
+
maxSize?: number | undefined;
|
|
933
|
+
ttl?: number | undefined;
|
|
934
|
+
allowStale?: boolean | undefined;
|
|
935
|
+
updateAgeOnGet?: boolean | undefined;
|
|
936
|
+
} | undefined;
|
|
937
|
+
}>;
|
|
938
|
+
remoteSchemas: {
|
|
939
|
+
name: string;
|
|
940
|
+
url: string;
|
|
941
|
+
enabled: boolean;
|
|
942
|
+
timeout: number;
|
|
943
|
+
prefix?: string | undefined;
|
|
944
|
+
headers?: Record<string, string> | undefined;
|
|
945
|
+
forwardHeaders?: string[] | undefined;
|
|
946
|
+
introspection?: {
|
|
947
|
+
interval: number;
|
|
948
|
+
} | undefined;
|
|
949
|
+
}[];
|
|
950
|
+
remoteREST: {
|
|
951
|
+
name: string;
|
|
952
|
+
enabled: boolean;
|
|
953
|
+
timeout: number;
|
|
954
|
+
url?: string | undefined;
|
|
955
|
+
specUrl?: string | undefined;
|
|
956
|
+
specPath?: string | undefined;
|
|
957
|
+
prefix?: string | undefined;
|
|
958
|
+
headers?: Record<string, string> | undefined;
|
|
959
|
+
forwardHeaders?: string[] | undefined;
|
|
960
|
+
}[];
|
|
961
|
+
ai: {
|
|
962
|
+
enabled: boolean;
|
|
963
|
+
endpoint: string;
|
|
964
|
+
mcp: {
|
|
965
|
+
enabled: boolean;
|
|
966
|
+
};
|
|
967
|
+
systemPrompt?: string | undefined;
|
|
968
|
+
};
|
|
969
|
+
}, {
|
|
970
|
+
name: string;
|
|
971
|
+
version: string;
|
|
972
|
+
tokenStrategy: "jwt" | "paseto_local" | "paseto_public";
|
|
973
|
+
databases: {
|
|
974
|
+
name: string;
|
|
975
|
+
enabled: boolean;
|
|
976
|
+
type: "mssql" | "mysql" | "pg";
|
|
977
|
+
connection: {
|
|
978
|
+
host: string;
|
|
979
|
+
port: number;
|
|
980
|
+
user: string;
|
|
981
|
+
password: string;
|
|
982
|
+
database: string;
|
|
983
|
+
};
|
|
984
|
+
fieldNaming: string;
|
|
985
|
+
repository?: import("../../config").CustomRepositoryFactory<import("./db").DatabaseType> | undefined;
|
|
986
|
+
onConnect?: import("../../config").OnConnectHandler<import("./db").DatabaseType> | undefined;
|
|
987
|
+
schema?: {
|
|
988
|
+
database: Record<string, {
|
|
989
|
+
columns: {
|
|
990
|
+
name: string;
|
|
991
|
+
dataType: string;
|
|
992
|
+
isNullable: boolean;
|
|
993
|
+
description: string | null;
|
|
994
|
+
virtual?: boolean | undefined;
|
|
995
|
+
function?: string | undefined;
|
|
996
|
+
params?: string[] | undefined;
|
|
997
|
+
expression?: string | undefined;
|
|
998
|
+
}[];
|
|
999
|
+
relationships: {
|
|
1000
|
+
schema: string;
|
|
1001
|
+
name: string;
|
|
1002
|
+
columns: {
|
|
1003
|
+
source: string;
|
|
1004
|
+
target: string;
|
|
1005
|
+
}[];
|
|
1006
|
+
}[];
|
|
1007
|
+
columnDescriptions: Record<string, string>;
|
|
1008
|
+
description?: string | undefined;
|
|
1009
|
+
}>;
|
|
1010
|
+
excludedTables: string[];
|
|
1011
|
+
} | undefined;
|
|
1012
|
+
connectionOptions?: {
|
|
1013
|
+
max: number;
|
|
1014
|
+
idleTimeout: number;
|
|
1015
|
+
connectionTimeout: number;
|
|
1016
|
+
maxLifetime: number;
|
|
1017
|
+
tls: boolean;
|
|
1018
|
+
prepare: boolean;
|
|
1019
|
+
bigint: boolean;
|
|
1020
|
+
} | {
|
|
1021
|
+
pool: {
|
|
1022
|
+
max: number;
|
|
1023
|
+
min: number;
|
|
1024
|
+
idleTimeout: number;
|
|
1025
|
+
};
|
|
1026
|
+
connectionTimeout: number;
|
|
1027
|
+
requestTimeout: number;
|
|
1028
|
+
encrypt: boolean;
|
|
1029
|
+
trustServerCertificate: boolean;
|
|
1030
|
+
trustedConnection: boolean;
|
|
1031
|
+
parseJSON: boolean;
|
|
1032
|
+
} | undefined;
|
|
1033
|
+
}[];
|
|
1034
|
+
queues: (({
|
|
1035
|
+
name: string;
|
|
1036
|
+
autoSetup: boolean;
|
|
1037
|
+
enabled: boolean;
|
|
1038
|
+
publishers: Record<string, {
|
|
1039
|
+
topic: string;
|
|
1040
|
+
persistent: boolean;
|
|
1041
|
+
routingKey?: string | undefined;
|
|
1042
|
+
headers?: Record<string, string> | undefined;
|
|
1043
|
+
}>;
|
|
1044
|
+
subscribers: Record<string, {
|
|
1045
|
+
topic: string;
|
|
1046
|
+
pattern: string;
|
|
1047
|
+
queue?: string | undefined;
|
|
1048
|
+
group?: string | undefined;
|
|
1049
|
+
durable?: boolean | undefined;
|
|
1050
|
+
autoDelete?: boolean | undefined;
|
|
1051
|
+
handler?: import("./queue").SubscriberHandler | undefined;
|
|
1052
|
+
}>;
|
|
1053
|
+
topics: Record<string, {
|
|
1054
|
+
type: "headers" | "topic" | "direct" | "fanout";
|
|
1055
|
+
durable: boolean;
|
|
1056
|
+
autoDelete: boolean;
|
|
1057
|
+
}>;
|
|
1058
|
+
type: "rabbitmq";
|
|
1059
|
+
connection: string | {
|
|
1060
|
+
hostname: string;
|
|
1061
|
+
port: number;
|
|
1062
|
+
vhost: string;
|
|
1063
|
+
username?: string | undefined;
|
|
1064
|
+
password?: string | undefined;
|
|
1065
|
+
};
|
|
1066
|
+
reconnect?: {
|
|
1067
|
+
initialDelay: number;
|
|
1068
|
+
maxDelay: number;
|
|
1069
|
+
multiplier: number;
|
|
1070
|
+
maxAttempts: number;
|
|
1071
|
+
} | undefined;
|
|
1072
|
+
} & {
|
|
1073
|
+
exchanges: Array<{
|
|
1074
|
+
name: string;
|
|
1075
|
+
type: "topic" | "direct" | "fanout" | "headers";
|
|
1076
|
+
options?: {
|
|
1077
|
+
durable?: boolean;
|
|
1078
|
+
autoDelete?: boolean;
|
|
1079
|
+
};
|
|
1080
|
+
publishers: Array<{
|
|
1081
|
+
name: string;
|
|
1082
|
+
resolverName: string;
|
|
1083
|
+
routingKey: string;
|
|
1084
|
+
options?: {
|
|
1085
|
+
persistent?: boolean;
|
|
1086
|
+
headers?: Record<string, string>;
|
|
1087
|
+
};
|
|
1088
|
+
}>;
|
|
1089
|
+
}>;
|
|
1090
|
+
queues: Array<{
|
|
1091
|
+
name: string;
|
|
1092
|
+
queue?: string;
|
|
1093
|
+
groupId?: string;
|
|
1094
|
+
bindings: Array<{
|
|
1095
|
+
exchange: string;
|
|
1096
|
+
pattern: string;
|
|
1097
|
+
}>;
|
|
1098
|
+
queueOptions?: {
|
|
1099
|
+
durable?: boolean;
|
|
1100
|
+
autoDelete?: boolean;
|
|
1101
|
+
};
|
|
1102
|
+
handler?: import("./queue").SubscriberHandler;
|
|
1103
|
+
}>;
|
|
1104
|
+
}) | ({
|
|
1105
|
+
name: string;
|
|
1106
|
+
autoSetup: boolean;
|
|
1107
|
+
enabled: boolean;
|
|
1108
|
+
publishers: Record<string, {
|
|
1109
|
+
topic: string;
|
|
1110
|
+
persistent: boolean;
|
|
1111
|
+
routingKey?: string | undefined;
|
|
1112
|
+
headers?: Record<string, string> | undefined;
|
|
1113
|
+
}>;
|
|
1114
|
+
subscribers: Record<string, {
|
|
1115
|
+
topic: string;
|
|
1116
|
+
pattern: string;
|
|
1117
|
+
queue?: string | undefined;
|
|
1118
|
+
group?: string | undefined;
|
|
1119
|
+
durable?: boolean | undefined;
|
|
1120
|
+
autoDelete?: boolean | undefined;
|
|
1121
|
+
handler?: import("./queue").SubscriberHandler | undefined;
|
|
1122
|
+
}>;
|
|
1123
|
+
topics: Record<string, {
|
|
1124
|
+
type: "headers" | "topic" | "direct" | "fanout";
|
|
1125
|
+
durable: boolean;
|
|
1126
|
+
autoDelete: boolean;
|
|
1127
|
+
}>;
|
|
1128
|
+
type: "kafka";
|
|
1129
|
+
connection: string | {
|
|
1130
|
+
brokers: string | string[];
|
|
1131
|
+
ssl: boolean;
|
|
1132
|
+
clientId?: string | undefined;
|
|
1133
|
+
sasl?: {
|
|
1134
|
+
mechanism: "plain" | "scram-sha-256" | "scram-sha-512";
|
|
1135
|
+
username: string;
|
|
1136
|
+
password: string;
|
|
1137
|
+
} | undefined;
|
|
1138
|
+
};
|
|
1139
|
+
reconnect?: {
|
|
1140
|
+
initialDelay: number;
|
|
1141
|
+
maxDelay: number;
|
|
1142
|
+
multiplier: number;
|
|
1143
|
+
maxAttempts: number;
|
|
1144
|
+
} | undefined;
|
|
1145
|
+
} & {
|
|
1146
|
+
exchanges: Array<{
|
|
1147
|
+
name: string;
|
|
1148
|
+
type: "topic" | "direct" | "fanout" | "headers";
|
|
1149
|
+
options?: {
|
|
1150
|
+
durable?: boolean;
|
|
1151
|
+
autoDelete?: boolean;
|
|
1152
|
+
};
|
|
1153
|
+
publishers: Array<{
|
|
1154
|
+
name: string;
|
|
1155
|
+
resolverName: string;
|
|
1156
|
+
routingKey: string;
|
|
1157
|
+
options?: {
|
|
1158
|
+
persistent?: boolean;
|
|
1159
|
+
headers?: Record<string, string>;
|
|
1160
|
+
};
|
|
1161
|
+
}>;
|
|
1162
|
+
}>;
|
|
1163
|
+
queues: Array<{
|
|
1164
|
+
name: string;
|
|
1165
|
+
queue?: string;
|
|
1166
|
+
groupId?: string;
|
|
1167
|
+
bindings: Array<{
|
|
1168
|
+
exchange: string;
|
|
1169
|
+
pattern: string;
|
|
1170
|
+
}>;
|
|
1171
|
+
queueOptions?: {
|
|
1172
|
+
durable?: boolean;
|
|
1173
|
+
autoDelete?: boolean;
|
|
1174
|
+
};
|
|
1175
|
+
handler?: import("./queue").SubscriberHandler;
|
|
1176
|
+
}>;
|
|
1177
|
+
}))[];
|
|
1178
|
+
cron: {
|
|
1179
|
+
name: string;
|
|
1180
|
+
pattern: string;
|
|
1181
|
+
paused: boolean;
|
|
1182
|
+
catchErrors: boolean;
|
|
1183
|
+
query?: string | undefined;
|
|
1184
|
+
variables?: Record<string, unknown> | undefined;
|
|
1185
|
+
timezone?: string | undefined;
|
|
1186
|
+
maxRuns?: number | undefined;
|
|
1187
|
+
interval?: number | undefined;
|
|
1188
|
+
startAt?: string | undefined;
|
|
1189
|
+
stopAt?: string | undefined;
|
|
1190
|
+
protect?: boolean | undefined;
|
|
1191
|
+
context?: Record<string, any> | undefined;
|
|
1192
|
+
onTick?: import("./cron").TickCallback<Record<string, unknown>> | undefined;
|
|
1193
|
+
}[];
|
|
1194
|
+
operations: Record<string, {
|
|
1195
|
+
graphql: {
|
|
1196
|
+
enabled: boolean;
|
|
1197
|
+
name?: string | undefined;
|
|
1198
|
+
};
|
|
1199
|
+
description?: string | undefined;
|
|
1200
|
+
query?: string | undefined;
|
|
1201
|
+
handler?: import("./operation").OperationHandler<any, any, any> | undefined;
|
|
1202
|
+
input?: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>> | undefined;
|
|
1203
|
+
output?: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>> | undefined;
|
|
1204
|
+
hooks?: {
|
|
1205
|
+
init?: import("./operation").OperationInitHook<any> | undefined;
|
|
1206
|
+
beforeRequest?: import("./operation").OperationBeforeRequestHook<any, any, any> | undefined;
|
|
1207
|
+
afterRequest?: import("./operation").OperationAfterRequestHook<any> | undefined;
|
|
1208
|
+
} | undefined;
|
|
1209
|
+
rest?: {
|
|
1210
|
+
path: string;
|
|
1211
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1212
|
+
pathParams?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
1213
|
+
queryParams?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
1214
|
+
body?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
1215
|
+
} | undefined;
|
|
1216
|
+
cache?: {
|
|
1217
|
+
updateAgeOnHas: boolean;
|
|
1218
|
+
ttlAutopurge: boolean;
|
|
1219
|
+
max?: number | undefined;
|
|
1220
|
+
maxSize?: number | undefined;
|
|
1221
|
+
ttl?: number | undefined;
|
|
1222
|
+
allowStale?: boolean | undefined;
|
|
1223
|
+
updateAgeOnGet?: boolean | undefined;
|
|
1224
|
+
} | undefined;
|
|
1225
|
+
}>;
|
|
1226
|
+
auth: {
|
|
1227
|
+
permissions: {
|
|
1228
|
+
[k: string]: {
|
|
1229
|
+
tables: "ALL" | {
|
|
1230
|
+
[x: string]: {
|
|
1231
|
+
columns: "ALL" | string[];
|
|
1232
|
+
} & import("../configuration").TableFilter;
|
|
1233
|
+
};
|
|
1234
|
+
storedProcedures: string[] | "ALL";
|
|
1235
|
+
queues: string[] | "ALL";
|
|
1236
|
+
operations: string[] | "ALL";
|
|
1237
|
+
remoteSchemas: string[] | "ALL";
|
|
1238
|
+
remoteREST: string[] | "ALL";
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
enabled: boolean;
|
|
1242
|
+
database: string;
|
|
1243
|
+
schema: string;
|
|
1244
|
+
autoCreateTables: boolean;
|
|
1245
|
+
} | undefined;
|
|
1246
|
+
remoteSchemas: {
|
|
1247
|
+
name: string;
|
|
1248
|
+
url: string;
|
|
1249
|
+
enabled: boolean;
|
|
1250
|
+
timeout: number;
|
|
1251
|
+
prefix?: string | undefined;
|
|
1252
|
+
headers?: Record<string, string> | undefined;
|
|
1253
|
+
forwardHeaders?: string[] | undefined;
|
|
1254
|
+
introspection?: {
|
|
1255
|
+
interval: number;
|
|
1256
|
+
} | undefined;
|
|
1257
|
+
}[];
|
|
1258
|
+
remoteREST: {
|
|
1259
|
+
name: string;
|
|
1260
|
+
enabled: boolean;
|
|
1261
|
+
timeout: number;
|
|
1262
|
+
url?: string | undefined;
|
|
1263
|
+
specUrl?: string | undefined;
|
|
1264
|
+
specPath?: string | undefined;
|
|
1265
|
+
prefix?: string | undefined;
|
|
1266
|
+
headers?: Record<string, string> | undefined;
|
|
1267
|
+
forwardHeaders?: string[] | undefined;
|
|
1268
|
+
}[];
|
|
1269
|
+
ai: {
|
|
1270
|
+
enabled: boolean;
|
|
1271
|
+
endpoint: string;
|
|
1272
|
+
mcp: {
|
|
1273
|
+
enabled: boolean;
|
|
1274
|
+
};
|
|
1275
|
+
systemPrompt?: string | undefined;
|
|
1276
|
+
};
|
|
1277
|
+
}>>;
|
|
1278
|
+
//# sourceMappingURL=configuration.d.ts.map
|