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 { OrgAuthorizedClientData } from "../models/OrgAuthorizedClientData"; import { OrgAuthorizedClientResponse } from "../models/OrgAuthorizedClientResponse"; import { OrgAuthorizedClientsResponse } from "../models/OrgAuthorizedClientsResponse"; import { OrgAuthorizedClientUpdateRequest } from "../models/OrgAuthorizedClientUpdateRequest"; import { OrgAuthorizedClientUserAuthorizationsSort } from "../models/OrgAuthorizedClientUserAuthorizationsSort"; import { UserAuthorizedClientData } from "../models/UserAuthorizedClientData"; import { UserAuthorizedClientsResponse } from "../models/UserAuthorizedClientsResponse"; export declare class OrgAuthorizedClientsApiRequestFactory extends BaseAPIRequestFactory { deleteOrgAuthorizedClient(orgAuthorizedClientId: string, _options?: Configuration): Promise; deleteOrgAuthorizedClientAllUserAuthorizations(orgAuthorizedClientId: string, userId: string, _options?: Configuration): Promise; deleteOrgAuthorizedClientUserAuthorization(orgAuthorizedClientId: string, userAuthorizedClientId: string, _options?: Configuration): Promise; getOrgAuthorizedClient(orgAuthorizedClientId: string, include?: string, filterUserAuthorizedClientsDisabled?: string, filterUserAuthorizedClientsUserDisabled?: string, _options?: Configuration): Promise; listOrgAuthorizedClients(pageSize?: number, pageNumber?: number, sort?: string, filter?: string, filterOauth2ClientName?: string, filterDisabled?: string, include?: string, _options?: Configuration): Promise; listOrgAuthorizedClientUserAuthorizations(orgAuthorizedClientId: string, pageSize?: number, pageNumber?: number, sort?: OrgAuthorizedClientUserAuthorizationsSort, filterDisabled?: string, filterUserName?: string, filterUserEmail?: string, filterUserDisabled?: string, _options?: Configuration): Promise; updateOrgAuthorizedClient(orgAuthorizedClientId: string, body: OrgAuthorizedClientUpdateRequest, _options?: Configuration): Promise; } export declare class OrgAuthorizedClientsApiResponseProcessor { /** * 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 deleteOrgAuthorizedClient * @throws ApiException if the response code was not in [200, 299] */ deleteOrgAuthorizedClient(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 deleteOrgAuthorizedClientAllUserAuthorizations * @throws ApiException if the response code was not in [200, 299] */ deleteOrgAuthorizedClientAllUserAuthorizations(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 deleteOrgAuthorizedClientUserAuthorization * @throws ApiException if the response code was not in [200, 299] */ deleteOrgAuthorizedClientUserAuthorization(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 getOrgAuthorizedClient * @throws ApiException if the response code was not in [200, 299] */ getOrgAuthorizedClient(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 listOrgAuthorizedClients * @throws ApiException if the response code was not in [200, 299] */ listOrgAuthorizedClients(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 listOrgAuthorizedClientUserAuthorizations * @throws ApiException if the response code was not in [200, 299] */ listOrgAuthorizedClientUserAuthorizations(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 updateOrgAuthorizedClient * @throws ApiException if the response code was not in [200, 299] */ updateOrgAuthorizedClient(response: ResponseContext): Promise; } export interface OrgAuthorizedClientsApiDeleteOrgAuthorizedClientRequest { /** * The ID of the org authorized client. * @type string */ orgAuthorizedClientId: string; } export interface OrgAuthorizedClientsApiDeleteOrgAuthorizedClientAllUserAuthorizationsRequest { /** * The ID of the org authorized client. * @type string */ orgAuthorizedClientId: string; /** * The ID of the user. * @type string */ userId: string; } export interface OrgAuthorizedClientsApiDeleteOrgAuthorizedClientUserAuthorizationRequest { /** * The ID of the org authorized client. * @type string */ orgAuthorizedClientId: string; /** * The ID of the user authorized client. * @type string */ userAuthorizedClientId: string; } export interface OrgAuthorizedClientsApiGetOrgAuthorizedClientRequest { /** * The ID of the org authorized client. * @type string */ orgAuthorizedClientId: string; /** * Comma-separated list of related resources to include. * Options: `oauth2_client`, `oauth2_client.app`, `oauth2_client.scopes`, `user_authorized_clients.user`. * @type string */ include?: string; /** * Filter included user authorized clients by disabled status. * @type string */ filterUserAuthorizedClientsDisabled?: string; /** * Filter included user authorized clients by user disabled status. * @type string */ filterUserAuthorizedClientsUserDisabled?: string; } export interface OrgAuthorizedClientsApiListOrgAuthorizedClientsRequest { /** * 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; /** * Field to sort results by. Options include `oauth2_client.name`. * @type string */ sort?: string; /** * Filter results by client name, app title, or app description. * @type string */ filter?: string; /** * Filter results by the OAuth2 client name. * @type string */ filterOauth2ClientName?: string; /** * Filter results by the org-level disabled status. * @type string */ filterDisabled?: string; /** * Comma-separated list of related resources to include. * Options: `oauth2_client`, `oauth2_client.app`, `user_authorized_clients.user`. * @type string */ include?: string; } export interface OrgAuthorizedClientsApiListOrgAuthorizedClientUserAuthorizationsRequest { /** * The ID of the org authorized client. * @type string */ orgAuthorizedClientId: string; /** * 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; /** * Field to sort results by. Options: `user.name`, `user.email`, `oauth2_client.name`. * @type OrgAuthorizedClientUserAuthorizationsSort */ sort?: OrgAuthorizedClientUserAuthorizationsSort; /** * Filter results by the user authorization disabled status. * @type string */ filterDisabled?: string; /** * Filter results by user name. * @type string */ filterUserName?: string; /** * Filter results by user email. * @type string */ filterUserEmail?: string; /** * Filter results by whether the user is disabled. * @type string */ filterUserDisabled?: string; } export interface OrgAuthorizedClientsApiUpdateOrgAuthorizedClientRequest { /** * The ID of the org authorized client. * @type string */ orgAuthorizedClientId: string; /** * @type OrgAuthorizedClientUpdateRequest */ body: OrgAuthorizedClientUpdateRequest; } export declare class OrgAuthorizedClientsApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: OrgAuthorizedClientsApiRequestFactory, responseProcessor?: OrgAuthorizedClientsApiResponseProcessor); /** * Disable an OAuth2 client authorization for the current organization, revoking access for all users. * @param param The request object */ deleteOrgAuthorizedClient(param: OrgAuthorizedClientsApiDeleteOrgAuthorizedClientRequest, options?: Configuration): Promise; /** * Disable all authorizations for a specific user for the specified OAuth2 client in the current organization. * @param param The request object */ deleteOrgAuthorizedClientAllUserAuthorizations(param: OrgAuthorizedClientsApiDeleteOrgAuthorizedClientAllUserAuthorizationsRequest, options?: Configuration): Promise; /** * Disable a specific user authorization for the specified OAuth2 client in the current organization. * @param param The request object */ deleteOrgAuthorizedClientUserAuthorization(param: OrgAuthorizedClientsApiDeleteOrgAuthorizedClientUserAuthorizationRequest, options?: Configuration): Promise; /** * Get a single OAuth2 client authorized for the current organization. * @param param The request object */ getOrgAuthorizedClient(param: OrgAuthorizedClientsApiGetOrgAuthorizedClientRequest, options?: Configuration): Promise; /** * Get a list of all OAuth2 clients authorized for the current organization. * @param param The request object */ listOrgAuthorizedClients(param?: OrgAuthorizedClientsApiListOrgAuthorizedClientsRequest, options?: Configuration): Promise; /** * Provide a paginated version of listOrgAuthorizedClients returning a generator with all the items. */ listOrgAuthorizedClientsWithPagination(param?: OrgAuthorizedClientsApiListOrgAuthorizedClientsRequest, options?: Configuration): AsyncGenerator; /** * Get a list of user authorizations for the specified OAuth2 client in the current organization. * @param param The request object */ listOrgAuthorizedClientUserAuthorizations(param: OrgAuthorizedClientsApiListOrgAuthorizedClientUserAuthorizationsRequest, options?: Configuration): Promise; /** * Provide a paginated version of listOrgAuthorizedClientUserAuthorizations returning a generator with all the items. */ listOrgAuthorizedClientUserAuthorizationsWithPagination(param: OrgAuthorizedClientsApiListOrgAuthorizedClientUserAuthorizationsRequest, options?: Configuration): AsyncGenerator; /** * Enable or disable an OAuth2 client authorization for the current organization. * @param param The request object */ updateOrgAuthorizedClient(param: OrgAuthorizedClientsApiUpdateOrgAuthorizedClientRequest, options?: Configuration): Promise; }