@aimee.shop/sdk 0.25.1 → 0.25.3

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.
Files changed (28) hide show
  1. package/dist/generated/core-api.d.ts +216 -11
  2. package/dist/generated/core-api.d.ts.map +1 -1
  3. package/dist/index.d.ts +2 -2
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/services/core/storefront/index.d.ts +1 -0
  7. package/dist/services/core/storefront/index.d.ts.map +1 -1
  8. package/dist/services/core/storefront/index.js +1 -0
  9. package/dist/services/core/storefront/index.js.map +1 -1
  10. package/dist/services/core/storefront/storefront-ai-discovery.client.d.ts +28 -0
  11. package/dist/services/core/storefront/storefront-ai-discovery.client.d.ts.map +1 -0
  12. package/dist/services/core/storefront/storefront-ai-discovery.client.js +58 -0
  13. package/dist/services/core/storefront/storefront-ai-discovery.client.js.map +1 -0
  14. package/dist/services/core/storefront/storefront.client.d.ts +7 -0
  15. package/dist/services/core/storefront/storefront.client.d.ts.map +1 -1
  16. package/dist/services/core/storefront/storefront.client.js +12 -0
  17. package/dist/services/core/storefront/storefront.client.js.map +1 -1
  18. package/dist/services/core/stores/ai-discovery.client.d.ts +20 -39
  19. package/dist/services/core/stores/ai-discovery.client.d.ts.map +1 -1
  20. package/dist/services/core/stores/ai-discovery.client.js +11 -0
  21. package/dist/services/core/stores/ai-discovery.client.js.map +1 -1
  22. package/dist/services/core/stores/index.d.ts +1 -1
  23. package/dist/services/core/stores/index.d.ts.map +1 -1
  24. package/dist/services/core/stores/index.js.map +1 -1
  25. package/dist/services/core/stores/stores.client.d.ts +2 -11
  26. package/dist/services/core/stores/stores.client.d.ts.map +1 -1
  27. package/dist/services/core/stores/stores.client.js.map +1 -1
  28. package/package.json +1 -1
@@ -12692,6 +12692,26 @@ export interface paths {
12692
12692
  patch?: never;
12693
12693
  trace?: never;
12694
12694
  };
