@01.software/sdk 0.33.0 → 0.35.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.
Files changed (76) hide show
  1. package/README.md +214 -22
  2. package/dist/analytics/react.cjs.map +1 -1
  3. package/dist/analytics/react.js.map +1 -1
  4. package/dist/analytics.cjs.map +1 -1
  5. package/dist/analytics.js.map +1 -1
  6. package/dist/client.cjs +342 -27
  7. package/dist/client.cjs.map +1 -1
  8. package/dist/client.d.cts +7 -6
  9. package/dist/client.d.ts +7 -6
  10. package/dist/client.js +342 -27
  11. package/dist/client.js.map +1 -1
  12. package/dist/{collection-client-De6eKW1J.d.cts → collection-client-CR2B8c1v.d.cts} +7 -3
  13. package/dist/{collection-client-B6SlhzIP.d.ts → collection-client-DkREjhQ9.d.ts} +7 -3
  14. package/dist/{const-sPR2IkCe.d.cts → const-BTvdrXtY.d.cts} +4 -4
  15. package/dist/{const-DwmSDeWq.d.ts → const-CdqCauHQ.d.ts} +4 -4
  16. package/dist/errors.cjs +300 -0
  17. package/dist/errors.cjs.map +1 -0
  18. package/dist/{index-BGEhoDUs.d.cts → errors.d.cts} +13 -1
  19. package/dist/{index-BGEhoDUs.d.ts → errors.d.ts} +13 -1
  20. package/dist/errors.js +277 -0
  21. package/dist/errors.js.map +1 -0
  22. package/dist/index-CjA3U6X3.d.cts +186 -0
  23. package/dist/index-DK8_NXkh.d.ts +186 -0
  24. package/dist/index.cjs +1402 -177
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +75 -10
  27. package/dist/index.d.ts +75 -10
  28. package/dist/index.js +1402 -177
  29. package/dist/index.js.map +1 -1
  30. package/dist/{payload-types-dkeQyrDC.d.cts → payload-types-C7tb7Xbs.d.cts} +208 -52
  31. package/dist/{payload-types-dkeQyrDC.d.ts → payload-types-C7tb7Xbs.d.ts} +208 -52
  32. package/dist/query.cjs +195 -36
  33. package/dist/query.cjs.map +1 -1
  34. package/dist/query.d.cts +45 -18
  35. package/dist/query.d.ts +45 -18
  36. package/dist/query.js +195 -36
  37. package/dist/query.js.map +1 -1
  38. package/dist/realtime.cjs.map +1 -1
  39. package/dist/realtime.d.cts +2 -2
  40. package/dist/realtime.d.ts +2 -2
  41. package/dist/realtime.js.map +1 -1
  42. package/dist/{server-CrsPyqEc.d.cts → server-nXOezi4b.d.cts} +22 -6
  43. package/dist/{server-CrsPyqEc.d.ts → server-nXOezi4b.d.ts} +22 -6
  44. package/dist/server.cjs +440 -33
  45. package/dist/server.cjs.map +1 -1
  46. package/dist/server.d.cts +11 -179
  47. package/dist/server.d.ts +11 -179
  48. package/dist/server.js +440 -33
  49. package/dist/server.js.map +1 -1
  50. package/dist/{types-Cel_4L9t.d.ts → types-1ylMrCuW.d.ts} +1 -1
  51. package/dist/{types-B3YT092I.d.cts → types-Bx558PU6.d.cts} +1 -1
  52. package/dist/{types-BHh0YLmq.d.ts → types-Byo_Rty4.d.ts} +705 -69
  53. package/dist/{types-BZKxss8Y.d.cts → types-DDhtZI6E.d.cts} +705 -69
  54. package/dist/ui/canvas/server.cjs +231 -38
  55. package/dist/ui/canvas/server.cjs.map +1 -1
  56. package/dist/ui/canvas/server.d.cts +1 -1
  57. package/dist/ui/canvas/server.d.ts +1 -1
  58. package/dist/ui/canvas/server.js +221 -38
  59. package/dist/ui/canvas/server.js.map +1 -1
  60. package/dist/ui/canvas.cjs +320 -257
  61. package/dist/ui/canvas.cjs.map +1 -1
  62. package/dist/ui/canvas.d.cts +5 -19
  63. package/dist/ui/canvas.d.ts +5 -19
  64. package/dist/ui/canvas.js +323 -260
  65. package/dist/ui/canvas.js.map +1 -1
  66. package/dist/ui/form.d.cts +1 -1
  67. package/dist/ui/form.d.ts +1 -1
  68. package/dist/ui/video.d.cts +1 -1
  69. package/dist/ui/video.d.ts +1 -1
  70. package/dist/webhook.cjs +2 -1
  71. package/dist/webhook.cjs.map +1 -1
  72. package/dist/webhook.d.cts +20 -179
  73. package/dist/webhook.d.ts +20 -179
  74. package/dist/webhook.js +2 -1
  75. package/dist/webhook.js.map +1 -1
  76. package/package.json +12 -3
