@epilot/sdk 2.20.49 → 2.20.51

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 (169) hide show
  1. package/README.md +1 -0
  2. package/definitions/external-values-runtime.json +1 -0
  3. package/definitions/external-values.json +450 -0
  4. package/definitions/journey-runtime.json +1 -1
  5. package/definitions/journey.json +356 -10
  6. package/definitions/pricing-runtime.json +1 -1
  7. package/definitions/pricing.json +949 -130
  8. package/dist/README-B6X6BXAW.cjs +7 -0
  9. package/dist/README-LE2VBY2Y.js +7 -0
  10. package/dist/{_index-UWRY3DNX.cjs → _index-DEYTKG4Z.cjs} +4 -1
  11. package/dist/{_index-UBUNWMRP.js → _index-HL3HOTXB.js} +3 -0
  12. package/dist/apis/access-token.cjs +6 -6
  13. package/dist/apis/access-token.js +1 -1
  14. package/dist/apis/address-suggestions.cjs +6 -6
  15. package/dist/apis/address-suggestions.js +1 -1
  16. package/dist/apis/address.cjs +6 -6
  17. package/dist/apis/address.js +1 -1
  18. package/dist/apis/ai-agents.cjs +6 -6
  19. package/dist/apis/ai-agents.js +1 -1
  20. package/dist/apis/app.cjs +6 -6
  21. package/dist/apis/app.js +1 -1
  22. package/dist/apis/audit-logs.cjs +6 -6
  23. package/dist/apis/audit-logs.js +1 -1
  24. package/dist/apis/automation.cjs +6 -6
  25. package/dist/apis/automation.js +1 -1
  26. package/dist/apis/billing.cjs +6 -6
  27. package/dist/apis/billing.js +1 -1
  28. package/dist/apis/blueprint-manifest.cjs +6 -6
  29. package/dist/apis/blueprint-manifest.js +1 -1
  30. package/dist/apis/calendar.cjs +6 -6
  31. package/dist/apis/calendar.js +1 -1
  32. package/dist/apis/chat.cjs +6 -6
  33. package/dist/apis/chat.js +1 -1
  34. package/dist/apis/configuration-hub.cjs +6 -6
  35. package/dist/apis/configuration-hub.js +1 -1
  36. package/dist/apis/consent.cjs +6 -6
  37. package/dist/apis/consent.js +1 -1
  38. package/dist/apis/customer-portal.cjs +6 -6
  39. package/dist/apis/customer-portal.js +1 -1
  40. package/dist/apis/dashboard.cjs +6 -6
  41. package/dist/apis/dashboard.js +1 -1
  42. package/dist/apis/data-governance.cjs +6 -6
  43. package/dist/apis/data-governance.js +1 -1
  44. package/dist/apis/deduplication.cjs +6 -6
  45. package/dist/apis/deduplication.js +1 -1
  46. package/dist/apis/design.cjs +6 -6
  47. package/dist/apis/design.js +1 -1
  48. package/dist/apis/document.cjs +6 -6
  49. package/dist/apis/document.js +1 -1
  50. package/dist/apis/email-settings.cjs +6 -6
  51. package/dist/apis/email-settings.js +1 -1
  52. package/dist/apis/email-template.cjs +6 -6
  53. package/dist/apis/email-template.js +1 -1
  54. package/dist/apis/entity-mapping.cjs +6 -6
  55. package/dist/apis/entity-mapping.js +1 -1
  56. package/dist/apis/entity.cjs +6 -6
  57. package/dist/apis/entity.js +1 -1
  58. package/dist/apis/environments.cjs +6 -6
  59. package/dist/apis/environments.js +1 -1
  60. package/dist/apis/event-catalog.cjs +6 -6
  61. package/dist/apis/event-catalog.js +1 -1
  62. package/dist/apis/external-values.cjs +38 -0
  63. package/dist/apis/external-values.d.cts +18 -0
  64. package/dist/apis/external-values.d.ts +18 -0
  65. package/dist/apis/external-values.js +38 -0
  66. package/dist/apis/file.cjs +6 -6
  67. package/dist/apis/file.js +1 -1
  68. package/dist/apis/iban.cjs +6 -6
  69. package/dist/apis/iban.js +1 -1
  70. package/dist/apis/identity.cjs +6 -6
  71. package/dist/apis/identity.js +1 -1
  72. package/dist/apis/integration-toolkit.cjs +6 -6
  73. package/dist/apis/integration-toolkit.js +1 -1
  74. package/dist/apis/journey.cjs +8 -8
  75. package/dist/apis/journey.d.cts +2 -2
  76. package/dist/apis/journey.d.ts +2 -2
  77. package/dist/apis/journey.js +2 -2
  78. package/dist/apis/kanban.cjs +6 -6
  79. package/dist/apis/kanban.js +1 -1
  80. package/dist/apis/message.cjs +6 -6
  81. package/dist/apis/message.js +1 -1
  82. package/dist/apis/metering.cjs +6 -6
  83. package/dist/apis/metering.js +1 -1
  84. package/dist/apis/notes.cjs +6 -6
  85. package/dist/apis/notes.js +1 -1
  86. package/dist/apis/notification.cjs +6 -6
  87. package/dist/apis/notification.js +1 -1
  88. package/dist/apis/organization.cjs +6 -6
  89. package/dist/apis/organization.js +1 -1
  90. package/dist/apis/partner-directory.cjs +6 -6
  91. package/dist/apis/partner-directory.js +1 -1
  92. package/dist/apis/permissions.cjs +6 -6
  93. package/dist/apis/permissions.js +1 -1
  94. package/dist/apis/pricing-tier.cjs +6 -6
  95. package/dist/apis/pricing-tier.js +1 -1
  96. package/dist/apis/pricing.cjs +8 -8
  97. package/dist/apis/pricing.d.cts +2 -2
  98. package/dist/apis/pricing.d.ts +2 -2
  99. package/dist/apis/pricing.js +2 -2
  100. package/dist/apis/purpose.cjs +6 -6
  101. package/dist/apis/purpose.js +1 -1
  102. package/dist/apis/query.cjs +6 -6
  103. package/dist/apis/query.js +1 -1
  104. package/dist/apis/sandbox.cjs +6 -6
  105. package/dist/apis/sandbox.js +1 -1
  106. package/dist/apis/sharing.cjs +6 -6
  107. package/dist/apis/sharing.js +1 -1
  108. package/dist/apis/snapshot.cjs +6 -6
  109. package/dist/apis/snapshot.js +1 -1
  110. package/dist/apis/submission.cjs +6 -6
  111. package/dist/apis/submission.js +1 -1
  112. package/dist/apis/target.cjs +6 -6
  113. package/dist/apis/target.js +1 -1
  114. package/dist/apis/targeting.cjs +6 -6
  115. package/dist/apis/targeting.js +1 -1
  116. package/dist/apis/template-variables.cjs +6 -6
  117. package/dist/apis/template-variables.js +1 -1
  118. package/dist/apis/user.cjs +6 -6
  119. package/dist/apis/user.js +1 -1
  120. package/dist/apis/validation-rules.cjs +6 -6
  121. package/dist/apis/validation-rules.js +1 -1
  122. package/dist/apis/webhooks.cjs +6 -6
  123. package/dist/apis/webhooks.js +1 -1
  124. package/dist/apis/workflow-definition.cjs +6 -6
  125. package/dist/apis/workflow-definition.js +1 -1
  126. package/dist/apis/workflow.cjs +6 -6
  127. package/dist/apis/workflow.js +1 -1
  128. package/dist/{chunk-B3CLGH23.js → chunk-3FRPGY3C.js} +8 -6
  129. package/dist/chunk-BU5DVOFF.cjs +14 -0
  130. package/dist/chunk-CMEMMJ3T.js +14 -0
  131. package/dist/{chunk-SJS5S6Z5.js → chunk-I3ZZES76.js} +1 -1
  132. package/dist/chunk-NC33X2WL.cjs +14 -0
  133. package/dist/{chunk-X7UJYAG5.cjs → chunk-QYHNZLHS.cjs} +1 -1
  134. package/dist/chunk-QZ3FPCEP.js +14 -0
  135. package/dist/{chunk-CFHQ2UJU.cjs → chunk-UVYQFUAO.cjs} +8 -6
  136. package/dist/external-values-DALDMPMB.js +7 -0
  137. package/dist/external-values-XG5LFKZQ.cjs +7 -0
  138. package/dist/external-values-runtime-BPR3H6RL.cjs +5 -0
  139. package/dist/external-values-runtime-VXZRGQCT.js +5 -0
  140. package/dist/external-values.d-DjP9C_-r.d.cts +391 -0
  141. package/dist/external-values.d-DjP9C_-r.d.ts +391 -0
  142. package/dist/index.cjs +26 -18
  143. package/dist/index.d.cts +58 -56
  144. package/dist/index.d.ts +58 -56
  145. package/dist/index.js +17 -9
  146. package/dist/journey-JDIVUY7T.cjs +7 -0
  147. package/dist/journey-PBOMOJ5G.js +7 -0
  148. package/dist/{journey-runtime-S5I3K4NH.js → journey-runtime-AQH7EG4C.js} +1 -1
  149. package/dist/{journey-runtime-BVSPJTYH.cjs → journey-runtime-KZUPV4XH.cjs} +2 -2
  150. package/dist/{journey.d-Dj93v-Lw.d.cts → journey.d-CMtM6U3Y.d.cts} +404 -15
  151. package/dist/{journey.d-Dj93v-Lw.d.ts → journey.d-CMtM6U3Y.d.ts} +404 -15
  152. package/dist/pricing-FYBJTHHN.js +7 -0
  153. package/dist/pricing-M2FG4LZ6.cjs +7 -0
  154. package/dist/{pricing-runtime-NMRZO6J4.cjs → pricing-runtime-PEAN7F5S.cjs} +2 -2
  155. package/dist/{pricing-runtime-MJAIO4AY.js → pricing-runtime-UDUM3AXP.js} +1 -1
  156. package/dist/{pricing.d-B3_8FPCM.d.cts → pricing.d-BMV5QoZ7.d.cts} +5039 -1447
  157. package/dist/{pricing.d-B3_8FPCM.d.ts → pricing.d-BMV5QoZ7.d.ts} +5039 -1447
  158. package/docs/external-values.md +330 -0
  159. package/docs/journey.md +234 -36
  160. package/docs/pricing.md +940 -126
  161. package/package.json +10 -1
  162. package/dist/README-OSHX3IVR.cjs +0 -7
  163. package/dist/README-ZSJDIPZZ.js +0 -7
  164. package/dist/chunk-7Q3JW72Y.js +0 -14
  165. package/dist/chunk-QLWDOKGE.cjs +0 -14
  166. package/dist/journey-IVIBYU5V.js +0 -7
  167. package/dist/journey-ZN46FFPM.cjs +0 -7
  168. package/dist/pricing-JAICFDO5.cjs +0 -7
  169. package/dist/pricing-MYZSVSGK.js +0 -7
