|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import Iterable, Optional |
| 5 | +from typing import Union, Iterable, Optional |
| 6 | +from datetime import datetime |
6 | 7 | from typing_extensions import Literal |
7 | 8 |
|
8 | 9 | import httpx |
@@ -101,6 +102,10 @@ def create( |
101 | 102 | def list( |
102 | 103 | self, |
103 | 104 | *, |
| 105 | + created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
| 106 | + created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
| 107 | + created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
| 108 | + created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
104 | 109 | cursor: Optional[str] | NotGiven = NOT_GIVEN, |
105 | 110 | limit: int | NotGiven = NOT_GIVEN, |
106 | 111 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -140,6 +145,10 @@ def list( |
140 | 145 | timeout=timeout, |
141 | 146 | query=maybe_transform( |
142 | 147 | { |
| 148 | + "created_at_gt": created_at_gt, |
| 149 | + "created_at_gte": created_at_gte, |
| 150 | + "created_at_lt": created_at_lt, |
| 151 | + "created_at_lte": created_at_lte, |
143 | 152 | "cursor": cursor, |
144 | 153 | "limit": limit, |
145 | 154 | }, |
@@ -261,6 +270,10 @@ async def create( |
261 | 270 | def list( |
262 | 271 | self, |
263 | 272 | *, |
| 273 | + created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
| 274 | + created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
| 275 | + created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
| 276 | + created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
264 | 277 | cursor: Optional[str] | NotGiven = NOT_GIVEN, |
265 | 278 | limit: int | NotGiven = NOT_GIVEN, |
266 | 279 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -300,6 +313,10 @@ def list( |
300 | 313 | timeout=timeout, |
301 | 314 | query=maybe_transform( |
302 | 315 | { |
| 316 | + "created_at_gt": created_at_gt, |
| 317 | + "created_at_gte": created_at_gte, |
| 318 | + "created_at_lt": created_at_lt, |
| 319 | + "created_at_lte": created_at_lte, |
303 | 320 | "cursor": cursor, |
304 | 321 | "limit": limit, |
305 | 322 | }, |
|
0 commit comments