@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
|
@@ -1,98 +1,141 @@
|
|
|
1
|
+
import { IBootstrapActionParams, IBootstrapActionResponse, IBootstrapNotificationParams, IBootstrapNotificationResponse, IBootstrapStorageParams, IBootstrapStorageResponse } from '../../api/services/productsApi.service';
|
|
1
2
|
import { IApp, IAppAccess, IAppAction, IAppWebhook, ISample, IVersion } from '../../types/appBuilder.types';
|
|
2
3
|
import { IBuilderInit } from '../../types/index.types';
|
|
3
|
-
import { IActionDataParserInput, IActionRequest, ICreateProductsBuilder, IFeatureEvent, IFeatureInput, IFeatureSequence, IProduct, IProductApp, IProductCache, IProductDatabase, IProductDatabaseAction, IProductEnv, IProductFeature, IProductFunction, IProductJobs, IParseActionEventInput, IParseInputStringInput, IParseInputStringMetaData, IProductStorage, IDbActionRequest, INotificationRequest, IProductQuota, IProductFallback, IProductDatabaseMigration, IQuotaOptions, IFallbackOptions, IProductSession,
|
|
4
|
+
import { IActionDataParserInput, IActionRequest, ICreateProductsBuilder, IFeatureEvent, IFeatureInput, IFeatureSequence, IProduct, IProductApp, IProductCache, IProductDatabase, IProductDatabaseAction, IProductEnv, IProductFeature, IProductFunction, IProductJobs, IParseActionEventInput, IParseInputStringInput, IParseInputStringMetaData, IProductStorage, IDbActionRequest, INotificationRequest, IProductQuota, IProductFallback, IProductDatabaseMigration, IQuotaOptions, IFallbackOptions, IProductSession, IFetchFilesPayload, IFetchUsersPayload, IProductAppHealth, IProductGraph, IProductWorkflow, IProductVector, IProductAgent, IProductLLMModel, IProductDatabaseTrigger } from '../../types/productsBuilder.types';
|
|
4
5
|
import { KeyValuePair } from '../../imports/imports.types';
|
|
5
|
-
import { IProductNotification, INotificationEnv, IProductNotificationTemplate, IProductMessageBroker, IProductMessageBrokerTopic, IFileURLPayload } from '../../types/processor.types';
|
|
6
|
+
import { IProductNotification, INotificationEnv, IProductNotificationTemplate, IProductMessageBroker, IProductMessageBrokerTopic, IMessageBrokerProducer, IMessageBrokerConsumer, IFileURLPayload } from '../../types/processor.types';
|
|
6
7
|
import { IParsedSample } from '../../types/inputs.types';
|
|
7
8
|
export interface IProductsBuilderService {
|
|
9
|
+
fetchPrivateKey(): string;
|
|
10
|
+
fetchWorkspaceId(): string;
|
|
11
|
+
fetchProductId(): string;
|
|
8
12
|
fetchThirdPartyAppByAccessTag(access_tag: string): Promise<(IApp & IVersion) | null>;
|
|
9
13
|
createProduct(data: ICreateProductsBuilder): Promise<void>;
|
|
10
14
|
updateProduct(data: Partial<IProduct>): Promise<void>;
|
|
11
15
|
initializeProduct(product_id: string): Promise<void>;
|
|
12
|
-
fetchProduct(): IProduct
|
|
16
|
+
fetchProduct(): Promise<IProduct>;
|
|
13
17
|
initializeProductByTag(tag: string): Promise<void>;
|
|
18
|
+
bootstrapAction(params: IBootstrapActionParams): Promise<IBootstrapActionResponse>;
|
|
19
|
+
bootstrapNotification(params: IBootstrapNotificationParams): Promise<IBootstrapNotificationResponse>;
|
|
20
|
+
bootstrapStorage(params: IBootstrapStorageParams): Promise<IBootstrapStorageResponse>;
|
|
14
21
|
createEnv(data: Partial<IProductEnv>): Promise<void>;
|
|
15
22
|
updateEnv(slug: string, data: Partial<IProductEnv>): Promise<void>;
|
|
16
|
-
fetchEnv(slug: string): IProductEnv | null
|
|
17
|
-
fetchEnvs(): Array<IProductEnv
|
|
23
|
+
fetchEnv(slug: string): Promise<IProductEnv | null>;
|
|
24
|
+
fetchEnvs(): Promise<Array<IProductEnv>>;
|
|
18
25
|
createSession(data: IProductSession): Promise<void>;
|
|
19
26
|
updateSession(tag: string, data: Partial<IProductSession>): Promise<void>;
|
|
20
|
-
fetchSession(tag: string): IProductSession | null
|
|
21
|
-
fetchSessions(): Array<IProductSession
|
|
27
|
+
fetchSession(tag: string): Promise<IProductSession | null>;
|
|
28
|
+
fetchSessions(): Promise<Array<IProductSession>>;
|
|
22
29
|
createFunction(data: Partial<IProductFunction>): Promise<void>;
|
|
23
30
|
updateFunction(tag: string, data: Partial<IProductFunction>): Promise<void>;
|
|
24
|
-
fetchFunction(tag: string): IProductFunction | null
|
|
25
|
-
fetchFunctions(): Array<IProductFunction
|
|
31
|
+
fetchFunction(tag: string): Promise<IProductFunction | null>;
|
|
32
|
+
fetchFunctions(): Promise<Array<IProductFunction>>;
|
|
26
33
|
createCache(data: Partial<IProductCache>, throwErrorIfExists?: boolean): Promise<void>;
|
|
27
34
|
updateCache(tag: string, data: Partial<IProductCache>): Promise<void>;
|
|
28
|
-
fetchCache(tag: string): IProductCache | null
|
|
29
|
-
fetchCaches(): Array<IProductCache
|
|
35
|
+
fetchCache(tag: string): Promise<IProductCache | null>;
|
|
36
|
+
fetchCaches(): Promise<Array<IProductCache>>;
|
|
30
37
|
createStorage(data: Partial<IProductStorage>): Promise<void>;
|
|
31
38
|
updateStorage(tag: string, data: Partial<IProductStorage>): Promise<void>;
|
|
32
|
-
fetchStorage(tag: string): IProductStorage | null
|
|
33
|
-
fetchStorages(): Array<IProductStorage
|
|
39
|
+
fetchStorage(tag: string): Promise<IProductStorage | null>;
|
|
40
|
+
fetchStorages(): Promise<Array<IProductStorage>>;
|
|
34
41
|
createNotification(data: Partial<IProductNotification>): Promise<void>;
|
|
35
42
|
updateNotification(tag: string, data: Partial<IProductNotification>): Promise<void>;
|
|
36
|
-
fetchNotification(tag: string): IProductNotification | INotificationEnv | null
|
|
37
|
-
fetchNotifications(): Array<IProductNotification
|
|
43
|
+
fetchNotification(tag: string): Promise<IProductNotification | INotificationEnv | null>;
|
|
44
|
+
fetchNotifications(): Promise<Array<IProductNotification>>;
|
|
38
45
|
createMessageBroker(data: Partial<IProductMessageBroker>): Promise<void>;
|
|
39
46
|
updateMessageBroker(tag: string, data: Partial<IProductMessageBroker>): Promise<void>;
|
|
40
|
-
fetchMessageBroker(tag: string): IProductMessageBroker | null
|
|
41
|
-
fetchMessageBrokers(): Array<IProductMessageBroker
|
|
47
|
+
fetchMessageBroker(tag: string): Promise<IProductMessageBroker | null>;
|
|
48
|
+
fetchMessageBrokers(): Promise<Array<IProductMessageBroker>>;
|
|
42
49
|
createMessageBrokerTopic(data: Partial<IProductMessageBrokerTopic>): Promise<void>;
|
|
43
50
|
updateMessageBrokerTopic(data: Partial<IProductMessageBrokerTopic>): Promise<void>;
|
|
44
|
-
fetchMessageBrokerTopic(tag: string): IProductMessageBrokerTopic | null
|
|
45
|
-
fetchMessageBrokerTopics(messageBrokerTag: string): Array<IProductMessageBrokerTopic
|
|
51
|
+
fetchMessageBrokerTopic(tag: string): Promise<IProductMessageBrokerTopic | null>;
|
|
52
|
+
fetchMessageBrokerTopics(messageBrokerTag: string): Promise<Array<IProductMessageBrokerTopic>>;
|
|
53
|
+
createMessageBrokerProducer(data: Partial<IMessageBrokerProducer>): Promise<void>;
|
|
54
|
+
updateMessageBrokerProducer(data: Partial<IMessageBrokerProducer>): Promise<void>;
|
|
55
|
+
fetchMessageBrokerProducer(brokerTag: string, tag: string): Promise<IMessageBrokerProducer | null>;
|
|
56
|
+
fetchMessageBrokerProducers(messageBrokerTag: string): Promise<Array<IMessageBrokerProducer>>;
|
|
57
|
+
createMessageBrokerConsumer(data: Partial<IMessageBrokerConsumer>): Promise<void>;
|
|
58
|
+
updateMessageBrokerConsumer(data: Partial<IMessageBrokerConsumer>): Promise<void>;
|
|
59
|
+
fetchMessageBrokerConsumer(brokerTag: string, tag: string): Promise<IMessageBrokerConsumer | null>;
|
|
60
|
+
fetchMessageBrokerConsumers(messageBrokerTag: string): Promise<Array<IMessageBrokerConsumer>>;
|
|
46
61
|
createQuota(data: Partial<IProductQuota>): Promise<void>;
|
|
47
62
|
updateQuota(tag: string, data: Partial<IProductQuota>): Promise<void>;
|
|
48
|
-
fetchQuota(tag: string): IProductQuota | null
|
|
49
|
-
fetchQuotas(): Array<IProductQuota
|
|
63
|
+
fetchQuota(tag: string): Promise<IProductQuota | null>;
|
|
64
|
+
fetchQuotas(): Promise<Array<IProductQuota>>;
|
|
50
65
|
createFallback(data: Partial<IProductFallback>): Promise<void>;
|
|
51
66
|
updateFallback(tag: string, data: Partial<IProductFallback>): Promise<void>;
|
|
52
|
-
fetchFallback(tag: string): IProductFallback | null
|
|
53
|
-
fetchFallbacks(): Array<IProductFallback
|
|
67
|
+
fetchFallback(tag: string): Promise<IProductFallback | null>;
|
|
68
|
+
fetchFallbacks(): Promise<Array<IProductFallback>>;
|
|
54
69
|
createNotificationMessage(data: Partial<IProductNotificationTemplate>): Promise<void>;
|
|
55
70
|
updateNotificationMessage(data: Partial<IProductNotificationTemplate>): Promise<void>;
|
|
56
|
-
fetchNotificationMessage(tag: string): IProductNotificationTemplate | null
|
|
57
|
-
fetchNotificationMessages(notificationTag: string): Array<IProductNotificationTemplate
|
|
71
|
+
fetchNotificationMessage(tag: string): Promise<IProductNotificationTemplate | null>;
|
|
72
|
+
fetchNotificationMessages(notificationTag: string): Promise<Array<IProductNotificationTemplate>>;
|
|
58
73
|
updateApp(tag: string, data: Partial<IProductApp>): Promise<void>;
|
|
59
|
-
fetchApp(tag: string): IProductApp | null
|
|
60
|
-
fetchApps(): Array<IProductApp
|
|
74
|
+
fetchApp(tag: string): Promise<IProductApp | null>;
|
|
75
|
+
fetchApps(): Promise<Array<IProductApp>>;
|
|
61
76
|
addApp(app: IProductApp, throwErrorIfExists?: boolean): Promise<void>;
|
|
62
77
|
createFeature(data: Partial<IProductFeature>, throwErrorIfExists?: boolean): Promise<void>;
|
|
63
78
|
updateFeature(tag: string, data: Partial<IProductFeature>): Promise<void>;
|
|
64
|
-
fetchFeature(tag: string): IProductFeature
|
|
65
|
-
fetchFeatures(): Array<IProductFeature
|
|
79
|
+
fetchFeature(tag: string): Promise<IProductFeature | null>;
|
|
80
|
+
fetchFeatures(): Promise<Array<IProductFeature>>;
|
|
66
81
|
createDatabase(data: Partial<IProductDatabase>, throwErrorIfExists?: boolean): Promise<void>;
|
|
67
82
|
updateDatabase(tag: string, data: Partial<IProductDatabase>): Promise<void>;
|
|
68
|
-
fetchDatabase(tag: string): IProductDatabase | null
|
|
69
|
-
fetchDatabases(): Array<IProductDatabase
|
|
83
|
+
fetchDatabase(tag: string): Promise<IProductDatabase | null>;
|
|
84
|
+
fetchDatabases(): Promise<Array<IProductDatabase>>;
|
|
70
85
|
createDatabaseAction(data: Partial<IProductDatabaseAction>, throwErrorIfExists?: boolean): Promise<void>;
|
|
71
86
|
updateDatabaseAction(data: Partial<IProductDatabaseAction>): Promise<void>;
|
|
72
|
-
fetchDatabaseAction(tag: string): IProductDatabaseAction | null
|
|
73
|
-
fetchDatabaseActions(databaseTag: string): Array<IProductDatabaseAction
|
|
87
|
+
fetchDatabaseAction(tag: string): Promise<IProductDatabaseAction | null>;
|
|
88
|
+
fetchDatabaseActions(databaseTag: string): Promise<Array<IProductDatabaseAction>>;
|
|
74
89
|
createDatabaseMigration(data: Partial<IProductDatabaseMigration>, throwErrorIfExists?: boolean): Promise<void>;
|
|
75
90
|
updateDatabaseMigration(data: Partial<IProductDatabaseMigration>): Promise<void>;
|
|
76
|
-
fetchDatabaseMigration(tag: string): IProductDatabaseMigration | null
|
|
77
|
-
fetchDatabaseMigrations(databaseTag: string): Array<IProductDatabaseMigration
|
|
91
|
+
fetchDatabaseMigration(tag: string): Promise<IProductDatabaseMigration | null>;
|
|
92
|
+
fetchDatabaseMigrations(databaseTag: string): Promise<Array<IProductDatabaseMigration>>;
|
|
93
|
+
createDatabaseTrigger(data: Partial<IProductDatabaseTrigger>, throwErrorIfExists?: boolean): Promise<void>;
|
|
94
|
+
updateDatabaseTrigger(data: Partial<IProductDatabaseTrigger>): Promise<void>;
|
|
95
|
+
fetchDatabaseTrigger(tag: string): Promise<IProductDatabaseTrigger | null>;
|
|
96
|
+
fetchDatabaseTriggers(databaseTag: string): Promise<Array<IProductDatabaseTrigger>>;
|
|
97
|
+
deleteDatabaseTrigger(tag: string): Promise<void>;
|
|
98
|
+
createGraph(data: Partial<IProductGraph>, throwErrorIfExists?: boolean): Promise<void>;
|
|
99
|
+
updateGraph(tag: string, data: Partial<IProductGraph>): Promise<void>;
|
|
100
|
+
fetchGraph(tag: string): Promise<IProductGraph | null>;
|
|
101
|
+
fetchGraphs(): Promise<Array<IProductGraph>>;
|
|
102
|
+
deleteGraph(tag: string): Promise<void>;
|
|
103
|
+
createGraphAction(graphTag: string, data: any): Promise<void>;
|
|
104
|
+
updateGraphAction(graphTag: string, actionTag: string, data: any): Promise<void>;
|
|
105
|
+
fetchGraphAction(graphTag: string, actionTag: string): Promise<any | null>;
|
|
106
|
+
fetchGraphActions(graphTag: string): Promise<Array<any>>;
|
|
107
|
+
deleteGraphAction(graphTag: string, actionTag: string): Promise<void>;
|
|
78
108
|
createJob(data: Partial<IProductJobs>, throwErrorIfExists?: boolean): Promise<void>;
|
|
79
109
|
updateJob(tag: string, data: Partial<IProductJobs>): Promise<void>;
|
|
80
|
-
fetchJob(tag: string): IProductJobs
|
|
81
|
-
fetchJobs(): Array<IProductJobs
|
|
110
|
+
fetchJob(tag: string): Promise<IProductJobs | null>;
|
|
111
|
+
fetchJobs(): Promise<Array<IProductJobs>>;
|
|
112
|
+
createHealthcheck(data: Partial<IProductAppHealth>): Promise<void>;
|
|
113
|
+
updateHealthcheck(tag: string, data: Partial<IProductAppHealth>): Promise<void>;
|
|
114
|
+
fetchHealthcheck(access_tag: string, tag: string): Promise<IProductAppHealth | null>;
|
|
115
|
+
fetchHealthchecks(access_tag: string): Promise<Array<IProductAppHealth>>;
|
|
116
|
+
fetchProductHealthchecks(): Promise<Array<IProductAppHealth>>;
|
|
117
|
+
createWorkflow(data: Partial<IProductWorkflow>, throwErrorIfExists?: boolean): Promise<void>;
|
|
118
|
+
updateWorkflow(tag: string, data: Partial<IProductWorkflow>): Promise<void>;
|
|
119
|
+
fetchWorkflow(tag: string): Promise<IProductWorkflow | null>;
|
|
120
|
+
fetchWorkflows(): Promise<Array<IProductWorkflow>>;
|
|
121
|
+
deleteWorkflow(tag: string): Promise<void>;
|
|
82
122
|
createAppAccessTag(app_tag: string): Promise<IAppAccess>;
|
|
83
|
-
extractStages(input: string): Array<string>;
|
|
123
|
+
extractStages(input: string): Array<string | number>;
|
|
84
124
|
updateDataValidation(tag: string, update: Partial<IParsedSample>): Promise<boolean>;
|
|
85
|
-
fetchStorageFiles(filter:
|
|
125
|
+
fetchStorageFiles(filter: IFetchFilesPayload): Promise<Array<IFileURLPayload>>;
|
|
126
|
+
fetchSessionUser(ductape_user_id: string): Promise<any>;
|
|
86
127
|
}
|
|
87
128
|
export default class ProductsBuilderService implements IProductsBuilderService {
|
|
88
129
|
private user_id;
|
|
89
130
|
private workspace_id;
|
|
90
131
|
private workspace;
|
|
91
132
|
private private_key;
|
|
133
|
+
private workspace_private_key;
|
|
92
134
|
private product_id;
|
|
93
135
|
private token;
|
|
94
136
|
private app_id;
|
|
95
137
|
private public_key;
|
|
138
|
+
private access_key;
|
|
96
139
|
private session;
|
|
97
140
|
private product;
|
|
98
141
|
private userApi;
|
|
@@ -103,24 +146,56 @@ export default class ProductsBuilderService implements IProductsBuilderService {
|
|
|
103
146
|
private inputsService;
|
|
104
147
|
private thirdPartyApps;
|
|
105
148
|
private isQuotaFallbackInput;
|
|
106
|
-
|
|
149
|
+
private redisClient?;
|
|
150
|
+
private queues;
|
|
151
|
+
constructor({ workspace_id, public_key, user_id, token, env_type, redis_client, queues, access_key }: IBuilderInit);
|
|
152
|
+
fetchPrivateKey(): string;
|
|
153
|
+
fetchWorkspaceId(): string;
|
|
154
|
+
fetchProductId(): string;
|
|
155
|
+
createHealthcheck(data: Partial<IProductAppHealth>): Promise<void>;
|
|
156
|
+
updateHealthcheck(tag: string, data: Partial<IProductAppHealth>): Promise<void>;
|
|
157
|
+
fetchHealthcheck(access_tag: string, tag: string, throwError?: boolean): Promise<IProductAppHealth | null>;
|
|
158
|
+
fetchHealthchecks(access_tag: string, throwError?: boolean): Promise<Array<IProductAppHealth>>;
|
|
159
|
+
fetchProductHealthchecks(): Promise<Array<IProductAppHealth>>;
|
|
107
160
|
updateDataValidation(selector: string, update: Partial<IParsedSample>): Promise<boolean>;
|
|
108
161
|
createProduct(data: ICreateProductsBuilder): Promise<void>;
|
|
109
162
|
initializeWorkspace(subCheck?: boolean): Promise<void>;
|
|
163
|
+
/**
|
|
164
|
+
* Get the workspace private key for secrets encryption
|
|
165
|
+
* @returns The workspace private key or null if not available
|
|
166
|
+
*/
|
|
167
|
+
getWorkspacePrivateKey(): string | null;
|
|
110
168
|
initializeProduct(product_id: string): Promise<void>;
|
|
111
169
|
initializeProductByTag(tag: string): Promise<void>;
|
|
170
|
+
/**
|
|
171
|
+
* Bootstrap action - ultra-lightweight API call to fetch action data needed for processAction
|
|
172
|
+
* Replaces 5+ separate API calls: initializeProduct, fetchApp, fetchThirdPartyApp, fetchEnv, initializePricing
|
|
173
|
+
* Returns only the minimal action data needed to execute
|
|
174
|
+
*/
|
|
175
|
+
bootstrapAction(params: IBootstrapActionParams): Promise<IBootstrapActionResponse>;
|
|
176
|
+
bootstrapNotification(params: IBootstrapNotificationParams): Promise<IBootstrapNotificationResponse>;
|
|
177
|
+
bootstrapStorage(params: IBootstrapStorageParams): Promise<IBootstrapStorageResponse>;
|
|
112
178
|
updateProduct(data: Partial<IProduct>): Promise<void>;
|
|
113
179
|
private createNewProduct;
|
|
114
180
|
checkIfProductExists(name: string): Promise<false | IProduct>;
|
|
115
|
-
fetchProduct(): IProduct
|
|
181
|
+
fetchProduct(): Promise<IProduct>;
|
|
116
182
|
createSession(data: Partial<IProductSession>, throwErrorIfExists?: boolean): Promise<void>;
|
|
117
183
|
updateSession(tag: string, data: Partial<IProductSession>): Promise<void>;
|
|
118
|
-
|
|
119
|
-
|
|
184
|
+
fetchSessions(version?: string): Promise<Array<IProductSession>>;
|
|
185
|
+
fetchSession(tag: string): Promise<IProductSession | null>;
|
|
186
|
+
deleteSession(tag: string): Promise<void>;
|
|
120
187
|
createMessageBrokerTopic(data: Partial<IProductMessageBrokerTopic>, throwErrorIfExists?: boolean): Promise<void>;
|
|
121
188
|
updateMessageBrokerTopic(data: Partial<IProductMessageBrokerTopic>): Promise<void>;
|
|
122
|
-
fetchMessageBrokerTopic(tag: string, throwErrorIfExists?: boolean): IProductMessageBrokerTopic | null
|
|
123
|
-
fetchMessageBrokerTopics(messageBrokerTag: string): Array<IProductMessageBrokerTopic
|
|
189
|
+
fetchMessageBrokerTopic(tag: string, throwErrorIfExists?: boolean): Promise<IProductMessageBrokerTopic | null>;
|
|
190
|
+
fetchMessageBrokerTopics(messageBrokerTag: string): Promise<Array<IProductMessageBrokerTopic>>;
|
|
191
|
+
createMessageBrokerProducer(data: Partial<IMessageBrokerProducer>): Promise<void>;
|
|
192
|
+
updateMessageBrokerProducer(data: Partial<IMessageBrokerProducer>): Promise<void>;
|
|
193
|
+
fetchMessageBrokerProducer(brokerTag: string, tag: string): Promise<IMessageBrokerProducer | null>;
|
|
194
|
+
fetchMessageBrokerProducers(messageBrokerTag: string): Promise<Array<IMessageBrokerProducer>>;
|
|
195
|
+
createMessageBrokerConsumer(data: Partial<IMessageBrokerConsumer>): Promise<void>;
|
|
196
|
+
updateMessageBrokerConsumer(data: Partial<IMessageBrokerConsumer>): Promise<void>;
|
|
197
|
+
fetchMessageBrokerConsumer(brokerTag: string, tag: string): Promise<IMessageBrokerConsumer | null>;
|
|
198
|
+
fetchMessageBrokerConsumers(messageBrokerTag: string): Promise<Array<IMessageBrokerConsumer>>;
|
|
124
199
|
validateQuotaFallbackInputAndOutput(data: Partial<IProductQuota> | Partial<IProductFallback>, type: string): Promise<void>;
|
|
125
200
|
validateQuotaFallbackInput(option: IQuotaOptions | IFallbackOptions, input: Record<string, IFeatureInput>, type: string): Promise<void>;
|
|
126
201
|
checkKeyValuesInput(keyValues: Array<KeyValuePair>, input: Record<string, IFeatureInput>, type: string): void;
|
|
@@ -132,25 +207,116 @@ export default class ProductsBuilderService implements IProductsBuilderService {
|
|
|
132
207
|
checkResponse(value: string, output: Record<string, unknown>, input: Record<string, IFeatureInput>, type: string): void;
|
|
133
208
|
createQuota(data: Partial<IProductQuota>): Promise<void>;
|
|
134
209
|
updateQuota(tag: string, data: Partial<IProductQuota>): Promise<void>;
|
|
135
|
-
|
|
136
|
-
|
|
210
|
+
fetchQuotas(version?: string): Promise<Array<IProductQuota>>;
|
|
211
|
+
fetchQuota(tag: string, version?: string): Promise<IProductQuota | null>;
|
|
212
|
+
deleteQuota(tag: string): Promise<void>;
|
|
137
213
|
createFallback(data: Partial<IProductFallback>): Promise<void>;
|
|
138
214
|
updateFallback(tag: string, data: Partial<IProductFallback>): Promise<void>;
|
|
139
|
-
|
|
140
|
-
|
|
215
|
+
fetchFallbacks(version?: string): Promise<Array<IProductFallback>>;
|
|
216
|
+
fetchFallback(tag: string, version?: string): Promise<IProductFallback | null>;
|
|
217
|
+
deleteFallback(tag: string): Promise<void>;
|
|
141
218
|
createEnv(data: IProductEnv, throwErrorIfExists?: boolean): Promise<void>;
|
|
142
219
|
updateEnv(slug: string, data: Partial<IProductEnv>): Promise<void>;
|
|
143
|
-
fetchEnvs(): IProductEnv
|
|
144
|
-
fetchEnv(slug: string
|
|
220
|
+
fetchEnvs(version?: string): Promise<Array<IProductEnv>>;
|
|
221
|
+
fetchEnv(slug: string): Promise<IProductEnv | null>;
|
|
222
|
+
deleteEnv(slug: string): Promise<void>;
|
|
145
223
|
createMessageBroker(data: Partial<IProductMessageBroker>, throwErrorIfExists?: boolean): Promise<void>;
|
|
146
224
|
updateMessageBroker(tag: string, data: Partial<IProductMessageBroker>): Promise<void>;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
225
|
+
fetchMessageBrokers(version?: string): Promise<Array<IProductMessageBroker>>;
|
|
226
|
+
fetchMessageBroker(tag: string, version?: string): Promise<IProductMessageBroker | null>;
|
|
227
|
+
deleteMessageBroker(tag: string): Promise<void>;
|
|
228
|
+
fetchStorageFiles(filter: IFetchFilesPayload): Promise<Array<IFileURLPayload>>;
|
|
229
|
+
fetchSessionUsers(filter: IFetchUsersPayload): Promise<Array<IFileURLPayload>>;
|
|
150
230
|
createStorage(data: Partial<IProductStorage>, throwErrorIfExists?: boolean): Promise<void>;
|
|
151
231
|
updateStorage(tag: string, data: Partial<IProductStorage>): Promise<void>;
|
|
152
|
-
|
|
153
|
-
|
|
232
|
+
fetchStorages(version?: string): Promise<Array<IProductStorage>>;
|
|
233
|
+
fetchStorage(tag: string, version?: string): Promise<IProductStorage | null>;
|
|
234
|
+
deleteStorage(tag: string): Promise<void>;
|
|
235
|
+
/**
|
|
236
|
+
* Create a new vector database configuration
|
|
237
|
+
* @param data Vector database configuration
|
|
238
|
+
* @param throwErrorIfExists Whether to throw error if vector config already exists
|
|
239
|
+
*/
|
|
240
|
+
createVector(data: Partial<IProductVector>, throwErrorIfExists?: boolean): Promise<void>;
|
|
241
|
+
/**
|
|
242
|
+
* Update an existing vector database configuration
|
|
243
|
+
* @param tag Vector config tag
|
|
244
|
+
* @param data Updated vector configuration
|
|
245
|
+
*/
|
|
246
|
+
updateVector(tag: string, data: Partial<IProductVector>): Promise<void>;
|
|
247
|
+
/**
|
|
248
|
+
* Fetch all vector database configurations
|
|
249
|
+
* @param version Optional version
|
|
250
|
+
*/
|
|
251
|
+
fetchVectors(version?: string): Promise<Array<IProductVector>>;
|
|
252
|
+
/**
|
|
253
|
+
* Fetch a specific vector database configuration by tag
|
|
254
|
+
* @param tag Vector config tag
|
|
255
|
+
* @param version Optional version
|
|
256
|
+
*/
|
|
257
|
+
fetchVector(tag: string, version?: string): Promise<IProductVector | null>;
|
|
258
|
+
/**
|
|
259
|
+
* Delete a vector database configuration
|
|
260
|
+
* @param tag Vector config tag
|
|
261
|
+
*/
|
|
262
|
+
deleteVector(tag: string): Promise<void>;
|
|
263
|
+
/**
|
|
264
|
+
* Create a new agent configuration
|
|
265
|
+
* @param data Agent configuration data
|
|
266
|
+
* @param throwErrorIfExists Whether to throw an error if agent already exists
|
|
267
|
+
*/
|
|
268
|
+
createAgent(data: Partial<IProductAgent>, throwErrorIfExists?: boolean): Promise<void>;
|
|
269
|
+
/**
|
|
270
|
+
* Update an existing agent configuration
|
|
271
|
+
* @param tag Agent tag
|
|
272
|
+
* @param data Updated agent configuration
|
|
273
|
+
*/
|
|
274
|
+
updateAgent(tag: string, data: Partial<IProductAgent>): Promise<void>;
|
|
275
|
+
/**
|
|
276
|
+
* Fetch all agent configurations
|
|
277
|
+
* @param version Optional version
|
|
278
|
+
*/
|
|
279
|
+
fetchAgents(version?: string): Promise<Array<IProductAgent>>;
|
|
280
|
+
/**
|
|
281
|
+
* Fetch a specific agent configuration by tag
|
|
282
|
+
* @param tag Agent tag
|
|
283
|
+
* @param version Optional version
|
|
284
|
+
*/
|
|
285
|
+
fetchAgent(tag: string, version?: string): Promise<IProductAgent | null>;
|
|
286
|
+
/**
|
|
287
|
+
* Delete an agent configuration
|
|
288
|
+
* @param tag Agent tag
|
|
289
|
+
*/
|
|
290
|
+
deleteAgent(tag: string): Promise<void>;
|
|
291
|
+
/**
|
|
292
|
+
* Create a new LLM model configuration
|
|
293
|
+
* API keys are automatically encrypted using the product's private key
|
|
294
|
+
* @param data LLM model configuration
|
|
295
|
+
* @param throwErrorIfExists Whether to throw error if model already exists
|
|
296
|
+
*/
|
|
297
|
+
createModel(data: Partial<IProductLLMModel>, throwErrorIfExists?: boolean): Promise<void>;
|
|
298
|
+
/**
|
|
299
|
+
* Update an existing LLM model configuration
|
|
300
|
+
* @param tag Model tag
|
|
301
|
+
* @param data Updated model configuration
|
|
302
|
+
*/
|
|
303
|
+
updateModel(tag: string, data: Partial<IProductLLMModel>): Promise<void>;
|
|
304
|
+
/**
|
|
305
|
+
* Fetch all LLM model configurations
|
|
306
|
+
* @param version Optional version
|
|
307
|
+
*/
|
|
308
|
+
fetchModels(version?: string): Promise<Array<IProductLLMModel>>;
|
|
309
|
+
/**
|
|
310
|
+
* Fetch a specific LLM model configuration by tag
|
|
311
|
+
* @param tag Model tag
|
|
312
|
+
* @param version Optional version
|
|
313
|
+
*/
|
|
314
|
+
fetchModel(tag: string, version?: string): Promise<IProductLLMModel | null>;
|
|
315
|
+
/**
|
|
316
|
+
* Delete an LLM model configuration
|
|
317
|
+
* @param tag Model tag
|
|
318
|
+
*/
|
|
319
|
+
deleteModel(tag: string): Promise<void>;
|
|
154
320
|
private validateAppData;
|
|
155
321
|
private validateVariablesSchema;
|
|
156
322
|
private validateVariablesValues;
|
|
@@ -160,24 +326,28 @@ export default class ProductsBuilderService implements IProductsBuilderService {
|
|
|
160
326
|
addApp(app: IProductApp, throwErrorIfExists?: boolean): Promise<void>;
|
|
161
327
|
fetchAppWebhooks(access_tag: string): Promise<Array<IAppWebhook>>;
|
|
162
328
|
updateApp(access_tag: string, data: Partial<IProductApp>): Promise<void>;
|
|
163
|
-
fetchApps(): Array<IProductApp
|
|
164
|
-
fetchApp(tag: string, throwErrorIfExists?: boolean): IProductApp | null
|
|
329
|
+
fetchApps(): Promise<Array<IProductApp>>;
|
|
330
|
+
fetchApp(tag: string, throwErrorIfExists?: boolean): Promise<IProductApp | null>;
|
|
331
|
+
deleteApp(tag: string): Promise<void>;
|
|
165
332
|
createFunction(data: Partial<IProductFunction>, throwErrorIfExists?: boolean): Promise<void>;
|
|
166
333
|
updateFunction(tag: string, data: Partial<IProductFunction>): Promise<void>;
|
|
167
|
-
fetchFunctions(): Array<IProductFunction
|
|
168
|
-
fetchFunction(tag: string): IProductFunction | null
|
|
334
|
+
fetchFunctions(version?: string): Promise<Array<IProductFunction>>;
|
|
335
|
+
fetchFunction(tag: string, version?: string): Promise<IProductFunction | null>;
|
|
336
|
+
deleteFunction(tag: string): Promise<void>;
|
|
169
337
|
createCache(data: Partial<IProductCache>, throwErrorIfExists?: boolean): Promise<void>;
|
|
170
338
|
updateCache(tag: string, data: Partial<IProductCache>): Promise<void>;
|
|
171
|
-
|
|
172
|
-
|
|
339
|
+
fetchCaches(version?: string): Promise<Array<IProductCache>>;
|
|
340
|
+
fetchCache(tag: string, version?: string): Promise<IProductCache | null>;
|
|
341
|
+
deleteCache(tag: string): Promise<void>;
|
|
173
342
|
createNotification(data: Partial<IProductNotification>, throwErrorIfExists?: boolean): Promise<void>;
|
|
174
343
|
createNotificationMessage(data: Partial<IProductNotificationTemplate>, throwErrorIfExists?: boolean): Promise<void>;
|
|
175
|
-
fetchNotificationMessage(tag: string, throwErrorIfExists?: boolean): IProductNotificationTemplate | null
|
|
176
|
-
fetchNotificationMessages(notificationTag: string, throwErrorIfExists?: boolean): Array<IProductNotificationTemplate
|
|
344
|
+
fetchNotificationMessage(tag: string, throwErrorIfExists?: boolean): Promise<IProductNotificationTemplate | null>;
|
|
345
|
+
fetchNotificationMessages(notificationTag: string, throwErrorIfExists?: boolean): Promise<Array<IProductNotificationTemplate>>;
|
|
177
346
|
updateNotificationMessage(data: Partial<IProductNotificationTemplate>): Promise<void>;
|
|
178
347
|
updateNotification(tag: string, data: Partial<IProductNotification>): Promise<void>;
|
|
179
|
-
|
|
180
|
-
|
|
348
|
+
fetchNotifications(version?: string): Promise<Array<IProductNotification>>;
|
|
349
|
+
fetchNotification(tag: string, version?: string): Promise<IProductNotification | null>;
|
|
350
|
+
deleteNotification(tag: string): Promise<void>;
|
|
181
351
|
private validateFeatureSequence;
|
|
182
352
|
private validateUniqueEventTags;
|
|
183
353
|
private validateFeatureData;
|
|
@@ -212,7 +382,7 @@ export default class ProductsBuilderService implements IProductsBuilderService {
|
|
|
212
382
|
parseActionEventInput(data: IParseActionEventInput): Promise<void>;
|
|
213
383
|
parseInputString(payload: IParseInputStringInput, meta: IParseInputStringMetaData): Promise<void>;
|
|
214
384
|
compareInputWithExpectedInput(datapoint: IParsedSample, found_input: IParsedSample, value: string): void;
|
|
215
|
-
extractStages(input: string): Array<string>;
|
|
385
|
+
extractStages(input: string): Array<string | number>;
|
|
216
386
|
fetchSequenceEvent(sequence: IFeatureSequence, event: string): IFeatureEvent | null;
|
|
217
387
|
fetchPriorSequence(meta: IParseInputStringMetaData, stage: string): IFeatureSequence;
|
|
218
388
|
validateActionKeyPlacement(data: IParseActionEventInput): IParsedSample;
|
|
@@ -220,24 +390,107 @@ export default class ProductsBuilderService implements IProductsBuilderService {
|
|
|
220
390
|
fetchThirdPartyAppActionByTag(actions: Array<IAppAction>, action_tag: string): IAppAction;
|
|
221
391
|
createFeature(data: Partial<IProductFeature>, throwErrorIfExists?: boolean): Promise<void>;
|
|
222
392
|
updateFeature(tag: string, data: Partial<IProductFeature>): Promise<void>;
|
|
223
|
-
|
|
224
|
-
|
|
393
|
+
fetchFeatures(): Promise<Array<IProductFeature>>;
|
|
394
|
+
fetchFeature(tag: string): Promise<IProductFeature | null>;
|
|
395
|
+
deleteFeature(tag: string): Promise<void>;
|
|
225
396
|
createDatabase(data: Partial<IProductDatabase>, throwErrorIfExists?: boolean): Promise<void>;
|
|
226
397
|
updateDatabase(tag: string, data: Partial<IProductDatabase>): Promise<void>;
|
|
227
|
-
|
|
228
|
-
|
|
398
|
+
fetchDatabases(): Promise<Array<IProductDatabase>>;
|
|
399
|
+
fetchDatabase(tag: string): Promise<IProductDatabase | null>;
|
|
400
|
+
deleteDatabase(tag: string): Promise<void>;
|
|
401
|
+
createGraph(data: Partial<IProductGraph>, throwErrorIfExists?: boolean): Promise<void>;
|
|
402
|
+
updateGraph(tag: string, data: Partial<IProductGraph>): Promise<void>;
|
|
403
|
+
fetchGraphs(): Promise<Array<IProductGraph>>;
|
|
404
|
+
fetchGraph(tag: string): Promise<IProductGraph | null>;
|
|
405
|
+
deleteGraph(tag: string): Promise<void>;
|
|
406
|
+
createGraphAction(graphTag: string, data: any): Promise<void>;
|
|
407
|
+
updateGraphAction(graphTag: string, actionTag: string, data: any): Promise<void>;
|
|
408
|
+
fetchGraphAction(graphTag: string, actionTag: string): Promise<any | null>;
|
|
409
|
+
fetchGraphActions(graphTag: string): Promise<Array<any>>;
|
|
410
|
+
deleteGraphAction(graphTag: string, actionTag: string): Promise<void>;
|
|
229
411
|
createDatabaseAction(data: Partial<IProductDatabaseAction>, throwErrorIfExists?: boolean): Promise<void>;
|
|
230
|
-
fetchDatabaseAction(tag: string, throwErrorIfExists?: boolean): IProductDatabaseAction | null
|
|
412
|
+
fetchDatabaseAction(tag: string, throwErrorIfExists?: boolean): Promise<IProductDatabaseAction | null>;
|
|
231
413
|
updateDatabaseAction(data: Partial<IProductDatabaseAction>): Promise<void>;
|
|
232
|
-
fetchDatabaseActions(databaseTag: string): Array<IProductDatabaseAction
|
|
414
|
+
fetchDatabaseActions(databaseTag: string): Promise<Array<IProductDatabaseAction>>;
|
|
415
|
+
deleteDatabaseAction(tag: string): Promise<void>;
|
|
233
416
|
createDatabaseMigration(data: Partial<IProductDatabaseMigration>, throwErrorIfExists?: boolean): Promise<void>;
|
|
417
|
+
/**
|
|
418
|
+
* Process migration operations - handles both string and object formats
|
|
419
|
+
* Strings are passed through as-is (raw SQL/CQL)
|
|
420
|
+
* Objects are serialized for storage and executed by the migration engine
|
|
421
|
+
*/
|
|
422
|
+
private processMigrationOperations;
|
|
234
423
|
updateDatabaseMigration(data: Partial<IProductDatabaseMigration>): Promise<void>;
|
|
235
|
-
fetchDatabaseMigration(tag: string, throwError?: boolean): IProductDatabaseMigration | null
|
|
236
|
-
fetchDatabaseMigrations(databaseTag: string): Array<IProductDatabaseMigration
|
|
424
|
+
fetchDatabaseMigration(tag: string, throwError?: boolean): Promise<IProductDatabaseMigration | null>;
|
|
425
|
+
fetchDatabaseMigrations(databaseTag: string): Promise<Array<IProductDatabaseMigration>>;
|
|
426
|
+
deleteDatabaseMigration(tag: string): Promise<void>;
|
|
427
|
+
createDatabaseTrigger(data: Partial<IProductDatabaseTrigger>, throwErrorIfExists?: boolean): Promise<void>;
|
|
428
|
+
updateDatabaseTrigger(data: Partial<IProductDatabaseTrigger>): Promise<void>;
|
|
429
|
+
fetchDatabaseTrigger(tag: string, throwError?: boolean): Promise<IProductDatabaseTrigger | null>;
|
|
430
|
+
fetchDatabaseTriggers(databaseTag: string): Promise<Array<IProductDatabaseTrigger>>;
|
|
431
|
+
deleteDatabaseTrigger(tag: string): Promise<void>;
|
|
237
432
|
validateJobEvent(data: Partial<IProductJobs>): Promise<void>;
|
|
238
433
|
createJob(data: Partial<IProductJobs>, throwErrorIfExists?: boolean): Promise<void>;
|
|
239
434
|
updateJob(tag: string, data: Partial<IProductJobs>): Promise<void>;
|
|
240
|
-
|
|
241
|
-
|
|
435
|
+
fetchJobs(): Promise<Array<IProductJobs>>;
|
|
436
|
+
fetchJob(tag: string): Promise<IProductJobs | null>;
|
|
437
|
+
deleteJob(tag: string): Promise<void>;
|
|
438
|
+
createWorkflow(data: Partial<IProductWorkflow>, throwErrorIfExists?: boolean): Promise<void>;
|
|
439
|
+
updateWorkflow(tag: string, data: Partial<IProductWorkflow>): Promise<void>;
|
|
440
|
+
fetchWorkflows(): Promise<Array<IProductWorkflow>>;
|
|
441
|
+
fetchWorkflow(tag: string): Promise<IProductWorkflow | null>;
|
|
442
|
+
deleteWorkflow(tag: string): Promise<void>;
|
|
242
443
|
private getUserAccess;
|
|
444
|
+
fetchSessionUser(ductape_user_id: string): Promise<any>;
|
|
445
|
+
/**
|
|
446
|
+
* Process storage config to store sensitive credentials as secrets
|
|
447
|
+
* Format: STORAGE_{PRODUCT}_{STORAGE_TAG}_{ENV}_{KEY}
|
|
448
|
+
*
|
|
449
|
+
* Product parsing: split by ":", select first element
|
|
450
|
+
* Storage tag: replace "-" with "_"
|
|
451
|
+
*/
|
|
452
|
+
private processStorageConfigSecrets;
|
|
453
|
+
/**
|
|
454
|
+
* Process message broker config to store sensitive credentials as secrets
|
|
455
|
+
* Format: BROKER_{PRODUCT}_{BROKER_TAG}_{ENV}_{KEY}
|
|
456
|
+
*
|
|
457
|
+
* Product parsing: split by ":", select first element
|
|
458
|
+
* Broker tag: replace "-" with "_"
|
|
459
|
+
*/
|
|
460
|
+
private processMessageBrokerConfigSecrets;
|
|
461
|
+
/**
|
|
462
|
+
* Process notification environment config to store sensitive credentials as secrets
|
|
463
|
+
* Format: NOTIFIER_{PRODUCT}_{NOTIFIER_TAG}_{ENV}_{KEY}
|
|
464
|
+
*
|
|
465
|
+
* Product parsing: split by ":", select first element
|
|
466
|
+
* Notifier tag: replace "-" with "_"
|
|
467
|
+
*/
|
|
468
|
+
private processNotificationEnvSecrets;
|
|
469
|
+
/**
|
|
470
|
+
* Store graph connection URL as a secret
|
|
471
|
+
* Format: GRAPH_{PRODUCT}_{GRAPH_TAG}_{ENV}_URL
|
|
472
|
+
*/
|
|
473
|
+
private storeGraphConnectionUrlAsSecret;
|
|
474
|
+
/**
|
|
475
|
+
* Generate a secret key for vector configuration field
|
|
476
|
+
* Format: VECTOR_{PRODUCT}_{ASSET_TAG}_{ENV}_{KEY}
|
|
477
|
+
*
|
|
478
|
+
* Where:
|
|
479
|
+
* - PRODUCT = productTag.split('.')[1] (second part after workspace)
|
|
480
|
+
* - ASSET_TAG = if vectorTag starts with same workspace prefix, use second part; otherwise sanitize full tag
|
|
481
|
+
* - All parts are automatically capitalized
|
|
482
|
+
*/
|
|
483
|
+
private generateVectorSecretKey;
|
|
484
|
+
/**
|
|
485
|
+
* Store a vector field value as a secret if it exists and is not already a secret reference
|
|
486
|
+
* @returns The secret reference if stored, or the original value
|
|
487
|
+
*/
|
|
488
|
+
private storeVectorFieldAsSecret;
|
|
489
|
+
private storeVectorApiKeyAsSecret;
|
|
490
|
+
private storeVectorEndpointAsSecret;
|
|
491
|
+
/**
|
|
492
|
+
* Store LLM model API key as a secret
|
|
493
|
+
* Format: MODEL_{PRODUCT}_{MODEL_TAG}_{ENV}_API_KEY
|
|
494
|
+
*/
|
|
495
|
+
private storeModelApiKeyAsSecret;
|
|
243
496
|
}
|