@@ -5,7 +5,7 @@ var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
5
5
  // src/definitions/journey-runtime.json
6
6
  var require_journey_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
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], ["version", "q"], ["revision_id", "q"], ["source", "q"], ["orgId", "q"]]], ["removeJourney", "delete", "/v1/journey/configuration/{id}", [["id", "p", true]]], ["createJourneyRevision", "post", "/v1/journey/configuration/{id}/revisions", [["id", "p", true]], 1], ["listJourneyRevisions", "get", "/v1/journey/configuration/{id}/revisions", [["id", "p", true], ["limit", "q"], ["cursor", "q"]]], ["getJourneyRevision", "get", "/v1/journey/configuration/{id}/revisions/{revision_id}", [["id", "p", true], ["revision_id", "p", true]]], ["publishJourneyRevision", "post", "/v1/journey/configuration/{id}/publish", [["id", "p", true]], 1], ["getJourneyPublishState", "get", "/v1/journey/configuration/{id}/publish-state", [["id", "p", true]]], ["getJourneyEnvironment", "get", "/v1/journey/configuration/{id}/environment", [["id", "p", true]]], ["getJourneyEnvironmentVariables", "get", "/v1/journey/environment-variables"], ["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], ["version", "q"]]], ["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" };
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], ["version", "q"], ["revision_id", "q"], ["source", "q"], ["orgId", "q"]]], ["removeJourney", "delete", "/v1/journey/configuration/{id}", [["id", "p", true]]], ["createJourneyRevision", "post", "/v1/journey/configuration/{id}/revisions", [["id", "p", true]], 1], ["listJourneyRevisions", "get", "/v1/journey/configuration/{id}/revisions", [["id", "p", true], ["limit", "q"], ["cursor", "q"]]], ["getJourneyRevision", "get", "/v1/journey/configuration/{id}/revisions/{revision_id}", [["id", "p", true], ["revision_id", "p", true]]], ["publishJourneyRevision", "post", "/v1/journey/configuration/{id}/publish", [["id", "p", true]], 1], ["getJourneyPublishState", "get", "/v1/journey/configuration/{id}/publish-state", [["id", "p", true]]], ["getJourneyEnvironment", "get", "/v1/journey/configuration/{id}/environment", [["id", "p", true]]], ["resolveJourneyExternalValues", "post", "/v1/journey/configuration/{id}/external-values", [["id", "p", true]], 1], ["getJourneyEnvironmentVariables", "get", "/v1/journey/environment-variables"], ["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], ["version", "q"]]], ["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
9
  }
10
10
  });
11
11
 
@@ -0,0 +1,14 @@
1
+ import {
2
+ __commonJS
3
+ } from "./chunk-YPSWSI3M.js";
4
+
5
+ // src/definitions/pricing-runtime.json
6
+ var require_pricing_runtime = __commonJS({
7
+ "src/definitions/pricing-runtime.json"(exports, module) {
8
+ module.exports = { s: "https://pricing-api.sls.epilot.io", o: [["$calculatePricingDetails", "post", "/v1/pricing:compute", null, 1], ["createOrder", "post", "/v1/order", null, 1], ["putOrder", "put", "/v1/order/{id}", [["id", "p", true]], 1], ["$checkoutCart", "post", "/v1/public/cart:checkout", [["X-Ivy-Org-ID", "h", true]], 1], ["$searchCatalog", "post", "/v1/public/catalog", [["X-Ivy-Org-ID", "h"], ["Authorization", "h"]], 1], ["$privateSearchCatalog", "post", "/v1/catalog", null, 1], ["$resolveCatalog", "post", "/v2/public/catalog", null, 1], ["$validatePromoCodes", "post", "/v1/public/validate-promo-codes", [["X-Ivy-Org-ID", "h", true]], 1], ["$availabilityCheck", "post", "/v1/public/availability:check", [["X-Ivy-Org-ID", "h", true]], 1], ["$validateAvailabilityFile", "get", "/v1/validate-availability/{id}", [["id", "p", true], ["X-Epilot-Org-ID", "h", true]]], ["$historicMarketPrices", "get", "/v1/public/historicMarketPrices", [["market", "q", true], ["bidding_zone", "q", true], ["frequency", "q", true], ["from", "q", true], ["to", "q", true]]], ["$averageMarketPrice", "get", "/v1/public/averageMarketPrice", [["market", "q", true], ["bidding_zone", "q", true], ["from", "q", true], ["to", "q", true]]], ["$searchExternalProducts", "post", "/v1/public/integration/{integrationId}/products", [["integrationId", "p", true]], 1], ["$searchExternalProductRecommendations", "post", "/v1/public/integration/{integrationId}/product-recommendations", [["integrationId", "p", true]], 1], ["$searchProviders", "post", "/v1/public/integration/{integrationId}/providers:search", [["X-Epilot-Org-ID", "h", true], ["integrationId", "p", true]], 1], ["$searchStreets", "post", "/v1/public/integration/{integrationId}/streets:search", [["X-Epilot-Org-ID", "h", true], ["integrationId", "p", true]], 1], ["$computePrice", "post", "/v1/public/integration/{integrationId}/compute-price", [["X-Epilot-Org-ID", "h", true], ["integrationId", "p", true]], 1], ["$getCredentials", "get", "/v1/integration/{integrationId}/credentials", [["integrationId", "p", true]]], ["$saveCredentials", "put", "/v1/integration/{integrationId}/credentials:save", [["integrationId", "p", true]], 1], ["$deleteCredentials", "delete", "/v1/integration/{integrationId}/credentials:delete", [["integrationId", "p", true]]], ["$getExternalCatalogProducts", "post", "/v1/public/external-catalog/products", [["x-epilot-org-id", "h"]], 1], ["$getExternalCatalogProductRecommendations", "post", "/v1/public/external-catalog/product-recommendations", [["x-epilot-org-id", "h"]], 1], ["$productRecommendations", "post", "/v1/public/product-recommendations", [["X-Ivy-Org-ID", "h"]], 1], ["$getConditionSets", "get", "/v1/conditional-pricing/{slug}/condition-sets", [["slug", "p", true]]], ["$resolveConditionalEntity", "post", "/v1/conditional-pricing:resolve", null, 1], ["$createConditionalVariant", "post", "/v1/conditional-pricing/{slug}/entities/{entity_id}/variants", [["slug", "p", true], ["entity_id", "p", true]], 1], ["$listConditionalVariants", "post", "/v1/conditional-pricing/{slug}/entities/{entity_id}/variants:list", [["slug", "p", true], ["entity_id", "p", true]], 1], ["$getConditionalVariantTree", "post", "/v1/conditional-pricing/{slug}/entities/{entity_id}/variants:tree", [["slug", "p", true], ["entity_id", "p", true]], 1], ["$getActiveConditionalVariantVersion", "get", "/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}", [["slug", "p", true], ["entity_id", "p", true], ["variant_id", "p", true]]], ["$replaceActiveConditionalVariantVersion", "put", "/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}", [["slug", "p", true], ["entity_id", "p", true], ["variant_id", "p", true]], 1], ["$patchActiveConditionalVariantVersion", "patch", "/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}", [["slug", "p", true], ["entity_id", "p", true], ["variant_id", "p", true]], 1], ["$deleteConditionalVariant", "delete", "/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}", [["slug", "p", true], ["entity_id", "p", true], ["variant_id", "p", true]]], ["$listConditionalVariantVersions", "get", "/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions", [["slug", "p", true], ["entity_id", "p", true], ["variant_id", "p", true], ["limit", "q"], ["order", "q"], ["cursor", "q"]]], ["$appendConditionalVariantVersion", "post", "/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions", [["slug", "p", true], ["entity_id", "p", true], ["variant_id", "p", true]], 1], ["$getConditionalVariantVersion", "get", "/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions/{valid_from}", [["slug", "p", true], ["entity_id", "p", true], ["variant_id", "p", true], ["valid_from", "p", true]]], ["$replaceConditionalVariantVersion", "put", "/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions/{valid_from}", [["slug", "p", true], ["entity_id", "p", true], ["variant_id", "p", true], ["valid_from", "p", true]], 1], ["$patchConditionalVariantVersion", "patch", "/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions/{valid_from}", [["slug", "p", true], ["entity_id", "p", true], ["variant_id", "p", true], ["valid_from", "p", true]], 1], ["$deleteConditionalVariantVersion", "delete", "/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions/{valid_from}", [["slug", "p", true], ["entity_id", "p", true], ["variant_id", "p", true], ["valid_from", "p", true], ["_revision", "q", true]]], ["$batchUpsertConditionalVariants", "post", "/v1/conditional-pricing/{slug}/variants:batchUpsert", [["slug", "p", true]], 1], ["$batchDeleteConditionalVariants", "post", "/v1/conditional-pricing/{slug}/variants:batchDelete", [["slug", "p", true]], 1]], v: "3.0.3" };
9
+ }
10
+ });
11
+
12
+ export {
13
+ require_pricing_runtime
14
+ };
@@ -27,8 +27,8 @@ var authorize = (client, token) => {
27
27
 
28
28
  // import("./docs/**/*") in src/help.ts
29
29
  var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
30
- "./docs/README.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./README-OSHX3IVR.cjs"))),
31
- "./docs/_index.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./_index-UWRY3DNX.cjs"))),
30
+ "./docs/README.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./README-B6X6BXAW.cjs"))),
31
+ "./docs/_index.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./_index-DEYTKG4Z.cjs"))),
32
32
  "./docs/access-token.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./access-token-CQMYWZIG.cjs"))),
