@@ -670,6 +670,9 @@ async def create_async(
670670
671671 def stream (
672672 self ,
673+ start_date : Union [str , object ] = values .unset ,
674+ end_date : Union [str , object ] = values .unset ,
675+ state : Union ["ConversationInstance.State" , object ] = values .unset ,
673676 limit : Optional [int ] = None ,
674677 page_size : Optional [int ] = None ,
675678 ) -> Iterator [ConversationInstance ]:
@@ -679,6 +682,9 @@ def stream(
679682 is reached.
680683 The results are returned as a generator, so this operation is memory efficient.
681684
685+ :param str start_date: Start date in ISO8601 format for sorting and filtering list of Conversations.
686+ :param str end_date: End date in ISO8601 format for sorting and filtering list of Conversations.
687+ :param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
682688 :param limit: Upper limit for the number of records to return. stream()
683689 guarantees to never return more than limit. Default is no limit
684690 :param page_size: Number of records to fetch per request, when not set will use
@@ -689,12 +695,20 @@ def stream(
689695 :returns: Generator that will yield up to limit results
690696 """
691697 limits = self ._version .read_limits (limit , page_size )
692- page = self .page (page_size = limits ["page_size" ])
698+ page = self .page (
699+ start_date = start_date ,
700+ end_date = end_date ,
701+ state = state ,
702+ page_size = limits ["page_size" ],
703+ )
693704
694705 return self ._version .stream (page , limits ["limit" ])
695706
696707 async def stream_async (
697708 self ,
709+ start_date : Union [str , object ] = values .unset ,
710+ end_date : Union [str , object ] = values .unset ,
711+ state : Union ["ConversationInstance.State" , object ] = values .unset ,
698712 limit : Optional [int ] = None ,
699713 page_size : Optional [int ] = None ,
700714 ) -> AsyncIterator [ConversationInstance ]:
@@ -704,6 +718,9 @@ async def stream_async(
704718 is reached.
705719 The results are returned as a generator, so this operation is memory efficient.
706720
721+ :param str start_date: Start date in ISO8601 format for sorting and filtering list of Conversations.
722+ :param str end_date: End date in ISO8601 format for sorting and filtering list of Conversations.
723+ :param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
707724 :param limit: Upper limit for the number of records to return. stream()
708725 guarantees to never return more than limit. Default is no limit
709726 :param page_size: Number of records to fetch per request, when not set will use
@@ -714,12 +731,20 @@ async def stream_async(
714731 :returns: Generator that will yield up to limit results
715732 """
716733 limits = self ._version .read_limits (limit , page_size )
717- page = await self .page_async (page_size = limits ["page_size" ])
734+ page = await self .page_async (
735+ start_date = start_date ,
736+ end_date = end_date ,
737+ state = state ,
738+ page_size = limits ["page_size" ],
739+ )
718740
719741 return self ._version .stream_async (page , limits ["limit" ])
720742
721743 def list (
722744 self ,
745+ start_date : Union [str , object ] = values .unset ,
746+ end_date : Union [str , object ] = values .unset ,
747+ state : Union ["ConversationInstance.State" , object ] = values .unset ,
723748 limit : Optional [int ] = None ,
724749 page_size : Optional [int ] = None ,
725750 ) -> List [ConversationInstance ]:
@@ -728,6 +753,9 @@ def list(
728753 Unlike stream(), this operation is eager and will load `limit` records into
729754 memory before returning.
730755
756+ :param str start_date: Start date in ISO8601 format for sorting and filtering list of Conversations.
757+ :param str end_date: End date in ISO8601 format for sorting and filtering list of Conversations.
758+ :param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
731759 :param limit: Upper limit for the number of records to return. list() guarantees
732760 never to return more than limit. Default is no limit
733761 :param page_size: Number of records to fetch per request, when not set will use
@@ -739,13 +767,19 @@ def list(
739767 """
740768 return list (
741769 self .stream (
770+ start_date = start_date ,
771+ end_date = end_date ,
772+ state = state ,
742773 limit = limit ,
743774 page_size = page_size ,
744775 )
745776 )
746777
747778 async def list_async (
748779 self ,
780+ start_date : Union [str , object ] = values .unset ,
781+ end_date : Union [str , object ] = values .unset ,
782+ state : Union ["ConversationInstance.State" , object ] = values .unset ,
749783 limit : Optional [int ] = None ,
750784 page_size : Optional [int ] = None ,
751785 ) -> List [ConversationInstance ]:
@@ -754,6 +788,9 @@ async def list_async(
754788 Unlike stream(), this operation is eager and will load `limit` records into
755789 memory before returning.
756790
791+ :param str start_date: Start date in ISO8601 format for sorting and filtering list of Conversations.
792+ :param str end_date: End date in ISO8601 format for sorting and filtering list of Conversations.
793+ :param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
757794 :param limit: Upper limit for the number of records to return. list() guarantees
758795 never to return more than limit. Default is no limit
759796 :param page_size: Number of records to fetch per request, when not set will use
@@ -766,13 +803,19 @@ async def list_async(
766803 return [
767804 record
768805 async for record in await self .stream_async (
806+ start_date = start_date ,
807+ end_date = end_date ,
808+ state = state ,
769809 limit = limit ,
770810 page_size = page_size ,
771811 )
772812 ]
773813
774814 def page (
775815 self ,
816+ start_date : Union [str , object ] = values .unset ,
817+ end_date : Union [str , object ] = values .unset ,
818+ state : Union ["ConversationInstance.State" , object ] = values .unset ,
776819 page_token : Union [str , object ] = values .unset ,
777820 page_number : Union [int , object ] = values .unset ,
778821 page_size : Union [int , object ] = values .unset ,
@@ -781,6 +824,9 @@ def page(
781824 Retrieve a single page of ConversationInstance records from the API.
782825 Request is executed immediately
783826
827+ :param start_date: Start date in ISO8601 format for sorting and filtering list of Conversations.
828+ :param end_date: End date in ISO8601 format for sorting and filtering list of Conversations.
829+ :param state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
784830 :param page_token: PageToken provided by the API
785831 :param page_number: Page Number, this value is simply for client state
786832 :param page_size: Number of records to return, defaults to 50
@@ -789,6 +835,9 @@ def page(
789835 """
790836 data = values .of (
791837 {
838+ "StartDate" : start_date ,
839+ "EndDate" : end_date ,
840+ "State" : state ,
792841 "PageToken" : page_token ,
793842 "Page" : page_number ,
794843 "PageSize" : page_size ,
@@ -800,6 +849,9 @@ def page(
800849
801850 async def page_async (
802851 self ,
852+ start_date : Union [str , object ] = values .unset ,
853+ end_date : Union [str , object ] = values .unset ,
854+ state : Union ["ConversationInstance.State" , object ] = values .unset ,
803855 page_token : Union [str , object ] = values .unset ,
804856 page_number : Union [int , object ] = values .unset ,
805857 page_size : Union [int , object ] = values .unset ,
@@ -808,6 +860,9 @@ async def page_async(
808860 Asynchronously retrieve a single page of ConversationInstance records from the API.
809861 Request is executed immediately
810862
863+ :param start_date: Start date in ISO8601 format for sorting and filtering list of Conversations.
864+ :param end_date: End date in ISO8601 format for sorting and filtering list of Conversations.
865+ :param state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
811866 :param page_token: PageToken provided by the API
812867 :param page_number: Page Number, this value is simply for client state
813868 :param page_size: Number of records to return, defaults to 50
@@ -816,6 +871,9 @@ async def page_async(
816871 """
817872 data = values .of (
818873 {
874+ "StartDate" : start_date ,
875+ "EndDate" : end_date ,
876+ "State" : state ,
819877 "PageToken" : page_token ,
820878 "Page" : page_number ,
821879 "PageSize" : page_size ,
0 commit comments