/* tslint:disable */ /* eslint-disable */ /** * Identity Security Cloud API - IAI Access Request Recommendations * Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs. * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; import type { RequestArgs } from './base'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** * * @export * @interface AccessRecommendationMessage */ export interface AccessRecommendationMessage { /** * Information about why the access item was recommended. * @type {string} * @memberof AccessRecommendationMessage */ 'interpretation'?: string; } /** * * @export * @interface AccessRequestRecommendationActionItemDto */ export interface AccessRequestRecommendationActionItemDto { /** * The identity ID taking the action. * @type {string} * @memberof AccessRequestRecommendationActionItemDto */ 'identityId': string; /** * * @type {AccessRequestRecommendationItem} * @memberof AccessRequestRecommendationActionItemDto */ 'access': AccessRequestRecommendationItem; } /** * * @export * @interface AccessRequestRecommendationActionItemResponseDto */ export interface AccessRequestRecommendationActionItemResponseDto { /** * The identity ID taking the action. * @type {string} * @memberof AccessRequestRecommendationActionItemResponseDto */ 'identityId'?: string; /** * * @type {AccessRequestRecommendationItem} * @memberof AccessRequestRecommendationActionItemResponseDto */ 'access'?: AccessRequestRecommendationItem; /** * * @type {string} * @memberof AccessRequestRecommendationActionItemResponseDto */ 'timestamp'?: string; } /** * * @export * @interface AccessRequestRecommendationConfigDto */ export interface AccessRequestRecommendationConfigDto { /** * The value that internal calculations need to exceed for recommendations to be made. * @type {number} * @memberof AccessRequestRecommendationConfigDto */ 'scoreThreshold': number; /** * Use to map an attribute name for determining identities\' start date. * @type {string} * @memberof AccessRequestRecommendationConfigDto */ 'startDateAttribute'?: string; /** * Use to only give recommendations based on this attribute. * @type {string} * @memberof AccessRequestRecommendationConfigDto */ 'restrictionAttribute'?: string; /** * Use to map an attribute name for determining whether identities are movers. * @type {string} * @memberof AccessRequestRecommendationConfigDto */ 'moverAttribute'?: string; /** * Use to map an attribute name for determining whether identities are joiners. * @type {string} * @memberof AccessRequestRecommendationConfigDto */ 'joinerAttribute'?: string; /** * Use only the attribute named in restrictionAttribute to make recommendations. * @type {boolean} * @memberof AccessRequestRecommendationConfigDto */ 'useRestrictionAttribute'?: boolean; } /** * * @export * @interface AccessRequestRecommendationItem */ export interface AccessRequestRecommendationItem { /** * ID of access item being recommended. * @type {string} * @memberof AccessRequestRecommendationItem */ 'id'?: string; /** * * @type {AccessRequestRecommendationItemType} * @memberof AccessRequestRecommendationItem */ 'type'?: AccessRequestRecommendationItemType; } /** * * @export * @interface AccessRequestRecommendationItemDetail */ export interface AccessRequestRecommendationItemDetail { /** * Identity ID for the recommendation * @type {string} * @memberof AccessRequestRecommendationItemDetail */ 'identityId'?: string; /** * * @type {AccessRequestRecommendationItemDetailAccess} * @memberof AccessRequestRecommendationItemDetail */ 'access'?: AccessRequestRecommendationItemDetailAccess; /** * Whether or not the identity has already chosen to ignore this recommendation. * @type {boolean} * @memberof AccessRequestRecommendationItemDetail */ 'ignored'?: boolean; /** * Whether or not the identity has already chosen to request this recommendation. * @type {boolean} * @memberof AccessRequestRecommendationItemDetail */ 'requested'?: boolean; /** * Whether or not the identity reportedly viewed this recommendation. * @type {boolean} * @memberof AccessRequestRecommendationItemDetail */ 'viewed'?: boolean; /** * * @type {Array} * @memberof AccessRequestRecommendationItemDetail */ 'messages'?: Array; /** * The list of translation messages * @type {Array} * @memberof AccessRequestRecommendationItemDetail */ 'translationMessages'?: Array; } /** * * @export * @interface AccessRequestRecommendationItemDetailAccess */ export interface AccessRequestRecommendationItemDetailAccess { /** * ID of access item being recommended. * @type {string} * @memberof AccessRequestRecommendationItemDetailAccess */ 'id'?: string; /** * * @type {AccessRequestRecommendationItemType} * @memberof AccessRequestRecommendationItemDetailAccess */ 'type'?: AccessRequestRecommendationItemType; /** * Name of the access item * @type {string} * @memberof AccessRequestRecommendationItemDetailAccess */ 'name'?: string; /** * Description of the access item * @type {string} * @memberof AccessRequestRecommendationItemDetailAccess */ 'description'?: string; } /** * The type of access item. * @export * @enum {string} */ export const AccessRequestRecommendationItemType = { AccessProfile: 'ACCESS_PROFILE', Role: 'ROLE' } as const; export type AccessRequestRecommendationItemType = typeof AccessRequestRecommendationItemType[keyof typeof AccessRequestRecommendationItemType]; /** * * @export * @interface ErrorMessageDto */ export interface ErrorMessageDto { /** * The locale for the message text, a BCP 47 language tag. * @type {string} * @memberof ErrorMessageDto */ 'locale'?: string | null; /** * * @type {LocaleOrigin} * @memberof ErrorMessageDto */ 'localeOrigin'?: LocaleOrigin | null; /** * Actual text of the error message in the indicated locale. * @type {string} * @memberof ErrorMessageDto */ 'text'?: string; } /** * * @export * @interface ErrorResponseDto */ export interface ErrorResponseDto { /** * Fine-grained error code providing more detail of the error. * @type {string} * @memberof ErrorResponseDto */ 'detailCode'?: string; /** * Unique tracking id for the error. * @type {string} * @memberof ErrorResponseDto */ 'trackingId'?: string; /** * Generic localized reason for error * @type {Array} * @memberof ErrorResponseDto */ 'messages'?: Array; /** * Plain-text descriptive reasons to provide additional detail to the text provided in the messages field * @type {Array} * @memberof ErrorResponseDto */ 'causes'?: Array; } /** * * @export * @interface GetAccessRequestRecommendationsV1401Response */ export interface GetAccessRequestRecommendationsV1401Response { /** * A message describing the error * @type {any} * @memberof GetAccessRequestRecommendationsV1401Response */ 'error'?: any; } /** * * @export * @interface GetAccessRequestRecommendationsV1429Response */ export interface GetAccessRequestRecommendationsV1429Response { /** * A message describing the error * @type {any} * @memberof GetAccessRequestRecommendationsV1429Response */ 'message'?: any; } /** * An indicator of how the locale was selected. *DEFAULT* means the locale is the system default. *REQUEST* means the locale was selected from the request context (i.e., best match based on the *Accept-Language* header). Additional values may be added in the future without notice. * @export * @enum {string} */ export const LocaleOrigin = { Default: 'DEFAULT', Request: 'REQUEST' } as const; export type LocaleOrigin = typeof LocaleOrigin[keyof typeof LocaleOrigin]; /** * * @export * @interface TranslationMessage */ export interface TranslationMessage { /** * The key of the translation message * @type {string} * @memberof TranslationMessage */ 'key'?: string; /** * The values corresponding to the translation messages * @type {Array} * @memberof TranslationMessage */ 'values'?: Array; } /** * IAIAccessRequestRecommendationsApi - axios parameter creator * @export */ export const IAIAccessRequestRecommendationsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * This API ignores a recommended access request item. Once an item is ignored, it will be marked as ignored=true if it is still a recommended item. The consumer can decide to hide ignored recommendations. * @summary Ignore access request recommendation * @param {AccessRequestRecommendationActionItemDto} accessRequestRecommendationActionItemDto The recommended access item to ignore for an identity. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ addAccessRequestRecommendationsIgnoredItemV1: async (accessRequestRecommendationActionItemDto: AccessRequestRecommendationActionItemDto, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accessRequestRecommendationActionItemDto' is not null or undefined assertParamExists('addAccessRequestRecommendationsIgnoredItemV1', 'accessRequestRecommendationActionItemDto', accessRequestRecommendationActionItemDto) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/ai-access-request-recommendations/v1/ignored-items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(accessRequestRecommendationActionItemDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This API consumes a notification that a recommended access request item was requested. This API does not actually make the request, it is just a notification. This will help provide feedback in order to improve our recommendations. * @summary Accept access request recommendation * @param {AccessRequestRecommendationActionItemDto} accessRequestRecommendationActionItemDto The recommended access item that was requested for an identity. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ addAccessRequestRecommendationsRequestedItemV1: async (accessRequestRecommendationActionItemDto: AccessRequestRecommendationActionItemDto, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accessRequestRecommendationActionItemDto' is not null or undefined assertParamExists('addAccessRequestRecommendationsRequestedItemV1', 'accessRequestRecommendationActionItemDto', accessRequestRecommendationActionItemDto) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/ai-access-request-recommendations/v1/requested-items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(accessRequestRecommendationActionItemDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This API consumes a notification that a recommended access request item was viewed. Future recommendations with this item will be marked with viewed=true. This can be useful for the consumer to determine if there are any new/unviewed recommendations. * @summary Mark viewed access request recommendations * @param {AccessRequestRecommendationActionItemDto} accessRequestRecommendationActionItemDto The recommended access that was viewed for an identity. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ addAccessRequestRecommendationsViewedItemV1: async (accessRequestRecommendationActionItemDto: AccessRequestRecommendationActionItemDto, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accessRequestRecommendationActionItemDto' is not null or undefined assertParamExists('addAccessRequestRecommendationsViewedItemV1', 'accessRequestRecommendationActionItemDto', accessRequestRecommendationActionItemDto) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/ai-access-request-recommendations/v1/viewed-items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(accessRequestRecommendationActionItemDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This API consumes a notification that a set of recommended access request item were viewed. Future recommendations with these items will be marked with viewed=true. This can be useful for the consumer to determine if there are any new/unviewed recommendations. * @summary Bulk mark viewed access request recommendations * @param {Array} accessRequestRecommendationActionItemDto The recommended access items that were viewed for an identity. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ addAccessRequestRecommendationsViewedItemsV1: async (accessRequestRecommendationActionItemDto: Array, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accessRequestRecommendationActionItemDto' is not null or undefined assertParamExists('addAccessRequestRecommendationsViewedItemsV1', 'accessRequestRecommendationActionItemDto', accessRequestRecommendationActionItemDto) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/ai-access-request-recommendations/v1/viewed-items/bulk-create`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(accessRequestRecommendationActionItemDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This API returns the configurations for Access Request Recommender for the tenant. * @summary Get access request recommendations config * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAccessRequestRecommendationsConfigV1: async (xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/ai-access-request-recommendations/v1/config`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This API returns the list of ignored access request recommendations. * @summary List ignored access request recommendations * @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* * @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAccessRequestRecommendationsIgnoredItemsV1: async (limit?: number, offset?: number, count?: boolean, filters?: string, sorters?: string, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/ai-access-request-recommendations/v1/ignored-items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (count !== undefined) { localVarQueryParameter['count'] = count; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } if (sorters !== undefined) { localVarQueryParameter['sorters'] = sorters; } if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This API returns a list of requested access request recommendations. * @summary List accepted access request recommendations * @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* * @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAccessRequestRecommendationsRequestedItemsV1: async (limit?: number, offset?: number, count?: boolean, filters?: string, sorters?: string, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/ai-access-request-recommendations/v1/requested-items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (count !== undefined) { localVarQueryParameter['count'] = count; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } if (sorters !== undefined) { localVarQueryParameter['sorters'] = sorters; } if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This API returns the access request recommendations for the specified identity. The default identity is *me* which indicates the current user. * @summary Identity access request recommendations * @param {string} [identityId] Get access request recommendations for an identityId. *me* indicates the current user. * @param {number} [limit] Max number of results to return. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [includeTranslationMessages] If *true* it will populate a list of translation messages in the response. * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* * @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, access.type** By default the recommendations are sorted by highest confidence first. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAccessRequestRecommendationsV1: async (identityId?: string, limit?: number, offset?: number, count?: boolean, includeTranslationMessages?: boolean, filters?: string, sorters?: string, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/ai-access-request-recommendations/v1`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (identityId !== undefined) { localVarQueryParameter['identity-id'] = identityId; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (count !== undefined) { localVarQueryParameter['count'] = count; } if (includeTranslationMessages !== undefined) { localVarQueryParameter['include-translation-messages'] = includeTranslationMessages; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } if (sorters !== undefined) { localVarQueryParameter['sorters'] = sorters; } if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This API returns the list of viewed access request recommendations. * @summary List viewed access request recommendations * @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* * @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAccessRequestRecommendationsViewedItemsV1: async (limit?: number, offset?: number, count?: boolean, filters?: string, sorters?: string, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/ai-access-request-recommendations/v1/viewed-items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (count !== undefined) { localVarQueryParameter['count'] = count; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } if (sorters !== undefined) { localVarQueryParameter['sorters'] = sorters; } if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This API updates the configurations for Access Request Recommender for the tenant. * @summary Update access request recommendations config * @param {AccessRequestRecommendationConfigDto} accessRequestRecommendationConfigDto The desired configurations for Access Request Recommender for the tenant. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ setAccessRequestRecommendationsConfigV1: async (accessRequestRecommendationConfigDto: AccessRequestRecommendationConfigDto, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accessRequestRecommendationConfigDto' is not null or undefined assertParamExists('setAccessRequestRecommendationsConfigV1', 'accessRequestRecommendationConfigDto', accessRequestRecommendationConfigDto) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/ai-access-request-recommendations/v1/config`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(accessRequestRecommendationConfigDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * IAIAccessRequestRecommendationsApi - functional programming interface * @export */ export const IAIAccessRequestRecommendationsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = IAIAccessRequestRecommendationsApiAxiosParamCreator(configuration) return { /** * This API ignores a recommended access request item. Once an item is ignored, it will be marked as ignored=true if it is still a recommended item. The consumer can decide to hide ignored recommendations. * @summary Ignore access request recommendation * @param {AccessRequestRecommendationActionItemDto} accessRequestRecommendationActionItemDto The recommended access item to ignore for an identity. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async addAccessRequestRecommendationsIgnoredItemV1(accessRequestRecommendationActionItemDto: AccessRequestRecommendationActionItemDto, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addAccessRequestRecommendationsIgnoredItemV1(accessRequestRecommendationActionItemDto, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IAIAccessRequestRecommendationsApi.addAccessRequestRecommendationsIgnoredItemV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API consumes a notification that a recommended access request item was requested. This API does not actually make the request, it is just a notification. This will help provide feedback in order to improve our recommendations. * @summary Accept access request recommendation * @param {AccessRequestRecommendationActionItemDto} accessRequestRecommendationActionItemDto The recommended access item that was requested for an identity. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async addAccessRequestRecommendationsRequestedItemV1(accessRequestRecommendationActionItemDto: AccessRequestRecommendationActionItemDto, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addAccessRequestRecommendationsRequestedItemV1(accessRequestRecommendationActionItemDto, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IAIAccessRequestRecommendationsApi.addAccessRequestRecommendationsRequestedItemV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API consumes a notification that a recommended access request item was viewed. Future recommendations with this item will be marked with viewed=true. This can be useful for the consumer to determine if there are any new/unviewed recommendations. * @summary Mark viewed access request recommendations * @param {AccessRequestRecommendationActionItemDto} accessRequestRecommendationActionItemDto The recommended access that was viewed for an identity. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async addAccessRequestRecommendationsViewedItemV1(accessRequestRecommendationActionItemDto: AccessRequestRecommendationActionItemDto, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addAccessRequestRecommendationsViewedItemV1(accessRequestRecommendationActionItemDto, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IAIAccessRequestRecommendationsApi.addAccessRequestRecommendationsViewedItemV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API consumes a notification that a set of recommended access request item were viewed. Future recommendations with these items will be marked with viewed=true. This can be useful for the consumer to determine if there are any new/unviewed recommendations. * @summary Bulk mark viewed access request recommendations * @param {Array} accessRequestRecommendationActionItemDto The recommended access items that were viewed for an identity. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async addAccessRequestRecommendationsViewedItemsV1(accessRequestRecommendationActionItemDto: Array, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.addAccessRequestRecommendationsViewedItemsV1(accessRequestRecommendationActionItemDto, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IAIAccessRequestRecommendationsApi.addAccessRequestRecommendationsViewedItemsV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns the configurations for Access Request Recommender for the tenant. * @summary Get access request recommendations config * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getAccessRequestRecommendationsConfigV1(xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccessRequestRecommendationsConfigV1(xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IAIAccessRequestRecommendationsApi.getAccessRequestRecommendationsConfigV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns the list of ignored access request recommendations. * @summary List ignored access request recommendations * @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* * @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getAccessRequestRecommendationsIgnoredItemsV1(limit?: number, offset?: number, count?: boolean, filters?: string, sorters?: string, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccessRequestRecommendationsIgnoredItemsV1(limit, offset, count, filters, sorters, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IAIAccessRequestRecommendationsApi.getAccessRequestRecommendationsIgnoredItemsV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns a list of requested access request recommendations. * @summary List accepted access request recommendations * @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* * @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getAccessRequestRecommendationsRequestedItemsV1(limit?: number, offset?: number, count?: boolean, filters?: string, sorters?: string, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccessRequestRecommendationsRequestedItemsV1(limit, offset, count, filters, sorters, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IAIAccessRequestRecommendationsApi.getAccessRequestRecommendationsRequestedItemsV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns the access request recommendations for the specified identity. The default identity is *me* which indicates the current user. * @summary Identity access request recommendations * @param {string} [identityId] Get access request recommendations for an identityId. *me* indicates the current user. * @param {number} [limit] Max number of results to return. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [includeTranslationMessages] If *true* it will populate a list of translation messages in the response. * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* * @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, access.type** By default the recommendations are sorted by highest confidence first. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getAccessRequestRecommendationsV1(identityId?: string, limit?: number, offset?: number, count?: boolean, includeTranslationMessages?: boolean, filters?: string, sorters?: string, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccessRequestRecommendationsV1(identityId, limit, offset, count, includeTranslationMessages, filters, sorters, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IAIAccessRequestRecommendationsApi.getAccessRequestRecommendationsV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns the list of viewed access request recommendations. * @summary List viewed access request recommendations * @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* * @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getAccessRequestRecommendationsViewedItemsV1(limit?: number, offset?: number, count?: boolean, filters?: string, sorters?: string, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccessRequestRecommendationsViewedItemsV1(limit, offset, count, filters, sorters, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IAIAccessRequestRecommendationsApi.getAccessRequestRecommendationsViewedItemsV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API updates the configurations for Access Request Recommender for the tenant. * @summary Update access request recommendations config * @param {AccessRequestRecommendationConfigDto} accessRequestRecommendationConfigDto The desired configurations for Access Request Recommender for the tenant. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async setAccessRequestRecommendationsConfigV1(accessRequestRecommendationConfigDto: AccessRequestRecommendationConfigDto, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setAccessRequestRecommendationsConfigV1(accessRequestRecommendationConfigDto, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IAIAccessRequestRecommendationsApi.setAccessRequestRecommendationsConfigV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * IAIAccessRequestRecommendationsApi - factory interface * @export */ export const IAIAccessRequestRecommendationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = IAIAccessRequestRecommendationsApiFp(configuration) return { /** * This API ignores a recommended access request item. Once an item is ignored, it will be marked as ignored=true if it is still a recommended item. The consumer can decide to hide ignored recommendations. * @summary Ignore access request recommendation * @param {IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsIgnoredItemV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ addAccessRequestRecommendationsIgnoredItemV1(requestParameters: IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsIgnoredItemV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addAccessRequestRecommendationsIgnoredItemV1(requestParameters.accessRequestRecommendationActionItemDto, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API consumes a notification that a recommended access request item was requested. This API does not actually make the request, it is just a notification. This will help provide feedback in order to improve our recommendations. * @summary Accept access request recommendation * @param {IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsRequestedItemV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ addAccessRequestRecommendationsRequestedItemV1(requestParameters: IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsRequestedItemV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addAccessRequestRecommendationsRequestedItemV1(requestParameters.accessRequestRecommendationActionItemDto, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API consumes a notification that a recommended access request item was viewed. Future recommendations with this item will be marked with viewed=true. This can be useful for the consumer to determine if there are any new/unviewed recommendations. * @summary Mark viewed access request recommendations * @param {IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ addAccessRequestRecommendationsViewedItemV1(requestParameters: IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addAccessRequestRecommendationsViewedItemV1(requestParameters.accessRequestRecommendationActionItemDto, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API consumes a notification that a set of recommended access request item were viewed. Future recommendations with these items will be marked with viewed=true. This can be useful for the consumer to determine if there are any new/unviewed recommendations. * @summary Bulk mark viewed access request recommendations * @param {IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ addAccessRequestRecommendationsViewedItemsV1(requestParameters: IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemsV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.addAccessRequestRecommendationsViewedItemsV1(requestParameters.accessRequestRecommendationActionItemDto, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns the configurations for Access Request Recommender for the tenant. * @summary Get access request recommendations config * @param {IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsConfigV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAccessRequestRecommendationsConfigV1(requestParameters: IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsConfigV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccessRequestRecommendationsConfigV1(requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns the list of ignored access request recommendations. * @summary List ignored access request recommendations * @param {IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsIgnoredItemsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAccessRequestRecommendationsIgnoredItemsV1(requestParameters: IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsIgnoredItemsV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAccessRequestRecommendationsIgnoredItemsV1(requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns a list of requested access request recommendations. * @summary List accepted access request recommendations * @param {IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsRequestedItemsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAccessRequestRecommendationsRequestedItemsV1(requestParameters: IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsRequestedItemsV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAccessRequestRecommendationsRequestedItemsV1(requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns the access request recommendations for the specified identity. The default identity is *me* which indicates the current user. * @summary Identity access request recommendations * @param {IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAccessRequestRecommendationsV1(requestParameters: IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAccessRequestRecommendationsV1(requestParameters.identityId, requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.includeTranslationMessages, requestParameters.filters, requestParameters.sorters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns the list of viewed access request recommendations. * @summary List viewed access request recommendations * @param {IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsViewedItemsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAccessRequestRecommendationsViewedItemsV1(requestParameters: IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsViewedItemsV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAccessRequestRecommendationsViewedItemsV1(requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API updates the configurations for Access Request Recommender for the tenant. * @summary Update access request recommendations config * @param {IAIAccessRequestRecommendationsApiSetAccessRequestRecommendationsConfigV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ setAccessRequestRecommendationsConfigV1(requestParameters: IAIAccessRequestRecommendationsApiSetAccessRequestRecommendationsConfigV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setAccessRequestRecommendationsConfigV1(requestParameters.accessRequestRecommendationConfigDto, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for addAccessRequestRecommendationsIgnoredItemV1 operation in IAIAccessRequestRecommendationsApi. * @export * @interface IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsIgnoredItemV1Request */ export interface IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsIgnoredItemV1Request { /** * The recommended access item to ignore for an identity. * @type {AccessRequestRecommendationActionItemDto} * @memberof IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsIgnoredItemV1 */ readonly accessRequestRecommendationActionItemDto: AccessRequestRecommendationActionItemDto /** * Use this header to enable this experimental API. * @type {string} * @memberof IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsIgnoredItemV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for addAccessRequestRecommendationsRequestedItemV1 operation in IAIAccessRequestRecommendationsApi. * @export * @interface IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsRequestedItemV1Request */ export interface IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsRequestedItemV1Request { /** * The recommended access item that was requested for an identity. * @type {AccessRequestRecommendationActionItemDto} * @memberof IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsRequestedItemV1 */ readonly accessRequestRecommendationActionItemDto: AccessRequestRecommendationActionItemDto /** * Use this header to enable this experimental API. * @type {string} * @memberof IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsRequestedItemV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for addAccessRequestRecommendationsViewedItemV1 operation in IAIAccessRequestRecommendationsApi. * @export * @interface IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemV1Request */ export interface IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemV1Request { /** * The recommended access that was viewed for an identity. * @type {AccessRequestRecommendationActionItemDto} * @memberof IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemV1 */ readonly accessRequestRecommendationActionItemDto: AccessRequestRecommendationActionItemDto /** * Use this header to enable this experimental API. * @type {string} * @memberof IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for addAccessRequestRecommendationsViewedItemsV1 operation in IAIAccessRequestRecommendationsApi. * @export * @interface IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemsV1Request */ export interface IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemsV1Request { /** * The recommended access items that were viewed for an identity. * @type {Array} * @memberof IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemsV1 */ readonly accessRequestRecommendationActionItemDto: Array /** * Use this header to enable this experimental API. * @type {string} * @memberof IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemsV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for getAccessRequestRecommendationsConfigV1 operation in IAIAccessRequestRecommendationsApi. * @export * @interface IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsConfigV1Request */ export interface IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsConfigV1Request { /** * Use this header to enable this experimental API. * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsConfigV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for getAccessRequestRecommendationsIgnoredItemsV1 operation in IAIAccessRequestRecommendationsApi. * @export * @interface IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsIgnoredItemsV1Request */ export interface IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsIgnoredItemsV1Request { /** * Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {number} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsIgnoredItemsV1 */ readonly limit?: number /** * Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {number} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsIgnoredItemsV1 */ readonly offset?: number /** * If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {boolean} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsIgnoredItemsV1 */ readonly count?: boolean /** * Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsIgnoredItemsV1 */ readonly filters?: string /** * Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsIgnoredItemsV1 */ readonly sorters?: string /** * Use this header to enable this experimental API. * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsIgnoredItemsV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for getAccessRequestRecommendationsRequestedItemsV1 operation in IAIAccessRequestRecommendationsApi. * @export * @interface IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsRequestedItemsV1Request */ export interface IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsRequestedItemsV1Request { /** * Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {number} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsRequestedItemsV1 */ readonly limit?: number /** * Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {number} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsRequestedItemsV1 */ readonly offset?: number /** * If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {boolean} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsRequestedItemsV1 */ readonly count?: boolean /** * Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsRequestedItemsV1 */ readonly filters?: string /** * Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsRequestedItemsV1 */ readonly sorters?: string /** * Use this header to enable this experimental API. * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsRequestedItemsV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for getAccessRequestRecommendationsV1 operation in IAIAccessRequestRecommendationsApi. * @export * @interface IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1Request */ export interface IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1Request { /** * Get access request recommendations for an identityId. *me* indicates the current user. * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1 */ readonly identityId?: string /** * Max number of results to return. * @type {number} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1 */ readonly limit?: number /** * Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {number} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1 */ readonly offset?: number /** * If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {boolean} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1 */ readonly count?: boolean /** * If *true* it will populate a list of translation messages in the response. * @type {boolean} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1 */ readonly includeTranslationMessages?: boolean /** * Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1 */ readonly filters?: string /** * Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, access.type** By default the recommendations are sorted by highest confidence first. * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1 */ readonly sorters?: string /** * Use this header to enable this experimental API. * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for getAccessRequestRecommendationsViewedItemsV1 operation in IAIAccessRequestRecommendationsApi. * @export * @interface IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsViewedItemsV1Request */ export interface IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsViewedItemsV1Request { /** * Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {number} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsViewedItemsV1 */ readonly limit?: number /** * Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {number} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsViewedItemsV1 */ readonly offset?: number /** * If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {boolean} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsViewedItemsV1 */ readonly count?: boolean /** * Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsViewedItemsV1 */ readonly filters?: string /** * Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsViewedItemsV1 */ readonly sorters?: string /** * Use this header to enable this experimental API. * @type {string} * @memberof IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsViewedItemsV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for setAccessRequestRecommendationsConfigV1 operation in IAIAccessRequestRecommendationsApi. * @export * @interface IAIAccessRequestRecommendationsApiSetAccessRequestRecommendationsConfigV1Request */ export interface IAIAccessRequestRecommendationsApiSetAccessRequestRecommendationsConfigV1Request { /** * The desired configurations for Access Request Recommender for the tenant. * @type {AccessRequestRecommendationConfigDto} * @memberof IAIAccessRequestRecommendationsApiSetAccessRequestRecommendationsConfigV1 */ readonly accessRequestRecommendationConfigDto: AccessRequestRecommendationConfigDto /** * Use this header to enable this experimental API. * @type {string} * @memberof IAIAccessRequestRecommendationsApiSetAccessRequestRecommendationsConfigV1 */ readonly xSailPointExperimental?: string } /** * IAIAccessRequestRecommendationsApi - object-oriented interface * @export * @class IAIAccessRequestRecommendationsApi * @extends {BaseAPI} */ export class IAIAccessRequestRecommendationsApi extends BaseAPI { /** * This API ignores a recommended access request item. Once an item is ignored, it will be marked as ignored=true if it is still a recommended item. The consumer can decide to hide ignored recommendations. * @summary Ignore access request recommendation * @param {IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsIgnoredItemV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IAIAccessRequestRecommendationsApi */ public addAccessRequestRecommendationsIgnoredItemV1(requestParameters: IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsIgnoredItemV1Request, axiosOptions?: RawAxiosRequestConfig) { return IAIAccessRequestRecommendationsApiFp(this.configuration).addAccessRequestRecommendationsIgnoredItemV1(requestParameters.accessRequestRecommendationActionItemDto, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API consumes a notification that a recommended access request item was requested. This API does not actually make the request, it is just a notification. This will help provide feedback in order to improve our recommendations. * @summary Accept access request recommendation * @param {IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsRequestedItemV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IAIAccessRequestRecommendationsApi */ public addAccessRequestRecommendationsRequestedItemV1(requestParameters: IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsRequestedItemV1Request, axiosOptions?: RawAxiosRequestConfig) { return IAIAccessRequestRecommendationsApiFp(this.configuration).addAccessRequestRecommendationsRequestedItemV1(requestParameters.accessRequestRecommendationActionItemDto, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API consumes a notification that a recommended access request item was viewed. Future recommendations with this item will be marked with viewed=true. This can be useful for the consumer to determine if there are any new/unviewed recommendations. * @summary Mark viewed access request recommendations * @param {IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IAIAccessRequestRecommendationsApi */ public addAccessRequestRecommendationsViewedItemV1(requestParameters: IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemV1Request, axiosOptions?: RawAxiosRequestConfig) { return IAIAccessRequestRecommendationsApiFp(this.configuration).addAccessRequestRecommendationsViewedItemV1(requestParameters.accessRequestRecommendationActionItemDto, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API consumes a notification that a set of recommended access request item were viewed. Future recommendations with these items will be marked with viewed=true. This can be useful for the consumer to determine if there are any new/unviewed recommendations. * @summary Bulk mark viewed access request recommendations * @param {IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IAIAccessRequestRecommendationsApi */ public addAccessRequestRecommendationsViewedItemsV1(requestParameters: IAIAccessRequestRecommendationsApiAddAccessRequestRecommendationsViewedItemsV1Request, axiosOptions?: RawAxiosRequestConfig) { return IAIAccessRequestRecommendationsApiFp(this.configuration).addAccessRequestRecommendationsViewedItemsV1(requestParameters.accessRequestRecommendationActionItemDto, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns the configurations for Access Request Recommender for the tenant. * @summary Get access request recommendations config * @param {IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsConfigV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IAIAccessRequestRecommendationsApi */ public getAccessRequestRecommendationsConfigV1(requestParameters: IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsConfigV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return IAIAccessRequestRecommendationsApiFp(this.configuration).getAccessRequestRecommendationsConfigV1(requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns the list of ignored access request recommendations. * @summary List ignored access request recommendations * @param {IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsIgnoredItemsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IAIAccessRequestRecommendationsApi */ public getAccessRequestRecommendationsIgnoredItemsV1(requestParameters: IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsIgnoredItemsV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return IAIAccessRequestRecommendationsApiFp(this.configuration).getAccessRequestRecommendationsIgnoredItemsV1(requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns a list of requested access request recommendations. * @summary List accepted access request recommendations * @param {IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsRequestedItemsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IAIAccessRequestRecommendationsApi */ public getAccessRequestRecommendationsRequestedItemsV1(requestParameters: IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsRequestedItemsV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return IAIAccessRequestRecommendationsApiFp(this.configuration).getAccessRequestRecommendationsRequestedItemsV1(requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns the access request recommendations for the specified identity. The default identity is *me* which indicates the current user. * @summary Identity access request recommendations * @param {IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IAIAccessRequestRecommendationsApi */ public getAccessRequestRecommendationsV1(requestParameters: IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return IAIAccessRequestRecommendationsApiFp(this.configuration).getAccessRequestRecommendationsV1(requestParameters.identityId, requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.includeTranslationMessages, requestParameters.filters, requestParameters.sorters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns the list of viewed access request recommendations. * @summary List viewed access request recommendations * @param {IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsViewedItemsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IAIAccessRequestRecommendationsApi */ public getAccessRequestRecommendationsViewedItemsV1(requestParameters: IAIAccessRequestRecommendationsApiGetAccessRequestRecommendationsViewedItemsV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return IAIAccessRequestRecommendationsApiFp(this.configuration).getAccessRequestRecommendationsViewedItemsV1(requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API updates the configurations for Access Request Recommender for the tenant. * @summary Update access request recommendations config * @param {IAIAccessRequestRecommendationsApiSetAccessRequestRecommendationsConfigV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IAIAccessRequestRecommendationsApi */ public setAccessRequestRecommendationsConfigV1(requestParameters: IAIAccessRequestRecommendationsApiSetAccessRequestRecommendationsConfigV1Request, axiosOptions?: RawAxiosRequestConfig) { return IAIAccessRequestRecommendationsApiFp(this.configuration).setAccessRequestRecommendationsConfigV1(requestParameters.accessRequestRecommendationConfigDto, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } }