@epilot/sdk 2.20.76 → 2.20.77

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 (139) hide show
  1. package/definitions/app.json +82 -1
  2. package/definitions/external-values.json +34 -4
  3. package/dist/apis/access-token.cjs +6 -6
  4. package/dist/apis/access-token.js +1 -1
  5. package/dist/apis/address-suggestions.cjs +6 -6
  6. package/dist/apis/address-suggestions.js +1 -1
  7. package/dist/apis/address.cjs +6 -6
  8. package/dist/apis/address.js +1 -1
  9. package/dist/apis/ai-agents.cjs +6 -6
  10. package/dist/apis/ai-agents.js +1 -1
  11. package/dist/apis/app.cjs +6 -6
  12. package/dist/apis/app.d.cts +2 -2
  13. package/dist/apis/app.d.ts +2 -2
  14. package/dist/apis/app.js +1 -1
  15. package/dist/apis/audit-logs.cjs +6 -6
  16. package/dist/apis/audit-logs.js +1 -1
  17. package/dist/apis/automation.cjs +6 -6
  18. package/dist/apis/automation.js +1 -1
  19. package/dist/apis/billing.cjs +6 -6
  20. package/dist/apis/billing.js +1 -1
  21. package/dist/apis/blueprint-manifest.cjs +6 -6
  22. package/dist/apis/blueprint-manifest.js +1 -1
  23. package/dist/apis/calendar.cjs +6 -6
  24. package/dist/apis/calendar.js +1 -1
  25. package/dist/apis/chat.cjs +6 -6
  26. package/dist/apis/chat.js +1 -1
  27. package/dist/apis/configuration-hub.cjs +6 -6
  28. package/dist/apis/configuration-hub.js +1 -1
  29. package/dist/apis/consent.cjs +6 -6
  30. package/dist/apis/consent.js +1 -1
  31. package/dist/apis/customer-portal.cjs +6 -6
  32. package/dist/apis/customer-portal.js +1 -1
  33. package/dist/apis/dashboard.cjs +6 -6
  34. package/dist/apis/dashboard.js +1 -1
  35. package/dist/apis/data-governance.cjs +6 -6
  36. package/dist/apis/data-governance.js +1 -1
  37. package/dist/apis/deduplication.cjs +6 -6
  38. package/dist/apis/deduplication.js +1 -1
  39. package/dist/apis/design.cjs +6 -6
  40. package/dist/apis/design.js +1 -1
  41. package/dist/apis/document.cjs +6 -6
  42. package/dist/apis/document.js +1 -1
  43. package/dist/apis/email-settings.cjs +6 -6
  44. package/dist/apis/email-settings.js +1 -1
  45. package/dist/apis/email-template.cjs +6 -6
  46. package/dist/apis/email-template.js +1 -1
  47. package/dist/apis/entity-mapping.cjs +6 -6
  48. package/dist/apis/entity-mapping.js +1 -1
  49. package/dist/apis/entity.cjs +6 -6
  50. package/dist/apis/entity.js +1 -1
  51. package/dist/apis/environments.cjs +6 -6
  52. package/dist/apis/environments.js +1 -1
  53. package/dist/apis/event-catalog.cjs +6 -6
  54. package/dist/apis/event-catalog.js +1 -1
  55. package/dist/apis/external-values.cjs +6 -6
  56. package/dist/apis/external-values.d.cts +2 -2
  57. package/dist/apis/external-values.d.ts +2 -2
  58. package/dist/apis/external-values.js +1 -1
  59. package/dist/apis/file.cjs +6 -6
  60. package/dist/apis/file.js +1 -1
  61. package/dist/apis/iban.cjs +6 -6
  62. package/dist/apis/iban.js +1 -1
  63. package/dist/apis/identity.cjs +6 -6
  64. package/dist/apis/identity.js +1 -1
  65. package/dist/apis/integration-toolkit.cjs +6 -6
  66. package/dist/apis/integration-toolkit.js +1 -1
  67. package/dist/apis/journey.cjs +6 -6
  68. package/dist/apis/journey.js +1 -1
  69. package/dist/apis/kanban.cjs +6 -6
  70. package/dist/apis/kanban.js +1 -1
  71. package/dist/apis/message.cjs +6 -6
  72. package/dist/apis/message.js +1 -1
  73. package/dist/apis/metering.cjs +6 -6
  74. package/dist/apis/metering.js +1 -1
  75. package/dist/apis/notes.cjs +6 -6
  76. package/dist/apis/notes.js +1 -1
  77. package/dist/apis/notification.cjs +6 -6
  78. package/dist/apis/notification.js +1 -1
  79. package/dist/apis/organization.cjs +6 -6
  80. package/dist/apis/organization.js +1 -1
  81. package/dist/apis/partner-directory.cjs +6 -6
  82. package/dist/apis/partner-directory.js +1 -1
  83. package/dist/apis/permissions.cjs +6 -6
  84. package/dist/apis/permissions.js +1 -1
  85. package/dist/apis/phone-integration.cjs +6 -6
  86. package/dist/apis/phone-integration.js +1 -1
  87. package/dist/apis/pricing-tier.cjs +6 -6
  88. package/dist/apis/pricing-tier.js +1 -1
  89. package/dist/apis/pricing.cjs +6 -6
  90. package/dist/apis/pricing.js +1 -1
  91. package/dist/apis/purpose.cjs +6 -6
  92. package/dist/apis/purpose.js +1 -1
  93. package/dist/apis/query.cjs +6 -6
  94. package/dist/apis/query.js +1 -1
  95. package/dist/apis/sandbox.cjs +6 -6
  96. package/dist/apis/sandbox.js +1 -1
  97. package/dist/apis/sharing.cjs +6 -6
  98. package/dist/apis/sharing.js +1 -1
  99. package/dist/apis/snapshot.cjs +6 -6
  100. package/dist/apis/snapshot.js +1 -1
  101. package/dist/apis/submission.cjs +6 -6
  102. package/dist/apis/submission.js +1 -1
  103. package/dist/apis/target.cjs +6 -6
  104. package/dist/apis/target.js +1 -1
  105. package/dist/apis/targeting.cjs +6 -6
  106. package/dist/apis/targeting.js +1 -1
  107. package/dist/apis/template-variables.cjs +6 -6
  108. package/dist/apis/template-variables.js +1 -1
  109. package/dist/apis/user.cjs +6 -6
  110. package/dist/apis/user.js +1 -1
  111. package/dist/apis/validation-rules.cjs +6 -6
  112. package/dist/apis/validation-rules.js +1 -1
  113. package/dist/apis/webhooks.cjs +6 -6
  114. package/dist/apis/webhooks.js +1 -1
  115. package/dist/apis/workflow-definition.cjs +6 -6
  116. package/dist/apis/workflow-definition.js +1 -1
  117. package/dist/apis/workflow.cjs +6 -6
  118. package/dist/apis/workflow.js +1 -1
  119. package/dist/app-3WUZHA43.js +7 -0
  120. package/dist/app-7VPZV72D.cjs +7 -0
  121. package/dist/{app.d-CZELwNO3.d.cts → app.d-cnyQ-loP.d.cts} +46 -5
  122. package/dist/{app.d-CZELwNO3.d.ts → app.d-cnyQ-loP.d.ts} +46 -5
  123. package/dist/{chunk-OETNMHSD.js → chunk-C6T52ZOY.js} +2 -2
  124. package/dist/{chunk-H65UWQLJ.cjs → chunk-RZJMF6WE.cjs} +2 -2
  125. package/dist/external-values-66ANK66M.js +7 -0
  126. package/dist/external-values-WET4FHGU.cjs +7 -0
  127. package/dist/{external-values.d-23q55J5P.d.cts → external-values.d-DeDtCu_V.d.cts} +46 -12
  128. package/dist/{external-values.d-23q55J5P.d.ts → external-values.d-DeDtCu_V.d.ts} +46 -12
  129. package/dist/index.cjs +8 -8
  130. package/dist/index.d.cts +2 -2
  131. package/dist/index.d.ts +2 -2
  132. package/dist/index.js +1 -1
  133. package/docs/app.md +60 -2
  134. package/docs/external-values.md +31 -2
  135. package/package.json +1 -1
  136. package/dist/app-CKQAJ7EE.js +0 -7
  137. package/dist/app-ERJHXY64.cjs +0 -7
  138. package/dist/external-values-7BS76RVR.js +0 -7
  139. package/dist/external-values-R2XB2ALG.cjs +0 -7
