@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.
Files changed (973) hide show
  1. package/package.json +5 -9
  2. package/dist/agents/agent-context.d.ts +0 -100
  3. package/dist/agents/agent-context.js +0 -604
  4. package/dist/agents/agent-context.js.map +0 -1
  5. package/dist/agents/agent-executor.d.ts +0 -180
  6. package/dist/agents/agent-executor.js +0 -715
  7. package/dist/agents/agent-executor.js.map +0 -1
  8. package/dist/agents/agents.service.d.ts +0 -310
  9. package/dist/agents/agents.service.js +0 -1255
  10. package/dist/agents/agents.service.js.map +0 -1
  11. package/dist/agents/index.d.ts +0 -55
  12. package/dist/agents/index.js +0 -110
  13. package/dist/agents/index.js.map +0 -1
  14. package/dist/agents/memory-manager.d.ts +0 -182
  15. package/dist/agents/memory-manager.js +0 -383
  16. package/dist/agents/memory-manager.js.map +0 -1
  17. package/dist/agents/tool-registry.d.ts +0 -141
  18. package/dist/agents/tool-registry.js +0 -355
  19. package/dist/agents/tool-registry.js.map +0 -1
  20. package/dist/agents/types/agents.types.d.ts +0 -1240
  21. package/dist/agents/types/agents.types.js +0 -12
  22. package/dist/agents/types/agents.types.js.map +0 -1
  23. package/dist/agents/types/index.d.ts +0 -6
  24. package/dist/agents/types/index.js +0 -23
  25. package/dist/agents/types/index.js.map +0 -1
  26. package/dist/agents/vector-store-adapter.d.ts +0 -108
  27. package/dist/agents/vector-store-adapter.js +0 -213
  28. package/dist/agents/vector-store-adapter.js.map +0 -1
  29. package/dist/api/services/appApi.service.d.ts +0 -78
  30. package/dist/api/services/appApi.service.js +0 -303
  31. package/dist/api/services/appApi.service.js.map +0 -1
  32. package/dist/api/services/logsApi.service.d.ts +0 -62
  33. package/dist/api/services/logsApi.service.js +0 -67
  34. package/dist/api/services/logsApi.service.js.map +0 -1
  35. package/dist/api/services/pricingApi.service.d.ts +0 -10
  36. package/dist/api/services/pricingApi.service.js +0 -34
  37. package/dist/api/services/pricingApi.service.js.map +0 -1
  38. package/dist/api/services/processorApi.service.d.ts +0 -927
  39. package/dist/api/services/processorApi.service.js +0 -787
  40. package/dist/api/services/processorApi.service.js.map +0 -1
  41. package/dist/api/services/productsApi.service.d.ts +0 -150
  42. package/dist/api/services/productsApi.service.js +0 -279
  43. package/dist/api/services/productsApi.service.js.map +0 -1
  44. package/dist/api/services/resilienceApi.service.d.ts +0 -106
  45. package/dist/api/services/resilienceApi.service.js +0 -224
  46. package/dist/api/services/resilienceApi.service.js.map +0 -1
  47. package/dist/api/services/secretsApi.service.d.ts +0 -51
  48. package/dist/api/services/secretsApi.service.js +0 -126
  49. package/dist/api/services/secretsApi.service.js.map +0 -1
  50. package/dist/api/services/userApi.service.d.ts +0 -10
  51. package/dist/api/services/userApi.service.js +0 -20
  52. package/dist/api/services/userApi.service.js.map +0 -1
  53. package/dist/api/services/webhooksApi.service.d.ts +0 -14
  54. package/dist/api/services/webhooksApi.service.js +0 -65
  55. package/dist/api/services/webhooksApi.service.js.map +0 -1
  56. package/dist/api/services/workflowApi.service.d.ts +0 -199
  57. package/dist/api/services/workflowApi.service.js +0 -201
  58. package/dist/api/services/workflowApi.service.js.map +0 -1
  59. package/dist/api/services/workspaceApi.service.d.ts +0 -20
  60. package/dist/api/services/workspaceApi.service.js +0 -54
  61. package/dist/api/services/workspaceApi.service.js.map +0 -1
  62. package/dist/api/urls.d.ts +0 -136
  63. package/dist/api/urls.js +0 -185
  64. package/dist/api/urls.js.map +0 -1
  65. package/dist/api/utils/auth.utils.d.ts +0 -10
  66. package/dist/api/utils/auth.utils.js +0 -24
  67. package/dist/api/utils/auth.utils.js.map +0 -1
  68. package/dist/api/utils/cache.utils.d.ts +0 -3
  69. package/dist/api/utils/cache.utils.js +0 -18
  70. package/dist/api/utils/cache.utils.js.map +0 -1
  71. package/dist/api/utils/strings.utils.d.ts +0 -7
  72. package/dist/api/utils/strings.utils.js +0 -64
  73. package/dist/api/utils/strings.utils.js.map +0 -1
  74. package/dist/apps/services/app.service.d.ts +0 -126
  75. package/dist/apps/services/app.service.js +0 -1436
  76. package/dist/apps/services/app.service.js.map +0 -1
  77. package/dist/apps/utils/auth-context-manager.d.ts +0 -137
  78. package/dist/apps/utils/auth-context-manager.js +0 -248
  79. package/dist/apps/utils/auth-context-manager.js.map +0 -1
  80. package/dist/apps/utils/credential-manager.d.ts +0 -128
  81. package/dist/apps/utils/credential-manager.js +0 -199
  82. package/dist/apps/utils/credential-manager.js.map +0 -1
  83. package/dist/apps/utils/index.d.ts +0 -10
  84. package/dist/apps/utils/index.js +0 -54
  85. package/dist/apps/utils/index.js.map +0 -1
  86. package/dist/apps/utils/input-helpers.d.ts +0 -67
  87. package/dist/apps/utils/input-helpers.js +0 -185
  88. package/dist/apps/utils/input-helpers.js.map +0 -1
  89. package/dist/apps/utils/input-resolver.d.ts +0 -165
  90. package/dist/apps/utils/input-resolver.js +0 -477
  91. package/dist/apps/utils/input-resolver.js.map +0 -1
  92. package/dist/apps/utils/oauth-manager.d.ts +0 -196
  93. package/dist/apps/utils/oauth-manager.js +0 -429
  94. package/dist/apps/utils/oauth-manager.js.map +0 -1
  95. package/dist/apps/utils/objects.utils.d.ts +0 -4
  96. package/dist/apps/utils/objects.utils.js +0 -59
  97. package/dist/apps/utils/objects.utils.js.map +0 -1
  98. package/dist/apps/utils/string.utils.d.ts +0 -9
  99. package/dist/apps/utils/string.utils.js +0 -89
  100. package/dist/apps/utils/string.utils.js.map +0 -1
  101. package/dist/apps/validators/index.d.ts +0 -17
  102. package/dist/apps/validators/index.js +0 -39
  103. package/dist/apps/validators/index.js.map +0 -1
  104. package/dist/apps/validators/joi-validators/create.app.validator.d.ts +0 -3
  105. package/dist/apps/validators/joi-validators/create.app.validator.js +0 -43
  106. package/dist/apps/validators/joi-validators/create.app.validator.js.map +0 -1
  107. package/dist/apps/validators/joi-validators/create.appAction.validator.d.ts +0 -3
  108. package/dist/apps/validators/joi-validators/create.appAction.validator.js +0 -72
  109. package/dist/apps/validators/joi-validators/create.appAction.validator.js.map +0 -1
  110. package/dist/apps/validators/joi-validators/create.appActionResponse.validator.d.ts +0 -7
  111. package/dist/apps/validators/joi-validators/create.appActionResponse.validator.js +0 -81
  112. package/dist/apps/validators/joi-validators/create.appActionResponse.validator.js.map +0 -1
  113. package/dist/apps/validators/joi-validators/create.appAuth.validator.d.ts +0 -3
  114. package/dist/apps/validators/joi-validators/create.appAuth.validator.js +0 -64
  115. package/dist/apps/validators/joi-validators/create.appAuth.validator.js.map +0 -1
  116. package/dist/apps/validators/joi-validators/create.appBody.validators.d.ts +0 -4
  117. package/dist/apps/validators/joi-validators/create.appBody.validators.js +0 -44
  118. package/dist/apps/validators/joi-validators/create.appBody.validators.js.map +0 -1
  119. package/dist/apps/validators/joi-validators/create.appConstants.validator.d.ts +0 -4
  120. package/dist/apps/validators/joi-validators/create.appConstants.validator.js +0 -45
  121. package/dist/apps/validators/joi-validators/create.appConstants.validator.js.map +0 -1
  122. package/dist/apps/validators/joi-validators/create.appEnv.validator.d.ts +0 -4
  123. package/dist/apps/validators/joi-validators/create.appEnv.validator.js +0 -50
  124. package/dist/apps/validators/joi-validators/create.appEnv.validator.js.map +0 -1
  125. package/dist/apps/validators/joi-validators/create.appVariable.validator.d.ts +0 -4
  126. package/dist/apps/validators/joi-validators/create.appVariable.validator.js +0 -47
  127. package/dist/apps/validators/joi-validators/create.appVariable.validator.js.map +0 -1
  128. package/dist/apps/validators/joi-validators/create.appWebhook.validator.d.ts +0 -4
  129. package/dist/apps/validators/joi-validators/create.appWebhook.validator.js +0 -60
  130. package/dist/apps/validators/joi-validators/create.appWebhook.validator.js.map +0 -1
  131. package/dist/apps/validators/joi-validators/create.appWebhookEvent.validator.d.ts +0 -3
  132. package/dist/apps/validators/joi-validators/create.appWebhookEvent.validator.js +0 -48
  133. package/dist/apps/validators/joi-validators/create.appWebhookEvent.validator.js.map +0 -1
  134. package/dist/apps/validators/joi-validators/sample.validator.d.ts +0 -6
  135. package/dist/apps/validators/joi-validators/sample.validator.js +0 -65
  136. package/dist/apps/validators/joi-validators/sample.validator.js.map +0 -1
  137. package/dist/apps/validators/joi-validators/update.app.validator.d.ts +0 -4
  138. package/dist/apps/validators/joi-validators/update.app.validator.js +0 -66
  139. package/dist/apps/validators/joi-validators/update.app.validator.js.map +0 -1
  140. package/dist/apps/validators/joi-validators/update.appAction.validator.d.ts +0 -4
  141. package/dist/apps/validators/joi-validators/update.appAction.validator.js +0 -76
  142. package/dist/apps/validators/joi-validators/update.appAction.validator.js.map +0 -1
  143. package/dist/apps/validators/joi-validators/update.appActionResponse.validator.d.ts +0 -3
  144. package/dist/apps/validators/joi-validators/update.appActionResponse.validator.js +0 -57
  145. package/dist/apps/validators/joi-validators/update.appActionResponse.validator.js.map +0 -1
  146. package/dist/apps/validators/joi-validators/update.appAuth.validator.d.ts +0 -4
  147. package/dist/apps/validators/joi-validators/update.appAuth.validator.js +0 -52
  148. package/dist/apps/validators/joi-validators/update.appAuth.validator.js.map +0 -1
  149. package/dist/apps/validators/joi-validators/update.appConstants.validator.d.ts +0 -4
  150. package/dist/apps/validators/joi-validators/update.appConstants.validator.js +0 -45
  151. package/dist/apps/validators/joi-validators/update.appConstants.validator.js.map +0 -1
  152. package/dist/apps/validators/joi-validators/update.appEnv.validator.d.ts +0 -4
  153. package/dist/apps/validators/joi-validators/update.appEnv.validator.js +0 -50
  154. package/dist/apps/validators/joi-validators/update.appEnv.validator.js.map +0 -1
  155. package/dist/apps/validators/joi-validators/update.appVariables.validator.d.ts +0 -4
  156. package/dist/apps/validators/joi-validators/update.appVariables.validator.js +0 -47
  157. package/dist/apps/validators/joi-validators/update.appVariables.validator.js.map +0 -1
  158. package/dist/apps/validators/joi-validators/update.appWebhook.validator.d.ts +0 -4
  159. package/dist/apps/validators/joi-validators/update.appWebhook.validator.js +0 -59
  160. package/dist/apps/validators/joi-validators/update.appWebhook.validator.js.map +0 -1
  161. package/dist/apps/validators/joi-validators/update.appWebhookEvent.validator.d.ts +0 -3
  162. package/dist/apps/validators/joi-validators/update.appWebhookEvent.validator.js +0 -48
  163. package/dist/apps/validators/joi-validators/update.appWebhookEvent.validator.js.map +0 -1
  164. package/dist/apps/validators/joi-validators/update.validation.entityData.validator.d.ts +0 -3
  165. package/dist/apps/validators/joi-validators/update.validation.entityData.validator.js +0 -60
  166. package/dist/apps/validators/joi-validators/update.validation.entityData.validator.js.map +0 -1
  167. package/dist/bin.d.ts +0 -26
  168. package/dist/bin.js +0 -28
  169. package/dist/bin.js.map +0 -1
  170. package/dist/brokers/brokers.service.d.ts +0 -438
  171. package/dist/brokers/brokers.service.js +0 -1294
  172. package/dist/brokers/brokers.service.js.map +0 -1
  173. package/dist/brokers/index.d.ts +0 -46
  174. package/dist/brokers/index.js +0 -83
  175. package/dist/brokers/index.js.map +0 -1
  176. package/dist/brokers/types/index.d.ts +0 -569
  177. package/dist/brokers/types/index.js +0 -8
  178. package/dist/brokers/types/index.js.map +0 -1
  179. package/dist/brokers/utils/broker.util.d.ts +0 -33
  180. package/dist/brokers/utils/broker.util.js +0 -125
  181. package/dist/brokers/utils/broker.util.js.map +0 -1
  182. package/dist/brokers/utils/providers/aws-sqs.service.d.ts +0 -16
  183. package/dist/brokers/utils/providers/aws-sqs.service.js +0 -71
  184. package/dist/brokers/utils/providers/aws-sqs.service.js.map +0 -1
  185. package/dist/brokers/utils/providers/google-pubsub.service.d.ts +0 -16
  186. package/dist/brokers/utils/providers/google-pubsub.service.js +0 -43
  187. package/dist/brokers/utils/providers/google-pubsub.service.js.map +0 -1
  188. package/dist/brokers/utils/providers/index.d.ts +0 -6
  189. package/dist/brokers/utils/providers/index.js +0 -16
  190. package/dist/brokers/utils/providers/index.js.map +0 -1
  191. package/dist/brokers/utils/providers/kafka.service.d.ts +0 -23
  192. package/dist/brokers/utils/providers/kafka.service.js +0 -131
  193. package/dist/brokers/utils/providers/kafka.service.js.map +0 -1
  194. package/dist/brokers/utils/providers/nats.service.d.ts +0 -18
  195. package/dist/brokers/utils/providers/nats.service.js +0 -63
  196. package/dist/brokers/utils/providers/nats.service.js.map +0 -1
  197. package/dist/brokers/utils/providers/rabbitmq.service.d.ts +0 -25
  198. package/dist/brokers/utils/providers/rabbitmq.service.js +0 -138
  199. package/dist/brokers/utils/providers/rabbitmq.service.js.map +0 -1
  200. package/dist/brokers/utils/providers/redis.service.d.ts +0 -18
  201. package/dist/brokers/utils/providers/redis.service.js +0 -93
  202. package/dist/brokers/utils/providers/redis.service.js.map +0 -1
  203. package/dist/cache/cache.manager.d.ts +0 -308
  204. package/dist/cache/cache.manager.js +0 -900
  205. package/dist/cache/cache.manager.js.map +0 -1
  206. package/dist/cache/cache.service.d.ts +0 -192
  207. package/dist/cache/cache.service.js +0 -596
  208. package/dist/cache/cache.service.js.map +0 -1
  209. package/dist/cache/index.d.ts +0 -52
  210. package/dist/cache/index.js +0 -81
  211. package/dist/cache/index.js.map +0 -1
  212. package/dist/cache/types/index.d.ts +0 -112
  213. package/dist/cache/types/index.js +0 -6
  214. package/dist/cache/types/index.js.map +0 -1
  215. package/dist/clients/apps.client.d.ts +0 -4
  216. package/dist/clients/apps.client.js +0 -31
  217. package/dist/clients/apps.client.js.map +0 -1
  218. package/dist/clients/email.client.d.ts +0 -4
  219. package/dist/clients/email.client.js +0 -29
  220. package/dist/clients/email.client.js.map +0 -1
  221. package/dist/clients/expo.client.d.ts +0 -3
  222. package/dist/clients/expo.client.js +0 -28
  223. package/dist/clients/expo.client.js.map +0 -1
  224. package/dist/clients/function.client.d.ts +0 -3
  225. package/dist/clients/function.client.js +0 -27
  226. package/dist/clients/function.client.js.map +0 -1
  227. package/dist/clients/http.client.d.ts +0 -3
  228. package/dist/clients/http.client.js +0 -27
  229. package/dist/clients/http.client.js.map +0 -1
  230. package/dist/clients/logs.client.d.ts +0 -4
  231. package/dist/clients/logs.client.js +0 -34
  232. package/dist/clients/logs.client.js.map +0 -1
  233. package/dist/clients/pricing.client.d.ts +0 -4
  234. package/dist/clients/pricing.client.js +0 -34
  235. package/dist/clients/pricing.client.js.map +0 -1
  236. package/dist/clients/products.client.d.ts +0 -3
  237. package/dist/clients/products.client.js +0 -32
  238. package/dist/clients/products.client.js.map +0 -1
  239. package/dist/clients/users.client.d.ts +0 -4
  240. package/dist/clients/users.client.js +0 -34
  241. package/dist/clients/users.client.js.map +0 -1
  242. package/dist/clients/webhooks.client.d.ts +0 -4
  243. package/dist/clients/webhooks.client.js +0 -34
  244. package/dist/clients/webhooks.client.js.map +0 -1
  245. package/dist/clients/workspace.client.d.ts +0 -7
  246. package/dist/clients/workspace.client.js +0 -39
  247. package/dist/clients/workspace.client.js.map +0 -1
  248. package/dist/database/actions/action-manager.d.ts +0 -170
  249. package/dist/database/actions/action-manager.js +0 -465
  250. package/dist/database/actions/action-manager.js.map +0 -1
  251. package/dist/database/actions/index.d.ts +0 -6
  252. package/dist/database/actions/index.js +0 -13
  253. package/dist/database/actions/index.js.map +0 -1
  254. package/dist/database/adapters/adapter.factory.d.ts +0 -62
  255. package/dist/database/adapters/adapter.factory.js +0 -97
  256. package/dist/database/adapters/adapter.factory.js.map +0 -1
  257. package/dist/database/adapters/base.adapter.d.ts +0 -423
  258. package/dist/database/adapters/base.adapter.js +0 -260
  259. package/dist/database/adapters/base.adapter.js.map +0 -1
  260. package/dist/database/adapters/cassandra.adapter.d.ts +0 -92
  261. package/dist/database/adapters/cassandra.adapter.js +0 -1091
  262. package/dist/database/adapters/cassandra.adapter.js.map +0 -1
  263. package/dist/database/adapters/dynamodb.adapter.d.ts +0 -110
  264. package/dist/database/adapters/dynamodb.adapter.js +0 -1564
  265. package/dist/database/adapters/dynamodb.adapter.js.map +0 -1
  266. package/dist/database/adapters/index.d.ts +0 -11
  267. package/dist/database/adapters/index.js +0 -27
  268. package/dist/database/adapters/index.js.map +0 -1
  269. package/dist/database/adapters/mariadb.adapter.d.ts +0 -100
  270. package/dist/database/adapters/mariadb.adapter.js +0 -247
  271. package/dist/database/adapters/mariadb.adapter.js.map +0 -1
  272. package/dist/database/adapters/mongodb.adapter.d.ts +0 -121
  273. package/dist/database/adapters/mongodb.adapter.js +0 -1284
  274. package/dist/database/adapters/mongodb.adapter.js.map +0 -1
  275. package/dist/database/adapters/mysql.adapter.d.ts +0 -86
  276. package/dist/database/adapters/mysql.adapter.js +0 -1371
  277. package/dist/database/adapters/mysql.adapter.js.map +0 -1
  278. package/dist/database/adapters/postgresql.adapter.d.ts +0 -90
  279. package/dist/database/adapters/postgresql.adapter.js +0 -1487
  280. package/dist/database/adapters/postgresql.adapter.js.map +0 -1
  281. package/dist/database/databases.service.d.ts +0 -1496
  282. package/dist/database/databases.service.js +0 -3294
  283. package/dist/database/databases.service.js.map +0 -1
  284. package/dist/database/index.d.ts +0 -46
  285. package/dist/database/index.js +0 -109
  286. package/dist/database/index.js.map +0 -1
  287. package/dist/database/migrations/index.d.ts +0 -6
  288. package/dist/database/migrations/index.js +0 -12
  289. package/dist/database/migrations/index.js.map +0 -1
  290. package/dist/database/migrations/migration-engine.d.ts +0 -136
  291. package/dist/database/migrations/migration-engine.js +0 -1421
  292. package/dist/database/migrations/migration-engine.js.map +0 -1
  293. package/dist/database/operators/aggregation-builder.d.ts +0 -67
  294. package/dist/database/operators/aggregation-builder.js +0 -841
  295. package/dist/database/operators/aggregation-builder.js.map +0 -1
  296. package/dist/database/operators/index.d.ts +0 -7
  297. package/dist/database/operators/index.js +0 -15
  298. package/dist/database/operators/index.js.map +0 -1
  299. package/dist/database/operators/query-builder.d.ts +0 -69
  300. package/dist/database/operators/query-builder.js +0 -447
  301. package/dist/database/operators/query-builder.js.map +0 -1
  302. package/dist/database/presave/decrypt.d.ts +0 -25
  303. package/dist/database/presave/decrypt.js +0 -146
  304. package/dist/database/presave/decrypt.js.map +0 -1
  305. package/dist/database/presave/index.d.ts +0 -9
  306. package/dist/database/presave/index.js +0 -18
  307. package/dist/database/presave/index.js.map +0 -1
  308. package/dist/database/presave/presave-processor.d.ts +0 -148
  309. package/dist/database/presave/presave-processor.js +0 -702
  310. package/dist/database/presave/presave-processor.js.map +0 -1
  311. package/dist/database/schema/index.d.ts +0 -7
  312. package/dist/database/schema/index.js +0 -13
  313. package/dist/database/schema/index.js.map +0 -1
  314. package/dist/database/schema/schema-manager.d.ts +0 -258
  315. package/dist/database/schema/schema-manager.js +0 -638
  316. package/dist/database/schema/schema-manager.js.map +0 -1
  317. package/dist/database/transactions/index.d.ts +0 -6
  318. package/dist/database/transactions/index.js +0 -13
  319. package/dist/database/transactions/index.js.map +0 -1
  320. package/dist/database/transactions/transaction-manager.d.ts +0 -113
  321. package/dist/database/transactions/transaction-manager.js +0 -344
  322. package/dist/database/transactions/transaction-manager.js.map +0 -1
  323. package/dist/database/triggers/index.d.ts +0 -7
  324. package/dist/database/triggers/index.js +0 -14
  325. package/dist/database/triggers/index.js.map +0 -1
  326. package/dist/database/triggers/trigger-processor.d.ts +0 -239
  327. package/dist/database/triggers/trigger-processor.js +0 -1034
  328. package/dist/database/triggers/trigger-processor.js.map +0 -1
  329. package/dist/database/types/action.interface.d.ts +0 -148
  330. package/dist/database/types/action.interface.js +0 -6
  331. package/dist/database/types/action.interface.js.map +0 -1
  332. package/dist/database/types/aggregation.interface.d.ts +0 -185
  333. package/dist/database/types/aggregation.interface.js +0 -6
  334. package/dist/database/types/aggregation.interface.js.map +0 -1
  335. package/dist/database/types/connection.interface.d.ts +0 -137
  336. package/dist/database/types/connection.interface.js +0 -6
  337. package/dist/database/types/connection.interface.js.map +0 -1
  338. package/dist/database/types/dashboard.interface.d.ts +0 -74
  339. package/dist/database/types/dashboard.interface.js +0 -7
  340. package/dist/database/types/dashboard.interface.js.map +0 -1
  341. package/dist/database/types/enums.d.ts +0 -195
  342. package/dist/database/types/enums.js +0 -244
  343. package/dist/database/types/enums.js.map +0 -1
  344. package/dist/database/types/index.d.ts +0 -15
  345. package/dist/database/types/index.js +0 -31
  346. package/dist/database/types/index.js.map +0 -1
  347. package/dist/database/types/migration.interface.d.ts +0 -686
  348. package/dist/database/types/migration.interface.js +0 -9
  349. package/dist/database/types/migration.interface.js.map +0 -1
  350. package/dist/database/types/presave.interface.d.ts +0 -292
  351. package/dist/database/types/presave.interface.js +0 -60
  352. package/dist/database/types/presave.interface.js.map +0 -1
  353. package/dist/database/types/query.interface.d.ts +0 -205
  354. package/dist/database/types/query.interface.js +0 -6
  355. package/dist/database/types/query.interface.js.map +0 -1
  356. package/dist/database/types/schema.interface.d.ts +0 -412
  357. package/dist/database/types/schema.interface.js +0 -6
  358. package/dist/database/types/schema.interface.js.map +0 -1
  359. package/dist/database/types/transaction.interface.d.ts +0 -84
  360. package/dist/database/types/transaction.interface.js +0 -6
  361. package/dist/database/types/transaction.interface.js.map +0 -1
  362. package/dist/database/types/trigger.interface.d.ts +0 -612
  363. package/dist/database/types/trigger.interface.js +0 -121
  364. package/dist/database/types/trigger.interface.js.map +0 -1
  365. package/dist/database/types/write.interface.d.ts +0 -216
  366. package/dist/database/types/write.interface.js +0 -6
  367. package/dist/database/types/write.interface.js.map +0 -1
  368. package/dist/database/utils/database-error.d.ts +0 -96
  369. package/dist/database/utils/database-error.js +0 -221
  370. package/dist/database/utils/database-error.js.map +0 -1
  371. package/dist/database/utils/index.d.ts +0 -6
  372. package/dist/database/utils/index.js +0 -11
  373. package/dist/database/utils/index.js.map +0 -1
  374. package/dist/graph/adapters/adapter.factory.d.ts +0 -47
  375. package/dist/graph/adapters/adapter.factory.js +0 -77
  376. package/dist/graph/adapters/adapter.factory.js.map +0 -1
  377. package/dist/graph/adapters/arangodb.adapter.d.ts +0 -86
  378. package/dist/graph/adapters/arangodb.adapter.js +0 -1588
  379. package/dist/graph/adapters/arangodb.adapter.js.map +0 -1
  380. package/dist/graph/adapters/base.adapter.d.ts +0 -264
  381. package/dist/graph/adapters/base.adapter.js +0 -156
  382. package/dist/graph/adapters/base.adapter.js.map +0 -1
  383. package/dist/graph/adapters/index.d.ts +0 -11
  384. package/dist/graph/adapters/index.js +0 -21
  385. package/dist/graph/adapters/index.js.map +0 -1
  386. package/dist/graph/adapters/memgraph.adapter.d.ts +0 -110
  387. package/dist/graph/adapters/memgraph.adapter.js +0 -1452
  388. package/dist/graph/adapters/memgraph.adapter.js.map +0 -1
  389. package/dist/graph/adapters/neo4j.adapter.d.ts +0 -81
  390. package/dist/graph/adapters/neo4j.adapter.js +0 -1317
  391. package/dist/graph/adapters/neo4j.adapter.js.map +0 -1
  392. package/dist/graph/adapters/neptune.adapter.d.ts +0 -82
  393. package/dist/graph/adapters/neptune.adapter.js +0 -1369
  394. package/dist/graph/adapters/neptune.adapter.js.map +0 -1
  395. package/dist/graph/graphs.service.d.ts +0 -617
  396. package/dist/graph/graphs.service.js +0 -2594
  397. package/dist/graph/graphs.service.js.map +0 -1
  398. package/dist/graph/index.d.ts +0 -57
  399. package/dist/graph/index.js +0 -77
  400. package/dist/graph/index.js.map +0 -1
  401. package/dist/graph/transactions/index.d.ts +0 -4
  402. package/dist/graph/transactions/index.js +0 -9
  403. package/dist/graph/transactions/index.js.map +0 -1
  404. package/dist/graph/transactions/transaction-manager.d.ts +0 -61
  405. package/dist/graph/transactions/transaction-manager.js +0 -126
  406. package/dist/graph/transactions/transaction-manager.js.map +0 -1
  407. package/dist/graph/types/connection.interface.d.ts +0 -149
  408. package/dist/graph/types/connection.interface.js +0 -9
  409. package/dist/graph/types/connection.interface.js.map +0 -1
  410. package/dist/graph/types/enums.d.ts +0 -101
  411. package/dist/graph/types/enums.js +0 -114
  412. package/dist/graph/types/enums.js.map +0 -1
  413. package/dist/graph/types/index.d.ts +0 -13
  414. package/dist/graph/types/index.js +0 -20
  415. package/dist/graph/types/index.js.map +0 -1
  416. package/dist/graph/types/node.interface.d.ts +0 -248
  417. package/dist/graph/types/node.interface.js +0 -9
  418. package/dist/graph/types/node.interface.js.map +0 -1
  419. package/dist/graph/types/query.interface.d.ts +0 -175
  420. package/dist/graph/types/query.interface.js +0 -9
  421. package/dist/graph/types/query.interface.js.map +0 -1
  422. package/dist/graph/types/relationship.interface.d.ts +0 -207
  423. package/dist/graph/types/relationship.interface.js +0 -9
  424. package/dist/graph/types/relationship.interface.js.map +0 -1
  425. package/dist/graph/types/schema.interface.d.ts +0 -295
  426. package/dist/graph/types/schema.interface.js +0 -9
  427. package/dist/graph/types/schema.interface.js.map +0 -1
  428. package/dist/graph/types/transaction.interface.d.ts +0 -55
  429. package/dist/graph/types/transaction.interface.js +0 -9
  430. package/dist/graph/types/transaction.interface.js.map +0 -1
  431. package/dist/graph/types/traversal.interface.d.ts +0 -181
  432. package/dist/graph/types/traversal.interface.js +0 -9
  433. package/dist/graph/types/traversal.interface.js.map +0 -1
  434. package/dist/graph/utils/graph-error.d.ts +0 -71
  435. package/dist/graph/utils/graph-error.js +0 -142
  436. package/dist/graph/utils/graph-error.js.map +0 -1
  437. package/dist/graph/utils/index.d.ts +0 -4
  438. package/dist/graph/utils/index.js +0 -9
  439. package/dist/graph/utils/index.js.map +0 -1
  440. package/dist/imports/imports.repo.d.ts +0 -0
  441. package/dist/imports/imports.repo.js +0 -1
  442. package/dist/imports/imports.repo.js.map +0 -1
  443. package/dist/imports/imports.service.d.ts +0 -23
  444. package/dist/imports/imports.service.js +0 -71
  445. package/dist/imports/imports.service.js.map +0 -1
  446. package/dist/imports/imports.types.d.ts +0 -350
  447. package/dist/imports/imports.types.js +0 -33
  448. package/dist/imports/imports.types.js.map +0 -1
  449. package/dist/imports/openAPI3.0.types.d.ts +0 -52
  450. package/dist/imports/openAPI3.0.types.js +0 -3
  451. package/dist/imports/openAPI3.0.types.js.map +0 -1
  452. package/dist/imports/repos/openApi.repo.d.ts +0 -6
  453. package/dist/imports/repos/openApi.repo.js +0 -422
  454. package/dist/imports/repos/openApi.repo.js.map +0 -1
  455. package/dist/imports/repos/postmanV21.repo.d.ts +0 -14
  456. package/dist/imports/repos/postmanV21.repo.js +0 -257
  457. package/dist/imports/repos/postmanV21.repo.js.map +0 -1
  458. package/dist/imports/utils/imports.utils.d.ts +0 -80
  459. package/dist/imports/utils/imports.utils.js +0 -114
  460. package/dist/imports/utils/imports.utils.js.map +0 -1
  461. package/dist/imports/validators/index.d.ts +0 -0
  462. package/dist/imports/validators/index.js +0 -1
  463. package/dist/imports/validators/index.js.map +0 -1
  464. package/dist/imports/validators/joi-validators/postmanV21.validator.d.ts +0 -5
  465. package/dist/imports/validators/joi-validators/postmanV21.validator.js +0 -96
  466. package/dist/imports/validators/joi-validators/postmanV21.validator.js.map +0 -1
  467. package/dist/index.d.ts +0 -4021
  468. package/dist/index.js +0 -5895
  469. package/dist/index.js.map +0 -1
  470. package/dist/init.interface.d.ts +0 -407
  471. package/dist/init.interface.js +0 -3
  472. package/dist/init.interface.js.map +0 -1
  473. package/dist/inputs/inputs.repo.d.ts +0 -7
  474. package/dist/inputs/inputs.repo.js +0 -16
  475. package/dist/inputs/inputs.repo.js.map +0 -1
  476. package/dist/inputs/inputs.service.d.ts +0 -61
  477. package/dist/inputs/inputs.service.js +0 -468
  478. package/dist/inputs/inputs.service.js.map +0 -1
  479. package/dist/inputs/utils/inputs.utils.create.d.ts +0 -11
  480. package/dist/inputs/utils/inputs.utils.create.js +0 -273
  481. package/dist/inputs/utils/inputs.utils.create.js.map +0 -1
  482. package/dist/inputs/validators/inputs.validator.parse.d.ts +0 -4
  483. package/dist/inputs/validators/inputs.validator.parse.js +0 -53
  484. package/dist/inputs/validators/inputs.validator.parse.js.map +0 -1
  485. package/dist/jobs/index.d.ts +0 -38
  486. package/dist/jobs/index.js +0 -50
  487. package/dist/jobs/index.js.map +0 -1
  488. package/dist/jobs/jobs.service.d.ts +0 -154
  489. package/dist/jobs/jobs.service.js +0 -491
  490. package/dist/jobs/jobs.service.js.map +0 -1
  491. package/dist/jobs/jobs.state.d.ts +0 -113
  492. package/dist/jobs/jobs.state.js +0 -447
  493. package/dist/jobs/jobs.state.js.map +0 -1
  494. package/dist/jobs/types.d.ts +0 -449
  495. package/dist/jobs/types.js +0 -74
  496. package/dist/jobs/types.js.map +0 -1
  497. package/dist/logs/logs.repo.d.ts +0 -6
  498. package/dist/logs/logs.repo.js +0 -12
  499. package/dist/logs/logs.repo.js.map +0 -1
  500. package/dist/logs/logs.service.d.ts +0 -30
  501. package/dist/logs/logs.service.js +0 -89
  502. package/dist/logs/logs.service.js.map +0 -1
  503. package/dist/logs/logs.types.d.ts +0 -85
  504. package/dist/logs/logs.types.js +0 -52
  505. package/dist/logs/logs.types.js.map +0 -1
  506. package/dist/logs/utils/logs.utils.create.d.ts +0 -0
  507. package/dist/logs/utils/logs.utils.create.js +0 -1
  508. package/dist/logs/utils/logs.utils.create.js.map +0 -1
  509. package/dist/logs/utils/logs.utils.errors.d.ts +0 -2
  510. package/dist/logs/utils/logs.utils.errors.js +0 -8
  511. package/dist/logs/utils/logs.utils.errors.js.map +0 -1
  512. package/dist/models/index.d.ts +0 -6
  513. package/dist/models/index.js +0 -11
  514. package/dist/models/index.js.map +0 -1
  515. package/dist/models/models.service.d.ts +0 -137
  516. package/dist/models/models.service.js +0 -195
  517. package/dist/models/models.service.js.map +0 -1
  518. package/dist/notifications/index.d.ts +0 -13
  519. package/dist/notifications/index.js +0 -26
  520. package/dist/notifications/index.js.map +0 -1
  521. package/dist/notifications/notifications.service.d.ts +0 -268
  522. package/dist/notifications/notifications.service.js +0 -907
  523. package/dist/notifications/notifications.service.js.map +0 -1
  524. package/dist/notifications/types/index.d.ts +0 -4
  525. package/dist/notifications/types/index.js +0 -21
  526. package/dist/notifications/types/index.js.map +0 -1
  527. package/dist/notifications/types/notifications.types.d.ts +0 -454
  528. package/dist/notifications/types/notifications.types.js +0 -51
  529. package/dist/notifications/types/notifications.types.js.map +0 -1
  530. package/dist/parsers/index.d.ts +0 -3
  531. package/dist/parsers/index.js +0 -27
  532. package/dist/parsers/index.js.map +0 -1
  533. package/dist/parsers/pipelines/postman.pipelines.d.ts +0 -15
  534. package/dist/parsers/pipelines/postman.pipelines.js +0 -103
  535. package/dist/parsers/pipelines/postman.pipelines.js.map +0 -1
  536. package/dist/parsers/types/postman.types.d.ts +0 -200
  537. package/dist/parsers/types/postman.types.js +0 -3
  538. package/dist/parsers/types/postman.types.js.map +0 -1
  539. package/dist/parsers/utils/postman.utils.d.ts +0 -12
  540. package/dist/parsers/utils/postman.utils.js +0 -116
  541. package/dist/parsers/utils/postman.utils.js.map +0 -1
  542. package/dist/parsers/validators/postman-auth.validators.d.ts +0 -10
  543. package/dist/parsers/validators/postman-auth.validators.js +0 -127
  544. package/dist/parsers/validators/postman-auth.validators.js.map +0 -1
  545. package/dist/parsers/validators/postman-request.validators.d.ts +0 -13
  546. package/dist/parsers/validators/postman-request.validators.js +0 -139
  547. package/dist/parsers/validators/postman-request.validators.js.map +0 -1
  548. package/dist/parsers/validators/postman-response.validators.d.ts +0 -13
  549. package/dist/parsers/validators/postman-response.validators.js +0 -150
  550. package/dist/parsers/validators/postman-response.validators.js.map +0 -1
  551. package/dist/parsers/validators/postman-variable.validators.d.ts +0 -14
  552. package/dist/parsers/validators/postman-variable.validators.js +0 -163
  553. package/dist/parsers/validators/postman-variable.validators.js.map +0 -1
  554. package/dist/pricing/pricing.repo.d.ts +0 -0
  555. package/dist/pricing/pricing.repo.js +0 -1
  556. package/dist/pricing/pricing.repo.js.map +0 -1
  557. package/dist/pricing/pricing.service.d.ts +0 -24
  558. package/dist/pricing/pricing.service.js +0 -51
  559. package/dist/pricing/pricing.service.js.map +0 -1
  560. package/dist/pricing/pricing.types.d.ts +0 -76
  561. package/dist/pricing/pricing.types.js +0 -21
  562. package/dist/pricing/pricing.types.js.map +0 -1
  563. package/dist/pricing/utils/string.utils.d.ts +0 -1
  564. package/dist/pricing/utils/string.utils.js +0 -9
  565. package/dist/pricing/utils/string.utils.js.map +0 -1
  566. package/dist/processor/repos/mongo.repo.d.ts +0 -39
  567. package/dist/processor/repos/mongo.repo.js +0 -260
  568. package/dist/processor/repos/mongo.repo.js.map +0 -1
  569. package/dist/processor/repos/postgres.repo.d.ts +0 -31
  570. package/dist/processor/repos/postgres.repo.js +0 -185
  571. package/dist/processor/repos/postgres.repo.js.map +0 -1
  572. package/dist/processor/repos/sms.repo.d.ts +0 -39
  573. package/dist/processor/repos/sms.repo.js +0 -124
  574. package/dist/processor/repos/sms.repo.js.map +0 -1
  575. package/dist/processor/services/processor.service.d.ts +0 -465
  576. package/dist/processor/services/processor.service.js +0 -5343
  577. package/dist/processor/services/processor.service.js.map +0 -1
  578. package/dist/processor/services/request.service.d.ts +0 -36
  579. package/dist/processor/services/request.service.js +0 -304
  580. package/dist/processor/services/request.service.js.map +0 -1
  581. package/dist/processor/types/request.types.d.ts +0 -14
  582. package/dist/processor/types/request.types.js +0 -3
  583. package/dist/processor/types/request.types.js.map +0 -1
  584. package/dist/processor/utils/processor.utils.d.ts +0 -104
  585. package/dist/processor/utils/processor.utils.js +0 -1066
  586. package/dist/processor/utils/processor.utils.js.map +0 -1
  587. package/dist/processor/utils/request.utils.d.ts +0 -20
  588. package/dist/processor/utils/request.utils.js +0 -113
  589. package/dist/processor/utils/request.utils.js.map +0 -1
  590. package/dist/processor/utils/storage.util.d.ts +0 -8
  591. package/dist/processor/utils/storage.util.js +0 -106
  592. package/dist/processor/utils/storage.util.js.map +0 -1
  593. package/dist/products/services/products.service.d.ts +0 -577
  594. package/dist/products/services/products.service.js +0 -5845
  595. package/dist/products/services/products.service.js.map +0 -1
  596. package/dist/products/utils/crypt.utils.d.ts +0 -1
  597. package/dist/products/utils/crypt.utils.js +0 -17
  598. package/dist/products/utils/crypt.utils.js.map +0 -1
  599. package/dist/products/utils/functions.utils.d.ts +0 -13
  600. package/dist/products/utils/functions.utils.js +0 -294
  601. package/dist/products/utils/functions.utils.js.map +0 -1
  602. package/dist/products/utils/objects.utils.d.ts +0 -13
  603. package/dist/products/utils/objects.utils.js +0 -89
  604. package/dist/products/utils/objects.utils.js.map +0 -1
  605. package/dist/products/utils/string.utils.d.ts +0 -12
  606. package/dist/products/utils/string.utils.js +0 -168
  607. package/dist/products/utils/string.utils.js.map +0 -1
  608. package/dist/products/validators/index.d.ts +0 -33
  609. package/dist/products/validators/index.js +0 -75
  610. package/dist/products/validators/index.js.map +0 -1
  611. package/dist/products/validators/joi-validators/create.html.validator.d.ts +0 -2
  612. package/dist/products/validators/joi-validators/create.html.validator.js +0 -55
  613. package/dist/products/validators/joi-validators/create.html.validator.js.map +0 -1
  614. package/dist/products/validators/joi-validators/create.productAgent.validator.d.ts +0 -3
  615. package/dist/products/validators/joi-validators/create.productAgent.validator.js +0 -266
  616. package/dist/products/validators/joi-validators/create.productAgent.validator.js.map +0 -1
  617. package/dist/products/validators/joi-validators/create.productApp.validator.d.ts +0 -4
  618. package/dist/products/validators/joi-validators/create.productApp.validator.js +0 -61
  619. package/dist/products/validators/joi-validators/create.productApp.validator.js.map +0 -1
  620. package/dist/products/validators/joi-validators/create.productCache.validator.d.ts +0 -3
  621. package/dist/products/validators/joi-validators/create.productCache.validator.js +0 -46
  622. package/dist/products/validators/joi-validators/create.productCache.validator.js.map +0 -1
  623. package/dist/products/validators/joi-validators/create.productDatabase.validator.d.ts +0 -3
  624. package/dist/products/validators/joi-validators/create.productDatabase.validator.js +0 -77
  625. package/dist/products/validators/joi-validators/create.productDatabase.validator.js.map +0 -1
  626. package/dist/products/validators/joi-validators/create.productDatabaseAction.validator.d.ts +0 -7
  627. package/dist/products/validators/joi-validators/create.productDatabaseAction.validator.js +0 -194
  628. package/dist/products/validators/joi-validators/create.productDatabaseAction.validator.js.map +0 -1
  629. package/dist/products/validators/joi-validators/create.productDatabaseMigration.validator.d.ts +0 -4
  630. package/dist/products/validators/joi-validators/create.productDatabaseMigration.validator.js +0 -63
  631. package/dist/products/validators/joi-validators/create.productDatabaseMigration.validator.js.map +0 -1
  632. package/dist/products/validators/joi-validators/create.productEnv.validator.d.ts +0 -3
  633. package/dist/products/validators/joi-validators/create.productEnv.validator.js +0 -45
  634. package/dist/products/validators/joi-validators/create.productEnv.validator.js.map +0 -1
  635. package/dist/products/validators/joi-validators/create.productFallback.validator.d.ts +0 -3
  636. package/dist/products/validators/joi-validators/create.productFallback.validator.js +0 -64
  637. package/dist/products/validators/joi-validators/create.productFallback.validator.js.map +0 -1
  638. package/dist/products/validators/joi-validators/create.productFeature.validator.d.ts +0 -14
  639. package/dist/products/validators/joi-validators/create.productFeature.validator.js +0 -140
  640. package/dist/products/validators/joi-validators/create.productFeature.validator.js.map +0 -1
  641. package/dist/products/validators/joi-validators/create.productFunction.validator.d.ts +0 -3
  642. package/dist/products/validators/joi-validators/create.productFunction.validator.js +0 -57
  643. package/dist/products/validators/joi-validators/create.productFunction.validator.js.map +0 -1
  644. package/dist/products/validators/joi-validators/create.productGraph.validator.d.ts +0 -3
  645. package/dist/products/validators/joi-validators/create.productGraph.validator.js +0 -89
  646. package/dist/products/validators/joi-validators/create.productGraph.validator.js.map +0 -1
  647. package/dist/products/validators/joi-validators/create.productHealthcheck.validator.d.ts +0 -4
  648. package/dist/products/validators/joi-validators/create.productHealthcheck.validator.js +0 -58
  649. package/dist/products/validators/joi-validators/create.productHealthcheck.validator.js.map +0 -1
  650. package/dist/products/validators/joi-validators/create.productJob.validator.d.ts +0 -12
  651. package/dist/products/validators/joi-validators/create.productJob.validator.js +0 -60
  652. package/dist/products/validators/joi-validators/create.productJob.validator.js.map +0 -1
  653. package/dist/products/validators/joi-validators/create.productMessageBrokerTopic.validator.d.ts +0 -3
  654. package/dist/products/validators/joi-validators/create.productMessageBrokerTopic.validator.js +0 -52
  655. package/dist/products/validators/joi-validators/create.productMessageBrokerTopic.validator.js.map +0 -1
  656. package/dist/products/validators/joi-validators/create.productMessageBrokers.validator.d.ts +0 -3
  657. package/dist/products/validators/joi-validators/create.productMessageBrokers.validator.js +0 -193
  658. package/dist/products/validators/joi-validators/create.productMessageBrokers.validator.js.map +0 -1
  659. package/dist/products/validators/joi-validators/create.productModel.validator.d.ts +0 -3
  660. package/dist/products/validators/joi-validators/create.productModel.validator.js +0 -132
  661. package/dist/products/validators/joi-validators/create.productModel.validator.js.map +0 -1
  662. package/dist/products/validators/joi-validators/create.productNotification.validator.d.ts +0 -4
  663. package/dist/products/validators/joi-validators/create.productNotification.validator.js +0 -241
  664. package/dist/products/validators/joi-validators/create.productNotification.validator.js.map +0 -1
  665. package/dist/products/validators/joi-validators/create.productNotificationMessage.validator.d.ts +0 -3
  666. package/dist/products/validators/joi-validators/create.productNotificationMessage.validator.js +0 -57
  667. package/dist/products/validators/joi-validators/create.productNotificationMessage.validator.js.map +0 -1
  668. package/dist/products/validators/joi-validators/create.productNotifications.validator.d.ts +0 -0
  669. package/dist/products/validators/joi-validators/create.productNotifications.validator.js +0 -1
  670. package/dist/products/validators/joi-validators/create.productNotifications.validator.js.map +0 -1
  671. package/dist/products/validators/joi-validators/create.productQuota.validator.d.ts +0 -3
  672. package/dist/products/validators/joi-validators/create.productQuota.validator.js +0 -67
  673. package/dist/products/validators/joi-validators/create.productQuota.validator.js.map +0 -1
  674. package/dist/products/validators/joi-validators/create.productStorage.validator.d.ts +0 -3
  675. package/dist/products/validators/joi-validators/create.productStorage.validator.js +0 -158
  676. package/dist/products/validators/joi-validators/create.productStorage.validator.js.map +0 -1
  677. package/dist/products/validators/joi-validators/create.productVector.validator.d.ts +0 -3
  678. package/dist/products/validators/joi-validators/create.productVector.validator.js +0 -136
  679. package/dist/products/validators/joi-validators/create.productVector.validator.js.map +0 -1
  680. package/dist/products/validators/joi-validators/create.products.validator.d.ts +0 -3
  681. package/dist/products/validators/joi-validators/create.products.validator.js +0 -43
  682. package/dist/products/validators/joi-validators/create.products.validator.js.map +0 -1
  683. package/dist/products/validators/joi-validators/create.requestAction.validator.d.ts +0 -2
  684. package/dist/products/validators/joi-validators/create.requestAction.validator.js +0 -45
  685. package/dist/products/validators/joi-validators/create.requestAction.validator.js.map +0 -1
  686. package/dist/products/validators/joi-validators/create.userAuth.validator.d.ts +0 -3
  687. package/dist/products/validators/joi-validators/create.userAuth.validator.js +0 -48
  688. package/dist/products/validators/joi-validators/create.userAuth.validator.js.map +0 -1
  689. package/dist/products/validators/joi-validators/register.productWebhooks.validator.d.ts +0 -3
  690. package/dist/products/validators/joi-validators/register.productWebhooks.validator.js +0 -48
  691. package/dist/products/validators/joi-validators/register.productWebhooks.validator.js.map +0 -1
  692. package/dist/products/validators/joi-validators/update.dataValue.validator.d.ts +0 -3
  693. package/dist/products/validators/joi-validators/update.dataValue.validator.js +0 -103
  694. package/dist/products/validators/joi-validators/update.dataValue.validator.js.map +0 -1
  695. package/dist/products/validators/joi-validators/update.productApp.validator.d.ts +0 -3
  696. package/dist/products/validators/joi-validators/update.productApp.validator.js +0 -42
  697. package/dist/products/validators/joi-validators/update.productApp.validator.js.map +0 -1
  698. package/dist/products/validators/joi-validators/update.productCache.validator.d.ts +0 -3
  699. package/dist/products/validators/joi-validators/update.productCache.validator.js +0 -45
  700. package/dist/products/validators/joi-validators/update.productCache.validator.js.map +0 -1
  701. package/dist/products/validators/joi-validators/update.productDatabase.validator.d.ts +0 -3
  702. package/dist/products/validators/joi-validators/update.productDatabase.validator.js +0 -76
  703. package/dist/products/validators/joi-validators/update.productDatabase.validator.js.map +0 -1
  704. package/dist/products/validators/joi-validators/update.productDatabaseAction.validator.d.ts +0 -3
  705. package/dist/products/validators/joi-validators/update.productDatabaseAction.validator.js +0 -79
  706. package/dist/products/validators/joi-validators/update.productDatabaseAction.validator.js.map +0 -1
  707. package/dist/products/validators/joi-validators/update.productDatabaseMigration.validator.d.ts +0 -4
  708. package/dist/products/validators/joi-validators/update.productDatabaseMigration.validator.js +0 -64
  709. package/dist/products/validators/joi-validators/update.productDatabaseMigration.validator.js.map +0 -1
  710. package/dist/products/validators/joi-validators/update.productEnv.validator.d.ts +0 -3
  711. package/dist/products/validators/joi-validators/update.productEnv.validator.js +0 -46
  712. package/dist/products/validators/joi-validators/update.productEnv.validator.js.map +0 -1
  713. package/dist/products/validators/joi-validators/update.productFallback.validator.d.ts +0 -3
  714. package/dist/products/validators/joi-validators/update.productFallback.validator.js +0 -60
  715. package/dist/products/validators/joi-validators/update.productFallback.validator.js.map +0 -1
  716. package/dist/products/validators/joi-validators/update.productFeature.validator.d.ts +0 -3
  717. package/dist/products/validators/joi-validators/update.productFeature.validator.js +0 -53
  718. package/dist/products/validators/joi-validators/update.productFeature.validator.js.map +0 -1
  719. package/dist/products/validators/joi-validators/update.productFunction.validator.d.ts +0 -3
  720. package/dist/products/validators/joi-validators/update.productFunction.validator.js +0 -41
  721. package/dist/products/validators/joi-validators/update.productFunction.validator.js.map +0 -1
  722. package/dist/products/validators/joi-validators/update.productGraph.validator.d.ts +0 -3
  723. package/dist/products/validators/joi-validators/update.productGraph.validator.js +0 -88
  724. package/dist/products/validators/joi-validators/update.productGraph.validator.js.map +0 -1
  725. package/dist/products/validators/joi-validators/update.productJob.validator.d.ts +0 -3
  726. package/dist/products/validators/joi-validators/update.productJob.validator.js +0 -50
  727. package/dist/products/validators/joi-validators/update.productJob.validator.js.map +0 -1
  728. package/dist/products/validators/joi-validators/update.productMessageBrokerTopic.validator.d.ts +0 -3
  729. package/dist/products/validators/joi-validators/update.productMessageBrokerTopic.validator.js +0 -52
  730. package/dist/products/validators/joi-validators/update.productMessageBrokerTopic.validator.js.map +0 -1
  731. package/dist/products/validators/joi-validators/update.productNotification.validator.d.ts +0 -3
  732. package/dist/products/validators/joi-validators/update.productNotification.validator.js +0 -47
  733. package/dist/products/validators/joi-validators/update.productNotification.validator.js.map +0 -1
  734. package/dist/products/validators/joi-validators/update.productNotificationMessage.validator.d.ts +0 -3
  735. package/dist/products/validators/joi-validators/update.productNotificationMessage.validator.js +0 -58
  736. package/dist/products/validators/joi-validators/update.productNotificationMessage.validator.js.map +0 -1
  737. package/dist/products/validators/joi-validators/update.productQuota.validator.d.ts +0 -3
  738. package/dist/products/validators/joi-validators/update.productQuota.validator.js +0 -64
  739. package/dist/products/validators/joi-validators/update.productQuota.validator.js.map +0 -1
  740. package/dist/products/validators/joi-validators/update.userAuth.validator.d.ts +0 -3
  741. package/dist/products/validators/joi-validators/update.userAuth.validator.js +0 -48
  742. package/dist/products/validators/joi-validators/update.userAuth.validator.js.map +0 -1
  743. package/dist/resilience/fallback.service.d.ts +0 -141
  744. package/dist/resilience/fallback.service.js +0 -766
  745. package/dist/resilience/fallback.service.js.map +0 -1
  746. package/dist/resilience/healthcheck.service.d.ts +0 -163
  747. package/dist/resilience/healthcheck.service.js +0 -1012
  748. package/dist/resilience/healthcheck.service.js.map +0 -1
  749. package/dist/resilience/index.d.ts +0 -104
  750. package/dist/resilience/index.js +0 -140
  751. package/dist/resilience/index.js.map +0 -1
  752. package/dist/resilience/quota.service.d.ts +0 -83
  753. package/dist/resilience/quota.service.js +0 -518
  754. package/dist/resilience/quota.service.js.map +0 -1
  755. package/dist/resilience/resilience.service.d.ts +0 -98
  756. package/dist/resilience/resilience.service.js +0 -560
  757. package/dist/resilience/resilience.service.js.map +0 -1
  758. package/dist/resilience/types/index.d.ts +0 -513
  759. package/dist/resilience/types/index.js +0 -29
  760. package/dist/resilience/types/index.js.map +0 -1
  761. package/dist/secrets/index.d.ts +0 -10
  762. package/dist/secrets/index.js +0 -33
  763. package/dist/secrets/index.js.map +0 -1
  764. package/dist/secrets/secrets.resolver.d.ts +0 -52
  765. package/dist/secrets/secrets.resolver.js +0 -236
  766. package/dist/secrets/secrets.resolver.js.map +0 -1
  767. package/dist/secrets/secrets.service.d.ts +0 -93
  768. package/dist/secrets/secrets.service.js +0 -246
  769. package/dist/secrets/secrets.service.js.map +0 -1
  770. package/dist/secrets/secrets.types.d.ts +0 -188
  771. package/dist/secrets/secrets.types.js +0 -87
  772. package/dist/secrets/secrets.types.js.map +0 -1
  773. package/dist/sessions/index.d.ts +0 -50
  774. package/dist/sessions/index.js +0 -96
  775. package/dist/sessions/index.js.map +0 -1
  776. package/dist/sessions/sessions.helper.d.ts +0 -88
  777. package/dist/sessions/sessions.helper.js +0 -190
  778. package/dist/sessions/sessions.helper.js.map +0 -1
  779. package/dist/sessions/sessions.resolver.d.ts +0 -188
  780. package/dist/sessions/sessions.resolver.js +0 -603
  781. package/dist/sessions/sessions.resolver.js.map +0 -1
  782. package/dist/sessions/sessions.service.d.ts +0 -194
  783. package/dist/sessions/sessions.service.js +0 -988
  784. package/dist/sessions/sessions.service.js.map +0 -1
  785. package/dist/sessions/types/index.d.ts +0 -344
  786. package/dist/sessions/types/index.js +0 -6
  787. package/dist/sessions/types/index.js.map +0 -1
  788. package/dist/storage/index.d.ts +0 -66
  789. package/dist/storage/index.js +0 -99
  790. package/dist/storage/index.js.map +0 -1
  791. package/dist/storage/storage.service.d.ts +0 -177
  792. package/dist/storage/storage.service.js +0 -905
  793. package/dist/storage/storage.service.js.map +0 -1
  794. package/dist/storage/types/index.d.ts +0 -270
  795. package/dist/storage/types/index.js +0 -6
  796. package/dist/storage/types/index.js.map +0 -1
  797. package/dist/storage/utils/storage.util.d.ts +0 -62
  798. package/dist/storage/utils/storage.util.js +0 -593
  799. package/dist/storage/utils/storage.util.js.map +0 -1
  800. package/dist/types/actions.types.d.ts +0 -0
  801. package/dist/types/actions.types.js +0 -1
  802. package/dist/types/actions.types.js.map +0 -1
  803. package/dist/types/appBuilder.types.d.ts +0 -316
  804. package/dist/types/appBuilder.types.js +0 -3
  805. package/dist/types/appBuilder.types.js.map +0 -1
  806. package/dist/types/database.types.d.ts +0 -9
  807. package/dist/types/database.types.js +0 -3
  808. package/dist/types/database.types.js.map +0 -1
  809. package/dist/types/enums.d.ts +0 -231
  810. package/dist/types/enums.js +0 -261
  811. package/dist/types/enums.js.map +0 -1
  812. package/dist/types/index.d.ts +0 -12
  813. package/dist/types/index.js +0 -29
  814. package/dist/types/index.js.map +0 -1
  815. package/dist/types/index.types.d.ts +0 -30
  816. package/dist/types/index.types.js +0 -9
  817. package/dist/types/index.types.js.map +0 -1
  818. package/dist/types/inputs.types.d.ts +0 -114
  819. package/dist/types/inputs.types.js +0 -44
  820. package/dist/types/inputs.types.js.map +0 -1
  821. package/dist/types/logs.types.d.ts +0 -19
  822. package/dist/types/logs.types.js +0 -8
  823. package/dist/types/logs.types.js.map +0 -1
  824. package/dist/types/pricing.types.d.ts +0 -4
  825. package/dist/types/pricing.types.js +0 -3
  826. package/dist/types/pricing.types.js.map +0 -1
  827. package/dist/types/processor.types.d.ts +0 -602
  828. package/dist/types/processor.types.js +0 -19
  829. package/dist/types/processor.types.js.map +0 -1
  830. package/dist/types/productsBuilder.types.d.ts +0 -1566
  831. package/dist/types/productsBuilder.types.js +0 -303
  832. package/dist/types/productsBuilder.types.js.map +0 -1
  833. package/dist/types/request-tracker.interface.d.ts +0 -0
  834. package/dist/types/request-tracker.interface.js +0 -1
  835. package/dist/types/request-tracker.interface.js.map +0 -1
  836. package/dist/types/requests.types.d.ts +0 -8
  837. package/dist/types/requests.types.js +0 -3
  838. package/dist/types/requests.types.js.map +0 -1
  839. package/dist/types/workspaces.types.d.ts +0 -28
  840. package/dist/types/workspaces.types.js +0 -4
  841. package/dist/types/workspaces.types.js.map +0 -1
  842. package/dist/utils/constants.d.ts +0 -1
  843. package/dist/utils/constants.js +0 -5
  844. package/dist/utils/constants.js.map +0 -1
  845. package/dist/utils/index.d.ts +0 -2
  846. package/dist/utils/index.js +0 -109
  847. package/dist/utils/index.js.map +0 -1
  848. package/dist/vector/actions/action-manager.d.ts +0 -140
  849. package/dist/vector/actions/action-manager.js +0 -356
  850. package/dist/vector/actions/action-manager.js.map +0 -1
  851. package/dist/vector/adapters/base.adapter.d.ts +0 -169
  852. package/dist/vector/adapters/base.adapter.js +0 -218
  853. package/dist/vector/adapters/base.adapter.js.map +0 -1
  854. package/dist/vector/adapters/index.d.ts +0 -10
  855. package/dist/vector/adapters/index.js +0 -19
  856. package/dist/vector/adapters/index.js.map +0 -1
  857. package/dist/vector/adapters/memory.adapter.d.ts +0 -85
  858. package/dist/vector/adapters/memory.adapter.js +0 -505
  859. package/dist/vector/adapters/memory.adapter.js.map +0 -1
  860. package/dist/vector/adapters/pinecone.adapter.d.ts +0 -52
  861. package/dist/vector/adapters/pinecone.adapter.js +0 -433
  862. package/dist/vector/adapters/pinecone.adapter.js.map +0 -1
  863. package/dist/vector/adapters/qdrant.adapter.d.ts +0 -56
  864. package/dist/vector/adapters/qdrant.adapter.js +0 -442
  865. package/dist/vector/adapters/qdrant.adapter.js.map +0 -1
  866. package/dist/vector/adapters/weaviate.adapter.d.ts +0 -68
  867. package/dist/vector/adapters/weaviate.adapter.js +0 -661
  868. package/dist/vector/adapters/weaviate.adapter.js.map +0 -1
  869. package/dist/vector/index.d.ts +0 -36
  870. package/dist/vector/index.js +0 -70
  871. package/dist/vector/index.js.map +0 -1
  872. package/dist/vector/types/action.interface.d.ts +0 -195
  873. package/dist/vector/types/action.interface.js +0 -100
  874. package/dist/vector/types/action.interface.js.map +0 -1
  875. package/dist/vector/types/connection.interface.d.ts +0 -151
  876. package/dist/vector/types/connection.interface.js +0 -8
  877. package/dist/vector/types/connection.interface.js.map +0 -1
  878. package/dist/vector/types/embedding.interface.d.ts +0 -144
  879. package/dist/vector/types/embedding.interface.js +0 -8
  880. package/dist/vector/types/embedding.interface.js.map +0 -1
  881. package/dist/vector/types/enums.d.ts +0 -104
  882. package/dist/vector/types/enums.js +0 -113
  883. package/dist/vector/types/enums.js.map +0 -1
  884. package/dist/vector/types/index.d.ts +0 -11
  885. package/dist/vector/types/index.js +0 -23
  886. package/dist/vector/types/index.js.map +0 -1
  887. package/dist/vector/types/vector.interface.d.ts +0 -315
  888. package/dist/vector/types/vector.interface.js +0 -8
  889. package/dist/vector/types/vector.interface.js.map +0 -1
  890. package/dist/vector/utils/index.d.ts +0 -6
  891. package/dist/vector/utils/index.js +0 -11
  892. package/dist/vector/utils/index.js.map +0 -1
  893. package/dist/vector/utils/vector-error.d.ts +0 -69
  894. package/dist/vector/utils/vector-error.js +0 -116
  895. package/dist/vector/utils/vector-error.js.map +0 -1
  896. package/dist/vector/vector-database.service.d.ts +0 -484
  897. package/dist/vector/vector-database.service.js +0 -1002
  898. package/dist/vector/vector-database.service.js.map +0 -1
  899. package/dist/vector/vector.service.d.ts +0 -283
  900. package/dist/vector/vector.service.js +0 -544
  901. package/dist/vector/vector.service.js.map +0 -1
  902. package/dist/warehouse/executor/index.d.ts +0 -5
  903. package/dist/warehouse/executor/index.js +0 -12
  904. package/dist/warehouse/executor/index.js.map +0 -1
  905. package/dist/warehouse/executor/joins/index.d.ts +0 -5
  906. package/dist/warehouse/executor/joins/index.js +0 -11
  907. package/dist/warehouse/executor/joins/index.js.map +0 -1
  908. package/dist/warehouse/executor/joins/join-executor.d.ts +0 -101
  909. package/dist/warehouse/executor/joins/join-executor.js +0 -493
  910. package/dist/warehouse/executor/joins/join-executor.js.map +0 -1
  911. package/dist/warehouse/executor/joins/semantic-join.d.ts +0 -64
  912. package/dist/warehouse/executor/joins/semantic-join.js +0 -241
  913. package/dist/warehouse/executor/joins/semantic-join.js.map +0 -1
  914. package/dist/warehouse/executor/single-source-executor.d.ts +0 -155
  915. package/dist/warehouse/executor/single-source-executor.js +0 -573
  916. package/dist/warehouse/executor/single-source-executor.js.map +0 -1
  917. package/dist/warehouse/index.d.ts +0 -79
  918. package/dist/warehouse/index.js +0 -111
  919. package/dist/warehouse/index.js.map +0 -1
  920. package/dist/warehouse/parser/index.d.ts +0 -4
  921. package/dist/warehouse/parser/index.js +0 -10
  922. package/dist/warehouse/parser/index.js.map +0 -1
  923. package/dist/warehouse/parser/query-parser.d.ts +0 -181
  924. package/dist/warehouse/parser/query-parser.js +0 -415
  925. package/dist/warehouse/parser/query-parser.js.map +0 -1
  926. package/dist/warehouse/registry/data-source-registry.d.ts +0 -207
  927. package/dist/warehouse/registry/data-source-registry.js +0 -396
  928. package/dist/warehouse/registry/data-source-registry.js.map +0 -1
  929. package/dist/warehouse/registry/index.d.ts +0 -4
  930. package/dist/warehouse/registry/index.js +0 -9
  931. package/dist/warehouse/registry/index.js.map +0 -1
  932. package/dist/warehouse/transactions/index.d.ts +0 -4
  933. package/dist/warehouse/transactions/index.js +0 -9
  934. package/dist/warehouse/transactions/index.js.map +0 -1
  935. package/dist/warehouse/transactions/saga-orchestrator.d.ts +0 -92
  936. package/dist/warehouse/transactions/saga-orchestrator.js +0 -383
  937. package/dist/warehouse/transactions/saga-orchestrator.js.map +0 -1
  938. package/dist/warehouse/types/index.d.ts +0 -9
  939. package/dist/warehouse/types/index.js +0 -33
  940. package/dist/warehouse/types/index.js.map +0 -1
  941. package/dist/warehouse/types/join.interface.d.ts +0 -225
  942. package/dist/warehouse/types/join.interface.js +0 -87
  943. package/dist/warehouse/types/join.interface.js.map +0 -1
  944. package/dist/warehouse/types/query.interface.d.ts +0 -232
  945. package/dist/warehouse/types/query.interface.js +0 -9
  946. package/dist/warehouse/types/query.interface.js.map +0 -1
  947. package/dist/warehouse/types/transaction.interface.d.ts +0 -236
  948. package/dist/warehouse/types/transaction.interface.js +0 -74
  949. package/dist/warehouse/types/transaction.interface.js.map +0 -1
  950. package/dist/warehouse/types/where.interface.d.ts +0 -208
  951. package/dist/warehouse/types/where.interface.js +0 -89
  952. package/dist/warehouse/types/where.interface.js.map +0 -1
  953. package/dist/warehouse/warehouse.service.d.ts +0 -200
  954. package/dist/warehouse/warehouse.service.js +0 -470
  955. package/dist/warehouse/warehouse.service.js.map +0 -1
  956. package/dist/workflows/index.d.ts +0 -30
  957. package/dist/workflows/index.js +0 -64
  958. package/dist/workflows/index.js.map +0 -1
  959. package/dist/workflows/types/index.d.ts +0 -6
  960. package/dist/workflows/types/index.js +0 -23
  961. package/dist/workflows/types/index.js.map +0 -1
  962. package/dist/workflows/types/workflows.types.d.ts +0 -1095
  963. package/dist/workflows/types/workflows.types.js +0 -13
  964. package/dist/workflows/types/workflows.types.js.map +0 -1
  965. package/dist/workflows/workflow-builder.d.ts +0 -70
  966. package/dist/workflows/workflow-builder.js +0 -353
  967. package/dist/workflows/workflow-builder.js.map +0 -1
  968. package/dist/workflows/workflow-executor.d.ts +0 -289
  969. package/dist/workflows/workflow-executor.js +0 -2467
  970. package/dist/workflows/workflow-executor.js.map +0 -1
  971. package/dist/workflows/workflows.service.d.ts +0 -412
  972. package/dist/workflows/workflows.service.js +0 -2233
  973. package/dist/workflows/workflows.service.js.map +0 -1
