@epilot/sdk 2.7.1 → 2.8.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/README.md +1 -0
  2. package/definitions/app.json +101 -8
  3. package/definitions/configuration-hub-runtime.json +1 -1
  4. package/definitions/configuration-hub.json +623 -0
  5. package/definitions/customer-portal.json +72 -58
  6. package/definitions/design-runtime.json +1 -1
  7. package/definitions/design.json +1 -11
  8. package/definitions/focus-pocus-runtime.json +1 -0
  9. package/definitions/focus-pocus.json +757 -0
  10. package/definitions/journey-runtime.json +1 -1
  11. package/definitions/journey.json +21 -1
  12. package/dist/README-37TXN4EL.cjs +7 -0
  13. package/dist/README-Z2WITBOR.js +7 -0
  14. package/dist/{_index-DB2VV4PQ.cjs → _index-HTUXYSTD.cjs} +4 -1
  15. package/dist/{_index-5FB6F5YY.js → _index-YTOJUFGD.js} +3 -0
  16. package/dist/apis/access-token.cjs +6 -6
  17. package/dist/apis/access-token.js +1 -1
  18. package/dist/apis/address-suggestions.cjs +6 -6
  19. package/dist/apis/address-suggestions.js +1 -1
  20. package/dist/apis/address.cjs +6 -6
  21. package/dist/apis/address.js +1 -1
  22. package/dist/apis/ai-agents.cjs +6 -6
  23. package/dist/apis/ai-agents.js +1 -1
  24. package/dist/apis/app.cjs +6 -6
  25. package/dist/apis/app.d.cts +2 -2
  26. package/dist/apis/app.d.ts +2 -2
  27. package/dist/apis/app.js +1 -1
  28. package/dist/apis/audit-logs.cjs +6 -6
  29. package/dist/apis/audit-logs.js +1 -1
  30. package/dist/apis/automation.cjs +6 -6
  31. package/dist/apis/automation.js +1 -1
  32. package/dist/apis/billing.cjs +6 -6
  33. package/dist/apis/billing.js +1 -1
  34. package/dist/apis/blueprint-manifest.cjs +6 -6
  35. package/dist/apis/blueprint-manifest.js +1 -1
  36. package/dist/apis/calendar.cjs +6 -6
  37. package/dist/apis/calendar.js +1 -1
  38. package/dist/apis/configuration-hub.cjs +8 -8
  39. package/dist/apis/configuration-hub.d.cts +2 -2
  40. package/dist/apis/configuration-hub.d.ts +2 -2
  41. package/dist/apis/configuration-hub.js +2 -2
  42. package/dist/apis/consent.cjs +6 -6
  43. package/dist/apis/consent.js +1 -1
  44. package/dist/apis/customer-portal.cjs +6 -6
  45. package/dist/apis/customer-portal.d.cts +2 -2
  46. package/dist/apis/customer-portal.d.ts +2 -2
  47. package/dist/apis/customer-portal.js +1 -1
  48. package/dist/apis/dashboard.cjs +6 -6
  49. package/dist/apis/dashboard.js +1 -1
  50. package/dist/apis/data-governance.cjs +6 -6
  51. package/dist/apis/data-governance.js +1 -1
  52. package/dist/apis/deduplication.cjs +6 -6
  53. package/dist/apis/deduplication.js +1 -1
  54. package/dist/apis/design.cjs +8 -8
  55. package/dist/apis/design.js +2 -2
  56. package/dist/apis/document.cjs +6 -6
  57. package/dist/apis/document.js +1 -1
  58. package/dist/apis/email-settings.cjs +6 -6
  59. package/dist/apis/email-settings.js +1 -1
  60. package/dist/apis/email-template.cjs +6 -6
  61. package/dist/apis/email-template.js +1 -1
  62. package/dist/apis/entity-mapping.cjs +6 -6
  63. package/dist/apis/entity-mapping.js +1 -1
  64. package/dist/apis/entity.cjs +6 -6
  65. package/dist/apis/entity.js +1 -1
  66. package/dist/apis/environments.cjs +6 -6
  67. package/dist/apis/environments.js +1 -1
  68. package/dist/apis/event-catalog.cjs +6 -6
  69. package/dist/apis/event-catalog.js +1 -1
  70. package/dist/apis/file.cjs +6 -6
  71. package/dist/apis/file.js +1 -1
  72. package/dist/apis/focus-pocus.cjs +38 -0
  73. package/dist/apis/focus-pocus.d.cts +18 -0
  74. package/dist/apis/focus-pocus.d.ts +18 -0
  75. package/dist/apis/focus-pocus.js +38 -0
  76. package/dist/apis/iban.cjs +6 -6
  77. package/dist/apis/iban.js +1 -1
  78. package/dist/apis/integration-toolkit.cjs +6 -6
  79. package/dist/apis/integration-toolkit.js +1 -1
  80. package/dist/apis/journey.cjs +8 -8
  81. package/dist/apis/journey.d.cts +2 -2
  82. package/dist/apis/journey.d.ts +2 -2
  83. package/dist/apis/journey.js +2 -2
  84. package/dist/apis/kanban.cjs +6 -6
  85. package/dist/apis/kanban.js +1 -1
  86. package/dist/apis/message.cjs +6 -6
  87. package/dist/apis/message.js +1 -1
  88. package/dist/apis/metering.cjs +6 -6
  89. package/dist/apis/metering.js +1 -1
  90. package/dist/apis/notes.cjs +6 -6
  91. package/dist/apis/notes.js +1 -1
  92. package/dist/apis/notification.cjs +6 -6
  93. package/dist/apis/notification.js +1 -1
  94. package/dist/apis/organization.cjs +6 -6
  95. package/dist/apis/organization.js +1 -1
  96. package/dist/apis/partner-directory.cjs +6 -6
  97. package/dist/apis/partner-directory.js +1 -1
  98. package/dist/apis/permissions.cjs +6 -6
  99. package/dist/apis/permissions.js +1 -1
  100. package/dist/apis/pricing-tier.cjs +6 -6
  101. package/dist/apis/pricing-tier.js +1 -1
  102. package/dist/apis/pricing.cjs +6 -6
  103. package/dist/apis/pricing.js +1 -1
  104. package/dist/apis/purpose.cjs +6 -6
  105. package/dist/apis/purpose.js +1 -1
  106. package/dist/apis/query.cjs +6 -6
  107. package/dist/apis/query.js +1 -1
  108. package/dist/apis/sandbox.cjs +6 -6
  109. package/dist/apis/sandbox.js +1 -1
  110. package/dist/apis/sharing.cjs +6 -6
  111. package/dist/apis/sharing.js +1 -1
  112. package/dist/apis/submission.cjs +6 -6
  113. package/dist/apis/submission.js +1 -1
  114. package/dist/apis/target.cjs +6 -6
  115. package/dist/apis/target.js +1 -1
  116. package/dist/apis/targeting.cjs +6 -6
  117. package/dist/apis/targeting.js +1 -1
  118. package/dist/apis/template-variables.cjs +6 -6
  119. package/dist/apis/template-variables.js +1 -1
  120. package/dist/apis/user.cjs +6 -6
  121. package/dist/apis/user.js +1 -1
  122. package/dist/apis/validation-rules.cjs +6 -6
  123. package/dist/apis/validation-rules.js +1 -1
  124. package/dist/apis/webhooks.cjs +6 -6
  125. package/dist/apis/webhooks.js +1 -1
  126. package/dist/apis/workflow-definition.cjs +6 -6
  127. package/dist/apis/workflow-definition.js +1 -1
  128. package/dist/apis/workflow.cjs +6 -6
  129. package/dist/apis/workflow.js +1 -1
  130. package/dist/{app-SSF545U7.cjs → app-74LECFMK.cjs} +1 -1
  131. package/dist/{app-34OBBTA4.js → app-GNUHCGPO.js} +1 -1
  132. package/dist/{app.d--5n0FQQ4.d.cts → app.d-BOR23dso.d.cts} +104 -4
  133. package/dist/{app.d--5n0FQQ4.d.ts → app.d-BOR23dso.d.ts} +104 -4
  134. package/dist/bin/cli.js +1 -1
  135. package/dist/{chunk-SCMAZ73K.js → chunk-54KWFSCM.js} +30 -19
  136. package/dist/chunk-A6FYGWQ7.cjs +14 -0
  137. package/dist/{chunk-R7XDTILZ.cjs → chunk-F5Z6I7TF.cjs} +30 -19
  138. package/dist/chunk-JOUTFBLN.js +14 -0
  139. package/dist/chunk-LAWKCWVU.cjs +14 -0
  140. package/dist/{chunk-ZSONBZIF.cjs → chunk-MOLFG5L4.cjs} +1 -1
  141. package/dist/chunk-P42Q6HOW.js +14 -0
  142. package/dist/chunk-P4NA7NWG.js +14 -0
  143. package/dist/chunk-WHXYES2D.cjs +14 -0
  144. package/dist/{chunk-ONOGGR6Q.js → chunk-WW6DVKJR.js} +1 -1
  145. package/dist/configuration-hub-E7S4JB2T.js +7 -0
  146. package/dist/configuration-hub-Q5JBYB52.cjs +7 -0
  147. package/dist/{configuration-hub-runtime-L6IOERSP.js → configuration-hub-runtime-CXME7TCX.js} +1 -1
  148. package/dist/{configuration-hub-runtime-I5Y67CXD.cjs → configuration-hub-runtime-QVLJKEZD.cjs} +2 -2
  149. package/dist/configuration-hub.d-CbSJDa7k.d.cts +1096 -0
  150. package/dist/configuration-hub.d-CbSJDa7k.d.ts +1096 -0
  151. package/dist/customer-portal-DR6XFCTQ.js +7 -0
  152. package/dist/customer-portal-PNFBVIAH.cjs +7 -0
  153. package/dist/{customer-portal.d-C7ZCbjiY.d.cts → customer-portal.d-CTTCBAZI.d.cts} +217 -61
  154. package/dist/{customer-portal.d-C7ZCbjiY.d.ts → customer-portal.d-CTTCBAZI.d.ts} +217 -61
  155. package/dist/data-governance-QYFHBCNB.cjs +7 -0
  156. package/dist/data-governance-YS2NA6W4.js +7 -0
  157. package/dist/design-EWZQZ5KX.js +7 -0
  158. package/dist/design-MUUYXB2J.cjs +7 -0
  159. package/dist/design-runtime-3RHYNHUV.cjs +5 -0
  160. package/dist/{design-runtime-QMJM4FAF.js → design-runtime-DLMA4EHQ.js} +1 -1
  161. package/dist/focus-pocus-JGXH42OF.cjs +7 -0
  162. package/dist/focus-pocus-XVDVUYL6.js +7 -0
  163. package/dist/focus-pocus-runtime-QXBBYVX7.js +5 -0
  164. package/dist/focus-pocus-runtime-X6GQ3WI4.cjs +5 -0
  165. package/dist/focus-pocus.d-BRFGe53G.d.cts +489 -0
  166. package/dist/focus-pocus.d-BRFGe53G.d.ts +489 -0
  167. package/dist/index.cjs +29 -21
  168. package/dist/index.d.cts +55 -53
  169. package/dist/index.d.ts +55 -53
  170. package/dist/index.js +20 -12
  171. package/dist/journey-4DIIPRU4.js +7 -0
  172. package/dist/journey-ATC3Y5AW.cjs +7 -0
  173. package/dist/{journey-runtime-SPBL3F32.cjs → journey-runtime-G2O5C3N2.cjs} +2 -2
  174. package/dist/{journey-runtime-YXIAOTMD.js → journey-runtime-RI2LJO5S.js} +1 -1
  175. package/dist/{journey.d-ClXO0xK8.d.cts → journey.d-BenIUWaO.d.cts} +9 -3
  176. package/dist/{journey.d-ClXO0xK8.d.ts → journey.d-BenIUWaO.d.ts} +9 -3
  177. package/dist/{js-yaml-UPZKYVRY.js → js-yaml-DLCVPJ7G.js} +17 -15
  178. package/dist/pricing-R5ENSVPQ.cjs +7 -0
  179. package/dist/pricing-X27CCRI6.js +7 -0
  180. package/dist/targeting-74BV7F7H.cjs +7 -0
  181. package/dist/targeting-W5EKJYR2.js +7 -0
  182. package/docs/app.md +34 -10
  183. package/docs/configuration-hub.md +660 -0
  184. package/docs/customer-portal.md +223 -161
  185. package/docs/data-governance.md +17 -17
  186. package/docs/design.md +1 -1
  187. package/docs/focus-pocus.md +460 -0
  188. package/docs/journey.md +2 -0
  189. package/docs/pricing.md +1 -1
  190. package/docs/targeting.md +4 -4
  191. package/package.json +10 -1
  192. package/dist/README-46VYEGGW.js +0 -7
  193. package/dist/README-IVBISSWB.cjs +0 -7
  194. package/dist/chunk-EIIIKDOJ.cjs +0 -14
  195. package/dist/chunk-KIWRGUKM.js +0 -14
  196. package/dist/chunk-MB6NKETA.cjs +0 -14
  197. package/dist/chunk-VSZEOCIE.js +0 -14
  198. package/dist/configuration-hub-A3S6ND6R.cjs +0 -7
  199. package/dist/configuration-hub-PMAW44U5.js +0 -7
  200. package/dist/configuration-hub.d-Cqaq2F-W.d.cts +0 -478
  201. package/dist/configuration-hub.d-Cqaq2F-W.d.ts +0 -478
  202. package/dist/customer-portal-7HYSBH7H.cjs +0 -7
  203. package/dist/customer-portal-X4LJX6AU.js +0 -7
  204. package/dist/data-governance-2U5UU4GM.cjs +0 -7
  205. package/dist/data-governance-36Y33JVG.js +0 -7
  206. package/dist/design-DROLIWS3.js +0 -7
  207. package/dist/design-XZKOZLTR.cjs +0 -7
  208. package/dist/design-runtime-OXEXKZVG.cjs +0 -5
  209. package/dist/journey-KDR5EU3W.js +0 -7
  210. package/dist/journey-REBN4TGQ.cjs +0 -7
  211. package/dist/pricing-FODHQFCB.cjs +0 -7
  212. package/dist/pricing-XRIDVZFC.js +0 -7
  213. package/dist/targeting-EYGYZD6M.cjs +0 -7
  214. package/dist/targeting-GEJTJN5Z.js +0 -7
