@ductape/sdk 0.0.4-v6 → 0.0.4-v60
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/dist/agents/agent-context.d.ts +98 -0
- package/dist/agents/agent-context.js +588 -0
- package/dist/agents/agent-context.js.map +1 -0
- package/dist/agents/agent-executor.d.ts +180 -0
- package/dist/agents/agent-executor.js +715 -0
- package/dist/agents/agent-executor.js.map +1 -0
- package/dist/agents/agents.service.d.ts +310 -0
- package/dist/agents/agents.service.js +1249 -0
- package/dist/agents/agents.service.js.map +1 -0
- package/dist/agents/index.d.ts +55 -0
- package/dist/agents/index.js +110 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/memory-manager.d.ts +182 -0
- package/dist/agents/memory-manager.js +383 -0
- package/dist/agents/memory-manager.js.map +1 -0
- package/dist/agents/tool-registry.d.ts +141 -0
- package/dist/agents/tool-registry.js +355 -0
- package/dist/agents/tool-registry.js.map +1 -0
- package/dist/agents/types/agents.types.d.ts +1227 -0
- package/dist/agents/types/agents.types.js +12 -0
- package/dist/agents/types/agents.types.js.map +1 -0
- package/dist/agents/types/index.d.ts +6 -0
- package/dist/agents/types/index.js +23 -0
- package/dist/agents/types/index.js.map +1 -0
- package/dist/agents/vector-store-adapter.d.ts +108 -0
- package/dist/agents/vector-store-adapter.js +213 -0
- package/dist/agents/vector-store-adapter.js.map +1 -0
- package/dist/api/services/appApi.service.d.ts +51 -5
- package/dist/api/services/appApi.service.js +101 -3
- package/dist/api/services/appApi.service.js.map +1 -1
- package/dist/api/services/pricingApi.service.d.ts +10 -0
- package/dist/api/services/pricingApi.service.js +34 -0
- package/dist/api/services/pricingApi.service.js.map +1 -0
- package/dist/api/services/processorApi.service.d.ts +334 -2
- package/dist/api/services/processorApi.service.js +264 -2
- package/dist/api/services/processorApi.service.js.map +1 -1
- package/dist/api/services/productsApi.service.d.ts +108 -1
- package/dist/api/services/productsApi.service.js +150 -3
- package/dist/api/services/productsApi.service.js.map +1 -1
- package/dist/api/services/resilienceApi.service.d.ts +106 -0
- package/dist/api/services/resilienceApi.service.js +224 -0
- package/dist/api/services/resilienceApi.service.js.map +1 -0
- package/dist/api/services/secretsApi.service.d.ts +50 -0
- package/dist/api/services/secretsApi.service.js +124 -0
- package/dist/api/services/secretsApi.service.js.map +1 -0
- package/dist/api/services/workflowApi.service.d.ts +199 -0
- package/dist/api/services/workflowApi.service.js +183 -0
- package/dist/api/services/workflowApi.service.js.map +1 -0
- package/dist/api/services/workspaceApi.service.d.ts +8 -0
- package/dist/api/services/workspaceApi.service.js +20 -0
- package/dist/api/services/workspaceApi.service.js.map +1 -1
- package/dist/api/urls.d.ts +65 -1
- package/dist/api/urls.js +90 -18
- package/dist/api/urls.js.map +1 -1
- package/dist/api/utils/auth.utils.d.ts +1 -3
- package/dist/api/utils/auth.utils.js.map +1 -1
- package/dist/api/utils/cache.utils.d.ts +1 -1
- package/dist/api/utils/cache.utils.js +2 -2
- package/dist/api/utils/cache.utils.js.map +1 -1
- package/dist/api/utils/strings.utils.d.ts +2 -0
- package/dist/api/utils/strings.utils.js +14 -0
- package/dist/api/utils/strings.utils.js.map +1 -1
- package/dist/apps/services/app.service.d.ts +41 -33
- package/dist/apps/services/app.service.js +472 -184
- package/dist/apps/services/app.service.js.map +1 -1
- package/dist/apps/utils/auth-context-manager.d.ts +137 -0
- package/dist/apps/utils/auth-context-manager.js +248 -0
- package/dist/apps/utils/auth-context-manager.js.map +1 -0
- package/dist/apps/utils/credential-manager.d.ts +128 -0
- package/dist/apps/utils/credential-manager.js +199 -0
- package/dist/apps/utils/credential-manager.js.map +1 -0
- package/dist/apps/utils/index.d.ts +10 -0
- package/dist/apps/utils/index.js +54 -0
- package/dist/apps/utils/index.js.map +1 -0
- package/dist/apps/utils/input-helpers.d.ts +67 -0
- package/dist/apps/utils/input-helpers.js +185 -0
- package/dist/apps/utils/input-helpers.js.map +1 -0
- package/dist/apps/utils/input-resolver.d.ts +165 -0
- package/dist/apps/utils/input-resolver.js +477 -0
- package/dist/apps/utils/input-resolver.js.map +1 -0
- package/dist/apps/utils/oauth-manager.d.ts +196 -0
- package/dist/apps/utils/oauth-manager.js +429 -0
- package/dist/apps/utils/oauth-manager.js.map +1 -0
- package/dist/apps/validators/joi-validators/create.appAction.validator.d.ts +1 -2
- package/dist/apps/validators/joi-validators/create.appAction.validator.js +21 -2
- package/dist/apps/validators/joi-validators/create.appAction.validator.js.map +1 -1
- package/dist/apps/validators/joi-validators/update.appAction.validator.js +11 -1
- package/dist/apps/validators/joi-validators/update.appAction.validator.js.map +1 -1
- package/dist/apps/validators/joi-validators/update.appActionResponse.validator.d.ts +1 -1
- package/dist/apps/validators/joi-validators/update.appActionResponse.validator.js +34 -1
- package/dist/apps/validators/joi-validators/update.appActionResponse.validator.js.map +1 -1
- package/dist/bin.d.ts +26 -0
- package/dist/bin.js +28 -0
- package/dist/bin.js.map +1 -0
- package/dist/brokers/brokers.service.d.ts +289 -0
- package/dist/brokers/brokers.service.js +722 -0
- package/dist/brokers/brokers.service.js.map +1 -0
- package/dist/brokers/index.d.ts +46 -0
- package/dist/brokers/index.js +83 -0
- package/dist/brokers/index.js.map +1 -0
- package/dist/brokers/types/index.d.ts +314 -0
- package/dist/brokers/types/index.js +8 -0
- package/dist/brokers/types/index.js.map +1 -0
- package/dist/brokers/utils/broker.util.d.ts +33 -0
- package/dist/brokers/utils/broker.util.js +125 -0
- package/dist/brokers/utils/broker.util.js.map +1 -0
- package/dist/brokers/utils/providers/aws-sqs.service.d.ts +16 -0
- package/dist/brokers/utils/providers/aws-sqs.service.js +71 -0
- package/dist/brokers/utils/providers/aws-sqs.service.js.map +1 -0
- package/dist/brokers/utils/providers/google-pubsub.service.d.ts +16 -0
- package/dist/brokers/utils/providers/google-pubsub.service.js +43 -0
- package/dist/brokers/utils/providers/google-pubsub.service.js.map +1 -0
- package/dist/brokers/utils/providers/index.d.ts +6 -0
- package/dist/brokers/utils/providers/index.js +16 -0
- package/dist/brokers/utils/providers/index.js.map +1 -0
- package/dist/brokers/utils/providers/kafka.service.d.ts +23 -0
- package/dist/brokers/utils/providers/kafka.service.js +131 -0
- package/dist/brokers/utils/providers/kafka.service.js.map +1 -0
- package/dist/brokers/utils/providers/nats.service.d.ts +18 -0
- package/dist/brokers/utils/providers/nats.service.js +63 -0
- package/dist/brokers/utils/providers/nats.service.js.map +1 -0
- package/dist/brokers/utils/providers/rabbitmq.service.d.ts +15 -0
- package/dist/brokers/utils/providers/rabbitmq.service.js +151 -0
- package/dist/brokers/utils/providers/rabbitmq.service.js.map +1 -0
- package/dist/brokers/utils/providers/redis.service.d.ts +18 -0
- package/dist/brokers/utils/providers/redis.service.js +93 -0
- package/dist/brokers/utils/providers/redis.service.js.map +1 -0
- package/dist/cache/cache.manager.d.ts +159 -0
- package/dist/cache/cache.manager.js +265 -0
- package/dist/cache/cache.manager.js.map +1 -0
- package/dist/cache/cache.service.d.ts +186 -0
- package/dist/cache/cache.service.js +437 -0
- package/dist/cache/cache.service.js.map +1 -0
- package/dist/cache/index.d.ts +52 -0
- package/dist/cache/index.js +79 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/cache/types/index.d.ts +106 -0
- package/dist/cache/types/index.js +6 -0
- package/dist/cache/types/index.js.map +1 -0
- package/dist/clients/pricing.client.d.ts +3 -0
- package/dist/clients/pricing.client.js +33 -0
- package/dist/clients/pricing.client.js.map +1 -0
- package/dist/database/actions/action-manager.d.ts +170 -0
- package/dist/database/actions/action-manager.js +465 -0
- package/dist/database/actions/action-manager.js.map +1 -0
- package/dist/database/actions/index.d.ts +6 -0
- package/dist/database/actions/index.js +13 -0
- package/dist/database/actions/index.js.map +1 -0
- package/dist/database/adapters/adapter.factory.d.ts +62 -0
- package/dist/database/adapters/adapter.factory.js +97 -0
- package/dist/database/adapters/adapter.factory.js.map +1 -0
- package/dist/database/adapters/base.adapter.d.ts +393 -0
- package/dist/database/adapters/base.adapter.js +150 -0
- package/dist/database/adapters/base.adapter.js.map +1 -0
- package/dist/database/adapters/cassandra.adapter.d.ts +91 -0
- package/dist/database/adapters/cassandra.adapter.js +1075 -0
- package/dist/database/adapters/cassandra.adapter.js.map +1 -0
- package/dist/database/adapters/dynamodb.adapter.d.ts +109 -0
- package/dist/database/adapters/dynamodb.adapter.js +1534 -0
- package/dist/database/adapters/dynamodb.adapter.js.map +1 -0
- package/dist/database/adapters/index.d.ts +11 -0
- package/dist/database/adapters/index.js +27 -0
- package/dist/database/adapters/index.js.map +1 -0
- package/dist/database/adapters/mariadb.adapter.d.ts +100 -0
- package/dist/database/adapters/mariadb.adapter.js +247 -0
- package/dist/database/adapters/mariadb.adapter.js.map +1 -0
- package/dist/database/adapters/mongodb.adapter.d.ts +120 -0
- package/dist/database/adapters/mongodb.adapter.js +1253 -0
- package/dist/database/adapters/mongodb.adapter.js.map +1 -0
- package/dist/database/adapters/mysql.adapter.d.ts +85 -0
- package/dist/database/adapters/mysql.adapter.js +1313 -0
- package/dist/database/adapters/mysql.adapter.js.map +1 -0
- package/dist/database/adapters/postgresql.adapter.d.ts +88 -0
- package/dist/database/adapters/postgresql.adapter.js +1434 -0
- package/dist/database/adapters/postgresql.adapter.js.map +1 -0
- package/dist/database/databases.service.d.ts +1388 -0
- package/dist/database/databases.service.js +2821 -0
- package/dist/database/databases.service.js.map +1 -0
- package/dist/database/index.d.ts +46 -0
- package/dist/database/index.js +109 -0
- package/dist/database/index.js.map +1 -0
- package/dist/database/migrations/index.d.ts +6 -0
- package/dist/database/migrations/index.js +12 -0
- package/dist/database/migrations/index.js.map +1 -0
- package/dist/database/migrations/migration-engine.d.ts +132 -0
- package/dist/database/migrations/migration-engine.js +1356 -0
- package/dist/database/migrations/migration-engine.js.map +1 -0
- package/dist/database/operators/aggregation-builder.d.ts +67 -0
- package/dist/database/operators/aggregation-builder.js +841 -0
- package/dist/database/operators/aggregation-builder.js.map +1 -0
- package/dist/database/operators/index.d.ts +7 -0
- package/dist/database/operators/index.js +15 -0
- package/dist/database/operators/index.js.map +1 -0
- package/dist/database/operators/query-builder.d.ts +59 -0
- package/dist/database/operators/query-builder.js +397 -0
- package/dist/database/operators/query-builder.js.map +1 -0
- package/dist/database/presave/decrypt.d.ts +25 -0
- package/dist/database/presave/decrypt.js +146 -0
- package/dist/database/presave/decrypt.js.map +1 -0
- package/dist/database/presave/index.d.ts +9 -0
- package/dist/database/presave/index.js +18 -0
- package/dist/database/presave/index.js.map +1 -0
- package/dist/database/presave/presave-processor.d.ts +148 -0
- package/dist/database/presave/presave-processor.js +702 -0
- package/dist/database/presave/presave-processor.js.map +1 -0
- package/dist/database/schema/index.d.ts +7 -0
- package/dist/database/schema/index.js +13 -0
- package/dist/database/schema/index.js.map +1 -0
- package/dist/database/schema/schema-manager.d.ts +258 -0
- package/dist/database/schema/schema-manager.js +637 -0
- package/dist/database/schema/schema-manager.js.map +1 -0
- package/dist/database/transactions/index.d.ts +6 -0
- package/dist/database/transactions/index.js +13 -0
- package/dist/database/transactions/index.js.map +1 -0
- package/dist/database/transactions/transaction-manager.d.ts +113 -0
- package/dist/database/transactions/transaction-manager.js +344 -0
- package/dist/database/transactions/transaction-manager.js.map +1 -0
- package/dist/database/triggers/index.d.ts +7 -0
- package/dist/database/triggers/index.js +14 -0
- package/dist/database/triggers/index.js.map +1 -0
- package/dist/database/triggers/trigger-processor.d.ts +239 -0
- package/dist/database/triggers/trigger-processor.js +1034 -0
- package/dist/database/triggers/trigger-processor.js.map +1 -0
- package/dist/database/types/action.interface.d.ts +148 -0
- package/dist/database/types/action.interface.js +6 -0
- package/dist/database/types/action.interface.js.map +1 -0
- package/dist/database/types/aggregation.interface.d.ts +185 -0
- package/dist/database/types/aggregation.interface.js +6 -0
- package/dist/database/types/aggregation.interface.js.map +1 -0
- package/dist/database/types/connection.interface.d.ts +137 -0
- package/dist/database/types/connection.interface.js +6 -0
- package/dist/database/types/connection.interface.js.map +1 -0
- package/dist/database/types/enums.d.ts +195 -0
- package/dist/database/types/enums.js +244 -0
- package/dist/database/types/enums.js.map +1 -0
- package/dist/database/types/index.d.ts +14 -0
- package/dist/database/types/index.js +31 -0
- package/dist/database/types/index.js.map +1 -0
- package/dist/database/types/migration.interface.d.ts +686 -0
- package/dist/database/types/migration.interface.js +9 -0
- package/dist/database/types/migration.interface.js.map +1 -0
- package/dist/database/types/presave.interface.d.ts +292 -0
- package/dist/database/types/presave.interface.js +60 -0
- package/dist/database/types/presave.interface.js.map +1 -0
- package/dist/database/types/query.interface.d.ts +205 -0
- package/dist/database/types/query.interface.js +6 -0
- package/dist/database/types/query.interface.js.map +1 -0
- package/dist/database/types/schema.interface.d.ts +398 -0
- package/dist/database/types/schema.interface.js +6 -0
- package/dist/database/types/schema.interface.js.map +1 -0
- package/dist/database/types/transaction.interface.d.ts +84 -0
- package/dist/database/types/transaction.interface.js +6 -0
- package/dist/database/types/transaction.interface.js.map +1 -0
- package/dist/database/types/trigger.interface.d.ts +612 -0
- package/dist/database/types/trigger.interface.js +121 -0
- package/dist/database/types/trigger.interface.js.map +1 -0
- package/dist/database/types/write.interface.d.ts +216 -0
- package/dist/database/types/write.interface.js +6 -0
- package/dist/database/types/write.interface.js.map +1 -0
- package/dist/database/utils/database-error.d.ts +96 -0
- package/dist/database/utils/database-error.js +221 -0
- package/dist/database/utils/database-error.js.map +1 -0
- package/dist/database/utils/index.d.ts +6 -0
- package/dist/database/utils/index.js +11 -0
- package/dist/database/utils/index.js.map +1 -0
- package/dist/graph/adapters/adapter.factory.d.ts +47 -0
- package/dist/graph/adapters/adapter.factory.js +77 -0
- package/dist/graph/adapters/adapter.factory.js.map +1 -0
- package/dist/graph/adapters/arangodb.adapter.d.ts +86 -0
- package/dist/graph/adapters/arangodb.adapter.js +1522 -0
- package/dist/graph/adapters/arangodb.adapter.js.map +1 -0
- package/dist/graph/adapters/base.adapter.d.ts +245 -0
- package/dist/graph/adapters/base.adapter.js +64 -0
- package/dist/graph/adapters/base.adapter.js.map +1 -0
- package/dist/graph/adapters/index.d.ts +11 -0
- package/dist/graph/adapters/index.js +21 -0
- package/dist/graph/adapters/index.js.map +1 -0
- package/dist/graph/adapters/memgraph.adapter.d.ts +110 -0
- package/dist/graph/adapters/memgraph.adapter.js +1345 -0
- package/dist/graph/adapters/memgraph.adapter.js.map +1 -0
- package/dist/graph/adapters/neo4j.adapter.d.ts +81 -0
- package/dist/graph/adapters/neo4j.adapter.js +1198 -0
- package/dist/graph/adapters/neo4j.adapter.js.map +1 -0
- package/dist/graph/adapters/neptune.adapter.d.ts +82 -0
- package/dist/graph/adapters/neptune.adapter.js +1313 -0
- package/dist/graph/adapters/neptune.adapter.js.map +1 -0
- package/dist/graph/graphs.service.d.ts +546 -0
- package/dist/graph/graphs.service.js +1893 -0
- package/dist/graph/graphs.service.js.map +1 -0
- package/dist/graph/index.d.ts +57 -0
- package/dist/graph/index.js +77 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph/transactions/index.d.ts +4 -0
- package/dist/graph/transactions/index.js +9 -0
- package/dist/graph/transactions/index.js.map +1 -0
- package/dist/graph/transactions/transaction-manager.d.ts +61 -0
- package/dist/graph/transactions/transaction-manager.js +126 -0
- package/dist/graph/transactions/transaction-manager.js.map +1 -0
- package/dist/graph/types/connection.interface.d.ts +149 -0
- package/dist/graph/types/connection.interface.js +9 -0
- package/dist/graph/types/connection.interface.js.map +1 -0
- package/dist/graph/types/enums.d.ts +101 -0
- package/dist/graph/types/enums.js +114 -0
- package/dist/graph/types/enums.js.map +1 -0
- package/dist/graph/types/index.d.ts +13 -0
- package/dist/graph/types/index.js +20 -0
- package/dist/graph/types/index.js.map +1 -0
- package/dist/graph/types/node.interface.d.ts +248 -0
- package/dist/graph/types/node.interface.js +9 -0
- package/dist/graph/types/node.interface.js.map +1 -0
- package/dist/graph/types/query.interface.d.ts +175 -0
- package/dist/graph/types/query.interface.js +9 -0
- package/dist/graph/types/query.interface.js.map +1 -0
- package/dist/graph/types/relationship.interface.d.ts +207 -0
- package/dist/graph/types/relationship.interface.js +9 -0
- package/dist/graph/types/relationship.interface.js.map +1 -0
- package/dist/graph/types/schema.interface.d.ts +295 -0
- package/dist/graph/types/schema.interface.js +9 -0
- package/dist/graph/types/schema.interface.js.map +1 -0
- package/dist/graph/types/transaction.interface.d.ts +55 -0
- package/dist/graph/types/transaction.interface.js +9 -0
- package/dist/graph/types/transaction.interface.js.map +1 -0
- package/dist/graph/types/traversal.interface.d.ts +181 -0
- package/dist/graph/types/traversal.interface.js +9 -0
- package/dist/graph/types/traversal.interface.js.map +1 -0
- package/dist/graph/utils/graph-error.d.ts +71 -0
- package/dist/graph/utils/graph-error.js +142 -0
- package/dist/graph/utils/graph-error.js.map +1 -0
- package/dist/graph/utils/index.d.ts +4 -0
- package/dist/graph/utils/index.js +9 -0
- package/dist/graph/utils/index.js.map +1 -0
- package/dist/imports/imports.service.d.ts +3 -3
- package/dist/imports/imports.service.js +8 -7
- package/dist/imports/imports.service.js.map +1 -1
- package/dist/imports/imports.types.d.ts +8 -0
- package/dist/imports/repos/openApi.repo.d.ts +1 -1
- package/dist/imports/repos/openApi.repo.js +414 -47
- package/dist/imports/repos/openApi.repo.js.map +1 -1
- package/dist/imports/repos/postmanV21.repo.d.ts +1 -1
- package/dist/imports/repos/postmanV21.repo.js +126 -83
- package/dist/imports/repos/postmanV21.repo.js.map +1 -1
- package/dist/index.d.ts +3239 -285
- package/dist/index.js +4705 -687
- package/dist/index.js.map +1 -1
- package/dist/init.interface.d.ts +407 -0
- package/dist/init.interface.js +3 -0
- package/dist/init.interface.js.map +1 -0
- package/dist/inputs/inputs.service.d.ts +1 -1
- package/dist/inputs/inputs.service.js +2 -2
- package/dist/inputs/inputs.service.js.map +1 -1
- package/dist/inputs/utils/inputs.utils.create.js +1 -1
- package/dist/inputs/utils/inputs.utils.create.js.map +1 -1
- package/dist/jobs/index.d.ts +38 -0
- package/dist/jobs/index.js +50 -0
- package/dist/jobs/index.js.map +1 -0
- package/dist/jobs/jobs.service.d.ts +154 -0
- package/dist/jobs/jobs.service.js +491 -0
- package/dist/jobs/jobs.service.js.map +1 -0
- package/dist/jobs/jobs.state.d.ts +113 -0
- package/dist/jobs/jobs.state.js +447 -0
- package/dist/jobs/jobs.state.js.map +1 -0
- package/dist/jobs/types.d.ts +449 -0
- package/dist/jobs/types.js +74 -0
- package/dist/jobs/types.js.map +1 -0
- package/dist/logs/logs.types.d.ts +16 -1
- package/dist/logs/logs.types.js +5 -0
- package/dist/logs/logs.types.js.map +1 -1
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +11 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/models.service.d.ts +137 -0
- package/dist/models/models.service.js +195 -0
- package/dist/models/models.service.js.map +1 -0
- package/dist/notifications/index.d.ts +13 -0
- package/dist/notifications/index.js +26 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/notifications/notifications.service.d.ts +257 -0
- package/dist/notifications/notifications.service.js +656 -0
- package/dist/notifications/notifications.service.js.map +1 -0
- package/dist/notifications/types/index.d.ts +4 -0
- package/dist/notifications/types/index.js +21 -0
- package/dist/notifications/types/index.js.map +1 -0
- package/dist/notifications/types/notifications.types.d.ts +400 -0
- package/dist/notifications/types/notifications.types.js +49 -0
- package/dist/notifications/types/notifications.types.js.map +1 -0
- package/dist/parsers/index.d.ts +3 -0
- package/dist/parsers/index.js +27 -0
- package/dist/parsers/index.js.map +1 -0
- package/dist/parsers/pipelines/postman.pipelines.d.ts +15 -0
- package/dist/parsers/pipelines/postman.pipelines.js +103 -0
- package/dist/parsers/pipelines/postman.pipelines.js.map +1 -0
- package/dist/parsers/types/postman.types.d.ts +200 -0
- package/dist/parsers/types/postman.types.js +3 -0
- package/dist/parsers/types/postman.types.js.map +1 -0
- package/dist/parsers/utils/postman.utils.d.ts +12 -0
- package/dist/parsers/utils/postman.utils.js +116 -0
- package/dist/parsers/utils/postman.utils.js.map +1 -0
- package/dist/parsers/validators/postman-auth.validators.d.ts +10 -0
- package/dist/parsers/validators/postman-auth.validators.js +127 -0
- package/dist/parsers/validators/postman-auth.validators.js.map +1 -0
- package/dist/parsers/validators/postman-request.validators.d.ts +13 -0
- package/dist/parsers/validators/postman-request.validators.js +139 -0
- package/dist/parsers/validators/postman-request.validators.js.map +1 -0
- package/dist/parsers/validators/postman-response.validators.d.ts +13 -0
- package/dist/parsers/validators/postman-response.validators.js +150 -0
- package/dist/parsers/validators/postman-response.validators.js.map +1 -0
- package/dist/parsers/validators/postman-variable.validators.d.ts +14 -0
- package/dist/parsers/validators/postman-variable.validators.js +163 -0
- package/dist/parsers/validators/postman-variable.validators.js.map +1 -0
- package/dist/pricing/pricing.repo.js +1 -0
- package/dist/pricing/pricing.repo.js.map +1 -0
- package/dist/pricing/pricing.service.d.ts +24 -0
- package/dist/pricing/pricing.service.js +51 -0
- package/dist/pricing/pricing.service.js.map +1 -0
- package/dist/pricing/pricing.types.d.ts +76 -0
- package/dist/pricing/pricing.types.js +21 -0
- package/dist/pricing/pricing.types.js.map +1 -0
- package/dist/pricing/utils/string.utils.d.ts +1 -0
- package/dist/pricing/utils/string.utils.js +9 -0
- package/dist/pricing/utils/string.utils.js.map +1 -0
- package/dist/processor/services/processor.service.d.ts +120 -73
- package/dist/processor/services/processor.service.js +1705 -1294
- package/dist/processor/services/processor.service.js.map +1 -1
- package/dist/processor/services/request.service.d.ts +36 -0
- package/dist/processor/services/request.service.js +304 -0
- package/dist/processor/services/request.service.js.map +1 -0
- package/dist/processor/types/request.types.d.ts +14 -0
- package/dist/processor/types/request.types.js +3 -0
- package/dist/processor/types/request.types.js.map +1 -0
- package/dist/processor/utils/processor.utils.d.ts +3 -0
- package/dist/processor/utils/processor.utils.js +87 -21
- package/dist/processor/utils/processor.utils.js.map +1 -1
- package/dist/processor/utils/request.utils.d.ts +20 -0
- package/dist/processor/utils/request.utils.js +113 -0
- package/dist/processor/utils/request.utils.js.map +1 -0
- package/dist/products/services/products.service.d.ts +330 -77
- package/dist/products/services/products.service.js +2586 -397
- package/dist/products/services/products.service.js.map +1 -1
- package/dist/products/utils/string.utils.d.ts +1 -1
- package/dist/products/utils/string.utils.js +14 -2
- package/dist/products/utils/string.utils.js.map +1 -1
- package/dist/products/validators/index.d.ts +7 -1
- package/dist/products/validators/index.js +16 -1
- package/dist/products/validators/index.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productAgent.validator.d.ts +3 -0
- package/dist/products/validators/joi-validators/create.productAgent.validator.js +266 -0
- package/dist/products/validators/joi-validators/create.productAgent.validator.js.map +1 -0
- package/dist/products/validators/joi-validators/create.productDatabase.validator.js +5 -0
- package/dist/products/validators/joi-validators/create.productDatabase.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productEnv.validator.js +1 -0
- package/dist/products/validators/joi-validators/create.productEnv.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productGraph.validator.js +89 -0
- package/dist/products/validators/joi-validators/create.productGraph.validator.js.map +1 -0
- package/dist/products/validators/joi-validators/create.productHealthcheck.validator.d.ts +4 -0
- package/dist/products/validators/joi-validators/create.productHealthcheck.validator.js +58 -0
- package/dist/products/validators/joi-validators/create.productHealthcheck.validator.js.map +1 -0
- package/dist/products/validators/joi-validators/create.productMessageBrokers.validator.js +81 -25
- package/dist/products/validators/joi-validators/create.productMessageBrokers.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productModel.validator.d.ts +3 -0
- package/dist/products/validators/joi-validators/create.productModel.validator.js +132 -0
- package/dist/products/validators/joi-validators/create.productModel.validator.js.map +1 -0
- package/dist/products/validators/joi-validators/create.productNotification.validator.js +133 -45
- package/dist/products/validators/joi-validators/create.productNotification.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productStorage.validator.js +77 -18
- package/dist/products/validators/joi-validators/create.productStorage.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productVector.validator.d.ts +3 -0
- package/dist/products/validators/joi-validators/create.productVector.validator.js +135 -0
- package/dist/products/validators/joi-validators/create.productVector.validator.js.map +1 -0
- package/dist/products/validators/joi-validators/update.dataValue.validator.js +1 -0
- package/dist/products/validators/joi-validators/update.dataValue.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/update.productDatabase.validator.js +5 -0
- package/dist/products/validators/joi-validators/update.productDatabase.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/update.productEnv.validator.js +3 -0
- package/dist/products/validators/joi-validators/update.productEnv.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/update.productGraph.validator.js +88 -0
- package/dist/products/validators/joi-validators/update.productGraph.validator.js.map +1 -0
- package/dist/resilience/fallback.service.d.ts +140 -0
- package/dist/resilience/fallback.service.js +764 -0
- package/dist/resilience/fallback.service.js.map +1 -0
- package/dist/resilience/healthcheck.service.d.ts +159 -0
- package/dist/resilience/healthcheck.service.js +943 -0
- package/dist/resilience/healthcheck.service.js.map +1 -0
- package/dist/resilience/index.d.ts +104 -0
- package/dist/resilience/index.js +140 -0
- package/dist/resilience/index.js.map +1 -0
- package/dist/resilience/quota.service.d.ts +82 -0
- package/dist/resilience/quota.service.js +516 -0
- package/dist/resilience/quota.service.js.map +1 -0
- package/dist/resilience/resilience.service.d.ts +98 -0
- package/dist/resilience/resilience.service.js +560 -0
- package/dist/resilience/resilience.service.js.map +1 -0
- package/dist/resilience/types/index.d.ts +513 -0
- package/dist/resilience/types/index.js +29 -0
- package/dist/resilience/types/index.js.map +1 -0
- package/dist/secrets/index.d.ts +10 -0
- package/dist/secrets/index.js +33 -0
- package/dist/secrets/index.js.map +1 -0
- package/dist/secrets/secrets.resolver.d.ts +52 -0
- package/dist/secrets/secrets.resolver.js +233 -0
- package/dist/secrets/secrets.resolver.js.map +1 -0
- package/dist/secrets/secrets.service.d.ts +93 -0
- package/dist/secrets/secrets.service.js +258 -0
- package/dist/secrets/secrets.service.js.map +1 -0
- package/dist/secrets/secrets.types.d.ts +188 -0
- package/dist/secrets/secrets.types.js +87 -0
- package/dist/secrets/secrets.types.js.map +1 -0
- package/dist/sessions/index.d.ts +50 -0
- package/dist/sessions/index.js +93 -0
- package/dist/sessions/index.js.map +1 -0
- package/dist/sessions/sessions.helper.d.ts +68 -0
- package/dist/sessions/sessions.helper.js +116 -0
- package/dist/sessions/sessions.helper.js.map +1 -0
- package/dist/sessions/sessions.resolver.d.ts +150 -0
- package/dist/sessions/sessions.resolver.js +356 -0
- package/dist/sessions/sessions.resolver.js.map +1 -0
- package/dist/sessions/sessions.service.d.ts +170 -0
- package/dist/sessions/sessions.service.js +736 -0
- package/dist/sessions/sessions.service.js.map +1 -0
- package/dist/sessions/types/index.d.ts +290 -0
- package/dist/sessions/types/index.js +6 -0
- package/dist/sessions/types/index.js.map +1 -0
- package/dist/storage/index.d.ts +66 -0
- package/dist/storage/index.js +98 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/storage.service.d.ts +151 -0
- package/dist/storage/storage.service.js +522 -0
- package/dist/storage/storage.service.js.map +1 -0
- package/dist/storage/types/index.d.ts +207 -0
- package/dist/storage/types/index.js +6 -0
- package/dist/storage/types/index.js.map +1 -0
- package/dist/storage/utils/storage.util.d.ts +51 -0
- package/dist/storage/utils/storage.util.js +402 -0
- package/dist/storage/utils/storage.util.js.map +1 -0
- package/dist/test/index.d.ts +3 -0
- package/dist/test/index.js +11 -0
- package/dist/test/index.js.map +1 -0
- package/dist/test/test.appBuilder.d.ts +0 -1
- package/dist/test/test.appBuilder.js +0 -15
- package/dist/test/test.appBuilder.js.map +1 -1
- package/dist/test/test.broker.kafka.js +172 -0
- package/dist/test/test.broker.kafka.js.map +1 -0
- package/dist/test/test.broker.nats.js +193 -0
- package/dist/test/test.broker.nats.js.map +1 -0
- package/dist/test/test.broker.pubsub.js +171 -0
- package/dist/test/test.broker.pubsub.js.map +1 -0
- package/dist/test/test.broker.rabbitmq.js +164 -0
- package/dist/test/test.broker.rabbitmq.js.map +1 -0
- package/dist/test/test.broker.redis.js +168 -0
- package/dist/test/test.broker.redis.js.map +1 -0
- package/dist/test/test.broker.sqs.d.ts +1 -0
- package/dist/test/test.broker.sqs.js +158 -0
- package/dist/test/test.broker.sqs.js.map +1 -0
- package/dist/test/test.caches.d.ts +1 -0
- package/dist/test/test.caches.js +231 -0
- package/dist/test/test.caches.js.map +1 -0
- package/dist/test/test.database.d.ts +1 -0
- package/dist/test/test.database.dynamo.d.ts +1 -0
- package/dist/test/test.database.dynamo.js +265 -0
- package/dist/test/test.database.dynamo.js.map +1 -0
- package/dist/test/test.database.js +140 -0
- package/dist/test/test.database.js.map +1 -0
- package/dist/test/test.database.mongo.d.ts +1 -0
- package/dist/test/test.database.mongo.js +371 -0
- package/dist/test/test.database.mongo.js.map +1 -0
- package/dist/test/test.database.mysql.d.ts +1 -0
- package/dist/test/test.database.mysql.js +415 -0
- package/dist/test/test.database.mysql.js.map +1 -0
- package/dist/test/test.database.postgres.d.ts +1 -0
- package/dist/test/test.database.postgres.js +412 -0
- package/dist/test/test.database.postgres.js.map +1 -0
- package/dist/test/test.email.brevo.d.ts +1 -0
- package/dist/test/test.email.brevo.js +326 -0
- package/dist/test/test.email.brevo.js.map +1 -0
- package/dist/test/test.email.mailgun.d.ts +1 -0
- package/dist/test/test.email.mailgun.js +352 -0
- package/dist/test/test.email.mailgun.js.map +1 -0
- package/dist/test/test.email.postmark.d.ts +1 -0
- package/dist/test/test.email.postmark.js +316 -0
- package/dist/test/test.email.postmark.js.map +1 -0
- package/dist/test/test.email.sendgrid.d.ts +1 -0
- package/dist/test/test.email.sendgrid.js +365 -0
- package/dist/test/test.email.sendgrid.js.map +1 -0
- package/dist/test/test.email.smtp.d.ts +1 -0
- package/dist/test/test.email.smtp.js +323 -0
- package/dist/test/test.email.smtp.js.map +1 -0
- package/dist/test/test.graph.arangodb.d.ts +1 -0
- package/dist/test/test.graph.arangodb.js +358 -0
- package/dist/test/test.graph.arangodb.js.map +1 -0
- package/dist/test/test.graph.memgraph.d.ts +1 -0
- package/dist/test/test.graph.memgraph.js +320 -0
- package/dist/test/test.graph.memgraph.js.map +1 -0
- package/dist/test/test.graph.neo4j.d.ts +1 -0
- package/dist/test/test.graph.neo4j.js +218 -0
- package/dist/test/test.graph.neo4j.js.map +1 -0
- package/dist/test/test.graph.neptune.d.ts +1 -0
- package/dist/test/test.graph.neptune.js +331 -0
- package/dist/test/test.graph.neptune.js.map +1 -0
- package/dist/test/test.health.js +1 -0
- package/dist/test/test.health.js.map +1 -0
- package/dist/test/test.import.d.ts +0 -1
- package/dist/test/test.import.js +0 -1459
- package/dist/test/test.import.js.map +1 -1
- package/dist/test/test.import.openapi.d.ts +0 -1
- package/dist/test/test.import.openapi.js +0 -75
- package/dist/test/test.import.openapi.js.map +1 -1
- package/dist/test/test.imports.js +14 -55
- package/dist/test/test.imports.js.map +1 -1
- package/dist/test/test.logs.d.ts +0 -1
- package/dist/test/test.logs.js +0 -17
- package/dist/test/test.logs.js.map +1 -1
- package/dist/test/test.notifications.d.ts +1 -0
- package/dist/test/test.notifications.js +198 -0
- package/dist/test/test.notifications.js.map +1 -0
- package/dist/test/test.notifiers.js +1 -0
- package/dist/test/test.notifiers.js.map +1 -0
- package/dist/test/test.processor.d.ts +0 -1
- package/dist/test/test.processor.js +0 -122
- package/dist/test/test.processor.js.map +1 -1
- package/dist/test/test.productBuilder.d.ts +0 -1
- package/dist/test/test.productBuilder.js +0 -660
- package/dist/test/test.productBuilder.js.map +1 -1
- package/dist/test/test.products.js +1 -0
- package/dist/test/test.products.js.map +1 -0
- package/dist/test/test.push.expo.d.ts +1 -0
- package/dist/test/test.push.expo.js +442 -0
- package/dist/test/test.push.expo.js.map +1 -0
- package/dist/test/test.push.firebase.d.ts +1 -0
- package/dist/test/test.push.firebase.js +409 -0
- package/dist/test/test.push.firebase.js.map +1 -0
- package/dist/test/test.session.d.ts +1 -0
- package/dist/test/test.session.js +299 -0
- package/dist/test/test.session.js.map +1 -0
- package/dist/test/test.sms.nexmo.d.ts +1 -0
- package/dist/test/test.sms.nexmo.js +278 -0
- package/dist/test/test.sms.nexmo.js.map +1 -0
- package/dist/test/test.sms.twilio.d.ts +1 -0
- package/dist/test/test.sms.twilio.js +275 -0
- package/dist/test/test.sms.twilio.js.map +1 -0
- package/dist/test/test.storage.d.ts +1 -0
- package/dist/test/test.storage.js +202 -0
- package/dist/test/test.storage.js.map +1 -0
- package/dist/test/test.triggers.d.ts +1 -0
- package/dist/test/test.triggers.js +314 -0
- package/dist/test/test.triggers.js.map +1 -0
- package/dist/test/test.vector.pinecone.d.ts +1 -0
- package/dist/test/test.vector.pinecone.js +238 -0
- package/dist/test/test.vector.pinecone.js.map +1 -0
- package/dist/test/test.vector.qdrant.d.ts +1 -0
- package/dist/test/test.vector.qdrant.js +307 -0
- package/dist/test/test.vector.qdrant.js.map +1 -0
- package/dist/test/test.vector.weaviate.d.ts +1 -0
- package/dist/test/test.vector.weaviate.js +325 -0
- package/dist/test/test.vector.weaviate.js.map +1 -0
- package/dist/types/appBuilder.types.d.ts +10 -13
- package/dist/types/enums.d.ts +11 -1
- package/dist/types/enums.js +10 -0
- package/dist/types/enums.js.map +1 -1
- package/dist/types/index.types.d.ts +6 -4
- package/dist/types/index.types.js +0 -1
- package/dist/types/index.types.js.map +1 -1
- package/dist/types/pricing.types.d.ts +4 -0
- package/dist/types/pricing.types.js +3 -0
- package/dist/types/pricing.types.js.map +1 -0
- package/dist/types/processor.types.d.ts +245 -20
- package/dist/types/processor.types.js +9 -1
- package/dist/types/processor.types.js.map +1 -1
- package/dist/types/productsBuilder.types.d.ts +906 -24
- package/dist/types/productsBuilder.types.js +173 -2
- package/dist/types/productsBuilder.types.js.map +1 -1
- package/dist/types/request-tracker.interface.js +1 -0
- package/dist/types/request-tracker.interface.js.map +1 -0
- package/dist/types/requests.types.d.ts +2 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +5 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +24 -52
- package/dist/utils/index.js.map +1 -1
- package/dist/vector/adapters/base.adapter.d.ts +152 -0
- package/dist/vector/adapters/base.adapter.js +137 -0
- package/dist/vector/adapters/base.adapter.js.map +1 -0
- package/dist/vector/adapters/index.d.ts +10 -0
- package/dist/vector/adapters/index.js +19 -0
- package/dist/vector/adapters/index.js.map +1 -0
- package/dist/vector/adapters/memory.adapter.d.ts +85 -0
- package/dist/vector/adapters/memory.adapter.js +505 -0
- package/dist/vector/adapters/memory.adapter.js.map +1 -0
- package/dist/vector/adapters/pinecone.adapter.d.ts +52 -0
- package/dist/vector/adapters/pinecone.adapter.js +400 -0
- package/dist/vector/adapters/pinecone.adapter.js.map +1 -0
- package/dist/vector/adapters/qdrant.adapter.d.ts +56 -0
- package/dist/vector/adapters/qdrant.adapter.js +392 -0
- package/dist/vector/adapters/qdrant.adapter.js.map +1 -0
- package/dist/vector/adapters/weaviate.adapter.d.ts +64 -0
- package/dist/vector/adapters/weaviate.adapter.js +478 -0
- package/dist/vector/adapters/weaviate.adapter.js.map +1 -0
- package/dist/vector/index.d.ts +47 -0
- package/dist/vector/index.js +72 -0
- package/dist/vector/index.js.map +1 -0
- package/dist/vector/types/connection.interface.d.ts +151 -0
- package/dist/vector/types/connection.interface.js +8 -0
- package/dist/vector/types/connection.interface.js.map +1 -0
- package/dist/vector/types/embedding.interface.d.ts +144 -0
- package/dist/vector/types/embedding.interface.js +8 -0
- package/dist/vector/types/embedding.interface.js.map +1 -0
- package/dist/vector/types/enums.d.ts +104 -0
- package/dist/vector/types/enums.js +113 -0
- package/dist/vector/types/enums.js.map +1 -0
- package/dist/vector/types/index.d.ts +9 -0
- package/dist/vector/types/index.js +16 -0
- package/dist/vector/types/index.js.map +1 -0
- package/dist/vector/types/vector.interface.d.ts +315 -0
- package/dist/vector/types/vector.interface.js +8 -0
- package/dist/vector/types/vector.interface.js.map +1 -0
- package/dist/vector/utils/index.d.ts +6 -0
- package/dist/vector/utils/index.js +11 -0
- package/dist/vector/utils/index.js.map +1 -0
- package/dist/vector/utils/vector-error.d.ts +69 -0
- package/dist/vector/utils/vector-error.js +116 -0
- package/dist/vector/utils/vector-error.js.map +1 -0
- package/dist/vector/vector-database.service.d.ts +408 -0
- package/dist/vector/vector-database.service.js +545 -0
- package/dist/vector/vector-database.service.js.map +1 -0
- package/dist/vector/vector.service.d.ts +245 -0
- package/dist/vector/vector.service.js +384 -0
- package/dist/vector/vector.service.js.map +1 -0
- package/dist/workflows/index.d.ts +30 -0
- package/dist/workflows/index.js +64 -0
- package/dist/workflows/index.js.map +1 -0
- package/dist/workflows/types/index.d.ts +6 -0
- package/dist/workflows/types/index.js +23 -0
- package/dist/workflows/types/index.js.map +1 -0
- package/dist/workflows/types/workflows.types.d.ts +1035 -0
- package/dist/workflows/types/workflows.types.js +13 -0
- package/dist/workflows/types/workflows.types.js.map +1 -0
- package/dist/workflows/workflow-builder.d.ts +70 -0
- package/dist/workflows/workflow-builder.js +338 -0
- package/dist/workflows/workflow-builder.js.map +1 -0
- package/dist/workflows/workflow-executor.d.ts +208 -0
- package/dist/workflows/workflow-executor.js +1194 -0
- package/dist/workflows/workflow-executor.js.map +1 -0
- package/dist/workflows/workflows.service.d.ts +404 -0
- package/dist/workflows/workflows.service.js +1620 -0
- package/dist/workflows/workflows.service.js.map +1 -0
- package/package.json +54 -11
- package/dist/actions/actions.repo.js +0 -13
- package/dist/actions/actions.repo.js.map +0 -1
- package/dist/actions/actions.service.js +0 -24
- package/dist/actions/actions.service.js.map +0 -1
- package/dist/actions/utils/actions.util.read.js +0 -427
- package/dist/actions/utils/actions.util.read.js.map +0 -1
- package/dist/api/services/integrationsApi.service.d.ts +0 -18
- package/dist/api/services/integrationsApi.service.js +0 -80
- package/dist/api/services/integrationsApi.service.js.map +0 -1
- package/dist/appBuilder/services/app.service.d.ts +0 -111
- package/dist/appBuilder/services/app.service.js +0 -737
- package/dist/appBuilder/services/app.service.js.map +0 -1
- package/dist/appBuilder/services/appBuilder.service.d.ts +0 -111
- package/dist/appBuilder/services/appBuilder.service.js +0 -662
- package/dist/appBuilder/services/appBuilder.service.js.map +0 -1
- package/dist/appBuilder/utils/objects.utils.d.ts +0 -3
- package/dist/appBuilder/utils/objects.utils.js +0 -9
- package/dist/appBuilder/utils/objects.utils.js.map +0 -1
- package/dist/appBuilder/utils/string.utils.d.ts +0 -2
- package/dist/appBuilder/utils/string.utils.js +0 -57
- package/dist/appBuilder/utils/string.utils.js.map +0 -1
- package/dist/appBuilder/validators/index.d.ts +0 -19
- package/dist/appBuilder/validators/index.js +0 -40
- package/dist/appBuilder/validators/index.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.app.validator.js +0 -10
- package/dist/appBuilder/validators/joi-validators/create.app.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appAction.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/create.appAction.validator.js +0 -20
- package/dist/appBuilder/validators/joi-validators/create.appAction.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appActionResponse.validator.d.ts +0 -7
- package/dist/appBuilder/validators/joi-validators/create.appActionResponse.validator.js +0 -44
- package/dist/appBuilder/validators/joi-validators/create.appActionResponse.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appAuth.validator.d.ts +0 -3
- package/dist/appBuilder/validators/joi-validators/create.appAuth.validator.js +0 -31
- package/dist/appBuilder/validators/joi-validators/create.appAuth.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appBody.validators.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/create.appBody.validators.js +0 -11
- package/dist/appBuilder/validators/joi-validators/create.appBody.validators.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appConstants.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/create.appConstants.validator.js +0 -12
- package/dist/appBuilder/validators/joi-validators/create.appConstants.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appEnv.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/create.appEnv.validator.js +0 -17
- package/dist/appBuilder/validators/joi-validators/create.appEnv.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appEvent.validator.d.ts +0 -5
- package/dist/appBuilder/validators/joi-validators/create.appEvent.validator.js +0 -30
- package/dist/appBuilder/validators/joi-validators/create.appEvent.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appVariable.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/create.appVariable.validator.js +0 -14
- package/dist/appBuilder/validators/joi-validators/create.appVariable.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/sample.validator.d.ts +0 -5
- package/dist/appBuilder/validators/joi-validators/sample.validator.js +0 -26
- package/dist/appBuilder/validators/joi-validators/sample.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.app.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.app.validator.js +0 -34
- package/dist/appBuilder/validators/joi-validators/update.app.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appAction.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.appAction.validator.js +0 -23
- package/dist/appBuilder/validators/joi-validators/update.appAction.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appActionResponse.validator.d.ts +0 -3
- package/dist/appBuilder/validators/joi-validators/update.appActionResponse.validator.js +0 -21
- package/dist/appBuilder/validators/joi-validators/update.appActionResponse.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appAuth.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.appAuth.validator.js +0 -19
- package/dist/appBuilder/validators/joi-validators/update.appAuth.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appConstants.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.appConstants.validator.js +0 -12
- package/dist/appBuilder/validators/joi-validators/update.appConstants.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appEnv.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.appEnv.validator.js +0 -17
- package/dist/appBuilder/validators/joi-validators/update.appEnv.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appEvent.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.appEvent.validator.js +0 -16
- package/dist/appBuilder/validators/joi-validators/update.appEvent.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appVariables.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.appVariables.validator.js +0 -14
- package/dist/appBuilder/validators/joi-validators/update.appVariables.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.validation.entityData.validator.js +0 -27
- package/dist/appBuilder/validators/joi-validators/update.validation.entityData.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/create.appEvent.validator.d.ts +0 -5
- package/dist/apps/validators/joi-validators/create.appEvent.validator.js +0 -30
- package/dist/apps/validators/joi-validators/create.appEvent.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/update.appEvent.validator.d.ts +0 -4
- package/dist/apps/validators/joi-validators/update.appEvent.validator.js +0 -16
- package/dist/apps/validators/joi-validators/update.appEvent.validator.js.map +0 -1
- package/dist/clients/integrations.client.d.ts +0 -2
- package/dist/clients/integrations.client.js +0 -26
- package/dist/clients/integrations.client.js.map +0 -1
- package/dist/integrationsBuilder/services/integration.service.d.ts +0 -138
- package/dist/integrationsBuilder/services/integration.service.js +0 -1148
- package/dist/integrationsBuilder/services/integration.service.js.map +0 -1
- package/dist/integrationsBuilder/services/integrationBuilder.service.d.ts +0 -130
- package/dist/integrationsBuilder/services/integrationBuilder.service.js +0 -1017
- package/dist/integrationsBuilder/services/integrationBuilder.service.js.map +0 -1
- package/dist/integrationsBuilder/utils/objects.utils.d.ts +0 -2
- package/dist/integrationsBuilder/utils/objects.utils.js +0 -48
- package/dist/integrationsBuilder/utils/objects.utils.js.map +0 -1
- package/dist/integrationsBuilder/utils/string.utils.d.ts +0 -1
- package/dist/integrationsBuilder/utils/string.utils.js +0 -9
- package/dist/integrationsBuilder/utils/string.utils.js.map +0 -1
- package/dist/integrationsBuilder/validators/index.d.ts +0 -18
- package/dist/integrationsBuilder/validators/index.js +0 -38
- package/dist/integrationsBuilder/validators/index.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integration.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integration.validator.js +0 -10
- package/dist/integrationsBuilder/validators/joi-validators/create.integration.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationApp.validator.d.ts +0 -4
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationApp.validator.js +0 -26
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationApp.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationCache.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationCache.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationCache.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationDatabase.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationDatabase.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationDatabase.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationEnv.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationEnv.validator.js +0 -10
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationEnv.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationFeature.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationFeature.validator.js +0 -60
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationFeature.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationFunction.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationFunction.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationFunction.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationJob.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationJob.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationJob.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationNotification.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationNotification.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationNotification.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationApp.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationApp.validator.js +0 -9
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationApp.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationCache.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationCache.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationCache.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationDatabase.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationDatabase.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationDatabase.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationEnv.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationEnv.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationEnv.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationFeature.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationFeature.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationFeature.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationFunction.validator copy.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationFunction.validator copy.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationFunction.validator copy.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationJob.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationJob.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationJob.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationNotification.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationNotification.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationNotification.validator.js.map +0 -1
- package/dist/postman.d.ts +0 -1
- package/dist/postman.js +0 -21674
- package/dist/postman.js.map +0 -1
- package/dist/processor/utils/mongo.util.js +0 -152
- package/dist/processor/utils/mongo.util.js.map +0 -1
- package/dist/processor/utils/postgres.util.d.ts +0 -14
- package/dist/processor/utils/postgres.util.js +0 -83
- package/dist/processor/utils/postgres.util.js.map +0 -1
- package/dist/products/validators/joi-validators/create.product.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.product.validator.js +0 -10
- package/dist/products/validators/joi-validators/create.product.validator.js.map +0 -1
- package/dist/test.appBuilder.js +0 -14
- package/dist/test.appBuilder.js.map +0 -1
- package/dist/test.import.js +0 -24
- package/dist/test.import.js.map +0 -1
- package/dist/test.imports.js +0 -28
- package/dist/test.imports.js.map +0 -1
- package/dist/test.integrationBuilder.js +0 -276
- package/dist/test.integrationBuilder.js.map +0 -1
- package/dist/test.processor.js +0 -23
- package/dist/test.processor.js.map +0 -1
- package/dist/test.utils.js +0 -25
- package/dist/test.utils.js.map +0 -1
- package/dist/types/integrationsBuilder.types.d.ts +0 -276
- package/dist/types/integrationsBuilder.types.js +0 -51
- package/dist/types/integrationsBuilder.types.js.map +0 -1
- /package/dist/{actions/actions.repo.d.ts → pricing/pricing.repo.d.ts} +0 -0
- /package/dist/{appBuilder/validators/joi-validators/create.app.validator.d.ts → products/validators/joi-validators/create.productGraph.validator.d.ts} +0 -0
- /package/dist/{appBuilder/validators/joi-validators/update.validation.entityData.validator.d.ts → products/validators/joi-validators/update.productGraph.validator.d.ts} +0 -0
- /package/dist/{test.appBuilder.d.ts → test/test.broker.kafka.d.ts} +0 -0
- /package/dist/{test.imports.d.ts → test/test.broker.nats.d.ts} +0 -0
- /package/dist/{test.integrationBuilder.d.ts → test/test.broker.pubsub.d.ts} +0 -0
- /package/dist/{test.processor.d.ts → test/test.broker.rabbitmq.d.ts} +0 -0
- /package/dist/{test.utils.d.ts → test/test.broker.redis.d.ts} +0 -0
- /package/dist/{actions/actions.service.d.ts → test/test.health.d.ts} +0 -0
- /package/dist/{actions/utils/actions.util.read.d.ts → test/test.notifiers.d.ts} +0 -0
- /package/dist/{processor/utils/mongo.util.d.ts → test/test.products.d.ts} +0 -0
- /package/dist/{test.import.d.ts → types/request-tracker.interface.d.ts} +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Context
|
|
3
|
+
*
|
|
4
|
+
* Provides context to agent tool handlers, including access to
|
|
5
|
+
* Ductape components (actions, database, graph, etc.) and state management.
|
|
6
|
+
*/
|
|
7
|
+
import { IAgentToolContext, IAgentActionContext, IAgentDatabaseContext, IAgentGraphContext, IAgentNotificationContext, IAgentStorageContext, IAgentPublishContext, IAgentFeatureContext, IAgentResilienceContext, IAgentResilienceConfig, IAgentLogger, IConversationMessage, IToolCallResult, IMemoryResult, IAgentState } from './types';
|
|
8
|
+
import { IAgentServiceConfig } from './types';
|
|
9
|
+
/**
|
|
10
|
+
* Memory adapter interface
|
|
11
|
+
* Allows pluggable memory implementations (in-memory, vector store, etc.)
|
|
12
|
+
*/
|
|
13
|
+
export interface IMemoryAdapter {
|
|
14
|
+
/** Store content with metadata */
|
|
15
|
+
store(content: string, metadata?: Record<string, unknown>): Promise<void>;
|
|
16
|
+
/** Retrieve similar content */
|
|
17
|
+
retrieve(query: string, topK?: number): Promise<IMemoryResult[]>;
|
|
18
|
+
/** Clear memory */
|
|
19
|
+
clear(): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* In-memory adapter (fallback when vector store not available)
|
|
23
|
+
*/
|
|
24
|
+
export declare class InMemoryAdapter implements IMemoryAdapter {
|
|
25
|
+
private memories;
|
|
26
|
+
store(content: string, metadata?: Record<string, unknown>): Promise<void>;
|
|
27
|
+
retrieve(query: string, topK?: number): Promise<IMemoryResult[]>;
|
|
28
|
+
clear(): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Service references for context
|
|
32
|
+
*/
|
|
33
|
+
export interface IAgentContextServices {
|
|
34
|
+
config: IAgentServiceConfig;
|
|
35
|
+
processorService?: any;
|
|
36
|
+
productBuilder?: any;
|
|
37
|
+
databaseService?: any;
|
|
38
|
+
graphService?: any;
|
|
39
|
+
storageService?: any;
|
|
40
|
+
brokersService?: any;
|
|
41
|
+
resilienceService?: any;
|
|
42
|
+
/** Agent resilience configuration */
|
|
43
|
+
resilienceConfig?: IAgentResilienceConfig;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Agent Context Implementation
|
|
47
|
+
*
|
|
48
|
+
* Provides the execution context for agent tool handlers,
|
|
49
|
+
* wrapping Ductape services and managing state.
|
|
50
|
+
*/
|
|
51
|
+
export declare class AgentContext implements IAgentToolContext {
|
|
52
|
+
private _state;
|
|
53
|
+
private _customState;
|
|
54
|
+
private _services;
|
|
55
|
+
private _memoryAdapter;
|
|
56
|
+
private _session?;
|
|
57
|
+
readonly action: IAgentActionContext;
|
|
58
|
+
readonly database: IAgentDatabaseContext;
|
|
59
|
+
readonly graph: IAgentGraphContext;
|
|
60
|
+
readonly notification: IAgentNotificationContext;
|
|
61
|
+
readonly storage: IAgentStorageContext;
|
|
62
|
+
readonly publish: IAgentPublishContext;
|
|
63
|
+
readonly feature: IAgentFeatureContext;
|
|
64
|
+
readonly resilience: IAgentResilienceContext;
|
|
65
|
+
readonly log: IAgentLogger;
|
|
66
|
+
constructor(state: IAgentState, services: IAgentContextServices, memoryAdapter?: IMemoryAdapter, session?: string);
|
|
67
|
+
get input(): Record<string, unknown>;
|
|
68
|
+
get execution_id(): string;
|
|
69
|
+
get agent_tag(): string;
|
|
70
|
+
get env(): string;
|
|
71
|
+
get product(): string;
|
|
72
|
+
get iteration(): number;
|
|
73
|
+
get session(): string | undefined;
|
|
74
|
+
getConversationHistory(): IConversationMessage[];
|
|
75
|
+
getToolCallHistory(): IToolCallResult[];
|
|
76
|
+
setState(key: string, value: unknown): void;
|
|
77
|
+
getState<T>(key: string): T | undefined;
|
|
78
|
+
remember(content: string, metadata?: Record<string, unknown>): Promise<void>;
|
|
79
|
+
recall(query: string, topK?: number): Promise<IMemoryResult[]>;
|
|
80
|
+
private createActionContext;
|
|
81
|
+
private createDatabaseContext;
|
|
82
|
+
private createGraphContext;
|
|
83
|
+
private createNotificationContext;
|
|
84
|
+
private createStorageContext;
|
|
85
|
+
private createPublishContext;
|
|
86
|
+
private createFeatureContext;
|
|
87
|
+
private createResilienceContext;
|
|
88
|
+
private createLogger;
|
|
89
|
+
/**
|
|
90
|
+
* Update internal state (called by AgentExecutor)
|
|
91
|
+
*/
|
|
92
|
+
updateState(updates: Partial<IAgentState>): void;
|
|
93
|
+
/**
|
|
94
|
+
* Get current state snapshot
|
|
95
|
+
*/
|
|
96
|
+
getStateSnapshot(): IAgentState;
|
|
97
|
+
}
|
|
98
|
+
export default AgentContext;
|
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Agent Context
|
|
4
|
+
*
|
|
5
|
+
* Provides context to agent tool handlers, including access to
|
|
6
|
+
* Ductape components (actions, database, graph, etc.) and state management.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AgentContext = exports.InMemoryAdapter = void 0;
|
|
10
|
+
/**
|
|
11
|
+
* In-memory adapter (fallback when vector store not available)
|
|
12
|
+
*/
|
|
13
|
+
class InMemoryAdapter {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.memories = [];
|
|
16
|
+
}
|
|
17
|
+
async store(content, metadata) {
|
|
18
|
+
this.memories.push({ content, metadata });
|
|
19
|
+
}
|
|
20
|
+
async retrieve(query, topK = 5) {
|
|
21
|
+
// Simple keyword matching (basic fallback)
|
|
22
|
+
const queryLower = query.toLowerCase();
|
|
23
|
+
const scored = this.memories.map((m) => {
|
|
24
|
+
const contentLower = m.content.toLowerCase();
|
|
25
|
+
const words = queryLower.split(/\s+/);
|
|
26
|
+
const matches = words.filter((w) => contentLower.includes(w)).length;
|
|
27
|
+
const similarity = words.length > 0 ? matches / words.length : 0;
|
|
28
|
+
return { content: m.content, metadata: m.metadata, similarity };
|
|
29
|
+
});
|
|
30
|
+
return scored
|
|
31
|
+
.filter((m) => m.similarity > 0)
|
|
32
|
+
.sort((a, b) => b.similarity - a.similarity)
|
|
33
|
+
.slice(0, topK);
|
|
34
|
+
}
|
|
35
|
+
async clear() {
|
|
36
|
+
this.memories = [];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.InMemoryAdapter = InMemoryAdapter;
|
|
40
|
+
/**
|
|
41
|
+
* Agent Context Implementation
|
|
42
|
+
*
|
|
43
|
+
* Provides the execution context for agent tool handlers,
|
|
44
|
+
* wrapping Ductape services and managing state.
|
|
45
|
+
*/
|
|
46
|
+
class AgentContext {
|
|
47
|
+
constructor(state, services, memoryAdapter, session) {
|
|
48
|
+
this._customState = {};
|
|
49
|
+
this._state = state;
|
|
50
|
+
this._services = services;
|
|
51
|
+
this._memoryAdapter = memoryAdapter || new InMemoryAdapter();
|
|
52
|
+
this._session = session;
|
|
53
|
+
// Initialize component contexts
|
|
54
|
+
this.action = this.createActionContext();
|
|
55
|
+
this.database = this.createDatabaseContext();
|
|
56
|
+
this.graph = this.createGraphContext();
|
|
57
|
+
this.notification = this.createNotificationContext();
|
|
58
|
+
this.storage = this.createStorageContext();
|
|
59
|
+
this.publish = this.createPublishContext();
|
|
60
|
+
this.feature = this.createFeatureContext();
|
|
61
|
+
this.resilience = this.createResilienceContext();
|
|
62
|
+
this.log = this.createLogger();
|
|
63
|
+
}
|
|
64
|
+
// ==================== READ-ONLY PROPERTIES ====================
|
|
65
|
+
get input() {
|
|
66
|
+
return Object.freeze(Object.assign({}, this._state.input));
|
|
67
|
+
}
|
|
68
|
+
get execution_id() {
|
|
69
|
+
return this._state.execution_id;
|
|
70
|
+
}
|
|
71
|
+
get agent_tag() {
|
|
72
|
+
return this._state.agent_tag;
|
|
73
|
+
}
|
|
74
|
+
get env() {
|
|
75
|
+
return this._services.config.env || '';
|
|
76
|
+
}
|
|
77
|
+
get product() {
|
|
78
|
+
return this._services.config.product || '';
|
|
79
|
+
}
|
|
80
|
+
get iteration() {
|
|
81
|
+
return this._state.iteration;
|
|
82
|
+
}
|
|
83
|
+
get session() {
|
|
84
|
+
return this._session;
|
|
85
|
+
}
|
|
86
|
+
// ==================== CONVERSATION & TOOL HISTORY ====================
|
|
87
|
+
getConversationHistory() {
|
|
88
|
+
return [...this._state.conversation];
|
|
89
|
+
}
|
|
90
|
+
getToolCallHistory() {
|
|
91
|
+
return [...this._state.toolCalls];
|
|
92
|
+
}
|
|
93
|
+
// ==================== STATE MANAGEMENT ====================
|
|
94
|
+
setState(key, value) {
|
|
95
|
+
this._customState[key] = value;
|
|
96
|
+
this._state.data[key] = value;
|
|
97
|
+
}
|
|
98
|
+
getState(key) {
|
|
99
|
+
return this._customState[key];
|
|
100
|
+
}
|
|
101
|
+
// ==================== MEMORY OPERATIONS ====================
|
|
102
|
+
async remember(content, metadata) {
|
|
103
|
+
await this._memoryAdapter.store(content, Object.assign(Object.assign({}, metadata), { execution_id: this.execution_id, agent_tag: this.agent_tag, timestamp: Date.now() }));
|
|
104
|
+
}
|
|
105
|
+
async recall(query, topK = 5) {
|
|
106
|
+
return this._memoryAdapter.retrieve(query, topK);
|
|
107
|
+
}
|
|
108
|
+
// ==================== COMPONENT CONTEXT FACTORIES ====================
|
|
109
|
+
createActionContext() {
|
|
110
|
+
const services = this._services;
|
|
111
|
+
return {
|
|
112
|
+
async run(options) {
|
|
113
|
+
if (!services.processorService) {
|
|
114
|
+
throw new Error('ProcessorService not available. Cannot execute actions.');
|
|
115
|
+
}
|
|
116
|
+
// Use ProcessorService to run action
|
|
117
|
+
const result = await services.processorService.processAction({
|
|
118
|
+
product: services.config.product,
|
|
119
|
+
env: services.config.env,
|
|
120
|
+
app: options.app,
|
|
121
|
+
event: options.event,
|
|
122
|
+
input: options.input,
|
|
123
|
+
retries: options.retries || 0,
|
|
124
|
+
});
|
|
125
|
+
return result;
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
createDatabaseContext() {
|
|
130
|
+
const services = this._services;
|
|
131
|
+
return {
|
|
132
|
+
async execute(options) {
|
|
133
|
+
if (!services.databaseService) {
|
|
134
|
+
throw new Error('DatabaseService not available. Cannot execute database operations.');
|
|
135
|
+
}
|
|
136
|
+
const result = await services.databaseService.execute({
|
|
137
|
+
product: services.config.product,
|
|
138
|
+
env: services.config.env,
|
|
139
|
+
database: options.database,
|
|
140
|
+
event: options.event,
|
|
141
|
+
input: options.input,
|
|
142
|
+
});
|
|
143
|
+
return result;
|
|
144
|
+
},
|
|
145
|
+
async query(options) {
|
|
146
|
+
if (!services.databaseService) {
|
|
147
|
+
throw new Error('DatabaseService not available. Cannot execute database queries.');
|
|
148
|
+
}
|
|
149
|
+
const result = await services.databaseService.execute({
|
|
150
|
+
product: services.config.product,
|
|
151
|
+
env: services.config.env,
|
|
152
|
+
database: options.database,
|
|
153
|
+
event: options.event,
|
|
154
|
+
input: { params: options.params },
|
|
155
|
+
});
|
|
156
|
+
return Array.isArray(result) ? result : [result];
|
|
157
|
+
},
|
|
158
|
+
async insert(options) {
|
|
159
|
+
if (!services.databaseService) {
|
|
160
|
+
throw new Error('DatabaseService not available. Cannot execute database inserts.');
|
|
161
|
+
}
|
|
162
|
+
const result = await services.databaseService.execute({
|
|
163
|
+
product: services.config.product,
|
|
164
|
+
env: services.config.env,
|
|
165
|
+
database: options.database,
|
|
166
|
+
event: options.event,
|
|
167
|
+
input: { body: options.data },
|
|
168
|
+
});
|
|
169
|
+
return result;
|
|
170
|
+
},
|
|
171
|
+
async update(options) {
|
|
172
|
+
if (!services.databaseService) {
|
|
173
|
+
throw new Error('DatabaseService not available. Cannot execute database updates.');
|
|
174
|
+
}
|
|
175
|
+
const result = await services.databaseService.execute({
|
|
176
|
+
product: services.config.product,
|
|
177
|
+
env: services.config.env,
|
|
178
|
+
database: options.database,
|
|
179
|
+
event: options.event,
|
|
180
|
+
input: { body: options.data, params: options.where },
|
|
181
|
+
});
|
|
182
|
+
return result;
|
|
183
|
+
},
|
|
184
|
+
async delete(options) {
|
|
185
|
+
if (!services.databaseService) {
|
|
186
|
+
throw new Error('DatabaseService not available. Cannot execute database deletes.');
|
|
187
|
+
}
|
|
188
|
+
await services.databaseService.execute({
|
|
189
|
+
product: services.config.product,
|
|
190
|
+
env: services.config.env,
|
|
191
|
+
database: options.database,
|
|
192
|
+
event: options.event,
|
|
193
|
+
input: { params: options.where },
|
|
194
|
+
});
|
|
195
|
+
return true;
|
|
196
|
+
},
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
createGraphContext() {
|
|
200
|
+
const services = this._services;
|
|
201
|
+
return {
|
|
202
|
+
async execute(options) {
|
|
203
|
+
if (!services.graphService) {
|
|
204
|
+
throw new Error('GraphService not available. Cannot execute graph operations.');
|
|
205
|
+
}
|
|
206
|
+
const result = await services.graphService.execute({
|
|
207
|
+
product: services.config.product,
|
|
208
|
+
env: services.config.env,
|
|
209
|
+
graph: options.graph,
|
|
210
|
+
action: options.action,
|
|
211
|
+
input: options.input,
|
|
212
|
+
});
|
|
213
|
+
return result.data;
|
|
214
|
+
},
|
|
215
|
+
async createNode(options) {
|
|
216
|
+
if (!services.graphService) {
|
|
217
|
+
throw new Error('GraphService not available. Cannot create graph nodes.');
|
|
218
|
+
}
|
|
219
|
+
const result = await services.graphService.createNode({
|
|
220
|
+
labels: options.labels,
|
|
221
|
+
properties: options.properties,
|
|
222
|
+
});
|
|
223
|
+
return result.node;
|
|
224
|
+
},
|
|
225
|
+
async updateNode(options) {
|
|
226
|
+
if (!services.graphService) {
|
|
227
|
+
throw new Error('GraphService not available. Cannot update graph nodes.');
|
|
228
|
+
}
|
|
229
|
+
const result = await services.graphService.updateNode({
|
|
230
|
+
id: options.id,
|
|
231
|
+
properties: options.properties,
|
|
232
|
+
});
|
|
233
|
+
return result.node;
|
|
234
|
+
},
|
|
235
|
+
async deleteNode(options) {
|
|
236
|
+
if (!services.graphService) {
|
|
237
|
+
throw new Error('GraphService not available. Cannot delete graph nodes.');
|
|
238
|
+
}
|
|
239
|
+
await services.graphService.deleteNode({ id: options.id });
|
|
240
|
+
},
|
|
241
|
+
async createRelationship(options) {
|
|
242
|
+
if (!services.graphService) {
|
|
243
|
+
throw new Error('GraphService not available. Cannot create relationships.');
|
|
244
|
+
}
|
|
245
|
+
const result = await services.graphService.createRelationship({
|
|
246
|
+
from: { id: options.from },
|
|
247
|
+
to: { id: options.to },
|
|
248
|
+
type: options.type,
|
|
249
|
+
properties: options.properties,
|
|
250
|
+
});
|
|
251
|
+
return result.relationship;
|
|
252
|
+
},
|
|
253
|
+
async traverse(options) {
|
|
254
|
+
if (!services.graphService) {
|
|
255
|
+
throw new Error('GraphService not available. Cannot traverse graph.');
|
|
256
|
+
}
|
|
257
|
+
const result = await services.graphService.traverse({
|
|
258
|
+
startNodeId: options.startNodeId,
|
|
259
|
+
direction: options.direction,
|
|
260
|
+
relationshipTypes: options.relationshipTypes,
|
|
261
|
+
maxDepth: options.maxDepth,
|
|
262
|
+
});
|
|
263
|
+
return result;
|
|
264
|
+
},
|
|
265
|
+
async query(options) {
|
|
266
|
+
if (!services.graphService) {
|
|
267
|
+
throw new Error('GraphService not available. Cannot query graph.');
|
|
268
|
+
}
|
|
269
|
+
const result = await services.graphService.execute({
|
|
270
|
+
product: services.config.product,
|
|
271
|
+
env: services.config.env,
|
|
272
|
+
graph: options.graph,
|
|
273
|
+
action: options.action,
|
|
274
|
+
input: options.params || {},
|
|
275
|
+
});
|
|
276
|
+
return result.data;
|
|
277
|
+
},
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
createNotificationContext() {
|
|
281
|
+
const services = this._services;
|
|
282
|
+
return {
|
|
283
|
+
async send(options) {
|
|
284
|
+
if (!services.processorService) {
|
|
285
|
+
throw new Error('ProcessorService not available. Cannot send notifications.');
|
|
286
|
+
}
|
|
287
|
+
await services.processorService.processNotification({
|
|
288
|
+
product: services.config.product,
|
|
289
|
+
env: services.config.env,
|
|
290
|
+
notification: options.notification,
|
|
291
|
+
event: options.event,
|
|
292
|
+
input: options.input,
|
|
293
|
+
retries: options.retries || 0,
|
|
294
|
+
});
|
|
295
|
+
},
|
|
296
|
+
async email(options) {
|
|
297
|
+
if (!services.processorService) {
|
|
298
|
+
throw new Error('ProcessorService not available. Cannot send emails.');
|
|
299
|
+
}
|
|
300
|
+
await services.processorService.processNotification({
|
|
301
|
+
product: services.config.product,
|
|
302
|
+
env: services.config.env,
|
|
303
|
+
notification: options.notification,
|
|
304
|
+
event: options.event,
|
|
305
|
+
input: {
|
|
306
|
+
recipients: options.recipients,
|
|
307
|
+
subject: options.subject,
|
|
308
|
+
template: options.template,
|
|
309
|
+
},
|
|
310
|
+
});
|
|
311
|
+
},
|
|
312
|
+
async push(options) {
|
|
313
|
+
if (!services.processorService) {
|
|
314
|
+
throw new Error('ProcessorService not available. Cannot send push notifications.');
|
|
315
|
+
}
|
|
316
|
+
await services.processorService.processNotification({
|
|
317
|
+
product: services.config.product,
|
|
318
|
+
env: services.config.env,
|
|
319
|
+
notification: options.notification,
|
|
320
|
+
event: options.event,
|
|
321
|
+
input: {
|
|
322
|
+
tokens: options.tokens,
|
|
323
|
+
title: options.title,
|
|
324
|
+
body: options.body,
|
|
325
|
+
data: options.data,
|
|
326
|
+
},
|
|
327
|
+
});
|
|
328
|
+
},
|
|
329
|
+
async sms(options) {
|
|
330
|
+
if (!services.processorService) {
|
|
331
|
+
throw new Error('ProcessorService not available. Cannot send SMS.');
|
|
332
|
+
}
|
|
333
|
+
await services.processorService.processNotification({
|
|
334
|
+
product: services.config.product,
|
|
335
|
+
env: services.config.env,
|
|
336
|
+
notification: options.notification,
|
|
337
|
+
event: options.event,
|
|
338
|
+
input: {
|
|
339
|
+
phones: options.phones,
|
|
340
|
+
message: options.message,
|
|
341
|
+
},
|
|
342
|
+
});
|
|
343
|
+
},
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
createStorageContext() {
|
|
347
|
+
const services = this._services;
|
|
348
|
+
return {
|
|
349
|
+
async upload(options) {
|
|
350
|
+
if (!services.storageService) {
|
|
351
|
+
throw new Error('StorageService not available. Cannot upload files.');
|
|
352
|
+
}
|
|
353
|
+
const result = await services.storageService.upload({
|
|
354
|
+
product: services.config.product,
|
|
355
|
+
env: services.config.env,
|
|
356
|
+
storage: options.storage,
|
|
357
|
+
event: options.event,
|
|
358
|
+
input: options.input,
|
|
359
|
+
});
|
|
360
|
+
return result;
|
|
361
|
+
},
|
|
362
|
+
async download(options) {
|
|
363
|
+
if (!services.storageService) {
|
|
364
|
+
throw new Error('StorageService not available. Cannot download files.');
|
|
365
|
+
}
|
|
366
|
+
const result = await services.storageService.download({
|
|
367
|
+
product: services.config.product,
|
|
368
|
+
env: services.config.env,
|
|
369
|
+
storage: options.storage,
|
|
370
|
+
event: options.event,
|
|
371
|
+
input: options.input,
|
|
372
|
+
});
|
|
373
|
+
return result;
|
|
374
|
+
},
|
|
375
|
+
async delete(options) {
|
|
376
|
+
if (!services.storageService) {
|
|
377
|
+
throw new Error('StorageService not available. Cannot delete files.');
|
|
378
|
+
}
|
|
379
|
+
await services.storageService.delete({
|
|
380
|
+
product: services.config.product,
|
|
381
|
+
env: services.config.env,
|
|
382
|
+
storage: options.storage,
|
|
383
|
+
event: options.event,
|
|
384
|
+
input: options.input,
|
|
385
|
+
});
|
|
386
|
+
},
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
createPublishContext() {
|
|
390
|
+
const services = this._services;
|
|
391
|
+
return {
|
|
392
|
+
async send(options) {
|
|
393
|
+
if (!services.brokersService) {
|
|
394
|
+
throw new Error('BrokersService not available. Cannot publish messages.');
|
|
395
|
+
}
|
|
396
|
+
await services.brokersService.publish({
|
|
397
|
+
product: services.config.product,
|
|
398
|
+
env: services.config.env,
|
|
399
|
+
broker: options.broker,
|
|
400
|
+
event: options.event,
|
|
401
|
+
input: options.input,
|
|
402
|
+
});
|
|
403
|
+
},
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
createFeatureContext() {
|
|
407
|
+
const services = this._services;
|
|
408
|
+
return {
|
|
409
|
+
async run(options) {
|
|
410
|
+
if (!services.processorService) {
|
|
411
|
+
throw new Error('ProcessorService not available. Cannot run features.');
|
|
412
|
+
}
|
|
413
|
+
const result = await services.processorService.processFeature({
|
|
414
|
+
product: services.config.product,
|
|
415
|
+
env: services.config.env,
|
|
416
|
+
feature: options.feature,
|
|
417
|
+
input: options.input,
|
|
418
|
+
retries: options.retries || 0,
|
|
419
|
+
});
|
|
420
|
+
return result;
|
|
421
|
+
},
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
createResilienceContext() {
|
|
425
|
+
const services = this._services;
|
|
426
|
+
const resilienceConfig = services.resilienceConfig;
|
|
427
|
+
// Collect all referenced healthcheck tags from the agent config
|
|
428
|
+
const getReferencedHealthchecks = () => {
|
|
429
|
+
var _a;
|
|
430
|
+
const tags = new Set();
|
|
431
|
+
// Add default healthcheck
|
|
432
|
+
if ((_a = resilienceConfig === null || resilienceConfig === void 0 ? void 0 : resilienceConfig.defaults) === null || _a === void 0 ? void 0 : _a.healthcheck) {
|
|
433
|
+
tags.add(resilienceConfig.defaults.healthcheck);
|
|
434
|
+
}
|
|
435
|
+
// Add healthchecks from tool overrides
|
|
436
|
+
if (resilienceConfig === null || resilienceConfig === void 0 ? void 0 : resilienceConfig.toolOverrides) {
|
|
437
|
+
Object.values(resilienceConfig.toolOverrides).forEach((override) => {
|
|
438
|
+
if (override.healthcheck) {
|
|
439
|
+
tags.add(override.healthcheck);
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
return Array.from(tags);
|
|
444
|
+
};
|
|
445
|
+
// Create quota context
|
|
446
|
+
const quotaContext = {
|
|
447
|
+
async run(options) {
|
|
448
|
+
if (!services.resilienceService) {
|
|
449
|
+
throw new Error('ResilienceService not available. Cannot run quota operations.');
|
|
450
|
+
}
|
|
451
|
+
const result = await services.resilienceService.runQuota({
|
|
452
|
+
product: services.config.product,
|
|
453
|
+
env: services.config.env,
|
|
454
|
+
tag: options.tag,
|
|
455
|
+
input: options.input,
|
|
456
|
+
session: options.session,
|
|
457
|
+
});
|
|
458
|
+
return result;
|
|
459
|
+
},
|
|
460
|
+
async status(options) {
|
|
461
|
+
if (!services.resilienceService) {
|
|
462
|
+
throw new Error('ResilienceService not available. Cannot get quota status.');
|
|
463
|
+
}
|
|
464
|
+
const result = await services.resilienceService.getQuotaStatus({
|
|
465
|
+
product: services.config.product,
|
|
466
|
+
env: services.config.env,
|
|
467
|
+
tag: options.tag,
|
|
468
|
+
});
|
|
469
|
+
return {
|
|
470
|
+
tag: options.tag,
|
|
471
|
+
totalQuota: result.totalQuota,
|
|
472
|
+
usedQuota: result.usedQuota,
|
|
473
|
+
remainingQuota: result.remainingQuota,
|
|
474
|
+
providers: result.providers || [],
|
|
475
|
+
};
|
|
476
|
+
},
|
|
477
|
+
};
|
|
478
|
+
// Create fallback context
|
|
479
|
+
const fallbackContext = {
|
|
480
|
+
async run(options) {
|
|
481
|
+
if (!services.resilienceService) {
|
|
482
|
+
throw new Error('ResilienceService not available. Cannot run fallback operations.');
|
|
483
|
+
}
|
|
484
|
+
const result = await services.resilienceService.runFallback({
|
|
485
|
+
product: services.config.product,
|
|
486
|
+
env: services.config.env,
|
|
487
|
+
tag: options.tag,
|
|
488
|
+
input: options.input,
|
|
489
|
+
session: options.session,
|
|
490
|
+
});
|
|
491
|
+
return result;
|
|
492
|
+
},
|
|
493
|
+
};
|
|
494
|
+
// Create healthcheck context
|
|
495
|
+
const healthcheckContext = {
|
|
496
|
+
async check(options) {
|
|
497
|
+
if (!services.resilienceService) {
|
|
498
|
+
throw new Error('ResilienceService not available. Cannot check health.');
|
|
499
|
+
}
|
|
500
|
+
const result = await services.resilienceService.checkHealth({
|
|
501
|
+
product: services.config.product,
|
|
502
|
+
env: options.env || services.config.env,
|
|
503
|
+
tag: options.tag,
|
|
504
|
+
});
|
|
505
|
+
return {
|
|
506
|
+
tag: options.tag,
|
|
507
|
+
status: result.status || 'unknown',
|
|
508
|
+
lastChecked: result.lastChecked,
|
|
509
|
+
lastAvailable: result.lastAvailable,
|
|
510
|
+
lastLatency: result.lastLatency,
|
|
511
|
+
averageLatency: result.averageLatency,
|
|
512
|
+
error: result.error,
|
|
513
|
+
};
|
|
514
|
+
},
|
|
515
|
+
async status() {
|
|
516
|
+
if (!services.resilienceService) {
|
|
517
|
+
throw new Error('ResilienceService not available. Cannot get health status.');
|
|
518
|
+
}
|
|
519
|
+
const healthcheckTags = getReferencedHealthchecks();
|
|
520
|
+
const results = {};
|
|
521
|
+
for (const tag of healthcheckTags) {
|
|
522
|
+
try {
|
|
523
|
+
const result = await services.resilienceService.checkHealth({
|
|
524
|
+
product: services.config.product,
|
|
525
|
+
env: services.config.env,
|
|
526
|
+
tag,
|
|
527
|
+
});
|
|
528
|
+
results[tag] = {
|
|
529
|
+
tag,
|
|
530
|
+
status: result.status || 'unknown',
|
|
531
|
+
lastChecked: result.lastChecked,
|
|
532
|
+
lastAvailable: result.lastAvailable,
|
|
533
|
+
lastLatency: result.lastLatency,
|
|
534
|
+
averageLatency: result.averageLatency,
|
|
535
|
+
error: result.error,
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
catch (error) {
|
|
539
|
+
results[tag] = {
|
|
540
|
+
tag,
|
|
541
|
+
status: 'unknown',
|
|
542
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
return results;
|
|
547
|
+
},
|
|
548
|
+
};
|
|
549
|
+
return {
|
|
550
|
+
quota: quotaContext,
|
|
551
|
+
fallback: fallbackContext,
|
|
552
|
+
healthcheck: healthcheckContext,
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
createLogger() {
|
|
556
|
+
const ctx = this;
|
|
557
|
+
return {
|
|
558
|
+
debug(message, data) {
|
|
559
|
+
console.debug(`[Agent:${ctx.agent_tag}:${ctx.execution_id}] ${message}`, data || '');
|
|
560
|
+
},
|
|
561
|
+
info(message, data) {
|
|
562
|
+
console.info(`[Agent:${ctx.agent_tag}:${ctx.execution_id}] ${message}`, data || '');
|
|
563
|
+
},
|
|
564
|
+
warn(message, data) {
|
|
565
|
+
console.warn(`[Agent:${ctx.agent_tag}:${ctx.execution_id}] ${message}`, data || '');
|
|
566
|
+
},
|
|
567
|
+
error(message, data) {
|
|
568
|
+
console.error(`[Agent:${ctx.agent_tag}:${ctx.execution_id}] ${message}`, data || '');
|
|
569
|
+
},
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
// ==================== STATE UPDATE ====================
|
|
573
|
+
/**
|
|
574
|
+
* Update internal state (called by AgentExecutor)
|
|
575
|
+
*/
|
|
576
|
+
updateState(updates) {
|
|
577
|
+
this._state = Object.assign(Object.assign({}, this._state), updates);
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* Get current state snapshot
|
|
581
|
+
*/
|
|
582
|
+
getStateSnapshot() {
|
|
583
|
+
return Object.assign({}, this._state);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
exports.AgentContext = AgentContext;
|
|
587
|
+
exports.default = AgentContext;
|
|
588
|
+
//# sourceMappingURL=agent-context.js.map
|