@aimee.shop/sdk 0.22.0-dev.213 → 0.22.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.
@@ -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;
@@ -16768,6 +16808,21 @@ export interface components {
16768
16808
  * @example ACME
16769
16809
  */
16770
16810
  orderNumberPrefix?: string;
16811
+ /**
16812
+ * @description Organization contact email
16813
+ * @example admin@acme.com
16814
+ */
16815
+ contactEmail?: string | null;
16816
+ /**
16817
+ * @description Organization support email
16818
+ * @example support@acme.com
16819
+ */
16820
+ supportEmail?: string | null;
16821
+ /**
16822
+ * @description Organization time zone (IANA)
16823
+ * @example America/New_York
16824
+ */
16825
+ timezone?: string | null;
16771
16826
  /**
16772
16827
  * Format: int64
16773
16828
  * @description Current order number sequence
@@ -17003,6 +17058,21 @@ export interface components {
17003
17058
  metadata?: {
17004
17059
  [key: string]: unknown;
17005
17060
  };
17061
+ /**
17062
+ * @description Organization contact email. An empty string clears it.
17063
+ * @example admin@acme.com
17064
+ */
17065
+ contactEmail?: string | null;
17066
+ /**
17067
+ * @description Organization support email. An empty string clears it.
17068
+ * @example support@acme.com
17069
+ */
17070
+ supportEmail?: string | null;
17071
+ /**
17072
+ * @description Organization time zone (IANA). An empty string clears it.
17073
+ * @example America/New_York
17074
+ */
17075
+ timezone?: string | null;
17006
17076
  };
