Skip to content

Commit

Permalink
fix: ApiKeyUpdateResponse Interface has been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam-pareek committed Oct 7, 2024
1 parent bd7912f commit d04c469
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/apis/apiKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ export interface ApiKeysUpdateParams {
scopes?: string[];
defaults?: Record<string, any>;
}
export interface ApiKeysUpdateResponse extends APIResponseType {
object?: string;
total?:number;
data?: Record<string, any>[];
}
export interface ApiKeysListParams {
page_size?: number;
current_page?: number;
Expand Down Expand Up @@ -108,13 +103,13 @@ export class ApiKeys extends ApiResource {
_body: ApiKeysUpdateParams,
params?: ApiClientInterface,
opts?: RequestOptions
): APIPromise<ApiKeysUpdateResponse> {
): APIPromise<any> {
const body = _body;
const id = body.id;
if (params) {
this.client.customHeaders = { ...this.client.customHeaders, ...createHeaders({ ...params }) }
}
const response = this.put<ApiKeysUpdateResponse>(`/api-keys/${id}`, { body, ...opts });
const response = this.put<any>(`/api-keys/${id}`, { body, ...opts });
return response;
}
list(
Expand Down

0 comments on commit d04c469

Please sign in to comment.