@aifeatures/backend 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -309,7 +309,7 @@ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boole
309
309
  declare const createClient: (config?: Config) => Client;
310
310
 
311
311
  type ClientOptions = {
312
- baseUrl: `${string}://${string}` | (string & {});
312
+ baseUrl: "https://aifeatures.dev" | "http://localhost:8788" | (string & {});
313
313
  };
314
314
  type SitePayments = {
315
315
  site_id: string;
@@ -403,6 +403,16 @@ type ProductFulfillment = {
403
403
  content_type: string | null;
404
404
  size: number | null;
405
405
  };
406
+ type SubscriptionPlan = {
407
+ id: string;
408
+ interval: "week" | "month" | "year";
409
+ interval_count: number;
410
+ percent_off_bps: number | null;
411
+ unit_amount: number | null;
412
+ title: string | null;
413
+ position: number;
414
+ active: boolean;
415
+ };
406
416
  type Product = {
407
417
  id: string;
408
418
  site_id: string;
@@ -675,16 +685,6 @@ type AttachProductFileMultipart = {
675
685
  */
676
686
  file?: Blob | File;
677
687
  };
678
- type SubscriptionPlan = {
679
- id: string;
680
- interval: "week" | "month" | "year";
681
- interval_count: number;
682
- percent_off_bps: number | null;
683
- unit_amount: number | null;
684
- title: string | null;
685
- position: number;
686
- active: boolean;
687
- };
688
688
  type ProductSubscriptionConfig = {
689
689
  product_id: string;
690
690
  subscription_required: boolean;
@@ -1620,6 +1620,14 @@ type AnalyticsSummary = {
1620
1620
  bounce_rate: number;
1621
1621
  visit_duration_seconds: number;
1622
1622
  } | null;
1623
+ /**
1624
+ * True when the comparison could not be COMPUTED, as opposed to not existing. A channel filter resolves per window, so the previous one can hold more distinct acquisition tuples than can be resolved while the current one is fine — the current reports are then perfectly good and only the delta is lost. Null `previous` alone cannot express that: it already means 'deliberately not comparable', and a client that reads the two as one renders a failure as a decision. Same distinction `first_seen_unavailable` draws.
1625
+ */
1626
+ previous_unavailable: boolean;
1627
+ /**
1628
+ * WHY the comparison could not be computed, when it could not. `coverage` means the first-seen lookup failed, so whether the previous window is covered is unknown — an outage, which will pass. `filter` means the previous window holds more distinct acquisition tuples than a channel filter can resolve there, which will not pass until the period is narrowed or the filter changed. The two suggest different actions, and a client that renders one sentence for both will name a cause that may not apply.
1629
+ */
1630
+ previous_unavailable_reason?: "coverage" | "filter";
1623
1631
  };
1624
1632
  /**
1625
1633
  * The half-open UTC window the values were measured over: from inclusive, to exclusive. Resolved from the site's reporting timezone.
@@ -1683,7 +1691,7 @@ type AnalyticsRealtime = {
1683
1691
  type AnalyticsBreakdown = {
1684
1692
  status: "ok";
1685
1693
  data: Array<{
1686
- [key: string]: string | number | null;
1694
+ [key: string]: string | number | null | Array<string>;
1687
1695
  }>;
1688
1696
  window: {
1689
1697
  from: string;
@@ -2349,6 +2357,27 @@ type UpdateRetainer = {
2349
2357
  type RetainerSiteBody = {
2350
2358
  site_id: string;
2351
2359
  };
2360
+ type ProductReview = {
2361
+ id: string;
2362
+ rating: number;
2363
+ display_name: string;
2364
+ title: string | null;
2365
+ body: string;
2366
+ created_at: string;
2367
+ updated_at: string;
2368
+ verified_purchase: boolean;
2369
+ reply: string | null;
2370
+ reply_updated_at: string | null;
2371
+ };
2372
+ type OwnProductReview = ProductReview & {
2373
+ revision: number;
2374
+ moderation_state: "published" | "hidden";
2375
+ withdrawn_at: string | null;
2376
+ product_id: string;
2377
+ product_path: string | null;
2378
+ product_name: string | null;
2379
+ product_available: boolean;
2380
+ };
2352
2381
  type ConsentConfig = {
2353
2382
  mode: "adaptive" | "adaptive-with-notice" | "strict-everywhere" | "off";
2354
2383
  policy_path: string | null;
@@ -2373,7 +2402,7 @@ type ConsentConfigResult = {
2373
2402
  };
2374
2403
  type UpsertConsentConfig = {
2375
2404
  /**
2376
- * 'adaptive' (default) follows the server's conservative geographic policy: non-US or unknown country is strict; US risk, missing, or unrecognized region is strict-trackers; other recognized US states/DC are opt-out without a banner. 'adaptive-with-notice' adds a notice in that opt-out group. 'strict-everywhere' requires a choice globally. 'off' hides the banner; stored decisions and GPC still apply.
2405
+ * 'adaptive' (default) follows the server's geographic policy: EEA, UK, Switzerland, or unknown country is strict; US risk, missing, or unrecognized region is strict-trackers; every other country and other recognized US states/DC are opt-out without a banner. 'adaptive-with-notice' adds a notice in that opt-out group. 'strict-everywhere' requires a choice globally. 'off' hides the banner; stored decisions and GPC still apply.
2377
2406
  */
2378
2407
  mode: "adaptive" | "adaptive-with-notice" | "strict-everywhere" | "off";
2379
2408
  /**
@@ -2454,6 +2483,14 @@ type Site = {
2454
2483
  * Stripe Tax (automatic tax) is on for this store's checkout: Stripe calculates and collects real jurisdiction-based tax on the merchant's connected account, using the registrations and settings the merchant manages in their own Stripe Dashboard. tax_behavior decides whether tax is itemized out of the stored prices ('inclusive') or added at checkout ('exclusive').
2455
2484
  */
2456
2485
  stripe_tax_enabled: boolean;
2486
+ /**
2487
+ * Soft-delete timestamp. Non-null = the site is deleted and awaiting the retention-window purge; its site token no longer authenticates and public surfaces refuse. Null for live sites. Only org-key reads ever see a deleted site. While purged_at is null the deletion is reversible (support clears deleted_at); once purged_at is set it is not.
2488
+ */
2489
+ deleted_at: string | null;
2490
+ /**
2491
+ * Retention-window purge timestamp. Non-null = the purge already ran on this deleted site and its row was kept only because billing records (orders, subscriptions, retainers) depend on it: forms, submissions, catalog and non-financial config are gone and the row is a tombstone that CANNOT be restored. Null for live sites and for deleted sites still inside the window. Always null when deleted_at is null.
2492
+ */
2493
+ purged_at: string | null;
2457
2494
  /**
2458
2495
  * The store's selling currency (lowercase ISO 4217). Every stored amount — prices, shipping rates, thresholds — is in MINOR units of this currency.
2459
2496
  */
@@ -3269,6 +3306,14 @@ type AccountLoginResult = {
3269
3306
  };
3270
3307
  type AccountLoginRequest = {
3271
3308
  email: string;
3309
+ /**
3310
+ * Active same-site product to return to after login. Supply together with review_return_path.
3311
+ */
3312
+ review_product_id?: string;
3313
+ /**
3314
+ * Local product pathname and bounded product-routing query only; no fragment, external destination, or credential parameters.
3315
+ */
3316
+ review_return_path?: string;
3272
3317
  };
3273
3318
  type AccountVerifyResult = {
3274
3319
  /**
@@ -3280,6 +3325,15 @@ type AccountVerifyResult = {
3280
3325
  name: string | null;
3281
3326
  };
3282
3327
  expires_at: string;
3328
+ /**
3329
+ * Validated review navigation. Store the session on account_origin, then replace navigation to path with #product-review-form. Unavailable means normal sign-in succeeded but the product editor is no longer available.
3330
+ */
3331
+ review_return?: {
3332
+ product_id: string;
3333
+ path: string | null;
3334
+ account_origin: string;
3335
+ status: "available" | "unavailable";
3336
+ };
3283
3337
  };
3284
3338
  type AccountVerifyRequest = {
3285
3339
  code: string;
@@ -3423,6 +3477,14 @@ type ManageLinkAction = {
3423
3477
  */
3424
3478
  token: string;
3425
3479
  };
3480
+ type ReviewReadiness = {
3481
+ site_id: string;
3482
+ collection_available: boolean;
3483
+ editing_available: boolean;
3484
+ reason: string | null;
3485
+ turnstile_site_key: string | null;
3486
+ account_origin: string | null;
3487
+ };
3426
3488
  type UpdateSitePaymentsData = {
3427
3489
  body: UpdateSitePayments;
3428
3490
  path: {
@@ -4838,6 +4900,10 @@ type GetAnalyticsSummaryData = {
4838
4900
  * Days covered, ending at the most recent midnight in the site's reporting timezone. Today's partial day is EXCLUDED - including it would compare a complete period against a few hours and read as a traffic collapse every morning. Defaults to 30.
4839
4901
  */
4840
4902
  period?: "7" | "30" | "90";
4903
+ /**
4904
+ * Drill-down filters as a JSON array, ANDed with each other: [{"dimension":"page","operator":"is","values":["/pricing"]}]. `operator` is `is` or `is_not` and defaults to `is`; `values` are ORed within one filter. At most 3 filters, 100 values each. JSON rather than a delimited string because the values are merchant data - URLs with commas, campaign names with equals signs - and every delimiter worth choosing appears inside some legitimate value. Dimensions: page, entry_page, exit_page, country, region, city, browser, os, device, source, campaign, utm_source, utm_medium, utm_content, utm_term, channel. `channel` is not a stored column: it is resolved against the window's real acquisition tuples using the same classifier the Channels card uses, so clicking a channel row cannot select a different set than that row claimed. THE SAME FILTERS MUST BE SENT TO EVERY REPORT ON A PAGE - a filtered chart beside an unfiltered tile is worse than no filtering, because the tiles are the numbers a merchant quotes.
4905
+ */
4906
+ filters?: string;
4841
4907
  };
4842
4908
  url: "/api/v1/analytics/summary";
4843
4909
  };
@@ -4870,6 +4936,10 @@ type GetAnalyticsTimeseriesData = {
4870
4936
  * Days covered, ending at the most recent midnight in the site's reporting timezone. Today's partial day is EXCLUDED - including it would compare a complete period against a few hours and read as a traffic collapse every morning. Defaults to 30.
4871
4937
  */
4872
4938
  period?: "7" | "30" | "90";
4939
+ /**
4940
+ * Drill-down filters as a JSON array, ANDed with each other: [{"dimension":"page","operator":"is","values":["/pricing"]}]. `operator` is `is` or `is_not` and defaults to `is`; `values` are ORed within one filter. At most 3 filters, 100 values each. JSON rather than a delimited string because the values are merchant data - URLs with commas, campaign names with equals signs - and every delimiter worth choosing appears inside some legitimate value. Dimensions: page, entry_page, exit_page, country, region, city, browser, os, device, source, campaign, utm_source, utm_medium, utm_content, utm_term, channel. `channel` is not a stored column: it is resolved against the window's real acquisition tuples using the same classifier the Channels card uses, so clicking a channel row cannot select a different set than that row claimed. THE SAME FILTERS MUST BE SENT TO EVERY REPORT ON A PAGE - a filtered chart beside an unfiltered tile is worse than no filtering, because the tiles are the numbers a merchant quotes.
4941
+ */
4942
+ filters?: string;
4873
4943
  };
4874
4944
  url: "/api/v1/analytics/timeseries";
4875
4945
  };
@@ -4925,6 +4995,7 @@ type GetAnalyticsSourcesData = {
4925
4995
  site_id?: string;
4926
4996
  period?: "7" | "30" | "90";
4927
4997
  limit?: string;
4998
+ filters?: string;
4928
4999
  };
4929
5000
  url: "/api/v1/analytics/sources";
4930
5001
  };
@@ -4952,6 +5023,7 @@ type GetAnalyticsCampaignsData = {
4952
5023
  site_id?: string;
4953
5024
  period?: "7" | "30" | "90";
4954
5025
  limit?: string;
5026
+ filters?: string;
4955
5027
  };
4956
5028
  url: "/api/v1/analytics/campaigns";
4957
5029
  };
@@ -4979,6 +5051,7 @@ type GetAnalyticsUtmMediumData = {
4979
5051
  site_id?: string;
4980
5052
  period?: "7" | "30" | "90";
4981
5053
  limit?: string;
5054
+ filters?: string;
4982
5055
  };
4983
5056
  url: "/api/v1/analytics/utm/medium";
4984
5057
  };
@@ -5006,6 +5079,7 @@ type GetAnalyticsUtmSourceData = {
5006
5079
  site_id?: string;
5007
5080
  period?: "7" | "30" | "90";
5008
5081
  limit?: string;
5082
+ filters?: string;
5009
5083
  };
5010
5084
  url: "/api/v1/analytics/utm/source";
5011
5085
  };
@@ -5033,6 +5107,7 @@ type GetAnalyticsUtmCampaignData = {
5033
5107
  site_id?: string;
5034
5108
  period?: "7" | "30" | "90";
5035
5109
  limit?: string;
5110
+ filters?: string;
5036
5111
  };
5037
5112
  url: "/api/v1/analytics/utm/campaign";
5038
5113
  };
@@ -5060,6 +5135,7 @@ type GetAnalyticsUtmContentData = {
5060
5135
  site_id?: string;
5061
5136
  period?: "7" | "30" | "90";
5062
5137
  limit?: string;
5138
+ filters?: string;
5063
5139
  };
5064
5140
  url: "/api/v1/analytics/utm/content";
5065
5141
  };
@@ -5087,6 +5163,7 @@ type GetAnalyticsUtmTermData = {
5087
5163
  site_id?: string;
5088
5164
  period?: "7" | "30" | "90";
5089
5165
  limit?: string;
5166
+ filters?: string;
5090
5167
  };
5091
5168
  url: "/api/v1/analytics/utm/term";
5092
5169
  };
@@ -5114,6 +5191,7 @@ type GetAnalyticsPagesData = {
5114
5191
  site_id?: string;
5115
5192
  period?: "7" | "30" | "90";
5116
5193
  limit?: string;
5194
+ filters?: string;
5117
5195
  };
5118
5196
  url: "/api/v1/analytics/pages";
5119
5197
  };
@@ -5141,6 +5219,7 @@ type GetAnalyticsEntryPagesData = {
5141
5219
  site_id?: string;
5142
5220
  period?: "7" | "30" | "90";
5143
5221
  limit?: string;
5222
+ filters?: string;
5144
5223
  };
5145
5224
  url: "/api/v1/analytics/entry-pages";
5146
5225
  };
@@ -5168,6 +5247,7 @@ type GetAnalyticsExitPagesData = {
5168
5247
  site_id?: string;
5169
5248
  period?: "7" | "30" | "90";
5170
5249
  limit?: string;
5250
+ filters?: string;
5171
5251
  };
5172
5252
  url: "/api/v1/analytics/exit-pages";
5173
5253
  };
@@ -5188,33 +5268,6 @@ type GetAnalyticsExitPagesResponses = {
5188
5268
  200: AnalyticsBreakdown;
5189
5269
  };
5190
5270
  type GetAnalyticsExitPagesResponse = GetAnalyticsExitPagesResponses[keyof GetAnalyticsExitPagesResponses];
5191
- type GetAnalyticsReferrersData = {
5192
- body?: never;
5193
- path?: never;
5194
- query?: {
5195
- site_id?: string;
5196
- period?: "7" | "30" | "90";
5197
- limit?: string;
5198
- };
5199
- url: "/api/v1/analytics/referrers";
5200
- };
5201
- type GetAnalyticsReferrersErrors = {
5202
- /**
5203
- * site_id mismatch / unsupported period
5204
- */
5205
- 400: unknown;
5206
- /**
5207
- * Missing or invalid token
5208
- */
5209
- 401: unknown;
5210
- };
5211
- type GetAnalyticsReferrersResponses = {
5212
- /**
5213
- * Breakdown rows, or an unreachable source
5214
- */
5215
- 200: AnalyticsBreakdown;
5216
- };
5217
- type GetAnalyticsReferrersResponse = GetAnalyticsReferrersResponses[keyof GetAnalyticsReferrersResponses];
5218
5271
  type GetAnalyticsCountriesData = {
5219
5272
  body?: never;
5220
5273
  path?: never;
@@ -5222,6 +5275,7 @@ type GetAnalyticsCountriesData = {
5222
5275
  site_id?: string;
5223
5276
  period?: "7" | "30" | "90";
5224
5277
  limit?: string;
5278
+ filters?: string;
5225
5279
  };
5226
5280
  url: "/api/v1/analytics/countries";
5227
5281
  };
@@ -5249,6 +5303,7 @@ type GetAnalyticsRegionsData = {
5249
5303
  site_id?: string;
5250
5304
  period?: "7" | "30" | "90";
5251
5305
  limit?: string;
5306
+ filters?: string;
5252
5307
  };
5253
5308
  url: "/api/v1/analytics/regions";
5254
5309
  };
@@ -5276,6 +5331,7 @@ type GetAnalyticsCitiesData = {
5276
5331
  site_id?: string;
5277
5332
  period?: "7" | "30" | "90";
5278
5333
  limit?: string;
5334
+ filters?: string;
5279
5335
  };
5280
5336
  url: "/api/v1/analytics/cities";
5281
5337
  };
@@ -5303,6 +5359,7 @@ type GetAnalyticsDevicesData = {
5303
5359
  site_id?: string;
5304
5360
  period?: "7" | "30" | "90";
5305
5361
  limit?: string;
5362
+ filters?: string;
5306
5363
  };
5307
5364
  url: "/api/v1/analytics/devices";
5308
5365
  };
@@ -5330,6 +5387,7 @@ type GetAnalyticsBrowsersData = {
5330
5387
  site_id?: string;
5331
5388
  period?: "7" | "30" | "90";
5332
5389
  limit?: string;
5390
+ filters?: string;
5333
5391
  };
5334
5392
  url: "/api/v1/analytics/browsers";
5335
5393
  };
