/* tslint:disable */ /* eslint-disable */ /** * Identity Security Cloud API - Apps * 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 AccessProfileDetails */ export interface AccessProfileDetails { /** * The ID of the Access Profile * @type {string} * @memberof AccessProfileDetails */ 'id'?: string; /** * Name of the Access Profile * @type {string} * @memberof AccessProfileDetails */ 'name'?: string; /** * Information about the Access Profile * @type {string} * @memberof AccessProfileDetails */ 'description'?: string | null; /** * Date the Access Profile was created * @type {string} * @memberof AccessProfileDetails */ 'created'?: string; /** * Date the Access Profile was last modified. * @type {string} * @memberof AccessProfileDetails */ 'modified'?: string; /** * Whether the Access Profile is enabled. * @type {boolean} * @memberof AccessProfileDetails */ 'disabled'?: boolean; /** * Whether the Access Profile is requestable via access request. * @type {boolean} * @memberof AccessProfileDetails */ 'requestable'?: boolean; /** * Whether the Access Profile is protected. * @type {boolean} * @memberof AccessProfileDetails */ 'protected'?: boolean; /** * The owner ID of the Access Profile * @type {string} * @memberof AccessProfileDetails */ 'ownerId'?: string; /** * The source ID of the Access Profile * @type {number} * @memberof AccessProfileDetails */ 'sourceId'?: number | null; /** * The source name of the Access Profile * @type {string} * @memberof AccessProfileDetails */ 'sourceName'?: string; /** * The source app ID of the Access Profile * @type {number} * @memberof AccessProfileDetails */ 'appId'?: number | null; /** * The source app name of the Access Profile * @type {string} * @memberof AccessProfileDetails */ 'appName'?: string | null; /** * The id of the application * @type {string} * @memberof AccessProfileDetails */ 'applicationId'?: string; /** * The type of the access profile * @type {string} * @memberof AccessProfileDetails */ 'type'?: string; /** * List of IDs of entitlements * @type {Array} * @memberof AccessProfileDetails */ 'entitlements'?: Array; /** * The number of entitlements in the access profile * @type {number} * @memberof AccessProfileDetails */ 'entitlementCount'?: number; /** * List of IDs of segments, if any, to which this Access Profile is assigned. * @type {Array} * @memberof AccessProfileDetails */ 'segments'?: Array; /** * Comma-separated list of approval schemes. Each approval scheme is one of - manager - appOwner - sourceOwner - accessProfileOwner - workgroup:<workgroupId> * @type {string} * @memberof AccessProfileDetails */ 'approvalSchemes'?: string; /** * Comma-separated list of revoke request approval schemes. Each approval scheme is one of - manager - sourceOwner - accessProfileOwner - workgroup:<workgroupId> * @type {string} * @memberof AccessProfileDetails */ 'revokeRequestApprovalSchemes'?: string; /** * Whether the access profile require request comment for access request. * @type {boolean} * @memberof AccessProfileDetails */ 'requestCommentsRequired'?: boolean; /** * Whether denied comment is required when access request is denied. * @type {boolean} * @memberof AccessProfileDetails */ 'deniedCommentsRequired'?: boolean; /** * * @type {AccessProfileDetailsAccountSelector} * @memberof AccessProfileDetails */ 'accountSelector'?: AccessProfileDetailsAccountSelector; } /** * How to select account when there are multiple accounts for the user * @export * @interface AccessProfileDetailsAccountSelector */ export interface AccessProfileDetailsAccountSelector { /** * * @type {Array} * @memberof AccessProfileDetailsAccountSelector */ 'selectors'?: Array | null; } /** * * @export * @interface AppAccessProfileSelector */ export interface AppAccessProfileSelector { /** * The application id * @type {string} * @memberof AppAccessProfileSelector */ 'applicationId'?: string; /** * * @type {AppAccessProfileSelectorAccountMatchConfig} * @memberof AppAccessProfileSelector */ 'accountMatchConfig'?: AppAccessProfileSelectorAccountMatchConfig; } /** * * @export * @interface AppAccessProfileSelectorAccountMatchConfig */ export interface AppAccessProfileSelectorAccountMatchConfig { /** * * @type {AppAccessProfileSelectorAccountMatchConfigMatchExpression} * @memberof AppAccessProfileSelectorAccountMatchConfig */ 'matchExpression'?: AppAccessProfileSelectorAccountMatchConfigMatchExpression; } /** * * @export * @interface AppAccessProfileSelectorAccountMatchConfigMatchExpression */ export interface AppAccessProfileSelectorAccountMatchConfigMatchExpression { /** * * @type {Array} * @memberof AppAccessProfileSelectorAccountMatchConfigMatchExpression */ 'matchTerms'?: Array; /** * If it is AND operators for match terms * @type {boolean} * @memberof AppAccessProfileSelectorAccountMatchConfigMatchExpression */ 'and'?: boolean; } /** * * @export * @interface AppAccountDetails */ export interface AppAccountDetails { /** * The source app ID * @type {string} * @memberof AppAccountDetails */ 'appId'?: string; /** * The source app display name * @type {string} * @memberof AppAccountDetails */ 'appDisplayName'?: string; /** * * @type {AppAccountDetailsSourceAccount} * @memberof AppAccountDetails */ 'sourceAccount'?: AppAccountDetailsSourceAccount; } /** * * @export * @interface AppAccountDetailsSourceAccount */ export interface AppAccountDetailsSourceAccount { /** * The account ID * @type {string} * @memberof AppAccountDetailsSourceAccount */ 'id'?: string; /** * The native identity of account * @type {string} * @memberof AppAccountDetailsSourceAccount */ 'nativeIdentity'?: string; /** * The display name of account * @type {string} * @memberof AppAccountDetailsSourceAccount */ 'displayName'?: string; /** * The source ID of account * @type {string} * @memberof AppAccountDetailsSourceAccount */ 'sourceId'?: string; /** * The source name of account * @type {string} * @memberof AppAccountDetailsSourceAccount */ 'sourceDisplayName'?: string; } /** * * @export * @interface ArrayInner */ export interface ArrayInner { } /** * * @export * @interface BaseReferenceDto */ export interface BaseReferenceDto { /** * * @type {DtoType} * @memberof BaseReferenceDto */ 'type'?: DtoType; /** * ID of the object to which this reference applies * @type {string} * @memberof BaseReferenceDto */ 'id'?: string; /** * Human-readable display name of the object to which this reference applies * @type {string} * @memberof BaseReferenceDto */ 'name'?: string; } /** * An enumeration of the types of DTOs supported within the IdentityNow infrastructure. * @export * @enum {string} */ export const DtoType = { AccountCorrelationConfig: 'ACCOUNT_CORRELATION_CONFIG', AccessProfile: 'ACCESS_PROFILE', AccessRequestApproval: 'ACCESS_REQUEST_APPROVAL', Account: 'ACCOUNT', Application: 'APPLICATION', Campaign: 'CAMPAIGN', CampaignFilter: 'CAMPAIGN_FILTER', Certification: 'CERTIFICATION', Cluster: 'CLUSTER', ConnectorSchema: 'CONNECTOR_SCHEMA', Entitlement: 'ENTITLEMENT', GovernanceGroup: 'GOVERNANCE_GROUP', Identity: 'IDENTITY', IdentityProfile: 'IDENTITY_PROFILE', IdentityRequest: 'IDENTITY_REQUEST', MachineIdentity: 'MACHINE_IDENTITY', LifecycleState: 'LIFECYCLE_STATE', PasswordPolicy: 'PASSWORD_POLICY', Role: 'ROLE', Rule: 'RULE', SodPolicy: 'SOD_POLICY', Source: 'SOURCE', Tag: 'TAG', TagCategory: 'TAG_CATEGORY', TaskResult: 'TASK_RESULT', ReportResult: 'REPORT_RESULT', SodViolation: 'SOD_VIOLATION', AccountActivity: 'ACCOUNT_ACTIVITY', Workgroup: 'WORKGROUP' } as const; export type DtoType = typeof DtoType[keyof typeof DtoType]; /** * * @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 GetSourceAppV1401Response */ export interface GetSourceAppV1401Response { /** * A message describing the error * @type {any} * @memberof GetSourceAppV1401Response */ 'error'?: any; } /** * * @export * @interface GetSourceAppV1429Response */ export interface GetSourceAppV1429Response { /** * A message describing the error * @type {any} * @memberof GetSourceAppV1429Response */ 'message'?: any; } /** * A JSONPatch Operation as defined by [RFC 6902 - JSON Patch](https://tools.ietf.org/html/rfc6902) * @export * @interface JsonPatchOperation */ export interface JsonPatchOperation { /** * The operation to be performed * @type {string} * @memberof JsonPatchOperation */ 'op': JsonPatchOperationOpEnum; /** * A string JSON Pointer representing the target path to an element to be affected by the operation * @type {string} * @memberof JsonPatchOperation */ 'path': string; /** * * @type {JsonPatchOperationValue} * @memberof JsonPatchOperation */ 'value'?: JsonPatchOperationValue; } export const JsonPatchOperationOpEnum = { Add: 'add', Remove: 'remove', Replace: 'replace', Move: 'move', Copy: 'copy', Test: 'test' } as const; export type JsonPatchOperationOpEnum = typeof JsonPatchOperationOpEnum[keyof typeof JsonPatchOperationOpEnum]; /** * @type JsonPatchOperationValue * The value to be used for the operation, required for \"add\" and \"replace\" operations * @export */ export type JsonPatchOperationValue = Array | boolean | number | object | string; /** * 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 MatchTerm */ export interface MatchTerm { /** * The attribute name * @type {string} * @memberof MatchTerm */ 'name'?: string; /** * The attribute value * @type {string} * @memberof MatchTerm */ 'value'?: string; /** * The operator between name and value * @type {string} * @memberof MatchTerm */ 'op'?: string; /** * If it is a container or a real match term * @type {boolean} * @memberof MatchTerm */ 'container'?: boolean; /** * If it is AND logical operator for the children match terms * @type {boolean} * @memberof MatchTerm */ 'and'?: boolean; /** * The children under this match term * @type {Array<{ [key: string]: any; }>} * @memberof MatchTerm */ 'children'?: Array<{ [key: string]: any; }> | null; } /** * * @export * @interface SourceApp */ export interface SourceApp { /** * The source app id * @type {string} * @memberof SourceApp */ 'id'?: string; /** * The deprecated source app id * @type {string} * @memberof SourceApp */ 'cloudAppId'?: string; /** * The source app name * @type {string} * @memberof SourceApp */ 'name'?: string; /** * Time when the source app was created * @type {string} * @memberof SourceApp */ 'created'?: string; /** * Time when the source app was last modified * @type {string} * @memberof SourceApp */ 'modified'?: string; /** * True if the source app is enabled * @type {boolean} * @memberof SourceApp */ 'enabled'?: boolean; /** * True if the app allows access request * @type {boolean} * @memberof SourceApp */ 'provisionRequestEnabled'?: boolean; /** * The description of the source app * @type {string} * @memberof SourceApp */ 'description'?: string; /** * True if the source app match all accounts * @type {boolean} * @memberof SourceApp */ 'matchAllAccounts'?: boolean; /** * True if the app is visible in the request center * @type {boolean} * @memberof SourceApp */ 'appCenterEnabled'?: boolean; /** * * @type {SourceAppAccountSource} * @memberof SourceApp */ 'accountSource'?: SourceAppAccountSource | null; /** * The owner of source app * @type {BaseReferenceDto} * @memberof SourceApp */ 'owner'?: BaseReferenceDto | null; } /** * * @export * @interface SourceAppAccountSource */ export interface SourceAppAccountSource { /** * The source ID * @type {string} * @memberof SourceAppAccountSource */ 'id'?: string; /** * The source type, will always be \"SOURCE\" * @type {string} * @memberof SourceAppAccountSource */ 'type'?: string; /** * The source name * @type {string} * @memberof SourceAppAccountSource */ 'name'?: string; /** * If the source is used for password management * @type {boolean} * @memberof SourceAppAccountSource */ 'useForPasswordManagement'?: boolean; /** * The password policies for the source * @type {Array} * @memberof SourceAppAccountSource */ 'passwordPolicies'?: Array | null; } /** * * @export * @interface SourceAppBulkUpdateRequest */ export interface SourceAppBulkUpdateRequest { /** * List of source app ids to update * @type {Array} * @memberof SourceAppBulkUpdateRequest */ 'appIds': Array; /** * The JSONPatch payload used to update the source app. * @type {Array} * @memberof SourceAppBulkUpdateRequest */ 'jsonPatch': Array; } /** * * @export * @interface SourceAppCreateDto */ export interface SourceAppCreateDto { /** * The source app name * @type {string} * @memberof SourceAppCreateDto */ 'name': string; /** * The description of the source app * @type {string} * @memberof SourceAppCreateDto */ 'description': string; /** * True if the source app match all accounts * @type {boolean} * @memberof SourceAppCreateDto */ 'matchAllAccounts'?: boolean; /** * * @type {SourceAppCreateDtoAccountSource} * @memberof SourceAppCreateDto */ 'accountSource': SourceAppCreateDtoAccountSource; } /** * * @export * @interface SourceAppCreateDtoAccountSource */ export interface SourceAppCreateDtoAccountSource { /** * The source ID * @type {string} * @memberof SourceAppCreateDtoAccountSource */ 'id': string; /** * The source type, will always be \"SOURCE\" * @type {string} * @memberof SourceAppCreateDtoAccountSource */ 'type'?: string; /** * The source name * @type {string} * @memberof SourceAppCreateDtoAccountSource */ 'name'?: string; } /** * * @export * @interface SourceAppPatchDto */ export interface SourceAppPatchDto { /** * The source app id * @type {string} * @memberof SourceAppPatchDto */ 'id'?: string; /** * The deprecated source app id * @type {string} * @memberof SourceAppPatchDto */ 'cloudAppId'?: string; /** * The source app name * @type {string} * @memberof SourceAppPatchDto */ 'name'?: string; /** * Time when the source app was created * @type {string} * @memberof SourceAppPatchDto */ 'created'?: string; /** * Time when the source app was last modified * @type {string} * @memberof SourceAppPatchDto */ 'modified'?: string; /** * True if the source app is enabled * @type {boolean} * @memberof SourceAppPatchDto */ 'enabled'?: boolean; /** * True if the app allows access request * @type {boolean} * @memberof SourceAppPatchDto */ 'provisionRequestEnabled'?: boolean; /** * The description of the source app * @type {string} * @memberof SourceAppPatchDto */ 'description'?: string; /** * True if the source app match all accounts * @type {boolean} * @memberof SourceAppPatchDto */ 'matchAllAccounts'?: boolean; /** * True if the app is visible in the request center * @type {boolean} * @memberof SourceAppPatchDto */ 'appCenterEnabled'?: boolean; /** * List of IDs of access profiles * @type {Array} * @memberof SourceAppPatchDto */ 'accessProfiles'?: Array | null; /** * * @type {SourceAppAccountSource} * @memberof SourceAppPatchDto */ 'accountSource'?: SourceAppAccountSource | null; /** * The owner of source app * @type {BaseReferenceDto} * @memberof SourceAppPatchDto */ 'owner'?: BaseReferenceDto | null; } /** * * @export * @interface UserApp */ export interface UserApp { /** * The user app id * @type {string} * @memberof UserApp */ 'id'?: string; /** * Time when the user app was created * @type {string} * @memberof UserApp */ 'created'?: string; /** * Time when the user app was last modified * @type {string} * @memberof UserApp */ 'modified'?: string; /** * True if the owner has multiple accounts for the source * @type {boolean} * @memberof UserApp */ 'hasMultipleAccounts'?: boolean; /** * True if the source has password feature * @type {boolean} * @memberof UserApp */ 'useForPasswordManagement'?: boolean; /** * True if the app allows access request * @type {boolean} * @memberof UserApp */ 'provisionRequestEnabled'?: boolean; /** * True if the app is visible in the request center * @type {boolean} * @memberof UserApp */ 'appCenterEnabled'?: boolean; /** * * @type {UserAppSourceApp} * @memberof UserApp */ 'sourceApp'?: UserAppSourceApp; /** * * @type {UserAppSource} * @memberof UserApp */ 'source'?: UserAppSource; /** * * @type {UserAppAccount} * @memberof UserApp */ 'account'?: UserAppAccount; /** * * @type {UserAppOwner} * @memberof UserApp */ 'owner'?: UserAppOwner; } /** * * @export * @interface UserAppAccount */ export interface UserAppAccount { /** * the account ID * @type {string} * @memberof UserAppAccount */ 'id'?: string; /** * It will always be \"ACCOUNT\" * @type {string} * @memberof UserAppAccount */ 'type'?: string; /** * the account name * @type {string} * @memberof UserAppAccount */ 'name'?: string; } /** * * @export * @interface UserAppOwner */ export interface UserAppOwner { /** * The identity ID * @type {string} * @memberof UserAppOwner */ 'id'?: string; /** * It will always be \"IDENTITY\" * @type {string} * @memberof UserAppOwner */ 'type'?: string; /** * The identity name * @type {string} * @memberof UserAppOwner */ 'name'?: string; /** * The identity alias * @type {string} * @memberof UserAppOwner */ 'alias'?: string; } /** * * @export * @interface UserAppSource */ export interface UserAppSource { /** * the source ID * @type {string} * @memberof UserAppSource */ 'id'?: string; /** * It will always be \"SOURCE\" * @type {string} * @memberof UserAppSource */ 'type'?: string; /** * the source name * @type {string} * @memberof UserAppSource */ 'name'?: string; } /** * * @export * @interface UserAppSourceApp */ export interface UserAppSourceApp { /** * the source app ID * @type {string} * @memberof UserAppSourceApp */ 'id'?: string; /** * It will always be \"APPLICATION\" * @type {string} * @memberof UserAppSourceApp */ 'type'?: string; /** * the source app name * @type {string} * @memberof UserAppSourceApp */ 'name'?: string; } /** * AppsApi - axios parameter creator * @export */ export const AppsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * This endpoint creates a source app using the given source app payload * @summary Create source app * @param {SourceAppCreateDto} sourceAppCreateDto * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createSourceAppV1: async (sourceAppCreateDto: SourceAppCreateDto, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'sourceAppCreateDto' is not null or undefined assertParamExists('createSourceAppV1', 'sourceAppCreateDto', sourceAppCreateDto) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/source-apps/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: '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(sourceAppCreateDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This API returns the final list of access profiles for the specified source app after removing * @summary Bulk remove access profiles from the specified source app * @param {string} id ID of the source app * @param {Array} requestBody List of access profile IDs for removal * @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 {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteAccessProfilesFromSourceAppByBulkV1: async (id: string, requestBody: Array, limit?: number, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteAccessProfilesFromSourceAppByBulkV1', 'id', id) // verify required parameter 'requestBody' is not null or undefined assertParamExists('deleteAccessProfilesFromSourceAppByBulkV1', 'requestBody', requestBody) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/source-apps/v1/{id}/access-profiles/bulk-remove` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } 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(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Use this API to delete a specific source app * @summary Delete source app by id * @param {string} id source app ID. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteSourceAppV1: async (id: string, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteSourceAppV1', 'id', id) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/source-apps/v1/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'DELETE', ...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 a source app by its ID. * @summary Get source app by id * @param {string} id ID of the source app * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getSourceAppV1: async (id: string, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getSourceAppV1', 'id', id) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/source-apps/v1/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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 access profiles for the specified source app * @summary List access profiles for the specified source app * @param {string} id ID of the source app * @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 {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: **id**: *eq, in* **name**: *eq, in* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAccessProfilesForSourceAppV1: async (id: string, limit?: number, offset?: number, filters?: string, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('listAccessProfilesForSourceAppV1', 'id', id) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/source-apps/v1/{id}/access-profiles` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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 (filters !== undefined) { localVarQueryParameter['filters'] = filters; } 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 all source apps for the org. * @summary List all source apps * @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 {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 {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 {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: **id, name, created, modified, owner.id, accountSource.id** * @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: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, ge, le* **owner.id**: *eq, in* **enabled**: *eq* * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAllSourceAppV1: async (limit?: number, count?: boolean, offset?: number, sorters?: string, filters?: string, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/source-apps/v1/all`; // 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 (count !== undefined) { localVarQueryParameter['count'] = count; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (sorters !== undefined) { localVarQueryParameter['sorters'] = sorters; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } 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 all user apps with specified filters. This API must be used with **filters** query parameter. * @summary List all user apps * @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: **id**: *eq* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* * @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 {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 {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 {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAllUserAppsV1: async (filters: string, limit?: number, count?: boolean, offset?: number, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'filters' is not null or undefined assertParamExists('listAllUserAppsV1', 'filters', filters) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/user-apps/v1/all`; // 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 (count !== undefined) { localVarQueryParameter['count'] = count; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } 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 source apps assigned for logged in user. * @summary List assigned source apps * @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 {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 {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 {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: **id, name, created, modified, accountSource.id** * @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: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAssignedSourceAppV1: async (limit?: number, count?: boolean, offset?: number, sorters?: string, filters?: string, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/source-apps/v1/assigned`; // 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 (count !== undefined) { localVarQueryParameter['count'] = count; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (sorters !== undefined) { localVarQueryParameter['sorters'] = sorters; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } 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 available accounts for the specified user app. The user app needs to belong lo logged in user. * @summary List available accounts for user app * @param {string} id ID of the user app * @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 {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} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAvailableAccountsForUserAppV1: async (id: string, limit?: number, count?: boolean, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('listAvailableAccountsForUserAppV1', 'id', id) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/user-apps/v1/{id}/available-accounts` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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 (count !== undefined) { localVarQueryParameter['count'] = count; } 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 source apps available for access request. * @summary List available source apps * @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 {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 {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 {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: **id, name, created, modified, owner.id, accountSource.id** * @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: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAvailableSourceAppsV1: async (limit?: number, count?: boolean, offset?: number, sorters?: string, filters?: string, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/source-apps/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 (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (count !== undefined) { localVarQueryParameter['count'] = count; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (sorters !== undefined) { localVarQueryParameter['sorters'] = sorters; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } 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 user apps assigned to logged in user * @summary List owned user apps * @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 {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 {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 {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: **id**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listOwnedUserAppsV1: async (limit?: number, count?: boolean, offset?: number, filters?: string, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/user-apps/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 (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (count !== undefined) { localVarQueryParameter['count'] = count; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } 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 an existing source app using [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. The following fields are patchable: **name**, **description**, **enabled**, **owner**, **provisionRequestEnabled**, **appCenterEnabled**, **accountSource**, **matchAllAccounts** and **accessProfiles**. Name, description and owner can\'t be empty or null. * @summary Patch source app by id * @param {string} id ID of the source app to patch * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {Array} [jsonPatchOperation] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchSourceAppV1: async (id: string, xSailPointExperimental?: string, jsonPatchOperation?: Array, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchSourceAppV1', 'id', id) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/source-apps/v1/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json-patch+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(jsonPatchOperation, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This API updates an existing user app using [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. The following fields are patchable: **account** * @summary Patch user app by id * @param {string} id ID of the user app to patch * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {Array} [jsonPatchOperation] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserAppV1: async (id: string, xSailPointExperimental?: string, jsonPatchOperation?: Array, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchUserAppV1', 'id', id) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/user-apps/v1/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json-patch+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(jsonPatchOperation, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This API updates source apps using [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. It can update up to 50 source apps in a batch. The following fields can be updated: **name**, **description**, **enabled**, **owner**, **provisionRequestEnabled**, **appCenterEnabled**, **accountSource**, **matchAllAccounts**, and **accessProfiles**. Name, description and owner can\'t be empty or null. * @summary Bulk update source apps * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {SourceAppBulkUpdateRequest} [sourceAppBulkUpdateRequest] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateSourceAppsInBulkV1: async (xSailPointExperimental?: string, sourceAppBulkUpdateRequest?: SourceAppBulkUpdateRequest, axiosOptions: RawAxiosRequestConfig = {}): Promise => { if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/source-apps/v1/bulk-update`; // 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(sourceAppBulkUpdateRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * AppsApi - functional programming interface * @export */ export const AppsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AppsApiAxiosParamCreator(configuration) return { /** * This endpoint creates a source app using the given source app payload * @summary Create source app * @param {SourceAppCreateDto} sourceAppCreateDto * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createSourceAppV1(sourceAppCreateDto: SourceAppCreateDto, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSourceAppV1(sourceAppCreateDto, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.createSourceAppV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns the final list of access profiles for the specified source app after removing * @summary Bulk remove access profiles from the specified source app * @param {string} id ID of the source app * @param {Array} requestBody List of access profile IDs for removal * @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 {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteAccessProfilesFromSourceAppByBulkV1(id: string, requestBody: Array, limit?: number, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccessProfilesFromSourceAppByBulkV1(id, requestBody, limit, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.deleteAccessProfilesFromSourceAppByBulkV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Use this API to delete a specific source app * @summary Delete source app by id * @param {string} id source app ID. * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteSourceAppV1(id: string, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSourceAppV1(id, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.deleteSourceAppV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns a source app by its ID. * @summary Get source app by id * @param {string} id ID of the source app * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getSourceAppV1(id: string, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSourceAppV1(id, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.getSourceAppV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns the list of access profiles for the specified source app * @summary List access profiles for the specified source app * @param {string} id ID of the source app * @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 {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: **id**: *eq, in* **name**: *eq, in* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async listAccessProfilesForSourceAppV1(id: string, limit?: number, offset?: number, filters?: string, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAccessProfilesForSourceAppV1(id, limit, offset, filters, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.listAccessProfilesForSourceAppV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns the list of all source apps for the org. * @summary List all source apps * @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 {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 {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 {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: **id, name, created, modified, owner.id, accountSource.id** * @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: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, ge, le* **owner.id**: *eq, in* **enabled**: *eq* * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async listAllSourceAppV1(limit?: number, count?: boolean, offset?: number, sorters?: string, filters?: string, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAllSourceAppV1(limit, count, offset, sorters, filters, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.listAllSourceAppV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns the list of all user apps with specified filters. This API must be used with **filters** query parameter. * @summary List all user apps * @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: **id**: *eq* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* * @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 {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 {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 {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async listAllUserAppsV1(filters: string, limit?: number, count?: boolean, offset?: number, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAllUserAppsV1(filters, limit, count, offset, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.listAllUserAppsV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns the list of source apps assigned for logged in user. * @summary List assigned source apps * @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 {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 {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 {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: **id, name, created, modified, accountSource.id** * @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: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async listAssignedSourceAppV1(limit?: number, count?: boolean, offset?: number, sorters?: string, filters?: string, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAssignedSourceAppV1(limit, count, offset, sorters, filters, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.listAssignedSourceAppV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns the list of available accounts for the specified user app. The user app needs to belong lo logged in user. * @summary List available accounts for user app * @param {string} id ID of the user app * @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 {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} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async listAvailableAccountsForUserAppV1(id: string, limit?: number, count?: boolean, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableAccountsForUserAppV1(id, limit, count, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.listAvailableAccountsForUserAppV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns the list of source apps available for access request. * @summary List available source apps * @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 {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 {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 {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: **id, name, created, modified, owner.id, accountSource.id** * @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: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async listAvailableSourceAppsV1(limit?: number, count?: boolean, offset?: number, sorters?: string, filters?: string, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableSourceAppsV1(limit, count, offset, sorters, filters, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.listAvailableSourceAppsV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API returns the list of user apps assigned to logged in user * @summary List owned user apps * @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 {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 {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 {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: **id**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async listOwnedUserAppsV1(limit?: number, count?: boolean, offset?: number, filters?: string, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listOwnedUserAppsV1(limit, count, offset, filters, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.listOwnedUserAppsV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API updates an existing source app using [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. The following fields are patchable: **name**, **description**, **enabled**, **owner**, **provisionRequestEnabled**, **appCenterEnabled**, **accountSource**, **matchAllAccounts** and **accessProfiles**. Name, description and owner can\'t be empty or null. * @summary Patch source app by id * @param {string} id ID of the source app to patch * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {Array} [jsonPatchOperation] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchSourceAppV1(id: string, xSailPointExperimental?: string, jsonPatchOperation?: Array, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchSourceAppV1(id, xSailPointExperimental, jsonPatchOperation, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.patchSourceAppV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API updates an existing user app using [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. The following fields are patchable: **account** * @summary Patch user app by id * @param {string} id ID of the user app to patch * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {Array} [jsonPatchOperation] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchUserAppV1(id: string, xSailPointExperimental?: string, jsonPatchOperation?: Array, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchUserAppV1(id, xSailPointExperimental, jsonPatchOperation, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.patchUserAppV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API updates source apps using [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. It can update up to 50 source apps in a batch. The following fields can be updated: **name**, **description**, **enabled**, **owner**, **provisionRequestEnabled**, **appCenterEnabled**, **accountSource**, **matchAllAccounts**, and **accessProfiles**. Name, description and owner can\'t be empty or null. * @summary Bulk update source apps * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {SourceAppBulkUpdateRequest} [sourceAppBulkUpdateRequest] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updateSourceAppsInBulkV1(xSailPointExperimental?: string, sourceAppBulkUpdateRequest?: SourceAppBulkUpdateRequest, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateSourceAppsInBulkV1(xSailPointExperimental, sourceAppBulkUpdateRequest, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppsApi.updateSourceAppsInBulkV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AppsApi - factory interface * @export */ export const AppsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AppsApiFp(configuration) return { /** * This endpoint creates a source app using the given source app payload * @summary Create source app * @param {AppsApiCreateSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createSourceAppV1(requestParameters: AppsApiCreateSourceAppV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createSourceAppV1(requestParameters.sourceAppCreateDto, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns the final list of access profiles for the specified source app after removing * @summary Bulk remove access profiles from the specified source app * @param {AppsApiDeleteAccessProfilesFromSourceAppByBulkV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteAccessProfilesFromSourceAppByBulkV1(requestParameters: AppsApiDeleteAccessProfilesFromSourceAppByBulkV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.deleteAccessProfilesFromSourceAppByBulkV1(requestParameters.id, requestParameters.requestBody, requestParameters.limit, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * Use this API to delete a specific source app * @summary Delete source app by id * @param {AppsApiDeleteSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteSourceAppV1(requestParameters: AppsApiDeleteSourceAppV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteSourceAppV1(requestParameters.id, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns a source app by its ID. * @summary Get source app by id * @param {AppsApiGetSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getSourceAppV1(requestParameters: AppsApiGetSourceAppV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSourceAppV1(requestParameters.id, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns the list of access profiles for the specified source app * @summary List access profiles for the specified source app * @param {AppsApiListAccessProfilesForSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAccessProfilesForSourceAppV1(requestParameters: AppsApiListAccessProfilesForSourceAppV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listAccessProfilesForSourceAppV1(requestParameters.id, requestParameters.limit, requestParameters.offset, requestParameters.filters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns the list of all source apps for the org. * @summary List all source apps * @param {AppsApiListAllSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAllSourceAppV1(requestParameters: AppsApiListAllSourceAppV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listAllSourceAppV1(requestParameters.limit, requestParameters.count, requestParameters.offset, requestParameters.sorters, requestParameters.filters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns the list of all user apps with specified filters. This API must be used with **filters** query parameter. * @summary List all user apps * @param {AppsApiListAllUserAppsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAllUserAppsV1(requestParameters: AppsApiListAllUserAppsV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listAllUserAppsV1(requestParameters.filters, requestParameters.limit, requestParameters.count, requestParameters.offset, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns the list of source apps assigned for logged in user. * @summary List assigned source apps * @param {AppsApiListAssignedSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAssignedSourceAppV1(requestParameters: AppsApiListAssignedSourceAppV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listAssignedSourceAppV1(requestParameters.limit, requestParameters.count, requestParameters.offset, requestParameters.sorters, requestParameters.filters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns the list of available accounts for the specified user app. The user app needs to belong lo logged in user. * @summary List available accounts for user app * @param {AppsApiListAvailableAccountsForUserAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAvailableAccountsForUserAppV1(requestParameters: AppsApiListAvailableAccountsForUserAppV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listAvailableAccountsForUserAppV1(requestParameters.id, requestParameters.limit, requestParameters.count, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns the list of source apps available for access request. * @summary List available source apps * @param {AppsApiListAvailableSourceAppsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAvailableSourceAppsV1(requestParameters: AppsApiListAvailableSourceAppsV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listAvailableSourceAppsV1(requestParameters.limit, requestParameters.count, requestParameters.offset, requestParameters.sorters, requestParameters.filters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API returns the list of user apps assigned to logged in user * @summary List owned user apps * @param {AppsApiListOwnedUserAppsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listOwnedUserAppsV1(requestParameters: AppsApiListOwnedUserAppsV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listOwnedUserAppsV1(requestParameters.limit, requestParameters.count, requestParameters.offset, requestParameters.filters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API updates an existing source app using [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. The following fields are patchable: **name**, **description**, **enabled**, **owner**, **provisionRequestEnabled**, **appCenterEnabled**, **accountSource**, **matchAllAccounts** and **accessProfiles**. Name, description and owner can\'t be empty or null. * @summary Patch source app by id * @param {AppsApiPatchSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchSourceAppV1(requestParameters: AppsApiPatchSourceAppV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchSourceAppV1(requestParameters.id, requestParameters.xSailPointExperimental, requestParameters.jsonPatchOperation, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API updates an existing user app using [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. The following fields are patchable: **account** * @summary Patch user app by id * @param {AppsApiPatchUserAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserAppV1(requestParameters: AppsApiPatchUserAppV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchUserAppV1(requestParameters.id, requestParameters.xSailPointExperimental, requestParameters.jsonPatchOperation, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API updates source apps using [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. It can update up to 50 source apps in a batch. The following fields can be updated: **name**, **description**, **enabled**, **owner**, **provisionRequestEnabled**, **appCenterEnabled**, **accountSource**, **matchAllAccounts**, and **accessProfiles**. Name, description and owner can\'t be empty or null. * @summary Bulk update source apps * @param {AppsApiUpdateSourceAppsInBulkV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateSourceAppsInBulkV1(requestParameters: AppsApiUpdateSourceAppsInBulkV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateSourceAppsInBulkV1(requestParameters.xSailPointExperimental, requestParameters.sourceAppBulkUpdateRequest, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createSourceAppV1 operation in AppsApi. * @export * @interface AppsApiCreateSourceAppV1Request */ export interface AppsApiCreateSourceAppV1Request { /** * * @type {SourceAppCreateDto} * @memberof AppsApiCreateSourceAppV1 */ readonly sourceAppCreateDto: SourceAppCreateDto /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiCreateSourceAppV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for deleteAccessProfilesFromSourceAppByBulkV1 operation in AppsApi. * @export * @interface AppsApiDeleteAccessProfilesFromSourceAppByBulkV1Request */ export interface AppsApiDeleteAccessProfilesFromSourceAppByBulkV1Request { /** * ID of the source app * @type {string} * @memberof AppsApiDeleteAccessProfilesFromSourceAppByBulkV1 */ readonly id: string /** * List of access profile IDs for removal * @type {Array} * @memberof AppsApiDeleteAccessProfilesFromSourceAppByBulkV1 */ readonly requestBody: Array /** * 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 AppsApiDeleteAccessProfilesFromSourceAppByBulkV1 */ readonly limit?: number /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiDeleteAccessProfilesFromSourceAppByBulkV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for deleteSourceAppV1 operation in AppsApi. * @export * @interface AppsApiDeleteSourceAppV1Request */ export interface AppsApiDeleteSourceAppV1Request { /** * source app ID. * @type {string} * @memberof AppsApiDeleteSourceAppV1 */ readonly id: string /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiDeleteSourceAppV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for getSourceAppV1 operation in AppsApi. * @export * @interface AppsApiGetSourceAppV1Request */ export interface AppsApiGetSourceAppV1Request { /** * ID of the source app * @type {string} * @memberof AppsApiGetSourceAppV1 */ readonly id: string /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiGetSourceAppV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for listAccessProfilesForSourceAppV1 operation in AppsApi. * @export * @interface AppsApiListAccessProfilesForSourceAppV1Request */ export interface AppsApiListAccessProfilesForSourceAppV1Request { /** * ID of the source app * @type {string} * @memberof AppsApiListAccessProfilesForSourceAppV1 */ readonly id: string /** * 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 AppsApiListAccessProfilesForSourceAppV1 */ 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 AppsApiListAccessProfilesForSourceAppV1 */ readonly offset?: number /** * 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: **id**: *eq, in* **name**: *eq, in* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* * @type {string} * @memberof AppsApiListAccessProfilesForSourceAppV1 */ readonly filters?: string /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiListAccessProfilesForSourceAppV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for listAllSourceAppV1 operation in AppsApi. * @export * @interface AppsApiListAllSourceAppV1Request */ export interface AppsApiListAllSourceAppV1Request { /** * 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 AppsApiListAllSourceAppV1 */ readonly limit?: 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 AppsApiListAllSourceAppV1 */ readonly count?: boolean /** * 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 AppsApiListAllSourceAppV1 */ readonly offset?: number /** * 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: **id, name, created, modified, owner.id, accountSource.id** * @type {string} * @memberof AppsApiListAllSourceAppV1 */ readonly sorters?: string /** * 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: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, ge, le* **owner.id**: *eq, in* **enabled**: *eq* * @type {string} * @memberof AppsApiListAllSourceAppV1 */ readonly filters?: string /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiListAllSourceAppV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for listAllUserAppsV1 operation in AppsApi. * @export * @interface AppsApiListAllUserAppsV1Request */ export interface AppsApiListAllUserAppsV1Request { /** * 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: **id**: *eq* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* * @type {string} * @memberof AppsApiListAllUserAppsV1 */ readonly filters: string /** * 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 AppsApiListAllUserAppsV1 */ readonly limit?: 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 AppsApiListAllUserAppsV1 */ readonly count?: boolean /** * 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 AppsApiListAllUserAppsV1 */ readonly offset?: number /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiListAllUserAppsV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for listAssignedSourceAppV1 operation in AppsApi. * @export * @interface AppsApiListAssignedSourceAppV1Request */ export interface AppsApiListAssignedSourceAppV1Request { /** * 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 AppsApiListAssignedSourceAppV1 */ readonly limit?: 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 AppsApiListAssignedSourceAppV1 */ readonly count?: boolean /** * 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 AppsApiListAssignedSourceAppV1 */ readonly offset?: number /** * 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: **id, name, created, modified, accountSource.id** * @type {string} * @memberof AppsApiListAssignedSourceAppV1 */ readonly sorters?: string /** * 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: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* * @type {string} * @memberof AppsApiListAssignedSourceAppV1 */ readonly filters?: string /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiListAssignedSourceAppV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for listAvailableAccountsForUserAppV1 operation in AppsApi. * @export * @interface AppsApiListAvailableAccountsForUserAppV1Request */ export interface AppsApiListAvailableAccountsForUserAppV1Request { /** * ID of the user app * @type {string} * @memberof AppsApiListAvailableAccountsForUserAppV1 */ readonly id: string /** * 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 AppsApiListAvailableAccountsForUserAppV1 */ readonly limit?: 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 AppsApiListAvailableAccountsForUserAppV1 */ readonly count?: boolean /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiListAvailableAccountsForUserAppV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for listAvailableSourceAppsV1 operation in AppsApi. * @export * @interface AppsApiListAvailableSourceAppsV1Request */ export interface AppsApiListAvailableSourceAppsV1Request { /** * 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 AppsApiListAvailableSourceAppsV1 */ readonly limit?: 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 AppsApiListAvailableSourceAppsV1 */ readonly count?: boolean /** * 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 AppsApiListAvailableSourceAppsV1 */ readonly offset?: number /** * 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: **id, name, created, modified, owner.id, accountSource.id** * @type {string} * @memberof AppsApiListAvailableSourceAppsV1 */ readonly sorters?: string /** * 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: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* * @type {string} * @memberof AppsApiListAvailableSourceAppsV1 */ readonly filters?: string /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiListAvailableSourceAppsV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for listOwnedUserAppsV1 operation in AppsApi. * @export * @interface AppsApiListOwnedUserAppsV1Request */ export interface AppsApiListOwnedUserAppsV1Request { /** * 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 AppsApiListOwnedUserAppsV1 */ readonly limit?: 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 AppsApiListOwnedUserAppsV1 */ readonly count?: boolean /** * 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 AppsApiListOwnedUserAppsV1 */ readonly offset?: number /** * 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: **id**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* * @type {string} * @memberof AppsApiListOwnedUserAppsV1 */ readonly filters?: string /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiListOwnedUserAppsV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for patchSourceAppV1 operation in AppsApi. * @export * @interface AppsApiPatchSourceAppV1Request */ export interface AppsApiPatchSourceAppV1Request { /** * ID of the source app to patch * @type {string} * @memberof AppsApiPatchSourceAppV1 */ readonly id: string /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiPatchSourceAppV1 */ readonly xSailPointExperimental?: string /** * * @type {Array} * @memberof AppsApiPatchSourceAppV1 */ readonly jsonPatchOperation?: Array } /** * Request parameters for patchUserAppV1 operation in AppsApi. * @export * @interface AppsApiPatchUserAppV1Request */ export interface AppsApiPatchUserAppV1Request { /** * ID of the user app to patch * @type {string} * @memberof AppsApiPatchUserAppV1 */ readonly id: string /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiPatchUserAppV1 */ readonly xSailPointExperimental?: string /** * * @type {Array} * @memberof AppsApiPatchUserAppV1 */ readonly jsonPatchOperation?: Array } /** * Request parameters for updateSourceAppsInBulkV1 operation in AppsApi. * @export * @interface AppsApiUpdateSourceAppsInBulkV1Request */ export interface AppsApiUpdateSourceAppsInBulkV1Request { /** * Use this header to enable this experimental API. * @type {string} * @memberof AppsApiUpdateSourceAppsInBulkV1 */ readonly xSailPointExperimental?: string /** * * @type {SourceAppBulkUpdateRequest} * @memberof AppsApiUpdateSourceAppsInBulkV1 */ readonly sourceAppBulkUpdateRequest?: SourceAppBulkUpdateRequest } /** * AppsApi - object-oriented interface * @export * @class AppsApi * @extends {BaseAPI} */ export class AppsApi extends BaseAPI { /** * This endpoint creates a source app using the given source app payload * @summary Create source app * @param {AppsApiCreateSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public createSourceAppV1(requestParameters: AppsApiCreateSourceAppV1Request, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).createSourceAppV1(requestParameters.sourceAppCreateDto, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns the final list of access profiles for the specified source app after removing * @summary Bulk remove access profiles from the specified source app * @param {AppsApiDeleteAccessProfilesFromSourceAppByBulkV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public deleteAccessProfilesFromSourceAppByBulkV1(requestParameters: AppsApiDeleteAccessProfilesFromSourceAppByBulkV1Request, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).deleteAccessProfilesFromSourceAppByBulkV1(requestParameters.id, requestParameters.requestBody, requestParameters.limit, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Use this API to delete a specific source app * @summary Delete source app by id * @param {AppsApiDeleteSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public deleteSourceAppV1(requestParameters: AppsApiDeleteSourceAppV1Request, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).deleteSourceAppV1(requestParameters.id, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns a source app by its ID. * @summary Get source app by id * @param {AppsApiGetSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public getSourceAppV1(requestParameters: AppsApiGetSourceAppV1Request, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).getSourceAppV1(requestParameters.id, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns the list of access profiles for the specified source app * @summary List access profiles for the specified source app * @param {AppsApiListAccessProfilesForSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public listAccessProfilesForSourceAppV1(requestParameters: AppsApiListAccessProfilesForSourceAppV1Request, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).listAccessProfilesForSourceAppV1(requestParameters.id, requestParameters.limit, requestParameters.offset, requestParameters.filters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns the list of all source apps for the org. * @summary List all source apps * @param {AppsApiListAllSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public listAllSourceAppV1(requestParameters: AppsApiListAllSourceAppV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).listAllSourceAppV1(requestParameters.limit, requestParameters.count, requestParameters.offset, requestParameters.sorters, requestParameters.filters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns the list of all user apps with specified filters. This API must be used with **filters** query parameter. * @summary List all user apps * @param {AppsApiListAllUserAppsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public listAllUserAppsV1(requestParameters: AppsApiListAllUserAppsV1Request, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).listAllUserAppsV1(requestParameters.filters, requestParameters.limit, requestParameters.count, requestParameters.offset, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns the list of source apps assigned for logged in user. * @summary List assigned source apps * @param {AppsApiListAssignedSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public listAssignedSourceAppV1(requestParameters: AppsApiListAssignedSourceAppV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).listAssignedSourceAppV1(requestParameters.limit, requestParameters.count, requestParameters.offset, requestParameters.sorters, requestParameters.filters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns the list of available accounts for the specified user app. The user app needs to belong lo logged in user. * @summary List available accounts for user app * @param {AppsApiListAvailableAccountsForUserAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public listAvailableAccountsForUserAppV1(requestParameters: AppsApiListAvailableAccountsForUserAppV1Request, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).listAvailableAccountsForUserAppV1(requestParameters.id, requestParameters.limit, requestParameters.count, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns the list of source apps available for access request. * @summary List available source apps * @param {AppsApiListAvailableSourceAppsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public listAvailableSourceAppsV1(requestParameters: AppsApiListAvailableSourceAppsV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).listAvailableSourceAppsV1(requestParameters.limit, requestParameters.count, requestParameters.offset, requestParameters.sorters, requestParameters.filters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API returns the list of user apps assigned to logged in user * @summary List owned user apps * @param {AppsApiListOwnedUserAppsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public listOwnedUserAppsV1(requestParameters: AppsApiListOwnedUserAppsV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).listOwnedUserAppsV1(requestParameters.limit, requestParameters.count, requestParameters.offset, requestParameters.filters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API updates an existing source app using [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. The following fields are patchable: **name**, **description**, **enabled**, **owner**, **provisionRequestEnabled**, **appCenterEnabled**, **accountSource**, **matchAllAccounts** and **accessProfiles**. Name, description and owner can\'t be empty or null. * @summary Patch source app by id * @param {AppsApiPatchSourceAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public patchSourceAppV1(requestParameters: AppsApiPatchSourceAppV1Request, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).patchSourceAppV1(requestParameters.id, requestParameters.xSailPointExperimental, requestParameters.jsonPatchOperation, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API updates an existing user app using [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. The following fields are patchable: **account** * @summary Patch user app by id * @param {AppsApiPatchUserAppV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public patchUserAppV1(requestParameters: AppsApiPatchUserAppV1Request, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).patchUserAppV1(requestParameters.id, requestParameters.xSailPointExperimental, requestParameters.jsonPatchOperation, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API updates source apps using [JSON Patch](https://tools.ietf.org/html/rfc6902) syntax. It can update up to 50 source apps in a batch. The following fields can be updated: **name**, **description**, **enabled**, **owner**, **provisionRequestEnabled**, **appCenterEnabled**, **accountSource**, **matchAllAccounts**, and **accessProfiles**. Name, description and owner can\'t be empty or null. * @summary Bulk update source apps * @param {AppsApiUpdateSourceAppsInBulkV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AppsApi */ public updateSourceAppsInBulkV1(requestParameters: AppsApiUpdateSourceAppsInBulkV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return AppsApiFp(this.configuration).updateSourceAppsInBulkV1(requestParameters.xSailPointExperimental, requestParameters.sourceAppBulkUpdateRequest, axiosOptions).then((request) => request(this.axios, this.basePath)); } }