@usebillow/sdk 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{billing-B-VyZCXV.d.cts → billing-8ug1Gw05.d.cts} +14 -10
  3. package/dist/{billing-CgjcWmvb.d.ts → billing-Bs10EcjR.d.ts} +14 -10
  4. package/dist/{billing-status-BZQN_gm7.d.cts → billing-status-DZkB0VPK.d.cts} +5 -5
  5. package/dist/{billing-status-BZQN_gm7.d.ts → billing-status-DZkB0VPK.d.ts} +5 -5
  6. package/dist/{chunk-CCG4F5FK.js → chunk-47J7FYM5.js} +2 -2
  7. package/dist/chunk-47J7FYM5.js.map +1 -0
  8. package/dist/{chunk-J6JIZGWB.js → chunk-XKN7ZRAR.js} +81 -22
  9. package/dist/chunk-XKN7ZRAR.js.map +1 -0
  10. package/dist/config.cjs +3 -3
  11. package/dist/config.cjs.map +1 -1
  12. package/dist/config.d.cts +10 -10
  13. package/dist/config.d.ts +10 -10
  14. package/dist/config.js +3 -3
  15. package/dist/config.js.map +1 -1
  16. package/dist/{hosted-domains-BbuyxnuH.d.cts → hosted-domains-Ci6jeNAe.d.cts} +124 -17
  17. package/dist/{hosted-domains-BP91tg9P.d.ts → hosted-domains-DSs5Iw9U.d.ts} +124 -17
  18. package/dist/index.cjs +79 -20
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +89 -55
  21. package/dist/index.d.ts +89 -55
  22. package/dist/index.js +2 -2
  23. package/dist/ingestion.cjs.map +1 -1
  24. package/dist/ingestion.d.cts +19 -19
  25. package/dist/ingestion.d.ts +19 -19
  26. package/dist/ingestion.js.map +1 -1
  27. package/dist/react.cjs +28 -5
  28. package/dist/react.cjs.map +1 -1
  29. package/dist/react.d.cts +7 -7
  30. package/dist/react.d.ts +7 -7
  31. package/dist/react.js +2 -2
  32. package/dist/react.js.map +1 -1
  33. package/dist/server.cjs.map +1 -1
  34. package/dist/server.d.cts +12 -12
  35. package/dist/server.d.ts +12 -12
  36. package/dist/server.js.map +1 -1
  37. package/dist/status.cjs.map +1 -1
  38. package/dist/status.d.cts +1 -1
  39. package/dist/status.d.ts +1 -1
  40. package/dist/status.js +1 -1
  41. package/dist/webhooks.cjs.map +1 -1
  42. package/dist/webhooks.d.cts +27 -14
  43. package/dist/webhooks.d.ts +27 -14
  44. package/dist/webhooks.js.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/chunk-CCG4F5FK.js.map +0 -1
  47. package/dist/chunk-J6JIZGWB.js.map +0 -1
  48. package/dist/{index.d-CKQAhQfJ.d.ts → index.d-DSEYhV2c.d.cts} +2 -2
  49. package/dist/{index.d-CKQAhQfJ.d.cts → index.d-DSEYhV2c.d.ts} +2 -2
package/dist/index.d.cts CHANGED
@@ -1,18 +1,18 @@
1
- import { f as SavedPaymentMethod, g as CreateHostedDomainInput, h as PayInvoiceInput } from './index.d-CKQAhQfJ.cjs';
2
- export { i as ContractAddSubscriptionItemInput, j as ContractApplySubscriptionCouponInput, k as ContractCancelSubscriptionInput, l as ContractChangeSubscriptionPlanInput, m as ContractCreateChargeInput, n as ContractCreateCustomerInput, o as ContractCreateMerchantInitiatedChargeInput, p as ContractCreatePortalSessionInput, q as ContractCreateProductInput, r as ContractCreateSubscriptionInput, s as ContractCreateWebhookEndpointInput, M as ContractMigrateSubscribersInput, R as ContractRefundChargeInput, t as ContractResolveRefundInput, U as ContractUpdateProductInput, u as ContractUpdateSubscriptionItemInput, v as ContractUpdateWebhookEndpointInput, H as HostedDomain, w as HostedDomainList, I as InvoicePaymentResult } from './index.d-CKQAhQfJ.cjs';
3
- import { C as ChargeStatus, P as PaymentMethodStatus, I as InvoiceStatus, R as RefundStatus, W as WebhookDeliveryStatus } from './billing-status-BZQN_gm7.cjs';
4
- export { a as CHARGE_STATUSES, b as INVOICE_STATUSES, c as PAYMENT_METHOD_STATUSES, d as REFUND_STATUSES, e as WEBHOOK_DELIVERY_STATUSES } from './billing-status-BZQN_gm7.cjs';
1
+ import { f as SavedPaymentMethod, g as CreateHostedDomainInput, h as PayInvoiceInput } from './index.d-DSEYhV2c.cjs';
2
+ export { i as ContractAddSubscriptionItemInput, j as ContractApplySubscriptionCouponInput, k as ContractCancelSubscriptionInput, l as ContractChangeSubscriptionPlanInput, m as ContractCreateChargeInput, n as ContractCreateCustomerInput, o as ContractCreateMerchantInitiatedChargeInput, p as ContractCreatePortalSessionInput, q as ContractCreateProductInput, r as ContractCreateSubscriptionInput, s as ContractCreateWebhookEndpointInput, M as ContractMigrateSubscribersInput, R as ContractRefundChargeInput, t as ContractResolveRefundInput, U as ContractUpdateProductInput, u as ContractUpdateSubscriptionItemInput, v as ContractUpdateWebhookEndpointInput, H as HostedDomain, w as HostedDomainList, I as InvoicePaymentResult } from './index.d-DSEYhV2c.cjs';
3
+ import { C as ChargeStatus, P as PaymentMethodStatus, I as InvoiceStatus, R as RefundStatus, W as WebhookDeliveryStatus } from './billing-status-DZkB0VPK.cjs';
4
+ export { a as CHARGE_STATUSES, b as INVOICE_STATUSES, c as PAYMENT_METHOD_STATUSES, d as REFUND_STATUSES, e as WEBHOOK_DELIVERY_STATUSES } from './billing-status-DZkB0VPK.cjs';
5
5
  import { SubscriptionStatus } from './status.cjs';
