@delopay/sdk 0.95.0 → 0.96.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
@@ -1231,6 +1231,12 @@ interface ShopUpdateRequest {
1231
1231
  * `ORD-74219807`. `null` = default `pay_<random>` ids.
1232
1232
  */
1233
1233
  payment_id_format?: PaymentIdFormatConfig | null;
1234
+ /**
1235
+ * The shop's home country (ISO alpha-2) for cross-border analytics.
1236
+ * `null` = international / no home country (the default; on updates,
1237
+ * explicit `null` clears, absent leaves unchanged).
1238
+ */
1239
+ home_country?: string | null;
1234
1240
  }
1235
1241
  interface ShopResponse {
1236
1242
  shop_id: string;
@@ -1252,6 +1258,12 @@ interface ShopResponse {
1252
1258
  * `ORD-74219807`. `null` = default `pay_<random>` ids.
1253
1259
  */
1254
1260
  payment_id_format?: PaymentIdFormatConfig | null;
1261
+ /**
1262
+ * The shop's home country (ISO alpha-2) for cross-border analytics.
1263
+ * `null` = international / no home country (the default; on updates,
1264
+ * explicit `null` clears, absent leaves unchanged).
1265
+ */
1266
+ home_country?: string | null;
1255
1267
  }
1256
1268
  /**
1257
1269
  * Branding and behavior overrides for a shop's hosted checkout.
@@ -3019,6 +3031,12 @@ interface ProfileCreateRequest {
3019
3031
  * `ORD-74219807`. `null` = default `pay_<random>` ids.
3020
3032
  */
3021
3033
  payment_id_format?: PaymentIdFormatConfig | null;
3034
+ /**
3035
+ * The shop's home country (ISO alpha-2) for cross-border analytics.
3036
+ * `null` = international / no home country (the default; on updates,
3037
+ * explicit `null` clears, absent leaves unchanged).
3038
+ */
3039
+ home_country?: string | null;
3022
3040
  }