12695
+ '/v1/stores/{storeId}/ai-discovery/live-check': {
12696
+ parameters: {
12697
+ query?: never;
12698
+ header?: never;
12699
+ path?: never;
12700
+ cookie?: never;
12701
+ };
12702
+ /**
12703
+ * Check llms.txt on the live site
12704
+ * @description Fetches https://<primary domain>/llms.txt from the server and reports whether it serves the published content. https only, same-host redirects only, public addresses only, 5 s timeout, 1 MB cap.
12705
+ */
12706
+ get: operations['AiDiscoveryController_liveCheck'];
12707
+ put?: never;
12708
+ post?: never;
12709
+ delete?: never;
12710
+ options?: never;
12711
+ head?: never;
12712
+ patch?: never;
12713
+ trace?: never;
12714
+ };
12695
12715
  '/v1/stores/{storeId}/ai-discovery/{fileType}': {
12696
12716
  parameters: {
12697
12717
  query?: never;
@@ -12764,8 +12784,8 @@ export interface paths {
12764
12784
  cookie?: never;
12765
12785
  };
12766
12786
  /**
12767
- * Get raw llms.txt file
12768
- * @description Returns the raw llms.txt content for AI assistants. Publicly accessible.
12787
+ * Get published llms.txt
12788
+ * @description Returns the last published llms.txt for AI assistants. Publicly accessible.
12769
12789
  */
12770
12790
  get: operations['AiDiscoveryPublicController_getLlmsTxt'];
12771
12791
  put?: never;
@@ -12776,6 +12796,46 @@ export interface paths {
12776
12796
  patch?: never;
12777
12797
  trace?: never;
12778
12798
  };
12799
+ '/v1/public/stores/{storeId}/store-schema.json': {
12800
+ parameters: {
12801
+ query?: never;
12802
+ header?: never;
12803
+ path?: never;
12804
+ cookie?: never;
12805
+ };
12806
+ /**
12807
+ * Get published store JSON-LD
12808
+ * @description Returns the last published Organization/WebSite JSON-LD for the page head. Publicly accessible.
12809
+ */
12810
+ get: operations['AiDiscoveryPublicController_getStoreSchema'];
12811
+ put?: never;
12812
+ post?: never;
12813
+ delete?: never;
12814
+ options?: never;
12815
+ head?: never;
12816
+ patch?: never;
12817
+ trace?: never;
12818
+ };
12819
+ '/v1/public/stores/{storeId}/products-schema.json': {
12820
+ parameters: {
12821
+ query?: never;
12822
+ header?: never;
12823
+ path?: never;
12824
+ cookie?: never;
12825
+ };
12826
+ /**
12827
+ * Get published products JSON-LD
12828
+ * @description Returns the last published product ItemList JSON-LD. Publicly accessible.
12829
+ */
12830
+ get: operations['AiDiscoveryPublicController_getProductsSchema'];
12831
+ put?: never;
12832
+ post?: never;
12833
+ delete?: never;
12834
+ options?: never;
12835
+ head?: never;
12836
+ patch?: never;
12837
+ trace?: never;
12838
+ };
12779
12839
  '/v1/storefront-redirects': {
12780
12840
  parameters: {
12781
12841
  query?: never;
@@ -18178,6 +18238,16 @@ export interface components {
18178
18238
  * @example America/New_York
18179
18239
  */
18180
18240
  timezone: string;
18241
+ /**
18242
+ * @description True while the store is in maintenance mode
18243
+ * @example false
18244
+ */
18245
+ isMaintenance: boolean;
18246
+ /**
18247
+ * @description Message to show shoppers during maintenance
18248
+ * @example Back at 9am.
18249
+ */
18250
+ maintenanceMessage: string | null;
18181
18251
  };
18182
18252
  StoreFindAllResponseDto: {
18183
18253
  /** @description Full store records, or the public profile for store-scoped API keys */
@@ -31894,6 +31964,16 @@ export interface components {
31894
31964
  shippingAddress?: components['schemas']['AddressSnapshotDto'];
31895
31965
  /** @description Billing address snapshot */
31896
31966
  billingAddress?: components['schemas']['AddressSnapshotDto'];
31967
+ /**
31968
+ * @description Payment method id (e.g. manual_cash, or a provider payment method id)
31969
+ * @example manual_cash
31970
+ */
31971
+ paymentMethodId?: string;
31972
+ /**
31973
+ * @description Contact email captured at checkout
31974
+ * @example jane@example.com
31975
+ */
31976
+ email?: string;
31897
31977
  /**
31898
31978
  * @description Shipping method display name (snapshot from checkout)
31899
31979
  * @example UPS Ground (3-5 business days)
@@ -35292,7 +35372,7 @@ export interface components {
35292
35372
  id: string;
35293
35373
  tenantId: string;
35294
35374
  storeId: string | null;
35295
- /** @description Key prefix plus first 4 random chars, for fast lookup (sk_live_abc1) */
35375
+ /** @description Key prefix plus first 4 random chars, for fast lookup (sk_aimee_live_abc1) */
35296
35376
  keyIdentifier: string;
35297
35377
  /** @description Last 4 chars for display */
35298
35378
  lastFour: string;
@@ -35332,7 +35412,7 @@ export interface components {
35332
35412
  id: string;
35333
35413
  tenantId: string;
35334
35414
  storeId: string | null;
35335
- /** @description Key prefix plus first 4 random chars, for fast lookup (sk_live_abc1) */
35415
+ /** @description Key prefix plus first 4 random chars, for fast lookup (sk_aimee_live_abc1) */
35336
35416
  keyIdentifier: string;
35337
35417
  /** @description Last 4 chars for display */
35338
35418
  lastFour: string;
@@ -35396,7 +35476,7 @@ export interface components {
35396
35476
  VerifyApiKeyDto: {
35397
35477
  /**
35398
35478
  * @description The API key to verify
35399
- * @example sk_live_1234567890abcdef
35479
+ * @example sk_aimee_live_1234567890abcdef
35400
35480
  */
35401
35481
  apiKey: string;
35402
35482
  /**
@@ -35438,7 +35518,7 @@ export interface components {
35438
35518
  id: string;
35439
35519
  tenantId: string;
35440
35520
  storeId: string | null;
35441
- /** @description Key prefix plus first 4 random chars, for fast lookup (sk_live_abc1) */
35521
+ /** @description Key prefix plus first 4 random chars, for fast lookup (sk_aimee_live_abc1) */
35442
35522
  keyIdentifier: string;
35443
35523
  /** @description Last 4 chars for display */
35444
35524
  lastFour: string;
@@ -37618,7 +37698,12 @@ export interface components {
37618
37698
  publishedAt?: string | null;
37619
37699
  /** @description Whether auto-regeneration is locked */
37620
37700
  isLocked: boolean;
37621
- /** @description Whether there are unpublished changes */
37701
+ /**
37702
+ * @description draft: never published; published: served content is current; modified: saved changes not yet published
37703
+ * @enum {string}
37704
+ */
37705
+ status: 'draft' | 'published' | 'modified';
37706
+ /** @description Whether there are unpublished changes (status is not published) */
37622
37707
  hasChanges: boolean;
37623
37708
  };
37624
37709
  AiDiscoveryStatusResponseDto: {
@@ -37636,6 +37721,29 @@ export interface components {
37636
37721
  /** @description Whether auto-publish is enabled */
37637
37722
  autoPublishEnabled: boolean;
37638
37723
  };
37724
+ AiDiscoveryLiveCheckResponseDto: {
37725
+ /**
37726
+ * @description URL checked
37727
+ * @example https://shop.example.com/llms.txt
37728
+ */
37729
+ url: string;
37730
+ /**
37731
+ * @description served: the site serves the published llms.txt; out-of-date: it serves different content; missing: non-2xx answer; unreachable: refused by a safety check, timed out or failed; not-published: nothing published to compare with (no request made)
37732
+ * @enum {string}
37733
+ */
37734
+ status: 'served' | 'out-of-date' | 'missing' | 'unreachable' | 'not-published';
37735
+ /** @description HTTP status of the final response, if one was received */
37736
+ httpStatus: number | null;
37737
+ /** @description Why the check was unreachable or not run */
37738
+ reason: string | null;
37739
+ /**
37740
+ * Format: date-time
37741
+ * @description When llms.txt was last published
37742
+ */
37743
+ publishedAt: string | null;
37744
+ /** Format: date-time */
37745
+ checkedAt: string;
37746
+ };
37639
37747
  AiDiscoveryFileWithGeneratedDto: {
37640
37748
  /** @description File ID */
37641
37749
  id: string;
@@ -37650,6 +37758,13 @@ export interface components {
37650
37758
  content: string;
37651
37759
  /** @description Auto-generated content for comparison */
37652
37760
  generatedContent?: string;
37761
+ /** @description Content served on public routes (last publish). Null until first publish. */
37762
+ publishedContent?: string | null;
37763
+ /**
37764
+ * @description draft: never published; published: served content is current; modified: saved changes not yet published
37765
+ * @enum {string}
37766
+ */
37767
+ status: 'draft' | 'published' | 'modified';
37653
37768
  /**
37654
37769
  * Format: date-time
37655
37770
  * @description When the file was generated
@@ -37667,7 +37782,7 @@ export interface components {
37667
37782
  modifiedAt?: string | null;
37668
37783
  /** @description Whether auto-regeneration is locked */
37669
37784
  isLocked: boolean;
37670
- /** @description Whether the file is a draft (not published) */
37785
+ /** @description Whether the file has never been published */
37671
37786
  isDraft: boolean;
37672
37787
  /** @description Content checksum for change detection */
37673
37788
  checksum: string;
@@ -37702,6 +37817,13 @@ export interface components {
37702
37817
  content: string;
37703
37818
  /** @description Auto-generated content (for comparison) */
37704
37819
  generatedContent?: string;
37820
+ /** @description Content served on public routes (last publish). Null until first publish. */
37821
+ publishedContent?: string | null;
37822
+ /**
37823
+ * @description draft: never published; published: served content is current; modified: saved changes not yet published
37824
+ * @enum {string}
37825
+ */
37826
+ status: 'draft' | 'published' | 'modified';
37705
37827
  /**
37706
37828
  * Format: date-time
37707
37829
  * @description When the file was generated
@@ -37719,7 +37841,7 @@ export interface components {
37719
37841
  modifiedAt?: string | null;
37720
37842
  /** @description Whether auto-regeneration is locked */
37721
37843
  isLocked: boolean;
37722
- /** @description Whether the file is a draft (not published) */
37844
+ /** @description Whether the file has never been published */
37723
37845
  isDraft: boolean;
37724
37846
  /** @description Content checksum for change detection */
37725
37847
  checksum: string;
@@ -56552,7 +56674,7 @@ export interface operations {
56552
56674
  /** @description Sort direction (default: desc) */
56553
56675
  sortOrder?: 'asc' | 'desc';
56554
56676
  /** @description Sort field, applied before paging (default: createdAt) */
56555
- sortBy?: 'orderNumber' | 'status' | 'paymentStatus' | 'totalAmount' | 'createdAt' | 'updatedAt';
56677
+ sortBy?: 'orderNumber' | 'status' | 'paymentStatus' | 'totalAmount' | 'createdAt' | 'updatedAt' | 'email' | 'billTo' | 'shipTo' | 'phone';
56556
56678
  /** @description Filter by maximum order total in cents (integer) */
56557
56679
  totalMax?: number;
56558
56680
  /** @description Filter by minimum order total in cents (integer) */
@@ -67045,6 +67167,29 @@ export interface operations {
67045
67167
  };
67046
67168
  };
67047
67169
  };
67170
+ AiDiscoveryController_liveCheck: {
67171
+ parameters: {
67172
+ query?: never;
67173
+ header?: never;
67174
+ path: {
67175
+ /** @description Store ID */
67176
+ storeId: unknown;
67177
+ };
67178
+ cookie?: never;
67179
+ };
67180
+ requestBody?: never;
67181
+ responses: {
67182
+ /** @description Live check result */
67183
+ 200: {
67184
+ headers: {
67185
+ [name: string]: unknown;
67186
+ };
67187
+ content: {
67188
+ 'application/json': components['schemas']['AiDiscoveryLiveCheckResponseDto'];
67189
+ };
67190
+ };
67191
+ };
67192
+ };
67048
67193
  AiDiscoveryController_getFile: {
67049
67194
  parameters: {
67050
67195
  query?: never;
@@ -67172,7 +67317,67 @@ export interface operations {
67172
67317
  'text/plain': string;
67173
67318
  };
67174
67319
  };
67175
- /** @description Store or llms.txt not found */
67320
+ /** @description Not published */
67321
+ 404: {
67322
+ headers: {
67323
+ [name: string]: unknown;
67324
+ };
67325
+ content?: never;
67326
+ };
67327
+ };
67328
+ };
67329
+ AiDiscoveryPublicController_getStoreSchema: {
67330
+ parameters: {
67331
+ query?: never;
67332
+ header?: never;
67333
+ path: {
67334
+ /** @description Store ID */
67335
+ storeId: string;
67336
+ };
67337
+ cookie?: never;
67338
+ };
67339
+ requestBody?: never;
67340
+ responses: {
67341
+ /** @description Store JSON-LD */
67342
+ 200: {
67343
+ headers: {
67344
+ [name: string]: unknown;
67345
+ };
67346
+ content: {
67347
+ 'application/ld+json': string;
67348
+ };
67349
+ };
67350
+ /** @description Not published */
67351
+ 404: {
67352
+ headers: {
67353
+ [name: string]: unknown;
67354
+ };
67355
+ content?: never;
67356
+ };
67357
+ };
67358
+ };
67359
+ AiDiscoveryPublicController_getProductsSchema: {
67360
+ parameters: {
67361
+ query?: never;
67362
+ header?: never;
67363
+ path: {
67364
+ /** @description Store ID */
67365
+ storeId: string;
67366
+ };
67367
+ cookie?: never;
67368
+ };
67369
+ requestBody?: never;
67370
+ responses: {
67371
+ /** @description Products JSON-LD */
67372
+ 200: {
67373
+ headers: {
67374
+ [name: string]: unknown;
67375
+ };
67376
+ content: {
67377
+ 'application/ld+json': string;
67378
+ };
67379
+ };
67380
+ /** @description Not published */
67176
67381
  404: {
67177
67382
  headers: {
67178
67383
  [name: string]: unknown;