File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -601,6 +601,16 @@ declare module 'cloudinary' {
601601
602602 type UploadResponseCallback = ( err ?: UploadApiErrorResponse , callResult ?: UploadApiResponse ) => void ;
603603
604+ export interface AdminApiPaginationResponse {
605+ next_cursor ?: string ;
606+ }
607+
608+ export interface AdminApiBaseResponse {
609+ rate_limit_allowed ?: number ;
610+ rate_limit_reset_at ?: string ;
611+ rate_limit_remaining ?: number ;
612+ }
613+
604614 export interface UploadApiResponse {
605615 public_id : string ;
606616 version : number ;
@@ -694,7 +704,7 @@ declare module 'cloudinary' {
694704 [ futureKey : string ] : any ;
695705 }
696706
697- export interface MetadataFieldsApiResponse {
707+ export interface MetadataFieldsApiResponse extends AdminApiPaginationResponse , AdminApiBaseResponse {
698708 metadata_fields : MetadataFieldApiResponse [ ]
699709 }
700710
@@ -776,7 +786,7 @@ declare module 'cloudinary' {
776786
777787 export type MetadataRulesListResponse = Array < MetadataRuleResponse > ;
778788
779- export interface ResourceApiResponse {
789+ export interface ResourceApiResponse extends AdminApiPaginationResponse , AdminApiBaseResponse {
780790 resources : [
781791 {
782792 public_id : string ;
You can’t perform that action at this time.
0 commit comments