@delopay/sdk 0.104.0 → 0.105.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/dist/index.d.ts CHANGED
@@ -4707,6 +4707,20 @@ interface DrillPayment {
4707
4707
  country?: string | null;
4708
4708
  /** IP-resolved city, when GeoLite2 had one. */
4709
4709
  city?: string | null;
4710
+ /**
4711
+ * Subscription this row belongs to. Set only by the subscription drill; its
4712
+ * presence is what tells a client to link the row at the subscription
4713
+ * rather than at the payment.
4714
+ */
4715
+ subscription_id?: string | null;
4716
+ /** Invoice (billing cycle) this row is. Subscription drill only. */
4717
+ invoice_id?: string | null;
4718
+ /**
4719
+ * The invoice's own status, which is not the payment's: a cycle can be
4720
+ * `PaymentFailed` while no payment row exists at all. Subscription drill
4721
+ * only.
4722
+ */
4723
+ invoice_status?: string | null;
4710
4724
  }
4711
4725
  /** The geo drill-through list. */
4712
4726
  interface DrillResponse {
@@ -4717,6 +4731,334 @@ interface DrillResponse {
4717
4731
  /** Full match count (may exceed payments.length). */
4718
4732
  total: number;
4719
4733
  }
4734
+ /** Query for the subscription-analytics endpoint. */
4735
+ interface SubscriptionAnalyticsRequest {
4736
+ /** Trailing days for a rolling window ending now. Default 7, capped at 92. */
4737
+ days?: number | null;
4738
+ /** Naive ISO 8601 datetime for the window start (custom range; span ≤ 92 days). */
4739
+ start_date?: string | null;
4740
+ /** Naive ISO 8601 datetime for the inclusive last day. Defaults to now. */
4741
+ end_date?: string | null;
4742
+ /** Scope to a single merchant. Ignored (server-pinned) on the merchant route. */
4743
+ merchant_id?: string | null;
4744
+ /** Scope to one project's shops. */
4745
+ project_id?: string | null;
4746
+ /** Scope to a single shop; wins over project_id. */
4747
+ shop_id?: string | null;
4748
+ /** `false` = live only, `true` = test only. Omit for both. */
4749
+ test_mode?: boolean | null;
4750
+ /**
4751
+ * Day only. Any other value is rejected rather than downgraded: a billing
4752
+ * cycle carries day resolution at best, so an hourly series over `invoice`
4753
+ * would chart when a scheduler ran.
4754
+ */
4755
+ granularity?: 'day' | null;
4756
+ /**
4757
+ * Comma-separated blocks to compute; omit for all. Tokens: `totals`,
4758
+ * `series`, `movement`, `processors`, `plans`, `outcomes`, `children`,
4759
+ * `previous`. A block you did not ask for comes back empty, zeroed or
4760
+ * `null` — never stale — so a single card placed on another page can load
4761
+ * itself without paying for the whole dashboard.
4762
+ */
4763
+ sections?: string | null;
4764
+ /**
4765
+ * Restrict to subscriptions charged from one country (ISO alpha-2). Narrows
4766
+ * the population to subscriptions with at least one matching invoice in the
4767
+ * window — see `FilterNarrowsToChargedSubscriptions`.
4768
+ */
4769
+ country?: string | null;
4770
+ /** Which country claim the filter matches: `"ip"` (default) or `"billing"`. */
4771
+ country_source?: string | null;
4772
+ /** `phone` | `tablet` | `desktop` | `unknown`. */
4773
+ device_class?: string | null;
4774
+ }
4775
+ /** Known ways a figure in the subscription response is not the whole truth. */
4776
+ type SubscriptionCaveat =
4777
+ /** An active subscription has one invoice, so no cadence could be read from
4778
+ * its own history. Excluded from every estimate rather than guessed at. */
4779
+ 'CadenceUnknownExcluded'
4780
+ /**
4781
+ * At least one cycle was recorded at zero and left out of volume, of
4782
+ * revenue-per-subscription and of cadence inference.
4783
+ *
4784
+ * Named for what was observed, not why: a zero is written both by a
4785
+ * processor-hosted origination and by a genuinely free renewal, and nothing
4786
+ * stored tells them apart.
4787
+ */
4788
+ | 'ZeroAmountCyclesExcluded'
4789
+ /** An invoice had no usable reporting rate for its own day and was left out,
4790
+ * so the converted totals are a lower bound. */
4791
+ | 'FxIncomplete'
4792
+ /** There is no subscription status history, so churn is timed from the last
4793
+ * accepted processor status event. */
4794
+ | 'ChurnTimingFromConnectorEvent'
4795
+ /** A country/device filter can only match cycles that reached a payment
4796
+ * carrying a client-context observation. */
4797
+ | 'FilterRequiresClientContext'
4798
+ /** Under a filter the subscription counts describe subscriptions with a
4799
+ * matching invoice in this window — a narrower population than "active". */
4800
+ | 'FilterNarrowsToChargedSubscriptions'
4801
+ /** The filter reads fraud-collected signals, which the purpose gate forbids.
4802
+ * It was refused and the response is unfiltered. */
4803
+ | 'FilterRefusedOptimisationUseDisabled'
4804
+ /** The window contains no subscription activity at all. */
4805
+ | 'NoSubscriptionsInWindow';
4806
+ /** Echo of the filters actually applied. */
4807
+ interface SubscriptionFilters {
4808
+ country?: string | null;
4809
+ country_source?: string | null;
4810
+ device_class?: string | null;
4811
+ }
4812
+ /**
4813
+ * Headline figures. Volumes are USD major units; counts are exact.
4814
+ *
4815
+ * **Stocks** (`est_*`, `active`, `trial`, `paused`, `unpaid_subscriptions`,
4816
+ * `arpa_usd`) are as at the end of the window. **Flows** are sums over it.
4817
+ */
4818
+ interface SubscriptionTotals {
4819
+ /** Stock. Estimated recurring volume per month for the scope. */
4820
+ est_monthly_volume_usd: number;
4821
+ /** Stock. `est_monthly_volume_usd × 12`, carried so every client agrees. */
4822
+ est_annual_volume_usd: number;
4823
+ /** Stock. */
4824
+ active: number;
4825
+ /** Stock. */
4826
+ trial: number;
4827
+ /** Stock. */
4828
+ paused: number;
4829
+ /** Stock. */
4830
+ unpaid_subscriptions: number;
4831
+ /** Flow. Gross settled invoice volume in the window. */
4832
+ billed_volume_usd: number;
4833
+ /** Flow. Reported beside the gross, never subtracted from it. */
4834
+ refunded_usd: number;
4835
+ /** Flow. */
4836
+ invoices_raised: number;
4837
+ /** Flow. Settled, first attempt or later. */
4838
+ invoices_paid: number;
4839
+ /** Flow. Entered retry, settled or not. */
4840
+ invoices_retried: number;
4841
+ /** Flow. Failed at least once and settled afterwards. */
4842
+ invoices_recovered: number;
4843
+ /** Flow. Still unpaid at window end. */
4844
+ invoices_unpaid: number;
4845
+ /** 0–100. `null` when nothing was raised — a rate over no invoices is not zero. */
4846
+ renewal_success_rate?: number | null;
4847
+ /** Flow. */
4848
+ new_subscriptions: number;
4849
+ /** Flow. */
4850
+ cancelled_subscriptions: number;
4851
+ /** 0–100. `null` when nothing was active to churn. */
4852
+ churn_rate?: number | null;
4853
+ /** Stock. `est_monthly_volume_usd / active`. */
4854
+ arpa_usd?: number | null;
4855
+ }
4856
+ /** One bucket of the series — always a calendar day. */
4857
+ interface SubscriptionBucket {
4858
+ /** `YYYY-MM-DD`. */
4859
+ bucket: string;
4860
+ /** Stock as at the end of this bucket. */
4861
+ est_monthly_volume_usd: number;
4862
+ /** Stock as at the end of this bucket. */
4863
+ active: number;
4864
+ /** Flow within this bucket. */
4865
+ billed_volume_usd: number;
4866
+ /** Flow. Cycles that settled for a subscription that already had one. */
4867
+ renewed: number;
4868
+ /** Flow. */
4869
+ new_subscriptions: number;
4870
+ /** Flow. */
4871
+ failed: number;
4872
+ /** Flow. */
4873
+ cancelled: number;
4874
+ }
4875
+ /**
4876
+ * What moved recurring volume between the previous window and this one.
4877
+ * `opening + new + expansion − contraction − churn = closing`.
4878
+ */
4879
+ interface SubscriptionMovement {
4880
+ opening_usd: number;
4881
+ closing_usd: number;
4882
+ net_usd: number;
4883
+ /** A subscription's first ever invoice. */
4884
+ new_usd: number;
4885
+ new_count: number;
4886
+ /** A renewal billed above the same subscription's previous cycle. */
4887
+ expansion_usd: number;
4888
+ expansion_count: number;
4889
+ /** A renewal billed below the same subscription's previous cycle. */
4890
+ contraction_usd: number;
4891
+ contraction_count: number;
4892
+ churn_usd: number;
4893
+ churn_count: number;
4894
+ /** 0–100. `null` when opening was zero. */
4895
+ nrr?: number | null;
4896
+ /** 0–100. `null` when opening was zero. */
4897
+ grr?: number | null;
4898
+ }
4899
+ /** One processor's share, on either axis. */
4900
+ interface ProcessorSlice {
4901
+ /** Connector token as stored (`stripebilling`, `creem`, `paypal`, …). */
4902
+ key: string;
4903
+ /** Stock. */
4904
+ est_monthly_volume_usd: number;
4905
+ /** Flow. */
4906
+ billed_volume_usd: number;
4907
+ /** Stock. */
4908
+ subscriptions: number;
4909
+ }
4910
+ /**
4911
+ * The two processor axes. They diverge exactly where the billing connector
4912
+ * cannot take money itself: a Recurly subscription charged through Stripe
4913
+ * appears under Recurly in `billing` and Stripe in `charging`.
4914
+ */
4915
+ interface SubscriptionProcessors {
4916
+ /** Grouped by `subscription.billing_processor`. */
4917
+ billing: ProcessorSlice[];
4918
+ /** Grouped by the connector on the payment attempt behind each invoice. */
4919
+ charging: ProcessorSlice[];
4920
+ }
4921
+ /** One plan's share. Annual cadences are divided down to a monthly figure. */
4922
+ interface PlanSlice {
4923
+ key: string;
4924
+ /** Stock. */
4925
+ est_monthly_volume_usd: number;
4926
+ /** Stock. */
4927
+ subscriptions: number;
4928
+ /** Stock. */
4929
+ arpa_usd?: number | null;
4930
+ }
4931
+ /** The invoice funnel. `paid_first_attempt + recovered + unpaid = raised`. */
4932
+ interface InvoiceOutcomes {
4933
+ raised: number;
4934
+ paid_first_attempt: number;
4935
+ retried: number;
4936
+ recovered: number;
4937
+ unpaid: number;
4938
+ /** `recovered / retried`, 0–100. `null` when nothing was retried. */
4939
+ recovery_rate?: number | null;
4940
+ }
4941
+ /** One breakdown row, one drill level below the current scope. */
4942
+ interface SubscriptionChild {
4943
+ /** `merchant` | `project` | `shop`. */
4944
+ kind: string;
4945
+ id: string;
4946
+ /** Display name, when resolvable; falls back to the id. */
4947
+ name?: string | null;
4948
+ /** Shops directly under this row (projects only). */
4949
+ shop_count?: number | null;
4950
+ /** Stock. */
4951
+ est_monthly_volume_usd: number;
4952
+ /** Stock. */
4953
+ active: number;
4954
+ /** Flow. */
4955
+ billed_volume_usd: number;
4956
+ renewal_success_rate?: number | null;
4957
+ churn_rate?: number | null;
4958
+ }
4959
+ /** One drill level of the subscription-analytics dashboard. */
4960
+ interface SubscriptionAnalyticsResponse {
4961
+ /** Always `true` today; kept so the shape matches the device/geo responses. */
4962
+ enabled: boolean;
4963
+ /** `root` | `merchant` | `project` | `shop`. */
4964
+ level: string;
4965
+ days: number;
4966
+ /** `YYYY-MM-DD` of the window's last day. */
4967
+ end_date: string;
4968
+ /** Always `"day"`. */
4969
+ granularity: string;
4970
+ /** Always `null`; the field exists for shape parity with the other pages. */
4971
+ bucket_start?: string | null;
4972
+ totals: SubscriptionTotals;
4973
+ series: SubscriptionBucket[];
4974
+ movement?: SubscriptionMovement | null;
4975
+ processors: SubscriptionProcessors;
4976
+ plans: PlanSlice[];
4977
+ outcomes?: InvoiceOutcomes | null;
4978
+ children: SubscriptionChild[];
4979
+ caveats: SubscriptionCaveat[];
4980
+ filters: SubscriptionFilters;
4981
+ /** The previous window's totals, when `sections` includes `previous`. */
4982
+ previous_totals?: SubscriptionTotals | null;
4983
+ }
4984
+ /** The window, scope and chip filters every drill call carries. */
4985
+ interface SubscriptionDrillBase {
4986
+ days?: number | null;
4987
+ start_date?: string | null;
4988
+ end_date?: string | null;
4989
+ merchant_id?: string | null;
4990
+ project_id?: string | null;
4991
+ shop_id?: string | null;
4992
+ test_mode?: boolean | null;
4993
+ /** Active chip filters, so the drill lists what the charts counted. */
4994
+ country?: string | null;
4995
+ country_source?: string | null;
4996
+ device_class?: string | null;
4997
+ /**
4998
+ * Clicked series bucket (`YYYY-MM-DD`). Narrows whichever target is set to
4999
+ * that one day, so it combines with any of them rather than replacing them.
5000
+ */
5001
+ target_bucket?: string | null;
5002
+ /** Offset into the newest-first list (page size 50). */
5003
+ offset?: number | null;
5004
+ }
5005
+ /**
5006
+ * The clicked target. **Exactly one**, encoded as a discriminated union rather
5007
+ * than a bag of optional fields: the endpoint rejects an ambiguous target, so
5008
+ * `{}` and `{ target_outcome: 'unpaid', target_plan: 'x' }` should be type
5009
+ * errors rather than runtime ones.
5010
+ *
5011
+ * Each member marks the other targets `?: never`. Without that TypeScript
5012
+ * accepts any property present in *some* member of the union, so a second
5013
+ * target compiles happily — the exclusions are what make "exactly one" real.
5014
+ *
5015
+ * `target_child` and `target_child_kind` travel together as one member: a
5016
+ * child id with no kind cannot be resolved to anything, and the server matches
5017
+ * nothing rather than everything when the kind is missing.
5018
+ */
5019
+ type SubscriptionDrillTarget = (SubscriptionOutcomeTarget & NotOther<'target_outcome'>) | (SubscriptionBillingProcessorTarget & NotOther<'target_billing_processor'>) | (SubscriptionChargingConnectorTarget & NotOther<'target_charging_connector'>) | (SubscriptionPlanTarget & NotOther<'target_plan'>) | (SubscriptionStatusTarget & NotOther<'target_status'>) | (SubscriptionMovementTarget & NotOther<'target_movement'>) | (SubscriptionChildTarget & NotOther<'target_child' | 'target_child_kind'>) | (SubscriptionBucketOnlyTarget & NotOther<never>);
5020
+ interface SubscriptionOutcomeTarget {
5021
+ /** Clicked slice of the invoice funnel. */
5022
+ target_outcome: 'paid_first' | 'retried' | 'recovered' | 'unpaid';
5023
+ }
5024
+ interface SubscriptionBillingProcessorTarget {
5025
+ /** Clicked slice of the "bills it" ring. */
5026
+ target_billing_processor: string;
5027
+ }
5028
+ interface SubscriptionChargingConnectorTarget {
5029
+ /** Clicked slice of the "charges the card" ring. */
5030
+ target_charging_connector: string;
5031
+ }
5032
+ interface SubscriptionPlanTarget {
5033
+ /** Clicked plan row. */
5034
+ target_plan: string;
5035
+ }
5036
+ interface SubscriptionStatusTarget {
5037
+ /** Clicked subscription status. */
5038
+ target_status: string;
5039
+ }
5040
+ interface SubscriptionMovementTarget {
5041
+ /** Clicked movement component. */
5042
+ target_movement: 'new' | 'expansion' | 'contraction' | 'churn';
5043
+ }
5044
+ interface SubscriptionChildTarget {
5045
+ /** Clicked breakdown row, with the kind needed to resolve it. */
5046
+ target_child: string;
5047
+ target_child_kind: 'merchant' | 'project' | 'shop';
5048
+ }
5049
+ /**
5050
+ * A clicked day with no further target: every cycle raised that day. The one
5051
+ * member whose key lives on the base, so it is `required` here — without that
5052
+ * `{}` would satisfy the union and an untargeted drill would list the whole
5053
+ * window, which no click means.
5054
+ */
5055
+ interface SubscriptionBucketOnlyTarget {
5056
+ target_bucket: string;
5057
+ }
5058
+ /** Every target key this member does not itself set, forbidden. */
5059
+ type NotOther<Set extends TargetKey> = Partial<Record<Exclude<TargetKey, Set>, never>>;
5060
+ type TargetKey = 'target_outcome' | 'target_billing_processor' | 'target_charging_connector' | 'target_plan' | 'target_status' | 'target_movement' | 'target_child' | 'target_child_kind';
5061
+ type SubscriptionDrillRequest = SubscriptionDrillBase & SubscriptionDrillTarget;
4720
5062
  /** Payout progress of a settlement statement. */
4721
5063
  type SettlementPayoutStatus = 'unpaid' | 'partial' | 'paid';
4722
5064
  /**
@@ -8373,6 +8715,33 @@ declare class Analytics {
8373
8715
  * `GET /analytics/devices/transactions`
8374
8716
  */
8375
8717
  deviceTransactions(params: DeviceDrillRequest): Promise<DrillResponse>;
8718
+ /**
8719
+ * Subscription analytics over `subscription` and `invoice`: estimated
8720
+ * recurring volume, the invoice funnel, movement (new / expansion /
8721
+ * contraction / churn), both processor axes, plan mix and the breakdown one
8722
+ * level below the scope. Pinned server-side to your own merchant and
8723
+ * drillable via `project_id` / `shop_id` exactly like `scope`.
8724
+ *
8725
+ * Half the figures are **stocks** — a snapshot at the window's end rather
8726
+ * than a sum over it — so `est_monthly_volume_usd` and `active` can match
8727
+ * across a 7-day and a 30-day window while `billed_volume_usd` does not.
8728
+ * Day granularity only. `GET /analytics/subscriptions`
8729
+ */
8730
+ subscriptions(params?: SubscriptionAnalyticsRequest): Promise<SubscriptionAnalyticsResponse>;
8731
+ /**
8732
+ * The billing cycles behind one clicked element of the subscription
8733
+ * dashboard: an invoice outcome, a processor slice on either axis, a plan
8734
+ * row, a subscription status, a movement component, a series bucket or a
8735
+ * breakdown row. Same window/scope/filter contract as `subscriptions`; 50
8736
+ * rows per page (`offset` for the next), newest first, with the full match
8737
+ * count alongside.
8738
+ *
8739
+ * A cycle that never reached a payment is listed too — that is what "still
8740
+ * unpaid" means — and carries its invoice id as `payment_id` with
8741
+ * `invoice_id` set to the same value, so you can always tell which you got.
8742
+ * `GET /analytics/subscriptions/list`
8743
+ */
8744
+ subscriptionsList(params: SubscriptionDrillRequest): Promise<DrillResponse>;
8376
8745
  /** Global search. `POST /analytics/search` */
8377
8746
  search(params: Record<string, unknown>): Promise<Record<string, unknown>>;
8378
8747
  /** Domain-specific search. `POST /analytics/search/{domain}` */
@@ -10123,4 +10492,4 @@ declare function focusedCheckoutUrl(params: FocusedCheckoutUrlParams): string;
10123
10492
  declare const CHECKOUT_EVENT_KINDS: readonly ["native_pane_selected", "native_pane_tab_opened", "native_pane_tab_blocked", "native_pane_abandoned", "native_pane_returned"];
10124
10493
  type CheckoutEventKind = (typeof CHECKOUT_EVENT_KINDS)[number];
10125
10494
 
10126
- export { ALL_CUSTOM_FIELD_CONDITION_SOURCES, ALL_CUSTOM_FIELD_OPERATORS, ALL_CUSTOM_FIELD_TYPES, type AddUserRequest, type AddUserResponse, type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, type AmountFilter, type AmountRange, Analytics, type AnalyticsChild, type AnalyticsConnectorDay, type AnalyticsConnectorSeries, AnalyticsDashboard, type AnalyticsDayBucket, type AnalyticsMethodSlice, type AnalyticsScopeRequest, type AnalyticsScopeResponse, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyListConstraints, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AttemptStatus, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type AvailabilityOverrideCreateRequest, type AvailabilityOverrideResponse, AvailabilityOverrides, type AvailabilityPreviewMethod, type AvailabilityPreviewParams, type AvailabilityPreviewResponse, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BankCodeResponse, type BankDebitTypes, type BankTransferTypes, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlockedAttempt, type BlockedAttemptListParams, type BlockedAttemptListResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BuiltInRegionGroupResponse, type BusinessPaymentLinkConfig, CHECKBOX_CHECKED, CHECKBOX_UNCHECKED, CHECKOUT_EVENT_KINDS, CUSTOM_CSS_MAX_LENGTH, CUSTOM_FIELDS_MAX, CUSTOM_FIELD_CONDITIONS_MAX, CUSTOM_FIELD_KEY_PATTERN, CUSTOM_FIELD_OPERATORS_BY_SOURCE, CUSTOM_FIELD_VALUELESS_OPERATORS, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, type CardNetworkTypes, type CardSpecificFeatures, Cards, type ChangePasswordRequest, type CheckoutBranding, type CheckoutBrandingUpdate, type CheckoutCustomField, type CheckoutEventKind, CheckoutSession, type CheckoutSessionOptions, type CheckoutThemeComparisonSide, type CheckoutThemeConversionCaveat, type CheckoutThemeConversionCell, type CheckoutThemeConversionComparison, type CheckoutThemeConversionQuery, type CheckoutThemeConversionResponse, type CheckoutThemeConversionSegment, type CheckoutThemeDenominatorBasis, type CheckoutThemeDimension, type CheckoutThemeOutput, type CheckoutThemeProgram, type CheckoutThemeProgramRequest, type CheckoutThemeProgramResponse, type CheckoutThemeRule, type CheckoutThemeSampleVerdict, type ClientAnalyticsCaveat, type ClientAnalyticsFilters, type ClientAnalyticsRequest, type ConditionNode, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCloneRequest, type ConnectorCreateRequest, type ConnectorFeatureMatrixEntry, type ConnectorIntegrationStatus, type ConnectorListResponse, type ConnectorOwnership, type ConnectorResponse, type ConnectorRisk, type ConnectorSelection, type ConnectorType, type ConnectorUpdateRequest, type ConnectorVolumeSplit, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type ConnectorWebhookSyncResponse, type ConnectorWebhookSyncResult, type CornerRadius, type CreateAndConfirmSubscriptionRequest, type CreateSubscriptionPaymentDetails, type CreateSubscriptionRequest, type Currency, type CurrencyRevenue, type CustomFieldCondition, type CustomFieldConditionSource, type CustomFieldContext, type CustomFieldOperator, type CustomFieldOption, type CustomFieldTranslations, type CustomFieldType, type CustomFieldVisibility, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, type DecidePendingOperationRequest, type DeleteAccountRequest, type DeleteUserRoleRequest, Delopay, DelopayAuthenticationError, type DelopayConnectorCategory, DelopayError, type DelopayLogger, type DelopayOptions, type DeviceAnalyticsChild, type DeviceAnalyticsTotals, type DeviceBrowserSlice, type DeviceChannelBucket, type DeviceClassSlice, type DeviceDrillRequest, type DeviceModelSlice, type DevicePlatformSlice, type DeviceSessionBucket, type DevicesAnalyticsResponse, type DisputeEvidenceBlock, type DisputeEvidenceRequest, type DisputeEvidenceType, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type DrillPayment, type DrillResponse, type EncodedBranding, type EntityType, type EpayoutsCatalogEntry, type EpayoutsCatalogResponse, type EpayoutsLocality, type EpayoutsMethod, type EpayoutsMethodsResponse, type EpayoutsRail, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EuclidComparison, type EuclidComparisonType, type EuclidIfStatement, type EuclidValue, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeatureMatrixResponse, type FeatureStatus, type FeeOwner, FeeProgramBuilder, type FeeRuleConditions, type FeeRuleDefaultPrecedence, type FeeRuleInput, type FeeRulePreviewRequest, type FeeRulePreviewResponse, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeSpecInput, type FeeStatementDetail, type FeeStatementSummary, type FeeType, Files, type FocusedCheckoutUrlParams, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type FutureUsage, type GatewayConnectRequest, type GatewayResponse, type GeoAnalyticsChild, type GeoAnalyticsResponse, type GeoAnalyticsTotals, type GeoCitySlice, type GeoCountrySlice, type GeoDrillRequest, type GeoLanguageSlice, type GetSubscriptionItemsParams, type GetSubscriptionItemsResponse, type GlobalSearchRequest, type GroupNode, type ImpersonateEmployeeRequest, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type InvoiceStatus, type LabelStyle, type LayoutStyle, type LeafNode, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LimitedOperation, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, type ListUsersInLineageParams, type LoginHistoryEntry, type LoginHistoryParams, type LoginHistoryResponse, type LogoShape, type LogoSize, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MarginQuality, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type MerchantRisk, type MerchantRoutingAlgorithm, type MethodSurcharge, type MinimalRoleInfo, NATIVE_PANES_MAX, NATIVE_PANE_CATEGORY_KEYS, NATIVE_PANE_ICON_KEYS, type NativePaneMethodInfo, type NativePaneOpenTarget, type NativePaneRail, type NativePaneView, type NativePaneVisibility, type NonPillRadius, type OperationLimitOnExceeded, type OperationLimitRule, type OperationLimitRuleDeleteResponse, type OperationLimitRuleListParams, type OperationLimitScope, type OperationLimitSettings, type OperationLimitWindowMode, OperationLimits, type OverrideAction, type OverrideScope, type ParentGroup, type ParentGroupInfo, type PauseSubscriptionRequest, type PauseSubscriptionResponse, type PaymentAttemptResponse, type PaymentAttemptsListResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentClientContextEntry, type PaymentClientContextListResponse, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentErrorDetails, type PaymentExperience, type PaymentExperienceTypes, type PaymentIdFormatConfig, type PaymentIdStyle, type PaymentIntentStateMetadata, type PaymentLayout, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListFilterConstraints, type PaymentListFilteredResponse, type PaymentListOrder, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodAmountLimits, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodDisplayInfo, type PaymentMethodListInstallmentAmountDetails, type PaymentMethodListInstallmentOption, type PaymentMethodListInstallmentPlan, type PaymentMethodListIntentData, type PaymentMethodListParams, type PaymentMethodListResponse, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentStatusHistoryEntityType, type PaymentStatusHistoryEvent, type PaymentStatusHistoryResponse, type PaymentUpdateRequest, type PaymentsDeletePolicyResponse, type PaymentsDeleteResponse, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PayseproMethod, type PayseproMethodsResponse, type PendingApprovalErrorDetails, type PendingOperation, type PendingOperationLimitContext, type PendingOperationListParams, type PendingOperationListResponse, type PendingOperationStatus, type PendingOperationSummary, type PerMethodSurchargeItem, type PermissionScope, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PlatformFeeKind, type PlatformFeeOutput, type PlatformFeeProgram, type PlatformFeeRule, type PlatformFeeRuleInput, type PlatformFeeRuleOutput, type PlatformFeeRuleRecord, type PlatformFeeRuleRequest, type PollStatus, type PollStatusResponse, type ProcessorCostBasis, type ProcessorCostBucket, type ProcessorCostSource, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, type ProfileDeniedConnectorsResponse, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProgramConnectorSelection, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type PublishableKey, type RecordCheckoutEventRequest, type RecordCheckoutEventResponse, type RecoveryCodesResponse, type RefundAggregateResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCountriesResponse, type RegionCreateRequest, type RegionResponse, type RegionSetCountriesRequest, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestExtras, type RequestFn, type RequestOptions, type RequiredFieldInfo, type ResetPasswordRequest, type ResponsePaymentMethodTypes, type ResponsePaymentMethodsEnabled, type ResumeSubscriptionRequest, type ResumeSubscriptionResponse, Risk, type RoleConnectorGrant, type RoleConnectorGrantEntry, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingAlgorithmKind, type RoutingConfigCreateRequest, type RoutingConfigHistoryResponse, type RoutingConfigResponse, type RoutingConfigUpdateRequest, type RoutingConfigVersion, type RoutingConnectorCap, type RoutingConnectorCaps, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, type RoutingHistoryParams, type RuleConnectorSelection, STRIPE_NATIVE_PANE_METHODS, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, type SearchTimeRange, Settlement, type SettlementBackfillRequest, type SettlementBackfillResponse, type SettlementBucket, type SettlementCostParams, type SettlementCostPeriod, type SettlementCostResponse, type SettlementCurrentParams, type SettlementCurrentResponse, type SettlementLine, type SettlementLineBase, type SettlementLineListParams, type SettlementLineListResponse, type SettlementLineWithProcessorCost, type SettlementLineWithoutProcessorCost, type SettlementOverviewParams, type SettlementOverviewResponse, type SettlementPayoutStatus, type SettlementStatementListParams, type SettlementStatementListResponse, type ShopCreateRequest, type ShopFeeConfigEntry, type ShopFeeConfigParams, type ShopFeeConfigResponse, type ShopResponse, type ShopRisk, type ShopSettlementOverview, type ShopStats, type ShopStatsResponse, type ShopUpdateRequest, type ShopVisibilityResponse, type ShopVisibilityUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StatementAdjustment, type StatementAdjustmentCreateRequest, type StatementAdjustmentListResponse, type StatementGenerateRequest, type StatementPayoutUpdateRequest, type StatementPdfParams, type StaticRoutingAlgorithm, type StatsPeriod, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type StripeNativePane, type StripePaymentMethodDomainResult, type StripePaymentMethodDomainStatus, type StripePaymentMethodDomainsRegisterRequest, type StripePaymentMethodDomainsRegisterResponse, type SubscriptionBillingProcessorResponse, type SubscriptionEstimateParams, type SubscriptionEstimateResponse, type SubscriptionInvoice, type SubscriptionInvoiceListParams, type SubscriptionInvoiceListResponse, type SubscriptionItem, type SubscriptionItemPrice, type SubscriptionItemType, type SubscriptionLineItem, type SubscriptionListParams, type SubscriptionPaymentData, type SubscriptionPaymentDetails, type SubscriptionPaymentLink, type SubscriptionPaymentLookupRequest, type SubscriptionPaymentLookupResponse, type SubscriptionPeriodUnit, type SubscriptionResponse, type SubscriptionStatus, Subscriptions, type SummaryPosition, type SupportedPaymentMethod, type SurchargeDetailsResponse, type SurchargeResponse, type SurchargeRuleRequest, type SurchargeRuleResponse, type SurfaceStyle, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThemeBrowserLanguage, type ThemeCheckoutChannel, type ThemeChoice, type ThemeCondition, type ThemeDeviceClass, type ThemeEnumCondition, type ThemeIfStatement, type ThemeMetadataCondition, type ThemeNumberCondition, type ThemeTrafficSource, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TimeToPayBucket, type TimeToPayStats, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type TrustBadge, type UpdateMetadataRequest, type UpdateOperationLimitSettingsRequest, type UpdateRoleConnectorGrantParams, type UpdateSubscriptionRequest, type UpdateUserDetailsRequest, type UpdateUserRoleRequest, type UpsertOperationLimitRuleRequest, type UpsertRefundLimitRuleRequest, type UpsertSettlementAdjustmentLimitRuleRequest, type UpsertSettlementPayoutLimitRuleRequest, type UserInLineage, type UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VaultCheck, type VaultCheckId, type VaultCheckStatus, type VaultCollectSessionResponse, type VaultEnvironment, type VaultPaymentMethodRequest, type VaultPaymentMethodResponse, type VaultRouteApplyVerification, type VaultRouteChange, type VaultRouteChangeKind, type VaultRouteFieldChange, type VaultRouteIds, type VaultRoutePurpose, type VaultRouteWarning, type VaultRouteWarningCode, type VaultRoutesApplyRequest, type VaultRoutesApplyResponse, type VaultRoutesFingerprint, type VaultRoutesPreviewRequest, type VaultRoutesPreviewResponse, type VaultVerificationResponse, type VaultVerifyRequest, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookDeliveryTerminalReason, type WebhookDetails, type WebhookEvent, type WebhookRefundStatus, type WebhookRegistrationEnvironment, Webhooks, allOf, anyOf, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, cloneCustomField, cloneNativePane, customFieldContextFromMetadata, customFieldIsTextLike, customFieldOperatorTakesValue, customFieldOptionLabel, customFieldText, decodeBadges, decodeBranding, decodeCustomFields, decodeNativePanes, defaultBranding, defaultCustomFieldVisibility, defaultNativePane, defaultOperatorForSource, encodeBadges, encodeBranding, encodeCustomFields, encodeNativePanes, evaluateCustomFieldCondition, evaluateCustomFieldVisibility, feeProgram, focusedCheckoutUrl, fontStack, fontWeightValue, inputPadValue, isCheckboxChecked, isDarkSurface, isHexColor, leaf, logoDimensions, nativePaneMethodInfo, parseCustomFieldsLoose, parseImportedBranding, programToTree, radiusValue, ruleMatchToTree, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue, visibleCustomFields };
10495
+ export { ALL_CUSTOM_FIELD_CONDITION_SOURCES, ALL_CUSTOM_FIELD_OPERATORS, ALL_CUSTOM_FIELD_TYPES, type AddUserRequest, type AddUserResponse, type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, type AmountFilter, type AmountRange, Analytics, type AnalyticsChild, type AnalyticsConnectorDay, type AnalyticsConnectorSeries, AnalyticsDashboard, type AnalyticsDayBucket, type AnalyticsMethodSlice, type AnalyticsScopeRequest, type AnalyticsScopeResponse, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyListConstraints, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AttemptStatus, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type AvailabilityOverrideCreateRequest, type AvailabilityOverrideResponse, AvailabilityOverrides, type AvailabilityPreviewMethod, type AvailabilityPreviewParams, type AvailabilityPreviewResponse, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BankCodeResponse, type BankDebitTypes, type BankTransferTypes, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlockedAttempt, type BlockedAttemptListParams, type BlockedAttemptListResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BuiltInRegionGroupResponse, type BusinessPaymentLinkConfig, CHECKBOX_CHECKED, CHECKBOX_UNCHECKED, CHECKOUT_EVENT_KINDS, CUSTOM_CSS_MAX_LENGTH, CUSTOM_FIELDS_MAX, CUSTOM_FIELD_CONDITIONS_MAX, CUSTOM_FIELD_KEY_PATTERN, CUSTOM_FIELD_OPERATORS_BY_SOURCE, CUSTOM_FIELD_VALUELESS_OPERATORS, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, type CardNetworkTypes, type CardSpecificFeatures, Cards, type ChangePasswordRequest, type CheckoutBranding, type CheckoutBrandingUpdate, type CheckoutCustomField, type CheckoutEventKind, CheckoutSession, type CheckoutSessionOptions, type CheckoutThemeComparisonSide, type CheckoutThemeConversionCaveat, type CheckoutThemeConversionCell, type CheckoutThemeConversionComparison, type CheckoutThemeConversionQuery, type CheckoutThemeConversionResponse, type CheckoutThemeConversionSegment, type CheckoutThemeDenominatorBasis, type CheckoutThemeDimension, type CheckoutThemeOutput, type CheckoutThemeProgram, type CheckoutThemeProgramRequest, type CheckoutThemeProgramResponse, type CheckoutThemeRule, type CheckoutThemeSampleVerdict, type ClientAnalyticsCaveat, type ClientAnalyticsFilters, type ClientAnalyticsRequest, type ConditionNode, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCloneRequest, type ConnectorCreateRequest, type ConnectorFeatureMatrixEntry, type ConnectorIntegrationStatus, type ConnectorListResponse, type ConnectorOwnership, type ConnectorResponse, type ConnectorRisk, type ConnectorSelection, type ConnectorType, type ConnectorUpdateRequest, type ConnectorVolumeSplit, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type ConnectorWebhookSyncResponse, type ConnectorWebhookSyncResult, type CornerRadius, type CreateAndConfirmSubscriptionRequest, type CreateSubscriptionPaymentDetails, type CreateSubscriptionRequest, type Currency, type CurrencyRevenue, type CustomFieldCondition, type CustomFieldConditionSource, type CustomFieldContext, type CustomFieldOperator, type CustomFieldOption, type CustomFieldTranslations, type CustomFieldType, type CustomFieldVisibility, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, type DecidePendingOperationRequest, type DeleteAccountRequest, type DeleteUserRoleRequest, Delopay, DelopayAuthenticationError, type DelopayConnectorCategory, DelopayError, type DelopayLogger, type DelopayOptions, type DeviceAnalyticsChild, type DeviceAnalyticsTotals, type DeviceBrowserSlice, type DeviceChannelBucket, type DeviceClassSlice, type DeviceDrillRequest, type DeviceModelSlice, type DevicePlatformSlice, type DeviceSessionBucket, type DevicesAnalyticsResponse, type DisputeEvidenceBlock, type DisputeEvidenceRequest, type DisputeEvidenceType, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type DrillPayment, type DrillResponse, type EncodedBranding, type EntityType, type EpayoutsCatalogEntry, type EpayoutsCatalogResponse, type EpayoutsLocality, type EpayoutsMethod, type EpayoutsMethodsResponse, type EpayoutsRail, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EuclidComparison, type EuclidComparisonType, type EuclidIfStatement, type EuclidValue, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeatureMatrixResponse, type FeatureStatus, type FeeOwner, FeeProgramBuilder, type FeeRuleConditions, type FeeRuleDefaultPrecedence, type FeeRuleInput, type FeeRulePreviewRequest, type FeeRulePreviewResponse, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeSpecInput, type FeeStatementDetail, type FeeStatementSummary, type FeeType, Files, type FocusedCheckoutUrlParams, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type FutureUsage, type GatewayConnectRequest, type GatewayResponse, type GeoAnalyticsChild, type GeoAnalyticsResponse, type GeoAnalyticsTotals, type GeoCitySlice, type GeoCountrySlice, type GeoDrillRequest, type GeoLanguageSlice, type GetSubscriptionItemsParams, type GetSubscriptionItemsResponse, type GlobalSearchRequest, type GroupNode, type ImpersonateEmployeeRequest, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type InvoiceOutcomes, type InvoiceStatus, type LabelStyle, type LayoutStyle, type LeafNode, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LimitedOperation, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, type ListUsersInLineageParams, type LoginHistoryEntry, type LoginHistoryParams, type LoginHistoryResponse, type LogoShape, type LogoSize, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MarginQuality, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type MerchantRisk, type MerchantRoutingAlgorithm, type MethodSurcharge, type MinimalRoleInfo, NATIVE_PANES_MAX, NATIVE_PANE_CATEGORY_KEYS, NATIVE_PANE_ICON_KEYS, type NativePaneMethodInfo, type NativePaneOpenTarget, type NativePaneRail, type NativePaneView, type NativePaneVisibility, type NonPillRadius, type OperationLimitOnExceeded, type OperationLimitRule, type OperationLimitRuleDeleteResponse, type OperationLimitRuleListParams, type OperationLimitScope, type OperationLimitSettings, type OperationLimitWindowMode, OperationLimits, type OverrideAction, type OverrideScope, type ParentGroup, type ParentGroupInfo, type PauseSubscriptionRequest, type PauseSubscriptionResponse, type PaymentAttemptResponse, type PaymentAttemptsListResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentClientContextEntry, type PaymentClientContextListResponse, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentErrorDetails, type PaymentExperience, type PaymentExperienceTypes, type PaymentIdFormatConfig, type PaymentIdStyle, type PaymentIntentStateMetadata, type PaymentLayout, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListFilterConstraints, type PaymentListFilteredResponse, type PaymentListOrder, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodAmountLimits, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodDisplayInfo, type PaymentMethodListInstallmentAmountDetails, type PaymentMethodListInstallmentOption, type PaymentMethodListInstallmentPlan, type PaymentMethodListIntentData, type PaymentMethodListParams, type PaymentMethodListResponse, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentStatusHistoryEntityType, type PaymentStatusHistoryEvent, type PaymentStatusHistoryResponse, type PaymentUpdateRequest, type PaymentsDeletePolicyResponse, type PaymentsDeleteResponse, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PayseproMethod, type PayseproMethodsResponse, type PendingApprovalErrorDetails, type PendingOperation, type PendingOperationLimitContext, type PendingOperationListParams, type PendingOperationListResponse, type PendingOperationStatus, type PendingOperationSummary, type PerMethodSurchargeItem, type PermissionScope, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PlanSlice, type PlatformFeeKind, type PlatformFeeOutput, type PlatformFeeProgram, type PlatformFeeRule, type PlatformFeeRuleInput, type PlatformFeeRuleOutput, type PlatformFeeRuleRecord, type PlatformFeeRuleRequest, type PollStatus, type PollStatusResponse, type ProcessorCostBasis, type ProcessorCostBucket, type ProcessorCostSource, type ProcessorSlice, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, type ProfileDeniedConnectorsResponse, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProgramConnectorSelection, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type PublishableKey, type RecordCheckoutEventRequest, type RecordCheckoutEventResponse, type RecoveryCodesResponse, type RefundAggregateResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCountriesResponse, type RegionCreateRequest, type RegionResponse, type RegionSetCountriesRequest, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestExtras, type RequestFn, type RequestOptions, type RequiredFieldInfo, type ResetPasswordRequest, type ResponsePaymentMethodTypes, type ResponsePaymentMethodsEnabled, type ResumeSubscriptionRequest, type ResumeSubscriptionResponse, Risk, type RoleConnectorGrant, type RoleConnectorGrantEntry, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingAlgorithmKind, type RoutingConfigCreateRequest, type RoutingConfigHistoryResponse, type RoutingConfigResponse, type RoutingConfigUpdateRequest, type RoutingConfigVersion, type RoutingConnectorCap, type RoutingConnectorCaps, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, type RoutingHistoryParams, type RuleConnectorSelection, STRIPE_NATIVE_PANE_METHODS, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, type SearchTimeRange, Settlement, type SettlementBackfillRequest, type SettlementBackfillResponse, type SettlementBucket, type SettlementCostParams, type SettlementCostPeriod, type SettlementCostResponse, type SettlementCurrentParams, type SettlementCurrentResponse, type SettlementLine, type SettlementLineBase, type SettlementLineListParams, type SettlementLineListResponse, type SettlementLineWithProcessorCost, type SettlementLineWithoutProcessorCost, type SettlementOverviewParams, type SettlementOverviewResponse, type SettlementPayoutStatus, type SettlementStatementListParams, type SettlementStatementListResponse, type ShopCreateRequest, type ShopFeeConfigEntry, type ShopFeeConfigParams, type ShopFeeConfigResponse, type ShopResponse, type ShopRisk, type ShopSettlementOverview, type ShopStats, type ShopStatsResponse, type ShopUpdateRequest, type ShopVisibilityResponse, type ShopVisibilityUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StatementAdjustment, type StatementAdjustmentCreateRequest, type StatementAdjustmentListResponse, type StatementGenerateRequest, type StatementPayoutUpdateRequest, type StatementPdfParams, type StaticRoutingAlgorithm, type StatsPeriod, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type StripeNativePane, type StripePaymentMethodDomainResult, type StripePaymentMethodDomainStatus, type StripePaymentMethodDomainsRegisterRequest, type StripePaymentMethodDomainsRegisterResponse, type SubscriptionAnalyticsRequest, type SubscriptionAnalyticsResponse, type SubscriptionBillingProcessorResponse, type SubscriptionBucket, type SubscriptionCaveat, type SubscriptionChild, type SubscriptionDrillBase, type SubscriptionDrillRequest, type SubscriptionDrillTarget, type SubscriptionEstimateParams, type SubscriptionEstimateResponse, type SubscriptionFilters, type SubscriptionInvoice, type SubscriptionInvoiceListParams, type SubscriptionInvoiceListResponse, type SubscriptionItem, type SubscriptionItemPrice, type SubscriptionItemType, type SubscriptionLineItem, type SubscriptionListParams, type SubscriptionMovement, type SubscriptionPaymentData, type SubscriptionPaymentDetails, type SubscriptionPaymentLink, type SubscriptionPaymentLookupRequest, type SubscriptionPaymentLookupResponse, type SubscriptionPeriodUnit, type SubscriptionProcessors, type SubscriptionResponse, type SubscriptionStatus, type SubscriptionTotals, Subscriptions, type SummaryPosition, type SupportedPaymentMethod, type SurchargeDetailsResponse, type SurchargeResponse, type SurchargeRuleRequest, type SurchargeRuleResponse, type SurfaceStyle, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThemeBrowserLanguage, type ThemeCheckoutChannel, type ThemeChoice, type ThemeCondition, type ThemeDeviceClass, type ThemeEnumCondition, type ThemeIfStatement, type ThemeMetadataCondition, type ThemeNumberCondition, type ThemeTrafficSource, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TimeToPayBucket, type TimeToPayStats, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type TrustBadge, type UpdateMetadataRequest, type UpdateOperationLimitSettingsRequest, type UpdateRoleConnectorGrantParams, type UpdateSubscriptionRequest, type UpdateUserDetailsRequest, type UpdateUserRoleRequest, type UpsertOperationLimitRuleRequest, type UpsertRefundLimitRuleRequest, type UpsertSettlementAdjustmentLimitRuleRequest, type UpsertSettlementPayoutLimitRuleRequest, type UserInLineage, type UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VaultCheck, type VaultCheckId, type VaultCheckStatus, type VaultCollectSessionResponse, type VaultEnvironment, type VaultPaymentMethodRequest, type VaultPaymentMethodResponse, type VaultRouteApplyVerification, type VaultRouteChange, type VaultRouteChangeKind, type VaultRouteFieldChange, type VaultRouteIds, type VaultRoutePurpose, type VaultRouteWarning, type VaultRouteWarningCode, type VaultRoutesApplyRequest, type VaultRoutesApplyResponse, type VaultRoutesFingerprint, type VaultRoutesPreviewRequest, type VaultRoutesPreviewResponse, type VaultVerificationResponse, type VaultVerifyRequest, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookDeliveryTerminalReason, type WebhookDetails, type WebhookEvent, type WebhookRefundStatus, type WebhookRegistrationEnvironment, Webhooks, allOf, anyOf, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, cloneCustomField, cloneNativePane, customFieldContextFromMetadata, customFieldIsTextLike, customFieldOperatorTakesValue, customFieldOptionLabel, customFieldText, decodeBadges, decodeBranding, decodeCustomFields, decodeNativePanes, defaultBranding, defaultCustomFieldVisibility, defaultNativePane, defaultOperatorForSource, encodeBadges, encodeBranding, encodeCustomFields, encodeNativePanes, evaluateCustomFieldCondition, evaluateCustomFieldVisibility, feeProgram, focusedCheckoutUrl, fontStack, fontWeightValue, inputPadValue, isCheckboxChecked, isDarkSurface, isHexColor, leaf, logoDimensions, nativePaneMethodInfo, parseCustomFieldsLoose, parseImportedBranding, programToTree, radiusValue, ruleMatchToTree, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue, visibleCustomFields };
package/dist/index.js CHANGED
@@ -89,7 +89,7 @@ import {
89
89
  surfacePadValue,
90
90
  verticalGapValue,
91
91
  visibleCustomFields
92
- } from "./chunk-S22IPUCK.js";
92
+ } from "./chunk-IAZ4NPT2.js";
93
93
  export {
94
94
  ALL_CUSTOM_FIELD_CONDITION_SOURCES,
95
95
  ALL_CUSTOM_FIELD_OPERATORS,
package/dist/internal.cjs CHANGED
@@ -3606,6 +3606,44 @@ var Analytics = class {
3606
3606
  query: params
3607
3607
  });
