@asstio-dev/storefront 0.47.0 → 0.49.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/schema.d.ts CHANGED
@@ -108,6 +108,38 @@ export interface paths {
108
108
  patch?: never;
109
109
  trace?: never;
110
110
  };
111
+ "/v1/cart/codes": {
112
+ parameters: {
113
+ query?: never;
114
+ header?: never;
115
+ path?: never;
116
+ cookie?: never;
117
+ };
118
+ get?: never;
119
+ put?: never;
120
+ post: operations["ApplyCartCode"];
121
+ delete?: never;
122
+ options?: never;
123
+ head?: never;
124
+ patch?: never;
125
+ trace?: never;
126
+ };
127
+ "/v1/cart/codes/{code}": {
128
+ parameters: {
129
+ query?: never;
130
+ header?: never;
131
+ path?: never;
132
+ cookie?: never;
133
+ };
134
+ get?: never;
135
+ put?: never;
136
+ post?: never;
137
+ delete: operations["RemoveCartCode"];
138
+ options?: never;
139
+ head?: never;
140
+ patch?: never;
141
+ trace?: never;
142
+ };
111
143
  "/v1/cart/context": {
112
144
  parameters: {
113
145
  query?: never;
@@ -475,6 +507,58 @@ export interface paths {
475
507
  patch?: never;
476
508
  trace?: never;
477
509
  };
510
+ "/v1/me/watches": {
511
+ parameters: {
512
+ query?: never;
513
+ header?: never;
514
+ path?: never;
515
+ cookie?: never;
516
+ };
517
+ /** Watches the account owns or that are addressed to its e-mail, newest first: the recipient projection where the e-mail matches, else the owner projection. */
518
+ get: operations["ListMyWatches"];
519
+ put?: never;
520
+ /** Watch a variant for the signed-in consumer's own e-mail (the body names no address). A repeat answers 200 with the account's open watch. */
521
+ post: operations["CreateMyWatch"];
522
+ delete?: never;
523
+ options?: never;
524
+ head?: never;
525
+ patch?: never;
526
+ trace?: never;
527
+ };
528
+ "/v1/me/watches/stop-all": {
529
+ parameters: {
530
+ query?: never;
531
+ header?: never;
532
+ path?: never;
533
+ cookie?: never;
534
+ };
535
+ get?: never;
536
+ put?: never;
537
+ /** Stop every watch addressed to the account's own e-mail, in any state, and stop watch mail to it for 12 months; never a watch addressed elsewhere. */
538
+ post: operations["StopAllMyWatches"];
539
+ delete?: never;
540
+ options?: never;
541
+ head?: never;
542
+ patch?: never;
543
+ trace?: never;
544
+ };
545
+ "/v1/me/watches/{id}": {
546
+ parameters: {
547
+ query?: never;
548
+ header?: never;
549
+ path?: never;
550
+ cookie?: never;
551
+ };
552
+ get?: never;
553
+ put?: never;
554
+ post?: never;
555
+ /** Cancel one watch the account owns or that is addressed to its e-mail. 204 whether or not there is such a watch. */
556
+ delete: operations["CancelMyWatch"];
557
+ options?: never;
558
+ head?: never;
559
+ patch?: never;
560
+ trace?: never;
561
+ };
478
562
  "/v1/orders/{orderId}": {
479
563
  parameters: {
480
564
  query?: never;
@@ -732,6 +816,41 @@ export interface paths {
732
816
  patch?: never;
733
817
  trace?: never;
734
818
  };
819
+ "/v1/shopper/watches": {
820
+ parameters: {
821
+ query?: never;
822
+ header?: never;
823
+ path?: never;
824
+ cookie?: never;
825
+ };
826
+ /** The token's watches in the owner projection (open or ended), newest first; an unknown token answers an empty list. */
827
+ get: operations["ListShopperWatches"];
828
+ put?: never;
829
+ /** Watch a variant that is not sellable now: one mail to the given address when it is back. A repeat answers 200 with the token's open watch. */
830
+ post: operations["CreateShopperWatch"];
831
+ delete?: never;
832
+ options?: never;
833
+ head?: never;
834
+ patch?: never;
835
+ trace?: never;
836
+ };
837
+ "/v1/shopper/watches/{id}": {
838
+ parameters: {
839
+ query?: never;
840
+ header?: never;
841
+ path?: never;
842
+ cookie?: never;
843
+ };
844
+ get?: never;
845
+ put?: never;
846
+ post?: never;
847
+ /** Cancel one of the token's watches. 204 whether or not the token owns such a watch, and whatever its state. */
848
+ delete: operations["CancelShopperWatch"];
849
+ options?: never;
850
+ head?: never;
851
+ patch?: never;
852
+ trace?: never;
853
+ };
735
854
  "/v1/site": {
736
855
  parameters: {
737
856
  query?: never;
@@ -766,6 +885,23 @@ export interface paths {
766
885
  patch?: never;
767
886
  trace?: never;
768
887
  };
888
+ "/v1/watches/cancel": {
889
+ parameters: {
890
+ query?: never;
891
+ header?: never;
892
+ path?: never;
893
+ cookie?: never;
894
+ };
895
+ get?: never;
896
+ put?: never;
897
+ /** The mail's cancel link: cancel that watch (scope watch) or every watch for the e-mail the mail went to (scope all). 204 whatever the token is. */
898
+ post: operations["CancelWatchByToken"];
899
+ delete?: never;
900
+ options?: never;
901
+ head?: never;
902
+ patch?: never;
903
+ trace?: never;
904
+ };
769
905
  }
770
906
  export type webhooks = Record<string, never>;
771
907
  export interface components {
@@ -813,12 +949,23 @@ export interface components {
813
949
  AdoptionDto: {
814
950
  accountConsent: components["schemas"]["ConsentCurrentDto"];
815
951
  favorites: components["schemas"]["FavoritesDto"];
952
+ merged: components["schemas"]["AdoptionMergedDto"][];
816
953
  skipped: components["schemas"]["AdoptionSkippedDto"][];
954
+ watches: components["schemas"]["WatchDto"][];
955
+ };
956
+ AdoptionMergedDto: {
957
+ /** Format: uuid */
958
+ guestWatchId: string;
959
+ /** Format: uuid */
960
+ watchId: string;
817
961
  };
818
962
  AdoptionSkippedDto: {
963
+ /** Format: uuid */
964
+ guestWatchId?: null | string;
819
965
  /** Format: int32 */
820
966
  productId: number | null | string;
821
967
  reason: string;
968
+ result?: null | string;
822
969
  /** Format: int32 */
823
970
  variantId: number | null | string;
824
971
  };
@@ -837,6 +984,9 @@ export interface components {
837
984
  source: string;
838
985
  value: string;
839
986
  };
987
+ ApplyCartCodeRequest: {
988
+ code: string;
989
+ };
840
990
  AttributeDto: {
841
991
  facetKey: null | string;
842
992
  html: null | string;
@@ -909,12 +1059,24 @@ export interface components {
909
1059
  BundleDto: {
910
1060
  components: components["schemas"]["BundleComponentDto"][];
911
1061
  };
1062
+ CancelWatchRequest: {
1063
+ scope: null | string;
1064
+ token: null | string;
1065
+ };
1066
+ CartCodeDto: {
1067
+ code: string;
1068
+ promotion: components["schemas"]["PromotionRefDto"];
1069
+ reason: null | components["schemas"]["PromotionCodeReasonDto"];
1070
+ status: components["schemas"]["PromotionCodeStatusDto"];
1071
+ };
912
1072
  CartDto: {
913
1073
  checkoutBlocked: boolean;
1074
+ codes: components["schemas"]["CartCodeDto"][];
914
1075
  context: components["schemas"]["ContextDto"];
915
1076
  currency: string;
916
1077
  delivery: null | components["schemas"]["DeliveryRangeDto"];
917
1078
  lines: components["schemas"]["CartLineDto"][];
1079
+ promotions: components["schemas"]["CartPromotionDto"][];
918
1080
  quoteStatus: components["schemas"]["QuoteStatusDto"];
919
1081
  status: string;
920
1082
  token: string;
@@ -929,11 +1091,16 @@ export interface components {
929
1091
  id: string;
930
1092
  image: null | components["schemas"]["MediaDescriptorDto"];
931
1093
  linePrice: components["schemas"]["PricePairDto"];
1094
+ linePriceBeforePromotions: null | components["schemas"]["PricePairDto"];
932
1095
  product: components["schemas"]["CartLineProductDto"];
1096
+ promotions: components["schemas"]["LinePromotionDto"][];
933
1097
  /** Format: int32 */
934
1098
  quantity: number | string;
1099
+ /** @description At least one. One segment: every unit costs unitPrice. Several: the units differ; unitPrice is the largest segment's (ties: the higher price) and linePrice the exact line amount. */
1100
+ segments: components["schemas"]["CartLineSegmentDto"][];
935
1101
  sku: string;
936
1102
  unitPrice: components["schemas"]["PricePairDto"];
1103
+ unitPriceBeforePromotions: null | components["schemas"]["PricePairDto"];
937
1104
  variant: components["schemas"]["CartLineVariantDto"];
938
1105
  };
939
1106
  CartLineProductDto: {
@@ -946,21 +1113,40 @@ export interface components {
946
1113
  shortDescription: null | string;
947
1114
  slug: string;
948
1115
  };
1116
+ CartLineSegmentDto: {
1117
+ linePrice: components["schemas"]["PricePairDto"];
1118
+ /** Format: int32 */
1119
+ quantity: number | string;
1120
+ segmentId: string;
1121
+ unitPrice: components["schemas"]["PricePairDto"];
1122
+ };
949
1123
  CartLineVariantDto: {
950
1124
  brand: null | components["schemas"]["BrandDto"];
951
1125
  id: string;
1126
+ name: null | string;
952
1127
  selectedOptions: {
953
1128
  [key: string]: string;
954
1129
  };
955
1130
  url: null | string;
956
1131
  };
1132
+ CartPromotionDto: {
1133
+ amount: components["schemas"]["PricePairDto"];
1134
+ code: null | string;
1135
+ effectId: string;
1136
+ label: string;
1137
+ /** Format: int32 */
1138
+ promotionId: number | string;
1139
+ scope: components["schemas"]["PromotionScopeDto"];
1140
+ };
957
1141
  CartTokenDto: {
958
1142
  token: string;
959
1143
  };
960
1144
  CartTotalsDto: {
961
1145
  grandTotal: components["schemas"]["PricePairDto"];
1146
+ promotions: null | components["schemas"]["PricePairDto"];
962
1147
  rounding: null | string;
963
1148
  subtotal: components["schemas"]["PricePairDto"];
1149
+ subtotalBeforePromotions: null | components["schemas"]["PricePairDto"];
964
1150
  };
965
1151
  CategoryNodeDto: {
966
1152
  children: components["schemas"]["CategoryNodeDto"][];
@@ -976,10 +1162,14 @@ export interface components {
976
1162
  pathNames: string[];
977
1163
  };
978
1164
  CheckoutCartDto: {
1165
+ codes: components["schemas"]["CartCodeDto"][];
979
1166
  currency: string;
980
1167
  delivery: null | components["schemas"]["DeliveryRangeDto"];
981
1168
  grandTotalInc: string;
982
1169
  lines: components["schemas"]["CheckoutCartLineDto"][];
1170
+ promotions: components["schemas"]["CartPromotionDto"][];
1171
+ promotionsTotalInc: null | string;
1172
+ subtotalBeforePromotionsInc: null | string;
983
1173
  subtotalInc: string;
984
1174
  /** Format: int32 */
985
1175
  version: number | string;
@@ -988,6 +1178,8 @@ export interface components {
988
1178
  availability: null | components["schemas"]["LineAvailability"];
989
1179
  delivery: null | components["schemas"]["DeliveryRangeDto"];
990
1180
  image: null | components["schemas"]["MediaDescriptorDto"];
1181
+ lineKey: null | string;
1182
+ lineTotalBeforePromotionsInc: null | string;
991
1183
  lineTotalInc: string;
992
1184
  name: string;
993
1185
  options: {
@@ -995,9 +1187,12 @@ export interface components {
995
1187
  };
996
1188
  product: components["schemas"]["OrderLineProductDto"];
997
1189
  productId: string;
1190
+ promotions: components["schemas"]["LinePromotionDto"][];
998
1191
  /** Format: int32 */
999
1192
  quantity: number | string;
1193
+ segmentId: null | string;
1000
1194
  sku: string;
1195
+ unitPriceBeforePromotionsInc: null | string;
1001
1196
  unitPriceInc: string;
1002
1197
  variant: components["schemas"]["OrderLineVariantDto"];
1003
1198
  variantId: string;
@@ -1191,6 +1386,19 @@ export interface components {
1191
1386
  locale: string;
1192
1387
  market: string;
1193
1388
  };
1389
+ CreateMyWatchRequest: {
1390
+ kind: null | string;
1391
+ language: null | string;
1392
+ source: null | string;
1393
+ target: null | components["schemas"]["WatchTargetRequest"];
1394
+ };
1395
+ CreateWatchRequest: {
1396
+ email: null | string;
1397
+ kind: null | string;
1398
+ language: null | string;
1399
+ source: null | string;
1400
+ target: null | components["schemas"]["WatchTargetRequest"];
1401
+ };
1194
1402
  DeliveryRangeDto: {
1195
1403
  /** Format: int32 */
1196
1404
  max: number;
@@ -1288,6 +1496,9 @@ export interface components {
1288
1496
  };
1289
1497
  /** @enum {unknown} */
1290
1498
  LineAvailability: "backorder" | "inStock" | "unavailable";
1499
+ LinePromotionDto: {
1500
+ effectId: string;
1501
+ };
1291
1502
  ListingResponse: {
1292
1503
  appliedFilters: components["schemas"]["AppliedFilterDto"][];
1293
1504
  context: components["schemas"]["ContextDto"];
@@ -1440,6 +1651,7 @@ export interface components {
1440
1651
  };
1441
1652
  OrderDto: {
1442
1653
  billingAddress: components["schemas"]["AddressDto"];
1654
+ codes: components["schemas"]["CartCodeDto"][];
1443
1655
  currency: string;
1444
1656
  deliveryAddress: components["schemas"]["AddressDto"];
1445
1657
  email: string;
@@ -1450,6 +1662,7 @@ export interface components {
1450
1662
  /** Format: date-time */
1451
1663
  placedAt: string;
1452
1664
  promisedDelivery: null | components["schemas"]["DeliveryRangeDto"];
1665
+ promotions: components["schemas"]["CartPromotionDto"][];
1453
1666
  reference: string;
1454
1667
  shipping: null | components["schemas"]["OrderShippingDto"];
1455
1668
  status: components["schemas"]["OrderStatusDto"];
@@ -1459,6 +1672,8 @@ export interface components {
1459
1672
  };
1460
1673
  OrderLineDto: {
1461
1674
  id: string;
1675
+ lineKey: null | string;
1676
+ lineTotalBeforePromotionsInc: null | string;
1462
1677
  lineTotalInc: string;
1463
1678
  name: string;
1464
1679
  options: {
@@ -1466,10 +1681,13 @@ export interface components {
1466
1681
  };
1467
1682
  product: null | components["schemas"]["OrderLineProductDto"];
1468
1683
  productId: null | string;
1684
+ promotions: components["schemas"]["LinePromotionDto"][];
1469
1685
  /** Format: int32 */
1470
1686
  quantity: number | string;
1687
+ segmentId: null | string;
1471
1688
  sku: string;
1472
1689
  type: string;
1690
+ unitPriceBeforePromotionsInc: null | string;
1473
1691
  unitPriceInc: string;
1474
1692
  variant: null | components["schemas"]["OrderLineVariantDto"];
1475
1693
  variantId: null | string;
@@ -1483,6 +1701,7 @@ export interface components {
1483
1701
  };
1484
1702
  OrderLineVariantDto: {
1485
1703
  brand: null | components["schemas"]["BrandDto"];
1704
+ name: null | string;
1486
1705
  url: null | string;
1487
1706
  };
1488
1707
  OrderShippingDto: {
@@ -1508,6 +1727,9 @@ export interface components {
1508
1727
  OrderTotalsDto: {
1509
1728
  customerPayable: null | string;
1510
1729
  gross: string;
1730
+ promotions: null | string;
1731
+ subtotal: null | string;
1732
+ subtotalBeforePromotions: null | string;
1511
1733
  vat: components["schemas"]["VatAmountDto"][];
1512
1734
  };
1513
1735
  PartyDto: {
@@ -1621,6 +1843,17 @@ export interface components {
1621
1843
  variants: components["schemas"]["VariantDto"][] | null;
1622
1844
  };
1623
1845
  /** @enum {unknown} */
1846
+ PromotionCodeReasonDto: "expired" | "notForAccount" | "notInMarket" | "notStarted" | "unavailable";
1847
+ /** @enum {unknown} */
1848
+ PromotionCodeStatusDto: "applied" | "notApplicable";
1849
+ PromotionRefDto: {
1850
+ /** Format: int32 */
1851
+ id: number | string;
1852
+ label: string;
1853
+ };
1854
+ /** @enum {unknown} */
1855
+ PromotionScopeDto: "merchandise" | "shipping";
1856
+ /** @enum {unknown} */
1624
1857
  PurchaseStatusDto: "available" | "unavailable";
1625
1858
  /** @enum {unknown} */
1626
1859
  QuoteStatusDto: "complete" | "partial" | "unavailable";
@@ -1737,6 +1970,7 @@ export interface components {
1737
1970
  occurredAt: null | string;
1738
1971
  /** Format: int32 */
1739
1972
  page?: number | null;
1973
+ placement?: null | string;
1740
1974
  /** Format: int32 */
1741
1975
  position?: number | null;
1742
1976
  productId?: null | string;
@@ -1747,6 +1981,7 @@ export interface components {
1747
1981
  resultId?: null | string;
1748
1982
  /** @description Deprecated. Optional, at most 64 characters, opaque. Accepted within its bounds and discarded, never stored (shopper-state spec S31); send nothing. */
1749
1983
  sessionId?: null | string;
1984
+ strategy?: null | string;
1750
1985
  type: null | string;
1751
1986
  variantId?: null | string;
1752
1987
  };
@@ -1858,6 +2093,7 @@ export interface components {
1858
2093
  favorites: components["schemas"]["FavoritesDto"];
1859
2094
  nextCursor: null | string;
1860
2095
  shopper: null | components["schemas"]["ShopperInfoDto"];
2096
+ watches: components["schemas"]["WatchDto"][];
1861
2097
  };
1862
2098
  ShopperStockWatchesDto: {
1863
2099
  enabled: boolean;
@@ -1993,6 +2229,8 @@ export interface components {
1993
2229
  code: string;
1994
2230
  /** @description What went wrong, in prose. */
1995
2231
  detail?: string;
2232
+ /** @description On PROMOTION_CODE_NOT_APPLICABLE: why the code does not apply (notStarted, expired, notInMarket, notForAccount, unavailable). */
2233
+ reason?: string;
1996
2234
  /**
1997
2235
  * Format: int32
1998
2236
  * @description On RATE_LIMITED: how long to wait before retrying. Mirrors the Retry-After header.
@@ -2066,6 +2304,7 @@ export interface components {
2066
2304
  id: string;
2067
2305
  image: null | components["schemas"]["MediaDescriptorDto"];
2068
2306
  images: components["schemas"]["MediaDescriptorDto"][];
2307
+ name: null | string;
2069
2308
  offer: components["schemas"]["OfferDto"];
2070
2309
  responsible: components["schemas"]["ResponsibleDto"];
2071
2310
  selectedOptions: {
@@ -2111,6 +2350,79 @@ export interface components {
2111
2350
  message: string;
2112
2351
  redirectTo: null | string;
2113
2352
  };
2353
+ WatchAnswerDto: {
2354
+ shopper: null | components["schemas"]["ShopperMintDto"];
2355
+ watch: components["schemas"]["WatchDto"];
2356
+ };
2357
+ WatchDto: components["schemas"]["WatchDtoOwnerWatchDto"] | components["schemas"]["WatchDtoRecipientWatchDto"];
2358
+ WatchDtoOwnerWatchDto: {
2359
+ country: string;
2360
+ /** Format: date-time */
2361
+ createdAt: string;
2362
+ email: string;
2363
+ /** Format: date-time */
2364
+ endedAt: null | string;
2365
+ /** Format: date-time */
2366
+ expiresAt: string;
2367
+ /** Format: uuid */
2368
+ id: string;
2369
+ kind: string;
2370
+ market: string;
2371
+ product: null | components["schemas"]["ProductCardDto"];
2372
+ /**
2373
+ * @description discriminator enum property added by openapi-typescript
2374
+ * @enum {string}
2375
+ */
2376
+ projection: "owner";
2377
+ /** @enum {string} */
2378
+ status: "ended" | "open";
2379
+ target: components["schemas"]["WatchTargetDto"];
2380
+ variant: null | components["schemas"]["VariantDto"];
2381
+ };
2382
+ WatchDtoRecipientWatchDto: {
2383
+ cancelScope: null | string;
2384
+ country: string;
2385
+ /** Format: date-time */
2386
+ createdAt: string;
2387
+ email: string;
2388
+ /** Format: date-time */
2389
+ endedAt: null | string;
2390
+ /** Format: date-time */
2391
+ expiresAt: string;
2392
+ /** Format: uuid */
2393
+ id: string;
2394
+ kind: string;
2395
+ market: string;
2396
+ /** Format: date-time */
2397
+ notifiedAt: null | string;
2398
+ product: null | components["schemas"]["ProductCardDto"];
2399
+ /**
2400
+ * @description discriminator enum property added by openapi-typescript
2401
+ * @enum {string}
2402
+ */
2403
+ projection: "recipient";
2404
+ /** @enum {string} */
2405
+ status: "cancelled" | "expired" | "fired" | "open";
2406
+ target: components["schemas"]["WatchTargetDto"];
2407
+ variant: null | components["schemas"]["VariantDto"];
2408
+ };
2409
+ WatchListDto: {
2410
+ items: components["schemas"]["WatchDto"][];
2411
+ };
2412
+ WatchTargetDto: {
2413
+ kind: string;
2414
+ /** Format: int32 */
2415
+ productId: number | string;
2416
+ /** Format: int32 */
2417
+ variantId: number | null | string;
2418
+ };
2419
+ WatchTargetRequest: {
2420
+ kind: null | string;
2421
+ /** Format: int32 */
2422
+ productId: number | string;
2423
+ /** Format: int32 */
2424
+ variantId: number | null | string;
2425
+ };
2114
2426
  };
2115
2427
  responses: never;
2116
2428
  parameters: never;
@@ -2754,7 +3066,7 @@ export interface operations {
2754
3066
  };
2755
3067
  };
2756
3068
  };
2757
- SetCartContext: {
3069
+ ApplyCartCode: {
2758
3070
  parameters: {
2759
3071
  query?: never;
2760
3072
  header: {
@@ -2768,6 +3080,8 @@ export interface operations {
2768
3080
  "X-Locale"?: string;
2769
3081
  /** @description The bearer token returned by POST /v1/cart. Identifies which cart this request reads or mutates. */
2770
3082
  "X-Cart-Token": string;
3083
+ /** @description An opaque client-chosen key, one per request (the SDK sends a fresh one). A request whose key this cart already holds a receipt for is answered as a read of the cart and never applied again, also after a later change of the code. */
3084
+ "Idempotency-Key"?: string;
2771
3085
  /** @description The cart's current version, as returned in the ETag header. When present and stale, the mutation is rejected with 409 CART_CONFLICT instead of being applied last-write-wins. */
2772
3086
  "If-Match"?: string;
2773
3087
  /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: it opens the principal's saved carts and orders, and is never needed for a guest cart or order. On a site without accounts it is not read. Not in the CORS allow-list. */
@@ -2778,7 +3092,7 @@ export interface operations {
2778
3092
  };
2779
3093
  requestBody: {
2780
3094
  content: {
2781
- "application/json": components["schemas"]["SetCartContextRequest"];
3095
+ "application/json": components["schemas"]["ApplyCartCodeRequest"];
2782
3096
  };
2783
3097
  };
2784
3098
  responses: {
@@ -2791,7 +3105,7 @@ export interface operations {
2791
3105
  "application/json": components["schemas"]["CartDto"];
2792
3106
  };
2793
3107
  };
2794
- /** @description problem+json. NOT_FOUND (X-Cart-Token missing), MARKET_NOT_FOUND, COUNTRY_NOT_ALLOWED (also when a market change leaves out a country it does not hold: a left-out member is the cart's stored one), or LOCALE_NOT_ALLOWED. */
3108
+ /** @description problem+json. NOT_FOUND (X-Cart-Token missing), or a refusal of the cart's stored context (the site no longer sells it): MARKET_NOT_FOUND, COUNTRY_NOT_ALLOWED or LOCALE_NOT_ALLOWED. */
2795
3109
  400: {
2796
3110
  headers: {
2797
3111
  [name: string]: unknown;
@@ -2818,7 +3132,7 @@ export interface operations {
2818
3132
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2819
3133
  };
2820
3134
  };
2821
- /** @description problem+json. NOT_FOUND: no such cart. The same answer for a saved cart of another principal or account (with or without a session) and for a cart whose owner was erased. Or SITE_INACTIVE. */
3135
+ /** @description problem+json. NOT_FOUND: no such cart. The same answer for a saved cart of another principal or account (with or without a session) and for a cart whose owner was erased. Or SITE_INACTIVE. Or PROMOTION_CODE_UNKNOWN: no promotion of this site has the code (another site's code answers exactly the same). The cart is unchanged and the problem carries it. Counts toward the failed-code budget. */
2822
3136
  404: {
2823
3137
  headers: {
2824
3138
  [name: string]: unknown;
@@ -2827,7 +3141,7 @@ export interface operations {
2827
3141
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2828
3142
  };
2829
3143
  };
2830
- /** @description problem+json. CART_CONFLICT (stale If-Match). */
3144
+ /** @description problem+json. CART_CONFLICT (stale If-Match), or PROMOTION_CODE_NOT_APPLICABLE: a known code that does not apply now; the top-level reason says why (notStarted, expired, notInMarket, notForAccount or unavailable). The cart is unchanged and the problem carries it. */
2831
3145
  409: {
2832
3146
  headers: {
2833
3147
  [name: string]: unknown;
@@ -2845,7 +3159,16 @@ export interface operations {
2845
3159
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2846
3160
  };
2847
3161
  };
2848
- /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
3162
+ /** @description problem+json. PROMOTION_CODE_INVALID: the code, trimmed and upper-cased, is not 3–32 of A–Z, 0–9, '-' and '_'. Nothing is looked up and the cart is not read. Counts toward the failed-code budget. */
3163
+ 422: {
3164
+ headers: {
3165
+ [name: string]: unknown;
3166
+ };
3167
+ content: {
3168
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3169
+ };
3170
+ };
3171
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. Also when this cart, behind this key, met 10 unknown or invalid codes within 15 minutes (counted per API process; the window is approximate): only that cart waits. */
2849
3172
  429: {
2850
3173
  headers: {
2851
3174
  [name: string]: unknown;
@@ -2854,7 +3177,7 @@ export interface operations {
2854
3177
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2855
3178
  };
2856
3179
  };
2857
- /** @description problem+json. PRICE_CONTEXT_NOT_READY (the requested price context is not projected yet; Retry-After), or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); nothing is written. SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE. */
3180
+ /** @description problem+json. PRICE_CONTEXT_NOT_READY (the cart's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); nothing is written. SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE. */
2858
3181
  503: {
2859
3182
  headers: {
2860
3183
  [name: string]: unknown;
@@ -2865,7 +3188,7 @@ export interface operations {
2865
3188
  };
2866
3189
  };
2867
3190
  };
2868
- AddCartLine: {
3191
+ RemoveCartCode: {
2869
3192
  parameters: {
2870
3193
  query?: never;
2871
3194
  header: {
@@ -2879,21 +3202,19 @@ export interface operations {
2879
3202
  "X-Locale"?: string;
2880
3203
  /** @description The bearer token returned by POST /v1/cart. Identifies which cart this request reads or mutates. */
2881
3204
  "X-Cart-Token": string;
2882
- /** @description An opaque client-chosen key. Replaying the exact same add with the same key is a no-op (the line's quantity is not added twice); a different key, or none, tops the existing line up like any other add. */
3205
+ /** @description An opaque client-chosen key, one per request (the SDK sends a fresh one). A request whose key this cart already holds a receipt for is answered as a read of the cart and never applied again, also after a later change of the code. */
2883
3206
  "Idempotency-Key"?: string;
2884
3207
  /** @description The cart's current version, as returned in the ETag header. When present and stale, the mutation is rejected with 409 CART_CONFLICT instead of being applied last-write-wins. */
2885
3208
  "If-Match"?: string;
2886
3209
  /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: it opens the principal's saved carts and orders, and is never needed for a guest cart or order. On a site without accounts it is not read. Not in the CORS allow-list. */
2887
3210
  "X-Shopper-Session"?: string;
2888
3211
  };
2889
- path?: never;
2890
- cookie?: never;
2891
- };
2892
- requestBody: {
2893
- content: {
2894
- "application/json": components["schemas"]["AddCartLineRequest"];
3212
+ path: {
3213
+ code: string;
2895
3214
  };
3215
+ cookie?: never;
2896
3216
  };
3217
+ requestBody?: never;
2897
3218
  responses: {
2898
3219
  /** @description OK */
2899
3220
  200: {
@@ -2904,7 +3225,7 @@ export interface operations {
2904
3225
  "application/json": components["schemas"]["CartDto"];
2905
3226
  };
2906
3227
  };
2907
- /** @description problem+json. NOT_FOUND (X-Cart-Token missing), INVALID_QUANTITY, CART_FULL, or a refusal of the cart's stored context (the site no longer sells it): MARKET_NOT_FOUND, COUNTRY_NOT_ALLOWED or LOCALE_NOT_ALLOWED. */
3228
+ /** @description problem+json. NOT_FOUND (X-Cart-Token missing). */
2908
3229
  400: {
2909
3230
  headers: {
2910
3231
  [name: string]: unknown;
@@ -2922,7 +3243,7 @@ export interface operations {
2922
3243
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2923
3244
  };
2924
3245
  };
2925
- /** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). PERMISSION_DENIED (extension permission: cart.edit): the principal may not change its saved cart. Or PERMISSION_DENIED with permission login: prices are not shown to this shopper (sign in); with permission cart.edit also when the principal may not buy now (its company data is being re-validated). */
3246
+ /** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). PERMISSION_DENIED (extension permission: cart.edit): the principal may not change its saved cart. */
2926
3247
  403: {
2927
3248
  headers: {
2928
3249
  [name: string]: unknown;
@@ -2931,7 +3252,7 @@ export interface operations {
2931
3252
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2932
3253
  };
2933
3254
  };
2934
- /** @description problem+json. NOT_FOUND: no such cart. The same answer for a saved cart of another principal or account (with or without a session) and for a cart whose owner was erased. Or SITE_INACTIVE. Or PRODUCT_NOT_FOUND: the cart's context does not see the sku (not in its assortment or price list). */
3255
+ /** @description problem+json. NOT_FOUND: no such cart. The same answer for a saved cart of another principal or account (with or without a session) and for a cart whose owner was erased. Or SITE_INACTIVE. Or NOT_FOUND with the cart in the problem: the code is not on the cart. */
2935
3256
  404: {
2936
3257
  headers: {
2937
3258
  [name: string]: unknown;
@@ -2940,7 +3261,7 @@ export interface operations {
2940
3261
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2941
3262
  };
2942
3263
  };
2943
- /** @description problem+json. CART_CONFLICT (stale If-Match), or STOCK_INSUFFICIENT. */
3264
+ /** @description problem+json. CART_CONFLICT (stale If-Match). */
2944
3265
  409: {
2945
3266
  headers: {
2946
3267
  [name: string]: unknown;
@@ -2967,7 +3288,7 @@ export interface operations {
2967
3288
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2968
3289
  };
2969
3290
  };
2970
- /** @description problem+json. PRICE_CONTEXT_NOT_READY (the cart's price context is not projected yet; Retry-After), PRICE_CONTEXT_UNAVAILABLE (it cannot be priced), or TAX_UNAVAILABLE (the line's tax cannot be completed for the cart's destination; nothing is added); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE. */
3291
+ /** @description problem+json. SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
2971
3292
  503: {
2972
3293
  headers: {
2973
3294
  [name: string]: unknown;
@@ -2978,7 +3299,7 @@ export interface operations {
2978
3299
  };
2979
3300
  };
2980
3301
  };
2981
- RemoveCartLine: {
3302
+ SetCartContext: {
2982
3303
  parameters: {
2983
3304
  query?: never;
2984
3305
  header: {
@@ -2997,12 +3318,14 @@ export interface operations {
2997
3318
  /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: it opens the principal's saved carts and orders, and is never needed for a guest cart or order. On a site without accounts it is not read. Not in the CORS allow-list. */
2998
3319
  "X-Shopper-Session"?: string;
2999
3320
  };
3000
- path: {
3001
- id: string;
3002
- };
3321
+ path?: never;
3003
3322
  cookie?: never;
3004
3323
  };
3005
- requestBody?: never;
3324
+ requestBody: {
3325
+ content: {
3326
+ "application/json": components["schemas"]["SetCartContextRequest"];
3327
+ };
3328
+ };
3006
3329
  responses: {
3007
3330
  /** @description OK */
3008
3331
  200: {
@@ -3013,7 +3336,7 @@ export interface operations {
3013
3336
  "application/json": components["schemas"]["CartDto"];
3014
3337
  };
3015
3338
  };
3016
- /** @description problem+json. NOT_FOUND (X-Cart-Token missing). */
3339
+ /** @description problem+json. NOT_FOUND (X-Cart-Token missing), MARKET_NOT_FOUND, COUNTRY_NOT_ALLOWED (also when a market change leaves out a country it does not hold: a left-out member is the cart's stored one), or LOCALE_NOT_ALLOWED. */
3017
3340
  400: {
3018
3341
  headers: {
3019
3342
  [name: string]: unknown;
@@ -3076,7 +3399,7 @@ export interface operations {
3076
3399
  "application/problem+json": components["schemas"]["StorefrontProblem"];
3077
3400
  };
3078
3401
  };
3079
- /** @description problem+json. SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
3402
+ /** @description problem+json. PRICE_CONTEXT_NOT_READY (the requested price context is not projected yet; Retry-After), or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); nothing is written. SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE. */
3080
3403
  503: {
3081
3404
  headers: {
3082
3405
  [name: string]: unknown;
@@ -3087,7 +3410,7 @@ export interface operations {
3087
3410
  };
3088
3411
  };
3089
3412
  };
3090
- UpdateCartLine: {
3413
+ AddCartLine: {
3091
3414
  parameters: {
3092
3415
  query?: never;
3093
3416
  header: {
@@ -3101,19 +3424,19 @@ export interface operations {
3101
3424
  "X-Locale"?: string;
3102
3425
  /** @description The bearer token returned by POST /v1/cart. Identifies which cart this request reads or mutates. */
3103
3426
  "X-Cart-Token": string;
3427
+ /** @description An opaque client-chosen key. Replaying the exact same add with the same key is a no-op (the line's quantity is not added twice); a different key, or none, tops the existing line up like any other add. */
3428
+ "Idempotency-Key"?: string;
3104
3429
  /** @description The cart's current version, as returned in the ETag header. When present and stale, the mutation is rejected with 409 CART_CONFLICT instead of being applied last-write-wins. */
3105
3430
  "If-Match"?: string;
3106
3431
  /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: it opens the principal's saved carts and orders, and is never needed for a guest cart or order. On a site without accounts it is not read. Not in the CORS allow-list. */
3107
3432
  "X-Shopper-Session"?: string;
3108
3433
  };
3109
- path: {
3110
- id: string;
3111
- };
3434
+ path?: never;
3112
3435
  cookie?: never;
3113
3436
  };
3114
3437
  requestBody: {
3115
3438
  content: {
3116
- "application/json": components["schemas"]["UpdateCartLineRequest"];
3439
+ "application/json": components["schemas"]["AddCartLineRequest"];
3117
3440
  };
3118
3441
  };
3119
3442
  responses: {
@@ -3126,7 +3449,7 @@ export interface operations {
3126
3449
  "application/json": components["schemas"]["CartDto"];
3127
3450
  };
3128
3451
  };
3129
- /** @description problem+json. NOT_FOUND (X-Cart-Token missing), INVALID_QUANTITY, or a refusal of the cart's stored context (the site no longer sells it): MARKET_NOT_FOUND, COUNTRY_NOT_ALLOWED or LOCALE_NOT_ALLOWED. */
3452
+ /** @description problem+json. NOT_FOUND (X-Cart-Token missing), INVALID_QUANTITY, CART_FULL, or a refusal of the cart's stored context (the site no longer sells it): MARKET_NOT_FOUND, COUNTRY_NOT_ALLOWED or LOCALE_NOT_ALLOWED. */
3130
3453
  400: {
3131
3454
  headers: {
3132
3455
  [name: string]: unknown;
@@ -3200,7 +3523,229 @@ export interface operations {
3200
3523
  };
3201
3524
  };
3202
3525
  };
3203
- GetShippingEstimate: {
3526
+ RemoveCartLine: {
3527
+ parameters: {
3528
+ query?: never;
3529
+ header: {
3530
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
3531
+ "X-Site-Key": string;
3532
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
3533
+ "X-Market"?: string;
3534
+ /** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
3535
+ "X-Country"?: string;
3536
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
3537
+ "X-Locale"?: string;
3538
+ /** @description The bearer token returned by POST /v1/cart. Identifies which cart this request reads or mutates. */
3539
+ "X-Cart-Token": string;
3540
+ /** @description The cart's current version, as returned in the ETag header. When present and stale, the mutation is rejected with 409 CART_CONFLICT instead of being applied last-write-wins. */
3541
+ "If-Match"?: string;
3542
+ /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: it opens the principal's saved carts and orders, and is never needed for a guest cart or order. On a site without accounts it is not read. Not in the CORS allow-list. */
3543
+ "X-Shopper-Session"?: string;
3544
+ };
3545
+ path: {
3546
+ id: string;
3547
+ };
3548
+ cookie?: never;
3549
+ };
3550
+ requestBody?: never;
3551
+ responses: {
3552
+ /** @description OK */
3553
+ 200: {
3554
+ headers: {
3555
+ [name: string]: unknown;
3556
+ };
3557
+ content: {
3558
+ "application/json": components["schemas"]["CartDto"];
3559
+ };
3560
+ };
3561
+ /** @description problem+json. NOT_FOUND (X-Cart-Token missing). */
3562
+ 400: {
3563
+ headers: {
3564
+ [name: string]: unknown;
3565
+ };
3566
+ content: {
3567
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3568
+ };
3569
+ };
3570
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
3571
+ 401: {
3572
+ headers: {
3573
+ [name: string]: unknown;
3574
+ };
3575
+ content: {
3576
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3577
+ };
3578
+ };
3579
+ /** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). PERMISSION_DENIED (extension permission: cart.edit): the principal may not change its saved cart. */
3580
+ 403: {
3581
+ headers: {
3582
+ [name: string]: unknown;
3583
+ };
3584
+ content: {
3585
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3586
+ };
3587
+ };
3588
+ /** @description problem+json. NOT_FOUND: no such cart. The same answer for a saved cart of another principal or account (with or without a session) and for a cart whose owner was erased. Or SITE_INACTIVE. */
3589
+ 404: {
3590
+ headers: {
3591
+ [name: string]: unknown;
3592
+ };
3593
+ content: {
3594
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3595
+ };
3596
+ };
3597
+ /** @description problem+json. CART_CONFLICT (stale If-Match). */
3598
+ 409: {
3599
+ headers: {
3600
+ [name: string]: unknown;
3601
+ };
3602
+ content: {
3603
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3604
+ };
3605
+ };
3606
+ /** @description problem+json. CART_EXPIRED: this cart token belongs to an expired cart. */
3607
+ 410: {
3608
+ headers: {
3609
+ [name: string]: unknown;
3610
+ };
3611
+ content: {
3612
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3613
+ };
3614
+ };
3615
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
3616
+ 429: {
3617
+ headers: {
3618
+ [name: string]: unknown;
3619
+ };
3620
+ content: {
3621
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3622
+ };
3623
+ };
3624
+ /** @description problem+json. SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
3625
+ 503: {
3626
+ headers: {
3627
+ [name: string]: unknown;
3628
+ };
3629
+ content: {
3630
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3631
+ };
3632
+ };
3633
+ };
3634
+ };
3635
+ UpdateCartLine: {
3636
+ parameters: {
3637
+ query?: never;
3638
+ header: {
3639
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
3640
+ "X-Site-Key": string;
3641
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
3642
+ "X-Market"?: string;
3643
+ /** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
3644
+ "X-Country"?: string;
3645
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
3646
+ "X-Locale"?: string;
3647
+ /** @description The bearer token returned by POST /v1/cart. Identifies which cart this request reads or mutates. */
3648
+ "X-Cart-Token": string;
3649
+ /** @description The cart's current version, as returned in the ETag header. When present and stale, the mutation is rejected with 409 CART_CONFLICT instead of being applied last-write-wins. */
3650
+ "If-Match"?: string;
3651
+ /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: it opens the principal's saved carts and orders, and is never needed for a guest cart or order. On a site without accounts it is not read. Not in the CORS allow-list. */
3652
+ "X-Shopper-Session"?: string;
3653
+ };
3654
+ path: {
3655
+ id: string;
3656
+ };
3657
+ cookie?: never;
3658
+ };
3659
+ requestBody: {
3660
+ content: {
3661
+ "application/json": components["schemas"]["UpdateCartLineRequest"];
3662
+ };
3663
+ };
3664
+ responses: {
3665
+ /** @description OK */
3666
+ 200: {
3667
+ headers: {
3668
+ [name: string]: unknown;
3669
+ };
3670
+ content: {
3671
+ "application/json": components["schemas"]["CartDto"];
3672
+ };
3673
+ };
3674
+ /** @description problem+json. NOT_FOUND (X-Cart-Token missing), INVALID_QUANTITY, or a refusal of the cart's stored context (the site no longer sells it): MARKET_NOT_FOUND, COUNTRY_NOT_ALLOWED or LOCALE_NOT_ALLOWED. */
3675
+ 400: {
3676
+ headers: {
3677
+ [name: string]: unknown;
3678
+ };
3679
+ content: {
3680
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3681
+ };
3682
+ };
3683
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
3684
+ 401: {
3685
+ headers: {
3686
+ [name: string]: unknown;
3687
+ };
3688
+ content: {
3689
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3690
+ };
3691
+ };
3692
+ /** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). PERMISSION_DENIED (extension permission: cart.edit): the principal may not change its saved cart. Or PERMISSION_DENIED with permission login: prices are not shown to this shopper (sign in); with permission cart.edit also when the principal may not buy now (its company data is being re-validated). */
3693
+ 403: {
3694
+ headers: {
3695
+ [name: string]: unknown;
3696
+ };
3697
+ content: {
3698
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3699
+ };
3700
+ };
3701
+ /** @description problem+json. NOT_FOUND: no such cart. The same answer for a saved cart of another principal or account (with or without a session) and for a cart whose owner was erased. Or SITE_INACTIVE. Or PRODUCT_NOT_FOUND: the cart's context does not see the sku (not in its assortment or price list). */
3702
+ 404: {
3703
+ headers: {
3704
+ [name: string]: unknown;
3705
+ };
3706
+ content: {
3707
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3708
+ };
3709
+ };
3710
+ /** @description problem+json. CART_CONFLICT (stale If-Match), or STOCK_INSUFFICIENT. */
3711
+ 409: {
3712
+ headers: {
3713
+ [name: string]: unknown;
3714
+ };
3715
+ content: {
3716
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3717
+ };
3718
+ };
3719
+ /** @description problem+json. CART_EXPIRED: this cart token belongs to an expired cart. */
3720
+ 410: {
3721
+ headers: {
3722
+ [name: string]: unknown;
3723
+ };
3724
+ content: {
3725
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3726
+ };
3727
+ };
3728
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
3729
+ 429: {
3730
+ headers: {
3731
+ [name: string]: unknown;
3732
+ };
3733
+ content: {
3734
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3735
+ };
3736
+ };
3737
+ /** @description problem+json. PRICE_CONTEXT_NOT_READY (the cart's price context is not projected yet; Retry-After), PRICE_CONTEXT_UNAVAILABLE (it cannot be priced), or TAX_UNAVAILABLE (the line's tax cannot be completed for the cart's destination; nothing is added); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE. */
3738
+ 503: {
3739
+ headers: {
3740
+ [name: string]: unknown;
3741
+ };
3742
+ content: {
3743
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3744
+ };
3745
+ };
3746
+ };
3747
+ };
3748
+ GetShippingEstimate: {
3204
3749
  parameters: {
3205
3750
  query?: never;
3206
3751
  header: {
@@ -5110,11 +5655,11 @@ export interface operations {
5110
5655
  };
5111
5656
  };
5112
5657
  };
5113
- GetOrder: {
5658
+ ListMyWatches: {
5114
5659
  parameters: {
5115
5660
  query?: never;
5116
5661
  header: {
5117
- /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
5662
+ /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
5118
5663
  "X-Site-Key": string;
5119
5664
  /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5120
5665
  "X-Market"?: string;
@@ -5122,16 +5667,10 @@ export interface operations {
5122
5667
  "X-Country"?: string;
5123
5668
  /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5124
5669
  "X-Locale"?: string;
5125
- /** @description Optional. When it names the attempt's cart, the answer carries the order's access token (complete) or opens the order (orders). */
5126
- "X-Cart-Token"?: string;
5127
- /** @description The order's access token, from the completion answer. A header only — never a query parameter. */
5128
- "X-Order-Token"?: string;
5129
- /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: it opens the principal's saved carts and orders, and is never needed for a guest cart or order. On a site without accounts it is not read. Not in the CORS allow-list. */
5130
- "X-Shopper-Session"?: string;
5131
- };
5132
- path: {
5133
- orderId: string;
5670
+ /** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
5671
+ "X-Shopper-Ip"?: string;
5134
5672
  };
5673
+ path?: never;
5135
5674
  cookie?: never;
5136
5675
  };
5137
5676
  requestBody?: never;
@@ -5142,10 +5681,10 @@ export interface operations {
5142
5681
  [name: string]: unknown;
5143
5682
  };
5144
5683
  content: {
5145
- "application/json": components["schemas"]["OrderDto"];
5684
+ "application/json": components["schemas"]["WatchListDto"];
5146
5685
  };
5147
5686
  };
5148
- /** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
5687
+ /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
5149
5688
  400: {
5150
5689
  headers: {
5151
5690
  [name: string]: unknown;
@@ -5154,7 +5693,7 @@ export interface operations {
5154
5693
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5155
5694
  };
5156
5695
  };
5157
- /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
5696
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked; a session is never silently dropped). Render signed-out and clear the session cookie. */
5158
5697
  401: {
5159
5698
  headers: {
5160
5699
  [name: string]: unknown;
@@ -5163,7 +5702,7 @@ export interface operations {
5163
5702
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5164
5703
  };
5165
5704
  };
5166
- /** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
5705
+ /** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
5167
5706
  403: {
5168
5707
  headers: {
5169
5708
  [name: string]: unknown;
@@ -5172,7 +5711,7 @@ export interface operations {
5172
5711
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5173
5712
  };
5174
5713
  };
5175
- /** @description problem+json. ORDER_NOT_FOUND: no such order, or the credential does not open it — the same answer for both. A company order opens only to a session of its own membership with orders.read.own; its order and cart tokens never open it, and no token opens an order whose cart owner was erased (the secret key's read excepted). */
5714
+ /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
5176
5715
  404: {
5177
5716
  headers: {
5178
5717
  [name: string]: unknown;
@@ -5190,7 +5729,7 @@ export interface operations {
5190
5729
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5191
5730
  };
5192
5731
  };
5193
- /** @description problem+json. SITE_KEYS_SYNCING (a secret key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
5732
+ /** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
5194
5733
  503: {
5195
5734
  headers: {
5196
5735
  [name: string]: unknown;
@@ -5201,25 +5740,660 @@ export interface operations {
5201
5740
  };
5202
5741
  };
5203
5742
  };
5204
- ListProducts: {
5743
+ CreateMyWatch: {
5205
5744
  parameters: {
5206
- query?: {
5207
- /** @description Free-text search. Omit to browse rather than search; a q of separators only (such as !!!) browses too. A search answers with search (how it was answered), and may set queryCorrection and redirect. */
5208
- q?: string;
5209
- /** @description 1-based page. page × pageSize must not exceed 10000 (default pageSize 24, max 100). */
5210
- page?: number;
5211
- /** @description Items per page, 1–100. Out of range is a 400 with code INVALID_PAGE. */
5212
- pageSize?: number;
5213
- /** @description Sort key. An unknown one is not refused: it falls back to relevance with a SORT_UNKNOWN warning, because it usually comes from a stale bookmark. */
5214
- sort?: "name_asc" | "newest" | "popular" | "price_asc" | "price_desc" | "recommended" | "relevance";
5745
+ query?: never;
5746
+ header: {
5747
+ /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
5748
+ "X-Site-Key": string;
5749
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5750
+ "X-Market"?: string;
5751
+ /** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
5752
+ "X-Country"?: string;
5753
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5754
+ "X-Locale"?: string;
5755
+ /** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
5756
+ "X-Shopper-Ip"?: string;
5757
+ };
5758
+ path?: never;
5759
+ cookie?: never;
5760
+ };
5761
+ requestBody: {
5762
+ content: {
5763
+ "application/json": components["schemas"]["CreateMyWatchRequest"];
5764
+ };
5765
+ };
5766
+ responses: {
5767
+ /** @description OK */
5768
+ 200: {
5769
+ headers: {
5770
+ [name: string]: unknown;
5771
+ };
5772
+ content: {
5773
+ "application/json": components["schemas"]["WatchAnswerDto"];
5774
+ };
5775
+ };
5776
+ /** @description Created */
5777
+ 201: {
5778
+ headers: {
5779
+ [name: string]: unknown;
5780
+ };
5781
+ content: {
5782
+ "application/json": components["schemas"]["WatchAnswerDto"];
5783
+ };
5784
+ };
5785
+ /** @description problem+json. WATCH_KIND_UNSUPPORTED (kind is not "stock") or WATCH_TARGET_UNSUPPORTED (target.kind is not "variant", or no variantId) (the body names no address: the watch goes to the account's own e-mail); or MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
5786
+ 400: {
5787
+ headers: {
5788
+ [name: string]: unknown;
5789
+ };
5790
+ content: {
5791
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5792
+ };
5793
+ };
5794
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked — also when the session stops being valid while the write is checked under the account's lock, the authority recheck; nothing is written). Render signed-out and clear the session cookie. */
5795
+ 401: {
5796
+ headers: {
5797
+ [name: string]: unknown;
5798
+ };
5799
+ content: {
5800
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5801
+ };
5802
+ };
5803
+ /** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). Or WATCH_PRINCIPAL_UNSUPPORTED: only a consumer principal watches (not a company membership). */
5804
+ 403: {
5805
+ headers: {
5806
+ [name: string]: unknown;
5807
+ };
5808
+ content: {
5809
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5810
+ };
5811
+ };
5812
+ /** @description problem+json. WATCHES_DISABLED (stock watches are switched off, the site's offers need a signed-in company, or watches are unavailable right now) or PRODUCT_NOT_FOUND (no such variant of this product in this site's catalog); ACCOUNTS_DISABLED (the site has no shopper accounts) or SITE_INACTIVE. */
5813
+ 404: {
5814
+ headers: {
5815
+ [name: string]: unknown;
5816
+ };
5817
+ content: {
5818
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5819
+ };
5820
+ };
5821
+ /** @description problem+json. WATCH_NOT_NEEDED: the variant can be bought now (the extension status says inStock or backorder) — offer add to cart instead; or WATCHES_FULL: the caller holds its cap of open watches. A repeat of the caller's own open watch answers 200, not this. */
5822
+ 409: {
5823
+ headers: {
5824
+ [name: string]: unknown;
5825
+ };
5826
+ content: {
5827
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5828
+ };
5829
+ };
5830
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
5831
+ 429: {
5832
+ headers: {
5833
+ [name: string]: unknown;
5834
+ };
5835
+ content: {
5836
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5837
+ };
5838
+ };
5839
+ /** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
5840
+ 503: {
5841
+ headers: {
5842
+ [name: string]: unknown;
5843
+ };
5844
+ content: {
5845
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5846
+ };
5847
+ };
5848
+ };
5849
+ };
5850
+ StopAllMyWatches: {
5851
+ parameters: {
5852
+ query?: never;
5853
+ header: {
5854
+ /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
5855
+ "X-Site-Key": string;
5856
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5857
+ "X-Market"?: string;
5858
+ /** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
5859
+ "X-Country"?: string;
5860
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5861
+ "X-Locale"?: string;
5862
+ /** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
5863
+ "X-Shopper-Ip"?: string;
5864
+ };
5865
+ path?: never;
5866
+ cookie?: never;
5867
+ };
5868
+ requestBody?: never;
5869
+ responses: {
5870
+ /** @description No Content */
5871
+ 204: {
5872
+ headers: {
5873
+ [name: string]: unknown;
5874
+ };
5875
+ content?: never;
5876
+ };
5877
+ /** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
5878
+ 400: {
5879
+ headers: {
5880
+ [name: string]: unknown;
5881
+ };
5882
+ content: {
5883
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5884
+ };
5885
+ };
5886
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked — also when the session stops being valid while the write is checked under the account's lock, the authority recheck; nothing is written). Render signed-out and clear the session cookie. */
5887
+ 401: {
5888
+ headers: {
5889
+ [name: string]: unknown;
5890
+ };
5891
+ content: {
5892
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5893
+ };
5894
+ };
5895
+ /** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
5896
+ 403: {
5897
+ headers: {
5898
+ [name: string]: unknown;
5899
+ };
5900
+ content: {
5901
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5902
+ };
5903
+ };
5904
+ /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
5905
+ 404: {
5906
+ headers: {
5907
+ [name: string]: unknown;
5908
+ };
5909
+ content: {
5910
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5911
+ };
5912
+ };
5913
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
5914
+ 429: {
5915
+ headers: {
5916
+ [name: string]: unknown;
5917
+ };
5918
+ content: {
5919
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5920
+ };
5921
+ };
5922
+ /** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
5923
+ 503: {
5924
+ headers: {
5925
+ [name: string]: unknown;
5926
+ };
5927
+ content: {
5928
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5929
+ };
5930
+ };
5931
+ };
5932
+ };
5933
+ CancelMyWatch: {
5934
+ parameters: {
5935
+ query?: never;
5936
+ header: {
5937
+ /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
5938
+ "X-Site-Key": string;
5939
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5940
+ "X-Market"?: string;
5941
+ /** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
5942
+ "X-Country"?: string;
5943
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5944
+ "X-Locale"?: string;
5945
+ /** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
5946
+ "X-Shopper-Ip"?: string;
5947
+ };
5948
+ path: {
5949
+ id: string;
5950
+ };
5951
+ cookie?: never;
5952
+ };
5953
+ requestBody?: never;
5954
+ responses: {
5955
+ /** @description No Content */
5956
+ 204: {
5957
+ headers: {
5958
+ [name: string]: unknown;
5959
+ };
5960
+ content?: never;
5961
+ };
5962
+ /** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
5963
+ 400: {
5964
+ headers: {
5965
+ [name: string]: unknown;
5966
+ };
5967
+ content: {
5968
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5969
+ };
5970
+ };
5971
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked — also when the session stops being valid while the write is checked under the account's lock, the authority recheck; nothing is written). Render signed-out and clear the session cookie. */
5972
+ 401: {
5973
+ headers: {
5974
+ [name: string]: unknown;
5975
+ };
5976
+ content: {
5977
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5978
+ };
5979
+ };
5980
+ /** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
5981
+ 403: {
5982
+ headers: {
5983
+ [name: string]: unknown;
5984
+ };
5985
+ content: {
5986
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5987
+ };
5988
+ };
5989
+ /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
5990
+ 404: {
5991
+ headers: {
5992
+ [name: string]: unknown;
5993
+ };
5994
+ content: {
5995
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5996
+ };
5997
+ };
5998
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
5999
+ 429: {
6000
+ headers: {
6001
+ [name: string]: unknown;
6002
+ };
6003
+ content: {
6004
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6005
+ };
6006
+ };
6007
+ /** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
6008
+ 503: {
6009
+ headers: {
6010
+ [name: string]: unknown;
6011
+ };
6012
+ content: {
6013
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6014
+ };
6015
+ };
6016
+ };
6017
+ };
6018
+ GetOrder: {
6019
+ parameters: {
6020
+ query?: never;
6021
+ header: {
6022
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6023
+ "X-Site-Key": string;
6024
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
6025
+ "X-Market"?: string;
6026
+ /** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
6027
+ "X-Country"?: string;
6028
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
6029
+ "X-Locale"?: string;
6030
+ /** @description Optional. When it names the attempt's cart, the answer carries the order's access token (complete) or opens the order (orders). */
6031
+ "X-Cart-Token"?: string;
6032
+ /** @description The order's access token, from the completion answer. A header only — never a query parameter. */
6033
+ "X-Order-Token"?: string;
6034
+ /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: it opens the principal's saved carts and orders, and is never needed for a guest cart or order. On a site without accounts it is not read. Not in the CORS allow-list. */
6035
+ "X-Shopper-Session"?: string;
6036
+ };
6037
+ path: {
6038
+ orderId: string;
6039
+ };
6040
+ cookie?: never;
6041
+ };
6042
+ requestBody?: never;
6043
+ responses: {
6044
+ /** @description OK */
6045
+ 200: {
6046
+ headers: {
6047
+ [name: string]: unknown;
6048
+ };
6049
+ content: {
6050
+ "application/json": components["schemas"]["OrderDto"];
6051
+ };
6052
+ };
6053
+ /** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
6054
+ 400: {
6055
+ headers: {
6056
+ [name: string]: unknown;
6057
+ };
6058
+ content: {
6059
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6060
+ };
6061
+ };
6062
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
6063
+ 401: {
6064
+ headers: {
6065
+ [name: string]: unknown;
6066
+ };
6067
+ content: {
6068
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6069
+ };
6070
+ };
6071
+ /** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
6072
+ 403: {
6073
+ headers: {
6074
+ [name: string]: unknown;
6075
+ };
6076
+ content: {
6077
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6078
+ };
6079
+ };
6080
+ /** @description problem+json. ORDER_NOT_FOUND: no such order, or the credential does not open it — the same answer for both. A company order opens only to a session of its own membership with orders.read.own; its order and cart tokens never open it, and no token opens an order whose cart owner was erased (the secret key's read excepted). */
6081
+ 404: {
6082
+ headers: {
6083
+ [name: string]: unknown;
6084
+ };
6085
+ content: {
6086
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6087
+ };
6088
+ };
6089
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
6090
+ 429: {
6091
+ headers: {
6092
+ [name: string]: unknown;
6093
+ };
6094
+ content: {
6095
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6096
+ };
6097
+ };
6098
+ /** @description problem+json. SITE_KEYS_SYNCING (a secret key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
6099
+ 503: {
6100
+ headers: {
6101
+ [name: string]: unknown;
6102
+ };
6103
+ content: {
6104
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6105
+ };
6106
+ };
6107
+ };
6108
+ };
6109
+ ListProducts: {
6110
+ parameters: {
6111
+ query?: {
6112
+ /** @description Free-text search. Omit to browse rather than search; a q of separators only (such as !!!) browses too. A search answers with search (how it was answered), and may set queryCorrection and redirect. */
6113
+ q?: string;
6114
+ /** @description 1-based page. page × pageSize must not exceed 10000 (default pageSize 24, max 100). */
6115
+ page?: number;
6116
+ /** @description Items per page, 1–100. Out of range is a 400 with code INVALID_PAGE. */
6117
+ pageSize?: number;
6118
+ /** @description Sort key. An unknown one is not refused: it falls back to relevance with a SORT_UNKNOWN warning, because it usually comes from a stale bookmark. */
6119
+ sort?: "name_asc" | "newest" | "popular" | "price_asc" | "price_desc" | "recommended" | "relevance";
5215
6120
  /** @description Facet selection, sent as filter[key]=value. Several values for one facet are comma-separated; price is "min-max" and a boolean facet is "true". An unknown key is dropped with a FILTER_IGNORED warning. */
5216
6121
  filter?: {
5217
6122
  [key: string]: string;
5218
6123
  };
5219
- /** @description Where a search came from, for measurement only: typed, suggestion, recent or other. It never changes the answer. Anything else is ignored with an ORIGIN_UNKNOWN warning. */
5220
- origin?: "other" | "recent" | "suggestion" | "typed";
5221
- /** @description Narrow to a collection by slug path or id. An unknown one is answered with a COLLECTION_UNKNOWN warning, not a 404. */
5222
- collection?: string;
6124
+ /** @description Where a search came from, for measurement only: typed, suggestion, recent or other. It never changes the answer. Anything else is ignored with an ORIGIN_UNKNOWN warning. */
6125
+ origin?: "other" | "recent" | "suggestion" | "typed";
6126
+ /** @description Narrow to a collection by slug path or id. An unknown one is answered with a COLLECTION_UNKNOWN warning, not a 404. */
6127
+ collection?: string;
6128
+ };
6129
+ header: {
6130
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6131
+ "X-Site-Key": string;
6132
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
6133
+ "X-Market"?: string;
6134
+ /** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
6135
+ "X-Country"?: string;
6136
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
6137
+ "X-Locale"?: string;
6138
+ /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
6139
+ "X-Shopper-Session"?: string;
6140
+ };
6141
+ path?: never;
6142
+ cookie?: never;
6143
+ };
6144
+ requestBody?: never;
6145
+ responses: {
6146
+ /** @description OK */
6147
+ 200: {
6148
+ headers: {
6149
+ [name: string]: unknown;
6150
+ };
6151
+ content: {
6152
+ "application/json": components["schemas"]["ListingResponse"];
6153
+ };
6154
+ };
6155
+ /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper). */
6156
+ 400: {
6157
+ headers: {
6158
+ [name: string]: unknown;
6159
+ };
6160
+ content: {
6161
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6162
+ };
6163
+ };
6164
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
6165
+ 401: {
6166
+ headers: {
6167
+ [name: string]: unknown;
6168
+ };
6169
+ content: {
6170
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6171
+ };
6172
+ };
6173
+ /** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
6174
+ 403: {
6175
+ headers: {
6176
+ [name: string]: unknown;
6177
+ };
6178
+ content: {
6179
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6180
+ };
6181
+ };
6182
+ /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
6183
+ 404: {
6184
+ headers: {
6185
+ [name: string]: unknown;
6186
+ };
6187
+ content: {
6188
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6189
+ };
6190
+ };
6191
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
6192
+ 429: {
6193
+ headers: {
6194
+ [name: string]: unknown;
6195
+ };
6196
+ content: {
6197
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6198
+ };
6199
+ };
6200
+ /** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
6201
+ 503: {
6202
+ headers: {
6203
+ [name: string]: unknown;
6204
+ };
6205
+ content: {
6206
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6207
+ };
6208
+ };
6209
+ };
6210
+ };
6211
+ GetProductBySku: {
6212
+ parameters: {
6213
+ query?: never;
6214
+ header: {
6215
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6216
+ "X-Site-Key": string;
6217
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
6218
+ "X-Market"?: string;
6219
+ /** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
6220
+ "X-Country"?: string;
6221
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
6222
+ "X-Locale"?: string;
6223
+ /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
6224
+ "X-Shopper-Session"?: string;
6225
+ };
6226
+ path: {
6227
+ sku: string;
6228
+ };
6229
+ cookie?: never;
6230
+ };
6231
+ requestBody?: never;
6232
+ responses: {
6233
+ /** @description OK */
6234
+ 200: {
6235
+ headers: {
6236
+ [name: string]: unknown;
6237
+ };
6238
+ content: {
6239
+ "application/json": components["schemas"]["ProductDto"];
6240
+ };
6241
+ };
6242
+ /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
6243
+ 400: {
6244
+ headers: {
6245
+ [name: string]: unknown;
6246
+ };
6247
+ content: {
6248
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6249
+ };
6250
+ };
6251
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
6252
+ 401: {
6253
+ headers: {
6254
+ [name: string]: unknown;
6255
+ };
6256
+ content: {
6257
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6258
+ };
6259
+ };
6260
+ /** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
6261
+ 403: {
6262
+ headers: {
6263
+ [name: string]: unknown;
6264
+ };
6265
+ content: {
6266
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6267
+ };
6268
+ };
6269
+ /** @description problem+json. PRODUCT_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
6270
+ 404: {
6271
+ headers: {
6272
+ [name: string]: unknown;
6273
+ };
6274
+ content: {
6275
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6276
+ };
6277
+ };
6278
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
6279
+ 429: {
6280
+ headers: {
6281
+ [name: string]: unknown;
6282
+ };
6283
+ content: {
6284
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6285
+ };
6286
+ };
6287
+ /** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
6288
+ 503: {
6289
+ headers: {
6290
+ [name: string]: unknown;
6291
+ };
6292
+ content: {
6293
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6294
+ };
6295
+ };
6296
+ };
6297
+ };
6298
+ SearchFacetValues: {
6299
+ parameters: {
6300
+ query?: {
6301
+ /** @description Narrows to the values whose label contains q (case-insensitively) or whose key starts with it. Omit for the facet's values as they are. Matched against the 1000 most common values of the facet, in this API — at most 50 are returned. Present but blank is a 400 (INVALID_QUERY). */
6302
+ q?: string;
6303
+ /** @description The filter context the values are counted in, sent as filter[key]=value exactly as on /products: a count is what selecting that value would leave. This facet's own selection does not narrow it (the counts are disjunctive), and a key this site has no facet for is dropped silently. */
6304
+ filter?: {
6305
+ [key: string]: string;
6306
+ };
6307
+ };
6308
+ header: {
6309
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6310
+ "X-Site-Key": string;
6311
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
6312
+ "X-Market"?: string;
6313
+ /** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
6314
+ "X-Country"?: string;
6315
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
6316
+ "X-Locale"?: string;
6317
+ /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
6318
+ "X-Shopper-Session"?: string;
6319
+ };
6320
+ path: {
6321
+ key: string;
6322
+ };
6323
+ cookie?: never;
6324
+ };
6325
+ requestBody?: never;
6326
+ responses: {
6327
+ /** @description OK */
6328
+ 200: {
6329
+ headers: {
6330
+ [name: string]: unknown;
6331
+ };
6332
+ content: {
6333
+ "application/json": components["schemas"]["FacetValuesResponse"];
6334
+ };
6335
+ };
6336
+ /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; INVALID_QUERY (q present but blank, or longer than 100 characters), FACET_NOT_SEARCHABLE (the facet exists but has no list of values to search in: a range, a toggle or a tree), or PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper). */
6337
+ 400: {
6338
+ headers: {
6339
+ [name: string]: unknown;
6340
+ };
6341
+ content: {
6342
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6343
+ };
6344
+ };
6345
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
6346
+ 401: {
6347
+ headers: {
6348
+ [name: string]: unknown;
6349
+ };
6350
+ content: {
6351
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6352
+ };
6353
+ };
6354
+ /** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
6355
+ 403: {
6356
+ headers: {
6357
+ [name: string]: unknown;
6358
+ };
6359
+ content: {
6360
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6361
+ };
6362
+ };
6363
+ /** @description problem+json. FACET_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
6364
+ 404: {
6365
+ headers: {
6366
+ [name: string]: unknown;
6367
+ };
6368
+ content: {
6369
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6370
+ };
6371
+ };
6372
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
6373
+ 429: {
6374
+ headers: {
6375
+ [name: string]: unknown;
6376
+ };
6377
+ content: {
6378
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6379
+ };
6380
+ };
6381
+ /** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
6382
+ 503: {
6383
+ headers: {
6384
+ [name: string]: unknown;
6385
+ };
6386
+ content: {
6387
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6388
+ };
6389
+ };
6390
+ };
6391
+ };
6392
+ GetProduct: {
6393
+ parameters: {
6394
+ query?: {
6395
+ /** @description A variant id (`VariantDto.id`) to preselect. Answered in `selectedVariantStatus`; a value that is not one of this product's variants is `unknown`, never an error. */
6396
+ variant?: string;
5223
6397
  };
5224
6398
  header: {
5225
6399
  /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
@@ -5233,7 +6407,9 @@ export interface operations {
5233
6407
  /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
5234
6408
  "X-Shopper-Session"?: string;
5235
6409
  };
5236
- path?: never;
6410
+ path: {
6411
+ slugOrId: string;
6412
+ };
5237
6413
  cookie?: never;
5238
6414
  };
5239
6415
  requestBody?: never;
@@ -5244,10 +6420,10 @@ export interface operations {
5244
6420
  [name: string]: unknown;
5245
6421
  };
5246
6422
  content: {
5247
- "application/json": components["schemas"]["ListingResponse"];
6423
+ "application/json": components["schemas"]["ProductDto"];
5248
6424
  };
5249
6425
  };
5250
- /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper). */
6426
+ /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
5251
6427
  400: {
5252
6428
  headers: {
5253
6429
  [name: string]: unknown;
@@ -5274,7 +6450,7 @@ export interface operations {
5274
6450
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5275
6451
  };
5276
6452
  };
5277
- /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
6453
+ /** @description problem+json. PRODUCT_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
5278
6454
  404: {
5279
6455
  headers: {
5280
6456
  [name: string]: unknown;
@@ -5303,9 +6479,18 @@ export interface operations {
5303
6479
  };
5304
6480
  };
5305
6481
  };
5306
- GetProductBySku: {
6482
+ ListProductVariants: {
5307
6483
  parameters: {
5308
- query?: never;
6484
+ query?: {
6485
+ /** @description 1-based page. page × pageSize must not exceed 10000 (default pageSize 50, max 100). */
6486
+ page?: number;
6487
+ /** @description Items per page, 1–100. Out of range is a 400 with code INVALID_PAGE. */
6488
+ pageSize?: number;
6489
+ /** @description Narrows by option axis: filter[<axis>]=value, one value per axis (no comma-separation). filter[in-stock]=true|false narrows to variants in stock. An axis the product does not have is a 400 (INVALID_FILTER). */
6490
+ filter?: {
6491
+ [key: string]: string;
6492
+ };
6493
+ };
5309
6494
  header: {
5310
6495
  /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
5311
6496
  "X-Site-Key": string;
@@ -5319,7 +6504,7 @@ export interface operations {
5319
6504
  "X-Shopper-Session"?: string;
5320
6505
  };
5321
6506
  path: {
5322
- sku: string;
6507
+ slugOrId: string;
5323
6508
  };
5324
6509
  cookie?: never;
5325
6510
  };
@@ -5331,10 +6516,10 @@ export interface operations {
5331
6516
  [name: string]: unknown;
5332
6517
  };
5333
6518
  content: {
5334
- "application/json": components["schemas"]["ProductDto"];
6519
+ "application/json": components["schemas"]["VariantPageDto"];
5335
6520
  };
5336
6521
  };
5337
- /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
6522
+ /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; INVALID_FILTER (an unknown option axis in filter[], or a non-boolean filter[in-stock]), or STOCK_QUERY_UNSUPPORTED (filter[in-stock] where stock is not shown to this shopper). */
5338
6523
  400: {
5339
6524
  headers: {
5340
6525
  [name: string]: unknown;
@@ -5390,15 +6575,11 @@ export interface operations {
5390
6575
  };
5391
6576
  };
5392
6577
  };
5393
- SearchFacetValues: {
6578
+ Suggest: {
5394
6579
  parameters: {
5395
- query?: {
5396
- /** @description Narrows to the values whose label contains q (case-insensitively) or whose key starts with it. Omit for the facet's values as they are. Matched against the 1000 most common values of the facet, in this API — at most 50 are returned. Present but blank is a 400 (INVALID_QUERY). */
5397
- q?: string;
5398
- /** @description The filter context the values are counted in, sent as filter[key]=value exactly as on /products: a count is what selecting that value would leave. This facet's own selection does not narrow it (the counts are disjunctive), and a key this site has no facet for is dropped silently. */
5399
- filter?: {
5400
- [key: string]: string;
5401
- };
6580
+ query: {
6581
+ /** @description What the shopper has typed so far, 1–100 characters. Blank, missing or longer is a 400 (INVALID_QUERY) — unlike a listing's q, which is truncated. */
6582
+ q: string;
5402
6583
  };
5403
6584
  header: {
5404
6585
  /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
@@ -5412,9 +6593,7 @@ export interface operations {
5412
6593
  /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
5413
6594
  "X-Shopper-Session"?: string;
5414
6595
  };
5415
- path: {
5416
- key: string;
5417
- };
6596
+ path?: never;
5418
6597
  cookie?: never;
5419
6598
  };
5420
6599
  requestBody?: never;
@@ -5425,10 +6604,10 @@ export interface operations {
5425
6604
  [name: string]: unknown;
5426
6605
  };
5427
6606
  content: {
5428
- "application/json": components["schemas"]["FacetValuesResponse"];
6607
+ "application/json": components["schemas"]["SuggestResponse"];
5429
6608
  };
5430
6609
  };
5431
- /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; INVALID_QUERY (q present but blank, or longer than 100 characters), FACET_NOT_SEARCHABLE (the facet exists but has no list of values to search in: a range, a toggle or a tree), or PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper). */
6610
+ /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_QUERY (q missing, blank or longer than 100 characters). */
5432
6611
  400: {
5433
6612
  headers: {
5434
6613
  [name: string]: unknown;
@@ -5455,7 +6634,7 @@ export interface operations {
5455
6634
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5456
6635
  };
5457
6636
  };
5458
- /** @description problem+json. FACET_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
6637
+ /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
5459
6638
  404: {
5460
6639
  headers: {
5461
6640
  [name: string]: unknown;
@@ -5484,14 +6663,11 @@ export interface operations {
5484
6663
  };
5485
6664
  };
5486
6665
  };
5487
- GetProduct: {
6666
+ GetSession: {
5488
6667
  parameters: {
5489
- query?: {
5490
- /** @description A variant id (`VariantDto.id`) to preselect. Answered in `selectedVariantStatus`; a value that is not one of this product's variants is `unknown`, never an error. */
5491
- variant?: string;
5492
- };
6668
+ query?: never;
5493
6669
  header: {
5494
- /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6670
+ /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
5495
6671
  "X-Site-Key": string;
5496
6672
  /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5497
6673
  "X-Market"?: string;
@@ -5499,12 +6675,10 @@ export interface operations {
5499
6675
  "X-Country"?: string;
5500
6676
  /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5501
6677
  "X-Locale"?: string;
5502
- /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
5503
- "X-Shopper-Session"?: string;
5504
- };
5505
- path: {
5506
- slugOrId: string;
6678
+ /** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
6679
+ "X-Shopper-Ip"?: string;
5507
6680
  };
6681
+ path?: never;
5508
6682
  cookie?: never;
5509
6683
  };
5510
6684
  requestBody?: never;
@@ -5515,10 +6689,10 @@ export interface operations {
5515
6689
  [name: string]: unknown;
5516
6690
  };
5517
6691
  content: {
5518
- "application/json": components["schemas"]["ProductDto"];
6692
+ "application/json": components["schemas"]["SessionDto"];
5519
6693
  };
5520
6694
  };
5521
- /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
6695
+ /** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
5522
6696
  400: {
5523
6697
  headers: {
5524
6698
  [name: string]: unknown;
@@ -5527,7 +6701,7 @@ export interface operations {
5527
6701
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5528
6702
  };
5529
6703
  };
5530
- /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
6704
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked; a session is never silently dropped). Render signed-out and clear the session cookie. */
5531
6705
  401: {
5532
6706
  headers: {
5533
6707
  [name: string]: unknown;
@@ -5536,7 +6710,7 @@ export interface operations {
5536
6710
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5537
6711
  };
5538
6712
  };
5539
- /** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
6713
+ /** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
5540
6714
  403: {
5541
6715
  headers: {
5542
6716
  [name: string]: unknown;
@@ -5545,7 +6719,7 @@ export interface operations {
5545
6719
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5546
6720
  };
5547
6721
  };
5548
- /** @description problem+json. PRODUCT_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
6722
+ /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts. Works on a paused site (no SITE_INACTIVE). */
5549
6723
  404: {
5550
6724
  headers: {
5551
6725
  [name: string]: unknown;
@@ -5563,7 +6737,7 @@ export interface operations {
5563
6737
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5564
6738
  };
5565
6739
  };
5566
- /** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
6740
+ /** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
5567
6741
  503: {
5568
6742
  headers: {
5569
6743
  [name: string]: unknown;
@@ -5574,20 +6748,11 @@ export interface operations {
5574
6748
  };
5575
6749
  };
5576
6750
  };
5577
- ListProductVariants: {
6751
+ SwitchPrincipal: {
5578
6752
  parameters: {
5579
- query?: {
5580
- /** @description 1-based page. page × pageSize must not exceed 10000 (default pageSize 50, max 100). */
5581
- page?: number;
5582
- /** @description Items per page, 1–100. Out of range is a 400 with code INVALID_PAGE. */
5583
- pageSize?: number;
5584
- /** @description Narrows by option axis: filter[<axis>]=value, one value per axis (no comma-separation). filter[in-stock]=true|false narrows to variants in stock. An axis the product does not have is a 400 (INVALID_FILTER). */
5585
- filter?: {
5586
- [key: string]: string;
5587
- };
5588
- };
6753
+ query?: never;
5589
6754
  header: {
5590
- /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6755
+ /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
5591
6756
  "X-Site-Key": string;
5592
6757
  /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5593
6758
  "X-Market"?: string;
@@ -5595,15 +6760,17 @@ export interface operations {
5595
6760
  "X-Country"?: string;
5596
6761
  /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5597
6762
  "X-Locale"?: string;
5598
- /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
5599
- "X-Shopper-Session"?: string;
5600
- };
5601
- path: {
5602
- slugOrId: string;
6763
+ /** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
6764
+ "X-Shopper-Ip"?: string;
5603
6765
  };
6766
+ path?: never;
5604
6767
  cookie?: never;
5605
6768
  };
5606
- requestBody?: never;
6769
+ requestBody: {
6770
+ content: {
6771
+ "application/json": components["schemas"]["SwitchPrincipalRequest"];
6772
+ };
6773
+ };
5607
6774
  responses: {
5608
6775
  /** @description OK */
5609
6776
  200: {
@@ -5611,10 +6778,10 @@ export interface operations {
5611
6778
  [name: string]: unknown;
5612
6779
  };
5613
6780
  content: {
5614
- "application/json": components["schemas"]["VariantPageDto"];
6781
+ "application/json": components["schemas"]["SignedInDto"];
5615
6782
  };
5616
6783
  };
5617
- /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; INVALID_FILTER (an unknown option axis in filter[], or a non-boolean filter[in-stock]), or STOCK_QUERY_UNSUPPORTED (filter[in-stock] where stock is not shown to this shopper). */
6784
+ /** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
5618
6785
  400: {
5619
6786
  headers: {
5620
6787
  [name: string]: unknown;
@@ -5623,7 +6790,7 @@ export interface operations {
5623
6790
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5624
6791
  };
5625
6792
  };
5626
- /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
6793
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session), SESSION_INVALID (unknown, expired, revoked, or a replaced token outside a GET), or SESSION_REAUTH_REQUIRED (the target principal needs a new sign-in). */
5627
6794
  401: {
5628
6795
  headers: {
5629
6796
  [name: string]: unknown;
@@ -5632,7 +6799,7 @@ export interface operations {
5632
6799
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5633
6800
  };
5634
6801
  };
5635
- /** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
6802
+ /** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). PRINCIPAL_NOT_AVAILABLE: the principal is not one of the session's. */
5636
6803
  403: {
5637
6804
  headers: {
5638
6805
  [name: string]: unknown;
@@ -5641,7 +6808,7 @@ export interface operations {
5641
6808
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5642
6809
  };
5643
6810
  };
5644
- /** @description problem+json. PRODUCT_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
6811
+ /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
5645
6812
  404: {
5646
6813
  headers: {
5647
6814
  [name: string]: unknown;
@@ -5659,7 +6826,7 @@ export interface operations {
5659
6826
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5660
6827
  };
5661
6828
  };
5662
- /** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
6829
+ /** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
5663
6830
  503: {
5664
6831
  headers: {
5665
6832
  [name: string]: unknown;
@@ -5670,12 +6837,9 @@ export interface operations {
5670
6837
  };
5671
6838
  };
5672
6839
  };
5673
- Suggest: {
6840
+ GetShopperState: {
5674
6841
  parameters: {
5675
- query: {
5676
- /** @description What the shopper has typed so far, 1–100 characters. Blank, missing or longer is a 400 (INVALID_QUERY) — unlike a listing's q, which is truncated. */
5677
- q: string;
5678
- };
6842
+ query?: never;
5679
6843
  header: {
5680
6844
  /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
5681
6845
  "X-Site-Key": string;
@@ -5685,7 +6849,9 @@ export interface operations {
5685
6849
  "X-Country"?: string;
5686
6850
  /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5687
6851
  "X-Locale"?: string;
5688
- /** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
6852
+ /** @description Optional. The guest shopper token (sft_…) minted by an earlier write on /v1/shopper/*; it names the state this request reads or changes. A read without it, or with an unknown one, answers "no state"; a write without it mints a token (returned in `shopper`), a write with an unknown, expired, adopted or deleted one answers 404 SHOPPER_TOKEN_UNKNOWN. */
6853
+ "X-Shopper-Token"?: string;
6854
+ /** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
5689
6855
  "X-Shopper-Session"?: string;
5690
6856
  };
5691
6857
  path?: never;
@@ -5699,10 +6865,10 @@ export interface operations {
5699
6865
  [name: string]: unknown;
5700
6866
  };
5701
6867
  content: {
5702
- "application/json": components["schemas"]["SuggestResponse"];
6868
+ "application/json": components["schemas"]["ShopperStateDto"];
5703
6869
  };
5704
6870
  };
5705
- /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_QUERY (q missing, blank or longer than 100 characters). */
6871
+ /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
5706
6872
  400: {
5707
6873
  headers: {
5708
6874
  [name: string]: unknown;
@@ -5720,7 +6886,7 @@ export interface operations {
5720
6886
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5721
6887
  };
5722
6888
  };
5723
- /** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
6889
+ /** @description problem+json. PERMISSION_DENIED (a key other than the site's publishable or server key: shopper routes take no secret or preview key), SECRET_KEY_FROM_BROWSER (the server key from a browser); with an X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
5724
6890
  403: {
5725
6891
  headers: {
5726
6892
  [name: string]: unknown;
@@ -5738,6 +6904,15 @@ export interface operations {
5738
6904
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5739
6905
  };
5740
6906
  };
6907
+ /** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
6908
+ 409: {
6909
+ headers: {
6910
+ [name: string]: unknown;
6911
+ };
6912
+ content: {
6913
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6914
+ };
6915
+ };
5741
6916
  /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
5742
6917
  429: {
5743
6918
  headers: {
@@ -5758,11 +6933,11 @@ export interface operations {
5758
6933
  };
5759
6934
  };
5760
6935
  };
5761
- GetSession: {
6936
+ DeleteShopperState: {
5762
6937
  parameters: {
5763
6938
  query?: never;
5764
6939
  header: {
5765
- /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
6940
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
5766
6941
  "X-Site-Key": string;
5767
6942
  /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5768
6943
  "X-Market"?: string;
@@ -5770,7 +6945,11 @@ export interface operations {
5770
6945
  "X-Country"?: string;
5771
6946
  /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5772
6947
  "X-Locale"?: string;
5773
- /** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
6948
+ /** @description Optional. The guest shopper token (sft_…) minted by an earlier write on /v1/shopper/*; it names the state this request reads or changes. A read without it, or with an unknown one, answers "no state"; a write without it mints a token (returned in `shopper`), a write with an unknown, expired, adopted or deleted one answers 404 SHOPPER_TOKEN_UNKNOWN. */
6949
+ "X-Shopper-Token"?: string;
6950
+ /** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
6951
+ "X-Shopper-Session"?: string;
6952
+ /** @description The shopper's IP address as the frontend server saw it. Read only with the site's server key, and required on a write without X-Shopper-Token through it (400 SHOPPER_IP_REQUIRED): the tokenless write limit is per shopper IP, never one shared bucket. */
5774
6953
  "X-Shopper-Ip"?: string;
5775
6954
  };
5776
6955
  path?: never;
@@ -5778,16 +6957,14 @@ export interface operations {
5778
6957
  };
5779
6958
  requestBody?: never;
5780
6959
  responses: {
5781
- /** @description OK */
5782
- 200: {
6960
+ /** @description No Content */
6961
+ 204: {
5783
6962
  headers: {
5784
6963
  [name: string]: unknown;
5785
6964
  };
5786
- content: {
5787
- "application/json": components["schemas"]["SessionDto"];
5788
- };
6965
+ content?: never;
5789
6966
  };
5790
- /** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
6967
+ /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip). */
5791
6968
  400: {
5792
6969
  headers: {
5793
6970
  [name: string]: unknown;
@@ -5796,7 +6973,7 @@ export interface operations {
5796
6973
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5797
6974
  };
5798
6975
  };
5799
- /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked; a session is never silently dropped). Render signed-out and clear the session cookie. */
6976
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
5800
6977
  401: {
5801
6978
  headers: {
5802
6979
  [name: string]: unknown;
@@ -5805,7 +6982,7 @@ export interface operations {
5805
6982
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5806
6983
  };
5807
6984
  };
5808
- /** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
6985
+ /** @description problem+json. PERMISSION_DENIED (a key other than the site's publishable or server key: shopper routes take no secret or preview key), SECRET_KEY_FROM_BROWSER (the server key from a browser); with an X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
5809
6986
  403: {
5810
6987
  headers: {
5811
6988
  [name: string]: unknown;
@@ -5814,7 +6991,7 @@ export interface operations {
5814
6991
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5815
6992
  };
5816
6993
  };
5817
- /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts. Works on a paused site (no SITE_INACTIVE). */
6994
+ /** @description problem+json. SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
5818
6995
  404: {
5819
6996
  headers: {
5820
6997
  [name: string]: unknown;
@@ -5823,7 +7000,16 @@ export interface operations {
5823
7000
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5824
7001
  };
5825
7002
  };
5826
- /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
7003
+ /** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
7004
+ 409: {
7005
+ headers: {
7006
+ [name: string]: unknown;
7007
+ };
7008
+ content: {
7009
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
7010
+ };
7011
+ };
7012
+ /** @description problem+json. RATE_LIMITED: the write limit per shopper token, or per shopper IP for a write without a token; retryAfterSeconds and the Retry-After header say how long to wait. */
5827
7013
  429: {
5828
7014
  headers: {
5829
7015
  [name: string]: unknown;
@@ -5832,7 +7018,7 @@ export interface operations {
5832
7018
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5833
7019
  };
5834
7020
  };
5835
- /** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
7021
+ /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
5836
7022
  503: {
5837
7023
  headers: {
5838
7024
  [name: string]: unknown;
@@ -5843,11 +7029,11 @@ export interface operations {
5843
7029
  };
5844
7030
  };
5845
7031
  };
5846
- SwitchPrincipal: {
7032
+ GetShopperConsents: {
5847
7033
  parameters: {
5848
7034
  query?: never;
5849
7035
  header: {
5850
- /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
7036
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
5851
7037
  "X-Site-Key": string;
5852
7038
  /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5853
7039
  "X-Market"?: string;
@@ -5855,17 +7041,15 @@ export interface operations {
5855
7041
  "X-Country"?: string;
5856
7042
  /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5857
7043
  "X-Locale"?: string;
5858
- /** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
5859
- "X-Shopper-Ip"?: string;
7044
+ /** @description Optional. The guest shopper token (sft_…) minted by an earlier write on /v1/shopper/*; it names the state this request reads or changes. A read without it, or with an unknown one, answers "no state"; a write without it mints a token (returned in `shopper`), a write with an unknown, expired, adopted or deleted one answers 404 SHOPPER_TOKEN_UNKNOWN. */
7045
+ "X-Shopper-Token"?: string;
7046
+ /** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
7047
+ "X-Shopper-Session"?: string;
5860
7048
  };
5861
7049
  path?: never;
5862
7050
  cookie?: never;
5863
7051
  };
5864
- requestBody: {
5865
- content: {
5866
- "application/json": components["schemas"]["SwitchPrincipalRequest"];
5867
- };
5868
- };
7052
+ requestBody?: never;
5869
7053
  responses: {
5870
7054
  /** @description OK */
5871
7055
  200: {
@@ -5873,7 +7057,7 @@ export interface operations {
5873
7057
  [name: string]: unknown;
5874
7058
  };
5875
7059
  content: {
5876
- "application/json": components["schemas"]["SignedInDto"];
7060
+ "application/json": components["schemas"]["ConsentReadDto"];
5877
7061
  };
5878
7062
  };
5879
7063
  /** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
@@ -5885,7 +7069,7 @@ export interface operations {
5885
7069
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5886
7070
  };
5887
7071
  };
5888
- /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session), SESSION_INVALID (unknown, expired, revoked, or a replaced token outside a GET), or SESSION_REAUTH_REQUIRED (the target principal needs a new sign-in). */
7072
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
5889
7073
  401: {
5890
7074
  headers: {
5891
7075
  [name: string]: unknown;
@@ -5894,8 +7078,17 @@ export interface operations {
5894
7078
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5895
7079
  };
5896
7080
  };
5897
- /** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). PRINCIPAL_NOT_AVAILABLE: the principal is not one of the session's. */
5898
- 403: {
7081
+ /** @description problem+json. PERMISSION_DENIED (a key other than the site's publishable or server key: shopper routes take no secret or preview key), SECRET_KEY_FROM_BROWSER (the server key from a browser); with an X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
7082
+ 403: {
7083
+ headers: {
7084
+ [name: string]: unknown;
7085
+ };
7086
+ content: {
7087
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
7088
+ };
7089
+ };
7090
+ /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
7091
+ 404: {
5899
7092
  headers: {
5900
7093
  [name: string]: unknown;
5901
7094
  };
@@ -5903,8 +7096,8 @@ export interface operations {
5903
7096
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5904
7097
  };
5905
7098
  };
5906
- /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
5907
- 404: {
7099
+ /** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
7100
+ 409: {
5908
7101
  headers: {
5909
7102
  [name: string]: unknown;
5910
7103
  };
@@ -5921,7 +7114,7 @@ export interface operations {
5921
7114
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5922
7115
  };
5923
7116
  };
5924
- /** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
7117
+ /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
5925
7118
  503: {
5926
7119
  headers: {
5927
7120
  [name: string]: unknown;
@@ -5932,7 +7125,7 @@ export interface operations {
5932
7125
  };
5933
7126
  };
5934
7127
  };
5935
- GetShopperState: {
7128
+ PutShopperConsents: {
5936
7129
  parameters: {
5937
7130
  query?: never;
5938
7131
  header: {
@@ -5948,11 +7141,17 @@ export interface operations {
5948
7141
  "X-Shopper-Token"?: string;
5949
7142
  /** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
5950
7143
  "X-Shopper-Session"?: string;
7144
+ /** @description The shopper's IP address as the frontend server saw it. Read only with the site's server key, and required on a write without X-Shopper-Token through it (400 SHOPPER_IP_REQUIRED): the tokenless write limit is per shopper IP, never one shared bucket. */
7145
+ "X-Shopper-Ip"?: string;
5951
7146
  };
5952
7147
  path?: never;
5953
7148
  cookie?: never;
5954
7149
  };
5955
- requestBody?: never;
7150
+ requestBody: {
7151
+ content: {
7152
+ "application/json": components["schemas"]["ConsentPutRequest"];
7153
+ };
7154
+ };
5956
7155
  responses: {
5957
7156
  /** @description OK */
5958
7157
  200: {
@@ -5960,10 +7159,10 @@ export interface operations {
5960
7159
  [name: string]: unknown;
5961
7160
  };
5962
7161
  content: {
5963
- "application/json": components["schemas"]["ShopperStateDto"];
7162
+ "application/json": components["schemas"]["ConsentAnswerDto"];
5964
7163
  };
5965
7164
  };
5966
- /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
7165
+ /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip); or CONSENT_INVALID (purpose, decision, notice reference or ordering fields the API does not accept). */
5967
7166
  400: {
5968
7167
  headers: {
5969
7168
  [name: string]: unknown;
@@ -5990,7 +7189,7 @@ export interface operations {
5990
7189
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5991
7190
  };
5992
7191
  };
5993
- /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
7192
+ /** @description problem+json. CONSENT_DISABLED (the site publishes no consent notice) or SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
5994
7193
  404: {
5995
7194
  headers: {
5996
7195
  [name: string]: unknown;
@@ -6008,7 +7207,7 @@ export interface operations {
6008
7207
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6009
7208
  };
6010
7209
  };
6011
- /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
7210
+ /** @description problem+json. RATE_LIMITED: the write limit per shopper token, or per shopper IP for a write without a token; retryAfterSeconds and the Retry-After header say how long to wait. */
6012
7211
  429: {
6013
7212
  headers: {
6014
7213
  [name: string]: unknown;
@@ -6017,7 +7216,7 @@ export interface operations {
6017
7216
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6018
7217
  };
6019
7218
  };
6020
- /** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
7219
+ /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
6021
7220
  503: {
6022
7221
  headers: {
6023
7222
  [name: string]: unknown;
@@ -6028,9 +7227,11 @@ export interface operations {
6028
7227
  };
6029
7228
  };
6030
7229
  };
6031
- DeleteShopperState: {
7230
+ GetShopperConsentHistory: {
6032
7231
  parameters: {
6033
- query?: never;
7232
+ query?: {
7233
+ cursor?: string;
7234
+ };
6034
7235
  header: {
6035
7236
  /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6036
7237
  "X-Site-Key": string;
@@ -6044,22 +7245,22 @@ export interface operations {
6044
7245
  "X-Shopper-Token"?: string;
6045
7246
  /** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
6046
7247
  "X-Shopper-Session"?: string;
6047
- /** @description The shopper's IP address as the frontend server saw it. Read only with the site's server key, and required on a write without X-Shopper-Token through it (400 SHOPPER_IP_REQUIRED): the tokenless write limit is per shopper IP, never one shared bucket. */
6048
- "X-Shopper-Ip"?: string;
6049
7248
  };
6050
7249
  path?: never;
6051
7250
  cookie?: never;
6052
7251
  };
6053
7252
  requestBody?: never;
6054
7253
  responses: {
6055
- /** @description No Content */
6056
- 204: {
7254
+ /** @description OK */
7255
+ 200: {
6057
7256
  headers: {
6058
7257
  [name: string]: unknown;
6059
7258
  };
6060
- content?: never;
7259
+ content: {
7260
+ "application/json": components["schemas"]["ConsentHistoryPageDto"];
7261
+ };
6061
7262
  };
6062
- /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip). */
7263
+ /** @description problem+json. INVALID_CURSOR (a cursor this API did not issue for this token). */
6063
7264
  400: {
6064
7265
  headers: {
6065
7266
  [name: string]: unknown;
@@ -6086,7 +7287,7 @@ export interface operations {
6086
7287
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6087
7288
  };
6088
7289
  };
6089
- /** @description problem+json. SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
7290
+ /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
6090
7291
  404: {
6091
7292
  headers: {
6092
7293
  [name: string]: unknown;
@@ -6104,7 +7305,7 @@ export interface operations {
6104
7305
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6105
7306
  };
6106
7307
  };
6107
- /** @description problem+json. RATE_LIMITED: the write limit per shopper token, or per shopper IP for a write without a token; retryAfterSeconds and the Retry-After header say how long to wait. */
7308
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
6108
7309
  429: {
6109
7310
  headers: {
6110
7311
  [name: string]: unknown;
@@ -6124,7 +7325,7 @@ export interface operations {
6124
7325
  };
6125
7326
  };
6126
7327
  };
6127
- GetShopperConsents: {
7328
+ GetShopperFavorites: {
6128
7329
  parameters: {
6129
7330
  query?: never;
6130
7331
  header: {
@@ -6152,10 +7353,10 @@ export interface operations {
6152
7353
  [name: string]: unknown;
6153
7354
  };
6154
7355
  content: {
6155
- "application/json": components["schemas"]["ConsentReadDto"];
7356
+ "application/json": components["schemas"]["FavoritesDto"];
6156
7357
  };
6157
7358
  };
6158
- /** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
7359
+ /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
6159
7360
  400: {
6160
7361
  headers: {
6161
7362
  [name: string]: unknown;
@@ -6209,7 +7410,7 @@ export interface operations {
6209
7410
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6210
7411
  };
6211
7412
  };
6212
- /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
7413
+ /** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
6213
7414
  503: {
6214
7415
  headers: {
6215
7416
  [name: string]: unknown;
@@ -6220,7 +7421,7 @@ export interface operations {
6220
7421
  };
6221
7422
  };
6222
7423
  };
6223
- PutShopperConsents: {
7424
+ ClearShopperFavorites: {
6224
7425
  parameters: {
6225
7426
  query?: never;
6226
7427
  header: {
@@ -6242,22 +7443,16 @@ export interface operations {
6242
7443
  path?: never;
6243
7444
  cookie?: never;
6244
7445
  };
6245
- requestBody: {
6246
- content: {
6247
- "application/json": components["schemas"]["ConsentPutRequest"];
6248
- };
6249
- };
7446
+ requestBody?: never;
6250
7447
  responses: {
6251
- /** @description OK */
6252
- 200: {
7448
+ /** @description No Content */
7449
+ 204: {
6253
7450
  headers: {
6254
7451
  [name: string]: unknown;
6255
7452
  };
6256
- content: {
6257
- "application/json": components["schemas"]["ConsentAnswerDto"];
6258
- };
7453
+ content?: never;
6259
7454
  };
6260
- /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip); or CONSENT_INVALID (purpose, decision, notice reference or ordering fields the API does not accept). */
7455
+ /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip). */
6261
7456
  400: {
6262
7457
  headers: {
6263
7458
  [name: string]: unknown;
@@ -6284,7 +7479,7 @@ export interface operations {
6284
7479
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6285
7480
  };
6286
7481
  };
6287
- /** @description problem+json. CONSENT_DISABLED (the site publishes no consent notice) or SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
7482
+ /** @description problem+json. SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
6288
7483
  404: {
6289
7484
  headers: {
6290
7485
  [name: string]: unknown;
@@ -6322,11 +7517,9 @@ export interface operations {
6322
7517
  };
6323
7518
  };
6324
7519
  };
6325
- GetShopperConsentHistory: {
7520
+ AddShopperFavorite: {
6326
7521
  parameters: {
6327
- query?: {
6328
- cursor?: string;
6329
- };
7522
+ query?: never;
6330
7523
  header: {
6331
7524
  /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6332
7525
  "X-Site-Key": string;
@@ -6340,11 +7533,17 @@ export interface operations {
6340
7533
  "X-Shopper-Token"?: string;
6341
7534
  /** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
6342
7535
  "X-Shopper-Session"?: string;
7536
+ /** @description The shopper's IP address as the frontend server saw it. Read only with the site's server key, and required on a write without X-Shopper-Token through it (400 SHOPPER_IP_REQUIRED): the tokenless write limit is per shopper IP, never one shared bucket. */
7537
+ "X-Shopper-Ip"?: string;
6343
7538
  };
6344
7539
  path?: never;
6345
7540
  cookie?: never;
6346
7541
  };
6347
- requestBody?: never;
7542
+ requestBody: {
7543
+ content: {
7544
+ "application/json": components["schemas"]["AddFavoriteRequest"];
7545
+ };
7546
+ };
6348
7547
  responses: {
6349
7548
  /** @description OK */
6350
7549
  200: {
@@ -6352,10 +7551,19 @@ export interface operations {
6352
7551
  [name: string]: unknown;
6353
7552
  };
6354
7553
  content: {
6355
- "application/json": components["schemas"]["ConsentHistoryPageDto"];
7554
+ "application/json": components["schemas"]["FavoriteItemAnswerDto"];
6356
7555
  };
6357
7556
  };
6358
- /** @description problem+json. INVALID_CURSOR (a cursor this API did not issue for this token). */
7557
+ /** @description Created */
7558
+ 201: {
7559
+ headers: {
7560
+ [name: string]: unknown;
7561
+ };
7562
+ content: {
7563
+ "application/json": components["schemas"]["FavoriteItemAnswerDto"];
7564
+ };
7565
+ };
7566
+ /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip); VARIANT_NOT_OF_PRODUCT (the variantId is not a variant of the productId in the current catalog); or MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
6359
7567
  400: {
6360
7568
  headers: {
6361
7569
  [name: string]: unknown;
@@ -6382,7 +7590,7 @@ export interface operations {
6382
7590
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6383
7591
  };
6384
7592
  };
6385
- /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
7593
+ /** @description problem+json. PRODUCT_NOT_FOUND (no such product in this site's catalog) or SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
6386
7594
  404: {
6387
7595
  headers: {
6388
7596
  [name: string]: unknown;
@@ -6391,7 +7599,7 @@ export interface operations {
6391
7599
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6392
7600
  };
6393
7601
  };
6394
- /** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
7602
+ /** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. Or LIST_FULL: the list holds its cap of 250 items; the add is refused. */
6395
7603
  409: {
6396
7604
  headers: {
6397
7605
  [name: string]: unknown;
@@ -6400,7 +7608,7 @@ export interface operations {
6400
7608
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6401
7609
  };
6402
7610
  };
6403
- /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
7611
+ /** @description problem+json. RATE_LIMITED: the write limit per shopper token, or per shopper IP for a write without a token; retryAfterSeconds and the Retry-After header say how long to wait. */
6404
7612
  429: {
6405
7613
  headers: {
6406
7614
  [name: string]: unknown;
@@ -6409,7 +7617,7 @@ export interface operations {
6409
7617
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6410
7618
  };
6411
7619
  };
6412
- /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
7620
+ /** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
6413
7621
  503: {
6414
7622
  headers: {
6415
7623
  [name: string]: unknown;
@@ -6420,7 +7628,7 @@ export interface operations {
6420
7628
  };
6421
7629
  };
6422
7630
  };
6423
- GetShopperFavorites: {
7631
+ RemoveShopperFavorite: {
6424
7632
  parameters: {
6425
7633
  query?: never;
6426
7634
  header: {
@@ -6436,22 +7644,24 @@ export interface operations {
6436
7644
  "X-Shopper-Token"?: string;
6437
7645
  /** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
6438
7646
  "X-Shopper-Session"?: string;
7647
+ /** @description The shopper's IP address as the frontend server saw it. Read only with the site's server key, and required on a write without X-Shopper-Token through it (400 SHOPPER_IP_REQUIRED): the tokenless write limit is per shopper IP, never one shared bucket. */
7648
+ "X-Shopper-Ip"?: string;
7649
+ };
7650
+ path: {
7651
+ itemId: string;
6439
7652
  };
6440
- path?: never;
6441
7653
  cookie?: never;
6442
7654
  };
6443
7655
  requestBody?: never;
6444
7656
  responses: {
6445
- /** @description OK */
6446
- 200: {
7657
+ /** @description No Content */
7658
+ 204: {
6447
7659
  headers: {
6448
7660
  [name: string]: unknown;
6449
7661
  };
6450
- content: {
6451
- "application/json": components["schemas"]["FavoritesDto"];
6452
- };
7662
+ content?: never;
6453
7663
  };
6454
- /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
7664
+ /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip). */
6455
7665
  400: {
6456
7666
  headers: {
6457
7667
  [name: string]: unknown;
@@ -6478,7 +7688,7 @@ export interface operations {
6478
7688
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6479
7689
  };
6480
7690
  };
6481
- /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
7691
+ /** @description problem+json. SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
6482
7692
  404: {
6483
7693
  headers: {
6484
7694
  [name: string]: unknown;
@@ -6496,7 +7706,7 @@ export interface operations {
6496
7706
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6497
7707
  };
6498
7708
  };
6499
- /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
7709
+ /** @description problem+json. RATE_LIMITED: the write limit per shopper token, or per shopper IP for a write without a token; retryAfterSeconds and the Retry-After header say how long to wait. */
6500
7710
  429: {
6501
7711
  headers: {
6502
7712
  [name: string]: unknown;
@@ -6505,7 +7715,7 @@ export interface operations {
6505
7715
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6506
7716
  };
6507
7717
  };
6508
- /** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
7718
+ /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
6509
7719
  503: {
6510
7720
  headers: {
6511
7721
  [name: string]: unknown;
@@ -6516,7 +7726,7 @@ export interface operations {
6516
7726
  };
6517
7727
  };
6518
7728
  };
6519
- ClearShopperFavorites: {
7729
+ ListShopperWatches: {
6520
7730
  parameters: {
6521
7731
  query?: never;
6522
7732
  header: {
@@ -6532,22 +7742,22 @@ export interface operations {
6532
7742
  "X-Shopper-Token"?: string;
6533
7743
  /** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
6534
7744
  "X-Shopper-Session"?: string;
6535
- /** @description The shopper's IP address as the frontend server saw it. Read only with the site's server key, and required on a write without X-Shopper-Token through it (400 SHOPPER_IP_REQUIRED): the tokenless write limit is per shopper IP, never one shared bucket. */
6536
- "X-Shopper-Ip"?: string;
6537
7745
  };
6538
7746
  path?: never;
6539
7747
  cookie?: never;
6540
7748
  };
6541
7749
  requestBody?: never;
6542
7750
  responses: {
6543
- /** @description No Content */
6544
- 204: {
7751
+ /** @description OK */
7752
+ 200: {
6545
7753
  headers: {
6546
7754
  [name: string]: unknown;
6547
7755
  };
6548
- content?: never;
7756
+ content: {
7757
+ "application/json": components["schemas"]["WatchListDto"];
7758
+ };
6549
7759
  };
6550
- /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip). */
7760
+ /** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
6551
7761
  400: {
6552
7762
  headers: {
6553
7763
  [name: string]: unknown;
@@ -6574,7 +7784,7 @@ export interface operations {
6574
7784
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6575
7785
  };
6576
7786
  };
6577
- /** @description problem+json. SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
7787
+ /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
6578
7788
  404: {
6579
7789
  headers: {
6580
7790
  [name: string]: unknown;
@@ -6592,7 +7802,7 @@ export interface operations {
6592
7802
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6593
7803
  };
6594
7804
  };
6595
- /** @description problem+json. RATE_LIMITED: the write limit per shopper token, or per shopper IP for a write without a token; retryAfterSeconds and the Retry-After header say how long to wait. */
7805
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
6596
7806
  429: {
6597
7807
  headers: {
6598
7808
  [name: string]: unknown;
@@ -6601,7 +7811,7 @@ export interface operations {
6601
7811
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6602
7812
  };
6603
7813
  };
6604
- /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
7814
+ /** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
6605
7815
  503: {
6606
7816
  headers: {
6607
7817
  [name: string]: unknown;
@@ -6612,7 +7822,7 @@ export interface operations {
6612
7822
  };
6613
7823
  };
6614
7824
  };
6615
- AddShopperFavorite: {
7825
+ CreateShopperWatch: {
6616
7826
  parameters: {
6617
7827
  query?: never;
6618
7828
  header: {
@@ -6636,7 +7846,7 @@ export interface operations {
6636
7846
  };
6637
7847
  requestBody: {
6638
7848
  content: {
6639
- "application/json": components["schemas"]["AddFavoriteRequest"];
7849
+ "application/json": components["schemas"]["CreateWatchRequest"];
6640
7850
  };
6641
7851
  };
6642
7852
  responses: {
@@ -6646,7 +7856,7 @@ export interface operations {
6646
7856
  [name: string]: unknown;
6647
7857
  };
6648
7858
  content: {
6649
- "application/json": components["schemas"]["FavoriteItemAnswerDto"];
7859
+ "application/json": components["schemas"]["WatchAnswerDto"];
6650
7860
  };
6651
7861
  };
6652
7862
  /** @description Created */
@@ -6655,10 +7865,10 @@ export interface operations {
6655
7865
  [name: string]: unknown;
6656
7866
  };
6657
7867
  content: {
6658
- "application/json": components["schemas"]["FavoriteItemAnswerDto"];
7868
+ "application/json": components["schemas"]["WatchAnswerDto"];
6659
7869
  };
6660
7870
  };
6661
- /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip); VARIANT_NOT_OF_PRODUCT (the variantId is not a variant of the productId in the current catalog); or MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
7871
+ /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip); WATCH_KIND_UNSUPPORTED (kind is not "stock") or WATCH_TARGET_UNSUPPORTED (target.kind is not "variant", or no variantId); INVALID_EMAIL (email missing, longer than 320 characters, or not an address); or MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
6662
7872
  400: {
6663
7873
  headers: {
6664
7874
  [name: string]: unknown;
@@ -6685,7 +7895,7 @@ export interface operations {
6685
7895
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6686
7896
  };
6687
7897
  };
6688
- /** @description problem+json. PRODUCT_NOT_FOUND (no such product in this site's catalog) or SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
7898
+ /** @description problem+json. WATCHES_DISABLED (stock watches are switched off, the site's offers need a signed-in company, or watches are unavailable right now) or PRODUCT_NOT_FOUND (no such variant of this product in this site's catalog); or SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
6689
7899
  404: {
6690
7900
  headers: {
6691
7901
  [name: string]: unknown;
@@ -6694,7 +7904,7 @@ export interface operations {
6694
7904
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6695
7905
  };
6696
7906
  };
6697
- /** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. Or LIST_FULL: the list holds its cap of 250 items; the add is refused. */
7907
+ /** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. Or WATCH_NOT_NEEDED: the variant can be bought now (the extension status says inStock or backorder) — offer add to cart instead; or WATCHES_FULL: the caller holds its cap of open watches. A repeat of the caller's own open watch answers 200, not this. */
6698
7908
  409: {
6699
7909
  headers: {
6700
7910
  [name: string]: unknown;
@@ -6723,7 +7933,7 @@ export interface operations {
6723
7933
  };
6724
7934
  };
6725
7935
  };
6726
- RemoveShopperFavorite: {
7936
+ CancelShopperWatch: {
6727
7937
  parameters: {
6728
7938
  query?: never;
6729
7939
  header: {
@@ -6743,7 +7953,7 @@ export interface operations {
6743
7953
  "X-Shopper-Ip"?: string;
6744
7954
  };
6745
7955
  path: {
6746
- itemId: string;
7956
+ id: string;
6747
7957
  };
6748
7958
  cookie?: never;
6749
7959
  };
@@ -7013,4 +8223,100 @@ export interface operations {
7013
8223
  };
7014
8224
  };
7015
8225
  };
8226
+ CancelWatchByToken: {
8227
+ parameters: {
8228
+ query?: never;
8229
+ header: {
8230
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
8231
+ "X-Site-Key": string;
8232
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
8233
+ "X-Market"?: string;
8234
+ /** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
8235
+ "X-Country"?: string;
8236
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
8237
+ "X-Locale"?: string;
8238
+ /** @description The shopper's IP address as the frontend server saw it. Read only with the site's server key, and required on a write without X-Shopper-Token through it (400 SHOPPER_IP_REQUIRED): the tokenless write limit is per shopper IP, never one shared bucket. */
8239
+ "X-Shopper-Ip"?: string;
8240
+ };
8241
+ path?: never;
8242
+ cookie?: never;
8243
+ };
8244
+ requestBody?: {
8245
+ content: {
8246
+ "application/json": null | components["schemas"]["CancelWatchRequest"];
8247
+ };
8248
+ };
8249
+ responses: {
8250
+ /** @description No Content */
8251
+ 204: {
8252
+ headers: {
8253
+ [name: string]: unknown;
8254
+ };
8255
+ content?: never;
8256
+ };
8257
+ /** @description problem+json. SHOPPER_IP_REQUIRED (through the server key without a parsable X-Shopper-Ip). Never for the token: a missing, malformed, unknown or expired token answers 204 like a known one. */
8258
+ 400: {
8259
+ headers: {
8260
+ [name: string]: unknown;
8261
+ };
8262
+ content: {
8263
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8264
+ };
8265
+ };
8266
+ /** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate. */
8267
+ 401: {
8268
+ headers: {
8269
+ [name: string]: unknown;
8270
+ };
8271
+ content: {
8272
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8273
+ };
8274
+ };
8275
+ /** @description problem+json. PERMISSION_DENIED (a key other than the site's publishable or server key, or an X-Shopper-Token: the route acts on the mail's cancel token only), SECRET_KEY_FROM_BROWSER (the server key from a browser); with an X-Shopper-Session: SERVER_KEY_REQUIRED or SESSION_FROM_BROWSER. */
8276
+ 403: {
8277
+ headers: {
8278
+ [name: string]: unknown;
8279
+ };
8280
+ content: {
8281
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8282
+ };
8283
+ };
8284
+ /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
8285
+ 404: {
8286
+ headers: {
8287
+ [name: string]: unknown;
8288
+ };
8289
+ content: {
8290
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8291
+ };
8292
+ };
8293
+ /** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper cancels on /v1/me/watches. */
8294
+ 409: {
8295
+ headers: {
8296
+ [name: string]: unknown;
8297
+ };
8298
+ content: {
8299
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8300
+ };
8301
+ };
8302
+ /** @description problem+json. RATE_LIMITED: the write limit per shopper IP; retryAfterSeconds and the Retry-After header say how long to wait. */
8303
+ 429: {
8304
+ headers: {
8305
+ [name: string]: unknown;
8306
+ };
8307
+ content: {
8308
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8309
+ };
8310
+ };
8311
+ /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
8312
+ 503: {
8313
+ headers: {
8314
+ [name: string]: unknown;
8315
+ };
8316
+ content: {
8317
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8318
+ };
8319
+ };
8320
+ };
8321
+ };
7016
8322
  }