@@ -919,6 +919,10 @@ declare namespace Components {
919
919
  versioned_by?: string;
920
920
  };
921
921
  }
922
+ /**
923
+ * A requirement a hook reads from `Context`, discriminated by `type`. More types will be added later; consumers must ignore types they do not know.
924
+ */
925
+ export type ContextRequirement = /* A requirement a hook reads from `Context`, discriminated by `type`. More types will be added later; consumers must ignore types they do not know. */ /* The consumer supplies the bound entities of `schema` under `Context.<schema>`. */ EntityContextRequirement | /* The consumer supplies one scalar value under `Context.<name>`, e.g. a date the customer entered in a journey block. A value input is optional: the consumer sends it when it has a value and omits it otherwise, so the hook's templates must cope with its absence, e.g. `{{ Context.reading_date | default: "now" | date: "%Y-%m-%d" }}`. `date` values are ISO 8601 strings (`YYYY-MM-DD` or a date-time). */ ValueContextRequirement;
922
926
  export interface CustomCapabilityComponent {
923
927
  component_type: "CUSTOM_CAPABILITY";
924
928
  configuration: {
@@ -986,6 +990,18 @@ declare namespace Components {
986
990
  */
987
991
  nav_description?: string;
988
992
  }
993
+ /**
994
+ * The consumer supplies the bound entities of `schema` under `Context.<schema>`.
995
+ */
996
+ export interface EntityContextRequirement {
997
+ type: "entity";
998
+ /**
999
+ * Entity schema slug, e.g. `contract`.
1000
+ * example:
1001
+ * contract
1002
+ */
1003
+ schema: string; // ^[a-z0-9_-]{1,100}$
1004
+ }
989
1005
  export interface EnumArg {
990
1006
  type?: "enum";
991
1007
  /**
@@ -1281,17 +1297,17 @@ declare namespace Components {
1281
1297
  * Hooks exposed by this component. Hook ids must be unique within the component.
1282
1298
  */
1283
1299
  hooks: /**
1284
- * One external call that returns one or more typed results. Interpolated templates (Liquid) have access to `Context`, `Consumer`, `Options`, `Env` and — for `result` templates — `Response` and `AuthResponse` (each is also available snake_case, e.g. `{{ context.input }}`).
1300
+ * One external call that returns one or more typed results. Interpolated templates (Liquid) have access to `Context`, `Consumer`, `Options`, `Env` and — for `result` templates — `Response` and `AuthResponse` (each is also available snake_case, e.g. `{{ context.contract }}`).
1285
1301
  *
1286
- * `Context` is the single name → value map the consumer supplies. The names in it are up to the consumer — by convention the journey runtime passes the validated value of a validation rule as `context.input` and every configured context binding under its own configured name.
1302
+ * `Context` is the name → value map the consumer supplies, one entry per context requirement it bound: `Context.<schema>` for an `entity` requirement, `Context.<name>` for a `value` requirement. Declare what a hook reads from `Context` in `contexts` so consumers can require it.
1287
1303
  *
1288
1304
  */
1289
1305
  ExternalValuesHook[];
1290
1306
  }
1291
1307
  /**
1292
- * One external call that returns one or more typed results. Interpolated templates (Liquid) have access to `Context`, `Consumer`, `Options`, `Env` and — for `result` templates — `Response` and `AuthResponse` (each is also available snake_case, e.g. `{{ context.input }}`).
1308
+ * One external call that returns one or more typed results. Interpolated templates (Liquid) have access to `Context`, `Consumer`, `Options`, `Env` and — for `result` templates — `Response` and `AuthResponse` (each is also available snake_case, e.g. `{{ context.contract }}`).
1293
1309
  *
1294
- * `Context` is the single name → value map the consumer supplies. The names in it are up to the consumer — by convention the journey runtime passes the validated value of a validation rule as `context.input` and every configured context binding under its own configured name.
1310
+ * `Context` is the name → value map the consumer supplies, one entry per context requirement it bound: `Context.<schema>` for an `entity` requirement, `Context.<name>` for a `value` requirement. Declare what a hook reads from `Context` in `contexts` so consumers can require it.
1295
1311
  *
1296
1312
  */
1297
1313
  export interface ExternalValuesHook {
@@ -1378,6 +1394,10 @@ declare namespace Components {
1378
1394
  * Behaviour when the external system is unavailable (timeout, network or upstream error). `skip`: consumers ignore conditions depending on this hook. `block`: consumers treat the dependent action as not allowed.
1379
1395
  */
1380
1396
  on_unavailable?: "skip" | "block";
1397
+ /**
1398
+ * The requirements the hook reads from `Context` (at most 10). An `entity` requirement means the consumer supplies the bound entities of that schema under `Context.<schema>` (e.g. `{{ Context.contract[0].external_id }}` needs `{ type: entity, schema: contract }`). A `value` requirement means the consumer supplies one scalar value under `Context.<name>` (e.g. `{{ Context.reading_date }}` needs `{ type: value, name: reading_date, value_type: date }`); value inputs are optional at runtime, so templates must cope with their absence. Entity schemas are unique, value names are unique, and a value name must not equal an entity schema of the same hook (both land in `Context`). More requirement types will be added later; consumers must ignore types they do not know.
1399
+ */
1400
+ contexts?: /* A requirement a hook reads from `Context`, discriminated by `type`. More types will be added later; consumers must ignore types they do not know. */ ContextRequirement[];
1381
1401
  /**
1382
1402
  * Response caching. Off when omitted.
1383
1403
  */
@@ -3237,6 +3257,24 @@ declare namespace Components {
3237
3257
  */
3238
3258
  de: string;
3239
3259
  }
3260
+ /**
3261
+ * The consumer supplies one scalar value under `Context.<name>`, e.g. a date the customer entered in a journey block. A value input is optional: the consumer sends it when it has a value and omits it otherwise, so the hook's templates must cope with its absence, e.g. `{{ Context.reading_date | default: "now" | date: "%Y-%m-%d" }}`. `date` values are ISO 8601 strings (`YYYY-MM-DD` or a date-time).
3262
+ */
3263
+ export interface ValueContextRequirement {
3264
+ type: "value";
3265
+ /**
3266
+ * Key under which the value is sent (`Context.<name>`). Same pattern as validation rule parameter names. Unique among the hook's `value` requirements and must not equal the `schema` of an `entity` requirement of the same hook.
3267
+ * example:
3268
+ * reading_date
3269
+ */
3270
+ name: string; // ^[a-z][a-z0-9_]{0,63}$
3271
+ /**
3272
+ * Type of the value: `number` and `boolean` are sent as JSON numbers and booleans, `text` as a string, `date` as an ISO 8601 string (`YYYY-MM-DD` or a date-time).
3273
+ * example:
3274
+ * date
3275
+ */
3276
+ value_type: "number" | "text" | "date" | "boolean";
3277
+ }
3240
3278
  }
3241
3279
  }
3242
3280
  declare namespace Paths {
@@ -4708,11 +4746,13 @@ type ComponentType = Components.Schemas.ComponentType;
4708
4746
  type Configuration = Components.Schemas.Configuration;
4709
4747
  type ConfigurationMetadata = Components.Schemas.ConfigurationMetadata;
4710
4748
  type ConfigurationVersion = Components.Schemas.ConfigurationVersion;
4749
+ type ContextRequirement = Components.Schemas.ContextRequirement;
4711
4750
  type CustomCapabilityComponent = Components.Schemas.CustomCapabilityComponent;
4712
4751
  type CustomFlowActionComponent = Components.Schemas.CustomFlowActionComponent;
4713
4752
  type CustomFlowConfig = Components.Schemas.CustomFlowConfig;
4714
4753
  type CustomPageComponent = Components.Schemas.CustomPageComponent;
4715
4754
  type CustomPageConfig = Components.Schemas.CustomPageConfig;
4755
+ type EntityContextRequirement = Components.Schemas.EntityContextRequirement;
4716
4756
  type EnumArg = Components.Schemas.EnumArg;
4717
4757
  type ErpInformToolkitComponent = Components.Schemas.ErpInformToolkitComponent;
4718
4758
  type EventsQuery = Components.Schemas.EventsQuery;
@@ -4769,5 +4809,6 @@ type Role = Components.Schemas.Role;
4769
4809
  type S3Reference = Components.Schemas.S3Reference;
4770
4810
  type TextArg = Components.Schemas.TextArg;
4771
4811
  type TranslatedString = Components.Schemas.TranslatedString;
4812
+ type ValueContextRequirement = Components.Schemas.ValueContextRequirement;
4772
4813
 
4773
- export { type NotificationConfig as $, type Actor as A, type BaseComponent as B, type Client as C, type ErpInformToolkitComponent as D, type EnumArg as E, type EventsQuery as F, type EventsQueryResponse as G, type ExternalIntegrationCustomActionConfig as H, type ExternalProductCatalogAuthBlock as I, type ExternalProductCatalogComponent as J, type ExternalProductCatalogConfig as K, type ExternalProductCatalogHookProductRecommendations as L, type ExternalProductCatalogHookProducts as M, type ExternalValuesComponent as N, type OperationMethods as O, Paths as P, type ExternalValuesConfig as Q, type ExternalValuesHook as R, type ExternalValuesResult as S, type FunctionDefinition as T, type FunctionRefCustomActionConfig as U, type Grants as V, type Installation as W, type InternalReview as X, type JourneyBlockComponent as Y, type JourneyBlockComponentArgs as Z, type JourneyBlockConfig as _, Components as a, type NotificationEvent as a0, type ObjectField as a1, type Option as a2, type Options as a3, type OptionsRef as a4, type OverrideDevMode as a5, type PortalBlockComponent as a6, type PortalBlockConfig as a7, type PortalBlockSurfaceConfig as a8, type PortalExtensionAuthBlock as a9, type PortalExtensionComponent as aa, type PortalExtensionConfig as ab, type PortalExtensionHookChangeEmail as ac, type PortalExtensionHookChangePassword as ad, type PortalExtensionHookConsumptionDataRetrieval as ae, type PortalExtensionHookContractIdentification as af, type PortalExtensionHookCostDataRetrieval as ag, type PortalExtensionHookDataExport as ah, type PortalExtensionHookDeleteAccount as ai, type PortalExtensionHookMeterReadingPlausibilityCheck as aj, type PortalExtensionHookPriceDataRetrieval as ak, type PortalExtensionHookRegistrationIdentifiersCheck as al, type PortalExtensionHookVisualizationMetadata as am, type PortalExtensionSeamlessLink as an, type PortalExtensionSecureProxy as ao, type Pricing as ap, type PublicConfiguration as aq, type RawEvents as ar, type Review as as, type Role as at, type S3Reference as au, type TextArg as av, type TranslatedString as aw, type PathsDictionary as b, type AggregatedEvents as c, type ApiProxyComponent as d, type ApiProxyConfig as e, type AppBridgeSurfaceConfig as f, type AppEventData as g, type Audit as h, type Author as i, type BaseComponentCommon as j, type BaseCustomActionConfig as k, type BatchEventRequest as l, type BillingFrequency as m, type BlockReferenceArg as n, type BlueprintRef as o, type BooleanArg as p, type CallerIdentity as q, type ComponentType as r, type Configuration as s, type ConfigurationMetadata as t, type ConfigurationVersion as u, type CustomCapabilityComponent as v, type CustomFlowActionComponent as w, type CustomFlowConfig as x, type CustomPageComponent as y, type CustomPageConfig as z };
4814
+ export { type JourneyBlockComponentArgs as $, type Actor as A, type BaseComponent as B, type Client as C, type CustomPageConfig as D, type EntityContextRequirement as E, type EnumArg as F, type ErpInformToolkitComponent as G, type EventsQuery as H, type EventsQueryResponse as I, type ExternalIntegrationCustomActionConfig as J, type ExternalProductCatalogAuthBlock as K, type ExternalProductCatalogComponent as L, type ExternalProductCatalogConfig as M, type ExternalProductCatalogHookProductRecommendations as N, type OperationMethods as O, Paths as P, type ExternalProductCatalogHookProducts as Q, type ExternalValuesComponent as R, type ExternalValuesConfig as S, type ExternalValuesHook as T, type ExternalValuesResult as U, type FunctionDefinition as V, type FunctionRefCustomActionConfig as W, type Grants as X, type Installation as Y, type InternalReview as Z, type JourneyBlockComponent as _, Components as a, type JourneyBlockConfig as a0, type NotificationConfig as a1, type NotificationEvent as a2, type ObjectField as a3, type Option as a4, type Options as a5, type OptionsRef as a6, type OverrideDevMode as a7, type PortalBlockComponent as a8, type PortalBlockConfig as a9, type PortalBlockSurfaceConfig as aa, type PortalExtensionAuthBlock as ab, type PortalExtensionComponent as ac, type PortalExtensionConfig as ad, type PortalExtensionHookChangeEmail as ae, type PortalExtensionHookChangePassword as af, type PortalExtensionHookConsumptionDataRetrieval as ag, type PortalExtensionHookContractIdentification as ah, type PortalExtensionHookCostDataRetrieval as ai, type PortalExtensionHookDataExport as aj, type PortalExtensionHookDeleteAccount as ak, type PortalExtensionHookMeterReadingPlausibilityCheck as al, type PortalExtensionHookPriceDataRetrieval as am, type PortalExtensionHookRegistrationIdentifiersCheck as an, type PortalExtensionHookVisualizationMetadata as ao, type PortalExtensionSeamlessLink as ap, type PortalExtensionSecureProxy as aq, type Pricing as ar, type PublicConfiguration as as, type RawEvents as at, type Review as au, type Role as av, type S3Reference as aw, type TextArg as ax, type TranslatedString as ay, type ValueContextRequirement as az, type PathsDictionary as b, type AggregatedEvents as c, type ApiProxyComponent as d, type ApiProxyConfig as e, type AppBridgeSurfaceConfig as f, type AppEventData as g, type Audit as h, type Author as i, type BaseComponentCommon as j, type BaseCustomActionConfig as k, type BatchEventRequest as l, type BillingFrequency as m, type BlockReferenceArg as n, type BlueprintRef as o, type BooleanArg as p, type CallerIdentity as q, type ComponentType as r, type Configuration as s, type ConfigurationMetadata as t, type ConfigurationVersion as u, type ContextRequirement as v, type CustomCapabilityComponent as w, type CustomFlowActionComponent as x, type CustomFlowConfig as y, type CustomPageComponent as z };
@@ -919,6 +919,10 @@ declare namespace Components {
919
919
  versioned_by?: string;
920
920
  };
921
921
  }
922
+ /**
923
+ * A requirement a hook reads from `Context`, discriminated by `type`. More types will be added later; consumers must ignore types they do not know.
924
+ */
925
+ export type ContextRequirement = /* A requirement a hook reads from `Context`, discriminated by `type`. More types will be added later; consumers must ignore types they do not know. */ /* The consumer supplies the bound entities of `schema` under `Context.<schema>`. */ EntityContextRequirement | /* The consumer supplies one scalar value under `Context.<name>`, e.g. a date the customer entered in a journey block. A value input is optional: the consumer sends it when it has a value and omits it otherwise, so the hook's templates must cope with its absence, e.g. `{{ Context.reading_date | default: "now" | date: "%Y-%m-%d" }}`. `date` values are ISO 8601 strings (`YYYY-MM-DD` or a date-time). */ ValueContextRequirement;
922
926
  export interface CustomCapabilityComponent {
923
927
  component_type: "CUSTOM_CAPABILITY";
924
928
  configuration: {
@@ -986,6 +990,18 @@ declare namespace Components {
986
990
  */
987
991
  nav_description?: string;
988
992
  }
993
+ /**
994
+ * The consumer supplies the bound entities of `schema` under `Context.<schema>`.
995
+ */
996
+ export interface EntityContextRequirement {
997
+ type: "entity";
998
+ /**
999
+ * Entity schema slug, e.g. `contract`.
1000
+ * example:
1001
+ * contract
1002
+ */
1003
+ schema: string; // ^[a-z0-9_-]{1,100}$
1004
+ }
989
1005
  export interface EnumArg {
990
1006
  type?: "enum";
991
1007
  /**
@@ -1281,17 +1297,17 @@ declare namespace Components {
1281
1297
  * Hooks exposed by this component. Hook ids must be unique within the component.
1282
1298
  */
1283
1299
  hooks: /**
1284
- * One external call that returns one or more typed results. Interpolated templates (Liquid) have access to `Context`, `Consumer`, `Options`, `Env` and — for `result` templates — `Response` and `AuthResponse` (each is also available snake_case, e.g. `{{ context.input }}`).
1300
+ * One external call that returns one or more typed results. Interpolated templates (Liquid) have access to `Context`, `Consumer`, `Options`, `Env` and — for `result` templates — `Response` and `AuthResponse` (each is also available snake_case, e.g. `{{ context.contract }}`).
1285
1301
  *
1286
- * `Context` is the single name → value map the consumer supplies. The names in it are up to the consumer — by convention the journey runtime passes the validated value of a validation rule as `context.input` and every configured context binding under its own configured name.
1302
+ * `Context` is the name → value map the consumer supplies, one entry per context requirement it bound: `Context.<schema>` for an `entity` requirement, `Context.<name>` for a `value` requirement. Declare what a hook reads from `Context` in `contexts` so consumers can require it.
1287
1303
  *
1288
1304
  */
1289
1305
  ExternalValuesHook[];
1290
1306
  }
1291
1307
  /**
1292
- * One external call that returns one or more typed results. Interpolated templates (Liquid) have access to `Context`, `Consumer`, `Options`, `Env` and — for `result` templates — `Response` and `AuthResponse` (each is also available snake_case, e.g. `{{ context.input }}`).
1308
+ * One external call that returns one or more typed results. Interpolated templates (Liquid) have access to `Context`, `Consumer`, `Options`, `Env` and — for `result` templates — `Response` and `AuthResponse` (each is also available snake_case, e.g. `{{ context.contract }}`).
1293
1309
  *
1294
- * `Context` is the single name → value map the consumer supplies. The names in it are up to the consumer — by convention the journey runtime passes the validated value of a validation rule as `context.input` and every configured context binding under its own configured name.
1310
+ * `Context` is the name → value map the consumer supplies, one entry per context requirement it bound: `Context.<schema>` for an `entity` requirement, `Context.<name>` for a `value` requirement. Declare what a hook reads from `Context` in `contexts` so consumers can require it.
1295
1311
  *
1296
1312
  */
1297
1313
  export interface ExternalValuesHook {
@@ -1378,6 +1394,10 @@ declare namespace Components {
1378
1394
  * Behaviour when the external system is unavailable (timeout, network or upstream error). `skip`: consumers ignore conditions depending on this hook. `block`: consumers treat the dependent action as not allowed.
1379
1395
  */
1380
1396
  on_unavailable?: "skip" | "block";
1397
+ /**
1398
+ * The requirements the hook reads from `Context` (at most 10). An `entity` requirement means the consumer supplies the bound entities of that schema under `Context.<schema>` (e.g. `{{ Context.contract[0].external_id }}` needs `{ type: entity, schema: contract }`). A `value` requirement means the consumer supplies one scalar value under `Context.<name>` (e.g. `{{ Context.reading_date }}` needs `{ type: value, name: reading_date, value_type: date }`); value inputs are optional at runtime, so templates must cope with their absence. Entity schemas are unique, value names are unique, and a value name must not equal an entity schema of the same hook (both land in `Context`). More requirement types will be added later; consumers must ignore types they do not know.
1399
+ */
1400
+ contexts?: /* A requirement a hook reads from `Context`, discriminated by `type`. More types will be added later; consumers must ignore types they do not know. */ ContextRequirement[];
1381
1401
  /**
1382
1402
  * Response caching. Off when omitted.
1383
1403
  */
@@ -3237,6 +3257,24 @@ declare namespace Components {
3237
3257
  */
3238
3258
  de: string;
3239
3259
  }
3260
+ /**
3261
+ * The consumer supplies one scalar value under `Context.<name>`, e.g. a date the customer entered in a journey block. A value input is optional: the consumer sends it when it has a value and omits it otherwise, so the hook's templates must cope with its absence, e.g. `{{ Context.reading_date | default: "now" | date: "%Y-%m-%d" }}`. `date` values are ISO 8601 strings (`YYYY-MM-DD` or a date-time).
3262
+ */
3263
+ export interface ValueContextRequirement {
3264
+ type: "value";
3265
+ /**
3266
+ * Key under which the value is sent (`Context.<name>`). Same pattern as validation rule parameter names. Unique among the hook's `value` requirements and must not equal the `schema` of an `entity` requirement of the same hook.
3267
+ * example:
3268
+ * reading_date
3269
+ */
3270
+ name: string; // ^[a-z][a-z0-9_]{0,63}$
3271
+ /**
3272
+ * Type of the value: `number` and `boolean` are sent as JSON numbers and booleans, `text` as a string, `date` as an ISO 8601 string (`YYYY-MM-DD` or a date-time).
3273
+ * example:
3274
+ * date
3275
+ */
3276
+ value_type: "number" | "text" | "date" | "boolean";
3277
+ }
3240
3278
  }
3241
3279
  }
3242
3280
  declare namespace Paths {
@@ -4708,11 +4746,13 @@ type ComponentType = Components.Schemas.ComponentType;
4708
4746
  type Configuration = Components.Schemas.Configuration;
4709
4747
  type ConfigurationMetadata = Components.Schemas.ConfigurationMetadata;
4710
4748
  type ConfigurationVersion = Components.Schemas.ConfigurationVersion;
4749
+ type ContextRequirement = Components.Schemas.ContextRequirement;
4711
4750
  type CustomCapabilityComponent = Components.Schemas.CustomCapabilityComponent;
4712
4751
  type CustomFlowActionComponent = Components.Schemas.CustomFlowActionComponent;
4713
4752
  type CustomFlowConfig = Components.Schemas.CustomFlowConfig;
4714
4753
  type CustomPageComponent = Components.Schemas.CustomPageComponent;
4715
4754
  type CustomPageConfig = Components.Schemas.CustomPageConfig;
4755
+ type EntityContextRequirement = Components.Schemas.EntityContextRequirement;
4716
4756
  type EnumArg = Components.Schemas.EnumArg;
4717
4757
  type ErpInformToolkitComponent = Components.Schemas.ErpInformToolkitComponent;
4718
4758
  type EventsQuery = Components.Schemas.EventsQuery;
@@ -4769,5 +4809,6 @@ type Role = Components.Schemas.Role;
4769
4809
  type S3Reference = Components.Schemas.S3Reference;
4770
4810
  type TextArg = Components.Schemas.TextArg;
4771
4811
  type TranslatedString = Components.Schemas.TranslatedString;
4812
+ type ValueContextRequirement = Components.Schemas.ValueContextRequirement;
4772
4813
 
4773
- export { type NotificationConfig as $, type Actor as A, type BaseComponent as B, type Client as C, type ErpInformToolkitComponent as D, type EnumArg as E, type EventsQuery as F, type EventsQueryResponse as G, type ExternalIntegrationCustomActionConfig as H, type ExternalProductCatalogAuthBlock as I, type ExternalProductCatalogComponent as J, type ExternalProductCatalogConfig as K, type ExternalProductCatalogHookProductRecommendations as L, type ExternalProductCatalogHookProducts as M, type ExternalValuesComponent as N, type OperationMethods as O, Paths as P, type ExternalValuesConfig as Q, type ExternalValuesHook as R, type ExternalValuesResult as S, type FunctionDefinition as T, type FunctionRefCustomActionConfig as U, type Grants as V, type Installation as W, type InternalReview as X, type JourneyBlockComponent as Y, type JourneyBlockComponentArgs as Z, type JourneyBlockConfig as _, Components as a, type NotificationEvent as a0, type ObjectField as a1, type Option as a2, type Options as a3, type OptionsRef as a4, type OverrideDevMode as a5, type PortalBlockComponent as a6, type PortalBlockConfig as a7, type PortalBlockSurfaceConfig as a8, type PortalExtensionAuthBlock as a9, type PortalExtensionComponent as aa, type PortalExtensionConfig as ab, type PortalExtensionHookChangeEmail as ac, type PortalExtensionHookChangePassword as ad, type PortalExtensionHookConsumptionDataRetrieval as ae, type PortalExtensionHookContractIdentification as af, type PortalExtensionHookCostDataRetrieval as ag, type PortalExtensionHookDataExport as ah, type PortalExtensionHookDeleteAccount as ai, type PortalExtensionHookMeterReadingPlausibilityCheck as aj, type PortalExtensionHookPriceDataRetrieval as ak, type PortalExtensionHookRegistrationIdentifiersCheck as al, type PortalExtensionHookVisualizationMetadata as am, type PortalExtensionSeamlessLink as an, type PortalExtensionSecureProxy as ao, type Pricing as ap, type PublicConfiguration as aq, type RawEvents as ar, type Review as as, type Role as at, type S3Reference as au, type TextArg as av, type TranslatedString as aw, type PathsDictionary as b, type AggregatedEvents as c, type ApiProxyComponent as d, type ApiProxyConfig as e, type AppBridgeSurfaceConfig as f, type AppEventData as g, type Audit as h, type Author as i, type BaseComponentCommon as j, type BaseCustomActionConfig as k, type BatchEventRequest as l, type BillingFrequency as m, type BlockReferenceArg as n, type BlueprintRef as o, type BooleanArg as p, type CallerIdentity as q, type ComponentType as r, type Configuration as s, type ConfigurationMetadata as t, type ConfigurationVersion as u, type CustomCapabilityComponent as v, type CustomFlowActionComponent as w, type CustomFlowConfig as x, type CustomPageComponent as y, type CustomPageConfig as z };
4814
+ export { type JourneyBlockComponentArgs as $, type Actor as A, type BaseComponent as B, type Client as C, type CustomPageConfig as D, type EntityContextRequirement as E, type EnumArg as F, type ErpInformToolkitComponent as G, type EventsQuery as H, type EventsQueryResponse as I, type ExternalIntegrationCustomActionConfig as J, type ExternalProductCatalogAuthBlock as K, type ExternalProductCatalogComponent as L, type ExternalProductCatalogConfig as M, type ExternalProductCatalogHookProductRecommendations as N, type OperationMethods as O, Paths as P, type ExternalProductCatalogHookProducts as Q, type ExternalValuesComponent as R, type ExternalValuesConfig as S, type ExternalValuesHook as T, type ExternalValuesResult as U, type FunctionDefinition as V, type FunctionRefCustomActionConfig as W, type Grants as X, type Installation as Y, type InternalReview as Z, type JourneyBlockComponent as _, Components as a, type JourneyBlockConfig as a0, type NotificationConfig as a1, type NotificationEvent as a2, type ObjectField as a3, type Option as a4, type Options as a5, type OptionsRef as a6, type OverrideDevMode as a7, type PortalBlockComponent as a8, type PortalBlockConfig as a9, type PortalBlockSurfaceConfig as aa, type PortalExtensionAuthBlock as ab, type PortalExtensionComponent as ac, type PortalExtensionConfig as ad, type PortalExtensionHookChangeEmail as ae, type PortalExtensionHookChangePassword as af, type PortalExtensionHookConsumptionDataRetrieval as ag, type PortalExtensionHookContractIdentification as ah, type PortalExtensionHookCostDataRetrieval as ai, type PortalExtensionHookDataExport as aj, type PortalExtensionHookDeleteAccount as ak, type PortalExtensionHookMeterReadingPlausibilityCheck as al, type PortalExtensionHookPriceDataRetrieval as am, type PortalExtensionHookRegistrationIdentifiersCheck as an, type PortalExtensionHookVisualizationMetadata as ao, type PortalExtensionSeamlessLink as ap, type PortalExtensionSecureProxy as aq, type Pricing as ar, type PublicConfiguration as as, type RawEvents as at, type Review as au, type Role as av, type S3Reference as aw, type TextArg as ax, type TranslatedString as ay, type ValueContextRequirement as az, type PathsDictionary as b, type AggregatedEvents as c, type ApiProxyComponent as d, type ApiProxyConfig as e, type AppBridgeSurfaceConfig as f, type AppEventData as g, type Audit as h, type Author as i, type BaseComponentCommon as j, type BaseCustomActionConfig as k, type BatchEventRequest as l, type BillingFrequency as m, type BlockReferenceArg as n, type BlueprintRef as o, type BooleanArg as p, type CallerIdentity as q, type ComponentType as r, type Configuration as s, type ConfigurationMetadata as t, type ConfigurationVersion as u, type ContextRequirement as v, type CustomCapabilityComponent as w, type CustomFlowActionComponent as x, type CustomFlowConfig as y, type CustomPageComponent as z };
@@ -33,7 +33,7 @@ var globImport_docs = __glob({
33
33
  "./docs/address-suggestions.json": () => import("./address-suggestions-74244BAJ.js"),
34
34
  "./docs/address.json": () => import("./address-QVJUGMOG.js"),
35
35
  "./docs/ai-agents.json": () => import("./ai-agents-5EG5UUP7.js"),
36
- "./docs/app.json": () => import("./app-CKQAJ7EE.js"),
36
+ "./docs/app.json": () => import("./app-3WUZHA43.js"),
37
37
  "./docs/audit-logs.json": () => import("./audit-logs-5VXHOQ7S.js"),
38
38
  "./docs/automation.json": () => import("./automation-UPTNUOYO.js"),
39
39
  "./docs/billing.json": () => import("./billing-UJ6I7FPG.js"),
@@ -55,7 +55,7 @@ var globImport_docs = __glob({
55
55
  "./docs/environments.json": () => import("./environments-MKY6TF4Z.js"),
56
56
  "./docs/erp-integration.json": () => import("./erp-integration-SBQJ6HEG.js"),
57
57
  "./docs/event-catalog.json": () => import("./event-catalog-R4ZGZQVY.js"),
58
- "./docs/external-values.json": () => import("./external-values-7BS76RVR.js"),
58
+ "./docs/external-values.json": () => import("./external-values-66ANK66M.js"),
59
59
  "./docs/file.json": () => import("./file-N3SGGI6E.js"),
60
60
  "./docs/iban.json": () => import("./iban-LDKYDVQV.js"),
61
61
  "./docs/identity.json": () => import("./identity-OT3MIWHV.js"),
@@ -33,7 +33,7 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
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"))),
35
35
  "./docs/ai-agents.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./ai-agents-HDLQXHEO.cjs"))),
36
- "./docs/app.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./app-ERJHXY64.cjs"))),
36
+ "./docs/app.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./app-7VPZV72D.cjs"))),
37
37
  "./docs/audit-logs.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./audit-logs-D2LFUA2R.cjs"))),
