@epilot/sdk 2.15.8 → 2.15.9

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 (121) hide show
  1. package/definitions/pricing.json +81 -2
  2. package/dist/apis/access-token.cjs +6 -6
  3. package/dist/apis/access-token.js +1 -1
  4. package/dist/apis/address-suggestions.cjs +6 -6
  5. package/dist/apis/address-suggestions.js +1 -1
  6. package/dist/apis/address.cjs +6 -6
  7. package/dist/apis/address.js +1 -1
  8. package/dist/apis/ai-agents.cjs +6 -6
  9. package/dist/apis/ai-agents.js +1 -1
  10. package/dist/apis/app.cjs +6 -6
  11. package/dist/apis/app.js +1 -1
  12. package/dist/apis/audit-logs.cjs +6 -6
  13. package/dist/apis/audit-logs.js +1 -1
  14. package/dist/apis/automation.cjs +6 -6
  15. package/dist/apis/automation.js +1 -1
  16. package/dist/apis/billing.cjs +6 -6
  17. package/dist/apis/billing.js +1 -1
  18. package/dist/apis/blueprint-manifest.cjs +6 -6
  19. package/dist/apis/blueprint-manifest.js +1 -1
  20. package/dist/apis/calendar.cjs +6 -6
  21. package/dist/apis/calendar.js +1 -1
  22. package/dist/apis/configuration-hub.cjs +6 -6
  23. package/dist/apis/configuration-hub.js +1 -1
  24. package/dist/apis/consent.cjs +6 -6
  25. package/dist/apis/consent.js +1 -1
  26. package/dist/apis/customer-portal.cjs +6 -6
  27. package/dist/apis/customer-portal.js +1 -1
  28. package/dist/apis/dashboard.cjs +6 -6
  29. package/dist/apis/dashboard.js +1 -1
  30. package/dist/apis/data-governance.cjs +6 -6
  31. package/dist/apis/data-governance.js +1 -1
  32. package/dist/apis/deduplication.cjs +6 -6
  33. package/dist/apis/deduplication.js +1 -1
  34. package/dist/apis/design.cjs +6 -6
  35. package/dist/apis/design.js +1 -1
  36. package/dist/apis/document.cjs +6 -6
  37. package/dist/apis/document.js +1 -1
  38. package/dist/apis/email-settings.cjs +6 -6
  39. package/dist/apis/email-settings.js +1 -1
  40. package/dist/apis/email-template.cjs +6 -6
  41. package/dist/apis/email-template.js +1 -1
  42. package/dist/apis/entity-mapping.cjs +6 -6
  43. package/dist/apis/entity-mapping.js +1 -1
  44. package/dist/apis/entity.cjs +6 -6
  45. package/dist/apis/entity.js +1 -1
  46. package/dist/apis/environments.cjs +6 -6
  47. package/dist/apis/environments.js +1 -1
  48. package/dist/apis/event-catalog.cjs +6 -6
  49. package/dist/apis/event-catalog.js +1 -1
  50. package/dist/apis/file.cjs +6 -6
  51. package/dist/apis/file.js +1 -1
  52. package/dist/apis/iban.cjs +6 -6
  53. package/dist/apis/iban.js +1 -1
  54. package/dist/apis/integration-toolkit.cjs +6 -6
  55. package/dist/apis/integration-toolkit.js +1 -1
  56. package/dist/apis/journey.cjs +6 -6
  57. package/dist/apis/journey.js +1 -1
  58. package/dist/apis/kanban.cjs +6 -6
  59. package/dist/apis/kanban.js +1 -1
  60. package/dist/apis/message.cjs +6 -6
  61. package/dist/apis/message.js +1 -1
  62. package/dist/apis/metering.cjs +6 -6
  63. package/dist/apis/metering.js +1 -1
  64. package/dist/apis/notes.cjs +6 -6
  65. package/dist/apis/notes.js +1 -1
  66. package/dist/apis/notification.cjs +6 -6
  67. package/dist/apis/notification.js +1 -1
  68. package/dist/apis/organization.cjs +6 -6
  69. package/dist/apis/organization.js +1 -1
  70. package/dist/apis/partner-directory.cjs +6 -6
  71. package/dist/apis/partner-directory.js +1 -1
  72. package/dist/apis/permissions.cjs +6 -6
  73. package/dist/apis/permissions.js +1 -1
  74. package/dist/apis/pricing-tier.cjs +6 -6
  75. package/dist/apis/pricing-tier.js +1 -1
  76. package/dist/apis/pricing.cjs +6 -6
  77. package/dist/apis/pricing.d.cts +2 -2
  78. package/dist/apis/pricing.d.ts +2 -2
  79. package/dist/apis/pricing.js +1 -1
  80. package/dist/apis/purpose.cjs +6 -6
  81. package/dist/apis/purpose.js +1 -1
  82. package/dist/apis/query.cjs +6 -6
  83. package/dist/apis/query.js +1 -1
  84. package/dist/apis/sandbox.cjs +6 -6
  85. package/dist/apis/sandbox.js +1 -1
  86. package/dist/apis/sharing.cjs +6 -6
  87. package/dist/apis/sharing.js +1 -1
  88. package/dist/apis/snapshot.cjs +6 -6
  89. package/dist/apis/snapshot.js +1 -1
  90. package/dist/apis/submission.cjs +6 -6
  91. package/dist/apis/submission.js +1 -1
  92. package/dist/apis/target.cjs +6 -6
  93. package/dist/apis/target.js +1 -1
  94. package/dist/apis/targeting.cjs +6 -6
  95. package/dist/apis/targeting.js +1 -1
  96. package/dist/apis/template-variables.cjs +6 -6
  97. package/dist/apis/template-variables.js +1 -1
  98. package/dist/apis/user.cjs +6 -6
  99. package/dist/apis/user.js +1 -1
  100. package/dist/apis/validation-rules.cjs +6 -6
  101. package/dist/apis/validation-rules.js +1 -1
  102. package/dist/apis/webhooks.cjs +6 -6
  103. package/dist/apis/webhooks.js +1 -1
  104. package/dist/apis/workflow-definition.cjs +6 -6
  105. package/dist/apis/workflow-definition.js +1 -1
  106. package/dist/apis/workflow.cjs +6 -6
  107. package/dist/apis/workflow.js +1 -1
  108. package/dist/{chunk-USC6N3WG.cjs → chunk-662T6RB4.cjs} +1 -1
  109. package/dist/{chunk-H5DNNZU5.js → chunk-JVJEKJTL.js} +1 -1
  110. package/dist/index.cjs +8 -8
  111. package/dist/index.d.cts +1 -1
  112. package/dist/index.d.ts +1 -1
  113. package/dist/index.js +1 -1
  114. package/dist/pricing-AT4XFAO4.js +7 -0
  115. package/dist/pricing-CLUZWO7P.cjs +7 -0
  116. package/dist/{pricing.d-BgjfwicJ.d.cts → pricing.d-C2Jgx_-V.d.cts} +120 -2
  117. package/dist/{pricing.d-BgjfwicJ.d.ts → pricing.d-C2Jgx_-V.d.ts} +120 -2
  118. package/docs/pricing.md +53 -0
  119. package/package.json +1 -1
  120. package/dist/pricing-CXWAKLA6.js +0 -7
  121. package/dist/pricing-L7VUML4H.cjs +0 -7
