import { BaseResource } from '@gitbeaker/requester-utils'; import { RequestHelper, endpoint } from '../infrastructure'; import type { GitlabAPIResponse, PaginationRequestOptions, PaginationTypes, ShowExpanded, Sudo, } from '../infrastructure'; export interface ErrorTrackingClientKeySchema extends Record { id: number; active: boolean; public_key: string; sentry_dsn: string; } export class ErrorTrackingClientKeys extends BaseResource { all( projectId: string | number, options?: PaginationRequestOptions

& Sudo & ShowExpanded, ): Promise> { return RequestHelper.get()( this, endpoint`projects/${projectId}/error_tracking/client_keys`, options, ); } create( projectId: string | number, options?: Sudo & ShowExpanded, ): Promise> { return RequestHelper.post()( this, endpoint`projects/${projectId}/error_tracking/client_keys`, options, ); } remove( projectId: string | number, options?: Sudo & ShowExpanded, ): Promise> { return RequestHelper.del()( this, endpoint`projects/${projectId}/error_tracking/client_keys`, options, ); } }