38
38
  "./docs/automation.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./automation-G2CKAQNB.cjs"))),
39
39
  "./docs/billing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./billing-CKCFSK6K.cjs"))),
@@ -55,7 +55,7 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
55
55
  "./docs/environments.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./environments-QII3AKWU.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-R2XB2ALG.cjs"))),
58
+ "./docs/external-values.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./external-values-WET4FHGU.cjs"))),
59
59
  "./docs/file.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./file-2KT6MMMG.cjs"))),
60
60
  "./docs/iban.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./iban-24GHLFDB.cjs"))),
61
61
  "./docs/identity.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./identity-XCFH3MIW.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- [`ContextRequirement`](#contextrequirement)\n- [`EntityContextRequirement`](#entitycontextrequirement)\n- [`ValueContextRequirement`](#valuecontextrequirement)\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 "contexts": [\n {\n "type": "entity",\n "schema": "contract"\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 contract: [\n {\n _id: \'8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a\',\n external_id: \'C-1001\',\n installment_amount: 110\n }\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 contract: [\n {\n _id: \'8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a\',\n external_id: \'C-1001\',\n installment_amount: 110\n }\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 contexts?: Array<{\n type: "entity"\n schema: string\n } | {\n type: "value"\n name: string\n value_type: "number" | "text" | "date" | "boolean"\n }>\n}\n```\n\n### `ContextRequirement`\n\nSomething a hook needs the consumer to supply in `context`, discriminated by `type`:\nbound entities (`entity`) or an optional scalar input (`value`). More types may follow;\nconsumers ignore types they do not know.\n\n\n```ts\ntype ContextRequirement = {\n type: "entity"\n schema: string\n} | {\n type: "value"\n name: string\n value_type: "number" | "text" | "date" | "boolean"\n}\n```\n\n### `EntityContextRequirement`\n\nThe consumer supplies the bound entities of `schema` under `Context.`<schema>``, e.g. a hook\ninterpolating `{{ Context.contract[0].external_id }}` declares\n`{ type: entity, schema: contract }`.\n\n\n```ts\ntype EntityContextRequirement = {\n type: "entity"\n schema: string\n}\n```\n\n### `ValueContextRequirement`\n\nAn optional scalar input. When the consumer has a value it supplies it under\n`Context.`<name>`` (dates as ISO 8601 strings, `YYYY-MM-DD` or a date-time); otherwise the\nkey is absent, so the hook template must provide a fallback, e.g.\n`{{ Context.reading_date | default: "now" | date: "%Y-%m-%d" }}` dec\n\n```ts\ntype ValueContextRequirement = {\n type: "value"\n name: string\n value_type: "number" | "text" | "date" | "boolean"\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 contexts?: Array<{\n type: { ... }\n schema: { ... }\n } | {\n type: { ... }\n name: { ... }\n value_type: { ... }\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- [`ContextRequirement`](#contextrequirement)\n- [`EntityContextRequirement`](#entitycontextrequirement)\n- [`ValueContextRequirement`](#valuecontextrequirement)\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 "contexts": [\n {\n "type": "entity",\n "schema": "contract"\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 contract: [\n {\n _id: \'8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a\',\n external_id: \'C-1001\',\n installment_amount: 110\n }\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 contract: [\n {\n _id: \'8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a\',\n external_id: \'C-1001\',\n installment_amount: 110\n }\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 contexts?: Array<{\n type: "entity"\n schema: string\n } | {\n type: "value"\n name: string\n value_type: "number" | "text" | "date" | "boolean"\n }>\n}\n```\n\n### `ContextRequirement`\n\nSomething a hook needs the consumer to supply in `context`, discriminated by `type`:\nbound entities (`entity`) or an optional scalar input (`value`). More types may follow;\nconsumers ignore types they do not know.\n\n\n```ts\ntype ContextRequirement = {\n type: "entity"\n schema: string\n} | {\n type: "value"\n name: string\n value_type: "number" | "text" | "date" | "boolean"\n}\n```\n\n### `EntityContextRequirement`\n\nThe consumer supplies the bound entities of `schema` under `Context.`<schema>``, e.g. a hook\ninterpolating `{{ Context.contract[0].external_id }}` declares\n`{ type: entity, schema: contract }`.\n\n\n```ts\ntype EntityContextRequirement = {\n type: "entity"\n schema: string\n}\n```\n\n### `ValueContextRequirement`\n\nAn optional scalar input. When the consumer has a value it supplies it under\n`Context.`<name>`` (dates as ISO 8601 strings, `YYYY-MM-DD` or a date-time); otherwise the\nkey is absent, so the hook template must provide a fallback, e.g.\n`{{ Context.reading_date | default: "now" | date: "%Y-%m-%d" }}` dec\n\n```ts\ntype ValueContextRequirement = {\n type: "value"\n name: string\n value_type: "number" | "text" | "date" | "boolean"\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 contexts?: Array<{\n type: { ... }\n schema: { ... }\n } | {\n type: { ... }\n name: { ... }\n value_type: { ... }\n }>\n }>\n}\n```\n';
