@epilot/sdk 2.8.0-rc.0 → 2.8.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 (279) hide show
  1. package/README.md +0 -1
  2. package/definitions/blueprint-manifest-runtime.json +1 -1
  3. package/definitions/blueprint-manifest.json +744 -20
  4. package/definitions/customer-portal-runtime.json +1 -1
  5. package/definitions/customer-portal.json +317 -26
  6. package/definitions/design.json +51 -1
  7. package/definitions/event-catalog-runtime.json +1 -1
  8. package/definitions/event-catalog.json +168 -12
  9. package/definitions/file-runtime.json +1 -1
  10. package/definitions/file.json +152 -4
  11. package/definitions/integration-toolkit-runtime.json +1 -1
  12. package/definitions/integration-toolkit.json +782 -13
  13. package/definitions/notes-runtime.json +1 -1
  14. package/definitions/notes.json +123 -1
  15. package/definitions/pricing.json +224 -406
  16. package/definitions/targeting-runtime.json +1 -1
  17. package/definitions/targeting.json +257 -7
  18. package/definitions/webhooks.json +31 -0
  19. package/dist/README-46VYEGGW.js +7 -0
  20. package/dist/README-IVBISSWB.cjs +7 -0
  21. package/dist/{_index-YTOJUFGD.js → _index-5FB6F5YY.js} +0 -3
  22. package/dist/{_index-HTUXYSTD.cjs → _index-DB2VV4PQ.cjs} +1 -4
  23. package/dist/apis/access-token.cjs +6 -6
  24. package/dist/apis/access-token.js +1 -1
  25. package/dist/apis/address-suggestions.cjs +6 -6
  26. package/dist/apis/address-suggestions.js +1 -1
  27. package/dist/apis/address.cjs +6 -6
  28. package/dist/apis/address.js +1 -1
  29. package/dist/apis/ai-agents.cjs +6 -6
  30. package/dist/apis/ai-agents.js +1 -1
  31. package/dist/apis/app.cjs +6 -6
  32. package/dist/apis/app.js +1 -1
  33. package/dist/apis/audit-logs.cjs +6 -6
  34. package/dist/apis/audit-logs.js +1 -1
  35. package/dist/apis/automation.cjs +6 -6
  36. package/dist/apis/automation.js +1 -1
  37. package/dist/apis/billing.cjs +6 -6
  38. package/dist/apis/billing.js +1 -1
  39. package/dist/apis/blueprint-manifest.cjs +8 -8
  40. package/dist/apis/blueprint-manifest.d.cts +2 -2
  41. package/dist/apis/blueprint-manifest.d.ts +2 -2
  42. package/dist/apis/blueprint-manifest.js +2 -2
  43. package/dist/apis/calendar.cjs +6 -6
  44. package/dist/apis/calendar.js +1 -1
  45. package/dist/apis/configuration-hub.cjs +6 -6
  46. package/dist/apis/configuration-hub.js +1 -1
  47. package/dist/apis/consent.cjs +6 -6
  48. package/dist/apis/consent.js +1 -1
  49. package/dist/apis/customer-portal.cjs +8 -8
  50. package/dist/apis/customer-portal.d.cts +2 -2
  51. package/dist/apis/customer-portal.d.ts +2 -2
  52. package/dist/apis/customer-portal.js +2 -2
  53. package/dist/apis/dashboard.cjs +6 -6
  54. package/dist/apis/dashboard.js +1 -1
  55. package/dist/apis/data-governance.cjs +6 -6
  56. package/dist/apis/data-governance.js +1 -1
  57. package/dist/apis/deduplication.cjs +6 -6
  58. package/dist/apis/deduplication.js +1 -1
  59. package/dist/apis/design.cjs +6 -6
  60. package/dist/apis/design.d.cts +2 -2
  61. package/dist/apis/design.d.ts +2 -2
  62. package/dist/apis/design.js +1 -1
  63. package/dist/apis/document.cjs +6 -6
  64. package/dist/apis/document.js +1 -1
  65. package/dist/apis/email-settings.cjs +6 -6
  66. package/dist/apis/email-settings.js +1 -1
  67. package/dist/apis/email-template.cjs +6 -6
  68. package/dist/apis/email-template.js +1 -1
  69. package/dist/apis/entity-mapping.cjs +6 -6
  70. package/dist/apis/entity-mapping.js +1 -1
  71. package/dist/apis/entity.cjs +6 -6
  72. package/dist/apis/entity.js +1 -1
  73. package/dist/apis/environments.cjs +6 -6
  74. package/dist/apis/environments.js +1 -1
  75. package/dist/apis/event-catalog.cjs +8 -8
  76. package/dist/apis/event-catalog.d.cts +2 -2
  77. package/dist/apis/event-catalog.d.ts +2 -2
  78. package/dist/apis/event-catalog.js +2 -2
  79. package/dist/apis/file.cjs +8 -8
  80. package/dist/apis/file.d.cts +2 -2
  81. package/dist/apis/file.d.ts +2 -2
  82. package/dist/apis/file.js +2 -2
  83. package/dist/apis/iban.cjs +6 -6
  84. package/dist/apis/iban.js +1 -1
  85. package/dist/apis/integration-toolkit.cjs +8 -8
  86. package/dist/apis/integration-toolkit.d.cts +2 -2
  87. package/dist/apis/integration-toolkit.d.ts +2 -2
  88. package/dist/apis/integration-toolkit.js +2 -2
  89. package/dist/apis/journey.cjs +6 -6
  90. package/dist/apis/journey.js +1 -1
  91. package/dist/apis/kanban.cjs +6 -6
  92. package/dist/apis/kanban.js +1 -1
  93. package/dist/apis/message.cjs +6 -6
  94. package/dist/apis/message.js +1 -1
  95. package/dist/apis/metering.cjs +6 -6
  96. package/dist/apis/metering.js +1 -1
  97. package/dist/apis/notes.cjs +8 -8
  98. package/dist/apis/notes.d.cts +2 -2
  99. package/dist/apis/notes.d.ts +2 -2
  100. package/dist/apis/notes.js +2 -2
  101. package/dist/apis/notification.cjs +6 -6
  102. package/dist/apis/notification.js +1 -1
  103. package/dist/apis/organization.cjs +6 -6
  104. package/dist/apis/organization.js +1 -1
  105. package/dist/apis/partner-directory.cjs +6 -6
  106. package/dist/apis/partner-directory.js +1 -1
  107. package/dist/apis/permissions.cjs +6 -6
  108. package/dist/apis/permissions.js +1 -1
  109. package/dist/apis/pricing-tier.cjs +6 -6
  110. package/dist/apis/pricing-tier.js +1 -1
  111. package/dist/apis/pricing.cjs +6 -6
  112. package/dist/apis/pricing.d.cts +2 -2
  113. package/dist/apis/pricing.d.ts +2 -2
  114. package/dist/apis/pricing.js +1 -1
  115. package/dist/apis/purpose.cjs +6 -6
  116. package/dist/apis/purpose.js +1 -1
  117. package/dist/apis/query.cjs +6 -6
  118. package/dist/apis/query.js +1 -1
  119. package/dist/apis/sandbox.cjs +6 -6
  120. package/dist/apis/sandbox.js +1 -1
  121. package/dist/apis/sharing.cjs +6 -6
  122. package/dist/apis/sharing.js +1 -1
  123. package/dist/apis/submission.cjs +6 -6
  124. package/dist/apis/submission.js +1 -1
  125. package/dist/apis/target.cjs +6 -6
  126. package/dist/apis/target.js +1 -1
  127. package/dist/apis/targeting.cjs +8 -8
  128. package/dist/apis/targeting.d.cts +2 -2
  129. package/dist/apis/targeting.d.ts +2 -2
  130. package/dist/apis/targeting.js +2 -2
  131. package/dist/apis/template-variables.cjs +6 -6
  132. package/dist/apis/template-variables.js +1 -1
  133. package/dist/apis/user.cjs +6 -6
  134. package/dist/apis/user.js +1 -1
  135. package/dist/apis/validation-rules.cjs +6 -6
  136. package/dist/apis/validation-rules.js +1 -1
  137. package/dist/apis/webhooks.cjs +6 -6
  138. package/dist/apis/webhooks.d.cts +2 -2
  139. package/dist/apis/webhooks.d.ts +2 -2
  140. package/dist/apis/webhooks.js +1 -1
  141. package/dist/apis/workflow-definition.cjs +6 -6
  142. package/dist/apis/workflow-definition.js +1 -1
  143. package/dist/apis/workflow.cjs +6 -6
  144. package/dist/apis/workflow.js +1 -1
  145. package/dist/blueprint-manifest-6DEYW5MW.js +7 -0
  146. package/dist/blueprint-manifest-GCV7H74X.cjs +7 -0
  147. package/dist/{blueprint-manifest-runtime-QN2IECSA.cjs → blueprint-manifest-runtime-EIDOROIQ.cjs} +2 -2
  148. package/dist/{blueprint-manifest-runtime-5UN52LW5.js → blueprint-manifest-runtime-FRLU3ZSF.js} +1 -1
  149. package/dist/{blueprint-manifest.d-BPyzoR0X.d.cts → blueprint-manifest.d-B8yDxagC.d.cts} +572 -6
  150. package/dist/{blueprint-manifest.d-BPyzoR0X.d.ts → blueprint-manifest.d-B8yDxagC.d.ts} +572 -6
  151. package/dist/chunk-4M5V6BIT.cjs +14 -0
  152. package/dist/chunk-4YBWMDFP.js +14 -0
  153. package/dist/{chunk-KJPOUJBU.cjs → chunk-5ZXGKLB6.cjs} +1 -1
  154. package/dist/{chunk-PTEJYAYJ.js → chunk-774ASAAH.js} +1 -1
  155. package/dist/{chunk-WM74R3BD.js → chunk-7V7ECXTZ.js} +1 -1
  156. package/dist/chunk-FDS727SL.cjs +14 -0
  157. package/dist/{chunk-4FFGRWLS.cjs → chunk-I53TWOTX.cjs} +1 -1
  158. package/dist/chunk-LSPXLT3A.js +14 -0
  159. package/dist/chunk-M4FO2MI4.js +14 -0
  160. package/dist/chunk-MCK2QUSD.cjs +14 -0
  161. package/dist/{chunk-F5Z6I7TF.cjs → chunk-N3P24HUW.cjs} +20 -22
  162. package/dist/chunk-NGHCQ2FA.cjs +14 -0
  163. package/dist/{chunk-54KWFSCM.js → chunk-OOERPBL3.js} +20 -22
  164. package/dist/chunk-RDVFQOCQ.js +14 -0
  165. package/dist/{chunk-RW5JOHG7.js → chunk-WIQXF7DD.js} +1 -1
  166. package/dist/{chunk-M2SSGV7K.cjs → chunk-ZOQUGWQL.cjs} +1 -1
  167. package/dist/customer-portal-4DXHY42V.js +7 -0
  168. package/dist/customer-portal-5OSGSYGF.cjs +7 -0
  169. package/dist/{customer-portal-runtime-IYHJ3RME.cjs → customer-portal-runtime-HA6CPWB4.cjs} +2 -2
  170. package/dist/{customer-portal-runtime-ZYU3WIXY.js → customer-portal-runtime-TDHV2YVY.js} +1 -1
  171. package/dist/{customer-portal.d-CTTCBAZI.d.cts → customer-portal.d-BRwiQehb.d.cts} +763 -31
  172. package/dist/{customer-portal.d-CTTCBAZI.d.ts → customer-portal.d-BRwiQehb.d.ts} +763 -31
  173. package/dist/data-governance-2U5UU4GM.cjs +7 -0
  174. package/dist/data-governance-36Y33JVG.js +7 -0
  175. package/dist/design-DUFBH5ZB.js +7 -0
  176. package/dist/design-W3D3UPGB.cjs +7 -0
  177. package/dist/{design.d-BRre8iLg.d.cts → design.d-DzSDu8cy.d.cts} +41 -3
  178. package/dist/{design.d-BRre8iLg.d.ts → design.d-DzSDu8cy.d.ts} +41 -3
  179. package/dist/event-catalog-3YOQ46ZW.js +7 -0
  180. package/dist/event-catalog-HLWUT7RM.cjs +7 -0
  181. package/dist/{event-catalog-runtime-N262TQ3Y.js → event-catalog-runtime-JUSLF3UR.js} +1 -1
  182. package/dist/{event-catalog-runtime-B2BPKQVG.cjs → event-catalog-runtime-RH7542GL.cjs} +2 -2
  183. package/dist/{event-catalog.d-mQJLSYUo.d.cts → event-catalog.d-CXbUn8T1.d.cts} +199 -36
  184. package/dist/{event-catalog.d-mQJLSYUo.d.ts → event-catalog.d-CXbUn8T1.d.ts} +199 -36
  185. package/dist/file-2MSILSPP.cjs +7 -0
  186. package/dist/file-JVFTT5RZ.js +7 -0
  187. package/dist/file-runtime-7AWKNQU6.cjs +5 -0
  188. package/dist/{file-runtime-BIRMXYRH.js → file-runtime-DKGFS44O.js} +1 -1
  189. package/dist/{file.d-DTlrbI40.d.cts → file.d-BjlMgTwj.d.cts} +218 -5
  190. package/dist/{file.d-DTlrbI40.d.ts → file.d-BjlMgTwj.d.ts} +218 -5
  191. package/dist/index.cjs +27 -35
  192. package/dist/index.d.cts +55 -57
  193. package/dist/index.d.ts +55 -57
  194. package/dist/index.js +16 -24
  195. package/dist/integration-toolkit-27Z3VZBZ.cjs +7 -0
  196. package/dist/integration-toolkit-NRLZZFVS.js +7 -0
  197. package/dist/{integration-toolkit-runtime-YHTU4X5J.cjs → integration-toolkit-runtime-FY7QVFL6.cjs} +2 -2
  198. package/dist/{integration-toolkit-runtime-YR4CIMKH.js → integration-toolkit-runtime-HCJ5QLCR.js} +1 -1
  199. package/dist/{integration-toolkit.d-BstNqiJb.d.cts → integration-toolkit.d-BW9RK5G-.d.cts} +1672 -27
  200. package/dist/{integration-toolkit.d-BstNqiJb.d.ts → integration-toolkit.d-BW9RK5G-.d.ts} +1672 -27
  201. package/dist/notes-6JESMRLW.js +7 -0
  202. package/dist/notes-SLEUSNP4.cjs +7 -0
  203. package/dist/{notes-runtime-CVNAVKPP.js → notes-runtime-I4SWR3PZ.js} +1 -1
  204. package/dist/notes-runtime-YWTRRNH5.cjs +5 -0
  205. package/dist/{notes.d-BcV_m5fe.d.cts → notes.d-rbcyHfiB.d.cts} +101 -3
  206. package/dist/{notes.d-BcV_m5fe.d.ts → notes.d-rbcyHfiB.d.ts} +101 -3
  207. package/dist/pricing-5Y7TZHMR.js +7 -0
  208. package/dist/pricing-BJUABPHU.cjs +7 -0
  209. package/dist/{pricing.d-BHpMU4KU.d.cts → pricing.d-gPt5L7wp.d.cts} +151 -280
  210. package/dist/{pricing.d-BHpMU4KU.d.ts → pricing.d-gPt5L7wp.d.ts} +151 -280
  211. package/dist/targeting-DAFJBPIZ.cjs +7 -0
  212. package/dist/targeting-TGPCRRI6.js +7 -0
  213. package/dist/{targeting-runtime-M2VSTKFT.js → targeting-runtime-D5YUPZQM.js} +1 -1
  214. package/dist/{targeting-runtime-6JFMP262.cjs → targeting-runtime-MLMOM7CK.cjs} +2 -2
  215. package/dist/{targeting.d-BNmcVsNS.d.cts → targeting.d-DxHQbn7-.d.cts} +197 -3
  216. package/dist/{targeting.d-BNmcVsNS.d.ts → targeting.d-DxHQbn7-.d.ts} +197 -3
  217. package/dist/webhooks-6CUXSTPH.cjs +7 -0
  218. package/dist/webhooks-DTNKNJEN.js +7 -0
  219. package/dist/{webhooks.d-ByePoUWs.d.cts → webhooks.d-DKZOMj1P.d.cts} +37 -0
  220. package/dist/{webhooks.d-ByePoUWs.d.ts → webhooks.d-DKZOMj1P.d.ts} +37 -0
  221. package/docs/blueprint-manifest.md +728 -68
  222. package/docs/customer-portal.md +465 -56
  223. package/docs/data-governance.md +17 -17
  224. package/docs/design.md +80 -3
  225. package/docs/event-catalog.md +126 -13
  226. package/docs/file.md +113 -0
  227. package/docs/integration-toolkit.md +488 -19
  228. package/docs/notes.md +47 -1
  229. package/docs/pricing.md +290 -219
  230. package/docs/targeting.md +158 -4
  231. package/docs/webhooks.md +11 -2
  232. package/package.json +1 -10
  233. package/dist/README-37TXN4EL.cjs +0 -7
  234. package/dist/README-Z2WITBOR.js +0 -7
  235. package/dist/apis/focus-pocus.cjs +0 -38
  236. package/dist/apis/focus-pocus.d.cts +0 -18
  237. package/dist/apis/focus-pocus.d.ts +0 -18
  238. package/dist/apis/focus-pocus.js +0 -38
  239. package/dist/blueprint-manifest-DBEY5PPI.js +0 -7
  240. package/dist/blueprint-manifest-IEQ6YBY7.cjs +0 -7
  241. package/dist/chunk-3APTSPY4.js +0 -14
  242. package/dist/chunk-5WNEYQII.cjs +0 -14
  243. package/dist/chunk-A6FYGWQ7.cjs +0 -14
  244. package/dist/chunk-BTTPWE2P.js +0 -14
  245. package/dist/chunk-CBDKPGO5.cjs +0 -14
  246. package/dist/chunk-L544VG3B.cjs +0 -14
  247. package/dist/chunk-O2YVXGPZ.js +0 -14
  248. package/dist/chunk-OCMIXJWC.js +0 -14
  249. package/dist/chunk-OPXGJKZR.cjs +0 -14
  250. package/dist/chunk-P42Q6HOW.js +0 -14
  251. package/dist/customer-portal-DR6XFCTQ.js +0 -7
  252. package/dist/customer-portal-PNFBVIAH.cjs +0 -7
  253. package/dist/data-governance-QYFHBCNB.cjs +0 -7
  254. package/dist/data-governance-YS2NA6W4.js +0 -7
  255. package/dist/design-EWZQZ5KX.js +0 -7
  256. package/dist/design-MUUYXB2J.cjs +0 -7
  257. package/dist/event-catalog-37B6JC7G.js +0 -7
  258. package/dist/event-catalog-5JBHJJ2I.cjs +0 -7
  259. package/dist/file-P2FUUER2.js +0 -7
  260. package/dist/file-XTY74SIX.cjs +0 -7
  261. package/dist/file-runtime-24S3QPA7.cjs +0 -5
  262. package/dist/focus-pocus-JGXH42OF.cjs +0 -7
  263. package/dist/focus-pocus-XVDVUYL6.js +0 -7
  264. package/dist/focus-pocus-runtime-QXBBYVX7.js +0 -5
  265. package/dist/focus-pocus-runtime-X6GQ3WI4.cjs +0 -5
  266. package/dist/focus-pocus.d-BRFGe53G.d.cts +0 -489
  267. package/dist/focus-pocus.d-BRFGe53G.d.ts +0 -489
  268. package/dist/integration-toolkit-3I3IPVFN.cjs +0 -7
  269. package/dist/integration-toolkit-XAFQXNQY.js +0 -7
  270. package/dist/notes-K2IIFCX3.cjs +0 -7
  271. package/dist/notes-Q7JGS7O3.js +0 -7
  272. package/dist/notes-runtime-E3YYF74V.cjs +0 -5
  273. package/dist/pricing-R5ENSVPQ.cjs +0 -7
  274. package/dist/pricing-X27CCRI6.js +0 -7
  275. package/dist/targeting-74BV7F7H.cjs +0 -7
  276. package/dist/targeting-W5EKJYR2.js +0 -7
  277. package/dist/webhooks-NZHJBT64.js +0 -7
  278. package/dist/webhooks-SK2STDKR.cjs +0 -7
  279. package/docs/focus-pocus.md +0 -460