@@ -5357,6 +5415,7 @@ type GetAnalyticsOperatingSystemsData = {
5357
5415
  site_id?: string;
5358
5416
  period?: "7" | "30" | "90";
5359
5417
  limit?: string;
5418
+ filters?: string;
5360
5419
  };
5361
5420
  url: "/api/v1/analytics/operating-systems";
5362
5421
  };
@@ -5383,6 +5442,7 @@ type GetAnalyticsChannelsData = {
5383
5442
  query?: {
5384
5443
  site_id?: string;
5385
5444
  period?: "7" | "30" | "90";
5445
+ filters?: string;
5386
5446
  };
5387
5447
  url: "/api/v1/analytics/channels";
5388
5448
  };
@@ -5520,6 +5580,10 @@ type ReactivateSiteSubscriptionsTeardownErrors = {
5520
5580
  * Site not found. `code` distinguishes the two cases: 'site_not_found' (no such site — terminal) vs 'site_not_accessible' (exists, another organization — wrong or rotated key, retry).
5521
5581
  */
5522
5582
  404: Error;
5583
+ /**
5584
+ * The site is soft-deleted (`code: 'site_deleted'`): a deleted store never resumes charging, so nothing is reactivated. Terminal for the caller — a restore (clearing deleted_at) is a support action.
5585
+ */
5586
+ 409: Error;
5523
5587
  };
5524
5588
  type ReactivateSiteSubscriptionsTeardownError = ReactivateSiteSubscriptionsTeardownErrors[keyof ReactivateSiteSubscriptionsTeardownErrors];