5
+
6
+
7
+ exports.default = external_values_default;
@@ -14,13 +14,15 @@ declare namespace Components {
14
14
  }
15
15
  namespace Schemas {
16
16
  /**
17
- * Something a hook needs the consumer to supply in `context`, discriminated by `type`.
18
- * Today only `entity`; more types will follow. Consumers ignore types they do not know.
17
+ * Something a hook needs the consumer to supply in `context`, discriminated by `type`:
18
+ * bound entities (`entity`) or an optional scalar input (`value`). More types may follow;
19
+ * consumers ignore types they do not know.
19
20
  *
20
21
  */
21
22
  export type ContextRequirement = /**
22
- * Something a hook needs the consumer to supply in `context`, discriminated by `type`.
23
- * Today only `entity`; more types will follow. Consumers ignore types they do not know.
23
+ * Something a hook needs the consumer to supply in `context`, discriminated by `type`:
24
+ * bound entities (`entity`) or an optional scalar input (`value`). More types may follow;
25
+ * consumers ignore types they do not know.
24
26
  *
25
27
  */
26
28
  /**
@@ -29,7 +31,16 @@ declare namespace Components {
29
31
  * `{ type: entity, schema: contract }`.
30
32
  *
31
33
  */
32
- EntityContextRequirement;
34
+ EntityContextRequirement | /**
35
+ * An optional scalar input. When the consumer has a value it supplies it under
36
+ * `Context.<name>` (dates as ISO 8601 strings, `YYYY-MM-DD` or a date-time); otherwise the
37
+ * key is absent, so the hook template must provide a fallback, e.g.
38
+ * `{{ Context.reading_date | default: "now" | date: "%Y-%m-%d" }}` declares
39
+ * `{ type: value, name: reading_date, value_type: date }`. `name` is unique among the hook's
40
+ * `value` requirements and never equals the `schema` of one of its `entity` requirements.
41
+ *
42
+ */
43
+ ValueContextRequirement;
33
44
  /**
34
45
  * The consumer supplies the bound entities of `schema` under `Context.<schema>`, e.g. a hook
35
46
  * interpolating `{{ Context.contract[0].external_id }}` declares
@@ -83,13 +94,15 @@ declare namespace Components {
83
94
  /**
84
95
  * What the hook needs the consumer to supply in `context`, as declared in the hook
85
96
  * config. Omitted when the hook declares none. A rule builder must require these
86
- * contexts on any rule that uses the hook, so the caller passes them in `context`.
87
- * More requirement types will follow; consumers ignore types they do not know.
97
+ * contexts (and offer these value inputs) on any rule that uses the hook, so the
98
+ * caller passes them in `context`. More requirement types may follow; consumers
99
+ * ignore types they do not know.
88
100
  *
89
101
  */
90
102
  contexts?: /**
91
- * Something a hook needs the consumer to supply in `context`, discriminated by `type`.
92
- * Today only `entity`; more types will follow. Consumers ignore types they do not know.
103
+ * Something a hook needs the consumer to supply in `context`, discriminated by `type`:
104
+ * bound entities (`entity`) or an optional scalar input (`value`). More types may follow;
105
+ * consumers ignore types they do not know.
93
106
  *
94
107
  */
95
108
  ContextRequirement[];
@@ -126,8 +139,9 @@ declare namespace Components {
126
139
  *
127
140
  * One entry per context requirement the consumer bound (see
128
141
  * `ExternalValueHookSummary.contexts`): for an `entity` requirement, the bound
129
- * entities of that schema under its schema slug. This API gives no name special
130
- * treatment.
142
+ * entities of that schema under its schema slug; for a `value` requirement, the
143
+ * bound scalar under its `name` (e.g. `"reading_date": "2026-03-01"`), omitted when
144
+ * the consumer has no value. This API gives no name special treatment.
131
145
  *
132
146
  */
133
147
  context: {
@@ -194,6 +208,25 @@ declare namespace Components {
194
208
  */
195
209
  en?: string | null;
196
210
  }
211
+ /**
212
+ * An optional scalar input. When the consumer has a value it supplies it under
213
+ * `Context.<name>` (dates as ISO 8601 strings, `YYYY-MM-DD` or a date-time); otherwise the
214
+ * key is absent, so the hook template must provide a fallback, e.g.
215
+ * `{{ Context.reading_date | default: "now" | date: "%Y-%m-%d" }}` declares
216
+ * `{ type: value, name: reading_date, value_type: date }`. `name` is unique among the hook's
217
+ * `value` requirements and never equals the `schema` of one of its `entity` requirements.
218
+ *
219
+ */
220
+ export interface ValueContextRequirement {
221
+ type: "value";
222
+ /**
223
+ * Key under `Context`, same pattern as validation rule parameter names.
224
+ * example:
225
+ * reading_date
226
+ */
227
+ name: string; // ^[a-z][a-z0-9_]{0,63}$
228
+ value_type: ExternalValueType;
229
+ }
197
230
  }
198
231
  }
199
232
  declare namespace Paths {
@@ -441,5 +474,6 @@ type ExternalValueType = Components.Schemas.ExternalValueType;
441
474
  type ResolveExternalValueRequest = Components.Schemas.ResolveExternalValueRequest;
442
475
  type ResolveExternalValueResponse = Components.Schemas.ResolveExternalValueResponse;
443
476
  type TranslatedString = Components.Schemas.TranslatedString;
477
+ type ValueContextRequirement = Components.Schemas.ValueContextRequirement;
444
478
 
445
- export { type Client as C, type EntityContextRequirement 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 ContextRequirement as c, type ExternalValueError as d, type ExternalValueErrorCode as e, type ExternalValueHookList as f, type ExternalValueHookSummary as g, type ExternalValueResultSummary as h, type ExternalValueType as i, type ResolveExternalValueResponse as j };
479
+ export { type Client as C, type EntityContextRequirement as E, type OperationMethods as O, Paths as P, type ResolveExternalValueRequest as R, type TranslatedString as T, type ValueContextRequirement as V, Components as a, type PathsDictionary as b, type ContextRequirement as c, type ExternalValueError as d, type ExternalValueErrorCode as e, type ExternalValueHookList as f, type ExternalValueHookSummary as g, type ExternalValueResultSummary as h, type ExternalValueType as i, type ResolveExternalValueResponse as j };
@@ -14,13 +14,15 @@ declare namespace Components {
14
14
  }
15
15
  namespace Schemas {
16
16
  /**
17
- * Something a hook needs the consumer to supply in `context`, discriminated by `type`.
18
- * Today only `entity`; more types will follow. Consumers ignore types they do not know.
17
+ * Something a hook needs the consumer to supply in `context`, discriminated by `type`:
18
+ * bound entities (`entity`) or an optional scalar input (`value`). More types may follow;
19
+ * consumers ignore types they do not know.
19
20
  *
20
21
  */
21
22
  export type ContextRequirement = /**
22
- * Something a hook needs the consumer to supply in `context`, discriminated by `type`.
23
- * Today only `entity`; more types will follow. Consumers ignore types they do not know.
23
+ * Something a hook needs the consumer to supply in `context`, discriminated by `type`:
24
+ * bound entities (`entity`) or an optional scalar input (`value`). More types may follow;
25
+ * consumers ignore types they do not know.
24
26
  *
25
27
  */
26
28
  /**
@@ -29,7 +31,16 @@ declare namespace Components {
29
31
  * `{ type: entity, schema: contract }`.
30
32
  *
31
33
  */
32
- EntityContextRequirement;
34
+ EntityContextRequirement | /**
35
+ * An optional scalar input. When the consumer has a value it supplies it under
36
+ * `Context.<name>` (dates as ISO 8601 strings, `YYYY-MM-DD` or a date-time); otherwise the
37
+ * key is absent, so the hook template must provide a fallback, e.g.
38
+ * `{{ Context.reading_date | default: "now" | date: "%Y-%m-%d" }}` declares
39
+ * `{ type: value, name: reading_date, value_type: date }`. `name` is unique among the hook's
40
+ * `value` requirements and never equals the `schema` of one of its `entity` requirements.
41
+ *
42
+ */
43
+ ValueContextRequirement;
33
44
  /**
34
45
  * The consumer supplies the bound entities of `schema` under `Context.<schema>`, e.g. a hook
35
46
  * interpolating `{{ Context.contract[0].external_id }}` declares
@@ -83,13 +94,15 @@ declare namespace Components {
83
94
  /**
84
95
  * What the hook needs the consumer to supply in `context`, as declared in the hook
85
96
  * config. Omitted when the hook declares none. A rule builder must require these
86
- * contexts on any rule that uses the hook, so the caller passes them in `context`.
87
- * More requirement types will follow; consumers ignore types they do not know.
97
+ * contexts (and offer these value inputs) on any rule that uses the hook, so the
98
+ * caller passes them in `context`. More requirement types may follow; consumers
99
+ * ignore types they do not know.
88
100
  *
89
101
  */
90
102
  contexts?: /**
91
- * Something a hook needs the consumer to supply in `context`, discriminated by `type`.
92
- * Today only `entity`; more types will follow. Consumers ignore types they do not know.
103
+ * Something a hook needs the consumer to supply in `context`, discriminated by `type`:
104
+ * bound entities (`entity`) or an optional scalar input (`value`). More types may follow;
105
+ * consumers ignore types they do not know.
93
106
  *
94
107
  */
95
108
  ContextRequirement[];
@@ -126,8 +139,9 @@ declare namespace Components {
126
139
  *
127
140
  * One entry per context requirement the consumer bound (see
128
141
  * `ExternalValueHookSummary.contexts`): for an `entity` requirement, the bound
129
- * entities of that schema under its schema slug. This API gives no name special
130
- * treatment.
142
+ * entities of that schema under its schema slug; for a `value` requirement, the
143
+ * bound scalar under its `name` (e.g. `"reading_date": "2026-03-01"`), omitted when
144
+ * the consumer has no value. This API gives no name special treatment.
131
145
  *
132
146
  */
133
147
  context: {
@@ -194,6 +208,25 @@ declare namespace Components {
194
208
  */
195
209
  en?: string | null;
196
210
  }
211
+ /**
212
+ * An optional scalar input. When the consumer has a value it supplies it under
213
+ * `Context.<name>` (dates as ISO 8601 strings, `YYYY-MM-DD` or a date-time); otherwise the
214
+ * key is absent, so the hook template must provide a fallback, e.g.
215
+ * `{{ Context.reading_date | default: "now" | date: "%Y-%m-%d" }}` declares
216
+ * `{ type: value, name: reading_date, value_type: date }`. `name` is unique among the hook's
217
+ * `value` requirements and never equals the `schema` of one of its `entity` requirements.
218
+ *
219
+ */
220
+ export interface ValueContextRequirement {
221
+ type: "value";
222
+ /**
223
+ * Key under `Context`, same pattern as validation rule parameter names.
224
+ * example:
225
+ * reading_date
226
+ */
227
+ name: string; // ^[a-z][a-z0-9_]{0,63}$
228
+ value_type: ExternalValueType;
229
+ }
197
230
  }
198
231
  }
199
232
  declare namespace Paths {
@@ -441,5 +474,6 @@ type ExternalValueType = Components.Schemas.ExternalValueType;
441
474
  type ResolveExternalValueRequest = Components.Schemas.ResolveExternalValueRequest;
442
475
  type ResolveExternalValueResponse = Components.Schemas.ResolveExternalValueResponse;
443
476
  type TranslatedString = Components.Schemas.TranslatedString;
477
+ type ValueContextRequirement = Components.Schemas.ValueContextRequirement;
444
478
 
445
- export { type Client as C, type EntityContextRequirement 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 ContextRequirement as c, type ExternalValueError as d, type ExternalValueErrorCode as e, type ExternalValueHookList as f, type ExternalValueHookSummary as g, type ExternalValueResultSummary as h, type ExternalValueType as i, type ResolveExternalValueResponse as j };
479
+ export { type Client as C, type EntityContextRequirement as E, type OperationMethods as O, Paths as P, type ResolveExternalValueRequest as R, type TranslatedString as T, type ValueContextRequirement as V, Components as a, type PathsDictionary as b, type ContextRequirement as c, type ExternalValueError as d, type ExternalValueErrorCode as e, type ExternalValueHookList as f, type ExternalValueHookSummary as g, type ExternalValueResultSummary as h, type ExternalValueType as i, type ResolveExternalValueResponse as j };
package/dist/index.cjs CHANGED
@@ -170,7 +170,7 @@ var _chunkWOUASZJWcjs = require('./chunk-WOUASZJW.cjs');
170
170
 
171
171
 
172
172
 
173
- var _chunkH65UWQLJcjs = require('./chunk-H65UWQLJ.cjs');
173
+ var _chunkRZJMF6WEcjs = require('./chunk-RZJMF6WE.cjs');
174
174
 
175
175
 
176
176
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -244,7 +244,7 @@ var resolveClient = (params) => {
244
244
  }
245
245
  if (!entry.instance) {
246
246
  const definition = entry.loader();
247
- entry.instance = _chunkH65UWQLJcjs.createApiClient.call(void 0, {
247
+ entry.instance = _chunkRZJMF6WEcjs.createApiClient.call(void 0, {
248
248
  definition,
249
249
  token: state.token,
250
250
  headers: state.globalHeaders,
@@ -277,7 +277,7 @@ var resetAllClients = (registry) => {
277
277
  };
278
278
 
279
279
  // src/apis/_registry.ts
280
- var expandDef = (mod) => _chunkH65UWQLJcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
280
+ var expandDef = (mod) => _chunkRZJMF6WEcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
281
281
  var registerBuiltinApis = (registry) => {
282
282
  registerApi({
283
283
  registry,
@@ -640,9 +640,9 @@ var createSDK = () => {
640
640
  const available = [...registry.keys()].join(", ");
641
641
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
642
642
  }
643
- return _chunkH65UWQLJcjs.createApiHandle.call(void 0, {
643
+ return _chunkRZJMF6WEcjs.createApiHandle.call(void 0, {
644
644
  resolveClient: () => resolveClient({ registry, name, state }),
645
- createClient: () => _chunkH65UWQLJcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
645
+ createClient: () => _chunkRZJMF6WEcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
646
646
  apiName: name
647
647
  });
648
648
  };
@@ -690,9 +690,9 @@ var createSDK = () => {
690
690
  return interceptorUse;
691
691
  }
692
692
  case "help":
693
- return (apiName) => _chunkH65UWQLJcjs.help.call(void 0, apiName);
693
+ return (apiName) => _chunkRZJMF6WEcjs.help.call(void 0, apiName);
694
694
  case "openapi":
695
- return (apiName) => _chunkH65UWQLJcjs.openapi.call(void 0, apiName);
695
+ return (apiName) => _chunkRZJMF6WEcjs.openapi.call(void 0, apiName);
696
696
  case "then":
697
697
  case "catch":
698
698
  case "finally":
@@ -722,4 +722,4 @@ var epilot = createSDK();
722
722
 
723
723
 
724
724
 
725
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkH65UWQLJcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkH65UWQLJcjs.help; exports.openapi = _chunkH65UWQLJcjs.openapi;
725
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkRZJMF6WEcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkRZJMF6WEcjs.help; exports.openapi = _chunkRZJMF6WEcjs.openapi;