@@ -4111,6 +4111,84 @@ declare namespace Components {
4111
4111
  export interface ComputedPriceComponents {
4112
4112
  [name: string]: /* The computed price */ ComputedBasePrice;
4113
4113
  }
4114
+ /**
4115
+ * An error from a conditional-pricing operation, carrying a machine-readable `code`
4116
+ * from the conditional-pricing vocabulary plus any structured data about the failure,
4117
+ * so a client can branch on the kind of failure rather than parse the message.
4118
+ * Referenced only by the operations that emit these codes; every other operation
4119
+ * keeps the plain `Error` shape.
4120
+ *
4121
+ */
4122
+ export interface ConditionalPricingError {
4123
+ /**
4124
+ * Error message
4125
+ */
4126
+ message: string;
4127
+ /**
4128
+ * The HTTP status code
4129
+ */
4130
+ status?: number;
4131
+ /**
4132
+ * The cause of the error (visible for bad requests - http 400)
4133
+ */
4134
+ cause?: string;
4135
+ /**
4136
+ * The error message. Carries the same string as `message`, which the shared `Error`
4137
+ * schema requires — `error` is the field responses have always used, and every caller
4138
+ * to date reads. Declared here rather than on the shared `Error` because a request
4139
+ * validation failure puts a list of validation errors in this field instead of a
4140
+ * string, and those responses reference `Error` directly.
4141
+ *
4142
+ */
4143
+ error?: string;
4144
+ code?: /**
4145
+ * Machine-readable failure mode of a conditional-pricing operation, allowing clients
4146
+ * to branch on the kind of failure instead of parsing the error message.
4147
+ *
4148
+ * - `NOT_FOUND` (404): the addressed entity, variant or version does not exist
4149
+ * - `AMBIGUOUS_RESOLUTION` (409): several variants match the given context while a single result was requested
4150
+ * - `TUPLE_CONFLICT` (409): the condition tuple is already claimed by another variant
4151
+ * - `VERSION_CONFLICT` (409): a version already exists at the given `valid_from` on that variant
4152
+ * - `SUPERSEDED_VERSION` (409): the addressed version has been superseded
4153
+ * - `CONDITION_UNDEFINED` (400): the context names a condition the entity's schema does not define
4154
+ * - `OPERATOR_UNSUPPORTED` (400): the requested operator is not applicable to the condition's type
4155
+ * - `CONTEXT_FORMAT_INVALID` (400): a context value is malformed for its condition type
4156
+ * - `TOO_MANY_MATCHES` (400): a multi-match resolve exceeded its result cap
4157
+ * - `WRITE_CONFLICT` (409): transient write contention, retryable unlike `TUPLE_CONFLICT`
4158
+ *
4159
+ * Each code is emitted with the HTTP status shown above, and only with that status.
4160
+ *
4161
+ */
4162
+ ConditionalPricingErrorCode;
4163
+ /**
4164
+ * Structured data about the failure, shaped by the accompanying `code`
4165
+ * (e.g. the candidate variants of an `ambiguous-resolution`). Only present
4166
+ * when the failure has structured data to report, and never without a `code`.
4167
+ *
4168
+ */
4169
+ details?: {
4170
+ [name: string]: any;
4171
+ };
4172
+ }
4173
+ /**
4174
+ * Machine-readable failure mode of a conditional-pricing operation, allowing clients
4175
+ * to branch on the kind of failure instead of parsing the error message.
4176
+ *
4177
+ * - `NOT_FOUND` (404): the addressed entity, variant or version does not exist
4178
+ * - `AMBIGUOUS_RESOLUTION` (409): several variants match the given context while a single result was requested
4179
+ * - `TUPLE_CONFLICT` (409): the condition tuple is already claimed by another variant
4180
+ * - `VERSION_CONFLICT` (409): a version already exists at the given `valid_from` on that variant
4181
+ * - `SUPERSEDED_VERSION` (409): the addressed version has been superseded
4182
+ * - `CONDITION_UNDEFINED` (400): the context names a condition the entity's schema does not define
4183
+ * - `OPERATOR_UNSUPPORTED` (400): the requested operator is not applicable to the condition's type
4184
+ * - `CONTEXT_FORMAT_INVALID` (400): a context value is malformed for its condition type
4185
+ * - `TOO_MANY_MATCHES` (400): a multi-match resolve exceeded its result cap
4186
+ * - `WRITE_CONFLICT` (409): transient write contention, retryable unlike `TUPLE_CONFLICT`
4187
+ *
4188
+ * Each code is emitted with the HTTP status shown above, and only with that status.
4189
+ *
4190
+ */
4191
+ export type ConditionalPricingErrorCode = "NOT_FOUND" | "AMBIGUOUS_RESOLUTION" | "TUPLE_CONFLICT" | "VERSION_CONFLICT" | "SUPERSEDED_VERSION" | "CONDITION_UNDEFINED" | "OPERATOR_UNSUPPORTED" | "CONTEXT_FORMAT_INVALID" | "TOO_MANY_MATCHES" | "WRITE_CONFLICT";
4114
4192
  export type ConsumptionTypeGetAg = "household" | "heating_pump" | "night_storage_heating" | "night_storage_heating_common_meter";
4115
4193
  /**
4116
4194
  * The coupon entity
@@ -9777,13 +9855,50 @@ declare namespace Components {
9777
9855
  * "_updated_at": "2021-02-09T12:41:43.662Z"
9778
9856
  * }
9779
9857
  */
9780
- Tax;
9858
+ Tax | /**
9859
+ * A minimal, ad-hoc tax rate for line items with no backing tax entity
9860
+ * in the catalog (e.g. a fully custom/composite price component built
9861
+ * by a client with no product/price reference to resolve tax from).
9862
+ * Mirrors how PriceItem relates to Price: unlike Tax, this has no
9863
+ * entity identity — it isn't persisted and can't be looked up by _id,
9864
+ * so it can't be shared/reused across price items the way a catalog
9865
+ * Tax can.
9866
+ *
9867
+ * example:
9868
+ * {
9869
+ * "rate": 19,
9870
+ * "type": "VAT",
9871
+ * "description": "Custom 19% VAT"
9872
+ * }
9873
+ */
9874
+ TaxItem;
9781
9875
  }