@@ -1,7 +0,0 @@
1
- import "./chunk-YPSWSI3M.js";
2
-
3
- // src/docs/README.json
4
- var README_default = "<h1 align=\"center\"><img alt=\"epilot\" src=\"https://raw.githubusercontent.com/epilot-dev/sdk-js/main/logo.png\" width=\"200\"><br>@epilot/sdk</h1>\n\n<p align=\"center\">\n <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>\n <a href=\"https://www.npmjs.com/package/@epilot/sdk\"><img src=\"https://img.shields.io/npm/v/@epilot/sdk.svg\" alt=\"npm version\"></a>\n <a href=\"https://github.com/epilot-dev/sdk-js/blob/main/\"><img src=\"http://img.shields.io/:license-mit-blue.svg\" alt=\"License\"></a>\n</p>\n\n<p align=\"center\">JavaScript/TypeScript SDK for epilot APIs. Full types, tree-shakeable imports, and lazy-loaded OpenAPI specs.</p>\n\n## Install\n\n```bash\nnpm i @epilot/sdk axios openapi-client-axios\n```\n\n## Quick Start\n\n```ts\nimport { epilot } from '@epilot/sdk'\n\nepilot.authorize(() => '<my-bearer-token>')\n\nconst { data: entity } = await epilot.entity.createEntity(\n { slug: 'contact' },\n { first_name: 'John', last_name: 'Doe' },\n)\n\nconst { data: file } = await epilot.file.getFile({ id: 'file-123' })\n\nconst { data: executions } = await epilot.workflow.getExecutions()\n```\n\nAPI 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 \u2014 the spec is loaded and the client initialized on first use, then cached.\n\nFull API documentation: [https://docs.epilot.io/api](https://docs.epilot.io/api)\n\n## API Reference\n\n<!-- api-reference-table -->\n| API | Import | Docs |\n| --- | ------ | ---- |\n| `epilot.accessToken` | `@epilot/sdk/access-token` | [docs](./docs/access-token.md) |\n| `epilot.address` | `@epilot/sdk/address` | [docs](./docs/address.md) |\n| `epilot.addressSuggestions` | `@epilot/sdk/address-suggestions` | [docs](./docs/address-suggestions.md) |\n| `epilot.aiAgents` | `@epilot/sdk/ai-agents` | [docs](./docs/ai-agents.md) |\n| `epilot.app` | `@epilot/sdk/app` | [docs](./docs/app.md) |\n| `epilot.auditLogs` | `@epilot/sdk/audit-logs` | [docs](./docs/audit-logs.md) |\n| `epilot.automation` | `@epilot/sdk/automation` | [docs](./docs/automation.md) |\n| `epilot.billing` | `@epilot/sdk/billing` | [docs](./docs/billing.md) |\n| `epilot.blueprintManifest` | `@epilot/sdk/blueprint-manifest` | [docs](./docs/blueprint-manifest.md) |\n| `epilot.calendar` | `@epilot/sdk/calendar` | [docs](./docs/calendar.md) |\n| `epilot.configurationHub` | `@epilot/sdk/configuration-hub` | [docs](./docs/configuration-hub.md) |\n| `epilot.consent` | `@epilot/sdk/consent` | [docs](./docs/consent.md) |\n| `epilot.customerPortal` | `@epilot/sdk/customer-portal` | [docs](./docs/customer-portal.md) |\n| `epilot.dashboard` | `@epilot/sdk/dashboard` | [docs](./docs/dashboard.md) |\n| `epilot.dataGovernance` | `@epilot/sdk/data-governance` | [docs](./docs/data-governance.md) |\n| `epilot.deduplication` | `@epilot/sdk/deduplication` | [docs](./docs/deduplication.md) |\n| `epilot.design` | `@epilot/sdk/design` | [docs](./docs/design.md) |\n| `epilot.document` | `@epilot/sdk/document` | [docs](./docs/document.md) |\n| `epilot.emailSettings` | `@epilot/sdk/email-settings` | [docs](./docs/email-settings.md) |\n| `epilot.emailTemplate` | `@epilot/sdk/email-template` | [docs](./docs/email-template.md) |\n| `epilot.entity` | `@epilot/sdk/entity` | [docs](./docs/entity.md) |\n| `epilot.entityMapping` | `@epilot/sdk/entity-mapping` | [docs](./docs/entity-mapping.md) |\n| `epilot.environments` | `@epilot/sdk/environments` | [docs](./docs/environments.md) |\n| `epilot.eventCatalog` | `@epilot/sdk/event-catalog` | [docs](./docs/event-catalog.md) |\n| `epilot.file` | `@epilot/sdk/file` | [docs](./docs/file.md) |\n| `epilot.iban` | `@epilot/sdk/iban` | [docs](./docs/iban.md) |\n| `epilot.integrationToolkit` | `@epilot/sdk/integration-toolkit` | [docs](./docs/integration-toolkit.md) |\n| `epilot.journey` | `@epilot/sdk/journey` | [docs](./docs/journey.md) |\n| `epilot.kanban` | `@epilot/sdk/kanban` | [docs](./docs/kanban.md) |\n| `epilot.message` | `@epilot/sdk/message` | [docs](./docs/message.md) |\n| `epilot.metering` | `@epilot/sdk/metering` | [docs](./docs/metering.md) |\n| `epilot.notes` | `@epilot/sdk/notes` | [docs](./docs/notes.md) |\n| `epilot.notification` | `@epilot/sdk/notification` | [docs](./docs/notification.md) |\n| `epilot.organization` | `@epilot/sdk/organization` | [docs](./docs/organization.md) |\n| `epilot.partnerDirectory` | `@epilot/sdk/partner-directory` | [docs](./docs/partner-directory.md) |\n| `epilot.permissions` | `@epilot/sdk/permissions` | [docs](./docs/permissions.md) |\n| `epilot.pricing` | `@epilot/sdk/pricing` | [docs](./docs/pricing.md) |\n| `epilot.pricingTier` | `@epilot/sdk/pricing-tier` | [docs](./docs/pricing-tier.md) |\n| `epilot.purpose` | `@epilot/sdk/purpose` | [docs](./docs/purpose.md) |\n| `epilot.query` | `@epilot/sdk/query` | [docs](./docs/query.md) |\n| `epilot.sandbox` | `@epilot/sdk/sandbox` | [docs](./docs/sandbox.md) |\n| `epilot.sharing` | `@epilot/sdk/sharing` | [docs](./docs/sharing.md) |\n| `epilot.submission` | `@epilot/sdk/submission` | [docs](./docs/submission.md) |\n| `epilot.targeting` | `@epilot/sdk/targeting` | [docs](./docs/targeting.md) |\n| `epilot.templateVariables` | `@epilot/sdk/template-variables` | [docs](./docs/template-variables.md) |\n| `epilot.user` | `@epilot/sdk/user` | [docs](./docs/user.md) |\n| `epilot.validationRules` | `@epilot/sdk/validation-rules` | [docs](./docs/validation-rules.md) |\n| `epilot.webhooks` | `@epilot/sdk/webhooks` | [docs](./docs/webhooks.md) |\n| `epilot.workflow` | `@epilot/sdk/workflow` | [docs](./docs/workflow.md) |\n| `epilot.workflowDefinition` | `@epilot/sdk/workflow-definition` | [docs](./docs/workflow-definition.md) |\n<!-- /api-reference-table -->\n\n## OpenAPI Spec\n\nRetrieve the full OpenAPI specification for any API at runtime. The spec is lazy-loaded on first call and cached.\n\n```ts\nimport { epilot } from '@epilot/sdk'\n\n// Via API handle\nconst entitySpec = await epilot.entity.openapi()\nconsole.log(entitySpec.info.title) // \"Entity API\"\nconsole.log(entitySpec.paths) // all paths with full schemas\n\n// Via top-level method\nconst spec = await epilot.openapi('entity')\n```\n\nFor tree-shakeable imports:\n\n```ts\nimport { openapi } from '@epilot/sdk/entity'\n\nconst spec = await openapi()\n```\n\n## Explicit Client Access\n\n```ts\nimport { epilot } from '@epilot/sdk'\n\nepilot.authorize(() => '<my-token>')\n\n// Get the cached singleton client\nconst entityClient = epilot.entity.getClient()\nconst { data } = await entityClient.getEntity({ slug: 'contact', id: '123' })\n\n// Create a fresh (non-singleton) client instance\nconst freshClient = epilot.entity.createClient()\nauthorize(freshClient, () => '<my-token>')\n```\n\n## Tree-Shakeable Imports\n\nImport only what you need. Other APIs never touch your bundle.\n\n```ts\nimport { getClient, authorize } from '@epilot/sdk/entity'\n\nconst entityClient = getClient()\nauthorize(entityClient, () => '<my-token>')\n\nconst { data } = await entityClient.getEntity({ slug: 'contact', id: '123' })\n\n// Or use the handle for direct operation forwarding\nimport { entity } from '@epilot/sdk/entity'\nconst { data } = await entity.getEntity({ slug: 'contact', id: '123' })\n```\n\n## Types\n\nEach API subpath re-exports all schema types generated from the OpenAPI spec. Import them directly:\n\n```ts\nimport type { Entity, EntitySchema, RelationAttribute } from '@epilot/sdk/entity'\nimport type { FileItem } from '@epilot/sdk/file'\nimport type { AutomationFlow } from '@epilot/sdk/automation'\n```\n\nThe `Client`, `OperationMethods`, and `PathsDictionary` types are also available for typing client instances:\n\n```ts\nimport type { Client } from '@epilot/sdk/entity'\n\nconst entityClient: Client = epilot.entity.getClient()\n```\n\n## Headers\n\n### Global Headers\n\nSet default headers applied to all clients. Useful for `x-epilot-org-id`, `x-epilot-user-id`, etc.\n\n```ts\nimport { epilot } from '@epilot/sdk'\n\nepilot.authorize(() => '<my-token>')\nepilot.headers({\n 'x-epilot-org-id': 'org-123',\n 'x-epilot-user-id': 'user-456',\n})\n\nconst { data } = await epilot.entity.searchEntities(...)\n```\n\n### Standard Axios Headers\n\nUse standard axios `defaults.headers.common` on individual clients:\n\n```ts\nconst entityClient = epilot.entity.getClient()\nentityClient.defaults.headers.common['x-epilot-org-id'] = 'org-123'\n```\n\n## Auth Patterns\n\n`authorize()` accepts a string or a function. The function form is preferred \u2014 it is called on every request, so tokens stay fresh.\n\n```ts\nimport { authorize } from '@epilot/sdk'\nimport { getClient } from '@epilot/sdk/entity'\n\n// Per-client \u2014 function predicate (recommended)\nconst entityClient = getClient()\nauthorize(entityClient, () => '<my-token>')\n\n// Per-client \u2014 async function (e.g. OAuth / session)\nauthorize(entityClient, async () => {\n return await getTokenFromSession()\n})\n\n// Per-client \u2014 static string (sets default header once)\nauthorize(entityClient, 'my-static-api-token')\n```\n\n```ts\n// Global \u2014 applies to all clients resolved from the SDK\nimport { epilot } from '@epilot/sdk'\n\nepilot.authorize(() => '<my-token>')\nepilot.authorize(async () => await getTokenFromSession())\nepilot.authorize('my-static-api-token')\n```\n\n## Fresh Client Instance\n\n```ts\nimport { createClient, authorize } from '@epilot/sdk/entity'\n\nconst entityClient = createClient()\nauthorize(entityClient, () => '<my-token>')\nentityClient.defaults.headers.common['x-epilot-org-id'] = 'org-123'\n```\n\n## Multiple SDK Instances\n\n```ts\nimport { createSDK } from '@epilot/sdk'\n\nconst sdk1 = createSDK()\nsdk1.authorize(() => '<token-for-org-1>')\nsdk1.headers({ 'x-epilot-org-id': 'org-1' })\n\nconst sdk2 = createSDK()\nsdk2.authorize(() => '<token-for-org-2>')\nsdk2.headers({ 'x-epilot-org-id': 'org-2' })\n```\n\n\n## Interceptors\n\nUse axios interceptors for custom request/response processing. Since clients are axios instances, you can use `client.interceptors` directly:\n\n```ts\nentityClient.interceptors.response.use((response) => {\n console.debug(`${response.config.method?.toUpperCase()} ${response.config.url}`, {\n status: response.status,\n data: response.data,\n })\n return response\n})\n```\n\nOr register global interceptors applied to all clients:\n\n```ts\nepilot.interceptors.request((config) => {\n config.headers['x-correlation-id'] = generateTraceId()\n return config\n})\n```\n\n## Auto-Retry (429 Too Many Requests)\n\nThe 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.\n\nEnabled by default with up to 3 retries.\n\n```ts\nimport { epilot } from '@epilot/sdk'\n\n// Customize retry behavior\nepilot.retry({ maxRetries: 5, defaultDelayMs: 2000 })\n\n// Disable retries\nepilot.retry({ maxRetries: 0 })\n```\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `maxRetries` | `3` | Maximum number of retries. Set to `0` to disable. |\n| `defaultDelayMs` | `1000` | Fallback delay in ms when `Retry-After` header is missing. |\n\nFor individually imported clients (tree-shakeable imports), apply the interceptor manually:\n\n```ts\nimport { getClient, authorize } from '@epilot/sdk/entity'\nimport { applyRetryInterceptor } from '@epilot/sdk'\n\nconst entityClient = getClient()\nauthorize(entityClient, () => '<my-token>')\napplyRetryInterceptor({ client: entityClient, config: { maxRetries: 3 } })\n```\n\n## Large Response Handling (413 Payload Too Large)\n\nepilot 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.\n\nThe SDK handles this transparently \u2014 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.\n\n```ts\nimport { epilot } from '@epilot/sdk'\n\n// Disable large response handling\nepilot.largeResponse({ enabled: false })\n```\n\nFor individually imported clients (tree-shakeable imports), apply the interceptor manually:\n\n```ts\nimport { getClient, authorize } from '@epilot/sdk/entity'\nimport { applyLargeResponseInterceptor } from '@epilot/sdk'\n\nconst entityClient = getClient()\nauthorize(entityClient, () => '<my-token>')\napplyLargeResponseInterceptor({ client: entityClient, config: { enabled: true } })\n```\n\n## Overrides & Custom APIs\n\nOverride 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.\n\n```json\n{\n \"entity\": \"./specs/entity-openapi.json\",\n \"myNewApi\": \"./specs/my-new-api-openapi.json\"\n}\n```\n\n```ts\n// Built-in API with overridden spec\nconst { data } = await epilot.entity.getEntity({ slug: 'contact', id: '123' })\n```\n\n### Override Commands\n\n```bash\n# Apply all overrides from .epilot/sdk-overrides.json\nnpx epilot-sdk override\n\n# Override a single API\nnpx epilot-sdk override entity ./my-local-entity-spec.yaml\n\n# Regenerate types after spec changes\nnpx epilot-sdk typegen\n```\n\n<details>\n<summary>Migration from <code>@epilot/*-client</code></summary>\n\nDrop-in replacement \u2014 just change the import path:\n\n```ts\n// Before\nimport { getClient, createClient, authorize } from '@epilot/entity-client'\nimport type { Client, Entity } from '@epilot/entity-client'\n\n// After\nimport { getClient, createClient, authorize } from '@epilot/sdk/entity'\nimport type { Client, Entity } from '@epilot/sdk/entity'\n```\n\n</details>\n\n<details>\n<summary>Client Lifecycle</summary>\n\nWhen 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.\n\n**Operation methods are always up to date** \u2014 calls like `epilot.entity.getEntity(...)` re-resolve the client on every invocation, so they always use the latest config.\n\n**Direct `getClient()` references can go stale** \u2014 if you hold a reference and then change config, your reference still points to the old client:\n\n```ts\nconst entityClient = epilot.entity.getClient()\n\nepilot.authorize('new-token') // invalidates all cached clients\n\n// entityClient still has the old token\n// epilot.entity.getEntity(...) will use a new client with the new token\n```\n\nIf you need a long-lived reference that survives config changes, call `getClient()` again after changing config, or use operation methods directly.\n\n</details>\n";
5
- export {
6
- README_default as default
7
- };
@@ -1,7 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
2
-
3
- // src/docs/README.json
4
- var README_default = "<h1 align=\"center\"><img alt=\"epilot\" src=\"https://raw.githubusercontent.com/epilot-dev/sdk-js/main/logo.png\" width=\"200\"><br>@epilot/sdk</h1>\n\n<p align=\"center\">\n <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>\n <a href=\"https://www.npmjs.com/package/@epilot/sdk\"><img src=\"https://img.shields.io/npm/v/@epilot/sdk.svg\" alt=\"npm version\"></a>\n <a href=\"https://github.com/epilot-dev/sdk-js/blob/main/\"><img src=\"http://img.shields.io/:license-mit-blue.svg\" alt=\"License\"></a>\n</p>\n\n<p align=\"center\">JavaScript/TypeScript SDK for epilot APIs. Full types, tree-shakeable imports, and lazy-loaded OpenAPI specs.</p>\n\n## Install\n\n```bash\nnpm i @epilot/sdk axios openapi-client-axios\n```\n\n## Quick Start\n\n```ts\nimport { epilot } from '@epilot/sdk'\n\nepilot.authorize(() => '<my-bearer-token>')\n\nconst { data: entity } = await epilot.entity.createEntity(\n { slug: 'contact' },\n { first_name: 'John', last_name: 'Doe' },\n)\n\nconst { data: file } = await epilot.file.getFile({ id: 'file-123' })\n\nconst { data: executions } = await epilot.workflow.getExecutions()\n```\n\nAPI 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 \u2014 the spec is loaded and the client initialized on first use, then cached.\n\nFull API documentation: [https://docs.epilot.io/api](https://docs.epilot.io/api)\n\n## API Reference\n\n<!-- api-reference-table -->\n| API | Import | Docs |\n| --- | ------ | ---- |\n| `epilot.accessToken` | `@epilot/sdk/access-token` | [docs](./docs/access-token.md) |\n| `epilot.address` | `@epilot/sdk/address` | [docs](./docs/address.md) |\n| `epilot.addressSuggestions` | `@epilot/sdk/address-suggestions` | [docs](./docs/address-suggestions.md) |\n| `epilot.aiAgents` | `@epilot/sdk/ai-agents` | [docs](./docs/ai-agents.md) |\n| `epilot.app` | `@epilot/sdk/app` | [docs](./docs/app.md) |\n| `epilot.auditLogs` | `@epilot/sdk/audit-logs` | [docs](./docs/audit-logs.md) |\n| `epilot.automation` | `@epilot/sdk/automation` | [docs](./docs/automation.md) |\n| `epilot.billing` | `@epilot/sdk/billing` | [docs](./docs/billing.md) |\n| `epilot.blueprintManifest` | `@epilot/sdk/blueprint-manifest` | [docs](./docs/blueprint-manifest.md) |\n| `epilot.calendar` | `@epilot/sdk/calendar` | [docs](./docs/calendar.md) |\n| `epilot.configurationHub` | `@epilot/sdk/configuration-hub` | [docs](./docs/configuration-hub.md) |\n| `epilot.consent` | `@epilot/sdk/consent` | [docs](./docs/consent.md) |\n| `epilot.customerPortal` | `@epilot/sdk/customer-portal` | [docs](./docs/customer-portal.md) |\n| `epilot.dashboard` | `@epilot/sdk/dashboard` | [docs](./docs/dashboard.md) |\n| `epilot.dataGovernance` | `@epilot/sdk/data-governance` | [docs](./docs/data-governance.md) |\n| `epilot.deduplication` | `@epilot/sdk/deduplication` | [docs](./docs/deduplication.md) |\n| `epilot.design` | `@epilot/sdk/design` | [docs](./docs/design.md) |\n| `epilot.document` | `@epilot/sdk/document` | [docs](./docs/document.md) |\n| `epilot.emailSettings` | `@epilot/sdk/email-settings` | [docs](./docs/email-settings.md) |\n| `epilot.emailTemplate` | `@epilot/sdk/email-template` | [docs](./docs/email-template.md) |\n| `epilot.entity` | `@epilot/sdk/entity` | [docs](./docs/entity.md) |\n| `epilot.entityMapping` | `@epilot/sdk/entity-mapping` | [docs](./docs/entity-mapping.md) |\n| `epilot.environments` | `@epilot/sdk/environments` | [docs](./docs/environments.md) |\n| `epilot.eventCatalog` | `@epilot/sdk/event-catalog` | [docs](./docs/event-catalog.md) |\n| `epilot.file` | `@epilot/sdk/file` | [docs](./docs/file.md) |\n| `epilot.iban` | `@epilot/sdk/iban` | [docs](./docs/iban.md) |\n| `epilot.integrationToolkit` | `@epilot/sdk/integration-toolkit` | [docs](./docs/integration-toolkit.md) |\n| `epilot.journey` | `@epilot/sdk/journey` | [docs](./docs/journey.md) |\n| `epilot.kanban` | `@epilot/sdk/kanban` | [docs](./docs/kanban.md) |\n| `epilot.message` | `@epilot/sdk/message` | [docs](./docs/message.md) |\n| `epilot.metering` | `@epilot/sdk/metering` | [docs](./docs/metering.md) |\n| `epilot.notes` | `@epilot/sdk/notes` | [docs](./docs/notes.md) |\n| `epilot.notification` | `@epilot/sdk/notification` | [docs](./docs/notification.md) |\n| `epilot.organization` | `@epilot/sdk/organization` | [docs](./docs/organization.md) |\n| `epilot.partnerDirectory` | `@epilot/sdk/partner-directory` | [docs](./docs/partner-directory.md) |\n| `epilot.permissions` | `@epilot/sdk/permissions` | [docs](./docs/permissions.md) |\n| `epilot.pricing` | `@epilot/sdk/pricing` | [docs](./docs/pricing.md) |\n| `epilot.pricingTier` | `@epilot/sdk/pricing-tier` | [docs](./docs/pricing-tier.md) |\n| `epilot.purpose` | `@epilot/sdk/purpose` | [docs](./docs/purpose.md) |\n| `epilot.query` | `@epilot/sdk/query` | [docs](./docs/query.md) |\n| `epilot.sandbox` | `@epilot/sdk/sandbox` | [docs](./docs/sandbox.md) |\n| `epilot.sharing` | `@epilot/sdk/sharing` | [docs](./docs/sharing.md) |\n| `epilot.submission` | `@epilot/sdk/submission` | [docs](./docs/submission.md) |\n| `epilot.targeting` | `@epilot/sdk/targeting` | [docs](./docs/targeting.md) |\n| `epilot.templateVariables` | `@epilot/sdk/template-variables` | [docs](./docs/template-variables.md) |\n| `epilot.user` | `@epilot/sdk/user` | [docs](./docs/user.md) |\n| `epilot.validationRules` | `@epilot/sdk/validation-rules` | [docs](./docs/validation-rules.md) |\n| `epilot.webhooks` | `@epilot/sdk/webhooks` | [docs](./docs/webhooks.md) |\n| `epilot.workflow` | `@epilot/sdk/workflow` | [docs](./docs/workflow.md) |\n| `epilot.workflowDefinition` | `@epilot/sdk/workflow-definition` | [docs](./docs/workflow-definition.md) |\n<!-- /api-reference-table -->\n\n## OpenAPI Spec\n\nRetrieve the full OpenAPI specification for any API at runtime. The spec is lazy-loaded on first call and cached.\n\n```ts\nimport { epilot } from '@epilot/sdk'\n\n// Via API handle\nconst entitySpec = await epilot.entity.openapi()\nconsole.log(entitySpec.info.title) // \"Entity API\"\nconsole.log(entitySpec.paths) // all paths with full schemas\n\n// Via top-level method\nconst spec = await epilot.openapi('entity')\n```\n\nFor tree-shakeable imports:\n\n```ts\nimport { openapi } from '@epilot/sdk/entity'\n\nconst spec = await openapi()\n```\n\n## Explicit Client Access\n\n```ts\nimport { epilot } from '@epilot/sdk'\n\nepilot.authorize(() => '<my-token>')\n\n// Get the cached singleton client\nconst entityClient = epilot.entity.getClient()\nconst { data } = await entityClient.getEntity({ slug: 'contact', id: '123' })\n\n// Create a fresh (non-singleton) client instance\nconst freshClient = epilot.entity.createClient()\nauthorize(freshClient, () => '<my-token>')\n```\n\n## Tree-Shakeable Imports\n\nImport only what you need. Other APIs never touch your bundle.\n\n```ts\nimport { getClient, authorize } from '@epilot/sdk/entity'\n\nconst entityClient = getClient()\nauthorize(entityClient, () => '<my-token>')\n\nconst { data } = await entityClient.getEntity({ slug: 'contact', id: '123' })\n\n// Or use the handle for direct operation forwarding\nimport { entity } from '@epilot/sdk/entity'\nconst { data } = await entity.getEntity({ slug: 'contact', id: '123' })\n```\n\n## Types\n\nEach API subpath re-exports all schema types generated from the OpenAPI spec. Import them directly:\n\n```ts\nimport type { Entity, EntitySchema, RelationAttribute } from '@epilot/sdk/entity'\nimport type { FileItem } from '@epilot/sdk/file'\nimport type { AutomationFlow } from '@epilot/sdk/automation'\n```\n\nThe `Client`, `OperationMethods`, and `PathsDictionary` types are also available for typing client instances:\n\n```ts\nimport type { Client } from '@epilot/sdk/entity'\n\nconst entityClient: Client = epilot.entity.getClient()\n```\n\n## Headers\n\n### Global Headers\n\nSet default headers applied to all clients. Useful for `x-epilot-org-id`, `x-epilot-user-id`, etc.\n\n```ts\nimport { epilot } from '@epilot/sdk'\n\nepilot.authorize(() => '<my-token>')\nepilot.headers({\n 'x-epilot-org-id': 'org-123',\n 'x-epilot-user-id': 'user-456',\n})\n\nconst { data } = await epilot.entity.searchEntities(...)\n```\n\n### Standard Axios Headers\n\nUse standard axios `defaults.headers.common` on individual clients:\n\n```ts\nconst entityClient = epilot.entity.getClient()\nentityClient.defaults.headers.common['x-epilot-org-id'] = 'org-123'\n```\n\n## Auth Patterns\n\n`authorize()` accepts a string or a function. The function form is preferred \u2014 it is called on every request, so tokens stay fresh.\n\n```ts\nimport { authorize } from '@epilot/sdk'\nimport { getClient } from '@epilot/sdk/entity'\n\n// Per-client \u2014 function predicate (recommended)\nconst entityClient = getClient()\nauthorize(entityClient, () => '<my-token>')\n\n// Per-client \u2014 async function (e.g. OAuth / session)\nauthorize(entityClient, async () => {\n return await getTokenFromSession()\n})\n\n// Per-client \u2014 static string (sets default header once)\nauthorize(entityClient, 'my-static-api-token')\n```\n\n```ts\n// Global \u2014 applies to all clients resolved from the SDK\nimport { epilot } from '@epilot/sdk'\n\nepilot.authorize(() => '<my-token>')\nepilot.authorize(async () => await getTokenFromSession())\nepilot.authorize('my-static-api-token')\n```\n\n## Fresh Client Instance\n\n```ts\nimport { createClient, authorize } from '@epilot/sdk/entity'\n\nconst entityClient = createClient()\nauthorize(entityClient, () => '<my-token>')\nentityClient.defaults.headers.common['x-epilot-org-id'] = 'org-123'\n```\n\n## Multiple SDK Instances\n\n```ts\nimport { createSDK } from '@epilot/sdk'\n\nconst sdk1 = createSDK()\nsdk1.authorize(() => '<token-for-org-1>')\nsdk1.headers({ 'x-epilot-org-id': 'org-1' })\n\nconst sdk2 = createSDK()\nsdk2.authorize(() => '<token-for-org-2>')\nsdk2.headers({ 'x-epilot-org-id': 'org-2' })\n```\n\n\n## Interceptors\n\nUse axios interceptors for custom request/response processing. Since clients are axios instances, you can use `client.interceptors` directly:\n\n```ts\nentityClient.interceptors.response.use((response) => {\n console.debug(`${response.config.method?.toUpperCase()} ${response.config.url}`, {\n status: response.status,\n data: response.data,\n })\n return response\n})\n```\n\nOr register global interceptors applied to all clients:\n\n```ts\nepilot.interceptors.request((config) => {\n config.headers['x-correlation-id'] = generateTraceId()\n return config\n})\n```\n\n## Auto-Retry (429 Too Many Requests)\n\nThe 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.\n\nEnabled by default with up to 3 retries.\n\n```ts\nimport { epilot } from '@epilot/sdk'\n\n// Customize retry behavior\nepilot.retry({ maxRetries: 5, defaultDelayMs: 2000 })\n\n// Disable retries\nepilot.retry({ maxRetries: 0 })\n```\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `maxRetries` | `3` | Maximum number of retries. Set to `0` to disable. |\n| `defaultDelayMs` | `1000` | Fallback delay in ms when `Retry-After` header is missing. |\n\nFor individually imported clients (tree-shakeable imports), apply the interceptor manually:\n\n```ts\nimport { getClient, authorize } from '@epilot/sdk/entity'\nimport { applyRetryInterceptor } from '@epilot/sdk'\n\nconst entityClient = getClient()\nauthorize(entityClient, () => '<my-token>')\napplyRetryInterceptor({ client: entityClient, config: { maxRetries: 3 } })\n```\n\n## Large Response Handling (413 Payload Too Large)\n\nepilot 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.\n\nThe SDK handles this transparently \u2014 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.\n\n```ts\nimport { epilot } from '@epilot/sdk'\n\n// Disable large response handling\nepilot.largeResponse({ enabled: false })\n```\n\nFor individually imported clients (tree-shakeable imports), apply the interceptor manually:\n\n```ts\nimport { getClient, authorize } from '@epilot/sdk/entity'\nimport { applyLargeResponseInterceptor } from '@epilot/sdk'\n\nconst entityClient = getClient()\nauthorize(entityClient, () => '<my-token>')\napplyLargeResponseInterceptor({ client: entityClient, config: { enabled: true } })\n```\n\n## Overrides & Custom APIs\n\nOverride 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.\n\n```json\n{\n \"entity\": \"./specs/entity-openapi.json\",\n \"myNewApi\": \"./specs/my-new-api-openapi.json\"\n}\n```\n\n```ts\n// Built-in API with overridden spec\nconst { data } = await epilot.entity.getEntity({ slug: 'contact', id: '123' })\n```\n\n### Override Commands\n\n```bash\n# Apply all overrides from .epilot/sdk-overrides.json\nnpx epilot-sdk override\n\n# Override a single API\nnpx epilot-sdk override entity ./my-local-entity-spec.yaml\n\n# Regenerate types after spec changes\nnpx epilot-sdk typegen\n```\n\n<details>\n<summary>Migration from <code>@epilot/*-client</code></summary>\n\nDrop-in replacement \u2014 just change the import path:\n\n```ts\n// Before\nimport { getClient, createClient, authorize } from '@epilot/entity-client'\nimport type { Client, Entity } from '@epilot/entity-client'\n\n// After\nimport { getClient, createClient, authorize } from '@epilot/sdk/entity'\nimport type { Client, Entity } from '@epilot/sdk/entity'\n```\n\n</details>\n\n<details>\n<summary>Client Lifecycle</summary>\n\nWhen 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.\n\n**Operation methods are always up to date** \u2014 calls like `epilot.entity.getEntity(...)` re-resolve the client on every invocation, so they always use the latest config.\n\n**Direct `getClient()` references can go stale** \u2014 if you hold a reference and then change config, your reference still points to the old client:\n\n```ts\nconst entityClient = epilot.entity.getClient()\n\nepilot.authorize('new-token') // invalidates all cached clients\n\n// entityClient still has the old token\n// epilot.entity.getEntity(...) will use a new client with the new token\n```\n\nIf you need a long-lived reference that survives config changes, call `getClient()` again after changing config, or use operation methods directly.\n\n</details>\n";
5
-
6
-
7
- exports.default = README_default;
@@ -1,14 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
4
-
5
- // src/definitions/design-runtime.json
6
- var require_design_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
- "src/definitions/design-runtime.json"(exports, module) {
8
- module.exports = { s: "https://design-builder-api.{environment}.epilot.io", o: [["getAllDesigns", "get", "/v1/designs"], ["addDesign", "post", "/v1/designs", null, 1], ["getDesign", "get", "/v1/designs/{designId}", [["designId", "p", true]]], ["deleteDesign", "delete", "/v1/designs/{designId}", [["designId", "p", true]]], ["updateDesign", "put", "/v1/designs/{designId}", [["designId", "p", true]], 1], ["getThemeFromDesign", "get", "/v1/designs/{designId}/parse", [["designId", "p", true], ["orgId", "q"], ["theme", "q", true]]], ["uploadFile", "post", "/v1/designs/files", null, 1], ["getFiles", "get", "/v1/designs/files", [["type", "q"]]], ["getLimit", "get", "/v1/designs/limit"], ["getBrands", "get", "/v1/brands"], ["getConsumerDesign", "get", "/v1/designs/consumer/{application}/{consumerId}", [["consumerId", "p", true], ["application", "p", true]]], ["addConsumer", "put", "/v1/designs/addConsumer/{application}/{designId}", [["designId", "p", true], ["application", "p", true]], 1], ["removeConsumer", "put", "/v1/designs/removeConsumer/{application}/{designId}", [["designId", "p", true], ["application", "p", true]], 1]], sv: { environment: { default: "sls", enum: ["sls", "dev.sls", "staging.sls"] } }, v: "3.0.3" };
9
- }
10
- });
11
-
12
-
13
-
14
- exports.require_design_runtime = require_design_runtime;
@@ -1,14 +0,0 @@
1
- import {
2
- __commonJS
3
- } from "./chunk-YPSWSI3M.js";
4
-
5
- // src/definitions/design-runtime.json
6
- var require_design_runtime = __commonJS({
7
- "src/definitions/design-runtime.json"(exports, module) {
8
- module.exports = { s: "https://design-builder-api.{environment}.epilot.io", o: [["getAllDesigns", "get", "/v1/designs"], ["addDesign", "post", "/v1/designs", null, 1], ["getDesign", "get", "/v1/designs/{designId}", [["designId", "p", true]]], ["deleteDesign", "delete", "/v1/designs/{designId}", [["designId", "p", true]]], ["updateDesign", "put", "/v1/designs/{designId}", [["designId", "p", true]], 1], ["getThemeFromDesign", "get", "/v1/designs/{designId}/parse", [["designId", "p", true], ["orgId", "q"], ["theme", "q", true]]], ["uploadFile", "post", "/v1/designs/files", null, 1], ["getFiles", "get", "/v1/designs/files", [["type", "q"]]], ["getLimit", "get", "/v1/designs/limit"], ["getBrands", "get", "/v1/brands"], ["getConsumerDesign", "get", "/v1/designs/consumer/{application}/{consumerId}", [["consumerId", "p", true], ["application", "p", true]]], ["addConsumer", "put", "/v1/designs/addConsumer/{application}/{designId}", [["designId", "p", true], ["application", "p", true]], 1], ["removeConsumer", "put", "/v1/designs/removeConsumer/{application}/{designId}", [["designId", "p", true], ["application", "p", true]], 1]], sv: { environment: { default: "sls", enum: ["sls", "dev.sls", "staging.sls"] } }, v: "3.0.3" };
9
- }
10
- });
11
-
12
- export {
13
- require_design_runtime
14
- };
@@ -1,14 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
4
-
5
- // src/definitions/journey-runtime.json
6
- var require_journey_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
- "src/definitions/journey-runtime.json"(exports, module) {
8
- module.exports = { s: "https://journey-config.sls.epilot.io", o: [["getJourneysByOrgId", "get", "/v1/journey/organization/{id}", [["id", "p", true], ["hydrate", "q"]]], ["getJourney", "get", "/v1/journey/configuration/{id}", [["id", "p", true], ["source", "q"], ["orgId", "q"]]], ["removeJourney", "delete", "/v1/journey/configuration/{id}", [["id", "p", true]]], ["getJourneyProducts", "get", "/v1/journey/products/{id}", [["id", "p", true], ["source", "q"], ["postal_code", "q"], ["city", "q"], ["street", "q"], ["street_number", "q"]]], ["createJourney", "post", "/v1/journey/configuration", [["skipAutomation", "q"]], 1], ["updateJourney", "put", "/v1/journey/configuration", null, 1], ["patchUpdateJourney", "patch", "/v1/journey/configuration", null, 1], ["searchJourneys", "post", "/v1/journey/configuration/search", null, 1], ["generateDocument", "post", "/v1/journey/document:generate", null, 1], ["createJourneyV2", "post", "/v2/journey/configuration", [["skipAutomation", "q"]], 1], ["updateJourneyV2", "put", "/v2/journey/configuration", null, 1], ["patchUpdateJourneyV2", "patch", "/v2/journey/configuration", null, 1], ["getJourneyV2", "get", "/v2/journey/configuration/{id}", [["id", "p", true]]], ["removeJourneyV2", "delete", "/v2/journey/configuration/{id}", [["id", "p", true]]], ["getSettingsForJourney", "get", "/v1/journey/{id}/settings", [["id", "p", true]]], ["getButtonOptions", "get", "/v1/journey/button-options", [["fileId", "q", true]]]], v: "3.0.0" };
9
- }
10
- });
11
-
12
-
13
-
14
- exports.require_journey_runtime = require_journey_runtime;
@@ -1,14 +0,0 @@
1
- import {
2
- __commonJS
3
- } from "./chunk-YPSWSI3M.js";
4
-
5
- // src/definitions/journey-runtime.json
6
- var require_journey_runtime = __commonJS({
7
- "src/definitions/journey-runtime.json"(exports, module) {
8
- module.exports = { s: "https://journey-config.sls.epilot.io", o: [["getJourneysByOrgId", "get", "/v1/journey/organization/{id}", [["id", "p", true], ["hydrate", "q"]]], ["getJourney", "get", "/v1/journey/configuration/{id}", [["id", "p", true], ["source", "q"], ["orgId", "q"]]], ["removeJourney", "delete", "/v1/journey/configuration/{id}", [["id", "p", true]]], ["getJourneyProducts", "get", "/v1/journey/products/{id}", [["id", "p", true], ["source", "q"], ["postal_code", "q"], ["city", "q"], ["street", "q"], ["street_number", "q"]]], ["createJourney", "post", "/v1/journey/configuration", [["skipAutomation", "q"]], 1], ["updateJourney", "put", "/v1/journey/configuration", null, 1], ["patchUpdateJourney", "patch", "/v1/journey/configuration", null, 1], ["searchJourneys", "post", "/v1/journey/configuration/search", null, 1], ["generateDocument", "post", "/v1/journey/document:generate", null, 1], ["createJourneyV2", "post", "/v2/journey/configuration", [["skipAutomation", "q"]], 1], ["updateJourneyV2", "put", "/v2/journey/configuration", null, 1], ["patchUpdateJourneyV2", "patch", "/v2/journey/configuration", null, 1], ["getJourneyV2", "get", "/v2/journey/configuration/{id}", [["id", "p", true]]], ["removeJourneyV2", "delete", "/v2/journey/configuration/{id}", [["id", "p", true]]], ["getSettingsForJourney", "get", "/v1/journey/{id}/settings", [["id", "p", true]]], ["getButtonOptions", "get", "/v1/journey/button-options", [["fileId", "q", true]]]], v: "3.0.0" };
9
- }
10
- });
11
-
12
- export {
13
- require_journey_runtime
14
- };
@@ -1,7 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
2
-
3
- // src/docs/configuration-hub.json
4
- var configuration_hub_default = '# Configuration Hub API\n\n- **Base URL:** `https://configuration-hub.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/configuration-hub](https://docs.epilot.io/api/configuration-hub)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.configurationHub.listConfigTypes(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/configuration-hub\'\n\nconst configurationHubClient = getClient()\nauthorize(configurationHubClient, () => \'<token>\')\nconst { data } = await configurationHubClient.listConfigTypes(...)\n```\n\n## Operations\n\n**Configs**\n- [`listConfigTypes`](#listconfigtypes)\n- [`listConfigs`](#listconfigs)\n- [`getConfigDependencies`](#getconfigdependencies)\n- [`getConfigUsedBy`](#getconfigusedby)\n- [`getIndex`](#getindex)\n- [`rebuildIndex`](#rebuildindex)\n\n**Schemas**\n- [`ResourceType`](#resourcetype)\n- [`ConfigTypeInfo`](#configtypeinfo)\n- [`ConfigNode`](#confignode)\n- [`ConfigListResponse`](#configlistresponse)\n- [`ConfigDependenciesResponse`](#configdependenciesresponse)\n- [`IndexRebuildResponse`](#indexrebuildresponse)\n- [`IndexStatusResponse`](#indexstatusresponse)\n- [`ErrorResponse`](#errorresponse)\n\n### `listConfigTypes`\n\nReturns the static list of available configuration types with display metadata.\nThis is a cheap call \u2014 no fan-out to downstream APIs. Returns all known types\nwith labels and icons. The frontend should\n\n`GET /v1/configs/types`\n\n```ts\nconst { data } = await client.listConfigTypes()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "type": "journey",\n "label": "Journeys",\n "icon": "Route",\n "source_api": "https://journey.sls.epilot.io",\n "sdk_client": "@epilot/sdk/journey"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listConfigs`\n\nList configs of a given type with pagination. Returns summary metadata only\n(not full payloads). The frontend calls this per type folder when expanding.\n\n`GET /v1/configs/{type}`\n\n```ts\nconst { data } = await client.listConfigs({\n type: \'example\',\n cursor: \'example\',\n size: 1,\n q: \'example\',\n updated_after: \'example\',\n updated_before: \'example\',\n purposes: \'example\',\n blueprint_ids: \'example\',\n sort: \'example\',\n active_only: true,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "type": "journey",\n "label": "string",\n "icon": "string",\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "aliases": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path",\n "metadata": {}\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getConfigDependencies`\n\nGet configs that are referenced by the given config.\nUsed to render children when expanding a config node in the tree.\n\n`GET /v1/configs/{type}/{id}/dependencies`\n\n```ts\nconst { data } = await client.getConfigDependencies({\n type: \'example\',\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n cursor: \'example\',\n size: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "aliases": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path",\n "metadata": {}\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getConfigUsedBy`\n\nGet configs that reference the given config (reverse dependencies).\nScans the indexed config items for references to this config\'s ID or aliases.\n\n`GET /v1/configs/{type}/{id}/used_by`\n\n```ts\nconst { data } = await client.getConfigUsedBy({\n type: \'example\',\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "aliases": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path",\n "metadata": {}\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getIndex`\n\nReturn the current index build state for the caller\'s organization.\nClients poll this to decide whether to show a "building" indicator\nand when to refetch data.\n\n`GET /v1/configs/index`\n\n```ts\nconst { data } = await client.getIndex()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "status": "missing",\n "last_built_at": "1970-01-01T00:00:00.000Z",\n "total_items": 0,\n "build_duration_ms": 0\n}\n```\n\n</details>\n\n---\n\n### `rebuildIndex`\n\nRebuild the configuration index for the caller\'s organization.\nFire-and-forget: invokes the async worker and returns immediately.\nA new rebuild will cancel any in-flight build (see `build_token`).\n\n`POST /v1/configs/index:rebuild`\n\n```ts\nconst { data } = await client.rebuildIndex()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "status": "ready",\n "last_built_at": "1970-01-01T00:00:00.000Z",\n "total_items": 0,\n "build_duration_ms": 0,\n "failed_types": ["string"]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `ResourceType`\n\nConfiguration resource type identifier.\nMatches blueprint-manifest-api V3 naming conventions.\n\n\n```ts\ntype ResourceType = "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n```\n\n### `ConfigTypeInfo`\n\nStatic metadata for a config type folder in the tree.\nNo downstream API calls \u2014 just type + label + icon + source API info.\n\n\n```ts\ntype ConfigTypeInfo = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n label: string\n icon: string\n source_api: string\n sdk_client: string\n}\n```\n\n### `ConfigNode`\n\nSummary metadata for a single configuration item in the tree\n\n```ts\ntype ConfigNode = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n aliases?: string[]\n purposes?: string[]\n link?: string // uri\n metadata?: Record<string, unknown>\n}\n```\n\n### `ConfigListResponse`\n\nCursor-paginated list of configs for a specific type\n\n```ts\ntype ConfigListResponse = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n label: string\n icon: string\n total?: number\n next_cursor?: string\n results: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n aliases?: string[]\n purposes?: string[]\n link?: string // uri\n metadata?: Record<string, unknown>\n }>\n}\n```\n\n### `ConfigDependenciesResponse`\n\nCursor-paginated list of configs referenced by a given config\n\n```ts\ntype ConfigDependenciesResponse = {\n total?: number\n next_cursor?: string\n results: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n aliases?: string[]\n purposes?: string[]\n link?: string // uri\n metadata?: Record<string, unknown>\n }>\n}\n```\n\n### `IndexRebuildResponse`\n\nResult of an index rebuild operation\n\n```ts\ntype IndexRebuildResponse = {\n status: "ready" | "building" | "failed" | "already_building"\n last_built_at?: string // date-time\n total_items?: number\n build_duration_ms?: number\n failed_types?: string[]\n}\n```\n\n### `IndexStatusResponse`\n\nCurrent index build state\n\n```ts\ntype IndexStatusResponse = {\n status: "missing" | "building" | "ready" | "failed"\n last_built_at?: string // date-time\n total_items?: number\n build_duration_ms?: number\n}\n```\n\n### `ErrorResponse`\n\n```ts\ntype ErrorResponse = {\n status: number\n error: string\n}\n```\n';
5
-
6
-
7
- exports.default = configuration_hub_default;
@@ -1,7 +0,0 @@
1
- import "./chunk-YPSWSI3M.js";
2
-
3
- // src/docs/configuration-hub.json
4
- var configuration_hub_default = '# Configuration Hub API\n\n- **Base URL:** `https://configuration-hub.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/configuration-hub](https://docs.epilot.io/api/configuration-hub)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.configurationHub.listConfigTypes(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/configuration-hub\'\n\nconst configurationHubClient = getClient()\nauthorize(configurationHubClient, () => \'<token>\')\nconst { data } = await configurationHubClient.listConfigTypes(...)\n```\n\n## Operations\n\n**Configs**\n- [`listConfigTypes`](#listconfigtypes)\n- [`listConfigs`](#listconfigs)\n- [`getConfigDependencies`](#getconfigdependencies)\n- [`getConfigUsedBy`](#getconfigusedby)\n- [`getIndex`](#getindex)\n- [`rebuildIndex`](#rebuildindex)\n\n**Schemas**\n- [`ResourceType`](#resourcetype)\n- [`ConfigTypeInfo`](#configtypeinfo)\n- [`ConfigNode`](#confignode)\n- [`ConfigListResponse`](#configlistresponse)\n- [`ConfigDependenciesResponse`](#configdependenciesresponse)\n- [`IndexRebuildResponse`](#indexrebuildresponse)\n- [`IndexStatusResponse`](#indexstatusresponse)\n- [`ErrorResponse`](#errorresponse)\n\n### `listConfigTypes`\n\nReturns the static list of available configuration types with display metadata.\nThis is a cheap call \u2014 no fan-out to downstream APIs. Returns all known types\nwith labels and icons. The frontend should\n\n`GET /v1/configs/types`\n\n```ts\nconst { data } = await client.listConfigTypes()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "type": "journey",\n "label": "Journeys",\n "icon": "Route",\n "source_api": "https://journey.sls.epilot.io",\n "sdk_client": "@epilot/sdk/journey"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listConfigs`\n\nList configs of a given type with pagination. Returns summary metadata only\n(not full payloads). The frontend calls this per type folder when expanding.\n\n`GET /v1/configs/{type}`\n\n```ts\nconst { data } = await client.listConfigs({\n type: \'example\',\n cursor: \'example\',\n size: 1,\n q: \'example\',\n updated_after: \'example\',\n updated_before: \'example\',\n purposes: \'example\',\n blueprint_ids: \'example\',\n sort: \'example\',\n active_only: true,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "type": "journey",\n "label": "string",\n "icon": "string",\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "aliases": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path",\n "metadata": {}\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getConfigDependencies`\n\nGet configs that are referenced by the given config.\nUsed to render children when expanding a config node in the tree.\n\n`GET /v1/configs/{type}/{id}/dependencies`\n\n```ts\nconst { data } = await client.getConfigDependencies({\n type: \'example\',\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n cursor: \'example\',\n size: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "aliases": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path",\n "metadata": {}\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getConfigUsedBy`\n\nGet configs that reference the given config (reverse dependencies).\nScans the indexed config items for references to this config\'s ID or aliases.\n\n`GET /v1/configs/{type}/{id}/used_by`\n\n```ts\nconst { data } = await client.getConfigUsedBy({\n type: \'example\',\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "aliases": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path",\n "metadata": {}\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getIndex`\n\nReturn the current index build state for the caller\'s organization.\nClients poll this to decide whether to show a "building" indicator\nand when to refetch data.\n\n`GET /v1/configs/index`\n\n```ts\nconst { data } = await client.getIndex()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "status": "missing",\n "last_built_at": "1970-01-01T00:00:00.000Z",\n "total_items": 0,\n "build_duration_ms": 0\n}\n```\n\n</details>\n\n---\n\n### `rebuildIndex`\n\nRebuild the configuration index for the caller\'s organization.\nFire-and-forget: invokes the async worker and returns immediately.\nA new rebuild will cancel any in-flight build (see `build_token`).\n\n`POST /v1/configs/index:rebuild`\n\n```ts\nconst { data } = await client.rebuildIndex()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "status": "ready",\n "last_built_at": "1970-01-01T00:00:00.000Z",\n "total_items": 0,\n "build_duration_ms": 0,\n "failed_types": ["string"]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `ResourceType`\n\nConfiguration resource type identifier.\nMatches blueprint-manifest-api V3 naming conventions.\n\n\n```ts\ntype ResourceType = "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n```\n\n### `ConfigTypeInfo`\n\nStatic metadata for a config type folder in the tree.\nNo downstream API calls \u2014 just type + label + icon + source API info.\n\n\n```ts\ntype ConfigTypeInfo = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n label: string\n icon: string\n source_api: string\n sdk_client: string\n}\n```\n\n### `ConfigNode`\n\nSummary metadata for a single configuration item in the tree\n\n```ts\ntype ConfigNode = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n aliases?: string[]\n purposes?: string[]\n link?: string // uri\n metadata?: Record<string, unknown>\n}\n```\n\n### `ConfigListResponse`\n\nCursor-paginated list of configs for a specific type\n\n```ts\ntype ConfigListResponse = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n label: string\n icon: string\n total?: number\n next_cursor?: string\n results: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n aliases?: string[]\n purposes?: string[]\n link?: string // uri\n metadata?: Record<string, unknown>\n }>\n}\n```\n\n### `ConfigDependenciesResponse`\n\nCursor-paginated list of configs referenced by a given config\n\n```ts\ntype ConfigDependenciesResponse = {\n total?: number\n next_cursor?: string\n results: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n aliases?: string[]\n purposes?: string[]\n link?: string // uri\n metadata?: Record<string, unknown>\n }>\n}\n```\n\n### `IndexRebuildResponse`\n\nResult of an index rebuild operation\n\n```ts\ntype IndexRebuildResponse = {\n status: "ready" | "building" | "failed" | "already_building"\n last_built_at?: string // date-time\n total_items?: number\n build_duration_ms?: number\n failed_types?: string[]\n}\n```\n\n### `IndexStatusResponse`\n\nCurrent index build state\n\n```ts\ntype IndexStatusResponse = {\n status: "missing" | "building" | "ready" | "failed"\n last_built_at?: string // date-time\n total_items?: number\n build_duration_ms?: number\n}\n```\n\n### `ErrorResponse`\n\n```ts\ntype ErrorResponse = {\n status: number\n error: string\n}\n```\n';
5
- export {
6
- configuration_hub_default as default
7
- };