@@ -102,6 +102,7 @@ interface Config {
102
102
  'reaction-types': ReactionType;
103
103
  bookmarks: Bookmark;
104
104
  'post-categories': PostCategory;
105
+ 'post-tags': PostTag;
105
106
  reports: Report;
106
107
  'community-bans': CommunityBan;
107
108
  'event-calendars': EventCalendar;
@@ -270,6 +271,7 @@ interface Config {
270
271
  'reaction-types': ReactionTypesSelect<false> | ReactionTypesSelect<true>;
271
272
  bookmarks: BookmarksSelect<false> | BookmarksSelect<true>;
272
273
  'post-categories': PostCategoriesSelect<false> | PostCategoriesSelect<true>;
274
+ 'post-tags': PostTagsSelect<false> | PostTagsSelect<true>;
273
275
  reports: ReportsSelect<false> | ReportsSelect<true>;
274
276
  'community-bans': CommunityBansSelect<false> | CommunityBansSelect<true>;
275
277
  'event-calendars': EventCalendarsSelect<false> | EventCalendarsSelect<true>;
@@ -549,6 +551,10 @@ interface Tenant {
549
551
  * Allow customer email sends for this event.
550
552
  */
551
553
  orderPaid?: boolean | null;
554
+ /**
555
+ * Allow customer email sends for this event.
556
+ */
557
+ orderCanceled?: boolean | null;
552
558
  /**
553
559
  * Allow customer email sends for this event.
554
560
  */
@@ -710,7 +716,7 @@ interface SystemMedia {
710
716
  interface FieldConfig {
711
717
  id: string;
712
718
  tenant?: (string | null) | Tenant;
713
- collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-option-values' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'customers' | 'customer-groups' | 'customer-profiles' | 'customer-profile-lists' | 'article-authors' | 'articles' | 'article-categories' | 'article-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'tracks' | 'track-categories' | 'track-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'canvases' | 'canvas-categories' | 'canvas-tags' | 'canvas-node-types' | 'canvas-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms' | 'posts' | 'comments' | 'reactions' | 'reaction-types' | 'bookmarks' | 'post-categories' | 'event-calendars' | 'events' | 'event-categories' | 'event-tags' | 'event-occurrences' | 'event-registrations';
719
+ collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-option-values' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'customers' | 'customer-groups' | 'customer-profiles' | 'customer-profile-lists' | 'article-authors' | 'articles' | 'article-categories' | 'article-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'tracks' | 'track-categories' | 'track-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'canvases' | 'canvas-categories' | 'canvas-tags' | 'canvas-node-types' | 'canvas-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms' | 'posts' | 'comments' | 'reactions' | 'reaction-types' | 'bookmarks' | 'post-categories' | 'post-tags' | 'event-calendars' | 'events' | 'event-categories' | 'event-tags' | 'event-occurrences' | 'event-registrations';
714
720
  isHidden?: boolean | null;
715
721
  hiddenFields?: {
716
722
  [k: string]: unknown;
@@ -779,7 +785,7 @@ interface EmailLog {
779
785
  * Commerce notification send audit metadata. Consent classification remains owned by recipientConsent.
780
786
  */
781
787
  commerceNotification?: {
782
- event?: ('orderPaid' | 'fulfillmentShipped' | 'orderDelivered' | 'returnRequested' | 'returnCompleted') | null;
788
+ event?: ('orderPaid' | 'orderCanceled' | 'fulfillmentShipped' | 'orderDelivered' | 'returnRequested' | 'returnCompleted') | null;
783
789
  intent?: (string | null) | CommerceNotificationIntent;
784
790
  dedupeKey?: string | null;
785
791
  order?: (string | null) | Order;
@@ -801,7 +807,7 @@ interface CommerceNotificationIntent {
801
807
  * Stable key that prevents duplicate notification intents within a tenant.
802
808
  */
803
809
  dedupeKey: string;
804
- event: 'orderPaid' | 'fulfillmentShipped' | 'orderDelivered' | 'returnRequested' | 'returnCompleted';
810
+ event: 'orderPaid' | 'orderCanceled' | 'fulfillmentShipped' | 'orderDelivered' | 'returnRequested' | 'returnCompleted';
805
811
  status: 'queued' | 'processing' | 'sent' | 'failed' | 'canceled';
806
812
  /**
807
813
  * Customer email address targeted by this notification.
@@ -1302,6 +1308,10 @@ interface Product {
1302
1308
  * Product detail gallery images. Order them in storefront display order.
1303
1309
  */
1304
1310
  images?: (string | Image)[] | null;
1311
+ /**
1312
+ * Optional primary image pointer from product media pool (images[]).
1313
+ */
1314
+ primaryMediaItemId?: (string | null) | Image;
1305
1315
  /**
1306
1316
  * Links this content to videos from the Mux-backed videos collection.
1307
1317
  */
@@ -1337,7 +1347,7 @@ interface Product {
1337
1347
  categories?: (string | ProductCategory)[] | null;
1338
1348
  tags?: (string | ProductTag)[] | null;
1339
1349
  /**
1340
- * Canonical storefront brand used for brand filtering and brand pages. Preserve external supplier names in the sidebar Vendor field.
1350
+ * Canonical brand used for storefront brand filtering.
1341
1351
  */
1342
1352
  brand?: (string | null) | Brand;
1343
1353
  /**
@@ -1348,6 +1358,14 @@ interface Product {
1348
1358
  * Integer weight in grams. For example, enter 2500 for 2.5 kg.
1349
1359
  */
1350
1360
  weight?: number | null;
1361
+ /**
1362
+ * Supplier name imported from external systems, separate from the brand relationship.
1363
+ */
1364
+ vendor?: string | null;
1365
+ /**
1366
+ * External catalog product type, separate from categories.
1367
+ */
1368
+ productType?: string | null;
1351
1369
  /**
1352
1370
  * Collection memberships for this product. Managed from the collection edit view.
1353
1371
  */
@@ -1357,53 +1375,65 @@ interface Product {
1357
1375
  totalDocs?: number;
1358
1376
  };
1359
1377
  /**
1360
- * Minimum order quantity
1378
+ * Minimum order quantity for this product.
1361
1379
  */
1362
1380
  minOrderQuantity?: number | null;
1363
1381
  /**
1364
- * Maximum order quantity
1382
+ * Maximum order quantity for this product.
1365
1383
  */
1366
1384
  maxOrderQuantity?: number | null;
1367
1385
  /**
1368
- * Operator-selected primary option. Save the product, then add options to make this selectable. When selected, product cards/search expand this product by option value (for example, Color).
1386
+ * Primary option used to expand this product into option-value cards.
1369
1387
  */
1370
1388
  listingPrimaryOption?: (string | null) | ProductOption;
1371
1389
  /**
1372
- * Automatically derived listing projection for product cards and search. Operators do not edit these fields directly.
1390
+ * Automatically computed values for product cards and search.
1373
1391
  */
1374
1392
  listing?: {
1375
1393
  /**
1376
- * Variant prioritized for product cards. Automatically derived from sellable variants, active variants, and sort order. Storefront product cards use this as the option hint.
1394
+ * Variant prioritized for product cards. Automatically derived.
1377
1395
  */
1378
1396
  selectionHintVariant?: (string | null) | ProductVariant;
1379
1397
  /**
1380
- * Primary image rendered by storefront product cards and search results. Product thumbnail/gallery media is preferred, then variant media is used as fallback.
1398
+ * Primary image for product cards and search. Automatically derived.
1381
1399
  */
1382
1400
  primaryImage?: (string | null) | Image;
1383
1401
  /**
1384
- * Lowest active variant price. Automatically recalculated when variants change. Storefront cards and filters use this price.
1402
+ * Lowest active variant price. Automatically derived.
1385
1403
  */
1386
1404
  minPrice?: number | null;
1387
1405
  /**
1388
- * Highest active variant price. Automatically recalculated when variants change. Storefront cards and filters use this price.
1406
+ * Highest active variant price. Automatically derived.
1389
1407
  */
1390
1408
  maxPrice?: number | null;
1391
1409
  /**
1392
- * Lowest compare-at price across active variants. Automatically recalculated when variants change. Storefront discount displays use this value.
1410
+ * Lowest compare-at price across active variants. Automatically derived.
1393
1411
  */
1394
1412
  minCompareAtPrice?: number | null;
1395
1413
  /**
1396
- * Highest compare-at price across active variants. Automatically recalculated when variants change. Storefront discount displays use this value.
1414
+ * Highest compare-at price across active variants. Automatically derived.
1397
1415
  */
1398
1416
  maxCompareAtPrice?: number | null;
1399
1417
  /**
1400
- * Automatically enabled when the minimum and maximum active variant prices differ. Storefront cards use this to decide whether to show a price range.
1418
+ * Automatically enabled when min and max prices differ.
1401
1419
  */
1402
1420
  isPriceRange?: boolean | null;
1403
1421
  /**
1404
- * Automatically enabled when at least one active variant is sellable. Storefront grids and filters use this to render and filter in-stock products.
1422
+ * Enabled when at least one variant is sellable.
1405
1423
  */
1406
1424
  availableForSale?: boolean | null;
1425
+ /**
1426
+ * Automatically derived from the primary option setting.
1427
+ */
1428
+ groupingState?: ('grouped' | 'no_primary_option' | 'empty') | null;
1429
+ /**
1430
+ * Shown when grouping produces zero cards. Visible before publish.
1431
+ */
1432
+ groupingEmptyReason?: ('primary_option_not_linked' | 'primary_option_has_no_values' | 'no_variants_for_primary_option') | null;
1433
+ /**
1434
+ * Number of expandable option-value cards.
1435
+ */
1436
+ groupingCount?: number | null;
1407
1437
  };
1408
1438
  seo?: {
1409
1439
  /**
@@ -1438,7 +1468,7 @@ interface Product {
1438
1468
  };
1439
1469
  };
1440
1470
  /**
1441
- * Preferred thumbnail for product lists. When empty, list media or the first gallery image is used.
1471
+ * Preferred thumbnail for product lists. Falls back to the first gallery image when empty.
1442
1472
  */
1443
1473
  thumbnail?: (string | null) | Image;
1444
1474
  /**
@@ -1454,25 +1484,17 @@ interface Product {
1454
1484
  */
1455
1485
  status?: ('draft' | 'published' | 'archived') | null;
1456
1486
  /**
1457
- * Automatically enabled when no active variant is sellable. A variant is sellable when it is active and either unlimited or has stock minus reserved stock greater than 0.
1487
+ * Automatically enabled when no variant is sellable.
1458
1488
  */
1459
1489
  isSoldOut?: boolean | null;
1460
1490
  isFeatured?: boolean | null;
1461
1491
  /**
1462
- * Automatically stamped the first time a draft is published when empty. This is not used as a scheduled publish time.
1492
+ * Automatically stamped the first time a draft is published.
1463
1493
  */
1464
1494
  publishedAt?: string | null;
1465
1495
  metadata?: {
1466
1496
  [k: string]: unknown;
1467
1497
  } | unknown[] | string | number | boolean | null;
1468
- /**
1469
- * Supplier name imported from external systems, separate from the brand relationship.
1470
- */
1471
- vendor?: string | null;
1472
- /**
1473
- * External catalog product type, separate from categories.
1474
- */
1475
- productType?: string | null;
1476
1498
  updatedAt: string;
1477
1499
  createdAt: string;
1478
1500
  deletedAt?: string | null;
@@ -1754,10 +1776,9 @@ interface ProductVariant {
1754
1776
  */
1755
1777
  product: string | Product;
1756
1778
  /**
1757
- * Leave blank to auto-generate from option values. Manual display labels are preserved.
1779
+ * Auto-generated from option value combination.
1758
1780
  */
1759
1781
  title?: string | null;
1760
- thumbnail?: (string | null) | Image;
1761
1782
  images?: (string | Image)[] | null;
1762
1783
  /**
1763
1784
  * Variant-specific SKU
@@ -1776,13 +1797,21 @@ interface ProductVariant {
1776
1797
  */
1777
1798
  isUnlimited?: boolean | null;
1778
1799
  /**
1779
- * Tracked inventory. Available quantity is stock - reservedStock; isUnlimited bypasses stock tracking.
1800
+ * Available quantity is stock minus reserved stock.
1780
1801
  */
1781
1802
  stock?: number | null;
1782
1803
  /**
1783
- * Server-owned reserved stock derived from held inventory-reservations. Only payment, cancellation, delivery, and inventory reservation reconcile paths update it.
1804
+ * Reserved stock increased automatically during order processing.
1784
1805
  */
1785
1806
  reservedStock?: number | null;
1807
+ /**
1808
+ * Minimum quantity before low-stock alerts.
1809
+ */
1810
+ safetyStockThreshold?: number | null;
1811
+ /**
1812
+ * Inventory alert summary. Automatically derived.
1813
+ */
1814
+ inventoryAlertState?: ('untracked' | 'inactive' | 'out_of_stock' | 'low_stock' | 'ok') | null;
1786
1815
  /**
1787
1816
  * Variant-specific barcode
1788
1817
  */
@@ -1834,9 +1863,22 @@ interface ProductOptionValue {
1834
1863
  */
1835
1864
  value: string;
1836
1865
  /**
1837
- * Hex color swatch for this option value (for example #111111)
1866
+ * Single visual swatch for this option value. Use either a color or one image from the product media pool.
1838
1867
  */
1839
- swatchColor?: string | null;
1868
+ swatch?: {
1869
+ /**
1870
+ * How this option-value swatch is rendered.
1871
+ */
1872
+ type?: ('color' | 'media') | null;
1873
+ /**
1874
+ * Hex color swatch for this option value (for example #111111)
1875
+ */
1876
+ color?: string | null;
1877
+ /**
1878
+ * One image from the product media pool used as this option-value swatch.
1879
+ */
1880
+ mediaItemId?: (string | null) | Image;
1881
+ };
1840
1882
  /**
1841
1883
  * When enabled, the slug will auto-generate from the title field on save and autosave.
1842
1884
  */
@@ -1845,14 +1887,6 @@ interface ProductOptionValue {
1845
1887
  * Compatibility URL token generated from the option-value label on create. It is fixed after creation.
1846
1888
  */
1847
1889
  slug: string;
1848
- /**
1849
- * Representative image for this option value. Listing group media uses variant media first, then option-value media, and finally product media.
1850
- */
1851
- thumbnail?: (string | null) | Image;
1852
- /**
1853
- * Reusable supporting images for this option value; used after variant media is missing, then followed by product media.
1854
- */
1855
- images?: (string | Image)[] | null;
1856
1890
  metadata?: {
1857
1891
  [k: string]: unknown;
1858
1892
  } | unknown[] | string | number | boolean | null;
@@ -1874,7 +1908,7 @@ interface ProductOption {
1874
1908
  */
1875
1909
  product: string | Product;
1876
1910
  /**
1877
- * Editable option display name for Admin and storefront copy. Changing it after creation does not change the public slug. (e.g. Color, Size)
1911
+ * Option display name in Admin and storefront. (e.g. Color, Size)
1878
1912
  */
1879
1913
  title: string;
1880
1914
  /**
@@ -2734,9 +2768,21 @@ interface Webhook {
2734
2768
  */
2735
2769
  url: string;
2736
2770
  /**
2737
- * HMAC signing secret (immutable once set)
2771
+ * HMAC signing secret (encrypted at rest, never returned on read). Reveal or rotate in Admin.
2738
2772
  */
2739
2773
  secret: string;
2774
+ /**
2775
+ * When the signing secret was first revealed to a tenant-admin (one time).
2776
+ */
2777
+ secretRevealedAt?: string | null;
2778
+ /**
2779
+ * Last webhook signing secret rotation time.
2780
+ */
2781
+ secretRotatedAt?: string | null;
2782
+ /**
2783
+ * User who last rotated the webhook signing secret.
2784
+ */
2785
+ secretRotatedBy?: (string | null) | User;
2740
2786
  /**
2741
2787
  * Collections to subscribe to. Leave empty to receive every supported collection event.
2742
2788
  */
@@ -2903,6 +2949,36 @@ interface TenantMetadatum {
2903
2949
  */
2904
2950
  twitterImage?: (string | null) | Image;
2905
2951
  };
2952
+ /**
2953
+ * Reusable option name and value lists for the Product Editor. Up to 20 presets.
2954
+ */
2955
+ optionPresets?: {
2956
+ /**
2957
+ * Name to identify this preset (e.g. Basic Clothing Sizes)
2958
+ */
2959
+ name: string;
2960
+ /**
2961
+ * Options included in this preset. Up to 10.
2962
+ */
2963
+ options?: {
2964
+ /**
2965
+ * Option name (e.g. Color, Size)
2966
+ */
2967
+ title?: string | null;
2968
+ /**
2969
+ * Values for this option. Up to 30.
2970
+ */
2971
+ values?: {
2972
+ /**
2973
+ * Option value (e.g. Red, S)
2974
+ */
2975
+ value?: string | null;
2976
+ id?: string | null;
2977
+ }[] | null;
2978
+ id?: string | null;
2979
+ }[] | null;
2980
+ id?: string | null;
2981
+ }[] | null;
2906
2982
  pwa?: {
2907
2983
  /**
2908
2984
  * Short name for PWA (12 characters max)
@@ -4842,6 +4918,7 @@ interface CanvasNodeType {
4842
4918
  * Optional #RRGGBB display color for Admin surfaces.
4843
4919
  */
4844
4920
  color?: string | null;
4921
+ editorIntent?: ('text' | 'image') | null;
4845
4922
  defaultSize?: {
4846
4923
  width?: number | null;
4847
4924
  height?: number | null;
@@ -4910,6 +4987,7 @@ interface CanvasEdgeType {
4910
4987
  * Optional #RRGGBB display color for Admin surfaces.
4911
4988
  */
4912
4989
  color?: string | null;
4990
+ isDefaultEdge?: boolean | null;
4913
4991
  strokeWidth?: number | null;
4914
4992
  isAnimated?: boolean | null;
4915
4993
  lineStyle?: ('default' | 'step' | 'smoothstep' | 'bezier') | null;
@@ -5021,6 +5099,7 @@ interface Post {
5021
5099
  [k: string]: unknown;
5022
5100
  } | null;
5023
5101
  categories?: (string | PostCategory)[] | null;
5102
+ tags?: (string | PostTag)[] | null;
5024
5103
  /**
5025
5104
  * Comments on this post. Author and status are managed in the comments collection.
5026
5105
  */
@@ -5066,14 +5145,16 @@ interface Post {
5066
5145
  */
5067
5146
  isPinned?: boolean | null;
5068
5147
  /**
5069
- * Controls whether new comments can be created for this post.
5148
+ * Author/operator discussion toggle. When false, new comments are blocked.
5070
5149
  */
5071
5150
  allowsComments?: boolean | null;
5072
5151
  visibility?: ('visible' | 'hidden') | null;
5073
5152
  /**
5074
- * Lock comments
5153
+ * Moderator lock. When true, new comments are blocked regardless of allowsComments.
5075
5154
  */
5076
5155
  isLocked?: boolean | null;
5156
+ editedAt?: string | null;
5157
+ isEdited?: boolean | null;
5077
5158
  /**
5078
5159
  * Last comment or activity timestamp. Updated server-side for sorting and activity indicators.
5079
5160
  */
@@ -5122,6 +5203,37 @@ interface PostCategory {
5122
5203
  createdAt: string;
5123
5204
  deletedAt?: string | null;
5124
5205
  }
5206
+ /**
5207
+ * Post tags are flat labels for search and loose topic grouping.
5208
+ *
5209
+ * This interface was referenced by `Config`'s JSON-Schema
5210
+ * via the `definition` "post-tags".
5211
+ */
5212
+ interface PostTag {
5213
+ id: string;
5214
+ _order?: string | null;
5215
+ title?: string | null;
5216
+ /**
5217
+ * When enabled, the slug will auto-generate from the title field on save and autosave.
5218
+ */
5219
+ generateSlug?: boolean | null;
5220
+ slug?: string | null;
5221
+ /**
5222
+ * Short summary for listing/cards
5223
+ */
5224
+ description?: string | null;
5225
+ /**
5226
+ * Single representative taxonomy image. Add domain-specific fields for multiple images such as thumbnail and hero variants.
5227
+ */
5228
+ image?: (string | null) | Image;
5229
+ /**
5230
+ * Optional #RRGGBB hex color for taxonomy badges or filter UI. This does not replace the representative image.
5231
+ */
5232
+ color?: string | null;
5233
+ updatedAt: string;
5234
+ createdAt: string;
5235
+ deletedAt?: string | null;
5236
+ }
5125
5237
  /**
5126
5238
  * This interface was referenced by `Config`'s JSON-Schema
5127
5239
  * via the `definition` "comments".
@@ -6417,6 +6529,7 @@ interface TenantsSelect<T extends boolean = true> {
6417
6529
  };
6418
6530
  commerceNotifications?: T | {
6419
6531
  orderPaid?: T;
6532
+ orderCanceled?: T;
6420
6533
  fulfillmentShipped?: T;
6421
6534
  orderDelivered?: T;
6422
6535
  returnRequested?: T;
@@ -6483,6 +6596,18 @@ interface TenantMetadataSelect<T extends boolean = true> {
6483
6596
  twitterDescription?: T;
6484
6597
  twitterImage?: T;
6485
6598
  };
6599
+ optionPresets?: T | {
6600
+ name?: T;
6601
+ options?: T | {
6602
+ title?: T;
6603
+ values?: T | {
6604
+ value?: T;
6605
+ id?: T;
6606
+ };
6607
+ id?: T;
6608
+ };
6609
+ id?: T;
6610
+ };
6486
6611
  pwa?: T | {
6487
6612
  shortName?: T;
6488
6613
  backgroundColor?: T;
@@ -6616,6 +6741,9 @@ interface WebhooksSelect<T extends boolean = true> {
6616
6741
  name?: T;
6617
6742
  url?: T;
6618
6743
  secret?: T;
6744
+ secretRevealedAt?: T;
6745
+ secretRotatedAt?: T;
6746
+ secretRotatedBy?: T;
6619
6747
  subscriptions?: T | {
6620
6748
  collection?: T;
6621
6749
  id?: T;
@@ -6877,6 +7005,7 @@ interface ProductsSelect<T extends boolean = true> {
6877
7005
  subtitle?: T;
6878
7006
  description?: T;
6879
7007
  images?: T;
7008
+ primaryMediaItemId?: T;
6880
7009
  videos?: T;
6881
7010
  content?: T;
6882
7011
  variants?: T;
@@ -6886,6 +7015,8 @@ interface ProductsSelect<T extends boolean = true> {
6886
7015
  brand?: T;
6887
7016
  shippingPolicy?: T;
6888
7017
  weight?: T;
7018
+ vendor?: T;
7019
+ productType?: T;
6889
7020
  collectionItems?: T;
6890
7021
  minOrderQuantity?: T;
6891
7022
  maxOrderQuantity?: T;
@@ -6899,6 +7030,9 @@ interface ProductsSelect<T extends boolean = true> {
6899
7030
  maxCompareAtPrice?: T;
6900
7031
  isPriceRange?: T;
6901
7032
  availableForSale?: T;
7033
+ groupingState?: T;
7034
+ groupingEmptyReason?: T;
7035
+ groupingCount?: T;
6902
7036
  };
6903
7037
  seo?: T | {
6904
7038
  title?: T;
@@ -6919,8 +7053,6 @@ interface ProductsSelect<T extends boolean = true> {
6919
7053
  isFeatured?: T;
6920
7054
  publishedAt?: T;
6921
7055
  metadata?: T;
6922
- vendor?: T;
6923
- productType?: T;
6924
7056
  updatedAt?: T;
6925
7057
  createdAt?: T;
6926
7058
  deletedAt?: T;
@@ -6935,7 +7067,6 @@ interface ProductVariantsSelect<T extends boolean = true> {
6935
7067
  tenant?: T;
6936
7068
  product?: T;
6937
7069
  title?: T;
6938
- thumbnail?: T;
6939
7070
  images?: T;
6940
7071
  sku?: T;
6941
7072
  price?: T;
@@ -6943,6 +7074,8 @@ interface ProductVariantsSelect<T extends boolean = true> {
6943
7074
  isUnlimited?: T;
6944
7075
  stock?: T;
6945
7076
  reservedStock?: T;
7077
+ safetyStockThreshold?: T;
7078
+ inventoryAlertState?: T;
6946
7079
  barcode?: T;
6947
7080
  weight?: T;
6948
7081
  requiresShipping?: T;
@@ -6983,11 +7116,13 @@ interface ProductOptionValuesSelect<T extends boolean = true> {
6983
7116
  option?: T;
6984
7117
  displayLabel?: T;
6985
7118
  value?: T;
6986
- swatchColor?: T;
7119
+ swatch?: T | {
7120
+ type?: T;
7121
+ color?: T;
7122
+ mediaItemId?: T;
7123
+ };
6987
7124
  generateSlug?: T;
6988
7125
  slug?: T;
6989
- thumbnail?: T;
6990
- images?: T;
6991
7126
  metadata?: T;
6992
7127
  updatedAt?: T;
6993
7128
  createdAt?: T;
@@ -8307,6 +8442,7 @@ interface CanvasNodeTypesSelect<T extends boolean = true> {
8307
8442
  slug?: T;
8308
8443
  description?: T;
8309
8444
  color?: T;
8445
+ editorIntent?: T;
8310
8446
  defaultSize?: T | {
8311
8447
  width?: T;
8312
8448
  height?: T;
@@ -8344,6 +8480,7 @@ interface CanvasEdgeTypesSelect<T extends boolean = true> {
8344
8480
  slug?: T;
8345
8481
  description?: T;
8346
8482
  color?: T;
8483
+ isDefaultEdge?: T;
8347
8484
  strokeWidth?: T;
8348
8485
  isAnimated?: T;
8349
8486
  lineStyle?: T;
@@ -8568,6 +8705,7 @@ interface PostsSelect<T extends boolean = true> {
8568
8705
  title?: T;
8569
8706
  content?: T;
8570
8707
  categories?: T;
8708
+ tags?: T;
8571
8709
  comments?: T;
8572
8710
  displayTitle?: T;
8573
8711
  status?: T;
@@ -8590,6 +8728,8 @@ interface PostsSelect<T extends boolean = true> {
8590
8728
  allowsComments?: T;
8591
8729
  visibility?: T;
8592
8730
  isLocked?: T;
8731
+ editedAt?: T;
8732
+ isEdited?: T;
8593
8733
  lastActivityAt?: T;
8594
8734
  lastCommentByProfile?: T;
8595
8735
  isFeatured?: T;
@@ -8691,6 +8831,22 @@ interface PostCategoriesSelect<T extends boolean = true> {
8691
8831
  createdAt?: T;
8692
8832
  deletedAt?: T;
8693
8833
  }
8834
+ /**
8835
+ * This interface was referenced by `Config`'s JSON-Schema
8836
+ * via the `definition` "post-tags_select".
8837
+ */
8838
+ interface PostTagsSelect<T extends boolean = true> {
8839
+ _order?: T;
8840
+ title?: T;
8841
+ generateSlug?: T;
8842
+ slug?: T;
8843
+ description?: T;
8844
+ image?: T;
8845
+ color?: T;
8846
+ updatedAt?: T;
8847
+ createdAt?: T;
8848
+ deletedAt?: T;
8849
+ }
8694
8850
  /**
8695
8851
  * This interface was referenced by `Config`'s JSON-Schema
8696
8852
  * via the `definition` "reports_select".
@@ -9181,4 +9337,4 @@ declare module 'payload' {
9181
9337
  }
9182
9338
  }
9183
9339
 
9184
- export type { Article as A, CustomerProfile as C, Document as D, Form as F, Image as I, Order as O, Product as P, Reaction as R, Tenant as T, Video as V, CustomerProfileList as a, ProductCollection as b, Post as c, Comment as d, Config as e, ArticleAuthor as f, ArticleCategory as g, ArticleTag as h, Cart as i, CartItem as j, PostCategory as k, ProductVariant as l, Transaction as m, Fulfillment as n, Return as o };
9340
+ export type { Article as A, CustomerProfile as C, Document as D, Form as F, Image as I, Order as O, Product as P, Reaction as R, Tenant as T, Video as V, Webhook as W, CustomerProfileList as a, ProductCollection as b, Post as c, Comment as d, Config as e, ArticleAuthor as f, ArticleCategory as g, ArticleTag as h, Cart as i, CartItem as j, PostCategory as k, ProductVariant as l, Transaction as m, Fulfillment as n, Return as o };