@@ -0,0 +1,7 @@
1
+ import "./chunk-YPSWSI3M.js";
2
+
3
+ // src/docs/targeting.json
4
+ var targeting_default = '# Targeting API\n\n- **Base URL:** `https://targeting.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/targeting](https://docs.epilot.io/api/targeting)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.targeting.changeCampaignStatus(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/targeting\'\n\nconst targetingClient = getClient()\nauthorize(targetingClient, () => \'<token>\')\nconst { data } = await targetingClient.changeCampaignStatus(...)\n```\n\n## Operations\n\n**Campaign**\n- [`changeCampaignStatus`](#changecampaignstatus)\n- [`getCampaignJobStatus`](#getcampaignjobstatus)\n- [`getCampaignPortals`](#getcampaignportals)\n- [`setupCampaign`](#setupcampaign)\n- [`matchCampaigns`](#matchcampaigns)\n\n**Campaign Delivery**\n- [`retriggerCampaignAutomations`](#retriggercampaignautomations)\n\n**Target**\n- [`matchTargets`](#matchtargets)\n- [`getTargetQueries`](#gettargetqueries)\n\n**Campaign Recipient**\n- [`createRecipient`](#createrecipient)\n- [`updateRecipient`](#updaterecipient)\n- [`updateRecipientPortalStatus`](#updaterecipientportalstatus)\n- [`getRecipients`](#getrecipients)\n\n**Schemas**\n- [`BaseError`](#baseerror)\n- [`ServerError`](#servererror)\n- [`ClientError`](#clienterror)\n- [`BaseUUID`](#baseuuid)\n- [`BaseNanoID`](#basenanoid)\n- [`BaseTags`](#basetags)\n- [`BaseRelation`](#baserelation)\n- [`BaseSystemId`](#basesystemid)\n- [`BaseEntityOwner`](#baseentityowner)\n- [`BaseEntityAcl`](#baseentityacl)\n- [`BaseSystemFields`](#basesystemfields)\n- [`BaseSystemFieldsRequired`](#basesystemfieldsrequired)\n- [`CampaignStatus`](#campaignstatus)\n- [`ExecutionSummaryItem`](#executionsummaryitem)\n- [`JobStatus`](#jobstatus)\n- [`Campaign`](#campaign)\n- [`Target`](#target)\n- [`MatchCampaignParams`](#matchcampaignparams)\n- [`MatchTargetParams`](#matchtargetparams)\n- [`GetTargetQueriesParams`](#gettargetqueriesparams)\n- [`TargetQueryResult`](#targetqueryresult)\n- [`AutomationStatus`](#automationstatus)\n- [`PortalStatus`](#portalstatus)\n- [`Recipient`](#recipient)\n- [`BaseRecipientPayload`](#baserecipientpayload)\n- [`AutomationRecipientPayload`](#automationrecipientpayload)\n- [`PortalRecipientPayload`](#portalrecipientpayload)\n- [`CreateRecipientPayload`](#createrecipientpayload)\n- [`UpdateRecipientPayload`](#updaterecipientpayload)\n- [`RetriggerAutomationsRequest`](#retriggerautomationsrequest)\n- [`RetriggerAutomationsResult`](#retriggerautomationsresult)\n- [`UpdatePortalStatusRequest`](#updateportalstatusrequest)\n- [`SetupCampaignRequest`](#setupcampaignrequest)\n- [`SetupTariffChangeCampaignRequest`](#setuptariffchangecampaignrequest)\n- [`SetupTariffChangeCampaignResponse`](#setuptariffchangecampaignresponse)\n\n### `changeCampaignStatus`\n\nChange the status of a campaign\n\n`POST /v1/campaign/{campaign_id}/status`\n\n```ts\nconst { data } = await client.changeCampaignStatus({\n campaign_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "campaign": {\n "_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",\n "_org": "string",\n "_owners": [\n {\n "org_id": "123",\n "user_id": "123"\n }\n ],\n "_schema": "string",\n "_title": "string",\n "_tags": ["string"],\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_acl": {\n "view": ["org:456"],\n "edit": ["org:456"],\n "delete": ["org:456"]\n },\n "name": "string",\n "goal": "string",\n "status": "draft",\n "start_date": "1970-01-01",\n "end_date": "1970-01-01",\n "flow_id": "string",\n "job_id": "string",\n "target": {\n "$relation": [\n {\n "entity_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",\n "_tags": ["string"]\n }\n ]\n }\n }\n}\n```\n\n</details>\n\n---\n\n### `getCampaignJobStatus`\n\nGet the status of a campaign\'s automation job\n\n`GET /v1/campaign/{campaign_id}/job`\n\n```ts\nconst { data } = await client.getCampaignJobStatus({\n campaign_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "status": "queued",\n "execution_summary": [\n {\n "execution_id": "string",\n "execution_status": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getCampaignPortals`\n\nGet portals usage info for a campaign\n\n`GET /v1/campaign/{campaign_id}/portals`\n\n```ts\nconst { data } = await client.getCampaignPortals({\n campaign_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "portal": {\n "origin": "string",\n "domain": "string",\n "name": "string"\n },\n "widgets": [\n {\n "id": "string",\n "headline": {\n "en": "string",\n "de": "string"\n }\n }\n ]\n }\n]\n```\n\n</details>\n\n---\n\n### `retriggerCampaignAutomations`\n\nRetrigger automations for campaign recipients\n\n`POST /v1/campaign/{campaign_id}/automations:retrigger`\n\n```ts\nconst { data } = await client.retriggerCampaignAutomations(\n {\n campaign_id: \'example\',\n },\n {\n recipient_ids: [\'3fa85f64-5717-4562-b3fc-2c963f66afa6\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "message": "string",\n "results": [\n {\n "recipient_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "result": "success",\n "execution_id": "string",\n "error": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `setupCampaign`\n\nSet up a campaign with related entities and configurations\n\n`POST /v1/campaign:setup`\n\n```ts\nconst { data } = await client.setupCampaign(\n null,\n {\n type: \'tariff_change\',\n product_recommendation: {\n name: \'string\',\n source_product_id: \'b8c01433-5556-4e2b-aad4-6f5348d1df84\',\n source_price_id: \'b8c01433-5556-4e2b-aad4-6f5348d1df84\',\n offers: [\n {\n target_id: \'b8c01433-5556-4e2b-aad4-6f5348d1df84\',\n items: [\n {\n product_id: \'b8c01433-5556-4e2b-aad4-6f5348d1df84\',\n price_id: \'b8c01433-5556-4e2b-aad4-6f5348d1df84\',\n highlight_config: {}\n }\n ]\n }\n ]\n },\n campaign: {\n name: \'string\',\n goal: \'string\',\n target_ids: [\'b8c01433-5556-4e2b-aad4-6f5348d1df84\']\n },\n journey: {\n journey_id: \'b8c01433-5556-4e2b-aad4-6f5348d1df84\'\n },\n channels: {\n portal_widget: {\n portal_id: \'b8c01433-5556-4e2b-aad4-6f5348d1df84\',\n block_id: \'b8c01433-5556-4e2b-aad4-6f5348d1df84\'\n },\n email: {\n automation_id: \'b8c01433-5556-4e2b-aad4-6f5348d1df84\'\n }\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "type": "tariff_change",\n "product_recommendation_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",\n "campaign_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",\n "journey_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",\n "portal_widget_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84"\n}\n```\n\n</details>\n\n---\n\n### `matchCampaigns`\n\nMatch campaigns\n\n`POST /v1/campaign:match`\n\n```ts\nconst { data } = await client.matchCampaigns(\n null,\n {\n entity_refs: [\n {\n entity_id: \'b8c01433-5556-4e2b-aad4-6f5348d1df84\',\n entity_schema: \'string\'\n }\n ],\n campaign_ids: [\'b8c01433-5556-4e2b-aad4-6f5348d1df84\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "hits": 0,\n "results": [\n {\n "campaign": {\n "_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",\n "_org": "string",\n "_owners": [\n {\n "org_id": "123",\n "user_id": "123"\n }\n ],\n "_schema": "string",\n "_title": "string",\n "_tags": ["string"],\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_acl": {\n "view": ["org:456"],\n "edit": ["org:456"],\n "delete": ["org:456"]\n },\n "name": "string",\n "goal": "string",\n "status": "draft",\n "start_date": "1970-01-01",\n "end_date": "1970-01-01",\n "flow_id": "string",\n "job_id": "string",\n "target": {\n "$relation": [\n {\n "entity_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",\n "_tags": ["string"]\n }\n ]\n }\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `matchTargets`\n\nMatch targets\n\n`POST /v1/target:match`\n\n```ts\nconst { data } = await client.matchTargets(\n null,\n {\n entity_refs: [\n {\n entity_id: \'b8c01433-5556-4e2b-aad4-6f5348d1df84\',\n entity_schema: \'string\'\n }\n ],\n target_ids: [\'b8c01433-5556-4e2b-aad4-6f5348d1df84\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "hits": 0,\n "results": [\n {\n "target": {\n "_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",\n "_org": "string",\n "_owners": [\n {\n "org_id": "123",\n "user_id": "123"\n }\n ],\n "_schema": "string",\n "_title": "string",\n "_tags": ["string"],\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_acl": {\n "view": ["org:456"],\n "edit": ["org:456"],\n "delete": ["org:456"]\n },\n "name": "string",\n "description": "string",\n "entity_schema": "string",\n "entity_filters": {}\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getTargetQueries`\n\nGet target queries\n\n`POST /v1/target/queries`\n\n```ts\nconst { data } = await client.getTargetQueries(\n null,\n {\n target_ids: [\'b8c01433-5556-4e2b-aad4-6f5348d1df84\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "target_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",\n "query": "string",\n "error": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `createRecipient`\n\nCreate a recipient associated with a campaign\n\n`POST /v1/campaign/{campaign_id}/recipient`\n\n```ts\nconst { data } = await client.createRecipient(\n {\n campaign_id: \'example\',\n },\n {\n entity_id: \'b8c01433-5556-4e2b-aad4-6f5348d1df84\',\n entity_schema: \'string\',\n automation_status: \'pending\',\n automation_execution_id: \'string\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "entity_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",\n "entity_schema": "string",\n "title": "string",\n "automation_status": "pending",\n "automation_execution_id": "string",\n "portal_status": "sent",\n "portal_status_updated_at": "1970-01-01T00:00:00.000Z",\n "portal_state": {},\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `updateRecipient`\n\nUpdate a recipient\n\n`PATCH /v1/campaign/{campaign_id}/recipient/{recipient_id}`\n\n```ts\nconst { data } = await client.updateRecipient(\n {\n campaign_id: \'example\',\n recipient_id: \'example\',\n },\n {\n automation_status: \'pending\',\n automation_execution_id: \'string\',\n portal_status: \'sent\',\n portal_state: {}\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "entity_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",\n "entity_schema": "string",\n "title": "string",\n "automation_status": "pending",\n "automation_execution_id": "string",\n "portal_status": "sent",\n "portal_status_updated_at": "1970-01-01T00:00:00.000Z",\n "portal_state": {},\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `updateRecipientPortalStatus`\n\nUpdate portal status for a campaign recipient\n\n`PATCH /v1/campaign/{campaign_id}/recipient/{recipient_id}/portal:status`\n\n```ts\nconst { data } = await client.updateRecipientPortalStatus(\n {\n campaign_id: \'example\',\n recipient_id: \'example\',\n },\n {\n status: \'sent\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "entity_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",\n "entity_schema": "string",\n "title": "string",\n "automation_status": "pending",\n "automation_execution_id": "string",\n "portal_status": "sent",\n "portal_status_updated_at": "1970-01-01T00:00:00.000Z",\n "portal_state": {},\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `getRecipients`\n\nGet campaign recipients\n\n`GET /v1/campaign/{campaign_id}/recipients`\n\n```ts\nconst { data } = await client.getRecipients({\n campaign_id: \'example\',\n limit: 1,\n next: \'example\',\n q: \'example\',\n automation_status: \'example\',\n portal_status: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "entity_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",\n "entity_schema": "string",\n "title": "string",\n "automation_status": "pending",\n "automation_execution_id": "string",\n "portal_status": "sent",\n "portal_status_updated_at": "1970-01-01T00:00:00.000Z",\n "portal_state": {},\n "updated_at": "1970-01-01T00:00:00.000Z"\n }\n ],\n "next": "string",\n "total": 0\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `BaseError`\n\n```ts\ntype BaseError = {\n status: number\n message: string\n}\n```\n\n### `ServerError`\n\n```ts\ntype ServerError = {\n status: number\n message: string\n}\n```\n\n### `ClientError`\n\nDescribes the structure of a client error response, which can be one of several types:\n1. `MessageError`: Contains a \'message\' field for general descriptive errors.\n2. `CodeError`: Contains a \'code\' field for specific, machine-readable error codes.\n3. `StatusedError`: Contains \'error\' and \'status\' f\n\n```ts\ntype ClientError = {\n message: string\n} | {\n code: "CAMPAIGN_NOT_FOUND" | "CAMPAIGN_HAS_NO_TARGET" | "CAMPAIGN_HAS_NO_DELIVERY_METHOD" | "CAMPAIGN_HAS_JOB_IN_PROGRESS" | "CAMPAIGN_HAS_UNEXPECTED_STATUS" | "JOB_TOKEN_MISSING" | "TARGET_WITHOUT_FILTERS"\n} | {\n error: string\n status: number\n}\n```\n\n### `BaseUUID`\n\n```ts\ntype BaseUUID = string // uuid\n```\n\n### `BaseNanoID`\n\n```ts\ntype BaseNanoID = string\n```\n\n### `BaseTags`\n\n```ts\ntype BaseTags = string[]\n```\n\n### `BaseRelation`\n\n```ts\ntype BaseRelation = {\n $relation?: Array<{\n entity_id?: string // uuid\n _tags?: string[]\n }>\n}\n```\n\n### `BaseSystemId`\n\n```ts\ntype BaseSystemId = {\n _id: string // uuid\n}\n```\n\n### `BaseEntityOwner`\n\nThe user / organization owning this entity.\n\nNote: Owner implicitly has access to the entity regardless of ACLs.\n\n\n```ts\ntype BaseEntityOwner = {\n org_id: string\n user_id?: string\n}\n```\n\n### `BaseEntityAcl`\n\nAccess control list (ACL) for an entity. Defines sharing access to external orgs or users.\n\n```ts\ntype BaseEntityAcl = {\n view?: string[]\n edit?: string[]\n delete?: string[]\n}\n```\n\n### `BaseSystemFields`\n\n```ts\ntype BaseSystemFields = {\n _id?: string // uuid\n _org?: string\n _owners?: Array<{\n org_id: string\n user_id?: string\n }>\n _schema?: string\n _title?: string\n _tags?: string[]\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _acl?: {\n view?: string[]\n edit?: string[]\n delete?: string[]\n }\n}\n```\n\n### `BaseSystemFieldsRequired`\n\n```ts\ntype BaseSystemFieldsRequired = object\n```\n\n### `CampaignStatus`\n\n```ts\ntype CampaignStatus = "draft" | "activating" | "active" | "inactive"\n```\n\n### `ExecutionSummaryItem`\n\n```ts\ntype ExecutionSummaryItem = {\n execution_id?: string\n execution_status?: string\n}\n```\n\n### `JobStatus`\n\n```ts\ntype JobStatus = {\n status?: "queued" | "processing" | "finished" | "failed" | "cancelled" | "send_report"\n execution_summary?: Array<{\n execution_id?: string\n execution_status?: string\n }>\n}\n```\n\n### `Campaign`\n\n```ts\ntype Campaign = {\n _id?: string // uuid\n _org?: string\n _owners?: Array<{\n org_id: string\n user_id?: string\n }>\n _schema?: string\n _title?: string\n _tags?: string[]\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _acl?: {\n view?: string[]\n edit?: string[]\n delete?: string[]\n }\n name?: string\n goal?: string\n status?: "draft" | "activating" | "active" | "inactive"\n start_date?: string // date\n end_date?: string // date\n flow_id?: string\n job_id?: string\n target?: {\n $relation?: Array<{\n entity_id?: { ... }\n _tags?: { ... }\n }>\n }\n}\n```\n\n### `Target`\n\n```ts\ntype Target = {\n _id?: string // uuid\n _org?: string\n _owners?: Array<{\n org_id: string\n user_id?: string\n }>\n _schema?: string\n _title?: string\n _tags?: string[]\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _acl?: {\n view?: string[]\n edit?: string[]\n delete?: string[]\n }\n name?: string\n description?: string\n entity_schema?: string\n entity_filters?: Record<string, unknown>\n}\n```\n\n### `MatchCampaignParams`\n\n```ts\ntype MatchCampaignParams = {\n entity_refs: Array<{\n entity_id: string // uuid\n entity_schema: string\n }>\n campaign_ids: string // uuid[]\n}\n```\n\n### `MatchTargetParams`\n\n```ts\ntype MatchTargetParams = {\n entity_refs: Array<{\n entity_id: string // uuid\n entity_schema: string\n }>\n target_ids: string // uuid[]\n}\n```\n\n### `GetTargetQueriesParams`\n\n```ts\ntype GetTargetQueriesParams = {\n target_ids: string // uuid[]\n}\n```\n\n### `TargetQueryResult`\n\n```ts\ntype TargetQueryResult = {\n target_id: string // uuid\n query: string\n error?: string\n}\n```\n\n### `AutomationStatus`\n\n```ts\ntype AutomationStatus = "pending" | "in_progress" | "success" | "failed" | "cancelled"\n```\n\n### `PortalStatus`\n\n```ts\ntype PortalStatus = "sent" | "seen" | "dismissed" | "clicked"\n```\n\n### `Recipient`\n\n```ts\ntype Recipient = {\n entity_id?: string // uuid\n entity_schema?: string\n title?: string\n automation_status?: "pending" | "in_progress" | "success" | "failed" | "cancelled"\n automation_execution_id?: string\n portal_status?: "sent" | "seen" | "dismissed" | "clicked"\n portal_status_updated_at?: string // date-time\n portal_state?: Record<string, unknown>\n updated_at?: string // date-time\n}\n```\n\n### `BaseRecipientPayload`\n\n```ts\ntype BaseRecipientPayload = {\n entity_id: string // uuid\n entity_schema: string\n}\n```\n\n### `AutomationRecipientPayload`\n\n```ts\ntype AutomationRecipientPayload = {\n automation_status: "pending" | "in_progress" | "success" | "failed" | "cancelled"\n automation_execution_id: string\n}\n```\n\n### `PortalRecipientPayload`\n\n```ts\ntype PortalRecipientPayload = {\n portal_status: "sent" | "seen" | "dismissed" | "clicked"\n portal_state?: Record<string, unknown>\n}\n```\n\n### `CreateRecipientPayload`\n\n```ts\ntype CreateRecipientPayload = {\n entity_id: string // uuid\n entity_schema: string\n automation_status: "pending" | "in_progress" | "success" | "failed" | "cancelled"\n automation_execution_id: string\n} | {\n entity_id: string // uuid\n entity_schema: string\n portal_status: "sent" | "seen" | "dismissed" | "clicked"\n portal_state?: Record<string, unknown>\n} | {\n entity_id: string // uuid\n entity_schema: string\n automation_status: "pending" | "in_progress" | "success" | "failed" | "cancelled"\n automation_execution_id: string\n portal_status: "sent" | "seen" | "dismissed" | "clicked"\n portal_state?: Record<string, unknown>\n}\n```\n\n### `UpdateRecipientPayload`\n\n```ts\ntype UpdateRecipientPayload = {\n automation_status?: "pending" | "in_progress" | "success" | "failed" | "cancelled"\n automation_execution_id?: string\n portal_status?: "sent" | "seen" | "dismissed" | "clicked"\n portal_state?: Record<string, unknown>\n}\n```\n\n### `RetriggerAutomationsRequest`\n\n```ts\ntype RetriggerAutomationsRequest = {\n recipient_ids: string // uuid[]\n}\n```\n\n### `RetriggerAutomationsResult`\n\n```ts\ntype RetriggerAutomationsResult = {\n recipient_id: string // uuid\n result: "success" | "failure" | "not_found" | "invalid_status"\n execution_id?: string\n error?: string\n}\n```\n\n### `UpdatePortalStatusRequest`\n\n```ts\ntype UpdatePortalStatusRequest = {\n status: "sent" | "seen" | "dismissed" | "clicked"\n}\n```\n\n### `SetupCampaignRequest`\n\nDiscriminated by `type`. Each campaign variant has its own request shape;\nnew variants are added by introducing a new schema and extending the `oneOf` list.\n\n\n```ts\ntype SetupCampaignRequest = {\n type: "tariff_change"\n product_recommendation: {\n name?: string\n source_product_id?: string // uuid\n source_price_id?: string // uuid\n offers?: Array<{\n target_id?: { ... }\n items: { ... }\n }>\n }\n campaign: {\n name: string\n goal?: string\n target_ids: string // uuid[]\n }\n journey?: {\n journey_id: string // uuid\n }\n channels?: {\n portal_widget?: {\n portal_id: { ... }\n block_id: { ... }\n }\n email?: {\n automation_id: { ... }\n }\n }\n}\n```\n\n### `SetupTariffChangeCampaignRequest`\n\n```ts\ntype SetupTariffChangeCampaignRequest = {\n type: "tariff_change"\n product_recommendation: {\n name?: string\n source_product_id?: string // uuid\n source_price_id?: string // uuid\n offers?: Array<{\n target_id?: { ... }\n items: { ... }\n }>\n }\n campaign: {\n name: string\n goal?: string\n target_ids: string // uuid[]\n }\n journey?: {\n journey_id: string // uuid\n }\n channels?: {\n portal_widget?: {\n portal_id: { ... }\n block_id: { ... }\n }\n email?: {\n automation_id: { ... }\n }\n }\n}\n```\n\n### `SetupTariffChangeCampaignResponse`\n\n```ts\ntype SetupTariffChangeCampaignResponse = {\n type: "tariff_change"\n product_recommendation_id: string // uuid\n campaign_id: string // uuid\n journey_id?: string // uuid\n portal_widget_id?: string // uuid\n}\n```\n';
5
+ export {
6
+ targeting_default as default
7
+ };
@@ -1,5 +1,5 @@
1
1
  import {
2
2
  require_targeting_runtime
3
- } from "./chunk-BTTPWE2P.js";
3
+ } from "./chunk-LSPXLT3A.js";
4
4
  import "./chunk-YPSWSI3M.js";
