@aimee.shop/sdk 0.22.0-dev.205 → 0.22.0-dev.209

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.
@@ -344,9 +344,9 @@ export declare const TENANT_EVENTS: {
344
344
  readonly AUTH_PROVIDER_CREATED: "tenant.auth.provider.created";
345
345
  readonly AUTH_PROVIDER_DELETED: "tenant.auth.provider.deleted";
346
346
  readonly AUTH_PROVIDER_UPDATED: "tenant.auth.provider.updated";
347
- readonly CONFIG_CREATED: "tenant-config.created";
348
- readonly CONFIG_DELETED: "tenant-config.deleted";
349
- readonly CONFIG_UPDATED: "tenant-config.updated";
347
+ readonly CONFIG_CREATED: "tenant.config.created";
348
+ readonly CONFIG_DELETED: "tenant.config.deleted";
349
+ readonly CONFIG_UPDATED: "tenant.config.updated";
350
350
  readonly CREATED: "tenant.created";
351
351
  readonly DELETED: "tenant.deleted";
352
352
  readonly PROVIDER_CREATED: "tenant.provider.created";
@@ -374,9 +374,9 @@ export const TENANT_EVENTS = {
374
374
  AUTH_PROVIDER_CREATED: 'tenant.auth.provider.created',
375
375
  AUTH_PROVIDER_DELETED: 'tenant.auth.provider.deleted',
376
376
  AUTH_PROVIDER_UPDATED: 'tenant.auth.provider.updated',
377
- CONFIG_CREATED: 'tenant-config.created',
378
- CONFIG_DELETED: 'tenant-config.deleted',
379
- CONFIG_UPDATED: 'tenant-config.updated',
377
+ CONFIG_CREATED: 'tenant.config.created',
378
+ CONFIG_DELETED: 'tenant.config.deleted',
379
+ CONFIG_UPDATED: 'tenant.config.updated',
380
380
  CREATED: 'tenant.created',
381
381
  DELETED: 'tenant.deleted',
382
382
  PROVIDER_CREATED: 'tenant.provider.created',
@@ -115,7 +115,7 @@ export interface paths {
115
115
  put?: never;
116
116
  /**
117
117
  * Logout user
118
- * @description Revokes tokens and ends the user session. Note: Due to API Gateway caching, tokens may remain valid for up to 5 minutes.
118
+ * @description Revokes tokens and ends the user session. Send the refresh token in the body to end only this session; without it, or with global=true, every refresh token of the user is revoked in Cognito. Note: Due to API Gateway caching, tokens may remain valid for up to 5 minutes.
119
119
  */
120
120
  post: operations['AuthController_logout'];
121
121
  delete?: never;
@@ -2254,7 +2254,7 @@ export interface paths {
2254
2254
  post?: never;
2255
2255
  /**
2256
2256
  * Delete own account
2257
- * @description Soft-deletes the user account, removes all memberships, and disables the Cognito identity. This action cannot be undone by the user.
2257
+ * @description Soft-deletes the user account, removes its membership, and disables the Cognito identity. This action cannot be undone by the user. An identity that belongs to more than one organization cannot be deleted here; leave the other organizations first (POST /users/me/leave-tenant/:tenantId).
2258
2258
  */
2259
2259
  delete: operations['UserSelfServiceController_deleteAccount'];
2260
2260
  options?: never;
@@ -2314,7 +2314,7 @@ export interface paths {
2314
2314
  put?: never;
2315
2315
  /**
2316
2316
  * Confirm organization membership
2317
- * @description Public endpoint for CONFIRMED users to accept an org/store join. Does not set a password.
2317
+ * @description For CONFIRMED users to accept an org/store join. The caller must be signed in as the invited identity (ID or access token). Does not set a password.
2318
2318
  */
2319
2319
  post: operations['InvitationController_confirmMembership'];
2320
2320
  delete?: never;
@@ -2694,7 +2694,7 @@ export interface paths {
2694
2694
  };
2695
2695
  /**
2696
2696
  * Get all members of a store
2697
- * @description Returns store members. When includeInherited=true, also returns users who have org-level access (storeAccess=ALL) without explicit store membership.
2697
+ * @description Returns store members, including org-level (storeAccess=ALL) members who hold a role bound to this store. When includeInherited=true, returns every org-level member.
2698
2698
  */
2699
2699
  get: operations['StoreMembersController_getStoreMembers'];
2700
2700
  put?: never;
@@ -2717,7 +2717,10 @@ export interface paths {
2717
2717
  get: operations['StoreMembersController_getMember'];
2718
2718
  put?: never;
2719
2719
  post?: never;
2720
- /** Remove member from store */
2720
+ /**
2721
+ * Remove member from store
2722
+ * @description Removes the store membership and revokes the role assignments bound to this store. A member with organization-wide store access (storeAccess=ALL) is switched to explicit access and keeps every other active store.
2723
+ */
2721
2724
  delete: operations['StoreMembersController_removeMember'];
2722
2725
  options?: never;
2723
2726
  head?: never;
@@ -12991,6 +12994,10 @@ export interface components {
12991
12994
  accessToken: string;
12992
12995
  idToken: string;
12993
12996
  };
12997
+ LogoutBodyDto: {
12998
+ /** @description Refresh token of this session. When sent, only this session is revoked; without it every refresh token of the user is revoked. */
12999
+ refreshToken?: string;
13000
+ };
12994
13001
  CurrentUserResponseDto: {
12995
13002
  userId: string;
12996
13003
  tenantId: string;
@@ -17379,7 +17386,10 @@ export interface components {
17379
17386
  fontFamily?: string;
17380
17387
  /** @example Proxima Nova, sans-serif */
17381
17388
  headingFontFamily?: string;
17382
- /** @example 16px */
17389
+ /**
17390
+ * @description px or rem, 10px to 32px (rem counts as 16px)
17391
+ * @example 16px
17392
+ */
17383
17393
  baseFontSize?: string;
17384
17394
  fontSources?: components['schemas']['FontSourceDto'][];
17385
17395
  };
@@ -20042,7 +20052,7 @@ export interface components {
20042
20052
  */
20043
20053
  compareAtAmount?: string;
20044
20054
  /**
20045
- * @description Cost of Goods Sold in cents
20055
+ * @description Cost of Goods Sold in cents. Internal only: the HTTP resolve endpoints never return it.
20046
20056
  * @example 1500
20047
20057
  */
20048
20058
  cost?: string;
@@ -28771,8 +28781,8 @@ export interface components {
28771
28781
  */
28772
28782
  description?: string | null;
28773
28783
  /**
28774
- * @description Minimum order amount to apply discount (null clears)
28775
- * @example 50
28784
+ * @description Minimum order amount in cents to apply discount (null clears)
28785
+ * @example 5000
28776
28786
  */
28777
28787
  minimumOrderAmount?: number | null;
28778
28788
  /**
@@ -33862,7 +33872,7 @@ export interface components {
33862
33872
  * @description Would recommend this product
33863
33873
  * @default true
33864
33874
  */
33865
- recommendProduct: boolean;
33875
+ recommendProduct?: boolean;
33866
33876
  /** @description Reviewer display name */
33867
33877
  reviewerName?: string;
33868
33878
  /** @description Reviewer location */
@@ -33962,7 +33972,7 @@ export interface components {
33962
33972
  * @description Would recommend this product
33963
33973
  * @default true
33964
33974
  */
33965
- recommendProduct: boolean;
33975
+ recommendProduct?: boolean;
33966
33976
  /** @description Reviewer display name */
33967
33977
  reviewerName?: string;
33968
33978
  /** @description Reviewer location */
@@ -35555,6 +35565,8 @@ export interface components {
35555
35565
  seoDescription?: string;
35556
35566
  /** @description SEO keywords */
35557
35567
  seoKeywords?: string[];
35568
+ /** @description Absolute https canonical URL for the entry; an empty string or null clears it */
35569
+ canonicalUrl?: string | null;
35558
35570
  /** @description Content tags for categorization */
35559
35571
  tags?: string[];
35560
35572
  /** @description Custom metadata */
@@ -35617,6 +35629,7 @@ export interface components {
35617
35629
  seoTitle?: string | null;
35618
35630
  seoDescription?: string | null;
35619
35631
  seoKeywords: string[];
35632
+ canonicalUrl?: string | null;
35620
35633
  tags: string[];
35621
35634
  metadata?: {
35622
35635
  [key: string]: unknown;
@@ -35709,6 +35722,8 @@ export interface components {
35709
35722
  seoDescription?: string;
35710
35723
  /** @description SEO keywords */
35711
35724
  seoKeywords?: string[];
35725
+ /** @description Absolute https canonical URL for the entry; an empty string or null clears it */
35726
+ canonicalUrl?: string | null;
35712
35727
  /** @description Content tags */
35713
35728
  tags?: string[];
35714
35729
  /** @description Custom metadata */
@@ -36268,6 +36283,8 @@ export interface components {
36268
36283
  title: string | null;
36269
36284
  description: string | null;
36270
36285
  keywords: string[];
36286
+ /** @description Entry canonical URL; falls back to an article fields.canonicalUrl */
36287
+ canonicalUrl: string | null;
36271
36288
  };
36272
36289
  PublicContentBlockDto: {
36273
36290
  type: string;
@@ -37858,7 +37875,11 @@ export interface operations {
37858
37875
  path?: never;
37859
37876
  cookie?: never;
37860
37877
  };
37861
- requestBody?: never;
37878
+ requestBody?: {
37879
+ content: {
37880
+ 'application/json': components['schemas']['LogoutBodyDto'];
37881
+ };
37882
+ };
37862
37883
  responses: {
37863
37884
  /** @description Logout successful */
37864
37885
  204: {
@@ -43197,7 +43218,10 @@ export interface operations {
43197
43218
  UserSelfServiceController_setupMfa: {
43198
43219
  parameters: {
43199
43220
  query?: never;
43200
- header?: never;
43221
+ header: {
43222
+ /** @description Cognito access token of the signed-in session. Authorization stays the ID token. */
43223
+ 'X-Cognito-Access-Token': string;
43224
+ };
43201
43225
  path?: never;
43202
43226
  cookie?: never;
43203
43227
  };
@@ -43212,6 +43236,13 @@ export interface operations {
43212
43236
  'application/json': components['schemas']['MfaSetupResponseDto'];
43213
43237
  };
43214
43238
  };
43239
+ /** @description X-Cognito-Access-Token header missing */
43240
+ 400: {
43241
+ headers: {
43242
+ [name: string]: unknown;
43243
+ };
43244
+ content?: never;
43245
+ };
43215
43246
  /** @description Unauthorized */
43216
43247
  401: {
43217
43248
  headers: {
@@ -43219,12 +43250,22 @@ export interface operations {
43219
43250
  };
43220
43251
  content?: never;
43221
43252
  };
43253
+ /** @description Access token belongs to another user */
43254
+ 403: {
43255
+ headers: {
43256
+ [name: string]: unknown;
43257
+ };
43258
+ content?: never;
43259
+ };
43222
43260
  };
43223
43261
  };
43224
43262
  UserSelfServiceController_verifyMfa: {
43225
43263
  parameters: {
43226
43264
  query?: never;
43227
- header?: never;
43265
+ header: {
43266
+ /** @description Cognito access token of the signed-in session. Authorization stays the ID token. */
43267
+ 'X-Cognito-Access-Token': string;
43268
+ };
43228
43269
  path?: never;
43229
43270
  cookie?: never;
43230
43271
  };
@@ -43260,7 +43301,10 @@ export interface operations {
43260
43301
  UserSelfServiceController_disableMfa: {
43261
43302
  parameters: {
43262
43303
  query?: never;
43263
- header?: never;
43304
+ header: {
43305
+ /** @description Cognito access token of the signed-in session. Authorization stays the ID token. */
43306
+ 'X-Cognito-Access-Token': string;
43307
+ };
43264
43308
  path?: never;
43265
43309
  cookie?: never;
43266
43310
  };
@@ -43332,6 +43376,13 @@ export interface operations {
43332
43376
  };
43333
43377
  content?: never;
43334
43378
  };
43379
+ /** @description last_tenant_admin: the user is the last active Tenant Administrator */
43380
+ 409: {
43381
+ headers: {
43382
+ [name: string]: unknown;
43383
+ };
43384
+ content?: never;
43385
+ };
43335
43386
  };
43336
43387
  };
43337
43388
  UserSelfServiceController_leaveStore: {
@@ -43425,7 +43476,7 @@ export interface operations {
43425
43476
  };
43426
43477
  content?: never;
43427
43478
  };
43428
- /** @description Cannot delete: user is the last member of one or more organizations */
43479
+ /** @description Cannot delete: user is the last member of the organization */
43429
43480
  400: {
43430
43481
  headers: {
43431
43482
  [name: string]: unknown;
@@ -43439,6 +43490,13 @@ export interface operations {
43439
43490
  };
43440
43491
  content?: never;
43441
43492
  };
43493
+ /** @description shared_identity: the identity belongs to other organizations; last_tenant_admin: the user is the last active Tenant Administrator */
43494
+ 409: {
43495
+ headers: {
43496
+ [name: string]: unknown;
43497
+ };
43498
+ content?: never;
43499
+ };
43442
43500
  };
43443
43501
  };
43444
43502
  UsersController_updateCurrentUser: {
@@ -43564,6 +43622,20 @@ export interface operations {
43564
43622
  };
43565
43623
  content?: never;
43566
43624
  };
43625
+ /** @description Not signed in */
43626
+ 401: {
43627
+ headers: {
43628
+ [name: string]: unknown;
43629
+ };
43630
+ content?: never;
43631
+ };
43632
+ /** @description Signed in as a different identity than the invited one */
43633
+ 403: {
43634
+ headers: {
43635
+ [name: string]: unknown;
43636
+ };
43637
+ content?: never;
43638
+ };
43567
43639
  };
43568
43640
  };
43569
43641
  PasswordResetController_forgotPassword: {
@@ -44477,7 +44549,9 @@ export interface operations {
44477
44549
  UserStoreMembershipController_deleteMembership: {
44478
44550
  parameters: {
44479
44551
  query?: never;
44480
- header?: never;
44552
+ header: {
44553
+ authorization: string;
44554
+ };
44481
44555
  path: {
44482
44556
  /** @description User ID, or "me" for the authenticated caller */
44483
44557
  userId: string;
@@ -44578,7 +44652,9 @@ export interface operations {
44578
44652
  /** @description Include users with org-level store access (storeAccess=ALL). Each result includes accessSource field. */
44579
44653
  includeInherited?: boolean;
44580
44654
  };
44581
- header?: never;
44655
+ header: {
44656
+ authorization: string;
44657
+ };
44582
44658
  path: {
44583
44659
  /** @description Store ID */
44584
44660
  storeId: string;
@@ -44587,9 +44663,11 @@ export interface operations {
44587
44663
  };
44588
44664
  requestBody?: never;
44589
44665
  responses: {
44590
- /** @description Store members retrieved successfully */
44666
+ /** @description Store members retrieved successfully. X-Aimee-Partial-Result: true means the role assignments could not be read, so org-level members holding a role bound to this store are missing from the list. */
44591
44667
  200: {
44592
44668
  headers: {
44669
+ /** @description true when the list is partial */
44670
+ 'X-Aimee-Partial-Result'?: string;
44593
44671
  [name: string]: unknown;
44594
44672
  };
44595
44673
  content: {
@@ -44688,7 +44766,9 @@ export interface operations {
44688
44766
  StoreMembersController_removeMember: {
44689
44767
  parameters: {
44690
44768
  query?: never;
44691
- header?: never;
44769
+ header: {
44770
+ authorization: string;
44771
+ };
44692
44772
  path: {
44693
44773
  /** @description Store ID */
44694
44774
  storeId: string;
@@ -44706,7 +44786,7 @@ export interface operations {
44706
44786
  };
44707
44787
  content?: never;
44708
44788
  };
44709
- /** @description Membership not found */
44789
+ /** @description Store membership not found: the user is neither a member of this store nor an active all-stores member of the organization */
44710
44790
  404: {
44711
44791
  headers: {
44712
44792
  [name: string]: unknown;
@@ -46318,7 +46398,7 @@ export interface operations {
46318
46398
  };
46319
46399
  requestBody?: never;
46320
46400
  responses: {
46321
- /** @description Variant prices retrieved successfully */
46401
+ /** @description Variant prices retrieved successfully. Publishable keys and shoppers get the prices without cost. */
46322
46402
  200: {
46323
46403
  headers: {
46324
46404
  [name: string]: unknown;
@@ -46388,7 +46468,7 @@ export interface operations {
46388
46468
  };
46389
46469
  requestBody?: never;
46390
46470
  responses: {
46391
- /** @description Variant price retrieved successfully */
46471
+ /** @description Variant price retrieved successfully. Publishable keys and shoppers get the price without cost. */
46392
46472
  200: {
46393
46473
  headers: {
46394
46474
  [name: string]: unknown;
@@ -53181,6 +53261,20 @@ export interface operations {
53181
53261
  'application/json': components['schemas']['SignupAttemptStatusDto'];
53182
53262
  };
53183
53263
  };
53264
+ /** @description Email not verified, SetupIntent not bound to this attempt, or card setup never started */
53265
+ 400: {
53266
+ headers: {
53267
+ [name: string]: unknown;
53268
+ };
53269
+ content?: never;
53270
+ };
53271
+ /** @description card_not_verified: the SetupIntent did not succeed (declined or unconfirmed card) */
53272
+ 402: {
53273
+ headers: {
53274
+ [name: string]: unknown;
53275
+ };
53276
+ content?: never;
53277
+ };
53184
53278
  };
53185
53279
  };
53186
53280
  SignupController_status: {
@@ -54749,7 +54843,9 @@ export interface operations {
54749
54843
  CartsController_updateCart: {
54750
54844
  parameters: {
54751
54845
  query?: never;
54752
- header?: never;
54846
+ header: {
54847
+ authorization: string;
54848
+ };
54753
54849
  path: {
54754
54850
  /** @description Cart ID */
54755
54851
  id: string;
@@ -55816,7 +55912,7 @@ export interface operations {
55816
55912
  };
55817
55913
  content?: never;
55818
55914
  };
55819
- /** @description Payment intent missing, not succeeded, amount/currency mismatch, or requires action */
55915
+ /** @description Payment intent missing, not succeeded, amount/currency mismatch, or requires action. PAYMENT_DECLINED (with optional declineCode): the provider declined the nonce; nothing was charged, prepare payment again with another method */
55820
55916
  402: {
55821
55917
  headers: {
55822
55918
  [name: string]: unknown;
@@ -55844,7 +55940,7 @@ export interface operations {
55844
55940
  };
55845
55941
  content?: never;
55846
55942
  };
55847
- /** @description Payment verification is unavailable */
55943
+ /** @description Payment verification is unavailable, or PAYMENT_OUTCOME_UNKNOWN (the sale answer was lost); retry the same complete */
55848
55944
  503: {
55849
55945
  headers: {
55850
55946
  [name: string]: unknown;
@@ -56020,12 +56116,14 @@ export interface operations {
56020
56116
  totalMax?: number;
56021
56117
  /** @description Filter by minimum order total in cents (integer) */
56022
56118
  totalMin?: number;
56023
- /** @description Filter orders created before date (ISO string) */
56119
+ /** @description Filter orders created at or before this date (ISO 8601; a date-only value includes the whole day, UTC; 400 when not a date) */
56024
56120
  createdBefore?: string;
56025
- /** @description Filter orders created after date (ISO string) */
56121
+ /** @description Filter orders created at or after this date (ISO 8601; 400 when not a date) */
56026
56122
  createdAfter?: string;
56027
- /** @description Search by order number, order email, or customer first name, last name or email (case-insensitive substring; every word must match; max 100 characters) */
56123
+ /** @description Search by order number, order email, customer first name, last name or email, shipping or billing phone, zip or street (case-insensitive substring; every word must match; a trailing * matches a prefix; max 100 characters) */
56028
56124
  search?: string;
56125
+ /** @description Filter by payment method id stored on the order (e.g. manual_cash) */
56126
+ paymentMethod?: string;
56029
56127
  /** @description Filter by ERP order ID */
56030
56128
  erpOrderId?: string;
56031
56129
  /** @description Filter by fulfillment status */
@@ -59512,7 +59610,7 @@ export interface operations {
59512
59610
  };
59513
59611
  requestBody?: never;
59514
59612
  responses: {
59515
- /** @description Reviews retrieved successfully */
59613
+ /** @description Reviews retrieved successfully. Callers without reviews:moderate get PublicReviewDto items. */
59516
59614
  200: {
59517
59615
  headers: {
59518
59616
  [name: string]: unknown;
@@ -59652,7 +59750,7 @@ export interface operations {
59652
59750
  };
59653
59751
  requestBody?: never;
59654
59752
  responses: {
59655
- /** @description Product reviews retrieved successfully */
59753
+ /** @description Product reviews retrieved successfully. Callers without reviews:moderate get PublicReviewDto items. */
59656
59754
  200: {
59657
59755
  headers: {
59658
59756
  [name: string]: unknown;
@@ -59724,7 +59822,7 @@ export interface operations {
59724
59822
  };
59725
59823
  requestBody?: never;
59726
59824
  responses: {
59727
- /** @description Customer reviews retrieved successfully */
59825
+ /** @description Customer reviews retrieved successfully. Callers without reviews:moderate get PublicReviewDto items. */
59728
59826
  200: {
59729
59827
  headers: {
59730
59828
  [name: string]: unknown;
@@ -59746,7 +59844,7 @@ export interface operations {
59746
59844
  };
59747
59845
  requestBody?: never;
59748
59846
  responses: {
59749
- /** @description Review retrieved successfully */
59847
+ /** @description Review retrieved successfully. Callers without reviews:moderate get a PublicReviewDto. */
59750
59848
  200: {
59751
59849
  headers: {
59752
59850
  [name: string]: unknown;