@aimee.shop/sdk 0.22.0-dev.219 → 0.23.0-dev.231

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.
@@ -2594,6 +2594,26 @@ export interface paths {
2594
2594
  patch?: never;
2595
2595
  trace?: never;
2596
2596
  };
2597
+ '/v1/users/me/store-memberships/accessible': {
2598
+ parameters: {
2599
+ query?: never;
2600
+ header?: never;
2601
+ path?: never;
2602
+ cookie?: never;
2603
+ };
2604
+ /**
2605
+ * Get the stores the caller can access in the current tenant
2606
+ * @description Returns stores the authenticated user can access based on TenantMembership.storeAccess scope and explicit StoreMemberships. Needs no permission.
2607
+ */
2608
+ get: operations['MyStoreMembershipsController_getMyAccessibleStores'];
2609
+ put?: never;
2610
+ post?: never;
2611
+ delete?: never;
2612
+ options?: never;
2613
+ head?: never;
2614
+ patch?: never;
2615
+ trace?: never;
2616
+ };
2597
2617
  '/v1/users/{userId}/store-memberships': {
2598
2618
  parameters: {
2599
2619
  query?: never;
@@ -7559,6 +7579,26 @@ export interface paths {
7559
7579
  patch?: never;
7560
7580
  trace?: never;
7561
7581
  };
7582
+ '/v1/carts/{id}/claim': {
7583
+ parameters: {
7584
+ query?: never;
7585
+ header?: never;
7586
+ path?: never;
7587
+ cookie?: never;
7588
+ };
7589
+ get?: never;
7590
+ put?: never;
7591
+ /**
7592
+ * Claim a guest cart on sign-in
7593
+ * @description Storefront only, with the customer access token. Merges the guest cart into the customer's newest active cart, or assigns it to the customer when they have none. Returns the cart the customer keeps; a merged guest cart is deleted.
7594
+ */
7595
+ post: operations['CartsController_claimCart'];
7596
+ delete?: never;
7597
+ options?: never;
7598
+ head?: never;
7599
+ patch?: never;
7600
+ trace?: never;
7601
+ };
7562
7602
  '/v1/carts/{id}/discounts/{code}': {
7563
7603
  parameters: {
7564
7604
  query?: never;
@@ -9194,26 +9234,6 @@ export interface paths {
9194
9234
  patch?: never;
9195
9235
  trace?: never;
9196
9236
  };
9197
- '/v1/search/categories': {
9198
- parameters: {
9199
- query?: never;
9200
- header?: never;
9201
- path?: never;
9202
- cookie?: never;
9203
- };
9204
- /**
9205
- * Search categories
9206
- * @description Search product categories for navigation and browsing
9207
- */
9208
- get: operations['SearchController_searchCategories'];
9209
- put?: never;
9210
- post?: never;
9211
- delete?: never;
9212
- options?: never;
9213
- head?: never;
9214
- patch?: never;
9215
- trace?: never;
9216
- };
9217
9237
  '/v1/search/suggest/{entityType}': {
9218
9238
  parameters: {
9219
9239
  query?: never;
@@ -9957,7 +9977,7 @@ export interface paths {
9957
9977
  put?: never;
9958
9978
  /**
9959
9979
  * Logout a customer
9960
- * @description Blacklists the access token and revokes it in Cognito. Requires customer JWT in Authorization header.
9980
+ * @description Blacklists the access token and revokes its refresh token in Cognito. Send the refresh token to revoke only this session; without it every refresh token of the customer is revoked. Requires customer JWT in Authorization header.
9961
9981
  */
9962
9982
  post: operations['StorefrontAuthController_logout'];
9963
9983
  delete?: never;
@@ -10081,7 +10101,7 @@ export interface paths {
10081
10101
  put?: never;
10082
10102
  /**
10083
10103
  * Change password while signed in
10084
- * @description Changes the authenticated customer password using the current password and Cognito access token. Other device refresh tokens are revoked; this access token remains valid until it expires.
10104
+ * @description Changes the authenticated customer password using the current password and Cognito access token. Every other session is signed out: their access tokens stop working and every refresh token is revoked. This access token stays valid until it expires; the response carries fresh tokens (with a new refresh token) for this session.
10085
10105
  */
10086
10106
  post: operations['StorefrontAuthController_changePassword'];
10087
10107
  delete?: never;
@@ -10566,6 +10586,26 @@ export interface paths {
10566
10586
  patch?: never;
10567
10587
  trace?: never;
10568
10588
  };
10589
+ '/v1/storefront/payment-methods/{paymentMethodId}/nonce': {
10590
+ parameters: {
10591
+ query?: never;
10592
+ header?: never;
10593
+ path?: never;
10594
+ cookie?: never;
10595
+ };
10596
+ get?: never;
10597
+ put?: never;
10598
+ /**
10599
+ * Get a single-use nonce for a saved Braintree card
10600
+ * @description Returns a nonce and BIN for 3D Secure on a saved Braintree card owned by the authenticated customer. The nonce is single use.
10601
+ */
10602
+ post: operations['StorefrontPaymentMethodsController_createNonce'];
10603
+ delete?: never;
10604
+ options?: never;
10605
+ head?: never;
10606
+ patch?: never;
10607
+ trace?: never;
10608
+ };
10569
10609
  '/v1/storefront/payment-methods/{paymentMethodId}': {
10570
10610
  parameters: {
10571
10611
  query?: never;
@@ -29217,10 +29257,15 @@ export interface components {
29217
29257
  */
29218
29258
  discountId: string;
29219
29259
  /**
29220
- * @description Discount code
29260
+ * @description Discount code; empty for an auto-applied discount
29221
29261
  * @example SAVE20
29222
29262
  */
29223
29263
  code: string;
29264
+ /**
29265
+ * @description Applied automatically, without a code
29266
+ * @example false
29267
+ */
29268
+ isAutoApplied: boolean;
29224
29269
  /**
29225
29270
  * @description Discount name
29226
29271
  * @example Summer Sale 20% Off
@@ -30903,10 +30948,20 @@ export interface components {
30903
30948
  };
30904
30949
  DiscountBreakdownDto: {
30905
30950
  /**
30906
- * @description Discount code
30951
+ * @description Discount code; empty for an auto-applied discount
30907
30952
  * @example SAVE10
30908
30953
  */
30909
30954
  code: string;
30955
+ /**
30956
+ * @description Discount ID
30957
+ * @example 550e8400-e29b-41d4-a716-446655440010
30958
+ */
30959
+ discountId?: string;
30960
+ /**
30961
+ * @description Applied automatically, without a code
30962
+ * @example false
30963
+ */
30964
+ isAutoApplied?: boolean;
30910
30965
  /**
30911
30966
  * @description Discount type
30912
30967
  * @example percent
@@ -34204,6 +34259,10 @@ export interface components {
34204
34259
  /** @description Customer password */
34205
34260
  password: string;
34206
34261
  };
34262
+ StorefrontLogoutBodyDto: {
34263
+ /** @description Refresh token of this session. With it only this session is revoked; without it every refresh token of the customer is revoked. */
34264
+ refreshToken?: string;
34265
+ };
34207
34266
  RefreshTokenBodyDto: {
34208
34267
  refreshToken: string;
34209
34268
  };
@@ -34811,6 +34870,22 @@ export interface components {
34811
34870
  /** @description Vaulted payment method id to set as default */
34812
34871
  paymentMethodId: string;
34813
34872
  };
34873
+ StorefrontPaymentMethodNonceDto: {
34874
+ /** @description Vaulted payment method ID */
34875
+ paymentMethodId: string;
34876
+ /** @description Single-use Braintree nonce for the saved card. Pass it to 3D Secure, then send the verified nonce as paymentMethodId on checkout complete. */
34877
+ nonce: string;
34878
+ /** @description Card BIN, for 3D Secure */
34879
+ bin?: string | null;
34880
+ /** @example visa */
34881
+ cardBrand?: string | null;
34882
+ /** @example 1111 */
34883
+ cardLastFour?: string | null;
34884
+ /** @example 12 */
34885
+ cardExpMonth?: number | null;
34886
+ /** @example 2030 */
34887
+ cardExpYear?: number | null;
34888
+ };
34814
34889
  StorefrontAddressSnapshotDto: {
34815
34890
  addressId?: string;
34816
34891
  firstName: string;
@@ -44453,6 +44528,33 @@ export interface operations {
44453
44528
  };
44454
44529
  };
44455
44530
  };
44531
+ MyStoreMembershipsController_getMyAccessibleStores: {
44532
+ parameters: {
44533
+ query?: never;
44534
+ header?: never;
44535
+ path?: never;
44536
+ cookie?: never;
44537
+ };
44538
+ requestBody?: never;
44539
+ responses: {
44540
+ /** @description Accessible stores retrieved successfully */
44541
+ 200: {
44542
+ headers: {
44543
+ [name: string]: unknown;
44544
+ };
44545
+ content: {
44546
+ 'application/json': components['schemas']['UserStoreMembershipDto'][];
44547
+ };
44548
+ };
44549
+ /** @description Unauthorized */
44550
+ 401: {
44551
+ headers: {
44552
+ [name: string]: unknown;
44553
+ };
44554
+ content?: never;
44555
+ };
44556
+ };
44557
+ };
44456
44558
  UserStoreMembershipController_getUserStoreMemberships: {
44457
44559
  parameters: {
44458
44560
  query?: {
@@ -55224,6 +55326,13 @@ export interface operations {
55224
55326
  'application/json': components['schemas']['CartDto'];
55225
55327
  };
55226
55328
  };
55329
+ /** @description Cart is not active (converted, expired or already abandoned) */
55330
+ 400: {
55331
+ headers: {
55332
+ [name: string]: unknown;
55333
+ };
55334
+ content?: never;
55335
+ };
55227
55336
  /** @description Cart not found */
55228
55337
  404: {
55229
55338
  headers: {
@@ -55308,6 +55417,50 @@ export interface operations {
55308
55417
  };
55309
55418
  };
55310
55419
  };
55420
+ CartsController_claimCart: {
55421
+ parameters: {
55422
+ query?: never;
55423
+ header?: never;
55424
+ path: {
55425
+ /** @description Guest cart ID */
55426
+ id: string;
55427
+ };
55428
+ cookie?: never;
55429
+ };
55430
+ requestBody?: never;
55431
+ responses: {
55432
+ /** @description Cart the customer keeps */
55433
+ 200: {
55434
+ headers: {
55435
+ [name: string]: unknown;
55436
+ };
55437
+ content: {
55438
+ 'application/json': components['schemas']['CartDto'];
55439
+ };
55440
+ };
55441
+ /** @description No customer token */
55442
+ 403: {
55443
+ headers: {
55444
+ [name: string]: unknown;
55445
+ };
55446
+ content?: never;
55447
+ };
55448
+ /** @description Cart not found */
55449
+ 404: {
55450
+ headers: {
55451
+ [name: string]: unknown;
55452
+ };
55453
+ content?: never;
55454
+ };
55455
+ /** @description Guest cart is not active or is locked by checkout */
55456
+ 409: {
55457
+ headers: {
55458
+ [name: string]: unknown;
55459
+ };
55460
+ content?: never;
55461
+ };
55462
+ };
55463
+ };
55311
55464
  CartsController_removeDiscount: {
55312
55465
  parameters: {
55313
55466
  query?: never;
@@ -59031,53 +59184,6 @@ export interface operations {
59031
59184
  };
59032
59185
  };
59033
59186
  };
59034
- SearchController_searchCategories: {
59035
- parameters: {
59036
- query: {
59037
- /** @description Search query string */
59038
- query: string;
59039
- /** @description Fields to search in. Accepts a real array or a JSON-stringified array (SDK wire format). */
59040
- searchFields?: string[];
59041
- /** @description Filter conditions. Accepts a real array or a JSON-stringified array (SDK wire format: JSON.stringify(filters)). */
59042
- filters?: components['schemas']['FilterCondition'][];
59043
- /** @description Facets to include in response. Accepts a real array or a JSON-stringified array (SDK wire format). */
59044
- facets?: string[];
59045
- /** @description Sort fields. Accepts a real array or a JSON-stringified array (SDK wire format: JSON.stringify([{field,order}])). Use field "relevance" (or "rank") for FTS rank. */
59046
- sort?: components['schemas']['SortField'][];
59047
- /** @description Page number (1-based) */
59048
- page?: number;
59049
- /** @description Items per page */
59050
- limit?: number;
59051
- /** @description Include total count (may impact performance) */
59052
- includeTotalCount?: boolean;
59053
- /** @description Highlight matching terms */
59054
- highlight?: boolean;
59055
- /** @description Search operator for multiple terms */
59056
- operator?: 'and' | 'or';
59057
- /** @description Tenant ID for multi-tenant search */
59058
- tenantId?: string;
59059
- /** @description Store ID for store-specific search */
59060
- storeId?: string;
59061
- /** @description Comma-separated computed includes. Currently supports ratings. */
59062
- include?: string;
59063
- };
59064
- header?: never;
59065
- path?: never;
59066
- cookie?: never;
59067
- };
59068
- requestBody?: never;
59069
- responses: {
59070
- /** @description Category search results */
59071
- 200: {
59072
- headers: {
59073
- [name: string]: unknown;
59074
- };
59075
- content: {
59076
- 'application/json': components['schemas']['SearchResults'];
59077
- };
59078
- };
59079
- };
59080
- };
59081
59187
  SearchController_getSuggestions: {
59082
59188
  parameters: {
59083
59189
  query: {
@@ -59091,7 +59197,7 @@ export interface operations {
59091
59197
  header?: never;
59092
59198
  path: {
59093
59199
  /** @description Type of entity to get suggestions for */
59094
- entityType: 'products' | 'categories';
59200
+ entityType: 'products';
59095
59201
  };
59096
59202
  cookie?: never;
59097
59203
  };
@@ -60329,7 +60435,7 @@ export interface operations {
60329
60435
  };
60330
60436
  content?: never;
60331
60437
  };
60332
- /** @description Email unconfirmed or an authentication challenge this client cannot complete */
60438
+ /** @description Email unconfirmed, an authentication challenge this client cannot complete, or ACCOUNT_NOT_ACTIVATED (customer has no sign-in yet; activate with password/forgot then password/reset) */
60333
60439
  403: {
60334
60440
  headers: {
60335
60441
  [name: string]: unknown;
@@ -60356,7 +60462,11 @@ export interface operations {
60356
60462
  path?: never;
60357
60463
  cookie?: never;
60358
60464
  };
60359
- requestBody?: never;
60465
+ requestBody?: {
60466
+ content: {
60467
+ 'application/json': components['schemas']['StorefrontLogoutBodyDto'];
60468
+ };
60469
+ };
60360
60470
  responses: {
60361
60471
  /** @description Logout successful */
60362
60472
  204: {
@@ -60621,12 +60731,14 @@ export interface operations {
60621
60731
  };
60622
60732
  };
60623
60733
  responses: {
60624
- /** @description Password changed */
60625
- 204: {
60734
+ /** @description Password changed; fresh tokens for this session */
60735
+ 200: {
60626
60736
  headers: {
60627
60737
  [name: string]: unknown;
60628
60738
  };
60629
- content?: never;
60739
+ content: {
60740
+ 'application/json': components['schemas']['StorefrontAuthResponseDto'];
60741
+ };
60630
60742
  };
60631
60743
  /** @description Password policy violation or new password equals current */
60632
60744
  400: {
@@ -61751,6 +61863,59 @@ export interface operations {
61751
61863
  };
61752
61864
  };
61753
61865
  };
61866
+ StorefrontPaymentMethodsController_createNonce: {
61867
+ parameters: {
61868
+ query?: never;
61869
+ header?: {
61870
+ /** @description Storefront API key */
61871
+ 'x-api-key'?: string;
61872
+ };
61873
+ path: {
61874
+ /** @description Vaulted payment method ID */
61875
+ paymentMethodId: string;
61876
+ };
61877
+ cookie?: never;
61878
+ };
61879
+ requestBody?: never;
61880
+ responses: {
61881
+ 201: {
61882
+ headers: {
61883
+ [name: string]: unknown;
61884
+ };
61885
+ content: {
61886
+ 'application/json': components['schemas']['StorefrontPaymentMethodNonceDto'];
61887
+ };
61888
+ };
61889
+ /** @description Invalid ID, or not a Braintree card */
61890
+ 400: {
61891
+ headers: {
61892
+ [name: string]: unknown;
61893
+ };
61894
+ content?: never;
61895
+ };
61896
+ /** @description Access token required */
61897
+ 401: {
61898
+ headers: {
61899
+ [name: string]: unknown;
61900
+ };
61901
+ content?: never;
61902
+ };
61903
+ /** @description Payment method not found */
61904
+ 404: {
61905
+ headers: {
61906
+ [name: string]: unknown;
61907
+ };
61908
+ content?: never;
61909
+ };
61910
+ /** @description Payment provider did not answer */
61911
+ 502: {
61912
+ headers: {
61913
+ [name: string]: unknown;
61914
+ };
61915
+ content?: never;
61916
+ };
61917
+ };
61918
+ };
61754
61919
  StorefrontPaymentMethodsController_detach: {
61755
61920
  parameters: {
61756
61921
  query?: never;
@@ -61773,6 +61938,13 @@ export interface operations {
61773
61938
  };
61774
61939
  content?: never;
61775
61940
  };
61941
+ /** @description Invalid ID */
61942
+ 400: {
61943
+ headers: {
61944
+ [name: string]: unknown;
61945
+ };
61946
+ content?: never;
61947
+ };
61776
61948
  /** @description Access token required */
61777
61949
  401: {
61778
61950
  headers: {
@@ -61787,6 +61959,13 @@ export interface operations {
61787
61959
  };
61788
61960
  content?: never;
61789
61961
  };
61962
+ /** @description PAYMENT_METHOD_IN_USE: a subscription that still bills uses this card */
61963
+ 409: {
61964
+ headers: {
61965
+ [name: string]: unknown;
61966
+ };
61967
+ content?: never;
61968
+ };
61790
61969
  };
61791
61970
  };
61792
61971
  StorefrontSubscriptionsController_list: {