@@ -25,26 +25,38 @@ class TestChats:
2525
2626 @parametrize
2727 def test_method_create (self , client : BeeperDesktop ) -> None :
28- chat = client .chats .create ()
28+ chat = client .chats .create (
29+ chat = {"account_id" : "accountID" },
30+ )
2931 assert_matches_type (ChatCreateResponse , chat , path = ["response" ])
3032
3133 @parametrize
3234 def test_method_create_with_all_params (self , client : BeeperDesktop ) -> None :
3335 chat = client .chats .create (
3436 chat = {
3537 "account_id" : "accountID" ,
36- "participant_ids" : ["string" ],
37- "type" : "single" ,
38+ "allow_invite" : True ,
3839 "message_text" : "messageText" ,
3940 "mode" : "create" ,
41+ "participant_ids" : ["string" ],
4042 "title" : "title" ,
43+ "type" : "single" ,
44+ "user" : {
45+ "id" : "id" ,
46+ "email" : "email" ,
47+ "full_name" : "fullName" ,
48+ "phone_number" : "phoneNumber" ,
49+ "username" : "username" ,
50+ },
4151 },
4252 )
4353 assert_matches_type (ChatCreateResponse , chat , path = ["response" ])
4454
4555 @parametrize
4656 def test_raw_response_create (self , client : BeeperDesktop ) -> None :
47- response = client .chats .with_raw_response .create ()
57+ response = client .chats .with_raw_response .create (
58+ chat = {"account_id" : "accountID" },
59+ )
4860
4961 assert response .is_closed is True
5062 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -53,7 +65,9 @@ def test_raw_response_create(self, client: BeeperDesktop) -> None:
5365
5466 @parametrize
5567 def test_streaming_response_create (self , client : BeeperDesktop ) -> None :
56- with client .chats .with_streaming_response .create () as response :
68+ with client .chats .with_streaming_response .create (
69+ chat = {"account_id" : "accountID" },
70+ ) as response :
5771 assert not response .is_closed
5872 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
5973
@@ -245,26 +259,38 @@ class TestAsyncChats:
245259
246260 @parametrize
247261 async def test_method_create (self , async_client : AsyncBeeperDesktop ) -> None :
248- chat = await async_client .chats .create ()
262+ chat = await async_client .chats .create (
263+ chat = {"account_id" : "accountID" },
264+ )
249265 assert_matches_type (ChatCreateResponse , chat , path = ["response" ])
250266
251267 @parametrize
252268 async def test_method_create_with_all_params (self , async_client : AsyncBeeperDesktop ) -> None :
253269 chat = await async_client .chats .create (
254270 chat = {
255271 "account_id" : "accountID" ,
256- "participant_ids" : ["string" ],
257- "type" : "single" ,
272+ "allow_invite" : True ,
258273 "message_text" : "messageText" ,
259274 "mode" : "create" ,
275+ "participant_ids" : ["string" ],
260276 "title" : "title" ,
277+ "type" : "single" ,
278+ "user" : {
279+ "id" : "id" ,
280+ "email" : "email" ,
281+ "full_name" : "fullName" ,
282+ "phone_number" : "phoneNumber" ,
283+ "username" : "username" ,
284+ },
261285 },
262286 )
263287 assert_matches_type (ChatCreateResponse , chat , path = ["response" ])
264288
265289 @parametrize
266290 async def test_raw_response_create (self , async_client : AsyncBeeperDesktop ) -> None :
267- response = await async_client .chats .with_raw_response .create ()
291+ response = await async_client .chats .with_raw_response .create (
292+ chat = {"account_id" : "accountID" },
293+ )
268294
269295 assert response .is_closed is True
270296 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -273,7 +299,9 @@ async def test_raw_response_create(self, async_client: AsyncBeeperDesktop) -> No
273299
274300 @parametrize
275301 async def test_streaming_response_create (self , async_client : AsyncBeeperDesktop ) -> None :
276- async with async_client .chats .with_streaming_response .create () as response :
302+ async with async_client .chats .with_streaming_response .create (
303+ chat = {"account_id" : "accountID" },
304+ ) as response :
277305 assert not response .is_closed
278306 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
279307
0 commit comments