@epilot/sdk 2.0.0-alpha.1 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -141
- package/dist/apis/access-token.cjs +90 -11
- package/dist/apis/access-token.d.cts +4 -4
- package/dist/apis/access-token.d.ts +4 -4
- package/dist/apis/access-token.js +86 -7
- package/dist/apis/address-suggestions.cjs +133 -11
- package/dist/apis/address-suggestions.d.cts +4 -4
- package/dist/apis/address-suggestions.d.ts +4 -4
- package/dist/apis/address-suggestions.js +129 -7
- package/dist/apis/address.cjs +85 -11
- package/dist/apis/address.d.cts +4 -4
- package/dist/apis/address.d.ts +4 -4
- package/dist/apis/address.js +81 -7
- package/dist/apis/ai-agents.cjs +216 -11
- package/dist/apis/ai-agents.d.cts +4 -4
- package/dist/apis/ai-agents.d.ts +4 -4
- package/dist/apis/ai-agents.js +212 -7
- package/dist/apis/app.cjs +574 -11
- package/dist/apis/app.d.cts +4 -4
- package/dist/apis/app.d.ts +4 -4
- package/dist/apis/app.js +570 -7
- package/dist/apis/audit-logs.cjs +56 -11
- package/dist/apis/audit-logs.d.cts +4 -4
- package/dist/apis/audit-logs.d.ts +4 -4
- package/dist/apis/audit-logs.js +52 -7
- package/dist/apis/automation.cjs +283 -11
- package/dist/apis/automation.d.cts +4 -4
- package/dist/apis/automation.d.ts +4 -4
- package/dist/apis/automation.js +279 -7
- package/dist/apis/billing.cjs +176 -11
- package/dist/apis/billing.d.cts +4 -4
- package/dist/apis/billing.d.ts +4 -4
- package/dist/apis/billing.js +172 -7
- package/dist/apis/blueprint-manifest.cjs +505 -11
- package/dist/apis/blueprint-manifest.d.cts +4 -4
- package/dist/apis/blueprint-manifest.d.ts +4 -4
- package/dist/apis/blueprint-manifest.js +501 -7
- package/dist/apis/consent.cjs +85 -11
- package/dist/apis/consent.d.cts +4 -4
- package/dist/apis/consent.d.ts +4 -4
- package/dist/apis/consent.js +81 -7
- package/dist/apis/customer-portal.cjs +2253 -11
- package/dist/apis/customer-portal.d.cts +4 -4
- package/dist/apis/customer-portal.d.ts +4 -4
- package/dist/apis/customer-portal.js +2249 -7
- package/dist/apis/data-management.cjs +241 -11
- package/dist/apis/data-management.d.cts +4 -4
- package/dist/apis/data-management.d.ts +4 -4
- package/dist/apis/data-management.js +237 -7
- package/dist/apis/deduplication.cjs +43 -11
- package/dist/apis/deduplication.d.cts +4 -4
- package/dist/apis/deduplication.d.ts +4 -4
- package/dist/apis/deduplication.js +39 -7
- package/dist/apis/design.cjs +220 -11
- package/dist/apis/design.d.cts +4 -4
- package/dist/apis/design.d.ts +4 -4
- package/dist/apis/design.js +216 -7
- package/dist/apis/document.cjs +79 -11
- package/dist/apis/document.d.cts +4 -4
- package/dist/apis/document.d.ts +4 -4
- package/dist/apis/document.js +75 -7
- package/dist/apis/email-settings.cjs +534 -11
- package/dist/apis/email-settings.d.cts +4 -4
- package/dist/apis/email-settings.d.ts +4 -4
- package/dist/apis/email-settings.js +530 -7
- package/dist/apis/email-template.cjs +123 -11
- package/dist/apis/email-template.d.cts +4 -4
- package/dist/apis/email-template.d.ts +4 -4
- package/dist/apis/email-template.js +119 -7
- package/dist/apis/entity-mapping.cjs +216 -11
- package/dist/apis/entity-mapping.d.cts +4 -4
- package/dist/apis/entity-mapping.d.ts +4 -4
- package/dist/apis/entity-mapping.js +212 -7
- package/dist/apis/entity.cjs +1601 -11
- package/dist/apis/entity.d.cts +4 -4
- package/dist/apis/entity.d.ts +4 -4
- package/dist/apis/entity.js +1597 -7
- package/dist/apis/environments.cjs +72 -11
- package/dist/apis/environments.d.cts +4 -4
- package/dist/apis/environments.d.ts +4 -4
- package/dist/apis/environments.js +68 -7
- package/dist/apis/erp-integration.cjs +587 -11
- package/dist/apis/erp-integration.d.cts +4 -4
- package/dist/apis/erp-integration.d.ts +4 -4
- package/dist/apis/erp-integration.js +583 -7
- package/dist/apis/event-catalog.cjs +131 -11
- package/dist/apis/event-catalog.d.cts +4 -4
- package/dist/apis/event-catalog.d.ts +4 -4
- package/dist/apis/event-catalog.js +127 -7
- package/dist/apis/file.cjs +574 -11
- package/dist/apis/file.d.cts +4 -4
- package/dist/apis/file.d.ts +4 -4
- package/dist/apis/file.js +570 -7
- package/dist/apis/iban.cjs +44 -11
- package/dist/apis/iban.d.cts +4 -4
- package/dist/apis/iban.d.ts +4 -4
- package/dist/apis/iban.js +40 -7
- package/dist/apis/journey.cjs +271 -11
- package/dist/apis/journey.d.cts +4 -4
- package/dist/apis/journey.d.ts +4 -4
- package/dist/apis/journey.js +267 -7
- package/dist/apis/kanban.cjs +165 -11
- package/dist/apis/kanban.d.cts +4 -4
- package/dist/apis/kanban.d.ts +4 -4
- package/dist/apis/kanban.js +161 -7
- package/dist/apis/message.cjs +674 -11
- package/dist/apis/message.d.cts +4 -4
- package/dist/apis/message.d.ts +4 -4
- package/dist/apis/message.js +670 -7
- package/dist/apis/metering.cjs +400 -11
- package/dist/apis/metering.d.cts +4 -4
- package/dist/apis/metering.d.ts +4 -4
- package/dist/apis/metering.js +396 -7
- package/dist/apis/notes.cjs +220 -11
- package/dist/apis/notes.d.cts +4 -4
- package/dist/apis/notes.d.ts +4 -4
- package/dist/apis/notes.js +216 -7
- package/dist/apis/notification.cjs +238 -11
- package/dist/apis/notification.d.cts +4 -4
- package/dist/apis/notification.d.ts +4 -4
- package/dist/apis/notification.js +234 -7
- package/dist/apis/organization.cjs +119 -11
- package/dist/apis/organization.d.cts +4 -4
- package/dist/apis/organization.d.ts +4 -4
- package/dist/apis/organization.js +115 -7
- package/dist/apis/partner-directory.cjs +283 -11
- package/dist/apis/partner-directory.d.cts +4 -4
- package/dist/apis/partner-directory.d.ts +4 -4
- package/dist/apis/partner-directory.js +279 -7
- package/dist/apis/permissions.cjs +179 -11
- package/dist/apis/permissions.d.cts +4 -4
- package/dist/apis/permissions.d.ts +4 -4
- package/dist/apis/permissions.js +175 -7
- package/dist/apis/pricing-tier.cjs +40 -14
- package/dist/apis/pricing-tier.d.cts +4 -4
- package/dist/apis/pricing-tier.d.ts +4 -4
- package/dist/apis/pricing-tier.js +33 -7
- package/dist/apis/pricing.cjs +440 -11
- package/dist/apis/pricing.d.cts +4 -4
- package/dist/apis/pricing.d.ts +4 -4
- package/dist/apis/pricing.js +436 -7
- package/dist/apis/purpose.cjs +181 -11
- package/dist/apis/purpose.d.cts +4 -4
- package/dist/apis/purpose.d.ts +4 -4
- package/dist/apis/purpose.js +177 -7
- package/dist/apis/sandbox.cjs +101 -11
- package/dist/apis/sandbox.d.cts +4 -4
- package/dist/apis/sandbox.d.ts +4 -4
- package/dist/apis/sandbox.js +97 -7
- package/dist/apis/submission.cjs +56 -11
- package/dist/apis/submission.d.cts +4 -4
- package/dist/apis/submission.d.ts +4 -4
- package/dist/apis/submission.js +52 -7
- package/dist/apis/targeting.cjs +276 -11
- package/dist/apis/targeting.d.cts +4 -4
- package/dist/apis/targeting.d.ts +4 -4
- package/dist/apis/targeting.js +272 -7
- package/dist/apis/template-variables.cjs +160 -11
- package/dist/apis/template-variables.d.cts +4 -4
- package/dist/apis/template-variables.d.ts +4 -4
- package/dist/apis/template-variables.js +156 -7
- package/dist/apis/user.cjs +489 -11
- package/dist/apis/user.d.cts +4 -4
- package/dist/apis/user.d.ts +4 -4
- package/dist/apis/user.js +485 -7
- package/dist/apis/validation-rules.cjs +121 -11
- package/dist/apis/validation-rules.d.cts +4 -4
- package/dist/apis/validation-rules.d.ts +4 -4
- package/dist/apis/validation-rules.js +117 -7
- package/dist/apis/webhooks.cjs +253 -11
- package/dist/apis/webhooks.d.cts +4 -4
- package/dist/apis/webhooks.d.ts +4 -4
- package/dist/apis/webhooks.js +249 -7
- package/dist/apis/workflow-definition.cjs +343 -11
- package/dist/apis/workflow-definition.d.cts +4 -4
- package/dist/apis/workflow-definition.d.ts +4 -4
- package/dist/apis/workflow-definition.js +339 -7
- package/dist/apis/workflow.cjs +403 -11
- package/dist/apis/workflow.d.cts +4 -4
- package/dist/apis/workflow.d.ts +4 -4
- package/dist/apis/workflow.js +399 -7
- package/dist/{chunk-YYLPAGF4.cjs → chunk-D7ICL3AM.cjs} +20 -9
- package/dist/{chunk-UCDXDIUX.js → chunk-DGCGLG7G.js} +18 -7
- package/dist/index.cjs +68 -220
- package/dist/index.d.cts +67 -69
- package/dist/index.d.ts +67 -69
- package/dist/index.js +66 -218
- package/dist/{types-C5cGIwtq.d.cts → types-BwBvJkY_.d.cts} +12 -6
- package/dist/{types-C5cGIwtq.d.ts → types-BwBvJkY_.d.ts} +12 -6
- package/package.json +3 -7
- package/dist/access-token-MYDOBCIY.cjs +0 -89
- package/dist/access-token-Y5JR7PRG.js +0 -89
- package/dist/address-3RQRG3MK.js +0 -84
- package/dist/address-LQUTDOUA.cjs +0 -84
- package/dist/address-suggestions-PEKSA7B2.cjs +0 -132
- package/dist/address-suggestions-QNK5JWNH.js +0 -132
- package/dist/ai-agents-MO4PK2RJ.cjs +0 -215
- package/dist/ai-agents-OHP2F243.js +0 -215
- package/dist/apis/discussion.cjs +0 -33
- package/dist/apis/discussion.d.cts +0 -18
- package/dist/apis/discussion.d.ts +0 -18
- package/dist/apis/discussion.js +0 -33
- package/dist/app-UUTBO3WJ.js +0 -573
- package/dist/app-XJGY6SHO.cjs +0 -573
- package/dist/audit-logs-4IJYIOXF.js +0 -55
- package/dist/audit-logs-UWLCPBB4.cjs +0 -55
- package/dist/automation-4UQADTDO.cjs +0 -282
- package/dist/automation-PVXTQLZX.js +0 -282
- package/dist/billing-FI4V4UX5.cjs +0 -175
- package/dist/billing-OMWNJHGW.js +0 -175
- package/dist/blueprint-manifest-CPQAL76N.cjs +0 -504
- package/dist/blueprint-manifest-FIMGDHSH.js +0 -504
- package/dist/chunk-3RG5ZIWI.js +0 -10
- package/dist/chunk-OBGZSXTJ.cjs +0 -10
- package/dist/consent-NHDCDJMK.js +0 -84
- package/dist/consent-R5GU3WCK.cjs +0 -84
- package/dist/customer-portal-6AV2W43T.cjs +0 -2252
- package/dist/customer-portal-EY57GJYV.js +0 -2252
- package/dist/data-management-ILQUYNTN.cjs +0 -240
- package/dist/data-management-QMXOLOEG.js +0 -240
- package/dist/deduplication-IVXANO7S.cjs +0 -42
- package/dist/deduplication-WN45DVK3.js +0 -42
- package/dist/design-ONRLY6XI.cjs +0 -219
- package/dist/design-UHMRO3PG.js +0 -219
- package/dist/discussion-4CZIG3ZM.cjs +0 -134
- package/dist/discussion-VWMWL2AF.js +0 -134
- package/dist/discussion.d-DQucoYl_.d.cts +0 -579
- package/dist/discussion.d-DQucoYl_.d.ts +0 -579
- package/dist/document-CN3JNXFF.js +0 -78
- package/dist/document-PCKNZA4K.cjs +0 -78
- package/dist/email-settings-ANURQMKZ.js +0 -533
- package/dist/email-settings-YE2XB2ZU.cjs +0 -533
- package/dist/email-template-4QI4YS4J.js +0 -122
- package/dist/email-template-BUJBC6HH.cjs +0 -122
- package/dist/entity-BCFE3UJT.cjs +0 -1600
- package/dist/entity-VEXNQC4Y.js +0 -1600
- package/dist/entity-mapping-PHRLSYP7.cjs +0 -215
- package/dist/entity-mapping-QK7MGNAW.js +0 -215
- package/dist/environments-266S44UM.cjs +0 -71
- package/dist/environments-AV7W6SLT.js +0 -71
- package/dist/erp-integration-5WNBCGWS.cjs +0 -586
- package/dist/erp-integration-EMI5WIWA.js +0 -586
- package/dist/event-catalog-DBWYKQ6J.cjs +0 -130
- package/dist/event-catalog-KKMXV5LB.js +0 -130
- package/dist/file-3ZLMS6TL.js +0 -573
- package/dist/file-Q66N5XMG.cjs +0 -573
- package/dist/iban-HSXVSIFW.cjs +0 -43
- package/dist/iban-Q27INTOC.js +0 -43
- package/dist/journey-DGKXVWZQ.js +0 -270
- package/dist/journey-T2Y72EBS.cjs +0 -270
- package/dist/kanban-A4B6RCJ2.cjs +0 -164
- package/dist/kanban-PP6WJVT2.js +0 -164
- package/dist/message-D6JY4GJH.cjs +0 -673
- package/dist/message-HFX2DDCV.js +0 -673
- package/dist/metering-63MJFCS2.cjs +0 -399
- package/dist/metering-F63PNFCZ.js +0 -399
- package/dist/notes-FTL5H4JE.cjs +0 -219
- package/dist/notes-GMWTQCMB.js +0 -219
- package/dist/notification-WXFSOORN.cjs +0 -237
- package/dist/notification-XHG3TIBW.js +0 -237
- package/dist/organization-CPXTUDJO.js +0 -118
- package/dist/organization-XIFV7MWP.cjs +0 -118
- package/dist/partner-directory-4WCHPJRO.js +0 -282
- package/dist/partner-directory-FKWPPO7F.cjs +0 -282
- package/dist/permissions-5E36GPG3.js +0 -178
- package/dist/permissions-PBTK5CCD.cjs +0 -178
- package/dist/pricing-FDWEBIQU.js +0 -439
- package/dist/pricing-FZQKL4DW.cjs +0 -439
- package/dist/pricing-tier-34O624R4.js +0 -36
- package/dist/pricing-tier-F4HE6WIM.cjs +0 -36
- package/dist/purpose-47HJIG2Q.cjs +0 -180
- package/dist/purpose-MX33NU5H.js +0 -180
- package/dist/sandbox-7QNLGFN2.cjs +0 -100
- package/dist/sandbox-TZCXHBJN.js +0 -100
- package/dist/submission-6LSPBI27.js +0 -55
- package/dist/submission-DBQNDJ4B.cjs +0 -55
- package/dist/targeting-HZRCLNIF.cjs +0 -275
- package/dist/targeting-MTQ6JBCY.js +0 -275
- package/dist/template-variables-S6IXK7SF.js +0 -159
- package/dist/template-variables-VPNIMC7L.cjs +0 -159
- package/dist/user-BHH4DAA5.cjs +0 -488
- package/dist/user-KBXFVRPI.js +0 -488
- package/dist/validation-rules-4V7KAWGW.cjs +0 -120
- package/dist/validation-rules-UGQY4ASY.js +0 -120
- package/dist/webhooks-JR475VD4.js +0 -252
- package/dist/webhooks-X64U3KCB.cjs +0 -252
- package/dist/workflow-7ANPQZDP.cjs +0 -402
- package/dist/workflow-DWSAHA5Q.js +0 -402
- package/dist/workflow-definition-2M3JBCUI.cjs +0 -342
- package/dist/workflow-definition-WLPGEU55.js +0 -342
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
<p align="center">
|
|
4
|
+
<a href="https://github.com/epilot-dev/sdk-js/actions?query=workflow%3ACI"><img src="https://github.com/epilot-dev/sdk-js/workflows/CI/badge.svg" alt="CI"></a>
|
|
5
|
+
<a href="https://www.npmjs.com/package/@epilot/sdk"><img src="https://img.shields.io/npm/v/@epilot/sdk.svg" alt="npm version"></a>
|
|
6
|
+
<a href="https://github.com/epilot-dev/sdk-js/blob/main/"><img src="http://img.shields.io/:license-mit-blue.svg" alt="License"></a>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
3
9
|
<p align="center">JavaScript/TypeScript SDK for epilot APIs. Full types, tree-shakeable imports, and lazy-loaded OpenAPI specs.</p>
|
|
4
10
|
|
|
5
11
|
## Install
|
|
@@ -27,6 +33,60 @@ const { data: executions } = await epilot.workflow.getExecutions()
|
|
|
27
33
|
|
|
28
34
|
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
35
|
|
|
36
|
+
Full API documentation: [https://docs.epilot.io/api](https://docs.epilot.io/api)
|
|
37
|
+
|
|
38
|
+
## API Reference
|
|
39
|
+
|
|
40
|
+
<!-- api-reference-table -->
|
|
41
|
+
| API | Import | Docs |
|
|
42
|
+
| --- | ------ | ---- |
|
|
43
|
+
| `epilot.accessToken` | `@epilot/sdk/access-token` | [docs](./docs/access-token.md) |
|
|
44
|
+
| `epilot.address` | `@epilot/sdk/address` | [docs](./docs/address.md) |
|
|
45
|
+
| `epilot.addressSuggestions` | `@epilot/sdk/address-suggestions` | [docs](./docs/address-suggestions.md) |
|
|
46
|
+
| `epilot.aiAgents` | `@epilot/sdk/ai-agents` | [docs](./docs/ai-agents.md) |
|
|
47
|
+
| `epilot.app` | `@epilot/sdk/app` | [docs](./docs/app.md) |
|
|
48
|
+
| `epilot.auditLogs` | `@epilot/sdk/audit-logs` | [docs](./docs/audit-logs.md) |
|
|
49
|
+
| `epilot.automation` | `@epilot/sdk/automation` | [docs](./docs/automation.md) |
|
|
50
|
+
| `epilot.billing` | `@epilot/sdk/billing` | [docs](./docs/billing.md) |
|
|
51
|
+
| `epilot.blueprintManifest` | `@epilot/sdk/blueprint-manifest` | [docs](./docs/blueprint-manifest.md) |
|
|
52
|
+
| `epilot.consent` | `@epilot/sdk/consent` | [docs](./docs/consent.md) |
|
|
53
|
+
| `epilot.customerPortal` | `@epilot/sdk/customer-portal` | [docs](./docs/customer-portal.md) |
|
|
54
|
+
| `epilot.dataManagement` | `@epilot/sdk/data-management` | [docs](./docs/data-management.md) |
|
|
55
|
+
| `epilot.deduplication` | `@epilot/sdk/deduplication` | [docs](./docs/deduplication.md) |
|
|
56
|
+
| `epilot.design` | `@epilot/sdk/design` | [docs](./docs/design.md) |
|
|
57
|
+
| `epilot.document` | `@epilot/sdk/document` | [docs](./docs/document.md) |
|
|
58
|
+
| `epilot.emailSettings` | `@epilot/sdk/email-settings` | [docs](./docs/email-settings.md) |
|
|
59
|
+
| `epilot.emailTemplate` | `@epilot/sdk/email-template` | [docs](./docs/email-template.md) |
|
|
60
|
+
| `epilot.entity` | `@epilot/sdk/entity` | [docs](./docs/entity.md) |
|
|
61
|
+
| `epilot.entityMapping` | `@epilot/sdk/entity-mapping` | [docs](./docs/entity-mapping.md) |
|
|
62
|
+
| `epilot.environments` | `@epilot/sdk/environments` | [docs](./docs/environments.md) |
|
|
63
|
+
| `epilot.erpIntegration` | `@epilot/sdk/erp-integration` | [docs](./docs/erp-integration.md) |
|
|
64
|
+
| `epilot.eventCatalog` | `@epilot/sdk/event-catalog` | [docs](./docs/event-catalog.md) |
|
|
65
|
+
| `epilot.file` | `@epilot/sdk/file` | [docs](./docs/file.md) |
|
|
66
|
+
| `epilot.iban` | `@epilot/sdk/iban` | [docs](./docs/iban.md) |
|
|
67
|
+
| `epilot.journey` | `@epilot/sdk/journey` | [docs](./docs/journey.md) |
|
|
68
|
+
| `epilot.kanban` | `@epilot/sdk/kanban` | [docs](./docs/kanban.md) |
|
|
69
|
+
| `epilot.message` | `@epilot/sdk/message` | [docs](./docs/message.md) |
|
|
70
|
+
| `epilot.metering` | `@epilot/sdk/metering` | [docs](./docs/metering.md) |
|
|
71
|
+
| `epilot.notes` | `@epilot/sdk/notes` | [docs](./docs/notes.md) |
|
|
72
|
+
| `epilot.notification` | `@epilot/sdk/notification` | [docs](./docs/notification.md) |
|
|
73
|
+
| `epilot.organization` | `@epilot/sdk/organization` | [docs](./docs/organization.md) |
|
|
74
|
+
| `epilot.partnerDirectory` | `@epilot/sdk/partner-directory` | [docs](./docs/partner-directory.md) |
|
|
75
|
+
| `epilot.permissions` | `@epilot/sdk/permissions` | [docs](./docs/permissions.md) |
|
|
76
|
+
| `epilot.pricing` | `@epilot/sdk/pricing` | [docs](./docs/pricing.md) |
|
|
77
|
+
| `epilot.pricingTier` | `@epilot/sdk/pricing-tier` | [docs](./docs/pricing-tier.md) |
|
|
78
|
+
| `epilot.purpose` | `@epilot/sdk/purpose` | [docs](./docs/purpose.md) |
|
|
79
|
+
| `epilot.sandbox` | `@epilot/sdk/sandbox` | [docs](./docs/sandbox.md) |
|
|
80
|
+
| `epilot.submission` | `@epilot/sdk/submission` | [docs](./docs/submission.md) |
|
|
81
|
+
| `epilot.targeting` | `@epilot/sdk/targeting` | [docs](./docs/targeting.md) |
|
|
82
|
+
| `epilot.templateVariables` | `@epilot/sdk/template-variables` | [docs](./docs/template-variables.md) |
|
|
83
|
+
| `epilot.user` | `@epilot/sdk/user` | [docs](./docs/user.md) |
|
|
84
|
+
| `epilot.validationRules` | `@epilot/sdk/validation-rules` | [docs](./docs/validation-rules.md) |
|
|
85
|
+
| `epilot.webhooks` | `@epilot/sdk/webhooks` | [docs](./docs/webhooks.md) |
|
|
86
|
+
| `epilot.workflow` | `@epilot/sdk/workflow` | [docs](./docs/workflow.md) |
|
|
87
|
+
| `epilot.workflowDefinition` | `@epilot/sdk/workflow-definition` | [docs](./docs/workflow-definition.md) |
|
|
88
|
+
<!-- /api-reference-table -->
|
|
89
|
+
|
|
30
90
|
## Explicit Client Access
|
|
31
91
|
|
|
32
92
|
```ts
|
|
@@ -35,11 +95,11 @@ import { epilot } from '@epilot/sdk'
|
|
|
35
95
|
epilot.authorize(() => '<my-token>')
|
|
36
96
|
|
|
37
97
|
// Get the cached singleton client
|
|
38
|
-
const entityClient =
|
|
98
|
+
const entityClient = epilot.entity.getClient()
|
|
39
99
|
const { data } = await entityClient.getEntity({ slug: 'contact', id: '123' })
|
|
40
100
|
|
|
41
101
|
// Create a fresh (non-singleton) client instance
|
|
42
|
-
const freshClient =
|
|
102
|
+
const freshClient = epilot.entity.createClient()
|
|
43
103
|
authorize(freshClient, () => '<my-token>')
|
|
44
104
|
```
|
|
45
105
|
|
|
@@ -50,7 +110,7 @@ Import only what you need. Other APIs never touch your bundle.
|
|
|
50
110
|
```ts
|
|
51
111
|
import { getClient, authorize } from '@epilot/sdk/entity'
|
|
52
112
|
|
|
53
|
-
const entityClient =
|
|
113
|
+
const entityClient = getClient()
|
|
54
114
|
authorize(entityClient, () => '<my-token>')
|
|
55
115
|
|
|
56
116
|
const { data } = await entityClient.getEntity({ slug: 'contact', id: '123' })
|
|
@@ -75,7 +135,7 @@ The `Client`, `OperationMethods`, and `PathsDictionary` types are also available
|
|
|
75
135
|
```ts
|
|
76
136
|
import type { Client } from '@epilot/sdk/entity'
|
|
77
137
|
|
|
78
|
-
const entityClient: Client =
|
|
138
|
+
const entityClient: Client = epilot.entity.getClient()
|
|
79
139
|
```
|
|
80
140
|
|
|
81
141
|
## Headers
|
|
@@ -101,7 +161,7 @@ const { data } = await epilot.entity.searchEntities(...)
|
|
|
101
161
|
Use standard axios `defaults.headers.common` on individual clients:
|
|
102
162
|
|
|
103
163
|
```ts
|
|
104
|
-
const entityClient =
|
|
164
|
+
const entityClient = epilot.entity.getClient()
|
|
105
165
|
entityClient.defaults.headers.common['x-epilot-org-id'] = 'org-123'
|
|
106
166
|
```
|
|
107
167
|
|
|
@@ -114,7 +174,7 @@ import { authorize } from '@epilot/sdk'
|
|
|
114
174
|
import { getClient } from '@epilot/sdk/entity'
|
|
115
175
|
|
|
116
176
|
// Per-client — function predicate (recommended)
|
|
117
|
-
const entityClient =
|
|
177
|
+
const entityClient = getClient()
|
|
118
178
|
authorize(entityClient, () => '<my-token>')
|
|
119
179
|
|
|
120
180
|
// Per-client — async function (e.g. OAuth / session)
|
|
@@ -135,20 +195,55 @@ epilot.authorize(async () => await getTokenFromSession())
|
|
|
135
195
|
epilot.authorize('my-static-api-token')
|
|
136
196
|
```
|
|
137
197
|
|
|
138
|
-
|
|
198
|
+
## Fresh Client Instance
|
|
199
|
+
|
|
200
|
+
```ts
|
|
201
|
+
import { createClient, authorize } from '@epilot/sdk/entity'
|
|
202
|
+
|
|
203
|
+
const entityClient = createClient()
|
|
204
|
+
authorize(entityClient, () => '<my-token>')
|
|
205
|
+
entityClient.defaults.headers.common['x-epilot-org-id'] = 'org-123'
|
|
206
|
+
```
|
|
139
207
|
|
|
140
|
-
|
|
208
|
+
## Multiple SDK Instances
|
|
141
209
|
|
|
142
210
|
```ts
|
|
143
|
-
import {
|
|
211
|
+
import { createSDK } from '@epilot/sdk'
|
|
212
|
+
|
|
213
|
+
const sdk1 = createSDK()
|
|
214
|
+
sdk1.authorize(() => '<token-for-org-1>')
|
|
215
|
+
sdk1.headers({ 'x-epilot-org-id': 'org-1' })
|
|
144
216
|
|
|
217
|
+
const sdk2 = createSDK()
|
|
218
|
+
sdk2.authorize(() => '<token-for-org-2>')
|
|
219
|
+
sdk2.headers({ 'x-epilot-org-id': 'org-2' })
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
## Interceptors
|
|
224
|
+
|
|
225
|
+
Use axios interceptors for custom request/response processing. Since clients are axios instances, you can use `client.interceptors` directly:
|
|
226
|
+
|
|
227
|
+
```ts
|
|
228
|
+
entityClient.interceptors.response.use((response) => {
|
|
229
|
+
console.debug(`${response.config.method?.toUpperCase()} ${response.config.url}`, {
|
|
230
|
+
status: response.status,
|
|
231
|
+
data: response.data,
|
|
232
|
+
})
|
|
233
|
+
return response
|
|
234
|
+
})
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
Or register global interceptors applied to all clients:
|
|
238
|
+
|
|
239
|
+
```ts
|
|
145
240
|
epilot.interceptors.request((config) => {
|
|
146
241
|
config.headers['x-correlation-id'] = generateTraceId()
|
|
147
242
|
return config
|
|
148
243
|
})
|
|
149
244
|
```
|
|
150
245
|
|
|
151
|
-
|
|
246
|
+
## Auto-Retry (429 Too Many Requests)
|
|
152
247
|
|
|
153
248
|
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
249
|
|
|
@@ -175,12 +270,12 @@ For individually imported clients (tree-shakeable imports), apply the intercepto
|
|
|
175
270
|
import { getClient, authorize } from '@epilot/sdk/entity'
|
|
176
271
|
import { applyRetryInterceptor } from '@epilot/sdk'
|
|
177
272
|
|
|
178
|
-
const entityClient =
|
|
273
|
+
const entityClient = getClient()
|
|
179
274
|
authorize(entityClient, () => '<my-token>')
|
|
180
275
|
applyRetryInterceptor({ client: entityClient, config: { maxRetries: 3 } })
|
|
181
276
|
```
|
|
182
277
|
|
|
183
|
-
|
|
278
|
+
## Large Response Handling (413 Payload Too Large)
|
|
184
279
|
|
|
185
280
|
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
281
|
|
|
@@ -199,51 +294,11 @@ For individually imported clients (tree-shakeable imports), apply the intercepto
|
|
|
199
294
|
import { getClient, authorize } from '@epilot/sdk/entity'
|
|
200
295
|
import { applyLargeResponseInterceptor } from '@epilot/sdk'
|
|
201
296
|
|
|
202
|
-
const entityClient =
|
|
297
|
+
const entityClient = getClient()
|
|
203
298
|
authorize(entityClient, () => '<my-token>')
|
|
204
299
|
applyLargeResponseInterceptor({ client: entityClient, config: { enabled: true } })
|
|
205
300
|
```
|
|
206
301
|
|
|
207
|
-
### Backend Internal Calls (Pass Headers)
|
|
208
|
-
|
|
209
|
-
```ts
|
|
210
|
-
import { epilot } from '@epilot/sdk'
|
|
211
|
-
|
|
212
|
-
const setupInternalClient = (incomingHeaders: Record<string, string>) => {
|
|
213
|
-
epilot.authorize(() => incomingHeaders.authorization.replace('Bearer ', ''))
|
|
214
|
-
|
|
215
|
-
epilot.headers({
|
|
216
|
-
'x-ivy-org-id': incomingHeaders['x-ivy-org-id'],
|
|
217
|
-
'x-epilot-org-id': incomingHeaders['x-epilot-org-id'],
|
|
218
|
-
'x-epilot-user-id': incomingHeaders['x-epilot-user-id'],
|
|
219
|
-
})
|
|
220
|
-
}
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
## Fresh Client Instance
|
|
224
|
-
|
|
225
|
-
```ts
|
|
226
|
-
import { createClient, authorize } from '@epilot/sdk/entity'
|
|
227
|
-
|
|
228
|
-
const entityClient = await createClient()
|
|
229
|
-
authorize(entityClient, () => '<my-token>')
|
|
230
|
-
entityClient.defaults.headers.common['x-epilot-org-id'] = 'org-123'
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
## Multiple SDK Instances
|
|
234
|
-
|
|
235
|
-
```ts
|
|
236
|
-
import { createSDK } from '@epilot/sdk'
|
|
237
|
-
|
|
238
|
-
const sdk1 = createSDK()
|
|
239
|
-
sdk1.authorize(() => '<token-for-org-1>')
|
|
240
|
-
sdk1.headers({ 'x-epilot-org-id': 'org-1' })
|
|
241
|
-
|
|
242
|
-
const sdk2 = createSDK()
|
|
243
|
-
sdk2.authorize(() => '<token-for-org-2>')
|
|
244
|
-
sdk2.headers({ 'x-epilot-org-id': 'org-2' })
|
|
245
|
-
```
|
|
246
|
-
|
|
247
302
|
## Overrides & Custom APIs
|
|
248
303
|
|
|
249
304
|
Override built-in API specs or register custom APIs via `.epilot/sdk-overrides.json`. This is useful for testing new versions of an API spec or getting the latest types without waiting for an SDK release.
|
|
@@ -251,7 +306,6 @@ Override built-in API specs or register custom APIs via `.epilot/sdk-overrides.j
|
|
|
251
306
|
```json
|
|
252
307
|
{
|
|
253
308
|
"entity": "./specs/entity-openapi.json",
|
|
254
|
-
"pricing": "https://my-dev-server.com/openapi.json",
|
|
255
309
|
"myNewApi": "./specs/my-new-api-openapi.json"
|
|
256
310
|
}
|
|
257
311
|
```
|
|
@@ -274,113 +328,41 @@ npx epilot-sdk override entity ./my-local-entity-spec.yaml
|
|
|
274
328
|
npx epilot-sdk typegen
|
|
275
329
|
```
|
|
276
330
|
|
|
277
|
-
|
|
331
|
+
<details>
|
|
332
|
+
<summary>Migration from <code>@epilot/*-client</code></summary>
|
|
278
333
|
|
|
279
|
-
|
|
334
|
+
Drop-in replacement — just change the import path:
|
|
280
335
|
|
|
281
336
|
```ts
|
|
282
337
|
// Before
|
|
283
|
-
import { getClient } from '@epilot/entity-client'
|
|
284
|
-
|
|
338
|
+
import { getClient, createClient, authorize } from '@epilot/entity-client'
|
|
339
|
+
import type { Client, Entity } from '@epilot/entity-client'
|
|
285
340
|
|
|
286
341
|
// After
|
|
287
|
-
import { getClient } from '@epilot/sdk/entity'
|
|
288
|
-
|
|
342
|
+
import { getClient, createClient, authorize } from '@epilot/sdk/entity'
|
|
343
|
+
import type { Client, Entity } from '@epilot/sdk/entity'
|
|
289
344
|
```
|
|
290
345
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
```ts
|
|
294
|
-
// Before
|
|
295
|
-
import { createClient } from '@epilot/entity-client'
|
|
296
|
-
const entityClient = createClient()
|
|
297
|
-
|
|
298
|
-
// After
|
|
299
|
-
import { createClient } from '@epilot/sdk/entity'
|
|
300
|
-
const entityClient = await createClient()
|
|
301
|
-
```
|
|
346
|
+
</details>
|
|
302
347
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
```ts
|
|
306
|
-
// Before
|
|
307
|
-
import type { Client, Components } from '@epilot/entity-client'
|
|
308
|
-
|
|
309
|
-
// After (Client, OperationMethods, PathsDictionary are re-exported)
|
|
310
|
-
import type { Client } from '@epilot/sdk/entity'
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
## Client LifecycleV
|
|
348
|
+
<details>
|
|
349
|
+
<summary>Client Lifecycle</summary>
|
|
314
350
|
|
|
315
351
|
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
352
|
|
|
317
|
-
**
|
|
353
|
+
**Operation methods 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
354
|
|
|
319
355
|
**Direct `getClient()` references can go stale** — if you hold a reference and then change config, your reference still points to the old client:
|
|
320
356
|
|
|
321
357
|
```ts
|
|
322
|
-
const
|
|
358
|
+
const entityClient = epilot.entity.getClient()
|
|
323
359
|
|
|
324
360
|
epilot.authorize('new-token') // invalidates all cached clients
|
|
325
361
|
|
|
326
|
-
//
|
|
362
|
+
// entityClient still has the old token
|
|
327
363
|
// epilot.entity.getEntity(...) will use a new client with the new token
|
|
328
364
|
```
|
|
329
365
|
|
|
330
|
-
If you need a long-lived reference that survives config changes, call `getClient()` again after changing config
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
## API Reference
|
|
334
|
-
|
|
335
|
-
Full API documentation: [https://docs.epilot.io/api](https://docs.epilot.io/api)
|
|
336
|
-
|
|
337
|
-
## Available APIs
|
|
366
|
+
If you need a long-lived reference that survives config changes, call `getClient()` again after changing config, or use operation methods directly.
|
|
338
367
|
|
|
339
|
-
|
|
340
|
-
| --- | ------ | ---- |
|
|
341
|
-
| `epilot.accessToken` | `@epilot/sdk/access-token` | [docs](./docs/access-token.md) |
|
|
342
|
-
| `epilot.address` | `@epilot/sdk/address` | [docs](./docs/address.md) |
|
|
343
|
-
| `epilot.addressSuggestions` | `@epilot/sdk/address-suggestions` | [docs](./docs/address-suggestions.md) |
|
|
344
|
-
| `epilot.aiAgents` | `@epilot/sdk/ai-agents` | [docs](./docs/ai-agents.md) |
|
|
345
|
-
| `epilot.app` | `@epilot/sdk/app` | [docs](./docs/app.md) |
|
|
346
|
-
| `epilot.auditLogs` | `@epilot/sdk/audit-logs` | [docs](./docs/audit-logs.md) |
|
|
347
|
-
| `epilot.automation` | `@epilot/sdk/automation` | [docs](./docs/automation.md) |
|
|
348
|
-
| `epilot.billing` | `@epilot/sdk/billing` | [docs](./docs/billing.md) |
|
|
349
|
-
| `epilot.blueprintManifest` | `@epilot/sdk/blueprint-manifest` | [docs](./docs/blueprint-manifest.md) |
|
|
350
|
-
| `epilot.consent` | `@epilot/sdk/consent` | [docs](./docs/consent.md) |
|
|
351
|
-
| `epilot.customerPortal` | `@epilot/sdk/customer-portal` | [docs](./docs/customer-portal.md) |
|
|
352
|
-
| `epilot.dataManagement` | `@epilot/sdk/data-management` | [docs](./docs/data-management.md) |
|
|
353
|
-
| `epilot.deduplication` | `@epilot/sdk/deduplication` | [docs](./docs/deduplication.md) |
|
|
354
|
-
| `epilot.design` | `@epilot/sdk/design` | [docs](./docs/design.md) |
|
|
355
|
-
| `epilot.discussion` | `@epilot/sdk/discussion` | [docs](./docs/discussion.md) |
|
|
356
|
-
| `epilot.document` | `@epilot/sdk/document` | [docs](./docs/document.md) |
|
|
357
|
-
| `epilot.emailSettings` | `@epilot/sdk/email-settings` | [docs](./docs/email-settings.md) |
|
|
358
|
-
| `epilot.emailTemplate` | `@epilot/sdk/email-template` | [docs](./docs/email-template.md) |
|
|
359
|
-
| `epilot.entity` | `@epilot/sdk/entity` | [docs](./docs/entity.md) |
|
|
360
|
-
| `epilot.entityMapping` | `@epilot/sdk/entity-mapping` | [docs](./docs/entity-mapping.md) |
|
|
361
|
-
| `epilot.environments` | `@epilot/sdk/environments` | [docs](./docs/environments.md) |
|
|
362
|
-
| `epilot.erpIntegration` | `@epilot/sdk/erp-integration` | [docs](./docs/erp-integration.md) |
|
|
363
|
-
| `epilot.eventCatalog` | `@epilot/sdk/event-catalog` | [docs](./docs/event-catalog.md) |
|
|
364
|
-
| `epilot.file` | `@epilot/sdk/file` | [docs](./docs/file.md) |
|
|
365
|
-
| `epilot.iban` | `@epilot/sdk/iban` | [docs](./docs/iban.md) |
|
|
366
|
-
| `epilot.journey` | `@epilot/sdk/journey` | [docs](./docs/journey.md) |
|
|
367
|
-
| `epilot.kanban` | `@epilot/sdk/kanban` | [docs](./docs/kanban.md) |
|
|
368
|
-
| `epilot.message` | `@epilot/sdk/message` | [docs](./docs/message.md) |
|
|
369
|
-
| `epilot.metering` | `@epilot/sdk/metering` | [docs](./docs/metering.md) |
|
|
370
|
-
| `epilot.notes` | `@epilot/sdk/notes` | [docs](./docs/notes.md) |
|
|
371
|
-
| `epilot.notification` | `@epilot/sdk/notification` | [docs](./docs/notification.md) |
|
|
372
|
-
| `epilot.organization` | `@epilot/sdk/organization` | [docs](./docs/organization.md) |
|
|
373
|
-
| `epilot.partnerDirectory` | `@epilot/sdk/partner-directory` | [docs](./docs/partner-directory.md) |
|
|
374
|
-
| `epilot.permissions` | `@epilot/sdk/permissions` | [docs](./docs/permissions.md) |
|
|
375
|
-
| `epilot.pricing` | `@epilot/sdk/pricing` | [docs](./docs/pricing.md) |
|
|
376
|
-
| `epilot.pricingTier` | `@epilot/sdk/pricing-tier` | [docs](./docs/pricing-tier.md) |
|
|
377
|
-
| `epilot.purpose` | `@epilot/sdk/purpose` | [docs](./docs/purpose.md) |
|
|
378
|
-
| `epilot.sandbox` | `@epilot/sdk/sandbox` | [docs](./docs/sandbox.md) |
|
|
379
|
-
| `epilot.submission` | `@epilot/sdk/submission` | [docs](./docs/submission.md) |
|
|
380
|
-
| `epilot.targeting` | `@epilot/sdk/targeting` | [docs](./docs/targeting.md) |
|
|
381
|
-
| `epilot.templateVariables` | `@epilot/sdk/template-variables` | [docs](./docs/template-variables.md) |
|
|
382
|
-
| `epilot.user` | `@epilot/sdk/user` | [docs](./docs/user.md) |
|
|
383
|
-
| `epilot.validationRules` | `@epilot/sdk/validation-rules` | [docs](./docs/validation-rules.md) |
|
|
384
|
-
| `epilot.webhooks` | `@epilot/sdk/webhooks` | [docs](./docs/webhooks.md) |
|
|
385
|
-
| `epilot.workflow` | `@epilot/sdk/workflow` | [docs](./docs/workflow.md) |
|
|
386
|
-
| `epilot.workflowDefinition` | `@epilot/sdk/workflow-definition` | [docs](./docs/workflow-definition.md) |
|
|
368
|
+
</details>
|
|
@@ -1,26 +1,105 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
require('../chunk-
|
|
5
|
+
|
|
6
|
+
var _chunkD7ICL3AMcjs = require('../chunk-D7ICL3AM.cjs');
|
|
7
|
+
|
|
8
|
+
// src/definitions/access-token.json
|
|
9
|
+
var require_access_token = _chunkD7ICL3AMcjs.__commonJS.call(void 0, {
|
|
10
|
+
"src/definitions/access-token.json"(exports, module) {
|
|
11
|
+
module.exports = {
|
|
12
|
+
openapi: "3.0.3",
|
|
13
|
+
info: {
|
|
14
|
+
title: "",
|
|
15
|
+
version: ""
|
|
16
|
+
},
|
|
17
|
+
paths: {
|
|
18
|
+
"/v1/access-tokens": {
|
|
19
|
+
post: {
|
|
20
|
+
operationId: "createAccessToken",
|
|
21
|
+
requestBody: {
|
|
22
|
+
content: {
|
|
23
|
+
"application/json": {}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
responses: {}
|
|
27
|
+
},
|
|
28
|
+
get: {
|
|
29
|
+
operationId: "listAccessTokens",
|
|
30
|
+
parameters: [
|
|
31
|
+
{
|
|
32
|
+
in: "query",
|
|
33
|
+
name: "token_type"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
responses: {}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"/v1/access-tokens/{id}": {
|
|
40
|
+
delete: {
|
|
41
|
+
operationId: "revokeAccessToken",
|
|
42
|
+
parameters: [
|
|
43
|
+
{
|
|
44
|
+
name: "id",
|
|
45
|
+
in: "path",
|
|
46
|
+
required: true
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
responses: {}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"/v1/access-tokens/.well-known/jwks.json": {
|
|
53
|
+
get: {
|
|
54
|
+
operationId: "getAccessTokenJwks",
|
|
55
|
+
responses: {}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"/v1/access-tokens/.well-known/openid-configuration": {
|
|
59
|
+
get: {
|
|
60
|
+
operationId: "getAccessTokenOIDC",
|
|
61
|
+
responses: {}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"/v1/access-tokens/public/.well-known/jwks.json": {
|
|
65
|
+
get: {
|
|
66
|
+
operationId: "getPublicTokenJwks",
|
|
67
|
+
responses: {}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"/v1/access-tokens/public/.well-known/openid-configuration": {
|
|
71
|
+
get: {
|
|
72
|
+
operationId: "getPublicTokenOIDC",
|
|
73
|
+
responses: {}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
components: {},
|
|
78
|
+
servers: [
|
|
79
|
+
{
|
|
80
|
+
url: "https://access-token.sls.epilot.io"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
});
|
|
7
86
|
|
|
8
87
|
// src/apis/access-token.ts
|
|
9
|
-
var loadDefinition =
|
|
10
|
-
const mod =
|
|
88
|
+
var loadDefinition = () => {
|
|
89
|
+
const mod = require_access_token();
|
|
11
90
|
return _nullishCoalesce(mod.default, () => ( mod));
|
|
12
91
|
};
|
|
13
92
|
var _instance = null;
|
|
14
|
-
var resolve =
|
|
93
|
+
var resolve = () => {
|
|
15
94
|
if (!_instance) {
|
|
16
|
-
const definition =
|
|
17
|
-
_instance =
|
|
95
|
+
const definition = loadDefinition();
|
|
96
|
+
_instance = _chunkD7ICL3AMcjs.createApiClient.call(void 0, { definition });
|
|
18
97
|
}
|
|
19
98
|
return _instance;
|
|
20
99
|
};
|
|
21
|
-
var _handle =
|
|
100
|
+
var _handle = _chunkD7ICL3AMcjs.createApiHandle.call(void 0, {
|
|
22
101
|
resolveClient: resolve,
|
|
23
|
-
loadDefinition
|
|
102
|
+
createClient: () => _chunkD7ICL3AMcjs.createApiClient.call(void 0, { definition: loadDefinition() })
|
|
24
103
|
});
|
|
25
104
|
var getClient = _handle.getClient;
|
|
26
105
|
var createClient = _handle.createClient;
|
|
@@ -30,4 +109,4 @@ var accessToken = _handle;
|
|
|
30
109
|
|
|
31
110
|
|
|
32
111
|
|
|
33
|
-
exports.accessToken = accessToken; exports.authorize =
|
|
112
|
+
exports.accessToken = accessToken; exports.authorize = _chunkD7ICL3AMcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as ApiHandle } from '../types-
|
|
2
|
-
export { T as TokenArg, a as authorize } from '../types-
|
|
1
|
+
import { A as ApiHandle } from '../types-BwBvJkY_.cjs';
|
|
2
|
+
export { T as TokenArg, a as authorize } from '../types-BwBvJkY_.cjs';
|
|
3
3
|
import { C as Client } from '../access-token.d-BuXO-21p.cjs';
|
|
4
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
|
|
|
8
8
|
/** Get the cached singleton client (lazy-initialized on first call) */
|
|
9
|
-
declare const getClient: () =>
|
|
9
|
+
declare const getClient: () => Client;
|
|
10
10
|
/** Create a fresh client instance (not cached) */
|
|
11
|
-
declare const createClient: () =>
|
|
11
|
+
declare const createClient: () => Client;
|
|
12
12
|
/**
|
|
13
13
|
* API handle — also exposes operations directly:
|
|
14
14
|
* `accessToken.someOperation(...)` calls forwarded to lazy singleton
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as ApiHandle } from '../types-
|
|
2
|
-
export { T as TokenArg, a as authorize } from '../types-
|
|
1
|
+
import { A as ApiHandle } from '../types-BwBvJkY_.js';
|
|
2
|
+
export { T as TokenArg, a as authorize } from '../types-BwBvJkY_.js';
|
|
3
3
|
import { C as Client } from '../access-token.d-BuXO-21p.js';
|
|
4
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
|
|
|
8
8
|
/** Get the cached singleton client (lazy-initialized on first call) */
|
|
9
|
-
declare const getClient: () =>
|
|
9
|
+
declare const getClient: () => Client;
|
|
10
10
|
/** Create a fresh client instance (not cached) */
|
|
11
|
-
declare const createClient: () =>
|
|
11
|
+
declare const createClient: () => Client;
|
|
12
12
|
/**
|
|
13
13
|
* API handle — also exposes operations directly:
|
|
14
14
|
* `accessToken.someOperation(...)` calls forwarded to lazy singleton
|
|
@@ -1,26 +1,105 @@
|
|
|
1
1
|
import {
|
|
2
|
+
__commonJS,
|
|
2
3
|
authorize,
|
|
3
4
|
createApiClient,
|
|
4
5
|
createApiHandle
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
|
|
6
|
+
} from "../chunk-DGCGLG7G.js";
|
|
7
|
+
|
|
8
|
+
// src/definitions/access-token.json
|
|
9
|
+
var require_access_token = __commonJS({
|
|
10
|
+
"src/definitions/access-token.json"(exports, module) {
|
|
11
|
+
module.exports = {
|
|
12
|
+
openapi: "3.0.3",
|
|
13
|
+
info: {
|
|
14
|
+
title: "",
|
|
15
|
+
version: ""
|
|
16
|
+
},
|
|
17
|
+
paths: {
|
|
18
|
+
"/v1/access-tokens": {
|
|
19
|
+
post: {
|
|
20
|
+
operationId: "createAccessToken",
|
|
21
|
+
requestBody: {
|
|
22
|
+
content: {
|
|
23
|
+
"application/json": {}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
responses: {}
|
|
27
|
+
},
|
|
28
|
+
get: {
|
|
29
|
+
operationId: "listAccessTokens",
|
|
30
|
+
parameters: [
|
|
31
|
+
{
|
|
32
|
+
in: "query",
|
|
33
|
+
name: "token_type"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
responses: {}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"/v1/access-tokens/{id}": {
|
|
40
|
+
delete: {
|
|
41
|
+
operationId: "revokeAccessToken",
|
|
42
|
+
parameters: [
|
|
43
|
+
{
|
|
44
|
+
name: "id",
|
|
45
|
+
in: "path",
|
|
46
|
+
required: true
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
responses: {}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"/v1/access-tokens/.well-known/jwks.json": {
|
|
53
|
+
get: {
|
|
54
|
+
operationId: "getAccessTokenJwks",
|
|
55
|
+
responses: {}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"/v1/access-tokens/.well-known/openid-configuration": {
|
|
59
|
+
get: {
|
|
60
|
+
operationId: "getAccessTokenOIDC",
|
|
61
|
+
responses: {}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"/v1/access-tokens/public/.well-known/jwks.json": {
|
|
65
|
+
get: {
|
|
66
|
+
operationId: "getPublicTokenJwks",
|
|
67
|
+
responses: {}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"/v1/access-tokens/public/.well-known/openid-configuration": {
|
|
71
|
+
get: {
|
|
72
|
+
operationId: "getPublicTokenOIDC",
|
|
73
|
+
responses: {}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
components: {},
|
|
78
|
+
servers: [
|
|
79
|
+
{
|
|
80
|
+
url: "https://access-token.sls.epilot.io"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
});
|
|
7
86
|
|
|
8
87
|
// src/apis/access-token.ts
|
|
9
|
-
var loadDefinition =
|
|
10
|
-
const mod =
|
|
88
|
+
var loadDefinition = () => {
|
|
89
|
+
const mod = require_access_token();
|
|
11
90
|
return mod.default ?? mod;
|
|
12
91
|
};
|
|
13
92
|
var _instance = null;
|
|
14
|
-
var resolve =
|
|
93
|
+
var resolve = () => {
|
|
15
94
|
if (!_instance) {
|
|
16
|
-
const definition =
|
|
95
|
+
const definition = loadDefinition();
|
|
17
96
|
_instance = createApiClient({ definition });
|
|
18
97
|
}
|
|
19
98
|
return _instance;
|
|
20
99
|
};
|
|
21
100
|
var _handle = createApiHandle({
|
|
22
101
|
resolveClient: resolve,
|
|
23
|
-
loadDefinition
|
|
102
|
+
createClient: () => createApiClient({ definition: loadDefinition() })
|
|
24
103
|
});
|
|
25
104
|
var getClient = _handle.getClient;
|
|
26
105
|
var createClient = _handle.createClient;
|