33
33
  "./docs/address-suggestions.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-suggestions-IUQMYF27.cjs"))),
34
34
  "./docs/address.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-HA4RMRNQ.cjs"))),
@@ -55,11 +55,12 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
55
55
  "./docs/environments.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./environments-S3O6ASTY.cjs"))),
56
56
  "./docs/erp-integration.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./erp-integration-PAVHSUDM.cjs"))),
57
57
  "./docs/event-catalog.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./event-catalog-YYCD2DBK.cjs"))),
58
+ "./docs/external-values.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./external-values-XG5LFKZQ.cjs"))),
58
59
  "./docs/file.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./file-2KT6MMMG.cjs"))),
59
60
  "./docs/iban.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./iban-24GHLFDB.cjs"))),
60
61
  "./docs/identity.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./identity-XMX3VFXR.cjs"))),
61
62
  "./docs/integration-toolkit.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./integration-toolkit-CG6SFVKC.cjs"))),
62
- "./docs/journey.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./journey-ZN46FFPM.cjs"))),
63
+ "./docs/journey.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./journey-JDIVUY7T.cjs"))),
63
64
  "./docs/kanban.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./kanban-FSATKIGH.cjs"))),
64
65
  "./docs/message.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./message-LJ32JH6Z.cjs"))),
65
66
  "./docs/metering.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./metering-WAVFLJZD.cjs"))),
@@ -69,7 +70,7 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
69
70
  "./docs/partner-directory.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./partner-directory-ZQIBKD5Q.cjs"))),
70
71
  "./docs/permissions.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./permissions-I2ERCKW4.cjs"))),
71
72
  "./docs/pricing-tier.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-tier-NI35WOUP.cjs"))),
72
- "./docs/pricing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-JAICFDO5.cjs"))),
73
+ "./docs/pricing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-M2FG4LZ6.cjs"))),
73
74
  "./docs/purpose.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./purpose-AKOEUHZ4.cjs"))),
74
75
  "./docs/query.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./query-JSDB2F2U.cjs"))),
75
76
  "./docs/sandbox.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./sandbox-2KN4X66E.cjs"))),
@@ -151,13 +152,14 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
151
152
  "./definitions/erp-integration.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./erp-integration-W7FZDJOB.cjs"))),
152
153
  "./definitions/event-catalog-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./event-catalog-runtime-2ACQMB22.cjs"))),
153
154
  "./definitions/event-catalog.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./event-catalog-MZYFJ23V.cjs"))),
155
+ "./definitions/external-values-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./external-values-runtime-BPR3H6RL.cjs"))),
154
156
  "./definitions/file-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./file-runtime-JL2IZ2CE.cjs"))),
155
157
  "./definitions/file.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./file-637CTR4Y.cjs"))),
156
158
  "./definitions/iban-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./iban-runtime-TUM5LVHO.cjs"))),
157
159
  "./definitions/iban.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./iban-ETTCKOHK.cjs"))),
158
160
  "./definitions/identity-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./identity-runtime-57DQPQWX.cjs"))),
159
161
  "./definitions/integration-toolkit-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./integration-toolkit-runtime-GDJVWSKC.cjs"))),
160
- "./definitions/journey-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./journey-runtime-BVSPJTYH.cjs"))),
162
+ "./definitions/journey-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./journey-runtime-KZUPV4XH.cjs"))),
161
163
  "./definitions/journey.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./journey-XIMSLSZC.cjs"))),
162
164
  "./definitions/kanban-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./kanban-runtime-NHEUWTCG.cjs"))),
163
165
  "./definitions/kanban.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./kanban-M4P7R5TM.cjs"))),
@@ -175,7 +177,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
175
177
  "./definitions/partner-directory.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./partner-directory-CG5CYJGB.cjs"))),
176
178
  "./definitions/permissions-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./permissions-runtime-O5LH7WOU.cjs"))),
177
179
  "./definitions/permissions.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./permissions-WCOABHKQ.cjs"))),
178
- "./definitions/pricing-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-runtime-NMRZO6J4.cjs"))),
180
+ "./definitions/pricing-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-runtime-PEAN7F5S.cjs"))),
179
181
  "./definitions/pricing-tier-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-tier-runtime-32BCKJ7Y.cjs"))),
180
182
  "./definitions/pricing-tier.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-tier-FKQPW2ND.cjs"))),
181
183
  "./definitions/pricing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-VYHPSVKM.cjs"))),
