@ductape/sdk 0.1.6 → 0.1.8
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/package.json +5 -9
- package/dist/agents/agent-context.d.ts +0 -100
- package/dist/agents/agent-context.js +0 -604
- package/dist/agents/agent-context.js.map +0 -1
- package/dist/agents/agent-executor.d.ts +0 -180
- package/dist/agents/agent-executor.js +0 -715
- package/dist/agents/agent-executor.js.map +0 -1
- package/dist/agents/agents.service.d.ts +0 -310
- package/dist/agents/agents.service.js +0 -1255
- package/dist/agents/agents.service.js.map +0 -1
- package/dist/agents/index.d.ts +0 -55
- package/dist/agents/index.js +0 -110
- package/dist/agents/index.js.map +0 -1
- package/dist/agents/memory-manager.d.ts +0 -182
- package/dist/agents/memory-manager.js +0 -383
- package/dist/agents/memory-manager.js.map +0 -1
- package/dist/agents/tool-registry.d.ts +0 -141
- package/dist/agents/tool-registry.js +0 -355
- package/dist/agents/tool-registry.js.map +0 -1
- package/dist/agents/types/agents.types.d.ts +0 -1240
- package/dist/agents/types/agents.types.js +0 -12
- package/dist/agents/types/agents.types.js.map +0 -1
- package/dist/agents/types/index.d.ts +0 -6
- package/dist/agents/types/index.js +0 -23
- package/dist/agents/types/index.js.map +0 -1
- package/dist/agents/vector-store-adapter.d.ts +0 -108
- package/dist/agents/vector-store-adapter.js +0 -213
- package/dist/agents/vector-store-adapter.js.map +0 -1
- package/dist/api/services/appApi.service.d.ts +0 -78
- package/dist/api/services/appApi.service.js +0 -303
- package/dist/api/services/appApi.service.js.map +0 -1
- package/dist/api/services/logsApi.service.d.ts +0 -62
- package/dist/api/services/logsApi.service.js +0 -67
- package/dist/api/services/logsApi.service.js.map +0 -1
- package/dist/api/services/pricingApi.service.d.ts +0 -10
- package/dist/api/services/pricingApi.service.js +0 -34
- package/dist/api/services/pricingApi.service.js.map +0 -1
- package/dist/api/services/processorApi.service.d.ts +0 -927
- package/dist/api/services/processorApi.service.js +0 -787
- package/dist/api/services/processorApi.service.js.map +0 -1
- package/dist/api/services/productsApi.service.d.ts +0 -150
- package/dist/api/services/productsApi.service.js +0 -279
- package/dist/api/services/productsApi.service.js.map +0 -1
- package/dist/api/services/resilienceApi.service.d.ts +0 -106
- package/dist/api/services/resilienceApi.service.js +0 -224
- package/dist/api/services/resilienceApi.service.js.map +0 -1
- package/dist/api/services/secretsApi.service.d.ts +0 -51
- package/dist/api/services/secretsApi.service.js +0 -126
- package/dist/api/services/secretsApi.service.js.map +0 -1
- package/dist/api/services/userApi.service.d.ts +0 -10
- package/dist/api/services/userApi.service.js +0 -20
- package/dist/api/services/userApi.service.js.map +0 -1
- package/dist/api/services/webhooksApi.service.d.ts +0 -14
- package/dist/api/services/webhooksApi.service.js +0 -65
- package/dist/api/services/webhooksApi.service.js.map +0 -1
- package/dist/api/services/workflowApi.service.d.ts +0 -199
- package/dist/api/services/workflowApi.service.js +0 -201
- package/dist/api/services/workflowApi.service.js.map +0 -1
- package/dist/api/services/workspaceApi.service.d.ts +0 -20
- package/dist/api/services/workspaceApi.service.js +0 -54
- package/dist/api/services/workspaceApi.service.js.map +0 -1
- package/dist/api/urls.d.ts +0 -136
- package/dist/api/urls.js +0 -185
- package/dist/api/urls.js.map +0 -1
- package/dist/api/utils/auth.utils.d.ts +0 -10
- package/dist/api/utils/auth.utils.js +0 -24
- package/dist/api/utils/auth.utils.js.map +0 -1
- package/dist/api/utils/cache.utils.d.ts +0 -3
- package/dist/api/utils/cache.utils.js +0 -18
- package/dist/api/utils/cache.utils.js.map +0 -1
- package/dist/api/utils/strings.utils.d.ts +0 -7
- package/dist/api/utils/strings.utils.js +0 -64
- package/dist/api/utils/strings.utils.js.map +0 -1
- package/dist/apps/services/app.service.d.ts +0 -126
- package/dist/apps/services/app.service.js +0 -1436
- package/dist/apps/services/app.service.js.map +0 -1
- package/dist/apps/utils/auth-context-manager.d.ts +0 -137
- package/dist/apps/utils/auth-context-manager.js +0 -248
- package/dist/apps/utils/auth-context-manager.js.map +0 -1
- package/dist/apps/utils/credential-manager.d.ts +0 -128
- package/dist/apps/utils/credential-manager.js +0 -199
- package/dist/apps/utils/credential-manager.js.map +0 -1
- package/dist/apps/utils/index.d.ts +0 -10
- package/dist/apps/utils/index.js +0 -54
- package/dist/apps/utils/index.js.map +0 -1
- package/dist/apps/utils/input-helpers.d.ts +0 -67
- package/dist/apps/utils/input-helpers.js +0 -185
- package/dist/apps/utils/input-helpers.js.map +0 -1
- package/dist/apps/utils/input-resolver.d.ts +0 -165
- package/dist/apps/utils/input-resolver.js +0 -477
- package/dist/apps/utils/input-resolver.js.map +0 -1
- package/dist/apps/utils/oauth-manager.d.ts +0 -196
- package/dist/apps/utils/oauth-manager.js +0 -429
- package/dist/apps/utils/oauth-manager.js.map +0 -1
- package/dist/apps/utils/objects.utils.d.ts +0 -4
- package/dist/apps/utils/objects.utils.js +0 -59
- package/dist/apps/utils/objects.utils.js.map +0 -1
- package/dist/apps/utils/string.utils.d.ts +0 -9
- package/dist/apps/utils/string.utils.js +0 -89
- package/dist/apps/utils/string.utils.js.map +0 -1
- package/dist/apps/validators/index.d.ts +0 -17
- package/dist/apps/validators/index.js +0 -39
- package/dist/apps/validators/index.js.map +0 -1
- package/dist/apps/validators/joi-validators/create.app.validator.d.ts +0 -3
- package/dist/apps/validators/joi-validators/create.app.validator.js +0 -43
- package/dist/apps/validators/joi-validators/create.app.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/create.appAction.validator.d.ts +0 -3
- package/dist/apps/validators/joi-validators/create.appAction.validator.js +0 -72
- package/dist/apps/validators/joi-validators/create.appAction.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/create.appActionResponse.validator.d.ts +0 -7
- package/dist/apps/validators/joi-validators/create.appActionResponse.validator.js +0 -81
- package/dist/apps/validators/joi-validators/create.appActionResponse.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/create.appAuth.validator.d.ts +0 -3
- package/dist/apps/validators/joi-validators/create.appAuth.validator.js +0 -64
- package/dist/apps/validators/joi-validators/create.appAuth.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/create.appBody.validators.d.ts +0 -4
- package/dist/apps/validators/joi-validators/create.appBody.validators.js +0 -44
- package/dist/apps/validators/joi-validators/create.appBody.validators.js.map +0 -1
- package/dist/apps/validators/joi-validators/create.appConstants.validator.d.ts +0 -4
- package/dist/apps/validators/joi-validators/create.appConstants.validator.js +0 -45
- package/dist/apps/validators/joi-validators/create.appConstants.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/create.appEnv.validator.d.ts +0 -4
- package/dist/apps/validators/joi-validators/create.appEnv.validator.js +0 -50
- package/dist/apps/validators/joi-validators/create.appEnv.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/create.appVariable.validator.d.ts +0 -4
- package/dist/apps/validators/joi-validators/create.appVariable.validator.js +0 -47
- package/dist/apps/validators/joi-validators/create.appVariable.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/create.appWebhook.validator.d.ts +0 -4
- package/dist/apps/validators/joi-validators/create.appWebhook.validator.js +0 -60
- package/dist/apps/validators/joi-validators/create.appWebhook.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/create.appWebhookEvent.validator.d.ts +0 -3
- package/dist/apps/validators/joi-validators/create.appWebhookEvent.validator.js +0 -48
- package/dist/apps/validators/joi-validators/create.appWebhookEvent.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/sample.validator.d.ts +0 -6
- package/dist/apps/validators/joi-validators/sample.validator.js +0 -65
- package/dist/apps/validators/joi-validators/sample.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/update.app.validator.d.ts +0 -4
- package/dist/apps/validators/joi-validators/update.app.validator.js +0 -66
- package/dist/apps/validators/joi-validators/update.app.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/update.appAction.validator.d.ts +0 -4
- package/dist/apps/validators/joi-validators/update.appAction.validator.js +0 -76
- package/dist/apps/validators/joi-validators/update.appAction.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/update.appActionResponse.validator.d.ts +0 -3
- package/dist/apps/validators/joi-validators/update.appActionResponse.validator.js +0 -57
- package/dist/apps/validators/joi-validators/update.appActionResponse.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/update.appAuth.validator.d.ts +0 -4
- package/dist/apps/validators/joi-validators/update.appAuth.validator.js +0 -52
- package/dist/apps/validators/joi-validators/update.appAuth.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/update.appConstants.validator.d.ts +0 -4
- package/dist/apps/validators/joi-validators/update.appConstants.validator.js +0 -45
- package/dist/apps/validators/joi-validators/update.appConstants.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/update.appEnv.validator.d.ts +0 -4
- package/dist/apps/validators/joi-validators/update.appEnv.validator.js +0 -50
- package/dist/apps/validators/joi-validators/update.appEnv.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/update.appVariables.validator.d.ts +0 -4
- package/dist/apps/validators/joi-validators/update.appVariables.validator.js +0 -47
- package/dist/apps/validators/joi-validators/update.appVariables.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/update.appWebhook.validator.d.ts +0 -4
- package/dist/apps/validators/joi-validators/update.appWebhook.validator.js +0 -59
- package/dist/apps/validators/joi-validators/update.appWebhook.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/update.appWebhookEvent.validator.d.ts +0 -3
- package/dist/apps/validators/joi-validators/update.appWebhookEvent.validator.js +0 -48
- package/dist/apps/validators/joi-validators/update.appWebhookEvent.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/update.validation.entityData.validator.d.ts +0 -3
- package/dist/apps/validators/joi-validators/update.validation.entityData.validator.js +0 -60
- package/dist/apps/validators/joi-validators/update.validation.entityData.validator.js.map +0 -1
- package/dist/bin.d.ts +0 -26
- package/dist/bin.js +0 -28
- package/dist/bin.js.map +0 -1
- package/dist/brokers/brokers.service.d.ts +0 -438
- package/dist/brokers/brokers.service.js +0 -1294
- package/dist/brokers/brokers.service.js.map +0 -1
- package/dist/brokers/index.d.ts +0 -46
- package/dist/brokers/index.js +0 -83
- package/dist/brokers/index.js.map +0 -1
- package/dist/brokers/types/index.d.ts +0 -569
- package/dist/brokers/types/index.js +0 -8
- package/dist/brokers/types/index.js.map +0 -1
- package/dist/brokers/utils/broker.util.d.ts +0 -33
- package/dist/brokers/utils/broker.util.js +0 -125
- package/dist/brokers/utils/broker.util.js.map +0 -1
- package/dist/brokers/utils/providers/aws-sqs.service.d.ts +0 -16
- package/dist/brokers/utils/providers/aws-sqs.service.js +0 -71
- package/dist/brokers/utils/providers/aws-sqs.service.js.map +0 -1
- package/dist/brokers/utils/providers/google-pubsub.service.d.ts +0 -16
- package/dist/brokers/utils/providers/google-pubsub.service.js +0 -43
- package/dist/brokers/utils/providers/google-pubsub.service.js.map +0 -1
- package/dist/brokers/utils/providers/index.d.ts +0 -6
- package/dist/brokers/utils/providers/index.js +0 -16
- package/dist/brokers/utils/providers/index.js.map +0 -1
- package/dist/brokers/utils/providers/kafka.service.d.ts +0 -23
- package/dist/brokers/utils/providers/kafka.service.js +0 -131
- package/dist/brokers/utils/providers/kafka.service.js.map +0 -1
- package/dist/brokers/utils/providers/nats.service.d.ts +0 -18
- package/dist/brokers/utils/providers/nats.service.js +0 -63
- package/dist/brokers/utils/providers/nats.service.js.map +0 -1
- package/dist/brokers/utils/providers/rabbitmq.service.d.ts +0 -25
- package/dist/brokers/utils/providers/rabbitmq.service.js +0 -138
- package/dist/brokers/utils/providers/rabbitmq.service.js.map +0 -1
- package/dist/brokers/utils/providers/redis.service.d.ts +0 -18
- package/dist/brokers/utils/providers/redis.service.js +0 -93
- package/dist/brokers/utils/providers/redis.service.js.map +0 -1
- package/dist/cache/cache.manager.d.ts +0 -308
- package/dist/cache/cache.manager.js +0 -900
- package/dist/cache/cache.manager.js.map +0 -1
- package/dist/cache/cache.service.d.ts +0 -192
- package/dist/cache/cache.service.js +0 -596
- package/dist/cache/cache.service.js.map +0 -1
- package/dist/cache/index.d.ts +0 -52
- package/dist/cache/index.js +0 -81
- package/dist/cache/index.js.map +0 -1
- package/dist/cache/types/index.d.ts +0 -112
- package/dist/cache/types/index.js +0 -6
- package/dist/cache/types/index.js.map +0 -1
- package/dist/clients/apps.client.d.ts +0 -4
- package/dist/clients/apps.client.js +0 -31
- package/dist/clients/apps.client.js.map +0 -1
- package/dist/clients/email.client.d.ts +0 -4
- package/dist/clients/email.client.js +0 -29
- package/dist/clients/email.client.js.map +0 -1
- package/dist/clients/expo.client.d.ts +0 -3
- package/dist/clients/expo.client.js +0 -28
- package/dist/clients/expo.client.js.map +0 -1
- package/dist/clients/function.client.d.ts +0 -3
- package/dist/clients/function.client.js +0 -27
- package/dist/clients/function.client.js.map +0 -1
- package/dist/clients/http.client.d.ts +0 -3
- package/dist/clients/http.client.js +0 -27
- package/dist/clients/http.client.js.map +0 -1
- package/dist/clients/logs.client.d.ts +0 -4
- package/dist/clients/logs.client.js +0 -34
- package/dist/clients/logs.client.js.map +0 -1
- package/dist/clients/pricing.client.d.ts +0 -4
- package/dist/clients/pricing.client.js +0 -34
- package/dist/clients/pricing.client.js.map +0 -1
- package/dist/clients/products.client.d.ts +0 -3
- package/dist/clients/products.client.js +0 -32
- package/dist/clients/products.client.js.map +0 -1
- package/dist/clients/users.client.d.ts +0 -4
- package/dist/clients/users.client.js +0 -34
- package/dist/clients/users.client.js.map +0 -1
- package/dist/clients/webhooks.client.d.ts +0 -4
- package/dist/clients/webhooks.client.js +0 -34
- package/dist/clients/webhooks.client.js.map +0 -1
- package/dist/clients/workspace.client.d.ts +0 -7
- package/dist/clients/workspace.client.js +0 -39
- package/dist/clients/workspace.client.js.map +0 -1
- package/dist/database/actions/action-manager.d.ts +0 -170
- package/dist/database/actions/action-manager.js +0 -465
- package/dist/database/actions/action-manager.js.map +0 -1
- package/dist/database/actions/index.d.ts +0 -6
- package/dist/database/actions/index.js +0 -13
- package/dist/database/actions/index.js.map +0 -1
- package/dist/database/adapters/adapter.factory.d.ts +0 -62
- package/dist/database/adapters/adapter.factory.js +0 -97
- package/dist/database/adapters/adapter.factory.js.map +0 -1
- package/dist/database/adapters/base.adapter.d.ts +0 -423
- package/dist/database/adapters/base.adapter.js +0 -260
- package/dist/database/adapters/base.adapter.js.map +0 -1
- package/dist/database/adapters/cassandra.adapter.d.ts +0 -92
- package/dist/database/adapters/cassandra.adapter.js +0 -1091
- package/dist/database/adapters/cassandra.adapter.js.map +0 -1
- package/dist/database/adapters/dynamodb.adapter.d.ts +0 -110
- package/dist/database/adapters/dynamodb.adapter.js +0 -1564
- package/dist/database/adapters/dynamodb.adapter.js.map +0 -1
- package/dist/database/adapters/index.d.ts +0 -11
- package/dist/database/adapters/index.js +0 -27
- package/dist/database/adapters/index.js.map +0 -1
- package/dist/database/adapters/mariadb.adapter.d.ts +0 -100
- package/dist/database/adapters/mariadb.adapter.js +0 -247
- package/dist/database/adapters/mariadb.adapter.js.map +0 -1
- package/dist/database/adapters/mongodb.adapter.d.ts +0 -121
- package/dist/database/adapters/mongodb.adapter.js +0 -1284
- package/dist/database/adapters/mongodb.adapter.js.map +0 -1
- package/dist/database/adapters/mysql.adapter.d.ts +0 -86
- package/dist/database/adapters/mysql.adapter.js +0 -1371
- package/dist/database/adapters/mysql.adapter.js.map +0 -1
- package/dist/database/adapters/postgresql.adapter.d.ts +0 -90
- package/dist/database/adapters/postgresql.adapter.js +0 -1487
- package/dist/database/adapters/postgresql.adapter.js.map +0 -1
- package/dist/database/databases.service.d.ts +0 -1496
- package/dist/database/databases.service.js +0 -3294
- package/dist/database/databases.service.js.map +0 -1
- package/dist/database/index.d.ts +0 -46
- package/dist/database/index.js +0 -109
- package/dist/database/index.js.map +0 -1
- package/dist/database/migrations/index.d.ts +0 -6
- package/dist/database/migrations/index.js +0 -12
- package/dist/database/migrations/index.js.map +0 -1
- package/dist/database/migrations/migration-engine.d.ts +0 -136
- package/dist/database/migrations/migration-engine.js +0 -1421
- package/dist/database/migrations/migration-engine.js.map +0 -1
- package/dist/database/operators/aggregation-builder.d.ts +0 -67
- package/dist/database/operators/aggregation-builder.js +0 -841
- package/dist/database/operators/aggregation-builder.js.map +0 -1
- package/dist/database/operators/index.d.ts +0 -7
- package/dist/database/operators/index.js +0 -15
- package/dist/database/operators/index.js.map +0 -1
- package/dist/database/operators/query-builder.d.ts +0 -69
- package/dist/database/operators/query-builder.js +0 -447
- package/dist/database/operators/query-builder.js.map +0 -1
- package/dist/database/presave/decrypt.d.ts +0 -25
- package/dist/database/presave/decrypt.js +0 -146
- package/dist/database/presave/decrypt.js.map +0 -1
- package/dist/database/presave/index.d.ts +0 -9
- package/dist/database/presave/index.js +0 -18
- package/dist/database/presave/index.js.map +0 -1
- package/dist/database/presave/presave-processor.d.ts +0 -148
- package/dist/database/presave/presave-processor.js +0 -702
- package/dist/database/presave/presave-processor.js.map +0 -1
- package/dist/database/schema/index.d.ts +0 -7
- package/dist/database/schema/index.js +0 -13
- package/dist/database/schema/index.js.map +0 -1
- package/dist/database/schema/schema-manager.d.ts +0 -258
- package/dist/database/schema/schema-manager.js +0 -638
- package/dist/database/schema/schema-manager.js.map +0 -1
- package/dist/database/transactions/index.d.ts +0 -6
- package/dist/database/transactions/index.js +0 -13
- package/dist/database/transactions/index.js.map +0 -1
- package/dist/database/transactions/transaction-manager.d.ts +0 -113
- package/dist/database/transactions/transaction-manager.js +0 -344
- package/dist/database/transactions/transaction-manager.js.map +0 -1
- package/dist/database/triggers/index.d.ts +0 -7
- package/dist/database/triggers/index.js +0 -14
- package/dist/database/triggers/index.js.map +0 -1
- package/dist/database/triggers/trigger-processor.d.ts +0 -239
- package/dist/database/triggers/trigger-processor.js +0 -1034
- package/dist/database/triggers/trigger-processor.js.map +0 -1
- package/dist/database/types/action.interface.d.ts +0 -148
- package/dist/database/types/action.interface.js +0 -6
- package/dist/database/types/action.interface.js.map +0 -1
- package/dist/database/types/aggregation.interface.d.ts +0 -185
- package/dist/database/types/aggregation.interface.js +0 -6
- package/dist/database/types/aggregation.interface.js.map +0 -1
- package/dist/database/types/connection.interface.d.ts +0 -137
- package/dist/database/types/connection.interface.js +0 -6
- package/dist/database/types/connection.interface.js.map +0 -1
- package/dist/database/types/dashboard.interface.d.ts +0 -74
- package/dist/database/types/dashboard.interface.js +0 -7
- package/dist/database/types/dashboard.interface.js.map +0 -1
- package/dist/database/types/enums.d.ts +0 -195
- package/dist/database/types/enums.js +0 -244
- package/dist/database/types/enums.js.map +0 -1
- package/dist/database/types/index.d.ts +0 -15
- package/dist/database/types/index.js +0 -31
- package/dist/database/types/index.js.map +0 -1
- package/dist/database/types/migration.interface.d.ts +0 -686
- package/dist/database/types/migration.interface.js +0 -9
- package/dist/database/types/migration.interface.js.map +0 -1
- package/dist/database/types/presave.interface.d.ts +0 -292
- package/dist/database/types/presave.interface.js +0 -60
- package/dist/database/types/presave.interface.js.map +0 -1
- package/dist/database/types/query.interface.d.ts +0 -205
- package/dist/database/types/query.interface.js +0 -6
- package/dist/database/types/query.interface.js.map +0 -1
- package/dist/database/types/schema.interface.d.ts +0 -412
- package/dist/database/types/schema.interface.js +0 -6
- package/dist/database/types/schema.interface.js.map +0 -1
- package/dist/database/types/transaction.interface.d.ts +0 -84
- package/dist/database/types/transaction.interface.js +0 -6
- package/dist/database/types/transaction.interface.js.map +0 -1
- package/dist/database/types/trigger.interface.d.ts +0 -612
- package/dist/database/types/trigger.interface.js +0 -121
- package/dist/database/types/trigger.interface.js.map +0 -1
- package/dist/database/types/write.interface.d.ts +0 -216
- package/dist/database/types/write.interface.js +0 -6
- package/dist/database/types/write.interface.js.map +0 -1
- package/dist/database/utils/database-error.d.ts +0 -96
- package/dist/database/utils/database-error.js +0 -221
- package/dist/database/utils/database-error.js.map +0 -1
- package/dist/database/utils/index.d.ts +0 -6
- package/dist/database/utils/index.js +0 -11
- package/dist/database/utils/index.js.map +0 -1
- package/dist/graph/adapters/adapter.factory.d.ts +0 -47
- package/dist/graph/adapters/adapter.factory.js +0 -77
- package/dist/graph/adapters/adapter.factory.js.map +0 -1
- package/dist/graph/adapters/arangodb.adapter.d.ts +0 -86
- package/dist/graph/adapters/arangodb.adapter.js +0 -1588
- package/dist/graph/adapters/arangodb.adapter.js.map +0 -1
- package/dist/graph/adapters/base.adapter.d.ts +0 -264
- package/dist/graph/adapters/base.adapter.js +0 -156
- package/dist/graph/adapters/base.adapter.js.map +0 -1
- package/dist/graph/adapters/index.d.ts +0 -11
- package/dist/graph/adapters/index.js +0 -21
- package/dist/graph/adapters/index.js.map +0 -1
- package/dist/graph/adapters/memgraph.adapter.d.ts +0 -110
- package/dist/graph/adapters/memgraph.adapter.js +0 -1452
- package/dist/graph/adapters/memgraph.adapter.js.map +0 -1
- package/dist/graph/adapters/neo4j.adapter.d.ts +0 -81
- package/dist/graph/adapters/neo4j.adapter.js +0 -1317
- package/dist/graph/adapters/neo4j.adapter.js.map +0 -1
- package/dist/graph/adapters/neptune.adapter.d.ts +0 -82
- package/dist/graph/adapters/neptune.adapter.js +0 -1369
- package/dist/graph/adapters/neptune.adapter.js.map +0 -1
- package/dist/graph/graphs.service.d.ts +0 -617
- package/dist/graph/graphs.service.js +0 -2594
- package/dist/graph/graphs.service.js.map +0 -1
- package/dist/graph/index.d.ts +0 -57
- package/dist/graph/index.js +0 -77
- package/dist/graph/index.js.map +0 -1
- package/dist/graph/transactions/index.d.ts +0 -4
- package/dist/graph/transactions/index.js +0 -9
- package/dist/graph/transactions/index.js.map +0 -1
- package/dist/graph/transactions/transaction-manager.d.ts +0 -61
- package/dist/graph/transactions/transaction-manager.js +0 -126
- package/dist/graph/transactions/transaction-manager.js.map +0 -1
- package/dist/graph/types/connection.interface.d.ts +0 -149
- package/dist/graph/types/connection.interface.js +0 -9
- package/dist/graph/types/connection.interface.js.map +0 -1
- package/dist/graph/types/enums.d.ts +0 -101
- package/dist/graph/types/enums.js +0 -114
- package/dist/graph/types/enums.js.map +0 -1
- package/dist/graph/types/index.d.ts +0 -13
- package/dist/graph/types/index.js +0 -20
- package/dist/graph/types/index.js.map +0 -1
- package/dist/graph/types/node.interface.d.ts +0 -248
- package/dist/graph/types/node.interface.js +0 -9
- package/dist/graph/types/node.interface.js.map +0 -1
- package/dist/graph/types/query.interface.d.ts +0 -175
- package/dist/graph/types/query.interface.js +0 -9
- package/dist/graph/types/query.interface.js.map +0 -1
- package/dist/graph/types/relationship.interface.d.ts +0 -207
- package/dist/graph/types/relationship.interface.js +0 -9
- package/dist/graph/types/relationship.interface.js.map +0 -1
- package/dist/graph/types/schema.interface.d.ts +0 -295
- package/dist/graph/types/schema.interface.js +0 -9
- package/dist/graph/types/schema.interface.js.map +0 -1
- package/dist/graph/types/transaction.interface.d.ts +0 -55
- package/dist/graph/types/transaction.interface.js +0 -9
- package/dist/graph/types/transaction.interface.js.map +0 -1
- package/dist/graph/types/traversal.interface.d.ts +0 -181
- package/dist/graph/types/traversal.interface.js +0 -9
- package/dist/graph/types/traversal.interface.js.map +0 -1
- package/dist/graph/utils/graph-error.d.ts +0 -71
- package/dist/graph/utils/graph-error.js +0 -142
- package/dist/graph/utils/graph-error.js.map +0 -1
- package/dist/graph/utils/index.d.ts +0 -4
- package/dist/graph/utils/index.js +0 -9
- package/dist/graph/utils/index.js.map +0 -1
- package/dist/imports/imports.repo.d.ts +0 -0
- package/dist/imports/imports.repo.js +0 -1
- package/dist/imports/imports.repo.js.map +0 -1
- package/dist/imports/imports.service.d.ts +0 -23
- package/dist/imports/imports.service.js +0 -71
- package/dist/imports/imports.service.js.map +0 -1
- package/dist/imports/imports.types.d.ts +0 -350
- package/dist/imports/imports.types.js +0 -33
- package/dist/imports/imports.types.js.map +0 -1
- package/dist/imports/openAPI3.0.types.d.ts +0 -52
- package/dist/imports/openAPI3.0.types.js +0 -3
- package/dist/imports/openAPI3.0.types.js.map +0 -1
- package/dist/imports/repos/openApi.repo.d.ts +0 -6
- package/dist/imports/repos/openApi.repo.js +0 -422
- package/dist/imports/repos/openApi.repo.js.map +0 -1
- package/dist/imports/repos/postmanV21.repo.d.ts +0 -14
- package/dist/imports/repos/postmanV21.repo.js +0 -257
- package/dist/imports/repos/postmanV21.repo.js.map +0 -1
- package/dist/imports/utils/imports.utils.d.ts +0 -80
- package/dist/imports/utils/imports.utils.js +0 -114
- package/dist/imports/utils/imports.utils.js.map +0 -1
- package/dist/imports/validators/index.d.ts +0 -0
- package/dist/imports/validators/index.js +0 -1
- package/dist/imports/validators/index.js.map +0 -1
- package/dist/imports/validators/joi-validators/postmanV21.validator.d.ts +0 -5
- package/dist/imports/validators/joi-validators/postmanV21.validator.js +0 -96
- package/dist/imports/validators/joi-validators/postmanV21.validator.js.map +0 -1
- package/dist/index.d.ts +0 -4021
- package/dist/index.js +0 -5895
- package/dist/index.js.map +0 -1
- package/dist/init.interface.d.ts +0 -407
- package/dist/init.interface.js +0 -3
- package/dist/init.interface.js.map +0 -1
- package/dist/inputs/inputs.repo.d.ts +0 -7
- package/dist/inputs/inputs.repo.js +0 -16
- package/dist/inputs/inputs.repo.js.map +0 -1
- package/dist/inputs/inputs.service.d.ts +0 -61
- package/dist/inputs/inputs.service.js +0 -468
- package/dist/inputs/inputs.service.js.map +0 -1
- package/dist/inputs/utils/inputs.utils.create.d.ts +0 -11
- package/dist/inputs/utils/inputs.utils.create.js +0 -273
- package/dist/inputs/utils/inputs.utils.create.js.map +0 -1
- package/dist/inputs/validators/inputs.validator.parse.d.ts +0 -4
- package/dist/inputs/validators/inputs.validator.parse.js +0 -53
- package/dist/inputs/validators/inputs.validator.parse.js.map +0 -1
- package/dist/jobs/index.d.ts +0 -38
- package/dist/jobs/index.js +0 -50
- package/dist/jobs/index.js.map +0 -1
- package/dist/jobs/jobs.service.d.ts +0 -154
- package/dist/jobs/jobs.service.js +0 -491
- package/dist/jobs/jobs.service.js.map +0 -1
- package/dist/jobs/jobs.state.d.ts +0 -113
- package/dist/jobs/jobs.state.js +0 -447
- package/dist/jobs/jobs.state.js.map +0 -1
- package/dist/jobs/types.d.ts +0 -449
- package/dist/jobs/types.js +0 -74
- package/dist/jobs/types.js.map +0 -1
- package/dist/logs/logs.repo.d.ts +0 -6
- package/dist/logs/logs.repo.js +0 -12
- package/dist/logs/logs.repo.js.map +0 -1
- package/dist/logs/logs.service.d.ts +0 -30
- package/dist/logs/logs.service.js +0 -89
- package/dist/logs/logs.service.js.map +0 -1
- package/dist/logs/logs.types.d.ts +0 -85
- package/dist/logs/logs.types.js +0 -52
- package/dist/logs/logs.types.js.map +0 -1
- package/dist/logs/utils/logs.utils.create.d.ts +0 -0
- package/dist/logs/utils/logs.utils.create.js +0 -1
- package/dist/logs/utils/logs.utils.create.js.map +0 -1
- package/dist/logs/utils/logs.utils.errors.d.ts +0 -2
- package/dist/logs/utils/logs.utils.errors.js +0 -8
- package/dist/logs/utils/logs.utils.errors.js.map +0 -1
- package/dist/models/index.d.ts +0 -6
- package/dist/models/index.js +0 -11
- package/dist/models/index.js.map +0 -1
- package/dist/models/models.service.d.ts +0 -137
- package/dist/models/models.service.js +0 -195
- package/dist/models/models.service.js.map +0 -1
- package/dist/notifications/index.d.ts +0 -13
- package/dist/notifications/index.js +0 -26
- package/dist/notifications/index.js.map +0 -1
- package/dist/notifications/notifications.service.d.ts +0 -268
- package/dist/notifications/notifications.service.js +0 -907
- package/dist/notifications/notifications.service.js.map +0 -1
- package/dist/notifications/types/index.d.ts +0 -4
- package/dist/notifications/types/index.js +0 -21
- package/dist/notifications/types/index.js.map +0 -1
- package/dist/notifications/types/notifications.types.d.ts +0 -454
- package/dist/notifications/types/notifications.types.js +0 -51
- package/dist/notifications/types/notifications.types.js.map +0 -1
- package/dist/parsers/index.d.ts +0 -3
- package/dist/parsers/index.js +0 -27
- package/dist/parsers/index.js.map +0 -1
- package/dist/parsers/pipelines/postman.pipelines.d.ts +0 -15
- package/dist/parsers/pipelines/postman.pipelines.js +0 -103
- package/dist/parsers/pipelines/postman.pipelines.js.map +0 -1
- package/dist/parsers/types/postman.types.d.ts +0 -200
- package/dist/parsers/types/postman.types.js +0 -3
- package/dist/parsers/types/postman.types.js.map +0 -1
- package/dist/parsers/utils/postman.utils.d.ts +0 -12
- package/dist/parsers/utils/postman.utils.js +0 -116
- package/dist/parsers/utils/postman.utils.js.map +0 -1
- package/dist/parsers/validators/postman-auth.validators.d.ts +0 -10
- package/dist/parsers/validators/postman-auth.validators.js +0 -127
- package/dist/parsers/validators/postman-auth.validators.js.map +0 -1
- package/dist/parsers/validators/postman-request.validators.d.ts +0 -13
- package/dist/parsers/validators/postman-request.validators.js +0 -139
- package/dist/parsers/validators/postman-request.validators.js.map +0 -1
- package/dist/parsers/validators/postman-response.validators.d.ts +0 -13
- package/dist/parsers/validators/postman-response.validators.js +0 -150
- package/dist/parsers/validators/postman-response.validators.js.map +0 -1
- package/dist/parsers/validators/postman-variable.validators.d.ts +0 -14
- package/dist/parsers/validators/postman-variable.validators.js +0 -163
- package/dist/parsers/validators/postman-variable.validators.js.map +0 -1
- package/dist/pricing/pricing.repo.d.ts +0 -0
- package/dist/pricing/pricing.repo.js +0 -1
- package/dist/pricing/pricing.repo.js.map +0 -1
- package/dist/pricing/pricing.service.d.ts +0 -24
- package/dist/pricing/pricing.service.js +0 -51
- package/dist/pricing/pricing.service.js.map +0 -1
- package/dist/pricing/pricing.types.d.ts +0 -76
- package/dist/pricing/pricing.types.js +0 -21
- package/dist/pricing/pricing.types.js.map +0 -1
- package/dist/pricing/utils/string.utils.d.ts +0 -1
- package/dist/pricing/utils/string.utils.js +0 -9
- package/dist/pricing/utils/string.utils.js.map +0 -1
- package/dist/processor/repos/mongo.repo.d.ts +0 -39
- package/dist/processor/repos/mongo.repo.js +0 -260
- package/dist/processor/repos/mongo.repo.js.map +0 -1
- package/dist/processor/repos/postgres.repo.d.ts +0 -31
- package/dist/processor/repos/postgres.repo.js +0 -185
- package/dist/processor/repos/postgres.repo.js.map +0 -1
- package/dist/processor/repos/sms.repo.d.ts +0 -39
- package/dist/processor/repos/sms.repo.js +0 -124
- package/dist/processor/repos/sms.repo.js.map +0 -1
- package/dist/processor/services/processor.service.d.ts +0 -465
- package/dist/processor/services/processor.service.js +0 -5343
- package/dist/processor/services/processor.service.js.map +0 -1
- package/dist/processor/services/request.service.d.ts +0 -36
- package/dist/processor/services/request.service.js +0 -304
- package/dist/processor/services/request.service.js.map +0 -1
- package/dist/processor/types/request.types.d.ts +0 -14
- package/dist/processor/types/request.types.js +0 -3
- package/dist/processor/types/request.types.js.map +0 -1
- package/dist/processor/utils/processor.utils.d.ts +0 -104
- package/dist/processor/utils/processor.utils.js +0 -1066
- package/dist/processor/utils/processor.utils.js.map +0 -1
- package/dist/processor/utils/request.utils.d.ts +0 -20
- package/dist/processor/utils/request.utils.js +0 -113
- package/dist/processor/utils/request.utils.js.map +0 -1
- package/dist/processor/utils/storage.util.d.ts +0 -8
- package/dist/processor/utils/storage.util.js +0 -106
- package/dist/processor/utils/storage.util.js.map +0 -1
- package/dist/products/services/products.service.d.ts +0 -577
- package/dist/products/services/products.service.js +0 -5845
- package/dist/products/services/products.service.js.map +0 -1
- package/dist/products/utils/crypt.utils.d.ts +0 -1
- package/dist/products/utils/crypt.utils.js +0 -17
- package/dist/products/utils/crypt.utils.js.map +0 -1
- package/dist/products/utils/functions.utils.d.ts +0 -13
- package/dist/products/utils/functions.utils.js +0 -294
- package/dist/products/utils/functions.utils.js.map +0 -1
- package/dist/products/utils/objects.utils.d.ts +0 -13
- package/dist/products/utils/objects.utils.js +0 -89
- package/dist/products/utils/objects.utils.js.map +0 -1
- package/dist/products/utils/string.utils.d.ts +0 -12
- package/dist/products/utils/string.utils.js +0 -168
- package/dist/products/utils/string.utils.js.map +0 -1
- package/dist/products/validators/index.d.ts +0 -33
- package/dist/products/validators/index.js +0 -75
- package/dist/products/validators/index.js.map +0 -1
- package/dist/products/validators/joi-validators/create.html.validator.d.ts +0 -2
- package/dist/products/validators/joi-validators/create.html.validator.js +0 -55
- package/dist/products/validators/joi-validators/create.html.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productAgent.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productAgent.validator.js +0 -266
- package/dist/products/validators/joi-validators/create.productAgent.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productApp.validator.d.ts +0 -4
- package/dist/products/validators/joi-validators/create.productApp.validator.js +0 -61
- package/dist/products/validators/joi-validators/create.productApp.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productCache.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productCache.validator.js +0 -46
- package/dist/products/validators/joi-validators/create.productCache.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productDatabase.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productDatabase.validator.js +0 -77
- package/dist/products/validators/joi-validators/create.productDatabase.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productDatabaseAction.validator.d.ts +0 -7
- package/dist/products/validators/joi-validators/create.productDatabaseAction.validator.js +0 -194
- package/dist/products/validators/joi-validators/create.productDatabaseAction.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productDatabaseMigration.validator.d.ts +0 -4
- package/dist/products/validators/joi-validators/create.productDatabaseMigration.validator.js +0 -63
- package/dist/products/validators/joi-validators/create.productDatabaseMigration.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productEnv.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productEnv.validator.js +0 -45
- package/dist/products/validators/joi-validators/create.productEnv.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productFallback.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productFallback.validator.js +0 -64
- package/dist/products/validators/joi-validators/create.productFallback.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productFeature.validator.d.ts +0 -14
- package/dist/products/validators/joi-validators/create.productFeature.validator.js +0 -140
- package/dist/products/validators/joi-validators/create.productFeature.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productFunction.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productFunction.validator.js +0 -57
- package/dist/products/validators/joi-validators/create.productFunction.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productGraph.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productGraph.validator.js +0 -89
- package/dist/products/validators/joi-validators/create.productGraph.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productHealthcheck.validator.d.ts +0 -4
- package/dist/products/validators/joi-validators/create.productHealthcheck.validator.js +0 -58
- package/dist/products/validators/joi-validators/create.productHealthcheck.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productJob.validator.d.ts +0 -12
- package/dist/products/validators/joi-validators/create.productJob.validator.js +0 -60
- package/dist/products/validators/joi-validators/create.productJob.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productMessageBrokerTopic.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productMessageBrokerTopic.validator.js +0 -52
- package/dist/products/validators/joi-validators/create.productMessageBrokerTopic.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productMessageBrokers.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productMessageBrokers.validator.js +0 -193
- package/dist/products/validators/joi-validators/create.productMessageBrokers.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productModel.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productModel.validator.js +0 -132
- package/dist/products/validators/joi-validators/create.productModel.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productNotification.validator.d.ts +0 -4
- package/dist/products/validators/joi-validators/create.productNotification.validator.js +0 -241
- package/dist/products/validators/joi-validators/create.productNotification.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productNotificationMessage.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productNotificationMessage.validator.js +0 -57
- package/dist/products/validators/joi-validators/create.productNotificationMessage.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productNotifications.validator.d.ts +0 -0
- package/dist/products/validators/joi-validators/create.productNotifications.validator.js +0 -1
- package/dist/products/validators/joi-validators/create.productNotifications.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productQuota.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productQuota.validator.js +0 -67
- package/dist/products/validators/joi-validators/create.productQuota.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productStorage.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productStorage.validator.js +0 -158
- package/dist/products/validators/joi-validators/create.productStorage.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productVector.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.productVector.validator.js +0 -136
- package/dist/products/validators/joi-validators/create.productVector.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.products.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.products.validator.js +0 -43
- package/dist/products/validators/joi-validators/create.products.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.requestAction.validator.d.ts +0 -2
- package/dist/products/validators/joi-validators/create.requestAction.validator.js +0 -45
- package/dist/products/validators/joi-validators/create.requestAction.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.userAuth.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.userAuth.validator.js +0 -48
- package/dist/products/validators/joi-validators/create.userAuth.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/register.productWebhooks.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/register.productWebhooks.validator.js +0 -48
- package/dist/products/validators/joi-validators/register.productWebhooks.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.dataValue.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.dataValue.validator.js +0 -103
- package/dist/products/validators/joi-validators/update.dataValue.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productApp.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productApp.validator.js +0 -42
- package/dist/products/validators/joi-validators/update.productApp.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productCache.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productCache.validator.js +0 -45
- package/dist/products/validators/joi-validators/update.productCache.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productDatabase.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productDatabase.validator.js +0 -76
- package/dist/products/validators/joi-validators/update.productDatabase.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productDatabaseAction.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productDatabaseAction.validator.js +0 -79
- package/dist/products/validators/joi-validators/update.productDatabaseAction.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productDatabaseMigration.validator.d.ts +0 -4
- package/dist/products/validators/joi-validators/update.productDatabaseMigration.validator.js +0 -64
- package/dist/products/validators/joi-validators/update.productDatabaseMigration.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productEnv.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productEnv.validator.js +0 -46
- package/dist/products/validators/joi-validators/update.productEnv.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productFallback.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productFallback.validator.js +0 -60
- package/dist/products/validators/joi-validators/update.productFallback.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productFeature.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productFeature.validator.js +0 -53
- package/dist/products/validators/joi-validators/update.productFeature.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productFunction.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productFunction.validator.js +0 -41
- package/dist/products/validators/joi-validators/update.productFunction.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productGraph.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productGraph.validator.js +0 -88
- package/dist/products/validators/joi-validators/update.productGraph.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productJob.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productJob.validator.js +0 -50
- package/dist/products/validators/joi-validators/update.productJob.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productMessageBrokerTopic.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productMessageBrokerTopic.validator.js +0 -52
- package/dist/products/validators/joi-validators/update.productMessageBrokerTopic.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productNotification.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productNotification.validator.js +0 -47
- package/dist/products/validators/joi-validators/update.productNotification.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productNotificationMessage.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productNotificationMessage.validator.js +0 -58
- package/dist/products/validators/joi-validators/update.productNotificationMessage.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productQuota.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.productQuota.validator.js +0 -64
- package/dist/products/validators/joi-validators/update.productQuota.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.userAuth.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/update.userAuth.validator.js +0 -48
- package/dist/products/validators/joi-validators/update.userAuth.validator.js.map +0 -1
- package/dist/resilience/fallback.service.d.ts +0 -141
- package/dist/resilience/fallback.service.js +0 -766
- package/dist/resilience/fallback.service.js.map +0 -1
- package/dist/resilience/healthcheck.service.d.ts +0 -163
- package/dist/resilience/healthcheck.service.js +0 -1012
- package/dist/resilience/healthcheck.service.js.map +0 -1
- package/dist/resilience/index.d.ts +0 -104
- package/dist/resilience/index.js +0 -140
- package/dist/resilience/index.js.map +0 -1
- package/dist/resilience/quota.service.d.ts +0 -83
- package/dist/resilience/quota.service.js +0 -518
- package/dist/resilience/quota.service.js.map +0 -1
- package/dist/resilience/resilience.service.d.ts +0 -98
- package/dist/resilience/resilience.service.js +0 -560
- package/dist/resilience/resilience.service.js.map +0 -1
- package/dist/resilience/types/index.d.ts +0 -513
- package/dist/resilience/types/index.js +0 -29
- package/dist/resilience/types/index.js.map +0 -1
- package/dist/secrets/index.d.ts +0 -10
- package/dist/secrets/index.js +0 -33
- package/dist/secrets/index.js.map +0 -1
- package/dist/secrets/secrets.resolver.d.ts +0 -52
- package/dist/secrets/secrets.resolver.js +0 -236
- package/dist/secrets/secrets.resolver.js.map +0 -1
- package/dist/secrets/secrets.service.d.ts +0 -93
- package/dist/secrets/secrets.service.js +0 -246
- package/dist/secrets/secrets.service.js.map +0 -1
- package/dist/secrets/secrets.types.d.ts +0 -188
- package/dist/secrets/secrets.types.js +0 -87
- package/dist/secrets/secrets.types.js.map +0 -1
- package/dist/sessions/index.d.ts +0 -50
- package/dist/sessions/index.js +0 -96
- package/dist/sessions/index.js.map +0 -1
- package/dist/sessions/sessions.helper.d.ts +0 -88
- package/dist/sessions/sessions.helper.js +0 -190
- package/dist/sessions/sessions.helper.js.map +0 -1
- package/dist/sessions/sessions.resolver.d.ts +0 -188
- package/dist/sessions/sessions.resolver.js +0 -603
- package/dist/sessions/sessions.resolver.js.map +0 -1
- package/dist/sessions/sessions.service.d.ts +0 -194
- package/dist/sessions/sessions.service.js +0 -988
- package/dist/sessions/sessions.service.js.map +0 -1
- package/dist/sessions/types/index.d.ts +0 -344
- package/dist/sessions/types/index.js +0 -6
- package/dist/sessions/types/index.js.map +0 -1
- package/dist/storage/index.d.ts +0 -66
- package/dist/storage/index.js +0 -99
- package/dist/storage/index.js.map +0 -1
- package/dist/storage/storage.service.d.ts +0 -177
- package/dist/storage/storage.service.js +0 -905
- package/dist/storage/storage.service.js.map +0 -1
- package/dist/storage/types/index.d.ts +0 -270
- package/dist/storage/types/index.js +0 -6
- package/dist/storage/types/index.js.map +0 -1
- package/dist/storage/utils/storage.util.d.ts +0 -62
- package/dist/storage/utils/storage.util.js +0 -593
- package/dist/storage/utils/storage.util.js.map +0 -1
- package/dist/types/actions.types.d.ts +0 -0
- package/dist/types/actions.types.js +0 -1
- package/dist/types/actions.types.js.map +0 -1
- package/dist/types/appBuilder.types.d.ts +0 -316
- package/dist/types/appBuilder.types.js +0 -3
- package/dist/types/appBuilder.types.js.map +0 -1
- package/dist/types/database.types.d.ts +0 -9
- package/dist/types/database.types.js +0 -3
- package/dist/types/database.types.js.map +0 -1
- package/dist/types/enums.d.ts +0 -231
- package/dist/types/enums.js +0 -261
- package/dist/types/enums.js.map +0 -1
- package/dist/types/index.d.ts +0 -12
- package/dist/types/index.js +0 -29
- package/dist/types/index.js.map +0 -1
- package/dist/types/index.types.d.ts +0 -30
- package/dist/types/index.types.js +0 -9
- package/dist/types/index.types.js.map +0 -1
- package/dist/types/inputs.types.d.ts +0 -114
- package/dist/types/inputs.types.js +0 -44
- package/dist/types/inputs.types.js.map +0 -1
- package/dist/types/logs.types.d.ts +0 -19
- package/dist/types/logs.types.js +0 -8
- package/dist/types/logs.types.js.map +0 -1
- package/dist/types/pricing.types.d.ts +0 -4
- package/dist/types/pricing.types.js +0 -3
- package/dist/types/pricing.types.js.map +0 -1
- package/dist/types/processor.types.d.ts +0 -602
- package/dist/types/processor.types.js +0 -19
- package/dist/types/processor.types.js.map +0 -1
- package/dist/types/productsBuilder.types.d.ts +0 -1566
- package/dist/types/productsBuilder.types.js +0 -303
- package/dist/types/productsBuilder.types.js.map +0 -1
- package/dist/types/request-tracker.interface.d.ts +0 -0
- package/dist/types/request-tracker.interface.js +0 -1
- package/dist/types/request-tracker.interface.js.map +0 -1
- package/dist/types/requests.types.d.ts +0 -8
- package/dist/types/requests.types.js +0 -3
- package/dist/types/requests.types.js.map +0 -1
- package/dist/types/workspaces.types.d.ts +0 -28
- package/dist/types/workspaces.types.js +0 -4
- package/dist/types/workspaces.types.js.map +0 -1
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/constants.js +0 -5
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +0 -109
- package/dist/utils/index.js.map +0 -1
- package/dist/vector/actions/action-manager.d.ts +0 -140
- package/dist/vector/actions/action-manager.js +0 -356
- package/dist/vector/actions/action-manager.js.map +0 -1
- package/dist/vector/adapters/base.adapter.d.ts +0 -169
- package/dist/vector/adapters/base.adapter.js +0 -218
- package/dist/vector/adapters/base.adapter.js.map +0 -1
- package/dist/vector/adapters/index.d.ts +0 -10
- package/dist/vector/adapters/index.js +0 -19
- package/dist/vector/adapters/index.js.map +0 -1
- package/dist/vector/adapters/memory.adapter.d.ts +0 -85
- package/dist/vector/adapters/memory.adapter.js +0 -505
- package/dist/vector/adapters/memory.adapter.js.map +0 -1
- package/dist/vector/adapters/pinecone.adapter.d.ts +0 -52
- package/dist/vector/adapters/pinecone.adapter.js +0 -433
- package/dist/vector/adapters/pinecone.adapter.js.map +0 -1
- package/dist/vector/adapters/qdrant.adapter.d.ts +0 -56
- package/dist/vector/adapters/qdrant.adapter.js +0 -442
- package/dist/vector/adapters/qdrant.adapter.js.map +0 -1
- package/dist/vector/adapters/weaviate.adapter.d.ts +0 -68
- package/dist/vector/adapters/weaviate.adapter.js +0 -661
- package/dist/vector/adapters/weaviate.adapter.js.map +0 -1
- package/dist/vector/index.d.ts +0 -36
- package/dist/vector/index.js +0 -70
- package/dist/vector/index.js.map +0 -1
- package/dist/vector/types/action.interface.d.ts +0 -195
- package/dist/vector/types/action.interface.js +0 -100
- package/dist/vector/types/action.interface.js.map +0 -1
- package/dist/vector/types/connection.interface.d.ts +0 -151
- package/dist/vector/types/connection.interface.js +0 -8
- package/dist/vector/types/connection.interface.js.map +0 -1
- package/dist/vector/types/embedding.interface.d.ts +0 -144
- package/dist/vector/types/embedding.interface.js +0 -8
- package/dist/vector/types/embedding.interface.js.map +0 -1
- package/dist/vector/types/enums.d.ts +0 -104
- package/dist/vector/types/enums.js +0 -113
- package/dist/vector/types/enums.js.map +0 -1
- package/dist/vector/types/index.d.ts +0 -11
- package/dist/vector/types/index.js +0 -23
- package/dist/vector/types/index.js.map +0 -1
- package/dist/vector/types/vector.interface.d.ts +0 -315
- package/dist/vector/types/vector.interface.js +0 -8
- package/dist/vector/types/vector.interface.js.map +0 -1
- package/dist/vector/utils/index.d.ts +0 -6
- package/dist/vector/utils/index.js +0 -11
- package/dist/vector/utils/index.js.map +0 -1
- package/dist/vector/utils/vector-error.d.ts +0 -69
- package/dist/vector/utils/vector-error.js +0 -116
- package/dist/vector/utils/vector-error.js.map +0 -1
- package/dist/vector/vector-database.service.d.ts +0 -484
- package/dist/vector/vector-database.service.js +0 -1002
- package/dist/vector/vector-database.service.js.map +0 -1
- package/dist/vector/vector.service.d.ts +0 -283
- package/dist/vector/vector.service.js +0 -544
- package/dist/vector/vector.service.js.map +0 -1
- package/dist/warehouse/executor/index.d.ts +0 -5
- package/dist/warehouse/executor/index.js +0 -12
- package/dist/warehouse/executor/index.js.map +0 -1
- package/dist/warehouse/executor/joins/index.d.ts +0 -5
- package/dist/warehouse/executor/joins/index.js +0 -11
- package/dist/warehouse/executor/joins/index.js.map +0 -1
- package/dist/warehouse/executor/joins/join-executor.d.ts +0 -101
- package/dist/warehouse/executor/joins/join-executor.js +0 -493
- package/dist/warehouse/executor/joins/join-executor.js.map +0 -1
- package/dist/warehouse/executor/joins/semantic-join.d.ts +0 -64
- package/dist/warehouse/executor/joins/semantic-join.js +0 -241
- package/dist/warehouse/executor/joins/semantic-join.js.map +0 -1
- package/dist/warehouse/executor/single-source-executor.d.ts +0 -155
- package/dist/warehouse/executor/single-source-executor.js +0 -573
- package/dist/warehouse/executor/single-source-executor.js.map +0 -1
- package/dist/warehouse/index.d.ts +0 -79
- package/dist/warehouse/index.js +0 -111
- package/dist/warehouse/index.js.map +0 -1
- package/dist/warehouse/parser/index.d.ts +0 -4
- package/dist/warehouse/parser/index.js +0 -10
- package/dist/warehouse/parser/index.js.map +0 -1
- package/dist/warehouse/parser/query-parser.d.ts +0 -181
- package/dist/warehouse/parser/query-parser.js +0 -415
- package/dist/warehouse/parser/query-parser.js.map +0 -1
- package/dist/warehouse/registry/data-source-registry.d.ts +0 -207
- package/dist/warehouse/registry/data-source-registry.js +0 -396
- package/dist/warehouse/registry/data-source-registry.js.map +0 -1
- package/dist/warehouse/registry/index.d.ts +0 -4
- package/dist/warehouse/registry/index.js +0 -9
- package/dist/warehouse/registry/index.js.map +0 -1
- package/dist/warehouse/transactions/index.d.ts +0 -4
- package/dist/warehouse/transactions/index.js +0 -9
- package/dist/warehouse/transactions/index.js.map +0 -1
- package/dist/warehouse/transactions/saga-orchestrator.d.ts +0 -92
- package/dist/warehouse/transactions/saga-orchestrator.js +0 -383
- package/dist/warehouse/transactions/saga-orchestrator.js.map +0 -1
- package/dist/warehouse/types/index.d.ts +0 -9
- package/dist/warehouse/types/index.js +0 -33
- package/dist/warehouse/types/index.js.map +0 -1
- package/dist/warehouse/types/join.interface.d.ts +0 -225
- package/dist/warehouse/types/join.interface.js +0 -87
- package/dist/warehouse/types/join.interface.js.map +0 -1
- package/dist/warehouse/types/query.interface.d.ts +0 -232
- package/dist/warehouse/types/query.interface.js +0 -9
- package/dist/warehouse/types/query.interface.js.map +0 -1
- package/dist/warehouse/types/transaction.interface.d.ts +0 -236
- package/dist/warehouse/types/transaction.interface.js +0 -74
- package/dist/warehouse/types/transaction.interface.js.map +0 -1
- package/dist/warehouse/types/where.interface.d.ts +0 -208
- package/dist/warehouse/types/where.interface.js +0 -89
- package/dist/warehouse/types/where.interface.js.map +0 -1
- package/dist/warehouse/warehouse.service.d.ts +0 -200
- package/dist/warehouse/warehouse.service.js +0 -470
- package/dist/warehouse/warehouse.service.js.map +0 -1
- package/dist/workflows/index.d.ts +0 -30
- package/dist/workflows/index.js +0 -64
- package/dist/workflows/index.js.map +0 -1
- package/dist/workflows/types/index.d.ts +0 -6
- package/dist/workflows/types/index.js +0 -23
- package/dist/workflows/types/index.js.map +0 -1
- package/dist/workflows/types/workflows.types.d.ts +0 -1095
- package/dist/workflows/types/workflows.types.js +0 -13
- package/dist/workflows/types/workflows.types.js.map +0 -1
- package/dist/workflows/workflow-builder.d.ts +0 -70
- package/dist/workflows/workflow-builder.js +0 -353
- package/dist/workflows/workflow-builder.js.map +0 -1
- package/dist/workflows/workflow-executor.d.ts +0 -289
- package/dist/workflows/workflow-executor.js +0 -2467
- package/dist/workflows/workflow-executor.js.map +0 -1
- package/dist/workflows/workflows.service.d.ts +0 -412
- package/dist/workflows/workflows.service.js +0 -2233
- package/dist/workflows/workflows.service.js.map +0 -1
|
@@ -1,1566 +0,0 @@
|
|
|
1
|
-
import { KeyValuePair } from '../imports/imports.types';
|
|
2
|
-
import { IAppEnv, ISample } from './appBuilder.types';
|
|
3
|
-
import { Categories, DataTypes, FileType, HttpMethods, ProductComponents, TokenPeriods } from './enums';
|
|
4
|
-
import { IParsedIndexes, IParsedInput, IParsedSample } from './inputs.types';
|
|
5
|
-
import { IProductMessageBroker, IProductNotification, IPublishRequest } from './processor.types';
|
|
6
|
-
export interface ICreateProductsBuilder {
|
|
7
|
-
name: string;
|
|
8
|
-
description: string;
|
|
9
|
-
unique?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface IRegisterWebhook {
|
|
12
|
-
product: string;
|
|
13
|
-
access_tag: string;
|
|
14
|
-
webhook_tag: string;
|
|
15
|
-
envs: IProductBuilderRegisterWebhookEnvs[];
|
|
16
|
-
}
|
|
17
|
-
export interface IProductBuilderRegisterWebhookEnvs {
|
|
18
|
-
slug: string;
|
|
19
|
-
url: string;
|
|
20
|
-
method: HttpMethods;
|
|
21
|
-
auth: IActionRequest;
|
|
22
|
-
}
|
|
23
|
-
export interface IGenerateWebhookLink {
|
|
24
|
-
product: string;
|
|
25
|
-
access_tag: string;
|
|
26
|
-
webhook_tag: string;
|
|
27
|
-
env: string;
|
|
28
|
-
url: string;
|
|
29
|
-
method: HttpMethods;
|
|
30
|
-
}
|
|
31
|
-
export interface IProduct {
|
|
32
|
-
_id?: string;
|
|
33
|
-
workspace_id: string;
|
|
34
|
-
name: string;
|
|
35
|
-
tag: string;
|
|
36
|
-
description: string;
|
|
37
|
-
apps: Array<IProductApp>;
|
|
38
|
-
envs: Array<IProductEnv>;
|
|
39
|
-
functions: Array<IProductFunction>;
|
|
40
|
-
caches: Array<IProductCache>;
|
|
41
|
-
sessions: Array<IProductSession>;
|
|
42
|
-
notifications: Array<IProductNotification>;
|
|
43
|
-
features: Array<IProductFeature>;
|
|
44
|
-
databases: Array<IProductDatabase>;
|
|
45
|
-
jobs: Array<IProductJobs>;
|
|
46
|
-
storage: Array<IProductStorage>;
|
|
47
|
-
quota: Array<IProductQuota>;
|
|
48
|
-
fallback: Array<IProductFallback>;
|
|
49
|
-
messageBrokers: Array<IProductMessageBroker>;
|
|
50
|
-
healthchecks: Array<IProductAppHealth>;
|
|
51
|
-
workflows: Array<IProductWorkflow>;
|
|
52
|
-
vectors: Array<IProductVector>;
|
|
53
|
-
models: Array<IProductLLMModel>;
|
|
54
|
-
agents: Array<IProductAgent>;
|
|
55
|
-
private_key: string;
|
|
56
|
-
}
|
|
57
|
-
export interface IProductEnv {
|
|
58
|
-
_id?: string;
|
|
59
|
-
env_name: string;
|
|
60
|
-
description: string;
|
|
61
|
-
slug: string;
|
|
62
|
-
active: boolean;
|
|
63
|
-
envs?: Array<IProductAppEnvs>;
|
|
64
|
-
auth?: IProductAppAuth;
|
|
65
|
-
}
|
|
66
|
-
export interface IProductAppEnvs {
|
|
67
|
-
app_env_slug: string;
|
|
68
|
-
product_env_slug: string;
|
|
69
|
-
variables?: Array<KeyValuePair>;
|
|
70
|
-
auth?: IProductAppAuth;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Healthcheck probe type
|
|
74
|
-
*/
|
|
75
|
-
export declare enum HealthcheckProbeType {
|
|
76
|
-
APP = "app",
|
|
77
|
-
DATABASE = "database",
|
|
78
|
-
WORKFLOW = "workflow",
|
|
79
|
-
FEATURE = "feature"
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Healthcheck probe configuration
|
|
83
|
-
*/
|
|
84
|
-
export interface IHealthcheckProbe {
|
|
85
|
-
type: HealthcheckProbeType;
|
|
86
|
-
app?: string;
|
|
87
|
-
database?: string;
|
|
88
|
-
workflow?: string;
|
|
89
|
-
feature?: string;
|
|
90
|
-
event?: string;
|
|
91
|
-
input?: Record<string, unknown>;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Notification channel configuration for healthcheck failures
|
|
95
|
-
*/
|
|
96
|
-
export interface IHealthcheckNotificationChannel {
|
|
97
|
-
push?: {
|
|
98
|
-
recipients?: string[];
|
|
99
|
-
};
|
|
100
|
-
email?: {
|
|
101
|
-
recipients: string[];
|
|
102
|
-
};
|
|
103
|
-
sms?: {
|
|
104
|
-
recipients: string[];
|
|
105
|
-
};
|
|
106
|
-
callback?: {
|
|
107
|
-
data?: Record<string, unknown>;
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Notification configuration for healthcheck failures
|
|
112
|
-
*/
|
|
113
|
-
export interface IHealthcheckNotification {
|
|
114
|
-
notification: string;
|
|
115
|
-
message: string;
|
|
116
|
-
channels: IHealthcheckNotificationChannel;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Webhook configuration for healthcheck failures
|
|
120
|
-
*/
|
|
121
|
-
export interface IHealthcheckWebhook {
|
|
122
|
-
url: string;
|
|
123
|
-
method?: 'GET' | 'POST' | 'PUT' | 'PATCH';
|
|
124
|
-
headers?: Record<string, string>;
|
|
125
|
-
body?: Record<string, unknown>;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Event emission configuration for healthcheck failures
|
|
129
|
-
*/
|
|
130
|
-
export interface IHealthcheckEmit {
|
|
131
|
-
event: string;
|
|
132
|
-
data?: Record<string, unknown>;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* On-failure configuration for healthchecks
|
|
136
|
-
*/
|
|
137
|
-
export interface IHealthcheckOnFailure {
|
|
138
|
-
notifications?: IHealthcheckNotification[];
|
|
139
|
-
webhooks?: IHealthcheckWebhook[];
|
|
140
|
-
emit?: IHealthcheckEmit[];
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Product healthcheck configuration
|
|
144
|
-
* Supports both simple app/event format and advanced probe configuration
|
|
145
|
-
*/
|
|
146
|
-
export interface IProductAppHealth {
|
|
147
|
-
_id?: string;
|
|
148
|
-
name?: string;
|
|
149
|
-
description?: string;
|
|
150
|
-
tag: string;
|
|
151
|
-
app?: string;
|
|
152
|
-
event?: string;
|
|
153
|
-
probe?: IHealthcheckProbe;
|
|
154
|
-
interval: number;
|
|
155
|
-
retries: number;
|
|
156
|
-
onFailure?: IHealthcheckOnFailure;
|
|
157
|
-
envs: CheckEnvStatus[];
|
|
158
|
-
}
|
|
159
|
-
export interface CheckEnvStatus {
|
|
160
|
-
slug: string;
|
|
161
|
-
status?: string;
|
|
162
|
-
lastAvailable?: string;
|
|
163
|
-
lastChecked?: string;
|
|
164
|
-
lastLatency?: string;
|
|
165
|
-
averageLatency?: string;
|
|
166
|
-
input?: any;
|
|
167
|
-
}
|
|
168
|
-
export interface IProductAppAuth {
|
|
169
|
-
auth_tag: string;
|
|
170
|
-
data: IActionRequest | string;
|
|
171
|
-
values?: string;
|
|
172
|
-
expiry?: number;
|
|
173
|
-
}
|
|
174
|
-
export interface IProductSession {
|
|
175
|
-
_id?: string;
|
|
176
|
-
expiry: number;
|
|
177
|
-
period: TokenPeriods;
|
|
178
|
-
selector: string;
|
|
179
|
-
selectorValue?: Array<IParsedSample>;
|
|
180
|
-
schema: Record<string, unknown>;
|
|
181
|
-
schema_data?: Array<IParsedSample>;
|
|
182
|
-
tag: string;
|
|
183
|
-
name: string;
|
|
184
|
-
description: string;
|
|
185
|
-
}
|
|
186
|
-
export interface IProductApp {
|
|
187
|
-
_id?: string;
|
|
188
|
-
app_tag?: string;
|
|
189
|
-
pricing_tag?: string;
|
|
190
|
-
access_tag: string;
|
|
191
|
-
version?: string;
|
|
192
|
-
envs: Array<IProductAppEnvs>;
|
|
193
|
-
}
|
|
194
|
-
export interface ISampleOutput {
|
|
195
|
-
type: DataTypes;
|
|
196
|
-
output_keys?: Array<IParsedInput>;
|
|
197
|
-
}
|
|
198
|
-
export interface IProductCache {
|
|
199
|
-
_id?: string;
|
|
200
|
-
name: string;
|
|
201
|
-
tag: string;
|
|
202
|
-
description?: string;
|
|
203
|
-
expiry: number;
|
|
204
|
-
}
|
|
205
|
-
export interface IProductStorage {
|
|
206
|
-
_id?: string;
|
|
207
|
-
name: string;
|
|
208
|
-
tag: string;
|
|
209
|
-
description?: string;
|
|
210
|
-
envs: IProductStorageEnvs[];
|
|
211
|
-
created_at?: Date;
|
|
212
|
-
updated_at?: Date;
|
|
213
|
-
}
|
|
214
|
-
export interface IProductStorageEnvs {
|
|
215
|
-
slug: string;
|
|
216
|
-
config: AWSConfig | AzureConfig | GCPConfig;
|
|
217
|
-
type: StorageProviders;
|
|
218
|
-
}
|
|
219
|
-
export declare enum StorageProviders {
|
|
220
|
-
AZURE = "azure",
|
|
221
|
-
GCP = "gcp",
|
|
222
|
-
AWS = "aws"
|
|
223
|
-
}
|
|
224
|
-
export interface FileStorageConfig {
|
|
225
|
-
provider: StorageProviders;
|
|
226
|
-
awsConfig?: AWSConfig;
|
|
227
|
-
gcpConfig?: GCPConfig;
|
|
228
|
-
azureConfig?: AzureConfig;
|
|
229
|
-
}
|
|
230
|
-
export interface IProductDatabaseEnvs {
|
|
231
|
-
slug: string;
|
|
232
|
-
connection_url: string;
|
|
233
|
-
description?: string;
|
|
234
|
-
}
|
|
235
|
-
export declare enum DatabaseTypes {
|
|
236
|
-
POSTGRES = "postgresql",
|
|
237
|
-
MONGODB = "mongodb",
|
|
238
|
-
MYSQL = "mysql"
|
|
239
|
-
}
|
|
240
|
-
export declare enum MigrationStatus {
|
|
241
|
-
NEW = "new",
|
|
242
|
-
PROCESSED = "processed",
|
|
243
|
-
FAILED = "failed",
|
|
244
|
-
SKIPPED = "skipped"
|
|
245
|
-
}
|
|
246
|
-
export interface MigrationEnv {
|
|
247
|
-
slug: string;
|
|
248
|
-
status?: MigrationStatus;
|
|
249
|
-
type: string;
|
|
250
|
-
processed_at?: number;
|
|
251
|
-
results?: Array<{
|
|
252
|
-
index: number;
|
|
253
|
-
status?: MigrationStatus;
|
|
254
|
-
processed_at: number;
|
|
255
|
-
reason?: any;
|
|
256
|
-
}>;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* Migration operation type - supports both simple SQL strings and rich operations
|
|
260
|
-
* Simple format: Raw SQL/CQL strings for direct execution
|
|
261
|
-
* Rich format: Structured operations that get translated by database adapters
|
|
262
|
-
*/
|
|
263
|
-
export type MigrationOperationValue = string | IMigrationOperationObject;
|
|
264
|
-
/**
|
|
265
|
-
* Structured migration operation (database-agnostic)
|
|
266
|
-
* Gets translated to database-specific commands by the adapter
|
|
267
|
-
*/
|
|
268
|
-
export interface IMigrationOperationObject {
|
|
269
|
-
/** Operation type */
|
|
270
|
-
type: 'createCollection' | 'dropCollection' | 'createIndex' | 'dropIndex' | 'addField' | 'dropField' | 'renameField' | 'modifyField' | 'addConstraint' | 'dropConstraint' | 'raw';
|
|
271
|
-
/** Operation-specific properties */
|
|
272
|
-
[key: string]: any;
|
|
273
|
-
}
|
|
274
|
-
export interface IProductDatabaseMigration {
|
|
275
|
-
/** Human-readable name */
|
|
276
|
-
name: string;
|
|
277
|
-
/** Description of what this migration does */
|
|
278
|
-
description?: string;
|
|
279
|
-
/** Unique tag for this migration */
|
|
280
|
-
tag: string;
|
|
281
|
-
/** Migration operations (up and down) */
|
|
282
|
-
value: {
|
|
283
|
-
/** Operations to apply the migration */
|
|
284
|
-
up: Array<MigrationOperationValue>;
|
|
285
|
-
/** Operations to rollback the migration */
|
|
286
|
-
down: Array<MigrationOperationValue>;
|
|
287
|
-
};
|
|
288
|
-
/** Dependencies - migrations that must run first */
|
|
289
|
-
dependencies?: string[];
|
|
290
|
-
/** Environment-specific execution status */
|
|
291
|
-
envs?: MigrationEnv[];
|
|
292
|
-
/** Timestamp when migration was created */
|
|
293
|
-
created_at?: string;
|
|
294
|
-
/** Timestamp when migration was last updated */
|
|
295
|
-
updated_at?: string;
|
|
296
|
-
}
|
|
297
|
-
export interface IProductDatabase {
|
|
298
|
-
_id?: string;
|
|
299
|
-
name: string;
|
|
300
|
-
description?: string;
|
|
301
|
-
tag: string;
|
|
302
|
-
envs: IProductDatabaseEnvs[];
|
|
303
|
-
type: DatabaseTypes;
|
|
304
|
-
actions?: IProductDatabaseAction[];
|
|
305
|
-
migrations?: IProductDatabaseMigration[];
|
|
306
|
-
triggers?: IProductDatabaseTrigger[];
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Graph database environment configuration
|
|
310
|
-
*/
|
|
311
|
-
export interface IProductGraphEnvs {
|
|
312
|
-
slug: string;
|
|
313
|
-
connection_url: string;
|
|
314
|
-
description?: string;
|
|
315
|
-
/** Database name (ArangoDB) */
|
|
316
|
-
database?: string;
|
|
317
|
-
/** Graph name (ArangoDB) */
|
|
318
|
-
graphName?: string;
|
|
319
|
-
/** AWS region (Neptune) */
|
|
320
|
-
region?: string;
|
|
321
|
-
/** Username for authentication (Neo4j) */
|
|
322
|
-
username?: string;
|
|
323
|
-
/** Password for authentication (Neo4j) */
|
|
324
|
-
password?: string;
|
|
325
|
-
}
|
|
326
|
-
/**
|
|
327
|
-
* Supported graph database types
|
|
328
|
-
*/
|
|
329
|
-
export declare enum GraphTypes {
|
|
330
|
-
NEO4J = "neo4j",
|
|
331
|
-
NEPTUNE = "neptune",
|
|
332
|
-
ARANGODB = "arangodb",
|
|
333
|
-
MEMGRAPH = "memgraph"
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* Graph action parameter definition
|
|
337
|
-
*/
|
|
338
|
-
export interface IProductGraphActionParameter {
|
|
339
|
-
name: string;
|
|
340
|
-
path: string;
|
|
341
|
-
defaultValue: any;
|
|
342
|
-
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
343
|
-
description?: string;
|
|
344
|
-
required?: boolean;
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
* Graph action definition (saved parameterized query)
|
|
348
|
-
*/
|
|
349
|
-
export interface IProductGraphAction {
|
|
350
|
-
id: string;
|
|
351
|
-
tag: string;
|
|
352
|
-
name: string;
|
|
353
|
-
description?: string;
|
|
354
|
-
operation: string;
|
|
355
|
-
query: Record<string, any>;
|
|
356
|
-
parameters: IProductGraphActionParameter[];
|
|
357
|
-
createdAt: string;
|
|
358
|
-
updatedAt?: string;
|
|
359
|
-
graphTag?: string;
|
|
360
|
-
}
|
|
361
|
-
/**
|
|
362
|
-
* Product graph database configuration
|
|
363
|
-
*/
|
|
364
|
-
export interface IProductGraph {
|
|
365
|
-
_id?: string;
|
|
366
|
-
name: string;
|
|
367
|
-
description?: string;
|
|
368
|
-
tag: string;
|
|
369
|
-
envs: IProductGraphEnvs[];
|
|
370
|
-
type: GraphTypes;
|
|
371
|
-
/** Saved graph actions (parameterized queries) */
|
|
372
|
-
actions?: IProductGraphAction[];
|
|
373
|
-
}
|
|
374
|
-
export declare enum DatabaseActionTypes {
|
|
375
|
-
READ = "read",
|
|
376
|
-
COUNT = "count",
|
|
377
|
-
CREATE = "create",
|
|
378
|
-
UPDATE = "update",
|
|
379
|
-
DELETE = "delete",
|
|
380
|
-
AGGREGATE = "aggregate"
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* Supported vector database types
|
|
384
|
-
*/
|
|
385
|
-
export declare enum VectorDBTypes {
|
|
386
|
-
PINECONE = "pinecone",
|
|
387
|
-
QDRANT = "qdrant",
|
|
388
|
-
WEAVIATE = "weaviate",
|
|
389
|
-
CHROMA = "chroma",
|
|
390
|
-
MILVUS = "milvus",
|
|
391
|
-
PGVECTOR = "pgvector",
|
|
392
|
-
MEMORY = "memory"
|
|
393
|
-
}
|
|
394
|
-
/**
|
|
395
|
-
* Distance metrics for vector similarity
|
|
396
|
-
*/
|
|
397
|
-
export declare enum VectorDistanceMetrics {
|
|
398
|
-
COSINE = "cosine",
|
|
399
|
-
EUCLIDEAN = "euclidean",
|
|
400
|
-
DOT_PRODUCT = "dotproduct"
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
* Vector database environment configuration
|
|
404
|
-
*/
|
|
405
|
-
export interface IProductVectorEnvs {
|
|
406
|
-
/** Environment slug (e.g., 'dev', 'stg', 'prd') */
|
|
407
|
-
slug: string;
|
|
408
|
-
/** API endpoint URL */
|
|
409
|
-
endpoint?: string;
|
|
410
|
-
/** API key (encrypted) */
|
|
411
|
-
apiKey?: string;
|
|
412
|
-
/** Cloud region */
|
|
413
|
-
region?: string;
|
|
414
|
-
/** Index/collection name */
|
|
415
|
-
index?: string;
|
|
416
|
-
/** Default namespace */
|
|
417
|
-
namespace?: string;
|
|
418
|
-
/** Whether this env is active */
|
|
419
|
-
active?: boolean;
|
|
420
|
-
/** Description */
|
|
421
|
-
description?: string;
|
|
422
|
-
}
|
|
423
|
-
/**
|
|
424
|
-
* Product vector database configuration
|
|
425
|
-
*/
|
|
426
|
-
export interface IProductVector {
|
|
427
|
-
_id?: string;
|
|
428
|
-
/** Display name */
|
|
429
|
-
name: string;
|
|
430
|
-
/** Unique tag identifier */
|
|
431
|
-
tag: string;
|
|
432
|
-
/** Description */
|
|
433
|
-
description?: string;
|
|
434
|
-
/** Vector database type */
|
|
435
|
-
type: VectorDBTypes;
|
|
436
|
-
/** Vector dimensions */
|
|
437
|
-
dimensions: number;
|
|
438
|
-
/** Distance metric for similarity */
|
|
439
|
-
metric?: VectorDistanceMetrics;
|
|
440
|
-
/** Environment configurations */
|
|
441
|
-
envs: IProductVectorEnvs[];
|
|
442
|
-
/** Saved vector actions */
|
|
443
|
-
actions?: IProductVectorAction[];
|
|
444
|
-
/** Created timestamp */
|
|
445
|
-
created_at?: Date;
|
|
446
|
-
/** Updated timestamp */
|
|
447
|
-
updated_at?: Date;
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* Supported LLM providers
|
|
451
|
-
*/
|
|
452
|
-
export type LLMProvider = 'anthropic' | 'openai' | 'google' | 'cohere' | 'custom';
|
|
453
|
-
/**
|
|
454
|
-
* LLM model environment configuration
|
|
455
|
-
*/
|
|
456
|
-
export interface IProductLLMModelEnv {
|
|
457
|
-
/** Environment slug (e.g., 'dev', 'stg', 'prd') */
|
|
458
|
-
slug: string;
|
|
459
|
-
/** API key (encrypted with product private_key) */
|
|
460
|
-
apiKey?: string;
|
|
461
|
-
/** API base URL override for this environment */
|
|
462
|
-
baseUrl?: string;
|
|
463
|
-
/** Whether this env is active */
|
|
464
|
-
active?: boolean;
|
|
465
|
-
/** Description */
|
|
466
|
-
description?: string;
|
|
467
|
-
}
|
|
468
|
-
/**
|
|
469
|
-
* Product LLM model configuration
|
|
470
|
-
* Reusable model configurations that can be referenced by agents
|
|
471
|
-
*/
|
|
472
|
-
export interface IProductLLMModel {
|
|
473
|
-
_id?: string;
|
|
474
|
-
/** Unique tag identifier */
|
|
475
|
-
tag: string;
|
|
476
|
-
/** Display name */
|
|
477
|
-
name: string;
|
|
478
|
-
/** Description */
|
|
479
|
-
description?: string;
|
|
480
|
-
/** LLM provider */
|
|
481
|
-
provider: LLMProvider;
|
|
482
|
-
/** Model identifier (e.g., 'claude-sonnet-4-20250514', 'gpt-4-turbo') */
|
|
483
|
-
model: string;
|
|
484
|
-
/** Default sampling temperature (0-2) */
|
|
485
|
-
temperature?: number;
|
|
486
|
-
/** Default maximum tokens to generate */
|
|
487
|
-
maxTokens?: number;
|
|
488
|
-
/** Default top-p sampling */
|
|
489
|
-
topP?: number;
|
|
490
|
-
/** Default stop sequences */
|
|
491
|
-
stopSequences?: string[];
|
|
492
|
-
/** Default request timeout in ms */
|
|
493
|
-
timeout?: number;
|
|
494
|
-
/** Environment configurations with API keys */
|
|
495
|
-
envs: IProductLLMModelEnv[];
|
|
496
|
-
/** Created timestamp */
|
|
497
|
-
created_at?: Date;
|
|
498
|
-
/** Updated timestamp */
|
|
499
|
-
updated_at?: Date;
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* Supported LLM providers for agents
|
|
503
|
-
* @deprecated Use LLMProvider instead
|
|
504
|
-
*/
|
|
505
|
-
export type AgentLLMProvider = 'anthropic' | 'openai' | 'google' | 'cohere' | 'custom';
|
|
506
|
-
/**
|
|
507
|
-
* Tool parameter types
|
|
508
|
-
*/
|
|
509
|
-
export type AgentToolParamType = 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
510
|
-
/**
|
|
511
|
-
* Tool parameter definition (JSON-serializable)
|
|
512
|
-
*/
|
|
513
|
-
export interface IAgentToolParam {
|
|
514
|
-
/** Parameter type */
|
|
515
|
-
type: AgentToolParamType;
|
|
516
|
-
/** Description for LLM */
|
|
517
|
-
description: string;
|
|
518
|
-
/** Whether parameter is required */
|
|
519
|
-
required?: boolean;
|
|
520
|
-
/** Enum values for constrained inputs */
|
|
521
|
-
enum?: string[];
|
|
522
|
-
/** Default value */
|
|
523
|
-
default?: unknown;
|
|
524
|
-
/** For array types, the item type */
|
|
525
|
-
items?: IAgentToolParam;
|
|
526
|
-
/** For object types, nested properties */
|
|
527
|
-
properties?: Record<string, IAgentToolParam>;
|
|
528
|
-
}
|
|
529
|
-
/**
|
|
530
|
-
* Agent tool schema (without handler - JSON-serializable for storage)
|
|
531
|
-
*/
|
|
532
|
-
export interface IProductAgentToolSchema {
|
|
533
|
-
/** Unique tool identifier */
|
|
534
|
-
tag: string;
|
|
535
|
-
/** Human-readable name */
|
|
536
|
-
name?: string;
|
|
537
|
-
/** Description for LLM to understand when to use this tool */
|
|
538
|
-
description: string;
|
|
539
|
-
/** Input parameter schema */
|
|
540
|
-
parameters: Record<string, IAgentToolParam>;
|
|
541
|
-
/** Whether this tool requires human confirmation before execution */
|
|
542
|
-
requiresConfirmation?: boolean;
|
|
543
|
-
/** Estimated cost for quota tracking */
|
|
544
|
-
costEstimate?: number;
|
|
545
|
-
/** Timeout for this tool in ms */
|
|
546
|
-
timeout?: number;
|
|
547
|
-
/** Number of retries on failure */
|
|
548
|
-
retries?: number;
|
|
549
|
-
/**
|
|
550
|
-
* Handler reference - maps to a Ductape component for portable execution
|
|
551
|
-
* Format: "type:tag:event" (e.g., "action:payment-app:process-payment")
|
|
552
|
-
*/
|
|
553
|
-
handlerRef?: string;
|
|
554
|
-
/** Tool-level resilience configuration */
|
|
555
|
-
resilience?: IProductAgentToolResilienceConfig;
|
|
556
|
-
}
|
|
557
|
-
/**
|
|
558
|
-
* LLM model configuration for agents
|
|
559
|
-
*/
|
|
560
|
-
export interface IProductAgentLLMConfig {
|
|
561
|
-
/** LLM provider */
|
|
562
|
-
provider: AgentLLMProvider;
|
|
563
|
-
/** Model identifier (e.g., 'claude-sonnet-4-20250514', 'gpt-4') */
|
|
564
|
-
model: string;
|
|
565
|
-
/** Sampling temperature (0-1) */
|
|
566
|
-
temperature?: number;
|
|
567
|
-
/** Maximum tokens to generate */
|
|
568
|
-
maxTokens?: number;
|
|
569
|
-
/** Top-p sampling */
|
|
570
|
-
topP?: number;
|
|
571
|
-
/** Stop sequences */
|
|
572
|
-
stopSequences?: string[];
|
|
573
|
-
/** API key reference (secret name, not actual key) */
|
|
574
|
-
apiKeyRef?: string;
|
|
575
|
-
/** API base URL for custom providers */
|
|
576
|
-
baseUrl?: string;
|
|
577
|
-
/** Request timeout in ms */
|
|
578
|
-
timeout?: number;
|
|
579
|
-
}
|
|
580
|
-
/**
|
|
581
|
-
* Model configuration overrides
|
|
582
|
-
* Applied at agent/env level to override settings from the model entity
|
|
583
|
-
*/
|
|
584
|
-
export interface IProductAgentModelConfigOverrides {
|
|
585
|
-
/** Override temperature */
|
|
586
|
-
temperature?: number;
|
|
587
|
-
/** Override max tokens */
|
|
588
|
-
maxTokens?: number;
|
|
589
|
-
/** Override top-p sampling */
|
|
590
|
-
topP?: number;
|
|
591
|
-
/** Override stop sequences */
|
|
592
|
-
stopSequences?: string[];
|
|
593
|
-
/** Override timeout in ms */
|
|
594
|
-
timeout?: number;
|
|
595
|
-
}
|
|
596
|
-
/**
|
|
597
|
-
* Short-term memory configuration
|
|
598
|
-
*/
|
|
599
|
-
export interface IProductAgentShortTermMemory {
|
|
600
|
-
/** Maximum messages to keep in context */
|
|
601
|
-
maxMessages?: number;
|
|
602
|
-
/** Summarize conversation after this many messages */
|
|
603
|
-
summarizeAfter?: number;
|
|
604
|
-
/** Include tool call results in context */
|
|
605
|
-
includeToolResults?: boolean;
|
|
606
|
-
/** Strategy for truncation */
|
|
607
|
-
truncationStrategy?: 'fifo' | 'sliding_window' | 'summarize';
|
|
608
|
-
}
|
|
609
|
-
/**
|
|
610
|
-
* Long-term memory configuration
|
|
611
|
-
*/
|
|
612
|
-
export interface IProductAgentLongTermMemory {
|
|
613
|
-
/** Enable long-term memory */
|
|
614
|
-
enabled: boolean;
|
|
615
|
-
/** Vector store tag for retrieval */
|
|
616
|
-
vectorStore?: string;
|
|
617
|
-
/** Number of results to retrieve */
|
|
618
|
-
retrieveTopK?: number;
|
|
619
|
-
/** Minimum similarity threshold */
|
|
620
|
-
minSimilarity?: number;
|
|
621
|
-
/** Automatically store new learnings */
|
|
622
|
-
autoStore?: boolean;
|
|
623
|
-
/** Namespace for memory isolation */
|
|
624
|
-
namespace?: string;
|
|
625
|
-
}
|
|
626
|
-
/**
|
|
627
|
-
* Agent memory configuration
|
|
628
|
-
*/
|
|
629
|
-
export interface IProductAgentMemoryConfig {
|
|
630
|
-
/** Short-term (conversation) memory */
|
|
631
|
-
shortTerm?: IProductAgentShortTermMemory;
|
|
632
|
-
/** Long-term (persistent) memory */
|
|
633
|
-
longTerm?: IProductAgentLongTermMemory;
|
|
634
|
-
}
|
|
635
|
-
/**
|
|
636
|
-
* Agent termination configuration
|
|
637
|
-
*/
|
|
638
|
-
export interface IProductAgentTerminationConfig {
|
|
639
|
-
/** Maximum number of agent loop iterations */
|
|
640
|
-
maxIterations?: number;
|
|
641
|
-
/** Maximum total tokens to use */
|
|
642
|
-
maxTokens?: number;
|
|
643
|
-
/** Timeout duration in ms */
|
|
644
|
-
timeout?: number;
|
|
645
|
-
/** Allow manual termination via signal */
|
|
646
|
-
allowManualStop?: boolean;
|
|
647
|
-
}
|
|
648
|
-
/**
|
|
649
|
-
* Human-in-the-loop configuration
|
|
650
|
-
*/
|
|
651
|
-
export interface IProductAgentHumanInLoopConfig {
|
|
652
|
-
/** Enable human-in-the-loop */
|
|
653
|
-
enabled: boolean;
|
|
654
|
-
/** Tools that always require approval */
|
|
655
|
-
alwaysRequireApproval?: string[];
|
|
656
|
-
/** Default timeout for approval requests in ms */
|
|
657
|
-
approvalTimeout?: number;
|
|
658
|
-
/** Webhook to call for approvals */
|
|
659
|
-
approvalWebhook?: string;
|
|
660
|
-
/** Broker topic to publish approval requests */
|
|
661
|
-
approvalBroker?: {
|
|
662
|
-
broker: string;
|
|
663
|
-
event: string;
|
|
664
|
-
};
|
|
665
|
-
}
|
|
666
|
-
/**
|
|
667
|
-
* Agent streaming configuration
|
|
668
|
-
*/
|
|
669
|
-
export interface IProductAgentStreamConfig {
|
|
670
|
-
/** Enable streaming */
|
|
671
|
-
enabled: boolean;
|
|
672
|
-
/** Events to stream */
|
|
673
|
-
events?: string[];
|
|
674
|
-
/** Webhook to send events to */
|
|
675
|
-
webhook?: string;
|
|
676
|
-
/** Broker to publish events to */
|
|
677
|
-
broker?: {
|
|
678
|
-
broker: string;
|
|
679
|
-
event: string;
|
|
680
|
-
};
|
|
681
|
-
}
|
|
682
|
-
/**
|
|
683
|
-
* Environment-specific agent configuration
|
|
684
|
-
*/
|
|
685
|
-
export interface IProductAgentEnvConfig {
|
|
686
|
-
/** Environment slug */
|
|
687
|
-
slug: string;
|
|
688
|
-
/** Whether active in this env */
|
|
689
|
-
active?: boolean;
|
|
690
|
-
/** Environment-specific model tag override */
|
|
691
|
-
model?: string;
|
|
692
|
-
/** Environment-specific model config overrides */
|
|
693
|
-
modelConfig?: IProductAgentModelConfigOverrides;
|
|
694
|
-
/** Environment-specific tool overrides */
|
|
695
|
-
toolOverrides?: Record<string, Partial<IProductAgentToolSchema>>;
|
|
696
|
-
}
|
|
697
|
-
/**
|
|
698
|
-
* Tool-level resilience configuration
|
|
699
|
-
* References existing product-level healthchecks, quotas, and fallbacks by tag
|
|
700
|
-
*/
|
|
701
|
-
export interface IProductAgentToolResilienceConfig {
|
|
702
|
-
/** Tag of an existing quota to use for this tool */
|
|
703
|
-
quota?: string;
|
|
704
|
-
/** Tag of an existing fallback to use for this tool */
|
|
705
|
-
fallback?: string;
|
|
706
|
-
/** Tag of an existing healthcheck to verify before execution */
|
|
707
|
-
healthcheck?: string;
|
|
708
|
-
}
|
|
709
|
-
/**
|
|
710
|
-
* Agent-level resilience configuration
|
|
711
|
-
* References existing product-level healthchecks, quotas, and fallbacks
|
|
712
|
-
*
|
|
713
|
-
* Note: Healthchecks, quotas, and fallbacks must be defined at the product level
|
|
714
|
-
* (in product.healthchecks, product.quota, product.fallback arrays).
|
|
715
|
-
* Agents can only reference existing configurations by tag.
|
|
716
|
-
*/
|
|
717
|
-
export interface IProductAgentResilienceConfig {
|
|
718
|
-
/** Default resilience settings applied to all tools */
|
|
719
|
-
defaults?: {
|
|
720
|
-
/** Tag of an existing quota to use by default */
|
|
721
|
-
quota?: string;
|
|
722
|
-
/** Tag of an existing fallback to use by default */
|
|
723
|
-
fallback?: string;
|
|
724
|
-
/** Tag of an existing healthcheck to verify before tool execution */
|
|
725
|
-
healthcheck?: string;
|
|
726
|
-
};
|
|
727
|
-
/** Tool-specific resilience overrides (keyed by tool tag) */
|
|
728
|
-
toolOverrides?: Record<string, IProductAgentToolResilienceConfig>;
|
|
729
|
-
}
|
|
730
|
-
/**
|
|
731
|
-
* Product agent configuration (stored in database)
|
|
732
|
-
*/
|
|
733
|
-
export interface IProductAgent {
|
|
734
|
-
_id?: string;
|
|
735
|
-
/** Unique agent tag */
|
|
736
|
-
tag: string;
|
|
737
|
-
/** Human-readable name */
|
|
738
|
-
name: string;
|
|
739
|
-
/** Agent description */
|
|
740
|
-
description?: string;
|
|
741
|
-
/**
|
|
742
|
-
* Model tag referencing a model configuration defined at the product level.
|
|
743
|
-
* Model configurations are managed via product.createModel() or the Ductape dashboard.
|
|
744
|
-
*/
|
|
745
|
-
model: string;
|
|
746
|
-
/** Agent-level model config overrides */
|
|
747
|
-
modelConfig?: IProductAgentModelConfigOverrides;
|
|
748
|
-
/** System prompt defining agent behavior */
|
|
749
|
-
systemPrompt: string;
|
|
750
|
-
/** Tool schemas (without handlers for storage) */
|
|
751
|
-
tools: IProductAgentToolSchema[];
|
|
752
|
-
/** Termination configuration */
|
|
753
|
-
termination?: IProductAgentTerminationConfig;
|
|
754
|
-
/** Memory configuration */
|
|
755
|
-
memory?: IProductAgentMemoryConfig;
|
|
756
|
-
/** Human-in-the-loop configuration */
|
|
757
|
-
humanInLoop?: IProductAgentHumanInLoopConfig;
|
|
758
|
-
/** Streaming configuration */
|
|
759
|
-
streaming?: IProductAgentStreamConfig;
|
|
760
|
-
/** Input schema validation */
|
|
761
|
-
inputSchema?: Record<string, IAgentToolParam>;
|
|
762
|
-
/** Environment configurations */
|
|
763
|
-
envs?: IProductAgentEnvConfig[];
|
|
764
|
-
/** Resilience configuration (healthchecks, quotas, fallbacks) */
|
|
765
|
-
resilience?: IProductAgentResilienceConfig;
|
|
766
|
-
/** Created timestamp */
|
|
767
|
-
created_at?: Date;
|
|
768
|
-
/** Updated timestamp */
|
|
769
|
-
updated_at?: Date;
|
|
770
|
-
}
|
|
771
|
-
export interface IProductDatabaseAction {
|
|
772
|
-
_id?: string;
|
|
773
|
-
name: string;
|
|
774
|
-
description?: string;
|
|
775
|
-
tag: string;
|
|
776
|
-
tableName: string;
|
|
777
|
-
type: DatabaseActionTypes;
|
|
778
|
-
data?: IParsedSample[];
|
|
779
|
-
template: string | object;
|
|
780
|
-
filterData?: IParsedSample[];
|
|
781
|
-
filterTemplate?: string | object;
|
|
782
|
-
}
|
|
783
|
-
/**
|
|
784
|
-
* Vector action operation types
|
|
785
|
-
*/
|
|
786
|
-
export declare enum VectorActionTypes {
|
|
787
|
-
/** Query/search vectors by similarity */
|
|
788
|
-
QUERY = "query",
|
|
789
|
-
/** Find similar vectors by ID */
|
|
790
|
-
FIND_SIMILAR = "find_similar",
|
|
791
|
-
/** Upsert vectors */
|
|
792
|
-
UPSERT = "upsert",
|
|
793
|
-
/** Upsert single vector */
|
|
794
|
-
UPSERT_ONE = "upsert_one",
|
|
795
|
-
/** Fetch vectors by IDs */
|
|
796
|
-
FETCH = "fetch",
|
|
797
|
-
/** Fetch single vector */
|
|
798
|
-
FETCH_ONE = "fetch_one",
|
|
799
|
-
/** List vectors in namespace */
|
|
800
|
-
LIST = "list",
|
|
801
|
-
/** Count vectors */
|
|
802
|
-
COUNT = "count",
|
|
803
|
-
/** Check if vector exists */
|
|
804
|
-
EXISTS = "exists",
|
|
805
|
-
/** Update vector metadata */
|
|
806
|
-
UPDATE = "update",
|
|
807
|
-
/** Delete vectors by IDs */
|
|
808
|
-
DELETE_BY_IDS = "delete_by_ids",
|
|
809
|
-
/** Delete vectors by filter */
|
|
810
|
-
DELETE_BY_FILTER = "delete_by_filter",
|
|
811
|
-
/** Delete all vectors in namespace */
|
|
812
|
-
DELETE_ALL = "delete_all",
|
|
813
|
-
/** List namespaces */
|
|
814
|
-
LIST_NAMESPACES = "list_namespaces",
|
|
815
|
-
/** Get index stats */
|
|
816
|
-
GET_STATS = "get_stats",
|
|
817
|
-
/** Describe index */
|
|
818
|
-
DESCRIBE_INDEX = "describe_index"
|
|
819
|
-
}
|
|
820
|
-
/**
|
|
821
|
-
* Vector action parameter definition
|
|
822
|
-
*/
|
|
823
|
-
export interface IVectorActionParameter {
|
|
824
|
-
/** Parameter name */
|
|
825
|
-
name: string;
|
|
826
|
-
/** JSON path in template where parameter is used */
|
|
827
|
-
path: string;
|
|
828
|
-
/** Default value */
|
|
829
|
-
defaultValue?: any;
|
|
830
|
-
/** Parameter type */
|
|
831
|
-
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
832
|
-
/** Whether parameter is required */
|
|
833
|
-
required?: boolean;
|
|
834
|
-
/** Description */
|
|
835
|
-
description?: string;
|
|
836
|
-
}
|
|
837
|
-
/**
|
|
838
|
-
* Product vector action definition
|
|
839
|
-
*/
|
|
840
|
-
export interface IProductVectorAction {
|
|
841
|
-
_id?: string;
|
|
842
|
-
/** Action name */
|
|
843
|
-
name: string;
|
|
844
|
-
/** Unique action tag (format: vector_tag:action_tag) */
|
|
845
|
-
tag: string;
|
|
846
|
-
/** Description */
|
|
847
|
-
description?: string;
|
|
848
|
-
/** Operation type */
|
|
849
|
-
type: VectorActionTypes;
|
|
850
|
-
/** Query template with placeholders ({{paramName}}) */
|
|
851
|
-
template: {
|
|
852
|
-
/** Operation-specific options */
|
|
853
|
-
options: Record<string, any>;
|
|
854
|
-
};
|
|
855
|
-
/** Parameterizable values extracted from template */
|
|
856
|
-
parameters: IVectorActionParameter[];
|
|
857
|
-
/** Created timestamp */
|
|
858
|
-
created_at?: Date;
|
|
859
|
-
/** Updated timestamp */
|
|
860
|
-
updated_at?: Date;
|
|
861
|
-
}
|
|
862
|
-
export interface IFunctionInput {
|
|
863
|
-
key: string;
|
|
864
|
-
type: DataTypes;
|
|
865
|
-
default?: string;
|
|
866
|
-
}
|
|
867
|
-
export declare enum FunctionInputType {
|
|
868
|
-
QUERY = "query",
|
|
869
|
-
BODY = "body"
|
|
870
|
-
}
|
|
871
|
-
export interface IProductFunction {
|
|
872
|
-
_id?: string;
|
|
873
|
-
name: string;
|
|
874
|
-
tag: string;
|
|
875
|
-
description: string;
|
|
876
|
-
method: HttpMethods;
|
|
877
|
-
envs: [
|
|
878
|
-
{
|
|
879
|
-
slug: string;
|
|
880
|
-
url: string;
|
|
881
|
-
auth: IActionRequest;
|
|
882
|
-
}
|
|
883
|
-
];
|
|
884
|
-
sample: IActionRequest;
|
|
885
|
-
sample_data?: IParsedSample[];
|
|
886
|
-
response: Record<string, unknown>;
|
|
887
|
-
response_data?: IParsedSample[];
|
|
888
|
-
}
|
|
889
|
-
export declare enum JobEventTypes {
|
|
890
|
-
ACTION = "action",
|
|
891
|
-
NOTIFICATION = "notification",
|
|
892
|
-
DATABASE_ACTION = "database_action",
|
|
893
|
-
DATABASE_OPERATION = "database_operation",
|
|
894
|
-
GRAPH_ACTION = "graph_action",
|
|
895
|
-
GRAPH_OPERATION = "graph_operation",
|
|
896
|
-
WORKFLOW = "workflow",
|
|
897
|
-
STORAGE = "storage",
|
|
898
|
-
PUBLISH = "publish",
|
|
899
|
-
FALLBACK = "fallback",
|
|
900
|
-
QUOTA = "quota"
|
|
901
|
-
}
|
|
902
|
-
export interface IProductJobs {
|
|
903
|
-
_id?: string;
|
|
904
|
-
tag: string;
|
|
905
|
-
name: string;
|
|
906
|
-
description: string;
|
|
907
|
-
type: JobEventTypes;
|
|
908
|
-
app: string;
|
|
909
|
-
event: string;
|
|
910
|
-
executions: number;
|
|
911
|
-
intervals: number;
|
|
912
|
-
start_at: number;
|
|
913
|
-
}
|
|
914
|
-
export interface IProcessProductPayload {
|
|
915
|
-
component: ProductComponents;
|
|
916
|
-
database_tag?: string;
|
|
917
|
-
tag: string;
|
|
918
|
-
slug?: string;
|
|
919
|
-
database_env_slug?: string;
|
|
920
|
-
destinationPath?: string;
|
|
921
|
-
input?: {
|
|
922
|
-
filter?: Record<string, unknown>;
|
|
923
|
-
data?: Record<string, unknown>;
|
|
924
|
-
blob?: Blob;
|
|
925
|
-
mimeType?: string;
|
|
926
|
-
};
|
|
927
|
-
}
|
|
928
|
-
export interface IAccess {
|
|
929
|
-
public_key?: string;
|
|
930
|
-
user_id?: string;
|
|
931
|
-
token?: string;
|
|
932
|
-
workspace_id: string;
|
|
933
|
-
product_id?: string;
|
|
934
|
-
version: string;
|
|
935
|
-
app_id: string;
|
|
936
|
-
access_tag: string;
|
|
937
|
-
access: boolean;
|
|
938
|
-
}
|
|
939
|
-
export interface IRetryMeta {
|
|
940
|
-
request_base_url: string;
|
|
941
|
-
resource: string;
|
|
942
|
-
method: HttpMethods;
|
|
943
|
-
env: IAppEnv;
|
|
944
|
-
payloads: any;
|
|
945
|
-
app_id: string;
|
|
946
|
-
}
|
|
947
|
-
export interface INotificationRequest extends IRequest {
|
|
948
|
-
push_notification?: {
|
|
949
|
-
title?: Record<string, unknown>;
|
|
950
|
-
body?: Record<string, unknown>;
|
|
951
|
-
data?: Record<string, unknown>;
|
|
952
|
-
device_tokens: Array<string>;
|
|
953
|
-
};
|
|
954
|
-
email?: {
|
|
955
|
-
recipients: Array<string>;
|
|
956
|
-
subject: Record<string, unknown>;
|
|
957
|
-
template: Record<string, unknown>;
|
|
958
|
-
};
|
|
959
|
-
callback?: {
|
|
960
|
-
query: Record<string, unknown>;
|
|
961
|
-
params: Record<string, unknown>;
|
|
962
|
-
body: Record<string, unknown>;
|
|
963
|
-
headers: Record<string, unknown>;
|
|
964
|
-
};
|
|
965
|
-
sms?: {
|
|
966
|
-
body: Record<string, unknown>;
|
|
967
|
-
recipients: Array<string>;
|
|
968
|
-
};
|
|
969
|
-
slack?: {
|
|
970
|
-
text?: string;
|
|
971
|
-
channel?: string;
|
|
972
|
-
blocks?: Record<string, unknown>[];
|
|
973
|
-
};
|
|
974
|
-
discord?: {
|
|
975
|
-
content?: string;
|
|
976
|
-
embeds?: Record<string, unknown>[];
|
|
977
|
-
};
|
|
978
|
-
}
|
|
979
|
-
export interface IFunctionRequest extends IRequest {
|
|
980
|
-
payload: Record<string, any>;
|
|
981
|
-
}
|
|
982
|
-
export interface IDbActionRequest extends IRequest {
|
|
983
|
-
data: Record<string, unknown>;
|
|
984
|
-
filter?: Record<string, unknown>;
|
|
985
|
-
}
|
|
986
|
-
export interface IFunctionRequest extends IRequest {
|
|
987
|
-
data: Record<string, unknown>;
|
|
988
|
-
}
|
|
989
|
-
export declare const ValidOperators: string[];
|
|
990
|
-
export interface IFeatureEvent {
|
|
991
|
-
product_id?: string;
|
|
992
|
-
condition?: IFeatureConditional;
|
|
993
|
-
auth?: string;
|
|
994
|
-
app?: string;
|
|
995
|
-
type: Exclude<FeatureEventTypes, FeatureEventTypes.QUOTA | FeatureEventTypes.FALLBACK>;
|
|
996
|
-
event: string;
|
|
997
|
-
input: Partial<IActionRequest | INotificationRequest | IDbActionRequest | IFunctionRequest | IStorageRequest | IPublishRequest | {
|
|
998
|
-
buffer: string;
|
|
999
|
-
}>;
|
|
1000
|
-
retries: number;
|
|
1001
|
-
allow_fail: boolean;
|
|
1002
|
-
sequence_level?: number;
|
|
1003
|
-
sequence_tag?: string;
|
|
1004
|
-
env?: IProductEnv;
|
|
1005
|
-
return?: boolean;
|
|
1006
|
-
cache?: string;
|
|
1007
|
-
skipCacheFetch?: boolean;
|
|
1008
|
-
start_at?: number;
|
|
1009
|
-
hasProduct?: boolean;
|
|
1010
|
-
}
|
|
1011
|
-
export declare enum Conditions {
|
|
1012
|
-
LOOP = "loop",
|
|
1013
|
-
CHECK = "check"
|
|
1014
|
-
}
|
|
1015
|
-
export interface IFeatureConditional {
|
|
1016
|
-
type: Conditions;
|
|
1017
|
-
check: string;
|
|
1018
|
-
iter?: number;
|
|
1019
|
-
init?: number;
|
|
1020
|
-
}
|
|
1021
|
-
export interface IBaseActionDataParserInput {
|
|
1022
|
-
sample: ISample;
|
|
1023
|
-
event_index: number;
|
|
1024
|
-
sequence_index: number;
|
|
1025
|
-
feature: Partial<IProductFeature>;
|
|
1026
|
-
type: Categories;
|
|
1027
|
-
indexes: IParsedIndexes;
|
|
1028
|
-
}
|
|
1029
|
-
export interface IActionDataParserInput extends IBaseActionDataParserInput {
|
|
1030
|
-
obj: any;
|
|
1031
|
-
}
|
|
1032
|
-
export interface IParseActionEventInput extends IBaseActionDataParserInput {
|
|
1033
|
-
key: string;
|
|
1034
|
-
value: any;
|
|
1035
|
-
}
|
|
1036
|
-
export interface IParseInputStringInput {
|
|
1037
|
-
datapoint: IParsedSample;
|
|
1038
|
-
value: string;
|
|
1039
|
-
input: Record<string, unknown>;
|
|
1040
|
-
stages: Array<string | number>;
|
|
1041
|
-
}
|
|
1042
|
-
export interface IParseInputStringMetaData {
|
|
1043
|
-
feature?: Partial<IProductFeature>;
|
|
1044
|
-
sequence_index?: number;
|
|
1045
|
-
event_index?: number;
|
|
1046
|
-
type?: Categories;
|
|
1047
|
-
compare?: boolean;
|
|
1048
|
-
}
|
|
1049
|
-
export interface IRequest {
|
|
1050
|
-
}
|
|
1051
|
-
export interface IActionRequest {
|
|
1052
|
-
query?: Record<string, unknown>;
|
|
1053
|
-
params?: Record<string, unknown>;
|
|
1054
|
-
body?: Record<string, unknown>;
|
|
1055
|
-
headers?: Record<string, unknown>;
|
|
1056
|
-
input?: Record<string, unknown>;
|
|
1057
|
-
}
|
|
1058
|
-
export interface IActionSamples {
|
|
1059
|
-
query?: Array<IParsedSample>;
|
|
1060
|
-
params?: Array<IParsedSample>;
|
|
1061
|
-
body?: Array<IParsedSample>;
|
|
1062
|
-
headers?: Array<IParsedSample>;
|
|
1063
|
-
}
|
|
1064
|
-
export interface IProductQuota {
|
|
1065
|
-
_id: string;
|
|
1066
|
-
name: string;
|
|
1067
|
-
description: string;
|
|
1068
|
-
tag: string;
|
|
1069
|
-
input: Record<string, IFeatureInput>;
|
|
1070
|
-
total_quota?: number;
|
|
1071
|
-
total_init?: number;
|
|
1072
|
-
options: Array<IQuotaOptions>;
|
|
1073
|
-
}
|
|
1074
|
-
export interface IQuotaOptions extends IFallbackOptions {
|
|
1075
|
-
quota: number;
|
|
1076
|
-
uses?: number;
|
|
1077
|
-
}
|
|
1078
|
-
/**
|
|
1079
|
-
* Fallback options configuration
|
|
1080
|
-
* Note: Features are deprecated - use workflows instead
|
|
1081
|
-
*/
|
|
1082
|
-
export interface IFallbackOptions {
|
|
1083
|
-
app?: string;
|
|
1084
|
-
type: FeatureEventTypes.ACTION;
|
|
1085
|
-
event: string;
|
|
1086
|
-
input: IActionRequest | Record<string, unknown>;
|
|
1087
|
-
output: Record<string, unknown>;
|
|
1088
|
-
retries: number;
|
|
1089
|
-
healthcheck?: string;
|
|
1090
|
-
provider_status?: ProviderStatus;
|
|
1091
|
-
last_available?: boolean;
|
|
1092
|
-
last_checked?: Date;
|
|
1093
|
-
check_interval?: number;
|
|
1094
|
-
}
|
|
1095
|
-
export declare enum ProviderStatus {
|
|
1096
|
-
AVAILABLE = "available",
|
|
1097
|
-
UNAVAILABLE = "unavailable"
|
|
1098
|
-
}
|
|
1099
|
-
export interface IProductFallback {
|
|
1100
|
-
_id: string;
|
|
1101
|
-
name: string;
|
|
1102
|
-
description: string;
|
|
1103
|
-
tag: string;
|
|
1104
|
-
input: Record<string, IFeatureInput>;
|
|
1105
|
-
options: Array<IFallbackOptions>;
|
|
1106
|
-
}
|
|
1107
|
-
export declare enum WorkflowStepType {
|
|
1108
|
-
ACTION = "action",
|
|
1109
|
-
DATABASE_ACTION = "database_action",
|
|
1110
|
-
NOTIFICATION = "notification",
|
|
1111
|
-
STORAGE = "storage",
|
|
1112
|
-
/** @deprecated Use PRODUCE for messaging.produce(); kept for backward compatibility with stored workflows */
|
|
1113
|
-
PUBLISH = "publish",
|
|
1114
|
-
/** Message broker produce (ctx.messaging.produce). Stored as 'produce' in workflow steps. */
|
|
1115
|
-
PRODUCE = "produce",
|
|
1116
|
-
FEATURE = "feature",
|
|
1117
|
-
QUOTA = "quota",
|
|
1118
|
-
FALLBACK = "fallback",
|
|
1119
|
-
GRAPH = "graph",
|
|
1120
|
-
VECTOR = "vector",
|
|
1121
|
-
CHILD_WORKFLOW = "child_workflow",
|
|
1122
|
-
SLEEP = "sleep",
|
|
1123
|
-
WAIT_FOR_SIGNAL = "wait_for_signal",
|
|
1124
|
-
CHECKPOINT = "checkpoint"
|
|
1125
|
-
}
|
|
1126
|
-
export declare enum WorkflowRollbackStrategy {
|
|
1127
|
-
REVERSE_ALL = "reverse_all",
|
|
1128
|
-
REVERSE_CRITICAL = "reverse_critical",
|
|
1129
|
-
COMPENSATE = "compensate",
|
|
1130
|
-
NONE = "none"
|
|
1131
|
-
}
|
|
1132
|
-
export declare enum WorkflowStatus {
|
|
1133
|
-
PENDING = "pending",
|
|
1134
|
-
RUNNING = "running",
|
|
1135
|
-
COMPLETED = "completed",
|
|
1136
|
-
FAILED = "failed",
|
|
1137
|
-
ROLLED_BACK = "rolled_back",
|
|
1138
|
-
ROLLING_BACK = "rolling_back",
|
|
1139
|
-
PAUSED = "paused"
|
|
1140
|
-
}
|
|
1141
|
-
export interface IWorkflowStepRollback {
|
|
1142
|
-
type: WorkflowStepType;
|
|
1143
|
-
app?: string;
|
|
1144
|
-
database?: string;
|
|
1145
|
-
graph?: string;
|
|
1146
|
-
storage?: string;
|
|
1147
|
-
vector?: string;
|
|
1148
|
-
notification?: string;
|
|
1149
|
-
broker?: string;
|
|
1150
|
-
event?: string;
|
|
1151
|
-
input?: Record<string, unknown>;
|
|
1152
|
-
retries?: number;
|
|
1153
|
-
continue_on_failure?: boolean;
|
|
1154
|
-
}
|
|
1155
|
-
export interface IWorkflowStepOptions {
|
|
1156
|
-
timeout?: number;
|
|
1157
|
-
retries?: number;
|
|
1158
|
-
retry_interval?: number;
|
|
1159
|
-
retry_backoff?: 'constant' | 'linear' | 'exponential';
|
|
1160
|
-
optional?: boolean;
|
|
1161
|
-
critical?: boolean;
|
|
1162
|
-
allow_fail?: boolean;
|
|
1163
|
-
rollback_timeout?: number;
|
|
1164
|
-
rollback_retries?: number;
|
|
1165
|
-
continue_on_rollback_failure?: boolean;
|
|
1166
|
-
cache?: string;
|
|
1167
|
-
}
|
|
1168
|
-
export interface IProductWorkflowStep {
|
|
1169
|
-
tag: string;
|
|
1170
|
-
name?: string;
|
|
1171
|
-
type: WorkflowStepType;
|
|
1172
|
-
app?: string;
|
|
1173
|
-
database?: string;
|
|
1174
|
-
graph?: string;
|
|
1175
|
-
storage?: string;
|
|
1176
|
-
vector?: string;
|
|
1177
|
-
notification?: string;
|
|
1178
|
-
broker?: string;
|
|
1179
|
-
quota?: string;
|
|
1180
|
-
fallback?: string;
|
|
1181
|
-
workflow?: string;
|
|
1182
|
-
event: string;
|
|
1183
|
-
input: Record<string, unknown>;
|
|
1184
|
-
/** Step output shape (operator strings), parsed from step handler return value */
|
|
1185
|
-
output?: Record<string, unknown>;
|
|
1186
|
-
depends_on?: string[];
|
|
1187
|
-
condition?: string;
|
|
1188
|
-
options?: IWorkflowStepOptions;
|
|
1189
|
-
rollback?: IWorkflowStepRollback;
|
|
1190
|
-
}
|
|
1191
|
-
export interface IWorkflowSignal {
|
|
1192
|
-
name: string;
|
|
1193
|
-
input?: Record<string, string>;
|
|
1194
|
-
}
|
|
1195
|
-
export interface IWorkflowQuery {
|
|
1196
|
-
name: string;
|
|
1197
|
-
handler?: string;
|
|
1198
|
-
}
|
|
1199
|
-
export interface IWorkflowOptions {
|
|
1200
|
-
timeout?: number;
|
|
1201
|
-
retries?: number;
|
|
1202
|
-
rollback_strategy?: WorkflowRollbackStrategy;
|
|
1203
|
-
idempotency_key?: string;
|
|
1204
|
-
}
|
|
1205
|
-
export interface IWorkflowEnv {
|
|
1206
|
-
slug: string;
|
|
1207
|
-
active?: boolean;
|
|
1208
|
-
}
|
|
1209
|
-
export interface IProductWorkflow {
|
|
1210
|
-
_id?: string;
|
|
1211
|
-
name: string;
|
|
1212
|
-
description?: string;
|
|
1213
|
-
tag: string;
|
|
1214
|
-
input?: Record<string, unknown>;
|
|
1215
|
-
output?: Record<string, unknown>;
|
|
1216
|
-
steps: IProductWorkflowStep[];
|
|
1217
|
-
signals?: Record<string, IWorkflowSignal>;
|
|
1218
|
-
queries?: Record<string, IWorkflowQuery>;
|
|
1219
|
-
options?: IWorkflowOptions;
|
|
1220
|
-
envs?: IWorkflowEnv[];
|
|
1221
|
-
}
|
|
1222
|
-
export declare enum FeatureEventTypes {
|
|
1223
|
-
ACTION = "action",
|
|
1224
|
-
FEATURE = "feature",
|
|
1225
|
-
NOTIFICATION = "notification",
|
|
1226
|
-
DB_ACTION = "database_action",
|
|
1227
|
-
JOB = "job",
|
|
1228
|
-
STORAGE = "storage",
|
|
1229
|
-
PUBLISH = "publish",
|
|
1230
|
-
SUBSCRIBE = "subscribe",
|
|
1231
|
-
QUOTA = "quota",
|
|
1232
|
-
FALLBACK = "fallback"
|
|
1233
|
-
}
|
|
1234
|
-
export declare enum WebhookEventTypes {
|
|
1235
|
-
WEBHOOK_REGISTER = "WEBHOOK_REGISTER"
|
|
1236
|
-
}
|
|
1237
|
-
export declare enum MessageBrokerTypes {
|
|
1238
|
-
RABBITMQ = "rabbitmq",
|
|
1239
|
-
KAFKA = "kafka",
|
|
1240
|
-
AWS_SQS = "aws_sqs",
|
|
1241
|
-
REDIS = "redis",
|
|
1242
|
-
GOOGLE_PUBSUB = "google_pubsub",
|
|
1243
|
-
NATS = "nats"
|
|
1244
|
-
}
|
|
1245
|
-
export declare enum InputDataSources {
|
|
1246
|
-
INPUT = "input",
|
|
1247
|
-
EVENT = "event",
|
|
1248
|
-
AUTH = "auth"
|
|
1249
|
-
}
|
|
1250
|
-
export interface IFeatureSequence {
|
|
1251
|
-
parents?: Array<string>;
|
|
1252
|
-
level?: number;
|
|
1253
|
-
tag: string;
|
|
1254
|
-
events: Array<IFeatureEvent>;
|
|
1255
|
-
}
|
|
1256
|
-
export interface IProductFeature {
|
|
1257
|
-
_id: string;
|
|
1258
|
-
name: string;
|
|
1259
|
-
description: string;
|
|
1260
|
-
input_type: string;
|
|
1261
|
-
store_event_results: boolean;
|
|
1262
|
-
tag: string;
|
|
1263
|
-
input: Record<string, IFeatureInput>;
|
|
1264
|
-
sequence: IFeatureSequence[];
|
|
1265
|
-
output: Record<string, string | Record<string, string | object>>;
|
|
1266
|
-
}
|
|
1267
|
-
export interface IFeatureInput {
|
|
1268
|
-
type: DataTypes | FileType;
|
|
1269
|
-
minlength?: number;
|
|
1270
|
-
maxlength?: number;
|
|
1271
|
-
}
|
|
1272
|
-
export interface IFeatureOutput extends IFeatureInput {
|
|
1273
|
-
}
|
|
1274
|
-
export interface IDependencyMatrix {
|
|
1275
|
-
event_tag: string;
|
|
1276
|
-
sequence_tag: string;
|
|
1277
|
-
}
|
|
1278
|
-
export interface IStorageRequest extends IRequest {
|
|
1279
|
-
buffer: string;
|
|
1280
|
-
fileName: string;
|
|
1281
|
-
mimeType?: string;
|
|
1282
|
-
}
|
|
1283
|
-
export interface RedisConfig {
|
|
1284
|
-
host: string;
|
|
1285
|
-
port: number;
|
|
1286
|
-
password?: string;
|
|
1287
|
-
}
|
|
1288
|
-
export interface GooglePubSubConfig {
|
|
1289
|
-
projectId: string;
|
|
1290
|
-
credentials: {
|
|
1291
|
-
type?: string;
|
|
1292
|
-
project_id?: string;
|
|
1293
|
-
private_key_id?: string;
|
|
1294
|
-
private_key: string;
|
|
1295
|
-
client_email: string;
|
|
1296
|
-
client_id?: string;
|
|
1297
|
-
auth_uri?: string;
|
|
1298
|
-
token_uri?: string;
|
|
1299
|
-
auth_provider_x509_cert_url?: string;
|
|
1300
|
-
client_x509_cert_url?: string;
|
|
1301
|
-
universe_domain?: string;
|
|
1302
|
-
};
|
|
1303
|
-
}
|
|
1304
|
-
export interface RabbitMQConfig {
|
|
1305
|
-
url: string;
|
|
1306
|
-
}
|
|
1307
|
-
export interface KafkaConfig {
|
|
1308
|
-
brokers: string[];
|
|
1309
|
-
clientId: string;
|
|
1310
|
-
groupId?: string;
|
|
1311
|
-
ssl?: boolean;
|
|
1312
|
-
sasl?: {
|
|
1313
|
-
mechanism: 'plain' | 'scram-sha-256' | 'scram-sha-512';
|
|
1314
|
-
username: string;
|
|
1315
|
-
password: string;
|
|
1316
|
-
};
|
|
1317
|
-
}
|
|
1318
|
-
export interface AWSSQSConfig {
|
|
1319
|
-
region: string;
|
|
1320
|
-
accessKeyId: string;
|
|
1321
|
-
secretAccessKey: string;
|
|
1322
|
-
}
|
|
1323
|
-
export interface NatsConfig {
|
|
1324
|
-
servers: string[];
|
|
1325
|
-
token?: string;
|
|
1326
|
-
user?: string;
|
|
1327
|
-
pass?: string;
|
|
1328
|
-
tls?: boolean;
|
|
1329
|
-
}
|
|
1330
|
-
export interface MessageBrokerConfig {
|
|
1331
|
-
redis?: RedisConfig;
|
|
1332
|
-
googlePubSub?: GooglePubSubConfig;
|
|
1333
|
-
rabbitMQ?: RabbitMQConfig;
|
|
1334
|
-
kafka?: KafkaConfig;
|
|
1335
|
-
awsSqs?: AWSSQSConfig;
|
|
1336
|
-
nats?: NatsConfig;
|
|
1337
|
-
}
|
|
1338
|
-
export interface AWSConfig {
|
|
1339
|
-
bucketName: string;
|
|
1340
|
-
accessKeyId: string;
|
|
1341
|
-
secretAccessKey: string;
|
|
1342
|
-
region: string;
|
|
1343
|
-
}
|
|
1344
|
-
export interface GCPConfig {
|
|
1345
|
-
bucketName: string;
|
|
1346
|
-
config: {
|
|
1347
|
-
type: string;
|
|
1348
|
-
project_id: string;
|
|
1349
|
-
private_key_id: string;
|
|
1350
|
-
private_key: string;
|
|
1351
|
-
client_email: string;
|
|
1352
|
-
client_id: string;
|
|
1353
|
-
auth_uri: string;
|
|
1354
|
-
token_uri: string;
|
|
1355
|
-
auth_provider_x509_cert_url: string;
|
|
1356
|
-
client_x509_cert_url: string;
|
|
1357
|
-
universe_domain: string;
|
|
1358
|
-
};
|
|
1359
|
-
}
|
|
1360
|
-
export interface AzureConfig {
|
|
1361
|
-
containerName: string;
|
|
1362
|
-
connectionString: string;
|
|
1363
|
-
}
|
|
1364
|
-
export interface AddToCachePayload {
|
|
1365
|
-
input: string;
|
|
1366
|
-
privateKey: string;
|
|
1367
|
-
data: string;
|
|
1368
|
-
cache_tag: string;
|
|
1369
|
-
timestamp: number;
|
|
1370
|
-
expiry?: number;
|
|
1371
|
-
product_tag: string;
|
|
1372
|
-
component_tag: string;
|
|
1373
|
-
component_type: string;
|
|
1374
|
-
}
|
|
1375
|
-
export interface FetchFromCachePayload extends Pick<AddToCachePayload, 'input' | 'privateKey' | 'cache_tag' | 'expiry'> {
|
|
1376
|
-
}
|
|
1377
|
-
export interface IRemoteCache {
|
|
1378
|
-
expiry?: Date;
|
|
1379
|
-
key: string;
|
|
1380
|
-
value: string;
|
|
1381
|
-
cache_tag: string;
|
|
1382
|
-
product_tag: string;
|
|
1383
|
-
component_tag: string;
|
|
1384
|
-
component_type: string;
|
|
1385
|
-
}
|
|
1386
|
-
export interface IPaginationOptions {
|
|
1387
|
-
page: number;
|
|
1388
|
-
limit: number;
|
|
1389
|
-
}
|
|
1390
|
-
export interface ISessionUser {
|
|
1391
|
-
ductape_user_id: string;
|
|
1392
|
-
product_tag: string;
|
|
1393
|
-
session_tag: string;
|
|
1394
|
-
identifier: string;
|
|
1395
|
-
last_seen: Date;
|
|
1396
|
-
env: string;
|
|
1397
|
-
first_seen: Date;
|
|
1398
|
-
createdAt: Date;
|
|
1399
|
-
updatedAt: Date;
|
|
1400
|
-
}
|
|
1401
|
-
export interface IFetchFilesPayload extends IPaginationOptions {
|
|
1402
|
-
product: string;
|
|
1403
|
-
event: string;
|
|
1404
|
-
}
|
|
1405
|
-
export interface IFetchUsersPayload extends IPaginationOptions {
|
|
1406
|
-
session: string;
|
|
1407
|
-
product: string;
|
|
1408
|
-
env: string;
|
|
1409
|
-
}
|
|
1410
|
-
export interface FetchRemoteCachePayload extends Partial<Pick<IRemoteCache, 'cache_tag' | 'component_tag' | 'component_type' | 'expiry' | 'product_tag'>> {
|
|
1411
|
-
}
|
|
1412
|
-
export declare enum PricingTag {
|
|
1413
|
-
FREE = "free",
|
|
1414
|
-
OVERAGE = "overage"
|
|
1415
|
-
}
|
|
1416
|
-
/**
|
|
1417
|
-
* Events that can trigger actions
|
|
1418
|
-
*/
|
|
1419
|
-
export declare enum TriggerEventType {
|
|
1420
|
-
BEFORE_INSERT = "beforeInsert",
|
|
1421
|
-
AFTER_INSERT = "afterInsert",
|
|
1422
|
-
BEFORE_UPDATE = "beforeUpdate",
|
|
1423
|
-
AFTER_UPDATE = "afterUpdate",
|
|
1424
|
-
BEFORE_DELETE = "beforeDelete",
|
|
1425
|
-
AFTER_DELETE = "afterDelete",
|
|
1426
|
-
BEFORE_WRITE = "beforeWrite",
|
|
1427
|
-
AFTER_WRITE = "afterWrite"
|
|
1428
|
-
}
|
|
1429
|
-
/**
|
|
1430
|
-
* Trigger execution timing
|
|
1431
|
-
*/
|
|
1432
|
-
export declare enum TriggerTimingType {
|
|
1433
|
-
SYNC = "sync",
|
|
1434
|
-
ASYNC = "async",
|
|
1435
|
-
QUEUED = "queued"
|
|
1436
|
-
}
|
|
1437
|
-
/**
|
|
1438
|
-
* Types of actions a trigger can perform
|
|
1439
|
-
*/
|
|
1440
|
-
export declare enum TriggerActionTypes {
|
|
1441
|
-
DATABASE_INSERT = "database.insert",
|
|
1442
|
-
DATABASE_UPDATE = "database.update",
|
|
1443
|
-
DATABASE_DELETE = "database.delete",
|
|
1444
|
-
DATABASE_QUERY = "database.query",
|
|
1445
|
-
STORAGE_UPLOAD = "storage.upload",
|
|
1446
|
-
STORAGE_DELETE = "storage.delete",
|
|
1447
|
-
STORAGE_COPY = "storage.copy",
|
|
1448
|
-
NOTIFICATION_EMAIL = "notification.email",
|
|
1449
|
-
NOTIFICATION_SMS = "notification.sms",
|
|
1450
|
-
NOTIFICATION_PUSH = "notification.push",
|
|
1451
|
-
NOTIFICATION_CALLBACK = "notification.callback",
|
|
1452
|
-
BROKER_PUBLISH = "broker.publish",
|
|
1453
|
-
CACHE_SET = "cache.set",
|
|
1454
|
-
CACHE_INVALIDATE = "cache.invalidate",
|
|
1455
|
-
CACHE_DELETE = "cache.delete",
|
|
1456
|
-
WORKFLOW_EXECUTE = "workflow.execute",
|
|
1457
|
-
WORKFLOW_DISPATCH = "workflow.dispatch",
|
|
1458
|
-
ACTION_EXECUTE = "action.execute",
|
|
1459
|
-
AGENT_RUN = "agent.run",
|
|
1460
|
-
QUOTA_RUN = "quota.run",
|
|
1461
|
-
FALLBACK_RUN = "fallback.run",
|
|
1462
|
-
HEALTHCHECK_RUN = "healthcheck.run",
|
|
1463
|
-
LOG_CREATE = "log.create",
|
|
1464
|
-
SESSION_REVOKE = "session.revoke",
|
|
1465
|
-
VECTOR_UPSERT = "vector.upsert",
|
|
1466
|
-
VECTOR_DELETE = "vector.delete",
|
|
1467
|
-
CUSTOM_FUNCTION = "custom.function",
|
|
1468
|
-
CUSTOM_HTTP = "custom.http"
|
|
1469
|
-
}
|
|
1470
|
-
/**
|
|
1471
|
-
* Condition operators for trigger conditions
|
|
1472
|
-
*/
|
|
1473
|
-
export declare enum TriggerConditionOperator {
|
|
1474
|
-
EQUALS = "eq",
|
|
1475
|
-
NOT_EQUALS = "neq",
|
|
1476
|
-
GREATER_THAN = "gt",
|
|
1477
|
-
GREATER_THAN_OR_EQUALS = "gte",
|
|
1478
|
-
LESS_THAN = "lt",
|
|
1479
|
-
LESS_THAN_OR_EQUALS = "lte",
|
|
1480
|
-
IN = "in",
|
|
1481
|
-
NOT_IN = "notIn",
|
|
1482
|
-
CONTAINS = "contains",
|
|
1483
|
-
STARTS_WITH = "startsWith",
|
|
1484
|
-
ENDS_WITH = "endsWith",
|
|
1485
|
-
MATCHES = "matches",
|
|
1486
|
-
IS_NULL = "isNull",
|
|
1487
|
-
IS_NOT_NULL = "isNotNull",
|
|
1488
|
-
IS_EMPTY = "isEmpty",
|
|
1489
|
-
IS_NOT_EMPTY = "isNotEmpty",
|
|
1490
|
-
CHANGED = "changed",
|
|
1491
|
-
NOT_CHANGED = "notChanged",
|
|
1492
|
-
CHANGED_TO = "changedTo",
|
|
1493
|
-
CHANGED_FROM = "changedFrom"
|
|
1494
|
-
}
|
|
1495
|
-
/**
|
|
1496
|
-
* Retry configuration for trigger actions
|
|
1497
|
-
*/
|
|
1498
|
-
export interface ITriggerRetryConfig {
|
|
1499
|
-
maxAttempts: number;
|
|
1500
|
-
initialDelay?: number;
|
|
1501
|
-
maxDelay?: number;
|
|
1502
|
-
backoffMultiplier?: number;
|
|
1503
|
-
retryOn?: string[];
|
|
1504
|
-
}
|
|
1505
|
-
/**
|
|
1506
|
-
* Condition clause for trigger evaluation
|
|
1507
|
-
*/
|
|
1508
|
-
export interface ITriggerConditionClause {
|
|
1509
|
-
field: string;
|
|
1510
|
-
operator: TriggerConditionOperator;
|
|
1511
|
-
value?: any;
|
|
1512
|
-
}
|
|
1513
|
-
/**
|
|
1514
|
-
* Trigger condition (can be simple or compound)
|
|
1515
|
-
*/
|
|
1516
|
-
export interface ITriggerConditionConfig {
|
|
1517
|
-
$and?: (ITriggerConditionClause | ITriggerConditionConfig)[];
|
|
1518
|
-
$or?: (ITriggerConditionClause | ITriggerConditionConfig)[];
|
|
1519
|
-
$not?: ITriggerConditionClause | ITriggerConditionConfig;
|
|
1520
|
-
field?: string;
|
|
1521
|
-
operator?: TriggerConditionOperator;
|
|
1522
|
-
value?: any;
|
|
1523
|
-
}
|
|
1524
|
-
/**
|
|
1525
|
-
* Base configuration for trigger actions
|
|
1526
|
-
*/
|
|
1527
|
-
export interface ITriggerActionConfig {
|
|
1528
|
-
type: TriggerActionTypes;
|
|
1529
|
-
name?: string;
|
|
1530
|
-
condition?: ITriggerConditionConfig;
|
|
1531
|
-
timing?: TriggerTimingType;
|
|
1532
|
-
retry?: ITriggerRetryConfig;
|
|
1533
|
-
timeout?: number;
|
|
1534
|
-
continueOnError?: boolean;
|
|
1535
|
-
config: Record<string, any>;
|
|
1536
|
-
}
|
|
1537
|
-
/**
|
|
1538
|
-
* Database trigger stored on backend
|
|
1539
|
-
*/
|
|
1540
|
-
export interface IProductDatabaseTrigger {
|
|
1541
|
-
_id?: string;
|
|
1542
|
-
/** Tag in format database_tag:trigger_tag */
|
|
1543
|
-
tag: string;
|
|
1544
|
-
/** Human-readable name */
|
|
1545
|
-
name: string;
|
|
1546
|
-
/** Description */
|
|
1547
|
-
description?: string;
|
|
1548
|
-
/** Events that activate this trigger */
|
|
1549
|
-
events: TriggerEventType[];
|
|
1550
|
-
/** Tables this trigger applies to (empty = all tables) */
|
|
1551
|
-
tables?: string[];
|
|
1552
|
-
/** Condition to evaluate before running actions */
|
|
1553
|
-
condition?: ITriggerConditionConfig;
|
|
1554
|
-
/** Actions to execute */
|
|
1555
|
-
actions: ITriggerActionConfig[];
|
|
1556
|
-
/** Whether trigger is enabled */
|
|
1557
|
-
enabled?: boolean;
|
|
1558
|
-
/** Priority (lower = higher priority) */
|
|
1559
|
-
priority?: number;
|
|
1560
|
-
/** Tags for organization */
|
|
1561
|
-
tags?: string[];
|
|
1562
|
-
/** Created timestamp */
|
|
1563
|
-
created_at?: Date;
|
|
1564
|
-
/** Updated timestamp */
|
|
1565
|
-
updated_at?: Date;
|
|
1566
|
-
}
|