@@ -58,21 +58,22 @@ def test_path_params_retrieve(self, client: Hyperspell) -> None:
5858
5959 @parametrize
6060 def test_method_list (self , client : Hyperspell ) -> None :
61- document = client .documents .list ()
61+ document = client .documents .list (
62+ collections = ["string" ],
63+ )
6264 assert_matches_type (DocumentListResponse , document , path = ["response" ])
6365
6466 @parametrize
6567 def test_method_list_with_all_params (self , client : Hyperspell ) -> None :
6668 document = client .documents .list (
69+ collections = ["string" ],
6770 filter = {
6871 "chunk_type" : ["text" ],
72+ "collections" : ["string" ],
6973 "document_type" : ["chat" ],
7074 "end_date" : parse_datetime ("2019-12-27T18:11:19.117Z" ),
71- "namespace" : "namespace" ,
72- "org_id" : "org_id" ,
7375 "provider" : ["slack" ],
7476 "start_date" : parse_datetime ("2019-12-27T18:11:19.117Z" ),
75- "user_id" : "user_id" ,
7677 },
7778 limit = 0 ,
7879 page = 2 ,
@@ -81,7 +82,9 @@ def test_method_list_with_all_params(self, client: Hyperspell) -> None:
8182
8283 @parametrize
8384 def test_raw_response_list (self , client : Hyperspell ) -> None :
84- response = client .documents .with_raw_response .list ()
85+ response = client .documents .with_raw_response .list (
86+ collections = ["string" ],
87+ )
8588
8689 assert response .is_closed is True
8790 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -90,7 +93,9 @@ def test_raw_response_list(self, client: Hyperspell) -> None:
9093
9194 @parametrize
9295 def test_streaming_response_list (self , client : Hyperspell ) -> None :
93- with client .documents .with_streaming_response .list () as response :
96+ with client .documents .with_streaming_response .list (
97+ collections = ["string" ],
98+ ) as response :
9499 assert not response .is_closed
95100 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
96101
@@ -143,21 +148,22 @@ async def test_path_params_retrieve(self, async_client: AsyncHyperspell) -> None
143148
144149 @parametrize
145150 async def test_method_list (self , async_client : AsyncHyperspell ) -> None :
146- document = await async_client .documents .list ()
151+ document = await async_client .documents .list (
152+ collections = ["string" ],
153+ )
147154 assert_matches_type (DocumentListResponse , document , path = ["response" ])
148155
149156 @parametrize
150157 async def test_method_list_with_all_params (self , async_client : AsyncHyperspell ) -> None :
151158 document = await async_client .documents .list (
159+ collections = ["string" ],
152160 filter = {
153161 "chunk_type" : ["text" ],
162+ "collections" : ["string" ],
154163 "document_type" : ["chat" ],
155164 "end_date" : parse_datetime ("2019-12-27T18:11:19.117Z" ),
156- "namespace" : "namespace" ,
157- "org_id" : "org_id" ,
158165 "provider" : ["slack" ],
159166 "start_date" : parse_datetime ("2019-12-27T18:11:19.117Z" ),
160- "user_id" : "user_id" ,
161167 },
162168 limit = 0 ,
163169 page = 2 ,
@@ -166,7 +172,9 @@ async def test_method_list_with_all_params(self, async_client: AsyncHyperspell)
166172
167173 @parametrize
168174 async def test_raw_response_list (self , async_client : AsyncHyperspell ) -> None :
169- response = await async_client .documents .with_raw_response .list ()
175+ response = await async_client .documents .with_raw_response .list (
176+ collections = ["string" ],
177+ )
170178
171179 assert response .is_closed is True
172180 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -175,7 +183,9 @@ async def test_raw_response_list(self, async_client: AsyncHyperspell) -> None:
175183
176184 @parametrize
177185 async def test_streaming_response_list (self , async_client : AsyncHyperspell ) -> None :
178- async with async_client .documents .with_streaming_response .list () as response :
186+ async with async_client .documents .with_streaming_response .list (
187+ collections = ["string" ],
188+ ) as response :
179189 assert not response .is_closed
180190 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
181191
0 commit comments