3608
3608
  }
3609
+ /**
3610
+ * Subscription analytics over `subscription` and `invoice`: estimated
3611
+ * recurring volume, the invoice funnel, movement (new / expansion /
3612
+ * contraction / churn), both processor axes, plan mix and the breakdown one
3613
+ * level below the scope. Pinned server-side to your own merchant and
3614
+ * drillable via `project_id` / `shop_id` exactly like `scope`.
3615
+ *
3616
+ * Half the figures are **stocks** — a snapshot at the window's end rather
3617
+ * than a sum over it — so `est_monthly_volume_usd` and `active` can match
3618
+ * across a 7-day and a 30-day window while `billed_volume_usd` does not.
3619
+ * Day granularity only. `GET /analytics/subscriptions`
3620
+ */
3621
+ async subscriptions(params) {
3622
+ return this.request("GET", "/analytics/subscriptions", {
3623
+ query: params
3624
+ });
3625
+ }
3626
+ /**
3627
+ * The billing cycles behind one clicked element of the subscription
3628
+ * dashboard: an invoice outcome, a processor slice on either axis, a plan
3629
+ * row, a subscription status, a movement component, a series bucket or a
3630
+ * breakdown row. Same window/scope/filter contract as `subscriptions`; 50
3631
+ * rows per page (`offset` for the next), newest first, with the full match
3632
+ * count alongside.
3633
+ *
3634
+ * A cycle that never reached a payment is listed too — that is what "still
3635
+ * unpaid" means — and carries its invoice id as `payment_id` with
3636
+ * `invoice_id` set to the same value, so you can always tell which you got.
3637
+ * `GET /analytics/subscriptions/list`
3638
+ */
3639
+ async subscriptionsList(params) {
3640
+ return this.request("GET", "/analytics/subscriptions/list", {
3641
+ // A discriminated union carries no index signature, so the widening
3642
+ // goes via `unknown` — the union is the point, and the query builder
3643
+ // only ever reads own enumerable keys.
3644
+ query: params
3645
+ });
3646
+ }
3609
3647
  /** Global search. `POST /analytics/search` */
