import Base, { MaybeRaw } from "../../../../../Base"; import { PaginatedResponse, SearchParams } from "../../../../../interfaces/global"; import { Pat, PatCreate, PatUpdate } from "../../../../../interfaces/idp/user/Pat"; export declare class IdpPat extends Base { /** * Search all personal access tokens (PATs) of the requesting user. * @returns Paginated response of PAT objects */ searchPats({ filters, sorting, limit, page }: SearchParams, raw?: { raw: R; }): Promise>>; /** * Retrieves a single personal access token (PAT) by ID. * @param patId ID of the PAT * @returns The requested PAT object */ getPat(patId: string, raw?: { raw: R; }): Promise>; /** * Regenerates a personal access token (PAT). * @param patId ID of the PAT * @returns PAT object holding the updated token */ regeneratePat(patId: string, token?: string, raw?: { raw: R; }): Promise>; /** * Creates a new personal access token (PAT) for requesting user * @param patCreate Object with informations needed to create a PAT: Name, expiration and scopes * @returns the created PAT object */ generatePat(patCreate: PatCreate, raw?: { raw: R; }): Promise>; /** * Updates an existing PAT object. * * Use an expiration value of -1 to remove the token's expiration date. * * @param patId ID of the pat object * @param patUpdate Object containing new name, expiration and scopes * @returns the updated PAT object */ updatePat(patId: string, patUpdate: PatUpdate, raw?: { raw: R; }): Promise>; /** * Deletes a personal access token (PAT) of the requesting User. * @param patId Id of the PAT */ deletePat(patId: string, raw?: { raw: R; }): Promise>; /** * Deletes all personal access tokens (PATs) of the requesting User. */ deleteAllPats(raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }