Skip to content

Commit 39d38db

Browse files
feat(api): dpr type update
1 parent 487887e commit 39d38db

File tree

5 files changed

+24
-20
lines changed

5 files changed

+24
-20
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: 48
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-13fc3d7cafdea492f62eef7c1d63424d6d9d8adbff74b9f6ca6fd3fc12a36840.yml
3-
openapi_spec_hash: a1fe6fa48207791657a1ea2d60a6dfcc
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-e5b5a158784fff63311ceef956e8d5ce9e87c6b557d23ab737270040eb39adcd.yml
3+
openapi_spec_hash: b0293985a8806f367319af573d1b418c
44
config_hash: 47cb702ee2cb52c58d803ae39ade9b44

src/imagekitio/resources/beta/v2/files.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,11 @@ def upload(
111111
about how to implement secure client-side file upload.
112112
113113
**File size limit** \\
114-
On the free plan, the maximum upload file sizes are 20MB for images, audio, and raw
115-
files, and 100MB for videos. On the paid plan, these limits increase to 40MB for
116-
images, audio, and raw files, and 2GB for videos. These limits can be further increased
117-
with higher-tier plans.
114+
On the free plan, the maximum upload file sizes are 25MB for images, audio, and raw
115+
files, and 100MB for videos. On the Lite paid plan, these limits increase to 40MB
116+
for images, audio, and raw files and 300MB for videos, whereas on the Pro paid plan,
117+
these limits increase to 50MB for images, audio, and raw files and 2GB for videos.
118+
These limits can be further increased with enterprise plans.
118119
119120
**Version limit** \\
120121
A file can have a maximum of 100 versions.
@@ -365,10 +366,11 @@ async def upload(
365366
about how to implement secure client-side file upload.
366367
367368
**File size limit** \\
368-
On the free plan, the maximum upload file sizes are 20MB for images, audio, and raw
369-
files, and 100MB for videos. On the paid plan, these limits increase to 40MB for
370-
images, audio, and raw files, and 2GB for videos. These limits can be further increased
371-
with higher-tier plans.
369+
On the free plan, the maximum upload file sizes are 25MB for images, audio, and raw
370+
files, and 100MB for videos. On the Lite paid plan, these limits increase to 40MB
371+
for images, audio, and raw files and 300MB for videos, whereas on the Pro paid plan,
372+
these limits increase to 50MB for images, audio, and raw files and 2GB for videos.
373+
These limits can be further increased with enterprise plans.
372374
373375
**Version limit** \\
374376
A file can have a maximum of 100 versions.

src/imagekitio/resources/files/files.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -541,10 +541,11 @@ def upload(
541541
by verifying the entire payload using JWT.
542542
543543
**File size limit** \\
544-
On the free plan, the maximum upload file sizes are 20MB for images, audio, and raw
545-
files and 100MB for videos. On the paid plan, these limits increase to 40MB for images,
546-
audio, and raw files and 2GB for videos. These limits can be further increased with
547-
higher-tier plans.
544+
On the free plan, the maximum upload file sizes are 25MB for images, audio, and raw
545+
files and 100MB for videos. On the Lite paid plan, these limits increase to 40MB
546+
for images, audio, and raw files and 300MB for videos, whereas on the Pro paid plan,
547+
these limits increase to 50MB for images, audio, and raw files and 2GB for videos.
548+
These limits can be further increased with enterprise plans.
548549
549550
**Version limit** \\
550551
A file can have a maximum of 100 versions.
@@ -1214,10 +1215,11 @@ async def upload(
12141215
by verifying the entire payload using JWT.
12151216
12161217
**File size limit** \\
1217-
On the free plan, the maximum upload file sizes are 20MB for images, audio, and raw
1218-
files and 100MB for videos. On the paid plan, these limits increase to 40MB for images,
1219-
audio, and raw files and 2GB for videos. These limits can be further increased with
1220-
higher-tier plans.
1218+
On the free plan, the maximum upload file sizes are 25MB for images, audio, and raw
1219+
files and 100MB for videos. On the Lite paid plan, these limits increase to 40MB
1220+
for images, audio, and raw files and 300MB for videos, whereas on the Pro paid plan,
1221+
these limits increase to 50MB for images, audio, and raw files and 2GB for videos.
1222+
These limits can be further increased with enterprise plans.
12211223
12221224
**Version limit** \\
12231225
A file can have a maximum of 100 versions.

src/imagekitio/types/shared/transformation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class Transformation(BaseModel):
191191
[Distort effect](https://imagekit.io/docs/effects-and-enhancements#distort---e-distort).
192192
"""
193193

194-
dpr: Optional[float] = None
194+
dpr: Union[float, str, None] = None
195195
"""
196196
Accepts values between 0.1 and 5, or `auto` for automatic device pixel ratio
197197
(DPR) calculation. Also accepts arithmetic expressions.

src/imagekitio/types/shared_params/transformation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class Transformation(TypedDict, total=False):
189189
[Distort effect](https://imagekit.io/docs/effects-and-enhancements#distort---e-distort).
190190
"""
191191

192-
dpr: float
192+
dpr: Union[float, str]
193193
"""
194194
Accepts values between 0.1 and 5, or `auto` for automatic device pixel ratio
195195
(DPR) calculation. Also accepts arithmetic expressions.

0 commit comments

Comments
 (0)