3023
3041
  interface ProfileUpdateRequest {
3024
3042
  profile_name?: string | null;
@@ -3044,6 +3062,12 @@ interface ProfileUpdateRequest {
3044
3062
  * `ORD-74219807`. `null` = default `pay_<random>` ids.
3045
3063
  */
3046
3064
  payment_id_format?: PaymentIdFormatConfig | null;
3065
+ /**
3066
+ * The shop's home country (ISO alpha-2) for cross-border analytics.
3067
+ * `null` = international / no home country (the default; on updates,
3068
+ * explicit `null` clears, absent leaves unchanged).
3069
+ */
3070
+ home_country?: string | null;
3047
3071
  }
3048
3072
  interface ProfileResponse {
3049
3073
  merchant_id: string;
@@ -3077,6 +3101,12 @@ interface ProfileResponse {
3077
3101
  * `ORD-74219807`. `null` = default `pay_<random>` ids.
3078
3102
  */
3079
3103
  payment_id_format?: PaymentIdFormatConfig | null;
3104
+ /**
3105
+ * The shop's home country (ISO alpha-2) for cross-border analytics.
3106
+ * `null` = international / no home country (the default; on updates,
3107
+ * explicit `null` clears, absent leaves unchanged).
3108
+ */
3109
+ home_country?: string | null;
3080
3110
  [key: string]: unknown;
3081
3111
  }
3082
3112
  type BlocklistAddRequest = {
@@ -3802,6 +3832,20 @@ interface AnalyticsScopeRequest {
3802
3832
  * daily buckets.
3803
3833
  */
3804
3834
  granularity?: string | null;
3835
+ /**
3836
+ * Restrict to payments from one country (ISO alpha-2), matched against the
3837
+ * claim `country_source` names. A filtered request always aggregates live
3838
+ * (the rollup is unfiltered); payments without a client-context observation
3839
+ * don't match ip/device filters (`FilterRequiresClientContext` caveat).
3840
+ */
3841
+ country?: string | null;
3842
+ /** Which country claim `country` filters on: `"ip"` (default) or `"billing"`. */
3843
+ country_source?: string | null;
3844
+ /**
3845
+ * Restrict to payments of one device class: `phone` | `tablet` | `desktop`
3846
+ * | `unknown` (rows whose render predates classification).
3847
+ */
3848
+ device_class?: string | null;
3805
3849
  }
3806
3850
  /**
3807
3851
  * One bucket of aggregated payment activity — a calendar day, or a single UTC
@@ -3909,6 +3953,283 @@ interface AnalyticsScopeResponse {
3909
3953
  * backends that predate the method dimension.
3910
3954
  */
3911
3955
  methods?: AnalyticsMethodSlice[];
3956
+ /**
3957
+ * Known ways this response is not the whole truth (populated by filtered
3958
+ * requests today); absent on older backends.
3959
+ */
3960
+ caveats?: ClientAnalyticsCaveat[];
3961
+ /** The country/device filters this response was computed under. */
3962
+ filters?: ClientAnalyticsFilters;
3963
+ }
3964
+ /**
3965
+ * Query for the device/geo analytics endpoints. Same drill/window contract as
3966
+ * `AnalyticsScopeRequest`; `mode` applies to the geo endpoint only.
3967
+ */
3968
+ interface ClientAnalyticsRequest {
3969
+ /** Trailing days for a rolling window ending now. Default 7, capped at 92. */
3970
+ days?: number | null;
3971
+ /** Naive ISO 8601 datetime for the window start (custom range; span ≤ 92 days). */
3972
+ start_date?: string | null;
3973
+ /** Naive ISO 8601 datetime for the inclusive last day. Defaults to now. */
3974
+ end_date?: string | null;
3975
+ /** Scope to a single merchant. Ignored (server-pinned) on the merchant routes. */
3976
+ merchant_id?: string | null;
3977
+ /** Scope to one project's shops. */
3978
+ project_id?: string | null;
3979
+ /** Scope to a single shop; wins over project_id. */
3980
+ shop_id?: string | null;
3981
+ /** `false` = live only, `true` = test only. Omit for both. */
3982
+ test_mode?: boolean | null;
3983
+ /**
3984
+ * Series bucket size: `"day"` (default) or `"hour"`. Hourly buckets require
3985
+ * a window of at most 48 hours and always aggregate live.
3986
+ */
3987
+ granularity?: string | null;
3988
+ /**
3989
+ * Comma-separated response blocks to compute; omit for all. Devices:
3990
+ * `totals`, `browsers`, `platforms`, `classes`, `models`, `channels`,
3991
+ * `timing`, `children`. Geo: `totals`, `countries`, `cities`, `heatmap`,
3992
+ * `languages`, `children`.
3993
+ */
3994
+ sections?: string | null;
3995
+ /**
3996
+ * Geo endpoint only: which location claim to aggregate — `"ip"` (default;
3997
+ * IP-derived country + city coordinates) or `"billing"` (plaintext
3998
+ * billing-address country/city, no coordinates). Never coalesced.
3999
+ */
4000
+ mode?: string | null;
4001
+ /** Restrict to sessions from one country (ISO alpha-2). */
4002
+ country?: string | null;
4003
+ /** Which country claim `country` filters on: `"ip"` (default) or `"billing"`. */
4004
+ country_source?: string | null;
4005
+ /** Restrict to one device class: `phone` | `tablet` | `desktop` | `unknown`. */
4006
+ device_class?: string | null;
4007
+ }
4008
+ /**
4009
+ * Known ways a figure in an analytics response is not the whole truth. Codes,
4010
+ * not sentences — the dashboards map each to translated copy.
4011
+ */
4012
+ type ClientAnalyticsCaveat = 'OptimisationUseDisabled' | 'DeviceTrackingDisabled' | 'GeoIpDisabled' | 'AutomatedTrafficExcluded' | 'RetentionWindowTruncatesWindow' | 'DeviceClassMissingInWindow' | 'BillingModeCountryLevelOnly' | 'BillingCityRedactedExcluded' | 'ShopHasNoHomeCountry' | 'NoObservationsInWindow' | 'FilterRequiresClientContext' | 'TimingDenominatorTruncated' | 'FxRateUnavailable';
4013
+ /** The filters a response was computed under, echoed back verbatim. */
4014
+ interface ClientAnalyticsFilters {
4015
+ country?: string | null;
4016
+ country_source?: string | null;
4017
+ device_class?: string | null;
4018
+ }
4019
+ /** Window totals for the device dashboard's KPI row. */
4020
+ interface DeviceAnalyticsTotals {
4021
+ /** Canonical sessions (one per payment), automated traffic excluded. */
4022
+ sessions: number;
4023
+ /** Sessions whose payment reached `succeeded`. */
4024
+ paid: number;
4025
+ /** `paid / sessions` (0 when there are no sessions). */
4026
+ conversion: number;
4027
+ /** Share of sessions on phone or tablet. */
4028
+ mobile_share: number;
4029
+ /** Share of raw observations that were automated and therefore excluded. */
4030
+ automated_share: number;
4031
+ }
4032
+ /** One series bucket of overall session/paid counts (KPI sparklines). */
4033
+ interface DeviceSessionBucket {
4034
+ /** Bucket start: `YYYY-MM-DD` (day grain) or `YYYY-MM-DDTHH:00:00Z` (hour grain). */
4035
+ bucket: string;
4036
+ sessions: number;
4037
+ paid: number;
4038
+ }
4039
+ /** One browser family's window totals. */
4040
+ interface DeviceBrowserSlice {
4041
+ /** `chrome` | `safari` | `edge` | `firefox` | `samsung_internet` | `in_app` | `other`. */
4042
+ family: string;
4043
+ sessions: number;
4044
+ paid: number;
4045
+ }
4046
+ /** One platform family's window totals. */
4047
+ interface DevicePlatformSlice {
4048
+ /** `android` | `ios` | `windows` | `macos` | `linux` | `other`. */
4049
+ os: string;
4050
+ sessions: number;
4051
+ paid: number;
4052
+ }
4053
+ /** One device class's window totals (`unknown` = rows predating classification). */
4054
+ interface DeviceClassSlice {
4055
+ /** `phone` | `tablet` | `desktop` | `unknown`. */
4056
+ class: string;
4057
+ sessions: number;
4058
+ }
4059
+ /**
4060
+ * One identifiable device model's window totals (top ~10 by sessions).
4061
+ * Sessions with no identifiable model are excluded and reported via
4062
+ * `unidentified_model_share`, never guessed.
4063
+ */
4064
+ interface DeviceModelSlice {
4065
+ model: string;
4066
+ sessions: number;
4067
+ paid: number;
4068
+ }
4069
+ /** One series bucket of session counts per checkout channel. */
4070
+ interface DeviceChannelBucket {
4071
+ /** Bucket start: `YYYY-MM-DD` (day grain) or `YYYY-MM-DDTHH:00:00Z` (hour grain). */
4072
+ bucket: string;
4073
+ /** Hosted checkout page (top-level). */
4074
+ hosted: number;
4075
+ /** Hosted checkout embedded in the merchant's page. */
4076
+ embedded: number;
4077
+ /** API / server-initiated. */
4078
+ api: number;
4079
+ dashboard: number;
4080
+ sdk: number;
4081
+ /** Intents that declared no confirm source. */
4082
+ unknown: number;
4083
+ }
4084
+ /** One fixed histogram bucket of the time-to-pay distribution. */
4085
+ interface TimeToPayBucket {
4086
+ /** `lt_30s` | `s30_60s` | `m1_2` | `m2_5` | `m5_15` | `gt_15m`. */
4087
+ label: string;
4088
+ /** Share of measured paid sessions in this bucket. */
4089
+ share: number;
4090
+ }
4091
+ /**
4092
+ * Time from the first `checkout_open` observation to the first `succeeded`
4093
+ * status. Only payments with both endpoints count.
4094
+ */
4095
+ interface TimeToPayStats {
4096
+ median_s?: number | null;
4097
+ p90_s?: number | null;
4098
+ buckets: TimeToPayBucket[];
4099
+ paid_with_timing: number;
4100
+ }
4101
+ /** A direct child of the current scope on the device dashboard's by-shop table. */
4102
+ interface DeviceAnalyticsChild {
4103
+ id: string;
4104
+ name: string;
4105
+ /** "merchant" | "project" | "shop". */
4106
+ type: string;
4107
+ sessions: number;
4108
+ conversion: number;
4109
+ /** Median time-to-pay in seconds; `null` when nothing measured. */
4110
+ median_ttp_s?: number | null;
4111
+ mobile_share: number;
4112
+ top_browser?: string | null;
4113
+ top_platform?: string | null;
4114
+ }
4115
+ /** Device-analytics response for one drill level. */
4116
+ interface DevicesAnalyticsResponse {
4117
+ /**
4118
+ * `false` when the purpose gate or device tracking is off — the caveats say
4119
+ * which — and every data block is empty.
4120
+ */
4121
+ enabled: boolean;
4122
+ /** "root" | "merchant" | "project" | "shop". */
4123
+ level: string;
4124
+ days: number;
4125
+ end_date: string;
4126
+ /** `"day"` or `"hour"`, mirroring the request. */
4127
+ granularity: string;
4128
+ /** First bucket's UTC start when `granularity` is `"hour"`. */
4129
+ bucket_start?: string | null;
4130
+ totals: DeviceAnalyticsTotals;
4131
+ /** Per-bucket session/paid counts (the `series` section). */
4132
+ series: DeviceSessionBucket[];
4133
+ browsers: DeviceBrowserSlice[];
4134
+ platforms: DevicePlatformSlice[];
4135
+ device_classes: DeviceClassSlice[];
4136
+ device_models: DeviceModelSlice[];
4137
+ /** Share of sessions whose device model could not be identified. */
4138
+ unidentified_model_share: number;
4139
+ channel_series: DeviceChannelBucket[];
4140
+ time_to_pay: TimeToPayStats;
4141
+ children: DeviceAnalyticsChild[];
4142
+ caveats: ClientAnalyticsCaveat[];
4143
+ filters: ClientAnalyticsFilters;
4144
+ }
4145
+ /** Window totals for the geo dashboard's KPI row. */
4146
+ interface GeoAnalyticsTotals {
4147
+ /** Distinct countries observed in the selected mode. */
4148
+ countries: number;
4149
+ /**
4150
+ * Share of paid sessions from outside the shop's home country. `null` when
4151
+ * no shop in scope has a home country (`ShopHasNoHomeCountry`).
4152
+ */
4153
+ cross_border_share?: number | null;
4154
+ /**
4155
+ * Share of paid sessions whose IP country and billing country disagree
4156
+ * (both present). `null` when no session carries both claims.
4157
+ */
4158
+ mismatch_share?: number | null;
4159
+ /**
4160
+ * Successful volume (USD major units) from outside the shops' home
4161
+ * countries. `null` when no shop in scope has a home country.
4162
+ */
4163
+ intl_volume_usd?: number | null;
4164
+ }
4165
+ /** One country's window totals in the selected mode. */
4166
+ interface GeoCountrySlice {
4167
+ /** ISO alpha-2. */
4168
+ country: string;
4169
+ sessions: number;
4170
+ paid: number;
4171
+ /** Successful volume, USD major units. */
4172
+ volume_usd: number;
4173
+ success_rate: number;
4174
+ }
4175
+ /**
4176
+ * One city bubble for the map (IP mode only). Always a server-side aggregate,
4177
+ * capped at the top ~200 cities — never per-transaction coordinates.
4178
+ */
4179
+ interface GeoCitySlice {
4180
+ city: string;
4181
+ country: string;
4182
+ lat: number;
4183
+ lon: number;
4184
+ sessions: number;
4185
+ /** Paid sessions — the map's bubble size, per the approved design. */
4186
+ paid: number;
4187
+ }
4188
+ /** One buyer language's share (`accept_language` primary subtag). */
4189
+ interface GeoLanguageSlice {
4190
+ lang: string;
4191
+ share: number;
4192
+ }
4193
+ /** A direct child of the current scope on the geo dashboard's by-shop table. */
4194
+ interface GeoAnalyticsChild {
4195
+ id: string;
4196
+ name: string;
4197
+ /** "merchant" | "project" | "shop". */
4198
+ type: string;
4199
+ countries: number;
4200
+ top_country?: string | null;
4201
+ top_country_share: number;
4202
+ /** `null` when no shop under the child has a home country. */
4203
+ intl_share?: number | null;
4204
+ mismatch_share?: number | null;
4205
+ /** Successful volume, USD major units. */
4206
+ volume_usd: number;
4207
+ }
4208
+ /** Geo-analytics response for one drill level. */
4209
+ interface GeoAnalyticsResponse {
4210
+ /** `false` when the purpose gate or device tracking is off. */
4211
+ enabled: boolean;
4212
+ /** "root" | "merchant" | "project" | "shop". */
4213
+ level: string;
4214
+ /** `"ip"` or `"billing"`, mirroring the request. */
4215
+ mode: string;
4216
+ days: number;
4217
+ end_date: string;
4218
+ granularity: string;
4219
+ bucket_start?: string | null;
4220
+ totals: GeoAnalyticsTotals;
4221
+ countries: GeoCountrySlice[];
4222
+ /** IP mode only; empty in billing mode. */
4223
+ cities: GeoCitySlice[];
4224
+ /**
4225
+ * 7 rows (Mon..Sun) × 24 session counts on the buyer's own clock; all zeros
4226
+ * when no observation carries a time zone.
4227
+ */
4228
+ local_hours: number[][];
4229
+ languages: GeoLanguageSlice[];
4230
+ children: GeoAnalyticsChild[];
4231
+ caveats: ClientAnalyticsCaveat[];
4232
+ filters: ClientAnalyticsFilters;
3912
4233
  }
3913
4234
  /** Payout progress of a settlement statement. */
3914
4235
  type SettlementPayoutStatus = 'unpaid' | 'partial' | 'paid';
@@ -6805,6 +7126,25 @@ declare class Analytics {
6805
7126
  * processor mix and direct children. `GET /analytics/scope`
6806
7127
  */
6807
7128
  scope(params?: AnalyticsScopeRequest): Promise<AnalyticsScopeResponse>;
7129
+ /**
7130
+ * Device analytics over the canonical client-context observation per
7131
+ * payment (browser/platform families, device classes and models, checkout
7132
+ * channel mix, time-to-pay), pinned server-side to your own merchant and
7133
+ * drillable via `project_id` / `shop_id` exactly like `scope`. Gated on the
7134
+ * client-context optimisation-use switch: when it is off the server answers
7135
+ * 200 with `enabled: false` and a caveat naming the switch.
7136
+ * `GET /analytics/devices`
7137
+ */
7138
+ devices(params?: ClientAnalyticsRequest): Promise<DevicesAnalyticsResponse>;
7139
+ /**
7140
+ * Geo analytics over the canonical client-context observation per payment:
7141
+ * country totals, city bubbles (IP mode), buyer languages, buyer-local
7142
+ * purchase hours and the IP-vs-billing mismatch share. `mode` selects the
7143
+ * location claim (`ip` default, `billing`); the two are never coalesced.
7144
+ * Same drill, window and gating contract as `devices`.
7145
+ * `GET /analytics/geo`
7146
+ */
7147
+ geo(params?: ClientAnalyticsRequest): Promise<GeoAnalyticsResponse>;
6808
7148
  /** Global search. `POST /analytics/search` */
6809
7149
  search(params: Record<string, unknown>): Promise<Record<string, unknown>>;
6810
7150
  /** Domain-specific search. `POST /analytics/search/{domain}` */
@@ -8388,4 +8728,4 @@ declare function focusedCheckoutUrl(params: FocusedCheckoutUrlParams): string;
8388
8728
  declare const CHECKOUT_EVENT_KINDS: readonly ["native_pane_selected", "native_pane_tab_opened", "native_pane_tab_blocked", "native_pane_abandoned", "native_pane_returned"];
8389
8729
  type CheckoutEventKind = (typeof CHECKOUT_EVENT_KINDS)[number];
8390
8730
 
8391
- 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, Cards, type ChangePasswordRequest, type CheckoutBranding, type CheckoutBrandingUpdate, type CheckoutCustomField, type CheckoutEventKind, CheckoutSession, type CheckoutSessionOptions, type CheckoutThemeDimension, type CheckoutThemeOutput, type CheckoutThemeProgram, type CheckoutThemeProgramRequest, type CheckoutThemeProgramResponse, type CheckoutThemeRule, type ConditionNode, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCloneRequest, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorOwnership, type ConnectorResponse, 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 DeleteAccountRequest, type DeleteUserRoleRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceBlock, type DisputeEvidenceRequest, type DisputeEvidenceType, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, 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 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 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 MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, 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 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 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, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, type RuleConnectorSelection, STRIPE_NATIVE_PANE_METHODS, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, Settlement, type SettlementBackfillRequest, type SettlementBackfillResponse, type SettlementBucket, 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 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 SubscriptionEstimateParams, type SubscriptionEstimateResponse, type SubscriptionInvoice, 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 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 TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type TrustBadge, type UpdateMetadataRequest, type UpdateOperationLimitSettingsRequest, type UpdateSubscriptionRequest, type UpdateUserDetailsRequest, type UpdateUserRoleRequest, type UpsertOperationLimitRuleRequest, 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 };
8731
+ 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, Cards, type ChangePasswordRequest, type CheckoutBranding, type CheckoutBrandingUpdate, type CheckoutCustomField, type CheckoutEventKind, CheckoutSession, type CheckoutSessionOptions, type CheckoutThemeDimension, type CheckoutThemeOutput, type CheckoutThemeProgram, type CheckoutThemeProgramRequest, type CheckoutThemeProgramResponse, type CheckoutThemeRule, type ClientAnalyticsCaveat, type ClientAnalyticsFilters, type ClientAnalyticsRequest, type ConditionNode, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCloneRequest, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorOwnership, type ConnectorResponse, 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 DeleteAccountRequest, type DeleteUserRoleRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DeviceAnalyticsChild, type DeviceAnalyticsTotals, type DeviceBrowserSlice, type DeviceChannelBucket, type DeviceClassSlice, type DeviceModelSlice, type DevicePlatformSlice, type DeviceSessionBucket, type DevicesAnalyticsResponse, type DisputeEvidenceBlock, type DisputeEvidenceRequest, type DisputeEvidenceType, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, 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 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 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 MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, 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 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 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, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, type RuleConnectorSelection, STRIPE_NATIVE_PANE_METHODS, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, Settlement, type SettlementBackfillRequest, type SettlementBackfillResponse, type SettlementBucket, 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 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 SubscriptionEstimateParams, type SubscriptionEstimateResponse, type SubscriptionInvoice, 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 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 UpdateSubscriptionRequest, type UpdateUserDetailsRequest, type UpdateUserRoleRequest, type UpsertOperationLimitRuleRequest, 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
@@ -88,7 +88,7 @@ import {
88
88
  surfacePadValue,
89
89
  verticalGapValue,
90
90
  visibleCustomFields
91
- } from "./chunk-6BVLBNEZ.js";
91
+ } from "./chunk-MMDPBYRI.js";
92
92
  export {
93
93
  ALL_CUSTOM_FIELD_CONDITION_SOURCES,
94
94
  ALL_CUSTOM_FIELD_OPERATORS,
package/dist/internal.cjs CHANGED
@@ -3343,6 +3343,33 @@ var Analytics = class {
3343
3343
  query: params
3344
3344
  });
3345
3345
  }