5525
5589
  type ReactivateSiteSubscriptionsTeardownResponses = {
@@ -6574,130 +6638,670 @@ type CancelRetainerResponses = {
6574
6638
  200: Retainer;
6575
6639
  };
6576
6640
  type CancelRetainerResponse = CancelRetainerResponses[keyof CancelRetainerResponses];
6577
- type GetConsentConfigWithSiteTokenData = {
6641
+ type ListMerchantReviewsData = {
6578
6642
  body?: never;
6579
- path?: never;
6580
- query?: never;
6581
- url: "/api/v1/site-prefs";
6643
+ path: {
6644
+ siteId: string;
6645
+ };
6646
+ query?: {
6647
+ product_id?: string;
6648
+ rating?: number;
6649
+ state?: "published" | "hidden" | "withdrawn";
6650
+ cursor?: string;
6651
+ limit?: number;
6652
+ };
6653
+ url: "/api/v1/sites/{siteId}/reviews";
6582
6654
  };
6583
- type GetConsentConfigWithSiteTokenErrors = {
6655
+ type ListMerchantReviewsErrors = {
6584
6656
  /**
6585
- * Unauthorized - requires site token
6657
+ * Invalid input
6586
6658
  */
6587
- 401: Error;
6659
+ 400: {
6660
+ error: string;
6661
+ code?: string;
6662
+ review?: OwnProductReview & {
6663
+ customer_id: string;
6664
+ };
6665
+ };
6588
6666
  /**
6589
- * No consent config exists for this site yet
6667
+ * Organization key required
6590
6668
  */
6591
- 404: Error;
6669
+ 403: {
6670
+ error: string;
6671
+ code?: string;
6672
+ review?: OwnProductReview & {
6673
+ customer_id: string;
6674
+ };
6675
+ };
6676
+ /**
6677
+ * Resource not found
6678
+ */
6679
+ 404: {
6680
+ error: string;
6681
+ code?: string;
6682
+ review?: OwnProductReview & {
6683
+ customer_id: string;
6684
+ };
6685
+ };
6686
+ /**
6687
+ * Review changed; read the current revision
6688
+ */
6689
+ 409: {
6690
+ error: string;
6691
+ code?: string;
6692
+ review?: OwnProductReview & {
6693
+ customer_id: string;
6694
+ };
6695
+ };
6592
6696
  };
6593
- type GetConsentConfigWithSiteTokenError = GetConsentConfigWithSiteTokenErrors[keyof GetConsentConfigWithSiteTokenErrors];
6594
- type GetConsentConfigWithSiteTokenResponses = {
6697
+ type ListMerchantReviewsError = ListMerchantReviewsErrors[keyof ListMerchantReviewsErrors];
6698
+ type ListMerchantReviewsResponses = {
6595
6699
  /**
6596
- * The site's consent configuration
6700
+ * Success
6597
6701
  */
6598
- 200: ConsentConfig;
6702
+ 200: {
6703
+ reviews: Array<OwnProductReview & {
6704
+ customer_id: string;
6705
+ }>;
6706
+ pagination: {
6707
+ next_cursor: string | null;
6708
+ has_more: boolean;
6709
+ };
6710
+ };
6599
6711
  };
6600
- type GetConsentConfigWithSiteTokenResponse = GetConsentConfigWithSiteTokenResponses[keyof GetConsentConfigWithSiteTokenResponses];
6601
- type UpsertConsentConfigWithSiteTokenData = {
6602
- body: UpsertConsentConfig;
6603
- path?: never;
6712
+ type ListMerchantReviewsResponse = ListMerchantReviewsResponses[keyof ListMerchantReviewsResponses];
6713
+ type GetMerchantReviewData = {
6714
+ body?: never;
6715
+ path: {
6716
+ siteId: string;
6717
+ reviewId: string;
6718
+ };
6604
6719
  query?: never;
6605
- url: "/api/v1/site-prefs";
6720
+ url: "/api/v1/sites/{siteId}/reviews/{reviewId}";
6606
6721
  };
6607
- type UpsertConsentConfigWithSiteTokenErrors = {
6722
+ type GetMerchantReviewErrors = {
6608
6723
  /**
6609
- * Validation error
6724
+ * Invalid input
6610
6725
  */
6611
- 400: Error;
6726
+ 400: {
6727
+ error: string;
6728
+ code?: string;
6729
+ review?: OwnProductReview & {
6730
+ customer_id: string;
6731
+ };
6732
+ };
6612
6733
  /**
6613
- * Unauthorized - requires site token
6734
+ * Organization key required
6614
6735
  */
6615
- 401: Error;
6736
+ 403: {
6737
+ error: string;
6738
+ code?: string;
6739
+ review?: OwnProductReview & {
6740
+ customer_id: string;
6741
+ };
6742
+ };
6743
+ /**
6744
+ * Resource not found
6745
+ */
6746
+ 404: {
6747
+ error: string;
6748
+ code?: string;
6749
+ review?: OwnProductReview & {
6750
+ customer_id: string;
6751
+ };
6752
+ };
6753
+ /**
6754
+ * Review changed; read the current revision
6755
+ */
6756
+ 409: {
6757
+ error: string;
6758
+ code?: string;
6759
+ review?: OwnProductReview & {
6760
+ customer_id: string;
6761
+ };
6762
+ };
6616
6763
  };
6617
- type UpsertConsentConfigWithSiteTokenError = UpsertConsentConfigWithSiteTokenErrors[keyof UpsertConsentConfigWithSiteTokenErrors];
6618
- type UpsertConsentConfigWithSiteTokenResponses = {
6764
+ type GetMerchantReviewError = GetMerchantReviewErrors[keyof GetMerchantReviewErrors];
6765
+ type GetMerchantReviewResponses = {
6619
6766
  /**
6620
- * The upserted consent configuration
6767
+ * Success
6621
6768
  */
6622
- 200: ConsentConfigResult;
6769
+ 200: {
6770
+ review: OwnProductReview & {
6771
+ customer_id: string;
6772
+ };
6773
+ events: Array<{
6774
+ id: string;
6775
+ actor_type: string;
6776
+ actor_id: string;
6777
+ action: string;
6778
+ reason: string | null;
6779
+ note: string | null;
6780
+ revision: number;
6781
+ created_at: string;
6782
+ }>;
6783
+ events_truncated: boolean;
6784
+ };
6623
6785
  };
6624
- type UpsertConsentConfigWithSiteTokenResponse = UpsertConsentConfigWithSiteTokenResponses[keyof UpsertConsentConfigWithSiteTokenResponses];
6625
- type ListFormsWithSiteTokenData = {
6626
- body?: never;
6627
- path?: never;
6786
+ type GetMerchantReviewResponse = GetMerchantReviewResponses[keyof GetMerchantReviewResponses];
6787
+ type ModerateMerchantReviewData = {
6788
+ body: {
6789
+ revision: number;
6790
+ action: "hide" | "restore";
6791
+ reason: "spam" | "abuse" | "personal_information" | "off_topic" | "suspected_fraud";
6792
+ note?: string;
6793
+ };
6794
+ path: {
6795
+ siteId: string;
6796
+ reviewId: string;
6797
+ };
6628
6798
  query?: never;
6629
- url: "/api/v1/forms";
6799
+ url: "/api/v1/sites/{siteId}/reviews/{reviewId}/moderate";
6630
6800
  };
6631
- type ListFormsWithSiteTokenErrors = {
6801
+ type ModerateMerchantReviewErrors = {
6632
6802
  /**
6633
- * Unauthorized - requires site token
6803
+ * Invalid input
6634
6804
  */
6635
- 401: Error;
6805
+ 400: {
6806
+ error: string;
6807
+ code?: string;
6808
+ review?: OwnProductReview & {
6809
+ customer_id: string;
6810
+ };
6811
+ };
6636
6812
  /**
6637
- * Site not found
6813
+ * Organization key required
6638
6814
  */
6639
- 404: Error;
6815
+ 403: {
6816
+ error: string;
6817
+ code?: string;
6818
+ review?: OwnProductReview & {
6819
+ customer_id: string;
6820
+ };
6821
+ };
6822
+ /**
6823
+ * Resource not found
6824
+ */
6825
+ 404: {
6826
+ error: string;
6827
+ code?: string;
6828
+ review?: OwnProductReview & {
6829
+ customer_id: string;
6830
+ };
6831
+ };
6832
+ /**
6833
+ * Review changed; read the current revision
6834
+ */
6835
+ 409: {
6836
+ error: string;
6837
+ code?: string;
6838
+ review?: OwnProductReview & {
6839
+ customer_id: string;
6840
+ };
6841
+ };
6640
6842
  };
6641
- type ListFormsWithSiteTokenError = ListFormsWithSiteTokenErrors[keyof ListFormsWithSiteTokenErrors];
6642
- type ListFormsWithSiteTokenResponses = {
6843
+ type ModerateMerchantReviewError = ModerateMerchantReviewErrors[keyof ModerateMerchantReviewErrors];
6844
+ type ModerateMerchantReviewResponses = {
6643
6845
  /**
6644
- * List of forms
6846
+ * Success
6645
6847
  */
6646
- 200: FormsList;
6848
+ 200: {
6849
+ review: OwnProductReview & {
6850
+ customer_id: string;
6851
+ };
6852
+ };
6647
6853
  };
6648
- type ListFormsWithSiteTokenResponse = ListFormsWithSiteTokenResponses[keyof ListFormsWithSiteTokenResponses];
6649
- type CreateFormWithSiteTokenData = {
6650
- body: CreateForm;
6651
- path?: never;
6854
+ type ModerateMerchantReviewResponse = ModerateMerchantReviewResponses[keyof ModerateMerchantReviewResponses];
6855
+ type ReplyToMerchantReviewData = {
6856
+ body: {
6857
+ revision: number;
6858
+ body: string | null;
6859
+ };
6860
+ path: {
6861
+ siteId: string;
6862
+ reviewId: string;
6863
+ };
6652
6864
  query?: never;
6653
- url: "/api/v1/forms";
6865
+ url: "/api/v1/sites/{siteId}/reviews/{reviewId}/reply";
6654
6866
  };
6655
- type CreateFormWithSiteTokenErrors = {
6867
+ type ReplyToMerchantReviewErrors = {
6656
6868
  /**
6657
- * Form name indicates credential/payment collection, which is not supported
6869
+ * Invalid input
6658
6870
  */
6659
- 400: Error;
6871
+ 400: {
6872
+ error: string;
6873
+ code?: string;
6874
+ review?: OwnProductReview & {
6875
+ customer_id: string;
6876
+ };
6877
+ };
6660
6878
  /**
6661
- * Unauthorized - requires site token
6879
+ * Organization key required
6662
6880
  */
6663
- 401: Error;
6881
+ 403: {
6882
+ error: string;
6883
+ code?: string;
6884
+ review?: OwnProductReview & {
6885
+ customer_id: string;
6886
+ };
6887
+ };
6664
6888
  /**
6665
- * Site not found
6889
+ * Resource not found
6666
6890
  */
6667
- 404: Error;
6891
+ 404: {
6892
+ error: string;
6893
+ code?: string;
6894
+ review?: OwnProductReview & {
6895
+ customer_id: string;
6896
+ };
6897
+ };
6898
+ /**
6899
+ * Review changed; read the current revision
6900
+ */
6901
+ 409: {
6902
+ error: string;
6903
+ code?: string;
6904
+ review?: OwnProductReview & {
6905
+ customer_id: string;
6906
+ };
6907
+ };
6668
6908
  };
6669
- type CreateFormWithSiteTokenError = CreateFormWithSiteTokenErrors[keyof CreateFormWithSiteTokenErrors];
6670
- type CreateFormWithSiteTokenResponses = {
6909
+ type ReplyToMerchantReviewError = ReplyToMerchantReviewErrors[keyof ReplyToMerchantReviewErrors];
6910
+ type ReplyToMerchantReviewResponses = {
6671
6911
  /**
6672
- * Form created successfully
6912
+ * Success
6673
6913
  */
6674
- 201: Form;
6914
+ 200: {
6915
+ review: OwnProductReview & {
6916
+ customer_id: string;
6917
+ };
6918
+ };
6675
6919
  };
6676
- type CreateFormWithSiteTokenResponse = CreateFormWithSiteTokenResponses[keyof CreateFormWithSiteTokenResponses];
6677
- type ListSitesData = {
6920
+ type ReplyToMerchantReviewResponse = ReplyToMerchantReviewResponses[keyof ReplyToMerchantReviewResponses];
6921
+ type GetReviewSettingsData = {
6678
6922
  body?: never;
6679
- path?: never;
6680
- query?: {
6681
- /**
6682
- * Exact match on the consumer-side id (the landingsite website id) — the lookup for "which aifeatures site is this website?"
6683
- */
6684
- external_id?: string;
6685
- /**
6686
- * Maximum number of sites to return (default 50, max 100)
6687
- */
6688
- limit?: string;
6689
- /**
6690
- * Number of sites to skip
6691
- */
6692
- offset?: string;
6923
+ path: {
6924
+ siteId: string;
6693
6925
  };
6694
- url: "/api/v1/sites";
6926
+ query?: never;
6927
+ url: "/api/v1/sites/{siteId}/review-settings";
6695
6928
  };
6696
- type ListSitesErrors = {
6929
+ type GetReviewSettingsErrors = {
6697
6930
  /**
6698
- * Unauthorized
6931
+ * Invalid input
6699
6932
  */
6700
- 401: Error;
6933
+ 400: {
6934
+ error: string;
6935
+ code?: string;
6936
+ review?: OwnProductReview & {
6937
+ customer_id: string;
6938
+ };
6939
+ };
6940
+ /**
6941
+ * Organization key required
6942
+ */
6943
+ 403: {
6944
+ error: string;
6945
+ code?: string;
6946
+ review?: OwnProductReview & {
6947
+ customer_id: string;
6948
+ };
6949
+ };
6950
+ /**
6951
+ * Resource not found
6952
+ */
6953
+ 404: {
6954
+ error: string;
6955
+ code?: string;
6956
+ review?: OwnProductReview & {
6957
+ customer_id: string;
6958
+ };
6959
+ };
6960
+ /**
6961
+ * Review changed; read the current revision
6962
+ */
6963
+ 409: {
6964
+ error: string;
6965
+ code?: string;
6966
+ review?: OwnProductReview & {
6967
+ customer_id: string;
6968
+ };
6969
+ };
6970
+ };
6971
+ type GetReviewSettingsError = GetReviewSettingsErrors[keyof GetReviewSettingsErrors];
6972
+ type GetReviewSettingsResponses = {
6973
+ /**
6974
+ * Success
6975
+ */
6976
+ 200: {
6977
+ site_id: string;
6978
+ reviews_enabled: boolean;
6979
+ collection_available: boolean;
6980
+ editing_available: boolean;
6981
+ reason: string | null;
6982
+ turnstile_site_key: string | null;
6983
+ account_origin: string | null;
6984
+ };
6985
+ };
6986
+ type GetReviewSettingsResponse = GetReviewSettingsResponses[keyof GetReviewSettingsResponses];
6987
+ type UpdateReviewSettingsData = {
6988
+ body: {
6989
+ reviews_enabled: boolean;
6990
+ };
6991
+ path: {
6992
+ siteId: string;
6993
+ };
6994
+ query?: never;
6995
+ url: "/api/v1/sites/{siteId}/review-settings";
6996
+ };
6997
+ type UpdateReviewSettingsErrors = {
6998
+ /**
6999
+ * Invalid input
7000
+ */
7001
+ 400: {
7002
+ error: string;
7003
+ code?: string;
7004
+ review?: OwnProductReview & {
7005
+ customer_id: string;
7006
+ };
7007
+ };
7008
+ /**
7009
+ * Organization key required
7010
+ */
7011
+ 403: {
7012
+ error: string;
7013
+ code?: string;
7014
+ review?: OwnProductReview & {
7015
+ customer_id: string;
7016
+ };
7017
+ };
7018
+ /**
7019
+ * Resource not found
7020
+ */
7021
+ 404: {
7022
+ error: string;
7023
+ code?: string;
7024
+ review?: OwnProductReview & {
7025
+ customer_id: string;
7026
+ };
7027
+ };
7028
+ /**
7029
+ * Review changed; read the current revision
7030
+ */
7031
+ 409: {
7032
+ error: string;
7033
+ code?: string;
7034
+ review?: OwnProductReview & {
7035
+ customer_id: string;
7036
+ };
7037
+ };
7038
+ };
7039
+ type UpdateReviewSettingsError = UpdateReviewSettingsErrors[keyof UpdateReviewSettingsErrors];
7040
+ type UpdateReviewSettingsResponses = {
7041
+ /**
7042
+ * Success
7043
+ */
7044
+ 200: {
7045
+ site_id: string;
7046
+ reviews_enabled: boolean;
7047
+ collection_available: boolean;
7048
+ editing_available: boolean;
7049
+ reason: string | null;
7050
+ turnstile_site_key: string | null;
7051
+ account_origin: string | null;
7052
+ };
7053
+ };
7054
+ type UpdateReviewSettingsResponse = UpdateReviewSettingsResponses[keyof UpdateReviewSettingsResponses];
7055
+ type EraseCustomerReviewsData = {
7056
+ body?: never;
7057
+ path: {
7058
+ siteId: string;
7059
+ customerId: string;
7060
+ };
7061
+ query?: never;
7062
+ url: "/api/v1/sites/{siteId}/customers/{customerId}/reviews";
7063
+ };
7064
+ type EraseCustomerReviewsErrors = {
7065
+ /**
7066
+ * Invalid input
7067
+ */
7068
+ 400: {
7069
+ error: string;
7070
+ code?: string;
7071
+ review?: OwnProductReview & {
7072
+ customer_id: string;
7073
+ };
7074
+ };
7075
+ /**
7076
+ * Organization key required
7077
+ */
7078
+ 403: {
7079
+ error: string;
7080
+ code?: string;
7081
+ review?: OwnProductReview & {
7082
+ customer_id: string;
7083
+ };
7084
+ };
7085
+ /**
7086
+ * Resource not found
7087
+ */
7088
+ 404: {
7089
+ error: string;
7090
+ code?: string;
7091
+ review?: OwnProductReview & {
7092
+ customer_id: string;
7093
+ };
7094
+ };
7095
+ /**
7096
+ * Review changed; read the current revision
7097
+ */
7098
+ 409: {
7099
+ error: string;
7100
+ code?: string;
7101
+ review?: OwnProductReview & {
7102
+ customer_id: string;
7103
+ };
7104
+ };
7105
+ };
7106
+ type EraseCustomerReviewsError = EraseCustomerReviewsErrors[keyof EraseCustomerReviewsErrors];
7107
+ type EraseCustomerReviewsResponses = {
7108
+ /**
7109
+ * Success
7110
+ */
7111
+ 200: {
7112
+ erased: number;
7113
+ };
7114
+ };
7115
+ type EraseCustomerReviewsResponse = EraseCustomerReviewsResponses[keyof EraseCustomerReviewsResponses];
7116
+ type PurgeSiteReviewsData = {
7117
+ body?: never;
7118
+ path: {
7119
+ siteId: string;
7120
+ };
7121
+ query?: never;
7122
+ url: "/api/v1/sites/{siteId}/reviews/purge";
7123
+ };
7124
+ type PurgeSiteReviewsErrors = {
7125
+ /**
7126
+ * Invalid input
7127
+ */
7128
+ 400: {
7129
+ error: string;
7130
+ code?: string;
7131
+ review?: OwnProductReview & {
7132
+ customer_id: string;
7133
+ };
7134
+ };
7135
+ /**
7136
+ * Organization key required
7137
+ */
7138
+ 403: {
7139
+ error: string;
7140
+ code?: string;
7141
+ review?: OwnProductReview & {
7142
+ customer_id: string;
7143
+ };
7144
+ };
7145
+ /**
7146
+ * Resource not found
7147
+ */
7148
+ 404: {
7149
+ error: string;
7150
+ code?: string;
7151
+ review?: OwnProductReview & {
7152
+ customer_id: string;
7153
+ };
7154
+ };
7155
+ /**
7156
+ * Review changed; read the current revision
7157
+ */
7158
+ 409: {
7159
+ error: string;
7160
+ code?: string;
7161
+ review?: OwnProductReview & {
7162
+ customer_id: string;
7163
+ };
7164
+ };
7165
+ };
7166
+ type PurgeSiteReviewsError = PurgeSiteReviewsErrors[keyof PurgeSiteReviewsErrors];
7167
+ type PurgeSiteReviewsResponses = {
7168
+ /**
7169
+ * Success
7170
+ */
7171
+ 200: {
7172
+ purged: number;
7173
+ reviews_enabled: false;
7174
+ };
7175
+ };
7176
+ type PurgeSiteReviewsResponse = PurgeSiteReviewsResponses[keyof PurgeSiteReviewsResponses];
7177
+ type GetConsentConfigWithSiteTokenData = {
7178
+ body?: never;
7179
+ path?: never;
7180
+ query?: never;
7181
+ url: "/api/v1/site-prefs";
7182
+ };
7183
+ type GetConsentConfigWithSiteTokenErrors = {
7184
+ /**
7185
+ * Unauthorized - requires site token
7186
+ */
7187
+ 401: Error;
7188
+ /**
7189
+ * No consent config exists for this site yet
7190
+ */
7191
+ 404: Error;
7192
+ };
7193
+ type GetConsentConfigWithSiteTokenError = GetConsentConfigWithSiteTokenErrors[keyof GetConsentConfigWithSiteTokenErrors];
7194
+ type GetConsentConfigWithSiteTokenResponses = {
7195
+ /**
7196
+ * The site's consent configuration
7197
+ */
7198
+ 200: ConsentConfig;
7199
+ };
7200
+ type GetConsentConfigWithSiteTokenResponse = GetConsentConfigWithSiteTokenResponses[keyof GetConsentConfigWithSiteTokenResponses];
7201
+ type UpsertConsentConfigWithSiteTokenData = {
7202
+ body: UpsertConsentConfig;
7203
+ path?: never;
7204
+ query?: never;
7205
+ url: "/api/v1/site-prefs";
7206
+ };
7207
+ type UpsertConsentConfigWithSiteTokenErrors = {
7208
+ /**
7209
+ * Validation error
7210
+ */
7211
+ 400: Error;
7212
+ /**
7213
+ * Unauthorized - requires site token
7214
+ */
7215
+ 401: Error;
7216
+ };
7217
+ type UpsertConsentConfigWithSiteTokenError = UpsertConsentConfigWithSiteTokenErrors[keyof UpsertConsentConfigWithSiteTokenErrors];
7218
+ type UpsertConsentConfigWithSiteTokenResponses = {
7219
+ /**
7220
+ * The upserted consent configuration
7221
+ */
7222
+ 200: ConsentConfigResult;
7223
+ };
7224
+ type UpsertConsentConfigWithSiteTokenResponse = UpsertConsentConfigWithSiteTokenResponses[keyof UpsertConsentConfigWithSiteTokenResponses];
7225
+ type ListFormsWithSiteTokenData = {
7226
+ body?: never;
7227
+ path?: never;
7228
+ query?: never;
7229
+ url: "/api/v1/forms";
7230
+ };
7231
+ type ListFormsWithSiteTokenErrors = {
7232
+ /**
7233
+ * Unauthorized - requires site token
7234
+ */
7235
+ 401: Error;
7236
+ /**
7237
+ * Site not found
7238
+ */
7239
+ 404: Error;
7240
+ };
7241
+ type ListFormsWithSiteTokenError = ListFormsWithSiteTokenErrors[keyof ListFormsWithSiteTokenErrors];
7242
+ type ListFormsWithSiteTokenResponses = {
7243
+ /**
7244
+ * List of forms
7245
+ */
7246
+ 200: FormsList;
7247
+ };
7248
+ type ListFormsWithSiteTokenResponse = ListFormsWithSiteTokenResponses[keyof ListFormsWithSiteTokenResponses];
7249
+ type CreateFormWithSiteTokenData = {
7250
+ body: CreateForm;
7251
+ path?: never;
7252
+ query?: never;
7253
+ url: "/api/v1/forms";
7254
+ };
7255
+ type CreateFormWithSiteTokenErrors = {
7256
+ /**
7257
+ * Form name indicates credential/payment collection, which is not supported
7258
+ */
7259
+ 400: Error;
7260
+ /**
7261
+ * Unauthorized - requires site token
7262
+ */
7263
+ 401: Error;
7264
+ /**
7265
+ * Site not found
7266
+ */
7267
+ 404: Error;
7268
+ };
7269
+ type CreateFormWithSiteTokenError = CreateFormWithSiteTokenErrors[keyof CreateFormWithSiteTokenErrors];
7270
+ type CreateFormWithSiteTokenResponses = {
7271
+ /**
7272
+ * Form created successfully
7273
+ */
7274
+ 201: Form;
7275
+ };
7276
+ type CreateFormWithSiteTokenResponse = CreateFormWithSiteTokenResponses[keyof CreateFormWithSiteTokenResponses];
7277
+ type ListSitesData = {
7278
+ body?: never;
7279
+ path?: never;
7280
+ query?: {
7281
+ /**
7282
+ * Exact match on the consumer-side id (the landingsite website id) — the lookup for "which aifeatures site is this website?"
7283
+ */
7284
+ external_id?: string;
7285
+ /**
7286
+ * Maximum number of sites to return (default 50, max 100)
7287
+ */
7288
+ limit?: string;
7289
+ /**
7290
+ * Number of sites to skip
7291
+ */
7292
+ offset?: string;
7293
+ /**
7294
+ * Pass 'true' to include soft-deleted sites — hidden by default. Two kinds come back: rows with deleted_at set and purged_at null are inside the retention window and restorable; rows with purged_at ALSO set are tombstones the purge kept for their billing records — forms, catalog and config are gone and they cannot be restored. Because external_id may be reused by a successor site after a delete, an external_id lookup with include_deleted=true can return a live site beside its purged predecessor; read purged_at to tell them apart.
7295
+ */
7296
+ include_deleted?: string;
7297
+ };
7298
+ url: "/api/v1/sites";
7299
+ };
7300
+ type ListSitesErrors = {
7301
+ /**
7302
+ * Unauthorized
7303
+ */
7304
+ 401: Error;
6701
7305
  /**
6702
7306
  * Forbidden - site tokens cannot list sites
6703
7307
  */
@@ -6761,7 +7365,7 @@ type DeleteSiteErrors = {
6761
7365
  */
6762
7366
  403: Error;
6763
7367
  /**
6764
- * Site not found
7368
+ * Site not found. `code` distinguishes `site_not_found` (no such site — an idempotent re-delete of an already-purged site is complete) from `site_not_accessible` (the site exists under another organization — a wrong or rotated key; retry with the right one). Safe to disclose here because this route is org-key-only.
6765
7369
  */
6766
7370
  404: Error;
6767
7371
  };
@@ -7967,7 +8571,7 @@ type AccountLoginData = {
7967
8571
  };
7968
8572
  type AccountLoginErrors = {
7969
8573
  /**
7970
- * Missing or malformed email
8574
+ * Missing or malformed email or review navigation context
7971
8575
  */
7972
8576
  400: Error;
7973
8577
  /**
@@ -8002,6 +8606,10 @@ type AccountVerifyErrors = {
8002
8606
  * Unknown, expired or already-used code (code invalid_code)
8003
8607
  */
8004
8608
  401: Error;
8609
+ /**
8610
+ * Review login must be exchanged on the trusted account origin; the code remains unconsumed
8611
+ */
8612
+ 403: Error;
8005
8613
  /**
8006
8614
  * Too many attempts from this IP
8007
8615
  */
@@ -8431,9 +9039,482 @@ type ActOnManageLinkResponses = {
8431
9039
  200: string;
8432
9040
  };
8433
9041
  type ActOnManageLinkResponse = ActOnManageLinkResponses[keyof ActOnManageLinkResponses];
8434
-
8435
- type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
8436
- /**
9042
+ type GetProductReviewsData = {
9043
+ body?: never;
9044
+ path: {
9045
+ productId: string;
9046
+ };
9047
+ query?: {
9048
+ limit?: number;
9049
+ cursor?: string;
9050
+ sort?: "newest" | "highest" | "lowest";
9051
+ rating?: number;
9052
+ };
9053
+ url: "/v1/p/{productId}/reviews";
9054
+ };
9055
+ type GetProductReviewsErrors = {
9056
+ /**
9057
+ * Invalid input or cursor
9058
+ */
9059
+ 400: unknown;
9060
+ /**
9061
+ * Customer session expired
9062
+ */
9063
+ 401: unknown;
9064
+ /**
9065
+ * Origin, preview, or challenge refused
9066
+ */
9067
+ 403: unknown;
9068
+ /**
9069
+ * Resource unavailable
9070
+ */
9071
+ 404: unknown;
9072
+ /**
9073
+ * Revision conflict; latest saved review included
9074
+ */
9075
+ 409: {
9076
+ error: "review_conflict";
9077
+ review: OwnProductReview;
9078
+ };
9079
+ /**
9080
+ * Customer attempt budget exhausted
9081
+ */
9082
+ 429: unknown;
9083
+ /**
9084
+ * Collection or spam protection unavailable
9085
+ */
9086
+ 503: unknown;
9087
+ };
9088
+ type GetProductReviewsError = GetProductReviewsErrors[keyof GetProductReviewsErrors];
9089
+ type GetProductReviewsResponses = {
9090
+ /**
9091
+ * Public reviews
9092
+ */
9093
+ 200: {
9094
+ reviews: Array<ProductReview>;
9095
+ summary: {
9096
+ count: number;
9097
+ average: number | null;
9098
+ distribution: {
9099
+ 1: number;
9100
+ 2: number;
9101
+ 3: number;
9102
+ 4: number;
9103
+ 5: number;
9104
+ };
9105
+ };
9106
+ pagination: {
9107
+ next_cursor: string | null;
9108
+ has_more: boolean;
9109
+ };
9110
+ };
9111
+ };
9112
+ type GetProductReviewsResponse = GetProductReviewsResponses[keyof GetProductReviewsResponses];
9113
+ type GetProductReviewAvailabilityData = {
9114
+ body?: never;
9115
+ path: {
9116
+ productId: string;
9117
+ };
9118
+ query?: never;
9119
+ url: "/v1/p/{productId}/reviews/availability";
9120
+ };
9121
+ type GetProductReviewAvailabilityErrors = {
9122
+ /**
9123
+ * Invalid input or cursor
9124
+ */
9125
+ 400: unknown;
9126
+ /**
9127
+ * Customer session expired
9128
+ */
9129
+ 401: unknown;
9130
+ /**
9131
+ * Origin, preview, or challenge refused
9132
+ */
9133
+ 403: unknown;
9134
+ /**
9135
+ * Resource unavailable
9136
+ */
9137
+ 404: unknown;
9138
+ /**
9139
+ * Revision conflict; latest saved review included
9140
+ */
9141
+ 409: {
9142
+ error: "review_conflict";
9143
+ review: OwnProductReview;
9144
+ };
9145
+ /**
9146
+ * Customer attempt budget exhausted
9147
+ */
9148
+ 429: unknown;
9149
+ /**
9150
+ * Collection or spam protection unavailable
9151
+ */
9152
+ 503: unknown;
9153
+ };
9154
+ type GetProductReviewAvailabilityError = GetProductReviewAvailabilityErrors[keyof GetProductReviewAvailabilityErrors];
9155
+ type GetProductReviewAvailabilityResponses = {
9156
+ /**
9157
+ * Collection availability
9158
+ */
9159
+ 200: ReviewReadiness & {
9160
+ product_id: string;
9161
+ };
9162
+ };
9163
+ type GetProductReviewAvailabilityResponse = GetProductReviewAvailabilityResponses[keyof GetProductReviewAvailabilityResponses];
9164
+ type GetAccountReviewsData = {
9165
+ body?: never;
9166
+ path?: never;
9167
+ query?: {
9168
+ limit?: number;
9169
+ cursor?: string;
9170
+ };
9171
+ url: "/v1/account/reviews";
9172
+ };
9173
+ type GetAccountReviewsErrors = {
9174
+ /**
9175
+ * Invalid input or cursor
9176
+ */
9177
+ 400: unknown;
9178
+ /**
9179
+ * Customer session expired
9180
+ */
9181
+ 401: unknown;
9182
+ /**
9183
+ * Origin, preview, or challenge refused
9184
+ */
9185
+ 403: unknown;
9186
+ /**
9187
+ * Resource unavailable
9188
+ */
9189
+ 404: unknown;
9190
+ /**
9191
+ * Revision conflict; latest saved review included
9192
+ */
9193
+ 409: {
9194
+ error: "review_conflict";
9195
+ review: OwnProductReview;
9196
+ };
9197
+ /**
9198
+ * Customer attempt budget exhausted
9199
+ */
9200
+ 429: unknown;
9201
+ /**
9202
+ * Collection or spam protection unavailable
9203
+ */
9204
+ 503: unknown;
9205
+ };
9206
+ type GetAccountReviewsError = GetAccountReviewsErrors[keyof GetAccountReviewsErrors];
9207
+ type GetAccountReviewsResponses = {
9208
+ /**
9209
+ * Own reviews
9210
+ */
9211
+ 200: {
9212
+ reviews: Array<OwnProductReview>;
9213
+ pagination: {
9214
+ next_cursor: string | null;
9215
+ has_more: boolean;
9216
+ };
9217
+ };
9218
+ };
9219
+ type GetAccountReviewsResponse = GetAccountReviewsResponses[keyof GetAccountReviewsResponses];
9220
+ type GetOwnProductReviewData = {
9221
+ body?: never;
9222
+ path: {
9223
+ productId: string;
9224
+ };
9225
+ query?: never;
9226
+ url: "/v1/account/reviews/product/{productId}";
9227
+ };
9228
+ type GetOwnProductReviewErrors = {
9229
+ /**
9230
+ * Invalid input or cursor
9231
+ */
9232
+ 400: unknown;
9233
+ /**
9234
+ * Customer session expired
9235
+ */
9236
+ 401: unknown;
9237
+ /**
9238
+ * Origin, preview, or challenge refused
9239
+ */
9240
+ 403: unknown;
9241
+ /**
9242
+ * Resource unavailable
9243
+ */
9244
+ 404: unknown;
9245
+ /**
9246
+ * Revision conflict; latest saved review included
9247
+ */
9248
+ 409: {
9249
+ error: "review_conflict";
9250
+ review: OwnProductReview;
9251
+ };
9252
+ /**
9253
+ * Customer attempt budget exhausted
9254
+ */
9255
+ 429: unknown;
9256
+ /**
9257
+ * Collection or spam protection unavailable
9258
+ */
9259
+ 503: unknown;
9260
+ };
9261
+ type GetOwnProductReviewError = GetOwnProductReviewErrors[keyof GetOwnProductReviewErrors];
9262
+ type GetOwnProductReviewResponses = {
9263
+ /**
9264
+ * Saved review or none
9265
+ */
9266
+ 200: {
9267
+ review: OwnProductReview & ProductReview & ({
9268
+ revision: number;
9269
+ moderation_state: "published" | "hidden";
9270
+ withdrawn_at: string | null;
9271
+ product_id: string;
9272
+ product_path: string | null;
9273
+ product_name: string | null;
9274
+ product_available: boolean;
9275
+ } | null);
9276
+ product_available: boolean;
9277
+ };
9278
+ };
9279
+ type GetOwnProductReviewResponse = GetOwnProductReviewResponses[keyof GetOwnProductReviewResponses];
9280
+ type CreateProductReviewData = {
9281
+ body: {
9282
+ rating: number;
9283
+ display_name: string;
9284
+ title?: string | null;
9285
+ body: string;
9286
+ product_path?: string;
9287
+ turnstile_token: string;
9288
+ };
9289
+ path: {
9290
+ productId: string;
9291
+ };
9292
+ query?: never;
9293
+ url: "/v1/account/reviews/product/{productId}";
9294
+ };
9295
+ type CreateProductReviewErrors = {
9296
+ /**
9297
+ * Invalid input or cursor
9298
+ */
9299
+ 400: unknown;
9300
+ /**
9301
+ * Customer session expired
9302
+ */
9303
+ 401: unknown;
9304
+ /**
9305
+ * Origin, preview, or challenge refused
9306
+ */
9307
+ 403: unknown;
9308
+ /**
9309
+ * Resource unavailable
9310
+ */
9311
+ 404: unknown;
9312
+ /**
9313
+ * Revision conflict; latest saved review included
9314
+ */
9315
+ 409: {
9316
+ error: "review_conflict";
9317
+ review: OwnProductReview;
9318
+ };
9319
+ /**
9320
+ * Customer attempt budget exhausted
9321
+ */
9322
+ 429: unknown;
9323
+ /**
9324
+ * Collection or spam protection unavailable
9325
+ */
9326
+ 503: unknown;
9327
+ };
9328
+ type CreateProductReviewError = CreateProductReviewErrors[keyof CreateProductReviewErrors];
9329
+ type CreateProductReviewResponses = {
9330
+ /**
9331
+ * Existing saved review
9332
+ */
9333
+ 200: {
9334
+ review: OwnProductReview;
9335
+ };
9336
+ /**
9337
+ * Review created
9338
+ */
9339
+ 201: {
9340
+ review: OwnProductReview;
9341
+ };
9342
+ };
9343
+ type CreateProductReviewResponse = CreateProductReviewResponses[keyof CreateProductReviewResponses];
9344
+ type EditProductReviewData = {
9345
+ body: {
9346
+ rating: number;
9347
+ display_name: string;
9348
+ title?: string | null;
9349
+ body: string;
9350
+ product_path?: string;
9351
+ turnstile_token: string;
9352
+ revision: number;
9353
+ };
9354
+ path: {
9355
+ reviewId: string;
9356
+ };
9357
+ query?: never;
9358
+ url: "/v1/account/reviews/{reviewId}/edit";
9359
+ };
9360
+ type EditProductReviewErrors = {
9361
+ /**
9362
+ * Invalid input or cursor
9363
+ */
9364
+ 400: unknown;
9365
+ /**
9366
+ * Customer session expired
9367
+ */
9368
+ 401: unknown;
9369
+ /**
9370
+ * Origin, preview, or challenge refused
9371
+ */
9372
+ 403: unknown;
9373
+ /**
9374
+ * Resource unavailable
9375
+ */
9376
+ 404: unknown;
9377
+ /**
9378
+ * Revision conflict; latest saved review included
9379
+ */
9380
+ 409: {
9381
+ error: "review_conflict";
9382
+ review: OwnProductReview;
9383
+ };
9384
+ /**
9385
+ * Customer attempt budget exhausted
9386
+ */
9387
+ 429: unknown;
9388
+ /**
9389
+ * Collection or spam protection unavailable
9390
+ */
9391
+ 503: unknown;
9392
+ };
9393
+ type EditProductReviewError = EditProductReviewErrors[keyof EditProductReviewErrors];
9394
+ type EditProductReviewResponses = {
9395
+ /**
9396
+ * Updated review
9397
+ */
9398
+ 200: {
9399
+ review: OwnProductReview;
9400
+ };
9401
+ };
9402
+ type EditProductReviewResponse = EditProductReviewResponses[keyof EditProductReviewResponses];
9403
+ type WithdrawProductReviewData = {
9404
+ body: {
9405
+ revision: number;
9406
+ };
9407
+ path: {
9408
+ reviewId: string;
9409
+ };
9410
+ query?: never;
9411
+ url: "/v1/account/reviews/{reviewId}/withdraw";
9412
+ };
9413
+ type WithdrawProductReviewErrors = {
9414
+ /**
9415
+ * Invalid input or cursor
9416
+ */
9417
+ 400: unknown;
9418
+ /**
9419
+ * Customer session expired
9420
+ */
9421
+ 401: unknown;
9422
+ /**
9423
+ * Origin, preview, or challenge refused
9424
+ */
9425
+ 403: unknown;
9426
+ /**
9427
+ * Resource unavailable
9428
+ */
9429
+ 404: unknown;
9430
+ /**
9431
+ * Revision conflict; latest saved review included
9432
+ */
9433
+ 409: {
9434
+ error: "review_conflict";
9435
+ review: OwnProductReview;
9436
+ };
9437
+ /**
9438
+ * Customer attempt budget exhausted
9439
+ */
9440
+ 429: unknown;
9441
+ /**
9442
+ * Collection or spam protection unavailable
9443
+ */
9444
+ 503: unknown;
9445
+ };
9446
+ type WithdrawProductReviewError = WithdrawProductReviewErrors[keyof WithdrawProductReviewErrors];
9447
+ type WithdrawProductReviewResponses = {
9448
+ /**
9449
+ * Updated review
9450
+ */
9451
+ 200: {
9452
+ review: OwnProductReview;
9453
+ };
9454
+ };
9455
+ type WithdrawProductReviewResponse = WithdrawProductReviewResponses[keyof WithdrawProductReviewResponses];
9456
+ type ResubmitProductReviewData = {
9457
+ body: {
9458
+ rating: number;
9459
+ display_name: string;
9460
+ title?: string | null;
9461
+ body: string;
9462
+ product_path?: string;
9463
+ turnstile_token: string;
9464
+ revision: number;
9465
+ };
9466
+ path: {
9467
+ reviewId: string;
9468
+ };
9469
+ query?: never;
9470
+ url: "/v1/account/reviews/{reviewId}/resubmit";
9471
+ };
9472
+ type ResubmitProductReviewErrors = {
9473
+ /**
9474
+ * Invalid input or cursor
9475
+ */
9476
+ 400: unknown;
9477
+ /**
9478
+ * Customer session expired
9479
+ */
9480
+ 401: unknown;
9481
+ /**
9482
+ * Origin, preview, or challenge refused
9483
+ */
9484
+ 403: unknown;
9485
+ /**
9486
+ * Resource unavailable
9487
+ */
9488
+ 404: unknown;
9489
+ /**
9490
+ * Revision conflict; latest saved review included
9491
+ */
9492
+ 409: {
9493
+ error: "review_conflict";
9494
+ review: OwnProductReview;
9495
+ };
9496
+ /**
9497
+ * Customer attempt budget exhausted
9498
+ */
9499
+ 429: unknown;
9500
+ /**
9501
+ * Collection or spam protection unavailable
9502
+ */
9503
+ 503: unknown;
9504
+ };
9505
+ type ResubmitProductReviewError = ResubmitProductReviewErrors[keyof ResubmitProductReviewErrors];
9506
+ type ResubmitProductReviewResponses = {
9507
+ /**
9508
+ * Updated review
9509
+ */
9510
+ 200: {
9511
+ review: OwnProductReview;
9512
+ };
9513
+ };
9514
+ type ResubmitProductReviewResponse = ResubmitProductReviewResponses[keyof ResubmitProductReviewResponses];
9515
+
9516
+ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
9517
+ /**
8437
9518
  * You can provide a client instance returned by `createClient()` instead of
8438
9519
  * individual options. This might be also useful if you want to implement a
8439
9520
  * custom client.
@@ -8781,12 +9862,6 @@ declare const getAnalyticsEntryPages: <ThrowOnError extends boolean = false>(opt
8781
9862
  * Ranked pathname rows for the window. A null dimension is preserved as null rather than rendered server-side, and an empty result is an empty list, not an error.
8782
9863
  */
8783
9864
  declare const getAnalyticsExitPages: <ThrowOnError extends boolean = false>(options?: Options<GetAnalyticsExitPagesData, ThrowOnError>) => RequestResult<GetAnalyticsExitPagesResponses, GetAnalyticsExitPagesErrors, ThrowOnError, "fields">;
8784
- /**
8785
- * referrer_host breakdown for the period
8786
- *
8787
- * Ranked referrer_host rows for the window. A null dimension is preserved as null rather than rendered server-side, and an empty result is an empty list, not an error.
8788
- */
8789
- declare const getAnalyticsReferrers: <ThrowOnError extends boolean = false>(options?: Options<GetAnalyticsReferrersData, ThrowOnError>) => RequestResult<GetAnalyticsReferrersResponses, GetAnalyticsReferrersErrors, ThrowOnError, "fields">;
8790
9865
  /**
8791
9866
  * country breakdown for the period
8792
9867
  *
@@ -8975,6 +10050,20 @@ declare const resumeRetainer: <ThrowOnError extends boolean = false>(options: Op
8975
10050
  * End a retainer at the end of its current period; the open cycle stays payable (org key only)
8976
10051
  */
8977
10052
  declare const cancelRetainer: <ThrowOnError extends boolean = false>(options: Options<CancelRetainerData, ThrowOnError>) => RequestResult<CancelRetainerResponses, CancelRetainerErrors, ThrowOnError, "fields">;
10053
+ declare const listMerchantReviews: <ThrowOnError extends boolean = false>(options: Options<ListMerchantReviewsData, ThrowOnError>) => RequestResult<ListMerchantReviewsResponses, ListMerchantReviewsErrors, ThrowOnError, "fields">;
10054
+ declare const getMerchantReview: <ThrowOnError extends boolean = false>(options: Options<GetMerchantReviewData, ThrowOnError>) => RequestResult<GetMerchantReviewResponses, GetMerchantReviewErrors, ThrowOnError, "fields">;
10055
+ declare const moderateMerchantReview: <ThrowOnError extends boolean = false>(options: Options<ModerateMerchantReviewData, ThrowOnError>) => RequestResult<ModerateMerchantReviewResponses, ModerateMerchantReviewErrors, ThrowOnError, "fields">;
10056
+ declare const replyToMerchantReview: <ThrowOnError extends boolean = false>(options: Options<ReplyToMerchantReviewData, ThrowOnError>) => RequestResult<ReplyToMerchantReviewResponses, ReplyToMerchantReviewErrors, ThrowOnError, "fields">;
10057
+ declare const getReviewSettings: <ThrowOnError extends boolean = false>(options: Options<GetReviewSettingsData, ThrowOnError>) => RequestResult<GetReviewSettingsResponses, GetReviewSettingsErrors, ThrowOnError, "fields">;
10058
+ declare const updateReviewSettings: <ThrowOnError extends boolean = false>(options: Options<UpdateReviewSettingsData, ThrowOnError>) => RequestResult<UpdateReviewSettingsResponses, UpdateReviewSettingsErrors, ThrowOnError, "fields">;
10059
+ /**
10060
+ * Operator privacy erasure; permanently removes review content and events, retaining customer and financial records. Not an AI moderation action.
10061
+ */
10062
+ declare const eraseCustomerReviews: <ThrowOnError extends boolean = false>(options: Options<EraseCustomerReviewsData, ThrowOnError>) => RequestResult<EraseCustomerReviewsResponses, EraseCustomerReviewsErrors, ThrowOnError, "fields">;
10063
+ /**
10064
+ * Idempotently pause collection and erase review content before website deletion. Does not remove orders.
10065
+ */
10066
+ declare const purgeSiteReviews: <ThrowOnError extends boolean = false>(options: Options<PurgeSiteReviewsData, ThrowOnError>) => RequestResult<PurgeSiteReviewsResponses, PurgeSiteReviewsErrors, ThrowOnError, "fields">;
8978
10067
  /**
8979
10068
  * Get the site's consent config (site token)
8980
10069
  *
@@ -9014,7 +10103,7 @@ declare const createSite: <ThrowOnError extends boolean = false>(options: Option
9014
10103
  /**
9015
10104
  * Delete a site (org key only)
9016
10105
  *
9017
- * Permanently deletes a site and all its forms and submissions. Requires an organization API key (sk_xxx) — site tokens (including the site's own) are explicitly rejected.
10106
+ * Soft-deletes a site: its token stops authenticating and public surfaces (form info/submit, product pages, checkout) refuse immediately, its domain and analytics_id claims are released (so the same external_id can be provisioned again right away), then all forms, submissions, uploaded attachments, and catalog data are permanently purged after a 30-day retention window (sites with orders keep a minimal site row so order history and refunds survive). Idempotent. Requires an organization API key (sk_xxx) — site tokens (including the site's own) are explicitly rejected.
9018
10107
  */
9019
10108
  declare const deleteSite: <ThrowOnError extends boolean = false>(options: Options<DeleteSiteData, ThrowOnError>) => RequestResult<DeleteSiteResponses, DeleteSiteErrors, ThrowOnError, "fields">;
9020
10109
  /**
@@ -9337,5 +10426,37 @@ declare const resolveManageLink: <ThrowOnError extends boolean = false>(options:
9337
10426
  * The POST-to-act target of the platform fallback page's forms (the MUTATING twin of GET /v1/m/{token} — it cancels billing or opens Stripe's card-update portal). Body is a form post carrying `action` (view | confirm_cancel | cancel | reactivate | card_update) and `token`, which must equal the path token — a form scraped into another page cannot be re-pointed at a different subscription. `reactivate` is accepted ONLY while the store cannot serve its own /account page: where signing in is possible, restarting billing requires a session rather than an emailed bearer, and the action answers with the status page instead. Responses are HTML for the same reason the GET's are: this is a browser form submission from an emailed page, never a fetch(). Unknown, expired and revoked tokens render identically to the GET's.
9338
10427
  */
9339
10428
  declare const actOnManageLink: <ThrowOnError extends boolean = false>(options: Options<ActOnManageLinkData, ThrowOnError>) => RequestResult<ActOnManageLinkResponses, ActOnManageLinkErrors, ThrowOnError, "fields">;
10429
+ /**
10430
+ * Read public product reviews and the full visible rating summary
10431
+ */
10432
+ declare const getProductReviews: <ThrowOnError extends boolean = false>(options: Options<GetProductReviewsData, ThrowOnError>) => RequestResult<GetProductReviewsResponses, GetProductReviewsErrors, ThrowOnError, "fields">;
10433
+ /**
10434
+ * Check review collection setup
10435
+ */
10436
+ declare const getProductReviewAvailability: <ThrowOnError extends boolean = false>(options: Options<GetProductReviewAvailabilityData, ThrowOnError>) => RequestResult<GetProductReviewAvailabilityResponses, GetProductReviewAvailabilityErrors, ThrowOnError, "fields">;
10437
+ /**
10438
+ * Read your reviews, including hidden, withdrawn and unavailable products
10439
+ */
10440
+ declare const getAccountReviews: <ThrowOnError extends boolean = false>(options?: Options<GetAccountReviewsData, ThrowOnError>) => RequestResult<GetAccountReviewsResponses, GetAccountReviewsErrors, ThrowOnError, "fields">;
10441
+ /**
10442
+ * Read your saved review for a product
10443
+ */
10444
+ declare const getOwnProductReview: <ThrowOnError extends boolean = false>(options: Options<GetOwnProductReviewData, ThrowOnError>) => RequestResult<GetOwnProductReviewResponses, GetOwnProductReviewErrors, ThrowOnError, "fields">;
10445
+ /**
10446
+ * Create a review with a fresh review_write challenge; duplicate creates recover the saved row
10447
+ */
10448
+ declare const createProductReview: <ThrowOnError extends boolean = false>(options: Options<CreateProductReviewData, ThrowOnError>) => RequestResult<CreateProductReviewResponses, CreateProductReviewErrors, ThrowOnError, "fields">;
10449
+ /**
10450
+ * edit your review at the saved revision
10451
+ */
10452
+ declare const editProductReview: <ThrowOnError extends boolean = false>(options: Options<EditProductReviewData, ThrowOnError>) => RequestResult<EditProductReviewResponses, EditProductReviewErrors, ThrowOnError, "fields">;
10453
+ /**
10454
+ * withdraw your review at the saved revision
10455
+ */
10456
+ declare const withdrawProductReview: <ThrowOnError extends boolean = false>(options: Options<WithdrawProductReviewData, ThrowOnError>) => RequestResult<WithdrawProductReviewResponses, WithdrawProductReviewErrors, ThrowOnError, "fields">;
10457
+ /**
10458
+ * resubmit your review at the saved revision
10459
+ */
10460
+ declare const resubmitProductReview: <ThrowOnError extends boolean = false>(options: Options<ResubmitProductReviewData, ThrowOnError>) => RequestResult<ResubmitProductReviewResponses, ResubmitProductReviewErrors, ThrowOnError, "fields">;
9340
10461
 
9341
- export { type AccountCancelSubscriptionData, type AccountCancelSubscriptionError, type AccountCancelSubscriptionErrors, type AccountCancelSubscriptionResponse, type AccountCancelSubscriptionResponses, type AccountCreatePortalSessionData, type AccountCreatePortalSessionError, type AccountCreatePortalSessionErrors, type AccountCreatePortalSessionResponse, type AccountCreatePortalSessionResponses, type AccountLoginData, type AccountLoginError, type AccountLoginErrors, type AccountLoginRequest, type AccountLoginResponse, type AccountLoginResponses, type AccountLoginResult, type AccountLogoutData, type AccountLogoutError, type AccountLogoutErrors, type AccountLogoutResponse, type AccountLogoutResponses, type AccountLogoutResult, type AccountManageCancelData, type AccountManageCancelError, type AccountManageCancelErrors, type AccountManageCancelResponse, type AccountManageCancelResponses, type AccountManageGetSubscriptionData, type AccountManageGetSubscriptionError, type AccountManageGetSubscriptionErrors, type AccountManageGetSubscriptionResponse, type AccountManageGetSubscriptionResponses, type AccountManagePortalSessionData, type AccountManagePortalSessionError, type AccountManagePortalSessionErrors, type AccountManagePortalSessionResponse, type AccountManagePortalSessionResponses, type AccountManageVerifyData, type AccountManageVerifyError, type AccountManageVerifyErrors, type AccountManageVerifyResponse, type AccountManageVerifyResponses, type AccountMeData, type AccountMeError, type AccountMeErrors, type AccountMeResponse, type AccountMeResponses, type AccountMeResult, type AccountReactivateSubscriptionData, type AccountReactivateSubscriptionError, type AccountReactivateSubscriptionErrors, type AccountReactivateSubscriptionResponse, type AccountReactivateSubscriptionResponses, type AccountSubscribeData, type AccountSubscribeError, type AccountSubscribeErrors, type AccountSubscribeRequest, type AccountSubscribeResponse, type AccountSubscribeResponses, type AccountUpdateSubscriptionAddressData, type AccountUpdateSubscriptionAddressError, type AccountUpdateSubscriptionAddressErrors, type AccountUpdateSubscriptionAddressResponse, type AccountUpdateSubscriptionAddressResponses, type AccountVerifyData, type AccountVerifyError, type AccountVerifyErrors, type AccountVerifyRequest, type AccountVerifyResponse, type AccountVerifyResponses, type AccountVerifyResult, type ActOnManageLinkData, type ActOnManageLinkError, type ActOnManageLinkErrors, type ActOnManageLinkResponse, type ActOnManageLinkResponses, type AdjustInventory, type AdjustVariantInventoryData, type AdjustVariantInventoryError, type AdjustVariantInventoryErrors, type AdjustVariantInventoryResponse, type AdjustVariantInventoryResponses, type AnalyticsBreakdown, type AnalyticsChannels, type AnalyticsRealtime, type AnalyticsStatus, type AnalyticsSummary, type AnalyticsTimeseries, type AttachProductFileData, type AttachProductFileError, type AttachProductFileErrors, type AttachProductFileFromUrl, type AttachProductFileMultipart, type AttachProductFileResponse, type AttachProductFileResponses, type Attachment, type BusinessSummary, type CancelRetainerData, type CancelRetainerError, type CancelRetainerErrors, type CancelRetainerResponse, type CancelRetainerResponses, type CancelSubscriptionData, type CancelSubscriptionErrors, type CancelSubscriptionResponse, type CancelSubscriptionResponses, type CartCheckoutRequest, type CartConflict, type CartConflictItem, type CartSummaryRequest, type CartSummaryResult, type ChangedField, type CheckoutPauseRequest, type CheckoutPauseState, type CheckoutRequest, type CheckoutResult, type Client, type ClientOptions$1 as ClientConfig, type ClientOptions, type Config, type ConsentConfig, type ConsentConfigResult, type ConsentPrefs, type CreateCartCheckoutData, type CreateCartCheckoutError, type CreateCartCheckoutErrors, type CreateCartCheckoutResponse, type CreateCartCheckoutResponses, type CreateCheckoutData, type CreateCheckoutError, type CreateCheckoutErrors, type CreateCheckoutResponse, type CreateCheckoutResponses, type CreateCustomer, type CreateCustomerData, type CreateCustomerError, type CreateCustomerErrors, type CreateCustomerResponse, type CreateCustomerResponses, type CreateEventDestination, type CreateEventDestinationData, type CreateEventDestinationError, type CreateEventDestinationErrors, type CreateEventDestinationResponse, type CreateEventDestinationResponses, type CreateEventDestinationWithSiteTokenData, type CreateEventDestinationWithSiteTokenError, type CreateEventDestinationWithSiteTokenErrors, type CreateEventDestinationWithSiteTokenResponse, type CreateEventDestinationWithSiteTokenResponses, type CreateForm, type CreateFormData, type CreateFormError, type CreateFormErrors, type CreateFormResponse, type CreateFormResponses, type CreateFormWithSiteTokenData, type CreateFormWithSiteTokenError, type CreateFormWithSiteTokenErrors, type CreateFormWithSiteTokenResponse, type CreateFormWithSiteTokenResponses, type CreateInvoice, type CreateInvoiceData, type CreateInvoiceError, type CreateInvoiceErrors, type CreateInvoiceLine, type CreateInvoiceResponse, type CreateInvoiceResponses, type CreateInvoiceResult, type CreateMultiItemTestOrder, type CreateMultiItemTestOrderData, type CreateMultiItemTestOrderError, type CreateMultiItemTestOrderErrors, type CreateMultiItemTestOrderResponse, type CreateMultiItemTestOrderResponses, type CreateOption, type CreateOptionData, type CreateOptionError, type CreateOptionErrors, type CreateOptionResponse, type CreateOptionResponses, type CreatePreviewSession, type CreatePreviewSessionData, type CreatePreviewSessionError, type CreatePreviewSessionErrors, type CreatePreviewSessionResponse, type CreatePreviewSessionResponses, type CreateProduct, type CreateProductData, type CreateProductError, type CreateProductErrors, type CreateProductResponse, type CreateProductResponses, type CreateProductWithSiteTokenData, type CreateProductWithSiteTokenError, type CreateProductWithSiteTokenErrors, type CreateProductWithSiteTokenResponse, type CreateProductWithSiteTokenResponses, type CreateRetainer, type CreateRetainerData, type CreateRetainerError, type CreateRetainerErrors, type CreateRetainerResponse, type CreateRetainerResponses, type CreateRetainerResult, type CreateSite, type CreateSiteData, type CreateSiteError, type CreateSiteErrors, type CreateSiteResponse, type CreateSiteResponses, type CreateTestOrder, type CreateTestOrderData, type CreateTestOrderError, type CreateTestOrderErrors, type CreateTestOrderResponse, type CreateTestOrderResponses, type CreateTestSubscription, type CreateTestSubscriptionData, type CreateTestSubscriptionError, type CreateTestSubscriptionErrors, type CreateTestSubscriptionResponse, type CreateTestSubscriptionResponses, type CreateVariant, type CreateVariantData, type CreateVariantError, type CreateVariantErrors, type CreateVariantResponse, type CreateVariantResponses, type CurrencyRestatement, type CurrencyTotals, type Customer, type CustomerAddress, type CustomerBilling, type CustomerDetail, type CustomersList, type DeleteEventDestinationData, type DeleteEventDestinationError, type DeleteEventDestinationErrors, type DeleteEventDestinationResponse, type DeleteEventDestinationResponses, type DeleteEventDestinationWithSiteTokenData, type DeleteEventDestinationWithSiteTokenError, type DeleteEventDestinationWithSiteTokenErrors, type DeleteEventDestinationWithSiteTokenResponse, type DeleteEventDestinationWithSiteTokenResponses, type DeleteFormData, type DeleteFormError, type DeleteFormErrors, type DeleteFormResponse, type DeleteFormResponses, type DeleteOptionData, type DeleteOptionError, type DeleteOptionErrors, type DeleteOptionResponse, type DeleteOptionResponses, type DeleteProductData, type DeleteProductError, type DeleteProductErrors, type DeleteProductResponse, type DeleteProductResponses, type DeleteSiteData, type DeleteSiteError, type DeleteSiteErrors, type DeleteSiteResponse, type DeleteSiteResponses, type DeleteSubmissionData, type DeleteSubmissionError, type DeleteSubmissionErrors, type DeleteSubmissionResponse, type DeleteSubmissionResponses, type DeleteVariantData, type DeleteVariantError, type DeleteVariantErrors, type DeleteVariantResponse, type DeleteVariantResponses, type DownloadAttachmentData, type DownloadAttachmentError, type DownloadAttachmentErrors, type DownloadAttachmentResponses, type DownloadFileData, type DownloadFileError, type DownloadFileErrors, type DownloadFileResponse, type DownloadFileResponses, type EmailDelivery, type Error, type EventDeliveriesList, type EventDelivery, type EventDestination, type EventDestinationSecret, type EventDestinationsList, type Form, type FormsList, type GenerateVariants, type GenerateVariantsData, type GenerateVariantsError, type GenerateVariantsErrors, type GenerateVariantsResponse, type GenerateVariantsResponses, type GenerateVariantsResult, type GeoSuggestion, type GetAnalyticsBrowsersData, type GetAnalyticsBrowsersErrors, type GetAnalyticsBrowsersResponse, type GetAnalyticsBrowsersResponses, type GetAnalyticsCampaignsData, type GetAnalyticsCampaignsErrors, type GetAnalyticsCampaignsResponse, type GetAnalyticsCampaignsResponses, type GetAnalyticsChannelsData, type GetAnalyticsChannelsErrors, type GetAnalyticsChannelsResponse, type GetAnalyticsChannelsResponses, type GetAnalyticsCitiesData, type GetAnalyticsCitiesErrors, type GetAnalyticsCitiesResponse, type GetAnalyticsCitiesResponses, type GetAnalyticsCountriesData, type GetAnalyticsCountriesErrors, type GetAnalyticsCountriesResponse, type GetAnalyticsCountriesResponses, type GetAnalyticsDevicesData, type GetAnalyticsDevicesErrors, type GetAnalyticsDevicesResponse, type GetAnalyticsDevicesResponses, type GetAnalyticsEntryPagesData, type GetAnalyticsEntryPagesErrors, type GetAnalyticsEntryPagesResponse, type GetAnalyticsEntryPagesResponses, type GetAnalyticsExitPagesData, type GetAnalyticsExitPagesErrors, type GetAnalyticsExitPagesResponse, type GetAnalyticsExitPagesResponses, type GetAnalyticsOperatingSystemsData, type GetAnalyticsOperatingSystemsErrors, type GetAnalyticsOperatingSystemsResponse, type GetAnalyticsOperatingSystemsResponses, type GetAnalyticsPagesData, type GetAnalyticsPagesErrors, type GetAnalyticsPagesResponse, type GetAnalyticsPagesResponses, type GetAnalyticsRealtimeData, type GetAnalyticsRealtimeErrors, type GetAnalyticsRealtimeResponse, type GetAnalyticsRealtimeResponses, type GetAnalyticsReferrersData, type GetAnalyticsReferrersErrors, type GetAnalyticsReferrersResponse, type GetAnalyticsReferrersResponses, type GetAnalyticsRegionsData, type GetAnalyticsRegionsErrors, type GetAnalyticsRegionsResponse, type GetAnalyticsRegionsResponses, type GetAnalyticsSourcesData, type GetAnalyticsSourcesErrors, type GetAnalyticsSourcesResponse, type GetAnalyticsSourcesResponses, type GetAnalyticsStatusData, type GetAnalyticsStatusErrors, type GetAnalyticsStatusResponse, type GetAnalyticsStatusResponses, type GetAnalyticsSummaryData, type GetAnalyticsSummaryErrors, type GetAnalyticsSummaryResponse, type GetAnalyticsSummaryResponses, type GetAnalyticsTimeseriesData, type GetAnalyticsTimeseriesErrors, type GetAnalyticsTimeseriesResponse, type GetAnalyticsTimeseriesResponses, type GetAnalyticsUtmCampaignData, type GetAnalyticsUtmCampaignErrors, type GetAnalyticsUtmCampaignResponse, type GetAnalyticsUtmCampaignResponses, type GetAnalyticsUtmContentData, type GetAnalyticsUtmContentErrors, type GetAnalyticsUtmContentResponse, type GetAnalyticsUtmContentResponses, type GetAnalyticsUtmMediumData, type GetAnalyticsUtmMediumErrors, type GetAnalyticsUtmMediumResponse, type GetAnalyticsUtmMediumResponses, type GetAnalyticsUtmSourceData, type GetAnalyticsUtmSourceErrors, type GetAnalyticsUtmSourceResponse, type GetAnalyticsUtmSourceResponses, type GetAnalyticsUtmTermData, type GetAnalyticsUtmTermErrors, type GetAnalyticsUtmTermResponse, type GetAnalyticsUtmTermResponses, type GetBusinessSummaryData, type GetBusinessSummaryErrors, type GetBusinessSummaryResponse, type GetBusinessSummaryResponses, type GetCartSummaryData, type GetCartSummaryError, type GetCartSummaryErrors, type GetCartSummaryResponse, type GetCartSummaryResponses, type GetConsentConfigWithSiteTokenData, type GetConsentConfigWithSiteTokenError, type GetConsentConfigWithSiteTokenErrors, type GetConsentConfigWithSiteTokenResponse, type GetConsentConfigWithSiteTokenResponses, type GetCustomerData, type GetCustomerError, type GetCustomerErrors, type GetCustomerResponse, type GetCustomerResponses, type GetEventDestinationData, type GetEventDestinationError, type GetEventDestinationErrors, type GetEventDestinationResponse, type GetEventDestinationResponses, type GetEventDestinationSecretData, type GetEventDestinationSecretError, type GetEventDestinationSecretErrors, type GetEventDestinationSecretResponse, type GetEventDestinationSecretResponses, type GetEventDestinationSecretWithSiteTokenData, type GetEventDestinationSecretWithSiteTokenError, type GetEventDestinationSecretWithSiteTokenErrors, type GetEventDestinationSecretWithSiteTokenResponse, type GetEventDestinationSecretWithSiteTokenResponses, type GetFormData, type GetFormError, type GetFormErrors, type GetFormResponse, type GetFormResponses, type GetGeoData, type GetGeoError, type GetGeoErrors, type GetGeoResponse, type GetGeoResponses, type GetInvoiceData, type GetInvoiceError, type GetInvoiceErrors, type GetInvoicePreviewData, type GetInvoicePreviewError, type GetInvoicePreviewErrors, type GetInvoicePreviewResponse, type GetInvoicePreviewResponses, type GetInvoiceResponse, type GetInvoiceResponses, type GetInvoiceSettingsData, type GetInvoiceSettingsError, type GetInvoiceSettingsErrors, type GetInvoiceSettingsResponse, type GetInvoiceSettingsResponses, type GetInvoiceSettingsWithSiteTokenData, type GetInvoiceSettingsWithSiteTokenError, type GetInvoiceSettingsWithSiteTokenErrors, type GetInvoiceSettingsWithSiteTokenResponse, type GetInvoiceSettingsWithSiteTokenResponses, type GetNextPayoutData, type GetNextPayoutErrors, type GetNextPayoutResponse, type GetNextPayoutResponses, type GetOrderData, type GetOrderError, type GetOrderErrors, type GetOrderResponse, type GetOrderResponses, type GetOrderSessionData, type GetOrderSessionError, type GetOrderSessionErrors, type GetOrderSessionResponse, type GetOrderSessionResponses, type GetPaymentsStatusData, type GetPaymentsStatusError, type GetPaymentsStatusErrors, type GetPaymentsStatusResponse, type GetPaymentsStatusResponses, type GetPersonData, type GetPersonErrors, type GetPersonResponse, type GetPersonResponses, type GetProductData, type GetProductError, type GetProductErrors, type GetProductResponse, type GetProductResponses, type GetPublicConsentPrefsData, type GetPublicConsentPrefsError, type GetPublicConsentPrefsErrors, type GetPublicConsentPrefsResponse, type GetPublicConsentPrefsResponses, type GetPublicProductData, type GetPublicProductError, type GetPublicProductErrors, type GetPublicProductResponse, type GetPublicProductResponses, type GetRetainerData, type GetRetainerError, type GetRetainerErrors, type GetRetainerResponse, type GetRetainerResponses, type GetSalesSummaryData, type GetSalesSummaryErrors, type GetSalesSummaryResponse, type GetSalesSummaryResponses, type GetSiteAnalyticsData, type GetSiteAnalyticsError, type GetSiteAnalyticsErrors, type GetSiteAnalyticsResponse, type GetSiteAnalyticsResponses, type GetSiteCheckoutPauseData, type GetSiteCheckoutPauseError, type GetSiteCheckoutPauseErrors, type GetSiteCheckoutPauseResponse, type GetSiteCheckoutPauseResponses, type GetSiteData, type GetSiteError, type GetSiteErrors, type GetSiteResponse, type GetSiteResponses, type GetSubmissionData, type GetSubmissionError, type GetSubmissionErrors, type GetSubmissionResponse, type GetSubmissionResponses, type Inventory, type InventoryInput, type Invoice, type InvoiceAggregates, type InvoiceBillTo, type InvoiceError, type InvoiceLineItem, type InvoicePreview, type InvoiceSettings, type InvoiceSiteBody, type InvoicesList, type ListCustomersData, type ListCustomersError, type ListCustomersErrors, type ListCustomersResponse, type ListCustomersResponses, type ListEventDeliveriesData, type ListEventDeliveriesError, type ListEventDeliveriesErrors, type ListEventDeliveriesResponse, type ListEventDeliveriesResponses, type ListEventDeliveriesWithSiteTokenData, type ListEventDeliveriesWithSiteTokenError, type ListEventDeliveriesWithSiteTokenErrors, type ListEventDeliveriesWithSiteTokenResponse, type ListEventDeliveriesWithSiteTokenResponses, type ListEventDestinationsData, type ListEventDestinationsError, type ListEventDestinationsErrors, type ListEventDestinationsResponse, type ListEventDestinationsResponses, type ListEventDestinationsWithSiteTokenData, type ListEventDestinationsWithSiteTokenError, type ListEventDestinationsWithSiteTokenErrors, type ListEventDestinationsWithSiteTokenResponse, type ListEventDestinationsWithSiteTokenResponses, type ListFormsData, type ListFormsError, type ListFormsErrors, type ListFormsResponse, type ListFormsResponses, type ListFormsWithSiteTokenData, type ListFormsWithSiteTokenError, type ListFormsWithSiteTokenErrors, type ListFormsWithSiteTokenResponse, type ListFormsWithSiteTokenResponses, type ListInvoicesData, type ListInvoicesError, type ListInvoicesErrors, type ListInvoicesResponse, type ListInvoicesResponses, type ListOrdersWithSiteTokenData, type ListOrdersWithSiteTokenError, type ListOrdersWithSiteTokenErrors, type ListOrdersWithSiteTokenResponse, type ListOrdersWithSiteTokenResponses, type ListPeopleData, type ListPeopleErrors, type ListPeopleResponse, type ListPeopleResponses, type ListProductsData, type ListProductsError, type ListProductsErrors, type ListProductsResponse, type ListProductsResponses, type ListProductsWithSiteTokenData, type ListProductsWithSiteTokenError, type ListProductsWithSiteTokenErrors, type ListProductsWithSiteTokenResponse, type ListProductsWithSiteTokenResponses, type ListRetainersData, type ListRetainersError, type ListRetainersErrors, type ListRetainersResponse, type ListRetainersResponses, type ListSitesData, type ListSitesError, type ListSitesErrors, type ListSitesResponse, type ListSitesResponses, type ListSubmissionsData, type ListSubmissionsError, type ListSubmissionsErrors, type ListSubmissionsResponse, type ListSubmissionsResponses, type ListSubscriptionsData, type ListSubscriptionsErrors, type ListSubscriptionsResponse, type ListSubscriptionsResponses, type ManageCancelResult, type ManageLinkAction, type ManageVerifyRequest, type ManageVerifyResult, type ManagedSubscription, type ManagedSubscriptionResult, type MarkInvoicePaid, type MarkInvoicePaidData, type MarkInvoicePaidError, type MarkInvoicePaidErrors, type MarkInvoicePaidResponse, type MarkInvoicePaidResponses, type MarkInvoicePaidResult, type MarkInvoiceUncollectibleData, type MarkInvoiceUncollectibleError, type MarkInvoiceUncollectibleErrors, type MarkInvoiceUncollectibleResponse, type MarkInvoiceUncollectibleResponses, type NeedsAttentionItem, type NestedOptionInput, type NestedVariantInput, type NextPayout, type Option, type Options, type Order, type OrderCustomer, type OrderFulfillmentRequest, type OrderSessionStatus, type OrdersList, type PauseRetainerData, type PauseRetainerError, type PauseRetainerErrors, type PauseRetainerResponse, type PauseRetainerResponses, type PauseSiteCheckoutData, type PauseSiteCheckoutError, type PauseSiteCheckoutErrors, type PauseSiteCheckoutResponse, type PauseSiteCheckoutResponses, type PaymentsStatus, type PeopleList, type PersonDetail, type PersonRow, type PortalSessionResult, type PreviewInvoice, type PreviewInvoiceData, type PreviewInvoiceError, type PreviewInvoiceErrors, type PreviewInvoiceResponse, type PreviewInvoiceResponses, type PreviewSessionResult, type Product, type ProductDetail, type ProductFulfillment, type ProductFulfillmentInput, type ProductSubscriptionConfig, type ProductsList, type PublicOption, type PublicProduct, type PublicSubscription, type PublicSubscriptionPlan, type PublicVariant, type ReactivateSiteSubscriptionsTeardownData, type ReactivateSiteSubscriptionsTeardownError, type ReactivateSiteSubscriptionsTeardownErrors, type ReactivateSiteSubscriptionsTeardownResponse, type ReactivateSiteSubscriptionsTeardownResponses, type RecipientCooldownError, type ReconcileOptionInput, type ReconcileOptionValueInput, type ReconcileVariantInput, type RefundOrder, type RefundOrderData, type RefundOrderError, type RefundOrderErrors, type RefundOrderResponse, type RefundOrderResponses, type RefundResult, type ReissueResult, type RemindInvoiceData, type RemindInvoiceError, type RemindInvoiceErrors, type RemindInvoiceResponse, type RemindInvoiceResponses, type RemindInvoiceResult, type ResendInvoiceData, type ResendInvoiceError, type ResendInvoiceErrors, type ResendInvoiceResponse, type ResendInvoiceResponses, type ResendOrderReceiptData, type ResendOrderReceiptError, type ResendOrderReceiptErrors, type ResendOrderReceiptResponse, type ResendOrderReceiptResponses, type ResendReceiptResult, type ResetOrderDownloadsData, type ResetOrderDownloadsError, type ResetOrderDownloadsErrors, type ResetOrderDownloadsResponse, type ResetOrderDownloadsResponses, type ResetWebhookEventData, type ResetWebhookEventError, type ResetWebhookEventErrors, type ResetWebhookEventResponse, type ResetWebhookEventResponses, type ResolveManageLinkData, type ResolveManageLinkError, type ResolveManageLinkErrors, type ResolveManageLinkResponse, type ResolveManageLinkResponses, type ResumeRetainerData, type ResumeRetainerError, type ResumeRetainerErrors, type ResumeRetainerResponse, type ResumeRetainerResponses, type Retainer, type RetainerError, type RetainerSiteBody, type RetainersList, type RetryEventDeliveryData, type RetryEventDeliveryError, type RetryEventDeliveryErrors, type RetryEventDeliveryResponse, type RetryEventDeliveryResponses, type RetryEventDeliveryWithSiteTokenData, type RetryEventDeliveryWithSiteTokenError, type RetryEventDeliveryWithSiteTokenErrors, type RetryEventDeliveryWithSiteTokenResponse, type RetryEventDeliveryWithSiteTokenResponses, type RevokeCustomerAccessData, type RevokeCustomerAccessError, type RevokeCustomerAccessErrors, type RevokeCustomerAccessResponse, type RevokeCustomerAccessResponses, type RevokeCustomerAccessResult, type RotateEventDestinationSecretData, type RotateEventDestinationSecretError, type RotateEventDestinationSecretErrors, type RotateEventDestinationSecretResponse, type RotateEventDestinationSecretResponses, type RotateEventDestinationSecretWithSiteTokenData, type RotateEventDestinationSecretWithSiteTokenError, type RotateEventDestinationSecretWithSiteTokenErrors, type RotateEventDestinationSecretWithSiteTokenResponse, type RotateEventDestinationSecretWithSiteTokenResponses, type SalesSummary, type SalesSummaryProductRow, type SalesSummarySeriesEntry, type SetInventory, type SetInvoiceReminders, type SetInvoiceRemindersData, type SetInvoiceRemindersError, type SetInvoiceRemindersErrors, type SetInvoiceRemindersResponse, type SetInvoiceRemindersResponses, type SetOrderFulfillmentData, type SetOrderFulfillmentErrors, type SetOrderFulfillmentResponse, type SetOrderFulfillmentResponses, type SetProductSubscription, type SetProductSubscriptionData, type SetProductSubscriptionError, type SetProductSubscriptionErrors, type SetProductSubscriptionResponse, type SetProductSubscriptionResponses, type SetProductVariants, type SetProductVariantsConflict, type SetProductVariantsData, type SetProductVariantsError, type SetProductVariantsErrors, type SetProductVariantsResponse, type SetProductVariantsResponses, type SetProductVariantsResult, type SetVariantInventoryData, type SetVariantInventoryError, type SetVariantInventoryErrors, type SetVariantInventoryResponse, type SetVariantInventoryResponses, type SettledTotals, type ShippingOptionUnavailable, type ShippingRateInput, type Site, type SiteAccountRoute, type SiteAnalytics, type SiteDomains, type SitePayments, type SiteWithRestatement, type SiteWithToken, type SitesList, type SkipNextRetainerCycleData, type SkipNextRetainerCycleError, type SkipNextRetainerCycleErrors, type SkipNextRetainerCycleResponse, type SkipNextRetainerCycleResponses, type SnoozeInvoice, type SnoozeInvoiceData, type SnoozeInvoiceError, type SnoozeInvoiceErrors, type SnoozeInvoiceResponse, type SnoozeInvoiceResponses, type Submission, type SubmissionMetadata, type SubmissionsList, type SubscriberActionResult, type SubscriberSubscription, type SubscriptionPlan, type SubscriptionPlanInput, type SubscriptionSummary, type SubscriptionsList, type SubscriptionsReactivateBody, type SubscriptionsReactivateResult, type SubscriptionsTeardownBody, type SubscriptionsTeardownResult, type SummaryPeriod, type TeardownReason, type TeardownSiteSubscriptionsData, type TeardownSiteSubscriptionsError, type TeardownSiteSubscriptionsErrors, type TeardownSiteSubscriptionsResponse, type TeardownSiteSubscriptionsResponses, type TestOrderResult, type TestShippingAddress, type TestSubscriptionResult, type UpdateCustomer, type UpdateCustomerBilling, type UpdateCustomerBillingData, type UpdateCustomerBillingError, type UpdateCustomerBillingErrors, type UpdateCustomerBillingResponse, type UpdateCustomerBillingResponses, type UpdateCustomerData, type UpdateCustomerError, type UpdateCustomerErrors, type UpdateCustomerResponse, type UpdateCustomerResponses, type UpdateEventDestination, type UpdateEventDestinationData, type UpdateEventDestinationError, type UpdateEventDestinationErrors, type UpdateEventDestinationResponse, type UpdateEventDestinationResponses, type UpdateEventDestinationWithSiteTokenData, type UpdateEventDestinationWithSiteTokenError, type UpdateEventDestinationWithSiteTokenErrors, type UpdateEventDestinationWithSiteTokenResponse, type UpdateEventDestinationWithSiteTokenResponses, type UpdateForm, type UpdateFormData, type UpdateFormError, type UpdateFormErrors, type UpdateFormResponse, type UpdateFormResponses, type UpdateInvoiceRecipient, type UpdateInvoiceRecipientData, type UpdateInvoiceRecipientError, type UpdateInvoiceRecipientErrors, type UpdateInvoiceRecipientResponse, type UpdateInvoiceRecipientResponses, type UpdateInvoiceSettings, type UpdateInvoiceSettingsData, type UpdateInvoiceSettingsError, type UpdateInvoiceSettingsErrors, type UpdateInvoiceSettingsResponse, type UpdateInvoiceSettingsResponses, type UpdateOption, type UpdateOptionData, type UpdateOptionError, type UpdateOptionErrors, type UpdateOptionResponse, type UpdateOptionResponses, type UpdateProduct, type UpdateProductData, type UpdateProductError, type UpdateProductErrors, type UpdateProductResponse, type UpdateProductResponses, type UpdateRecipientResult, type UpdateRetainer, type UpdateRetainerData, type UpdateRetainerError, type UpdateRetainerErrors, type UpdateRetainerResponse, type UpdateRetainerResponses, type UpdateSite, type UpdateSiteAccountRoute, type UpdateSiteAccountRouteData, type UpdateSiteAccountRouteError, type UpdateSiteAccountRouteErrors, type UpdateSiteAccountRouteResponse, type UpdateSiteAccountRouteResponses, type UpdateSiteAnalytics, type UpdateSiteAnalyticsData, type UpdateSiteAnalyticsError, type UpdateSiteAnalyticsErrors, type UpdateSiteAnalyticsResponse, type UpdateSiteAnalyticsResponses, type UpdateSiteData, type UpdateSiteDomains, type UpdateSiteDomainsData, type UpdateSiteDomainsError, type UpdateSiteDomainsErrors, type UpdateSiteDomainsResponse, type UpdateSiteDomainsResponses, type UpdateSiteError, type UpdateSiteErrors, type UpdateSiteInvoicing, type UpdateSiteInvoicingData, type UpdateSiteInvoicingError, type UpdateSiteInvoicingErrors, type UpdateSiteInvoicingResponse, type UpdateSiteInvoicingResponses, type UpdateSitePayments, type UpdateSitePaymentsData, type UpdateSitePaymentsError, type UpdateSitePaymentsErrors, type UpdateSitePaymentsResponse, type UpdateSitePaymentsResponses, type UpdateSiteResponse, type UpdateSiteResponses, type UpdateSubscriptionAddressRequest, type UpdateVariant, type UpdateVariantData, type UpdateVariantError, type UpdateVariantErrors, type UpdateVariantResponse, type UpdateVariantResponses, type UpsertConsentConfig, type UpsertConsentConfigWithSiteTokenData, type UpsertConsentConfigWithSiteTokenError, type UpsertConsentConfigWithSiteTokenErrors, type UpsertConsentConfigWithSiteTokenResponse, type UpsertConsentConfigWithSiteTokenResponses, type Variant, type VariantOptionValue, type VoidInvoice, type VoidInvoiceData, type VoidInvoiceError, type VoidInvoiceErrors, type VoidInvoiceResponse, type VoidInvoiceResponses, type VoidInvoiceResult, type WebhookEventResetResult, accountCancelSubscription, accountCreatePortalSession, accountLogin, accountLogout, accountManageCancel, accountManageGetSubscription, accountManagePortalSession, accountManageVerify, accountMe, accountReactivateSubscription, accountSubscribe, accountUpdateSubscriptionAddress, accountVerify, actOnManageLink, adjustVariantInventory, attachProductFile, cancelRetainer, cancelSubscription, createCartCheckout, createCheckout, createClient, createConfig, createCustomer, createEventDestination, createEventDestinationWithSiteToken, createForm, createFormWithSiteToken, createInvoice, createMultiItemTestOrder, createOption, createPreviewSession, createProduct, createProductWithSiteToken, createRetainer, createSite, createTestOrder, createTestSubscription, createVariant, deleteEventDestination, deleteEventDestinationWithSiteToken, deleteForm, deleteOption, deleteProduct, deleteSite, deleteSubmission, deleteVariant, downloadAttachment, downloadFile, generateVariants, getAnalyticsBrowsers, getAnalyticsCampaigns, getAnalyticsChannels, getAnalyticsCities, getAnalyticsCountries, getAnalyticsDevices, getAnalyticsEntryPages, getAnalyticsExitPages, getAnalyticsOperatingSystems, getAnalyticsPages, getAnalyticsRealtime, getAnalyticsReferrers, getAnalyticsRegions, getAnalyticsSources, getAnalyticsStatus, getAnalyticsSummary, getAnalyticsTimeseries, getAnalyticsUtmCampaign, getAnalyticsUtmContent, getAnalyticsUtmMedium, getAnalyticsUtmSource, getAnalyticsUtmTerm, getBusinessSummary, getCartSummary, getConsentConfigWithSiteToken, getCustomer, getEventDestination, getEventDestinationSecret, getEventDestinationSecretWithSiteToken, getForm, getGeo, getInvoice, getInvoicePreview, getInvoiceSettings, getInvoiceSettingsWithSiteToken, getNextPayout, getOrder, getOrderSession, getPaymentsStatus, getPerson, getProduct, getPublicConsentPrefs, getPublicProduct, getRetainer, getSalesSummary, getSite, getSiteAnalytics, getSiteCheckoutPause, getSubmission, listCustomers, listEventDeliveries, listEventDeliveriesWithSiteToken, listEventDestinations, listEventDestinationsWithSiteToken, listForms, listFormsWithSiteToken, listInvoices, listOrdersWithSiteToken, listPeople, listProducts, listProductsWithSiteToken, listRetainers, listSites, listSubmissions, listSubscriptions, markInvoicePaid, markInvoiceUncollectible, pauseRetainer, pauseSiteCheckout, previewInvoice, reactivateSiteSubscriptionsTeardown, refundOrder, remindInvoice, resendInvoice, resendOrderReceipt, resetOrderDownloads, resetWebhookEvent, resolveManageLink, resumeRetainer, retryEventDelivery, retryEventDeliveryWithSiteToken, revokeCustomerAccess, rotateEventDestinationSecret, rotateEventDestinationSecretWithSiteToken, setInvoiceReminders, setOrderFulfillment, setProductSubscription, setProductVariants, setVariantInventory, skipNextRetainerCycle, snoozeInvoice, teardownSiteSubscriptions, updateCustomer, updateCustomerBilling, updateEventDestination, updateEventDestinationWithSiteToken, updateForm, updateInvoiceRecipient, updateInvoiceSettings, updateOption, updateProduct, updateRetainer, updateSite, updateSiteAccountRoute, updateSiteAnalytics, updateSiteDomains, updateSiteInvoicing, updateSitePayments, updateVariant, upsertConsentConfigWithSiteToken, voidInvoice };
10462
+ export { type AccountCancelSubscriptionData, type AccountCancelSubscriptionError, type AccountCancelSubscriptionErrors, type AccountCancelSubscriptionResponse, type AccountCancelSubscriptionResponses, type AccountCreatePortalSessionData, type AccountCreatePortalSessionError, type AccountCreatePortalSessionErrors, type AccountCreatePortalSessionResponse, type AccountCreatePortalSessionResponses, type AccountLoginData, type AccountLoginError, type AccountLoginErrors, type AccountLoginRequest, type AccountLoginResponse, type AccountLoginResponses, type AccountLoginResult, type AccountLogoutData, type AccountLogoutError, type AccountLogoutErrors, type AccountLogoutResponse, type AccountLogoutResponses, type AccountLogoutResult, type AccountManageCancelData, type AccountManageCancelError, type AccountManageCancelErrors, type AccountManageCancelResponse, type AccountManageCancelResponses, type AccountManageGetSubscriptionData, type AccountManageGetSubscriptionError, type AccountManageGetSubscriptionErrors, type AccountManageGetSubscriptionResponse, type AccountManageGetSubscriptionResponses, type AccountManagePortalSessionData, type AccountManagePortalSessionError, type AccountManagePortalSessionErrors, type AccountManagePortalSessionResponse, type AccountManagePortalSessionResponses, type AccountManageVerifyData, type AccountManageVerifyError, type AccountManageVerifyErrors, type AccountManageVerifyResponse, type AccountManageVerifyResponses, type AccountMeData, type AccountMeError, type AccountMeErrors, type AccountMeResponse, type AccountMeResponses, type AccountMeResult, type AccountReactivateSubscriptionData, type AccountReactivateSubscriptionError, type AccountReactivateSubscriptionErrors, type AccountReactivateSubscriptionResponse, type AccountReactivateSubscriptionResponses, type AccountSubscribeData, type AccountSubscribeError, type AccountSubscribeErrors, type AccountSubscribeRequest, type AccountSubscribeResponse, type AccountSubscribeResponses, type AccountUpdateSubscriptionAddressData, type AccountUpdateSubscriptionAddressError, type AccountUpdateSubscriptionAddressErrors, type AccountUpdateSubscriptionAddressResponse, type AccountUpdateSubscriptionAddressResponses, type AccountVerifyData, type AccountVerifyError, type AccountVerifyErrors, type AccountVerifyRequest, type AccountVerifyResponse, type AccountVerifyResponses, type AccountVerifyResult, type ActOnManageLinkData, type ActOnManageLinkError, type ActOnManageLinkErrors, type ActOnManageLinkResponse, type ActOnManageLinkResponses, type AdjustInventory, type AdjustVariantInventoryData, type AdjustVariantInventoryError, type AdjustVariantInventoryErrors, type AdjustVariantInventoryResponse, type AdjustVariantInventoryResponses, type AnalyticsBreakdown, type AnalyticsChannels, type AnalyticsRealtime, type AnalyticsStatus, type AnalyticsSummary, type AnalyticsTimeseries, type AttachProductFileData, type AttachProductFileError, type AttachProductFileErrors, type AttachProductFileFromUrl, type AttachProductFileMultipart, type AttachProductFileResponse, type AttachProductFileResponses, type Attachment, type BusinessSummary, type CancelRetainerData, type CancelRetainerError, type CancelRetainerErrors, type CancelRetainerResponse, type CancelRetainerResponses, type CancelSubscriptionData, type CancelSubscriptionErrors, type CancelSubscriptionResponse, type CancelSubscriptionResponses, type CartCheckoutRequest, type CartConflict, type CartConflictItem, type CartSummaryRequest, type CartSummaryResult, type ChangedField, type CheckoutPauseRequest, type CheckoutPauseState, type CheckoutRequest, type CheckoutResult, type Client, type ClientOptions$1 as ClientConfig, type ClientOptions, type Config, type ConsentConfig, type ConsentConfigResult, type ConsentPrefs, type CreateCartCheckoutData, type CreateCartCheckoutError, type CreateCartCheckoutErrors, type CreateCartCheckoutResponse, type CreateCartCheckoutResponses, type CreateCheckoutData, type CreateCheckoutError, type CreateCheckoutErrors, type CreateCheckoutResponse, type CreateCheckoutResponses, type CreateCustomer, type CreateCustomerData, type CreateCustomerError, type CreateCustomerErrors, type CreateCustomerResponse, type CreateCustomerResponses, type CreateEventDestination, type CreateEventDestinationData, type CreateEventDestinationError, type CreateEventDestinationErrors, type CreateEventDestinationResponse, type CreateEventDestinationResponses, type CreateEventDestinationWithSiteTokenData, type CreateEventDestinationWithSiteTokenError, type CreateEventDestinationWithSiteTokenErrors, type CreateEventDestinationWithSiteTokenResponse, type CreateEventDestinationWithSiteTokenResponses, type CreateForm, type CreateFormData, type CreateFormError, type CreateFormErrors, type CreateFormResponse, type CreateFormResponses, type CreateFormWithSiteTokenData, type CreateFormWithSiteTokenError, type CreateFormWithSiteTokenErrors, type CreateFormWithSiteTokenResponse, type CreateFormWithSiteTokenResponses, type CreateInvoice, type CreateInvoiceData, type CreateInvoiceError, type CreateInvoiceErrors, type CreateInvoiceLine, type CreateInvoiceResponse, type CreateInvoiceResponses, type CreateInvoiceResult, type CreateMultiItemTestOrder, type CreateMultiItemTestOrderData, type CreateMultiItemTestOrderError, type CreateMultiItemTestOrderErrors, type CreateMultiItemTestOrderResponse, type CreateMultiItemTestOrderResponses, type CreateOption, type CreateOptionData, type CreateOptionError, type CreateOptionErrors, type CreateOptionResponse, type CreateOptionResponses, type CreatePreviewSession, type CreatePreviewSessionData, type CreatePreviewSessionError, type CreatePreviewSessionErrors, type CreatePreviewSessionResponse, type CreatePreviewSessionResponses, type CreateProduct, type CreateProductData, type CreateProductError, type CreateProductErrors, type CreateProductResponse, type CreateProductResponses, type CreateProductReviewData, type CreateProductReviewError, type CreateProductReviewErrors, type CreateProductReviewResponse, type CreateProductReviewResponses, type CreateProductWithSiteTokenData, type CreateProductWithSiteTokenError, type CreateProductWithSiteTokenErrors, type CreateProductWithSiteTokenResponse, type CreateProductWithSiteTokenResponses, type CreateRetainer, type CreateRetainerData, type CreateRetainerError, type CreateRetainerErrors, type CreateRetainerResponse, type CreateRetainerResponses, type CreateRetainerResult, type CreateSite, type CreateSiteData, type CreateSiteError, type CreateSiteErrors, type CreateSiteResponse, type CreateSiteResponses, type CreateTestOrder, type CreateTestOrderData, type CreateTestOrderError, type CreateTestOrderErrors, type CreateTestOrderResponse, type CreateTestOrderResponses, type CreateTestSubscription, type CreateTestSubscriptionData, type CreateTestSubscriptionError, type CreateTestSubscriptionErrors, type CreateTestSubscriptionResponse, type CreateTestSubscriptionResponses, type CreateVariant, type CreateVariantData, type CreateVariantError, type CreateVariantErrors, type CreateVariantResponse, type CreateVariantResponses, type CurrencyRestatement, type CurrencyTotals, type Customer, type CustomerAddress, type CustomerBilling, type CustomerDetail, type CustomersList, type DeleteEventDestinationData, type DeleteEventDestinationError, type DeleteEventDestinationErrors, type DeleteEventDestinationResponse, type DeleteEventDestinationResponses, type DeleteEventDestinationWithSiteTokenData, type DeleteEventDestinationWithSiteTokenError, type DeleteEventDestinationWithSiteTokenErrors, type DeleteEventDestinationWithSiteTokenResponse, type DeleteEventDestinationWithSiteTokenResponses, type DeleteFormData, type DeleteFormError, type DeleteFormErrors, type DeleteFormResponse, type DeleteFormResponses, type DeleteOptionData, type DeleteOptionError, type DeleteOptionErrors, type DeleteOptionResponse, type DeleteOptionResponses, type DeleteProductData, type DeleteProductError, type DeleteProductErrors, type DeleteProductResponse, type DeleteProductResponses, type DeleteSiteData, type DeleteSiteError, type DeleteSiteErrors, type DeleteSiteResponse, type DeleteSiteResponses, type DeleteSubmissionData, type DeleteSubmissionError, type DeleteSubmissionErrors, type DeleteSubmissionResponse, type DeleteSubmissionResponses, type DeleteVariantData, type DeleteVariantError, type DeleteVariantErrors, type DeleteVariantResponse, type DeleteVariantResponses, type DownloadAttachmentData, type DownloadAttachmentError, type DownloadAttachmentErrors, type DownloadAttachmentResponses, type DownloadFileData, type DownloadFileError, type DownloadFileErrors, type DownloadFileResponse, type DownloadFileResponses, type EditProductReviewData, type EditProductReviewError, type EditProductReviewErrors, type EditProductReviewResponse, type EditProductReviewResponses, type EmailDelivery, type EraseCustomerReviewsData, type EraseCustomerReviewsError, type EraseCustomerReviewsErrors, type EraseCustomerReviewsResponse, type EraseCustomerReviewsResponses, type Error, type EventDeliveriesList, type EventDelivery, type EventDestination, type EventDestinationSecret, type EventDestinationsList, type Form, type FormsList, type GenerateVariants, type GenerateVariantsData, type GenerateVariantsError, type GenerateVariantsErrors, type GenerateVariantsResponse, type GenerateVariantsResponses, type GenerateVariantsResult, type GeoSuggestion, type GetAccountReviewsData, type GetAccountReviewsError, type GetAccountReviewsErrors, type GetAccountReviewsResponse, type GetAccountReviewsResponses, type GetAnalyticsBrowsersData, type GetAnalyticsBrowsersErrors, type GetAnalyticsBrowsersResponse, type GetAnalyticsBrowsersResponses, type GetAnalyticsCampaignsData, type GetAnalyticsCampaignsErrors, type GetAnalyticsCampaignsResponse, type GetAnalyticsCampaignsResponses, type GetAnalyticsChannelsData, type GetAnalyticsChannelsErrors, type GetAnalyticsChannelsResponse, type GetAnalyticsChannelsResponses, type GetAnalyticsCitiesData, type GetAnalyticsCitiesErrors, type GetAnalyticsCitiesResponse, type GetAnalyticsCitiesResponses, type GetAnalyticsCountriesData, type GetAnalyticsCountriesErrors, type GetAnalyticsCountriesResponse, type GetAnalyticsCountriesResponses, type GetAnalyticsDevicesData, type GetAnalyticsDevicesErrors, type GetAnalyticsDevicesResponse, type GetAnalyticsDevicesResponses, type GetAnalyticsEntryPagesData, type GetAnalyticsEntryPagesErrors, type GetAnalyticsEntryPagesResponse, type GetAnalyticsEntryPagesResponses, type GetAnalyticsExitPagesData, type GetAnalyticsExitPagesErrors, type GetAnalyticsExitPagesResponse, type GetAnalyticsExitPagesResponses, type GetAnalyticsOperatingSystemsData, type GetAnalyticsOperatingSystemsErrors, type GetAnalyticsOperatingSystemsResponse, type GetAnalyticsOperatingSystemsResponses, type GetAnalyticsPagesData, type GetAnalyticsPagesErrors, type GetAnalyticsPagesResponse, type GetAnalyticsPagesResponses, type GetAnalyticsRealtimeData, type GetAnalyticsRealtimeErrors, type GetAnalyticsRealtimeResponse, type GetAnalyticsRealtimeResponses, type GetAnalyticsRegionsData, type GetAnalyticsRegionsErrors, type GetAnalyticsRegionsResponse, type GetAnalyticsRegionsResponses, type GetAnalyticsSourcesData, type GetAnalyticsSourcesErrors, type GetAnalyticsSourcesResponse, type GetAnalyticsSourcesResponses, type GetAnalyticsStatusData, type GetAnalyticsStatusErrors, type GetAnalyticsStatusResponse, type GetAnalyticsStatusResponses, type GetAnalyticsSummaryData, type GetAnalyticsSummaryErrors, type GetAnalyticsSummaryResponse, type GetAnalyticsSummaryResponses, type GetAnalyticsTimeseriesData, type GetAnalyticsTimeseriesErrors, type GetAnalyticsTimeseriesResponse, type GetAnalyticsTimeseriesResponses, type GetAnalyticsUtmCampaignData, type GetAnalyticsUtmCampaignErrors, type GetAnalyticsUtmCampaignResponse, type GetAnalyticsUtmCampaignResponses, type GetAnalyticsUtmContentData, type GetAnalyticsUtmContentErrors, type GetAnalyticsUtmContentResponse, type GetAnalyticsUtmContentResponses, type GetAnalyticsUtmMediumData, type GetAnalyticsUtmMediumErrors, type GetAnalyticsUtmMediumResponse, type GetAnalyticsUtmMediumResponses, type GetAnalyticsUtmSourceData, type GetAnalyticsUtmSourceErrors, type GetAnalyticsUtmSourceResponse, type GetAnalyticsUtmSourceResponses, type GetAnalyticsUtmTermData, type GetAnalyticsUtmTermErrors, type GetAnalyticsUtmTermResponse, type GetAnalyticsUtmTermResponses, type GetBusinessSummaryData, type GetBusinessSummaryErrors, type GetBusinessSummaryResponse, type GetBusinessSummaryResponses, type GetCartSummaryData, type GetCartSummaryError, type GetCartSummaryErrors, type GetCartSummaryResponse, type GetCartSummaryResponses, type GetConsentConfigWithSiteTokenData, type GetConsentConfigWithSiteTokenError, type GetConsentConfigWithSiteTokenErrors, type GetConsentConfigWithSiteTokenResponse, type GetConsentConfigWithSiteTokenResponses, type GetCustomerData, type GetCustomerError, type GetCustomerErrors, type GetCustomerResponse, type GetCustomerResponses, type GetEventDestinationData, type GetEventDestinationError, type GetEventDestinationErrors, type GetEventDestinationResponse, type GetEventDestinationResponses, type GetEventDestinationSecretData, type GetEventDestinationSecretError, type GetEventDestinationSecretErrors, type GetEventDestinationSecretResponse, type GetEventDestinationSecretResponses, type GetEventDestinationSecretWithSiteTokenData, type GetEventDestinationSecretWithSiteTokenError, type GetEventDestinationSecretWithSiteTokenErrors, type GetEventDestinationSecretWithSiteTokenResponse, type GetEventDestinationSecretWithSiteTokenResponses, type GetFormData, type GetFormError, type GetFormErrors, type GetFormResponse, type GetFormResponses, type GetGeoData, type GetGeoError, type GetGeoErrors, type GetGeoResponse, type GetGeoResponses, type GetInvoiceData, type GetInvoiceError, type GetInvoiceErrors, type GetInvoicePreviewData, type GetInvoicePreviewError, type GetInvoicePreviewErrors, type GetInvoicePreviewResponse, type GetInvoicePreviewResponses, type GetInvoiceResponse, type GetInvoiceResponses, type GetInvoiceSettingsData, type GetInvoiceSettingsError, type GetInvoiceSettingsErrors, type GetInvoiceSettingsResponse, type GetInvoiceSettingsResponses, type GetInvoiceSettingsWithSiteTokenData, type GetInvoiceSettingsWithSiteTokenError, type GetInvoiceSettingsWithSiteTokenErrors, type GetInvoiceSettingsWithSiteTokenResponse, type GetInvoiceSettingsWithSiteTokenResponses, type GetMerchantReviewData, type GetMerchantReviewError, type GetMerchantReviewErrors, type GetMerchantReviewResponse, type GetMerchantReviewResponses, type GetNextPayoutData, type GetNextPayoutErrors, type GetNextPayoutResponse, type GetNextPayoutResponses, type GetOrderData, type GetOrderError, type GetOrderErrors, type GetOrderResponse, type GetOrderResponses, type GetOrderSessionData, type GetOrderSessionError, type GetOrderSessionErrors, type GetOrderSessionResponse, type GetOrderSessionResponses, type GetOwnProductReviewData, type GetOwnProductReviewError, type GetOwnProductReviewErrors, type GetOwnProductReviewResponse, type GetOwnProductReviewResponses, type GetPaymentsStatusData, type GetPaymentsStatusError, type GetPaymentsStatusErrors, type GetPaymentsStatusResponse, type GetPaymentsStatusResponses, type GetPersonData, type GetPersonErrors, type GetPersonResponse, type GetPersonResponses, type GetProductData, type GetProductError, type GetProductErrors, type GetProductResponse, type GetProductResponses, type GetProductReviewAvailabilityData, type GetProductReviewAvailabilityError, type GetProductReviewAvailabilityErrors, type GetProductReviewAvailabilityResponse, type GetProductReviewAvailabilityResponses, type GetProductReviewsData, type GetProductReviewsError, type GetProductReviewsErrors, type GetProductReviewsResponse, type GetProductReviewsResponses, type GetPublicConsentPrefsData, type GetPublicConsentPrefsError, type GetPublicConsentPrefsErrors, type GetPublicConsentPrefsResponse, type GetPublicConsentPrefsResponses, type GetPublicProductData, type GetPublicProductError, type GetPublicProductErrors, type GetPublicProductResponse, type GetPublicProductResponses, type GetRetainerData, type GetRetainerError, type GetRetainerErrors, type GetRetainerResponse, type GetRetainerResponses, type GetReviewSettingsData, type GetReviewSettingsError, type GetReviewSettingsErrors, type GetReviewSettingsResponse, type GetReviewSettingsResponses, type GetSalesSummaryData, type GetSalesSummaryErrors, type GetSalesSummaryResponse, type GetSalesSummaryResponses, type GetSiteAnalyticsData, type GetSiteAnalyticsError, type GetSiteAnalyticsErrors, type GetSiteAnalyticsResponse, type GetSiteAnalyticsResponses, type GetSiteCheckoutPauseData, type GetSiteCheckoutPauseError, type GetSiteCheckoutPauseErrors, type GetSiteCheckoutPauseResponse, type GetSiteCheckoutPauseResponses, type GetSiteData, type GetSiteError, type GetSiteErrors, type GetSiteResponse, type GetSiteResponses, type GetSubmissionData, type GetSubmissionError, type GetSubmissionErrors, type GetSubmissionResponse, type GetSubmissionResponses, type Inventory, type InventoryInput, type Invoice, type InvoiceAggregates, type InvoiceBillTo, type InvoiceError, type InvoiceLineItem, type InvoicePreview, type InvoiceSettings, type InvoiceSiteBody, type InvoicesList, type ListCustomersData, type ListCustomersError, type ListCustomersErrors, type ListCustomersResponse, type ListCustomersResponses, type ListEventDeliveriesData, type ListEventDeliveriesError, type ListEventDeliveriesErrors, type ListEventDeliveriesResponse, type ListEventDeliveriesResponses, type ListEventDeliveriesWithSiteTokenData, type ListEventDeliveriesWithSiteTokenError, type ListEventDeliveriesWithSiteTokenErrors, type ListEventDeliveriesWithSiteTokenResponse, type ListEventDeliveriesWithSiteTokenResponses, type ListEventDestinationsData, type ListEventDestinationsError, type ListEventDestinationsErrors, type ListEventDestinationsResponse, type ListEventDestinationsResponses, type ListEventDestinationsWithSiteTokenData, type ListEventDestinationsWithSiteTokenError, type ListEventDestinationsWithSiteTokenErrors, type ListEventDestinationsWithSiteTokenResponse, type ListEventDestinationsWithSiteTokenResponses, type ListFormsData, type ListFormsError, type ListFormsErrors, type ListFormsResponse, type ListFormsResponses, type ListFormsWithSiteTokenData, type ListFormsWithSiteTokenError, type ListFormsWithSiteTokenErrors, type ListFormsWithSiteTokenResponse, type ListFormsWithSiteTokenResponses, type ListInvoicesData, type ListInvoicesError, type ListInvoicesErrors, type ListInvoicesResponse, type ListInvoicesResponses, type ListMerchantReviewsData, type ListMerchantReviewsError, type ListMerchantReviewsErrors, type ListMerchantReviewsResponse, type ListMerchantReviewsResponses, type ListOrdersWithSiteTokenData, type ListOrdersWithSiteTokenError, type ListOrdersWithSiteTokenErrors, type ListOrdersWithSiteTokenResponse, type ListOrdersWithSiteTokenResponses, type ListPeopleData, type ListPeopleErrors, type ListPeopleResponse, type ListPeopleResponses, type ListProductsData, type ListProductsError, type ListProductsErrors, type ListProductsResponse, type ListProductsResponses, type ListProductsWithSiteTokenData, type ListProductsWithSiteTokenError, type ListProductsWithSiteTokenErrors, type ListProductsWithSiteTokenResponse, type ListProductsWithSiteTokenResponses, type ListRetainersData, type ListRetainersError, type ListRetainersErrors, type ListRetainersResponse, type ListRetainersResponses, type ListSitesData, type ListSitesError, type ListSitesErrors, type ListSitesResponse, type ListSitesResponses, type ListSubmissionsData, type ListSubmissionsError, type ListSubmissionsErrors, type ListSubmissionsResponse, type ListSubmissionsResponses, type ListSubscriptionsData, type ListSubscriptionsErrors, type ListSubscriptionsResponse, type ListSubscriptionsResponses, type ManageCancelResult, type ManageLinkAction, type ManageVerifyRequest, type ManageVerifyResult, type ManagedSubscription, type ManagedSubscriptionResult, type MarkInvoicePaid, type MarkInvoicePaidData, type MarkInvoicePaidError, type MarkInvoicePaidErrors, type MarkInvoicePaidResponse, type MarkInvoicePaidResponses, type MarkInvoicePaidResult, type MarkInvoiceUncollectibleData, type MarkInvoiceUncollectibleError, type MarkInvoiceUncollectibleErrors, type MarkInvoiceUncollectibleResponse, type MarkInvoiceUncollectibleResponses, type ModerateMerchantReviewData, type ModerateMerchantReviewError, type ModerateMerchantReviewErrors, type ModerateMerchantReviewResponse, type ModerateMerchantReviewResponses, type NeedsAttentionItem, type NestedOptionInput, type NestedVariantInput, type NextPayout, type Option, type Options, type Order, type OrderCustomer, type OrderFulfillmentRequest, type OrderSessionStatus, type OrdersList, type OwnProductReview, type PauseRetainerData, type PauseRetainerError, type PauseRetainerErrors, type PauseRetainerResponse, type PauseRetainerResponses, type PauseSiteCheckoutData, type PauseSiteCheckoutError, type PauseSiteCheckoutErrors, type PauseSiteCheckoutResponse, type PauseSiteCheckoutResponses, type PaymentsStatus, type PeopleList, type PersonDetail, type PersonRow, type PortalSessionResult, type PreviewInvoice, type PreviewInvoiceData, type PreviewInvoiceError, type PreviewInvoiceErrors, type PreviewInvoiceResponse, type PreviewInvoiceResponses, type PreviewSessionResult, type Product, type ProductDetail, type ProductFulfillment, type ProductFulfillmentInput, type ProductReview, type ProductSubscriptionConfig, type ProductsList, type PublicOption, type PublicProduct, type PublicSubscription, type PublicSubscriptionPlan, type PublicVariant, type PurgeSiteReviewsData, type PurgeSiteReviewsError, type PurgeSiteReviewsErrors, type PurgeSiteReviewsResponse, type PurgeSiteReviewsResponses, type ReactivateSiteSubscriptionsTeardownData, type ReactivateSiteSubscriptionsTeardownError, type ReactivateSiteSubscriptionsTeardownErrors, type ReactivateSiteSubscriptionsTeardownResponse, type ReactivateSiteSubscriptionsTeardownResponses, type RecipientCooldownError, type ReconcileOptionInput, type ReconcileOptionValueInput, type ReconcileVariantInput, type RefundOrder, type RefundOrderData, type RefundOrderError, type RefundOrderErrors, type RefundOrderResponse, type RefundOrderResponses, type RefundResult, type ReissueResult, type RemindInvoiceData, type RemindInvoiceError, type RemindInvoiceErrors, type RemindInvoiceResponse, type RemindInvoiceResponses, type RemindInvoiceResult, type ReplyToMerchantReviewData, type ReplyToMerchantReviewError, type ReplyToMerchantReviewErrors, type ReplyToMerchantReviewResponse, type ReplyToMerchantReviewResponses, type ResendInvoiceData, type ResendInvoiceError, type ResendInvoiceErrors, type ResendInvoiceResponse, type ResendInvoiceResponses, type ResendOrderReceiptData, type ResendOrderReceiptError, type ResendOrderReceiptErrors, type ResendOrderReceiptResponse, type ResendOrderReceiptResponses, type ResendReceiptResult, type ResetOrderDownloadsData, type ResetOrderDownloadsError, type ResetOrderDownloadsErrors, type ResetOrderDownloadsResponse, type ResetOrderDownloadsResponses, type ResetWebhookEventData, type ResetWebhookEventError, type ResetWebhookEventErrors, type ResetWebhookEventResponse, type ResetWebhookEventResponses, type ResolveManageLinkData, type ResolveManageLinkError, type ResolveManageLinkErrors, type ResolveManageLinkResponse, type ResolveManageLinkResponses, type ResubmitProductReviewData, type ResubmitProductReviewError, type ResubmitProductReviewErrors, type ResubmitProductReviewResponse, type ResubmitProductReviewResponses, type ResumeRetainerData, type ResumeRetainerError, type ResumeRetainerErrors, type ResumeRetainerResponse, type ResumeRetainerResponses, type Retainer, type RetainerError, type RetainerSiteBody, type RetainersList, type RetryEventDeliveryData, type RetryEventDeliveryError, type RetryEventDeliveryErrors, type RetryEventDeliveryResponse, type RetryEventDeliveryResponses, type RetryEventDeliveryWithSiteTokenData, type RetryEventDeliveryWithSiteTokenError, type RetryEventDeliveryWithSiteTokenErrors, type RetryEventDeliveryWithSiteTokenResponse, type RetryEventDeliveryWithSiteTokenResponses, type ReviewReadiness, type RevokeCustomerAccessData, type RevokeCustomerAccessError, type RevokeCustomerAccessErrors, type RevokeCustomerAccessResponse, type RevokeCustomerAccessResponses, type RevokeCustomerAccessResult, type RotateEventDestinationSecretData, type RotateEventDestinationSecretError, type RotateEventDestinationSecretErrors, type RotateEventDestinationSecretResponse, type RotateEventDestinationSecretResponses, type RotateEventDestinationSecretWithSiteTokenData, type RotateEventDestinationSecretWithSiteTokenError, type RotateEventDestinationSecretWithSiteTokenErrors, type RotateEventDestinationSecretWithSiteTokenResponse, type RotateEventDestinationSecretWithSiteTokenResponses, type SalesSummary, type SalesSummaryProductRow, type SalesSummarySeriesEntry, type SetInventory, type SetInvoiceReminders, type SetInvoiceRemindersData, type SetInvoiceRemindersError, type SetInvoiceRemindersErrors, type SetInvoiceRemindersResponse, type SetInvoiceRemindersResponses, type SetOrderFulfillmentData, type SetOrderFulfillmentErrors, type SetOrderFulfillmentResponse, type SetOrderFulfillmentResponses, type SetProductSubscription, type SetProductSubscriptionData, type SetProductSubscriptionError, type SetProductSubscriptionErrors, type SetProductSubscriptionResponse, type SetProductSubscriptionResponses, type SetProductVariants, type SetProductVariantsConflict, type SetProductVariantsData, type SetProductVariantsError, type SetProductVariantsErrors, type SetProductVariantsResponse, type SetProductVariantsResponses, type SetProductVariantsResult, type SetVariantInventoryData, type SetVariantInventoryError, type SetVariantInventoryErrors, type SetVariantInventoryResponse, type SetVariantInventoryResponses, type SettledTotals, type ShippingOptionUnavailable, type ShippingRateInput, type Site, type SiteAccountRoute, type SiteAnalytics, type SiteDomains, type SitePayments, type SiteWithRestatement, type SiteWithToken, type SitesList, type SkipNextRetainerCycleData, type SkipNextRetainerCycleError, type SkipNextRetainerCycleErrors, type SkipNextRetainerCycleResponse, type SkipNextRetainerCycleResponses, type SnoozeInvoice, type SnoozeInvoiceData, type SnoozeInvoiceError, type SnoozeInvoiceErrors, type SnoozeInvoiceResponse, type SnoozeInvoiceResponses, type Submission, type SubmissionMetadata, type SubmissionsList, type SubscriberActionResult, type SubscriberSubscription, type SubscriptionPlan, type SubscriptionPlanInput, type SubscriptionSummary, type SubscriptionsList, type SubscriptionsReactivateBody, type SubscriptionsReactivateResult, type SubscriptionsTeardownBody, type SubscriptionsTeardownResult, type SummaryPeriod, type TeardownReason, type TeardownSiteSubscriptionsData, type TeardownSiteSubscriptionsError, type TeardownSiteSubscriptionsErrors, type TeardownSiteSubscriptionsResponse, type TeardownSiteSubscriptionsResponses, type TestOrderResult, type TestShippingAddress, type TestSubscriptionResult, type UpdateCustomer, type UpdateCustomerBilling, type UpdateCustomerBillingData, type UpdateCustomerBillingError, type UpdateCustomerBillingErrors, type UpdateCustomerBillingResponse, type UpdateCustomerBillingResponses, type UpdateCustomerData, type UpdateCustomerError, type UpdateCustomerErrors, type UpdateCustomerResponse, type UpdateCustomerResponses, type UpdateEventDestination, type UpdateEventDestinationData, type UpdateEventDestinationError, type UpdateEventDestinationErrors, type UpdateEventDestinationResponse, type UpdateEventDestinationResponses, type UpdateEventDestinationWithSiteTokenData, type UpdateEventDestinationWithSiteTokenError, type UpdateEventDestinationWithSiteTokenErrors, type UpdateEventDestinationWithSiteTokenResponse, type UpdateEventDestinationWithSiteTokenResponses, type UpdateForm, type UpdateFormData, type UpdateFormError, type UpdateFormErrors, type UpdateFormResponse, type UpdateFormResponses, type UpdateInvoiceRecipient, type UpdateInvoiceRecipientData, type UpdateInvoiceRecipientError, type UpdateInvoiceRecipientErrors, type UpdateInvoiceRecipientResponse, type UpdateInvoiceRecipientResponses, type UpdateInvoiceSettings, type UpdateInvoiceSettingsData, type UpdateInvoiceSettingsError, type UpdateInvoiceSettingsErrors, type UpdateInvoiceSettingsResponse, type UpdateInvoiceSettingsResponses, type UpdateOption, type UpdateOptionData, type UpdateOptionError, type UpdateOptionErrors, type UpdateOptionResponse, type UpdateOptionResponses, type UpdateProduct, type UpdateProductData, type UpdateProductError, type UpdateProductErrors, type UpdateProductResponse, type UpdateProductResponses, type UpdateRecipientResult, type UpdateRetainer, type UpdateRetainerData, type UpdateRetainerError, type UpdateRetainerErrors, type UpdateRetainerResponse, type UpdateRetainerResponses, type UpdateReviewSettingsData, type UpdateReviewSettingsError, type UpdateReviewSettingsErrors, type UpdateReviewSettingsResponse, type UpdateReviewSettingsResponses, type UpdateSite, type UpdateSiteAccountRoute, type UpdateSiteAccountRouteData, type UpdateSiteAccountRouteError, type UpdateSiteAccountRouteErrors, type UpdateSiteAccountRouteResponse, type UpdateSiteAccountRouteResponses, type UpdateSiteAnalytics, type UpdateSiteAnalyticsData, type UpdateSiteAnalyticsError, type UpdateSiteAnalyticsErrors, type UpdateSiteAnalyticsResponse, type UpdateSiteAnalyticsResponses, type UpdateSiteData, type UpdateSiteDomains, type UpdateSiteDomainsData, type UpdateSiteDomainsError, type UpdateSiteDomainsErrors, type UpdateSiteDomainsResponse, type UpdateSiteDomainsResponses, type UpdateSiteError, type UpdateSiteErrors, type UpdateSiteInvoicing, type UpdateSiteInvoicingData, type UpdateSiteInvoicingError, type UpdateSiteInvoicingErrors, type UpdateSiteInvoicingResponse, type UpdateSiteInvoicingResponses, type UpdateSitePayments, type UpdateSitePaymentsData, type UpdateSitePaymentsError, type UpdateSitePaymentsErrors, type UpdateSitePaymentsResponse, type UpdateSitePaymentsResponses, type UpdateSiteResponse, type UpdateSiteResponses, type UpdateSubscriptionAddressRequest, type UpdateVariant, type UpdateVariantData, type UpdateVariantError, type UpdateVariantErrors, type UpdateVariantResponse, type UpdateVariantResponses, type UpsertConsentConfig, type UpsertConsentConfigWithSiteTokenData, type UpsertConsentConfigWithSiteTokenError, type UpsertConsentConfigWithSiteTokenErrors, type UpsertConsentConfigWithSiteTokenResponse, type UpsertConsentConfigWithSiteTokenResponses, type Variant, type VariantOptionValue, type VoidInvoice, type VoidInvoiceData, type VoidInvoiceError, type VoidInvoiceErrors, type VoidInvoiceResponse, type VoidInvoiceResponses, type VoidInvoiceResult, type WebhookEventResetResult, type WithdrawProductReviewData, type WithdrawProductReviewError, type WithdrawProductReviewErrors, type WithdrawProductReviewResponse, type WithdrawProductReviewResponses, accountCancelSubscription, accountCreatePortalSession, accountLogin, accountLogout, accountManageCancel, accountManageGetSubscription, accountManagePortalSession, accountManageVerify, accountMe, accountReactivateSubscription, accountSubscribe, accountUpdateSubscriptionAddress, accountVerify, actOnManageLink, adjustVariantInventory, attachProductFile, cancelRetainer, cancelSubscription, createCartCheckout, createCheckout, createClient, createConfig, createCustomer, createEventDestination, createEventDestinationWithSiteToken, createForm, createFormWithSiteToken, createInvoice, createMultiItemTestOrder, createOption, createPreviewSession, createProduct, createProductReview, createProductWithSiteToken, createRetainer, createSite, createTestOrder, createTestSubscription, createVariant, deleteEventDestination, deleteEventDestinationWithSiteToken, deleteForm, deleteOption, deleteProduct, deleteSite, deleteSubmission, deleteVariant, downloadAttachment, downloadFile, editProductReview, eraseCustomerReviews, generateVariants, getAccountReviews, getAnalyticsBrowsers, getAnalyticsCampaigns, getAnalyticsChannels, getAnalyticsCities, getAnalyticsCountries, getAnalyticsDevices, getAnalyticsEntryPages, getAnalyticsExitPages, getAnalyticsOperatingSystems, getAnalyticsPages, getAnalyticsRealtime, getAnalyticsRegions, getAnalyticsSources, getAnalyticsStatus, getAnalyticsSummary, getAnalyticsTimeseries, getAnalyticsUtmCampaign, getAnalyticsUtmContent, getAnalyticsUtmMedium, getAnalyticsUtmSource, getAnalyticsUtmTerm, getBusinessSummary, getCartSummary, getConsentConfigWithSiteToken, getCustomer, getEventDestination, getEventDestinationSecret, getEventDestinationSecretWithSiteToken, getForm, getGeo, getInvoice, getInvoicePreview, getInvoiceSettings, getInvoiceSettingsWithSiteToken, getMerchantReview, getNextPayout, getOrder, getOrderSession, getOwnProductReview, getPaymentsStatus, getPerson, getProduct, getProductReviewAvailability, getProductReviews, getPublicConsentPrefs, getPublicProduct, getRetainer, getReviewSettings, getSalesSummary, getSite, getSiteAnalytics, getSiteCheckoutPause, getSubmission, listCustomers, listEventDeliveries, listEventDeliveriesWithSiteToken, listEventDestinations, listEventDestinationsWithSiteToken, listForms, listFormsWithSiteToken, listInvoices, listMerchantReviews, listOrdersWithSiteToken, listPeople, listProducts, listProductsWithSiteToken, listRetainers, listSites, listSubmissions, listSubscriptions, markInvoicePaid, markInvoiceUncollectible, moderateMerchantReview, pauseRetainer, pauseSiteCheckout, previewInvoice, purgeSiteReviews, reactivateSiteSubscriptionsTeardown, refundOrder, remindInvoice, replyToMerchantReview, resendInvoice, resendOrderReceipt, resetOrderDownloads, resetWebhookEvent, resolveManageLink, resubmitProductReview, resumeRetainer, retryEventDelivery, retryEventDeliveryWithSiteToken, revokeCustomerAccess, rotateEventDestinationSecret, rotateEventDestinationSecretWithSiteToken, setInvoiceReminders, setOrderFulfillment, setProductSubscription, setProductVariants, setVariantInventory, skipNextRetainerCycle, snoozeInvoice, teardownSiteSubscriptions, updateCustomer, updateCustomerBilling, updateEventDestination, updateEventDestinationWithSiteToken, updateForm, updateInvoiceRecipient, updateInvoiceSettings, updateOption, updateProduct, updateRetainer, updateReviewSettings, updateSite, updateSiteAccountRoute, updateSiteAnalytics, updateSiteDomains, updateSiteInvoicing, updateSitePayments, updateVariant, upsertConsentConfigWithSiteToken, voidInvoice, withdrawProductReview };