channel3-sdk 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

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.

Potentially problematic release.


This version of channel3-sdk might be problematic. Click here for more details.

channel3_sdk/models.py CHANGED
@@ -91,15 +91,26 @@ class ProductDetail(BaseModel):
91
91
  )
92
92
 
93
93
 
94
+ class SearchFilterPrice(BaseModel):
95
+ """Price filter for product search."""
96
+
97
+ min_price: Optional[float] = Field(None, description="Minimum price filter")
98
+ max_price: Optional[float] = Field(None, description="Maximum price filter")
99
+
100
+
94
101
  class SearchFilters(BaseModel):
95
102
  """Search filters for product search."""
96
103
 
97
- colors: Optional[List[str]] = Field(None, description="List of colors to filter by")
98
- materials: Optional[List[str]] = Field(
99
- None, description="List of materials to filter by"
104
+ brands: Optional[List[str]] = Field(None, description="List of brands to filter by")
105
+ gender: Optional[Literal["male", "female", "unisex"]] = Field(
106
+ None, description="Gender to filter by"
107
+ )
108
+ price: Optional[SearchFilterPrice] = Field(
109
+ None, description="Price range to filter by"
110
+ )
111
+ availability: Optional[AvailabilityStatus] = Field(
112
+ None, description="Availability status to filter by"
100
113
  )
101
- min_price: Optional[float] = Field(None, description="Minimum price filter")
102
- max_price: Optional[float] = Field(None, description="Maximum price filter")
103
114
 
104
115
 
105
116
  class SearchRequest(BaseModel):
@@ -110,7 +121,9 @@ class SearchRequest(BaseModel):
110
121
  base64_image: Optional[str] = Field(
111
122
  None, description="Base64-encoded image for visual search"
112
123
  )
113
- filters: Optional[SearchFilters] = Field(None, description="Search filters")
124
+ filters: SearchFilters = Field(
125
+ default_factory=SearchFilters, description="Search filters"
126
+ )
114
127
  limit: Optional[int] = Field(
115
128
  default=20, description="Maximum number of results to return"
116
129
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: channel3-sdk
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: The official Python SDK for Channel3 AI Shopping API
5
5
  Home-page: https://github.com/channel3/sdk-python
6
6
  License: MIT
@@ -0,0 +1,7 @@
1
+ channel3_sdk/__init__.py,sha256=aoe0MhblA5pEOd7iAggJ94u1Os8-xCBs6k0UWhfOiiE,960
2
+ channel3_sdk/client.py,sha256=JuJFtXdWsezwOQk3nVUnxhdtQp300UEORsQZdCZ77V8,12525
3
+ channel3_sdk/exceptions.py,sha256=5HJgrhir4-_b4XKyWAB9qp-CjVZeigXSkyM9fbcB1IA,1044
4
+ channel3_sdk/models.py,sha256=kKrKJQz0LXsBhziaxtl43gXa-J2uOdw_2HP97gB2cp8,4679
5
+ channel3_sdk-0.1.1.dist-info/METADATA,sha256=CTaXUKdaLNy8dMFv7IJFlUqBYhTwnqQEO2e2HsKFGzc,6137
6
+ channel3_sdk-0.1.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
7
+ channel3_sdk-0.1.1.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- channel3_sdk/__init__.py,sha256=aoe0MhblA5pEOd7iAggJ94u1Os8-xCBs6k0UWhfOiiE,960
2
- channel3_sdk/client.py,sha256=JuJFtXdWsezwOQk3nVUnxhdtQp300UEORsQZdCZ77V8,12525
3
- channel3_sdk/exceptions.py,sha256=5HJgrhir4-_b4XKyWAB9qp-CjVZeigXSkyM9fbcB1IA,1044
4
- channel3_sdk/models.py,sha256=AMgcsCK-jnaKA9iiL0CZvWJMprA1AxspIu4IM6vq-WE,4326
5
- channel3_sdk-0.1.0.dist-info/METADATA,sha256=xGgwGQ8iQTs1u7zeYK22RSF-EW02fYvPlqeC-4xerqs,6137
6
- channel3_sdk-0.1.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
7
- channel3_sdk-0.1.0.dist-info/RECORD,,