2626from ...types .parsing .return_format import ReturnFormat
2727from ...types .parsing .chunking_strategy import ChunkingStrategy
2828from ...types .parsing .job_list_response import JobListResponse
29+ from ...types .parsing .parsing_job_status import ParsingJobStatus
2930from ...types .parsing .job_delete_response import JobDeleteResponse
3031
3132__all__ = ["JobsResource" , "AsyncJobsResource" ]
@@ -153,8 +154,10 @@ def list(
153154 self ,
154155 * ,
155156 limit : int | NotGiven = NOT_GIVEN ,
156- cursor : Optional [str ] | NotGiven = NOT_GIVEN ,
157+ after : Optional [str ] | NotGiven = NOT_GIVEN ,
158+ before : Optional [str ] | NotGiven = NOT_GIVEN ,
157159 include_total : bool | NotGiven = NOT_GIVEN ,
160+ statuses : Optional [List [ParsingJobStatus ]] | NotGiven = NOT_GIVEN ,
158161 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
159162 # The extra values given here take precedence over values defined on the client or passed to this method.
160163 extra_headers : Headers | None = None ,
@@ -171,11 +174,17 @@ def list(
171174 Returns: List of parsing jobs with pagination.
172175
173176 Args:
174- limit: Maximum number of items to return per page
177+ limit: Maximum number of items to return per page (1-100)
175178
176- cursor: Cursor for pagination (base64 encoded cursor)
179+ after: Cursor for forward pagination - get items after this position. Use last_cursor
180+ from previous response.
177181
178- include_total: Whether to include the total number of items
182+ before: Cursor for backward pagination - get items before this position. Use
183+ first_cursor from previous response.
184+
185+ include_total: Whether to include total count in response (expensive operation)
186+
187+ statuses: Status to filter by
179188
180189 extra_headers: Send extra headers
181190
@@ -195,8 +204,10 @@ def list(
195204 query = maybe_transform (
196205 {
197206 "limit" : limit ,
198- "cursor" : cursor ,
207+ "after" : after ,
208+ "before" : before ,
199209 "include_total" : include_total ,
210+ "statuses" : statuses ,
200211 },
201212 job_list_params .JobListParams ,
202213 ),
@@ -562,8 +573,10 @@ async def list(
562573 self ,
563574 * ,
564575 limit : int | NotGiven = NOT_GIVEN ,
565- cursor : Optional [str ] | NotGiven = NOT_GIVEN ,
576+ after : Optional [str ] | NotGiven = NOT_GIVEN ,
577+ before : Optional [str ] | NotGiven = NOT_GIVEN ,
566578 include_total : bool | NotGiven = NOT_GIVEN ,
579+ statuses : Optional [List [ParsingJobStatus ]] | NotGiven = NOT_GIVEN ,
567580 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
568581 # The extra values given here take precedence over values defined on the client or passed to this method.
569582 extra_headers : Headers | None = None ,
@@ -580,11 +593,17 @@ async def list(
580593 Returns: List of parsing jobs with pagination.
581594
582595 Args:
583- limit: Maximum number of items to return per page
596+ limit: Maximum number of items to return per page (1-100)
597+
598+ after: Cursor for forward pagination - get items after this position. Use last_cursor
599+ from previous response.
600+
601+ before: Cursor for backward pagination - get items before this position. Use
602+ first_cursor from previous response.
584603
585- cursor: Cursor for pagination (base64 encoded cursor )
604+ include_total: Whether to include total count in response (expensive operation )
586605
587- include_total: Whether to include the total number of items
606+ statuses: Status to filter by
588607
589608 extra_headers: Send extra headers
590609
@@ -604,8 +623,10 @@ async def list(
604623 query = await async_maybe_transform (
605624 {
606625 "limit" : limit ,
607- "cursor" : cursor ,
626+ "after" : after ,
627+ "before" : before ,
608628 "include_total" : include_total ,
629+ "statuses" : statuses ,
609630 },
610631 job_list_params .JobListParams ,
611632 ),
0 commit comments