@@ -0,0 +1,7 @@
1
+ import "./chunk-YPSWSI3M.js";
2
+
3
+ // src/docs/external-values.json
4
+ var external_values_default = '# External Values API\n\n- **Base URL:** `https://external-values.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/external-values](https://docs.epilot.io/api/external-values)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.externalValues.listExternalValues(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/external-values\'\n\nconst externalValuesClient = getClient()\nauthorize(externalValuesClient, () => \'<token>\')\nconst { data } = await externalValuesClient.listExternalValues(...)\n```\n\n## Operations\n\n**external-values**\n- [`listExternalValues`](#listexternalvalues)\n- [`resolveExternalValue`](#resolveexternalvalue)\n- [`resolvePortalExternalValue`](#resolveportalexternalvalue)\n\n**Schemas**\n- [`TranslatedString`](#translatedstring)\n- [`ExternalValueType`](#externalvaluetype)\n- [`ResolveExternalValueRequest`](#resolveexternalvaluerequest)\n- [`ExternalValueErrorCode`](#externalvalueerrorcode)\n- [`ExternalValueError`](#externalvalueerror)\n- [`ResolveExternalValueResponse`](#resolveexternalvalueresponse)\n- [`ExternalValueResultSummary`](#externalvalueresultsummary)\n- [`ExternalValueHookSummary`](#externalvaluehooksummary)\n- [`ExternalValueHookList`](#externalvaluehooklist)\n\n### `listExternalValues`\n\nList hooks and their results of all enabled installed apps that declare an\n`EXTERNAL_VALUES` component. Intended for pickers (e.g. the validation-rules builder).\n\n`GET /v1/external-values`\n\n```ts\nconst { data } = await client.listExternalValues()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "hooks": [\n {\n "app_id": "string",\n "app_name": "string",\n "hook_id": "string",\n "name": {\n "de": "string",\n "en": "string"\n },\n "description": {\n "de": "string",\n "en": "string"\n },\n "results": [\n {\n "id": "string",\n "type": "number",\n "name": {\n "de": "string",\n "en": "string"\n }\n }\n ]\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `resolveExternalValue`\n\nResolve an external value hook for an epilot 360 user (builder preview, entity-attribute\nrules). The organization is taken from the caller\'s token.\n\n`POST /v1/external-values/{app_id}/hooks/{hook_id}:resolve`\n\n```ts\nconst { data } = await client.resolveExternalValue(\n {\n app_id: \'example\',\n hook_id: \'example\',\n },\n {\n context: {\n input: \'123,45\',\n contract: {\n _id: \'8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a\',\n installment_amount: 110\n }\n },\n consumer: {\n type: \'validation_rule\',\n rule_id: \'6c0a9e1e-2f4b-4e6a-8f8e-2b2b2b2b2b2b\'\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "values": {\n "predicted": 132\n },\n "errors": [\n {\n "result_id": "limit",\n "code": "coercion_failed",\n "message": "Cannot coerce \\"n/a\\" to number"\n }\n ],\n "policy": {\n "on_unavailable": "skip"\n }\n}\n```\n\n</details>\n\n---\n\n### `resolvePortalExternalValue`\n\nResolve an external value hook for a portal end customer (private journeys, portal).\nThe organization is taken from the portal token claims.\n\n`POST /v1/portal/external-values/{app_id}/hooks/{hook_id}:resolve`\n\n```ts\nconst { data } = await client.resolvePortalExternalValue(\n {\n app_id: \'example\',\n hook_id: \'example\',\n },\n {\n context: {\n input: \'123,45\',\n contract: {\n _id: \'8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a\',\n installment_amount: 110\n }\n },\n consumer: {\n type: \'validation_rule\',\n rule_id: \'6c0a9e1e-2f4b-4e6a-8f8e-2b2b2b2b2b2b\'\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "values": {\n "predicted": 132\n },\n "errors": [\n {\n "result_id": "limit",\n "code": "coercion_failed",\n "message": "Cannot coerce \\"n/a\\" to number"\n }\n ],\n "policy": {\n "on_unavailable": "skip"\n }\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `TranslatedString`\n\n```ts\ntype TranslatedString = {\n de: string\n en?: string\n}\n```\n\n### `ExternalValueType`\n\n```ts\ntype ExternalValueType = "number" | "text" | "date" | "boolean"\n```\n\n### `ResolveExternalValueRequest`\n\n```ts\ntype ResolveExternalValueRequest = {\n context: Record<string, unknown>\n consumer?: {\n type?: string\n rule_id?: string\n journey_id?: string\n }\n}\n```\n\n### `ExternalValueErrorCode`\n\n- `timeout`: the third-party call exceeded `timeout_ms`\n- `upstream_error`: the third-party call failed or returned a non-2xx status\n- `auth_failed`: the `auth` pre-call failed\n- `extraction_failed`: template/path/jsonata threw or yielded null / empty\n- `coercion_failed`: the extracted value could n\n\n```ts\ntype ExternalValueErrorCode = "timeout" | "upstream_error" | "auth_failed" | "extraction_failed" | "coercion_failed"\n```\n\n### `ExternalValueError`\n\n```ts\ntype ExternalValueError = {\n result_id?: string\n code: "timeout" | "upstream_error" | "auth_failed" | "extraction_failed" | "coercion_failed"\n message: string\n}\n```\n\n### `ResolveExternalValueResponse`\n\n```ts\ntype ResolveExternalValueResponse = {\n values: Record<string, number | string | boolean>\n errors: Array<{\n result_id?: string\n code: "timeout" | "upstream_error" | "auth_failed" | "extraction_failed" | "coercion_failed"\n message: string\n }>\n policy: {\n on_unavailable: "skip" | "block"\n }\n cached?: boolean\n}\n```\n\n### `ExternalValueResultSummary`\n\n```ts\ntype ExternalValueResultSummary = {\n id: string\n type: "number" | "text" | "date" | "boolean"\n name: {\n de: string\n en?: string\n }\n}\n```\n\n### `ExternalValueHookSummary`\n\n```ts\ntype ExternalValueHookSummary = {\n app_id: string\n app_name: string\n hook_id: string\n name: {\n de: string\n en?: string\n }\n description?: {\n de: string\n en?: string\n }\n results: Array<{\n id: string\n type: "number" | "text" | "date" | "boolean"\n name: {\n de: { ... }\n en?: { ... }\n }\n }>\n}\n```\n\n### `ExternalValueHookList`\n\n```ts\ntype ExternalValueHookList = {\n hooks: Array<{\n app_id: string\n app_name: string\n hook_id: string\n name: {\n de: { ... }\n en?: { ... }\n }\n description?: {\n de: { ... }\n en?: { ... }\n }\n results: Array<{\n id: { ... }\n type: { ... }\n name: { ... }\n }>\n }>\n}\n```\n';
5
+ export {
6
+ external_values_default as default
7
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
2
+
3
+ // src/docs/external-values.json
4
+ var external_values_default = '# External Values API\n\n- **Base URL:** `https://external-values.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/external-values](https://docs.epilot.io/api/external-values)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.externalValues.listExternalValues(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/external-values\'\n\nconst externalValuesClient = getClient()\nauthorize(externalValuesClient, () => \'<token>\')\nconst { data } = await externalValuesClient.listExternalValues(...)\n```\n\n## Operations\n\n**external-values**\n- [`listExternalValues`](#listexternalvalues)\n- [`resolveExternalValue`](#resolveexternalvalue)\n- [`resolvePortalExternalValue`](#resolveportalexternalvalue)\n\n**Schemas**\n- [`TranslatedString`](#translatedstring)\n- [`ExternalValueType`](#externalvaluetype)\n- [`ResolveExternalValueRequest`](#resolveexternalvaluerequest)\n- [`ExternalValueErrorCode`](#externalvalueerrorcode)\n- [`ExternalValueError`](#externalvalueerror)\n- [`ResolveExternalValueResponse`](#resolveexternalvalueresponse)\n- [`ExternalValueResultSummary`](#externalvalueresultsummary)\n- [`ExternalValueHookSummary`](#externalvaluehooksummary)\n- [`ExternalValueHookList`](#externalvaluehooklist)\n\n### `listExternalValues`\n\nList hooks and their results of all enabled installed apps that declare an\n`EXTERNAL_VALUES` component. Intended for pickers (e.g. the validation-rules builder).\n\n`GET /v1/external-values`\n\n```ts\nconst { data } = await client.listExternalValues()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "hooks": [\n {\n "app_id": "string",\n "app_name": "string",\n "hook_id": "string",\n "name": {\n "de": "string",\n "en": "string"\n },\n "description": {\n "de": "string",\n "en": "string"\n },\n "results": [\n {\n "id": "string",\n "type": "number",\n "name": {\n "de": "string",\n "en": "string"\n }\n }\n ]\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `resolveExternalValue`\n\nResolve an external value hook for an epilot 360 user (builder preview, entity-attribute\nrules). The organization is taken from the caller\'s token.\n\n`POST /v1/external-values/{app_id}/hooks/{hook_id}:resolve`\n\n```ts\nconst { data } = await client.resolveExternalValue(\n {\n app_id: \'example\',\n hook_id: \'example\',\n },\n {\n context: {\n input: \'123,45\',\n contract: {\n _id: \'8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a\',\n installment_amount: 110\n }\n },\n consumer: {\n type: \'validation_rule\',\n rule_id: \'6c0a9e1e-2f4b-4e6a-8f8e-2b2b2b2b2b2b\'\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "values": {\n "predicted": 132\n },\n "errors": [\n {\n "result_id": "limit",\n "code": "coercion_failed",\n "message": "Cannot coerce \\"n/a\\" to number"\n }\n ],\n "policy": {\n "on_unavailable": "skip"\n }\n}\n```\n\n</details>\n\n---\n\n### `resolvePortalExternalValue`\n\nResolve an external value hook for a portal end customer (private journeys, portal).\nThe organization is taken from the portal token claims.\n\n`POST /v1/portal/external-values/{app_id}/hooks/{hook_id}:resolve`\n\n```ts\nconst { data } = await client.resolvePortalExternalValue(\n {\n app_id: \'example\',\n hook_id: \'example\',\n },\n {\n context: {\n input: \'123,45\',\n contract: {\n _id: \'8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a\',\n installment_amount: 110\n }\n },\n consumer: {\n type: \'validation_rule\',\n rule_id: \'6c0a9e1e-2f4b-4e6a-8f8e-2b2b2b2b2b2b\'\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "values": {\n "predicted": 132\n },\n "errors": [\n {\n "result_id": "limit",\n "code": "coercion_failed",\n "message": "Cannot coerce \\"n/a\\" to number"\n }\n ],\n "policy": {\n "on_unavailable": "skip"\n }\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `TranslatedString`\n\n```ts\ntype TranslatedString = {\n de: string\n en?: string\n}\n```\n\n### `ExternalValueType`\n\n```ts\ntype ExternalValueType = "number" | "text" | "date" | "boolean"\n```\n\n### `ResolveExternalValueRequest`\n\n```ts\ntype ResolveExternalValueRequest = {\n context: Record<string, unknown>\n consumer?: {\n type?: string\n rule_id?: string\n journey_id?: string\n }\n}\n```\n\n### `ExternalValueErrorCode`\n\n- `timeout`: the third-party call exceeded `timeout_ms`\n- `upstream_error`: the third-party call failed or returned a non-2xx status\n- `auth_failed`: the `auth` pre-call failed\n- `extraction_failed`: template/path/jsonata threw or yielded null / empty\n- `coercion_failed`: the extracted value could n\n\n```ts\ntype ExternalValueErrorCode = "timeout" | "upstream_error" | "auth_failed" | "extraction_failed" | "coercion_failed"\n```\n\n### `ExternalValueError`\n\n```ts\ntype ExternalValueError = {\n result_id?: string\n code: "timeout" | "upstream_error" | "auth_failed" | "extraction_failed" | "coercion_failed"\n message: string\n}\n```\n\n### `ResolveExternalValueResponse`\n\n```ts\ntype ResolveExternalValueResponse = {\n values: Record<string, number | string | boolean>\n errors: Array<{\n result_id?: string\n code: "timeout" | "upstream_error" | "auth_failed" | "extraction_failed" | "coercion_failed"\n message: string\n }>\n policy: {\n on_unavailable: "skip" | "block"\n }\n cached?: boolean\n}\n```\n\n### `ExternalValueResultSummary`\n\n```ts\ntype ExternalValueResultSummary = {\n id: string\n type: "number" | "text" | "date" | "boolean"\n name: {\n de: string\n en?: string\n }\n}\n```\n\n### `ExternalValueHookSummary`\n\n```ts\ntype ExternalValueHookSummary = {\n app_id: string\n app_name: string\n hook_id: string\n name: {\n de: string\n en?: string\n }\n description?: {\n de: string\n en?: string\n }\n results: Array<{\n id: string\n type: "number" | "text" | "date" | "boolean"\n name: {\n de: { ... }\n en?: { ... }\n }\n }>\n}\n```\n\n### `ExternalValueHookList`\n\n```ts\ntype ExternalValueHookList = {\n hooks: Array<{\n app_id: string\n app_name: string\n hook_id: string\n name: {\n de: { ... }\n en?: { ... }\n }\n description?: {\n de: { ... }\n en?: { ... }\n }\n results: Array<{\n id: { ... }\n type: { ... }\n name: { ... }\n }>\n }>\n}\n```\n';
5
+
6
+
7
+ exports.default = external_values_default;
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkNC33X2WLcjs = require('./chunk-NC33X2WL.cjs');
4
+ require('./chunk-NJK5F5TF.cjs');
5
+ exports. default = _chunkNC33X2WLcjs.require_external_values_runtime.call(void 0, );
@@ -0,0 +1,5 @@
1
+ import {
2
+ require_external_values_runtime
3
+ } from "./chunk-CMEMMJ3T.js";
4
+ import "./chunk-YPSWSI3M.js";
5
+ export default require_external_values_runtime();
@@ -0,0 +1,391 @@
1
+ import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
2
+
3
+ /* Auto-copied from external-values-client */
4
+
5
+
6
+ declare namespace Components {
7
+ namespace Parameters {
8
+ export type AppId = string;
9
+ export type HookId = string; // ^[a-zA-Z0-9_-]{1,100}$
10
+ }
11
+ export interface PathParameters {
12
+ AppId?: Parameters.AppId;
13
+ HookId?: Parameters.HookId /* ^[a-zA-Z0-9_-]{1,100}$ */;
14
+ }
15
+ namespace Schemas {
16
+ export interface ExternalValueError {
17
+ /**
18
+ * Set for per-result errors; absent for hook-level failures
19
+ */
20
+ result_id?: string;
21
+ code: /**
22
+ * - `timeout`: the third-party call exceeded `timeout_ms`
23
+ * - `upstream_error`: the third-party call failed or returned a non-2xx status
24
+ * - `auth_failed`: the `auth` pre-call failed
25
+ * - `extraction_failed`: template/path/jsonata threw or yielded null / empty
26
+ * - `coercion_failed`: the extracted value could not be coerced to the result type
27
+ *
28
+ */
29
+ ExternalValueErrorCode;
30
+ message: string;
31
+ }
32
+ /**
33
+ * - `timeout`: the third-party call exceeded `timeout_ms`
34
+ * - `upstream_error`: the third-party call failed or returned a non-2xx status
35
+ * - `auth_failed`: the `auth` pre-call failed
36
+ * - `extraction_failed`: template/path/jsonata threw or yielded null / empty
37
+ * - `coercion_failed`: the extracted value could not be coerced to the result type
38
+ *
39
+ */
40
+ export type ExternalValueErrorCode = "timeout" | "upstream_error" | "auth_failed" | "extraction_failed" | "coercion_failed";
41
+ export interface ExternalValueHookList {
42
+ hooks: ExternalValueHookSummary[];
43
+ }
44
+ export interface ExternalValueHookSummary {
45
+ app_id: string;
46
+ app_name: string;
47
+ hook_id: string;
48
+ name: TranslatedString;
49
+ description?: TranslatedString;
50
+ results: ExternalValueResultSummary[];
51
+ }
52
+ export interface ExternalValueResultSummary {
53
+ id: string;
54
+ type: ExternalValueType;
55
+ name: TranslatedString;
56
+ }
57
+ export type ExternalValueType = "number" | "text" | "date" | "boolean";
58
+ /**
59
+ * example:
60
+ * {
61
+ * "context": {
62
+ * "input": "123,45",
63
+ * "contract": {
64
+ * "_id": "8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a",
65
+ * "installment_amount": 110
66
+ * }
67
+ * },
68
+ * "consumer": {
69
+ * "type": "validation_rule",
70
+ * "rule_id": "6c0a9e1e-2f4b-4e6a-8f8e-2b2b2b2b2b2b"
71
+ * }
72
+ * }
73
+ */
74
+ export interface ResolveExternalValueRequest {
75
+ /**
76
+ * Everything the consumer supplies for interpolation, as one name → value map.
77
+ * Exposed to the hook's Liquid templates as `Context` / `context`, e.g.
78
+ * `{{ context.input }}`, `{{ context.contract.installment_amount }}`.
79
+ *
80
+ * The names are up to the consumer; this API does not interpret them. By
81
+ * convention the journey runtime passes the validated value of a validation
82
+ * rule as `input` and every configured context binding under its own name.
83
+ *
84
+ */
85
+ context: {
86
+ [name: string]: any;
87
+ };
88
+ /**
89
+ * Who is resolving the value. Forwarded to the hook as `Consumer`.
90
+ */
91
+ consumer?: {
92
+ [name: string]: any;
93
+ /**
94
+ * example:
95
+ * validation_rule
96
+ */
97
+ type?: string;
98
+ rule_id?: string;
99
+ journey_id?: string;
100
+ };
101
+ }
102
+ /**
103
+ * example:
104
+ * {
105
+ * "values": {
106
+ * "predicted": 132
107
+ * },
108
+ * "errors": [
109
+ * {
110
+ * "result_id": "limit",
111
+ * "code": "coercion_failed",
112
+ * "message": "Cannot coerce \"n/a\" to number"
113
+ * }
114
+ * ],
115
+ * "policy": {
116
+ * "on_unavailable": "skip"
117
+ * }
118
+ * }
119
+ */
120
+ export interface ResolveExternalValueResponse {
121
+ /**
122
+ * Successfully extracted and coerced results, keyed by result id
123
+ */
124
+ values: {
125
+ [name: string]: number | string | boolean;
126
+ };
127
+ errors: ExternalValueError[];
128
+ policy: {
129
+ /**
130
+ * What the consumer should do when the values are unavailable
131
+ */
132
+ on_unavailable: "skip" | "block";
133
+ };
134
+ /**
135
+ * True when `values` were served from the hook's result cache
136
+ */
137
+ cached?: boolean;
138
+ }
139
+ export interface TranslatedString {
140
+ /**
141
+ * German translation
142
+ */
143
+ de: string;
144
+ /**
145
+ * English translation
146
+ */
147
+ en?: string | null;
148
+ }
149
+ }
150
+ }
151
+ declare namespace Paths {
152
+ namespace ListExternalValues {
153
+ namespace Responses {
154
+ export type $200 = Components.Schemas.ExternalValueHookList;
155
+ export interface $401 {
156
+ }
157
+ export interface $403 {
158
+ }
159
+ export interface $500 {
160
+ }
161
+ }
162
+ }
163
+ namespace ResolveExternalValue {
164
+ export type RequestBody = /**
165
+ * example:
166
+ * {
167
+ * "context": {
168
+ * "input": "123,45",
169
+ * "contract": {
170
+ * "_id": "8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a",
171
+ * "installment_amount": 110
172
+ * }
173
+ * },
174
+ * "consumer": {
175
+ * "type": "validation_rule",
176
+ * "rule_id": "6c0a9e1e-2f4b-4e6a-8f8e-2b2b2b2b2b2b"
177
+ * }
178
+ * }
179
+ */
180
+ Components.Schemas.ResolveExternalValueRequest;
181
+ namespace Responses {
182
+ export type $200 = /**
183
+ * example:
184
+ * {
185
+ * "values": {
186
+ * "predicted": 132
187
+ * },
188
+ * "errors": [
189
+ * {
190
+ * "result_id": "limit",
191
+ * "code": "coercion_failed",
192
+ * "message": "Cannot coerce \"n/a\" to number"
193
+ * }
194
+ * ],
195
+ * "policy": {
196
+ * "on_unavailable": "skip"
197
+ * }
198
+ * }
199
+ */
200
+ Components.Schemas.ResolveExternalValueResponse;
201
+ export interface $400 {
202
+ }
203
+ export interface $401 {
204
+ }
205
+ export interface $403 {
206
+ }
207
+ export interface $404 {
208
+ }
209
+ export interface $422 {
210
+ }
211
+ export interface $500 {
212
+ }
213
+ }
214
+ }
215
+ namespace ResolvePortalExternalValue {
216
+ export type RequestBody = /**
217
+ * example:
218
+ * {
219
+ * "context": {
220
+ * "input": "123,45",
221
+ * "contract": {
222
+ * "_id": "8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a",
223
+ * "installment_amount": 110
224
+ * }
225
+ * },
226
+ * "consumer": {
227
+ * "type": "validation_rule",
228
+ * "rule_id": "6c0a9e1e-2f4b-4e6a-8f8e-2b2b2b2b2b2b"
229
+ * }
230
+ * }
231
+ */
232
+ Components.Schemas.ResolveExternalValueRequest;
233
+ namespace Responses {
234
+ export type $200 = /**
235
+ * example:
236
+ * {
237
+ * "values": {
238
+ * "predicted": 132
239
+ * },
240
+ * "errors": [
241
+ * {
242
+ * "result_id": "limit",
243
+ * "code": "coercion_failed",
244
+ * "message": "Cannot coerce \"n/a\" to number"
245
+ * }
246
+ * ],
247
+ * "policy": {
248
+ * "on_unavailable": "skip"
249
+ * }
250
+ * }
251
+ */
252
+ Components.Schemas.ResolveExternalValueResponse;
253
+ export interface $400 {
254
+ }
255
+ export interface $401 {
256
+ }
257
+ export interface $403 {
258
+ }
259
+ export interface $404 {
260
+ }
261
+ export interface $422 {
262
+ }
263
+ export interface $500 {
264
+ }
265
+ }
266
+ }
267
+ namespace V1ExternalValues$AppIdHooks$HookIdResolve {
268
+ namespace Parameters {
269
+ export type $0 = Components.Parameters.AppId;
270
+ export type $1 = Components.Parameters.HookId /* ^[a-zA-Z0-9_-]{1,100}$ */;
271
+ }
272
+ }
273
+ namespace V1PortalExternalValues$AppIdHooks$HookIdResolve {
274
+ namespace Parameters {
275
+ export type $0 = Components.Parameters.AppId;
276
+ export type $1 = Components.Parameters.HookId /* ^[a-zA-Z0-9_-]{1,100}$ */;
277
+ }
278
+ }
279
+ }
280
+
281
+
282
+ interface OperationMethods {
283
+ /**
284
+ * listExternalValues - listExternalValues
285
+ *
286
+ * List hooks and their results of all enabled installed apps that declare an
287
+ * `EXTERNAL_VALUES` component. Intended for pickers (e.g. the validation-rules builder).
288
+ *
289
+ */
290
+ 'listExternalValues'(
291
+ parameters?: Parameters<UnknownParamsObject> | null,
292
+ data?: any,
293
+ config?: AxiosRequestConfig
294
+ ): OperationResponse<Paths.ListExternalValues.Responses.$200>
295
+ /**
296
+ * resolveExternalValue - resolveExternalValue
297
+ *
298
+ * Resolve an external value hook for an epilot 360 user (builder preview, entity-attribute
299
+ * rules). The organization is taken from the caller's token.
300
+ *
301
+ * Returns HTTP 200 whenever the hook configuration was found and executed — including
302
+ * upstream failures, which are reported in `errors` so clients can apply `policy`.
303
+ *
304
+ */
305
+ 'resolveExternalValue'(
306
+ parameters?: Parameters<UnknownParamsObject> | null,
307
+ data?: Paths.ResolveExternalValue.RequestBody,
308
+ config?: AxiosRequestConfig
309
+ ): OperationResponse<Paths.ResolveExternalValue.Responses.$200>
310
+ /**
311
+ * resolvePortalExternalValue - resolvePortalExternalValue
312
+ *
313
+ * Resolve an external value hook for a portal end customer (private journeys, portal).
314
+ * The organization is taken from the portal token claims.
315
+ *
316
+ * Returns HTTP 200 whenever the hook configuration was found and executed — including
317
+ * upstream failures, which are reported in `errors` so clients can apply `policy`.
318
+ *
319
+ */
320
+ 'resolvePortalExternalValue'(
321
+ parameters?: Parameters<UnknownParamsObject> | null,
322
+ data?: Paths.ResolvePortalExternalValue.RequestBody,
323
+ config?: AxiosRequestConfig
324
+ ): OperationResponse<Paths.ResolvePortalExternalValue.Responses.$200>
325
+ }
326
+
327
+ interface PathsDictionary {
328
+ ['/v1/external-values']: {
329
+ /**
330
+ * listExternalValues - listExternalValues
331
+ *
332
+ * List hooks and their results of all enabled installed apps that declare an
333
+ * `EXTERNAL_VALUES` component. Intended for pickers (e.g. the validation-rules builder).
334
+ *
335
+ */
336
+ 'get'(
337
+ parameters?: Parameters<UnknownParamsObject> | null,
338
+ data?: any,
339
+ config?: AxiosRequestConfig
340
+ ): OperationResponse<Paths.ListExternalValues.Responses.$200>
341
+ }
342
+ ['/v1/external-values/{app_id}/hooks/{hook_id}:resolve']: {
343
+ /**
344
+ * resolveExternalValue - resolveExternalValue
345
+ *
346
+ * Resolve an external value hook for an epilot 360 user (builder preview, entity-attribute
347
+ * rules). The organization is taken from the caller's token.
348
+ *
349
+ * Returns HTTP 200 whenever the hook configuration was found and executed — including
350
+ * upstream failures, which are reported in `errors` so clients can apply `policy`.
351
+ *
352
+ */
353
+ 'post'(
354
+ parameters?: Parameters<UnknownParamsObject> | null,
355
+ data?: Paths.ResolveExternalValue.RequestBody,
356
+ config?: AxiosRequestConfig
357
+ ): OperationResponse<Paths.ResolveExternalValue.Responses.$200>
358
+ }
359
+ ['/v1/portal/external-values/{app_id}/hooks/{hook_id}:resolve']: {
360
+ /**
361
+ * resolvePortalExternalValue - resolvePortalExternalValue
362
+ *
363
+ * Resolve an external value hook for a portal end customer (private journeys, portal).
364
+ * The organization is taken from the portal token claims.
365
+ *
366
+ * Returns HTTP 200 whenever the hook configuration was found and executed — including
367
+ * upstream failures, which are reported in `errors` so clients can apply `policy`.
368
+ *
369
+ */
370
+ 'post'(
371
+ parameters?: Parameters<UnknownParamsObject> | null,
372
+ data?: Paths.ResolvePortalExternalValue.RequestBody,
373
+ config?: AxiosRequestConfig
374
+ ): OperationResponse<Paths.ResolvePortalExternalValue.Responses.$200>
375
+ }
376
+ }
377
+
378
+ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
379
+
380
+
381
+ type ExternalValueError = Components.Schemas.ExternalValueError;
382
+ type ExternalValueErrorCode = Components.Schemas.ExternalValueErrorCode;
383
+ type ExternalValueHookList = Components.Schemas.ExternalValueHookList;
384
+ type ExternalValueHookSummary = Components.Schemas.ExternalValueHookSummary;
385
+ type ExternalValueResultSummary = Components.Schemas.ExternalValueResultSummary;
386
+ type ExternalValueType = Components.Schemas.ExternalValueType;
387
+ type ResolveExternalValueRequest = Components.Schemas.ResolveExternalValueRequest;
388
+ type ResolveExternalValueResponse = Components.Schemas.ResolveExternalValueResponse;
389
+ type TranslatedString = Components.Schemas.TranslatedString;
390
+
391
+ export { type Client as C, type ExternalValueError as E, type OperationMethods as O, Paths as P, type ResolveExternalValueRequest as R, type TranslatedString as T, Components as a, type PathsDictionary as b, type ExternalValueErrorCode as c, type ExternalValueHookList as d, type ExternalValueHookSummary as e, type ExternalValueResultSummary as f, type ExternalValueType as g, type ResolveExternalValueResponse as h };