@epilot/sdk 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +294 -0
- package/dist/access-token-MYDOBCIY.cjs +89 -0
- package/dist/access-token-Y5JR7PRG.js +89 -0
- package/dist/access-token.d-C2qnueDV.d.cts +553 -0
- package/dist/access-token.d-C2qnueDV.d.ts +553 -0
- package/dist/address-3RQRG3MK.js +84 -0
- package/dist/address-LQUTDOUA.cjs +84 -0
- package/dist/address-suggestions-PEKSA7B2.cjs +132 -0
- package/dist/address-suggestions-QNK5JWNH.js +132 -0
- package/dist/address-suggestions.d-CewXYNYH.d.cts +340 -0
- package/dist/address-suggestions.d-CewXYNYH.d.ts +340 -0
- package/dist/address.d-DP_aE2ex.d.cts +438 -0
- package/dist/address.d-DP_aE2ex.d.ts +438 -0
- package/dist/ai-agents-MO4PK2RJ.cjs +215 -0
- package/dist/ai-agents-OHP2F243.js +215 -0
- package/dist/ai-agents.d-vG-1utqk.d.cts +1340 -0
- package/dist/ai-agents.d-vG-1utqk.d.ts +1340 -0
- package/dist/apis/access-token.cjs +33 -0
- package/dist/apis/access-token.d.cts +18 -0
- package/dist/apis/access-token.d.ts +18 -0
- package/dist/apis/access-token.js +33 -0
- package/dist/apis/address-suggestions.cjs +33 -0
- package/dist/apis/address-suggestions.d.cts +18 -0
- package/dist/apis/address-suggestions.d.ts +18 -0
- package/dist/apis/address-suggestions.js +33 -0
- package/dist/apis/address.cjs +33 -0
- package/dist/apis/address.d.cts +18 -0
- package/dist/apis/address.d.ts +18 -0
- package/dist/apis/address.js +33 -0
- package/dist/apis/ai-agents.cjs +33 -0
- package/dist/apis/ai-agents.d.cts +18 -0
- package/dist/apis/ai-agents.d.ts +18 -0
- package/dist/apis/ai-agents.js +33 -0
- package/dist/apis/app.cjs +33 -0
- package/dist/apis/app.d.cts +18 -0
- package/dist/apis/app.d.ts +18 -0
- package/dist/apis/app.js +33 -0
- package/dist/apis/audit-logs.cjs +33 -0
- package/dist/apis/audit-logs.d.cts +18 -0
- package/dist/apis/audit-logs.d.ts +18 -0
- package/dist/apis/audit-logs.js +33 -0
- package/dist/apis/automation.cjs +33 -0
- package/dist/apis/automation.d.cts +18 -0
- package/dist/apis/automation.d.ts +18 -0
- package/dist/apis/automation.js +33 -0
- package/dist/apis/billing.cjs +33 -0
- package/dist/apis/billing.d.cts +18 -0
- package/dist/apis/billing.d.ts +18 -0
- package/dist/apis/billing.js +33 -0
- package/dist/apis/blueprint-manifest.cjs +33 -0
- package/dist/apis/blueprint-manifest.d.cts +18 -0
- package/dist/apis/blueprint-manifest.d.ts +18 -0
- package/dist/apis/blueprint-manifest.js +33 -0
- package/dist/apis/consent.cjs +33 -0
- package/dist/apis/consent.d.cts +18 -0
- package/dist/apis/consent.d.ts +18 -0
- package/dist/apis/consent.js +33 -0
- package/dist/apis/customer-portal.cjs +33 -0
- package/dist/apis/customer-portal.d.cts +18 -0
- package/dist/apis/customer-portal.d.ts +18 -0
- package/dist/apis/customer-portal.js +33 -0
- package/dist/apis/data-management.cjs +33 -0
- package/dist/apis/data-management.d.cts +18 -0
- package/dist/apis/data-management.d.ts +18 -0
- package/dist/apis/data-management.js +33 -0
- package/dist/apis/deduplication.cjs +33 -0
- package/dist/apis/deduplication.d.cts +18 -0
- package/dist/apis/deduplication.d.ts +18 -0
- package/dist/apis/deduplication.js +33 -0
- package/dist/apis/design.cjs +33 -0
- package/dist/apis/design.d.cts +18 -0
- package/dist/apis/design.d.ts +18 -0
- package/dist/apis/design.js +33 -0
- package/dist/apis/discussion.cjs +33 -0
- package/dist/apis/discussion.d.cts +18 -0
- package/dist/apis/discussion.d.ts +18 -0
- package/dist/apis/discussion.js +33 -0
- package/dist/apis/document.cjs +33 -0
- package/dist/apis/document.d.cts +18 -0
- package/dist/apis/document.d.ts +18 -0
- package/dist/apis/document.js +33 -0
- package/dist/apis/email-settings.cjs +33 -0
- package/dist/apis/email-settings.d.cts +18 -0
- package/dist/apis/email-settings.d.ts +18 -0
- package/dist/apis/email-settings.js +33 -0
- package/dist/apis/email-template.cjs +33 -0
- package/dist/apis/email-template.d.cts +18 -0
- package/dist/apis/email-template.d.ts +18 -0
- package/dist/apis/email-template.js +33 -0
- package/dist/apis/entity-mapping.cjs +33 -0
- package/dist/apis/entity-mapping.d.cts +18 -0
- package/dist/apis/entity-mapping.d.ts +18 -0
- package/dist/apis/entity-mapping.js +33 -0
- package/dist/apis/entity.cjs +33 -0
- package/dist/apis/entity.d.cts +18 -0
- package/dist/apis/entity.d.ts +18 -0
- package/dist/apis/entity.js +33 -0
- package/dist/apis/environments.cjs +33 -0
- package/dist/apis/environments.d.cts +18 -0
- package/dist/apis/environments.d.ts +18 -0
- package/dist/apis/environments.js +33 -0
- package/dist/apis/erp-integration.cjs +33 -0
- package/dist/apis/erp-integration.d.cts +18 -0
- package/dist/apis/erp-integration.d.ts +18 -0
- package/dist/apis/erp-integration.js +33 -0
- package/dist/apis/event-catalog.cjs +33 -0
- package/dist/apis/event-catalog.d.cts +18 -0
- package/dist/apis/event-catalog.d.ts +18 -0
- package/dist/apis/event-catalog.js +33 -0
- package/dist/apis/file.cjs +33 -0
- package/dist/apis/file.d.cts +18 -0
- package/dist/apis/file.d.ts +18 -0
- package/dist/apis/file.js +33 -0
- package/dist/apis/iban.cjs +33 -0
- package/dist/apis/iban.d.cts +18 -0
- package/dist/apis/iban.d.ts +18 -0
- package/dist/apis/iban.js +33 -0
- package/dist/apis/journey.cjs +33 -0
- package/dist/apis/journey.d.cts +18 -0
- package/dist/apis/journey.d.ts +18 -0
- package/dist/apis/journey.js +33 -0
- package/dist/apis/kanban.cjs +33 -0
- package/dist/apis/kanban.d.cts +18 -0
- package/dist/apis/kanban.d.ts +18 -0
- package/dist/apis/kanban.js +33 -0
- package/dist/apis/message.cjs +33 -0
- package/dist/apis/message.d.cts +18 -0
- package/dist/apis/message.d.ts +18 -0
- package/dist/apis/message.js +33 -0
- package/dist/apis/metering.cjs +33 -0
- package/dist/apis/metering.d.cts +18 -0
- package/dist/apis/metering.d.ts +18 -0
- package/dist/apis/metering.js +33 -0
- package/dist/apis/notes.cjs +33 -0
- package/dist/apis/notes.d.cts +18 -0
- package/dist/apis/notes.d.ts +18 -0
- package/dist/apis/notes.js +33 -0
- package/dist/apis/notification.cjs +33 -0
- package/dist/apis/notification.d.cts +18 -0
- package/dist/apis/notification.d.ts +18 -0
- package/dist/apis/notification.js +33 -0
- package/dist/apis/organization.cjs +33 -0
- package/dist/apis/organization.d.cts +18 -0
- package/dist/apis/organization.d.ts +18 -0
- package/dist/apis/organization.js +33 -0
- package/dist/apis/partner-directory.cjs +33 -0
- package/dist/apis/partner-directory.d.cts +18 -0
- package/dist/apis/partner-directory.d.ts +18 -0
- package/dist/apis/partner-directory.js +33 -0
- package/dist/apis/permissions.cjs +33 -0
- package/dist/apis/permissions.d.cts +18 -0
- package/dist/apis/permissions.d.ts +18 -0
- package/dist/apis/permissions.js +33 -0
- package/dist/apis/pricing-tier.cjs +33 -0
- package/dist/apis/pricing-tier.d.cts +18 -0
- package/dist/apis/pricing-tier.d.ts +18 -0
- package/dist/apis/pricing-tier.js +33 -0
- package/dist/apis/pricing.cjs +33 -0
- package/dist/apis/pricing.d.cts +18 -0
- package/dist/apis/pricing.d.ts +18 -0
- package/dist/apis/pricing.js +33 -0
- package/dist/apis/purpose.cjs +33 -0
- package/dist/apis/purpose.d.cts +18 -0
- package/dist/apis/purpose.d.ts +18 -0
- package/dist/apis/purpose.js +33 -0
- package/dist/apis/sandbox.cjs +33 -0
- package/dist/apis/sandbox.d.cts +18 -0
- package/dist/apis/sandbox.d.ts +18 -0
- package/dist/apis/sandbox.js +33 -0
- package/dist/apis/submission.cjs +33 -0
- package/dist/apis/submission.d.cts +18 -0
- package/dist/apis/submission.d.ts +18 -0
- package/dist/apis/submission.js +33 -0
- package/dist/apis/targeting.cjs +33 -0
- package/dist/apis/targeting.d.cts +18 -0
- package/dist/apis/targeting.d.ts +18 -0
- package/dist/apis/targeting.js +33 -0
- package/dist/apis/template-variables.cjs +33 -0
- package/dist/apis/template-variables.d.cts +18 -0
- package/dist/apis/template-variables.d.ts +18 -0
- package/dist/apis/template-variables.js +33 -0
- package/dist/apis/user.cjs +33 -0
- package/dist/apis/user.d.cts +18 -0
- package/dist/apis/user.d.ts +18 -0
- package/dist/apis/user.js +33 -0
- package/dist/apis/validation-rules.cjs +33 -0
- package/dist/apis/validation-rules.d.cts +18 -0
- package/dist/apis/validation-rules.d.ts +18 -0
- package/dist/apis/validation-rules.js +33 -0
- package/dist/apis/webhooks.cjs +33 -0
- package/dist/apis/webhooks.d.cts +18 -0
- package/dist/apis/webhooks.d.ts +18 -0
- package/dist/apis/webhooks.js +33 -0
- package/dist/apis/workflow-definition.cjs +33 -0
- package/dist/apis/workflow-definition.d.cts +18 -0
- package/dist/apis/workflow-definition.d.ts +18 -0
- package/dist/apis/workflow-definition.js +33 -0
- package/dist/apis/workflow.cjs +33 -0
- package/dist/apis/workflow.d.cts +18 -0
- package/dist/apis/workflow.d.ts +18 -0
- package/dist/apis/workflow.js +33 -0
- package/dist/app-UUTBO3WJ.js +573 -0
- package/dist/app-XJGY6SHO.cjs +573 -0
- package/dist/app.d-Uncn387s.d.cts +3370 -0
- package/dist/app.d-Uncn387s.d.ts +3370 -0
- package/dist/audit-logs-4IJYIOXF.js +55 -0
- package/dist/audit-logs-UWLCPBB4.cjs +55 -0
- package/dist/audit-logs.d-BxZqONu5.d.cts +288 -0
- package/dist/audit-logs.d-BxZqONu5.d.ts +288 -0
- package/dist/automation-4UQADTDO.cjs +282 -0
- package/dist/automation-PVXTQLZX.js +282 -0
- package/dist/automation.d-BteCzeFn.d.cts +4921 -0
- package/dist/automation.d-BteCzeFn.d.ts +4921 -0
- package/dist/billing-FI4V4UX5.cjs +175 -0
- package/dist/billing-OMWNJHGW.js +175 -0
- package/dist/billing.d-BH4__05Y.d.cts +994 -0
- package/dist/billing.d-BH4__05Y.d.ts +994 -0
- package/dist/bin/cli.js +135 -0
- package/dist/blueprint-manifest-CPQAL76N.cjs +504 -0
- package/dist/blueprint-manifest-FIMGDHSH.js +504 -0
- package/dist/blueprint-manifest.d-CU4v09fj.d.cts +3327 -0
- package/dist/blueprint-manifest.d-CU4v09fj.d.ts +3327 -0
- package/dist/chunk-3RG5ZIWI.js +10 -0
- package/dist/chunk-OBGZSXTJ.cjs +10 -0
- package/dist/chunk-UJTFRZMS.js +65 -0
- package/dist/chunk-YLLKMXS3.cjs +65 -0
- package/dist/consent-NHDCDJMK.js +84 -0
- package/dist/consent-R5GU3WCK.cjs +84 -0
- package/dist/consent.d-BETWwU_2.d.cts +266 -0
- package/dist/consent.d-BETWwU_2.d.ts +266 -0
- package/dist/customer-portal-6AV2W43T.cjs +2252 -0
- package/dist/customer-portal-EY57GJYV.js +2252 -0
- package/dist/customer-portal.d-Co_I6psR.d.cts +15255 -0
- package/dist/customer-portal.d-Co_I6psR.d.ts +15255 -0
- package/dist/data-management-ILQUYNTN.cjs +240 -0
- package/dist/data-management-QMXOLOEG.js +240 -0
- package/dist/data-management.d-CkR2E_Pm.d.cts +548 -0
- package/dist/data-management.d-CkR2E_Pm.d.ts +548 -0
- package/dist/deduplication-IVXANO7S.cjs +42 -0
- package/dist/deduplication-WN45DVK3.js +42 -0
- package/dist/deduplication.d-BlHnjhXk.d.cts +114 -0
- package/dist/deduplication.d-BlHnjhXk.d.ts +114 -0
- package/dist/design-ONRLY6XI.cjs +219 -0
- package/dist/design-UHMRO3PG.js +219 -0
- package/dist/design.d-JsNY_cGh.d.cts +834 -0
- package/dist/design.d-JsNY_cGh.d.ts +834 -0
- package/dist/discussion-4CZIG3ZM.cjs +134 -0
- package/dist/discussion-VWMWL2AF.js +134 -0
- package/dist/discussion.d-CxxaYKTf.d.cts +580 -0
- package/dist/discussion.d-CxxaYKTf.d.ts +580 -0
- package/dist/document-CN3JNXFF.js +78 -0
- package/dist/document-PCKNZA4K.cjs +78 -0
- package/dist/document.d-CZ_FGhEn.d.cts +649 -0
- package/dist/document.d-CZ_FGhEn.d.ts +649 -0
- package/dist/email-settings-ANURQMKZ.js +533 -0
- package/dist/email-settings-YE2XB2ZU.cjs +533 -0
- package/dist/email-settings.d-3eXYEyRr.d.cts +2278 -0
- package/dist/email-settings.d-3eXYEyRr.d.ts +2278 -0
- package/dist/email-template-4QI4YS4J.js +122 -0
- package/dist/email-template-BUJBC6HH.cjs +122 -0
- package/dist/email-template.d-C2L0dKqB.d.cts +1175 -0
- package/dist/email-template.d-C2L0dKqB.d.ts +1175 -0
- package/dist/entity-BCFE3UJT.cjs +1600 -0
- package/dist/entity-VEXNQC4Y.js +1600 -0
- package/dist/entity-mapping-PHRLSYP7.cjs +215 -0
- package/dist/entity-mapping-QK7MGNAW.js +215 -0
- package/dist/entity-mapping.d-B3Vyepok.d.cts +1093 -0
- package/dist/entity-mapping.d-B3Vyepok.d.ts +1093 -0
- package/dist/entity.d-DmER_7q5.d.cts +16018 -0
- package/dist/entity.d-DmER_7q5.d.ts +16018 -0
- package/dist/environments-266S44UM.cjs +71 -0
- package/dist/environments-AV7W6SLT.js +71 -0
- package/dist/environments.d-CpILpSNF.d.cts +254 -0
- package/dist/environments.d-CpILpSNF.d.ts +254 -0
- package/dist/erp-integration-5WNBCGWS.cjs +586 -0
- package/dist/erp-integration-EMI5WIWA.js +586 -0
- package/dist/erp-integration.d-DmxUZOUQ.d.cts +4120 -0
- package/dist/erp-integration.d-DmxUZOUQ.d.ts +4120 -0
- package/dist/event-catalog-DBWYKQ6J.cjs +130 -0
- package/dist/event-catalog-KKMXV5LB.js +130 -0
- package/dist/event-catalog.d-B2tq20gn.d.cts +1512 -0
- package/dist/event-catalog.d-B2tq20gn.d.ts +1512 -0
- package/dist/file-3ZLMS6TL.js +573 -0
- package/dist/file-Q66N5XMG.cjs +573 -0
- package/dist/file.d-Bi0EZkNu.d.cts +2993 -0
- package/dist/file.d-Bi0EZkNu.d.ts +2993 -0
- package/dist/iban-HSXVSIFW.cjs +43 -0
- package/dist/iban-Q27INTOC.js +43 -0
- package/dist/iban.d-DP7hl0Qt.d.cts +71 -0
- package/dist/iban.d-DP7hl0Qt.d.ts +71 -0
- package/dist/index.cjs +563 -0
- package/dist/index.d.cts +119 -0
- package/dist/index.d.ts +119 -0
- package/dist/index.js +563 -0
- package/dist/journey-DGKXVWZQ.js +270 -0
- package/dist/journey-T2Y72EBS.cjs +270 -0
- package/dist/journey.d-DxL16X6N.d.cts +1794 -0
- package/dist/journey.d-DxL16X6N.d.ts +1794 -0
- package/dist/kanban-A4B6RCJ2.cjs +164 -0
- package/dist/kanban-PP6WJVT2.js +164 -0
- package/dist/kanban.d-DDrBwr9h.d.cts +631 -0
- package/dist/kanban.d-DDrBwr9h.d.ts +631 -0
- package/dist/message-D6JY4GJH.cjs +673 -0
- package/dist/message-HFX2DDCV.js +673 -0
- package/dist/message.d-BeBH6vof.d.cts +3580 -0
- package/dist/message.d-BeBH6vof.d.ts +3580 -0
- package/dist/metering-63MJFCS2.cjs +399 -0
- package/dist/metering-F63PNFCZ.js +399 -0
- package/dist/metering.d-D5VR4tVa.d.cts +1842 -0
- package/dist/metering.d-D5VR4tVa.d.ts +1842 -0
- package/dist/notes-FTL5H4JE.cjs +219 -0
- package/dist/notes-GMWTQCMB.js +219 -0
- package/dist/notes.d-DZYeVo0I.d.cts +1047 -0
- package/dist/notes.d-DZYeVo0I.d.ts +1047 -0
- package/dist/notification-WXFSOORN.cjs +237 -0
- package/dist/notification-XHG3TIBW.js +237 -0
- package/dist/notification.d-BJwdFZnG.d.cts +1148 -0
- package/dist/notification.d-BJwdFZnG.d.ts +1148 -0
- package/dist/organization-CPXTUDJO.js +118 -0
- package/dist/organization-XIFV7MWP.cjs +118 -0
- package/dist/organization.d-DfUcuwKM.d.cts +629 -0
- package/dist/organization.d-DfUcuwKM.d.ts +629 -0
- package/dist/partner-directory-4WCHPJRO.js +282 -0
- package/dist/partner-directory-FKWPPO7F.cjs +282 -0
- package/dist/partner-directory.d-BRRDHFcz.d.cts +1511 -0
- package/dist/partner-directory.d-BRRDHFcz.d.ts +1511 -0
- package/dist/permissions-5E36GPG3.js +178 -0
- package/dist/permissions-PBTK5CCD.cjs +178 -0
- package/dist/permissions.d-CL7SwMFy.d.cts +1253 -0
- package/dist/permissions.d-CL7SwMFy.d.ts +1253 -0
- package/dist/pricing-FDWEBIQU.js +439 -0
- package/dist/pricing-FZQKL4DW.cjs +439 -0
- package/dist/pricing-tier-34O624R4.js +36 -0
- package/dist/pricing-tier-F4HE6WIM.cjs +36 -0
- package/dist/pricing-tier.d-VuH-NtlR.d.cts +82 -0
- package/dist/pricing-tier.d-VuH-NtlR.d.ts +82 -0
- package/dist/pricing.d-Dd1CaSX_.d.cts +12201 -0
- package/dist/pricing.d-Dd1CaSX_.d.ts +12201 -0
- package/dist/purpose-47HJIG2Q.cjs +180 -0
- package/dist/purpose-MX33NU5H.js +180 -0
- package/dist/purpose.d-D8YCSqt9.d.cts +373 -0
- package/dist/purpose.d-D8YCSqt9.d.ts +373 -0
- package/dist/sandbox-7QNLGFN2.cjs +100 -0
- package/dist/sandbox-TZCXHBJN.js +100 -0
- package/dist/sandbox.d-D1NgPMEc.d.cts +466 -0
- package/dist/sandbox.d-D1NgPMEc.d.ts +466 -0
- package/dist/submission-6LSPBI27.js +55 -0
- package/dist/submission-DBQNDJ4B.cjs +55 -0
- package/dist/submission.d-e9MPrbY1.d.cts +470 -0
- package/dist/submission.d-e9MPrbY1.d.ts +470 -0
- package/dist/targeting-HZRCLNIF.cjs +275 -0
- package/dist/targeting-MTQ6JBCY.js +275 -0
- package/dist/targeting.d-1GW3nh-y.d.cts +2058 -0
- package/dist/targeting.d-1GW3nh-y.d.ts +2058 -0
- package/dist/template-variables-S6IXK7SF.js +159 -0
- package/dist/template-variables-VPNIMC7L.cjs +159 -0
- package/dist/template-variables.d-CqqGe3sd.d.cts +1315 -0
- package/dist/template-variables.d-CqqGe3sd.d.ts +1315 -0
- package/dist/types-C5cGIwtq.d.cts +28 -0
- package/dist/types-C5cGIwtq.d.ts +28 -0
- package/dist/user-BHH4DAA5.cjs +488 -0
- package/dist/user-KBXFVRPI.js +488 -0
- package/dist/user.d-CWBgUia2.d.cts +2199 -0
- package/dist/user.d-CWBgUia2.d.ts +2199 -0
- package/dist/validation-rules-4V7KAWGW.cjs +120 -0
- package/dist/validation-rules-UGQY4ASY.js +120 -0
- package/dist/validation-rules.d-CMSvveua.d.cts +808 -0
- package/dist/validation-rules.d-CMSvveua.d.ts +808 -0
- package/dist/webhooks-JR475VD4.js +252 -0
- package/dist/webhooks-X64U3KCB.cjs +252 -0
- package/dist/webhooks.d-Bzl-u_Zs.d.cts +1201 -0
- package/dist/webhooks.d-Bzl-u_Zs.d.ts +1201 -0
- package/dist/workflow-7ANPQZDP.cjs +402 -0
- package/dist/workflow-DWSAHA5Q.js +402 -0
- package/dist/workflow-definition-2M3JBCUI.cjs +342 -0
- package/dist/workflow-definition-WLPGEU55.js +342 -0
- package/dist/workflow-definition.d-BKmIy2Qp.d.cts +2030 -0
- package/dist/workflow-definition.d-BKmIy2Qp.d.ts +2030 -0
- package/dist/workflow.d-DElz0XoQ.d.cts +3017 -0
- package/dist/workflow.d-DElz0XoQ.d.ts +3017 -0
- package/package.json +289 -0
|
@@ -0,0 +1,1340 @@
|
|
|
1
|
+
import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/* Auto-copied from ai-agents-client */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
declare namespace Components {
|
|
10
|
+
namespace Schemas {
|
|
11
|
+
export interface AgentDefinition {
|
|
12
|
+
agent_id?: /**
|
|
13
|
+
* Agent identifier. Can be either:
|
|
14
|
+
* - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
|
|
15
|
+
* - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
|
|
16
|
+
*
|
|
17
|
+
* example:
|
|
18
|
+
* skill:email-categorizer
|
|
19
|
+
*/
|
|
20
|
+
AgentId;
|
|
21
|
+
org_id?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
category?: SkillCategory;
|
|
25
|
+
icon?: string;
|
|
26
|
+
source?: /**
|
|
27
|
+
* - system: Pre-built by epilot (system skills)
|
|
28
|
+
* - custom: Created by organization
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
AgentSource;
|
|
32
|
+
/**
|
|
33
|
+
* Where this agent/skill is available (flows, copilot, or both)
|
|
34
|
+
* example:
|
|
35
|
+
* [
|
|
36
|
+
* "flows",
|
|
37
|
+
* "copilot"
|
|
38
|
+
* ]
|
|
39
|
+
*/
|
|
40
|
+
availability?: /**
|
|
41
|
+
* Where the skill/agent is available:
|
|
42
|
+
* - flows: Available in workflow automations
|
|
43
|
+
* - copilot: Available as a sub-agent in copilot
|
|
44
|
+
* - all: Available everywhere
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
SkillAvailability[];
|
|
48
|
+
/**
|
|
49
|
+
* Entity schemas this skill is allowed to work with (e.g., ["message"] for email skills)
|
|
50
|
+
* example:
|
|
51
|
+
* [
|
|
52
|
+
* "message"
|
|
53
|
+
* ]
|
|
54
|
+
*/
|
|
55
|
+
allowed_entity_schemas?: string[];
|
|
56
|
+
system_prompt?: string;
|
|
57
|
+
tools?: string[];
|
|
58
|
+
model_config?: ModelConfig;
|
|
59
|
+
max_iterations?: number;
|
|
60
|
+
execution_pattern?: /**
|
|
61
|
+
* - direct: Single LLM call, no tools
|
|
62
|
+
* - react: Multi-step reasoning with tool use
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
ExecutionPattern;
|
|
66
|
+
execution_mode?: /**
|
|
67
|
+
* - automatic: Execute without human intervention
|
|
68
|
+
* - approval: Pause for human approval before tool execution
|
|
69
|
+
* - draft: Execute but mark output as draft for review
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
ExecutionMode;
|
|
73
|
+
output_schema?: {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
};
|
|
76
|
+
input_parameters_schema?: /**
|
|
77
|
+
* example:
|
|
78
|
+
* {
|
|
79
|
+
* "type": "object",
|
|
80
|
+
* "parameters": [
|
|
81
|
+
* {
|
|
82
|
+
* "name": "target_schema",
|
|
83
|
+
* "label": "Target Schema",
|
|
84
|
+
* "type": "entity-schema",
|
|
85
|
+
* "description": "Entity type to create"
|
|
86
|
+
* },
|
|
87
|
+
* {
|
|
88
|
+
* "name": "confidence_threshold",
|
|
89
|
+
* "label": "Confidence Threshold",
|
|
90
|
+
* "type": "number",
|
|
91
|
+
* "minimum": 0,
|
|
92
|
+
* "maximum": 1,
|
|
93
|
+
* "default": 0.8
|
|
94
|
+
* },
|
|
95
|
+
* {
|
|
96
|
+
* "name": "categories",
|
|
97
|
+
* "label": "Categories",
|
|
98
|
+
* "type": "select",
|
|
99
|
+
* "enum": [
|
|
100
|
+
* "invoice",
|
|
101
|
+
* "contract",
|
|
102
|
+
* "letter"
|
|
103
|
+
* ],
|
|
104
|
+
* "multi": true
|
|
105
|
+
* }
|
|
106
|
+
* ],
|
|
107
|
+
* "required": [
|
|
108
|
+
* "target_schema"
|
|
109
|
+
* ]
|
|
110
|
+
* }
|
|
111
|
+
*/
|
|
112
|
+
InputParametersSchema;
|
|
113
|
+
version?: number;
|
|
114
|
+
created_at?: string; // date-time
|
|
115
|
+
updated_at?: string; // date-time
|
|
116
|
+
created_by?: string;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Agent identifier. Can be either:
|
|
120
|
+
* - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
|
|
121
|
+
* - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
|
|
122
|
+
*
|
|
123
|
+
* example:
|
|
124
|
+
* skill:email-categorizer
|
|
125
|
+
*/
|
|
126
|
+
export type AgentId = string;
|
|
127
|
+
/**
|
|
128
|
+
* - system: Pre-built by epilot (system skills)
|
|
129
|
+
* - custom: Created by organization
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
export type AgentSource = "system" | "custom";
|
|
133
|
+
export interface ApproveExecutionRequest {
|
|
134
|
+
/**
|
|
135
|
+
* Optional reason for approval
|
|
136
|
+
*/
|
|
137
|
+
reason?: string;
|
|
138
|
+
}
|
|
139
|
+
export interface CreateAgentRequest {
|
|
140
|
+
/**
|
|
141
|
+
* example:
|
|
142
|
+
* Email Reply Generator
|
|
143
|
+
*/
|
|
144
|
+
name: string;
|
|
145
|
+
description?: string;
|
|
146
|
+
category?: SkillCategory;
|
|
147
|
+
/**
|
|
148
|
+
* example:
|
|
149
|
+
* mail-reply
|
|
150
|
+
*/
|
|
151
|
+
icon?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Core LLM instructions
|
|
154
|
+
*/
|
|
155
|
+
system_prompt: string;
|
|
156
|
+
/**
|
|
157
|
+
* Tool IDs this agent can use
|
|
158
|
+
* example:
|
|
159
|
+
* [
|
|
160
|
+
* "entity.search",
|
|
161
|
+
* "message.draft"
|
|
162
|
+
* ]
|
|
163
|
+
*/
|
|
164
|
+
tools?: string[];
|
|
165
|
+
model_config?: ModelConfig;
|
|
166
|
+
/**
|
|
167
|
+
* Max ReAct loop iterations
|
|
168
|
+
*/
|
|
169
|
+
max_iterations?: number;
|
|
170
|
+
execution_pattern: /**
|
|
171
|
+
* - direct: Single LLM call, no tools
|
|
172
|
+
* - react: Multi-step reasoning with tool use
|
|
173
|
+
*
|
|
174
|
+
*/
|
|
175
|
+
ExecutionPattern;
|
|
176
|
+
execution_mode?: /**
|
|
177
|
+
* - automatic: Execute without human intervention
|
|
178
|
+
* - approval: Pause for human approval before tool execution
|
|
179
|
+
* - draft: Execute but mark output as draft for review
|
|
180
|
+
*
|
|
181
|
+
*/
|
|
182
|
+
ExecutionMode;
|
|
183
|
+
/**
|
|
184
|
+
* JSON Schema for expected output
|
|
185
|
+
*/
|
|
186
|
+
output_schema?: {
|
|
187
|
+
[key: string]: any;
|
|
188
|
+
};
|
|
189
|
+
input_parameters_schema?: /**
|
|
190
|
+
* example:
|
|
191
|
+
* {
|
|
192
|
+
* "type": "object",
|
|
193
|
+
* "parameters": [
|
|
194
|
+
* {
|
|
195
|
+
* "name": "target_schema",
|
|
196
|
+
* "label": "Target Schema",
|
|
197
|
+
* "type": "entity-schema",
|
|
198
|
+
* "description": "Entity type to create"
|
|
199
|
+
* },
|
|
200
|
+
* {
|
|
201
|
+
* "name": "confidence_threshold",
|
|
202
|
+
* "label": "Confidence Threshold",
|
|
203
|
+
* "type": "number",
|
|
204
|
+
* "minimum": 0,
|
|
205
|
+
* "maximum": 1,
|
|
206
|
+
* "default": 0.8
|
|
207
|
+
* },
|
|
208
|
+
* {
|
|
209
|
+
* "name": "categories",
|
|
210
|
+
* "label": "Categories",
|
|
211
|
+
* "type": "select",
|
|
212
|
+
* "enum": [
|
|
213
|
+
* "invoice",
|
|
214
|
+
* "contract",
|
|
215
|
+
* "letter"
|
|
216
|
+
* ],
|
|
217
|
+
* "multi": true
|
|
218
|
+
* }
|
|
219
|
+
* ],
|
|
220
|
+
* "required": [
|
|
221
|
+
* "target_schema"
|
|
222
|
+
* ]
|
|
223
|
+
* }
|
|
224
|
+
*/
|
|
225
|
+
InputParametersSchema;
|
|
226
|
+
}
|
|
227
|
+
export interface Error {
|
|
228
|
+
error?: string;
|
|
229
|
+
message?: string;
|
|
230
|
+
details?: {
|
|
231
|
+
[key: string]: any;
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
export interface ExecuteAgentRequest {
|
|
235
|
+
input?: {
|
|
236
|
+
/**
|
|
237
|
+
* Primary entity ID for context
|
|
238
|
+
*/
|
|
239
|
+
entity_id?: string;
|
|
240
|
+
/**
|
|
241
|
+
* Schema of the primary entity (e.g., "message", "contact")
|
|
242
|
+
*/
|
|
243
|
+
entity_schema?: string;
|
|
244
|
+
workflow_id?: string;
|
|
245
|
+
workflow_execution_id?: string;
|
|
246
|
+
task_id?: string;
|
|
247
|
+
custom_data?: {
|
|
248
|
+
[name: string]: any;
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* Array of entities from the flow trigger context (e.g., the message entity when triggered by email receive)
|
|
252
|
+
*/
|
|
253
|
+
flow_context?: {
|
|
254
|
+
entity_id: string;
|
|
255
|
+
entity_schema: string;
|
|
256
|
+
}[];
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* Runtime parameters (validated against input_parameters_schema)
|
|
260
|
+
*/
|
|
261
|
+
parameters?: {
|
|
262
|
+
[name: string]: any;
|
|
263
|
+
};
|
|
264
|
+
execution_mode_override?: /**
|
|
265
|
+
* - automatic: Execute without human intervention
|
|
266
|
+
* - approval: Pause for human approval before tool execution
|
|
267
|
+
* - draft: Execute but mark output as draft for review
|
|
268
|
+
*
|
|
269
|
+
*/
|
|
270
|
+
ExecutionMode;
|
|
271
|
+
execution_context?: /**
|
|
272
|
+
* Where the execution was triggered from:
|
|
273
|
+
* - flows: Triggered from workflow automation
|
|
274
|
+
* - copilot: Triggered from copilot assistant
|
|
275
|
+
* - api: Direct API call
|
|
276
|
+
*
|
|
277
|
+
*/
|
|
278
|
+
ExecutionContext;
|
|
279
|
+
/**
|
|
280
|
+
* Webhook URL for async completion notification
|
|
281
|
+
*/
|
|
282
|
+
callback_url?: string; // uri
|
|
283
|
+
/**
|
|
284
|
+
* Execution timeout in milliseconds
|
|
285
|
+
*/
|
|
286
|
+
timeout_ms?: number;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Where the execution was triggered from:
|
|
290
|
+
* - flows: Triggered from workflow automation
|
|
291
|
+
* - copilot: Triggered from copilot assistant
|
|
292
|
+
* - api: Direct API call
|
|
293
|
+
*
|
|
294
|
+
*/
|
|
295
|
+
export type ExecutionContext = "flows" | "copilot" | "api";
|
|
296
|
+
export type ExecutionError = {
|
|
297
|
+
code?: "TIMEOUT" | "MAX_ITERATIONS_EXCEEDED" | "TOOL_EXECUTION_FAILED" | "LLM_ERROR" | "INVALID_OUTPUT" | "REJECTED" | "INTERNAL_ERROR";
|
|
298
|
+
message?: string;
|
|
299
|
+
details?: {
|
|
300
|
+
[key: string]: any;
|
|
301
|
+
};
|
|
302
|
+
} | null;
|
|
303
|
+
export interface ExecutionIteration {
|
|
304
|
+
iteration_index?: number;
|
|
305
|
+
/**
|
|
306
|
+
* LLM reasoning/thinking
|
|
307
|
+
*/
|
|
308
|
+
thought?: string;
|
|
309
|
+
action?: {
|
|
310
|
+
tool?: string;
|
|
311
|
+
input?: {
|
|
312
|
+
[key: string]: any;
|
|
313
|
+
};
|
|
314
|
+
} | null;
|
|
315
|
+
/**
|
|
316
|
+
* Tool result
|
|
317
|
+
*/
|
|
318
|
+
observation?: {
|
|
319
|
+
[key: string]: any;
|
|
320
|
+
} | null;
|
|
321
|
+
timestamp?: string; // date-time
|
|
322
|
+
tokens_used?: number;
|
|
323
|
+
latency_ms?: number;
|
|
324
|
+
}
|
|
325
|
+
export interface ExecutionMetrics {
|
|
326
|
+
total_tokens?: number;
|
|
327
|
+
input_tokens?: number;
|
|
328
|
+
output_tokens?: number;
|
|
329
|
+
total_cost_usd?: number; // float
|
|
330
|
+
duration_ms?: number;
|
|
331
|
+
iteration_count?: number;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* - automatic: Execute without human intervention
|
|
335
|
+
* - approval: Pause for human approval before tool execution
|
|
336
|
+
* - draft: Execute but mark output as draft for review
|
|
337
|
+
*
|
|
338
|
+
*/
|
|
339
|
+
export type ExecutionMode = "automatic" | "approval" | "draft";
|
|
340
|
+
/**
|
|
341
|
+
* - direct: Single LLM call, no tools
|
|
342
|
+
* - react: Multi-step reasoning with tool use
|
|
343
|
+
*
|
|
344
|
+
*/
|
|
345
|
+
export type ExecutionPattern = "direct" | "react";
|
|
346
|
+
export interface ExecutionResponse {
|
|
347
|
+
execution_id?: string; // uuid
|
|
348
|
+
agent_id?: /**
|
|
349
|
+
* Agent identifier. Can be either:
|
|
350
|
+
* - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
|
|
351
|
+
* - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
|
|
352
|
+
*
|
|
353
|
+
* example:
|
|
354
|
+
* skill:email-categorizer
|
|
355
|
+
*/
|
|
356
|
+
AgentId;
|
|
357
|
+
agent_source?: /**
|
|
358
|
+
* - system: Pre-built by epilot (system skills)
|
|
359
|
+
* - custom: Created by organization
|
|
360
|
+
*
|
|
361
|
+
*/
|
|
362
|
+
AgentSource;
|
|
363
|
+
/**
|
|
364
|
+
* Human-readable agent name (denormalized for display)
|
|
365
|
+
*/
|
|
366
|
+
agent_name?: string;
|
|
367
|
+
execution_context?: /**
|
|
368
|
+
* Where the execution was triggered from:
|
|
369
|
+
* - flows: Triggered from workflow automation
|
|
370
|
+
* - copilot: Triggered from copilot assistant
|
|
371
|
+
* - api: Direct API call
|
|
372
|
+
*
|
|
373
|
+
*/
|
|
374
|
+
ExecutionContext;
|
|
375
|
+
org_id?: string;
|
|
376
|
+
status?: ExecutionStatus;
|
|
377
|
+
input?: {
|
|
378
|
+
[key: string]: any;
|
|
379
|
+
};
|
|
380
|
+
parameters?: {
|
|
381
|
+
[key: string]: any;
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
* Execution result (when status=completed)
|
|
385
|
+
*/
|
|
386
|
+
result?: {
|
|
387
|
+
/**
|
|
388
|
+
* Text response from the agent
|
|
389
|
+
*/
|
|
390
|
+
response?: string;
|
|
391
|
+
/**
|
|
392
|
+
* Parsed structured output (only for direct mode with output_schema)
|
|
393
|
+
*/
|
|
394
|
+
structured_output?: {
|
|
395
|
+
[key: string]: any;
|
|
396
|
+
} | null;
|
|
397
|
+
} | null;
|
|
398
|
+
error?: ExecutionError;
|
|
399
|
+
pending_action?: /* Action waiting for approval (when status=waiting_approval) */ PendingAction;
|
|
400
|
+
metrics?: ExecutionMetrics;
|
|
401
|
+
started_at?: string; // date-time
|
|
402
|
+
completed_at?: string | null; // date-time
|
|
403
|
+
}
|
|
404
|
+
export type ExecutionStatus = "pending" | "running" | "waiting_approval" | "completed" | "failed" | "cancelled";
|
|
405
|
+
export interface ExecutionTrace {
|
|
406
|
+
execution_id?: string; // uuid
|
|
407
|
+
iterations?: ExecutionIteration[];
|
|
408
|
+
total_iterations?: number;
|
|
409
|
+
}
|
|
410
|
+
export interface InputParameterDefinition {
|
|
411
|
+
/**
|
|
412
|
+
* Unique identifier for the parameter (used in API)
|
|
413
|
+
* example:
|
|
414
|
+
* target_schema
|
|
415
|
+
*/
|
|
416
|
+
name: string;
|
|
417
|
+
/**
|
|
418
|
+
* Human-readable display label
|
|
419
|
+
* example:
|
|
420
|
+
* Target Schema
|
|
421
|
+
*/
|
|
422
|
+
label: string;
|
|
423
|
+
type: /**
|
|
424
|
+
* Base types:
|
|
425
|
+
* - text: Text input field
|
|
426
|
+
* - textarea: Multi-line text input field
|
|
427
|
+
* - number: Numeric input field
|
|
428
|
+
* - boolean: Toggle switch
|
|
429
|
+
* - select: Dropdown selection (requires enum array)
|
|
430
|
+
*
|
|
431
|
+
* Custom types (domain-specific):
|
|
432
|
+
* - entity-schema: Entity schema selector (fetches from Entity API)
|
|
433
|
+
* - entity-attribute: Entity attribute selector (requires dependsOn)
|
|
434
|
+
* - entity-id: Entity picker (search and select entities)
|
|
435
|
+
* - taxonomy: Taxonomy selector (fetches from Taxonomy API)
|
|
436
|
+
* - taxonomy-classification: Classification selector (requires dependsOn)
|
|
437
|
+
* - shared-inbox: Shared inbox selector (fetches from Email Settings API)
|
|
438
|
+
*
|
|
439
|
+
*/
|
|
440
|
+
ParameterType;
|
|
441
|
+
/**
|
|
442
|
+
* Help text for the parameter
|
|
443
|
+
*/
|
|
444
|
+
description?: string;
|
|
445
|
+
/**
|
|
446
|
+
* Default value for the parameter
|
|
447
|
+
*/
|
|
448
|
+
default?: any;
|
|
449
|
+
/**
|
|
450
|
+
* Allow multiple selections (value becomes array)
|
|
451
|
+
*/
|
|
452
|
+
multi?: boolean;
|
|
453
|
+
/**
|
|
454
|
+
* Parent parameter this depends on (for entity-attribute, taxonomy-classification)
|
|
455
|
+
*/
|
|
456
|
+
dependsOn?: string;
|
|
457
|
+
/**
|
|
458
|
+
* Conditional visibility rules (show when parent has specific values)
|
|
459
|
+
*/
|
|
460
|
+
visibleWhen?: {
|
|
461
|
+
[name: string]: any[];
|
|
462
|
+
};
|
|
463
|
+
/**
|
|
464
|
+
* Allowed values (required for 'select' type)
|
|
465
|
+
*/
|
|
466
|
+
enum?: string[];
|
|
467
|
+
/**
|
|
468
|
+
* Minimum value (for number type)
|
|
469
|
+
*/
|
|
470
|
+
minimum?: number;
|
|
471
|
+
/**
|
|
472
|
+
* Maximum value (for number type)
|
|
473
|
+
*/
|
|
474
|
+
maximum?: number;
|
|
475
|
+
/**
|
|
476
|
+
* Step increment (for number type)
|
|
477
|
+
*/
|
|
478
|
+
step?: number;
|
|
479
|
+
/**
|
|
480
|
+
* Minimum length (for text type)
|
|
481
|
+
*/
|
|
482
|
+
minLength?: number;
|
|
483
|
+
/**
|
|
484
|
+
* Maximum length (for text type)
|
|
485
|
+
*/
|
|
486
|
+
maxLength?: number;
|
|
487
|
+
/**
|
|
488
|
+
* Filter to specific schemas (for entity-schema, entity-id)
|
|
489
|
+
*/
|
|
490
|
+
schemaFilter?: string[];
|
|
491
|
+
/**
|
|
492
|
+
* Filter to specific attribute types (for entity-attribute)
|
|
493
|
+
*/
|
|
494
|
+
attributeTypeFilter?: string[];
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* example:
|
|
498
|
+
* {
|
|
499
|
+
* "type": "object",
|
|
500
|
+
* "parameters": [
|
|
501
|
+
* {
|
|
502
|
+
* "name": "target_schema",
|
|
503
|
+
* "label": "Target Schema",
|
|
504
|
+
* "type": "entity-schema",
|
|
505
|
+
* "description": "Entity type to create"
|
|
506
|
+
* },
|
|
507
|
+
* {
|
|
508
|
+
* "name": "confidence_threshold",
|
|
509
|
+
* "label": "Confidence Threshold",
|
|
510
|
+
* "type": "number",
|
|
511
|
+
* "minimum": 0,
|
|
512
|
+
* "maximum": 1,
|
|
513
|
+
* "default": 0.8
|
|
514
|
+
* },
|
|
515
|
+
* {
|
|
516
|
+
* "name": "categories",
|
|
517
|
+
* "label": "Categories",
|
|
518
|
+
* "type": "select",
|
|
519
|
+
* "enum": [
|
|
520
|
+
* "invoice",
|
|
521
|
+
* "contract",
|
|
522
|
+
* "letter"
|
|
523
|
+
* ],
|
|
524
|
+
* "multi": true
|
|
525
|
+
* }
|
|
526
|
+
* ],
|
|
527
|
+
* "required": [
|
|
528
|
+
* "target_schema"
|
|
529
|
+
* ]
|
|
530
|
+
* }
|
|
531
|
+
*/
|
|
532
|
+
export interface InputParametersSchema {
|
|
533
|
+
/**
|
|
534
|
+
* Always "object"
|
|
535
|
+
*/
|
|
536
|
+
type: "object";
|
|
537
|
+
/**
|
|
538
|
+
* Array of parameter definitions
|
|
539
|
+
*/
|
|
540
|
+
parameters: InputParameterDefinition[];
|
|
541
|
+
/**
|
|
542
|
+
* Array of parameter names that are required
|
|
543
|
+
*/
|
|
544
|
+
required?: string[];
|
|
545
|
+
}
|
|
546
|
+
export interface ListAgentsResponse {
|
|
547
|
+
agents?: AgentDefinition[];
|
|
548
|
+
next_cursor?: string | null;
|
|
549
|
+
}
|
|
550
|
+
export interface ListExecutionsResponse {
|
|
551
|
+
executions?: ExecutionResponse[];
|
|
552
|
+
next_cursor?: string | null;
|
|
553
|
+
}
|
|
554
|
+
export interface ModelConfig {
|
|
555
|
+
/**
|
|
556
|
+
* AWS Bedrock model ID
|
|
557
|
+
*/
|
|
558
|
+
model_id?: string;
|
|
559
|
+
temperature?: number;
|
|
560
|
+
max_tokens?: number;
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Base types:
|
|
564
|
+
* - text: Text input field
|
|
565
|
+
* - textarea: Multi-line text input field
|
|
566
|
+
* - number: Numeric input field
|
|
567
|
+
* - boolean: Toggle switch
|
|
568
|
+
* - select: Dropdown selection (requires enum array)
|
|
569
|
+
*
|
|
570
|
+
* Custom types (domain-specific):
|
|
571
|
+
* - entity-schema: Entity schema selector (fetches from Entity API)
|
|
572
|
+
* - entity-attribute: Entity attribute selector (requires dependsOn)
|
|
573
|
+
* - entity-id: Entity picker (search and select entities)
|
|
574
|
+
* - taxonomy: Taxonomy selector (fetches from Taxonomy API)
|
|
575
|
+
* - taxonomy-classification: Classification selector (requires dependsOn)
|
|
576
|
+
* - shared-inbox: Shared inbox selector (fetches from Email Settings API)
|
|
577
|
+
*
|
|
578
|
+
*/
|
|
579
|
+
export type ParameterType = "text" | "textarea" | "number" | "boolean" | "select" | "entity-schema" | "entity-attribute" | "entity-id" | "taxonomy" | "taxonomy-classification" | "shared-inbox" | "label";
|
|
580
|
+
/**
|
|
581
|
+
* Action waiting for approval (when status=waiting_approval)
|
|
582
|
+
*/
|
|
583
|
+
export type PendingAction = {
|
|
584
|
+
/**
|
|
585
|
+
* Tool ID that requires approval
|
|
586
|
+
*/
|
|
587
|
+
tool?: string;
|
|
588
|
+
/**
|
|
589
|
+
* Tool input parameters
|
|
590
|
+
*/
|
|
591
|
+
input?: {
|
|
592
|
+
[key: string]: any;
|
|
593
|
+
};
|
|
594
|
+
/**
|
|
595
|
+
* Human-readable description of the action
|
|
596
|
+
*/
|
|
597
|
+
description?: string;
|
|
598
|
+
preview?: /* Structured preview data for approval UI. Provides a generic format that any tool can populate. */ ToolPreview;
|
|
599
|
+
} | null;
|
|
600
|
+
/**
|
|
601
|
+
* Type of action being previewed
|
|
602
|
+
*/
|
|
603
|
+
export type PreviewActionType = "move" | "create" | "update" | "delete" | "apply" | "send" | "link" | "unlink";
|
|
604
|
+
/**
|
|
605
|
+
* A single field change in the preview
|
|
606
|
+
*/
|
|
607
|
+
export interface PreviewChange {
|
|
608
|
+
/**
|
|
609
|
+
* Field identifier
|
|
610
|
+
*/
|
|
611
|
+
field?: string;
|
|
612
|
+
/**
|
|
613
|
+
* Human-readable field label
|
|
614
|
+
*/
|
|
615
|
+
label?: string;
|
|
616
|
+
from?: /* Typed value for preview display */ PreviewValue;
|
|
617
|
+
to?: /* Typed value for preview display */ PreviewValue;
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* Entity reference for preview display
|
|
621
|
+
*/
|
|
622
|
+
export interface PreviewEntity {
|
|
623
|
+
/**
|
|
624
|
+
* Entity type (e.g., "inbox", "email", "contact", "label")
|
|
625
|
+
* example:
|
|
626
|
+
* inbox
|
|
627
|
+
*/
|
|
628
|
+
type?: string;
|
|
629
|
+
/**
|
|
630
|
+
* Entity ID
|
|
631
|
+
*/
|
|
632
|
+
id?: string;
|
|
633
|
+
/**
|
|
634
|
+
* Human-readable name for display
|
|
635
|
+
* example:
|
|
636
|
+
* Support Inbox
|
|
637
|
+
*/
|
|
638
|
+
name?: string;
|
|
639
|
+
/**
|
|
640
|
+
* Entity schema (for epilot entities)
|
|
641
|
+
*/
|
|
642
|
+
schema?: string;
|
|
643
|
+
/**
|
|
644
|
+
* Icon hint for UI
|
|
645
|
+
*/
|
|
646
|
+
icon?: string;
|
|
647
|
+
/**
|
|
648
|
+
* Optional URL to view the entity
|
|
649
|
+
*/
|
|
650
|
+
url?: string;
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* Typed value for preview display
|
|
654
|
+
*/
|
|
655
|
+
export interface PreviewValue {
|
|
656
|
+
/**
|
|
657
|
+
* Value type for proper rendering
|
|
658
|
+
*/
|
|
659
|
+
type: "text" | "number" | "boolean" | "list" | "entity" | "badge";
|
|
660
|
+
/**
|
|
661
|
+
* The actual value (type depends on "type" field)
|
|
662
|
+
*/
|
|
663
|
+
value?: any;
|
|
664
|
+
/**
|
|
665
|
+
* Array of values (for list type)
|
|
666
|
+
*/
|
|
667
|
+
values?: string[];
|
|
668
|
+
/**
|
|
669
|
+
* Entity ID (for entity type)
|
|
670
|
+
*/
|
|
671
|
+
id?: string;
|
|
672
|
+
/**
|
|
673
|
+
* Display name (for entity type)
|
|
674
|
+
*/
|
|
675
|
+
name?: string;
|
|
676
|
+
/**
|
|
677
|
+
* Entity schema (for entity type)
|
|
678
|
+
*/
|
|
679
|
+
schema?: string;
|
|
680
|
+
/**
|
|
681
|
+
* Badge color (for badge type)
|
|
682
|
+
*/
|
|
683
|
+
color?: "success" | "warning" | "error" | "info";
|
|
684
|
+
}
|
|
685
|
+
export interface RejectExecutionRequest {
|
|
686
|
+
/**
|
|
687
|
+
* Reason for rejection
|
|
688
|
+
*/
|
|
689
|
+
reason: string;
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* Where the skill/agent is available:
|
|
693
|
+
* - flows: Available in workflow automations
|
|
694
|
+
* - copilot: Available as a sub-agent in copilot
|
|
695
|
+
* - all: Available everywhere
|
|
696
|
+
*
|
|
697
|
+
*/
|
|
698
|
+
export type SkillAvailability = "flows" | "copilot" | "all";
|
|
699
|
+
export type SkillCategory = "message" | "entity" | "document" | "classification" | "custom";
|
|
700
|
+
export interface ToolDefinition {
|
|
701
|
+
/**
|
|
702
|
+
* example:
|
|
703
|
+
* entity.search
|
|
704
|
+
*/
|
|
705
|
+
tool_id?: string;
|
|
706
|
+
/**
|
|
707
|
+
* example:
|
|
708
|
+
* Search Entities
|
|
709
|
+
*/
|
|
710
|
+
name?: string;
|
|
711
|
+
/**
|
|
712
|
+
* Description for LLM to understand tool purpose
|
|
713
|
+
*/
|
|
714
|
+
description?: string;
|
|
715
|
+
category?: "entity" | "email" | "taxonomy" | "rag" | "workflow";
|
|
716
|
+
/**
|
|
717
|
+
* JSON Schema for tool input
|
|
718
|
+
*/
|
|
719
|
+
parameters?: {
|
|
720
|
+
[key: string]: any;
|
|
721
|
+
};
|
|
722
|
+
/**
|
|
723
|
+
* JSON Schema for tool output
|
|
724
|
+
*/
|
|
725
|
+
returns?: {
|
|
726
|
+
[key: string]: any;
|
|
727
|
+
};
|
|
728
|
+
/**
|
|
729
|
+
* Whether this tool always requires human approval
|
|
730
|
+
*/
|
|
731
|
+
requires_approval?: boolean;
|
|
732
|
+
enabled?: boolean;
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* Structured preview data for approval UI. Provides a generic format that any tool can populate.
|
|
736
|
+
*/
|
|
737
|
+
export interface ToolPreview {
|
|
738
|
+
action?: {
|
|
739
|
+
type: /* Type of action being previewed */ PreviewActionType;
|
|
740
|
+
/**
|
|
741
|
+
* Human-readable action verb
|
|
742
|
+
* example:
|
|
743
|
+
* Move Thread
|
|
744
|
+
*/
|
|
745
|
+
verb: string;
|
|
746
|
+
};
|
|
747
|
+
source?: /* Entity reference for preview display */ PreviewEntity;
|
|
748
|
+
target?: /* Entity reference for preview display */ PreviewEntity;
|
|
749
|
+
/**
|
|
750
|
+
* List of changes/modifications being made
|
|
751
|
+
*/
|
|
752
|
+
changes?: /* A single field change in the preview */ PreviewChange[];
|
|
753
|
+
/**
|
|
754
|
+
* Additional context information
|
|
755
|
+
*/
|
|
756
|
+
metadata?: {
|
|
757
|
+
[name: string]: /* Typed value for preview display */ PreviewValue;
|
|
758
|
+
};
|
|
759
|
+
/**
|
|
760
|
+
* AI reasoning for why this action is recommended
|
|
761
|
+
* example:
|
|
762
|
+
* This email discusses solar panel installation and should be handled by the Service team.
|
|
763
|
+
*/
|
|
764
|
+
summary?: string;
|
|
765
|
+
}
|
|
766
|
+
export interface UpdateAgentRequest {
|
|
767
|
+
name?: string;
|
|
768
|
+
description?: string;
|
|
769
|
+
category?: SkillCategory;
|
|
770
|
+
icon?: string;
|
|
771
|
+
system_prompt?: string;
|
|
772
|
+
tools?: string[];
|
|
773
|
+
model_config?: ModelConfig;
|
|
774
|
+
max_iterations?: number;
|
|
775
|
+
execution_pattern?: /**
|
|
776
|
+
* - direct: Single LLM call, no tools
|
|
777
|
+
* - react: Multi-step reasoning with tool use
|
|
778
|
+
*
|
|
779
|
+
*/
|
|
780
|
+
ExecutionPattern;
|
|
781
|
+
execution_mode?: /**
|
|
782
|
+
* - automatic: Execute without human intervention
|
|
783
|
+
* - approval: Pause for human approval before tool execution
|
|
784
|
+
* - draft: Execute but mark output as draft for review
|
|
785
|
+
*
|
|
786
|
+
*/
|
|
787
|
+
ExecutionMode;
|
|
788
|
+
output_schema?: {
|
|
789
|
+
[key: string]: any;
|
|
790
|
+
};
|
|
791
|
+
input_parameters_schema?: /**
|
|
792
|
+
* example:
|
|
793
|
+
* {
|
|
794
|
+
* "type": "object",
|
|
795
|
+
* "parameters": [
|
|
796
|
+
* {
|
|
797
|
+
* "name": "target_schema",
|
|
798
|
+
* "label": "Target Schema",
|
|
799
|
+
* "type": "entity-schema",
|
|
800
|
+
* "description": "Entity type to create"
|
|
801
|
+
* },
|
|
802
|
+
* {
|
|
803
|
+
* "name": "confidence_threshold",
|
|
804
|
+
* "label": "Confidence Threshold",
|
|
805
|
+
* "type": "number",
|
|
806
|
+
* "minimum": 0,
|
|
807
|
+
* "maximum": 1,
|
|
808
|
+
* "default": 0.8
|
|
809
|
+
* },
|
|
810
|
+
* {
|
|
811
|
+
* "name": "categories",
|
|
812
|
+
* "label": "Categories",
|
|
813
|
+
* "type": "select",
|
|
814
|
+
* "enum": [
|
|
815
|
+
* "invoice",
|
|
816
|
+
* "contract",
|
|
817
|
+
* "letter"
|
|
818
|
+
* ],
|
|
819
|
+
* "multi": true
|
|
820
|
+
* }
|
|
821
|
+
* ],
|
|
822
|
+
* "required": [
|
|
823
|
+
* "target_schema"
|
|
824
|
+
* ]
|
|
825
|
+
* }
|
|
826
|
+
*/
|
|
827
|
+
InputParametersSchema;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
declare namespace Paths {
|
|
832
|
+
namespace ApproveExecution {
|
|
833
|
+
namespace Parameters {
|
|
834
|
+
export type ExecutionId = string; // uuid
|
|
835
|
+
}
|
|
836
|
+
export interface PathParameters {
|
|
837
|
+
execution_id: Parameters.ExecutionId /* uuid */;
|
|
838
|
+
}
|
|
839
|
+
export type RequestBody = Components.Schemas.ApproveExecutionRequest;
|
|
840
|
+
namespace Responses {
|
|
841
|
+
export type $200 = Components.Schemas.ExecutionResponse;
|
|
842
|
+
export type $400 = Components.Schemas.Error;
|
|
843
|
+
export type $404 = Components.Schemas.Error;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
namespace CancelExecution {
|
|
847
|
+
namespace Parameters {
|
|
848
|
+
export type ExecutionId = string; // uuid
|
|
849
|
+
}
|
|
850
|
+
export interface PathParameters {
|
|
851
|
+
execution_id: Parameters.ExecutionId /* uuid */;
|
|
852
|
+
}
|
|
853
|
+
namespace Responses {
|
|
854
|
+
export type $200 = Components.Schemas.ExecutionResponse;
|
|
855
|
+
export type $400 = Components.Schemas.Error;
|
|
856
|
+
export type $404 = Components.Schemas.Error;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
namespace CreateAgent {
|
|
860
|
+
export type RequestBody = Components.Schemas.CreateAgentRequest;
|
|
861
|
+
namespace Responses {
|
|
862
|
+
export type $201 = Components.Schemas.AgentDefinition;
|
|
863
|
+
export type $400 = Components.Schemas.Error;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
namespace DeleteAgentById {
|
|
867
|
+
namespace Parameters {
|
|
868
|
+
export type AgentId = /**
|
|
869
|
+
* Agent identifier. Can be either:
|
|
870
|
+
* - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
|
|
871
|
+
* - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
|
|
872
|
+
*
|
|
873
|
+
* example:
|
|
874
|
+
* skill:email-categorizer
|
|
875
|
+
*/
|
|
876
|
+
Components.Schemas.AgentId;
|
|
877
|
+
}
|
|
878
|
+
export interface PathParameters {
|
|
879
|
+
agent_id: Parameters.AgentId;
|
|
880
|
+
}
|
|
881
|
+
namespace Responses {
|
|
882
|
+
export interface $204 {
|
|
883
|
+
}
|
|
884
|
+
export type $400 = Components.Schemas.Error;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
namespace ExecuteAgent {
|
|
888
|
+
namespace Parameters {
|
|
889
|
+
export type AgentId = /**
|
|
890
|
+
* Agent identifier. Can be either:
|
|
891
|
+
* - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
|
|
892
|
+
* - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
|
|
893
|
+
*
|
|
894
|
+
* example:
|
|
895
|
+
* skill:email-categorizer
|
|
896
|
+
*/
|
|
897
|
+
Components.Schemas.AgentId;
|
|
898
|
+
}
|
|
899
|
+
export interface PathParameters {
|
|
900
|
+
agent_id: Parameters.AgentId;
|
|
901
|
+
}
|
|
902
|
+
export type RequestBody = Components.Schemas.ExecuteAgentRequest;
|
|
903
|
+
namespace Responses {
|
|
904
|
+
export type $200 = Components.Schemas.ExecutionResponse;
|
|
905
|
+
export type $400 = Components.Schemas.Error;
|
|
906
|
+
export type $404 = Components.Schemas.Error;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
namespace GetAgentById {
|
|
910
|
+
namespace Parameters {
|
|
911
|
+
export type AgentId = /**
|
|
912
|
+
* Agent identifier. Can be either:
|
|
913
|
+
* - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
|
|
914
|
+
* - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
|
|
915
|
+
*
|
|
916
|
+
* example:
|
|
917
|
+
* skill:email-categorizer
|
|
918
|
+
*/
|
|
919
|
+
Components.Schemas.AgentId;
|
|
920
|
+
}
|
|
921
|
+
export interface PathParameters {
|
|
922
|
+
agent_id: Parameters.AgentId;
|
|
923
|
+
}
|
|
924
|
+
namespace Responses {
|
|
925
|
+
export type $200 = Components.Schemas.AgentDefinition;
|
|
926
|
+
export type $400 = Components.Schemas.Error;
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
namespace GetExecution {
|
|
930
|
+
namespace Parameters {
|
|
931
|
+
export type ExecutionId = string; // uuid
|
|
932
|
+
}
|
|
933
|
+
export interface PathParameters {
|
|
934
|
+
execution_id: Parameters.ExecutionId /* uuid */;
|
|
935
|
+
}
|
|
936
|
+
namespace Responses {
|
|
937
|
+
export type $200 = Components.Schemas.ExecutionResponse;
|
|
938
|
+
export type $404 = Components.Schemas.Error;
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
namespace GetExecutionTrace {
|
|
942
|
+
namespace Parameters {
|
|
943
|
+
export type ExecutionId = string; // uuid
|
|
944
|
+
}
|
|
945
|
+
export interface PathParameters {
|
|
946
|
+
execution_id: Parameters.ExecutionId /* uuid */;
|
|
947
|
+
}
|
|
948
|
+
namespace Responses {
|
|
949
|
+
export type $200 = Components.Schemas.ExecutionTrace;
|
|
950
|
+
export type $404 = Components.Schemas.Error;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
namespace ListAgents {
|
|
954
|
+
namespace Parameters {
|
|
955
|
+
export type Availability = /**
|
|
956
|
+
* Where the skill/agent is available:
|
|
957
|
+
* - flows: Available in workflow automations
|
|
958
|
+
* - copilot: Available as a sub-agent in copilot
|
|
959
|
+
* - all: Available everywhere
|
|
960
|
+
*
|
|
961
|
+
*/
|
|
962
|
+
Components.Schemas.SkillAvailability;
|
|
963
|
+
export type EntitySchema = string;
|
|
964
|
+
export type Source = /**
|
|
965
|
+
* - system: Pre-built by epilot (system skills)
|
|
966
|
+
* - custom: Created by organization
|
|
967
|
+
*
|
|
968
|
+
*/
|
|
969
|
+
Components.Schemas.AgentSource;
|
|
970
|
+
}
|
|
971
|
+
export interface QueryParameters {
|
|
972
|
+
source?: Parameters.Source;
|
|
973
|
+
availability?: Parameters.Availability;
|
|
974
|
+
entity_schema?: Parameters.EntitySchema;
|
|
975
|
+
}
|
|
976
|
+
namespace Responses {
|
|
977
|
+
export type $200 = Components.Schemas.ListAgentsResponse;
|
|
978
|
+
export type $400 = Components.Schemas.Error;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
namespace ListExecutions {
|
|
982
|
+
namespace Parameters {
|
|
983
|
+
export type AgentId = string;
|
|
984
|
+
export type Limit = number;
|
|
985
|
+
export type Status = Components.Schemas.ExecutionStatus;
|
|
986
|
+
}
|
|
987
|
+
export interface QueryParameters {
|
|
988
|
+
agent_id?: Parameters.AgentId;
|
|
989
|
+
status?: Parameters.Status;
|
|
990
|
+
limit?: Parameters.Limit;
|
|
991
|
+
}
|
|
992
|
+
namespace Responses {
|
|
993
|
+
export type $200 = Components.Schemas.ListExecutionsResponse;
|
|
994
|
+
export type $400 = Components.Schemas.Error;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
namespace RejectExecution {
|
|
998
|
+
namespace Parameters {
|
|
999
|
+
export type ExecutionId = string; // uuid
|
|
1000
|
+
}
|
|
1001
|
+
export interface PathParameters {
|
|
1002
|
+
execution_id: Parameters.ExecutionId /* uuid */;
|
|
1003
|
+
}
|
|
1004
|
+
export type RequestBody = Components.Schemas.RejectExecutionRequest;
|
|
1005
|
+
namespace Responses {
|
|
1006
|
+
export type $200 = Components.Schemas.ExecutionResponse;
|
|
1007
|
+
export type $400 = Components.Schemas.Error;
|
|
1008
|
+
export type $404 = Components.Schemas.Error;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
namespace UpdateAgentById {
|
|
1012
|
+
namespace Parameters {
|
|
1013
|
+
export type AgentId = /**
|
|
1014
|
+
* Agent identifier. Can be either:
|
|
1015
|
+
* - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
|
|
1016
|
+
* - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
|
|
1017
|
+
*
|
|
1018
|
+
* example:
|
|
1019
|
+
* skill:email-categorizer
|
|
1020
|
+
*/
|
|
1021
|
+
Components.Schemas.AgentId;
|
|
1022
|
+
}
|
|
1023
|
+
export interface PathParameters {
|
|
1024
|
+
agent_id: Parameters.AgentId;
|
|
1025
|
+
}
|
|
1026
|
+
export type RequestBody = Components.Schemas.UpdateAgentRequest;
|
|
1027
|
+
namespace Responses {
|
|
1028
|
+
export type $200 = Components.Schemas.AgentDefinition;
|
|
1029
|
+
export type $400 = Components.Schemas.Error;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
interface OperationMethods {
|
|
1036
|
+
/**
|
|
1037
|
+
* listAgents - List all agent configurations
|
|
1038
|
+
*
|
|
1039
|
+
* Lists agents from both system skills and custom agents.
|
|
1040
|
+
* Use query parameters to filter by source, availability, or entity schema.
|
|
1041
|
+
*
|
|
1042
|
+
*/
|
|
1043
|
+
'listAgents'(
|
|
1044
|
+
parameters?: Parameters<Paths.ListAgents.QueryParameters> | null,
|
|
1045
|
+
data?: any,
|
|
1046
|
+
config?: AxiosRequestConfig
|
|
1047
|
+
): OperationResponse<Paths.ListAgents.Responses.$200>
|
|
1048
|
+
/**
|
|
1049
|
+
* createAgent - Create Agent definition
|
|
1050
|
+
*
|
|
1051
|
+
* Creates a new custom agent. System skills cannot be created via this endpoint.
|
|
1052
|
+
*/
|
|
1053
|
+
'createAgent'(
|
|
1054
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1055
|
+
data?: Paths.CreateAgent.RequestBody,
|
|
1056
|
+
config?: AxiosRequestConfig
|
|
1057
|
+
): OperationResponse<Paths.CreateAgent.Responses.$201>
|
|
1058
|
+
/**
|
|
1059
|
+
* getAgentById - Get the agent configuration by ID
|
|
1060
|
+
*
|
|
1061
|
+
* Retrieves an agent by ID. Supports both:
|
|
1062
|
+
* - System skill IDs (prefixed): "skill:email-categorizer"
|
|
1063
|
+
* - Custom agent IDs (UUID): "0336a235-9417-4dd8-894c-fe81285bba75"
|
|
1064
|
+
*
|
|
1065
|
+
*/
|
|
1066
|
+
'getAgentById'(
|
|
1067
|
+
parameters?: Parameters<Paths.GetAgentById.PathParameters> | null,
|
|
1068
|
+
data?: any,
|
|
1069
|
+
config?: AxiosRequestConfig
|
|
1070
|
+
): OperationResponse<Paths.GetAgentById.Responses.$200>
|
|
1071
|
+
/**
|
|
1072
|
+
* updateAgentById - Update the agent configuration by ID
|
|
1073
|
+
*
|
|
1074
|
+
* Updates a custom agent. System skills cannot be updated via this endpoint.
|
|
1075
|
+
*/
|
|
1076
|
+
'updateAgentById'(
|
|
1077
|
+
parameters?: Parameters<Paths.UpdateAgentById.PathParameters> | null,
|
|
1078
|
+
data?: Paths.UpdateAgentById.RequestBody,
|
|
1079
|
+
config?: AxiosRequestConfig
|
|
1080
|
+
): OperationResponse<Paths.UpdateAgentById.Responses.$200>
|
|
1081
|
+
/**
|
|
1082
|
+
* deleteAgentById - Delete the agent configuration by ID
|
|
1083
|
+
*
|
|
1084
|
+
* Deletes a custom agent. System skills cannot be deleted via this endpoint.
|
|
1085
|
+
*/
|
|
1086
|
+
'deleteAgentById'(
|
|
1087
|
+
parameters?: Parameters<Paths.DeleteAgentById.PathParameters> | null,
|
|
1088
|
+
data?: any,
|
|
1089
|
+
config?: AxiosRequestConfig
|
|
1090
|
+
): OperationResponse<Paths.DeleteAgentById.Responses.$204>
|
|
1091
|
+
/**
|
|
1092
|
+
* executeAgent - Execute an agent
|
|
1093
|
+
*
|
|
1094
|
+
* Executes an agent (system skill or custom agent).
|
|
1095
|
+
* Supports both:
|
|
1096
|
+
* - System skill IDs (prefixed): "skill:email-categorizer"
|
|
1097
|
+
* - Custom agent IDs (UUID): "0336a235-9417-4dd8-894c-fe81285bba75"
|
|
1098
|
+
*
|
|
1099
|
+
*/
|
|
1100
|
+
'executeAgent'(
|
|
1101
|
+
parameters?: Parameters<Paths.ExecuteAgent.PathParameters> | null,
|
|
1102
|
+
data?: Paths.ExecuteAgent.RequestBody,
|
|
1103
|
+
config?: AxiosRequestConfig
|
|
1104
|
+
): OperationResponse<Paths.ExecuteAgent.Responses.$200>
|
|
1105
|
+
/**
|
|
1106
|
+
* listExecutions - List executions
|
|
1107
|
+
*/
|
|
1108
|
+
'listExecutions'(
|
|
1109
|
+
parameters?: Parameters<Paths.ListExecutions.QueryParameters> | null,
|
|
1110
|
+
data?: any,
|
|
1111
|
+
config?: AxiosRequestConfig
|
|
1112
|
+
): OperationResponse<Paths.ListExecutions.Responses.$200>
|
|
1113
|
+
/**
|
|
1114
|
+
* getExecution - Get execution by ID
|
|
1115
|
+
*/
|
|
1116
|
+
'getExecution'(
|
|
1117
|
+
parameters?: Parameters<Paths.GetExecution.PathParameters> | null,
|
|
1118
|
+
data?: any,
|
|
1119
|
+
config?: AxiosRequestConfig
|
|
1120
|
+
): OperationResponse<Paths.GetExecution.Responses.$200>
|
|
1121
|
+
/**
|
|
1122
|
+
* cancelExecution - Cancel execution
|
|
1123
|
+
*/
|
|
1124
|
+
'cancelExecution'(
|
|
1125
|
+
parameters?: Parameters<Paths.CancelExecution.PathParameters> | null,
|
|
1126
|
+
data?: any,
|
|
1127
|
+
config?: AxiosRequestConfig
|
|
1128
|
+
): OperationResponse<Paths.CancelExecution.Responses.$200>
|
|
1129
|
+
/**
|
|
1130
|
+
* getExecutionTrace - Get execution trace/iterations
|
|
1131
|
+
*
|
|
1132
|
+
* Returns the step-by-step reasoning and tool calls for ReAct mode executions. Returns empty iterations array for direct mode executions.
|
|
1133
|
+
*/
|
|
1134
|
+
'getExecutionTrace'(
|
|
1135
|
+
parameters?: Parameters<Paths.GetExecutionTrace.PathParameters> | null,
|
|
1136
|
+
data?: any,
|
|
1137
|
+
config?: AxiosRequestConfig
|
|
1138
|
+
): OperationResponse<Paths.GetExecutionTrace.Responses.$200>
|
|
1139
|
+
/**
|
|
1140
|
+
* approveExecution - Approve pending action
|
|
1141
|
+
*
|
|
1142
|
+
* Approves a pending tool action when execution is in waiting_approval status
|
|
1143
|
+
*/
|
|
1144
|
+
'approveExecution'(
|
|
1145
|
+
parameters?: Parameters<Paths.ApproveExecution.PathParameters> | null,
|
|
1146
|
+
data?: Paths.ApproveExecution.RequestBody,
|
|
1147
|
+
config?: AxiosRequestConfig
|
|
1148
|
+
): OperationResponse<Paths.ApproveExecution.Responses.$200>
|
|
1149
|
+
/**
|
|
1150
|
+
* rejectExecution - Reject pending action
|
|
1151
|
+
*
|
|
1152
|
+
* Rejects a pending tool action when execution is in waiting_approval status
|
|
1153
|
+
*/
|
|
1154
|
+
'rejectExecution'(
|
|
1155
|
+
parameters?: Parameters<Paths.RejectExecution.PathParameters> | null,
|
|
1156
|
+
data?: Paths.RejectExecution.RequestBody,
|
|
1157
|
+
config?: AxiosRequestConfig
|
|
1158
|
+
): OperationResponse<Paths.RejectExecution.Responses.$200>
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
interface PathsDictionary {
|
|
1162
|
+
['/v1/agents']: {
|
|
1163
|
+
/**
|
|
1164
|
+
* createAgent - Create Agent definition
|
|
1165
|
+
*
|
|
1166
|
+
* Creates a new custom agent. System skills cannot be created via this endpoint.
|
|
1167
|
+
*/
|
|
1168
|
+
'post'(
|
|
1169
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1170
|
+
data?: Paths.CreateAgent.RequestBody,
|
|
1171
|
+
config?: AxiosRequestConfig
|
|
1172
|
+
): OperationResponse<Paths.CreateAgent.Responses.$201>
|
|
1173
|
+
/**
|
|
1174
|
+
* listAgents - List all agent configurations
|
|
1175
|
+
*
|
|
1176
|
+
* Lists agents from both system skills and custom agents.
|
|
1177
|
+
* Use query parameters to filter by source, availability, or entity schema.
|
|
1178
|
+
*
|
|
1179
|
+
*/
|
|
1180
|
+
'get'(
|
|
1181
|
+
parameters?: Parameters<Paths.ListAgents.QueryParameters> | null,
|
|
1182
|
+
data?: any,
|
|
1183
|
+
config?: AxiosRequestConfig
|
|
1184
|
+
): OperationResponse<Paths.ListAgents.Responses.$200>
|
|
1185
|
+
}
|
|
1186
|
+
['/v1/agents/{agent_id}']: {
|
|
1187
|
+
/**
|
|
1188
|
+
* getAgentById - Get the agent configuration by ID
|
|
1189
|
+
*
|
|
1190
|
+
* Retrieves an agent by ID. Supports both:
|
|
1191
|
+
* - System skill IDs (prefixed): "skill:email-categorizer"
|
|
1192
|
+
* - Custom agent IDs (UUID): "0336a235-9417-4dd8-894c-fe81285bba75"
|
|
1193
|
+
*
|
|
1194
|
+
*/
|
|
1195
|
+
'get'(
|
|
1196
|
+
parameters?: Parameters<Paths.GetAgentById.PathParameters> | null,
|
|
1197
|
+
data?: any,
|
|
1198
|
+
config?: AxiosRequestConfig
|
|
1199
|
+
): OperationResponse<Paths.GetAgentById.Responses.$200>
|
|
1200
|
+
/**
|
|
1201
|
+
* updateAgentById - Update the agent configuration by ID
|
|
1202
|
+
*
|
|
1203
|
+
* Updates a custom agent. System skills cannot be updated via this endpoint.
|
|
1204
|
+
*/
|
|
1205
|
+
'put'(
|
|
1206
|
+
parameters?: Parameters<Paths.UpdateAgentById.PathParameters> | null,
|
|
1207
|
+
data?: Paths.UpdateAgentById.RequestBody,
|
|
1208
|
+
config?: AxiosRequestConfig
|
|
1209
|
+
): OperationResponse<Paths.UpdateAgentById.Responses.$200>
|
|
1210
|
+
/**
|
|
1211
|
+
* deleteAgentById - Delete the agent configuration by ID
|
|
1212
|
+
*
|
|
1213
|
+
* Deletes a custom agent. System skills cannot be deleted via this endpoint.
|
|
1214
|
+
*/
|
|
1215
|
+
'delete'(
|
|
1216
|
+
parameters?: Parameters<Paths.DeleteAgentById.PathParameters> | null,
|
|
1217
|
+
data?: any,
|
|
1218
|
+
config?: AxiosRequestConfig
|
|
1219
|
+
): OperationResponse<Paths.DeleteAgentById.Responses.$204>
|
|
1220
|
+
}
|
|
1221
|
+
['/v1/agents/{agent_id}/execute']: {
|
|
1222
|
+
/**
|
|
1223
|
+
* executeAgent - Execute an agent
|
|
1224
|
+
*
|
|
1225
|
+
* Executes an agent (system skill or custom agent).
|
|
1226
|
+
* Supports both:
|
|
1227
|
+
* - System skill IDs (prefixed): "skill:email-categorizer"
|
|
1228
|
+
* - Custom agent IDs (UUID): "0336a235-9417-4dd8-894c-fe81285bba75"
|
|
1229
|
+
*
|
|
1230
|
+
*/
|
|
1231
|
+
'post'(
|
|
1232
|
+
parameters?: Parameters<Paths.ExecuteAgent.PathParameters> | null,
|
|
1233
|
+
data?: Paths.ExecuteAgent.RequestBody,
|
|
1234
|
+
config?: AxiosRequestConfig
|
|
1235
|
+
): OperationResponse<Paths.ExecuteAgent.Responses.$200>
|
|
1236
|
+
}
|
|
1237
|
+
['/v1/executions']: {
|
|
1238
|
+
/**
|
|
1239
|
+
* listExecutions - List executions
|
|
1240
|
+
*/
|
|
1241
|
+
'get'(
|
|
1242
|
+
parameters?: Parameters<Paths.ListExecutions.QueryParameters> | null,
|
|
1243
|
+
data?: any,
|
|
1244
|
+
config?: AxiosRequestConfig
|
|
1245
|
+
): OperationResponse<Paths.ListExecutions.Responses.$200>
|
|
1246
|
+
}
|
|
1247
|
+
['/v1/executions/{execution_id}']: {
|
|
1248
|
+
/**
|
|
1249
|
+
* getExecution - Get execution by ID
|
|
1250
|
+
*/
|
|
1251
|
+
'get'(
|
|
1252
|
+
parameters?: Parameters<Paths.GetExecution.PathParameters> | null,
|
|
1253
|
+
data?: any,
|
|
1254
|
+
config?: AxiosRequestConfig
|
|
1255
|
+
): OperationResponse<Paths.GetExecution.Responses.$200>
|
|
1256
|
+
/**
|
|
1257
|
+
* cancelExecution - Cancel execution
|
|
1258
|
+
*/
|
|
1259
|
+
'delete'(
|
|
1260
|
+
parameters?: Parameters<Paths.CancelExecution.PathParameters> | null,
|
|
1261
|
+
data?: any,
|
|
1262
|
+
config?: AxiosRequestConfig
|
|
1263
|
+
): OperationResponse<Paths.CancelExecution.Responses.$200>
|
|
1264
|
+
}
|
|
1265
|
+
['/v1/executions/{execution_id}/trace']: {
|
|
1266
|
+
/**
|
|
1267
|
+
* getExecutionTrace - Get execution trace/iterations
|
|
1268
|
+
*
|
|
1269
|
+
* Returns the step-by-step reasoning and tool calls for ReAct mode executions. Returns empty iterations array for direct mode executions.
|
|
1270
|
+
*/
|
|
1271
|
+
'get'(
|
|
1272
|
+
parameters?: Parameters<Paths.GetExecutionTrace.PathParameters> | null,
|
|
1273
|
+
data?: any,
|
|
1274
|
+
config?: AxiosRequestConfig
|
|
1275
|
+
): OperationResponse<Paths.GetExecutionTrace.Responses.$200>
|
|
1276
|
+
}
|
|
1277
|
+
['/v1/executions/{execution_id}/approve']: {
|
|
1278
|
+
/**
|
|
1279
|
+
* approveExecution - Approve pending action
|
|
1280
|
+
*
|
|
1281
|
+
* Approves a pending tool action when execution is in waiting_approval status
|
|
1282
|
+
*/
|
|
1283
|
+
'post'(
|
|
1284
|
+
parameters?: Parameters<Paths.ApproveExecution.PathParameters> | null,
|
|
1285
|
+
data?: Paths.ApproveExecution.RequestBody,
|
|
1286
|
+
config?: AxiosRequestConfig
|
|
1287
|
+
): OperationResponse<Paths.ApproveExecution.Responses.$200>
|
|
1288
|
+
}
|
|
1289
|
+
['/v1/executions/{execution_id}/reject']: {
|
|
1290
|
+
/**
|
|
1291
|
+
* rejectExecution - Reject pending action
|
|
1292
|
+
*
|
|
1293
|
+
* Rejects a pending tool action when execution is in waiting_approval status
|
|
1294
|
+
*/
|
|
1295
|
+
'post'(
|
|
1296
|
+
parameters?: Parameters<Paths.RejectExecution.PathParameters> | null,
|
|
1297
|
+
data?: Paths.RejectExecution.RequestBody,
|
|
1298
|
+
config?: AxiosRequestConfig
|
|
1299
|
+
): OperationResponse<Paths.RejectExecution.Responses.$200>
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
type AgentDefinition = Components.Schemas.AgentDefinition;
|
|
1307
|
+
type AgentId = Components.Schemas.AgentId;
|
|
1308
|
+
type AgentSource = Components.Schemas.AgentSource;
|
|
1309
|
+
type ApproveExecutionRequest = Components.Schemas.ApproveExecutionRequest;
|
|
1310
|
+
type CreateAgentRequest = Components.Schemas.CreateAgentRequest;
|
|
1311
|
+
type Error = Components.Schemas.Error;
|
|
1312
|
+
type ExecuteAgentRequest = Components.Schemas.ExecuteAgentRequest;
|
|
1313
|
+
type ExecutionContext = Components.Schemas.ExecutionContext;
|
|
1314
|
+
type ExecutionError = Components.Schemas.ExecutionError;
|
|
1315
|
+
type ExecutionIteration = Components.Schemas.ExecutionIteration;
|
|
1316
|
+
type ExecutionMetrics = Components.Schemas.ExecutionMetrics;
|
|
1317
|
+
type ExecutionMode = Components.Schemas.ExecutionMode;
|
|
1318
|
+
type ExecutionPattern = Components.Schemas.ExecutionPattern;
|
|
1319
|
+
type ExecutionResponse = Components.Schemas.ExecutionResponse;
|
|
1320
|
+
type ExecutionStatus = Components.Schemas.ExecutionStatus;
|
|
1321
|
+
type ExecutionTrace = Components.Schemas.ExecutionTrace;
|
|
1322
|
+
type InputParameterDefinition = Components.Schemas.InputParameterDefinition;
|
|
1323
|
+
type InputParametersSchema = Components.Schemas.InputParametersSchema;
|
|
1324
|
+
type ListAgentsResponse = Components.Schemas.ListAgentsResponse;
|
|
1325
|
+
type ListExecutionsResponse = Components.Schemas.ListExecutionsResponse;
|
|
1326
|
+
type ModelConfig = Components.Schemas.ModelConfig;
|
|
1327
|
+
type ParameterType = Components.Schemas.ParameterType;
|
|
1328
|
+
type PendingAction = Components.Schemas.PendingAction;
|
|
1329
|
+
type PreviewActionType = Components.Schemas.PreviewActionType;
|
|
1330
|
+
type PreviewChange = Components.Schemas.PreviewChange;
|
|
1331
|
+
type PreviewEntity = Components.Schemas.PreviewEntity;
|
|
1332
|
+
type PreviewValue = Components.Schemas.PreviewValue;
|
|
1333
|
+
type RejectExecutionRequest = Components.Schemas.RejectExecutionRequest;
|
|
1334
|
+
type SkillAvailability = Components.Schemas.SkillAvailability;
|
|
1335
|
+
type SkillCategory = Components.Schemas.SkillCategory;
|
|
1336
|
+
type ToolDefinition = Components.Schemas.ToolDefinition;
|
|
1337
|
+
type ToolPreview = Components.Schemas.ToolPreview;
|
|
1338
|
+
type UpdateAgentRequest = Components.Schemas.UpdateAgentRequest;
|
|
1339
|
+
|
|
1340
|
+
export type { AgentDefinition as A, Client as C, Error as E, InputParameterDefinition as I, ListAgentsResponse as L, ModelConfig as M, OperationMethods as O, PathsDictionary as P, RejectExecutionRequest as R, SkillAvailability as S, ToolDefinition as T, UpdateAgentRequest as U, AgentId as a, AgentSource as b, ApproveExecutionRequest as c, CreateAgentRequest as d, ExecuteAgentRequest as e, ExecutionContext as f, ExecutionError as g, ExecutionIteration as h, ExecutionMetrics as i, ExecutionMode as j, ExecutionPattern as k, ExecutionResponse as l, ExecutionStatus as m, ExecutionTrace as n, InputParametersSchema as o, ListExecutionsResponse as p, ParameterType as q, PendingAction as r, PreviewActionType as s, PreviewChange as t, PreviewEntity as u, PreviewValue as v, SkillCategory as w, ToolPreview as x };
|