@epilot/sdk 2.0.0-alpha.0 → 2.0.0-alpha.1
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 +99 -7
- package/dist/{access-token.d-C2qnueDV.d.cts → access-token.d-BuXO-21p.d.cts} +0 -1
- package/dist/{access-token.d-C2qnueDV.d.ts → access-token.d-BuXO-21p.d.ts} +0 -1
- package/dist/{address-suggestions.d-CewXYNYH.d.cts → address-suggestions.d-Cay0qOfA.d.cts} +0 -1
- package/dist/{address-suggestions.d-CewXYNYH.d.ts → address-suggestions.d-Cay0qOfA.d.ts} +0 -1
- package/dist/{address.d-DP_aE2ex.d.cts → address.d-D-oZY0rk.d.cts} +0 -1
- package/dist/{address.d-DP_aE2ex.d.ts → address.d-D-oZY0rk.d.ts} +0 -1
- package/dist/{ai-agents.d-vG-1utqk.d.cts → ai-agents.d-B4_CZTCP.d.cts} +0 -1
- package/dist/{ai-agents.d-vG-1utqk.d.ts → ai-agents.d-B4_CZTCP.d.ts} +0 -1
- package/dist/apis/access-token.cjs +4 -4
- package/dist/apis/access-token.d.cts +2 -2
- package/dist/apis/access-token.d.ts +2 -2
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +4 -4
- package/dist/apis/address-suggestions.d.cts +2 -2
- package/dist/apis/address-suggestions.d.ts +2 -2
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +4 -4
- package/dist/apis/address.d.cts +2 -2
- package/dist/apis/address.d.ts +2 -2
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +4 -4
- package/dist/apis/ai-agents.d.cts +2 -2
- package/dist/apis/ai-agents.d.ts +2 -2
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +4 -4
- package/dist/apis/app.d.cts +2 -2
- package/dist/apis/app.d.ts +2 -2
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +4 -4
- package/dist/apis/audit-logs.d.cts +2 -2
- package/dist/apis/audit-logs.d.ts +2 -2
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +4 -4
- package/dist/apis/automation.d.cts +2 -2
- package/dist/apis/automation.d.ts +2 -2
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +4 -4
- package/dist/apis/billing.d.cts +2 -2
- package/dist/apis/billing.d.ts +2 -2
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +4 -4
- package/dist/apis/blueprint-manifest.d.cts +2 -2
- package/dist/apis/blueprint-manifest.d.ts +2 -2
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/consent.cjs +4 -4
- package/dist/apis/consent.d.cts +2 -2
- package/dist/apis/consent.d.ts +2 -2
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +4 -4
- package/dist/apis/customer-portal.d.cts +2 -2
- package/dist/apis/customer-portal.d.ts +2 -2
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/data-management.cjs +4 -4
- package/dist/apis/data-management.d.cts +2 -2
- package/dist/apis/data-management.d.ts +2 -2
- package/dist/apis/data-management.js +1 -1
- package/dist/apis/deduplication.cjs +4 -4
- package/dist/apis/deduplication.d.cts +2 -2
- package/dist/apis/deduplication.d.ts +2 -2
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +4 -4
- package/dist/apis/design.d.cts +2 -2
- package/dist/apis/design.d.ts +2 -2
- package/dist/apis/design.js +1 -1
- package/dist/apis/discussion.cjs +4 -4
- package/dist/apis/discussion.d.cts +2 -2
- package/dist/apis/discussion.d.ts +2 -2
- package/dist/apis/discussion.js +1 -1
- package/dist/apis/document.cjs +4 -4
- package/dist/apis/document.d.cts +2 -2
- package/dist/apis/document.d.ts +2 -2
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +4 -4
- package/dist/apis/email-settings.d.cts +2 -2
- package/dist/apis/email-settings.d.ts +2 -2
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +4 -4
- package/dist/apis/email-template.d.cts +2 -2
- package/dist/apis/email-template.d.ts +2 -2
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +4 -4
- package/dist/apis/entity-mapping.d.cts +2 -2
- package/dist/apis/entity-mapping.d.ts +2 -2
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +4 -4
- package/dist/apis/entity.d.cts +2 -2
- package/dist/apis/entity.d.ts +2 -2
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +4 -4
- package/dist/apis/environments.d.cts +2 -2
- package/dist/apis/environments.d.ts +2 -2
- package/dist/apis/environments.js +1 -1
- package/dist/apis/erp-integration.cjs +4 -4
- package/dist/apis/erp-integration.d.cts +2 -2
- package/dist/apis/erp-integration.d.ts +2 -2
- package/dist/apis/erp-integration.js +1 -1
- package/dist/apis/event-catalog.cjs +4 -4
- package/dist/apis/event-catalog.d.cts +2 -2
- package/dist/apis/event-catalog.d.ts +2 -2
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +4 -4
- package/dist/apis/file.d.cts +2 -2
- package/dist/apis/file.d.ts +2 -2
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +4 -4
- package/dist/apis/iban.d.cts +2 -2
- package/dist/apis/iban.d.ts +2 -2
- package/dist/apis/iban.js +1 -1
- package/dist/apis/journey.cjs +4 -4
- package/dist/apis/journey.d.cts +2 -2
- package/dist/apis/journey.d.ts +2 -2
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +4 -4
- package/dist/apis/kanban.d.cts +2 -2
- package/dist/apis/kanban.d.ts +2 -2
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +4 -4
- package/dist/apis/message.d.cts +2 -2
- package/dist/apis/message.d.ts +2 -2
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +4 -4
- package/dist/apis/metering.d.cts +2 -2
- package/dist/apis/metering.d.ts +2 -2
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +4 -4
- package/dist/apis/notes.d.cts +2 -2
- package/dist/apis/notes.d.ts +2 -2
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +4 -4
- package/dist/apis/notification.d.cts +2 -2
- package/dist/apis/notification.d.ts +2 -2
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +4 -4
- package/dist/apis/organization.d.cts +2 -2
- package/dist/apis/organization.d.ts +2 -2
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +4 -4
- package/dist/apis/partner-directory.d.cts +2 -2
- package/dist/apis/partner-directory.d.ts +2 -2
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +4 -4
- package/dist/apis/permissions.d.cts +2 -2
- package/dist/apis/permissions.d.ts +2 -2
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +4 -4
- package/dist/apis/pricing-tier.d.cts +2 -2
- package/dist/apis/pricing-tier.d.ts +2 -2
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +4 -4
- package/dist/apis/pricing.d.cts +2 -2
- package/dist/apis/pricing.d.ts +2 -2
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +4 -4
- package/dist/apis/purpose.d.cts +2 -2
- package/dist/apis/purpose.d.ts +2 -2
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/sandbox.cjs +4 -4
- package/dist/apis/sandbox.d.cts +2 -2
- package/dist/apis/sandbox.d.ts +2 -2
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/submission.cjs +4 -4
- package/dist/apis/submission.d.cts +2 -2
- package/dist/apis/submission.d.ts +2 -2
- package/dist/apis/submission.js +1 -1
- package/dist/apis/targeting.cjs +4 -4
- package/dist/apis/targeting.d.cts +2 -2
- package/dist/apis/targeting.d.ts +2 -2
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +4 -4
- package/dist/apis/template-variables.d.cts +2 -2
- package/dist/apis/template-variables.d.ts +2 -2
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +4 -4
- package/dist/apis/user.d.cts +2 -2
- package/dist/apis/user.d.ts +2 -2
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +4 -4
- package/dist/apis/validation-rules.d.cts +2 -2
- package/dist/apis/validation-rules.d.ts +2 -2
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +4 -4
- package/dist/apis/webhooks.d.cts +2 -2
- package/dist/apis/webhooks.d.ts +2 -2
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +4 -4
- package/dist/apis/workflow-definition.d.cts +2 -2
- package/dist/apis/workflow-definition.d.ts +2 -2
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +4 -4
- package/dist/apis/workflow.d.cts +2 -2
- package/dist/apis/workflow.d.ts +2 -2
- package/dist/apis/workflow.js +1 -1
- package/dist/{app.d-Uncn387s.d.cts → app.d-BKyfin-q.d.cts} +0 -1
- package/dist/{app.d-Uncn387s.d.ts → app.d-BKyfin-q.d.ts} +0 -1
- package/dist/{audit-logs.d-BxZqONu5.d.cts → audit-logs.d-19BKb-ur.d.cts} +0 -1
- package/dist/{audit-logs.d-BxZqONu5.d.ts → audit-logs.d-19BKb-ur.d.ts} +0 -1
- package/dist/{automation.d-BteCzeFn.d.cts → automation.d-DKl2VtnW.d.cts} +0 -1
- package/dist/{automation.d-BteCzeFn.d.ts → automation.d-DKl2VtnW.d.ts} +0 -1
- package/dist/{billing.d-BH4__05Y.d.cts → billing.d-58fUMBqj.d.cts} +0 -1
- package/dist/{billing.d-BH4__05Y.d.ts → billing.d-58fUMBqj.d.ts} +0 -1
- package/dist/bin/cli.js +5 -7
- package/dist/{blueprint-manifest.d-CU4v09fj.d.cts → blueprint-manifest.d-Bu1GyXFW.d.cts} +0 -1
- package/dist/{blueprint-manifest.d-CU4v09fj.d.ts → blueprint-manifest.d-Bu1GyXFW.d.ts} +0 -1
- package/dist/{chunk-UJTFRZMS.js → chunk-UCDXDIUX.js} +2 -2
- package/dist/{chunk-YLLKMXS3.cjs → chunk-YYLPAGF4.cjs} +2 -2
- package/dist/{consent.d-BETWwU_2.d.cts → consent.d-CQ88IEj0.d.cts} +0 -1
- package/dist/{consent.d-BETWwU_2.d.ts → consent.d-CQ88IEj0.d.ts} +0 -1
- package/dist/{customer-portal.d-Co_I6psR.d.cts → customer-portal.d-EyndRWh6.d.cts} +0 -1
- package/dist/{customer-portal.d-Co_I6psR.d.ts → customer-portal.d-EyndRWh6.d.ts} +0 -1
- package/dist/{data-management.d-CkR2E_Pm.d.cts → data-management.d-CNExsqJQ.d.cts} +0 -1
- package/dist/{data-management.d-CkR2E_Pm.d.ts → data-management.d-CNExsqJQ.d.ts} +0 -1
- package/dist/{deduplication.d-BlHnjhXk.d.cts → deduplication.d-DCeJzdbM.d.cts} +0 -1
- package/dist/{deduplication.d-BlHnjhXk.d.ts → deduplication.d-DCeJzdbM.d.ts} +0 -1
- package/dist/{design.d-JsNY_cGh.d.cts → design.d-CkwgJ78Z.d.cts} +0 -1
- package/dist/{design.d-JsNY_cGh.d.ts → design.d-CkwgJ78Z.d.ts} +0 -1
- package/dist/{discussion.d-CxxaYKTf.d.cts → discussion.d-DQucoYl_.d.cts} +0 -1
- package/dist/{discussion.d-CxxaYKTf.d.ts → discussion.d-DQucoYl_.d.ts} +0 -1
- package/dist/{document.d-CZ_FGhEn.d.cts → document.d-Y8i32qNV.d.cts} +0 -1
- package/dist/{document.d-CZ_FGhEn.d.ts → document.d-Y8i32qNV.d.ts} +0 -1
- package/dist/{email-settings.d-3eXYEyRr.d.cts → email-settings.d-CPAsRFWN.d.cts} +0 -1
- package/dist/{email-settings.d-3eXYEyRr.d.ts → email-settings.d-CPAsRFWN.d.ts} +0 -1
- package/dist/{email-template.d-C2L0dKqB.d.cts → email-template.d-CQqiCN0N.d.cts} +0 -1
- package/dist/{email-template.d-C2L0dKqB.d.ts → email-template.d-CQqiCN0N.d.ts} +0 -1
- package/dist/{entity-mapping.d-B3Vyepok.d.cts → entity-mapping.d-DiqXqJWb.d.cts} +0 -1
- package/dist/{entity-mapping.d-B3Vyepok.d.ts → entity-mapping.d-DiqXqJWb.d.ts} +0 -1
- package/dist/{entity.d-DmER_7q5.d.cts → entity.d-BtT4mdq4.d.cts} +0 -1
- package/dist/{entity.d-DmER_7q5.d.ts → entity.d-BtT4mdq4.d.ts} +0 -1
- package/dist/{environments.d-CpILpSNF.d.cts → environments.d-C1xIs8N2.d.cts} +0 -1
- package/dist/{environments.d-CpILpSNF.d.ts → environments.d-C1xIs8N2.d.ts} +0 -1
- package/dist/{erp-integration.d-DmxUZOUQ.d.cts → erp-integration.d-CNLzgl4L.d.cts} +0 -1
- package/dist/{erp-integration.d-DmxUZOUQ.d.ts → erp-integration.d-CNLzgl4L.d.ts} +0 -1
- package/dist/{event-catalog.d-B2tq20gn.d.cts → event-catalog.d-DW1dOyVh.d.cts} +0 -1
- package/dist/{event-catalog.d-B2tq20gn.d.ts → event-catalog.d-DW1dOyVh.d.ts} +0 -1
- package/dist/{file.d-Bi0EZkNu.d.cts → file.d-Bpdt2ORN.d.cts} +0 -1
- package/dist/{file.d-Bi0EZkNu.d.ts → file.d-Bpdt2ORN.d.ts} +0 -1
- package/dist/{iban.d-DP7hl0Qt.d.cts → iban.d-3_7FEsbx.d.cts} +0 -1
- package/dist/{iban.d-DP7hl0Qt.d.ts → iban.d-3_7FEsbx.d.ts} +0 -1
- package/dist/index.cjs +70 -7
- package/dist/index.d.cts +71 -47
- package/dist/index.d.ts +71 -47
- package/dist/index.js +66 -3
- package/dist/{journey.d-DxL16X6N.d.cts → journey.d-C2lgynUF.d.cts} +0 -1
- package/dist/{journey.d-DxL16X6N.d.ts → journey.d-C2lgynUF.d.ts} +0 -1
- package/dist/{kanban.d-DDrBwr9h.d.cts → kanban.d-DYVjUQ_S.d.cts} +0 -1
- package/dist/{kanban.d-DDrBwr9h.d.ts → kanban.d-DYVjUQ_S.d.ts} +0 -1
- package/dist/{message.d-BeBH6vof.d.cts → message.d-TAVDRlDJ.d.cts} +0 -1
- package/dist/{message.d-BeBH6vof.d.ts → message.d-TAVDRlDJ.d.ts} +0 -1
- package/dist/{metering.d-D5VR4tVa.d.cts → metering.d-qyYaAU-O.d.cts} +0 -1
- package/dist/{metering.d-D5VR4tVa.d.ts → metering.d-qyYaAU-O.d.ts} +0 -1
- package/dist/{notes.d-DZYeVo0I.d.cts → notes.d-CDyIbegf.d.cts} +0 -1
- package/dist/{notes.d-DZYeVo0I.d.ts → notes.d-CDyIbegf.d.ts} +0 -1
- package/dist/{notification.d-BJwdFZnG.d.cts → notification.d-B7ccbaPr.d.cts} +0 -1
- package/dist/{notification.d-BJwdFZnG.d.ts → notification.d-B7ccbaPr.d.ts} +0 -1
- package/dist/{organization.d-DfUcuwKM.d.cts → organization.d-BxZWnh8L.d.cts} +0 -1
- package/dist/{organization.d-DfUcuwKM.d.ts → organization.d-BxZWnh8L.d.ts} +0 -1
- package/dist/{partner-directory.d-BRRDHFcz.d.cts → partner-directory.d-CzKV3WfP.d.cts} +0 -1
- package/dist/{partner-directory.d-BRRDHFcz.d.ts → partner-directory.d-CzKV3WfP.d.ts} +0 -1
- package/dist/{permissions.d-CL7SwMFy.d.cts → permissions.d-lVoPAfl3.d.cts} +0 -1
- package/dist/{permissions.d-CL7SwMFy.d.ts → permissions.d-lVoPAfl3.d.ts} +0 -1
- package/dist/{pricing-tier.d-VuH-NtlR.d.cts → pricing-tier.d-BW2cZt1w.d.cts} +0 -1
- package/dist/{pricing-tier.d-VuH-NtlR.d.ts → pricing-tier.d-BW2cZt1w.d.ts} +0 -1
- package/dist/{pricing.d-Dd1CaSX_.d.cts → pricing.d-Ehb2JuKY.d.cts} +0 -1
- package/dist/{pricing.d-Dd1CaSX_.d.ts → pricing.d-Ehb2JuKY.d.ts} +0 -1
- package/dist/{purpose.d-D8YCSqt9.d.cts → purpose.d-BVxst611.d.cts} +0 -1
- package/dist/{purpose.d-D8YCSqt9.d.ts → purpose.d-BVxst611.d.ts} +0 -1
- package/dist/{sandbox.d-D1NgPMEc.d.cts → sandbox.d-tRO2movo.d.cts} +0 -1
- package/dist/{sandbox.d-D1NgPMEc.d.ts → sandbox.d-tRO2movo.d.ts} +0 -1
- package/dist/{submission.d-e9MPrbY1.d.cts → submission.d-CSll5Km9.d.cts} +0 -1
- package/dist/{submission.d-e9MPrbY1.d.ts → submission.d-CSll5Km9.d.ts} +0 -1
- package/dist/{targeting.d-1GW3nh-y.d.cts → targeting.d-CDxIsOWy.d.cts} +0 -1
- package/dist/{targeting.d-1GW3nh-y.d.ts → targeting.d-CDxIsOWy.d.ts} +0 -1
- package/dist/{template-variables.d-CqqGe3sd.d.cts → template-variables.d-PwA27Ocv.d.cts} +0 -1
- package/dist/{template-variables.d-CqqGe3sd.d.ts → template-variables.d-PwA27Ocv.d.ts} +0 -1
- package/dist/{user.d-CWBgUia2.d.cts → user.d-DJBp6aX5.d.cts} +0 -1
- package/dist/{user.d-CWBgUia2.d.ts → user.d-DJBp6aX5.d.ts} +0 -1
- package/dist/{validation-rules.d-CMSvveua.d.cts → validation-rules.d-CScjNdxD.d.cts} +0 -1
- package/dist/{validation-rules.d-CMSvveua.d.ts → validation-rules.d-CScjNdxD.d.ts} +0 -1
- package/dist/{webhooks.d-Bzl-u_Zs.d.cts → webhooks.d-C_MQSJEB.d.cts} +0 -1
- package/dist/{webhooks.d-Bzl-u_Zs.d.ts → webhooks.d-C_MQSJEB.d.ts} +0 -1
- package/dist/{workflow-definition.d-BKmIy2Qp.d.cts → workflow-definition.d-CFXrp2Hg.d.cts} +0 -1
- package/dist/{workflow-definition.d-BKmIy2Qp.d.ts → workflow-definition.d-CFXrp2Hg.d.ts} +0 -1
- package/dist/{workflow.d-DElz0XoQ.d.cts → workflow.d-BIWtgMyP.d.cts} +0 -1
- package/dist/{workflow.d-DElz0XoQ.d.ts → workflow.d-BIWtgMyP.d.ts} +0 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center"><img alt="epilot" src="https://raw.githubusercontent.com/epilot-dev/sdk-js/main/logo.png" width="200"><br>@epilot/sdk</h1>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center">JavaScript/TypeScript SDK for epilot APIs. Full types, tree-shakeable imports, and lazy-loaded OpenAPI specs.</p>
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -25,7 +25,7 @@ const { data: file } = await epilot.file.getFile({ id: 'file-123' })
|
|
|
25
25
|
const { data: executions } = await epilot.workflow.getExecutions()
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
API clients are built on [openapi-client-axios](https://openapistack.co/docs/openapi-client-axios/intro/), which generates fully typed operation methods on top of regular [axios](https://axios-http.com/docs/intro) instances. All standard axios features (interceptors, defaults, config) work as expected. Each operation is forwarded to a lazy singleton — the spec is loaded and the client initialized on first use, then cached.
|
|
29
29
|
|
|
30
30
|
## Explicit Client Access
|
|
31
31
|
|
|
@@ -60,6 +60,24 @@ import { entity } from '@epilot/sdk/entity'
|
|
|
60
60
|
const { data } = await entity.getEntity({ slug: 'contact', id: '123' })
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
+
## Types
|
|
64
|
+
|
|
65
|
+
Each API subpath re-exports all schema types generated from the OpenAPI spec. Import them directly:
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
import type { Entity, EntitySchema, RelationAttribute } from '@epilot/sdk/entity'
|
|
69
|
+
import type { FileItem } from '@epilot/sdk/file'
|
|
70
|
+
import type { AutomationFlow } from '@epilot/sdk/automation'
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The `Client`, `OperationMethods`, and `PathsDictionary` types are also available for typing client instances:
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
import type { Client } from '@epilot/sdk/entity'
|
|
77
|
+
|
|
78
|
+
const entityClient: Client = await epilot.entity.getClient()
|
|
79
|
+
```
|
|
80
|
+
|
|
63
81
|
## Headers
|
|
64
82
|
|
|
65
83
|
### Global Headers
|
|
@@ -125,11 +143,67 @@ Use interceptors for custom request/response processing:
|
|
|
125
143
|
import { epilot } from '@epilot/sdk'
|
|
126
144
|
|
|
127
145
|
epilot.interceptors.request((config) => {
|
|
128
|
-
config.headers['x-
|
|
146
|
+
config.headers['x-correlation-id'] = generateTraceId()
|
|
129
147
|
return config
|
|
130
148
|
})
|
|
131
149
|
```
|
|
132
150
|
|
|
151
|
+
### Auto-Retry (429 Too Many Requests)
|
|
152
|
+
|
|
153
|
+
The SDK automatically retries requests that receive a `429 Too Many Requests` response. It respects the `Retry-After` header (in seconds) to determine how long to wait before retrying.
|
|
154
|
+
|
|
155
|
+
Enabled by default with up to 3 retries.
|
|
156
|
+
|
|
157
|
+
```ts
|
|
158
|
+
import { epilot } from '@epilot/sdk'
|
|
159
|
+
|
|
160
|
+
// Customize retry behavior
|
|
161
|
+
epilot.retry({ maxRetries: 5, defaultDelayMs: 2000 })
|
|
162
|
+
|
|
163
|
+
// Disable retries
|
|
164
|
+
epilot.retry({ maxRetries: 0 })
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
| Option | Default | Description |
|
|
168
|
+
| --- | --- | --- |
|
|
169
|
+
| `maxRetries` | `3` | Maximum number of retries. Set to `0` to disable. |
|
|
170
|
+
| `defaultDelayMs` | `1000` | Fallback delay in ms when `Retry-After` header is missing. |
|
|
171
|
+
|
|
172
|
+
For individually imported clients (tree-shakeable imports), apply the interceptor manually:
|
|
173
|
+
|
|
174
|
+
```ts
|
|
175
|
+
import { getClient, authorize } from '@epilot/sdk/entity'
|
|
176
|
+
import { applyRetryInterceptor } from '@epilot/sdk'
|
|
177
|
+
|
|
178
|
+
const entityClient = await getClient()
|
|
179
|
+
authorize(entityClient, () => '<my-token>')
|
|
180
|
+
applyRetryInterceptor({ client: entityClient, config: { maxRetries: 3 } })
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Large Response Handling (413 Payload Too Large)
|
|
184
|
+
|
|
185
|
+
epilot APIs use a [large response middleware](https://github.com/epilot-dev/aws-lambda-utility-middlewares) to work around the AWS Lambda 6MB response limit. When a response exceeds ~5.1MB, the API uploads the payload to S3 and returns a presigned URL instead.
|
|
186
|
+
|
|
187
|
+
The SDK handles this transparently — it sends the opt-in `Accept` header and automatically fetches the full payload from S3 when a large response URL is returned. Enabled by default.
|
|
188
|
+
|
|
189
|
+
```ts
|
|
190
|
+
import { epilot } from '@epilot/sdk'
|
|
191
|
+
|
|
192
|
+
// Disable large response handling
|
|
193
|
+
epilot.largeResponse({ enabled: false })
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
For individually imported clients (tree-shakeable imports), apply the interceptor manually:
|
|
197
|
+
|
|
198
|
+
```ts
|
|
199
|
+
import { getClient, authorize } from '@epilot/sdk/entity'
|
|
200
|
+
import { applyLargeResponseInterceptor } from '@epilot/sdk'
|
|
201
|
+
|
|
202
|
+
const entityClient = await getClient()
|
|
203
|
+
authorize(entityClient, () => '<my-token>')
|
|
204
|
+
applyLargeResponseInterceptor({ client: entityClient, config: { enabled: true } })
|
|
205
|
+
```
|
|
206
|
+
|
|
133
207
|
### Backend Internal Calls (Pass Headers)
|
|
134
208
|
|
|
135
209
|
```ts
|
|
@@ -187,7 +261,7 @@ Override built-in API specs or register custom APIs via `.epilot/sdk-overrides.j
|
|
|
187
261
|
const { data } = await epilot.entity.getEntity({ slug: 'contact', id: '123' })
|
|
188
262
|
```
|
|
189
263
|
|
|
190
|
-
###
|
|
264
|
+
### Override Commands
|
|
191
265
|
|
|
192
266
|
```bash
|
|
193
267
|
# Apply all overrides from .epilot/sdk-overrides.json
|
|
@@ -236,12 +310,30 @@ import type { Client, Components } from '@epilot/entity-client'
|
|
|
236
310
|
import type { Client } from '@epilot/sdk/entity'
|
|
237
311
|
```
|
|
238
312
|
|
|
313
|
+
## Client LifecycleV
|
|
314
|
+
|
|
315
|
+
When you call `authorize()`, `headers()`, `retry()`, `largeResponse()`, or `interceptors`, the SDK invalidates all cached client instances. The next operation call creates a fresh client with the updated configuration.
|
|
316
|
+
|
|
317
|
+
**Proxy operations are always up to date** — calls like `epilot.entity.getEntity(...)` re-resolve the client on every invocation, so they always use the latest config.
|
|
318
|
+
|
|
319
|
+
**Direct `getClient()` references can go stale** — if you hold a reference and then change config, your reference still points to the old client:
|
|
320
|
+
|
|
321
|
+
```ts
|
|
322
|
+
const client = await epilot.entity.getClient()
|
|
323
|
+
|
|
324
|
+
epilot.authorize('new-token') // invalidates all cached clients
|
|
325
|
+
|
|
326
|
+
// client still has the old token
|
|
327
|
+
// epilot.entity.getEntity(...) will use a new client with the new token
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
If you need a long-lived reference that survives config changes, call `getClient()` again after changing config — or use proxy operations directly.
|
|
331
|
+
|
|
332
|
+
|
|
239
333
|
## API Reference
|
|
240
334
|
|
|
241
335
|
Full API documentation: [https://docs.epilot.io/api](https://docs.epilot.io/api)
|
|
242
336
|
|
|
243
|
-
See [docs/index.md](./docs/index.md) for a full list of all 46 API clients with their operations.
|
|
244
|
-
|
|
245
337
|
## Available APIs
|
|
246
338
|
|
|
247
339
|
| API | Import | Docs |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYYLPAGF4cjs = require('../chunk-YYLPAGF4.cjs');
|
|
6
6
|
require('../chunk-OBGZSXTJ.cjs');
|
|
7
7
|
|
|
8
8
|
// src/apis/access-token.ts
|
|
@@ -14,11 +14,11 @@ var _instance = null;
|
|
|
14
14
|
var resolve = async () => {
|
|
15
15
|
if (!_instance) {
|
|
16
16
|
const definition = await loadDefinition();
|
|
17
|
-
_instance =
|
|
17
|
+
_instance = _chunkYYLPAGF4cjs.createApiClient.call(void 0, { definition });
|
|
18
18
|
}
|
|
19
19
|
return _instance;
|
|
20
20
|
};
|
|
21
|
-
var _handle =
|
|
21
|
+
var _handle = _chunkYYLPAGF4cjs.createApiHandle.call(void 0, {
|
|
22
22
|
resolveClient: resolve,
|
|
23
23
|
loadDefinition
|
|
24
24
|
});
|
|
@@ -30,4 +30,4 @@ var accessToken = _handle;
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.accessToken = accessToken; exports.authorize =
|
|
33
|
+
exports.accessToken = accessToken; exports.authorize = _chunkYYLPAGF4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ApiHandle } from '../types-C5cGIwtq.cjs';
|
|
2
2
|
export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.cjs';
|
|
3
|
-
import { C as Client } from '../access-token.d-
|
|
4
|
-
export { A as AccessToken, a as AccessTokenId, b as AccessTokenItem, c as AccessTokenJourneyId, d as AccessTokenName, e as AccessTokenParameters, f as AccessTokenType, g as AppTokenParameters, h as Assignments, i as AssumeTokenParameters, E as ExpiresIn, J as JourneyTokenParameters, O as OperationMethods, P as PathsDictionary, j as PortalId, k as PortalTokenParameters, R as RoleId, T as TokenParameters } from '../access-token.d-
|
|
3
|
+
import { C as Client } from '../access-token.d-BuXO-21p.cjs';
|
|
4
|
+
export { A as AccessToken, a as AccessTokenId, b as AccessTokenItem, c as AccessTokenJourneyId, d as AccessTokenName, e as AccessTokenParameters, f as AccessTokenType, g as AppTokenParameters, h as Assignments, i as AssumeTokenParameters, E as ExpiresIn, J as JourneyTokenParameters, O as OperationMethods, P as PathsDictionary, j as PortalId, k as PortalTokenParameters, R as RoleId, T as TokenParameters } from '../access-token.d-BuXO-21p.cjs';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'openapi-client-axios';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ApiHandle } from '../types-C5cGIwtq.js';
|
|
2
2
|
export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.js';
|
|
3
|
-
import { C as Client } from '../access-token.d-
|
|
4
|
-
export { A as AccessToken, a as AccessTokenId, b as AccessTokenItem, c as AccessTokenJourneyId, d as AccessTokenName, e as AccessTokenParameters, f as AccessTokenType, g as AppTokenParameters, h as Assignments, i as AssumeTokenParameters, E as ExpiresIn, J as JourneyTokenParameters, O as OperationMethods, P as PathsDictionary, j as PortalId, k as PortalTokenParameters, R as RoleId, T as TokenParameters } from '../access-token.d-
|
|
3
|
+
import { C as Client } from '../access-token.d-BuXO-21p.js';
|
|
4
|
+
export { A as AccessToken, a as AccessTokenId, b as AccessTokenItem, c as AccessTokenJourneyId, d as AccessTokenName, e as AccessTokenParameters, f as AccessTokenType, g as AppTokenParameters, h as Assignments, i as AssumeTokenParameters, E as ExpiresIn, J as JourneyTokenParameters, O as OperationMethods, P as PathsDictionary, j as PortalId, k as PortalTokenParameters, R as RoleId, T as TokenParameters } from '../access-token.d-BuXO-21p.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'openapi-client-axios';
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYYLPAGF4cjs = require('../chunk-YYLPAGF4.cjs');
|
|
6
6
|
require('../chunk-OBGZSXTJ.cjs');
|
|
7
7
|
|
|
8
8
|
// src/apis/address-suggestions.ts
|
|
@@ -14,11 +14,11 @@ var _instance = null;
|
|
|
14
14
|
var resolve = async () => {
|
|
15
15
|
if (!_instance) {
|
|
16
16
|
const definition = await loadDefinition();
|
|
17
|
-
_instance =
|
|
17
|
+
_instance = _chunkYYLPAGF4cjs.createApiClient.call(void 0, { definition });
|
|
18
18
|
}
|
|
19
19
|
return _instance;
|
|
20
20
|
};
|
|
21
|
-
var _handle =
|
|
21
|
+
var _handle = _chunkYYLPAGF4cjs.createApiHandle.call(void 0, {
|
|
22
22
|
resolveClient: resolve,
|
|
23
23
|
loadDefinition
|
|
24
24
|
});
|
|
@@ -30,4 +30,4 @@ var addressSuggestions = _handle;
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.addressSuggestions = addressSuggestions; exports.authorize =
|
|
33
|
+
exports.addressSuggestions = addressSuggestions; exports.authorize = _chunkYYLPAGF4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ApiHandle } from '../types-C5cGIwtq.cjs';
|
|
2
2
|
export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.cjs';
|
|
3
|
-
import { C as Client } from '../address-suggestions.d-
|
|
4
|
-
export { A as AddressSuggestion, a as AddressSuggestionError, b as AddressSuggestions, c as AvailabilityLocation, d as AvailabilityResult, E as Error, O as OperationMethods, P as PathsDictionary, V as ValidateAddressFileError, e as ValidateAddressFileResult, f as ValidateAddressSuggestionsFileResult } from '../address-suggestions.d-
|
|
3
|
+
import { C as Client } from '../address-suggestions.d-Cay0qOfA.cjs';
|
|
4
|
+
export { A as AddressSuggestion, a as AddressSuggestionError, b as AddressSuggestions, c as AvailabilityLocation, d as AvailabilityResult, E as Error, O as OperationMethods, P as PathsDictionary, V as ValidateAddressFileError, e as ValidateAddressFileResult, f as ValidateAddressSuggestionsFileResult } from '../address-suggestions.d-Cay0qOfA.cjs';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'openapi-client-axios';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ApiHandle } from '../types-C5cGIwtq.js';
|
|
2
2
|
export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.js';
|
|
3
|
-
import { C as Client } from '../address-suggestions.d-
|
|
4
|
-
export { A as AddressSuggestion, a as AddressSuggestionError, b as AddressSuggestions, c as AvailabilityLocation, d as AvailabilityResult, E as Error, O as OperationMethods, P as PathsDictionary, V as ValidateAddressFileError, e as ValidateAddressFileResult, f as ValidateAddressSuggestionsFileResult } from '../address-suggestions.d-
|
|
3
|
+
import { C as Client } from '../address-suggestions.d-Cay0qOfA.js';
|
|
4
|
+
export { A as AddressSuggestion, a as AddressSuggestionError, b as AddressSuggestions, c as AvailabilityLocation, d as AvailabilityResult, E as Error, O as OperationMethods, P as PathsDictionary, V as ValidateAddressFileError, e as ValidateAddressFileResult, f as ValidateAddressSuggestionsFileResult } from '../address-suggestions.d-Cay0qOfA.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'openapi-client-axios';
|
|
7
7
|
|
package/dist/apis/address.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYYLPAGF4cjs = require('../chunk-YYLPAGF4.cjs');
|
|
6
6
|
require('../chunk-OBGZSXTJ.cjs');
|
|
7
7
|
|
|
8
8
|
// src/apis/address.ts
|
|
@@ -14,11 +14,11 @@ var _instance = null;
|
|
|
14
14
|
var resolve = async () => {
|
|
15
15
|
if (!_instance) {
|
|
16
16
|
const definition = await loadDefinition();
|
|
17
|
-
_instance =
|
|
17
|
+
_instance = _chunkYYLPAGF4cjs.createApiClient.call(void 0, { definition });
|
|
18
18
|
}
|
|
19
19
|
return _instance;
|
|
20
20
|
};
|
|
21
|
-
var _handle =
|
|
21
|
+
var _handle = _chunkYYLPAGF4cjs.createApiHandle.call(void 0, {
|
|
22
22
|
resolveClient: resolve,
|
|
23
23
|
loadDefinition
|
|
24
24
|
});
|
|
@@ -30,4 +30,4 @@ var address = _handle;
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.address = address; exports.authorize =
|
|
33
|
+
exports.address = address; exports.authorize = _chunkYYLPAGF4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
|
package/dist/apis/address.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ApiHandle } from '../types-C5cGIwtq.cjs';
|
|
2
2
|
export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.cjs';
|
|
3
|
-
import { C as Client } from '../address.d-
|
|
4
|
-
export { A as AddressSuggestion, a as AddressSuggestions, b as AvailabilityCheckParams, c as AvailabilityDate, d as AvailabilityFilters, e as AvailabilityLocation, f as AvailabilityResult, E as ErrorResponse, O as OperationMethods, P as PathsDictionary, V as ValidateAvailabilityFileError, g as ValidateAvailabilityFileResult } from '../address.d-
|
|
3
|
+
import { C as Client } from '../address.d-D-oZY0rk.cjs';
|
|
4
|
+
export { A as AddressSuggestion, a as AddressSuggestions, b as AvailabilityCheckParams, c as AvailabilityDate, d as AvailabilityFilters, e as AvailabilityLocation, f as AvailabilityResult, E as ErrorResponse, O as OperationMethods, P as PathsDictionary, V as ValidateAvailabilityFileError, g as ValidateAvailabilityFileResult } from '../address.d-D-oZY0rk.cjs';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'openapi-client-axios';
|
|
7
7
|
|
package/dist/apis/address.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ApiHandle } from '../types-C5cGIwtq.js';
|
|
2
2
|
export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.js';
|
|
3
|
-
import { C as Client } from '../address.d-
|
|
4
|
-
export { A as AddressSuggestion, a as AddressSuggestions, b as AvailabilityCheckParams, c as AvailabilityDate, d as AvailabilityFilters, e as AvailabilityLocation, f as AvailabilityResult, E as ErrorResponse, O as OperationMethods, P as PathsDictionary, V as ValidateAvailabilityFileError, g as ValidateAvailabilityFileResult } from '../address.d-
|
|
3
|
+
import { C as Client } from '../address.d-D-oZY0rk.js';
|
|
4
|
+
export { A as AddressSuggestion, a as AddressSuggestions, b as AvailabilityCheckParams, c as AvailabilityDate, d as AvailabilityFilters, e as AvailabilityLocation, f as AvailabilityResult, E as ErrorResponse, O as OperationMethods, P as PathsDictionary, V as ValidateAvailabilityFileError, g as ValidateAvailabilityFileResult } from '../address.d-D-oZY0rk.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'openapi-client-axios';
|
|
7
7
|
|
package/dist/apis/address.js
CHANGED
package/dist/apis/ai-agents.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYYLPAGF4cjs = require('../chunk-YYLPAGF4.cjs');
|
|
6
6
|
require('../chunk-OBGZSXTJ.cjs');
|
|
7
7
|
|
|
8
8
|
// src/apis/ai-agents.ts
|
|
@@ -14,11 +14,11 @@ var _instance = null;
|
|
|
14
14
|
var resolve = async () => {
|
|
15
15
|
if (!_instance) {
|
|
16
16
|
const definition = await loadDefinition();
|
|
17
|
-
_instance =
|
|
17
|
+
_instance = _chunkYYLPAGF4cjs.createApiClient.call(void 0, { definition });
|
|
18
18
|
}
|
|
19
19
|
return _instance;
|
|
20
20
|
};
|
|
21
|
-
var _handle =
|
|
21
|
+
var _handle = _chunkYYLPAGF4cjs.createApiHandle.call(void 0, {
|
|
22
22
|
resolveClient: resolve,
|
|
23
23
|
loadDefinition
|
|
24
24
|
});
|
|
@@ -30,4 +30,4 @@ var aiAgents = _handle;
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.aiAgents = aiAgents; exports.authorize =
|
|
33
|
+
exports.aiAgents = aiAgents; exports.authorize = _chunkYYLPAGF4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ApiHandle } from '../types-C5cGIwtq.cjs';
|
|
2
2
|
export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.cjs';
|
|
3
|
-
import { C as Client } from '../ai-agents.d-
|
|
4
|
-
export { A as AgentDefinition, a as AgentId, b as AgentSource, c as ApproveExecutionRequest, d as CreateAgentRequest, E as Error, e as ExecuteAgentRequest, f as ExecutionContext, g as ExecutionError, h as ExecutionIteration, i as ExecutionMetrics, j as ExecutionMode, k as ExecutionPattern, l as ExecutionResponse, m as ExecutionStatus, n as ExecutionTrace, I as InputParameterDefinition, o as InputParametersSchema, L as ListAgentsResponse, p as ListExecutionsResponse, M as ModelConfig, O as OperationMethods, q as ParameterType, P as PathsDictionary, r as PendingAction, s as PreviewActionType, t as PreviewChange, u as PreviewEntity, v as PreviewValue, R as RejectExecutionRequest, S as SkillAvailability, w as SkillCategory, T as ToolDefinition, x as ToolPreview, U as UpdateAgentRequest } from '../ai-agents.d-
|
|
3
|
+
import { C as Client } from '../ai-agents.d-B4_CZTCP.cjs';
|
|
4
|
+
export { A as AgentDefinition, a as AgentId, b as AgentSource, c as ApproveExecutionRequest, d as CreateAgentRequest, E as Error, e as ExecuteAgentRequest, f as ExecutionContext, g as ExecutionError, h as ExecutionIteration, i as ExecutionMetrics, j as ExecutionMode, k as ExecutionPattern, l as ExecutionResponse, m as ExecutionStatus, n as ExecutionTrace, I as InputParameterDefinition, o as InputParametersSchema, L as ListAgentsResponse, p as ListExecutionsResponse, M as ModelConfig, O as OperationMethods, q as ParameterType, P as PathsDictionary, r as PendingAction, s as PreviewActionType, t as PreviewChange, u as PreviewEntity, v as PreviewValue, R as RejectExecutionRequest, S as SkillAvailability, w as SkillCategory, T as ToolDefinition, x as ToolPreview, U as UpdateAgentRequest } from '../ai-agents.d-B4_CZTCP.cjs';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'openapi-client-axios';
|
|
7
7
|
|
package/dist/apis/ai-agents.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ApiHandle } from '../types-C5cGIwtq.js';
|
|
2
2
|
export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.js';
|
|
3
|
-
import { C as Client } from '../ai-agents.d-
|
|
4
|
-
export { A as AgentDefinition, a as AgentId, b as AgentSource, c as ApproveExecutionRequest, d as CreateAgentRequest, E as Error, e as ExecuteAgentRequest, f as ExecutionContext, g as ExecutionError, h as ExecutionIteration, i as ExecutionMetrics, j as ExecutionMode, k as ExecutionPattern, l as ExecutionResponse, m as ExecutionStatus, n as ExecutionTrace, I as InputParameterDefinition, o as InputParametersSchema, L as ListAgentsResponse, p as ListExecutionsResponse, M as ModelConfig, O as OperationMethods, q as ParameterType, P as PathsDictionary, r as PendingAction, s as PreviewActionType, t as PreviewChange, u as PreviewEntity, v as PreviewValue, R as RejectExecutionRequest, S as SkillAvailability, w as SkillCategory, T as ToolDefinition, x as ToolPreview, U as UpdateAgentRequest } from '../ai-agents.d-
|
|
3
|
+
import { C as Client } from '../ai-agents.d-B4_CZTCP.js';
|
|
4
|
+
export { A as AgentDefinition, a as AgentId, b as AgentSource, c as ApproveExecutionRequest, d as CreateAgentRequest, E as Error, e as ExecuteAgentRequest, f as ExecutionContext, g as ExecutionError, h as ExecutionIteration, i as ExecutionMetrics, j as ExecutionMode, k as ExecutionPattern, l as ExecutionResponse, m as ExecutionStatus, n as ExecutionTrace, I as InputParameterDefinition, o as InputParametersSchema, L as ListAgentsResponse, p as ListExecutionsResponse, M as ModelConfig, O as OperationMethods, q as ParameterType, P as PathsDictionary, r as PendingAction, s as PreviewActionType, t as PreviewChange, u as PreviewEntity, v as PreviewValue, R as RejectExecutionRequest, S as SkillAvailability, w as SkillCategory, T as ToolDefinition, x as ToolPreview, U as UpdateAgentRequest } from '../ai-agents.d-B4_CZTCP.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'openapi-client-axios';
|
|
7
7
|
|
package/dist/apis/ai-agents.js
CHANGED
package/dist/apis/app.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYYLPAGF4cjs = require('../chunk-YYLPAGF4.cjs');
|
|
6
6
|
require('../chunk-OBGZSXTJ.cjs');
|
|
7
7
|
|
|
8
8
|
// src/apis/app.ts
|
|
@@ -14,11 +14,11 @@ var _instance = null;
|
|
|
14
14
|
var resolve = async () => {
|
|
15
15
|
if (!_instance) {
|
|
16
16
|
const definition = await loadDefinition();
|
|
17
|
-
_instance =
|
|
17
|
+
_instance = _chunkYYLPAGF4cjs.createApiClient.call(void 0, { definition });
|
|
18
18
|
}
|
|
19
19
|
return _instance;
|
|
20
20
|
};
|
|
21
|
-
var _handle =
|
|
21
|
+
var _handle = _chunkYYLPAGF4cjs.createApiHandle.call(void 0, {
|
|
22
22
|
resolveClient: resolve,
|
|
23
23
|
loadDefinition
|
|
24
24
|
});
|
|
@@ -30,4 +30,4 @@ var app = _handle;
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.app = app; exports.authorize =
|
|
33
|
+
exports.app = app; exports.authorize = _chunkYYLPAGF4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
|
package/dist/apis/app.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ApiHandle } from '../types-C5cGIwtq.cjs';
|
|
2
2
|
export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.cjs';
|
|
3
|
-
import { C as Client } from '../app.d-
|
|
4
|
-
export { A as Actor, a as AggregatedEvents, b as AppBridgeSurfaceConfig, c as AppEventData, d as Audit, e as Author, B as BaseComponent, f as BaseComponentCommon, g as BaseCustomActionConfig, h as BatchEventRequest, i as BillingFrequency, j as BlueprintRef, k as BooleanArg, l as CallerIdentity, m as ComponentType, n as Configuration, o as ConfigurationMetadata, p as ConfigurationVersion, q as CustomCapabilityComponent, r as CustomFlowActionComponent, s as CustomFlowConfig, t as CustomPageComponent, u as CustomPageConfig, E as EnumArg, v as ErpInformToolkitComponent, w as EventsQuery, x as EventsQueryResponse, y as ExternalIntegrationCustomActionConfig, z as ExternalProductCatalogAuthBlock, D as ExternalProductCatalogComponent, F as ExternalProductCatalogConfig, G as ExternalProductCatalogHookProductRecommendations, H as ExternalProductCatalogHookProducts, I as Grants, J as Installation, K as JourneyBlockComponent, L as JourneyBlockComponentArgs, M as JourneyBlockConfig, N as NotificationConfig, Q as NotificationEvent, O as OperationMethods, R as Option, S as Options, T as OptionsRef, U as OverrideDevMode, P as PathsDictionary, V as PortalBlockComponent, W as PortalBlockConfig, X as PortalBlockSurfaceConfig, Y as PortalExtensionAuthBlock, Z as PortalExtensionComponent, _ as PortalExtensionConfig, $ as PortalExtensionHookConsumptionDataRetrieval, a0 as PortalExtensionHookContractIdentification, a1 as PortalExtensionHookCostDataRetrieval, a2 as PortalExtensionHookMeterReadingPlausibilityCheck, a3 as PortalExtensionHookPriceDataRetrieval, a4 as PortalExtensionHookRegistrationIdentifiersCheck, a5 as PortalExtensionSeamlessLink, a6 as Pricing, a7 as PublicConfiguration, a8 as RawEvents, a9 as Review, aa as Role, ab as S3Reference, ac as SandboxCustomActionConfig, ad as TextArg, ae as TranslatedString } from '../app.d-
|
|
3
|
+
import { C as Client } from '../app.d-BKyfin-q.cjs';
|
|
4
|
+
export { A as Actor, a as AggregatedEvents, b as AppBridgeSurfaceConfig, c as AppEventData, d as Audit, e as Author, B as BaseComponent, f as BaseComponentCommon, g as BaseCustomActionConfig, h as BatchEventRequest, i as BillingFrequency, j as BlueprintRef, k as BooleanArg, l as CallerIdentity, m as ComponentType, n as Configuration, o as ConfigurationMetadata, p as ConfigurationVersion, q as CustomCapabilityComponent, r as CustomFlowActionComponent, s as CustomFlowConfig, t as CustomPageComponent, u as CustomPageConfig, E as EnumArg, v as ErpInformToolkitComponent, w as EventsQuery, x as EventsQueryResponse, y as ExternalIntegrationCustomActionConfig, z as ExternalProductCatalogAuthBlock, D as ExternalProductCatalogComponent, F as ExternalProductCatalogConfig, G as ExternalProductCatalogHookProductRecommendations, H as ExternalProductCatalogHookProducts, I as Grants, J as Installation, K as JourneyBlockComponent, L as JourneyBlockComponentArgs, M as JourneyBlockConfig, N as NotificationConfig, Q as NotificationEvent, O as OperationMethods, R as Option, S as Options, T as OptionsRef, U as OverrideDevMode, P as PathsDictionary, V as PortalBlockComponent, W as PortalBlockConfig, X as PortalBlockSurfaceConfig, Y as PortalExtensionAuthBlock, Z as PortalExtensionComponent, _ as PortalExtensionConfig, $ as PortalExtensionHookConsumptionDataRetrieval, a0 as PortalExtensionHookContractIdentification, a1 as PortalExtensionHookCostDataRetrieval, a2 as PortalExtensionHookMeterReadingPlausibilityCheck, a3 as PortalExtensionHookPriceDataRetrieval, a4 as PortalExtensionHookRegistrationIdentifiersCheck, a5 as PortalExtensionSeamlessLink, a6 as Pricing, a7 as PublicConfiguration, a8 as RawEvents, a9 as Review, aa as Role, ab as S3Reference, ac as SandboxCustomActionConfig, ad as TextArg, ae as TranslatedString } from '../app.d-BKyfin-q.cjs';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'openapi-client-axios';
|
|
7
7
|
|
package/dist/apis/app.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ApiHandle } from '../types-C5cGIwtq.js';
|
|
2
2
|
export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.js';
|
|
3
|
-
import { C as Client } from '../app.d-
|
|
4
|
-
export { A as Actor, a as AggregatedEvents, b as AppBridgeSurfaceConfig, c as AppEventData, d as Audit, e as Author, B as BaseComponent, f as BaseComponentCommon, g as BaseCustomActionConfig, h as BatchEventRequest, i as BillingFrequency, j as BlueprintRef, k as BooleanArg, l as CallerIdentity, m as ComponentType, n as Configuration, o as ConfigurationMetadata, p as ConfigurationVersion, q as CustomCapabilityComponent, r as CustomFlowActionComponent, s as CustomFlowConfig, t as CustomPageComponent, u as CustomPageConfig, E as EnumArg, v as ErpInformToolkitComponent, w as EventsQuery, x as EventsQueryResponse, y as ExternalIntegrationCustomActionConfig, z as ExternalProductCatalogAuthBlock, D as ExternalProductCatalogComponent, F as ExternalProductCatalogConfig, G as ExternalProductCatalogHookProductRecommendations, H as ExternalProductCatalogHookProducts, I as Grants, J as Installation, K as JourneyBlockComponent, L as JourneyBlockComponentArgs, M as JourneyBlockConfig, N as NotificationConfig, Q as NotificationEvent, O as OperationMethods, R as Option, S as Options, T as OptionsRef, U as OverrideDevMode, P as PathsDictionary, V as PortalBlockComponent, W as PortalBlockConfig, X as PortalBlockSurfaceConfig, Y as PortalExtensionAuthBlock, Z as PortalExtensionComponent, _ as PortalExtensionConfig, $ as PortalExtensionHookConsumptionDataRetrieval, a0 as PortalExtensionHookContractIdentification, a1 as PortalExtensionHookCostDataRetrieval, a2 as PortalExtensionHookMeterReadingPlausibilityCheck, a3 as PortalExtensionHookPriceDataRetrieval, a4 as PortalExtensionHookRegistrationIdentifiersCheck, a5 as PortalExtensionSeamlessLink, a6 as Pricing, a7 as PublicConfiguration, a8 as RawEvents, a9 as Review, aa as Role, ab as S3Reference, ac as SandboxCustomActionConfig, ad as TextArg, ae as TranslatedString } from '../app.d-
|
|
3
|
+
import { C as Client } from '../app.d-BKyfin-q.js';
|
|
4
|
+
export { A as Actor, a as AggregatedEvents, b as AppBridgeSurfaceConfig, c as AppEventData, d as Audit, e as Author, B as BaseComponent, f as BaseComponentCommon, g as BaseCustomActionConfig, h as BatchEventRequest, i as BillingFrequency, j as BlueprintRef, k as BooleanArg, l as CallerIdentity, m as ComponentType, n as Configuration, o as ConfigurationMetadata, p as ConfigurationVersion, q as CustomCapabilityComponent, r as CustomFlowActionComponent, s as CustomFlowConfig, t as CustomPageComponent, u as CustomPageConfig, E as EnumArg, v as ErpInformToolkitComponent, w as EventsQuery, x as EventsQueryResponse, y as ExternalIntegrationCustomActionConfig, z as ExternalProductCatalogAuthBlock, D as ExternalProductCatalogComponent, F as ExternalProductCatalogConfig, G as ExternalProductCatalogHookProductRecommendations, H as ExternalProductCatalogHookProducts, I as Grants, J as Installation, K as JourneyBlockComponent, L as JourneyBlockComponentArgs, M as JourneyBlockConfig, N as NotificationConfig, Q as NotificationEvent, O as OperationMethods, R as Option, S as Options, T as OptionsRef, U as OverrideDevMode, P as PathsDictionary, V as PortalBlockComponent, W as PortalBlockConfig, X as PortalBlockSurfaceConfig, Y as PortalExtensionAuthBlock, Z as PortalExtensionComponent, _ as PortalExtensionConfig, $ as PortalExtensionHookConsumptionDataRetrieval, a0 as PortalExtensionHookContractIdentification, a1 as PortalExtensionHookCostDataRetrieval, a2 as PortalExtensionHookMeterReadingPlausibilityCheck, a3 as PortalExtensionHookPriceDataRetrieval, a4 as PortalExtensionHookRegistrationIdentifiersCheck, a5 as PortalExtensionSeamlessLink, a6 as Pricing, a7 as PublicConfiguration, a8 as RawEvents, a9 as Review, aa as Role, ab as S3Reference, ac as SandboxCustomActionConfig, ad as TextArg, ae as TranslatedString } from '../app.d-BKyfin-q.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'openapi-client-axios';
|
|
7
7
|
|
package/dist/apis/app.js
CHANGED
package/dist/apis/audit-logs.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYYLPAGF4cjs = require('../chunk-YYLPAGF4.cjs');
|
|
6
6
|
require('../chunk-OBGZSXTJ.cjs');
|
|
7
7
|
|
|
8
8
|
// src/apis/audit-logs.ts
|
|
@@ -14,11 +14,11 @@ var _instance = null;
|
|
|
14
14
|
var resolve = async () => {
|
|
15
15
|
if (!_instance) {
|
|
16
16
|
const definition = await loadDefinition();
|
|
17
|
-
_instance =
|
|
17
|
+
_instance = _chunkYYLPAGF4cjs.createApiClient.call(void 0, { definition });
|
|
18
18
|
}
|
|
19
19
|
return _instance;
|
|
20
20
|
};
|
|
21
|
-
var _handle =
|
|
21
|
+
var _handle = _chunkYYLPAGF4cjs.createApiHandle.call(void 0, {
|
|
22
22
|
resolveClient: resolve,
|
|
23
23
|
loadDefinition
|
|
24
24
|
});
|
|
@@ -30,4 +30,4 @@ var auditLogs = _handle;
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.auditLogs = auditLogs; exports.authorize =
|
|
33
|
+
exports.auditLogs = auditLogs; exports.authorize = _chunkYYLPAGF4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ApiHandle } from '../types-C5cGIwtq.cjs';
|
|
2
2
|
export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.cjs';
|
|
3
|
-
import { C as Client } from '../audit-logs.d-
|
|
4
|
-
export { a as Caller, E as Event, H as HttpContext, O as OperationMethods, P as PathsDictionary, S as SearchOptions } from '../audit-logs.d-
|
|
3
|
+
import { C as Client } from '../audit-logs.d-19BKb-ur.cjs';
|
|
4
|
+
export { a as Caller, E as Event, H as HttpContext, O as OperationMethods, P as PathsDictionary, S as SearchOptions } from '../audit-logs.d-19BKb-ur.cjs';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'openapi-client-axios';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ApiHandle } from '../types-C5cGIwtq.js';
|
|
2
2
|
export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.js';
|
|
3
|
-
import { C as Client } from '../audit-logs.d-
|
|
4
|
-
export { a as Caller, E as Event, H as HttpContext, O as OperationMethods, P as PathsDictionary, S as SearchOptions } from '../audit-logs.d-
|
|
3
|
+
import { C as Client } from '../audit-logs.d-19BKb-ur.js';
|
|
4
|
+
export { a as Caller, E as Event, H as HttpContext, O as OperationMethods, P as PathsDictionary, S as SearchOptions } from '../audit-logs.d-19BKb-ur.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'openapi-client-axios';
|
|
7
7
|
|