3610
3648
  async search(params) {
3611
3649
  return this.request("POST", "/analytics/search", { body: params });
@@ -6678,6 +6716,41 @@ var AdminPortal = class {
6678
6716
  query: params
6679
6717
  });
6680
6718
  }
6719
+ /**
6720
+ * Subscription analytics over `subscription` and `invoice`, rooted at all
6721
+ * merchants and drillable via `merchant_id` / `project_id` / `shop_id` like
6722
+ * `analyticsScope`. The `children` block at the root is the merchant
6723
+ * breakdown — there is no separate endpoint for it.
6724
+ *
6725
+ * Half the figures are **stocks** (a snapshot at the window's end, not a sum
6726
+ * over it), so `est_monthly_volume_usd` and `active` can match across a
6727
+ * 7-day and a 30-day window while `billed_volume_usd` does not. Day
6728
+ * granularity only.
6729
+ */
6730
+ async analyticsSubscriptions(params) {
6731
+ return this.request("GET", "/admin-portal/analytics/subscriptions", {
6732
+ query: params
6733
+ });
6734
+ }
6735
+ /**
6736
+ * The billing cycles behind one clicked element of the admin subscription
6737
+ * dashboard: an invoice outcome, a processor slice on either axis, a plan
6738
+ * row, a subscription status, a movement component, a series bucket or a
6739
+ * breakdown row. 50 rows per page (`offset` for the next), newest first,
6740
+ * with the full match count alongside.
6741
+ *
6742
+ * A cycle that never reached a payment is listed too — that is what "still
6743
+ * unpaid" means — and carries its invoice id as `payment_id` with
6744
+ * `invoice_id` set to the same value.
6745
+ */
6746
+ async analyticsSubscriptionsList(params) {
6747
+ return this.request("GET", "/admin-portal/analytics/subscriptions/list", {
6748
+ // A discriminated union carries no index signature, so the widening
6749
+ // goes via `unknown` — the union is the point, and the query builder
6750
+ // only ever reads own enumerable keys.
6751
+ query: params
6752
+ });
6753
+ }
6681
6754
  /**
6682
6755
  * Platform billing dashboard: total balance across all ledger accounts (+
6683
6756
  * the net change), top-ups, fees collected, and the day-by-day ledger flow.