@boelabs/billete-sdk 7.0.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -63,7 +63,7 @@ Crea una clave secreta en el dashboard (**Desarrolladores → Claves API**) y gu
63
63
  ```ts
64
64
  import { createBillete } from "@boelabs/billete-sdk";
65
65
 
66
- const billete = createBillete({ apiVersion: "2026-10-20", environment: "test" });
66
+ const billete = createBillete({ apiVersion: "2026-10-21", environment: "test" });
67
67
 
68
68
  const checkout = await billete.checkouts.create({
69
69
  plan: "plan_…",
@@ -91,7 +91,7 @@ solicite expresamente. En carritos, solo ofrece los demás métodos que todos lo
91
91
 
92
92
  ```ts
93
93
  const billete = createBillete({
94
- apiVersion: "2026-10-20",
94
+ apiVersion: "2026-10-21",
95
95
  environment: "production",
96
96
  apiKey: process.env.BILLETE_API_KEY,
97
97
  timeoutMs: 30_000,
@@ -257,7 +257,7 @@ return { token: session.token };
257
257
  // Navegador
258
258
  import { createClient } from "@boelabs/billete-sdk/client";
259
259
 
260
- const billete = createClient({ apiVersion: "2026-10-20", customerSession: token });
260
+ const billete = createClient({ apiVersion: "2026-10-21", customerSession: token });
261
261
 
262
262
  const { data: subscriptions } = await billete.customer.subscriptions();
263
263
  const tokens = await billete.customer.feature("tokens");
package/dist/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as ProductCheckoutCreate, A as CustomerUpdate, At as PublicPortal, B as InvoiceCreate, Bt as apiVersionStage, C as CouponUpdate, Ct as PublicCheckoutItem, D as CustomerMemberCreate, Dt as PublicInvoice, E as CustomerInput, Et as PublicFulfillment, F as FeatureUpdate, Ft as ApiVersionLifecycle, G as PlanCheckoutCreate, H as KEY_PATTERN, Ht as isApiVersion, I as FulfillmentDeliverInput, It as ApiVersionStage, J as PlanFeaturesInput, K as PlanCouponCreate, L as FulfillmentHandoverInput, Lt as LATEST_API_VERSION, M as FeatureCreate, Mt as API_VERSION_HEADER, N as FeatureOperationCommit, Nt as API_VERSION_PATTERN, O as CustomerMemberUpdate, Ot as PublicPaymentLink, P as FeatureOperationCreate, Pt as ApiVersion, Q as PortalSessionCreate, R as FulfillmentInput, Rt as LatestApiVersion, S as CouponCreate, St as PublicCheckout, T as CustomerCreate, Tt as PublicClaimSummary, U as PaymentLinkCreate, Ut as isApiVersionRetired, V as InvoiceLineInput, Vt as currentApiVersion, W as PaymentLinkUpdate, Wt as supportedApiVersions, X as PlanPriceInput, Y as PlanLinkCreate, Z as PlanUpdate, _ as ClientPaymentCode, _t as PaymentMethodField, a as AfterCompletionInput, at as SubscriptionCancel, b as ClientSubscriptionUpdate, bt as PaymentTestScenario, c as ClaimResolve, ct as SubscriptionCreate, d as ClientCheckoutUpdate, dt as WebhookEndpointCreate, et as ProductCouponCreate, f as ClientClaimCreate, ft as WebhookEndpointUpdate, g as ClientLinkCheckout, gt as PaymentInstructions, h as ClientInvoicePay, ht as FulfillmentOption, i as TransportOptions, it as RefundCreate, j as EventSelector, jt as API_VERSIONS, k as CustomerSessionCreate, kt as PublicPaymentState, l as ClaimRespond, lt as SubscriptionUpdate, m as ClientFulfillmentProblem, mt as CustomerSubscriptionChangeResult, n as BilleteErrorCode, nt as ProductLinkCreate, o as CheckoutCreate, ot as SubscriptionChangeCreate, p as ClientCustomerClaimCreate, pt as CustomerSubscription, q as PlanCreate, r as RequestOptions, rt as ProductUpdate, s as CheckoutItemInput, st as SubscriptionChangePreviewInput, t as BilleteError, tt as ProductCreate, u as ClientCheckoutPay, ut as VariantInput, v as ClientSubscriptionCancel, vt as PaymentMethodOption, w as CustomFieldInput, wt as PublicClaim, x as CollectInput, xt as PortalFeatures, y as ClientSubscriptionSeats, yt as PaymentNextAction, z as FulfillmentTrackingInput, zt as apiVersionLifecycle } from "./errors-e_-7ZZmn.js";
2
- import { $ as FulfillmentHandover, $t as PaymentFailureCode, A as Coupon, An as tokenEnvironment, At as Refund, B as Event, Bt as SubscriptionRenewal, C as CheckoutPurpose, Cn as findBank, Ct as PlanSeats, D as ClaimReason, Dn as ENVIRONMENTS, Dt as ProductVariant, E as ClaimOutcome, En as nationalPhone, Et as ProductCategory, F as CustomerFeature, Ft as SubmitLabel, G as Feature, Gt as Weekday, H as FEATURE_TYPES, Ht as SubscriptionTerms, I as CustomerMember, It as Subscription, J as FeatureReset, Jt as API_ERROR_TYPES, K as FeatureOperation, Kt as ReceiptReference, L as CustomerMemberList, Lt as SubscriptionChange, M as CustomField, Mt as RiskLevel, N as Customer, Nt as SUBMIT_LABELS, O as ClaimStatus, On as Environment, Ot as RESET_FREQUENCIES, P as CustomerDetails, Pt as SUBSCRIPTION_STATUSES, Q as FulfillmentChoice, Qt as PAYMENT_FAILURE_CODES, R as CustomerSession, Rt as SubscriptionChangePreview, S as CheckoutItem, Sn as VENEZUELAN_BANKS, St as PlanPrice, T as ClaimMessage, Tn as isMobilePhone, Tt as Product, U as FULFILLMENT_METHODS, Ut as USAGE_FEATURE_TYPES, V as ExchangeRate, Vt as SubscriptionStatus, W as FULFILLMENT_STATUSES, Wt as WebhookEndpoint, X as FeatureUsageResult, Xt as ApiErrorEnvelope, Y as FeatureType, Yt as ApiErrorBody, Z as Fulfillment, Zt as ApiErrorType, _ as CLAIM_STATUSES, _n as Metadata, _t as PaymentSettlement, a as WEBHOOK_TEST_EVENT, an as BILLING_MONTHS, at as Invoice, b as CarrierOffice, bn as TaxBehavior, bt as Plan, c as AfterCompletion, cn as CURRENCIES, ct as LineItem, d as CANCELLATION_FEEDBACK, dn as GracePeriodDays, dt as PRODUCT_CATEGORIES, en as API_ERROR_CODES, et as FulfillmentMethod, f as CARRIERS, fn as List, ft as Payment, g as CLAIM_REASONS, gn as MOBILE_PREFIXES, gt as PaymentLink, h as CLAIM_OUTCOMES, hn as MAX_QUANTITY, ht as PaymentFeeDetails, i as SubscribableEventType, in as AddressInput, it as INVOICE_STATUSES, j as CurrencyAvailability, jn as tokenPrefix, jt as ResetFrequency, k as CollectSettings, kn as TokenKind, kt as RISK_LEVELS, l as Balance, ln as Currency, lt as MAX_SEATS, m as CHECKOUT_PURPOSES, mn as ListSort, mt as PaymentFailure, n as EventDataMap, nn as ACCOUNT_NUMBER_LENGTH, nt as FulfillmentTracking, o as WebhookEvent, on as BankCode, ot as InvoiceReason, p as CARRIER_TEST_SCENARIOS, pn as ListQuery, pt as PaymentAttempt, q as FeatureOperationResult, qt as ReceiptSend, r as EventType, rn as Address, rt as INVOICE_REASONS, s as Actor, sn as BillingMonths, st as InvoiceStatus, t as EVENT_TYPES, tn as ApiErrorCode, tt as FulfillmentStatus, u as BalanceAmount, un as GRACE_PERIOD_DAYS, ut as PAYMENT_STATUSES, v as CancellationFeedback, vn as MobilePrefix, vt as PaymentStatus, w as Claim, wn as isLandlinePhone, wt as PortalSession, x as Checkout, xn as Timestamp, xt as PlanFeatureValues, y as Carrier, yn as TAX_BEHAVIORS, yt as Payout, z as Deletion, zt as SubscriptionChangeResult } from "./events-CWajoKsy.js";
1
+ import { $ as ProductCheckoutCreate, A as CustomerUpdate, At as PublicPortal, B as InvoiceCreate, Bt as apiVersionStage, C as CouponUpdate, Ct as PublicCheckoutItem, D as CustomerMemberCreate, Dt as PublicInvoice, E as CustomerInput, Et as PublicFulfillment, F as FeatureUpdate, Ft as ApiVersionLifecycle, G as PlanCheckoutCreate, H as KEY_PATTERN, Ht as isApiVersion, I as FulfillmentDeliverInput, It as ApiVersionStage, J as PlanFeaturesInput, K as PlanCouponCreate, L as FulfillmentHandoverInput, Lt as LATEST_API_VERSION, M as FeatureCreate, Mt as API_VERSION_HEADER, N as FeatureOperationCommit, Nt as API_VERSION_PATTERN, O as CustomerMemberUpdate, Ot as PublicPaymentLink, P as FeatureOperationCreate, Pt as ApiVersion, Q as PortalSessionCreate, R as FulfillmentInput, Rt as LatestApiVersion, S as CouponCreate, St as PublicCheckout, T as CustomerCreate, Tt as PublicClaimSummary, U as PaymentLinkCreate, Ut as isApiVersionRetired, V as InvoiceLineInput, Vt as currentApiVersion, W as PaymentLinkUpdate, Wt as supportedApiVersions, X as PlanPriceInput, Y as PlanLinkCreate, Z as PlanUpdate, _ as ClientPaymentCode, _t as PaymentMethodField, a as AfterCompletionInput, at as SubscriptionCancel, b as ClientSubscriptionUpdate, bt as PaymentTestScenario, c as ClaimResolve, ct as SubscriptionCreate, d as ClientCheckoutUpdate, dt as WebhookEndpointCreate, et as ProductCouponCreate, f as ClientClaimCreate, ft as WebhookEndpointUpdate, g as ClientLinkCheckout, gt as PaymentInstructions, h as ClientInvoicePay, ht as FulfillmentOption, i as TransportOptions, it as RefundCreate, j as EventSelector, jt as API_VERSIONS, k as CustomerSessionCreate, kt as PublicPaymentState, l as ClaimRespond, lt as SubscriptionUpdate, m as ClientFulfillmentProblem, mt as CustomerSubscriptionChangeResult, n as BilleteErrorCode, nt as ProductLinkCreate, o as CheckoutCreate, ot as SubscriptionChangeCreate, p as ClientCustomerClaimCreate, pt as CustomerSubscription, q as PlanCreate, r as RequestOptions, rt as ProductUpdate, s as CheckoutItemInput, st as SubscriptionChangePreviewInput, t as BilleteError, tt as ProductCreate, u as ClientCheckoutPay, ut as VariantInput, v as ClientSubscriptionCancel, vt as PaymentMethodOption, w as CustomFieldInput, wt as PublicClaim, x as CollectInput, xt as PortalFeatures, y as ClientSubscriptionSeats, yt as PaymentNextAction, z as FulfillmentTrackingInput, zt as apiVersionLifecycle } from "./errors-DERevGF5.js";
2
+ import { $ as FulfillmentHandover, $t as PaymentFailureCode, A as Coupon, An as Environment, At as Refund, B as Event, Bt as SubscriptionRenewal, C as CheckoutPurpose, Cn as Timestamp, Ct as PlanSeats, D as ClaimReason, Dn as isMobilePhone, Dt as ProductVariant, E as ClaimOutcome, En as isLandlinePhone, Et as ProductCategory, F as CustomerFeature, Ft as SubmitLabel, G as Feature, Gt as Weekday, H as FEATURE_TYPES, Ht as SubscriptionTerms, I as CustomerMember, It as Subscription, J as FeatureReset, Jt as API_ERROR_TYPES, K as FeatureOperation, Kt as ReceiptReference, L as CustomerMemberList, Lt as SubscriptionChange, M as CustomField, Mn as tokenEnvironment, Mt as RiskLevel, N as Customer, Nn as tokenPrefix, Nt as SUBMIT_LABELS, O as ClaimStatus, On as nationalPhone, Ot as RESET_FREQUENCIES, P as CustomerDetails, Pt as SUBSCRIPTION_STATUSES, Q as FulfillmentChoice, Qt as PAYMENT_FAILURE_CODES, R as CustomerSession, Rt as SubscriptionChangePreview, S as CheckoutItem, Sn as TaxBehavior, St as PlanPrice, T as ClaimMessage, Tn as findBank, Tt as Product, U as FULFILLMENT_METHODS, Ut as USAGE_FEATURE_TYPES, V as ExchangeRate, Vt as SubscriptionStatus, W as FULFILLMENT_STATUSES, Wt as WebhookEndpoint, X as FeatureUsageResult, Xt as ApiErrorEnvelope, Y as FeatureType, Yt as ApiErrorBody, Z as Fulfillment, Zt as ApiErrorType, _ as CLAIM_STATUSES, _n as Metadata, _t as PaymentSettlement, a as WEBHOOK_TEST_EVENT, an as BILLING_MONTHS, at as Invoice, b as CarrierOffice, bn as SuspensionDays, bt as Plan, c as AfterCompletion, cn as CURRENCIES, ct as LineItem, d as CANCELLATION_FEEDBACK, dn as GracePeriodDays, dt as PRODUCT_CATEGORIES, en as API_ERROR_CODES, et as FulfillmentMethod, f as CARRIERS, fn as List, ft as Payment, g as CLAIM_REASONS, gn as MOBILE_PREFIXES, gt as PaymentLink, h as CLAIM_OUTCOMES, hn as MAX_QUANTITY, ht as PaymentFeeDetails, i as SubscribableEventType, in as AddressInput, it as INVOICE_STATUSES, j as CurrencyAvailability, jn as TokenKind, jt as ResetFrequency, k as CollectSettings, kn as ENVIRONMENTS, kt as RISK_LEVELS, l as Balance, ln as Currency, lt as MAX_SEATS, m as CHECKOUT_PURPOSES, mn as ListSort, mt as PaymentFailure, n as EventDataMap, nn as ACCOUNT_NUMBER_LENGTH, nt as FulfillmentTracking, o as WebhookEvent, on as BankCode, ot as InvoiceReason, p as CARRIER_TEST_SCENARIOS, pn as ListQuery, pt as PaymentAttempt, q as FeatureOperationResult, qt as ReceiptSend, r as EventType, rn as Address, rt as INVOICE_REASONS, s as Actor, sn as BillingMonths, st as InvoiceStatus, t as EVENT_TYPES, tn as ApiErrorCode, tt as FulfillmentStatus, u as BalanceAmount, un as GRACE_PERIOD_DAYS, ut as PAYMENT_STATUSES, v as CancellationFeedback, vn as MobilePrefix, vt as PaymentStatus, w as Claim, wn as VENEZUELAN_BANKS, wt as PortalSession, x as Checkout, xn as TAX_BEHAVIORS, xt as PlanFeatureValues, y as Carrier, yn as SUSPENSION_DAYS, yt as Payout, z as Deletion, zt as SubscriptionChangeResult } from "./events-b2qMWZF8.js";
3
3
  //#region src/create-client.d.ts
4
4
  interface ClientOptions extends TransportOptions {
5
5
  /**
@@ -14,7 +14,7 @@ interface ClientOptions extends TransportOptions {
14
14
  * and customer data requires a short-lived customer session minted by your server.
15
15
  *
16
16
  * ```ts
17
- * const billete = createClient({ apiVersion: "2026-10-20", customerSession: token });
17
+ * const billete = createClient({ apiVersion: "2026-10-21", customerSession: token });
18
18
  * const [subscription] = (await billete.customer.subscriptions()).data;
19
19
  * if (subscription?.renewal?.status === "overdue") showBanner(subscription.renewal);
20
20
  * ```
@@ -134,4 +134,4 @@ export declare function createClient(options: ClientOptions): {
134
134
  };
135
135
  type BilleteClient = ReturnType<typeof createClient>;
136
136
  //#endregion
137
- export { type ACCOUNT_NUMBER_LENGTH, type API_ERROR_CODES, type API_ERROR_TYPES, type API_VERSIONS, type API_VERSION_HEADER, type API_VERSION_PATTERN, type Actor, type Address, type AddressInput, type AfterCompletion, type AfterCompletionInput, type ApiErrorBody, type ApiErrorCode, type ApiErrorEnvelope, type ApiErrorType, type ApiVersion, type ApiVersionLifecycle, type ApiVersionStage, type BILLING_MONTHS, type Balance, type BalanceAmount, type BankCode, type BilleteClient, BilleteError, type BilleteErrorCode, type BillingMonths, type CANCELLATION_FEEDBACK, type CARRIERS, type CARRIER_TEST_SCENARIOS, type CHECKOUT_PURPOSES, type CLAIM_OUTCOMES, type CLAIM_REASONS, type CLAIM_STATUSES, type CURRENCIES, type CancellationFeedback, type Carrier, type CarrierOffice, type Checkout, type CheckoutCreate, type CheckoutItem, type CheckoutItemInput, type CheckoutPurpose, type Claim, type ClaimMessage, type ClaimOutcome, type ClaimReason, type ClaimResolve, type ClaimRespond, type ClaimStatus, type ClientCheckoutPay, type ClientCheckoutUpdate, type ClientClaimCreate, type ClientCustomerClaimCreate, type ClientFulfillmentProblem, type ClientInvoicePay, type ClientLinkCheckout, type ClientOptions, type ClientPaymentCode, type ClientSubscriptionCancel, type ClientSubscriptionSeats, type ClientSubscriptionUpdate, type CollectInput, type CollectSettings, type Coupon, type CouponCreate, type CouponUpdate, type Currency, type CurrencyAvailability, type CustomField, type CustomFieldInput, type Customer, type CustomerCreate, type CustomerDetails, type CustomerFeature, type CustomerInput, type CustomerMember, type CustomerMemberCreate, type CustomerMemberList, type CustomerMemberUpdate, type CustomerSession, type CustomerSessionCreate, type CustomerSubscription, type CustomerSubscriptionChangeResult, type CustomerUpdate, type Deletion, type ENVIRONMENTS, type EVENT_TYPES, type Environment, type Event, type EventDataMap, type EventSelector, type EventType, type ExchangeRate, type FEATURE_TYPES, type FULFILLMENT_METHODS, type FULFILLMENT_STATUSES, type Feature, type FeatureCreate, type FeatureOperation, type FeatureOperationCommit, type FeatureOperationCreate, type FeatureOperationResult, type FeatureReset, type FeatureType, type FeatureUpdate, type FeatureUsageResult, type Fulfillment, type FulfillmentChoice, type FulfillmentDeliverInput, type FulfillmentHandover, type FulfillmentHandoverInput, type FulfillmentInput, type FulfillmentMethod, type FulfillmentOption, type FulfillmentStatus, type FulfillmentTracking, type FulfillmentTrackingInput, type GRACE_PERIOD_DAYS, type GracePeriodDays, type INVOICE_REASONS, type INVOICE_STATUSES, type Invoice, type InvoiceCreate, type InvoiceLineInput, type InvoiceReason, type InvoiceStatus, type KEY_PATTERN, type LATEST_API_VERSION, type LatestApiVersion, type LineItem, type List, type ListQuery, type ListSort, type MAX_QUANTITY, type MAX_SEATS, type MOBILE_PREFIXES, type Metadata, type MobilePrefix, type PAYMENT_FAILURE_CODES, type PAYMENT_STATUSES, type PRODUCT_CATEGORIES, type Payment, type PaymentAttempt, type PaymentFailure, type PaymentFailureCode, type PaymentFeeDetails, type PaymentInstructions, type PaymentLink, type PaymentLinkCreate, type PaymentLinkUpdate, type PaymentMethodField, type PaymentMethodOption, type PaymentNextAction, type PaymentSettlement, type PaymentStatus, type PaymentTestScenario, type Payout, type Plan, type PlanCheckoutCreate, type PlanCouponCreate, type PlanCreate, type PlanFeatureValues, type PlanFeaturesInput, type PlanLinkCreate, type PlanPrice, type PlanPriceInput, type PlanSeats, type PlanUpdate, type PortalFeatures, type PortalSession, type PortalSessionCreate, type Product, type ProductCategory, type ProductCheckoutCreate, type ProductCouponCreate, type ProductCreate, type ProductLinkCreate, type ProductUpdate, type ProductVariant, type PublicCheckout, type PublicCheckoutItem, type PublicClaim, type PublicClaimSummary, type PublicFulfillment, type PublicInvoice, type PublicPaymentLink, type PublicPaymentState, type PublicPortal, type RESET_FREQUENCIES, type RISK_LEVELS, type ReceiptReference, type ReceiptSend, type Refund, type RefundCreate, type RequestOptions, type ResetFrequency, type RiskLevel, type SUBMIT_LABELS, type SUBSCRIPTION_STATUSES, type SubmitLabel, type SubscribableEventType, type Subscription, type SubscriptionCancel, type SubscriptionChange, type SubscriptionChangeCreate, type SubscriptionChangePreview, type SubscriptionChangePreviewInput, type SubscriptionChangeResult, type SubscriptionCreate, type SubscriptionRenewal, type SubscriptionStatus, type SubscriptionTerms, type SubscriptionUpdate, type TAX_BEHAVIORS, type TaxBehavior, type Timestamp, type TokenKind, type USAGE_FEATURE_TYPES, type VENEZUELAN_BANKS, type VariantInput, type WEBHOOK_TEST_EVENT, type WebhookEndpoint, type WebhookEndpointCreate, type WebhookEndpointUpdate, type WebhookEvent, type Weekday, type apiVersionLifecycle, type apiVersionStage, type currentApiVersion, type findBank, type isApiVersion, type isApiVersionRetired, type isLandlinePhone, type isMobilePhone, type nationalPhone, type supportedApiVersions, type tokenEnvironment, type tokenPrefix };
137
+ export { type ACCOUNT_NUMBER_LENGTH, type API_ERROR_CODES, type API_ERROR_TYPES, type API_VERSIONS, type API_VERSION_HEADER, type API_VERSION_PATTERN, type Actor, type Address, type AddressInput, type AfterCompletion, type AfterCompletionInput, type ApiErrorBody, type ApiErrorCode, type ApiErrorEnvelope, type ApiErrorType, type ApiVersion, type ApiVersionLifecycle, type ApiVersionStage, type BILLING_MONTHS, type Balance, type BalanceAmount, type BankCode, type BilleteClient, BilleteError, type BilleteErrorCode, type BillingMonths, type CANCELLATION_FEEDBACK, type CARRIERS, type CARRIER_TEST_SCENARIOS, type CHECKOUT_PURPOSES, type CLAIM_OUTCOMES, type CLAIM_REASONS, type CLAIM_STATUSES, type CURRENCIES, type CancellationFeedback, type Carrier, type CarrierOffice, type Checkout, type CheckoutCreate, type CheckoutItem, type CheckoutItemInput, type CheckoutPurpose, type Claim, type ClaimMessage, type ClaimOutcome, type ClaimReason, type ClaimResolve, type ClaimRespond, type ClaimStatus, type ClientCheckoutPay, type ClientCheckoutUpdate, type ClientClaimCreate, type ClientCustomerClaimCreate, type ClientFulfillmentProblem, type ClientInvoicePay, type ClientLinkCheckout, type ClientOptions, type ClientPaymentCode, type ClientSubscriptionCancel, type ClientSubscriptionSeats, type ClientSubscriptionUpdate, type CollectInput, type CollectSettings, type Coupon, type CouponCreate, type CouponUpdate, type Currency, type CurrencyAvailability, type CustomField, type CustomFieldInput, type Customer, type CustomerCreate, type CustomerDetails, type CustomerFeature, type CustomerInput, type CustomerMember, type CustomerMemberCreate, type CustomerMemberList, type CustomerMemberUpdate, type CustomerSession, type CustomerSessionCreate, type CustomerSubscription, type CustomerSubscriptionChangeResult, type CustomerUpdate, type Deletion, type ENVIRONMENTS, type EVENT_TYPES, type Environment, type Event, type EventDataMap, type EventSelector, type EventType, type ExchangeRate, type FEATURE_TYPES, type FULFILLMENT_METHODS, type FULFILLMENT_STATUSES, type Feature, type FeatureCreate, type FeatureOperation, type FeatureOperationCommit, type FeatureOperationCreate, type FeatureOperationResult, type FeatureReset, type FeatureType, type FeatureUpdate, type FeatureUsageResult, type Fulfillment, type FulfillmentChoice, type FulfillmentDeliverInput, type FulfillmentHandover, type FulfillmentHandoverInput, type FulfillmentInput, type FulfillmentMethod, type FulfillmentOption, type FulfillmentStatus, type FulfillmentTracking, type FulfillmentTrackingInput, type GRACE_PERIOD_DAYS, type GracePeriodDays, type INVOICE_REASONS, type INVOICE_STATUSES, type Invoice, type InvoiceCreate, type InvoiceLineInput, type InvoiceReason, type InvoiceStatus, type KEY_PATTERN, type LATEST_API_VERSION, type LatestApiVersion, type LineItem, type List, type ListQuery, type ListSort, type MAX_QUANTITY, type MAX_SEATS, type MOBILE_PREFIXES, type Metadata, type MobilePrefix, type PAYMENT_FAILURE_CODES, type PAYMENT_STATUSES, type PRODUCT_CATEGORIES, type Payment, type PaymentAttempt, type PaymentFailure, type PaymentFailureCode, type PaymentFeeDetails, type PaymentInstructions, type PaymentLink, type PaymentLinkCreate, type PaymentLinkUpdate, type PaymentMethodField, type PaymentMethodOption, type PaymentNextAction, type PaymentSettlement, type PaymentStatus, type PaymentTestScenario, type Payout, type Plan, type PlanCheckoutCreate, type PlanCouponCreate, type PlanCreate, type PlanFeatureValues, type PlanFeaturesInput, type PlanLinkCreate, type PlanPrice, type PlanPriceInput, type PlanSeats, type PlanUpdate, type PortalFeatures, type PortalSession, type PortalSessionCreate, type Product, type ProductCategory, type ProductCheckoutCreate, type ProductCouponCreate, type ProductCreate, type ProductLinkCreate, type ProductUpdate, type ProductVariant, type PublicCheckout, type PublicCheckoutItem, type PublicClaim, type PublicClaimSummary, type PublicFulfillment, type PublicInvoice, type PublicPaymentLink, type PublicPaymentState, type PublicPortal, type RESET_FREQUENCIES, type RISK_LEVELS, type ReceiptReference, type ReceiptSend, type Refund, type RefundCreate, type RequestOptions, type ResetFrequency, type RiskLevel, type SUBMIT_LABELS, type SUBSCRIPTION_STATUSES, type SUSPENSION_DAYS, type SubmitLabel, type SubscribableEventType, type Subscription, type SubscriptionCancel, type SubscriptionChange, type SubscriptionChangeCreate, type SubscriptionChangePreview, type SubscriptionChangePreviewInput, type SubscriptionChangeResult, type SubscriptionCreate, type SubscriptionRenewal, type SubscriptionStatus, type SubscriptionTerms, type SubscriptionUpdate, type SuspensionDays, type TAX_BEHAVIORS, type TaxBehavior, type Timestamp, type TokenKind, type USAGE_FEATURE_TYPES, type VENEZUELAN_BANKS, type VariantInput, type WEBHOOK_TEST_EVENT, type WebhookEndpoint, type WebhookEndpointCreate, type WebhookEndpointUpdate, type WebhookEvent, type Weekday, type apiVersionLifecycle, type apiVersionStage, type currentApiVersion, type findBank, type isApiVersion, type isApiVersionRetired, type isLandlinePhone, type isMobilePhone, type nationalPhone, type supportedApiVersions, type tokenEnvironment, type tokenPrefix };
package/dist/client.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as segment, r as BilleteError, t as createTransport } from "./http-Do9Fl8fk.js";
1
+ import { n as segment, r as BilleteError, t as createTransport } from "./http-CNxkDxq4.js";
2
2
  //#region src/create-client.ts
3
3
  /**
4
4
  * Browser client. It never holds a secret key: checkouts and Cobros are addressed by their
@@ -6,7 +6,7 @@ import { n as segment, r as BilleteError, t as createTransport } from "./http-Do
6
6
  * and customer data requires a short-lived customer session minted by your server.
7
7
  *
8
8
  * ```ts
9
- * const billete = createClient({ apiVersion: "2026-10-20", customerSession: token });
9
+ * const billete = createClient({ apiVersion: "2026-10-21", customerSession: token });
10
10
  * const [subscription] = (await billete.customer.subscriptions()).data;
11
11
  * if (subscription?.renewal?.status === "overdue") showBanner(subscription.renewal);
12
12
  * ```
@@ -1,4 +1,4 @@
1
- import { $t as PaymentFailureCode, At as Refund, C as CheckoutPurpose, Ct as PlanSeats, D as ClaimReason, E as ClaimOutcome, Et as ProductCategory, Ft as SubmitLabel, It as Subscription, J as FeatureReset, Kt as ReceiptReference, M as CustomField, O as ClaimStatus, On as Environment, P as CustomerDetails, S as CheckoutItem, St as PlanPrice, T as ClaimMessage, Yt as ApiErrorBody, Z as Fulfillment, Zt as ApiErrorType, _n as Metadata, b as CarrierOffice, bn as TaxBehavior, c as AfterCompletion, ct as LineItem, dn as GracePeriodDays, et as FulfillmentMethod, i as SubscribableEventType, in as AddressInput, k as CollectSettings, ln as Currency, mt as PaymentFailure, nt as FulfillmentTracking, ot as InvoiceReason, rn as Address, sn as BillingMonths, st as InvoiceStatus, tn as ApiErrorCode, tt as FulfillmentStatus, v as CancellationFeedback, vt as PaymentStatus, xn as Timestamp, y as Carrier } from "./events-CWajoKsy.js";
1
+ import { $t as PaymentFailureCode, An as Environment, At as Refund, C as CheckoutPurpose, Cn as Timestamp, Ct as PlanSeats, D as ClaimReason, E as ClaimOutcome, Et as ProductCategory, Ft as SubmitLabel, It as Subscription, J as FeatureReset, Kt as ReceiptReference, M as CustomField, O as ClaimStatus, P as CustomerDetails, S as CheckoutItem, Sn as TaxBehavior, St as PlanPrice, T as ClaimMessage, Yt as ApiErrorBody, Z as Fulfillment, Zt as ApiErrorType, _n as Metadata, b as CarrierOffice, bn as SuspensionDays, c as AfterCompletion, ct as LineItem, dn as GracePeriodDays, et as FulfillmentMethod, i as SubscribableEventType, in as AddressInput, k as CollectSettings, ln as Currency, mt as PaymentFailure, nt as FulfillmentTracking, ot as InvoiceReason, rn as Address, sn as BillingMonths, st as InvoiceStatus, tn as ApiErrorCode, tt as FulfillmentStatus, v as CancellationFeedback, vt as PaymentStatus, y as Carrier } from "./events-b2qMWZF8.js";
2
2
  //#region ../contracts/src/api-versions.d.ts
3
3
  /**
4
4
  * Billete API versions. Kept free of runtime dependencies: the dashboard, the API, the worker and
@@ -10,7 +10,7 @@ import { $t as PaymentFailureCode, At as Refund, C as CheckoutPurpose, Ct as Pla
10
10
  * that is still supported.
11
11
  */
12
12
  /** Every version ever published, oldest first. Append only: retired versions stay listed. */
13
- declare const API_VERSIONS: readonly ["2026-10-07.beta", "2026-10-08", "2026-10-09", "2026-10-10", "2026-10-16", "2026-10-19", "2026-10-20"];
13
+ declare const API_VERSIONS: readonly ["2026-10-07.beta", "2026-10-08", "2026-10-09", "2026-10-10", "2026-10-16", "2026-10-19", "2026-10-20", "2026-10-21"];
14
14
  type ApiVersion = (typeof API_VERSIONS)[number];
15
15
  type LatestApiVersion = typeof API_VERSIONS extends readonly [...unknown[], infer Last] ? Last : never;
16
16
  /** The version the code speaks: responses are built in its shape. Always the last entry. */
@@ -674,6 +674,11 @@ interface PlanCreate {
674
674
  prices: PlanPriceInput[];
675
675
  trialDays?: number;
676
676
  gracePeriodDays?: GracePeriodDays;
677
+ /**
678
+ * Days the subscription stays suspended after the grace period, payable to reactivate it, before
679
+ * it expires. Not with `fallbackPlanId`: a plan either falls back or suspends.
680
+ */
681
+ suspensionDays?: SuspensionDays;
677
682
  taxBehavior?: TaxBehavior;
678
683
  highlights?: string[];
679
684
  features?: PlanFeaturesInput;
@@ -690,6 +695,11 @@ interface PlanUpdate {
690
695
  prices?: PlanPriceInput[];
691
696
  trialDays?: number;
692
697
  gracePeriodDays?: GracePeriodDays;
698
+ /**
699
+ * Days the subscription stays suspended after the grace period, payable to reactivate it, before
700
+ * it expires. Not with `fallbackPlanId`: a plan either falls back or suspends.
701
+ */
702
+ suspensionDays?: SuspensionDays;
693
703
  taxBehavior?: TaxBehavior;
694
704
  highlights?: string[];
695
705
  /** Replaces the plan feature grants. Takes effect immediately for every subscriber. */
@@ -33,6 +33,12 @@ declare const MAX_QUANTITY = 999;
33
33
  */
34
34
  declare const GRACE_PERIOD_DAYS: readonly [0, 1, 3, 7];
35
35
  type GracePeriodDays = (typeof GRACE_PERIOD_DAYS)[number];
36
+ /**
37
+ * Days a subscription stays suspended once its grace period ends unpaid: without access, its
38
+ * renewal still payable to reactivate it. `0`, the default, is none: it expires instead.
39
+ */
40
+ declare const SUSPENSION_DAYS: readonly [0, 7, 14, 30, 60, 90];
41
+ type SuspensionDays = (typeof SUSPENSION_DAYS)[number];
36
42
  /** `inclusive`: the price already contains the account tax. `exclusive`: tax is added on top. */
37
43
  declare const TAX_BEHAVIORS: readonly ["inclusive", "exclusive"];
38
44
  type TaxBehavior = (typeof TAX_BEHAVIORS)[number];
@@ -442,6 +448,8 @@ declare const API_ERROR_CODES: {
442
448
  readonly subscription_not_canceling: "Esta suscripción no tiene una cancelación programada.";
443
449
  readonly subscription_not_found: "No existe la suscripción.";
444
450
  readonly subscription_renewal_open: "Paga la renovación o programa el cambio para el próximo periodo.";
451
+ readonly subscription_suspended: "La suscripción está suspendida: paga su renovación para reactivarla o cancélala.";
452
+ readonly suspension_with_fallback: "Un plan con suspensión no tiene plan de respaldo: elige uno de los dos.";
445
453
  readonly tax_behavior_mismatch: "Todos los productos deben tratar los impuestos igual.";
446
454
  readonly tax_id_prefix: "El RIF no corresponde al tipo de organización.";
447
455
  readonly too_many_attempts: "Demasiados intentos de pago para este checkout.";
@@ -629,6 +637,11 @@ interface Plan extends Resource<"plan">, Deletion {
629
637
  prices: PlanPrice[];
630
638
  trialDays: number;
631
639
  gracePeriodDays: GracePeriodDays;
640
+ /**
641
+ * Days an unpaid subscription stays `suspended` once the grace period ends: without access, its
642
+ * renewal payable to reactivate it. `0`: it expires (or falls back to `fallbackPlanId`) instead.
643
+ */
644
+ suspensionDays: SuspensionDays;
632
645
  taxBehavior: TaxBehavior;
633
646
  /** Marketing bullet points shown on checkout pages. */
634
647
  highlights: string[];
@@ -732,15 +745,25 @@ interface FeatureOperationResult extends FeatureUsageResult {
732
745
  created: boolean;
733
746
  operation: FeatureOperation | null;
734
747
  }
735
- declare const SUBSCRIPTION_STATUSES: readonly ["trialing", "active", "past_due", "canceled", "expired"];
748
+ declare const SUBSCRIPTION_STATUSES: readonly ["trialing", "active", "past_due",
749
+ /** Unpaid after the grace period: no access, its renewal still payable to reactivate it. */
750
+ "suspended", "canceled", "expired"];
736
751
  type SubscriptionStatus = (typeof SUBSCRIPTION_STATUSES)[number];
737
752
  interface SubscriptionRenewal {
738
- /** `upcoming`: not payable yet. `due`: payable before `dueAt`. `overdue`: in the grace period. */
739
- status: "upcoming" | "due" | "overdue";
753
+ /**
754
+ * `upcoming`: not payable yet. `due`: payable before `dueAt`. `overdue`: in the grace period.
755
+ * `suspended`: access is lost; paying before `suspensionEndsAt` reactivates it.
756
+ */
757
+ status: "upcoming" | "due" | "overdue" | "suspended";
740
758
  opensAt: Timestamp;
741
759
  dueAt: Timestamp;
742
760
  graceEndsAt: Timestamp;
743
- /** Whole days left until access is lost (`dueAt` or, when overdue, `graceEndsAt`). */
761
+ /** When a suspended subscription expires; `null` when its plan does not suspend. */
762
+ suspensionEndsAt: Timestamp | null;
763
+ /**
764
+ * Whole days left until access is lost (`dueAt` or, when overdue, `graceEndsAt`) or, when
765
+ * suspended, until it expires (`suspensionEndsAt`).
766
+ */
744
767
  daysRemaining: number;
745
768
  amount: number;
746
769
  currency: Currency;
@@ -1432,6 +1455,10 @@ interface EventDataMap {
1432
1455
  "subscription.renewed": Subscription;
1433
1456
  /** The period ended unpaid; the customer keeps access until the grace period ends. */
1434
1457
  "subscription.past_due": Subscription;
1458
+ /** Grace period over without payment: access is revoked until the renewal is paid. */
1459
+ "subscription.suspended": Subscription;
1460
+ /** A suspended subscription's renewal was paid: access is back, with a new period. */
1461
+ "subscription.reactivated": Subscription;
1435
1462
  "subscription.canceled": Subscription;
1436
1463
  /** Grace period over without payment; access is revoked. */
1437
1464
  "subscription.expired": Subscription;
@@ -1446,7 +1473,7 @@ type EventType = keyof EventDataMap;
1446
1473
  declare const WEBHOOK_TEST_EVENT: "webhook_endpoint.test";
1447
1474
  /** What a webhook endpoint can subscribe to: everything that happens in a business. */
1448
1475
  type SubscribableEventType = Exclude<EventType, typeof WEBHOOK_TEST_EVENT>;
1449
- declare const EVENT_TYPES: readonly ["product.updated", "product.deleted", "payment_link.deleted", "customer.created", "customer.updated", "customer.member_added", "customer.member_removed", "subscription.change_failed", "checkout.completed", "checkout.expired", "payment.succeeded", "payment.failed", "payment.refunded", "fulfillment.created", "fulfillment.shipped", "fulfillment.ready_for_pickup", "fulfillment.delivered", "fulfillment.received", "fulfillment.problem_reported", "fulfillment.canceled", "claim.created", "claim.updated", "claim.resolved", "claim.withdrawn", "refund.created", "refund.failed", "invoice.created", "invoice.paid", "invoice.voided", "invoice.uncollectible", "subscription.created", "subscription.updated", "subscription.renewal_due", "subscription.renewed", "subscription.past_due", "subscription.canceled", "subscription.expired"];
1476
+ declare const EVENT_TYPES: readonly ["product.updated", "product.deleted", "payment_link.deleted", "customer.created", "customer.updated", "customer.member_added", "customer.member_removed", "subscription.change_failed", "checkout.completed", "checkout.expired", "payment.succeeded", "payment.failed", "payment.refunded", "fulfillment.created", "fulfillment.shipped", "fulfillment.ready_for_pickup", "fulfillment.delivered", "fulfillment.received", "fulfillment.problem_reported", "fulfillment.canceled", "claim.created", "claim.updated", "claim.resolved", "claim.withdrawn", "refund.created", "refund.failed", "invoice.created", "invoice.paid", "invoice.voided", "invoice.uncollectible", "subscription.created", "subscription.updated", "subscription.renewal_due", "subscription.renewed", "subscription.past_due", "subscription.suspended", "subscription.reactivated", "subscription.canceled", "subscription.expired"];
1450
1477
  /** A delivered webhook, discriminated by `type` so `data` narrows automatically. */
1451
1478
  type WebhookEvent = { [TType in EventType]: {
1452
1479
  id: string;
@@ -1459,4 +1486,4 @@ type WebhookEvent = { [TType in EventType]: {
1459
1486
  data: EventDataMap[TType];
1460
1487
  }; }[EventType];
1461
1488
  //#endregion
1462
- export { FulfillmentHandover as $, PaymentFailureCode as $t, Coupon as A, tokenEnvironment as An, Refund as At, Event as B, SubscriptionRenewal as Bt, CheckoutPurpose as C, findBank as Cn, PlanSeats as Ct, ClaimReason as D, ENVIRONMENTS as Dn, ProductVariant as Dt, ClaimOutcome as E, nationalPhone as En, ProductCategory as Et, CustomerFeature as F, SubmitLabel as Ft, Feature as G, Weekday as Gt, FEATURE_TYPES as H, SubscriptionTerms as Ht, CustomerMember as I, Subscription as It, FeatureReset as J, API_ERROR_TYPES as Jt, FeatureOperation as K, ReceiptReference as Kt, CustomerMemberList as L, SubscriptionChange as Lt, CustomField as M, RiskLevel as Mt, Customer as N, SUBMIT_LABELS as Nt, ClaimStatus as O, Environment as On, RESET_FREQUENCIES as Ot, CustomerDetails as P, SUBSCRIPTION_STATUSES as Pt, FulfillmentChoice as Q, PAYMENT_FAILURE_CODES as Qt, CustomerSession as R, SubscriptionChangePreview as Rt, CheckoutItem as S, VENEZUELAN_BANKS as Sn, PlanPrice as St, ClaimMessage as T, isMobilePhone as Tn, Product as Tt, FULFILLMENT_METHODS as U, USAGE_FEATURE_TYPES as Ut, ExchangeRate as V, SubscriptionStatus as Vt, FULFILLMENT_STATUSES as W, WebhookEndpoint as Wt, FeatureUsageResult as X, ApiErrorEnvelope as Xt, FeatureType as Y, ApiErrorBody as Yt, Fulfillment as Z, ApiErrorType as Zt, CLAIM_STATUSES as _, Metadata as _n, PaymentSettlement as _t, WEBHOOK_TEST_EVENT as a, BILLING_MONTHS as an, Invoice as at, CarrierOffice as b, TaxBehavior as bn, Plan as bt, AfterCompletion as c, CURRENCIES as cn, LineItem as ct, CANCELLATION_FEEDBACK as d, GracePeriodDays as dn, PRODUCT_CATEGORIES as dt, API_ERROR_CODES as en, FulfillmentMethod as et, CARRIERS as f, List as fn, Payment as ft, CLAIM_REASONS as g, MOBILE_PREFIXES as gn, PaymentLink as gt, CLAIM_OUTCOMES as h, MAX_QUANTITY as hn, PaymentFeeDetails as ht, SubscribableEventType as i, AddressInput as in, INVOICE_STATUSES as it, CurrencyAvailability as j, tokenPrefix as jn, ResetFrequency as jt, CollectSettings as k, TokenKind as kn, RISK_LEVELS as kt, Balance as l, Currency as ln, MAX_SEATS as lt, CHECKOUT_PURPOSES as m, ListSort as mn, PaymentFailure as mt, EventDataMap as n, ACCOUNT_NUMBER_LENGTH as nn, FulfillmentTracking as nt, WebhookEvent as o, BankCode as on, InvoiceReason as ot, CARRIER_TEST_SCENARIOS as p, ListQuery as pn, PaymentAttempt as pt, FeatureOperationResult as q, ReceiptSend as qt, EventType as r, Address as rn, INVOICE_REASONS as rt, Actor as s, BillingMonths as sn, InvoiceStatus as st, EVENT_TYPES as t, ApiErrorCode as tn, FulfillmentStatus as tt, BalanceAmount as u, GRACE_PERIOD_DAYS as un, PAYMENT_STATUSES as ut, CancellationFeedback as v, MobilePrefix as vn, PaymentStatus as vt, Claim as w, isLandlinePhone as wn, PortalSession as wt, Checkout as x, Timestamp as xn, PlanFeatureValues as xt, Carrier as y, TAX_BEHAVIORS as yn, Payout as yt, Deletion as z, SubscriptionChangeResult as zt };
1489
+ export { FulfillmentHandover as $, PaymentFailureCode as $t, Coupon as A, Environment as An, Refund as At, Event as B, SubscriptionRenewal as Bt, CheckoutPurpose as C, Timestamp as Cn, PlanSeats as Ct, ClaimReason as D, isMobilePhone as Dn, ProductVariant as Dt, ClaimOutcome as E, isLandlinePhone as En, ProductCategory as Et, CustomerFeature as F, SubmitLabel as Ft, Feature as G, Weekday as Gt, FEATURE_TYPES as H, SubscriptionTerms as Ht, CustomerMember as I, Subscription as It, FeatureReset as J, API_ERROR_TYPES as Jt, FeatureOperation as K, ReceiptReference as Kt, CustomerMemberList as L, SubscriptionChange as Lt, CustomField as M, tokenEnvironment as Mn, RiskLevel as Mt, Customer as N, tokenPrefix as Nn, SUBMIT_LABELS as Nt, ClaimStatus as O, nationalPhone as On, RESET_FREQUENCIES as Ot, CustomerDetails as P, SUBSCRIPTION_STATUSES as Pt, FulfillmentChoice as Q, PAYMENT_FAILURE_CODES as Qt, CustomerSession as R, SubscriptionChangePreview as Rt, CheckoutItem as S, TaxBehavior as Sn, PlanPrice as St, ClaimMessage as T, findBank as Tn, Product as Tt, FULFILLMENT_METHODS as U, USAGE_FEATURE_TYPES as Ut, ExchangeRate as V, SubscriptionStatus as Vt, FULFILLMENT_STATUSES as W, WebhookEndpoint as Wt, FeatureUsageResult as X, ApiErrorEnvelope as Xt, FeatureType as Y, ApiErrorBody as Yt, Fulfillment as Z, ApiErrorType as Zt, CLAIM_STATUSES as _, Metadata as _n, PaymentSettlement as _t, WEBHOOK_TEST_EVENT as a, BILLING_MONTHS as an, Invoice as at, CarrierOffice as b, SuspensionDays as bn, Plan as bt, AfterCompletion as c, CURRENCIES as cn, LineItem as ct, CANCELLATION_FEEDBACK as d, GracePeriodDays as dn, PRODUCT_CATEGORIES as dt, API_ERROR_CODES as en, FulfillmentMethod as et, CARRIERS as f, List as fn, Payment as ft, CLAIM_REASONS as g, MOBILE_PREFIXES as gn, PaymentLink as gt, CLAIM_OUTCOMES as h, MAX_QUANTITY as hn, PaymentFeeDetails as ht, SubscribableEventType as i, AddressInput as in, INVOICE_STATUSES as it, CurrencyAvailability as j, TokenKind as jn, ResetFrequency as jt, CollectSettings as k, ENVIRONMENTS as kn, RISK_LEVELS as kt, Balance as l, Currency as ln, MAX_SEATS as lt, CHECKOUT_PURPOSES as m, ListSort as mn, PaymentFailure as mt, EventDataMap as n, ACCOUNT_NUMBER_LENGTH as nn, FulfillmentTracking as nt, WebhookEvent as o, BankCode as on, InvoiceReason as ot, CARRIER_TEST_SCENARIOS as p, ListQuery as pn, PaymentAttempt as pt, FeatureOperationResult as q, ReceiptSend as qt, EventType as r, Address as rn, INVOICE_REASONS as rt, Actor as s, BillingMonths as sn, InvoiceStatus as st, EVENT_TYPES as t, ApiErrorCode as tn, FulfillmentStatus as tt, BalanceAmount as u, GRACE_PERIOD_DAYS as un, PAYMENT_STATUSES as ut, CancellationFeedback as v, MobilePrefix as vn, PaymentStatus as vt, Claim as w, VENEZUELAN_BANKS as wn, PortalSession as wt, Checkout as x, TAX_BEHAVIORS as xn, PlanFeatureValues as xt, Carrier as y, SUSPENSION_DAYS as yn, Payout as yt, Deletion as z, SubscriptionChangeResult as zt };
@@ -18,7 +18,7 @@ var BilleteError = class extends Error {
18
18
  };
19
19
  //#endregion
20
20
  //#region src/http.ts
21
- const SDK_VERSION = "7.0.0";
21
+ const SDK_VERSION = "8.0.0";
22
22
  const DEFAULT_BASE_URL = "https://api.billete.run";
23
23
  const RETRYABLE_STATUS = /* @__PURE__ */ new Set([
24
24
  429,
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as ProductCheckoutCreate, A as CustomerUpdate, At as PublicPortal, B as InvoiceCreate, Bt as apiVersionStage, C as CouponUpdate, Ct as PublicCheckoutItem, D as CustomerMemberCreate, Dt as PublicInvoice, E as CustomerInput, Et as PublicFulfillment, F as FeatureUpdate, Ft as ApiVersionLifecycle, G as PlanCheckoutCreate, H as KEY_PATTERN, Ht as isApiVersion, I as FulfillmentDeliverInput, It as ApiVersionStage, J as PlanFeaturesInput, K as PlanCouponCreate, L as FulfillmentHandoverInput, Lt as LATEST_API_VERSION, M as FeatureCreate, Mt as API_VERSION_HEADER, N as FeatureOperationCommit, Nt as API_VERSION_PATTERN, O as CustomerMemberUpdate, Ot as PublicPaymentLink, P as FeatureOperationCreate, Pt as ApiVersion, Q as PortalSessionCreate, R as FulfillmentInput, Rt as LatestApiVersion, S as CouponCreate, St as PublicCheckout, T as CustomerCreate, Tt as PublicClaimSummary, U as PaymentLinkCreate, Ut as isApiVersionRetired, V as InvoiceLineInput, Vt as currentApiVersion, W as PaymentLinkUpdate, Wt as supportedApiVersions, X as PlanPriceInput, Y as PlanLinkCreate, Z as PlanUpdate, _ as ClientPaymentCode, _t as PaymentMethodField, a as AfterCompletionInput, at as SubscriptionCancel, b as ClientSubscriptionUpdate, bt as PaymentTestScenario, c as ClaimResolve, ct as SubscriptionCreate, d as ClientCheckoutUpdate, dt as WebhookEndpointCreate, et as ProductCouponCreate, f as ClientClaimCreate, ft as WebhookEndpointUpdate, g as ClientLinkCheckout, gt as PaymentInstructions, h as ClientInvoicePay, ht as FulfillmentOption, i as TransportOptions, it as RefundCreate, j as EventSelector, jt as API_VERSIONS, k as CustomerSessionCreate, kt as PublicPaymentState, l as ClaimRespond, lt as SubscriptionUpdate, m as ClientFulfillmentProblem, mt as CustomerSubscriptionChangeResult, n as BilleteErrorCode, nt as ProductLinkCreate, o as CheckoutCreate, ot as SubscriptionChangeCreate, p as ClientCustomerClaimCreate, pt as CustomerSubscription, q as PlanCreate, r as RequestOptions, rt as ProductUpdate, s as CheckoutItemInput, st as SubscriptionChangePreviewInput, t as BilleteError, tt as ProductCreate, u as ClientCheckoutPay, ut as VariantInput, v as ClientSubscriptionCancel, vt as PaymentMethodOption, w as CustomFieldInput, wt as PublicClaim, x as CollectInput, xt as PortalFeatures, y as ClientSubscriptionSeats, yt as PaymentNextAction, z as FulfillmentTrackingInput, zt as apiVersionLifecycle } from "./errors-e_-7ZZmn.js";
2
- import { $ as FulfillmentHandover, $t as PaymentFailureCode, A as Coupon, An as tokenEnvironment, At as Refund, B as Event, Bt as SubscriptionRenewal, C as CheckoutPurpose, Cn as findBank, Ct as PlanSeats, D as ClaimReason, Dn as ENVIRONMENTS, Dt as ProductVariant, E as ClaimOutcome, En as nationalPhone, Et as ProductCategory, F as CustomerFeature, Ft as SubmitLabel, G as Feature, Gt as Weekday, H as FEATURE_TYPES, Ht as SubscriptionTerms, I as CustomerMember, It as Subscription, J as FeatureReset, Jt as API_ERROR_TYPES, K as FeatureOperation, Kt as ReceiptReference, L as CustomerMemberList, Lt as SubscriptionChange, M as CustomField, Mt as RiskLevel, N as Customer, Nt as SUBMIT_LABELS, O as ClaimStatus, On as Environment, Ot as RESET_FREQUENCIES, P as CustomerDetails, Pt as SUBSCRIPTION_STATUSES, Q as FulfillmentChoice, Qt as PAYMENT_FAILURE_CODES, R as CustomerSession, Rt as SubscriptionChangePreview, S as CheckoutItem, Sn as VENEZUELAN_BANKS, St as PlanPrice, T as ClaimMessage, Tn as isMobilePhone, Tt as Product, U as FULFILLMENT_METHODS, Ut as USAGE_FEATURE_TYPES, V as ExchangeRate, Vt as SubscriptionStatus, W as FULFILLMENT_STATUSES, Wt as WebhookEndpoint, X as FeatureUsageResult, Xt as ApiErrorEnvelope, Y as FeatureType, Yt as ApiErrorBody, Z as Fulfillment, Zt as ApiErrorType, _ as CLAIM_STATUSES, _n as Metadata, _t as PaymentSettlement, a as WEBHOOK_TEST_EVENT, an as BILLING_MONTHS, at as Invoice, b as CarrierOffice, bn as TaxBehavior, bt as Plan, c as AfterCompletion, cn as CURRENCIES, ct as LineItem, d as CANCELLATION_FEEDBACK, dn as GracePeriodDays, dt as PRODUCT_CATEGORIES, en as API_ERROR_CODES, et as FulfillmentMethod, f as CARRIERS, fn as List, ft as Payment, g as CLAIM_REASONS, gn as MOBILE_PREFIXES, gt as PaymentLink, h as CLAIM_OUTCOMES, hn as MAX_QUANTITY, ht as PaymentFeeDetails, i as SubscribableEventType, in as AddressInput, it as INVOICE_STATUSES, j as CurrencyAvailability, jn as tokenPrefix, jt as ResetFrequency, k as CollectSettings, kn as TokenKind, kt as RISK_LEVELS, l as Balance, ln as Currency, lt as MAX_SEATS, m as CHECKOUT_PURPOSES, mn as ListSort, mt as PaymentFailure, n as EventDataMap, nn as ACCOUNT_NUMBER_LENGTH, nt as FulfillmentTracking, o as WebhookEvent, on as BankCode, ot as InvoiceReason, p as CARRIER_TEST_SCENARIOS, pn as ListQuery, pt as PaymentAttempt, q as FeatureOperationResult, qt as ReceiptSend, r as EventType, rn as Address, rt as INVOICE_REASONS, s as Actor, sn as BillingMonths, st as InvoiceStatus, t as EVENT_TYPES, tn as ApiErrorCode, tt as FulfillmentStatus, u as BalanceAmount, un as GRACE_PERIOD_DAYS, ut as PAYMENT_STATUSES, v as CancellationFeedback, vn as MobilePrefix, vt as PaymentStatus, w as Claim, wn as isLandlinePhone, wt as PortalSession, x as Checkout, xn as Timestamp, xt as PlanFeatureValues, y as Carrier, yn as TAX_BEHAVIORS, yt as Payout, z as Deletion, zt as SubscriptionChangeResult } from "./events-CWajoKsy.js";
1
+ import { $ as ProductCheckoutCreate, A as CustomerUpdate, At as PublicPortal, B as InvoiceCreate, Bt as apiVersionStage, C as CouponUpdate, Ct as PublicCheckoutItem, D as CustomerMemberCreate, Dt as PublicInvoice, E as CustomerInput, Et as PublicFulfillment, F as FeatureUpdate, Ft as ApiVersionLifecycle, G as PlanCheckoutCreate, H as KEY_PATTERN, Ht as isApiVersion, I as FulfillmentDeliverInput, It as ApiVersionStage, J as PlanFeaturesInput, K as PlanCouponCreate, L as FulfillmentHandoverInput, Lt as LATEST_API_VERSION, M as FeatureCreate, Mt as API_VERSION_HEADER, N as FeatureOperationCommit, Nt as API_VERSION_PATTERN, O as CustomerMemberUpdate, Ot as PublicPaymentLink, P as FeatureOperationCreate, Pt as ApiVersion, Q as PortalSessionCreate, R as FulfillmentInput, Rt as LatestApiVersion, S as CouponCreate, St as PublicCheckout, T as CustomerCreate, Tt as PublicClaimSummary, U as PaymentLinkCreate, Ut as isApiVersionRetired, V as InvoiceLineInput, Vt as currentApiVersion, W as PaymentLinkUpdate, Wt as supportedApiVersions, X as PlanPriceInput, Y as PlanLinkCreate, Z as PlanUpdate, _ as ClientPaymentCode, _t as PaymentMethodField, a as AfterCompletionInput, at as SubscriptionCancel, b as ClientSubscriptionUpdate, bt as PaymentTestScenario, c as ClaimResolve, ct as SubscriptionCreate, d as ClientCheckoutUpdate, dt as WebhookEndpointCreate, et as ProductCouponCreate, f as ClientClaimCreate, ft as WebhookEndpointUpdate, g as ClientLinkCheckout, gt as PaymentInstructions, h as ClientInvoicePay, ht as FulfillmentOption, i as TransportOptions, it as RefundCreate, j as EventSelector, jt as API_VERSIONS, k as CustomerSessionCreate, kt as PublicPaymentState, l as ClaimRespond, lt as SubscriptionUpdate, m as ClientFulfillmentProblem, mt as CustomerSubscriptionChangeResult, n as BilleteErrorCode, nt as ProductLinkCreate, o as CheckoutCreate, ot as SubscriptionChangeCreate, p as ClientCustomerClaimCreate, pt as CustomerSubscription, q as PlanCreate, r as RequestOptions, rt as ProductUpdate, s as CheckoutItemInput, st as SubscriptionChangePreviewInput, t as BilleteError, tt as ProductCreate, u as ClientCheckoutPay, ut as VariantInput, v as ClientSubscriptionCancel, vt as PaymentMethodOption, w as CustomFieldInput, wt as PublicClaim, x as CollectInput, xt as PortalFeatures, y as ClientSubscriptionSeats, yt as PaymentNextAction, z as FulfillmentTrackingInput, zt as apiVersionLifecycle } from "./errors-DERevGF5.js";
2
+ import { $ as FulfillmentHandover, $t as PaymentFailureCode, A as Coupon, An as Environment, At as Refund, B as Event, Bt as SubscriptionRenewal, C as CheckoutPurpose, Cn as Timestamp, Ct as PlanSeats, D as ClaimReason, Dn as isMobilePhone, Dt as ProductVariant, E as ClaimOutcome, En as isLandlinePhone, Et as ProductCategory, F as CustomerFeature, Ft as SubmitLabel, G as Feature, Gt as Weekday, H as FEATURE_TYPES, Ht as SubscriptionTerms, I as CustomerMember, It as Subscription, J as FeatureReset, Jt as API_ERROR_TYPES, K as FeatureOperation, Kt as ReceiptReference, L as CustomerMemberList, Lt as SubscriptionChange, M as CustomField, Mn as tokenEnvironment, Mt as RiskLevel, N as Customer, Nn as tokenPrefix, Nt as SUBMIT_LABELS, O as ClaimStatus, On as nationalPhone, Ot as RESET_FREQUENCIES, P as CustomerDetails, Pt as SUBSCRIPTION_STATUSES, Q as FulfillmentChoice, Qt as PAYMENT_FAILURE_CODES, R as CustomerSession, Rt as SubscriptionChangePreview, S as CheckoutItem, Sn as TaxBehavior, St as PlanPrice, T as ClaimMessage, Tn as findBank, Tt as Product, U as FULFILLMENT_METHODS, Ut as USAGE_FEATURE_TYPES, V as ExchangeRate, Vt as SubscriptionStatus, W as FULFILLMENT_STATUSES, Wt as WebhookEndpoint, X as FeatureUsageResult, Xt as ApiErrorEnvelope, Y as FeatureType, Yt as ApiErrorBody, Z as Fulfillment, Zt as ApiErrorType, _ as CLAIM_STATUSES, _n as Metadata, _t as PaymentSettlement, a as WEBHOOK_TEST_EVENT, an as BILLING_MONTHS, at as Invoice, b as CarrierOffice, bn as SuspensionDays, bt as Plan, c as AfterCompletion, cn as CURRENCIES, ct as LineItem, d as CANCELLATION_FEEDBACK, dn as GracePeriodDays, dt as PRODUCT_CATEGORIES, en as API_ERROR_CODES, et as FulfillmentMethod, f as CARRIERS, fn as List, ft as Payment, g as CLAIM_REASONS, gn as MOBILE_PREFIXES, gt as PaymentLink, h as CLAIM_OUTCOMES, hn as MAX_QUANTITY, ht as PaymentFeeDetails, i as SubscribableEventType, in as AddressInput, it as INVOICE_STATUSES, j as CurrencyAvailability, jn as TokenKind, jt as ResetFrequency, k as CollectSettings, kn as ENVIRONMENTS, kt as RISK_LEVELS, l as Balance, ln as Currency, lt as MAX_SEATS, m as CHECKOUT_PURPOSES, mn as ListSort, mt as PaymentFailure, n as EventDataMap, nn as ACCOUNT_NUMBER_LENGTH, nt as FulfillmentTracking, o as WebhookEvent, on as BankCode, ot as InvoiceReason, p as CARRIER_TEST_SCENARIOS, pn as ListQuery, pt as PaymentAttempt, q as FeatureOperationResult, qt as ReceiptSend, r as EventType, rn as Address, rt as INVOICE_REASONS, s as Actor, sn as BillingMonths, st as InvoiceStatus, t as EVENT_TYPES, tn as ApiErrorCode, tt as FulfillmentStatus, u as BalanceAmount, un as GRACE_PERIOD_DAYS, ut as PAYMENT_STATUSES, v as CancellationFeedback, vn as MobilePrefix, vt as PaymentStatus, w as Claim, wn as VENEZUELAN_BANKS, wt as PortalSession, x as Checkout, xn as TAX_BEHAVIORS, xt as PlanFeatureValues, y as Carrier, yn as SUSPENSION_DAYS, yt as Payout, z as Deletion, zt as SubscriptionChangeResult } from "./events-b2qMWZF8.js";
3
3
  import { WebhookVerificationError, verifyWebhook } from "./webhooks.js";
4
4
  //#region src/server.d.ts
5
5
  type Filters<T> = ListQuery & T;
@@ -25,7 +25,7 @@ interface BilleteOptions extends TransportOptions {
25
25
  *
26
26
  * ```ts
27
27
  * // Reads BILLETE_API_KEY.
28
- * const billete = createBillete({ apiVersion: "2026-10-20", environment: "test" });
28
+ * const billete = createBillete({ apiVersion: "2026-10-21", environment: "test" });
29
29
  * const { allowed } = await billete.features.consume("user_123", "tokens", 850);
30
30
  * ```
31
31
  */
@@ -389,4 +389,4 @@ export declare function createBillete(options: BilleteOptions): {
389
389
  /** The server client: what `createBillete` returns. */
390
390
  type Billete = ReturnType<typeof createBillete>;
391
391
  //#endregion
392
- export { type ACCOUNT_NUMBER_LENGTH, type API_ERROR_CODES, type API_ERROR_TYPES, type API_VERSIONS, type API_VERSION_HEADER, type API_VERSION_PATTERN, type Actor, type Address, type AddressInput, type AfterCompletion, type AfterCompletionInput, type ApiErrorBody, type ApiErrorCode, type ApiErrorEnvelope, type ApiErrorType, type ApiVersion, type ApiVersionLifecycle, type ApiVersionStage, type BILLING_MONTHS, type Balance, type BalanceAmount, type BankCode, type Billete, BilleteError, type BilleteErrorCode, type BilleteOptions, type BillingMonths, type CANCELLATION_FEEDBACK, type CARRIERS, type CARRIER_TEST_SCENARIOS, type CHECKOUT_PURPOSES, type CLAIM_OUTCOMES, type CLAIM_REASONS, type CLAIM_STATUSES, type CURRENCIES, type CancellationFeedback, type Carrier, type CarrierOffice, type Checkout, type CheckoutCreate, type CheckoutItem, type CheckoutItemInput, type CheckoutPurpose, type Claim, type ClaimMessage, type ClaimOutcome, type ClaimReason, type ClaimResolve, type ClaimRespond, type ClaimStatus, type ClientCheckoutPay, type ClientCheckoutUpdate, type ClientClaimCreate, type ClientCustomerClaimCreate, type ClientFulfillmentProblem, type ClientInvoicePay, type ClientLinkCheckout, type ClientPaymentCode, type ClientSubscriptionCancel, type ClientSubscriptionSeats, type ClientSubscriptionUpdate, type CollectInput, type CollectSettings, type Coupon, type CouponCreate, type CouponUpdate, type Currency, type CurrencyAvailability, type CustomField, type CustomFieldInput, type Customer, type CustomerCreate, type CustomerDetails, type CustomerFeature, type CustomerInput, type CustomerMember, type CustomerMemberCreate, type CustomerMemberList, type CustomerMemberUpdate, type CustomerSession, type CustomerSessionCreate, type CustomerSubscription, type CustomerSubscriptionChangeResult, type CustomerUpdate, type Deletion, type ENVIRONMENTS, type EVENT_TYPES, type Environment, type Event, type EventDataMap, type EventSelector, type EventType, type ExchangeRate, type FEATURE_TYPES, type FULFILLMENT_METHODS, type FULFILLMENT_STATUSES, type Feature, type FeatureCreate, type FeatureOperation, type FeatureOperationCommit, type FeatureOperationCreate, type FeatureOperationResult, type FeatureReset, type FeatureType, type FeatureUpdate, type FeatureUsageResult, type Fulfillment, type FulfillmentChoice, type FulfillmentDeliverInput, type FulfillmentHandover, type FulfillmentHandoverInput, type FulfillmentInput, type FulfillmentMethod, type FulfillmentOption, type FulfillmentStatus, type FulfillmentTracking, type FulfillmentTrackingInput, type GRACE_PERIOD_DAYS, type GracePeriodDays, type INVOICE_REASONS, type INVOICE_STATUSES, type Invoice, type InvoiceCreate, type InvoiceLineInput, type InvoiceReason, type InvoiceStatus, type KEY_PATTERN, type LATEST_API_VERSION, type LatestApiVersion, type LineItem, type List, type ListQuery, type ListSort, type MAX_QUANTITY, type MAX_SEATS, type MOBILE_PREFIXES, type Metadata, type MobilePrefix, type PAYMENT_FAILURE_CODES, type PAYMENT_STATUSES, type PRODUCT_CATEGORIES, type Payment, type PaymentAttempt, type PaymentFailure, type PaymentFailureCode, type PaymentFeeDetails, type PaymentInstructions, type PaymentLink, type PaymentLinkCreate, type PaymentLinkUpdate, type PaymentMethodField, type PaymentMethodOption, type PaymentNextAction, type PaymentSettlement, type PaymentStatus, type PaymentTestScenario, type Payout, type Plan, type PlanCheckoutCreate, type PlanCouponCreate, type PlanCreate, type PlanFeatureValues, type PlanFeaturesInput, type PlanLinkCreate, type PlanPrice, type PlanPriceInput, type PlanSeats, type PlanUpdate, type PortalFeatures, type PortalSession, type PortalSessionCreate, type Product, type ProductCategory, type ProductCheckoutCreate, type ProductCouponCreate, type ProductCreate, type ProductLinkCreate, type ProductUpdate, type ProductVariant, type PublicCheckout, type PublicCheckoutItem, type PublicClaim, type PublicClaimSummary, type PublicFulfillment, type PublicInvoice, type PublicPaymentLink, type PublicPaymentState, type PublicPortal, type RESET_FREQUENCIES, type RISK_LEVELS, type ReceiptReference, type ReceiptSend, type Refund, type RefundCreate, type RequestOptions, type ResetFrequency, type RiskLevel, type SUBMIT_LABELS, type SUBSCRIPTION_STATUSES, type SubmitLabel, type SubscribableEventType, type Subscription, type SubscriptionCancel, type SubscriptionChange, type SubscriptionChangeCreate, type SubscriptionChangePreview, type SubscriptionChangePreviewInput, type SubscriptionChangeResult, type SubscriptionCreate, type SubscriptionRenewal, type SubscriptionStatus, type SubscriptionTerms, type SubscriptionUpdate, type TAX_BEHAVIORS, type TaxBehavior, type Timestamp, type TokenKind, type TransportOptions, type USAGE_FEATURE_TYPES, type VENEZUELAN_BANKS, type VariantInput, type WEBHOOK_TEST_EVENT, type WebhookEndpoint, type WebhookEndpointCreate, type WebhookEndpointUpdate, type WebhookEvent, WebhookVerificationError, type Weekday, type apiVersionLifecycle, type apiVersionStage, type currentApiVersion, type findBank, type isApiVersion, type isApiVersionRetired, type isLandlinePhone, type isMobilePhone, type nationalPhone, type supportedApiVersions, type tokenEnvironment, type tokenPrefix, verifyWebhook };
392
+ export { type ACCOUNT_NUMBER_LENGTH, type API_ERROR_CODES, type API_ERROR_TYPES, type API_VERSIONS, type API_VERSION_HEADER, type API_VERSION_PATTERN, type Actor, type Address, type AddressInput, type AfterCompletion, type AfterCompletionInput, type ApiErrorBody, type ApiErrorCode, type ApiErrorEnvelope, type ApiErrorType, type ApiVersion, type ApiVersionLifecycle, type ApiVersionStage, type BILLING_MONTHS, type Balance, type BalanceAmount, type BankCode, type Billete, BilleteError, type BilleteErrorCode, type BilleteOptions, type BillingMonths, type CANCELLATION_FEEDBACK, type CARRIERS, type CARRIER_TEST_SCENARIOS, type CHECKOUT_PURPOSES, type CLAIM_OUTCOMES, type CLAIM_REASONS, type CLAIM_STATUSES, type CURRENCIES, type CancellationFeedback, type Carrier, type CarrierOffice, type Checkout, type CheckoutCreate, type CheckoutItem, type CheckoutItemInput, type CheckoutPurpose, type Claim, type ClaimMessage, type ClaimOutcome, type ClaimReason, type ClaimResolve, type ClaimRespond, type ClaimStatus, type ClientCheckoutPay, type ClientCheckoutUpdate, type ClientClaimCreate, type ClientCustomerClaimCreate, type ClientFulfillmentProblem, type ClientInvoicePay, type ClientLinkCheckout, type ClientPaymentCode, type ClientSubscriptionCancel, type ClientSubscriptionSeats, type ClientSubscriptionUpdate, type CollectInput, type CollectSettings, type Coupon, type CouponCreate, type CouponUpdate, type Currency, type CurrencyAvailability, type CustomField, type CustomFieldInput, type Customer, type CustomerCreate, type CustomerDetails, type CustomerFeature, type CustomerInput, type CustomerMember, type CustomerMemberCreate, type CustomerMemberList, type CustomerMemberUpdate, type CustomerSession, type CustomerSessionCreate, type CustomerSubscription, type CustomerSubscriptionChangeResult, type CustomerUpdate, type Deletion, type ENVIRONMENTS, type EVENT_TYPES, type Environment, type Event, type EventDataMap, type EventSelector, type EventType, type ExchangeRate, type FEATURE_TYPES, type FULFILLMENT_METHODS, type FULFILLMENT_STATUSES, type Feature, type FeatureCreate, type FeatureOperation, type FeatureOperationCommit, type FeatureOperationCreate, type FeatureOperationResult, type FeatureReset, type FeatureType, type FeatureUpdate, type FeatureUsageResult, type Fulfillment, type FulfillmentChoice, type FulfillmentDeliverInput, type FulfillmentHandover, type FulfillmentHandoverInput, type FulfillmentInput, type FulfillmentMethod, type FulfillmentOption, type FulfillmentStatus, type FulfillmentTracking, type FulfillmentTrackingInput, type GRACE_PERIOD_DAYS, type GracePeriodDays, type INVOICE_REASONS, type INVOICE_STATUSES, type Invoice, type InvoiceCreate, type InvoiceLineInput, type InvoiceReason, type InvoiceStatus, type KEY_PATTERN, type LATEST_API_VERSION, type LatestApiVersion, type LineItem, type List, type ListQuery, type ListSort, type MAX_QUANTITY, type MAX_SEATS, type MOBILE_PREFIXES, type Metadata, type MobilePrefix, type PAYMENT_FAILURE_CODES, type PAYMENT_STATUSES, type PRODUCT_CATEGORIES, type Payment, type PaymentAttempt, type PaymentFailure, type PaymentFailureCode, type PaymentFeeDetails, type PaymentInstructions, type PaymentLink, type PaymentLinkCreate, type PaymentLinkUpdate, type PaymentMethodField, type PaymentMethodOption, type PaymentNextAction, type PaymentSettlement, type PaymentStatus, type PaymentTestScenario, type Payout, type Plan, type PlanCheckoutCreate, type PlanCouponCreate, type PlanCreate, type PlanFeatureValues, type PlanFeaturesInput, type PlanLinkCreate, type PlanPrice, type PlanPriceInput, type PlanSeats, type PlanUpdate, type PortalFeatures, type PortalSession, type PortalSessionCreate, type Product, type ProductCategory, type ProductCheckoutCreate, type ProductCouponCreate, type ProductCreate, type ProductLinkCreate, type ProductUpdate, type ProductVariant, type PublicCheckout, type PublicCheckoutItem, type PublicClaim, type PublicClaimSummary, type PublicFulfillment, type PublicInvoice, type PublicPaymentLink, type PublicPaymentState, type PublicPortal, type RESET_FREQUENCIES, type RISK_LEVELS, type ReceiptReference, type ReceiptSend, type Refund, type RefundCreate, type RequestOptions, type ResetFrequency, type RiskLevel, type SUBMIT_LABELS, type SUBSCRIPTION_STATUSES, type SUSPENSION_DAYS, type SubmitLabel, type SubscribableEventType, type Subscription, type SubscriptionCancel, type SubscriptionChange, type SubscriptionChangeCreate, type SubscriptionChangePreview, type SubscriptionChangePreviewInput, type SubscriptionChangeResult, type SubscriptionCreate, type SubscriptionRenewal, type SubscriptionStatus, type SubscriptionTerms, type SubscriptionUpdate, type SuspensionDays, type TAX_BEHAVIORS, type TaxBehavior, type Timestamp, type TokenKind, type TransportOptions, type USAGE_FEATURE_TYPES, type VENEZUELAN_BANKS, type VariantInput, type WEBHOOK_TEST_EVENT, type WebhookEndpoint, type WebhookEndpointCreate, type WebhookEndpointUpdate, type WebhookEvent, WebhookVerificationError, type Weekday, type apiVersionLifecycle, type apiVersionStage, type currentApiVersion, type findBank, type isApiVersion, type isApiVersionRetired, type isLandlinePhone, type isMobilePhone, type nationalPhone, type supportedApiVersions, type tokenEnvironment, type tokenPrefix, verifyWebhook };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as segment, r as BilleteError, t as createTransport } from "./http-Do9Fl8fk.js";
1
+ import { n as segment, r as BilleteError, t as createTransport } from "./http-CNxkDxq4.js";
2
2
  import { WebhookVerificationError, verifyWebhook } from "./webhooks.js";
3
3
  //#region ../contracts/src/environment.ts
4
4
  /**
@@ -75,7 +75,7 @@ function fromEnv(name) {
75
75
  *
76
76
  * ```ts
77
77
  * // Reads BILLETE_API_KEY.
78
- * const billete = createBillete({ apiVersion: "2026-10-20", environment: "test" });
78
+ * const billete = createBillete({ apiVersion: "2026-10-21", environment: "test" });
79
79
  * const { allowed } = await billete.features.consume("user_123", "tokens", 850);
80
80
  * ```
81
81
  */
@@ -1,4 +1,4 @@
1
- import { o as WebhookEvent } from "./events-CWajoKsy.js";
1
+ import { o as WebhookEvent } from "./events-b2qMWZF8.js";
2
2
  //#region src/webhooks.d.ts
3
3
  export declare class WebhookVerificationError extends Error {
4
4
  constructor(message: string);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boelabs/billete-sdk",
3
- "version": "7.0.0",
3
+ "version": "8.0.0",
4
4
  "description": "Billete SDK: server client, browser client and webhook verification",
5
5
  "keywords": [
6
6
  "billete",