@@ -1,1240 +0,0 @@
1
- /**
2
- * Agent Types
3
- *
4
- * Type definitions for the Ductape Agentic Workflows API.
5
- * Enables AI-driven, autonomous multi-step processes where an LLM
6
- * dynamically decides the next action based on observations and reasoning.
7
- */
8
- import { RedisClientType } from 'redis';
9
- import { IActionRequest, INotificationRequest, IDbActionRequest, IStorageRequest, IFeatureInput } from '../../types';
10
- /**
11
- * Configuration options for AgentsService initialization
12
- */
13
- export interface IAgentServiceConfig {
14
- redis_client: RedisClientType;
15
- /** Workspace ID */
16
- workspace_id: string;
17
- /** Public key for authentication */
18
- public_key: string;
19
- /** User ID */
20
- user_id: string;
21
- /** Authentication token */
22
- token: string;
23
- /** Environment type (staging, production, local) */
24
- env_type: string;
25
- }
26
- /**
27
- * Supported LLM providers
28
- */
29
- export type LLMProvider = 'anthropic' | 'openai' | 'google' | 'cohere' | 'custom';
30
- /**
31
- * LLM model configuration
32
- */
33
- export interface ILLMConfig {
34
- /** LLM provider */
35
- provider: LLMProvider;
36
- /** Model identifier (e.g., 'claude-sonnet-4-20250514', 'gpt-4') */
37
- model: string;
38
- /** Sampling temperature (0-1) */
39
- temperature?: number;
40
- /** Maximum tokens to generate */
41
- maxTokens?: number;
42
- /** Top-p sampling */
43
- topP?: number;
44
- /** Stop sequences */
45
- stopSequences?: string[];
46
- /** API key (can be pulled from secrets) */
47
- apiKey?: string;
48
- /** API base URL for custom providers */
49
- baseUrl?: string;
50
- /** Custom headers */
51
- headers?: Record<string, string>;
52
- /** Request timeout in ms */
53
- timeout?: number;
54
- }
55
- /**
56
- * Model configuration overrides
57
- * These can be applied at runtime to override settings from the model entity
58
- */
59
- export interface IModelConfigOverrides {
60
- /** Override temperature */
61
- temperature?: number;
62
- /** Override max tokens */
63
- maxTokens?: number;
64
- /** Override top-p sampling */
65
- topP?: number;
66
- /** Override stop sequences */
67
- stopSequences?: string[];
68
- /** Override timeout in ms */
69
- timeout?: number;
70
- }
71
- /**
72
- * Tool parameter types
73
- */
74
- export type ToolParamType = 'string' | 'number' | 'boolean' | 'array' | 'object';
75
- /**
76
- * Tool parameter definition
77
- */
78
- export interface IToolParam {
79
- /** Parameter type */
80
- type: ToolParamType;
81
- /** Description for LLM */
82
- description: string;
83
- /** Whether parameter is required */
84
- required?: boolean;
85
- /** Enum values for constrained inputs */
86
- enum?: string[];
87
- /** Default value */
88
- default?: unknown;
89
- /** For array types, the item type */
90
- items?: IToolParam;
91
- /** For object types, nested properties */
92
- properties?: Record<string, IToolParam>;
93
- }
94
- /**
95
- * Tool call result
96
- */
97
- export interface IToolCallResult {
98
- /** Tool tag */
99
- tool: string;
100
- /** Input parameters used */
101
- input: Record<string, unknown>;
102
- /** Tool output */
103
- output: unknown;
104
- /** Whether the call was successful */
105
- success: boolean;
106
- /** Error message if failed */
107
- error?: string;
108
- /** Execution time in ms */
109
- duration: number;
110
- /** Timestamp */
111
- timestamp: number;
112
- }
113
- /**
114
- * Agent tool definition
115
- */
116
- export interface IAgentTool<TParams = Record<string, unknown>, TResult = unknown> {
117
- /** Unique tool identifier */
118
- tag: string;
119
- /** Human-readable name */
120
- name?: string;
121
- /** Description for LLM to understand when to use this tool */
122
- description: string;
123
- /** Input parameter schema */
124
- parameters: Record<string, IToolParam>;
125
- /** Tool implementation */
126
- handler: (ctx: IAgentToolContext, params: TParams) => Promise<TResult>;
127
- /** Whether this tool requires human confirmation before execution */
128
- requiresConfirmation?: boolean;
129
- /** Estimated cost for quota tracking */
130
- costEstimate?: number;
131
- /** Timeout for this tool in ms */
132
- timeout?: number;
133
- /** Number of retries on failure */
134
- retries?: number;
135
- /** Tool-level resilience configuration */
136
- resilience?: IAgentToolResilienceConfig;
137
- }
138
- /**
139
- * Short-term memory configuration
140
- */
141
- export interface IShortTermMemoryConfig {
142
- /** Maximum messages to keep in context */
143
- maxMessages?: number;
144
- /** Summarize conversation after this many messages */
145
- summarizeAfter?: number;
146
- /** Include tool call results in context */
147
- includeToolResults?: boolean;
148
- /** Strategy for truncation */
149
- truncationStrategy?: 'fifo' | 'sliding_window' | 'summarize';
150
- }
151
- /**
152
- * Long-term memory configuration
153
- */
154
- export interface ILongTermMemoryConfig {
155
- /** Enable long-term memory */
156
- enabled: boolean;
157
- /** Vector store tag for retrieval */
158
- vectorStore?: string;
159
- /** Number of results to retrieve */
160
- retrieveTopK?: number;
161
- /** Minimum similarity threshold */
162
- minSimilarity?: number;
163
- /** Automatically store new learnings */
164
- autoStore?: boolean;
165
- /** Namespace for memory isolation */
166
- namespace?: string;
167
- }
168
- /**
169
- * Full memory configuration
170
- */
171
- export interface IAgentMemoryConfig {
172
- /** Short-term (conversation) memory */
173
- shortTerm?: IShortTermMemoryConfig;
174
- /** Long-term (persistent) memory */
175
- longTerm?: ILongTermMemoryConfig;
176
- }
177
- /**
178
- * Stop condition based on tool call
179
- */
180
- export interface IToolStopCondition {
181
- /** Stop when this tool is called */
182
- tool: string;
183
- /** Optional: only stop if tool output matches */
184
- outputMatch?: Record<string, unknown>;
185
- }
186
- /**
187
- * Stop condition based on output content
188
- */
189
- export interface IOutputStopCondition {
190
- /** Stop when output contains these fields/values */
191
- output: Record<string, unknown>;
192
- }
193
- /**
194
- * Stop condition based on LLM response
195
- */
196
- export interface IMessageStopCondition {
197
- /** Stop when LLM says it's done (pattern match) */
198
- messagePattern?: string | RegExp;
199
- }
200
- /**
201
- * Union of stop condition types
202
- */
203
- export type StopCondition = IToolStopCondition | IOutputStopCondition | IMessageStopCondition;
204
- /**
205
- * Termination configuration
206
- */
207
- export interface IAgentTerminationConfig {
208
- /** Maximum number of agent loop iterations */
209
- maxIterations?: number;
210
- /** Maximum total tokens to use */
211
- maxTokens?: number;
212
- /** Timeout duration (ms or duration string like '10m') */
213
- timeout?: number | string;
214
- /** Explicit stop conditions */
215
- stopConditions?: StopCondition[];
216
- /** Whether to allow manual termination via signal */
217
- allowManualStop?: boolean;
218
- }
219
- /**
220
- * Hook timing
221
- */
222
- export type HookTiming = 'before' | 'after';
223
- /**
224
- * Agent hook definition
225
- */
226
- export interface IAgentHook {
227
- /** Hook name */
228
- name: string;
229
- /** When to trigger (before/after) */
230
- timing: HookTiming;
231
- /** Event to hook into */
232
- event: 'iteration' | 'tool_call' | 'llm_call' | 'termination';
233
- /** Hook handler */
234
- handler: (ctx: IAgentHookContext) => Promise<void | boolean>;
235
- }
236
- /**
237
- * Context provided to hooks
238
- */
239
- export interface IAgentHookContext {
240
- /** Current agent state */
241
- state: IAgentState;
242
- /** Event data */
243
- event: {
244
- type: string;
245
- data: unknown;
246
- };
247
- /** Abort the current operation */
248
- abort: (reason: string) => void;
249
- /** Modify the operation */
250
- modify: (changes: Record<string, unknown>) => void;
251
- }
252
- /**
253
- * Approval request
254
- */
255
- export interface IApprovalRequest {
256
- /** Request ID */
257
- id: string;
258
- /** Tool being called */
259
- tool: string;
260
- /** Parameters to approve */
261
- params: Record<string, unknown>;
262
- /** Reason for approval request */
263
- reason: string;
264
- /** Timeout for approval */
265
- timeout?: number;
266
- }
267
- /**
268
- * Approval response
269
- */
270
- export interface IApprovalResponse {
271
- /** Whether approved */
272
- approved: boolean;
273
- /** Modified parameters (if changed) */
274
- modifiedParams?: Record<string, unknown>;
275
- /** Rejection reason */
276
- reason?: string;
277
- }
278
- /**
279
- * Human-in-the-loop configuration
280
- */
281
- export interface IHumanInLoopConfig {
282
- /** Enable human-in-the-loop */
283
- enabled: boolean;
284
- /** Tools that always require approval */
285
- alwaysRequireApproval?: string[];
286
- /** Default timeout for approval requests */
287
- approvalTimeout?: number | string;
288
- /** Webhook to call for approvals */
289
- approvalWebhook?: string;
290
- /** Broker topic to publish approval requests */
291
- approvalBroker?: {
292
- broker: string;
293
- event: string;
294
- };
295
- }
296
- /**
297
- * Stream event types
298
- */
299
- export type AgentStreamEventType = 'thinking_start' | 'thinking_delta' | 'thinking_end' | 'tool_start' | 'tool_end' | 'message_start' | 'message_delta' | 'message_end' | 'iteration_start' | 'iteration_end' | 'agent_complete' | 'error';
300
- /**
301
- * Stream event
302
- */
303
- export interface IAgentStreamEvent {
304
- /** Event type */
305
- type: AgentStreamEventType;
306
- /** Event timestamp */
307
- timestamp: number;
308
- /** Event data */
309
- data: unknown;
310
- /** Current iteration */
311
- iteration?: number;
312
- }
313
- /**
314
- * Streaming configuration
315
- */
316
- export interface IAgentStreamConfig {
317
- /** Enable streaming */
318
- enabled: boolean;
319
- /** Events to stream */
320
- events?: AgentStreamEventType[];
321
- /** Webhook to send events to */
322
- webhook?: string;
323
- /** Broker to publish events to */
324
- broker?: {
325
- broker: string;
326
- event: string;
327
- };
328
- }
329
- /**
330
- * Tool-level resilience configuration
331
- * References existing product-level healthchecks, quotas, and fallbacks by tag
332
- */
333
- export interface IAgentToolResilienceConfig {
334
- /** Tag of an existing quota to use for this tool */
335
- quota?: string;
336
- /** Tag of an existing fallback to use for this tool */
337
- fallback?: string;
338
- /** Tag of an existing healthcheck to verify before execution */
339
- healthcheck?: string;
340
- }
341
- /**
342
- * Agent-level resilience configuration
343
- * References existing product-level healthchecks, quotas, and fallbacks
344
- *
345
- * Note: Healthchecks, quotas, and fallbacks must be defined at the product level
346
- * using the resilience API. Agents can only reference existing configurations.
347
- *
348
- * @example
349
- * ```typescript
350
- * // First, define resilience configs at the product level
351
- * await ductape.resilience.createHealthcheck({
352
- * product: 'my-product',
353
- * tag: 'anthropic-health',
354
- * // ... healthcheck config
355
- * });
356
- *
357
- * await ductape.resilience.createQuota({
358
- * product: 'my-product',
359
- * tag: 'llm-quota',
360
- * // ... quota config
361
- * });
362
- *
363
- * // Then reference them in agent definition
364
- * const agent = await ductape.agents.define({
365
- * // ...
366
- * resilience: {
367
- * defaults: {
368
- * healthcheck: 'anthropic-health',
369
- * quota: 'llm-quota',
370
- * },
371
- * },
372
- * });
373
- * ```
374
- */
375
- export interface IAgentResilienceConfig {
376
- /** Default resilience settings applied to all tools */
377
- defaults?: {
378
- /** Tag of an existing quota to use by default */
379
- quota?: string;
380
- /** Tag of an existing fallback to use by default */
381
- fallback?: string;
382
- /** Tag of an existing healthcheck to verify before tool execution */
383
- healthcheck?: string;
384
- };
385
- /** Tool-specific resilience overrides (keyed by tool tag) */
386
- toolOverrides?: Record<string, IAgentToolResilienceConfig>;
387
- }
388
- /**
389
- * Full agent definition options
390
- */
391
- export interface IDefineAgentOptions<TInput = Record<string, unknown>> {
392
- /** Target product (optional if using builder pattern) */
393
- product?: string;
394
- /** Unique agent tag */
395
- tag: string;
396
- /** Human-readable name */
397
- name: string;
398
- /** Agent description */
399
- description?: string;
400
- /**
401
- * Model tag referencing a model configuration defined at the product level.
402
- * Model configurations are managed via product.createModel() or the Ductape dashboard.
403
- */
404
- model: string;
405
- /**
406
- * Model configuration overrides applied at agent level.
407
- * These override settings from the referenced model entity.
408
- */
409
- modelConfig?: IModelConfigOverrides;
410
- /** System prompt defining agent behavior */
411
- systemPrompt: string;
412
- /** Available tools */
413
- tools: IAgentTool[];
414
- /** Termination configuration */
415
- termination?: IAgentTerminationConfig;
416
- /** Memory configuration */
417
- memory?: IAgentMemoryConfig;
418
- /** Hooks for customization */
419
- hooks?: IAgentHook[];
420
- /** Human-in-the-loop configuration */
421
- humanInLoop?: IHumanInLoopConfig;
422
- /** Streaming configuration */
423
- streaming?: IAgentStreamConfig;
424
- /** Input schema validation */
425
- inputSchema?: Record<string, IToolParam>;
426
- /** Environment configurations */
427
- envs?: IAgentEnvConfig[];
428
- /** Resilience configuration (healthchecks, quotas, fallbacks) */
429
- resilience?: IAgentResilienceConfig;
430
- }
431
- /**
432
- * Environment-specific agent configuration
433
- */
434
- export interface IAgentEnvConfig {
435
- /** Environment slug */
436
- slug: string;
437
- /** Whether active in this env */
438
- active?: boolean;
439
- /** Environment-specific model tag override */
440
- model?: string;
441
- /** Environment-specific model config overrides */
442
- modelConfig?: IModelConfigOverrides;
443
- /** Environment-specific tool overrides */
444
- toolOverrides?: Record<string, Partial<IAgentTool>>;
445
- }
446
- /**
447
- * Defined agent (result of define())
448
- */
449
- export interface IDefinedAgent {
450
- /** Agent tag */
451
- tag: string;
452
- /** Agent name */
453
- name: string;
454
- /** Description */
455
- description?: string;
456
- /** Model tag referencing a product-level model configuration */
457
- model: string;
458
- /** Agent-level model config overrides */
459
- modelConfig?: IModelConfigOverrides;
460
- /** System prompt */
461
- systemPrompt: string;
462
- /** Tool definitions (without handlers for storage) */
463
- toolSchemas: IAgentToolSchema[];
464
- /** Termination config */
465
- termination?: IAgentTerminationConfig;
466
- /** Memory config */
467
- memory?: IAgentMemoryConfig;
468
- /** Human-in-loop config */
469
- humanInLoop?: IHumanInLoopConfig;
470
- /** Streaming config */
471
- streaming?: IAgentStreamConfig;
472
- /** Input schema */
473
- inputSchema?: Record<string, IToolParam>;
474
- /** Environment configs */
475
- envs?: IAgentEnvConfig[];
476
- /** Resilience config */
477
- resilience?: IAgentResilienceConfig;
478
- }
479
- /**
480
- * Tool schema (without handler, for storage/API)
481
- */
482
- export interface IAgentToolSchema {
483
- tag: string;
484
- name?: string;
485
- description: string;
486
- parameters: Record<string, IToolParam>;
487
- requiresConfirmation?: boolean;
488
- costEstimate?: number;
489
- timeout?: number;
490
- retries?: number;
491
- /** Tool-level resilience configuration */
492
- resilience?: IAgentToolResilienceConfig;
493
- }
494
- /**
495
- * Options for running an agent
496
- */
497
- export interface IRunAgentOptions {
498
- /** Product tag */
499
- product: string;
500
- /** Environment slug */
501
- env: string;
502
- /** Agent tag */
503
- tag: string;
504
- /** Agent input */
505
- input: Record<string, unknown>;
506
- /** Initial conversation context */
507
- conversationContext?: IConversationMessage[];
508
- /** Session token in format: session_tag:jwt_token */
509
- session?: string;
510
- /** Idempotency key */
511
- idempotency_key?: string;
512
- /** Cache tag */
513
- cache?: string;
514
- /** Override termination config */
515
- termination?: Partial<IAgentTerminationConfig>;
516
- /** Runtime model configuration overrides (merged with model entity settings) */
517
- modelConfig?: IModelConfigOverrides;
518
- /** Enable streaming */
519
- stream?: boolean;
520
- /** Stream callback */
521
- onStream?: (event: IAgentStreamEvent) => void;
522
- }
523
- /**
524
- * Conversation message
525
- */
526
- export interface IConversationMessage {
527
- /** Message role */
528
- role: 'user' | 'assistant' | 'system' | 'tool';
529
- /** Message content */
530
- content: string;
531
- /** Tool call info (for tool messages) */
532
- toolCall?: {
533
- id: string;
534
- name: string;
535
- input: Record<string, unknown>;
536
- };
537
- /** Tool result (for tool messages) */
538
- toolResult?: unknown;
539
- /** Timestamp */
540
- timestamp?: number;
541
- }
542
- /**
543
- * Agent execution state
544
- */
545
- export interface IAgentState {
546
- /** Execution ID */
547
- execution_id: string;
548
- /** Agent tag */
549
- agent_tag: string;
550
- /** Current status */
551
- status: AgentStatus;
552
- /** Input data */
553
- input: Record<string, unknown>;
554
- /** Current iteration */
555
- iteration: number;
556
- /** Conversation history */
557
- conversation: IConversationMessage[];
558
- /** Tool call history */
559
- toolCalls: IToolCallResult[];
560
- /** Custom state data */
561
- data: Record<string, unknown>;
562
- /** Token usage */
563
- usage: ITokenUsage;
564
- /** Start timestamp */
565
- startedAt: number;
566
- /** Last update timestamp */
567
- updatedAt: number;
568
- /** Error if failed */
569
- error?: string;
570
- }
571
- /**
572
- * Agent execution status
573
- */
574
- export type AgentStatus = 'pending' | 'running' | 'waiting_approval' | 'paused' | 'completed' | 'failed' | 'cancelled' | 'timeout';
575
- /**
576
- * Token usage tracking
577
- */
578
- export interface ITokenUsage {
579
- /** Input tokens */
580
- inputTokens: number;
581
- /** Output tokens */
582
- outputTokens: number;
583
- /** Total tokens */
584
- totalTokens: number;
585
- /** Cache read tokens */
586
- cacheReadTokens?: number;
587
- /** Cache write tokens */
588
- cacheWriteTokens?: number;
589
- }
590
- /**
591
- * Agent execution result
592
- */
593
- export interface IAgentExecutionResult<TOutput = unknown> {
594
- /** Execution ID */
595
- execution_id: string;
596
- /** Final status */
597
- status: AgentStatus;
598
- /** Output data */
599
- output?: TOutput;
600
- /** Final assistant message */
601
- finalMessage?: string;
602
- /** Error message if failed */
603
- error?: string;
604
- /** Number of iterations */
605
- iterations: number;
606
- /** All tool calls made */
607
- toolCalls: IToolCallResult[];
608
- /** Token usage */
609
- usage: ITokenUsage;
610
- /** Execution time in ms */
611
- executionTime: number;
612
- /** Termination reason */
613
- terminationReason?: string;
614
- }
615
- /**
616
- * Context for tool handlers - provides access to Ductape components
617
- */
618
- export interface IAgentToolContext {
619
- /** Agent input (read-only) */
620
- readonly input: Record<string, unknown>;
621
- /** Execution metadata */
622
- readonly execution_id: string;
623
- readonly agent_tag: string;
624
- readonly env: string;
625
- readonly product: string;
626
- /** Current iteration */
627
- readonly iteration: number;
628
- /** Get conversation history */
629
- getConversationHistory(): IConversationMessage[];
630
- /** Get tool call history */
631
- getToolCallHistory(): IToolCallResult[];
632
- /** Session token in format: session_tag:jwt_token */
633
- readonly session?: string;
634
- /** Action context */
635
- action: IAgentActionContext;
636
- /** Database context */
637
- database: IAgentDatabaseContext;
638
- /** Graph context */
639
- graph: IAgentGraphContext;
640
- /** Notification context */
641
- notification: IAgentNotificationContext;
642
- /** Storage context */
643
- storage: IAgentStorageContext;
644
- /** Message broker (Ductape primitive). Prefer over publish. */
645
- messaging: IAgentMessagingContext;
646
- /** @deprecated Prefer ctx.messaging.produce() */
647
- publish: IAgentPublishContext;
648
- /** Feature context */
649
- feature: IAgentFeatureContext;
650
- /** Resilience context (quotas, fallbacks, healthchecks) */
651
- resilience: IAgentResilienceContext;
652
- /** Set custom state */
653
- setState(key: string, value: unknown): void;
654
- /** Get custom state */
655
- getState<T>(key: string): T | undefined;
656
- /** Store in long-term memory */
657
- remember(content: string, metadata?: Record<string, unknown>): Promise<void>;
658
- /** Retrieve from long-term memory */
659
- recall(query: string, topK?: number): Promise<IMemoryResult[]>;
660
- /** Logger */
661
- log: IAgentLogger;
662
- }
663
- /**
664
- * Memory retrieval result
665
- */
666
- export interface IMemoryResult {
667
- content: string;
668
- metadata?: Record<string, unknown>;
669
- similarity: number;
670
- }
671
- /**
672
- * Logger interface
673
- */
674
- export interface IAgentLogger {
675
- debug(message: string, data?: Record<string, unknown>): void;
676
- info(message: string, data?: Record<string, unknown>): void;
677
- warn(message: string, data?: Record<string, unknown>): void;
678
- error(message: string, data?: Record<string, unknown>): void;
679
- }
680
- /**
681
- * Action context for agent tools
682
- */
683
- export interface IAgentActionContext {
684
- run<T>(options: {
685
- app: string;
686
- event: string;
687
- input: IActionRequest;
688
- retries?: number;
689
- timeout?: number;
690
- }): Promise<T>;
691
- }
692
- /**
693
- * Database context for agent tools
694
- */
695
- export interface IAgentDatabaseContext {
696
- execute<T>(options: {
697
- database: string;
698
- event: string;
699
- input: IDbActionRequest;
700
- retries?: number;
701
- timeout?: number;
702
- }): Promise<T>;
703
- query<T>(options: {
704
- database: string;
705
- event: string;
706
- params?: Record<string, unknown>;
707
- }): Promise<T[]>;
708
- insert<T>(options: {
709
- database: string;
710
- event: string;
711
- data: Record<string, unknown>;
712
- }): Promise<T>;
713
- update<T>(options: {
714
- database: string;
715
- event: string;
716
- data: Record<string, unknown>;
717
- where: Record<string, unknown>;
718
- }): Promise<T>;
719
- delete(options: {
720
- database: string;
721
- event: string;
722
- where: Record<string, unknown>;
723
- }): Promise<boolean>;
724
- }
725
- /**
726
- * Graph context for agent tools
727
- */
728
- export interface IAgentGraphContext {
729
- execute<T>(options: {
730
- graph: string;
731
- action: string;
732
- input: Record<string, unknown>;
733
- }): Promise<T>;
734
- createNode<T>(options: {
735
- graph: string;
736
- labels: string[];
737
- properties: Record<string, unknown>;
738
- }): Promise<T>;
739
- updateNode<T>(options: {
740
- graph: string;
741
- id: string | number;
742
- properties: Record<string, unknown>;
743
- }): Promise<T>;
744
- deleteNode(options: {
745
- graph: string;
746
- id: string | number;
747
- }): Promise<void>;
748
- createRelationship<T>(options: {
749
- graph: string;
750
- from: string;
751
- to: string;
752
- type: string;
753
- properties?: Record<string, unknown>;
754
- }): Promise<T>;
755
- traverse<T>(options: {
756
- graph: string;
757
- startNodeId: string | number;
758
- direction?: 'outgoing' | 'incoming' | 'both';
759
- relationshipTypes?: string[];
760
- maxDepth?: number;
761
- }): Promise<T>;
762
- query<T>(options: {
763
- graph: string;
764
- action: string;
765
- params?: Record<string, unknown>;
766
- }): Promise<T[]>;
767
- }
768
- /**
769
- * Notification context for agent tools
770
- */
771
- export interface IAgentNotificationContext {
772
- send(options: {
773
- notification: string;
774
- event: string;
775
- input: INotificationRequest;
776
- retries?: number;
777
- }): Promise<void>;
778
- email(options: {
779
- notification: string;
780
- event: string;
781
- recipients: string[];
782
- subject: Record<string, unknown>;
783
- template: Record<string, unknown>;
784
- }): Promise<void>;
785
- push(options: {
786
- notification: string;
787
- event: string;
788
- tokens: string[];
789
- title: Record<string, unknown>;
790
- body: Record<string, unknown>;
791
- data?: Record<string, unknown>;
792
- }): Promise<void>;
793
- sms(options: {
794
- notification: string;
795
- event: string;
796
- phones: string[];
797
- message: Record<string, unknown>;
798
- }): Promise<void>;
799
- }
800
- /**
801
- * Storage context for agent tools
802
- */
803
- export interface IAgentStorageContext {
804
- upload(options: {
805
- storage: string;
806
- event: string;
807
- input: IStorageRequest;
808
- retries?: number;
809
- }): Promise<IFileUploadResult>;
810
- download(options: {
811
- storage: string;
812
- event: string;
813
- input: IStorageRequest;
814
- }): Promise<IFileDownloadResult>;
815
- delete(options: {
816
- storage: string;
817
- event: string;
818
- input: {
819
- file_key: string;
820
- };
821
- }): Promise<void>;
822
- }
823
- /**
824
- * Messaging context for agent tools (Ductape primitive).
825
- * Use ctx.messaging.produce() to publish to a message broker.
826
- */
827
- export interface IAgentMessagingContext {
828
- produce(options: {
829
- event: string;
830
- message: Record<string, unknown>;
831
- }): Promise<void>;
832
- }
833
- /**
834
- * Publish context for agent tools
835
- * @deprecated Prefer ctx.messaging.produce()
836
- */
837
- export interface IAgentPublishContext {
838
- send(options: {
839
- broker: string;
840
- event: string;
841
- input: {
842
- message: Record<string, unknown>;
843
- };
844
- retries?: number;
845
- }): Promise<void>;
846
- }
847
- /**
848
- * Feature context for agent tools
849
- */
850
- export interface IAgentFeatureContext {
851
- run<T>(options: {
852
- feature: string;
853
- input: Record<string, unknown>;
854
- retries?: number;
855
- timeout?: number;
856
- }): Promise<T>;
857
- }
858
- /**
859
- * Quota context for agent resilience operations
860
- */
861
- export interface IAgentQuotaContext {
862
- /**
863
- * Run an operation through a quota (weighted load balancing)
864
- * Distributes requests across providers based on weight
865
- */
866
- run<T>(options: {
867
- /** Quota tag defined at product level */
868
- tag: string;
869
- /** Input to pass to the provider */
870
- input: Record<string, unknown>;
871
- /** Session token in format: session_tag:jwt_token */
872
- session?: string;
873
- }): Promise<T>;
874
- /**
875
- * Get current quota usage/status
876
- */
877
- status(options: {
878
- /** Quota tag */
879
- tag: string;
880
- }): Promise<IAgentQuotaStatus>;
881
- }
882
- /**
883
- * Fallback context for agent resilience operations
884
- */
885
- export interface IAgentFallbackContext {
886
- /**
887
- * Run an operation through a fallback chain
888
- * Tries primary provider first, falls back to alternatives on failure
889
- */
890
- run<T>(options: {
891
- /** Fallback tag defined at product level */
892
- tag: string;
893
- /** Input to pass to the provider */
894
- input: Record<string, unknown>;
895
- /** Session token in format: session_tag:jwt_token */
896
- session?: string;
897
- }): Promise<T>;
898
- }
899
- /**
900
- * Healthcheck context for agent resilience operations
901
- */
902
- export interface IAgentHealthcheckContext {
903
- /**
904
- * Check health status of a provider/service
905
- */
906
- check(options: {
907
- /** Healthcheck tag defined at product level */
908
- tag: string;
909
- /** Environment to check */
910
- env?: string;
911
- }): Promise<IAgentHealthcheckResult>;
912
- /**
913
- * Get healthcheck status for all configured checks
914
- */
915
- status(): Promise<Record<string, IAgentHealthcheckResult>>;
916
- }
917
- /**
918
- * Resilience context for agent tools
919
- * Provides access to quota, fallback, and healthcheck operations
920
- *
921
- * @example
922
- * ```typescript
923
- * // Run through quota
924
- * const result = await ctx.resilience.quota.run({
925
- * tag: 'llm-quota',
926
- * input: { prompt: 'Hello' },
927
- * });
928
- *
929
- * // Run through fallback
930
- * const result = await ctx.resilience.fallback.run({
931
- * tag: 'llm-fallback',
932
- * input: { prompt: 'Hello' },
933
- * });
934
- *
935
- * // Check health
936
- * const health = await ctx.resilience.healthcheck.check({
937
- * tag: 'api-health',
938
- * });
939
- * ```
940
- */
941
- export interface IAgentResilienceContext {
942
- /** Quota operations */
943
- quota: IAgentQuotaContext;
944
- /** Fallback operations */
945
- fallback: IAgentFallbackContext;
946
- /** Healthcheck operations */
947
- healthcheck: IAgentHealthcheckContext;
948
- }
949
- /**
950
- * Healthcheck result
951
- */
952
- export interface IAgentHealthcheckResult {
953
- /** Healthcheck tag */
954
- tag: string;
955
- /** Current status */
956
- status: 'healthy' | 'unhealthy' | 'degraded' | 'unknown';
957
- /** Last check timestamp */
958
- lastChecked?: number;
959
- /** Last successful check timestamp */
960
- lastAvailable?: number;
961
- /** Latency of last check in ms */
962
- lastLatency?: number;
963
- /** Average latency in ms */
964
- averageLatency?: number;
965
- /** Error message if unhealthy */
966
- error?: string;
967
- }
968
- /**
969
- * Quota status
970
- */
971
- export interface IAgentQuotaStatus {
972
- /** Quota tag */
973
- tag: string;
974
- /** Total quota configured */
975
- totalQuota?: number;
976
- /** Current usage */
977
- usedQuota?: number;
978
- /** Remaining quota */
979
- remainingQuota?: number;
980
- /** Provider statuses */
981
- providers: Array<{
982
- name: string;
983
- weight: number;
984
- uses: number;
985
- status: 'available' | 'unavailable' | 'degraded';
986
- healthcheck?: string;
987
- }>;
988
- }
989
- /**
990
- * File upload result
991
- */
992
- export interface IFileUploadResult {
993
- file_key: string;
994
- url?: string;
995
- size?: number;
996
- content_type?: string;
997
- }
998
- /**
999
- * File download result
1000
- */
1001
- export interface IFileDownloadResult {
1002
- content: Buffer | string;
1003
- content_type?: string;
1004
- size?: number;
1005
- }
1006
- /**
1007
- * Options for converting an agent into a tool
1008
- */
1009
- export interface IAgentAsToolOptions {
1010
- /** Custom tool tag (defaults to agent tag) */
1011
- toolTag?: string;
1012
- /** Custom tool name (defaults to agent name) */
1013
- toolName?: string;
1014
- /** Custom tool description (defaults to agent description) */
1015
- toolDescription?: string;
1016
- /** Whether this agent-tool requires confirmation */
1017
- requiresConfirmation?: boolean;
1018
- /** Timeout for the agent execution */
1019
- timeout?: number;
1020
- /** Number of retries on failure */
1021
- retries?: number;
1022
- /** Input parameter overrides (narrow down what parent can pass) */
1023
- inputSchema?: Record<string, IToolParam>;
1024
- /** Transform input before passing to agent */
1025
- inputTransform?: (params: Record<string, unknown>) => Record<string, unknown>;
1026
- /** Transform agent output before returning to parent */
1027
- outputTransform?: (result: IAgentExecutionResult) => unknown;
1028
- /** Whether to include full execution details or just output */
1029
- includeDetails?: boolean;
1030
- }
1031
- /**
1032
- * Agent tool definition (an agent wrapped as a tool)
1033
- */
1034
- export interface IAgentToolDefinition {
1035
- /** Agent tag to invoke */
1036
- agentTag: string;
1037
- /** Product containing the agent */
1038
- product: string;
1039
- /** Environment to run in (inherits from parent if not specified) */
1040
- env?: string;
1041
- /** Tool options */
1042
- options?: IAgentAsToolOptions;
1043
- }
1044
- /**
1045
- * Multi-agent orchestration mode
1046
- */
1047
- export type MultiAgentMode = 'sequential' | 'parallel' | 'hierarchical' | 'collaborative';
1048
- /**
1049
- * Agent in a multi-agent workflow
1050
- */
1051
- export interface IMultiAgentMember {
1052
- /** Agent tag */
1053
- agent: string;
1054
- /** Role in the workflow */
1055
- role?: string;
1056
- /** Input mapping from orchestrator */
1057
- inputMapping?: Record<string, string>;
1058
- /** Condition to include this agent */
1059
- condition?: string;
1060
- }
1061
- /**
1062
- * Multi-agent workflow definition
1063
- */
1064
- export interface IMultiAgentWorkflow {
1065
- /** Workflow tag */
1066
- tag: string;
1067
- /** Workflow name */
1068
- name: string;
1069
- /** Orchestration mode */
1070
- mode: MultiAgentMode;
1071
- /** Participating agents */
1072
- agents: IMultiAgentMember[];
1073
- /** Orchestrator agent (for hierarchical mode) */
1074
- orchestrator?: string;
1075
- /** Final aggregation logic */
1076
- aggregation?: 'merge' | 'vote' | 'first' | 'custom';
1077
- /** Custom aggregation handler */
1078
- aggregationHandler?: (results: IAgentExecutionResult[]) => unknown;
1079
- }
1080
- /**
1081
- * Schedule configuration for dispatched agents
1082
- */
1083
- export interface IAgentSchedule {
1084
- /** Start time (timestamp or ISO string) */
1085
- start_at?: number | string;
1086
- /** Cron expression for recurring */
1087
- cron?: string;
1088
- /** Interval in ms for recurring */
1089
- every?: number;
1090
- /** Maximum number of executions */
1091
- limit?: number;
1092
- /** End date for recurring */
1093
- endDate?: number | string;
1094
- /** Timezone */
1095
- tz?: string;
1096
- }
1097
- /**
1098
- * Options for dispatching an agent
1099
- */
1100
- export interface IDispatchAgentOptions {
1101
- /** Product tag */
1102
- product: string;
1103
- /** Environment slug */
1104
- env: string;
1105
- /** Agent tag */
1106
- agent: string;
1107
- /** Agent input */
1108
- input: Record<string, unknown>;
1109
- /** Schedule configuration */
1110
- schedule?: IAgentSchedule;
1111
- /** Session token in format: session_tag:jwt_token */
1112
- session?: string;
1113
- /** Cache tag */
1114
- cache?: string;
1115
- /** Number of retries */
1116
- retries?: number;
1117
- }
1118
- /**
1119
- * Dispatch result
1120
- */
1121
- export interface IDispatchAgentResult {
1122
- /** Job ID */
1123
- job_id: string;
1124
- /** Job status */
1125
- status: 'scheduled' | 'queued' | 'running';
1126
- /** Scheduled timestamp */
1127
- scheduled_at?: number;
1128
- /** Whether this is a recurring job */
1129
- recurring?: boolean;
1130
- /** Next run timestamp (for recurring) */
1131
- next_run_at?: number;
1132
- }
1133
- /**
1134
- * Options for sending a signal to an agent
1135
- */
1136
- export interface ISendAgentSignalOptions {
1137
- /** Product tag */
1138
- product: string;
1139
- /** Environment slug */
1140
- env: string;
1141
- /** Execution ID */
1142
- execution_id: string;
1143
- /** Signal name */
1144
- signal: 'stop' | 'pause' | 'resume' | 'approve' | 'reject' | 'input' | string;
1145
- /** Signal payload */
1146
- payload?: Record<string, unknown>;
1147
- }
1148
- /**
1149
- * Options for getting agent execution status
1150
- */
1151
- export interface IAgentStatusOptions {
1152
- /** Product tag */
1153
- product: string;
1154
- /** Environment slug */
1155
- env: string;
1156
- /** Execution ID */
1157
- execution_id: string;
1158
- }
1159
- /**
1160
- * Options for listing agent executions
1161
- */
1162
- export interface IListAgentExecutionsOptions {
1163
- /** Product tag */
1164
- product: string;
1165
- /** Environment slug */
1166
- env: string;
1167
- /** Agent tag (optional filter) */
1168
- agent?: string;
1169
- /** Status filter */
1170
- status?: AgentStatus | AgentStatus[];
1171
- /** Start date filter */
1172
- from?: number | string;
1173
- /** End date filter */
1174
- to?: number | string;
1175
- /** Page number */
1176
- page?: number;
1177
- /** Page size */
1178
- limit?: number;
1179
- }
1180
- /**
1181
- * Agent execution list result
1182
- */
1183
- export interface IAgentExecutionListResult {
1184
- /** Executions */
1185
- executions: Array<{
1186
- execution_id: string;
1187
- agent_tag: string;
1188
- status: AgentStatus;
1189
- startedAt: number;
1190
- completedAt?: number;
1191
- iterations: number;
1192
- usage: ITokenUsage;
1193
- }>;
1194
- /** Total count */
1195
- total: number;
1196
- /** Current page */
1197
- page: number;
1198
- /** Page size */
1199
- limit: number;
1200
- }
1201
- /**
1202
- * Cost tracking data
1203
- */
1204
- export interface IAgentCostData {
1205
- /** Execution ID */
1206
- execution_id: string;
1207
- /** Token costs */
1208
- tokenCost: {
1209
- inputCost: number;
1210
- outputCost: number;
1211
- totalCost: number;
1212
- currency: string;
1213
- };
1214
- /** Tool costs (if tracked) */
1215
- toolCosts?: Record<string, number>;
1216
- /** Total cost */
1217
- totalCost: number;
1218
- }
1219
- /**
1220
- * Observability event
1221
- */
1222
- export interface IAgentObservabilityEvent {
1223
- /** Event ID */
1224
- id: string;
1225
- /** Execution ID */
1226
- execution_id: string;
1227
- /** Event type */
1228
- type: string;
1229
- /** Event timestamp */
1230
- timestamp: number;
1231
- /** Event data */
1232
- data: Record<string, unknown>;
1233
- /** Span info (for tracing) */
1234
- span?: {
1235
- traceId: string;
1236
- spanId: string;
1237
- parentSpanId?: string;
1238
- };
1239
- }
1240
- export { IActionRequest, INotificationRequest, IDbActionRequest, IStorageRequest, IFeatureInput, };