3346
+ /**
3347
+ * Device analytics over the canonical client-context observation per
3348
+ * payment (browser/platform families, device classes and models, checkout
3349
+ * channel mix, time-to-pay), pinned server-side to your own merchant and
3350
+ * drillable via `project_id` / `shop_id` exactly like `scope`. Gated on the
3351
+ * client-context optimisation-use switch: when it is off the server answers
3352
+ * 200 with `enabled: false` and a caveat naming the switch.
3353
+ * `GET /analytics/devices`
3354
+ */
3355
+ async devices(params) {
3356
+ return this.request("GET", "/analytics/devices", {
3357
+ query: params
3358
+ });
3359
+ }
3360
+ /**
3361
+ * Geo analytics over the canonical client-context observation per payment:
3362
+ * country totals, city bubbles (IP mode), buyer languages, buyer-local
3363
+ * purchase hours and the IP-vs-billing mismatch share. `mode` selects the
3364
+ * location claim (`ip` default, `billing`); the two are never coalesced.
3365
+ * Same drill, window and gating contract as `devices`.
3366
+ * `GET /analytics/geo`
3367
+ */
3368
+ async geo(params) {
3369
+ return this.request("GET", "/analytics/geo", {
3370
+ query: params
3371
+ });
3372
+ }
3346
3373
  /** Global search. `POST /analytics/search` */
