import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Management from "../../../index.js"; import { OrganizationsClient } from "../resources/organizations/client/Client.js"; export declare namespace ClientGrantsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class ClientGrantsClient { protected readonly _options: NormalizedClientOptionsWithAuth; protected _organizations: OrganizationsClient | undefined; constructor(options: ClientGrantsClient.Options); get organizations(): OrganizationsClient; /** * Retrieve a list of client grants, including the scopes associated with the application/API pair. * * @param {Management.ListClientGrantsRequestParameters} request * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Management.UnauthorizedError} * @throws {@link Management.ForbiddenError} * @throws {@link Management.TooManyRequestsError} * * @example * await client.clientGrants.list({ * from: "from", * take: 1, * audience: "audience", * client_id: "client_id", * allow_any_organization: true, * subject_type: "client", * default_for: "third_party_clients" * }) */ list(request?: Management.ListClientGrantsRequestParameters, requestOptions?: ClientGrantsClient.RequestOptions): Promise>; /** * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. * * @param {Management.CreateClientGrantRequestContent} request * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Management.BadRequestError} * @throws {@link Management.UnauthorizedError} * @throws {@link Management.ForbiddenError} * @throws {@link Management.NotFoundError} * @throws {@link Management.ConflictError} * @throws {@link Management.TooManyRequestsError} * * @example * await client.clientGrants.create({ * audience: "audience" * }) */ create(request: Management.CreateClientGrantRequestContent, requestOptions?: ClientGrantsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieve a single client grant, including the * scopes associated with the application/API pair. * * @param {string} id - The ID of the client grant to retrieve. * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Management.UnauthorizedError} * @throws {@link Management.ForbiddenError} * @throws {@link Management.NotFoundError} * @throws {@link Management.TooManyRequestsError} * * @example * await client.clientGrants.get("id") */ get(id: string, requestOptions?: ClientGrantsClient.RequestOptions): core.HttpResponsePromise; private __get; /** * Delete the Client Credential Flow from your machine-to-machine application. * * @param {string} id - ID of the client grant to delete. * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Management.BadRequestError} * @throws {@link Management.UnauthorizedError} * @throws {@link Management.ForbiddenError} * @throws {@link Management.TooManyRequestsError} * * @example * await client.clientGrants.delete("id") */ delete(id: string, requestOptions?: ClientGrantsClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * Update a client grant. * * @param {string} id - ID of the client grant to update. * @param {Management.UpdateClientGrantRequestContent} request * @param {ClientGrantsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Management.BadRequestError} * @throws {@link Management.UnauthorizedError} * @throws {@link Management.ForbiddenError} * @throws {@link Management.NotFoundError} * @throws {@link Management.TooManyRequestsError} * * @example * await client.clientGrants.update("id") */ update(id: string, request?: Management.UpdateClientGrantRequestContent, requestOptions?: ClientGrantsClient.RequestOptions): core.HttpResponsePromise; private __update; }