17007
17077
  SuspendTenantDto: {
17008
17078
  /**
@@ -29187,10 +29257,15 @@ export interface components {
29187
29257
  */
29188
29258
  discountId: string;
29189
29259
  /**
29190
- * @description Discount code
29260
+ * @description Discount code; empty for an auto-applied discount
29191
29261
  * @example SAVE20
29192
29262
  */
29193
29263
  code: string;
29264
+ /**
29265
+ * @description Applied automatically, without a code
29266
+ * @example false
29267
+ */
29268
+ isAutoApplied: boolean;
29194
29269
  /**
29195
29270
  * @description Discount name
29196
29271
  * @example Summer Sale 20% Off
@@ -29561,7 +29636,7 @@ export interface components {
29561
29636
  */
29562
29637
  countryName?: string;
29563
29638
  /**
29564
- * @description Phone number
29639
+ * @description Phone number: digits, spaces, +, -, ( ) or ., with a length possible for its country (the address country unless it starts with +)
29565
29640
  * @example +1-555-123-4567
29566
29641
  */
29567
29642
  phone?: string;
@@ -30159,7 +30234,7 @@ export interface components {
30159
30234
  * "country": "US"
30160
30235
  * }
30161
30236
  */
30162
- shippingAddress?: components['schemas']['AddressSnapshotDto'];
30237
+ shippingAddress?: components['schemas']['AddressInputDto'];
30163
30238
  /**
30164
30239
  * @description Billing address for the order
30165
30240
  * @example {
@@ -30172,7 +30247,7 @@ export interface components {
30172
30247
  * "country": "US"
30173
30248
  * }
30174
30249
  */
30175
- billingAddress?: components['schemas']['AddressSnapshotDto'];
30250
+ billingAddress?: components['schemas']['AddressInputDto'];
30176
30251
  /**
30177
30252
  * @description Whether to use shipping address as billing address
30178
30253
  * @default true
@@ -30633,7 +30708,7 @@ export interface components {
30633
30708
  */
30634
30709
  countryName?: string;
30635
30710
  /**
30636
- * @description Phone number
30711
+ * @description Phone number: digits, spaces, +, -, ( ) or ., with a length possible for its country (the address country unless it starts with +)
30637
30712
  * @example +1-555-123-4567
30638
30713
  */
30639
30714
  phone?: string;
@@ -30728,7 +30803,7 @@ export interface components {
30728
30803
  */
30729
30804
  countryName?: string;
30730
30805
  /**
30731
- * @description Phone number
30806
+ * @description Phone number: digits, spaces, +, -, ( ) or ., with a length possible for its country (the address country unless it starts with +)
30732
30807
  * @example +1-555-123-4567
30733
30808
  */
30734
30809
  phone?: string;
@@ -30873,10 +30948,20 @@ export interface components {
30873
30948
  };
30874
30949
  DiscountBreakdownDto: {
30875
30950
  /**
30876
- * @description Discount code
30951
+ * @description Discount code; empty for an auto-applied discount
30877
30952
  * @example SAVE10
30878
30953
  */
30879
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;
30880
30965
  /**
30881
30966
  * @description Discount type
30882
30967
  * @example percent
@@ -34174,6 +34259,10 @@ export interface components {
34174
34259
  /** @description Customer password */
34175
34260
  password: string;
34176
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
+ };
34177
34266
  RefreshTokenBodyDto: {
34178
34267
  refreshToken: string;
34179
34268
  };
@@ -34781,6 +34870,22 @@ export interface components {
34781
34870
  /** @description Vaulted payment method id to set as default */
34782
34871
  paymentMethodId: string;
34783
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
+ };
34784
34889
  StorefrontAddressSnapshotDto: {
34785
34890
  addressId?: string;
34786
34891
  firstName: string;
@@ -44423,6 +44528,33 @@ export interface operations {
44423
44528
  };
44424
44529
  };
44425
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
+ };
44426
44558
  UserStoreMembershipController_getUserStoreMemberships: {
44427
44559
  parameters: {
44428
44560
  query?: {
@@ -55194,6 +55326,13 @@ export interface operations {
55194
55326
  'application/json': components['schemas']['CartDto'];
55195
55327
  };
55196
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
+ };
55197
55336
  /** @description Cart not found */
55198
55337
  404: {
55199
55338
  headers: {
@@ -55278,6 +55417,50 @@ export interface operations {
55278
55417
  };
55279
55418
  };
55280
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
+ };
55281
55464
  CartsController_removeDiscount: {
55282
55465
  parameters: {
55283
55466
  query?: never;
@@ -59001,53 +59184,6 @@ export interface operations {
59001
59184
  };
59002
59185
  };
59003
59186
  };
59004
- SearchController_searchCategories: {
59005
- parameters: {
59006
- query: {
59007
- /** @description Search query string */
59008
- query: string;
59009
- /** @description Fields to search in. Accepts a real array or a JSON-stringified array (SDK wire format). */
59010
- searchFields?: string[];
59011
- /** @description Filter conditions. Accepts a real array or a JSON-stringified array (SDK wire format: JSON.stringify(filters)). */
59012
- filters?: components['schemas']['FilterCondition'][];
59013
- /** @description Facets to include in response. Accepts a real array or a JSON-stringified array (SDK wire format). */
59014
- facets?: string[];
59015
- /** @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. */
59016
- sort?: components['schemas']['SortField'][];
59017
- /** @description Page number (1-based) */
59018
- page?: number;
59019
- /** @description Items per page */
59020
- limit?: number;
59021
- /** @description Include total count (may impact performance) */
59022
- includeTotalCount?: boolean;
59023
- /** @description Highlight matching terms */
59024
- highlight?: boolean;
59025
- /** @description Search operator for multiple terms */
59026
- operator?: 'and' | 'or';
59027
- /** @description Tenant ID for multi-tenant search */
59028
- tenantId?: string;
59029
- /** @description Store ID for store-specific search */
59030
- storeId?: string;
59031
- /** @description Comma-separated computed includes. Currently supports ratings. */
59032
- include?: string;
59033
- };
59034
- header?: never;
59035
- path?: never;
59036
- cookie?: never;
59037
- };
59038
- requestBody?: never;
59039
- responses: {
59040
- /** @description Category search results */
59041
- 200: {
59042
- headers: {
59043
- [name: string]: unknown;
59044
- };
59045
- content: {
59046
- 'application/json': components['schemas']['SearchResults'];
59047
- };
59048
- };
59049
- };
59050
- };
59051
59187
  SearchController_getSuggestions: {
59052
59188
  parameters: {
59053
59189
  query: {
@@ -59061,7 +59197,7 @@ export interface operations {
59061
59197
  header?: never;
59062
59198
  path: {
59063
59199
  /** @description Type of entity to get suggestions for */
59064
- entityType: 'products' | 'categories';
59200
+ entityType: 'products';
59065
59201
  };
59066
59202
  cookie?: never;
59067
59203
  };
@@ -60299,13 +60435,20 @@ export interface operations {
60299
60435
  };
60300
60436
  content?: never;
60301
60437
  };
60302
- /** @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) */
60303
60439
  403: {
60304
60440
  headers: {
60305
60441
  [name: string]: unknown;
60306
60442
  };
60307
60443
  content?: never;
60308
60444
  };
60445
+ /** @description TOO_MANY_ATTEMPTS: too many sign-ins for this account */
60446
+ 429: {
60447
+ headers: {
60448
+ [name: string]: unknown;
60449
+ };
60450
+ content?: never;
60451
+ };
60309
60452
  };
60310
60453
  };
60311
60454
  StorefrontAuthController_logout: {
@@ -60319,7 +60462,11 @@ export interface operations {
60319
60462
  path?: never;
60320
60463
  cookie?: never;
60321
60464
  };
60322
- requestBody?: never;
60465
+ requestBody?: {
60466
+ content: {
60467
+ 'application/json': components['schemas']['StorefrontLogoutBodyDto'];
60468
+ };
60469
+ };
60323
60470
  responses: {
60324
60471
  /** @description Logout successful */
60325
60472
  204: {
@@ -60386,6 +60533,13 @@ export interface operations {
60386
60533
  };
60387
60534
  content?: never;
60388
60535
  };
60536
+ /** @description TOO_MANY_ATTEMPTS: too many reset requests for this account */
60537
+ 429: {
60538
+ headers: {
60539
+ [name: string]: unknown;
60540
+ };
60541
+ content?: never;
60542
+ };
60389
60543
  };
60390
60544
  };
60391
60545
  StorefrontAuthController_resetPassword: {
@@ -60418,6 +60572,13 @@ export interface operations {
60418
60572
  };
60419
60573
  content?: never;
60420
60574
  };
60575
+ /** @description TOO_MANY_ATTEMPTS: too many reset attempts for this account */
60576
+ 429: {
60577
+ headers: {
60578
+ [name: string]: unknown;
60579
+ };
60580
+ content?: never;
60581
+ };
60421
60582
  };
60422
60583
  };
60423
60584
  StorefrontAuthController_getProfile: {
@@ -60570,12 +60731,14 @@ export interface operations {
60570
60731
  };
60571
60732
  };
60572
60733
  responses: {
60573
- /** @description Password changed */
60574
- 204: {
60734
+ /** @description Password changed; fresh tokens for this session */
60735
+ 200: {
60575
60736
  headers: {
60576
60737
  [name: string]: unknown;
60577
60738
  };
60578
- content?: never;
60739
+ content: {
60740
+ 'application/json': components['schemas']['StorefrontAuthResponseDto'];
60741
+ };
60579
60742
  };
60580
60743
  /** @description Password policy violation or new password equals current */
60581
60744
  400: {
@@ -61700,6 +61863,59 @@ export interface operations {
61700
61863
  };
61701
61864
  };
61702
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
+ };
61703
61919
  StorefrontPaymentMethodsController_detach: {
61704
61920
  parameters: {
61705
61921
  query?: never;
@@ -61722,6 +61938,13 @@ export interface operations {
61722
61938
  };
61723
61939
  content?: never;
61724
61940
  };
61941
+ /** @description Invalid ID */
61942
+ 400: {
61943
+ headers: {
61944
+ [name: string]: unknown;
61945
+ };
61946
+ content?: never;
61947
+ };
61725
61948
  /** @description Access token required */
61726
61949
  401: {
61727
61950
  headers: {
@@ -61736,6 +61959,13 @@ export interface operations {
61736
61959
  };
61737
61960
  content?: never;
61738
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
+ };
61739
61969
  };
61740
61970
  };
61741
61971
  StorefrontSubscriptionsController_list: {