import { AxiosInstance } from "axios"; import Base, { MaybeRaw, Options } from "../../../Base"; import { PaginatedResponse } from "../../../interfaces/global"; import { JoinToken } from "../../../interfaces/high5/joinToken"; import { User } from "../../../interfaces/idp"; export declare class High5JoinToken extends Base { constructor(options: Options, axios: AxiosInstance); /** * Retrieves join tokens of the specified organization (paginated request) * @param orgName Name of the Organization * @param limit (optional) Max number of results (1-100; defaults to 25) * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0) * @returns Object containing an array of join tokens and the total number of results found in the database (independent of limit and page) */ get(orgName: string, limit?: number, page?: number, raw?: { raw: R; }): Promise>>; /** * Creates a join token for the specified organization * @param orgName Name of the Organization * @param name Name of the Join Token * @returns Created join token */ create(orgName: string, name: string, raw?: { raw: R; }): Promise>; /** * Revokes a join token of the specified organization * @param orgName Name of the Organization * @param tokenId ID of the Join Token */ revoke(orgName: string, tokenId: string, raw?: { raw: R; }): Promise>; /** * Exchanges a join token for an agent user * * @param joinToken Join token * @returns An object containing the User object and the PAT that represents the agent user */ exchange(joinToken: string, raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }