@epilot/sdk 2.1.0 → 2.1.2

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 (490) hide show
  1. package/README.md +24 -0
  2. package/definitions/environments-runtime.json +1 -1
  3. package/definitions/partner-directory-runtime.json +1 -1
  4. package/definitions/partner-directory.json +795 -229
  5. package/dist/{README-W4B35MRN.cjs → README-6OOYWQYJ.cjs} +1 -1
  6. package/dist/{README-VG67PX4R.js → README-JUWX7KNV.js} +1 -1
  7. package/dist/{_index-S6LFD3ER.js → _index-NWNYWBIF.js} +48 -1
  8. package/dist/{_index-AMVZBT2K.cjs → _index-ONGE545F.cjs} +48 -1
  9. package/dist/access-token-2O6ULCCN.js +633 -0
  10. package/dist/access-token-RKP2A2F7.cjs +633 -0
  11. package/dist/access-token-runtime-KCKGT4O7.js +5 -0
  12. package/dist/access-token-runtime-NZWZJPWV.cjs +5 -0
  13. package/dist/address-HLBX47SQ.cjs +567 -0
  14. package/dist/address-IJF4N2UV.js +567 -0
  15. package/dist/address-runtime-2MNO2YRD.cjs +5 -0
  16. package/dist/address-runtime-YFCNBJBW.js +5 -0
  17. package/dist/address-suggestions-BYUTV7OU.js +574 -0
  18. package/dist/address-suggestions-ERVGGO6Z.cjs +574 -0
  19. package/dist/address-suggestions-runtime-NIMC2J32.js +5 -0
  20. package/dist/address-suggestions-runtime-ZNGLDADE.cjs +5 -0
  21. package/dist/ai-agents-6VHVYRCC.cjs +1612 -0
  22. package/dist/ai-agents-PKCHKKJS.js +1612 -0
  23. package/dist/ai-agents-runtime-25YRUJHI.js +5 -0
  24. package/dist/ai-agents-runtime-TILIO3UM.cjs +5 -0
  25. package/dist/apis/access-token.cjs +8 -8
  26. package/dist/apis/access-token.d.cts +2 -2
  27. package/dist/apis/access-token.d.ts +2 -2
  28. package/dist/apis/access-token.js +4 -4
  29. package/dist/apis/address-suggestions.cjs +8 -8
  30. package/dist/apis/address-suggestions.d.cts +2 -2
  31. package/dist/apis/address-suggestions.d.ts +2 -2
  32. package/dist/apis/address-suggestions.js +4 -4
  33. package/dist/apis/address.cjs +8 -8
  34. package/dist/apis/address.d.cts +2 -2
  35. package/dist/apis/address.d.ts +2 -2
  36. package/dist/apis/address.js +4 -4
  37. package/dist/apis/ai-agents.cjs +8 -8
  38. package/dist/apis/ai-agents.d.cts +2 -2
  39. package/dist/apis/ai-agents.d.ts +2 -2
  40. package/dist/apis/ai-agents.js +4 -4
  41. package/dist/apis/app.cjs +8 -8
  42. package/dist/apis/app.d.cts +2 -2
  43. package/dist/apis/app.d.ts +2 -2
  44. package/dist/apis/app.js +4 -4
  45. package/dist/apis/audit-logs.cjs +8 -8
  46. package/dist/apis/audit-logs.d.cts +2 -2
  47. package/dist/apis/audit-logs.d.ts +2 -2
  48. package/dist/apis/audit-logs.js +4 -4
  49. package/dist/apis/automation.cjs +8 -8
  50. package/dist/apis/automation.d.cts +2 -2
  51. package/dist/apis/automation.d.ts +2 -2
  52. package/dist/apis/automation.js +4 -4
  53. package/dist/apis/billing.cjs +8 -8
  54. package/dist/apis/billing.d.cts +2 -2
  55. package/dist/apis/billing.d.ts +2 -2
  56. package/dist/apis/billing.js +4 -4
  57. package/dist/apis/blueprint-manifest.cjs +8 -8
  58. package/dist/apis/blueprint-manifest.d.cts +2 -2
  59. package/dist/apis/blueprint-manifest.d.ts +2 -2
  60. package/dist/apis/blueprint-manifest.js +4 -4
  61. package/dist/apis/consent.cjs +8 -8
  62. package/dist/apis/consent.d.cts +2 -2
  63. package/dist/apis/consent.d.ts +2 -2
  64. package/dist/apis/consent.js +4 -4
  65. package/dist/apis/customer-portal.cjs +8 -8
  66. package/dist/apis/customer-portal.d.cts +2 -2
  67. package/dist/apis/customer-portal.d.ts +2 -2
  68. package/dist/apis/customer-portal.js +4 -4
  69. package/dist/apis/dashboard.cjs +8 -8
  70. package/dist/apis/dashboard.d.cts +2 -2
  71. package/dist/apis/dashboard.d.ts +2 -2
  72. package/dist/apis/dashboard.js +4 -4
  73. package/dist/apis/data-management.cjs +8 -8
  74. package/dist/apis/data-management.d.cts +2 -2
  75. package/dist/apis/data-management.d.ts +2 -2
  76. package/dist/apis/data-management.js +4 -4
  77. package/dist/apis/deduplication.cjs +8 -8
  78. package/dist/apis/deduplication.d.cts +2 -2
  79. package/dist/apis/deduplication.d.ts +2 -2
  80. package/dist/apis/deduplication.js +4 -4
  81. package/dist/apis/design.cjs +8 -8
  82. package/dist/apis/design.d.cts +2 -2
  83. package/dist/apis/design.d.ts +2 -2
  84. package/dist/apis/design.js +4 -4
  85. package/dist/apis/document.cjs +8 -8
  86. package/dist/apis/document.d.cts +2 -2
  87. package/dist/apis/document.d.ts +2 -2
  88. package/dist/apis/document.js +4 -4
  89. package/dist/apis/email-settings.cjs +8 -8
  90. package/dist/apis/email-settings.d.cts +2 -2
  91. package/dist/apis/email-settings.d.ts +2 -2
  92. package/dist/apis/email-settings.js +4 -4
  93. package/dist/apis/email-template.cjs +8 -8
  94. package/dist/apis/email-template.d.cts +2 -2
  95. package/dist/apis/email-template.d.ts +2 -2
  96. package/dist/apis/email-template.js +4 -4
  97. package/dist/apis/entity-mapping.cjs +8 -8
  98. package/dist/apis/entity-mapping.d.cts +2 -2
  99. package/dist/apis/entity-mapping.d.ts +2 -2
  100. package/dist/apis/entity-mapping.js +4 -4
  101. package/dist/apis/entity.cjs +8 -8
  102. package/dist/apis/entity.d.cts +2 -2
  103. package/dist/apis/entity.d.ts +2 -2
  104. package/dist/apis/entity.js +4 -4
  105. package/dist/apis/environments.cjs +8 -8
  106. package/dist/apis/environments.d.cts +2 -2
  107. package/dist/apis/environments.d.ts +2 -2
  108. package/dist/apis/environments.js +4 -4
  109. package/dist/apis/erp-integration.cjs +8 -8
  110. package/dist/apis/erp-integration.d.cts +2 -2
  111. package/dist/apis/erp-integration.d.ts +2 -2
  112. package/dist/apis/erp-integration.js +4 -4
  113. package/dist/apis/event-catalog.cjs +8 -8
  114. package/dist/apis/event-catalog.d.cts +2 -2
  115. package/dist/apis/event-catalog.d.ts +2 -2
  116. package/dist/apis/event-catalog.js +4 -4
  117. package/dist/apis/file.cjs +8 -8
  118. package/dist/apis/file.d.cts +2 -2
  119. package/dist/apis/file.d.ts +2 -2
  120. package/dist/apis/file.js +4 -4
  121. package/dist/apis/iban.cjs +8 -8
  122. package/dist/apis/iban.d.cts +2 -2
  123. package/dist/apis/iban.d.ts +2 -2
  124. package/dist/apis/iban.js +4 -4
  125. package/dist/apis/journey.cjs +8 -8
  126. package/dist/apis/journey.d.cts +2 -2
  127. package/dist/apis/journey.d.ts +2 -2
  128. package/dist/apis/journey.js +4 -4
  129. package/dist/apis/kanban.cjs +8 -8
  130. package/dist/apis/kanban.d.cts +2 -2
  131. package/dist/apis/kanban.d.ts +2 -2
  132. package/dist/apis/kanban.js +4 -4
  133. package/dist/apis/message.cjs +8 -8
  134. package/dist/apis/message.d.cts +2 -2
  135. package/dist/apis/message.d.ts +2 -2
  136. package/dist/apis/message.js +4 -4
  137. package/dist/apis/metering.cjs +8 -8
  138. package/dist/apis/metering.d.cts +2 -2
  139. package/dist/apis/metering.d.ts +2 -2
  140. package/dist/apis/metering.js +4 -4
  141. package/dist/apis/notes.cjs +8 -8
  142. package/dist/apis/notes.d.cts +2 -2
  143. package/dist/apis/notes.d.ts +2 -2
  144. package/dist/apis/notes.js +4 -4
  145. package/dist/apis/notification.cjs +8 -8
  146. package/dist/apis/notification.d.cts +2 -2
  147. package/dist/apis/notification.d.ts +2 -2
  148. package/dist/apis/notification.js +4 -4
  149. package/dist/apis/organization.cjs +8 -8
  150. package/dist/apis/organization.d.cts +2 -2
  151. package/dist/apis/organization.d.ts +2 -2
  152. package/dist/apis/organization.js +4 -4
  153. package/dist/apis/partner-directory.cjs +8 -8
  154. package/dist/apis/partner-directory.d.cts +4 -4
  155. package/dist/apis/partner-directory.d.ts +4 -4
  156. package/dist/apis/partner-directory.js +4 -4
  157. package/dist/apis/permissions.cjs +8 -8
  158. package/dist/apis/permissions.d.cts +2 -2
  159. package/dist/apis/permissions.d.ts +2 -2
  160. package/dist/apis/permissions.js +4 -4
  161. package/dist/apis/pricing-tier.cjs +8 -8
  162. package/dist/apis/pricing-tier.d.cts +2 -2
  163. package/dist/apis/pricing-tier.d.ts +2 -2
  164. package/dist/apis/pricing-tier.js +4 -4
  165. package/dist/apis/pricing.cjs +8 -8
  166. package/dist/apis/pricing.d.cts +2 -2
  167. package/dist/apis/pricing.d.ts +2 -2
  168. package/dist/apis/pricing.js +4 -4
  169. package/dist/apis/purpose.cjs +8 -8
  170. package/dist/apis/purpose.d.cts +2 -2
  171. package/dist/apis/purpose.d.ts +2 -2
  172. package/dist/apis/purpose.js +4 -4
  173. package/dist/apis/sandbox.cjs +8 -8
  174. package/dist/apis/sandbox.d.cts +2 -2
  175. package/dist/apis/sandbox.d.ts +2 -2
  176. package/dist/apis/sandbox.js +4 -4
  177. package/dist/apis/submission.cjs +8 -8
  178. package/dist/apis/submission.d.cts +2 -2
  179. package/dist/apis/submission.d.ts +2 -2
  180. package/dist/apis/submission.js +4 -4
  181. package/dist/apis/targeting.cjs +8 -8
  182. package/dist/apis/targeting.d.cts +2 -2
  183. package/dist/apis/targeting.d.ts +2 -2
  184. package/dist/apis/targeting.js +4 -4
  185. package/dist/apis/template-variables.cjs +8 -8
  186. package/dist/apis/template-variables.d.cts +2 -2
  187. package/dist/apis/template-variables.d.ts +2 -2
  188. package/dist/apis/template-variables.js +4 -4
  189. package/dist/apis/user.cjs +8 -8
  190. package/dist/apis/user.d.cts +2 -2
  191. package/dist/apis/user.d.ts +2 -2
  192. package/dist/apis/user.js +4 -4
  193. package/dist/apis/validation-rules.cjs +8 -8
  194. package/dist/apis/validation-rules.d.cts +2 -2
  195. package/dist/apis/validation-rules.d.ts +2 -2
  196. package/dist/apis/validation-rules.js +4 -4
  197. package/dist/apis/webhooks.cjs +8 -8
  198. package/dist/apis/webhooks.d.cts +2 -2
  199. package/dist/apis/webhooks.d.ts +2 -2
  200. package/dist/apis/webhooks.js +4 -4
  201. package/dist/apis/workflow-definition.cjs +8 -8
  202. package/dist/apis/workflow-definition.d.cts +2 -2
  203. package/dist/apis/workflow-definition.d.ts +2 -2
  204. package/dist/apis/workflow-definition.js +4 -4
  205. package/dist/apis/workflow.cjs +8 -8
  206. package/dist/apis/workflow.d.cts +2 -2
  207. package/dist/apis/workflow.d.ts +2 -2
  208. package/dist/apis/workflow.js +4 -4
  209. package/dist/app-5VPBDFW2.cjs +4047 -0
  210. package/dist/app-VJW2KKWE.js +4047 -0
  211. package/dist/app-runtime-SSNHSBR7.cjs +5 -0
  212. package/dist/app-runtime-U7RGV7KT.js +5 -0
  213. package/dist/audit-logs-F2NHDISQ.js +312 -0
  214. package/dist/audit-logs-RFEMBILB.cjs +312 -0
  215. package/dist/audit-logs-runtime-4WMHPWNX.cjs +5 -0
  216. package/dist/audit-logs-runtime-76R6WRAB.js +5 -0
  217. package/dist/automation-HZASSUCS.cjs +4460 -0
  218. package/dist/automation-WEVRW77F.js +4460 -0
  219. package/dist/automation-runtime-L5UKEFLA.js +5 -0
  220. package/dist/automation-runtime-YBGGE5PL.cjs +5 -0
  221. package/dist/billing-3VZPNG6M.cjs +796 -0
  222. package/dist/billing-ASWY7HC3.js +796 -0
  223. package/dist/billing-runtime-C6BMGWCX.js +5 -0
  224. package/dist/billing-runtime-L4Y7MLM3.cjs +5 -0
  225. package/dist/bin/cli.js +1 -1
  226. package/dist/blueprint-manifest-5TNVSDKC.cjs +3169 -0
  227. package/dist/blueprint-manifest-UGGYWGRZ.js +3169 -0
  228. package/dist/blueprint-manifest-runtime-2RTW5C52.js +5 -0
  229. package/dist/blueprint-manifest-runtime-AF3FIDVX.cjs +5 -0
  230. package/dist/{chunk-RXSS67VI.cjs → chunk-BFUNXZRX.cjs} +1 -1
  231. package/dist/{chunk-KPGC2D6E.js → chunk-I2XRA5AM.js} +1 -1
  232. package/dist/chunk-QTU4H6NQ.js +291 -0
  233. package/dist/chunk-T7LQKRUK.cjs +291 -0
  234. package/dist/consent-6SIH4NQS.cjs +342 -0
  235. package/dist/consent-7MNRAINV.js +342 -0
  236. package/dist/consent-runtime-KZ5D4XZU.cjs +5 -0
  237. package/dist/consent-runtime-OAPXBJH2.js +5 -0
  238. package/dist/customer-portal-L5DEQEGC.js +14142 -0
  239. package/dist/customer-portal-MXILX4KH.cjs +14142 -0
  240. package/dist/customer-portal-runtime-MRVZ7JR4.js +5 -0
  241. package/dist/customer-portal-runtime-VGK7RMLC.cjs +5 -0
  242. package/dist/dashboard-RKUQLIME.cjs +483 -0
  243. package/dist/dashboard-UDL26RGG.js +483 -0
  244. package/dist/dashboard-runtime-EXP2AM44.cjs +5 -0
  245. package/dist/dashboard-runtime-PSKSGLCF.js +5 -0
  246. package/dist/data-management-W5JQGGGH.js +925 -0
  247. package/dist/data-management-XFSRLFYA.cjs +925 -0
  248. package/dist/data-management-runtime-PAC7UFGT.cjs +5 -0
  249. package/dist/data-management-runtime-XZ347IUB.js +5 -0
  250. package/dist/deduplication-7RTGTLN5.cjs +193 -0
  251. package/dist/deduplication-RKLRTNZU.js +193 -0
  252. package/dist/deduplication-runtime-BBHG7MJW.cjs +5 -0
  253. package/dist/deduplication-runtime-DLGBF4RN.js +5 -0
  254. package/dist/design-AO6EGLHD.cjs +1352 -0
  255. package/dist/design-VLRA2WGV.js +1352 -0
  256. package/dist/design-runtime-3SKJA7QH.js +5 -0
  257. package/dist/design-runtime-Y3VGTQLP.cjs +5 -0
  258. package/dist/document-OVTR7RVH.cjs +744 -0
  259. package/dist/document-SEZ45XAO.js +744 -0
  260. package/dist/document-runtime-GFEBGNMS.js +5 -0
  261. package/dist/document-runtime-RG3F4R6O.cjs +5 -0
  262. package/dist/email-settings-QGCIUWLC.js +2427 -0
  263. package/dist/email-settings-SEGEKVMF.cjs +2427 -0
  264. package/dist/email-settings-runtime-NS7MU3RB.cjs +5 -0
  265. package/dist/email-settings-runtime-X7F3EPAB.js +5 -0
  266. package/dist/email-template-26SANLRD.cjs +1308 -0
  267. package/dist/email-template-346NDG4D.js +1308 -0
  268. package/dist/email-template-runtime-QBB64BJQ.js +5 -0
  269. package/dist/email-template-runtime-UI2FS4H5.cjs +5 -0
  270. package/dist/entity-HSCBRIOS.js +9411 -0
  271. package/dist/entity-UKAWTND4.cjs +9411 -0
  272. package/dist/entity-mapping-PK2XAARN.cjs +1506 -0
  273. package/dist/entity-mapping-UOGYYCZH.js +1506 -0
  274. package/dist/entity-mapping-runtime-734TTUA2.cjs +5 -0
  275. package/dist/entity-mapping-runtime-HCOJM6DV.js +5 -0
  276. package/dist/entity-runtime-QSFVEFJ6.js +5 -0
  277. package/dist/entity-runtime-XSAICIVR.cjs +5 -0
  278. package/dist/environments-5IS2ZJYQ.cjs +352 -0
  279. package/dist/environments-VCREW73K.js +352 -0
  280. package/dist/environments-runtime-BPR47PW7.js +5 -0
  281. package/dist/environments-runtime-L6TJCVW6.cjs +5 -0
  282. package/dist/erp-integration-735KQ73W.js +5295 -0
  283. package/dist/erp-integration-W7FZDJOB.cjs +5295 -0
  284. package/dist/erp-integration-runtime-FNJXDO75.js +5 -0
  285. package/dist/erp-integration-runtime-WXZIQCLJ.cjs +5 -0
  286. package/dist/event-catalog-MZYFJ23V.cjs +965 -0
  287. package/dist/event-catalog-ZUFXLY7B.js +965 -0
  288. package/dist/event-catalog-runtime-5HQSAJVX.cjs +5 -0
  289. package/dist/event-catalog-runtime-6FA3SCRI.js +5 -0
  290. package/dist/file-637CTR4Y.cjs +2744 -0
  291. package/dist/file-EJJBQEQI.js +2744 -0
  292. package/dist/file-runtime-B6AAGZQF.js +5 -0
  293. package/dist/file-runtime-SFZIKODF.cjs +5 -0
  294. package/dist/iban-ETTCKOHK.cjs +148 -0
  295. package/dist/iban-HXFDAF4I.js +148 -0
  296. package/dist/iban-runtime-EVXLFPPP.js +5 -0
  297. package/dist/iban-runtime-TUM5LVHO.cjs +5 -0
  298. package/dist/index.cjs +105 -100
  299. package/dist/index.d.cts +21 -5
  300. package/dist/index.d.ts +21 -5
  301. package/dist/index.js +56 -51
  302. package/dist/journey-KW3ZFQAL.js +2194 -0
  303. package/dist/journey-XIMSLSZC.cjs +2194 -0
  304. package/dist/journey-runtime-SPBL3F32.cjs +5 -0
  305. package/dist/journey-runtime-YXIAOTMD.js +5 -0
  306. package/dist/{js-yaml-UPZKYVRY.js → js-yaml-DLCVPJ7G.js} +17 -15
  307. package/dist/kanban-M4P7R5TM.cjs +890 -0
  308. package/dist/kanban-QXQEQIF4.js +890 -0
  309. package/dist/kanban-runtime-NHEUWTCG.cjs +5 -0
  310. package/dist/kanban-runtime-R6EWHBFS.js +5 -0
  311. package/dist/message-2VOVRXBB.cjs +2447 -0
  312. package/dist/message-M62W3KP2.js +2447 -0
  313. package/dist/message-runtime-ITR7MPKT.cjs +5 -0
  314. package/dist/message-runtime-YMKW2N3R.js +5 -0
  315. package/dist/metering-KEMILE75.cjs +2198 -0
  316. package/dist/metering-W3TA6ZUQ.js +2198 -0
  317. package/dist/metering-runtime-HAIWXZXJ.cjs +5 -0
  318. package/dist/metering-runtime-NJ6NEUMB.js +5 -0
  319. package/dist/notes-4LVCGLBE.js +1427 -0
  320. package/dist/notes-OBM5POWI.cjs +1427 -0
  321. package/dist/notes-runtime-CVNAVKPP.js +5 -0
  322. package/dist/notes-runtime-E3YYF74V.cjs +5 -0
  323. package/dist/notification-EEYPLPUV.cjs +1381 -0
  324. package/dist/notification-MJQGIBM7.js +1381 -0
  325. package/dist/notification-runtime-7QLZTPHG.cjs +5 -0
  326. package/dist/notification-runtime-KREP32YP.js +5 -0
  327. package/dist/organization-2UK7QZLQ.cjs +615 -0
  328. package/dist/organization-U5HPX627.js +615 -0
  329. package/dist/organization-runtime-LBCVCZ3W.cjs +5 -0
  330. package/dist/organization-runtime-P3WZ2BBU.js +5 -0
  331. package/dist/partner-directory-CG5CYJGB.cjs +1600 -0
  332. package/dist/partner-directory-THI7JEXK.js +7 -0
  333. package/dist/partner-directory-XJ7KI7EX.js +1600 -0
  334. package/dist/partner-directory-ZQIBKD5Q.cjs +7 -0
  335. package/dist/partner-directory-runtime-AUHVA5Q3.cjs +5 -0
  336. package/dist/partner-directory-runtime-GNVT7U7R.js +5 -0
  337. package/dist/partner-directory.d-BCIjHoGs.d.cts +2337 -0
  338. package/dist/partner-directory.d-BCIjHoGs.d.ts +2337 -0
  339. package/dist/permissions-SGPGANEP.js +1415 -0
  340. package/dist/permissions-WCOABHKQ.cjs +1415 -0
  341. package/dist/permissions-runtime-D74HOCVO.js +5 -0
  342. package/dist/permissions-runtime-O5LH7WOU.cjs +5 -0
  343. package/dist/pricing-3RNPCUR6.js +9362 -0
  344. package/dist/pricing-VYHPSVKM.cjs +9362 -0
  345. package/dist/pricing-runtime-6XNS4EOF.cjs +5 -0
  346. package/dist/pricing-runtime-JRR4FWFI.js +5 -0
  347. package/dist/pricing-tier-36WV4P4X.js +121 -0
  348. package/dist/pricing-tier-FKQPW2ND.cjs +121 -0
  349. package/dist/pricing-tier-runtime-32BCKJ7Y.cjs +5 -0
  350. package/dist/pricing-tier-runtime-LEGBNNLA.js +5 -0
  351. package/dist/purpose-JC2E7W3M.cjs +523 -0
  352. package/dist/purpose-QFQ4W255.js +523 -0
  353. package/dist/purpose-runtime-C6IGTUA6.cjs +5 -0
  354. package/dist/purpose-runtime-V5X5ESZV.js +5 -0
  355. package/dist/sandbox-CLZTN7IW.cjs +445 -0
  356. package/dist/sandbox-O2NWMZGJ.js +445 -0
  357. package/dist/sandbox-runtime-4MLOMFPK.js +5 -0
  358. package/dist/sandbox-runtime-GKEK3GQB.cjs +5 -0
  359. package/dist/submission-6FD67HIE.cjs +308 -0
  360. package/dist/submission-MWJU4L32.js +308 -0
  361. package/dist/submission-runtime-5FD4AQSD.cjs +5 -0
  362. package/dist/submission-runtime-JPHKPQ77.js +5 -0
  363. package/dist/targeting-4CQDSEKL.cjs +1369 -0
  364. package/dist/targeting-RB7LBQMX.js +1369 -0
  365. package/dist/targeting-runtime-6JFMP262.cjs +5 -0
  366. package/dist/targeting-runtime-M2VSTKFT.js +5 -0
  367. package/dist/template-variables-JYHE2VCH.cjs +1447 -0
  368. package/dist/template-variables-XLIW4GY6.js +1447 -0
  369. package/dist/template-variables-runtime-62U3ZY5P.js +5 -0
  370. package/dist/template-variables-runtime-LFOA32UM.cjs +5 -0
  371. package/dist/{types-BwBvJkY_.d.ts → types-ChU9Acbv.d.cts} +3 -0
  372. package/dist/{types-BwBvJkY_.d.cts → types-ChU9Acbv.d.ts} +3 -0
  373. package/dist/user-DKA6DDPX.cjs +2265 -0
  374. package/dist/user-O4JDAIRO.js +2265 -0
  375. package/dist/user-runtime-7O2HLFVQ.cjs +5 -0
  376. package/dist/user-runtime-U4HYUWJU.js +5 -0
  377. package/dist/validation-rules-AYCAOVDZ.cjs +1344 -0
  378. package/dist/validation-rules-GCI64B57.js +1344 -0
  379. package/dist/validation-rules-runtime-6MRCS5X2.js +5 -0
  380. package/dist/validation-rules-runtime-X7M3QE5I.cjs +5 -0
  381. package/dist/webhooks-L3FXPRKT.cjs +1431 -0
  382. package/dist/webhooks-XXLU2KWP.js +1431 -0
  383. package/dist/webhooks-runtime-EBM4M3SU.cjs +5 -0
  384. package/dist/webhooks-runtime-XCQYIGQK.js +5 -0
  385. package/dist/workflow-VLNZNE3S.js +3834 -0
  386. package/dist/workflow-YJHUCGVK.cjs +3834 -0
  387. package/dist/workflow-definition-7BA4H6W3.cjs +3100 -0
  388. package/dist/workflow-definition-VFYWBQQ3.js +3100 -0
  389. package/dist/workflow-definition-runtime-S7AZHOU7.js +5 -0
  390. package/dist/workflow-definition-runtime-VRND6VQR.cjs +5 -0
  391. package/dist/workflow-runtime-RLZO2OQB.js +5 -0
  392. package/dist/workflow-runtime-WCJ7NRTH.cjs +5 -0
  393. package/docs/partner-directory.md +295 -127
  394. package/package.json +3 -2
  395. package/dist/chunk-3XEP56SV.cjs +0 -204
  396. package/dist/chunk-ULBEEHG4.js +0 -204
  397. package/dist/partner-directory-2XMPQWWX.js +0 -7
  398. package/dist/partner-directory-WHNTKQ5E.cjs +0 -7
  399. package/dist/partner-directory.d-CRNkDF8q.d.cts +0 -1510
  400. package/dist/partner-directory.d-CRNkDF8q.d.ts +0 -1510
  401. /package/dist/{chunk-CPKBR34V.js → chunk-24T6CJTG.js} +0 -0
  402. /package/dist/{chunk-VQ7R36AC.js → chunk-265TE2OV.js} +0 -0
  403. /package/dist/{chunk-ZV6XYUXS.js → chunk-2BPBDRRO.js} +0 -0
  404. /package/dist/{chunk-KSXTBGIV.js → chunk-3XKBB5AE.js} +0 -0
  405. /package/dist/{chunk-GLO477NZ.js → chunk-3YSEO476.js} +0 -0
  406. /package/dist/{chunk-MKX4CKAB.cjs → chunk-46HU6232.cjs} +0 -0
  407. /package/dist/{chunk-JXBXDTFG.cjs → chunk-4G6LO3JY.cjs} +0 -0
  408. /package/dist/{chunk-Z4LUE424.cjs → chunk-4QCVVDTA.cjs} +0 -0
  409. /package/dist/{chunk-LQOLYXGQ.cjs → chunk-4W22EIRF.cjs} +0 -0
  410. /package/dist/{chunk-372VUPHN.js → chunk-4ZGZDE6D.js} +0 -0
  411. /package/dist/{chunk-IMT3IE5M.cjs → chunk-4ZMLRFDX.cjs} +0 -0
  412. /package/dist/{chunk-S7NDMDRX.js → chunk-5JPM6YUD.js} +0 -0
  413. /package/dist/{chunk-IS2VB342.js → chunk-5MFHAXBT.js} +0 -0
  414. /package/dist/{chunk-WOXXNKTE.js → chunk-5NKXJA43.js} +0 -0
  415. /package/dist/{chunk-S3ZNESMC.cjs → chunk-5WNEYQII.cjs} +0 -0
  416. /package/dist/{chunk-KA3TGFJP.js → chunk-6OYECNL2.js} +0 -0
  417. /package/dist/{chunk-T46LODOF.js → chunk-6UAS2VVG.js} +0 -0
  418. /package/dist/{chunk-PETLAONH.js → chunk-6VWCUZ5M.js} +0 -0
  419. /package/dist/{chunk-YZA5WZUS.js → chunk-75EI2Q64.js} +0 -0
  420. /package/dist/{chunk-2HOJWFQ4.js → chunk-75ZWZM3L.js} +0 -0
  421. /package/dist/{chunk-57QIBYDN.js → chunk-7IKQIVUS.js} +0 -0
  422. /package/dist/{chunk-DJKSULPK.js → chunk-A7AAVJGM.js} +0 -0
  423. /package/dist/{chunk-QLML3IP5.cjs → chunk-ANN2QTMY.cjs} +0 -0
  424. /package/dist/{chunk-A6JOROUC.cjs → chunk-BLNXQAMX.cjs} +0 -0
  425. /package/dist/{chunk-LCIJ4TJ4.cjs → chunk-BM6NCHPL.cjs} +0 -0
  426. /package/dist/{chunk-XR4QF6KQ.cjs → chunk-BPHOGIQM.cjs} +0 -0
  427. /package/dist/{chunk-K62XK7KU.js → chunk-BTTPWE2P.js} +0 -0
  428. /package/dist/{chunk-E26ZO7QM.cjs → chunk-COQMJFAB.cjs} +0 -0
  429. /package/dist/{chunk-QVAJ5JP4.js → chunk-CSK5ZUTS.js} +0 -0
  430. /package/dist/{chunk-3ZZ57K3S.cjs → chunk-D32L2HMX.cjs} +0 -0
  431. /package/dist/{chunk-TIJWJVKZ.js → chunk-D7Q4JGN7.js} +0 -0
  432. /package/dist/{chunk-CWSHYFVZ.js → chunk-DZ3P537S.js} +0 -0
  433. /package/dist/{chunk-MSASBR2Y.js → chunk-E2WMGOM5.js} +0 -0
  434. /package/dist/{chunk-XKI2OAYV.cjs → chunk-FARDEGPH.cjs} +0 -0
  435. /package/dist/{chunk-RWSA3LXE.cjs → chunk-G3VDRMOH.cjs} +0 -0
  436. /package/dist/{chunk-QDVPPRWI.cjs → chunk-G5FKTWUC.cjs} +0 -0
  437. /package/dist/{chunk-WMTYO5OX.cjs → chunk-GWKHOJGD.cjs} +0 -0
  438. /package/dist/{chunk-DNJ54L2G.js → chunk-H45V55VT.js} +0 -0
  439. /package/dist/{chunk-F472YLJG.cjs → chunk-HAZ3WP7V.cjs} +0 -0
  440. /package/dist/{chunk-NAWLLC3T.cjs → chunk-HHMXS5NC.cjs} +0 -0
  441. /package/dist/{chunk-DY2D2IW5.cjs → chunk-IGVVJMX7.cjs} +0 -0
  442. /package/dist/{chunk-KBOVBUBM.js → chunk-IJR3GZKC.js} +0 -0
  443. /package/dist/{chunk-73H6TVKN.js → chunk-IQOCHPWU.js} +0 -0
  444. /package/dist/{chunk-LSIWCIQV.js → chunk-JENQHXFI.js} +0 -0
  445. /package/dist/{chunk-G2REP2VZ.cjs → chunk-JICWF5VI.cjs} +0 -0
  446. /package/dist/{chunk-3HJEWWPS.cjs → chunk-JIUTCNTB.cjs} +0 -0
  447. /package/dist/{chunk-EBCHCYUO.js → chunk-JJWJLY42.js} +0 -0
  448. /package/dist/{chunk-SMGHAG5C.cjs → chunk-JXJC6WEW.cjs} +0 -0
  449. /package/dist/{chunk-HPYHWTTA.cjs → chunk-K2UZPY6U.cjs} +0 -0
  450. /package/dist/{chunk-VGTUK3QD.cjs → chunk-L66IX6GX.cjs} +0 -0
  451. /package/dist/{chunk-NLSZVGHK.cjs → chunk-LKRBFBFN.cjs} +0 -0
  452. /package/dist/{chunk-TLWCYLNA.js → chunk-LLZYRINH.js} +0 -0
  453. /package/dist/{chunk-4SWC43JO.cjs → chunk-M2SSGV7K.cjs} +0 -0
  454. /package/dist/{chunk-PVSS2WPM.cjs → chunk-M2UDF7PY.cjs} +0 -0
  455. /package/dist/{chunk-5SNJAD6F.cjs → chunk-M56QQHVA.cjs} +0 -0
  456. /package/dist/{chunk-QKERXNJJ.cjs → chunk-MB6NKETA.cjs} +0 -0
  457. /package/dist/{chunk-H4VSK4KF.js → chunk-MEUS7LCE.js} +0 -0
  458. /package/dist/{chunk-RD7E4OSJ.cjs → chunk-N5NFJW7Y.cjs} +0 -0
  459. /package/dist/{chunk-FXOX3X7E.cjs → chunk-NEVFKRDU.cjs} +0 -0
  460. /package/dist/{chunk-O4LRVGOY.js → chunk-O4JDWMYD.js} +0 -0
  461. /package/dist/{chunk-IH4CMOML.js → chunk-OEBV2PMV.js} +0 -0
  462. /package/dist/{chunk-VVVATFGK.cjs → chunk-OXJOO2YF.cjs} +0 -0
  463. /package/dist/{chunk-WOSSSFXB.js → chunk-PSQMDY3B.js} +0 -0
  464. /package/dist/{chunk-AJKH25H2.cjs → chunk-QOAWSFXA.cjs} +0 -0
  465. /package/dist/{chunk-UKKJMCNH.js → chunk-QT44OHHL.js} +0 -0
  466. /package/dist/{chunk-B3ZGAG7B.js → chunk-QTR3RH4N.js} +0 -0
  467. /package/dist/{chunk-3N67SSL3.js → chunk-RELUU5QZ.js} +0 -0
  468. /package/dist/{chunk-YYBIU5BQ.js → chunk-RJ3DWFSK.js} +0 -0
  469. /package/dist/{chunk-ARWMTXJV.cjs → chunk-RUZRPIHW.cjs} +0 -0
  470. /package/dist/{chunk-4VFQTSJQ.js → chunk-RW5JOHG7.js} +0 -0
  471. /package/dist/{chunk-EPAIOB5U.cjs → chunk-RXMOHUBP.cjs} +0 -0
  472. /package/dist/{chunk-MRZ7LGKZ.js → chunk-SBSIGQDU.js} +0 -0
  473. /package/dist/{chunk-TRJLYZHD.js → chunk-SITPUXIR.js} +0 -0
  474. /package/dist/{chunk-OGQKJTXF.js → chunk-SZMCMLOQ.js} +0 -0
  475. /package/dist/{chunk-VVQB5W7U.cjs → chunk-T67ZXTVG.cjs} +0 -0
  476. /package/dist/{chunk-HPSGM6QP.js → chunk-TME4YJNP.js} +0 -0
  477. /package/dist/{chunk-MRTAFRO7.js → chunk-TPA4HEAO.js} +0 -0
  478. /package/dist/{chunk-F376L6PP.cjs → chunk-TTNPMFXL.cjs} +0 -0
  479. /package/dist/{chunk-OG2DMGU6.cjs → chunk-TXDVGTQD.cjs} +0 -0
  480. /package/dist/{chunk-XZYZLSUO.cjs → chunk-UNCVJH6J.cjs} +0 -0
  481. /package/dist/{chunk-MHNSZ4HE.js → chunk-UUVJYJHD.js} +0 -0
  482. /package/dist/{chunk-C6UTZEHH.js → chunk-VSZEOCIE.js} +0 -0
  483. /package/dist/{chunk-EQZMT2HF.cjs → chunk-WQBBB6BN.cjs} +0 -0
  484. /package/dist/{chunk-BH5ZXK4J.cjs → chunk-WTMV77T2.cjs} +0 -0
  485. /package/dist/{chunk-BWFXLUK5.cjs → chunk-WWOAKRNG.cjs} +0 -0
  486. /package/dist/{chunk-ITX53XAZ.js → chunk-XSE4CFSM.js} +0 -0
  487. /package/dist/{chunk-SK3VYIZ6.cjs → chunk-YO4M3BZL.cjs} +0 -0
  488. /package/dist/{chunk-XYHTQ523.cjs → chunk-Z5TVWG3I.cjs} +0 -0
  489. /package/dist/{chunk-PXITFTJA.cjs → chunk-ZI33AJQ5.cjs} +0 -0
  490. /package/dist/{chunk-IP2WWEOU.js → chunk-ZKQ573B7.js} +0 -0
@@ -0,0 +1,1612 @@
1
+ import "./chunk-YPSWSI3M.js";
2
+
3
+ // src/definitions/ai-agents.json
4
+ var openapi = "3.0.0";
5
+ var info = {
6
+ version: "3.0.0",
7
+ title: "AI Agents API - OpenAPI 3.0",
8
+ description: "API for configuring and invoking AI agents in epilot platform",
9
+ termsOfService: "https://epilot.cloud/agb",
10
+ contact: {
11
+ name: "Support",
12
+ email: "info@epilot.cloud",
13
+ url: "https://help.epilot.cloud"
14
+ }
15
+ };
16
+ var security = [
17
+ {
18
+ EpilotAuth: []
19
+ }
20
+ ];
21
+ var servers = [
22
+ {
23
+ url: "https://ai-agents.sls.epilot.io"
24
+ }
25
+ ];
26
+ var tags = [
27
+ {
28
+ name: "Agents Configuration",
29
+ description: "Everything about AI Agent configuration"
30
+ },
31
+ {
32
+ name: "Agent Execution",
33
+ description: "Execute AI agents and manage executions"
34
+ }
35
+ ];
36
+ var paths = {
37
+ "/v1/agents": {
38
+ post: {
39
+ tags: ["Agents Configuration"],
40
+ summary: "Create Agent definition",
41
+ description: "Creates a new custom agent. System skills cannot be created via this endpoint.",
42
+ operationId: "createAgent",
43
+ security: [
44
+ {
45
+ EpilotAuth: []
46
+ }
47
+ ],
48
+ requestBody: {
49
+ required: true,
50
+ content: {
51
+ "application/json": {
52
+ schema: {
53
+ $ref: "#/components/schemas/CreateAgentRequest"
54
+ }
55
+ }
56
+ }
57
+ },
58
+ responses: {
59
+ "201": {
60
+ description: "Agent Created Successfully",
61
+ content: {
62
+ "application/json": {
63
+ schema: {
64
+ $ref: "#/components/schemas/AgentDefinition"
65
+ }
66
+ }
67
+ }
68
+ },
69
+ "400": {
70
+ description: "Error while creating the agent",
71
+ content: {
72
+ "application/json": {
73
+ schema: {
74
+ $ref: "#/components/schemas/Error"
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ },
81
+ get: {
82
+ tags: ["Agents Configuration"],
83
+ summary: "List all agent configurations",
84
+ description: "Lists agents from both system skills and custom agents.\nUse query parameters to filter by source, availability, or entity schema.\n",
85
+ operationId: "listAgents",
86
+ parameters: [
87
+ {
88
+ name: "source",
89
+ in: "query",
90
+ schema: {
91
+ $ref: "#/components/schemas/AgentSource"
92
+ },
93
+ description: "Filter by agent source (system = pre-built skills, custom = user-created)"
94
+ },
95
+ {
96
+ name: "availability",
97
+ in: "query",
98
+ schema: {
99
+ $ref: "#/components/schemas/SkillAvailability"
100
+ },
101
+ description: "Filter by availability context (flows, copilot)"
102
+ },
103
+ {
104
+ name: "entity_schema",
105
+ in: "query",
106
+ schema: {
107
+ type: "string"
108
+ },
109
+ description: 'Filter by allowed entity schema (e.g., "message" for email-related skills)'
110
+ }
111
+ ],
112
+ responses: {
113
+ "200": {
114
+ description: "List of agents",
115
+ content: {
116
+ "application/json": {
117
+ schema: {
118
+ $ref: "#/components/schemas/ListAgentsResponse"
119
+ }
120
+ }
121
+ }
122
+ },
123
+ "400": {
124
+ description: "Error fetching the agent configs",
125
+ content: {
126
+ "application/json": {
127
+ schema: {
128
+ $ref: "#/components/schemas/Error"
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
135
+ },
136
+ "/v1/agents/{agent_id}": {
137
+ get: {
138
+ tags: ["Agents Configuration"],
139
+ summary: "Get the agent configuration by ID",
140
+ description: 'Retrieves an agent by ID. Supports both:\n- System skill IDs (prefixed): "skill:email-categorizer"\n- Custom agent IDs (UUID): "0336a235-9417-4dd8-894c-fe81285bba75"\n',
141
+ operationId: "getAgentById",
142
+ security: [
143
+ {
144
+ EpilotAuth: []
145
+ }
146
+ ],
147
+ parameters: [
148
+ {
149
+ name: "agent_id",
150
+ in: "path",
151
+ required: true,
152
+ schema: {
153
+ $ref: "#/components/schemas/AgentId"
154
+ }
155
+ }
156
+ ],
157
+ responses: {
158
+ "200": {
159
+ description: "Agent fetched Successfully",
160
+ content: {
161
+ "application/json": {
162
+ schema: {
163
+ $ref: "#/components/schemas/AgentDefinition"
164
+ }
165
+ }
166
+ }
167
+ },
168
+ "400": {
169
+ description: "Error while creating the agent",
170
+ content: {
171
+ "application/json": {
172
+ schema: {
173
+ $ref: "#/components/schemas/Error"
174
+ }
175
+ }
176
+ }
177
+ }
178
+ }
179
+ },
180
+ put: {
181
+ tags: ["Agents Configuration"],
182
+ summary: "Update the agent configuration by ID",
183
+ description: "Updates a custom agent. System skills cannot be updated via this endpoint.",
184
+ operationId: "updateAgentById",
185
+ security: [
186
+ {
187
+ EpilotAuth: []
188
+ }
189
+ ],
190
+ parameters: [
191
+ {
192
+ name: "agent_id",
193
+ in: "path",
194
+ required: true,
195
+ schema: {
196
+ $ref: "#/components/schemas/AgentId"
197
+ }
198
+ }
199
+ ],
200
+ requestBody: {
201
+ required: true,
202
+ content: {
203
+ "application/json": {
204
+ schema: {
205
+ $ref: "#/components/schemas/UpdateAgentRequest"
206
+ }
207
+ }
208
+ }
209
+ },
210
+ responses: {
211
+ "200": {
212
+ description: "Agent updated Successfully",
213
+ content: {
214
+ "application/json": {
215
+ schema: {
216
+ $ref: "#/components/schemas/AgentDefinition"
217
+ }
218
+ }
219
+ }
220
+ },
221
+ "400": {
222
+ description: "Error while updating the agent",
223
+ content: {
224
+ "application/json": {
225
+ schema: {
226
+ $ref: "#/components/schemas/Error"
227
+ }
228
+ }
229
+ }
230
+ }
231
+ }
232
+ },
233
+ delete: {
234
+ tags: ["Agents Configuration"],
235
+ summary: "Delete the agent configuration by ID",
236
+ description: "Deletes a custom agent. System skills cannot be deleted via this endpoint.",
237
+ security: [
238
+ {
239
+ EpilotAuth: []
240
+ }
241
+ ],
242
+ operationId: "deleteAgentById",
243
+ parameters: [
244
+ {
245
+ name: "agent_id",
246
+ in: "path",
247
+ required: true,
248
+ schema: {
249
+ $ref: "#/components/schemas/AgentId"
250
+ }
251
+ }
252
+ ],
253
+ responses: {
254
+ "204": {
255
+ description: "Agent deleted Successfully"
256
+ },
257
+ "400": {
258
+ description: "Error while deleting the agent",
259
+ content: {
260
+ "application/json": {
261
+ schema: {
262
+ $ref: "#/components/schemas/Error"
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+ }
269
+ },
270
+ "/v1/agents/{agent_id}/execute": {
271
+ post: {
272
+ tags: ["Agent Execution"],
273
+ summary: "Execute an agent",
274
+ description: 'Executes an agent (system skill or custom agent).\nSupports both:\n- System skill IDs (prefixed): "skill:email-categorizer"\n- Custom agent IDs (UUID): "0336a235-9417-4dd8-894c-fe81285bba75"\n',
275
+ operationId: "executeAgent",
276
+ security: [
277
+ {
278
+ EpilotAuth: []
279
+ }
280
+ ],
281
+ parameters: [
282
+ {
283
+ name: "agent_id",
284
+ in: "path",
285
+ required: true,
286
+ schema: {
287
+ $ref: "#/components/schemas/AgentId"
288
+ }
289
+ }
290
+ ],
291
+ requestBody: {
292
+ required: false,
293
+ content: {
294
+ "application/json": {
295
+ schema: {
296
+ $ref: "#/components/schemas/ExecuteAgentRequest"
297
+ }
298
+ }
299
+ }
300
+ },
301
+ responses: {
302
+ "200": {
303
+ description: "Agent execution initiated or completed",
304
+ content: {
305
+ "application/json": {
306
+ schema: {
307
+ $ref: "#/components/schemas/ExecutionResponse"
308
+ }
309
+ }
310
+ }
311
+ },
312
+ "400": {
313
+ description: "Error while executing the agent",
314
+ content: {
315
+ "application/json": {
316
+ schema: {
317
+ $ref: "#/components/schemas/Error"
318
+ }
319
+ }
320
+ }
321
+ },
322
+ "404": {
323
+ description: "Agent not found",
324
+ content: {
325
+ "application/json": {
326
+ schema: {
327
+ $ref: "#/components/schemas/Error"
328
+ }
329
+ }
330
+ }
331
+ }
332
+ }
333
+ }
334
+ },
335
+ "/v1/executions": {
336
+ get: {
337
+ tags: ["Agent Execution"],
338
+ summary: "List executions",
339
+ operationId: "listExecutions",
340
+ security: [
341
+ {
342
+ EpilotAuth: []
343
+ }
344
+ ],
345
+ parameters: [
346
+ {
347
+ name: "agent_id",
348
+ in: "query",
349
+ schema: {
350
+ type: "string"
351
+ },
352
+ description: "Filter by agent ID"
353
+ },
354
+ {
355
+ name: "status",
356
+ in: "query",
357
+ schema: {
358
+ $ref: "#/components/schemas/ExecutionStatus"
359
+ },
360
+ description: "Filter by status"
361
+ },
362
+ {
363
+ name: "limit",
364
+ in: "query",
365
+ schema: {
366
+ type: "integer",
367
+ default: 50
368
+ },
369
+ description: "Maximum number of executions to return"
370
+ }
371
+ ],
372
+ responses: {
373
+ "200": {
374
+ description: "List of executions",
375
+ content: {
376
+ "application/json": {
377
+ schema: {
378
+ $ref: "#/components/schemas/ListExecutionsResponse"
379
+ }
380
+ }
381
+ }
382
+ },
383
+ "400": {
384
+ description: "Error fetching executions",
385
+ content: {
386
+ "application/json": {
387
+ schema: {
388
+ $ref: "#/components/schemas/Error"
389
+ }
390
+ }
391
+ }
392
+ }
393
+ }
394
+ }
395
+ },
396
+ "/v1/executions/{execution_id}": {
397
+ get: {
398
+ tags: ["Agent Execution"],
399
+ summary: "Get execution by ID",
400
+ operationId: "getExecution",
401
+ security: [
402
+ {
403
+ EpilotAuth: []
404
+ }
405
+ ],
406
+ parameters: [
407
+ {
408
+ name: "execution_id",
409
+ in: "path",
410
+ required: true,
411
+ schema: {
412
+ type: "string",
413
+ format: "uuid"
414
+ }
415
+ }
416
+ ],
417
+ responses: {
418
+ "200": {
419
+ description: "Execution details",
420
+ content: {
421
+ "application/json": {
422
+ schema: {
423
+ $ref: "#/components/schemas/ExecutionResponse"
424
+ }
425
+ }
426
+ }
427
+ },
428
+ "404": {
429
+ description: "Execution not found",
430
+ content: {
431
+ "application/json": {
432
+ schema: {
433
+ $ref: "#/components/schemas/Error"
434
+ }
435
+ }
436
+ }
437
+ }
438
+ }
439
+ },
440
+ delete: {
441
+ tags: ["Agent Execution"],
442
+ summary: "Cancel execution",
443
+ operationId: "cancelExecution",
444
+ security: [
445
+ {
446
+ EpilotAuth: []
447
+ }
448
+ ],
449
+ parameters: [
450
+ {
451
+ name: "execution_id",
452
+ in: "path",
453
+ required: true,
454
+ schema: {
455
+ type: "string",
456
+ format: "uuid"
457
+ }
458
+ }
459
+ ],
460
+ responses: {
461
+ "200": {
462
+ description: "Execution cancelled",
463
+ content: {
464
+ "application/json": {
465
+ schema: {
466
+ $ref: "#/components/schemas/ExecutionResponse"
467
+ }
468
+ }
469
+ }
470
+ },
471
+ "400": {
472
+ description: "Cannot cancel execution (already completed or failed)",
473
+ content: {
474
+ "application/json": {
475
+ schema: {
476
+ $ref: "#/components/schemas/Error"
477
+ }
478
+ }
479
+ }
480
+ },
481
+ "404": {
482
+ description: "Execution not found",
483
+ content: {
484
+ "application/json": {
485
+ schema: {
486
+ $ref: "#/components/schemas/Error"
487
+ }
488
+ }
489
+ }
490
+ }
491
+ }
492
+ }
493
+ },
494
+ "/v1/executions/{execution_id}/trace": {
495
+ get: {
496
+ tags: ["Agent Execution"],
497
+ summary: "Get execution trace/iterations",
498
+ description: "Returns the step-by-step reasoning and tool calls for ReAct mode executions. Returns empty iterations array for direct mode executions.",
499
+ operationId: "getExecutionTrace",
500
+ security: [
501
+ {
502
+ EpilotAuth: []
503
+ }
504
+ ],
505
+ parameters: [
506
+ {
507
+ name: "execution_id",
508
+ in: "path",
509
+ required: true,
510
+ schema: {
511
+ type: "string",
512
+ format: "uuid"
513
+ }
514
+ }
515
+ ],
516
+ responses: {
517
+ "200": {
518
+ description: "Execution trace",
519
+ content: {
520
+ "application/json": {
521
+ schema: {
522
+ $ref: "#/components/schemas/ExecutionTrace"
523
+ }
524
+ }
525
+ }
526
+ },
527
+ "404": {
528
+ description: "Execution not found",
529
+ content: {
530
+ "application/json": {
531
+ schema: {
532
+ $ref: "#/components/schemas/Error"
533
+ }
534
+ }
535
+ }
536
+ }
537
+ }
538
+ }
539
+ },
540
+ "/v1/executions/{execution_id}/approve": {
541
+ post: {
542
+ tags: ["Agent Execution"],
543
+ summary: "Approve pending action",
544
+ description: "Approves a pending tool action when execution is in waiting_approval status",
545
+ operationId: "approveExecution",
546
+ security: [
547
+ {
548
+ EpilotAuth: []
549
+ }
550
+ ],
551
+ parameters: [
552
+ {
553
+ name: "execution_id",
554
+ in: "path",
555
+ required: true,
556
+ schema: {
557
+ type: "string",
558
+ format: "uuid"
559
+ }
560
+ }
561
+ ],
562
+ requestBody: {
563
+ content: {
564
+ "application/json": {
565
+ schema: {
566
+ $ref: "#/components/schemas/ApproveExecutionRequest"
567
+ }
568
+ }
569
+ }
570
+ },
571
+ responses: {
572
+ "200": {
573
+ description: "Action approved",
574
+ content: {
575
+ "application/json": {
576
+ schema: {
577
+ $ref: "#/components/schemas/ExecutionResponse"
578
+ }
579
+ }
580
+ }
581
+ },
582
+ "400": {
583
+ description: "No pending action to approve",
584
+ content: {
585
+ "application/json": {
586
+ schema: {
587
+ $ref: "#/components/schemas/Error"
588
+ }
589
+ }
590
+ }
591
+ },
592
+ "404": {
593
+ description: "Execution not found",
594
+ content: {
595
+ "application/json": {
596
+ schema: {
597
+ $ref: "#/components/schemas/Error"
598
+ }
599
+ }
600
+ }
601
+ }
602
+ }
603
+ }
604
+ },
605
+ "/v1/executions/{execution_id}/reject": {
606
+ post: {
607
+ tags: ["Agent Execution"],
608
+ summary: "Reject pending action",
609
+ description: "Rejects a pending tool action when execution is in waiting_approval status",
610
+ operationId: "rejectExecution",
611
+ security: [
612
+ {
613
+ EpilotAuth: []
614
+ }
615
+ ],
616
+ parameters: [
617
+ {
618
+ name: "execution_id",
619
+ in: "path",
620
+ required: true,
621
+ schema: {
622
+ type: "string",
623
+ format: "uuid"
624
+ }
625
+ }
626
+ ],
627
+ requestBody: {
628
+ required: true,
629
+ content: {
630
+ "application/json": {
631
+ schema: {
632
+ $ref: "#/components/schemas/RejectExecutionRequest"
633
+ }
634
+ }
635
+ }
636
+ },
637
+ responses: {
638
+ "200": {
639
+ description: "Action rejected",
640
+ content: {
641
+ "application/json": {
642
+ schema: {
643
+ $ref: "#/components/schemas/ExecutionResponse"
644
+ }
645
+ }
646
+ }
647
+ },
648
+ "400": {
649
+ description: "No pending action to reject",
650
+ content: {
651
+ "application/json": {
652
+ schema: {
653
+ $ref: "#/components/schemas/Error"
654
+ }
655
+ }
656
+ }
657
+ },
658
+ "404": {
659
+ description: "Execution not found",
660
+ content: {
661
+ "application/json": {
662
+ schema: {
663
+ $ref: "#/components/schemas/Error"
664
+ }
665
+ }
666
+ }
667
+ }
668
+ }
669
+ }
670
+ }
671
+ };
672
+ var components = {
673
+ securitySchemes: {
674
+ EpilotAuth: {
675
+ type: "http",
676
+ scheme: "bearer",
677
+ description: "Authorization header with epilot OAuth2 bearer token. Supports RFC8725 for JWT validation.",
678
+ bearerFormat: "JWT"
679
+ }
680
+ },
681
+ schemas: {
682
+ AgentId: {
683
+ type: "string",
684
+ description: 'Agent identifier. Can be either:\n- System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"\n- Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"\n',
685
+ example: "skill:email-categorizer"
686
+ },
687
+ CreateAgentRequest: {
688
+ type: "object",
689
+ required: ["name", "system_prompt", "execution_pattern"],
690
+ properties: {
691
+ name: {
692
+ type: "string",
693
+ minLength: 1,
694
+ maxLength: 100,
695
+ example: "Email Reply Generator"
696
+ },
697
+ description: {
698
+ type: "string",
699
+ maxLength: 1e3
700
+ },
701
+ category: {
702
+ $ref: "#/components/schemas/SkillCategory"
703
+ },
704
+ icon: {
705
+ type: "string",
706
+ example: "mail-reply"
707
+ },
708
+ system_prompt: {
709
+ type: "string",
710
+ minLength: 1,
711
+ description: "Core LLM instructions"
712
+ },
713
+ tools: {
714
+ type: "array",
715
+ items: {
716
+ type: "string"
717
+ },
718
+ description: "Tool IDs this agent can use",
719
+ example: ["entity.search", "message.draft"]
720
+ },
721
+ model_config: {
722
+ $ref: "#/components/schemas/ModelConfig"
723
+ },
724
+ max_iterations: {
725
+ type: "integer",
726
+ minimum: 1,
727
+ maximum: 20,
728
+ default: 10,
729
+ description: "Max ReAct loop iterations"
730
+ },
731
+ execution_pattern: {
732
+ $ref: "#/components/schemas/ExecutionPattern"
733
+ },
734
+ execution_mode: {
735
+ $ref: "#/components/schemas/ExecutionMode"
736
+ },
737
+ output_schema: {
738
+ type: "object",
739
+ description: "JSON Schema for expected output"
740
+ },
741
+ input_parameters_schema: {
742
+ $ref: "#/components/schemas/InputParametersSchema"
743
+ }
744
+ }
745
+ },
746
+ UpdateAgentRequest: {
747
+ type: "object",
748
+ properties: {
749
+ name: {
750
+ type: "string",
751
+ minLength: 1,
752
+ maxLength: 100
753
+ },
754
+ description: {
755
+ type: "string",
756
+ maxLength: 1e3
757
+ },
758
+ category: {
759
+ $ref: "#/components/schemas/SkillCategory"
760
+ },
761
+ icon: {
762
+ type: "string"
763
+ },
764
+ system_prompt: {
765
+ type: "string",
766
+ minLength: 1
767
+ },
768
+ tools: {
769
+ type: "array",
770
+ items: {
771
+ type: "string"
772
+ }
773
+ },
774
+ model_config: {
775
+ $ref: "#/components/schemas/ModelConfig"
776
+ },
777
+ max_iterations: {
778
+ type: "integer",
779
+ minimum: 1,
780
+ maximum: 20
781
+ },
782
+ execution_pattern: {
783
+ $ref: "#/components/schemas/ExecutionPattern"
784
+ },
785
+ execution_mode: {
786
+ $ref: "#/components/schemas/ExecutionMode"
787
+ },
788
+ output_schema: {
789
+ type: "object"
790
+ },
791
+ input_parameters_schema: {
792
+ $ref: "#/components/schemas/InputParametersSchema"
793
+ }
794
+ }
795
+ },
796
+ AgentDefinition: {
797
+ type: "object",
798
+ properties: {
799
+ agent_id: {
800
+ $ref: "#/components/schemas/AgentId"
801
+ },
802
+ org_id: {
803
+ type: "string"
804
+ },
805
+ name: {
806
+ type: "string"
807
+ },
808
+ description: {
809
+ type: "string"
810
+ },
811
+ category: {
812
+ $ref: "#/components/schemas/SkillCategory"
813
+ },
814
+ icon: {
815
+ type: "string"
816
+ },
817
+ source: {
818
+ $ref: "#/components/schemas/AgentSource"
819
+ },
820
+ availability: {
821
+ type: "array",
822
+ items: {
823
+ $ref: "#/components/schemas/SkillAvailability"
824
+ },
825
+ description: "Where this agent/skill is available (flows, copilot, or both)",
826
+ example: ["flows", "copilot"]
827
+ },
828
+ allowed_entity_schemas: {
829
+ type: "array",
830
+ items: {
831
+ type: "string"
832
+ },
833
+ description: 'Entity schemas this skill is allowed to work with (e.g., ["message"] for email skills)',
834
+ example: ["message"]
835
+ },
836
+ system_prompt: {
837
+ type: "string"
838
+ },
839
+ tools: {
840
+ type: "array",
841
+ items: {
842
+ type: "string"
843
+ }
844
+ },
845
+ model_config: {
846
+ $ref: "#/components/schemas/ModelConfig"
847
+ },
848
+ max_iterations: {
849
+ type: "integer"
850
+ },
851
+ execution_pattern: {
852
+ $ref: "#/components/schemas/ExecutionPattern"
853
+ },
854
+ execution_mode: {
855
+ $ref: "#/components/schemas/ExecutionMode"
856
+ },
857
+ output_schema: {
858
+ type: "object"
859
+ },
860
+ input_parameters_schema: {
861
+ $ref: "#/components/schemas/InputParametersSchema"
862
+ },
863
+ version: {
864
+ type: "integer"
865
+ },
866
+ created_at: {
867
+ type: "string",
868
+ format: "date-time"
869
+ },
870
+ updated_at: {
871
+ type: "string",
872
+ format: "date-time"
873
+ },
874
+ created_by: {
875
+ type: "string"
876
+ }
877
+ }
878
+ },
879
+ ListAgentsResponse: {
880
+ type: "object",
881
+ properties: {
882
+ agents: {
883
+ type: "array",
884
+ items: {
885
+ $ref: "#/components/schemas/AgentDefinition"
886
+ }
887
+ },
888
+ next_cursor: {
889
+ type: "string",
890
+ nullable: true
891
+ }
892
+ }
893
+ },
894
+ ListExecutionsResponse: {
895
+ type: "object",
896
+ properties: {
897
+ executions: {
898
+ type: "array",
899
+ items: {
900
+ $ref: "#/components/schemas/ExecutionResponse"
901
+ }
902
+ },
903
+ next_cursor: {
904
+ type: "string",
905
+ nullable: true
906
+ }
907
+ }
908
+ },
909
+ ApproveExecutionRequest: {
910
+ type: "object",
911
+ properties: {
912
+ reason: {
913
+ type: "string",
914
+ description: "Optional reason for approval"
915
+ }
916
+ }
917
+ },
918
+ RejectExecutionRequest: {
919
+ type: "object",
920
+ required: ["reason"],
921
+ properties: {
922
+ reason: {
923
+ type: "string",
924
+ description: "Reason for rejection"
925
+ }
926
+ }
927
+ },
928
+ ExecuteAgentRequest: {
929
+ type: "object",
930
+ properties: {
931
+ input: {
932
+ type: "object",
933
+ properties: {
934
+ entity_id: {
935
+ type: "string",
936
+ description: "Primary entity ID for context"
937
+ },
938
+ entity_schema: {
939
+ type: "string",
940
+ description: 'Schema of the primary entity (e.g., "message", "contact")'
941
+ },
942
+ workflow_id: {
943
+ type: "string"
944
+ },
945
+ workflow_execution_id: {
946
+ type: "string"
947
+ },
948
+ task_id: {
949
+ type: "string"
950
+ },
951
+ custom_data: {
952
+ type: "object",
953
+ additionalProperties: true
954
+ },
955
+ flow_context: {
956
+ type: "array",
957
+ description: "Array of entities from the flow trigger context (e.g., the message entity when triggered by email receive)",
958
+ items: {
959
+ type: "object",
960
+ properties: {
961
+ entity_id: {
962
+ type: "string"
963
+ },
964
+ entity_schema: {
965
+ type: "string"
966
+ }
967
+ },
968
+ required: ["entity_id", "entity_schema"]
969
+ }
970
+ }
971
+ }
972
+ },
973
+ parameters: {
974
+ type: "object",
975
+ additionalProperties: true,
976
+ description: "Runtime parameters (validated against input_parameters_schema)"
977
+ },
978
+ execution_mode_override: {
979
+ $ref: "#/components/schemas/ExecutionMode"
980
+ },
981
+ execution_context: {
982
+ $ref: "#/components/schemas/ExecutionContext"
983
+ },
984
+ callback_url: {
985
+ type: "string",
986
+ format: "uri",
987
+ description: "Webhook URL for async completion notification"
988
+ },
989
+ timeout_ms: {
990
+ type: "integer",
991
+ default: 3e4,
992
+ maximum: 3e5,
993
+ description: "Execution timeout in milliseconds"
994
+ }
995
+ }
996
+ },
997
+ ExecutionResponse: {
998
+ type: "object",
999
+ properties: {
1000
+ execution_id: {
1001
+ type: "string",
1002
+ format: "uuid"
1003
+ },
1004
+ agent_id: {
1005
+ $ref: "#/components/schemas/AgentId"
1006
+ },
1007
+ agent_source: {
1008
+ $ref: "#/components/schemas/AgentSource"
1009
+ },
1010
+ agent_name: {
1011
+ type: "string",
1012
+ description: "Human-readable agent name (denormalized for display)"
1013
+ },
1014
+ execution_context: {
1015
+ $ref: "#/components/schemas/ExecutionContext"
1016
+ },
1017
+ org_id: {
1018
+ type: "string"
1019
+ },
1020
+ status: {
1021
+ $ref: "#/components/schemas/ExecutionStatus"
1022
+ },
1023
+ input: {
1024
+ type: "object"
1025
+ },
1026
+ parameters: {
1027
+ type: "object"
1028
+ },
1029
+ result: {
1030
+ type: "object",
1031
+ nullable: true,
1032
+ description: "Execution result (when status=completed)",
1033
+ properties: {
1034
+ response: {
1035
+ type: "string",
1036
+ description: "Text response from the agent"
1037
+ },
1038
+ structured_output: {
1039
+ type: "object",
1040
+ nullable: true,
1041
+ description: "Parsed structured output (only for direct mode with output_schema)"
1042
+ }
1043
+ }
1044
+ },
1045
+ error: {
1046
+ $ref: "#/components/schemas/ExecutionError"
1047
+ },
1048
+ pending_action: {
1049
+ $ref: "#/components/schemas/PendingAction"
1050
+ },
1051
+ metrics: {
1052
+ $ref: "#/components/schemas/ExecutionMetrics"
1053
+ },
1054
+ started_at: {
1055
+ type: "string",
1056
+ format: "date-time"
1057
+ },
1058
+ completed_at: {
1059
+ type: "string",
1060
+ format: "date-time",
1061
+ nullable: true
1062
+ }
1063
+ }
1064
+ },
1065
+ ExecutionTrace: {
1066
+ type: "object",
1067
+ properties: {
1068
+ execution_id: {
1069
+ type: "string",
1070
+ format: "uuid"
1071
+ },
1072
+ iterations: {
1073
+ type: "array",
1074
+ items: {
1075
+ $ref: "#/components/schemas/ExecutionIteration"
1076
+ }
1077
+ },
1078
+ total_iterations: {
1079
+ type: "integer"
1080
+ }
1081
+ }
1082
+ },
1083
+ ExecutionIteration: {
1084
+ type: "object",
1085
+ properties: {
1086
+ iteration_index: {
1087
+ type: "integer"
1088
+ },
1089
+ thought: {
1090
+ type: "string",
1091
+ description: "LLM reasoning/thinking"
1092
+ },
1093
+ action: {
1094
+ type: "object",
1095
+ nullable: true,
1096
+ properties: {
1097
+ tool: {
1098
+ type: "string"
1099
+ },
1100
+ input: {
1101
+ type: "object"
1102
+ }
1103
+ }
1104
+ },
1105
+ observation: {
1106
+ type: "object",
1107
+ nullable: true,
1108
+ description: "Tool result"
1109
+ },
1110
+ timestamp: {
1111
+ type: "string",
1112
+ format: "date-time"
1113
+ },
1114
+ tokens_used: {
1115
+ type: "integer"
1116
+ },
1117
+ latency_ms: {
1118
+ type: "integer"
1119
+ }
1120
+ }
1121
+ },
1122
+ PendingAction: {
1123
+ type: "object",
1124
+ nullable: true,
1125
+ description: "Action waiting for approval (when status=waiting_approval)",
1126
+ properties: {
1127
+ tool: {
1128
+ type: "string",
1129
+ description: "Tool ID that requires approval"
1130
+ },
1131
+ input: {
1132
+ type: "object",
1133
+ description: "Tool input parameters"
1134
+ },
1135
+ description: {
1136
+ type: "string",
1137
+ description: "Human-readable description of the action"
1138
+ },
1139
+ preview: {
1140
+ $ref: "#/components/schemas/ToolPreview"
1141
+ }
1142
+ }
1143
+ },
1144
+ ExecutionError: {
1145
+ type: "object",
1146
+ nullable: true,
1147
+ properties: {
1148
+ code: {
1149
+ type: "string",
1150
+ enum: [
1151
+ "TIMEOUT",
1152
+ "MAX_ITERATIONS_EXCEEDED",
1153
+ "TOOL_EXECUTION_FAILED",
1154
+ "LLM_ERROR",
1155
+ "INVALID_OUTPUT",
1156
+ "REJECTED",
1157
+ "INTERNAL_ERROR"
1158
+ ]
1159
+ },
1160
+ message: {
1161
+ type: "string"
1162
+ },
1163
+ details: {
1164
+ type: "object"
1165
+ }
1166
+ }
1167
+ },
1168
+ ExecutionMetrics: {
1169
+ type: "object",
1170
+ properties: {
1171
+ total_tokens: {
1172
+ type: "integer"
1173
+ },
1174
+ input_tokens: {
1175
+ type: "integer"
1176
+ },
1177
+ output_tokens: {
1178
+ type: "integer"
1179
+ },
1180
+ total_cost_usd: {
1181
+ type: "number",
1182
+ format: "float"
1183
+ },
1184
+ duration_ms: {
1185
+ type: "integer"
1186
+ },
1187
+ iteration_count: {
1188
+ type: "integer"
1189
+ }
1190
+ }
1191
+ },
1192
+ ToolPreview: {
1193
+ type: "object",
1194
+ description: "Structured preview data for approval UI. Provides a generic format that any tool can populate.",
1195
+ properties: {
1196
+ action: {
1197
+ type: "object",
1198
+ required: ["type", "verb"],
1199
+ properties: {
1200
+ type: {
1201
+ $ref: "#/components/schemas/PreviewActionType"
1202
+ },
1203
+ verb: {
1204
+ type: "string",
1205
+ description: "Human-readable action verb",
1206
+ example: "Move Thread"
1207
+ }
1208
+ }
1209
+ },
1210
+ source: {
1211
+ $ref: "#/components/schemas/PreviewEntity"
1212
+ },
1213
+ target: {
1214
+ $ref: "#/components/schemas/PreviewEntity"
1215
+ },
1216
+ changes: {
1217
+ type: "array",
1218
+ items: {
1219
+ $ref: "#/components/schemas/PreviewChange"
1220
+ },
1221
+ description: "List of changes/modifications being made"
1222
+ },
1223
+ metadata: {
1224
+ type: "object",
1225
+ additionalProperties: {
1226
+ $ref: "#/components/schemas/PreviewValue"
1227
+ },
1228
+ description: "Additional context information"
1229
+ },
1230
+ summary: {
1231
+ type: "string",
1232
+ description: "AI reasoning for why this action is recommended",
1233
+ example: "This email discusses solar panel installation and should be handled by the Service team."
1234
+ }
1235
+ }
1236
+ },
1237
+ PreviewActionType: {
1238
+ type: "string",
1239
+ enum: ["move", "create", "update", "delete", "apply", "send", "link", "unlink"],
1240
+ description: "Type of action being previewed"
1241
+ },
1242
+ PreviewEntity: {
1243
+ type: "object",
1244
+ description: "Entity reference for preview display",
1245
+ properties: {
1246
+ type: {
1247
+ type: "string",
1248
+ description: 'Entity type (e.g., "inbox", "email", "contact", "label")',
1249
+ example: "inbox"
1250
+ },
1251
+ id: {
1252
+ type: "string",
1253
+ description: "Entity ID"
1254
+ },
1255
+ name: {
1256
+ type: "string",
1257
+ description: "Human-readable name for display",
1258
+ example: "Support Inbox"
1259
+ },
1260
+ schema: {
1261
+ type: "string",
1262
+ description: "Entity schema (for epilot entities)"
1263
+ },
1264
+ icon: {
1265
+ type: "string",
1266
+ description: "Icon hint for UI"
1267
+ },
1268
+ url: {
1269
+ type: "string",
1270
+ description: "Optional URL to view the entity"
1271
+ }
1272
+ }
1273
+ },
1274
+ PreviewChange: {
1275
+ type: "object",
1276
+ description: "A single field change in the preview",
1277
+ properties: {
1278
+ field: {
1279
+ type: "string",
1280
+ description: "Field identifier"
1281
+ },
1282
+ label: {
1283
+ type: "string",
1284
+ description: "Human-readable field label"
1285
+ },
1286
+ from: {
1287
+ $ref: "#/components/schemas/PreviewValue"
1288
+ },
1289
+ to: {
1290
+ $ref: "#/components/schemas/PreviewValue"
1291
+ }
1292
+ }
1293
+ },
1294
+ PreviewValue: {
1295
+ type: "object",
1296
+ description: "Typed value for preview display",
1297
+ required: ["type"],
1298
+ properties: {
1299
+ type: {
1300
+ type: "string",
1301
+ enum: ["text", "number", "boolean", "list", "entity", "badge"],
1302
+ description: "Value type for proper rendering"
1303
+ },
1304
+ value: {
1305
+ description: 'The actual value (type depends on "type" field)'
1306
+ },
1307
+ values: {
1308
+ type: "array",
1309
+ items: {
1310
+ type: "string"
1311
+ },
1312
+ description: "Array of values (for list type)"
1313
+ },
1314
+ id: {
1315
+ type: "string",
1316
+ description: "Entity ID (for entity type)"
1317
+ },
1318
+ name: {
1319
+ type: "string",
1320
+ description: "Display name (for entity type)"
1321
+ },
1322
+ schema: {
1323
+ type: "string",
1324
+ description: "Entity schema (for entity type)"
1325
+ },
1326
+ color: {
1327
+ type: "string",
1328
+ enum: ["success", "warning", "error", "info"],
1329
+ description: "Badge color (for badge type)"
1330
+ }
1331
+ }
1332
+ },
1333
+ ToolDefinition: {
1334
+ type: "object",
1335
+ properties: {
1336
+ tool_id: {
1337
+ type: "string",
1338
+ example: "entity.search"
1339
+ },
1340
+ name: {
1341
+ type: "string",
1342
+ example: "Search Entities"
1343
+ },
1344
+ description: {
1345
+ type: "string",
1346
+ description: "Description for LLM to understand tool purpose"
1347
+ },
1348
+ category: {
1349
+ type: "string",
1350
+ enum: ["entity", "email", "taxonomy", "rag", "workflow"]
1351
+ },
1352
+ parameters: {
1353
+ type: "object",
1354
+ description: "JSON Schema for tool input"
1355
+ },
1356
+ returns: {
1357
+ type: "object",
1358
+ description: "JSON Schema for tool output"
1359
+ },
1360
+ requires_approval: {
1361
+ type: "boolean",
1362
+ default: false,
1363
+ description: "Whether this tool always requires human approval"
1364
+ },
1365
+ enabled: {
1366
+ type: "boolean",
1367
+ default: true
1368
+ }
1369
+ }
1370
+ },
1371
+ SkillCategory: {
1372
+ type: "string",
1373
+ enum: ["message", "entity", "document", "classification", "custom"]
1374
+ },
1375
+ AgentSource: {
1376
+ type: "string",
1377
+ enum: ["system", "custom"],
1378
+ description: "- system: Pre-built by epilot (system skills)\n- custom: Created by organization\n"
1379
+ },
1380
+ SkillAvailability: {
1381
+ type: "string",
1382
+ enum: ["flows", "copilot", "all"],
1383
+ description: "Where the skill/agent is available:\n- flows: Available in workflow automations\n- copilot: Available as a sub-agent in copilot\n- all: Available everywhere\n"
1384
+ },
1385
+ ExecutionContext: {
1386
+ type: "string",
1387
+ enum: ["flows", "copilot", "api"],
1388
+ description: "Where the execution was triggered from:\n- flows: Triggered from workflow automation\n- copilot: Triggered from copilot assistant\n- api: Direct API call\n"
1389
+ },
1390
+ ExecutionPattern: {
1391
+ type: "string",
1392
+ enum: ["direct", "react"],
1393
+ description: "- direct: Single LLM call, no tools\n- react: Multi-step reasoning with tool use\n"
1394
+ },
1395
+ ExecutionMode: {
1396
+ type: "string",
1397
+ enum: ["automatic", "approval", "draft"],
1398
+ description: "- automatic: Execute without human intervention\n- approval: Pause for human approval before tool execution\n- draft: Execute but mark output as draft for review\n"
1399
+ },
1400
+ ExecutionStatus: {
1401
+ type: "string",
1402
+ enum: ["pending", "running", "waiting_approval", "completed", "failed", "cancelled"]
1403
+ },
1404
+ ParameterType: {
1405
+ type: "string",
1406
+ enum: [
1407
+ "text",
1408
+ "textarea",
1409
+ "number",
1410
+ "boolean",
1411
+ "select",
1412
+ "entity-schema",
1413
+ "entity-attribute",
1414
+ "entity-id",
1415
+ "taxonomy",
1416
+ "taxonomy-classification",
1417
+ "shared-inbox",
1418
+ "label"
1419
+ ],
1420
+ description: "Base types:\n- text: Text input field\n- textarea: Multi-line text input field\n- number: Numeric input field\n- boolean: Toggle switch\n- select: Dropdown selection (requires enum array)\n\nCustom types (domain-specific):\n- entity-schema: Entity schema selector (fetches from Entity API)\n- entity-attribute: Entity attribute selector (requires dependsOn)\n- entity-id: Entity picker (search and select entities)\n- taxonomy: Taxonomy selector (fetches from Taxonomy API)\n- taxonomy-classification: Classification selector (requires dependsOn)\n- shared-inbox: Shared inbox selector (fetches from Email Settings API)\n"
1421
+ },
1422
+ InputParameterDefinition: {
1423
+ type: "object",
1424
+ required: ["name", "label", "type"],
1425
+ properties: {
1426
+ name: {
1427
+ type: "string",
1428
+ description: "Unique identifier for the parameter (used in API)",
1429
+ example: "target_schema"
1430
+ },
1431
+ label: {
1432
+ type: "string",
1433
+ description: "Human-readable display label",
1434
+ example: "Target Schema"
1435
+ },
1436
+ type: {
1437
+ $ref: "#/components/schemas/ParameterType"
1438
+ },
1439
+ description: {
1440
+ type: "string",
1441
+ description: "Help text for the parameter"
1442
+ },
1443
+ default: {
1444
+ description: "Default value for the parameter"
1445
+ },
1446
+ multi: {
1447
+ type: "boolean",
1448
+ default: false,
1449
+ description: "Allow multiple selections (value becomes array)"
1450
+ },
1451
+ dependsOn: {
1452
+ type: "string",
1453
+ description: "Parent parameter this depends on (for entity-attribute, taxonomy-classification)"
1454
+ },
1455
+ visibleWhen: {
1456
+ type: "object",
1457
+ additionalProperties: {
1458
+ type: "array"
1459
+ },
1460
+ description: "Conditional visibility rules (show when parent has specific values)"
1461
+ },
1462
+ enum: {
1463
+ type: "array",
1464
+ items: {
1465
+ type: "string"
1466
+ },
1467
+ description: "Allowed values (required for 'select' type)"
1468
+ },
1469
+ minimum: {
1470
+ type: "number",
1471
+ description: "Minimum value (for number type)"
1472
+ },
1473
+ maximum: {
1474
+ type: "number",
1475
+ description: "Maximum value (for number type)"
1476
+ },
1477
+ step: {
1478
+ type: "number",
1479
+ description: "Step increment (for number type)"
1480
+ },
1481
+ minLength: {
1482
+ type: "integer",
1483
+ description: "Minimum length (for text type)"
1484
+ },
1485
+ maxLength: {
1486
+ type: "integer",
1487
+ description: "Maximum length (for text type)"
1488
+ },
1489
+ schemaFilter: {
1490
+ type: "array",
1491
+ items: {
1492
+ type: "string"
1493
+ },
1494
+ description: "Filter to specific schemas (for entity-schema, entity-id)"
1495
+ },
1496
+ attributeTypeFilter: {
1497
+ type: "array",
1498
+ items: {
1499
+ type: "string"
1500
+ },
1501
+ description: "Filter to specific attribute types (for entity-attribute)"
1502
+ }
1503
+ }
1504
+ },
1505
+ InputParametersSchema: {
1506
+ type: "object",
1507
+ required: ["type", "parameters"],
1508
+ properties: {
1509
+ type: {
1510
+ type: "string",
1511
+ enum: ["object"],
1512
+ description: 'Always "object"'
1513
+ },
1514
+ parameters: {
1515
+ type: "array",
1516
+ items: {
1517
+ $ref: "#/components/schemas/InputParameterDefinition"
1518
+ },
1519
+ description: "Array of parameter definitions"
1520
+ },
1521
+ required: {
1522
+ type: "array",
1523
+ items: {
1524
+ type: "string"
1525
+ },
1526
+ description: "Array of parameter names that are required"
1527
+ }
1528
+ },
1529
+ example: {
1530
+ type: "object",
1531
+ parameters: [
1532
+ {
1533
+ name: "target_schema",
1534
+ label: "Target Schema",
1535
+ type: "entity-schema",
1536
+ description: "Entity type to create"
1537
+ },
1538
+ {
1539
+ name: "confidence_threshold",
1540
+ label: "Confidence Threshold",
1541
+ type: "number",
1542
+ minimum: 0,
1543
+ maximum: 1,
1544
+ default: 0.8
1545
+ },
1546
+ {
1547
+ name: "categories",
1548
+ label: "Categories",
1549
+ type: "select",
1550
+ enum: ["invoice", "contract", "letter"],
1551
+ multi: true
1552
+ }
1553
+ ],
1554
+ required: ["target_schema"]
1555
+ }
1556
+ },
1557
+ ModelConfig: {
1558
+ type: "object",
1559
+ properties: {
1560
+ model_id: {
1561
+ type: "string",
1562
+ default: "anthropic.claude-3-5-sonnet-20241022-v2:0",
1563
+ description: "AWS Bedrock model ID"
1564
+ },
1565
+ temperature: {
1566
+ type: "number",
1567
+ minimum: 0,
1568
+ maximum: 1,
1569
+ default: 0.7
1570
+ },
1571
+ max_tokens: {
1572
+ type: "integer",
1573
+ default: 4096,
1574
+ maximum: 8192
1575
+ }
1576
+ }
1577
+ },
1578
+ Error: {
1579
+ type: "object",
1580
+ properties: {
1581
+ error: {
1582
+ type: "string"
1583
+ },
1584
+ message: {
1585
+ type: "string"
1586
+ },
1587
+ details: {
1588
+ type: "object"
1589
+ }
1590
+ }
1591
+ }
1592
+ }
1593
+ };
1594
+ var ai_agents_default = {
1595
+ openapi,
1596
+ info,
1597
+ security,
1598
+ servers,
1599
+ tags,
1600
+ paths,
1601
+ components
1602
+ };
1603
+ export {
1604
+ components,
1605
+ ai_agents_default as default,
1606
+ info,
1607
+ openapi,
1608
+ paths,
1609
+ security,
1610
+ servers,
1611
+ tags
1612
+ };