@epilot/sdk 2.0.0-beta.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 +70 -96
- package/dist/apis/access-token.cjs +90 -10
- 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 -6
- package/dist/apis/address-suggestions.cjs +133 -10
- 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 -6
- package/dist/apis/address.cjs +85 -10
- package/dist/apis/address.d.cts +4 -4
- package/dist/apis/address.d.ts +4 -4
- package/dist/apis/address.js +81 -6
- package/dist/apis/ai-agents.cjs +216 -10
- 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 -6
- package/dist/apis/app.cjs +574 -10
- package/dist/apis/app.d.cts +4 -4
- package/dist/apis/app.d.ts +4 -4
- package/dist/apis/app.js +570 -6
- package/dist/apis/audit-logs.cjs +56 -10
- 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 -6
- package/dist/apis/automation.cjs +283 -10
- package/dist/apis/automation.d.cts +4 -4
- package/dist/apis/automation.d.ts +4 -4
- package/dist/apis/automation.js +279 -6
- package/dist/apis/billing.cjs +176 -10
- package/dist/apis/billing.d.cts +4 -4
- package/dist/apis/billing.d.ts +4 -4
- package/dist/apis/billing.js +172 -6
- package/dist/apis/blueprint-manifest.cjs +505 -10
- 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 -6
- package/dist/apis/consent.cjs +85 -10
- package/dist/apis/consent.d.cts +4 -4
- package/dist/apis/consent.d.ts +4 -4
- package/dist/apis/consent.js +81 -6
- package/dist/apis/customer-portal.cjs +2253 -10
- 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 -6
- package/dist/apis/data-management.cjs +241 -10
- 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 -6
- package/dist/apis/deduplication.cjs +43 -10
- package/dist/apis/deduplication.d.cts +4 -4
- package/dist/apis/deduplication.d.ts +4 -4
- package/dist/apis/deduplication.js +39 -6
- package/dist/apis/design.cjs +220 -10
- package/dist/apis/design.d.cts +4 -4
- package/dist/apis/design.d.ts +4 -4
- package/dist/apis/design.js +216 -6
- package/dist/apis/document.cjs +79 -10
- package/dist/apis/document.d.cts +4 -4
- package/dist/apis/document.d.ts +4 -4
- package/dist/apis/document.js +75 -6
- package/dist/apis/email-settings.cjs +534 -10
- 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 -6
- package/dist/apis/email-template.cjs +123 -10
- 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 -6
- package/dist/apis/entity-mapping.cjs +216 -10
- 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 -6
- package/dist/apis/entity.cjs +1601 -10
- package/dist/apis/entity.d.cts +4 -4
- package/dist/apis/entity.d.ts +4 -4
- package/dist/apis/entity.js +1597 -6
- package/dist/apis/environments.cjs +72 -10
- package/dist/apis/environments.d.cts +4 -4
- package/dist/apis/environments.d.ts +4 -4
- package/dist/apis/environments.js +68 -6
- package/dist/apis/erp-integration.cjs +587 -10
- 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 -6
- package/dist/apis/event-catalog.cjs +131 -10
- 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 -6
- package/dist/apis/file.cjs +574 -10
- package/dist/apis/file.d.cts +4 -4
- package/dist/apis/file.d.ts +4 -4
- package/dist/apis/file.js +570 -6
- package/dist/apis/iban.cjs +44 -10
- package/dist/apis/iban.d.cts +4 -4
- package/dist/apis/iban.d.ts +4 -4
- package/dist/apis/iban.js +40 -6
- package/dist/apis/journey.cjs +271 -10
- package/dist/apis/journey.d.cts +4 -4
- package/dist/apis/journey.d.ts +4 -4
- package/dist/apis/journey.js +267 -6
- package/dist/apis/kanban.cjs +165 -10
- package/dist/apis/kanban.d.cts +4 -4
- package/dist/apis/kanban.d.ts +4 -4
- package/dist/apis/kanban.js +161 -6
- package/dist/apis/message.cjs +674 -10
- package/dist/apis/message.d.cts +4 -4
- package/dist/apis/message.d.ts +4 -4
- package/dist/apis/message.js +670 -6
- package/dist/apis/metering.cjs +400 -10
- package/dist/apis/metering.d.cts +4 -4
- package/dist/apis/metering.d.ts +4 -4
- package/dist/apis/metering.js +396 -6
- package/dist/apis/notes.cjs +220 -10
- package/dist/apis/notes.d.cts +4 -4
- package/dist/apis/notes.d.ts +4 -4
- package/dist/apis/notes.js +216 -6
- package/dist/apis/notification.cjs +238 -10
- package/dist/apis/notification.d.cts +4 -4
- package/dist/apis/notification.d.ts +4 -4
- package/dist/apis/notification.js +234 -6
- package/dist/apis/organization.cjs +119 -10
- package/dist/apis/organization.d.cts +4 -4
- package/dist/apis/organization.d.ts +4 -4
- package/dist/apis/organization.js +115 -6
- package/dist/apis/partner-directory.cjs +283 -10
- 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 -6
- package/dist/apis/permissions.cjs +179 -10
- package/dist/apis/permissions.d.cts +4 -4
- package/dist/apis/permissions.d.ts +4 -4
- package/dist/apis/permissions.js +175 -6
- package/dist/apis/pricing-tier.cjs +40 -13
- 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 -6
- package/dist/apis/pricing.cjs +440 -10
- package/dist/apis/pricing.d.cts +4 -4
- package/dist/apis/pricing.d.ts +4 -4
- package/dist/apis/pricing.js +436 -6
- package/dist/apis/purpose.cjs +181 -10
- package/dist/apis/purpose.d.cts +4 -4
- package/dist/apis/purpose.d.ts +4 -4
- package/dist/apis/purpose.js +177 -6
- package/dist/apis/sandbox.cjs +101 -10
- package/dist/apis/sandbox.d.cts +4 -4
- package/dist/apis/sandbox.d.ts +4 -4
- package/dist/apis/sandbox.js +97 -6
- package/dist/apis/submission.cjs +56 -10
- package/dist/apis/submission.d.cts +4 -4
- package/dist/apis/submission.d.ts +4 -4
- package/dist/apis/submission.js +52 -6
- package/dist/apis/targeting.cjs +276 -10
- package/dist/apis/targeting.d.cts +4 -4
- package/dist/apis/targeting.d.ts +4 -4
- package/dist/apis/targeting.js +272 -6
- package/dist/apis/template-variables.cjs +160 -10
- 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 -6
- package/dist/apis/user.cjs +489 -10
- package/dist/apis/user.d.cts +4 -4
- package/dist/apis/user.d.ts +4 -4
- package/dist/apis/user.js +485 -6
- package/dist/apis/validation-rules.cjs +121 -10
- 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 -6
- package/dist/apis/webhooks.cjs +253 -10
- package/dist/apis/webhooks.d.cts +4 -4
- package/dist/apis/webhooks.d.ts +4 -4
- package/dist/apis/webhooks.js +249 -6
- package/dist/apis/workflow-definition.cjs +343 -10
- 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 -6
- package/dist/apis/workflow.cjs +403 -10
- package/dist/apis/workflow.d.cts +4 -4
- package/dist/apis/workflow.d.ts +4 -4
- package/dist/apis/workflow.js +399 -6
- package/dist/{chunk-YYLPAGF4.cjs → chunk-D7ICL3AM.cjs} +20 -9
- package/dist/{chunk-UCDXDIUX.js → chunk-DGCGLG7G.js} +18 -7
- package/dist/index.cjs +70 -215
- package/dist/index.d.cts +64 -66
- package/dist/index.d.ts +64 -66
- package/dist/index.js +67 -212
- package/dist/{types-DNnaR-86.d.cts → types-BwBvJkY_.d.cts} +2 -2
- package/dist/{types-DNnaR-86.d.ts → types-BwBvJkY_.d.ts} +2 -2
- package/package.json +2 -6
- package/dist/access-token-4WG44JE6.js +0 -87
- package/dist/access-token-IWRB3AQC.cjs +0 -87
- package/dist/address-RCFHYZ32.cjs +0 -82
- package/dist/address-YDZSS2Q2.js +0 -82
- package/dist/address-suggestions-44CVMN3H.js +0 -130
- package/dist/address-suggestions-RQNIFLF6.cjs +0 -130
- package/dist/ai-agents-7WY6J45W.js +0 -213
- package/dist/ai-agents-TIBOWGRB.cjs +0 -213
- package/dist/apis/discussion.cjs +0 -32
- package/dist/apis/discussion.d.cts +0 -18
- package/dist/apis/discussion.d.ts +0 -18
- package/dist/apis/discussion.js +0 -32
- package/dist/app-BUVEXAK3.js +0 -571
- package/dist/app-SWOVCSF6.cjs +0 -571
- package/dist/audit-logs-EZF74KKE.js +0 -53
- package/dist/audit-logs-ZNE4XISB.cjs +0 -53
- package/dist/automation-F4AXMRUS.cjs +0 -280
- package/dist/automation-NSOLJEPW.js +0 -280
- package/dist/billing-FXH4A3ET.cjs +0 -173
- package/dist/billing-PW2UJOFR.js +0 -173
- package/dist/blueprint-manifest-N4UM55KM.cjs +0 -502
- package/dist/blueprint-manifest-U3DMIHGW.js +0 -502
- package/dist/consent-NL2FMBRZ.js +0 -82
- package/dist/consent-XLVBVWHP.cjs +0 -82
- package/dist/customer-portal-6NZR53MJ.cjs +0 -2250
- package/dist/customer-portal-PXA64RS2.js +0 -2250
- package/dist/data-management-7VCKRRKT.cjs +0 -238
- package/dist/data-management-CWNNHKNR.js +0 -238
- package/dist/deduplication-AHDZHLWJ.cjs +0 -40
- package/dist/deduplication-UNYDU6FC.js +0 -40
- package/dist/design-GTK6ERS7.js +0 -217
- package/dist/design-HINGIGZM.cjs +0 -217
- package/dist/discussion-5AQSWLCJ.js +0 -132
- package/dist/discussion-ZHZII3JN.cjs +0 -132
- package/dist/discussion.d-DQucoYl_.d.cts +0 -579
- package/dist/discussion.d-DQucoYl_.d.ts +0 -579
- package/dist/document-3DJGB6C5.cjs +0 -76
- package/dist/document-4EBYTKOK.js +0 -76
- package/dist/email-settings-37WEBRIE.cjs +0 -531
- package/dist/email-settings-WYXVYZA5.js +0 -531
- package/dist/email-template-AJGRNOGO.cjs +0 -120
- package/dist/email-template-L3LCVGGX.js +0 -120
- package/dist/entity-FK3QEH7K.cjs +0 -1598
- package/dist/entity-VCBDLBZ5.js +0 -1598
- package/dist/entity-mapping-LEEXGKNQ.js +0 -213
- package/dist/entity-mapping-OIA23UV2.cjs +0 -213
- package/dist/environments-NX2KO6PH.js +0 -69
- package/dist/environments-PDN2RNB6.cjs +0 -69
- package/dist/erp-integration-C7XAKQOQ.cjs +0 -584
- package/dist/erp-integration-TA23TPTK.js +0 -584
- package/dist/event-catalog-CXGU2MWM.js +0 -128
- package/dist/event-catalog-JHJU3EPR.cjs +0 -128
- package/dist/file-FIIYM6KO.cjs +0 -571
- package/dist/file-GRLGXATS.js +0 -571
- package/dist/iban-IQH45QEI.js +0 -41
- package/dist/iban-YHV77AIE.cjs +0 -41
- package/dist/journey-B5Q2FQUI.cjs +0 -268
- package/dist/journey-XW3RJCI3.js +0 -268
- package/dist/kanban-4LZGTSAF.cjs +0 -162
- package/dist/kanban-NRSJ6S4X.js +0 -162
- package/dist/message-IV6F3CN5.cjs +0 -671
- package/dist/message-VYRBWAWQ.js +0 -671
- package/dist/metering-BOIQK6LV.js +0 -397
- package/dist/metering-WJVI6BHJ.cjs +0 -397
- package/dist/notes-XXYAHYEC.js +0 -217
- package/dist/notes-ZQR635GX.cjs +0 -217
- package/dist/notification-7APLCFR5.cjs +0 -235
- package/dist/notification-B634CDPT.js +0 -235
- package/dist/organization-BXJ2BPQB.cjs +0 -116
- package/dist/organization-WGTTJC22.js +0 -116
- package/dist/partner-directory-IHOFVMEK.cjs +0 -280
- package/dist/partner-directory-K6CQVWVG.js +0 -280
- package/dist/permissions-J7BIGOLO.cjs +0 -176
- package/dist/permissions-XRJ6WEZR.js +0 -176
- package/dist/pricing-GSIASLCP.cjs +0 -437
- package/dist/pricing-VVOEIVQC.js +0 -437
- package/dist/pricing-tier-NHXSXS7D.cjs +0 -34
- package/dist/pricing-tier-U5KRZDL2.js +0 -34
- package/dist/purpose-K655DFAO.js +0 -178
- package/dist/purpose-XH2OQHGH.cjs +0 -178
- package/dist/sandbox-4DRHKRB6.cjs +0 -98
- package/dist/sandbox-PV747LWK.js +0 -98
- package/dist/submission-7NPVVBLM.js +0 -53
- package/dist/submission-RUDXWIRC.cjs +0 -53
- package/dist/targeting-4ID5YPCA.js +0 -273
- package/dist/targeting-DOARNZSZ.cjs +0 -273
- package/dist/template-variables-HAYGELOR.cjs +0 -157
- package/dist/template-variables-XSEX25IR.js +0 -157
- package/dist/user-DPU5W4TD.cjs +0 -486
- package/dist/user-HJCIYGFV.js +0 -486
- package/dist/validation-rules-2Z3W27TI.js +0 -118
- package/dist/validation-rules-STLI5T53.cjs +0 -118
- package/dist/webhooks-OYG6A7LP.js +0 -250
- package/dist/webhooks-QV777IJ3.cjs +0 -250
- package/dist/workflow-3PROUTPA.js +0 -400
- package/dist/workflow-STQM54XS.cjs +0 -400
- package/dist/workflow-definition-3VVAPDSE.cjs +0 -340
- package/dist/workflow-definition-WEU344MV.js +0 -340
package/README.md
CHANGED
|
@@ -33,6 +33,60 @@ const { data: executions } = await epilot.workflow.getExecutions()
|
|
|
33
33
|
|
|
34
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.
|
|
35
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
|
+
|
|
36
90
|
## Explicit Client Access
|
|
37
91
|
|
|
38
92
|
```ts
|
|
@@ -41,11 +95,11 @@ import { epilot } from '@epilot/sdk'
|
|
|
41
95
|
epilot.authorize(() => '<my-token>')
|
|
42
96
|
|
|
43
97
|
// Get the cached singleton client
|
|
44
|
-
const entityClient =
|
|
98
|
+
const entityClient = epilot.entity.getClient()
|
|
45
99
|
const { data } = await entityClient.getEntity({ slug: 'contact', id: '123' })
|
|
46
100
|
|
|
47
101
|
// Create a fresh (non-singleton) client instance
|
|
48
|
-
const freshClient =
|
|
102
|
+
const freshClient = epilot.entity.createClient()
|
|
49
103
|
authorize(freshClient, () => '<my-token>')
|
|
50
104
|
```
|
|
51
105
|
|
|
@@ -56,7 +110,7 @@ Import only what you need. Other APIs never touch your bundle.
|
|
|
56
110
|
```ts
|
|
57
111
|
import { getClient, authorize } from '@epilot/sdk/entity'
|
|
58
112
|
|
|
59
|
-
const entityClient =
|
|
113
|
+
const entityClient = getClient()
|
|
60
114
|
authorize(entityClient, () => '<my-token>')
|
|
61
115
|
|
|
62
116
|
const { data } = await entityClient.getEntity({ slug: 'contact', id: '123' })
|
|
@@ -81,7 +135,7 @@ The `Client`, `OperationMethods`, and `PathsDictionary` types are also available
|
|
|
81
135
|
```ts
|
|
82
136
|
import type { Client } from '@epilot/sdk/entity'
|
|
83
137
|
|
|
84
|
-
const entityClient: Client =
|
|
138
|
+
const entityClient: Client = epilot.entity.getClient()
|
|
85
139
|
```
|
|
86
140
|
|
|
87
141
|
## Headers
|
|
@@ -107,7 +161,7 @@ const { data } = await epilot.entity.searchEntities(...)
|
|
|
107
161
|
Use standard axios `defaults.headers.common` on individual clients:
|
|
108
162
|
|
|
109
163
|
```ts
|
|
110
|
-
const entityClient =
|
|
164
|
+
const entityClient = epilot.entity.getClient()
|
|
111
165
|
entityClient.defaults.headers.common['x-epilot-org-id'] = 'org-123'
|
|
112
166
|
```
|
|
113
167
|
|
|
@@ -120,7 +174,7 @@ import { authorize } from '@epilot/sdk'
|
|
|
120
174
|
import { getClient } from '@epilot/sdk/entity'
|
|
121
175
|
|
|
122
176
|
// Per-client — function predicate (recommended)
|
|
123
|
-
const entityClient =
|
|
177
|
+
const entityClient = getClient()
|
|
124
178
|
authorize(entityClient, () => '<my-token>')
|
|
125
179
|
|
|
126
180
|
// Per-client — async function (e.g. OAuth / session)
|
|
@@ -146,7 +200,7 @@ epilot.authorize('my-static-api-token')
|
|
|
146
200
|
```ts
|
|
147
201
|
import { createClient, authorize } from '@epilot/sdk/entity'
|
|
148
202
|
|
|
149
|
-
const entityClient =
|
|
203
|
+
const entityClient = createClient()
|
|
150
204
|
authorize(entityClient, () => '<my-token>')
|
|
151
205
|
entityClient.defaults.headers.common['x-epilot-org-id'] = 'org-123'
|
|
152
206
|
```
|
|
@@ -216,7 +270,7 @@ For individually imported clients (tree-shakeable imports), apply the intercepto
|
|
|
216
270
|
import { getClient, authorize } from '@epilot/sdk/entity'
|
|
217
271
|
import { applyRetryInterceptor } from '@epilot/sdk'
|
|
218
272
|
|
|
219
|
-
const entityClient =
|
|
273
|
+
const entityClient = getClient()
|
|
220
274
|
authorize(entityClient, () => '<my-token>')
|
|
221
275
|
applyRetryInterceptor({ client: entityClient, config: { maxRetries: 3 } })
|
|
222
276
|
```
|
|
@@ -240,7 +294,7 @@ For individually imported clients (tree-shakeable imports), apply the intercepto
|
|
|
240
294
|
import { getClient, authorize } from '@epilot/sdk/entity'
|
|
241
295
|
import { applyLargeResponseInterceptor } from '@epilot/sdk'
|
|
242
296
|
|
|
243
|
-
const entityClient =
|
|
297
|
+
const entityClient = getClient()
|
|
244
298
|
authorize(entityClient, () => '<my-token>')
|
|
245
299
|
applyLargeResponseInterceptor({ client: entityClient, config: { enabled: true } })
|
|
246
300
|
```
|
|
@@ -252,7 +306,6 @@ Override built-in API specs or register custom APIs via `.epilot/sdk-overrides.j
|
|
|
252
306
|
```json
|
|
253
307
|
{
|
|
254
308
|
"entity": "./specs/entity-openapi.json",
|
|
255
|
-
"pricing": "https://my-dev-server.com/openapi.json",
|
|
256
309
|
"myNewApi": "./specs/my-new-api-openapi.json"
|
|
257
310
|
}
|
|
258
311
|
```
|
|
@@ -278,38 +331,15 @@ npx epilot-sdk typegen
|
|
|
278
331
|
<details>
|
|
279
332
|
<summary>Migration from <code>@epilot/*-client</code></summary>
|
|
280
333
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
```ts
|
|
284
|
-
// Before
|
|
285
|
-
import { getClient } from '@epilot/entity-client'
|
|
286
|
-
const entityClient = getClient()
|
|
287
|
-
|
|
288
|
-
// After
|
|
289
|
-
import { getClient } from '@epilot/sdk/entity'
|
|
290
|
-
const entityClient = await getClient()
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
### Fresh client
|
|
294
|
-
|
|
295
|
-
```ts
|
|
296
|
-
// Before
|
|
297
|
-
import { createClient } from '@epilot/entity-client'
|
|
298
|
-
const entityClient = createClient()
|
|
299
|
-
|
|
300
|
-
// After
|
|
301
|
-
import { createClient } from '@epilot/sdk/entity'
|
|
302
|
-
const entityClient = await createClient()
|
|
303
|
-
```
|
|
304
|
-
|
|
305
|
-
### Types
|
|
334
|
+
Drop-in replacement — just change the import path:
|
|
306
335
|
|
|
307
336
|
```ts
|
|
308
337
|
// Before
|
|
309
|
-
import
|
|
310
|
-
type
|
|
338
|
+
import { getClient, createClient, authorize } from '@epilot/entity-client'
|
|
339
|
+
import type { Client, Entity } from '@epilot/entity-client'
|
|
311
340
|
|
|
312
341
|
// After
|
|
342
|
+
import { getClient, createClient, authorize } from '@epilot/sdk/entity'
|
|
313
343
|
import type { Client, Entity } from '@epilot/sdk/entity'
|
|
314
344
|
```
|
|
315
345
|
|
|
@@ -320,12 +350,12 @@ import type { Client, Entity } from '@epilot/sdk/entity'
|
|
|
320
350
|
|
|
321
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.
|
|
322
352
|
|
|
323
|
-
**
|
|
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.
|
|
324
354
|
|
|
325
355
|
**Direct `getClient()` references can go stale** — if you hold a reference and then change config, your reference still points to the old client:
|
|
326
356
|
|
|
327
357
|
```ts
|
|
328
|
-
const entityClient =
|
|
358
|
+
const entityClient = epilot.entity.getClient()
|
|
329
359
|
|
|
330
360
|
epilot.authorize('new-token') // invalidates all cached clients
|
|
331
361
|
|
|
@@ -333,62 +363,6 @@ epilot.authorize('new-token') // invalidates all cached clients
|
|
|
333
363
|
// epilot.entity.getEntity(...) will use a new client with the new token
|
|
334
364
|
```
|
|
335
365
|
|
|
336
|
-
If you need a long-lived reference that survives config changes, call `getClient()` again after changing config
|
|
366
|
+
If you need a long-lived reference that survives config changes, call `getClient()` again after changing config, or use operation methods directly.
|
|
337
367
|
|
|
338
368
|
</details>
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
## API Reference
|
|
342
|
-
|
|
343
|
-
Full API documentation: [https://docs.epilot.io/api](https://docs.epilot.io/api)
|
|
344
|
-
|
|
345
|
-
## Available APIs
|
|
346
|
-
|
|
347
|
-
| API | Import | Docs |
|
|
348
|
-
| --- | ------ | ---- |
|
|
349
|
-
| `epilot.accessToken` | `@epilot/sdk/access-token` | [docs](./docs/access-token.md) |
|
|
350
|
-
| `epilot.address` | `@epilot/sdk/address` | [docs](./docs/address.md) |
|
|
351
|
-
| `epilot.addressSuggestions` | `@epilot/sdk/address-suggestions` | [docs](./docs/address-suggestions.md) |
|
|
352
|
-
| `epilot.aiAgents` | `@epilot/sdk/ai-agents` | [docs](./docs/ai-agents.md) |
|
|
353
|
-
| `epilot.app` | `@epilot/sdk/app` | [docs](./docs/app.md) |
|
|
354
|
-
| `epilot.auditLogs` | `@epilot/sdk/audit-logs` | [docs](./docs/audit-logs.md) |
|
|
355
|
-
| `epilot.automation` | `@epilot/sdk/automation` | [docs](./docs/automation.md) |
|
|
356
|
-
| `epilot.billing` | `@epilot/sdk/billing` | [docs](./docs/billing.md) |
|
|
357
|
-
| `epilot.blueprintManifest` | `@epilot/sdk/blueprint-manifest` | [docs](./docs/blueprint-manifest.md) |
|
|
358
|
-
| `epilot.consent` | `@epilot/sdk/consent` | [docs](./docs/consent.md) |
|
|
359
|
-
| `epilot.customerPortal` | `@epilot/sdk/customer-portal` | [docs](./docs/customer-portal.md) |
|
|
360
|
-
| `epilot.dataManagement` | `@epilot/sdk/data-management` | [docs](./docs/data-management.md) |
|
|
361
|
-
| `epilot.deduplication` | `@epilot/sdk/deduplication` | [docs](./docs/deduplication.md) |
|
|
362
|
-
| `epilot.design` | `@epilot/sdk/design` | [docs](./docs/design.md) |
|
|
363
|
-
| `epilot.discussion` | `@epilot/sdk/discussion` | [docs](./docs/discussion.md) |
|
|
364
|
-
| `epilot.document` | `@epilot/sdk/document` | [docs](./docs/document.md) |
|
|
365
|
-
| `epilot.emailSettings` | `@epilot/sdk/email-settings` | [docs](./docs/email-settings.md) |
|
|
366
|
-
| `epilot.emailTemplate` | `@epilot/sdk/email-template` | [docs](./docs/email-template.md) |
|
|
367
|
-
| `epilot.entity` | `@epilot/sdk/entity` | [docs](./docs/entity.md) |
|
|
368
|
-
| `epilot.entityMapping` | `@epilot/sdk/entity-mapping` | [docs](./docs/entity-mapping.md) |
|
|
369
|
-
| `epilot.environments` | `@epilot/sdk/environments` | [docs](./docs/environments.md) |
|
|
370
|
-
| `epilot.erpIntegration` | `@epilot/sdk/erp-integration` | [docs](./docs/erp-integration.md) |
|
|
371
|
-
| `epilot.eventCatalog` | `@epilot/sdk/event-catalog` | [docs](./docs/event-catalog.md) |
|
|
372
|
-
| `epilot.file` | `@epilot/sdk/file` | [docs](./docs/file.md) |
|
|
373
|
-
| `epilot.iban` | `@epilot/sdk/iban` | [docs](./docs/iban.md) |
|
|
374
|
-
| `epilot.journey` | `@epilot/sdk/journey` | [docs](./docs/journey.md) |
|
|
375
|
-
| `epilot.kanban` | `@epilot/sdk/kanban` | [docs](./docs/kanban.md) |
|
|
376
|
-
| `epilot.message` | `@epilot/sdk/message` | [docs](./docs/message.md) |
|
|
377
|
-
| `epilot.metering` | `@epilot/sdk/metering` | [docs](./docs/metering.md) |
|
|
378
|
-
| `epilot.notes` | `@epilot/sdk/notes` | [docs](./docs/notes.md) |
|
|
379
|
-
| `epilot.notification` | `@epilot/sdk/notification` | [docs](./docs/notification.md) |
|
|
380
|
-
| `epilot.organization` | `@epilot/sdk/organization` | [docs](./docs/organization.md) |
|
|
381
|
-
| `epilot.partnerDirectory` | `@epilot/sdk/partner-directory` | [docs](./docs/partner-directory.md) |
|
|
382
|
-
| `epilot.permissions` | `@epilot/sdk/permissions` | [docs](./docs/permissions.md) |
|
|
383
|
-
| `epilot.pricing` | `@epilot/sdk/pricing` | [docs](./docs/pricing.md) |
|
|
384
|
-
| `epilot.pricingTier` | `@epilot/sdk/pricing-tier` | [docs](./docs/pricing-tier.md) |
|
|
385
|
-
| `epilot.purpose` | `@epilot/sdk/purpose` | [docs](./docs/purpose.md) |
|
|
386
|
-
| `epilot.sandbox` | `@epilot/sdk/sandbox` | [docs](./docs/sandbox.md) |
|
|
387
|
-
| `epilot.submission` | `@epilot/sdk/submission` | [docs](./docs/submission.md) |
|
|
388
|
-
| `epilot.targeting` | `@epilot/sdk/targeting` | [docs](./docs/targeting.md) |
|
|
389
|
-
| `epilot.templateVariables` | `@epilot/sdk/template-variables` | [docs](./docs/template-variables.md) |
|
|
390
|
-
| `epilot.user` | `@epilot/sdk/user` | [docs](./docs/user.md) |
|
|
391
|
-
| `epilot.validationRules` | `@epilot/sdk/validation-rules` | [docs](./docs/validation-rules.md) |
|
|
392
|
-
| `epilot.webhooks` | `@epilot/sdk/webhooks` | [docs](./docs/webhooks.md) |
|
|
393
|
-
| `epilot.workflow` | `@epilot/sdk/workflow` | [docs](./docs/workflow.md) |
|
|
394
|
-
| `epilot.workflowDefinition` | `@epilot/sdk/workflow-definition` | [docs](./docs/workflow-definition.md) |
|
|
@@ -1,25 +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
|
-
|
|
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
|
+
});
|
|
6
86
|
|
|
7
87
|
// src/apis/access-token.ts
|
|
8
|
-
var loadDefinition =
|
|
9
|
-
const mod =
|
|
88
|
+
var loadDefinition = () => {
|
|
89
|
+
const mod = require_access_token();
|
|
10
90
|
return _nullishCoalesce(mod.default, () => ( mod));
|
|
11
91
|
};
|
|
12
92
|
var _instance = null;
|
|
13
|
-
var resolve =
|
|
93
|
+
var resolve = () => {
|
|
14
94
|
if (!_instance) {
|
|
15
|
-
const definition =
|
|
16
|
-
_instance =
|
|
95
|
+
const definition = loadDefinition();
|
|
96
|
+
_instance = _chunkD7ICL3AMcjs.createApiClient.call(void 0, { definition });
|
|
17
97
|
}
|
|
18
98
|
return _instance;
|
|
19
99
|
};
|
|
20
|
-
var _handle =
|
|
100
|
+
var _handle = _chunkD7ICL3AMcjs.createApiHandle.call(void 0, {
|
|
21
101
|
resolveClient: resolve,
|
|
22
|
-
loadDefinition
|
|
102
|
+
createClient: () => _chunkD7ICL3AMcjs.createApiClient.call(void 0, { definition: loadDefinition() })
|
|
23
103
|
});
|
|
24
104
|
var getClient = _handle.getClient;
|
|
25
105
|
var createClient = _handle.createClient;
|
|
@@ -29,4 +109,4 @@ var accessToken = _handle;
|
|
|
29
109
|
|
|
30
110
|
|
|
31
111
|
|
|
32
|
-
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,25 +1,105 @@
|
|
|
1
1
|
import {
|
|
2
|
+
__commonJS,
|
|
2
3
|
authorize,
|
|
3
4
|
createApiClient,
|
|
4
5
|
createApiHandle
|
|
5
|
-
} from "../chunk-
|
|
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
|
+
});
|
|
6
86
|
|
|
7
87
|
// src/apis/access-token.ts
|
|
8
|
-
var loadDefinition =
|
|
9
|
-
const mod =
|
|
88
|
+
var loadDefinition = () => {
|
|
89
|
+
const mod = require_access_token();
|
|
10
90
|
return mod.default ?? mod;
|
|
11
91
|
};
|
|
12
92
|
var _instance = null;
|
|
13
|
-
var resolve =
|
|
93
|
+
var resolve = () => {
|
|
14
94
|
if (!_instance) {
|
|
15
|
-
const definition =
|
|
95
|
+
const definition = loadDefinition();
|
|
16
96
|
_instance = createApiClient({ definition });
|
|
17
97
|
}
|
|
18
98
|
return _instance;
|
|
19
99
|
};
|
|
20
100
|
var _handle = createApiHandle({
|
|
21
101
|
resolveClient: resolve,
|
|
22
|
-
loadDefinition
|
|
102
|
+
createClient: () => createApiClient({ definition: loadDefinition() })
|
|
23
103
|
});
|
|
24
104
|
var getClient = _handle.getClient;
|
|
25
105
|
var createClient = _handle.createClient;
|