import { BaseResource } from '@gitbeaker/requester-utils'; import { RequestHelper, endpoint } from '../infrastructure'; import type { GitlabAPIResponse, ShowExpanded, Sudo } from '../infrastructure'; export interface ServiceAccountSchema extends Record { id: number; name: string; username: string; } export class ServiceAccounts extends BaseResource { create( options?: { name?: string; username?: string; } & Sudo & ShowExpanded, ): Promise> { return RequestHelper.post()(this, endpoint`service_accounts`, options); } }