/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments.js"; import * as core from "../../../../core/index.js"; import * as Klavis from "../../../index.js"; export declare namespace ZoomOauth { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; apiKey?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; fetcher?: core.FetchFunction; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional headers to include in the request. */ headers?: Record | undefined>; } } export declare class ZoomOauth { protected readonly _options: ZoomOauth.Options; constructor(_options?: ZoomOauth.Options); /** * @param {Klavis.AuthorizeZoomRequest} request * @param {ZoomOauth.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Klavis.UnprocessableEntityError} * * @example * await client.zoomOauth.authorizeZoom({ * instance_id: "instance_id", * client_id: "client_id", * scope: "scope", * redirect_url: "redirect_url" * }) */ authorizeZoom(request: Klavis.AuthorizeZoomRequest, requestOptions?: ZoomOauth.RequestOptions): core.HttpResponsePromise; private __authorizeZoom; /** * @param {Klavis.RefreshTokenOauthZoomRefreshTokenPostRequest} request * @param {ZoomOauth.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Klavis.BadRequestError} * @throws {@link Klavis.UnprocessableEntityError} * * @example * await client.zoomOauth.refreshToken({ * instance_id: "instance_id" * }) */ refreshToken(request: Klavis.RefreshTokenOauthZoomRefreshTokenPostRequest, requestOptions?: ZoomOauth.RequestOptions): core.HttpResponsePromise; private __refreshToken; protected _getAuthorizationHeader(): Promise; }