@@ -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 AdminApiRateLimitingResponse {
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 , AdminApiRateLimitingResponse {
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 , AdminApiRateLimitingResponse {
780790 resources : [
781791 {
782792 public_id : string ;
@@ -813,11 +823,7 @@ declare module 'cloudinary' {
813823
814824 [ futureKey : string ] : any ;
815825 }
816- ] ,
817- next_cursor ?: string ;
818- rate_limit_allowed ?: number ;
819- rate_limit_reset_at ?: string ;
820- rate_limit_remaining ?: number ;
826+ ]
821827 }
822828
823829 export type SignApiOptions = Record < string , any > ;
0 commit comments