10
10
from tests .utils import assert_matches_type
11
11
from python_intercom import Intercom , AsyncIntercom
12
12
from python_intercom .types import (
13
- ConversationList ,
14
13
ConversationListResponse ,
14
+ ConversationSearchResponse ,
15
15
)
16
16
from python_intercom .pagination import SyncCursorPagination , AsyncCursorPagination
17
17
from python_intercom .types .shared import Ticket , Message , Conversation
@@ -342,7 +342,7 @@ def test_method_search(self, client: Intercom) -> None:
342
342
conversation = client .conversations .search (
343
343
query = {},
344
344
)
345
- assert_matches_type (ConversationList , conversation , path = ["response" ])
345
+ assert_matches_type (ConversationSearchResponse , conversation , path = ["response" ])
346
346
347
347
@parametrize
348
348
def test_method_search_with_all_params (self , client : Intercom ) -> None :
@@ -358,7 +358,7 @@ def test_method_search_with_all_params(self, client: Intercom) -> None:
358
358
},
359
359
intercom_version = "2.11" ,
360
360
)
361
- assert_matches_type (ConversationList , conversation , path = ["response" ])
361
+ assert_matches_type (ConversationSearchResponse , conversation , path = ["response" ])
362
362
363
363
@parametrize
364
364
def test_raw_response_search (self , client : Intercom ) -> None :
@@ -369,7 +369,7 @@ def test_raw_response_search(self, client: Intercom) -> None:
369
369
assert response .is_closed is True
370
370
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
371
371
conversation = response .parse ()
372
- assert_matches_type (ConversationList , conversation , path = ["response" ])
372
+ assert_matches_type (ConversationSearchResponse , conversation , path = ["response" ])
373
373
374
374
@parametrize
375
375
def test_streaming_response_search (self , client : Intercom ) -> None :
@@ -380,7 +380,7 @@ def test_streaming_response_search(self, client: Intercom) -> None:
380
380
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
381
381
382
382
conversation = response .parse ()
383
- assert_matches_type (ConversationList , conversation , path = ["response" ])
383
+ assert_matches_type (ConversationSearchResponse , conversation , path = ["response" ])
384
384
385
385
assert cast (Any , response .is_closed ) is True
386
386
@@ -708,7 +708,7 @@ async def test_method_search(self, async_client: AsyncIntercom) -> None:
708
708
conversation = await async_client .conversations .search (
709
709
query = {},
710
710
)
711
- assert_matches_type (ConversationList , conversation , path = ["response" ])
711
+ assert_matches_type (ConversationSearchResponse , conversation , path = ["response" ])
712
712
713
713
@parametrize
714
714
async def test_method_search_with_all_params (self , async_client : AsyncIntercom ) -> None :
@@ -724,7 +724,7 @@ async def test_method_search_with_all_params(self, async_client: AsyncIntercom)
724
724
},
725
725
intercom_version = "2.11" ,
726
726
)
727
- assert_matches_type (ConversationList , conversation , path = ["response" ])
727
+ assert_matches_type (ConversationSearchResponse , conversation , path = ["response" ])
728
728
729
729
@parametrize
730
730
async def test_raw_response_search (self , async_client : AsyncIntercom ) -> None :
@@ -735,7 +735,7 @@ async def test_raw_response_search(self, async_client: AsyncIntercom) -> None:
735
735
assert response .is_closed is True
736
736
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
737
737
conversation = await response .parse ()
738
- assert_matches_type (ConversationList , conversation , path = ["response" ])
738
+ assert_matches_type (ConversationSearchResponse , conversation , path = ["response" ])
739
739
740
740
@parametrize
741
741
async def test_streaming_response_search (self , async_client : AsyncIntercom ) -> None :
@@ -746,6 +746,6 @@ async def test_streaming_response_search(self, async_client: AsyncIntercom) -> N
746
746
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
747
747
748
748
conversation = await response .parse ()
749
- assert_matches_type (ConversationList , conversation , path = ["response" ])
749
+ assert_matches_type (ConversationSearchResponse , conversation , path = ["response" ])
750
750
751
751
assert cast (Any , response .is_closed ) is True
0 commit comments