import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; import { Configuration } from "../../datadog-api-client-common/configuration"; import { RequestContext, ResponseContext } from "../../datadog-api-client-common/http/http"; import { UserAuthorizedClientData } from "../models/UserAuthorizedClientData"; import { UserAuthorizedClientResponse } from "../models/UserAuthorizedClientResponse"; import { UserAuthorizedClientsResponse } from "../models/UserAuthorizedClientsResponse"; export declare class UserAuthorizedClientsApiRequestFactory extends BaseAPIRequestFactory { deleteUserAuthorizedClient(userAuthorizedClientId: string, _options?: Configuration): Promise; deleteUserAuthorizedClientsByClient(clientId: string, _options?: Configuration): Promise; getUserAuthorizedClient(userAuthorizedClientId: string, _options?: Configuration): Promise; listUserAuthorizedClients(pageSize?: number, pageNumber?: number, filter?: string, filterDisabled?: string, include?: string, _options?: Configuration): Promise; } export declare class UserAuthorizedClientsApiResponseProcessor { /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to deleteUserAuthorizedClient * @throws ApiException if the response code was not in [200, 299] */ deleteUserAuthorizedClient(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to deleteUserAuthorizedClientsByClient * @throws ApiException if the response code was not in [200, 299] */ deleteUserAuthorizedClientsByClient(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getUserAuthorizedClient * @throws ApiException if the response code was not in [200, 299] */ getUserAuthorizedClient(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listUserAuthorizedClients * @throws ApiException if the response code was not in [200, 299] */ listUserAuthorizedClients(response: ResponseContext): Promise; } export interface UserAuthorizedClientsApiDeleteUserAuthorizedClientRequest { /** * The ID of the user authorized client. * @type string */ userAuthorizedClientId: string; } export interface UserAuthorizedClientsApiDeleteUserAuthorizedClientsByClientRequest { /** * The ID of the OAuth2 client. * @type string */ clientId: string; } export interface UserAuthorizedClientsApiGetUserAuthorizedClientRequest { /** * The ID of the user authorized client. * @type string */ userAuthorizedClientId: string; } export interface UserAuthorizedClientsApiListUserAuthorizedClientsRequest { /** * Number of items to return per page. The maximum allowed value is 100. * @type number */ pageSize?: number; /** * Specific page number to return. * @type number */ pageNumber?: number; /** * Filter results by client name, app title, or app description. * @type string */ filter?: string; /** * Filter results by the user-level disabled status. * @type string */ filterDisabled?: string; /** * Comma-separated list of related resources to include. Options: `oauth2_client`, `oauth2_client.app`. * @type string */ include?: string; } export declare class UserAuthorizedClientsApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: UserAuthorizedClientsApiRequestFactory, responseProcessor?: UserAuthorizedClientsApiResponseProcessor); /** * Disable the current user's authorization for the specified OAuth2 client. * @param param The request object */ deleteUserAuthorizedClient(param: UserAuthorizedClientsApiDeleteUserAuthorizedClientRequest, options?: Configuration): Promise; /** * Disable all authorizations the current user has granted to the specified OAuth2 client. * @param param The request object */ deleteUserAuthorizedClientsByClient(param: UserAuthorizedClientsApiDeleteUserAuthorizedClientsByClientRequest, options?: Configuration): Promise; /** * Get a single OAuth2 client authorization for the current user. * @param param The request object */ getUserAuthorizedClient(param: UserAuthorizedClientsApiGetUserAuthorizedClientRequest, options?: Configuration): Promise; /** * Get a list of all OAuth2 clients authorized by the current user. * @param param The request object */ listUserAuthorizedClients(param?: UserAuthorizedClientsApiListUserAuthorizedClientsRequest, options?: Configuration): Promise; /** * Provide a paginated version of listUserAuthorizedClients returning a generator with all the items. */ listUserAuthorizedClientsWithPagination(param?: UserAuthorizedClientsApiListUserAuthorizedClientsRequest, options?: Configuration): AsyncGenerator; }