6
6
  export { ACTIVE_SUBSCRIPTION_STATUSES, NEVER_ACTIVATED_SUBSCRIPTION_STATUSES, SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, grantsAccess, isTerminal } from './status.cjs';
7
- import { c as TaxBehavior, d as Customer, U as UnappliedPaymentReason, e as CreateChargeInput, R as RequestOptions, f as Charge, g as CreateMerchantInitiatedChargeInput, I as IdempotentRequestOptions, h as CallOptions, C as CreateProductInput, i as UpdateProductInput, j as MigrationResult, k as CreateSubscriptionInput, B as BillowOptions, a as CreateCouponInput, l as Coupon, F as FeatureKind, M as MeterConfig, m as Feature, n as UpdateFeatureInput, o as UsageAlert, p as CreateUsageAlertInput, b as CheckResult, T as TrackResult, E as EntitlementView, A as AttachResult } from './billing-B-VyZCXV.cjs';
8
- export { q as ActivatedSubscriptionResult, r as BillingInterval, s as CouponDuration, t as CouponKind, u as CreateSubscriptionResult, v as EntitlementInput, w as MeterAggregation, x as MeterFilter, y as MeterRoundingMode, z as PendingSubscriptionCheckoutResult, D as PriceInput, P as Product, G as ProductEntitlement, H as ProductPrice, S as Subscription, J as SubscriptionDetail, K as SubscriptionItem, L as UpdatePriceInput, N as UsageAlertKind, O as UsageAlertMetric, Q as UsageModel, V as UsageTier } from './billing-B-VyZCXV.cjs';
9
- import { a as CreditThresholdLevel, e as CreditGrant, f as CreditTopUp, g as CreateCreditGrantInput, h as CreditGrantRequestResult, i as CreditPacks, j as CreateCreditPackInput, k as CreditPack, U as UpdateCreditPackInput, l as CreateCreditIncludedRuleInput, m as CreditIncludedRule, n as UpdateCreditIncludedRuleInput, o as CreateCreditTopUpInput, p as CreditTopUpRequestResult, q as CreditTopUpListParams, r as CreditBalance, s as CreditLedgerEntry, t as CreditUsageParams, u as CreditUsage } from './hosted-domains-BbuyxnuH.cjs';
10
- export { v as CreditAccountStatus, w as CreditAllocationInterval, C as CreditGrantKind, x as CreditMoney, y as CreditPackBreakdown, z as CreditPackListItem, A as CreditTopUpStatus, B as CreditTransactionType, D as CreditUsageGroupBy, H as HostedDomainActivatedData, d as HostedDomainDisabledData, b as HostedDomainDnsFailingData, E as HostedDomainEventBase, c as HostedDomainReassignmentPendingData, F as HostedDomainStatus, G as HostedDomainStatusReason } from './hosted-domains-BbuyxnuH.cjs';
7
+ import { c as TaxBehavior, d as Customer, U as UnappliedPaymentReason, e as CreateChargeInput, R as RequestOptions, f as Charge, g as CreateMerchantInitiatedChargeInput, I as IdempotentRequestOptions, h as CallOptions, C as CreateProductInput, i as UpdateProductInput, j as MigrationResult, k as CreateSubscriptionInput, B as BillowOptions, a as CreateCouponInput, l as Coupon, F as FeatureKind, M as MeterConfig, m as Feature, n as UpdateFeatureInput, o as UsageAlert, p as CreateUsageAlertInput, b as CheckResult, T as TrackResult, E as EntitlementView, A as AttachResult } from './billing-8ug1Gw05.cjs';
8
+ export { q as ActivatedSubscriptionResult, r as BillingInterval, s as CouponDuration, t as CouponKind, u as CreateSubscriptionResult, v as EntitlementInput, w as MeterAggregation, x as MeterFilter, y as MeterRoundingMode, z as PendingSubscriptionCheckoutResult, D as PriceInput, P as Product, G as ProductEntitlement, H as ProductPrice, S as Subscription, J as SubscriptionDetail, K as SubscriptionItem, L as UpdatePriceInput, N as UsageAlertKind, O as UsageAlertMetric, Q as UsageModel, V as UsageTier } from './billing-8ug1Gw05.cjs';
9
+ import { a as CreditThresholdLevel, e as CreditGrant, f as CreditTopUp, g as CreditIncludedWindow, h as CreateCreditGrantInput, i as CreditGrantRequestResult, j as CreditPacks, k as CreateCreditPackInput, l as CreditPack, U as UpdateCreditPackInput, m as CreateCreditIncludedRuleInput, n as CreditIncludedRule, o as UpdateCreditIncludedRuleInput, p as CreditIncludedWindowListParams, q as CreateCreditTopUpInput, r as CreditTopUpRequestResult, s as CreditTopUpListParams, t as CreditBalance, u as CreditLedgerEntry, v as CreditUsageParams, w as CreditUsage } from './hosted-domains-Ci6jeNAe.cjs';
10
+ export { x as CreditAccountStatus, y as CreditAllocationInterval, C as CreditGrantKind, z as CreditMoney, A as CreditPackBreakdown, B as CreditPackListItem, D as CreditTopUpStatus, E as CreditTransactionType, F as CreditUsageGroupBy, G as CreditWindowState, H as HostedDomainActivatedData, d as HostedDomainDisabledData, b as HostedDomainDnsFailingData, I as HostedDomainEventBase, c as HostedDomainReassignmentPendingData, J as HostedDomainStatus, K as HostedDomainStatusReason, L as IncludedCredits, M as IncludedPeriod } from './hosted-domains-Ci6jeNAe.cjs';
11
11
  import 'zod';
12
12
 