3347
3374
  async search(params) {
3348
3375
  return this.request("POST", "/analytics/search", { body: params });
@@ -6190,6 +6217,27 @@ var AdminPortal = class {
6190
6217
  query: params
6191
6218
  });
6192
6219
  }
6220
+ /**
6221
+ * Device analytics over the canonical client-context observation per
6222
+ * payment, rooted at all merchants and drillable via `merchant_id` /
6223
+ * `project_id` / `shop_id` like `analyticsScope`. Answers 200 with
6224
+ * `enabled: false` when the client-context optimisation-use switch is off.
6225
+ */
6226
+ async analyticsDevices(params) {
6227
+ return this.request("GET", "/admin-portal/analytics/devices", {
6228
+ query: params
6229
+ });
6230
+ }
6231
+ /**
6232
+ * Geo analytics over the canonical client-context observation per payment,
6233
+ * rooted at all merchants. `mode` selects the location claim (`ip` default,
6234
+ * `billing`).
6235
+ */
6236
+ async analyticsGeo(params) {
6237
+ return this.request("GET", "/admin-portal/analytics/geo", {
6238
+ query: params
6239
+ });
6240
+ }
6193
6241
  /**
6194
6242
  * Platform billing dashboard: total balance across all ledger accounts (+
6195
6243
  * the net change), top-ups, fees collected, and the day-by-day ledger flow.
@@ -6268,6 +6316,20 @@ var AdminPortal = class {
6268
6316
  { body: { iframe_allowed_origins: origins } }
6269
6317
  );
6270
6318
  }
6319
+ /**
6320
+ * Set (or clear) a target merchant shop's home country — the geo
6321
+ * dashboard's cross-border baseline. Internal-admin route. Pass `null` to
6322
+ * clear back to "international / no home country" (the default).
6323
+ *
6324
+ * `POST /admin-portal/accounts/{merchantId}/business-profile/{profileId}/home-country`
6325
+ */
6326
+ async updateShopHomeCountry(merchantId, profileId, homeCountry) {
6327
+ return this.request(
6328
+ "POST",
6329
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/home-country`,
6330
+ { body: { home_country: homeCountry } }
6331
+ );
6332
+ }
6271
6333
  /**
6272
6334
  * Soft-delete a transaction of ANY merchant. Only payments whose status
6273
6335
  * is in the admin delete policy can be deleted; the action is audited.