@asstio-dev/storefront 0.47.0 → 0.48.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/src/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,6 +1113,13 @@ 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;
@@ -954,13 +1128,24 @@ export interface components {
954
1128
  };
955
1129
  url: null | string;
956
1130
  };
1131
+ CartPromotionDto: {
1132
+ amount: components["schemas"]["PricePairDto"];
1133
+ code: null | string;
1134
+ effectId: string;
1135
+ label: string;
1136
+ /** Format: int32 */
1137
+ promotionId: number | string;
1138
+ scope: components["schemas"]["PromotionScopeDto"];
1139
+ };
957
1140
  CartTokenDto: {
958
1141
  token: string;
959
1142
  };
960
1143
  CartTotalsDto: {
961
1144
  grandTotal: components["schemas"]["PricePairDto"];
1145
+ promotions: null | components["schemas"]["PricePairDto"];
962
1146
  rounding: null | string;
963
1147
  subtotal: components["schemas"]["PricePairDto"];
1148
+ subtotalBeforePromotions: null | components["schemas"]["PricePairDto"];
964
1149
  };
965
1150
  CategoryNodeDto: {
966
1151
  children: components["schemas"]["CategoryNodeDto"][];
@@ -976,10 +1161,14 @@ export interface components {
976
1161
  pathNames: string[];
977
1162
  };
978
1163
  CheckoutCartDto: {
1164
+ codes: components["schemas"]["CartCodeDto"][];
979
1165
  currency: string;
980
1166
  delivery: null | components["schemas"]["DeliveryRangeDto"];
981
1167
  grandTotalInc: string;
982
1168
  lines: components["schemas"]["CheckoutCartLineDto"][];
1169
+ promotions: components["schemas"]["CartPromotionDto"][];
1170
+ promotionsTotalInc: null | string;
1171
+ subtotalBeforePromotionsInc: null | string;
983
1172
  subtotalInc: string;
984
1173
  /** Format: int32 */
985
1174
  version: number | string;
@@ -988,6 +1177,8 @@ export interface components {
988
1177
  availability: null | components["schemas"]["LineAvailability"];
989
1178
  delivery: null | components["schemas"]["DeliveryRangeDto"];
990
1179
  image: null | components["schemas"]["MediaDescriptorDto"];
1180
+ lineKey: null | string;
1181
+ lineTotalBeforePromotionsInc: null | string;
991
1182
  lineTotalInc: string;
992
1183
  name: string;
993
1184
  options: {
@@ -995,9 +1186,12 @@ export interface components {
995
1186
  };
996
1187
  product: components["schemas"]["OrderLineProductDto"];
997
1188
  productId: string;
1189
+ promotions: components["schemas"]["LinePromotionDto"][];
998
1190
  /** Format: int32 */
999
1191
  quantity: number | string;
1192
+ segmentId: null | string;
1000
1193
  sku: string;
1194
+ unitPriceBeforePromotionsInc: null | string;
1001
1195
  unitPriceInc: string;
1002
1196
  variant: components["schemas"]["OrderLineVariantDto"];
1003
1197
  variantId: string;
@@ -1191,6 +1385,19 @@ export interface components {
1191
1385
  locale: string;
1192
1386
  market: string;
1193
1387
  };
1388
+ CreateMyWatchRequest: {
1389
+ kind: null | string;
1390
+ language: null | string;
1391
+ source: null | string;
1392
+ target: null | components["schemas"]["WatchTargetRequest"];
1393
+ };
1394
+ CreateWatchRequest: {
1395
+ email: null | string;
1396
+ kind: null | string;
1397
+ language: null | string;
1398
+ source: null | string;
1399
+ target: null | components["schemas"]["WatchTargetRequest"];
1400
+ };
1194
1401
  DeliveryRangeDto: {
1195
1402
  /** Format: int32 */
1196
1403
  max: number;
@@ -1288,6 +1495,9 @@ export interface components {
1288
1495
  };
1289
1496
  /** @enum {unknown} */
1290
1497
  LineAvailability: "backorder" | "inStock" | "unavailable";
1498
+ LinePromotionDto: {
1499
+ effectId: string;
1500
+ };
1291
1501
  ListingResponse: {
1292
1502
  appliedFilters: components["schemas"]["AppliedFilterDto"][];
1293
1503
  context: components["schemas"]["ContextDto"];
@@ -1440,6 +1650,7 @@ export interface components {
1440
1650
  };
1441
1651
  OrderDto: {
1442
1652
  billingAddress: components["schemas"]["AddressDto"];
1653
+ codes: components["schemas"]["CartCodeDto"][];
1443
1654
  currency: string;
1444
1655
  deliveryAddress: components["schemas"]["AddressDto"];
1445
1656
  email: string;
@@ -1450,6 +1661,7 @@ export interface components {
1450
1661
  /** Format: date-time */
1451
1662
  placedAt: string;
1452
1663
  promisedDelivery: null | components["schemas"]["DeliveryRangeDto"];
1664
+ promotions: components["schemas"]["CartPromotionDto"][];
1453
1665
  reference: string;
1454
1666
  shipping: null | components["schemas"]["OrderShippingDto"];
1455
1667
  status: components["schemas"]["OrderStatusDto"];
@@ -1459,6 +1671,8 @@ export interface components {
1459
1671
  };
1460
1672
  OrderLineDto: {
1461
1673
  id: string;
1674
+ lineKey: null | string;
1675
+ lineTotalBeforePromotionsInc: null | string;
1462
1676
  lineTotalInc: string;
1463
1677
  name: string;
1464
1678
  options: {
@@ -1466,10 +1680,13 @@ export interface components {
1466
1680
  };
1467
1681
  product: null | components["schemas"]["OrderLineProductDto"];
1468
1682
  productId: null | string;
1683
+ promotions: components["schemas"]["LinePromotionDto"][];
1469
1684
  /** Format: int32 */
1470
1685
  quantity: number | string;
1686
+ segmentId: null | string;
1471
1687
  sku: string;
1472
1688
  type: string;
1689
+ unitPriceBeforePromotionsInc: null | string;
1473
1690
  unitPriceInc: string;
1474
1691
  variant: null | components["schemas"]["OrderLineVariantDto"];
1475
1692
  variantId: null | string;
@@ -1508,6 +1725,9 @@ export interface components {
1508
1725
  OrderTotalsDto: {
1509
1726
  customerPayable: null | string;
1510
1727
  gross: string;
1728
+ promotions: null | string;
1729
+ subtotal: null | string;
1730
+ subtotalBeforePromotions: null | string;
1511
1731
  vat: components["schemas"]["VatAmountDto"][];
1512
1732
  };
1513
1733
  PartyDto: {
@@ -1621,6 +1841,17 @@ export interface components {
1621
1841
  variants: components["schemas"]["VariantDto"][] | null;
1622
1842
  };
1623
1843
  /** @enum {unknown} */
1844
+ PromotionCodeReasonDto: "expired" | "notForAccount" | "notInMarket" | "notStarted" | "unavailable";
1845
+ /** @enum {unknown} */
1846
+ PromotionCodeStatusDto: "applied" | "notApplicable";
1847
+ PromotionRefDto: {
1848
+ /** Format: int32 */
1849
+ id: number | string;
1850
+ label: string;
1851
+ };
1852
+ /** @enum {unknown} */
1853
+ PromotionScopeDto: "merchandise" | "shipping";
1854
+ /** @enum {unknown} */
1624
1855
  PurchaseStatusDto: "available" | "unavailable";
1625
1856
  /** @enum {unknown} */
1626
1857
  QuoteStatusDto: "complete" | "partial" | "unavailable";
@@ -1737,6 +1968,7 @@ export interface components {
1737
1968
  occurredAt: null | string;
1738
1969
  /** Format: int32 */
1739
1970
  page?: number | null;
1971
+ placement?: null | string;
1740
1972
  /** Format: int32 */
1741
1973
  position?: number | null;
1742
1974
  productId?: null | string;
@@ -1747,6 +1979,7 @@ export interface components {
1747
1979
  resultId?: null | string;
1748
1980
  /** @description Deprecated. Optional, at most 64 characters, opaque. Accepted within its bounds and discarded, never stored (shopper-state spec S31); send nothing. */
1749
1981
  sessionId?: null | string;
1982
+ strategy?: null | string;
1750
1983
  type: null | string;
1751
1984
  variantId?: null | string;
1752
1985
  };
@@ -1858,6 +2091,7 @@ export interface components {
1858
2091
  favorites: components["schemas"]["FavoritesDto"];
1859
2092
  nextCursor: null | string;
1860
2093
  shopper: null | components["schemas"]["ShopperInfoDto"];
2094
+ watches: components["schemas"]["WatchDto"][];
1861
2095
  };
1862
2096
  ShopperStockWatchesDto: {
1863
2097
  enabled: boolean;
@@ -1993,6 +2227,8 @@ export interface components {
1993
2227
  code: string;
1994
2228
  /** @description What went wrong, in prose. */
1995
2229
  detail?: string;
2230
+ /** @description On PROMOTION_CODE_NOT_APPLICABLE: why the code does not apply (notStarted, expired, notInMarket, notForAccount, unavailable). */
2231
+ reason?: string;
1996
2232
  /**
1997
2233
  * Format: int32
1998
2234
  * @description On RATE_LIMITED: how long to wait before retrying. Mirrors the Retry-After header.
@@ -2111,6 +2347,79 @@ export interface components {
2111
2347
  message: string;
2112
2348
  redirectTo: null | string;
2113
2349
  };
2350
+ WatchAnswerDto: {
2351
+ shopper: null | components["schemas"]["ShopperMintDto"];
2352
+ watch: components["schemas"]["WatchDto"];
2353
+ };
2354
+ WatchDto: components["schemas"]["WatchDtoOwnerWatchDto"] | components["schemas"]["WatchDtoRecipientWatchDto"];
2355
+ WatchDtoOwnerWatchDto: {
2356
+ country: string;
2357
+ /** Format: date-time */
2358
+ createdAt: string;
2359
+ email: string;
2360
+ /** Format: date-time */
2361
+ endedAt: null | string;
2362
+ /** Format: date-time */
2363
+ expiresAt: string;
2364
+ /** Format: uuid */
2365
+ id: string;
2366
+ kind: string;
2367
+ market: string;
2368
+ product: null | components["schemas"]["ProductCardDto"];
2369
+ /**
2370
+ * @description discriminator enum property added by openapi-typescript
2371
+ * @enum {string}
2372
+ */
2373
+ projection: "owner";
2374
+ /** @enum {string} */
2375
+ status: "ended" | "open";
2376
+ target: components["schemas"]["WatchTargetDto"];
2377
+ variant: null | components["schemas"]["VariantDto"];
2378
+ };
2379
+ WatchDtoRecipientWatchDto: {
2380
+ cancelScope: null | string;
2381
+ country: string;
2382
+ /** Format: date-time */
2383
+ createdAt: string;
2384
+ email: string;
2385
+ /** Format: date-time */
2386
+ endedAt: null | string;
2387
+ /** Format: date-time */
2388
+ expiresAt: string;
2389
+ /** Format: uuid */
2390
+ id: string;
2391
+ kind: string;
2392
+ market: string;
2393
+ /** Format: date-time */
2394
+ notifiedAt: null | string;
2395
+ product: null | components["schemas"]["ProductCardDto"];
2396
+ /**
2397
+ * @description discriminator enum property added by openapi-typescript
2398
+ * @enum {string}
2399
+ */
2400
+ projection: "recipient";
2401
+ /** @enum {string} */
2402
+ status: "cancelled" | "expired" | "fired" | "open";
2403
+ target: components["schemas"]["WatchTargetDto"];
2404
+ variant: null | components["schemas"]["VariantDto"];
2405
+ };
2406
+ WatchListDto: {
2407
+ items: components["schemas"]["WatchDto"][];
2408
+ };
2409
+ WatchTargetDto: {
2410
+ kind: string;
2411
+ /** Format: int32 */
2412
+ productId: number | string;
2413
+ /** Format: int32 */
2414
+ variantId: number | null | string;
2415
+ };
2416
+ WatchTargetRequest: {
2417
+ kind: null | string;
2418
+ /** Format: int32 */
2419
+ productId: number | string;
2420
+ /** Format: int32 */
2421
+ variantId: number | null | string;
2422
+ };
2114
2423
  };
2115
2424
  responses: never;
2116
2425
  parameters: never;
@@ -2754,7 +3063,7 @@ export interface operations {
2754
3063
  };
2755
3064
  };
2756
3065
  };
2757
- SetCartContext: {
3066
+ ApplyCartCode: {
2758
3067
  parameters: {
2759
3068
  query?: never;
2760
3069
  header: {
@@ -2768,6 +3077,8 @@ export interface operations {
2768
3077
  "X-Locale"?: string;
2769
3078
  /** @description The bearer token returned by POST /v1/cart. Identifies which cart this request reads or mutates. */
2770
3079
  "X-Cart-Token": string;
3080
+ /** @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. */
3081
+ "Idempotency-Key"?: string;
2771
3082
  /** @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
3083
  "If-Match"?: string;
2773
3084
  /** @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 +3089,7 @@ export interface operations {
2778
3089
  };
2779
3090
  requestBody: {
2780
3091
  content: {
2781
- "application/json": components["schemas"]["SetCartContextRequest"];
3092
+ "application/json": components["schemas"]["ApplyCartCodeRequest"];
2782
3093
  };
2783
3094
  };
2784
3095
  responses: {
@@ -2791,7 +3102,7 @@ export interface operations {
2791
3102
  "application/json": components["schemas"]["CartDto"];
2792
3103
  };
2793
3104
  };
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. */
3105
+ /** @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
3106
  400: {
2796
3107
  headers: {
2797
3108
  [name: string]: unknown;
@@ -2818,7 +3129,7 @@ export interface operations {
2818
3129
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2819
3130
  };
2820
3131
  };
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. */
3132
+ /** @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
3133
  404: {
2823
3134
  headers: {
2824
3135
  [name: string]: unknown;
@@ -2827,7 +3138,7 @@ export interface operations {
2827
3138
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2828
3139
  };
2829
3140
  };
2830
- /** @description problem+json. CART_CONFLICT (stale If-Match). */
3141
+ /** @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
3142
  409: {
2832
3143
  headers: {
2833
3144
  [name: string]: unknown;
@@ -2845,7 +3156,16 @@ export interface operations {
2845
3156
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2846
3157
  };
2847
3158
  };
2848
- /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
3159
+ /** @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. */
3160
+ 422: {
3161
+ headers: {
3162
+ [name: string]: unknown;
3163
+ };
3164
+ content: {
3165
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3166
+ };
3167
+ };
3168
+ /** @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
3169
  429: {
2850
3170
  headers: {
2851
3171
  [name: string]: unknown;
@@ -2854,7 +3174,7 @@ export interface operations {
2854
3174
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2855
3175
  };
2856
3176
  };
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. */
3177
+ /** @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
3178
  503: {
2859
3179
  headers: {
2860
3180
  [name: string]: unknown;
@@ -2865,7 +3185,7 @@ export interface operations {
2865
3185
  };
2866
3186
  };
2867
3187
  };
2868
- AddCartLine: {
3188
+ RemoveCartCode: {
2869
3189
  parameters: {
2870
3190
  query?: never;
2871
3191
  header: {
@@ -2879,21 +3199,19 @@ export interface operations {
2879
3199
  "X-Locale"?: string;
2880
3200
  /** @description The bearer token returned by POST /v1/cart. Identifies which cart this request reads or mutates. */
2881
3201
  "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. */
3202
+ /** @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
3203
  "Idempotency-Key"?: string;
2884
3204
  /** @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
3205
  "If-Match"?: string;
2886
3206
  /** @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
3207
  "X-Shopper-Session"?: string;
2888
3208
  };
2889
- path?: never;
2890
- cookie?: never;
2891
- };
2892
- requestBody: {
2893
- content: {
2894
- "application/json": components["schemas"]["AddCartLineRequest"];
3209
+ path: {
3210
+ code: string;
2895
3211
  };
3212
+ cookie?: never;
2896
3213
  };
3214
+ requestBody?: never;
2897
3215
  responses: {
2898
3216
  /** @description OK */
2899
3217
  200: {
@@ -2904,7 +3222,7 @@ export interface operations {
2904
3222
  "application/json": components["schemas"]["CartDto"];
2905
3223
  };
2906
3224
  };
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. */
3225
+ /** @description problem+json. NOT_FOUND (X-Cart-Token missing). */
2908
3226
  400: {
2909
3227
  headers: {
2910
3228
  [name: string]: unknown;
@@ -2922,7 +3240,7 @@ export interface operations {
2922
3240
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2923
3241
  };
2924
3242
  };
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). */
3243
+ /** @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
3244
  403: {
2927
3245
  headers: {
2928
3246
  [name: string]: unknown;
@@ -2931,7 +3249,7 @@ export interface operations {
2931
3249
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2932
3250
  };
2933
3251
  };
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). */
3252
+ /** @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
3253
  404: {
2936
3254
  headers: {
2937
3255
  [name: string]: unknown;
@@ -2940,7 +3258,7 @@ export interface operations {
2940
3258
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2941
3259
  };
2942
3260
  };
2943
- /** @description problem+json. CART_CONFLICT (stale If-Match), or STOCK_INSUFFICIENT. */
3261
+ /** @description problem+json. CART_CONFLICT (stale If-Match). */
2944
3262
  409: {
2945
3263
  headers: {
2946
3264
  [name: string]: unknown;
@@ -2967,7 +3285,7 @@ export interface operations {
2967
3285
  "application/problem+json": components["schemas"]["StorefrontProblem"];
2968
3286
  };
2969
3287
  };
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. */
3288
+ /** @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
3289
  503: {
2972
3290
  headers: {
2973
3291
  [name: string]: unknown;
@@ -2978,7 +3296,7 @@ export interface operations {
2978
3296
  };
2979
3297
  };
2980
3298
  };
2981
- RemoveCartLine: {
3299
+ SetCartContext: {
2982
3300
  parameters: {
2983
3301
  query?: never;
2984
3302
  header: {
@@ -2997,12 +3315,14 @@ export interface operations {
2997
3315
  /** @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
3316
  "X-Shopper-Session"?: string;
2999
3317
  };
3000
- path: {
3001
- id: string;
3002
- };
3318
+ path?: never;
3003
3319
  cookie?: never;
3004
3320
  };
3005
- requestBody?: never;
3321
+ requestBody: {
3322
+ content: {
3323
+ "application/json": components["schemas"]["SetCartContextRequest"];
3324
+ };
3325
+ };
3006
3326
  responses: {
3007
3327
  /** @description OK */
3008
3328
  200: {
@@ -3013,7 +3333,7 @@ export interface operations {
3013
3333
  "application/json": components["schemas"]["CartDto"];
3014
3334
  };
3015
3335
  };
3016
- /** @description problem+json. NOT_FOUND (X-Cart-Token missing). */
3336
+ /** @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
3337
  400: {
3018
3338
  headers: {
3019
3339
  [name: string]: unknown;
@@ -3076,7 +3396,7 @@ export interface operations {
3076
3396
  "application/problem+json": components["schemas"]["StorefrontProblem"];
3077
3397
  };
3078
3398
  };
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. */
3399
+ /** @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
3400
  503: {
3081
3401
  headers: {
3082
3402
  [name: string]: unknown;
@@ -3087,7 +3407,7 @@ export interface operations {
3087
3407
  };
3088
3408
  };
3089
3409
  };
3090
- UpdateCartLine: {
3410
+ AddCartLine: {
3091
3411
  parameters: {
3092
3412
  query?: never;
3093
3413
  header: {
@@ -3101,19 +3421,19 @@ export interface operations {
3101
3421
  "X-Locale"?: string;
3102
3422
  /** @description The bearer token returned by POST /v1/cart. Identifies which cart this request reads or mutates. */
3103
3423
  "X-Cart-Token": string;
3424
+ /** @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. */
3425
+ "Idempotency-Key"?: string;
3104
3426
  /** @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
3427
  "If-Match"?: string;
3106
3428
  /** @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
3429
  "X-Shopper-Session"?: string;
3108
3430
  };
3109
- path: {
3110
- id: string;
3111
- };
3431
+ path?: never;
3112
3432
  cookie?: never;
3113
3433
  };
3114
3434
  requestBody: {
3115
3435
  content: {
3116
- "application/json": components["schemas"]["UpdateCartLineRequest"];
3436
+ "application/json": components["schemas"]["AddCartLineRequest"];
3117
3437
  };
3118
3438
  };
3119
3439
  responses: {
@@ -3126,7 +3446,7 @@ export interface operations {
3126
3446
  "application/json": components["schemas"]["CartDto"];
3127
3447
  };
3128
3448
  };
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. */
3449
+ /** @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
3450
  400: {
3131
3451
  headers: {
3132
3452
  [name: string]: unknown;
@@ -3200,7 +3520,7 @@ export interface operations {
3200
3520
  };
3201
3521
  };
3202
3522
  };
3203
- GetShippingEstimate: {
3523
+ RemoveCartLine: {
3204
3524
  parameters: {
3205
3525
  query?: never;
3206
3526
  header: {
@@ -3214,12 +3534,234 @@ export interface operations {
3214
3534
  "X-Locale"?: string;
3215
3535
  /** @description The bearer token returned by POST /v1/cart. Identifies which cart this request reads or mutates. */
3216
3536
  "X-Cart-Token": string;
3537
+ /** @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. */
3538
+ "If-Match"?: string;
3217
3539
  /** @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. */
3218
3540
  "X-Shopper-Session"?: string;
3219
3541
  };
3220
- path?: never;
3221
- cookie?: never;
3222
- };
3542
+ path: {
3543
+ id: string;
3544
+ };
3545
+ cookie?: never;
3546
+ };
3547
+ requestBody?: never;
3548
+ responses: {
3549
+ /** @description OK */
3550
+ 200: {
3551
+ headers: {
3552
+ [name: string]: unknown;
3553
+ };
3554
+ content: {
3555
+ "application/json": components["schemas"]["CartDto"];
3556
+ };
3557
+ };
3558
+ /** @description problem+json. NOT_FOUND (X-Cart-Token missing). */
3559
+ 400: {
3560
+ headers: {
3561
+ [name: string]: unknown;
3562
+ };
3563
+ content: {
3564
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3565
+ };
3566
+ };
3567
+ /** @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. */
3568
+ 401: {
3569
+ headers: {
3570
+ [name: string]: unknown;
3571
+ };
3572
+ content: {
3573
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3574
+ };
3575
+ };
3576
+ /** @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. */
3577
+ 403: {
3578
+ headers: {
3579
+ [name: string]: unknown;
3580
+ };
3581
+ content: {
3582
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3583
+ };
3584
+ };
3585
+ /** @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. */
3586
+ 404: {
3587
+ headers: {
3588
+ [name: string]: unknown;
3589
+ };
3590
+ content: {
3591
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3592
+ };
3593
+ };
3594
+ /** @description problem+json. CART_CONFLICT (stale If-Match). */
3595
+ 409: {
3596
+ headers: {
3597
+ [name: string]: unknown;
3598
+ };
3599
+ content: {
3600
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3601
+ };
3602
+ };
3603
+ /** @description problem+json. CART_EXPIRED: this cart token belongs to an expired cart. */
3604
+ 410: {
3605
+ headers: {
3606
+ [name: string]: unknown;
3607
+ };
3608
+ content: {
3609
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3610
+ };
3611
+ };
3612
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
3613
+ 429: {
3614
+ headers: {
3615
+ [name: string]: unknown;
3616
+ };
3617
+ content: {
3618
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3619
+ };
3620
+ };
3621
+ /** @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. */
3622
+ 503: {
3623
+ headers: {
3624
+ [name: string]: unknown;
3625
+ };
3626
+ content: {
3627
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3628
+ };
3629
+ };
3630
+ };
3631
+ };
3632
+ UpdateCartLine: {
3633
+ parameters: {
3634
+ query?: never;
3635
+ header: {
3636
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
3637
+ "X-Site-Key": string;
3638
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
3639
+ "X-Market"?: string;
3640
+ /** @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. */
3641
+ "X-Country"?: string;
3642
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
3643
+ "X-Locale"?: string;
3644
+ /** @description The bearer token returned by POST /v1/cart. Identifies which cart this request reads or mutates. */
3645
+ "X-Cart-Token": string;
3646
+ /** @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. */
3647
+ "If-Match"?: string;
3648
+ /** @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. */
3649
+ "X-Shopper-Session"?: string;
3650
+ };
3651
+ path: {
3652
+ id: string;
3653
+ };
3654
+ cookie?: never;
3655
+ };
3656
+ requestBody: {
3657
+ content: {
3658
+ "application/json": components["schemas"]["UpdateCartLineRequest"];
3659
+ };
3660
+ };
3661
+ responses: {
3662
+ /** @description OK */
3663
+ 200: {
3664
+ headers: {
3665
+ [name: string]: unknown;
3666
+ };
3667
+ content: {
3668
+ "application/json": components["schemas"]["CartDto"];
3669
+ };
3670
+ };
3671
+ /** @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. */
3672
+ 400: {
3673
+ headers: {
3674
+ [name: string]: unknown;
3675
+ };
3676
+ content: {
3677
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3678
+ };
3679
+ };
3680
+ /** @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. */
3681
+ 401: {
3682
+ headers: {
3683
+ [name: string]: unknown;
3684
+ };
3685
+ content: {
3686
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3687
+ };
3688
+ };
3689
+ /** @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). */
3690
+ 403: {
3691
+ headers: {
3692
+ [name: string]: unknown;
3693
+ };
3694
+ content: {
3695
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3696
+ };
3697
+ };
3698
+ /** @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). */
3699
+ 404: {
3700
+ headers: {
3701
+ [name: string]: unknown;
3702
+ };
3703
+ content: {
3704
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3705
+ };
3706
+ };
3707
+ /** @description problem+json. CART_CONFLICT (stale If-Match), or STOCK_INSUFFICIENT. */
3708
+ 409: {
3709
+ headers: {
3710
+ [name: string]: unknown;
3711
+ };
3712
+ content: {
3713
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3714
+ };
3715
+ };
3716
+ /** @description problem+json. CART_EXPIRED: this cart token belongs to an expired cart. */
3717
+ 410: {
3718
+ headers: {
3719
+ [name: string]: unknown;
3720
+ };
3721
+ content: {
3722
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3723
+ };
3724
+ };
3725
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
3726
+ 429: {
3727
+ headers: {
3728
+ [name: string]: unknown;
3729
+ };
3730
+ content: {
3731
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3732
+ };
3733
+ };
3734
+ /** @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. */
3735
+ 503: {
3736
+ headers: {
3737
+ [name: string]: unknown;
3738
+ };
3739
+ content: {
3740
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
3741
+ };
3742
+ };
3743
+ };
3744
+ };
3745
+ GetShippingEstimate: {
3746
+ parameters: {
3747
+ query?: never;
3748
+ header: {
3749
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
3750
+ "X-Site-Key": string;
3751
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
3752
+ "X-Market"?: string;
3753
+ /** @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. */
3754
+ "X-Country"?: string;
3755
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
3756
+ "X-Locale"?: string;
3757
+ /** @description The bearer token returned by POST /v1/cart. Identifies which cart this request reads or mutates. */
3758
+ "X-Cart-Token": string;
3759
+ /** @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. */
3760
+ "X-Shopper-Session"?: string;
3761
+ };
3762
+ path?: never;
3763
+ cookie?: never;
3764
+ };
3223
3765
  requestBody?: never;
3224
3766
  responses: {
3225
3767
  /** @description OK */
@@ -5110,11 +5652,11 @@ export interface operations {
5110
5652
  };
5111
5653
  };
5112
5654
  };
5113
- GetOrder: {
5655
+ ListMyWatches: {
5114
5656
  parameters: {
5115
5657
  query?: never;
5116
5658
  header: {
5117
- /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
5659
+ /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
5118
5660
  "X-Site-Key": string;
5119
5661
  /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5120
5662
  "X-Market"?: string;
@@ -5122,16 +5664,10 @@ export interface operations {
5122
5664
  "X-Country"?: string;
5123
5665
  /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5124
5666
  "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;
5667
+ /** @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. */
5668
+ "X-Shopper-Ip"?: string;
5134
5669
  };
5670
+ path?: never;
5135
5671
  cookie?: never;
5136
5672
  };
5137
5673
  requestBody?: never;
@@ -5142,10 +5678,10 @@ export interface operations {
5142
5678
  [name: string]: unknown;
5143
5679
  };
5144
5680
  content: {
5145
- "application/json": components["schemas"]["OrderDto"];
5681
+ "application/json": components["schemas"]["WatchListDto"];
5146
5682
  };
5147
5683
  };
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. */
5684
+ /** @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
5685
  400: {
5150
5686
  headers: {
5151
5687
  [name: string]: unknown;
@@ -5154,7 +5690,7 @@ export interface operations {
5154
5690
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5155
5691
  };
5156
5692
  };
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. */
5693
+ /** @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
5694
  401: {
5159
5695
  headers: {
5160
5696
  [name: string]: unknown;
@@ -5163,7 +5699,7 @@ export interface operations {
5163
5699
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5164
5700
  };
5165
5701
  };
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). */
5702
+ /** @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
5703
  403: {
5168
5704
  headers: {
5169
5705
  [name: string]: unknown;
@@ -5172,7 +5708,7 @@ export interface operations {
5172
5708
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5173
5709
  };
5174
5710
  };
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). */
5711
+ /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
5176
5712
  404: {
5177
5713
  headers: {
5178
5714
  [name: string]: unknown;
@@ -5190,7 +5726,7 @@ export interface operations {
5190
5726
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5191
5727
  };
5192
5728
  };
5193
- /** @description problem+json. SITE_KEYS_SYNCING (a secret key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
5729
+ /** @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
5730
  503: {
5195
5731
  headers: {
5196
5732
  [name: string]: unknown;
@@ -5201,14 +5737,380 @@ export interface operations {
5201
5737
  };
5202
5738
  };
5203
5739
  };
5204
- ListProducts: {
5740
+ CreateMyWatch: {
5205
5741
  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. */
5742
+ query?: never;
5743
+ header: {
5744
+ /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
5745
+ "X-Site-Key": string;
5746
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5747
+ "X-Market"?: string;
5748
+ /** @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. */
5749
+ "X-Country"?: string;
5750
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5751
+ "X-Locale"?: string;
5752
+ /** @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. */
5753
+ "X-Shopper-Ip"?: string;
5754
+ };
5755
+ path?: never;
5756
+ cookie?: never;
5757
+ };
5758
+ requestBody: {
5759
+ content: {
5760
+ "application/json": components["schemas"]["CreateMyWatchRequest"];
5761
+ };
5762
+ };
5763
+ responses: {
5764
+ /** @description OK */
5765
+ 200: {
5766
+ headers: {
5767
+ [name: string]: unknown;
5768
+ };
5769
+ content: {
5770
+ "application/json": components["schemas"]["WatchAnswerDto"];
5771
+ };
5772
+ };
5773
+ /** @description Created */
5774
+ 201: {
5775
+ headers: {
5776
+ [name: string]: unknown;
5777
+ };
5778
+ content: {
5779
+ "application/json": components["schemas"]["WatchAnswerDto"];
5780
+ };
5781
+ };
5782
+ /** @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). */
5783
+ 400: {
5784
+ headers: {
5785
+ [name: string]: unknown;
5786
+ };
5787
+ content: {
5788
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5789
+ };
5790
+ };
5791
+ /** @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. */
5792
+ 401: {
5793
+ headers: {
5794
+ [name: string]: unknown;
5795
+ };
5796
+ content: {
5797
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5798
+ };
5799
+ };
5800
+ /** @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). */
5801
+ 403: {
5802
+ headers: {
5803
+ [name: string]: unknown;
5804
+ };
5805
+ content: {
5806
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5807
+ };
5808
+ };
5809
+ /** @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. */
5810
+ 404: {
5811
+ headers: {
5812
+ [name: string]: unknown;
5813
+ };
5814
+ content: {
5815
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5816
+ };
5817
+ };
5818
+ /** @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. */
5819
+ 409: {
5820
+ headers: {
5821
+ [name: string]: unknown;
5822
+ };
5823
+ content: {
5824
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5825
+ };
5826
+ };
5827
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
5828
+ 429: {
5829
+ headers: {
5830
+ [name: string]: unknown;
5831
+ };
5832
+ content: {
5833
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5834
+ };
5835
+ };
5836
+ /** @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. */
5837
+ 503: {
5838
+ headers: {
5839
+ [name: string]: unknown;
5840
+ };
5841
+ content: {
5842
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5843
+ };
5844
+ };
5845
+ };
5846
+ };
5847
+ StopAllMyWatches: {
5848
+ parameters: {
5849
+ query?: never;
5850
+ header: {
5851
+ /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
5852
+ "X-Site-Key": string;
5853
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5854
+ "X-Market"?: string;
5855
+ /** @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. */
5856
+ "X-Country"?: string;
5857
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5858
+ "X-Locale"?: string;
5859
+ /** @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. */
5860
+ "X-Shopper-Ip"?: string;
5861
+ };
5862
+ path?: never;
5863
+ cookie?: never;
5864
+ };
5865
+ requestBody?: never;
5866
+ responses: {
5867
+ /** @description No Content */
5868
+ 204: {
5869
+ headers: {
5870
+ [name: string]: unknown;
5871
+ };
5872
+ content?: never;
5873
+ };
5874
+ /** @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. */
5875
+ 400: {
5876
+ headers: {
5877
+ [name: string]: unknown;
5878
+ };
5879
+ content: {
5880
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5881
+ };
5882
+ };
5883
+ /** @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. */
5884
+ 401: {
5885
+ headers: {
5886
+ [name: string]: unknown;
5887
+ };
5888
+ content: {
5889
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5890
+ };
5891
+ };
5892
+ /** @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). */
5893
+ 403: {
5894
+ headers: {
5895
+ [name: string]: unknown;
5896
+ };
5897
+ content: {
5898
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5899
+ };
5900
+ };
5901
+ /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
5902
+ 404: {
5903
+ headers: {
5904
+ [name: string]: unknown;
5905
+ };
5906
+ content: {
5907
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5908
+ };
5909
+ };
5910
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
5911
+ 429: {
5912
+ headers: {
5913
+ [name: string]: unknown;
5914
+ };
5915
+ content: {
5916
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5917
+ };
5918
+ };
5919
+ /** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
5920
+ 503: {
5921
+ headers: {
5922
+ [name: string]: unknown;
5923
+ };
5924
+ content: {
5925
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5926
+ };
5927
+ };
5928
+ };
5929
+ };
5930
+ CancelMyWatch: {
5931
+ parameters: {
5932
+ query?: never;
5933
+ header: {
5934
+ /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
5935
+ "X-Site-Key": string;
5936
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5937
+ "X-Market"?: string;
5938
+ /** @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. */
5939
+ "X-Country"?: string;
5940
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5941
+ "X-Locale"?: string;
5942
+ /** @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. */
5943
+ "X-Shopper-Ip"?: string;
5944
+ };
5945
+ path: {
5946
+ id: string;
5947
+ };
5948
+ cookie?: never;
5949
+ };
5950
+ requestBody?: never;
5951
+ responses: {
5952
+ /** @description No Content */
5953
+ 204: {
5954
+ headers: {
5955
+ [name: string]: unknown;
5956
+ };
5957
+ content?: never;
5958
+ };
5959
+ /** @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. */
5960
+ 400: {
5961
+ headers: {
5962
+ [name: string]: unknown;
5963
+ };
5964
+ content: {
5965
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5966
+ };
5967
+ };
5968
+ /** @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. */
5969
+ 401: {
5970
+ headers: {
5971
+ [name: string]: unknown;
5972
+ };
5973
+ content: {
5974
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5975
+ };
5976
+ };
5977
+ /** @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). */
5978
+ 403: {
5979
+ headers: {
5980
+ [name: string]: unknown;
5981
+ };
5982
+ content: {
5983
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5984
+ };
5985
+ };
5986
+ /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
5987
+ 404: {
5988
+ headers: {
5989
+ [name: string]: unknown;
5990
+ };
5991
+ content: {
5992
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
5993
+ };
5994
+ };
5995
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
5996
+ 429: {
5997
+ headers: {
5998
+ [name: string]: unknown;
5999
+ };
6000
+ content: {
6001
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6002
+ };
6003
+ };
6004
+ /** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
6005
+ 503: {
6006
+ headers: {
6007
+ [name: string]: unknown;
6008
+ };
6009
+ content: {
6010
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6011
+ };
6012
+ };
6013
+ };
6014
+ };
6015
+ GetOrder: {
6016
+ parameters: {
6017
+ query?: never;
6018
+ header: {
6019
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6020
+ "X-Site-Key": string;
6021
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
6022
+ "X-Market"?: string;
6023
+ /** @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. */
6024
+ "X-Country"?: string;
6025
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
6026
+ "X-Locale"?: string;
6027
+ /** @description Optional. When it names the attempt's cart, the answer carries the order's access token (complete) or opens the order (orders). */
6028
+ "X-Cart-Token"?: string;
6029
+ /** @description The order's access token, from the completion answer. A header only — never a query parameter. */
6030
+ "X-Order-Token"?: string;
6031
+ /** @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. */
6032
+ "X-Shopper-Session"?: string;
6033
+ };
6034
+ path: {
6035
+ orderId: string;
6036
+ };
6037
+ cookie?: never;
6038
+ };
6039
+ requestBody?: never;
6040
+ responses: {
6041
+ /** @description OK */
6042
+ 200: {
6043
+ headers: {
6044
+ [name: string]: unknown;
6045
+ };
6046
+ content: {
6047
+ "application/json": components["schemas"]["OrderDto"];
6048
+ };
6049
+ };
6050
+ /** @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. */
6051
+ 400: {
6052
+ headers: {
6053
+ [name: string]: unknown;
6054
+ };
6055
+ content: {
6056
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6057
+ };
6058
+ };
6059
+ /** @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. */
6060
+ 401: {
6061
+ headers: {
6062
+ [name: string]: unknown;
6063
+ };
6064
+ content: {
6065
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6066
+ };
6067
+ };
6068
+ /** @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). */
6069
+ 403: {
6070
+ headers: {
6071
+ [name: string]: unknown;
6072
+ };
6073
+ content: {
6074
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6075
+ };
6076
+ };
6077
+ /** @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). */
6078
+ 404: {
6079
+ headers: {
6080
+ [name: string]: unknown;
6081
+ };
6082
+ content: {
6083
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6084
+ };
6085
+ };
6086
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
6087
+ 429: {
6088
+ headers: {
6089
+ [name: string]: unknown;
6090
+ };
6091
+ content: {
6092
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6093
+ };
6094
+ };
6095
+ /** @description problem+json. SITE_KEYS_SYNCING (a secret key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
6096
+ 503: {
6097
+ headers: {
6098
+ [name: string]: unknown;
6099
+ };
6100
+ content: {
6101
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6102
+ };
6103
+ };
6104
+ };
6105
+ };
6106
+ ListProducts: {
6107
+ parameters: {
6108
+ query?: {
6109
+ /** @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. */
6110
+ q?: string;
6111
+ /** @description 1-based page. page × pageSize must not exceed 10000 (default pageSize 24, max 100). */
6112
+ page?: number;
6113
+ /** @description Items per page, 1–100. Out of range is a 400 with code INVALID_PAGE. */
5212
6114
  pageSize?: number;
5213
6115
  /** @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
6116
  sort?: "name_asc" | "newest" | "popular" | "price_asc" | "price_desc" | "recommended" | "relevance";
@@ -5216,10 +6118,279 @@ export interface operations {
5216
6118
  filter?: {
5217
6119
  [key: string]: string;
5218
6120
  };
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;
6121
+ /** @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. */
6122
+ origin?: "other" | "recent" | "suggestion" | "typed";
6123
+ /** @description Narrow to a collection by slug path or id. An unknown one is answered with a COLLECTION_UNKNOWN warning, not a 404. */
6124
+ collection?: string;
6125
+ };
6126
+ header: {
6127
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6128
+ "X-Site-Key": string;
6129
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
6130
+ "X-Market"?: string;
6131
+ /** @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. */
6132
+ "X-Country"?: string;
6133
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
6134
+ "X-Locale"?: string;
6135
+ /** @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. */
6136
+ "X-Shopper-Session"?: string;
6137
+ };
6138
+ path?: never;
6139
+ cookie?: never;
6140
+ };
6141
+ requestBody?: never;
6142
+ responses: {
6143
+ /** @description OK */
6144
+ 200: {
6145
+ headers: {
6146
+ [name: string]: unknown;
6147
+ };
6148
+ content: {
6149
+ "application/json": components["schemas"]["ListingResponse"];
6150
+ };
6151
+ };
6152
+ /** @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). */
6153
+ 400: {
6154
+ headers: {
6155
+ [name: string]: unknown;
6156
+ };
6157
+ content: {
6158
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6159
+ };
6160
+ };
6161
+ /** @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. */
6162
+ 401: {
6163
+ headers: {
6164
+ [name: string]: unknown;
6165
+ };
6166
+ content: {
6167
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6168
+ };
6169
+ };
6170
+ /** @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. */
6171
+ 403: {
6172
+ headers: {
6173
+ [name: string]: unknown;
6174
+ };
6175
+ content: {
6176
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6177
+ };
6178
+ };
6179
+ /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
6180
+ 404: {
6181
+ headers: {
6182
+ [name: string]: unknown;
6183
+ };
6184
+ content: {
6185
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6186
+ };
6187
+ };
6188
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
6189
+ 429: {
6190
+ headers: {
6191
+ [name: string]: unknown;
6192
+ };
6193
+ content: {
6194
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6195
+ };
6196
+ };
6197
+ /** @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. */
6198
+ 503: {
6199
+ headers: {
6200
+ [name: string]: unknown;
6201
+ };
6202
+ content: {
6203
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6204
+ };
6205
+ };
6206
+ };
6207
+ };
6208
+ GetProductBySku: {
6209
+ parameters: {
6210
+ query?: never;
6211
+ header: {
6212
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6213
+ "X-Site-Key": string;
6214
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
6215
+ "X-Market"?: string;
6216
+ /** @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. */
6217
+ "X-Country"?: string;
6218
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
6219
+ "X-Locale"?: string;
6220
+ /** @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. */
6221
+ "X-Shopper-Session"?: string;
6222
+ };
6223
+ path: {
6224
+ sku: string;
6225
+ };
6226
+ cookie?: never;
6227
+ };
6228
+ requestBody?: never;
6229
+ responses: {
6230
+ /** @description OK */
6231
+ 200: {
6232
+ headers: {
6233
+ [name: string]: unknown;
6234
+ };
6235
+ content: {
6236
+ "application/json": components["schemas"]["ProductDto"];
6237
+ };
6238
+ };
6239
+ /** @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). */
6240
+ 400: {
6241
+ headers: {
6242
+ [name: string]: unknown;
6243
+ };
6244
+ content: {
6245
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6246
+ };
6247
+ };
6248
+ /** @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. */
6249
+ 401: {
6250
+ headers: {
6251
+ [name: string]: unknown;
6252
+ };
6253
+ content: {
6254
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6255
+ };
6256
+ };
6257
+ /** @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. */
6258
+ 403: {
6259
+ headers: {
6260
+ [name: string]: unknown;
6261
+ };
6262
+ content: {
6263
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6264
+ };
6265
+ };
6266
+ /** @description problem+json. PRODUCT_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
6267
+ 404: {
6268
+ headers: {
6269
+ [name: string]: unknown;
6270
+ };
6271
+ content: {
6272
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6273
+ };
6274
+ };
6275
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
6276
+ 429: {
6277
+ headers: {
6278
+ [name: string]: unknown;
6279
+ };
6280
+ content: {
6281
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6282
+ };
6283
+ };
6284
+ /** @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. */
6285
+ 503: {
6286
+ headers: {
6287
+ [name: string]: unknown;
6288
+ };
6289
+ content: {
6290
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6291
+ };
6292
+ };
6293
+ };
6294
+ };
6295
+ SearchFacetValues: {
6296
+ parameters: {
6297
+ query?: {
6298
+ /** @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). */
6299
+ q?: string;
6300
+ /** @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. */
6301
+ filter?: {
6302
+ [key: string]: string;
6303
+ };
6304
+ };
6305
+ header: {
6306
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6307
+ "X-Site-Key": string;
6308
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
6309
+ "X-Market"?: string;
6310
+ /** @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. */
6311
+ "X-Country"?: string;
6312
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
6313
+ "X-Locale"?: string;
6314
+ /** @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. */
6315
+ "X-Shopper-Session"?: string;
6316
+ };
6317
+ path: {
6318
+ key: string;
6319
+ };
6320
+ cookie?: never;
6321
+ };
6322
+ requestBody?: never;
6323
+ responses: {
6324
+ /** @description OK */
6325
+ 200: {
6326
+ headers: {
6327
+ [name: string]: unknown;
6328
+ };
6329
+ content: {
6330
+ "application/json": components["schemas"]["FacetValuesResponse"];
6331
+ };
6332
+ };
6333
+ /** @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). */
6334
+ 400: {
6335
+ headers: {
6336
+ [name: string]: unknown;
6337
+ };
6338
+ content: {
6339
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6340
+ };
6341
+ };
6342
+ /** @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. */
6343
+ 401: {
6344
+ headers: {
6345
+ [name: string]: unknown;
6346
+ };
6347
+ content: {
6348
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6349
+ };
6350
+ };
6351
+ /** @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. */
6352
+ 403: {
6353
+ headers: {
6354
+ [name: string]: unknown;
6355
+ };
6356
+ content: {
6357
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6358
+ };
6359
+ };
6360
+ /** @description problem+json. FACET_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
6361
+ 404: {
6362
+ headers: {
6363
+ [name: string]: unknown;
6364
+ };
6365
+ content: {
6366
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6367
+ };
6368
+ };
6369
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
6370
+ 429: {
6371
+ headers: {
6372
+ [name: string]: unknown;
6373
+ };
6374
+ content: {
6375
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6376
+ };
6377
+ };
6378
+ /** @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. */
6379
+ 503: {
6380
+ headers: {
6381
+ [name: string]: unknown;
6382
+ };
6383
+ content: {
6384
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6385
+ };
6386
+ };
6387
+ };
6388
+ };
6389
+ GetProduct: {
6390
+ parameters: {
6391
+ query?: {
6392
+ /** @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. */
6393
+ variant?: string;
5223
6394
  };
5224
6395
  header: {
5225
6396
  /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
@@ -5233,7 +6404,9 @@ export interface operations {
5233
6404
  /** @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
6405
  "X-Shopper-Session"?: string;
5235
6406
  };
5236
- path?: never;
6407
+ path: {
6408
+ slugOrId: string;
6409
+ };
5237
6410
  cookie?: never;
5238
6411
  };
5239
6412
  requestBody?: never;
@@ -5244,10 +6417,10 @@ export interface operations {
5244
6417
  [name: string]: unknown;
5245
6418
  };
5246
6419
  content: {
5247
- "application/json": components["schemas"]["ListingResponse"];
6420
+ "application/json": components["schemas"]["ProductDto"];
5248
6421
  };
5249
6422
  };
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). */
6423
+ /** @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
6424
  400: {
5252
6425
  headers: {
5253
6426
  [name: string]: unknown;
@@ -5274,7 +6447,7 @@ export interface operations {
5274
6447
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5275
6448
  };
5276
6449
  };
5277
- /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
6450
+ /** @description problem+json. PRODUCT_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
5278
6451
  404: {
5279
6452
  headers: {
5280
6453
  [name: string]: unknown;
@@ -5303,9 +6476,18 @@ export interface operations {
5303
6476
  };
5304
6477
  };
5305
6478
  };
5306
- GetProductBySku: {
6479
+ ListProductVariants: {
5307
6480
  parameters: {
5308
- query?: never;
6481
+ query?: {
6482
+ /** @description 1-based page. page × pageSize must not exceed 10000 (default pageSize 50, max 100). */
6483
+ page?: number;
6484
+ /** @description Items per page, 1–100. Out of range is a 400 with code INVALID_PAGE. */
6485
+ pageSize?: number;
6486
+ /** @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). */
6487
+ filter?: {
6488
+ [key: string]: string;
6489
+ };
6490
+ };
5309
6491
  header: {
5310
6492
  /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
5311
6493
  "X-Site-Key": string;
@@ -5319,7 +6501,7 @@ export interface operations {
5319
6501
  "X-Shopper-Session"?: string;
5320
6502
  };
5321
6503
  path: {
5322
- sku: string;
6504
+ slugOrId: string;
5323
6505
  };
5324
6506
  cookie?: never;
5325
6507
  };
@@ -5331,10 +6513,10 @@ export interface operations {
5331
6513
  [name: string]: unknown;
5332
6514
  };
5333
6515
  content: {
5334
- "application/json": components["schemas"]["ProductDto"];
6516
+ "application/json": components["schemas"]["VariantPageDto"];
5335
6517
  };
5336
6518
  };
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). */
6519
+ /** @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
6520
  400: {
5339
6521
  headers: {
5340
6522
  [name: string]: unknown;
@@ -5390,15 +6572,11 @@ export interface operations {
5390
6572
  };
5391
6573
  };
5392
6574
  };
5393
- SearchFacetValues: {
6575
+ Suggest: {
5394
6576
  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
- };
6577
+ query: {
6578
+ /** @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. */
6579
+ q: string;
5402
6580
  };
5403
6581
  header: {
5404
6582
  /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
@@ -5412,9 +6590,7 @@ export interface operations {
5412
6590
  /** @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
6591
  "X-Shopper-Session"?: string;
5414
6592
  };
5415
- path: {
5416
- key: string;
5417
- };
6593
+ path?: never;
5418
6594
  cookie?: never;
5419
6595
  };
5420
6596
  requestBody?: never;
@@ -5425,10 +6601,10 @@ export interface operations {
5425
6601
  [name: string]: unknown;
5426
6602
  };
5427
6603
  content: {
5428
- "application/json": components["schemas"]["FacetValuesResponse"];
6604
+ "application/json": components["schemas"]["SuggestResponse"];
5429
6605
  };
5430
6606
  };
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). */
6607
+ /** @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
6608
  400: {
5433
6609
  headers: {
5434
6610
  [name: string]: unknown;
@@ -5455,7 +6631,7 @@ export interface operations {
5455
6631
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5456
6632
  };
5457
6633
  };
5458
- /** @description problem+json. FACET_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
6634
+ /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
5459
6635
  404: {
5460
6636
  headers: {
5461
6637
  [name: string]: unknown;
@@ -5484,14 +6660,11 @@ export interface operations {
5484
6660
  };
5485
6661
  };
5486
6662
  };
5487
- GetProduct: {
6663
+ GetSession: {
5488
6664
  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
- };
6665
+ query?: never;
5493
6666
  header: {
5494
- /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6667
+ /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
5495
6668
  "X-Site-Key": string;
5496
6669
  /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5497
6670
  "X-Market"?: string;
@@ -5499,12 +6672,10 @@ export interface operations {
5499
6672
  "X-Country"?: string;
5500
6673
  /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5501
6674
  "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;
6675
+ /** @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. */
6676
+ "X-Shopper-Ip"?: string;
5507
6677
  };
6678
+ path?: never;
5508
6679
  cookie?: never;
5509
6680
  };
5510
6681
  requestBody?: never;
@@ -5515,10 +6686,10 @@ export interface operations {
5515
6686
  [name: string]: unknown;
5516
6687
  };
5517
6688
  content: {
5518
- "application/json": components["schemas"]["ProductDto"];
6689
+ "application/json": components["schemas"]["SessionDto"];
5519
6690
  };
5520
6691
  };
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). */
6692
+ /** @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
6693
  400: {
5523
6694
  headers: {
5524
6695
  [name: string]: unknown;
@@ -5527,7 +6698,7 @@ export interface operations {
5527
6698
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5528
6699
  };
5529
6700
  };
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. */
6701
+ /** @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
6702
  401: {
5532
6703
  headers: {
5533
6704
  [name: string]: unknown;
@@ -5536,7 +6707,7 @@ export interface operations {
5536
6707
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5537
6708
  };
5538
6709
  };
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. */
6710
+ /** @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
6711
  403: {
5541
6712
  headers: {
5542
6713
  [name: string]: unknown;
@@ -5545,7 +6716,7 @@ export interface operations {
5545
6716
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5546
6717
  };
5547
6718
  };
5548
- /** @description problem+json. PRODUCT_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
6719
+ /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts. Works on a paused site (no SITE_INACTIVE). */
5549
6720
  404: {
5550
6721
  headers: {
5551
6722
  [name: string]: unknown;
@@ -5563,7 +6734,7 @@ export interface operations {
5563
6734
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5564
6735
  };
5565
6736
  };
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. */
6737
+ /** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
5567
6738
  503: {
5568
6739
  headers: {
5569
6740
  [name: string]: unknown;
@@ -5574,20 +6745,11 @@ export interface operations {
5574
6745
  };
5575
6746
  };
5576
6747
  };
5577
- ListProductVariants: {
6748
+ SwitchPrincipal: {
5578
6749
  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
- };
6750
+ query?: never;
5589
6751
  header: {
5590
- /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6752
+ /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
5591
6753
  "X-Site-Key": string;
5592
6754
  /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5593
6755
  "X-Market"?: string;
@@ -5595,15 +6757,17 @@ export interface operations {
5595
6757
  "X-Country"?: string;
5596
6758
  /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5597
6759
  "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;
6760
+ /** @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. */
6761
+ "X-Shopper-Ip"?: string;
5603
6762
  };
6763
+ path?: never;
5604
6764
  cookie?: never;
5605
6765
  };
5606
- requestBody?: never;
6766
+ requestBody: {
6767
+ content: {
6768
+ "application/json": components["schemas"]["SwitchPrincipalRequest"];
6769
+ };
6770
+ };
5607
6771
  responses: {
5608
6772
  /** @description OK */
5609
6773
  200: {
@@ -5611,10 +6775,10 @@ export interface operations {
5611
6775
  [name: string]: unknown;
5612
6776
  };
5613
6777
  content: {
5614
- "application/json": components["schemas"]["VariantPageDto"];
6778
+ "application/json": components["schemas"]["SignedInDto"];
5615
6779
  };
5616
6780
  };
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). */
6781
+ /** @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
6782
  400: {
5619
6783
  headers: {
5620
6784
  [name: string]: unknown;
@@ -5623,7 +6787,7 @@ export interface operations {
5623
6787
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5624
6788
  };
5625
6789
  };
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. */
6790
+ /** @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
6791
  401: {
5628
6792
  headers: {
5629
6793
  [name: string]: unknown;
@@ -5632,7 +6796,7 @@ export interface operations {
5632
6796
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5633
6797
  };
5634
6798
  };
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. */
6799
+ /** @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
6800
  403: {
5637
6801
  headers: {
5638
6802
  [name: string]: unknown;
@@ -5641,7 +6805,7 @@ export interface operations {
5641
6805
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5642
6806
  };
5643
6807
  };
5644
- /** @description problem+json. PRODUCT_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
6808
+ /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
5645
6809
  404: {
5646
6810
  headers: {
5647
6811
  [name: string]: unknown;
@@ -5659,7 +6823,7 @@ export interface operations {
5659
6823
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5660
6824
  };
5661
6825
  };
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. */
6826
+ /** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
5663
6827
  503: {
5664
6828
  headers: {
5665
6829
  [name: string]: unknown;
@@ -5670,12 +6834,9 @@ export interface operations {
5670
6834
  };
5671
6835
  };
5672
6836
  };
5673
- Suggest: {
6837
+ GetShopperState: {
5674
6838
  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
- };
6839
+ query?: never;
5679
6840
  header: {
5680
6841
  /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
5681
6842
  "X-Site-Key": string;
@@ -5685,7 +6846,9 @@ export interface operations {
5685
6846
  "X-Country"?: string;
5686
6847
  /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5687
6848
  "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. */
6849
+ /** @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. */
6850
+ "X-Shopper-Token"?: string;
6851
+ /** @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
6852
  "X-Shopper-Session"?: string;
5690
6853
  };
5691
6854
  path?: never;
@@ -5699,10 +6862,10 @@ export interface operations {
5699
6862
  [name: string]: unknown;
5700
6863
  };
5701
6864
  content: {
5702
- "application/json": components["schemas"]["SuggestResponse"];
6865
+ "application/json": components["schemas"]["ShopperStateDto"];
5703
6866
  };
5704
6867
  };
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). */
6868
+ /** @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
6869
  400: {
5707
6870
  headers: {
5708
6871
  [name: string]: unknown;
@@ -5720,7 +6883,7 @@ export interface operations {
5720
6883
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5721
6884
  };
5722
6885
  };
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. */
6886
+ /** @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
6887
  403: {
5725
6888
  headers: {
5726
6889
  [name: string]: unknown;
@@ -5738,6 +6901,15 @@ export interface operations {
5738
6901
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5739
6902
  };
5740
6903
  };
6904
+ /** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
6905
+ 409: {
6906
+ headers: {
6907
+ [name: string]: unknown;
6908
+ };
6909
+ content: {
6910
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
6911
+ };
6912
+ };
5741
6913
  /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
5742
6914
  429: {
5743
6915
  headers: {
@@ -5758,11 +6930,11 @@ export interface operations {
5758
6930
  };
5759
6931
  };
5760
6932
  };
5761
- GetSession: {
6933
+ DeleteShopperState: {
5762
6934
  parameters: {
5763
6935
  query?: never;
5764
6936
  header: {
5765
- /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
6937
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
5766
6938
  "X-Site-Key": string;
5767
6939
  /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5768
6940
  "X-Market"?: string;
@@ -5770,7 +6942,11 @@ export interface operations {
5770
6942
  "X-Country"?: string;
5771
6943
  /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5772
6944
  "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. */
6945
+ /** @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. */
6946
+ "X-Shopper-Token"?: string;
6947
+ /** @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. */
6948
+ "X-Shopper-Session"?: string;
6949
+ /** @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
6950
  "X-Shopper-Ip"?: string;
5775
6951
  };
5776
6952
  path?: never;
@@ -5778,16 +6954,14 @@ export interface operations {
5778
6954
  };
5779
6955
  requestBody?: never;
5780
6956
  responses: {
5781
- /** @description OK */
5782
- 200: {
6957
+ /** @description No Content */
6958
+ 204: {
5783
6959
  headers: {
5784
6960
  [name: string]: unknown;
5785
6961
  };
5786
- content: {
5787
- "application/json": components["schemas"]["SessionDto"];
5788
- };
6962
+ content?: never;
5789
6963
  };
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. */
6964
+ /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip). */
5791
6965
  400: {
5792
6966
  headers: {
5793
6967
  [name: string]: unknown;
@@ -5796,7 +6970,7 @@ export interface operations {
5796
6970
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5797
6971
  };
5798
6972
  };
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. */
6973
+ /** @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
6974
  401: {
5801
6975
  headers: {
5802
6976
  [name: string]: unknown;
@@ -5805,7 +6979,7 @@ export interface operations {
5805
6979
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5806
6980
  };
5807
6981
  };
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). */
6982
+ /** @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
6983
  403: {
5810
6984
  headers: {
5811
6985
  [name: string]: unknown;
@@ -5814,7 +6988,7 @@ export interface operations {
5814
6988
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5815
6989
  };
5816
6990
  };
5817
- /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts. Works on a paused site (no SITE_INACTIVE). */
6991
+ /** @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
6992
  404: {
5819
6993
  headers: {
5820
6994
  [name: string]: unknown;
@@ -5823,7 +6997,16 @@ export interface operations {
5823
6997
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5824
6998
  };
5825
6999
  };
5826
- /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
7000
+ /** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
7001
+ 409: {
7002
+ headers: {
7003
+ [name: string]: unknown;
7004
+ };
7005
+ content: {
7006
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
7007
+ };
7008
+ };
7009
+ /** @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
7010
  429: {
5828
7011
  headers: {
5829
7012
  [name: string]: unknown;
@@ -5832,7 +7015,7 @@ export interface operations {
5832
7015
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5833
7016
  };
5834
7017
  };
5835
- /** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
7018
+ /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
5836
7019
  503: {
5837
7020
  headers: {
5838
7021
  [name: string]: unknown;
@@ -5843,11 +7026,11 @@ export interface operations {
5843
7026
  };
5844
7027
  };
5845
7028
  };
5846
- SwitchPrincipal: {
7029
+ GetShopperConsents: {
5847
7030
  parameters: {
5848
7031
  query?: never;
5849
7032
  header: {
5850
- /** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
7033
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
5851
7034
  "X-Site-Key": string;
5852
7035
  /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
5853
7036
  "X-Market"?: string;
@@ -5855,17 +7038,15 @@ export interface operations {
5855
7038
  "X-Country"?: string;
5856
7039
  /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
5857
7040
  "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;
7041
+ /** @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. */
7042
+ "X-Shopper-Token"?: string;
7043
+ /** @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. */
7044
+ "X-Shopper-Session"?: string;
5860
7045
  };
5861
7046
  path?: never;
5862
7047
  cookie?: never;
5863
7048
  };
5864
- requestBody: {
5865
- content: {
5866
- "application/json": components["schemas"]["SwitchPrincipalRequest"];
5867
- };
5868
- };
7049
+ requestBody?: never;
5869
7050
  responses: {
5870
7051
  /** @description OK */
5871
7052
  200: {
@@ -5873,7 +7054,7 @@ export interface operations {
5873
7054
  [name: string]: unknown;
5874
7055
  };
5875
7056
  content: {
5876
- "application/json": components["schemas"]["SignedInDto"];
7057
+ "application/json": components["schemas"]["ConsentReadDto"];
5877
7058
  };
5878
7059
  };
5879
7060
  /** @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 +7066,7 @@ export interface operations {
5885
7066
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5886
7067
  };
5887
7068
  };
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). */
7069
+ /** @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
7070
  401: {
5890
7071
  headers: {
5891
7072
  [name: string]: unknown;
@@ -5894,8 +7075,17 @@ export interface operations {
5894
7075
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5895
7076
  };
5896
7077
  };
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: {
7078
+ /** @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). */
7079
+ 403: {
7080
+ headers: {
7081
+ [name: string]: unknown;
7082
+ };
7083
+ content: {
7084
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
7085
+ };
7086
+ };
7087
+ /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
7088
+ 404: {
5899
7089
  headers: {
5900
7090
  [name: string]: unknown;
5901
7091
  };
@@ -5903,8 +7093,8 @@ export interface operations {
5903
7093
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5904
7094
  };
5905
7095
  };
5906
- /** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
5907
- 404: {
7096
+ /** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
7097
+ 409: {
5908
7098
  headers: {
5909
7099
  [name: string]: unknown;
5910
7100
  };
@@ -5921,7 +7111,7 @@ export interface operations {
5921
7111
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5922
7112
  };
5923
7113
  };
5924
- /** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
7114
+ /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
5925
7115
  503: {
5926
7116
  headers: {
5927
7117
  [name: string]: unknown;
@@ -5932,7 +7122,7 @@ export interface operations {
5932
7122
  };
5933
7123
  };
5934
7124
  };
5935
- GetShopperState: {
7125
+ PutShopperConsents: {
5936
7126
  parameters: {
5937
7127
  query?: never;
5938
7128
  header: {
@@ -5948,11 +7138,17 @@ export interface operations {
5948
7138
  "X-Shopper-Token"?: string;
5949
7139
  /** @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
7140
  "X-Shopper-Session"?: string;
7141
+ /** @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. */
7142
+ "X-Shopper-Ip"?: string;
5951
7143
  };
5952
7144
  path?: never;
5953
7145
  cookie?: never;
5954
7146
  };
5955
- requestBody?: never;
7147
+ requestBody: {
7148
+ content: {
7149
+ "application/json": components["schemas"]["ConsentPutRequest"];
7150
+ };
7151
+ };
5956
7152
  responses: {
5957
7153
  /** @description OK */
5958
7154
  200: {
@@ -5960,10 +7156,10 @@ export interface operations {
5960
7156
  [name: string]: unknown;
5961
7157
  };
5962
7158
  content: {
5963
- "application/json": components["schemas"]["ShopperStateDto"];
7159
+ "application/json": components["schemas"]["ConsentAnswerDto"];
5964
7160
  };
5965
7161
  };
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). */
7162
+ /** @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
7163
  400: {
5968
7164
  headers: {
5969
7165
  [name: string]: unknown;
@@ -5990,7 +7186,7 @@ export interface operations {
5990
7186
  "application/problem+json": components["schemas"]["StorefrontProblem"];
5991
7187
  };
5992
7188
  };
5993
- /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
7189
+ /** @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
7190
  404: {
5995
7191
  headers: {
5996
7192
  [name: string]: unknown;
@@ -6008,7 +7204,7 @@ export interface operations {
6008
7204
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6009
7205
  };
6010
7206
  };
6011
- /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
7207
+ /** @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
7208
  429: {
6013
7209
  headers: {
6014
7210
  [name: string]: unknown;
@@ -6017,7 +7213,7 @@ export interface operations {
6017
7213
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6018
7214
  };
6019
7215
  };
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. */
7216
+ /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
6021
7217
  503: {
6022
7218
  headers: {
6023
7219
  [name: string]: unknown;
@@ -6028,9 +7224,11 @@ export interface operations {
6028
7224
  };
6029
7225
  };
6030
7226
  };
6031
- DeleteShopperState: {
7227
+ GetShopperConsentHistory: {
6032
7228
  parameters: {
6033
- query?: never;
7229
+ query?: {
7230
+ cursor?: string;
7231
+ };
6034
7232
  header: {
6035
7233
  /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6036
7234
  "X-Site-Key": string;
@@ -6044,22 +7242,22 @@ export interface operations {
6044
7242
  "X-Shopper-Token"?: string;
6045
7243
  /** @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
7244
  "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
7245
  };
6050
7246
  path?: never;
6051
7247
  cookie?: never;
6052
7248
  };
6053
7249
  requestBody?: never;
6054
7250
  responses: {
6055
- /** @description No Content */
6056
- 204: {
7251
+ /** @description OK */
7252
+ 200: {
6057
7253
  headers: {
6058
7254
  [name: string]: unknown;
6059
7255
  };
6060
- content?: never;
7256
+ content: {
7257
+ "application/json": components["schemas"]["ConsentHistoryPageDto"];
7258
+ };
6061
7259
  };
6062
- /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip). */
7260
+ /** @description problem+json. INVALID_CURSOR (a cursor this API did not issue for this token). */
6063
7261
  400: {
6064
7262
  headers: {
6065
7263
  [name: string]: unknown;
@@ -6086,7 +7284,7 @@ export interface operations {
6086
7284
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6087
7285
  };
6088
7286
  };
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. */
7287
+ /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
6090
7288
  404: {
6091
7289
  headers: {
6092
7290
  [name: string]: unknown;
@@ -6104,7 +7302,7 @@ export interface operations {
6104
7302
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6105
7303
  };
6106
7304
  };
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. */
7305
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
6108
7306
  429: {
6109
7307
  headers: {
6110
7308
  [name: string]: unknown;
@@ -6124,7 +7322,7 @@ export interface operations {
6124
7322
  };
6125
7323
  };
6126
7324
  };
6127
- GetShopperConsents: {
7325
+ GetShopperFavorites: {
6128
7326
  parameters: {
6129
7327
  query?: never;
6130
7328
  header: {
@@ -6152,10 +7350,10 @@ export interface operations {
6152
7350
  [name: string]: unknown;
6153
7351
  };
6154
7352
  content: {
6155
- "application/json": components["schemas"]["ConsentReadDto"];
7353
+ "application/json": components["schemas"]["FavoritesDto"];
6156
7354
  };
6157
7355
  };
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. */
7356
+ /** @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
7357
  400: {
6160
7358
  headers: {
6161
7359
  [name: string]: unknown;
@@ -6209,7 +7407,7 @@ export interface operations {
6209
7407
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6210
7408
  };
6211
7409
  };
6212
- /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
7410
+ /** @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
7411
  503: {
6214
7412
  headers: {
6215
7413
  [name: string]: unknown;
@@ -6220,7 +7418,7 @@ export interface operations {
6220
7418
  };
6221
7419
  };
6222
7420
  };
6223
- PutShopperConsents: {
7421
+ ClearShopperFavorites: {
6224
7422
  parameters: {
6225
7423
  query?: never;
6226
7424
  header: {
@@ -6242,22 +7440,16 @@ export interface operations {
6242
7440
  path?: never;
6243
7441
  cookie?: never;
6244
7442
  };
6245
- requestBody: {
6246
- content: {
6247
- "application/json": components["schemas"]["ConsentPutRequest"];
6248
- };
6249
- };
7443
+ requestBody?: never;
6250
7444
  responses: {
6251
- /** @description OK */
6252
- 200: {
7445
+ /** @description No Content */
7446
+ 204: {
6253
7447
  headers: {
6254
7448
  [name: string]: unknown;
6255
7449
  };
6256
- content: {
6257
- "application/json": components["schemas"]["ConsentAnswerDto"];
6258
- };
7450
+ content?: never;
6259
7451
  };
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). */
7452
+ /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip). */
6261
7453
  400: {
6262
7454
  headers: {
6263
7455
  [name: string]: unknown;
@@ -6284,7 +7476,7 @@ export interface operations {
6284
7476
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6285
7477
  };
6286
7478
  };
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. */
7479
+ /** @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
7480
  404: {
6289
7481
  headers: {
6290
7482
  [name: string]: unknown;
@@ -6322,11 +7514,9 @@ export interface operations {
6322
7514
  };
6323
7515
  };
6324
7516
  };
6325
- GetShopperConsentHistory: {
7517
+ AddShopperFavorite: {
6326
7518
  parameters: {
6327
- query?: {
6328
- cursor?: string;
6329
- };
7519
+ query?: never;
6330
7520
  header: {
6331
7521
  /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
6332
7522
  "X-Site-Key": string;
@@ -6340,11 +7530,17 @@ export interface operations {
6340
7530
  "X-Shopper-Token"?: string;
6341
7531
  /** @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
7532
  "X-Shopper-Session"?: string;
7533
+ /** @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. */
7534
+ "X-Shopper-Ip"?: string;
6343
7535
  };
6344
7536
  path?: never;
6345
7537
  cookie?: never;
6346
7538
  };
6347
- requestBody?: never;
7539
+ requestBody: {
7540
+ content: {
7541
+ "application/json": components["schemas"]["AddFavoriteRequest"];
7542
+ };
7543
+ };
6348
7544
  responses: {
6349
7545
  /** @description OK */
6350
7546
  200: {
@@ -6352,10 +7548,19 @@ export interface operations {
6352
7548
  [name: string]: unknown;
6353
7549
  };
6354
7550
  content: {
6355
- "application/json": components["schemas"]["ConsentHistoryPageDto"];
7551
+ "application/json": components["schemas"]["FavoriteItemAnswerDto"];
6356
7552
  };
6357
7553
  };
6358
- /** @description problem+json. INVALID_CURSOR (a cursor this API did not issue for this token). */
7554
+ /** @description Created */
7555
+ 201: {
7556
+ headers: {
7557
+ [name: string]: unknown;
7558
+ };
7559
+ content: {
7560
+ "application/json": components["schemas"]["FavoriteItemAnswerDto"];
7561
+ };
7562
+ };
7563
+ /** @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
7564
  400: {
6360
7565
  headers: {
6361
7566
  [name: string]: unknown;
@@ -6382,7 +7587,7 @@ export interface operations {
6382
7587
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6383
7588
  };
6384
7589
  };
6385
- /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
7590
+ /** @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
7591
  404: {
6387
7592
  headers: {
6388
7593
  [name: string]: unknown;
@@ -6391,7 +7596,7 @@ export interface operations {
6391
7596
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6392
7597
  };
6393
7598
  };
6394
- /** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
7599
+ /** @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
7600
  409: {
6396
7601
  headers: {
6397
7602
  [name: string]: unknown;
@@ -6400,7 +7605,7 @@ export interface operations {
6400
7605
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6401
7606
  };
6402
7607
  };
6403
- /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
7608
+ /** @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
7609
  429: {
6405
7610
  headers: {
6406
7611
  [name: string]: unknown;
@@ -6409,7 +7614,7 @@ export interface operations {
6409
7614
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6410
7615
  };
6411
7616
  };
6412
- /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
7617
+ /** @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
7618
  503: {
6414
7619
  headers: {
6415
7620
  [name: string]: unknown;
@@ -6420,7 +7625,7 @@ export interface operations {
6420
7625
  };
6421
7626
  };
6422
7627
  };
6423
- GetShopperFavorites: {
7628
+ RemoveShopperFavorite: {
6424
7629
  parameters: {
6425
7630
  query?: never;
6426
7631
  header: {
@@ -6436,22 +7641,24 @@ export interface operations {
6436
7641
  "X-Shopper-Token"?: string;
6437
7642
  /** @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
7643
  "X-Shopper-Session"?: string;
7644
+ /** @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. */
7645
+ "X-Shopper-Ip"?: string;
7646
+ };
7647
+ path: {
7648
+ itemId: string;
6439
7649
  };
6440
- path?: never;
6441
7650
  cookie?: never;
6442
7651
  };
6443
7652
  requestBody?: never;
6444
7653
  responses: {
6445
- /** @description OK */
6446
- 200: {
7654
+ /** @description No Content */
7655
+ 204: {
6447
7656
  headers: {
6448
7657
  [name: string]: unknown;
6449
7658
  };
6450
- content: {
6451
- "application/json": components["schemas"]["FavoritesDto"];
6452
- };
7659
+ content?: never;
6453
7660
  };
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). */
7661
+ /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip). */
6455
7662
  400: {
6456
7663
  headers: {
6457
7664
  [name: string]: unknown;
@@ -6478,7 +7685,7 @@ export interface operations {
6478
7685
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6479
7686
  };
6480
7687
  };
6481
- /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
7688
+ /** @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
7689
  404: {
6483
7690
  headers: {
6484
7691
  [name: string]: unknown;
@@ -6496,7 +7703,7 @@ export interface operations {
6496
7703
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6497
7704
  };
6498
7705
  };
6499
- /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
7706
+ /** @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
7707
  429: {
6501
7708
  headers: {
6502
7709
  [name: string]: unknown;
@@ -6505,7 +7712,7 @@ export interface operations {
6505
7712
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6506
7713
  };
6507
7714
  };
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. */
7715
+ /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
6509
7716
  503: {
6510
7717
  headers: {
6511
7718
  [name: string]: unknown;
@@ -6516,7 +7723,7 @@ export interface operations {
6516
7723
  };
6517
7724
  };
6518
7725
  };
6519
- ClearShopperFavorites: {
7726
+ ListShopperWatches: {
6520
7727
  parameters: {
6521
7728
  query?: never;
6522
7729
  header: {
@@ -6532,22 +7739,22 @@ export interface operations {
6532
7739
  "X-Shopper-Token"?: string;
6533
7740
  /** @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
7741
  "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
7742
  };
6538
7743
  path?: never;
6539
7744
  cookie?: never;
6540
7745
  };
6541
7746
  requestBody?: never;
6542
7747
  responses: {
6543
- /** @description No Content */
6544
- 204: {
7748
+ /** @description OK */
7749
+ 200: {
6545
7750
  headers: {
6546
7751
  [name: string]: unknown;
6547
7752
  };
6548
- content?: never;
7753
+ content: {
7754
+ "application/json": components["schemas"]["WatchListDto"];
7755
+ };
6549
7756
  };
6550
- /** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip). */
7757
+ /** @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
7758
  400: {
6552
7759
  headers: {
6553
7760
  [name: string]: unknown;
@@ -6574,7 +7781,7 @@ export interface operations {
6574
7781
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6575
7782
  };
6576
7783
  };
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. */
7784
+ /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
6578
7785
  404: {
6579
7786
  headers: {
6580
7787
  [name: string]: unknown;
@@ -6592,7 +7799,7 @@ export interface operations {
6592
7799
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6593
7800
  };
6594
7801
  };
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. */
7802
+ /** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
6596
7803
  429: {
6597
7804
  headers: {
6598
7805
  [name: string]: unknown;
@@ -6601,7 +7808,7 @@ export interface operations {
6601
7808
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6602
7809
  };
6603
7810
  };
6604
- /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
7811
+ /** @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
7812
  503: {
6606
7813
  headers: {
6607
7814
  [name: string]: unknown;
@@ -6612,7 +7819,7 @@ export interface operations {
6612
7819
  };
6613
7820
  };
6614
7821
  };
6615
- AddShopperFavorite: {
7822
+ CreateShopperWatch: {
6616
7823
  parameters: {
6617
7824
  query?: never;
6618
7825
  header: {
@@ -6636,7 +7843,7 @@ export interface operations {
6636
7843
  };
6637
7844
  requestBody: {
6638
7845
  content: {
6639
- "application/json": components["schemas"]["AddFavoriteRequest"];
7846
+ "application/json": components["schemas"]["CreateWatchRequest"];
6640
7847
  };
6641
7848
  };
6642
7849
  responses: {
@@ -6646,7 +7853,7 @@ export interface operations {
6646
7853
  [name: string]: unknown;
6647
7854
  };
6648
7855
  content: {
6649
- "application/json": components["schemas"]["FavoriteItemAnswerDto"];
7856
+ "application/json": components["schemas"]["WatchAnswerDto"];
6650
7857
  };
6651
7858
  };
6652
7859
  /** @description Created */
@@ -6655,10 +7862,10 @@ export interface operations {
6655
7862
  [name: string]: unknown;
6656
7863
  };
6657
7864
  content: {
6658
- "application/json": components["schemas"]["FavoriteItemAnswerDto"];
7865
+ "application/json": components["schemas"]["WatchAnswerDto"];
6659
7866
  };
6660
7867
  };
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). */
7868
+ /** @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
7869
  400: {
6663
7870
  headers: {
6664
7871
  [name: string]: unknown;
@@ -6685,7 +7892,7 @@ export interface operations {
6685
7892
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6686
7893
  };
6687
7894
  };
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. */
7895
+ /** @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
7896
  404: {
6690
7897
  headers: {
6691
7898
  [name: string]: unknown;
@@ -6694,7 +7901,7 @@ export interface operations {
6694
7901
  "application/problem+json": components["schemas"]["StorefrontProblem"];
6695
7902
  };
6696
7903
  };
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. */
7904
+ /** @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
7905
  409: {
6699
7906
  headers: {
6700
7907
  [name: string]: unknown;
@@ -6723,7 +7930,7 @@ export interface operations {
6723
7930
  };
6724
7931
  };
6725
7932
  };
6726
- RemoveShopperFavorite: {
7933
+ CancelShopperWatch: {
6727
7934
  parameters: {
6728
7935
  query?: never;
6729
7936
  header: {
@@ -6743,7 +7950,7 @@ export interface operations {
6743
7950
  "X-Shopper-Ip"?: string;
6744
7951
  };
6745
7952
  path: {
6746
- itemId: string;
7953
+ id: string;
6747
7954
  };
6748
7955
  cookie?: never;
6749
7956
  };
@@ -7013,4 +8220,100 @@ export interface operations {
7013
8220
  };
7014
8221
  };
7015
8222
  };
8223
+ CancelWatchByToken: {
8224
+ parameters: {
8225
+ query?: never;
8226
+ header: {
8227
+ /** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
8228
+ "X-Site-Key": string;
8229
+ /** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
8230
+ "X-Market"?: string;
8231
+ /** @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. */
8232
+ "X-Country"?: string;
8233
+ /** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
8234
+ "X-Locale"?: string;
8235
+ /** @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. */
8236
+ "X-Shopper-Ip"?: string;
8237
+ };
8238
+ path?: never;
8239
+ cookie?: never;
8240
+ };
8241
+ requestBody?: {
8242
+ content: {
8243
+ "application/json": null | components["schemas"]["CancelWatchRequest"];
8244
+ };
8245
+ };
8246
+ responses: {
8247
+ /** @description No Content */
8248
+ 204: {
8249
+ headers: {
8250
+ [name: string]: unknown;
8251
+ };
8252
+ content?: never;
8253
+ };
8254
+ /** @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. */
8255
+ 400: {
8256
+ headers: {
8257
+ [name: string]: unknown;
8258
+ };
8259
+ content: {
8260
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8261
+ };
8262
+ };
8263
+ /** @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. */
8264
+ 401: {
8265
+ headers: {
8266
+ [name: string]: unknown;
8267
+ };
8268
+ content: {
8269
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8270
+ };
8271
+ };
8272
+ /** @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. */
8273
+ 403: {
8274
+ headers: {
8275
+ [name: string]: unknown;
8276
+ };
8277
+ content: {
8278
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8279
+ };
8280
+ };
8281
+ /** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
8282
+ 404: {
8283
+ headers: {
8284
+ [name: string]: unknown;
8285
+ };
8286
+ content: {
8287
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8288
+ };
8289
+ };
8290
+ /** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper cancels on /v1/me/watches. */
8291
+ 409: {
8292
+ headers: {
8293
+ [name: string]: unknown;
8294
+ };
8295
+ content: {
8296
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8297
+ };
8298
+ };
8299
+ /** @description problem+json. RATE_LIMITED: the write limit per shopper IP; retryAfterSeconds and the Retry-After header say how long to wait. */
8300
+ 429: {
8301
+ headers: {
8302
+ [name: string]: unknown;
8303
+ };
8304
+ content: {
8305
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8306
+ };
8307
+ };
8308
+ /** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
8309
+ 503: {
8310
+ headers: {
8311
+ [name: string]: unknown;
8312
+ };
8313
+ content: {
8314
+ "application/problem+json": components["schemas"]["StorefrontProblem"];
8315
+ };
8316
+ };
8317
+ };
8318
+ };
7016
8319
  }