import { BaseApi } from "../base-api"; import type { ApiRecords, ApiRecordsV2 } from "../types"; import type { AppCategory, CreateInstallationRequest, Installation, InstallationAccessToken, InstallationInfo, Profile } from "./types"; export interface ListInstallationsOptions { appCategory?: AppCategory | AppCategory[]; /** * Narrow the results to a single company. Only meaningful with an app * client-credentials token; with a company-scoped token the value must * match the authenticated company. */ companyId?: number; page?: number; perPage?: number; } /** * @module InstallationsApi * @description This module provides methods for managing installations. * @extends BaseApi */ declare class InstallationsApi extends BaseApi { /** * List installations for the authenticated company. */ getInstallations(options?: ListInstallationsOptions): Promise>; /** * Get a single installation by ID. */ getInstallation(installationId: number): Promise; /** * Get info about the installation associated with the current auth token. */ getCurrentInstallation(): Promise; /** * Create a new installation for an app. */ createInstallation(body: CreateInstallationRequest): Promise; /** * Delete an installation by ID. */ deleteInstallation(installationId: number): Promise; getInstallationProfiles(installationId: number): Promise>; /** * Create an installation-scoped access token on behalf of the authenticated * user. Requires a user-bound bearer token (app client-credentials tokens * return 403). 404 if the installation does not exist or does not belong to * the caller's company. */ createInstallationToken(installationId: number): Promise; } export { type AppCategory, type CreateInstallationRequest, type Installation, type InstallationAccessToken, type InstallationInfo, InstallationsApi, type Profile, };