Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 704c3dd

Browse files
feat(api)!: update all created.* query string to epoch unix time format
1 parent e243661 commit 704c3dd

File tree

12 files changed

+43
-48
lines changed
  • .stats.yml
  • src/chunkify
    • resources
      • notifications.py
    • types
      • file_list_params.py
      • job_list_params.py
      • notification_list_params.py
      • source_list_params.py
      • upload_list_params.py
  • tests/api_resources
    • test_files.py
    • test_jobs.py
    • test_notifications.py
    • test_sources.py
    • test_uploads.py

12 files changed

+43
-48
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 40
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/chunkify%2Fchunkify-3116452ccc1f012b29d8d7d61a99175f0c34f677eeb5d289fb7a4860cc25cf81.yml
3-
openapi_spec_hash: 57bd435029a15d0a289d4460c39b52ec
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/chunkify%2Fchunkify-13ed1b11f0d5f974dc7fae1ad2230104d95ee287aeb8c37f38a52226f24b5f9b.yml
3+
openapi_spec_hash: f1f33b2e2adbe67adcec99d451507a77
44
config_hash: aca45258763fef8e39368b27194ead25

src/chunkify/resources/notifications.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ def list(
162162
Retrieve a list of notifications with optional filtering and pagination
163163
164164
Args:
165-
events: Filter by events (e.g. job.completed, job.failed, upload.completed,
166-
upload.failed, upload.expired)
165+
events: Filter by events
167166
168167
limit: Pagination limit (max 100)
169168
@@ -376,8 +375,7 @@ def list(
376375
Retrieve a list of notifications with optional filtering and pagination
377376
378377
Args:
379-
events: Filter by events (e.g. job.completed, job.failed, upload.completed,
380-
upload.failed, upload.expired)
378+
events: Filter by events
381379
382380
limit: Pagination limit (max 100)
383381

src/chunkify/types/file_list_params.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ class FileListParams(TypedDict, total=False):
4646

4747

4848
class Created(TypedDict, total=False):
49-
gte: str
50-
"""Filter by creation date greater than or equal (RFC3339)"""
49+
gte: int
50+
"""Filter by creation date greater than or equal (UNIX epoch time)"""
5151

52-
lte: str
53-
"""Filter by creation date less than or equal (RFC3339)"""
52+
lte: int
53+
"""Filter by creation date less than or equal (UNIX epoch time)"""
5454

5555
sort: Literal["asc", "desc"]
5656
"""Sort by creation date (asc/desc)"""

src/chunkify/types/job_list_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ class JobListParams(TypedDict, total=False):
3939

4040

4141
class Created(TypedDict, total=False):
42-
gte: str
42+
gte: int
4343
"""Filter by creation date greater than or equal"""
4444

45-
lte: str
45+
lte: int
4646
"""Filter by creation date less than or equal"""
4747

4848
sort: Literal["asc", "desc"]

src/chunkify/types/notification_list_params.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ class NotificationListParams(TypedDict, total=False):
1414
events: List[
1515
Literal["job.completed", "job.failed", "job.cancelled", "upload.completed", "upload.failed", "upload.expired"]
1616
]
17-
"""Filter by events (e.g.
18-
19-
job.completed, job.failed, upload.completed, upload.failed, upload.expired)
20-
"""
17+
"""Filter by events"""
2118

2219
limit: int
2320
"""Pagination limit (max 100)"""
@@ -35,11 +32,11 @@ class NotificationListParams(TypedDict, total=False):
3532

3633

3734
class Created(TypedDict, total=False):
38-
gte: str
39-
"""Filter by creation date greater than or equal (RFC3339)"""
35+
gte: int
36+
"""Filter by creation date greater than or equal (UNIX epoch time)"""
4037

41-
lte: str
42-
"""Filter by creation date less than or equal (RFC3339)"""
38+
lte: int
39+
"""Filter by creation date less than or equal (UNIX epoch time)"""
4340

4441
sort: Literal["asc", "desc"]
4542
"""Sort by creation date (asc/desc)"""

src/chunkify/types/source_list_params.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ class SourceListParams(TypedDict, total=False):
4444

4545

4646
class Created(TypedDict, total=False):
47-
gte: str
48-
"""Filter by creation date greater than or equal (RFC3339)"""
47+
gte: int
48+
"""Filter by creation date greater than or equal (UNIX epoch time)"""
4949

50-
lte: str
51-
"""Filter by creation date less than or equal (RFC3339)"""
50+
lte: int
51+
"""Filter by creation date less than or equal (UNIX epoch time)"""
5252

5353
sort: Literal["asc", "desc"]
5454
"""Sort by creation date (asc/desc)"""

src/chunkify/types/upload_list_params.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ class UploadListParams(TypedDict, total=False):
3333

3434

3535
class Created(TypedDict, total=False):
36-
gte: str
37-
"""Filter by creation date greater than or equal (RFC3339)"""
36+
gte: int
37+
"""Filter by creation date greater than or equal (UNIX epoch time)"""
3838

39-
lte: str
40-
"""Filter by creation date less than or equal (RFC3339)"""
39+
lte: int
40+
"""Filter by creation date less than or equal (UNIX epoch time)"""
4141

4242
sort: Literal["asc", "desc"]
4343
"""Sort by creation date (asc/desc)"""

tests/api_resources/test_files.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def test_method_list_with_all_params(self, client: Chunkify) -> None:
7373
id="id",
7474
audio_codec="audio_codec",
7575
created={
76-
"gte": "gte",
77-
"lte": "lte",
76+
"gte": 0,
77+
"lte": 0,
7878
"sort": "asc",
7979
},
8080
duration={
@@ -243,8 +243,8 @@ async def test_method_list_with_all_params(self, async_client: AsyncChunkify) ->
243243
id="id",
244244
audio_codec="audio_codec",
245245
created={
246-
"gte": "gte",
247-
"lte": "lte",
246+
"gte": 0,
247+
"lte": 0,
248248
"sort": "asc",
249249
},
250250
duration={

tests/api_resources/test_jobs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ def test_method_list_with_all_params(self, client: Chunkify) -> None:
153153
job = client.jobs.list(
154154
id="id",
155155
created={
156-
"gte": "2025-01-01",
157-
"lte": "2025-01-01",
156+
"gte": 0,
157+
"lte": 0,
158158
"sort": "asc",
159159
},
160160
format_id="mp4_h264",
@@ -414,8 +414,8 @@ async def test_method_list_with_all_params(self, async_client: AsyncChunkify) ->
414414
job = await async_client.jobs.list(
415415
id="id",
416416
created={
417-
"gte": "2025-01-01",
418-
"lte": "2025-01-01",
417+
"gte": 0,
418+
"lte": 0,
419419
"sort": "asc",
420420
},
421421
format_id="mp4_h264",

tests/api_resources/test_notifications.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ def test_method_list(self, client: Chunkify) -> None:
111111
def test_method_list_with_all_params(self, client: Chunkify) -> None:
112112
notification = client.notifications.list(
113113
created={
114-
"gte": "2102-57-32",
115-
"lte": "2025-01-01",
114+
"gte": 0,
115+
"lte": 0,
116116
"sort": "asc",
117117
},
118118
events=["job.completed"],
@@ -291,8 +291,8 @@ async def test_method_list(self, async_client: AsyncChunkify) -> None:
291291
async def test_method_list_with_all_params(self, async_client: AsyncChunkify) -> None:
292292
notification = await async_client.notifications.list(
293293
created={
294-
"gte": "2102-57-32",
295-
"lte": "2025-01-01",
294+
"gte": 0,
295+
"lte": 0,
296296
"sort": "asc",
297297
},
298298
events=["job.completed"],

0 commit comments

Comments
(0)