9782
9876
  export interface TaxBreakdownInfo {
9783
9877
  rate?: number | null;
9784
9878
  type?: "VAT" | "GST" | "Custom";
9785
9879
  _id?: string;
9786
9880
  }
9881
+ /**
9882
+ * A minimal, ad-hoc tax rate for line items with no backing tax entity
9883
+ * in the catalog (e.g. a fully custom/composite price component built
9884
+ * by a client with no product/price reference to resolve tax from).
9885
+ * Mirrors how PriceItem relates to Price: unlike Tax, this has no
9886
+ * entity identity — it isn't persisted and can't be looked up by _id,
9887
+ * so it can't be shared/reused across price items the way a catalog
9888
+ * Tax can.
9889
+ *
9890
+ * example:
9891
+ * {
9892
+ * "rate": 19,
9893
+ * "type": "VAT",
9894
+ * "description": "Custom 19% VAT"
9895
+ * }
9896
+ */
9897
+ export interface TaxItem {
9898
+ type: "VAT" | "GST" | "Custom";
9899
+ rate: number | null;
9900
+ description?: string;
9901
+ }
9787
9902
  export interface TierDetails {
9788
9903
  quantity: number;
9789
9904
  unit_amount: number;
@@ -12034,6 +12149,8 @@ type ComputePriceResult = Components.Schemas.ComputePriceResult;
12034
12149
  type ComputedBasePrice = Components.Schemas.ComputedBasePrice;
12035
12150
  type ComputedPriceBreakdown = Components.Schemas.ComputedPriceBreakdown;
12036
12151
  type ComputedPriceComponents = Components.Schemas.ComputedPriceComponents;
12152
+ type ConditionalPricingError = Components.Schemas.ConditionalPricingError;
12153
+ type ConditionalPricingErrorCode = Components.Schemas.ConditionalPricingErrorCode;
12037
12154
  type ConsumptionTypeGetAg = Components.Schemas.ConsumptionTypeGetAg;
12038
12155
  type Coupon = Components.Schemas.Coupon;
12039
12156
  type CouponItem = Components.Schemas.CouponItem;
@@ -12138,10 +12255,11 @@ type TaxAmount = Components.Schemas.TaxAmount;
12138
12255
  type TaxAmountBreakdown = Components.Schemas.TaxAmountBreakdown;
12139
12256
  type TaxAmountDto = Components.Schemas.TaxAmountDto;
12140
12257
  type TaxBreakdownInfo = Components.Schemas.TaxBreakdownInfo;
12258
+ type TaxItem = Components.Schemas.TaxItem;
12141
12259
  type TierDetails = Components.Schemas.TierDetails;
12142
12260
  type TotalDetails = Components.Schemas.TotalDetails;
12143
12261
  type TypeGetAg = Components.Schemas.TypeGetAg;
12144
12262
  type ValidateAvailabilityFileError = Components.Schemas.ValidateAvailabilityFileError;
12145
12263
  type ValidateAvailabilityFileResult = Components.Schemas.ValidateAvailabilityFileResult;
12146
12264
 
12147
- export { type DynamicTariffMode as $, type AdditionalProviderData as A, type BaseCompositePrice as B, type Client as C, type CheckoutCartResult as D, type CheckoutMode as E, type CompositePrice as F, type CompositePriceItem as G, type CompositePriceItemDto as H, type ComputePriceParams as I, type ComputePriceParamsBase as J, type ComputePriceParamsGas as K, type ComputePriceParamsPower as L, type ComputePriceResult as M, type ComputedBasePrice as N, type OperationMethods as O, Paths as P, type ComputedPriceBreakdown as Q, type ComputedPriceComponents as R, type ConsumptionTypeGetAg as S, type Coupon as T, type CouponItem as U, type CouponWithoutPromoCodes as V, type Currency as W, type CustomContext as X, type Customer as Y, type DiscountAmounts as Z, type DynamicTariffInterval as _, Components as a, type ProductCategory as a$, type EntityId as a0, type EntityItem as a1, type EntityRelation as a2, type Error as a3, type ExternalCatalogConfigurationRequest as a4, type ExternalCatalogCustomRequest as a5, type ExternalCatalogItem as a6, type ExternalCatalogJourneyRequest as a7, type ExternalCatalogPortalRequest as a8, type ExternalCatalogRequest as a9, type OrderPayload as aA, type OrderRelation as aB, type OrderSource as aC, type OrderStatus as aD, type PaymentMethod as aE, type PortalContext as aF, type PowerMarketAreaDetails as aG, type PowerMeterType as aH, type Price as aI, type PriceAmounts as aJ, type PriceComponentRelation as aK, type PriceConditions as aL, type PriceDynamicTariff as aM, type PriceGetAg as aN, type PriceInputMapping as aO, type PriceInputMappings as aP, type PriceItem as aQ, type PriceItemDto as aR, type PriceItemDtoUnion as aS, type PriceItems as aT, type PriceItemsDto as aU, type PriceTier as aV, type PriceTierDisplayMode as aW, type PricingDetails as aX, type PricingDetailsResponse as aY, type PricingModel as aZ, type Product as a_, type ExternalFeeMapping as aa, type ExternalFeeMappings as ab, type ExternalFeeMetadata as ac, type ExternalLocationMetadata as ad, type ExternalPriceMetadata as ae, type File as af, type GasConcessionType as ag, type GasMarketAreaDetails as ah, type HistoricMarketPriceRecord as ai, type HistoricMarketPricesResult as aj, type HydratedCompositePrice as ak, type IntegrationAuthCredentials as al, type IntegrationCredentialsResult as am, type IntegrationId as an, type JourneyContext as ao, type MarketParticipant as ap, type MarkupPricingModel as aq, type MetaData as ar, type NonHydratedCompositePrice as as, type OAuthCredentials as at, type OAuthIntegration as au, type Offer as av, type OfferHighlightConfig as aw, type Opportunity as ax, type OpportunitySource as ay, type Order as az, type PathsDictionary as b, type ProductRecommendation as b0, type ProductRecommendationResponse as b1, type ProductRecommendationSearch as b2, type PromoCode as b3, type PromoCodeValidationResponse as b4, type Provider as b5, type RecurrenceAmount as b6, type RecurrenceAmountDto as b7, type RecurrenceAmountWithTax as b8, type RedeemedPromo as b9, type SalesTax as ba, type SaveIntegrationCredentialsParams as bb, type SearchExternalCatalogParams as bc, type SearchExternalCatalogRecommendationsResult as bd, type SearchExternalCatalogResult as be, type SearchProvidersParams as bf, type SearchProvidersResult as bg, type SearchStreetsParams as bh, type SearchStreetsResult as bi, type SignatureMeta as bj, type SpotMarketBiddingZone as bk, type SpotMarketDataFrequency as bl, type SpotMarketType as bm, type Street as bn, type TariffTypeGetAg as bo, type Tax as bp, type TaxAmount as bq, type TaxAmountBreakdown as br, type TaxAmountDto as bs, type TaxBreakdownInfo as bt, type TierDetails as bu, type TotalDetails as bv, type TypeGetAg as bw, type ValidateAvailabilityFileError as bx, type ValidateAvailabilityFileResult as by, type Address as c, type Amounts as d, type AvailabilityCheckParams as e, type AvailabilityFilters as f, type AvailabilityLocation as g, type AvailabilityResult as h, type AverageMarketPriceRecord as i, type AverageMarketPriceResult as j, type BaseCouponCommon as k, type BaseMarketPriceRecord as l, type BasePriceItem as m, type BasePriceItemCommon as n, type BasePriceItemDto as o, type BasicAuthCredentials as p, type BasicAuthIntegration as q, type BillingPeriod as r, type CartDto as s, type CashbackAmount as t, type CashbackAmounts as u, type CashbackPeriod as v, type CatalogFieldsParam as w, type CatalogSearch as x, type CatalogSearchResult as y, type CheckoutCart as z };
12265
+ export { type DiscountAmounts as $, type AdditionalProviderData as A, type BaseCompositePrice as B, type Client as C, type CheckoutCartResult as D, type CheckoutMode as E, type CompositePrice as F, type CompositePriceItem as G, type CompositePriceItemDto as H, type ComputePriceParams as I, type ComputePriceParamsBase as J, type ComputePriceParamsGas as K, type ComputePriceParamsPower as L, type ComputePriceResult as M, type ComputedBasePrice as N, type OperationMethods as O, Paths as P, type ComputedPriceBreakdown as Q, type ComputedPriceComponents as R, type ConditionalPricingError as S, type ConditionalPricingErrorCode as T, type ConsumptionTypeGetAg as U, type Coupon as V, type CouponItem as W, type CouponWithoutPromoCodes as X, type Currency as Y, type CustomContext as Z, type Customer as _, Components as a, type PricingModel as a$, type DynamicTariffInterval as a0, type DynamicTariffMode as a1, type EntityId as a2, type EntityItem as a3, type EntityRelation as a4, type Error as a5, type ExternalCatalogConfigurationRequest as a6, type ExternalCatalogCustomRequest as a7, type ExternalCatalogItem as a8, type ExternalCatalogJourneyRequest as a9, type OpportunitySource as aA, type Order as aB, type OrderPayload as aC, type OrderRelation as aD, type OrderSource as aE, type OrderStatus as aF, type PaymentMethod as aG, type PortalContext as aH, type PowerMarketAreaDetails as aI, type PowerMeterType as aJ, type Price as aK, type PriceAmounts as aL, type PriceComponentRelation as aM, type PriceConditions as aN, type PriceDynamicTariff as aO, type PriceGetAg as aP, type PriceInputMapping as aQ, type PriceInputMappings as aR, type PriceItem as aS, type PriceItemDto as aT, type PriceItemDtoUnion as aU, type PriceItems as aV, type PriceItemsDto as aW, type PriceTier as aX, type PriceTierDisplayMode as aY, type PricingDetails as aZ, type PricingDetailsResponse as a_, type ExternalCatalogPortalRequest as aa, type ExternalCatalogRequest as ab, type ExternalFeeMapping as ac, type ExternalFeeMappings as ad, type ExternalFeeMetadata as ae, type ExternalLocationMetadata as af, type ExternalPriceMetadata as ag, type File as ah, type GasConcessionType as ai, type GasMarketAreaDetails as aj, type HistoricMarketPriceRecord as ak, type HistoricMarketPricesResult as al, type HydratedCompositePrice as am, type IntegrationAuthCredentials as an, type IntegrationCredentialsResult as ao, type IntegrationId as ap, type JourneyContext as aq, type MarketParticipant as ar, type MarkupPricingModel as as, type MetaData as at, type NonHydratedCompositePrice as au, type OAuthCredentials as av, type OAuthIntegration as aw, type Offer as ax, type OfferHighlightConfig as ay, type Opportunity as az, type PathsDictionary as b, type Product as b0, type ProductCategory as b1, type ProductRecommendation as b2, type ProductRecommendationResponse as b3, type ProductRecommendationSearch as b4, type PromoCode as b5, type PromoCodeValidationResponse as b6, type Provider as b7, type RecurrenceAmount as b8, type RecurrenceAmountDto as b9, type ValidateAvailabilityFileError as bA, type ValidateAvailabilityFileResult as bB, type RecurrenceAmountWithTax as ba, type RedeemedPromo as bb, type SalesTax as bc, type SaveIntegrationCredentialsParams as bd, type SearchExternalCatalogParams as be, type SearchExternalCatalogRecommendationsResult as bf, type SearchExternalCatalogResult as bg, type SearchProvidersParams as bh, type SearchProvidersResult as bi, type SearchStreetsParams as bj, type SearchStreetsResult as bk, type SignatureMeta as bl, type SpotMarketBiddingZone as bm, type SpotMarketDataFrequency as bn, type SpotMarketType as bo, type Street as bp, type TariffTypeGetAg as bq, type Tax as br, type TaxAmount as bs, type TaxAmountBreakdown as bt, type TaxAmountDto as bu, type TaxBreakdownInfo as bv, type TaxItem as bw, type TierDetails as bx, type TotalDetails as by, type TypeGetAg as bz, type Address as c, type Amounts as d, type AvailabilityCheckParams as e, type AvailabilityFilters as f, type AvailabilityLocation as g, type AvailabilityResult as h, type AverageMarketPriceRecord as i, type AverageMarketPriceResult as j, type BaseCouponCommon as k, type BaseMarketPriceRecord as l, type BasePriceItem as m, type BasePriceItemCommon as n, type BasePriceItemDto as o, type BasicAuthCredentials as p, type BasicAuthIntegration as q, type BillingPeriod as r, type CartDto as s, type CashbackAmount as t, type CashbackAmounts as u, type CashbackPeriod as v, type CatalogFieldsParam as w, type CatalogSearch as x, type CatalogSearchResult as y, type CheckoutCart as z };
package/docs/pricing.md CHANGED
@@ -66,7 +66,9 @@ const { data } = await pricingClient.$calculatePricingDetails(...)
66
66
 
67
67
  **Schemas**
68
68
  - [`IntegrationId`](#integrationid)
69
+ - [`ConditionalPricingErrorCode`](#conditionalpricingerrorcode)
69
70
  - [`Error`](#error)
71
+ - [`ConditionalPricingError`](#conditionalpricingerror)
70
72
  - [`Product`](#product)
71
73
  - [`Opportunity`](#opportunity)
72
74
  - [`Order`](#order)
@@ -178,6 +180,7 @@ const { data } = await pricingClient.$calculatePricingDetails(...)
178
180
  - [`EntityItem`](#entityitem)
179
181
  - [`EntityRelation`](#entityrelation)
180
182
  - [`Tax`](#tax)
183
+ - [`TaxItem`](#taxitem)
181
184
  - [`TaxBreakdownInfo`](#taxbreakdowninfo)
182
185
  - [`BaseCouponCommon`](#basecouponcommon)
183
186
  - [`CouponWithoutPromoCodes`](#couponwithoutpromocodes)
@@ -1782,6 +1785,18 @@ const { data } = await client.$productRecommendations(
1782
1785
  type IntegrationId = "getag" | "external-catalog"
1783
1786
  ```
1784
1787
 
1788
+ ### `ConditionalPricingErrorCode`
1789
+
1790
+ Machine-readable failure mode of a conditional-pricing operation, allowing clients
1791
+ to branch on the kind of failure instead of parsing the error message.
1792
+
1793
+ - `NOT_FOUND` (404): the addressed entity, variant or version does not exist
1794
+ - `AMBIGUOUS_RESOLUTION` (409): several variants match the given con
1795
+
1796
+ ```ts
1797
+ type ConditionalPricingErrorCode = "NOT_FOUND" | "AMBIGUOUS_RESOLUTION" | "TUPLE_CONFLICT" | "VERSION_CONFLICT" | "SUPERSEDED_VERSION" | "CONDITION_UNDEFINED" | "OPERATOR_UNSUPPORTED" | "CONTEXT_FORMAT_INVALID" | "TOO_MANY_MATCHES" | "WRITE_CONFLICT"
1798
+ ```
1799
+
1785
1800
  ### `Error`
1786
1801
 
1787
1802
  ```ts
@@ -1792,6 +1807,24 @@ type Error = {
1792
1807
  }
1793
1808
  ```
1794
1809
 
1810
+ ### `ConditionalPricingError`
1811
+
1812
+ An error from a conditional-pricing operation, carrying a machine-readable `code`
1813
+ from the conditional-pricing vocabulary plus any structured data about the failure,
1814
+ so a client can branch on the kind of failure rather than parse the message.
1815
+ Referenced only by the operations that emit these codes;
1816
+
1817
+ ```ts
1818
+ type ConditionalPricingError = {
1819
+ message: string
1820
+ status?: number
1821
+ cause?: string
1822
+ error?: string
1823
+ code?: "NOT_FOUND" | "AMBIGUOUS_RESOLUTION" | "TUPLE_CONFLICT" | "VERSION_CONFLICT" | "SUPERSEDED_VERSION" | "CONDITION_UNDEFINED" | "OPERATOR_UNSUPPORTED" | "CONTEXT_FORMAT_INVALID" | "TOO_MANY_MATCHES" | "WRITE_CONFLICT"
1824
+ details?: Record<string, unknown>
1825
+ }
1826
+ ```
1827
+
1795
1828
  ### `Product`
1796
1829
 
1797
1830
  The product entity
@@ -4175,6 +4208,10 @@ type TaxAmountDto = {
4175
4208
  active?: boolean
4176
4209
  region?: string
4177
4210
  region_label?: string
4211
+ } | {
4212
+ type: "VAT" | "GST" | "Custom"
4213
+ rate: number
4214
+ description?: string
4178
4215
  }
4179
4216
  }
4180
4217
  ```
@@ -5363,6 +5400,22 @@ type Tax = {
5363
5400
  }
5364
5401
  ```
5365
5402
 
5403
+ ### `TaxItem`
5404
+
5405
+ A minimal, ad-hoc tax rate for line items with no backing tax entity
5406
+ in the catalog (e.g. a fully custom/composite price component built
5407
+ by a client with no product/price reference to resolve tax from).
5408
+ Mirrors how PriceItem relates to Price: unlike Tax, this has no
5409
+ entity identity — it isn't persis
5410
+
5411
+ ```ts
5412
+ type TaxItem = {
5413
+ type: "VAT" | "GST" | "Custom"
5414
+ rate: number
5415
+ description?: string
5416
+ }
5417
+ ```
5418
+
5366
5419
  ### `TaxBreakdownInfo`
5367
5420
 
5368
5421
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.15.8",
3
+ "version": "2.15.9",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",