@howells/stow-server 2.3.2 → 2.4.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.
package/dist/index.d.mts CHANGED
@@ -761,12 +761,21 @@ interface ColorSearchRequest {
761
761
  limit?: number;
762
762
  /** Minimum color proportion in the palette (0–1, default 0.05) */
763
763
  minProportion?: number;
764
+ /** Mood-based search via temperature/lightness sliders */
765
+ mood?: {
766
+ lightness: number;
767
+ temperature: number;
768
+ };
769
+ /** Color name to search for (e.g. "terracotta", "sage"). Resolved via 140 curated color groups. */
770
+ name?: string;
764
771
  /** Target color in OKLab space */
765
772
  oklab?: {
766
773
  L: number;
767
774
  a: number;
768
775
  b: number;
769
776
  };
777
+ /** Array of 2–5 hex colors. Finds images matching the combined palette centroid. */
778
+ palette?: string[];
770
779
  }
771
780
  /** One color search result item. */
772
781
  interface ColorSearchResultItem {
@@ -787,6 +796,7 @@ interface ColorSearchResultItem {
787
796
  position: number;
788
797
  proportion: number;
789
798
  };
799
+ metadata: Record<string, string> | null;
790
800
  width: number | null;
791
801
  }
792
802
  /** Result payload for color similarity search. */
package/dist/index.d.ts CHANGED
@@ -761,12 +761,21 @@ interface ColorSearchRequest {
761
761
  limit?: number;
762
762
  /** Minimum color proportion in the palette (0–1, default 0.05) */
763
763
  minProportion?: number;
764
+ /** Mood-based search via temperature/lightness sliders */
765
+ mood?: {
766
+ lightness: number;
767
+ temperature: number;
768
+ };
769
+ /** Color name to search for (e.g. "terracotta", "sage"). Resolved via 140 curated color groups. */
770
+ name?: string;
764
771
  /** Target color in OKLab space */
765
772
  oklab?: {
766
773
  L: number;
767
774
  a: number;
768
775
  b: number;
769
776
  };
777
+ /** Array of 2–5 hex colors. Finds images matching the combined palette centroid. */
778
+ palette?: string[];
770
779
  }
771
780
  /** One color search result item. */
772
781
  interface ColorSearchResultItem {
@@ -787,6 +796,7 @@ interface ColorSearchResultItem {
787
796
  position: number;
788
797
  proportion: number;
789
798
  };
799
+ metadata: Record<string, string> | null;
790
800
  width: number | null;
791
801
  }
792
802
  /** Result payload for color similarity search. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howells/stow-server",
3
- "version": "2.3.2",
3
+ "version": "2.4.0",
4
4
  "description": "Server-side SDK for Stow file storage",
5
5
  "keywords": [
6
6
  "file-storage",