13
13
  /**
14
14
  * The machine-readable error codes billow returns on `BillowApiError.code`. Mirrored from
15
- * `@billow/core`'s `BILLOW_ERROR_CODES` (the server's source of truth) — the SDK carries no
15
+ * `@billow/core`'s `BILLOW_ERROR_CODES` (the server's source of truth) - the SDK carries no
16
16
  * runtime dependency on core, so `error-codes.test.ts` asserts this list stays in lockstep.
17
17
  *
18
18
  * `switch` on these for programmatic handling (e.g. surface `rate_limited` vs `validation_error`
@@ -98,7 +98,7 @@ interface ProviderCredentialSummary {
98
98
  currency: string;
99
99
  config: Record<string, unknown>;
100
100
  }
101
- /** The editable view of one credential set — secret values are never returned. */
101
+ /** The editable view of one credential set - secret values are never returned. */
102
102
  interface CredentialSet {
103
103
  provider: string;
104
104
  currency: string;
@@ -134,7 +134,7 @@ interface BusinessProfile {
134
134
  logoUrl: string | null;
135
135
  /** Brand/accent color as `#RRGGBB` (PRD-11); null = billow's default accent. */
136
136
  brandColor: string | null;
137
- /** Org-default tax treatment (Phase E) — every taxable price inherits this. */
137
+ /** Org-default tax treatment (Phase E) - every taxable price inherits this. */
138
138
  taxEnabled: boolean;
139
139
  /** Default rate in basis points (1% = 100 bps), e.g. 1400 for Egypt's 14% VAT. */
140
140
  taxRateBps: number;
@@ -234,7 +234,7 @@ interface Paginated<T> {
234
234
  * size), so it is correct under concurrent inserts/deletes; a list that grows at its head pages
235
235
  * by cursor instead ({@link CursorListPromise}). The caller's {@link CallOptions} (`signal` /
236
236
  * `timeoutMs`) apply to EVERY page
237
- * fetch — an abort stops the walk mid-stream; `timeoutMs` is per page.
237
+ * fetch - an abort stops the walk mid-stream; `timeoutMs` is per page.
238
238
  *
239
239
  * A returned value is ONE walk: page 1 is cached on it (so `await` then `for await` on the same
240
240
  * value fetch page 1 once), which means iterating the same value again later reuses that first
@@ -353,7 +353,7 @@ interface CustomerUsage {
353
353
  allowance: number | null;
354
354
  /** Gross units used this period (sum of positive events in the period). */
355
355
  used: number;
356
- /** Units topped up this period — gross credit-backs (negative events). */
356
+ /** Units topped up this period - gross credit-backs (negative events). */
357
357
  added: number;
358
358
  /** Remaining = allowance + added − used; null = unlimited. May be negative (overage). */
359
359
  remaining: number | null;
@@ -431,7 +431,7 @@ interface SubscriptionListItem {
431
431
  scheduledChange: ScheduledSubscriptionChange | null;
432
432
  /** Renewals left before a limited-term subscription ends; null = open-ended. */
433
433
  remainingCycles: number | null;
434
- /** Failed-renewal retries run so far (PRD-06 dunning) — 0 until a renewal fails. */
434
+ /** Failed-renewal retries run so far (PRD-06 dunning) - 0 until a renewal fails. */
435
435
  dunningAttempts: number;
436
436
  /** ISO-8601 time the next dunning retry is due; null when not in dunning (PRD-09). */
437
437
  nextDunningAt: string | null;
@@ -471,7 +471,7 @@ interface EmailTemplateSetting {
471
471
  defaultSubject: string;
472
472
  /** The variables the subject/message may reference (without braces). */
473
473
  variables: string[];
474
- /** False for compliance-required templates (the receipt) — can't be disabled. */
474
+ /** False for compliance-required templates (the receipt) - can't be disabled. */
475
475
  canDisable: boolean;
476
476
  /** Subject override, or null when the default is in effect. */
477
477
  subject: string | null;
@@ -580,7 +580,7 @@ interface InvoiceListItem {
580
580
  currency: string;
581
581
  customerExternalId: string;
582
582
  subscriptionId: string | null;
583
- /** What the invoice is for — the plan name (subscriptions) or first line item. */
583
+ /** What the invoice is for - the plan name (subscriptions) or first line item. */
584
584
  reason: string | null;
585
585
  periodStart: string | null;
586
586
  periodEnd: string | null;
@@ -599,6 +599,7 @@ interface InvoiceListParams extends ListParams {
599
599
  }
600
600
  interface InvoiceDetail {
601
601
  invoice: Invoice;
602
+ /** In the order the invoice lists them (as its PDF and receipt email do). */
602
603
  lineItems: InvoiceLineItem[];
603
604
  }
604
605
  /** How an offline payment was collected (ADR-0026). `other` is the escape hatch. */
@@ -632,7 +633,7 @@ interface MetricsOverview {
632
633
  to: string;
633
634
  /** Monthly recurring revenue (minor units). */
634
635
  mrr: number;
635
- /** Annual recurring revenue (minor units) — `mrr × 12`. */
636
+ /** Annual recurring revenue (minor units) - `mrr × 12`. */
636
637
  arr: number;
637
638
  /** Cohort subscription churn over the window (0..1); null if none were active at its start. */
638
639
  churnRate: number | null;
@@ -696,7 +697,7 @@ interface Whoami {
696
697
  organizationId: string;
697
698
  organizationName: string | null;
698
699
  organizationSlug: string | null;
699
- /** The billing workspace the API key scopes to — what every resource belongs to. */
700
+ /** The billing workspace the API key scopes to - what every resource belongs to. */
700
701
  projectId: string;
701
702
  projectName: string | null;
702
703
  projectSlug: string | null;
@@ -924,7 +925,7 @@ interface CreatePortalSessionInput {
924
925
  customerId: string;
925
926
  /** Which surface to land on; defaults to the self-serve portal. */
926
927
  flow?: PortalSessionFlow;
927
- /** Product slug to subscribe to — required when `flow` is `checkout`. */
928
+ /** Product slug to subscribe to - required when `flow` is `checkout`. */
928
929
  productId?: string;
929
930
  /**
930
931
  * Where the surface returns the Customer when they finish or exit: an absolute `https` URL
@@ -942,7 +943,7 @@ interface PortalSession {
942
943
  id: string;
943
944
  url: string;
944
945
  flow: PortalSessionFlow;
945
- /** ISO-8601 expiry — the session (and its URL) stop working after this. */
946
+ /** ISO-8601 expiry - the session (and its URL) stop working after this. */
946
947
  expiresAt: string;
947
948
  }
948
949
  /** The single-use entry exchange's input (`BillowPortal.exchange`). */
@@ -1014,7 +1015,7 @@ interface PortalPlanChange {
1014
1015
  subscription: PortalSubscriptionStatus;
1015
1016
  /** Upgrade only: the proration invoice raised for the prorated delta, when non-zero. */
1016
1017
  prorationInvoiceId?: string;
1017
- /** Upgrade only: the proration charge's status (`succeeded`/`failed`/`processing`/`pending`) —
1018
+ /** Upgrade only: the proration charge's status (`succeeded`/`failed`/`processing`/`pending`) -
1018
1019
  * present when an immediate charge was raised, so a client can surface an unresolved payment. */
1019
1020
  chargeStatus?: string;
1020
1021
  }
@@ -1110,6 +1111,7 @@ interface CustomerDataExport {
1110
1111
  createdAt: string;
1111
1112
  updatedAt: string;
1112
1113
  }>;
1114
+ /** By invoice, each invoice's lines in the order it lists them. */
1113
1115
  invoiceLineItems: Array<{
1114
1116
  id: string;
1115
1117
  invoiceId: string;
@@ -1118,6 +1120,8 @@ interface CustomerDataExport {
1118
1120
  amount: number;
1119
1121
  quantity: number;
1120
1122
  currency: string;
1123
+ /** Where the line sits on its invoice, from 0. */
1124
+ position: number;
1121
1125
  createdAt: string;
1122
1126
  updatedAt: string;
1123
1127
  }>;
@@ -1186,6 +1190,8 @@ interface CustomerCreditsExport {
1186
1190
  reversals: CreditReversal[];
1187
1191
  /** Every quote made for the customer (even with no credit account), with its priced lines. */
1188
1192
  quotes: CreditQuote[];
1193
+ /** Every Included Credit Window of the customer's subscriptions, oldest first. */
1194
+ includedWindows: CreditIncludedWindow[];
1189
1195
  /** Every ledger transaction, in the order it was written, with its postings. */
1190
1196
  ledger: Array<{
1191
1197
  id: string;
@@ -1308,9 +1314,9 @@ interface WebhookEndpoint {
1308
1314
  createdAt: string;
1309
1315
  updatedAt: string;
1310
1316
  }
1311
- /** Returned once at create/rotate — carries the plaintext signing secret. */
1317
+ /** Returned once at create/rotate - carries the plaintext signing secret. */
1312
1318
  interface WebhookEndpointWithSecret extends WebhookEndpoint {
1313
- /** The HMAC signing secret — shown exactly once. Store it now; it is never listed again. */
1319
+ /** The HMAC signing secret - shown exactly once. Store it now; it is never listed again. */
1314
1320
  secret: string;
1315
1321
  }
1316
1322
  interface CreateWebhookEndpointInput {
@@ -1351,15 +1357,20 @@ declare class BillowApiError extends Error {
1351
1357
  readonly code: BillowErrorCode | (string & {});
1352
1358
  /** Structured error context from the server (e.g. per-field validation issues), when present. */
1353
1359
  readonly details?: unknown;
1354
- /** billow's per-request id (`x-request-id`) — quote it in a bug report to trace the server log. */
1360
+ /** billow's per-request id (`x-request-id`) - quote it in a bug report to trace the server log. */
1355
1361
  readonly requestId?: string | undefined;
1356
- constructor(status: number, code: BillowErrorCode | (string & {}), message: string, details?: unknown, requestId?: string);
1362
+ /**
1363
+ * How many seconds to wait before trying again, from the response's `Retry-After` header (sent
1364
+ * with a `429 rate_limited`); undefined when the response did not say.
1365
+ */
1366
+ readonly retryAfterSeconds?: number | undefined;
1367
+ constructor(status: number, code: BillowErrorCode | (string & {}), message: string, details?: unknown, requestId?: string, retryAfterSeconds?: number);
1357
1368
  }
1358
1369
  /** Everything a request needs: the transport, the base URL, the bearer, and resilience knobs. */
1359
1370
  interface RequestContext {
1360
1371
  fetch: typeof fetch;
1361
1372
  baseUrl: string;
1362
- /** The bearer — a secret/publishable API key, or a portal-session token. */
1373
+ /** The bearer - a secret/publishable API key, or a portal-session token. */
1363
1374
  bearer: string;
1364
1375
  timeoutMs: number;
1365
1376
  maxRetries: number;
@@ -1496,6 +1507,18 @@ declare function createCreditsResource(ctx: RequestContext): {
1496
1507
  */
1497
1508
  update: (ruleId: string, input: UpdateCreditIncludedRuleInput, options?: CallOptions) => Promise<CreditIncludedRule>;
1498
1509
  };
1510
+ includedWindows: {
1511
+ /**
1512
+ * The Included Credit Windows of one or more subscriptions (`subscription`, an id or a list
1513
+ * of up to 100), or of a customer (`customer`, by external id) - newest first: what each
1514
+ * period Billow granted includes (the whole period, each month of it under a monthly rule,
1515
+ * or a trial), how far it was issued, and its `state`. With `current: true`, only each
1516
+ * subscription's latest window that has started - what it stands at now. Auto-paginating by
1517
+ * cursor: `await` the first page, `for await (…)` every window, or `.listAll()` to collect
1518
+ * them.
1519
+ */
1520
+ list: (params: CreditIncludedWindowListParams, options?: CallOptions) => CursorListPromise<CreditIncludedWindow>;
1521
+ };
1499
1522
  topUps: {
1500
1523
  /**
1501
1524
  * Buy a Credit Pack for a customer: answers the top-up with `checkoutUrl`, the hosted
@@ -1709,7 +1732,7 @@ declare function createHostedDomainsResource(ctx: RequestContext): {
1709
1732
  hostnameUnicode: string;
1710
1733
  environment: "live";
1711
1734
  status: "failed" | "active" | "pending_verification" | "verified" | "disabled";
1712
- statusReason: "verification_expired" | "tls_unavailable" | "edge_blocked" | "dns_lost" | "reassigned" | "entitlement_lapsed" | "suspended" | null;
1735
+ statusReason: "suspended" | "verification_expired" | "tls_unavailable" | "edge_blocked" | "dns_lost" | "reassigned" | "entitlement_lapsed" | null;
1713
1736
  isPrimary: boolean;
1714
1737
  records: {
1715
1738
  type: "TXT" | "CNAME";
@@ -1766,7 +1789,7 @@ declare function createHostedDomainsResource(ctx: RequestContext): {
1766
1789
  hostnameUnicode: string;
1767
1790
  environment: "live";
1768
1791
  status: "failed" | "active" | "pending_verification" | "verified" | "disabled";
1769
- statusReason: "verification_expired" | "tls_unavailable" | "edge_blocked" | "dns_lost" | "reassigned" | "entitlement_lapsed" | "suspended" | null;
1792
+ statusReason: "suspended" | "verification_expired" | "tls_unavailable" | "edge_blocked" | "dns_lost" | "reassigned" | "entitlement_lapsed" | null;
1770
1793
  isPrimary: boolean;
1771
1794
  records: {
1772
1795
  type: "TXT" | "CNAME";
@@ -1814,7 +1837,7 @@ declare function createHostedDomainsResource(ctx: RequestContext): {
1814
1837
  hostnameUnicode: string;
1815
1838
  environment: "live";
1816
1839
  status: "failed" | "active" | "pending_verification" | "verified" | "disabled";
1817
- statusReason: "verification_expired" | "tls_unavailable" | "edge_blocked" | "dns_lost" | "reassigned" | "entitlement_lapsed" | "suspended" | null;
1840
+ statusReason: "suspended" | "verification_expired" | "tls_unavailable" | "edge_blocked" | "dns_lost" | "reassigned" | "entitlement_lapsed" | null;
1818
1841
  isPrimary: boolean;
1819
1842
  records: {
1820
1843
  type: "TXT" | "CNAME";
@@ -1863,7 +1886,7 @@ declare function createHostedDomainsResource(ctx: RequestContext): {
1863
1886
  hostnameUnicode: string;
1864
1887
  environment: "live";
1865
1888
  status: "failed" | "active" | "pending_verification" | "verified" | "disabled";
1866
- statusReason: "verification_expired" | "tls_unavailable" | "edge_blocked" | "dns_lost" | "reassigned" | "entitlement_lapsed" | "suspended" | null;
1889
+ statusReason: "suspended" | "verification_expired" | "tls_unavailable" | "edge_blocked" | "dns_lost" | "reassigned" | "entitlement_lapsed" | null;
1867
1890
  isPrimary: boolean;
1868
1891
  records: {
1869
1892
  type: "TXT" | "CNAME";
@@ -1912,7 +1935,7 @@ declare function createHostedDomainsResource(ctx: RequestContext): {
1912
1935
  hostnameUnicode: string;
1913
1936
  environment: "live";
1914
1937
  status: "failed" | "active" | "pending_verification" | "verified" | "disabled";
1915
- statusReason: "verification_expired" | "tls_unavailable" | "edge_blocked" | "dns_lost" | "reassigned" | "entitlement_lapsed" | "suspended" | null;
1938
+ statusReason: "suspended" | "verification_expired" | "tls_unavailable" | "edge_blocked" | "dns_lost" | "reassigned" | "entitlement_lapsed" | null;
1916
1939
  isPrimary: boolean;
1917
1940
  records: {
1918
1941
  type: "TXT" | "CNAME";
@@ -1987,7 +2010,7 @@ declare function createInvoicesResource(ctx: RequestContext): {
1987
2010
  receipt: (id: string, options?: CallOptions) => Promise<ArrayBuffer>;
1988
2011
  };
1989
2012
 
1990
- /** The marketplace Integration catalog — install / configure / toggle / uninstall (ADR-0008). */
2013
+ /** The marketplace Integration catalog - install / configure / toggle / uninstall (ADR-0008). */
1991
2014
  declare function createMarketplaceResource(ctx: RequestContext): {
1992
2015
  /** Every available Integration with this tenant's install state (no secret values). */
1993
2016
  catalog: (options?: CallOptions) => Promise<CatalogItem[]>;
@@ -2192,7 +2215,7 @@ declare function createProductsResource(ctx: RequestContext): {
2192
2215
  };
2193
2216
 
2194
2217
  /**
2195
- * Organization settings (Phase D3, F) — the configurable dunning schedule, usage settlement grace,
2218
+ * Organization settings (Phase D3, F) - the configurable dunning schedule, usage settlement grace,
2196
2219
  * the cross-currency reporting currency + FX-rate registry (ADR-0013), and transactional email
2197
2220
  * template overrides (PRD-10). All secret-key/server-side surface.
2198
2221
  */
@@ -2211,7 +2234,7 @@ declare function createSettingsResource(ctx: RequestContext): {
2211
2234
  };
2212
2235
  /**
2213
2236
  * Usage settlement grace (hours): defers *collection* of a boundary-adjacent priced
2214
- * calendar-meter renewal past the tz month boundary until late usage settles — the billed
2237
+ * calendar-meter renewal past the tz month boundary until late usage settles - the billed
2215
2238
  * windows/amount are unchanged, only the invoice timing shifts. `0` disables it (the default);
2216
2239
  * a no-op for any subscription without a priced calendar meter. Cap 72h.
2217
2240
  */
@@ -2403,7 +2426,7 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
2403
2426
  productSlug: string;
2404
2427
  productMetadata: Record<string, string>;
2405
2428
  } | null>;
2406
- /** Cancel — immediately, or at period end with `{ atPeriodEnd: true }`. */
2429
+ /** Cancel - immediately, or at period end with `{ atPeriodEnd: true }`. */
2407
2430
  cancel: (id: string, opts?: {
2408
2431
  atPeriodEnd?: boolean;
2409
2432
  }) => Promise<{
@@ -2451,6 +2474,10 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
2451
2474
  defaultPaymentMethodId: string | null;
2452
2475
  createdAt: string;
2453
2476
  }>;
2477
+ /**
2478
+ * Pause an active or trialing subscription: no renewals and no access until it is resumed.
2479
+ * Refused while one of its invoices is still being collected.
2480
+ */
2454
2481
  pause: (id: string) => Promise<{
2455
2482
  id: string;
2456
2483
  status: "active" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "paused" | "canceled" | "unpaid";
@@ -2473,6 +2500,13 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
2473
2500
  defaultPaymentMethodId: string | null;
2474
2501
  createdAt: string;
2475
2502
  }>;
2503
+ /**
2504
+ * Resume a paused subscription. Paused time is never billed: resumed before its paid period
2505
+ * ends, it carries on and renews at `currentPeriodEnd`; resumed after, a fresh full period
2506
+ * starts now and is charged at once like a renewal, with the ended period's usage (a decline
2507
+ * returns it `past_due`). Usage recorded while paused is never billed. A paused trial resumes
2508
+ * `trialing`. Duplicate calls are safe.
2509
+ */
2476
2510
  resume: (id: string) => Promise<{
2477
2511
  id: string;
2478
2512
  status: "active" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "paused" | "canceled" | "unpaid";
@@ -2501,7 +2535,7 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
2501
2535
  couponId: string;
2502
2536
  cyclesRemaining: number | null;
2503
2537
  }>;
2504
- /** Change plan — immediate prorated upgrade, or downgrade scheduled for period end. `productId` accepts the product's id or slug. */
2538
+ /** Change plan - immediate prorated upgrade, or downgrade scheduled for period end. `productId` accepts the product's id or slug. */
2505
2539
  changePlan: (id: string, productId: string) => Promise<{
2506
2540
  id: string;
2507
2541
  status: "active" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "paused" | "canceled" | "unpaid";
@@ -2609,14 +2643,14 @@ declare function createWebhookEndpointsResource(ctx: RequestContext): {
2609
2643
  update: (id: string, input: UpdateWebhookEndpointInput) => Promise<WebhookEndpoint>;
2610
2644
  /** Delete an endpoint and its delivery history. */
2611
2645
  delete: (id: string) => Promise<void>;
2612
- /** Rotate the signing secret — the new plaintext is returned once. */
2646
+ /** Rotate the signing secret - the new plaintext is returned once. */
2613
2647
  rotateSecret: (id: string) => Promise<WebhookEndpointWithSecret>;
2614
2648
  /** List delivery attempts for an endpoint (newest first). Auto-paginating. */
2615
2649
  deliveries: (id: string, params?: ListParams, options?: CallOptions) => ListPromise<WebhookDelivery>;
2616
2650
  };
2617
2651
 
2618
2652
  /**
2619
- * billow client SDK — the "two lines of code" surface, mirroring Autumn's shape
2653
+ * billow client SDK - the "two lines of code" surface, mirroring Autumn's shape
2620
2654
  * (CONTEXT/ARCHITECTURE §10). A thin typed wrapper over the billow REST API.
2621
2655
  *
2622
2656
  * const billow = new Billow(process.env.BILLOW_SECRET_KEY!);
@@ -2655,7 +2689,7 @@ declare class Billow {
2655
2689
  /** Custom domains for the hosted customer portal (live keys, behind a rollout flag). */
2656
2690
  hostedDomains: ReturnType<typeof createHostedDomainsResource>;
2657
2691
  /**
2658
- * Organization settings (Phase D3, F) — the configurable dunning schedule, usage settlement grace,
2692
+ * Organization settings (Phase D3, F) - the configurable dunning schedule, usage settlement grace,
2659
2693
  * and the cross-currency reporting currency + FX-rate registry (ADR-0013).
2660
2694
  */
2661
2695
  settings: ReturnType<typeof createSettingsResource>;
@@ -2663,12 +2697,12 @@ declare class Billow {
2663
2697
  coupons: {
2664
2698
  /** Define a coupon (a reusable discount template). */
2665
2699
  create: (input: CreateCouponInput) => Promise<Coupon>;
2666
- /** List coupons (secret key only — enumerates live promo codes). Auto-paginating. */
2700
+ /** List coupons (secret key only - enumerates live promo codes). Auto-paginating. */
2667
2701
  list: (params?: ListParams, options?: CallOptions) => ListPromise<Coupon>;
2668
2702
  /** Deactivate a coupon (existing discounts keep running). */
2669
2703
  deactivate: (id: string) => Promise<Coupon>;
2670
2704
  };
2671
- /** Manage developer webhook endpoints — register, rotate secrets, inspect deliveries.
2705
+ /** Manage developer webhook endpoints - register, rotate secrets, inspect deliveries.
2672
2706
  * (To VERIFY incoming deliveries, import `constructEvent` from `@usebillow/sdk/webhooks`.) */
2673
2707
  features: {
2674
2708
  /** Define a feature (a boolean access gate, or a metered feature with a meter). */
@@ -2679,7 +2713,7 @@ declare class Billow {
2679
2713
  meter?: MeterConfig;
2680
2714
  }) => Promise<Feature>;
2681
2715
  /**
2682
- * Edit a feature in place: its `name`, and — for a metered feature — its `meter`
2716
+ * Edit a feature in place: its `name`, and - for a metered feature - its `meter`
2683
2717
  * aggregation. The server refuses a meter change once usage has been recorded (it
2684
2718
  * would rewrite billed history), so set the meter right at create time or before you
2685
2719
  * start tracking. Returns the updated feature.
@@ -2713,7 +2747,7 @@ declare class Billow {
2713
2747
  * choose a credential set and `target` to probe one verify target (Paymob: a
2714
2748
  * method); pass `sampleToken` (SANDBOX ONLY) to run a functional sub-test.
2715
2749
  * This probe hits the provider's live API (mutates nothing here), so it takes a
2716
- * per-call {@link CallOptions} for a timeout / cancellation — `opts` is spread into
2750
+ * per-call {@link CallOptions} for a timeout / cancellation - `opts` is spread into
2717
2751
  * the body, so `options` stays a separate trailing arg (never merged in).
2718
2752
  */
2719
2753
  verify: (provider: string, opts?: {
@@ -2733,7 +2767,7 @@ declare class Billow {
2733
2767
  }>;
2734
2768
  };
2735
2769
  };
2736
- /** The merchant's business identity — the seller block on documents and email from-name. */
2770
+ /** The merchant's business identity - the seller block on documents and email from-name. */
2737
2771
  businessProfile: {
2738
2772
  /** The stored profile, or null if one was never saved. */
2739
2773
  get: (options?: CallOptions) => Promise<BusinessProfile | null>;
@@ -2742,11 +2776,11 @@ declare class Billow {
2742
2776
  };
2743
2777
  /**
2744
2778
  * Hosted customer surfaces (Phase G, ADR-0014). Mint a portal session for one of
2745
- * your signed-in users and redirect them to the returned `url` — the self-serve
2779
+ * your signed-in users and redirect them to the returned `url` - the self-serve
2746
2780
  * portal, or a `checkout` hand-off for `productId`. The Customer's own calls go
2747
2781
  * through {@link BillowPortal}, constructed with the session token.
2748
2782
  */
2749
- /** Identity of this key's tenant — org, environment, configured currencies. */
2783
+ /** Identity of this key's tenant - org, environment, configured currencies. */
2750
2784
  me(options?: CallOptions): Promise<Whoami>;
2751
2785
  /**
2752
2786
  * Global search (PRD-12) across customers, invoices, subscriptions, and charges
@@ -2756,7 +2790,7 @@ declare class Billow {
2756
2790
  search(q: string, limit?: number, options?: CallOptions): Promise<SearchResults>;
2757
2791
  /**
2758
2792
  * Gate access to a feature. `featureId` is the feature slug. Returns
2759
- * `{ allowed, balance }` — `balance` is `null` for unlimited/boolean features.
2793
+ * `{ allowed, balance }` - `balance` is `null` for unlimited/boolean features.
2760
2794
  */
2761
2795
  check(input: {
2762
2796
  customerId: string;
@@ -2764,14 +2798,14 @@ declare class Billow {
2764
2798
  }, options?: CallOptions): Promise<CheckResult>;
2765
2799
  /**
2766
2800
  * Record usage of a metered feature (`value` defaults to 1; negative credits
2767
- * back). Pass `idempotencyKey` to make a retried call a no-op — which also makes the call
2801
+ * back). Pass `idempotencyKey` to make a retried call a no-op - which also makes the call
2768
2802
  * safe to retry automatically when `maxRetries` is set.
2769
2803
  */
2770
2804
  track(input: {
2771
2805
  customerId: string;
2772
2806
  featureId: string;
2773
2807
  value?: number;
2774
- /** Arbitrary event properties — used by meter filters and property-based aggregations. */
2808
+ /** Arbitrary event properties - used by meter filters and property-based aggregations. */
2775
2809
  properties?: Record<string, string | number>;
2776
2810
  idempotencyKey?: string;
2777
2811
  /**
@@ -2791,7 +2825,7 @@ declare class Billow {
2791
2825
  /**
2792
2826
  * The browser-safe client: construct it with a **publishable** key (`bl_<env>_pk_…`)
2793
2827
  * to read the public catalog from any origin (CORS-enabled). It exposes ONLY public,
2794
- * project-scoped reads — products and their prices — so it is safe to ship in a
2828
+ * project-scoped reads - products and their prices - so it is safe to ship in a
2795
2829
  * frontend bundle. Customer-scoped data (entitlements, checkout) is never reachable
2796
2830
  * with a publishable key; use the server handler or a portal session for that.
2797
2831
  */
@@ -2799,7 +2833,7 @@ declare class BillowPublishable {
2799
2833
  #private;
2800
2834
  constructor(publishableKey: string, opts?: BillowOptions);
2801
2835
  products: {
2802
- /** The active catalog — products and their prices, for a pricing table. */
2836
+ /** The active catalog - products and their prices, for a pricing table. */
2803
2837
  list: (options?: CallOptions) => Promise<{
2804
2838
  id: string;
2805
2839
  slug: string;
@@ -2876,13 +2910,13 @@ declare class BillowPublishable {
2876
2910
  /**
2877
2911
  * The customer-surface client (Phase G, ADR-0014): construct it with a portal
2878
2912
  * session token (minted by your backend via `billow.portalSessions.create`) to act
2879
- * as that one Customer. It exposes only their own data — no operator/secret-key
2880
- * surface — so the token can be held by a hosted portal app safely.
2913
+ * as that one Customer. It exposes only their own data - no operator/secret-key
2914
+ * surface - so the token can be held by a hosted portal app safely.
2881
2915
  */
2882
2916
  declare class BillowPortal {
2883
2917
  #private;
2884
2918
  constructor(sessionToken: string, opts?: BillowOptions);
2885
- /** The portal shell: flow, return URL, merchant brand, and customer identity —
2919
+ /** The portal shell: flow, return URL, merchant brand, and customer identity -
2886
2920
  * the lightweight payload the hosting app frames every page with, and the
2887
2921
  * validate-and-route check at login. */
2888
2922
  session(options?: CallOptions): Promise<PortalSessionInfo>;
@@ -2973,4 +3007,4 @@ declare class BillowPortal {
2973
3007
  };
2974
3008
  }
2975
3009
 
2976
- export { AttachResult, BILLOW_ERROR_CODES, Billow, BillowApiError, type BillowErrorCode, BillowOptions, BillowPortal, BillowPublishable, type BusinessProfile, CallOptions, type CatalogItem, Charge, type ChargeListItem, type ChargeListParams, type ChargeSearchHit, ChargeStatus, CheckResult, type CheckoutMethodInfo, type ConfigField, type ConfigFieldOption, type ConfigFieldType, Coupon, CreateChargeInput, CreateCouponInput, CreateCreditGrantInput, CreateCreditIncludedRuleInput, CreateCreditPackInput, type CreateCreditQuoteInput, type CreateCreditReservationInput, CreateCreditTopUpInput, CreateHostedDomainInput, CreateMerchantInitiatedChargeInput, type CreatePortalSessionInput, CreateProductInput, CreateSubscriptionInput, CreateUsageAlertInput, type CreateWebhookEndpointInput, type CredentialSet, CreditBalance, type CreditDimensions, CreditGrant, CreditGrantRequestResult, CreditIncludedRule, CreditLedgerEntry, type CreditLineItem, CreditPack, CreditPacks, type CreditPricedLine, type CreditQuote, type CreditRateCard, type CreditRateCardItem, type CreditReservation, type CreditReservationListParams, type CreditReservationPage, type CreditReservationRequestResult, type CreditReservationStatus, type CreditReversal, type CreditReversalRequestResult, CreditThresholdLevel, CreditTopUp, CreditTopUpListParams, CreditTopUpRequestResult, CreditUsage, CreditUsageParams, type CursorListParams, type CursorListPromise, type CursorPaginated, Customer, type CustomerAnonymizationResult, type CustomerCreditsExport, type CustomerDataExport, type CustomerListItem, type CustomerListParams, type CustomerOverview, type CustomerSearchHit, type CustomerUsage, type CustomerUsageDetail, type EmailDeliveryListItem, type EmailDeliveryListParams, type EmailDeliveryStatus, type EmailTemplateSetting, EntitlementView, type ExchangeRate, type ExportJsonValue, type ExternalPaymentMethod, type ExternalPaymentResult, Feature, FeatureKind, IdempotentRequestOptions, type InboundWebhookListItem, type InboundWebhookListParams, type InboundWebhookOutcome, type IntegrationDefinition, type IntegrationKind, type IntegrationTier, type Invoice, type InvoiceDetail, type InvoiceLineItem, type InvoiceListItem, type InvoiceListParams, type InvoiceSearchHit, InvoiceStatus, type ListParams, type ListPromise, MeterConfig, type MetricsOverview, type MetricsParams, type MetricsRollup, MigrationResult, type OutboxEventListItem, type OutboxEventListParams, type OutboxEventStatus, type Paginated, PayInvoiceInput, type PaymentMethod, PaymentMethodStatus, type PaymentProviderDefinition, type PortalCardSetupResult, type PortalCheckout, type PortalPlanChange, type PortalSession, type PortalSessionExchange, type PortalSessionExchangeInput, type PortalSessionFlow, type PortalSessionInfo, type PortalSubscriptionStatus, type PortalView, type ProviderCredentialSummary, type ProviderVerifyResult, type ProviderVerifyTarget, type ProviderVerifyTargetResult, type PublishCreditRateCardInput, type RecordExternalPaymentInput, type Refund, type RefundChargeInput, type RefundRequestResult, type RefundReviewReason, RefundStatus, RequestOptions, type ResolveRefundInput, type ReverseCreditConsumptionInput, SavedPaymentMethod, type ScheduledSubscriptionChange, type SearchResults, type SubscriptionListItem, type SubscriptionListParams, type SubscriptionSearchHit, SubscriptionStatus, TaxBehavior, type TimeseriesInterval, type TimeseriesMetric, type TimeseriesParams, type TimeseriesPoint, type TimeseriesResult, TrackResult, UnappliedPaymentReason, type UpdateBusinessProfileInput, UpdateCreditIncludedRuleInput, UpdateCreditPackInput, type UpdateEmailTemplateInput, UpdateFeatureInput, UpdateProductInput, type UpdateWebhookEndpointInput, type UpsertCredentialsInput, UsageAlert, type WebhookDelivery, WebhookDeliveryStatus, type WebhookEndpoint, type WebhookEndpointWithSecret, type Whoami, currencyExponent, formatMoney, isSecretField, toMajorUnits, toMinorUnits };
3010
+ export { AttachResult, BILLOW_ERROR_CODES, Billow, BillowApiError, type BillowErrorCode, BillowOptions, BillowPortal, BillowPublishable, type BusinessProfile, CallOptions, type CatalogItem, Charge, type ChargeListItem, type ChargeListParams, type ChargeSearchHit, ChargeStatus, CheckResult, type CheckoutMethodInfo, type ConfigField, type ConfigFieldOption, type ConfigFieldType, Coupon, CreateChargeInput, CreateCouponInput, CreateCreditGrantInput, CreateCreditIncludedRuleInput, CreateCreditPackInput, type CreateCreditQuoteInput, type CreateCreditReservationInput, CreateCreditTopUpInput, CreateHostedDomainInput, CreateMerchantInitiatedChargeInput, type CreatePortalSessionInput, CreateProductInput, CreateSubscriptionInput, CreateUsageAlertInput, type CreateWebhookEndpointInput, type CredentialSet, CreditBalance, type CreditDimensions, CreditGrant, CreditGrantRequestResult, CreditIncludedRule, CreditIncludedWindow, CreditIncludedWindowListParams, CreditLedgerEntry, type CreditLineItem, CreditPack, CreditPacks, type CreditPricedLine, type CreditQuote, type CreditRateCard, type CreditRateCardItem, type CreditReservation, type CreditReservationListParams, type CreditReservationPage, type CreditReservationRequestResult, type CreditReservationStatus, type CreditReversal, type CreditReversalRequestResult, CreditThresholdLevel, CreditTopUp, CreditTopUpListParams, CreditTopUpRequestResult, CreditUsage, CreditUsageParams, type CursorListParams, type CursorListPromise, type CursorPaginated, Customer, type CustomerAnonymizationResult, type CustomerCreditsExport, type CustomerDataExport, type CustomerListItem, type CustomerListParams, type CustomerOverview, type CustomerSearchHit, type CustomerUsage, type CustomerUsageDetail, type EmailDeliveryListItem, type EmailDeliveryListParams, type EmailDeliveryStatus, type EmailTemplateSetting, EntitlementView, type ExchangeRate, type ExportJsonValue, type ExternalPaymentMethod, type ExternalPaymentResult, Feature, FeatureKind, IdempotentRequestOptions, type InboundWebhookListItem, type InboundWebhookListParams, type InboundWebhookOutcome, type IntegrationDefinition, type IntegrationKind, type IntegrationTier, type Invoice, type InvoiceDetail, type InvoiceLineItem, type InvoiceListItem, type InvoiceListParams, type InvoiceSearchHit, InvoiceStatus, type ListParams, type ListPromise, MeterConfig, type MetricsOverview, type MetricsParams, type MetricsRollup, MigrationResult, type OutboxEventListItem, type OutboxEventListParams, type OutboxEventStatus, type Paginated, PayInvoiceInput, type PaymentMethod, PaymentMethodStatus, type PaymentProviderDefinition, type PortalCardSetupResult, type PortalCheckout, type PortalPlanChange, type PortalSession, type PortalSessionExchange, type PortalSessionExchangeInput, type PortalSessionFlow, type PortalSessionInfo, type PortalSubscriptionStatus, type PortalView, type ProviderCredentialSummary, type ProviderVerifyResult, type ProviderVerifyTarget, type ProviderVerifyTargetResult, type PublishCreditRateCardInput, type RecordExternalPaymentInput, type Refund, type RefundChargeInput, type RefundRequestResult, type RefundReviewReason, RefundStatus, RequestOptions, type ResolveRefundInput, type ReverseCreditConsumptionInput, SavedPaymentMethod, type ScheduledSubscriptionChange, type SearchResults, type SubscriptionListItem, type SubscriptionListParams, type SubscriptionSearchHit, SubscriptionStatus, TaxBehavior, type TimeseriesInterval, type TimeseriesMetric, type TimeseriesParams, type TimeseriesPoint, type TimeseriesResult, TrackResult, UnappliedPaymentReason, type UpdateBusinessProfileInput, UpdateCreditIncludedRuleInput, UpdateCreditPackInput, type UpdateEmailTemplateInput, UpdateFeatureInput, UpdateProductInput, type UpdateWebhookEndpointInput, type UpsertCredentialsInput, UsageAlert, type WebhookDelivery, WebhookDeliveryStatus, type WebhookEndpoint, type WebhookEndpointWithSecret, type Whoami, currencyExponent, formatMoney, isSecretField, toMajorUnits, toMinorUnits };