Skip to content

Commit 81ec737

Browse files
feat(api): dpr type update
1 parent 9dde351 commit 81ec737

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 47
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/resources/beta/v2/files.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ export class Files extends APIResource {
2222
* about how to implement secure client-side file upload.
2323
*
2424
* **File size limit** \
25-
* On the free plan, the maximum upload file sizes are 20MB for images, audio, and raw
26-
* files, and 100MB for videos. On the paid plan, these limits increase to 40MB for
27-
* images, audio, and raw files, and 2GB for videos. These limits can be further increased
28-
* with higher-tier plans.
25+
* On the free plan, the maximum upload file sizes are 25MB for images, audio, and raw
26+
* files, and 100MB for videos. On the Lite paid plan, these limits increase to 40MB
27+
* for images, audio, and raw files and 300MB for videos, whereas on the Pro paid plan,
28+
* these limits increase to 50MB for images, audio, and raw files and 2GB for videos.
29+
* These limits can be further increased with enterprise plans.
2930
*
3031
* **Version limit** \
3132
* A file can have a maximum of 100 versions.

src/resources/files/files.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,11 @@ export class Files extends APIResource {
152152
* by verifying the entire payload using JWT.
153153
*
154154
* **File size limit** \
155-
* On the free plan, the maximum upload file sizes are 20MB for images, audio, and raw
156-
* files and 100MB for videos. On the paid plan, these limits increase to 40MB for images,
157-
* audio, and raw files and 2GB for videos. These limits can be further increased with
158-
* higher-tier plans.
155+
* On the free plan, the maximum upload file sizes are 25MB for images, audio, and raw
156+
* files and 100MB for videos. On the Lite paid plan, these limits increase to 40MB
157+
* for images, audio, and raw files and 300MB for videos, whereas on the Pro paid plan,
158+
* these limits increase to 50MB for images, audio, and raw files and 2GB for videos.
159+
* These limits can be further increased with enterprise plans.
159160
*
160161
* **Version limit** \
161162
* A file can have a maximum of 100 versions.

src/resources/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ export interface Transformation {
14541454
* [Arithmetic expressions](https://imagekit.io/docs/arithmetic-expressions-in-transformations).
14551455
* - See [DPR](https://imagekit.io/docs/image-resize-and-crop#dpr---dpr).
14561456
*/
1457-
dpr?: number;
1457+
dpr?: number | string;
14581458

14591459
/**
14601460
* Specifies the duration (in seconds) for trimming videos, e.g., `5` or `10.5`.

0 commit comments

Comments
 (0)