5
5
  export default require_targeting_runtime();
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk5WNEYQIIcjs = require('./chunk-5WNEYQII.cjs');
3
+ var _chunkMCK2QUSDcjs = require('./chunk-MCK2QUSD.cjs');
4
4
  require('./chunk-NJK5F5TF.cjs');
5
- exports. default = _chunk5WNEYQIIcjs.require_targeting_runtime.call(void 0, );
5
+ exports. default = _chunkMCK2QUSDcjs.require_targeting_runtime.call(void 0, );
@@ -1,8 +1,6 @@
1
1
  import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
2
2
 
3
3
  /* Auto-copied from targeting-client */
4
- /* eslint-disable */
5
-
6
4
 
7
5
 
8
6
  declare namespace Components {
@@ -121,6 +119,7 @@ declare namespace Components {
121
119
  results: Schemas.RetriggerAutomationsResult[];
122
120
  }
123
121
  export type ServerErrorResponse = Schemas.ServerError;
122
+ export type SetupCampaignResponse = Schemas.SetupTariffChangeCampaignResponse;
124
123
  }
125
124
  namespace Schemas {
126
125
  export interface AutomationRecipientPayload {
@@ -1465,6 +1464,159 @@ declare namespace Components {
1465
1464
  error?: string;
1466
1465
  }
1467
1466
  export type ServerError = BaseError;
1467
+ /**
1468
+ * Discriminated by `type`. Each campaign variant has its own request shape;
1469
+ * new variants are added by introducing a new schema and extending the `oneOf` list.
1470
+ *
1471
+ */
1472
+ export type SetupCampaignRequest = /**
1473
+ * Discriminated by `type`. Each campaign variant has its own request shape;
1474
+ * new variants are added by introducing a new schema and extending the `oneOf` list.
1475
+ *
1476
+ */
1477
+ SetupTariffChangeCampaignRequest;
1478
+ export interface SetupTariffChangeCampaignRequest {
1479
+ type: "tariff_change";
1480
+ product_recommendation: {
1481
+ /**
1482
+ * Optional name of the product recommendation. Defaults to the campaign name.
1483
+ */
1484
+ name?: string;
1485
+ /**
1486
+ * Optional source product entity ID for the recommendation.
1487
+ * example:
1488
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1489
+ */
1490
+ source_product_id?: string; // uuid
1491
+ /**
1492
+ * Optional source price entity ID for the recommendation.
1493
+ * example:
1494
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1495
+ */
1496
+ source_price_id?: string; // uuid
1497
+ /**
1498
+ * Offer blocks for the product_recommendation entity.
1499
+ */
1500
+ offers?: {
1501
+ /**
1502
+ * Optional per-offer target entity ID.
1503
+ */
1504
+ target_id?: /**
1505
+ * example:
1506
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1507
+ */
1508
+ BaseUUID /* uuid */;
1509
+ /**
1510
+ * Product/price pairs within this offer.
1511
+ */
1512
+ items: {
1513
+ product_id: /**
1514
+ * example:
1515
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1516
+ */
1517
+ BaseUUID /* uuid */;
1518
+ price_id: /**
1519
+ * example:
1520
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1521
+ */
1522
+ BaseUUID /* uuid */;
1523
+ /**
1524
+ * Opaque per-item highlight/comparison config persisted as-is on the entity.
1525
+ */
1526
+ highlight_config?: {
1527
+ [name: string]: any;
1528
+ };
1529
+ }[];
1530
+ }[];
1531
+ };
1532
+ campaign: {
1533
+ name: string;
1534
+ goal?: string;
1535
+ /**
1536
+ * List of target entity IDs to attach to the campaign. Today only a single
1537
+ * entry is supported (campaign.target is has_one) but the array shape is kept
1538
+ * for forward-compatibility — only `target_ids[0]` is used.
1539
+ *
1540
+ */
1541
+ target_ids: /**
1542
+ * example:
1543
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1544
+ */
1545
+ BaseUUID /* uuid */[];
1546
+ };
1547
+ /**
1548
+ * Optional journey configuration selected in the wizard. Only sent by the
1549
+ * consumer once a journey has been chosen.
1550
+ *
1551
+ */
1552
+ journey?: {
1553
+ journey_id: /**
1554
+ * example:
1555
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1556
+ */
1557
+ BaseUUID /* uuid */;
1558
+ };
1559
+ /**
1560
+ * Optional delivery channel configuration. Each channel is only sent by the
1561
+ * consumer once it has been enabled and fully configured in the wizard.
1562
+ *
1563
+ */
1564
+ channels?: {
1565
+ /**
1566
+ * Portal widget placement for the product recommendation block. Only sent by
1567
+ * the consumer once both a portal and a block have been selected.
1568
+ *
1569
+ */
1570
+ portal_widget?: {
1571
+ portal_id: /**
1572
+ * example:
1573
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1574
+ */
1575
+ BaseUUID /* uuid */;
1576
+ block_id: /**
1577
+ * example:
1578
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1579
+ */
1580
+ BaseUUID /* uuid */;
1581
+ };
1582
+ /**
1583
+ * Email campaign delivery. The selected automation flow is persisted as the
1584
+ * campaign's `flow_id` and is responsible for sending the campaign emails.
1585
+ * Only sent by the consumer once an automation has been selected.
1586
+ *
1587
+ */
1588
+ email?: {
1589
+ automation_id: /**
1590
+ * example:
1591
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1592
+ */
1593
+ BaseUUID /* uuid */;
1594
+ };
1595
+ };
1596
+ }
1597
+ export interface SetupTariffChangeCampaignResponse {
1598
+ type: "tariff_change";
1599
+ product_recommendation_id: /**
1600
+ * example:
1601
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1602
+ */
1603
+ BaseUUID /* uuid */;
1604
+ campaign_id: /**
1605
+ * example:
1606
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1607
+ */
1608
+ BaseUUID /* uuid */;
1609
+ journey_id?: /**
1610
+ * example:
1611
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1612
+ */
1613
+ BaseUUID /* uuid */;
1614
+ portal_widget_id?: /**
1615
+ * example:
1616
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1617
+ */
1618
+ BaseUUID /* uuid */;
1619
+ }
1468
1620
  export interface Target {
1469
1621
  _id?: /**
1470
1622
  * example:
@@ -1665,6 +1817,19 @@ declare namespace Paths {
1665
1817
  export type $500 = Components.Responses.ServerErrorResponse;
1666
1818
  }
1667
1819
  }
1820
+ namespace SetupCampaign {
1821
+ export type RequestBody = /**
1822
+ * Discriminated by `type`. Each campaign variant has its own request shape;
1823
+ * new variants are added by introducing a new schema and extending the `oneOf` list.
1824
+ *
1825
+ */
1826
+ Components.Schemas.SetupCampaignRequest;
1827
+ namespace Responses {
1828
+ export type $201 = Components.Responses.SetupCampaignResponse;
1829
+ export type $400 = Components.Responses.ClientErrorResponse;
1830
+ export type $500 = Components.Responses.ServerErrorResponse;
1831
+ }
1832
+ }
1668
1833
  namespace UpdateRecipient {
1669
1834
  namespace Parameters {
1670
1835
  export type CampaignId = /**
@@ -1772,6 +1937,18 @@ interface OperationMethods {
1772
1937
  data?: Paths.RetriggerCampaignAutomations.RequestBody,
1773
1938
  config?: AxiosRequestConfig
1774
1939
  ): OperationResponse<Paths.RetriggerCampaignAutomations.Responses.$200>
1940
+ /**
1941
+ * setupCampaign - Set up a campaign with related entities and configurations
1942
+ *
1943
+ * Creates a `campaign` entity together with its related entities and configurations in a single call.
1944
+ * Used by the campaign wizard UI, but not restricted to it.
1945
+ *
1946
+ */
1947
+ 'setupCampaign'(
1948
+ parameters?: Parameters<UnknownParamsObject> | null,
1949
+ data?: Paths.SetupCampaign.RequestBody,
1950
+ config?: AxiosRequestConfig
1951
+ ): OperationResponse<Paths.SetupCampaign.Responses.$201>
1775
1952
  /**
1776
1953
  * matchCampaigns - Match campaigns
1777
1954
  *
@@ -1919,6 +2096,20 @@ interface PathsDictionary {
1919
2096
  config?: AxiosRequestConfig
1920
2097
  ): OperationResponse<Paths.RetriggerCampaignAutomations.Responses.$200>
1921
2098
  }
2099
+ ['/v1/campaign:setup']: {
2100
+ /**
2101
+ * setupCampaign - Set up a campaign with related entities and configurations
2102
+ *
2103
+ * Creates a `campaign` entity together with its related entities and configurations in a single call.
2104
+ * Used by the campaign wizard UI, but not restricted to it.
2105
+ *
2106
+ */
2107
+ 'post'(
2108
+ parameters?: Parameters<UnknownParamsObject> | null,
2109
+ data?: Paths.SetupCampaign.RequestBody,
2110
+ config?: AxiosRequestConfig
2111
+ ): OperationResponse<Paths.SetupCampaign.Responses.$201>
2112
+ }
1922
2113
  ['/v1/campaign:match']: {
1923
2114
  /**
1924
2115
  * matchCampaigns - Match campaigns
@@ -2049,9 +2240,12 @@ type Recipient = Components.Schemas.Recipient;
2049
2240
  type RetriggerAutomationsRequest = Components.Schemas.RetriggerAutomationsRequest;
2050
2241
  type RetriggerAutomationsResult = Components.Schemas.RetriggerAutomationsResult;
2051
2242
  type ServerError = Components.Schemas.ServerError;
2243
+ type SetupCampaignRequest = Components.Schemas.SetupCampaignRequest;
2244
+ type SetupTariffChangeCampaignRequest = Components.Schemas.SetupTariffChangeCampaignRequest;
2245
+ type SetupTariffChangeCampaignResponse = Components.Schemas.SetupTariffChangeCampaignResponse;
2052
2246
  type Target = Components.Schemas.Target;
2053
2247
  type TargetQueryResult = Components.Schemas.TargetQueryResult;
2054
2248
  type UpdatePortalStatusRequest = Components.Schemas.UpdatePortalStatusRequest;
2055
2249
  type UpdateRecipientPayload = Components.Schemas.UpdateRecipientPayload;
2056
2250
 
2057
- export { type AutomationRecipientPayload as A, type BaseEntityAcl as B, type Client as C, type ExecutionSummaryItem as E, type GetTargetQueriesParams as G, type JobStatus as J, type MatchCampaignParams as M, type OperationMethods as O, Paths as P, type Recipient as R, type ServerError as S, type Target as T, type UpdatePortalStatusRequest as U, Components as a, type PathsDictionary as b, type AutomationStatus as c, type BaseEntityOwner as d, type BaseError as e, type BaseNanoID as f, type BaseRecipientPayload as g, type BaseRelation as h, type BaseSystemFields as i, type BaseSystemFieldsRequired as j, type BaseSystemId as k, type BaseTags as l, type BaseUUID as m, type Campaign as n, type CampaignStatus as o, type ClientError as p, type CreateRecipientPayload as q, type MatchTargetParams as r, type PortalRecipientPayload as s, type PortalStatus as t, type RetriggerAutomationsRequest as u, type RetriggerAutomationsResult as v, type TargetQueryResult as w, type UpdateRecipientPayload as x };
2251
+ export { type AutomationRecipientPayload as A, type BaseEntityAcl as B, type Client as C, type UpdateRecipientPayload as D, type ExecutionSummaryItem as E, type GetTargetQueriesParams as G, type JobStatus as J, type MatchCampaignParams as M, type OperationMethods as O, Paths as P, type Recipient as R, type ServerError as S, type Target as T, type UpdatePortalStatusRequest as U, Components as a, type PathsDictionary as b, type AutomationStatus as c, type BaseEntityOwner as d, type BaseError as e, type BaseNanoID as f, type BaseRecipientPayload as g, type BaseRelation as h, type BaseSystemFields as i, type BaseSystemFieldsRequired as j, type BaseSystemId as k, type BaseTags as l, type BaseUUID as m, type Campaign as n, type CampaignStatus as o, type ClientError as p, type CreateRecipientPayload as q, type MatchTargetParams as r, type PortalRecipientPayload as s, type PortalStatus as t, type RetriggerAutomationsRequest as u, type RetriggerAutomationsResult as v, type SetupCampaignRequest as w, type SetupTariffChangeCampaignRequest as x, type SetupTariffChangeCampaignResponse as y, type TargetQueryResult as z };
@@ -1,8 +1,6 @@
1
1
  import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
2
2
 
3
3
  /* Auto-copied from targeting-client */
4
- /* eslint-disable */
5
-
6
4
 
7
5
 
8
6
  declare namespace Components {
@@ -121,6 +119,7 @@ declare namespace Components {
121
119
  results: Schemas.RetriggerAutomationsResult[];
122
120
  }
123
121
  export type ServerErrorResponse = Schemas.ServerError;
122
+ export type SetupCampaignResponse = Schemas.SetupTariffChangeCampaignResponse;
124
123
  }
125
124
  namespace Schemas {
126
125
  export interface AutomationRecipientPayload {
@@ -1465,6 +1464,159 @@ declare namespace Components {
1465
1464
  error?: string;
1466
1465
  }
1467
1466
  export type ServerError = BaseError;
1467
+ /**
1468
+ * Discriminated by `type`. Each campaign variant has its own request shape;
1469
+ * new variants are added by introducing a new schema and extending the `oneOf` list.
1470
+ *
1471
+ */
1472
+ export type SetupCampaignRequest = /**
1473
+ * Discriminated by `type`. Each campaign variant has its own request shape;
1474
+ * new variants are added by introducing a new schema and extending the `oneOf` list.
1475
+ *
1476
+ */
1477
+ SetupTariffChangeCampaignRequest;
1478
+ export interface SetupTariffChangeCampaignRequest {
1479
+ type: "tariff_change";
1480
+ product_recommendation: {
1481
+ /**
1482
+ * Optional name of the product recommendation. Defaults to the campaign name.
1483
+ */
1484
+ name?: string;
1485
+ /**
1486
+ * Optional source product entity ID for the recommendation.
1487
+ * example:
1488
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1489
+ */
1490
+ source_product_id?: string; // uuid
1491
+ /**
1492
+ * Optional source price entity ID for the recommendation.
1493
+ * example:
1494
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1495
+ */
1496
+ source_price_id?: string; // uuid
1497
+ /**
1498
+ * Offer blocks for the product_recommendation entity.
1499
+ */
1500
+ offers?: {
1501
+ /**
1502
+ * Optional per-offer target entity ID.
1503
+ */
1504
+ target_id?: /**
1505
+ * example:
1506
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1507
+ */
1508
+ BaseUUID /* uuid */;
1509
+ /**
1510
+ * Product/price pairs within this offer.
1511
+ */
1512
+ items: {
1513
+ product_id: /**
1514
+ * example:
1515
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1516
+ */
1517
+ BaseUUID /* uuid */;
1518
+ price_id: /**
1519
+ * example:
1520
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1521
+ */
1522
+ BaseUUID /* uuid */;
1523
+ /**
1524
+ * Opaque per-item highlight/comparison config persisted as-is on the entity.
1525
+ */
1526
+ highlight_config?: {
1527
+ [name: string]: any;
1528
+ };
1529
+ }[];
1530
+ }[];
1531
+ };
1532
+ campaign: {
1533
+ name: string;
1534
+ goal?: string;
1535
+ /**
1536
+ * List of target entity IDs to attach to the campaign. Today only a single
1537
+ * entry is supported (campaign.target is has_one) but the array shape is kept
1538
+ * for forward-compatibility — only `target_ids[0]` is used.
1539
+ *
1540
+ */
1541
+ target_ids: /**
1542
+ * example:
1543
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1544
+ */
1545
+ BaseUUID /* uuid */[];
1546
+ };
1547
+ /**
1548
+ * Optional journey configuration selected in the wizard. Only sent by the
1549
+ * consumer once a journey has been chosen.
1550
+ *
1551
+ */
1552
+ journey?: {
1553
+ journey_id: /**
1554
+ * example:
1555
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1556
+ */
1557
+ BaseUUID /* uuid */;
1558
+ };
1559
+ /**
1560
+ * Optional delivery channel configuration. Each channel is only sent by the
1561
+ * consumer once it has been enabled and fully configured in the wizard.
1562
+ *
1563
+ */
1564
+ channels?: {
1565
+ /**
1566
+ * Portal widget placement for the product recommendation block. Only sent by
1567
+ * the consumer once both a portal and a block have been selected.
1568
+ *
1569
+ */
1570
+ portal_widget?: {
1571
+ portal_id: /**
1572
+ * example:
1573
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1574
+ */
1575
+ BaseUUID /* uuid */;
1576
+ block_id: /**
1577
+ * example:
1578
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1579
+ */
1580
+ BaseUUID /* uuid */;
1581
+ };
1582
+ /**
1583
+ * Email campaign delivery. The selected automation flow is persisted as the
1584
+ * campaign's `flow_id` and is responsible for sending the campaign emails.
1585
+ * Only sent by the consumer once an automation has been selected.
1586
+ *
1587
+ */
1588
+ email?: {
1589
+ automation_id: /**
1590
+ * example:
1591
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1592
+ */
1593
+ BaseUUID /* uuid */;
1594
+ };
1595
+ };
1596
+ }
1597
+ export interface SetupTariffChangeCampaignResponse {
1598
+ type: "tariff_change";
1599
+ product_recommendation_id: /**
1600
+ * example:
1601
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1602
+ */
1603
+ BaseUUID /* uuid */;
1604
+ campaign_id: /**
1605
+ * example:
1606
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1607
+ */
1608
+ BaseUUID /* uuid */;
1609
+ journey_id?: /**
1610
+ * example:
1611
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1612
+ */
1613
+ BaseUUID /* uuid */;
1614
+ portal_widget_id?: /**
1615
+ * example:
1616
+ * b8c01433-5556-4e2b-aad4-6f5348d1df84
1617
+ */
1618
+ BaseUUID /* uuid */;
1619
+ }
1468
1620
  export interface Target {
1469
1621
  _id?: /**
1470
1622
  * example:
@@ -1665,6 +1817,19 @@ declare namespace Paths {
1665
1817
  export type $500 = Components.Responses.ServerErrorResponse;
1666
1818
  }
1667
1819
  }
1820
+ namespace SetupCampaign {
1821
+ export type RequestBody = /**
1822
+ * Discriminated by `type`. Each campaign variant has its own request shape;
1823
+ * new variants are added by introducing a new schema and extending the `oneOf` list.
1824
+ *
1825
+ */
1826
+ Components.Schemas.SetupCampaignRequest;
1827
+ namespace Responses {
1828
+ export type $201 = Components.Responses.SetupCampaignResponse;
1829
+ export type $400 = Components.Responses.ClientErrorResponse;
1830
+ export type $500 = Components.Responses.ServerErrorResponse;
1831
+ }
1832
+ }
1668
1833
  namespace UpdateRecipient {
1669
1834
  namespace Parameters {
1670
1835
  export type CampaignId = /**
@@ -1772,6 +1937,18 @@ interface OperationMethods {
1772
1937
  data?: Paths.RetriggerCampaignAutomations.RequestBody,
1773
1938
  config?: AxiosRequestConfig
1774
1939
  ): OperationResponse<Paths.RetriggerCampaignAutomations.Responses.$200>
1940
+ /**
1941
+ * setupCampaign - Set up a campaign with related entities and configurations
1942
+ *
1943
+ * Creates a `campaign` entity together with its related entities and configurations in a single call.
1944
+ * Used by the campaign wizard UI, but not restricted to it.
1945
+ *
1946
+ */
1947
+ 'setupCampaign'(
1948
+ parameters?: Parameters<UnknownParamsObject> | null,
1949
+ data?: Paths.SetupCampaign.RequestBody,
1950
+ config?: AxiosRequestConfig
1951
+ ): OperationResponse<Paths.SetupCampaign.Responses.$201>
1775
1952
  /**
1776
1953
  * matchCampaigns - Match campaigns
1777
1954
  *
@@ -1919,6 +2096,20 @@ interface PathsDictionary {
1919
2096
  config?: AxiosRequestConfig
1920
2097
  ): OperationResponse<Paths.RetriggerCampaignAutomations.Responses.$200>
1921
2098
  }
2099
+ ['/v1/campaign:setup']: {
2100
+ /**
2101
+ * setupCampaign - Set up a campaign with related entities and configurations
2102
+ *
2103
+ * Creates a `campaign` entity together with its related entities and configurations in a single call.
2104
+ * Used by the campaign wizard UI, but not restricted to it.
2105
+ *
2106
+ */
2107
+ 'post'(
2108
+ parameters?: Parameters<UnknownParamsObject> | null,
2109
+ data?: Paths.SetupCampaign.RequestBody,
2110
+ config?: AxiosRequestConfig
2111
+ ): OperationResponse<Paths.SetupCampaign.Responses.$201>
2112
+ }
1922
2113
  ['/v1/campaign:match']: {
1923
2114
  /**
1924
2115
  * matchCampaigns - Match campaigns
@@ -2049,9 +2240,12 @@ type Recipient = Components.Schemas.Recipient;
2049
2240
  type RetriggerAutomationsRequest = Components.Schemas.RetriggerAutomationsRequest;
2050
2241
  type RetriggerAutomationsResult = Components.Schemas.RetriggerAutomationsResult;
2051
2242
  type ServerError = Components.Schemas.ServerError;
2243
+ type SetupCampaignRequest = Components.Schemas.SetupCampaignRequest;
2244
+ type SetupTariffChangeCampaignRequest = Components.Schemas.SetupTariffChangeCampaignRequest;
2245
+ type SetupTariffChangeCampaignResponse = Components.Schemas.SetupTariffChangeCampaignResponse;
2052
2246
  type Target = Components.Schemas.Target;
2053
2247
  type TargetQueryResult = Components.Schemas.TargetQueryResult;
2054
2248
  type UpdatePortalStatusRequest = Components.Schemas.UpdatePortalStatusRequest;
2055
2249
  type UpdateRecipientPayload = Components.Schemas.UpdateRecipientPayload;
2056
2250
 
2057
- export { type AutomationRecipientPayload as A, type BaseEntityAcl as B, type Client as C, type ExecutionSummaryItem as E, type GetTargetQueriesParams as G, type JobStatus as J, type MatchCampaignParams as M, type OperationMethods as O, Paths as P, type Recipient as R, type ServerError as S, type Target as T, type UpdatePortalStatusRequest as U, Components as a, type PathsDictionary as b, type AutomationStatus as c, type BaseEntityOwner as d, type BaseError as e, type BaseNanoID as f, type BaseRecipientPayload as g, type BaseRelation as h, type BaseSystemFields as i, type BaseSystemFieldsRequired as j, type BaseSystemId as k, type BaseTags as l, type BaseUUID as m, type Campaign as n, type CampaignStatus as o, type ClientError as p, type CreateRecipientPayload as q, type MatchTargetParams as r, type PortalRecipientPayload as s, type PortalStatus as t, type RetriggerAutomationsRequest as u, type RetriggerAutomationsResult as v, type TargetQueryResult as w, type UpdateRecipientPayload as x };
2251
+ export { type AutomationRecipientPayload as A, type BaseEntityAcl as B, type Client as C, type UpdateRecipientPayload as D, type ExecutionSummaryItem as E, type GetTargetQueriesParams as G, type JobStatus as J, type MatchCampaignParams as M, type OperationMethods as O, Paths as P, type Recipient as R, type ServerError as S, type Target as T, type UpdatePortalStatusRequest as U, Components as a, type PathsDictionary as b, type AutomationStatus as c, type BaseEntityOwner as d, type BaseError as e, type BaseNanoID as f, type BaseRecipientPayload as g, type BaseRelation as h, type BaseSystemFields as i, type BaseSystemFieldsRequired as j, type BaseSystemId as k, type BaseTags as l, type BaseUUID as m, type Campaign as n, type CampaignStatus as o, type ClientError as p, type CreateRecipientPayload as q, type MatchTargetParams as r, type PortalRecipientPayload as s, type PortalStatus as t, type RetriggerAutomationsRequest as u, type RetriggerAutomationsResult as v, type SetupCampaignRequest as w, type SetupTariffChangeCampaignRequest as x, type SetupTariffChangeCampaignResponse as y, type TargetQueryResult as z };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
2
+
3
+ // src/docs/webhooks.json
4
+ var webhooks_default = '# Webhooks\n\n- **Base URL:** `https://webhooks.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/webhooks](https://docs.epilot.io/api/webhooks)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.webhooks.getPublicKey(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/webhooks\'\n\nconst webhooksClient = getClient()\nauthorize(webhooksClient, () => \'<token>\')\nconst { data } = await webhooksClient.getPublicKey(...)\n```\n\n## Operations\n\n**webhooks**\n- [`getPublicKey`](#getpublickey)\n- [`getConfiguredEvents`](#getconfiguredevents)\n- [`getConfigs`](#getconfigs)\n- [`createConfig`](#createconfig)\n- [`getConfig`](#getconfig)\n- [`updateConfig`](#updateconfig)\n- [`deleteConfig`](#deleteconfig)\n- [`testOAuth`](#testoauth)\n- [`triggerWebhook`](#triggerwebhook)\n- [`batchReplayEvents`](#batchreplayevents)\n- [`getEventById`](#geteventbyid)\n- [`replayEvent`](#replayevent)\n- [`getWebhookExample`](#getwebhookexample)\n\n**Events**\n- [`getWebhookEventsV2`](#getwebhookeventsv2)\n\n**Schemas**\n- [`PublicKeyResponse`](#publickeyresponse)\n- [`SearchOptions`](#searchoptions)\n- [`EventListResponse`](#eventlistresponse)\n- [`HttpMethod`](#httpmethod)\n- [`AuthType`](#authtype)\n- [`Filter`](#filter)\n- [`WebhookCondition`](#webhookcondition)\n- [`WebhookConditionGroup`](#webhookconditiongroup)\n- [`Auth`](#auth)\n- [`BasicAuthConfig`](#basicauthconfig)\n- [`OAuthConfig`](#oauthconfig)\n- [`ApiKeyConfig`](#apikeyconfig)\n- [`WebhookConfig`](#webhookconfig)\n- [`EventConfigResp`](#eventconfigresp)\n- [`EventConfigEntry`](#eventconfigentry)\n- [`ErrorResp`](#errorresp)\n- [`TriggerWebhookResp`](#triggerwebhookresp)\n- [`PayloadConfiguration`](#payloadconfiguration)\n- [`CustomHeader`](#customheader)\n- [`CustomOAuthParameter`](#customoauthparameter)\n- [`Metadata`](#metadata)\n- [`ExecutionPayload`](#executionpayload)\n- [`WebhookEvent`](#webhookevent)\n- [`ExampleRequest`](#examplerequest)\n- [`ExampleResponse`](#exampleresponse)\n- [`TestOAuthResponse`](#testoauthresponse)\n- [`BatchReplayRequest`](#batchreplayrequest)\n\n### `getPublicKey`\n\nReturns the platform-level Ed25519 public key used to verify\nasymmetric (v1a) webhook signatures. This endpoint is unauthenticated since the public key is not a secret, but the orgId parameter is requ\n\n`GET /v1/webhooks/.well-known/public-key`\n\n```ts\nconst { data } = await client.getPublicKey({\n orgId: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "public_key": "-----BEGIN PUBLIC KEY-----\\nMCowBQYDK2VwAyEA...\\n-----END PUBLIC KEY-----\\n",\n "algorithm": "ed25519",\n "issuer": "epilot"\n}\n```\n\n</details>\n\n---\n\n### `getConfiguredEvents`\n\nRetrieve events that can trigger webhooks\n\n`GET /v1/webhooks/configured-events`\n\n```ts\nconst { data } = await client.getConfiguredEvents()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "eventName": "customer_request_created",\n "eventLabel": "Customer Request Created"\n }\n]\n```\n\n</details>\n\n---\n\n### `getConfigs`\n\nSearch Webhook Client Configs\n\n`GET /v1/webhooks/configs`\n\n```ts\nconst { data } = await client.getConfigs({\n eventName: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "eventName": "CustomerRequest_Created",\n "url": "https://my-partner-service.api.com",\n "httpMethod": "POST",\n "enabled": true,\n "auth": {\n "authType": "BASIC",\n "basicAuthConfig": {\n "username": "secretUsername",\n "password": "secret7825@!"\n }\n },\n "filter": {\n "keyToFilter": "customer_request.productId",\n "supportedValues": ["2324245", "5253642"]\n }\n }\n]\n```\n\n</details>\n\n---\n\n### `createConfig`\n\nCreate Webhook Client Config\n\n`POST /v1/webhooks/configs`\n\n```ts\nconst { data } = await client.createConfig(\n null,\n {\n eventName: \'CustomerRequest_Created\',\n url: \'https://my-partner-service.api.com\',\n httpMethod: \'POST\',\n enabled: true,\n auth: {\n authType: \'BASIC\',\n basicAuthConfig: {\n username: \'secretUsername\',\n password: \'secret7825@!\'\n }\n },\n filter: {\n keyToFilter: \'customer_request.productId\',\n supportedValues: [\'2324245\', \'5253642\']\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "eventName": "CustomerRequest_Created",\n "url": "https://my-partner-service.api.com",\n "httpMethod": "POST",\n "enabled": true,\n "auth": {\n "authType": "BASIC",\n "basicAuthConfig": {\n "username": "secretUsername",\n "password": "secret7825@!"\n }\n },\n "filter": {\n "keyToFilter": "customer_request.productId",\n "supportedValues": ["2324245", "5253642"]\n }\n}\n```\n\n</details>\n\n---\n\n### `getConfig`\n\nGet webhook config by id\n\n`GET /v1/webhooks/configs/{configId}`\n\n```ts\nconst { data } = await client.getConfig({\n configId: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "eventName": "CustomerRequest_Created",\n "url": "https://my-partner-service.api.com",\n "httpMethod": "POST",\n "enabled": true,\n "auth": {\n "authType": "BASIC",\n "basicAuthConfig": {\n "username": "secretUsername",\n "password": "secret7825@!"\n }\n },\n "filter": {\n "keyToFilter": "customer_request.productId",\n "supportedValues": ["2324245", "5253642"]\n }\n}\n```\n\n</details>\n\n---\n\n### `updateConfig`\n\nUpdate Webhook Client Config\n\n`PUT /v1/webhooks/configs/{configId}`\n\n```ts\nconst { data } = await client.updateConfig(\n {\n configId: \'example\',\n },\n {\n eventName: \'CustomerRequest_Created\',\n url: \'https://my-partner-service.api.com\',\n httpMethod: \'POST\',\n enabled: true,\n auth: {\n authType: \'BASIC\',\n basicAuthConfig: {\n username: \'secretUsername\',\n password: \'secret7825@!\'\n }\n },\n filter: {\n keyToFilter: \'customer_request.productId\',\n supportedValues: [\'2324245\', \'5253642\']\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "eventName": "CustomerRequest_Created",\n "url": "https://my-partner-service.api.com",\n "httpMethod": "POST",\n "enabled": true,\n "auth": {\n "authType": "BASIC",\n "basicAuthConfig": {\n "username": "secretUsername",\n "password": "secret7825@!"\n }\n },\n "filter": {\n "keyToFilter": "customer_request.productId",\n "supportedValues": ["2324245", "5253642"]\n }\n}\n```\n\n</details>\n\n---\n\n### `deleteConfig`\n\nDelete Webhook Client Config\n\n`DELETE /v1/webhooks/configs/{configId}`\n\n```ts\nconst { data } = await client.deleteConfig({\n configId: \'example\',\n})\n```\n\n---\n\n### `testOAuth`\n\nTest OAuth connection\n\n`POST /v1/webhooks/configs/{configId}/test-oauth`\n\n```ts\nconst { data } = await client.testOAuth({\n configId: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "success": true,\n "expires_in": 3600,\n "token_type": "Bearer",\n "message": "OAuth token exchange successful"\n}\n```\n\n</details>\n\n---\n\n### `triggerWebhook`\n\ntriggers a webhook event either async or sync\n\n`POST /v1/webhooks/configs/{configId}/trigger`\n\n```ts\nconst { data } = await client.triggerWebhook(\n {\n sync: true,\n configId: \'example\',\n },\n {\n metadata: {\n action: \'Manual triggered by user with id 123456\',\n origin: \'string\',\n creation_timestamp: \'string\',\n webhook_id: \'string\',\n webhook_name: \'string\',\n automation_name: \'string\',\n organization_id: \'string\',\n user_id: \'string\',\n correlation_id: \'string\',\n execution_id: \'string\',\n action_id: \'string\'\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "status_code": "string",\n "message": "string",\n "body": {},\n "code": "string",\n "status": "succeeded",\n "start_date": "string",\n "end_date": "string",\n "event_id": "string"\n}\n```\n\n</details>\n\n---\n\n### `batchReplayEvents`\n\nReplay a batch of webhook events\n\n`POST /v1/webhooks/configs/{configId}/events/replay-batch`\n\n```ts\nconst { data } = await client.batchReplayEvents(\n {\n configId: \'example\',\n },\n {\n eventIds: [\'2f1b7cf8-ff55-4359-966f-e56f39a52c94\', \'48c984bf-466b-470b-b743-d07cea168243\']\n },\n)\n```\n\n---\n\n### `getEventById`\n\nGet a webhook event by its id\n\n`GET /v1/webhooks/configs/{configId}/events/{eventId}`\n\n```ts\nconst { data } = await client.getEventById({\n configId: \'example\',\n eventId: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "event_id": "string",\n "org_id": "string",\n "webhook_config_id": "string",\n "url": "string",\n "created_at": "2021-04-27T12:01:13.000Z",\n "event_name": "string",\n "http_response": {\n "status_code": 0,\n "message": "string",\n "body": {},\n "code": "string"\n },\n "metadata": {\n "action": "Manual triggered by user with id 123456",\n "origin": "string",\n "creation_timestamp": "string",\n "webhook_id": "string",\n "webhook_name": "string",\n "automation_name": "string",\n "organization_id": "string",\n "user_id": "string",\n "correlation_id": "string",\n "execution_id": "string",\n "action_id": "string"\n },\n "status": "succeeded",\n "http_method": "GET",\n "payload": "string",\n "retry_attempt": 0\n}\n```\n\n</details>\n\n---\n\n### `replayEvent`\n\nReplay a webhook event\n\n`POST /v1/webhooks/configs/{configId}/events/{eventId}/replay`\n\n```ts\nconst { data } = await client.replayEvent({\n configId: \'example\',\n eventId: \'example\',\n})\n```\n\n---\n\n### `getWebhookExample`\n\nGenerate an example payload for a webhook configuration based on trigger type\n\n`POST /v1/webhooks/configs/{configId}/example`\n\n```ts\nconst { data } = await client.getWebhookExample(\n {\n configId: \'example\',\n },\n {\n automation_id: \'automation_123\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "metadata": {\n "action": "Manual triggered by user with id 123456",\n "origin": "string",\n "creation_timestamp": "string",\n "webhook_id": "string",\n "webhook_name": "string",\n "automation_name": "string",\n "organization_id": "string",\n "user_id": "string",\n "correlation_id": "string",\n "execution_id": "string",\n "action_id": "string"\n },\n "entity": {},\n "relations": [\n {}\n ]\n}\n```\n\n</details>\n\n---\n\n### `getWebhookEventsV2`\n\nList webhook events and filter them by status, timestamp, etc.\n\n`POST /v2/webhooks/configs/{configId}/events`\n\n```ts\nconst { data } = await client.getWebhookEventsV2(\n {\n configId: \'example\',\n },\n {\n limit: 25,\n cursor: {\n created_at: \'2025-10-31T12:34:56Z\',\n event_id: \'evt_1234567890abcdef\'\n },\n timestamp: {\n from: \'2025-10-01T00:00:00Z\',\n to: \'2025-10-31T23:59:59Z\'\n },\n event_id: \'evt_1234567890abcdef\',\n status: \'succeeded\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "data": [\n {\n "event_id": "string",\n "org_id": "string",\n "webhook_config_id": "string",\n "url": "string",\n "created_at": "2021-04-27T12:01:13.000Z",\n "event_name": "string",\n "http_response": {\n "status_code": 0,\n "message": "string",\n "body": {},\n "code": "string"\n },\n "metadata": {\n "action": "Manual triggered by user with id 123456",\n "origin": "string",\n "creation_timestamp": "string",\n "webhook_id": "string",\n "webhook_name": "string",\n "automation_name": "string",\n "organization_id": "string",\n "user_id": "string",\n "correlation_id": "string",\n "execution_id": "string",\n "action_id": "string"\n },\n "status": "succeeded",\n "http_method": "GET",\n "payload": "string",\n "retry_attempt": 0\n }\n ],\n "next_cursor": {\n "created_at": "2025-10-31T12:34:56Z",\n "event_id": "evt_1234567890abcdef"\n },\n "has_more": true\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `PublicKeyResponse`\n\n```ts\ntype PublicKeyResponse = {\n public_key: string\n algorithm: string\n issuer?: string\n}\n```\n\n### `SearchOptions`\n\n```ts\ntype SearchOptions = {\n limit?: number\n cursor?: {\n created_at?: string // date-time\n event_id?: string\n }\n timestamp?: {\n from?: string // date-time\n to?: string // date-time\n }\n event_id?: string\n status?: "succeeded" | "failed" | "skipped"\n}\n```\n\n### `EventListResponse`\n\n```ts\ntype EventListResponse = {\n data?: Array<{\n event_id: string\n org_id: string\n webhook_config_id: string\n url?: string\n created_at?: string\n event_name?: string\n http_response?: {\n status_code?: { ... }\n message?: { ... }\n body?: { ... }\n code?: { ... }\n }\n metadata?: {\n action?: { ... }\n origin?: { ... }\n creation_timestamp?: { ... }\n webhook_id?: { ... }\n webhook_name?: { ... }\n automation_name?: { ... }\n organization_id: { ... }\n user_id?: { ... }\n correlation_id?: { ... }\n execution_id?: { ... }\n action_id?: { ... }\n }\n status?: "succeeded" | "failed" | "in_progress" | "skipped"\n http_method?: "GET" | "POST" | "PUT"\n payload?: string\n retry_attempt?: number\n }>\n next_cursor?: {\n created_at?: string // date-time\n event_id?: string\n }\n has_more?: boolean\n}\n```\n\n### `HttpMethod`\n\n```ts\ntype HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD"\n```\n\n### `AuthType`\n\n```ts\ntype AuthType = "BASIC" | "OAUTH_CLIENT_CREDENTIALS" | "API_KEY" | "NONE"\n```\n\n### `Filter`\n\n```ts\ntype Filter = {\n keyToFilter: string\n supportedValues: string[]\n}\n```\n\n### `WebhookCondition`\n\nA condition that must be met for the webhook to fire.\n\n```ts\ntype WebhookCondition = {\n field: string\n operation: "equals" | "not_equals" | "any_of" | "none_of" | "contains" | "not_contains" | "starts_with" | "ends_with" | "greater_than" | "less_than" | "greater_than_or_equals" | "less_than_or_equals" | "is_empty" | "is_not_empty"\n values?: string[]\n field_type?: "string" | "number" | "boolean" | "date" | "datetime"\n is_array_field?: boolean\n repeatable_item_op?: boolean\n}\n```\n\n### `WebhookConditionGroup`\n\nA group of conditions with a logical operator. Multiple conditions are AND-ed by default.\n\n```ts\ntype WebhookConditionGroup = {\n conditions?: Array<{\n field: string\n operation: "equals" | "not_equals" | "any_of" | "none_of" | "contains" | "not_contains" | "starts_with" | "ends_with" | "greater_than" | "less_than" | "greater_than_or_equals" | "less_than_or_equals" | "is_empty" | "is_not_empty"\n values?: string[]\n field_type?: "string" | "number" | "boolean" | "date" | "datetime"\n is_array_field?: boolean\n repeatable_item_op?: boolean\n }>\n logical_operator?: "AND" | "OR"\n}\n```\n\n### `Auth`\n\n```ts\ntype Auth = {\n authType: "BASIC" | "OAUTH_CLIENT_CREDENTIALS" | "API_KEY" | "NONE"\n basicAuthConfig?: {\n username: string\n password?: string\n passwordIsEnvVar?: boolean\n }\n oauthConfig?: {\n clientId: string\n clientSecret?: string\n clientSecretIsEnvVar?: boolean\n endpoint: string\n httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD"\n customParameterList?: Array<{\n type: { ... }\n key: { ... }\n value: { ... }\n }>\n }\n apiKeyConfig?: {\n keyName: string\n keyValue?: string\n keyValueIsEnvVar?: boolean\n }\n}\n```\n\n### `BasicAuthConfig`\n\nTo be sent only if authType is BASIC\n\n```ts\ntype BasicAuthConfig = {\n username: string\n password?: string\n passwordIsEnvVar?: boolean\n}\n```\n\n### `OAuthConfig`\n\nTo be sent only if authType is OAUTH_CLIENT_CREDENTIALS\n\n```ts\ntype OAuthConfig = {\n clientId: string\n clientSecret?: string\n clientSecretIsEnvVar?: boolean\n endpoint: string\n httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD"\n customParameterList?: Array<{\n type: "body" | "query" | "header"\n key: string\n value: string\n }>\n}\n```\n\n### `ApiKeyConfig`\n\nTo be sent only if authType is API_KEY\n\n```ts\ntype ApiKeyConfig = {\n keyName: string\n keyValue?: string\n keyValueIsEnvVar?: boolean\n}\n```\n\n### `WebhookConfig`\n\n```ts\ntype WebhookConfig = {\n id?: string\n name: string\n eventName: string\n eventVersion?: string\n url?: string\n creationTime?: string\n updatedTime?: string\n httpMethod?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD"\n enabled?: boolean\n auth?: {\n authType: "BASIC" | "OAUTH_CLIENT_CREDENTIALS" | "API_KEY" | "NONE"\n basicAuthConfig?: {\n username: { ... }\n password?: { ... }\n passwordIsEnvVar?: { ... }\n }\n oauthConfig?: {\n clientId: { ... }\n clientSecret?: { ... }\n clientSecretIsEnvVar?: { ... }\n endpoint: { ... }\n httpMethod: { ... }\n customParameterList?: { ... }\n }\n apiKeyConfig?: {\n keyName: { ... }\n keyValue?: { ... }\n keyValueIsEnvVar?: { ... }\n }\n }\n filter?: {\n keyToFilter: string\n supportedValues: string[]\n }\n payloadConfiguration?: {\n hydrate_entity?: boolean\n include_relations?: boolean\n include_activity?: boolean\n include_changed_attributes?: boolean\n apply_changesets?: boolean\n custom_headers?: Record<string, string>\n }\n enableStaticIP?: boolean\n protected?: boolean\n secureProxy?: {\n integration_id: string // uuid\n use_case_slug: string\n }\n status?: "active" | "inactive" | "incomplete"\n jsonataExpression?: string\n deliveryMode?: "json_base64" | "binary_multipart"\n multipartConfig?: {\n fileFieldName?: string\n fileFieldStrategy?: "single" | "multi"\n fileSource?: string\n extraFields?: Record<string, string>\n }\n retryPolicy?: {\n enabled: boolean\n maxAttempts?: number\n }\n filterConditions?: {\n conditions?: Array<{\n field: { ... }\n operation: { ... }\n values?: { ... }\n field_type?: { ... }\n is_array_field?: { ... }\n repeatable_item_op?: { ... }\n }>\n logical_operator?: "AND" | "OR"\n }\n _manifest?: string // uuid[]\n signingSecret?: string\n}\n```\n\n### `EventConfigResp`\n\n```ts\ntype EventConfigResp = Array<{\n eventName?: string\n eventLabel?: string\n}>\n```\n\n### `EventConfigEntry`\n\n```ts\ntype EventConfigEntry = {\n eventName?: string\n eventLabel?: string\n}\n```\n\n### `ErrorResp`\n\n```ts\ntype ErrorResp = {\n message?: string\n}\n```\n\n### `TriggerWebhookResp`\n\n```ts\ntype TriggerWebhookResp = {\n status_code?: string\n message?: string\n body?: object\n code?: string\n status?: "succeeded" | "failed"\n start_date?: string\n end_date?: string\n event_id: string\n}\n```\n\n### `PayloadConfiguration`\n\nConfiguration for the webhook payload\n\n```ts\ntype PayloadConfiguration = {\n hydrate_entity?: boolean\n include_relations?: boolean\n include_activity?: boolean\n include_changed_attributes?: boolean\n apply_changesets?: boolean\n custom_headers?: Record<string, string>\n}\n```\n\n### `CustomHeader`\n\nObject representing custom headers as key-value pairs.\n\n```ts\ntype CustomHeader = Record<string, string>\n```\n\n### `CustomOAuthParameter`\n\nCustom key/value pair of either type body, query or header\n\n```ts\ntype CustomOAuthParameter = {\n type: "body" | "query" | "header"\n key: string\n value: string\n}\n```\n\n### `Metadata`\n\nContains the metadata about the configured event\n\n```ts\ntype Metadata = {\n action?: string\n origin?: string\n creation_timestamp?: string\n webhook_id?: string\n webhook_name?: string\n automation_name?: string\n organization_id: string\n user_id?: string\n correlation_id?: string\n execution_id?: string\n action_id?: string\n}\n```\n\n### `ExecutionPayload`\n\nPayload for triggering a webhook\n\n```ts\ntype ExecutionPayload = {\n metadata: {\n action?: string\n origin?: string\n creation_timestamp?: string\n webhook_id?: string\n webhook_name?: string\n automation_name?: string\n organization_id: string\n user_id?: string\n correlation_id?: string\n execution_id?: string\n action_id?: string\n }\n}\n```\n\n### `WebhookEvent`\n\n```ts\ntype WebhookEvent = {\n event_id: string\n org_id: string\n webhook_config_id: string\n url?: string\n created_at?: string\n event_name?: string\n http_response?: {\n status_code?: number\n message?: string\n body?: object\n code?: string\n }\n metadata?: {\n action?: string\n origin?: string\n creation_timestamp?: string\n webhook_id?: string\n webhook_name?: string\n automation_name?: string\n organization_id: string\n user_id?: string\n correlation_id?: string\n execution_id?: string\n action_id?: string\n }\n status?: "succeeded" | "failed" | "in_progress" | "skipped"\n http_method?: "GET" | "POST" | "PUT"\n payload?: string\n retry_attempt?: number\n}\n```\n\n### `ExampleRequest`\n\n```ts\ntype ExampleRequest = {\n automation_id?: string\n}\n```\n\n### `ExampleResponse`\n\n```ts\ntype ExampleResponse = {\n metadata?: {\n action?: string\n origin?: string\n creation_timestamp?: string\n webhook_id?: string\n webhook_name?: string\n automation_name?: string\n organization_id: string\n user_id?: string\n correlation_id?: string\n execution_id?: string\n action_id?: string\n }\n entity?: Record<string, unknown>\n relations?: Record<string, unknown>[]\n}\n```\n\n### `TestOAuthResponse`\n\n```ts\ntype TestOAuthResponse = {\n success: boolean\n expires_in?: number\n token_type?: string\n message: string\n}\n```\n\n### `BatchReplayRequest`\n\n```ts\ntype BatchReplayRequest = {\n eventIds: string[]\n}\n```\n';
5
+
6
+
7
+ exports.default = webhooks_default;