/* tslint:disable */ /* eslint-disable */ /** * Identity Security Cloud API - Access Request Approvals * 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'; /** * Identity the access item is requested for. * @export * @interface AccessItemRequestedFor */ export interface AccessItemRequestedFor { /** * DTO type of identity the access item is requested for. * @type {string} * @memberof AccessItemRequestedFor */ 'type'?: AccessItemRequestedForTypeEnum; /** * ID of identity the access item is requested for. * @type {string} * @memberof AccessItemRequestedFor */ 'id'?: string; /** * Human-readable display name of identity the access item is requested for. * @type {string} * @memberof AccessItemRequestedFor */ 'name'?: string; } export const AccessItemRequestedForTypeEnum = { Identity: 'IDENTITY' } as const; export type AccessItemRequestedForTypeEnum = typeof AccessItemRequestedForTypeEnum[keyof typeof AccessItemRequestedForTypeEnum]; /** * Access item requester\'s identity. * @export * @interface AccessItemRequester */ export interface AccessItemRequester { /** * Access item requester\'s DTO type. * @type {string} * @memberof AccessItemRequester */ 'type'?: AccessItemRequesterTypeEnum; /** * Access item requester\'s identity ID. * @type {string} * @memberof AccessItemRequester */ 'id'?: string; /** * Access item owner\'s human-readable display name. * @type {string} * @memberof AccessItemRequester */ 'name'?: string; } export const AccessItemRequesterTypeEnum = { Identity: 'IDENTITY' } as const; export type AccessItemRequesterTypeEnum = typeof AccessItemRequesterTypeEnum[keyof typeof AccessItemRequesterTypeEnum]; /** * Identity who reviewed the access item request. * @export * @interface AccessItemReviewedBy */ export interface AccessItemReviewedBy { /** * DTO type of identity who reviewed the access item request. * @type {string} * @memberof AccessItemReviewedBy */ 'type'?: AccessItemReviewedByTypeEnum; /** * ID of identity who reviewed the access item request. * @type {string} * @memberof AccessItemReviewedBy */ 'id'?: string; /** * Human-readable display name of identity who reviewed the access item request. * @type {string} * @memberof AccessItemReviewedBy */ 'name'?: string; } export const AccessItemReviewedByTypeEnum = { Identity: 'IDENTITY' } as const; export type AccessItemReviewedByTypeEnum = typeof AccessItemReviewedByTypeEnum[keyof typeof AccessItemReviewedByTypeEnum]; /** * * @export * @interface AccessRequestApproversListResponse */ export interface AccessRequestApproversListResponse { /** * Approver id. * @type {string} * @memberof AccessRequestApproversListResponse */ 'id'?: string; /** * Email of the approver. * @type {string} * @memberof AccessRequestApproversListResponse */ 'email'?: string; /** * Name of the approver. * @type {string} * @memberof AccessRequestApproversListResponse */ 'name'?: string; /** * Id of the approval item. * @type {string} * @memberof AccessRequestApproversListResponse */ 'approvalId'?: string; /** * Type of the object returned. In this case, the value for this field will always Identity. * @type {string} * @memberof AccessRequestApproversListResponse */ 'type'?: string; } /** * Access request type. Defaults to GRANT_ACCESS. REVOKE_ACCESS type can only have a single Identity ID in the requestedFor field. MODIFY_ACCESS type is used for updating access expiration dates or other access modifications. * @export * @enum {string} */ export const AccessRequestType = { GrantAccess: 'GRANT_ACCESS', RevokeAccess: 'REVOKE_ACCESS', ModifyAccess: 'MODIFY_ACCESS' } as const; export type AccessRequestType = typeof AccessRequestType[keyof typeof AccessRequestType]; /** * * @export * @interface ApprovalForwardHistory */ export interface ApprovalForwardHistory { /** * Display name of approver from whom the approval was forwarded. * @type {string} * @memberof ApprovalForwardHistory */ 'oldApproverName'?: string; /** * Display name of approver to whom the approval was forwarded. * @type {string} * @memberof ApprovalForwardHistory */ 'newApproverName'?: string; /** * Comment made while forwarding. * @type {string} * @memberof ApprovalForwardHistory */ 'comment'?: string | null; /** * Time at which approval was forwarded. * @type {string} * @memberof ApprovalForwardHistory */ 'modified'?: string; /** * Display name of forwarder who forwarded the approval. * @type {string} * @memberof ApprovalForwardHistory */ 'forwarderName'?: string | null; /** * * @type {ReassignmentType} * @memberof ApprovalForwardHistory */ 'reassignmentType'?: ReassignmentType; } /** * * @export * @interface ApprovalSummary */ export interface ApprovalSummary { /** * The number of pending access requests approvals. * @type {number} * @memberof ApprovalSummary */ 'pending'?: number; /** * The number of approved access requests approvals. * @type {number} * @memberof ApprovalSummary */ 'approved'?: number; /** * The number of rejected access requests approvals. * @type {number} * @memberof ApprovalSummary */ 'rejected'?: number; } /** * * @export * @interface CommentDto */ export interface CommentDto { /** * Comment content. * @type {string} * @memberof CommentDto */ 'comment'?: string | null; /** * Date and time comment was created. * @type {string} * @memberof CommentDto */ 'created'?: string; /** * * @type {CommentDtoAuthor} * @memberof CommentDto */ 'author'?: CommentDtoAuthor; } /** * Author of the comment * @export * @interface CommentDtoAuthor */ export interface CommentDtoAuthor { /** * The type of object * @type {string} * @memberof CommentDtoAuthor */ 'type'?: CommentDtoAuthorTypeEnum; /** * The unique ID of the object * @type {string} * @memberof CommentDtoAuthor */ 'id'?: string; /** * The display name of the object * @type {string} * @memberof CommentDtoAuthor */ 'name'?: string; } export const CommentDtoAuthorTypeEnum = { Identity: 'IDENTITY' } as const; export type CommentDtoAuthorTypeEnum = typeof CommentDtoAuthorTypeEnum[keyof typeof CommentDtoAuthorTypeEnum]; /** * * @export * @interface CompletedApproval */ export interface CompletedApproval { /** * The approval id. * @type {string} * @memberof CompletedApproval */ 'id'?: string; /** * The name of the approval. * @type {string} * @memberof CompletedApproval */ 'name'?: string; /** * When the approval was created. * @type {string} * @memberof CompletedApproval */ 'created'?: string; /** * When the approval was modified last time. * @type {string} * @memberof CompletedApproval */ 'modified'?: string; /** * When the access-request was created. * @type {string} * @memberof CompletedApproval */ 'requestCreated'?: string; /** * * @type {AccessRequestType} * @memberof CompletedApproval */ 'requestType'?: AccessRequestType | null; /** * * @type {AccessItemRequester} * @memberof CompletedApproval */ 'requester'?: AccessItemRequester; /** * * @type {CompletedApprovalRequestedFor} * @memberof CompletedApproval */ 'requestedFor'?: CompletedApprovalRequestedFor; /** * * @type {AccessItemReviewedBy} * @memberof CompletedApproval */ 'reviewedBy'?: AccessItemReviewedBy; /** * * @type {OwnerDto} * @memberof CompletedApproval */ 'owner'?: OwnerDto; /** * * @type {RequestableObjectReference} * @memberof CompletedApproval */ 'requestedObject'?: RequestableObjectReference; /** * * @type {CompletedApprovalRequesterComment} * @memberof CompletedApproval */ 'requesterComment'?: CompletedApprovalRequesterComment; /** * * @type {CompletedApprovalReviewerComment} * @memberof CompletedApproval */ 'reviewerComment'?: CompletedApprovalReviewerComment; /** * The history of the previous reviewers comments. * @type {Array} * @memberof CompletedApproval */ 'previousReviewersComments'?: Array; /** * The history of approval forward action. * @type {Array} * @memberof CompletedApproval */ 'forwardHistory'?: Array; /** * When true the rejector has to provide comments when rejecting * @type {boolean} * @memberof CompletedApproval */ 'commentRequiredWhenRejected'?: boolean; /** * * @type {CompletedApprovalState} * @memberof CompletedApproval */ 'state'?: CompletedApprovalState; /** * The date the role or access profile or entitlement is no longer assigned to the specified identity. * @type {string} * @memberof CompletedApproval */ 'removeDate'?: string | null; /** * If true, then the request was to change the remove date or sunset date. * @type {boolean} * @memberof CompletedApproval */ 'removeDateUpdateRequested'?: boolean; /** * The remove date or sunset date that was assigned at the time of the request. * @type {string} * @memberof CompletedApproval */ 'currentRemoveDate'?: string | null; /** * The date the role or access profile or entitlement is/will assigned to the specified identity. * @type {string} * @memberof CompletedApproval */ 'startDate'?: string; /** * If true, then the request is to change the start date or sunrise date. * @type {boolean} * @memberof CompletedApproval */ 'startUpdateRequested'?: boolean; /** * The start date or sunrise date that was assigned at the time of the request. * @type {string} * @memberof CompletedApproval */ 'currentStartDate'?: string; /** * * @type {SodViolationContextCheckCompleted} * @memberof CompletedApproval */ 'sodViolationContext'?: SodViolationContextCheckCompleted | null; /** * * @type {CompletedApprovalPreApprovalTriggerResult} * @memberof CompletedApproval */ 'preApprovalTriggerResult'?: CompletedApprovalPreApprovalTriggerResult | null; /** * Arbitrary key-value pairs provided during the request. * @type {{ [key: string]: string; }} * @memberof CompletedApproval */ 'clientMetadata'?: { [key: string]: string; }; /** * The accounts selected by the user for the access to be provisioned on, in case they have multiple accounts on one or more sources. * @type {Array} * @memberof CompletedApproval */ 'requestedAccounts'?: Array | null; /** * The privilege level of the requested access item, if applicable. * @type {string} * @memberof CompletedApproval */ 'privilegeLevel'?: string | null; /** * * @type {PendingApprovalMaxPermittedAccessDuration} * @memberof CompletedApproval */ 'maxPermittedAccessDuration'?: PendingApprovalMaxPermittedAccessDuration | null; /** * JIT (Just-In-Time) details for the requested access item, if applicable. * @type {Array} * @memberof CompletedApproval */ 'jitDetails'?: Array | null; } /** * If the access request submitted event trigger is configured and this access request was intercepted by it, then this is the result of the trigger\'s decision to either approve or deny the request. * @export * @interface CompletedApprovalPreApprovalTriggerResult */ export interface CompletedApprovalPreApprovalTriggerResult { /** * The comment from the trigger * @type {string} * @memberof CompletedApprovalPreApprovalTriggerResult */ 'comment'?: string; /** * * @type {CompletedApprovalState} * @memberof CompletedApprovalPreApprovalTriggerResult */ 'decision'?: CompletedApprovalState; /** * The name of the approver * @type {string} * @memberof CompletedApprovalPreApprovalTriggerResult */ 'reviewer'?: string; /** * The date and time the trigger decided on the request * @type {string} * @memberof CompletedApprovalPreApprovalTriggerResult */ 'date'?: string; } /** * Identity access was requested for. * @export * @interface CompletedApprovalRequestedFor */ export interface CompletedApprovalRequestedFor { /** * Type of the object to which this reference applies * @type {string} * @memberof CompletedApprovalRequestedFor */ 'type'?: CompletedApprovalRequestedForTypeEnum; /** * ID of the object to which this reference applies * @type {string} * @memberof CompletedApprovalRequestedFor */ 'id'?: string; /** * Human-readable display name of the object to which this reference applies * @type {string} * @memberof CompletedApprovalRequestedFor */ 'name'?: string; } export const CompletedApprovalRequestedForTypeEnum = { Identity: 'IDENTITY' } as const; export type CompletedApprovalRequestedForTypeEnum = typeof CompletedApprovalRequestedForTypeEnum[keyof typeof CompletedApprovalRequestedForTypeEnum]; /** * * @export * @interface CompletedApprovalRequesterComment */ export interface CompletedApprovalRequesterComment { /** * Comment content. * @type {string} * @memberof CompletedApprovalRequesterComment */ 'comment'?: string | null; /** * Date and time comment was created. * @type {string} * @memberof CompletedApprovalRequesterComment */ 'created'?: string; /** * * @type {CommentDtoAuthor} * @memberof CompletedApprovalRequesterComment */ 'author'?: CommentDtoAuthor; } /** * * @export * @interface CompletedApprovalReviewerComment */ export interface CompletedApprovalReviewerComment { /** * Comment content. * @type {string} * @memberof CompletedApprovalReviewerComment */ 'comment'?: string | null; /** * Date and time comment was created. * @type {string} * @memberof CompletedApprovalReviewerComment */ 'created'?: string; /** * * @type {CommentDtoAuthor} * @memberof CompletedApprovalReviewerComment */ 'author'?: CommentDtoAuthor; } /** * Enum represents completed approval object\'s state. * @export * @enum {string} */ export const CompletedApprovalState = { Approved: 'APPROVED', Rejected: 'REJECTED' } as const; export type CompletedApprovalState = typeof CompletedApprovalState[keyof typeof CompletedApprovalState]; /** * 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]; /** * A single JIT entitlement snapshot entry from the provisioning plan. * @export * @interface EntitlementStateSnapshotJitDetail */ export interface EntitlementStateSnapshotJitDetail { [key: string]: any; /** * Application id for the entitlement attribute (same as EntitlementStateSnapshot.applicationId). * @type {string} * @memberof EntitlementStateSnapshotJitDetail */ 'applicationId'?: string; /** * Account attribute name for the entitlement (EntitlementStateSnapshot.attributeName). * @type {string} * @memberof EntitlementStateSnapshotJitDetail */ 'attributeName'?: string; /** * Entitlement values for that attribute (EntitlementStateSnapshot.attributeValues). * @type {Array} * @memberof EntitlementStateSnapshotJitDetail */ 'attributeValues'?: Array; } /** * * @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 ForwardApprovalDto */ export interface ForwardApprovalDto { /** * The Id of the new owner * @type {string} * @memberof ForwardApprovalDto */ 'newOwnerId': string; /** * The comment provided by the forwarder * @type {string} * @memberof ForwardApprovalDto */ 'comment': string; } /** * * @export * @interface ListPendingApprovalsV1401Response */ export interface ListPendingApprovalsV1401Response { /** * A message describing the error * @type {any} * @memberof ListPendingApprovalsV1401Response */ 'error'?: any; } /** * * @export * @interface ListPendingApprovalsV1429Response */ export interface ListPendingApprovalsV1429Response { /** * A message describing the error * @type {any} * @memberof ListPendingApprovalsV1429Response */ 'message'?: any; } /** * An indicator of how the locale was selected. *DEFAULT* means the locale is the system default. *REQUEST* means the locale was selected from the request context (i.e., best match based on the *Accept-Language* header). Additional values may be added in the future without notice. * @export * @enum {string} */ export const LocaleOrigin = { Default: 'DEFAULT', Request: 'REQUEST' } as const; export type LocaleOrigin = typeof LocaleOrigin[keyof typeof LocaleOrigin]; /** * Owner\'s identity. * @export * @interface OwnerDto */ export interface OwnerDto { /** * Owner\'s DTO type. * @type {string} * @memberof OwnerDto */ 'type'?: OwnerDtoTypeEnum; /** * Owner\'s identity ID. * @type {string} * @memberof OwnerDto */ 'id'?: string; /** * Owner\'s name. * @type {string} * @memberof OwnerDto */ 'name'?: string; } export const OwnerDtoTypeEnum = { Identity: 'IDENTITY' } as const; export type OwnerDtoTypeEnum = typeof OwnerDtoTypeEnum[keyof typeof OwnerDtoTypeEnum]; /** * * @export * @interface PendingApproval */ export interface PendingApproval { /** * The approval id. * @type {string} * @memberof PendingApproval */ 'id'?: string; /** * This is the access request id. * @type {string} * @memberof PendingApproval */ 'accessRequestId'?: string; /** * The name of the approval. * @type {string} * @memberof PendingApproval */ 'name'?: string; /** * When the approval was created. * @type {string} * @memberof PendingApproval */ 'created'?: string; /** * When the approval was modified last time. * @type {string} * @memberof PendingApproval */ 'modified'?: string; /** * When the access-request was created. * @type {string} * @memberof PendingApproval */ 'requestCreated'?: string; /** * * @type {AccessRequestType} * @memberof PendingApproval */ 'requestType'?: AccessRequestType | null; /** * * @type {AccessItemRequester} * @memberof PendingApproval */ 'requester'?: AccessItemRequester; /** * * @type {AccessItemRequestedFor} * @memberof PendingApproval */ 'requestedFor'?: AccessItemRequestedFor; /** * * @type {PendingApprovalOwner} * @memberof PendingApproval */ 'owner'?: PendingApprovalOwner; /** * * @type {RequestableObjectReference} * @memberof PendingApproval */ 'requestedObject'?: RequestableObjectReference; /** * * @type {CommentDto} * @memberof PendingApproval */ 'requesterComment'?: CommentDto; /** * The history of the previous reviewers comments. * @type {Array} * @memberof PendingApproval */ 'previousReviewersComments'?: Array; /** * The history of approval forward action. * @type {Array} * @memberof PendingApproval */ 'forwardHistory'?: Array; /** * When true the rejector has to provide comments when rejecting * @type {boolean} * @memberof PendingApproval */ 'commentRequiredWhenRejected'?: boolean; /** * * @type {PendingApprovalAction} * @memberof PendingApproval */ 'actionInProcess'?: PendingApprovalAction; /** * The date the role or access profile or entitlement is no longer assigned to the specified identity. * @type {string} * @memberof PendingApproval */ 'removeDate'?: string; /** * If true, then the request is to change the remove date or sunset date. * @type {boolean} * @memberof PendingApproval */ 'removeDateUpdateRequested'?: boolean; /** * The remove date or sunset date that was assigned at the time of the request. * @type {string} * @memberof PendingApproval */ 'currentRemoveDate'?: string; /** * The date the role or access profile or entitlement is/will assigned to the specified identity. * @type {string} * @memberof PendingApproval */ 'startDate'?: string; /** * If true, then the request is to change the start date or sunrise date. * @type {boolean} * @memberof PendingApproval */ 'startUpdateRequested'?: boolean; /** * The start date or sunrise date that was assigned at the time of the request. * @type {string} * @memberof PendingApproval */ 'currentStartDate'?: string; /** * * @type {SodViolationContextCheckCompleted} * @memberof PendingApproval */ 'sodViolationContext'?: SodViolationContextCheckCompleted | null; /** * Arbitrary key-value pairs, if any were included in the corresponding access request item * @type {{ [key: string]: string; }} * @memberof PendingApproval */ 'clientMetadata'?: { [key: string]: string; } | null; /** * The accounts selected by the user for the access to be provisioned on, in case they have multiple accounts on one or more sources. * @type {Array} * @memberof PendingApproval */ 'requestedAccounts'?: Array | null; /** * The privilege level of the requested access item, if applicable. * @type {string} * @memberof PendingApproval */ 'privilegeLevel'?: string | null; /** * * @type {PendingApprovalMaxPermittedAccessDuration} * @memberof PendingApproval */ 'maxPermittedAccessDuration'?: PendingApprovalMaxPermittedAccessDuration | null; /** * JIT (Just-In-Time) details for the requested access item, if applicable. * @type {Array} * @memberof PendingApproval */ 'jitDetails'?: Array | null; } /** * Enum represents action that is being processed on an approval. * @export * @enum {string} */ export const PendingApprovalAction = { Approved: 'APPROVED', Rejected: 'REJECTED', Forwarded: 'FORWARDED' } as const; export type PendingApprovalAction = typeof PendingApprovalAction[keyof typeof PendingApprovalAction]; /** * The maximum duration for which the access is permitted. * @export * @interface PendingApprovalMaxPermittedAccessDuration */ export interface PendingApprovalMaxPermittedAccessDuration { /** * The numeric value of the duration. * @type {number} * @memberof PendingApprovalMaxPermittedAccessDuration */ 'value'?: number; /** * The time unit for the duration. * @type {string} * @memberof PendingApprovalMaxPermittedAccessDuration */ 'timeUnit'?: PendingApprovalMaxPermittedAccessDurationTimeUnitEnum; } export const PendingApprovalMaxPermittedAccessDurationTimeUnitEnum = { Hours: 'HOURS', Days: 'DAYS', Weeks: 'WEEKS', Months: 'MONTHS' } as const; export type PendingApprovalMaxPermittedAccessDurationTimeUnitEnum = typeof PendingApprovalMaxPermittedAccessDurationTimeUnitEnum[keyof typeof PendingApprovalMaxPermittedAccessDurationTimeUnitEnum]; /** * Access item owner\'s identity. * @export * @interface PendingApprovalOwner */ export interface PendingApprovalOwner { /** * Access item owner\'s DTO type. * @type {string} * @memberof PendingApprovalOwner */ 'type'?: PendingApprovalOwnerTypeEnum; /** * Access item owner\'s identity ID. * @type {string} * @memberof PendingApprovalOwner */ 'id'?: string; /** * Access item owner\'s human-readable display name. * @type {string} * @memberof PendingApprovalOwner */ 'name'?: string; } export const PendingApprovalOwnerTypeEnum = { Identity: 'IDENTITY' } as const; export type PendingApprovalOwnerTypeEnum = typeof PendingApprovalOwnerTypeEnum[keyof typeof PendingApprovalOwnerTypeEnum]; /** * The approval reassignment type. * MANUAL_REASSIGNMENT: An approval with this reassignment type has been specifically reassigned by the approval task\'s owner, from their queue to someone else\'s. * AUTOMATIC_REASSIGNMENT: An approval with this reassignment type has been automatically reassigned from another approver\'s queue, according to that approver\'s reassignment configuration. The approver\'s reassignment configuration may be set up to automatically reassign approval tasks for a defined (or possibly open-ended) period of time. * AUTO_ESCALATION: An approval with this reassignment type has been automatically reassigned from another approver\'s queue, according to the request\'s escalation configuration. For more information about escalation configuration, refer to [Setting Global Reminders and Escalation Policies](https://documentation.sailpoint.com/saas/help/requests/config_emails.html). * SELF_REVIEW_DELEGATION: An approval with this reassignment type has been automatically reassigned by the system to prevent self-review. This helps prevent situations like a requester being tasked with approving their own request. For more information about preventing self-review, refer to [Self-review Prevention](https://documentation.sailpoint.com/saas/help/users/work_reassignment.html#self-review-prevention) and [Preventing Self-approval](https://documentation.sailpoint.com/saas/help/requests/config_ap_roles.html#preventing-self-approval). * @export * @enum {string} */ export const ReassignmentType = { ManualReassignment: 'MANUAL_REASSIGNMENT', AutomaticReassignment: 'AUTOMATIC_REASSIGNMENT', AutoEscalation: 'AUTO_ESCALATION', SelfReviewDelegation: 'SELF_REVIEW_DELEGATION' } as const; export type ReassignmentType = typeof ReassignmentType[keyof typeof ReassignmentType]; /** * * @export * @interface RequestableObjectReference */ export interface RequestableObjectReference { /** * Id of the object. * @type {string} * @memberof RequestableObjectReference */ 'id'?: string; /** * Name of the object. * @type {string} * @memberof RequestableObjectReference */ 'name'?: string; /** * Description of the object. * @type {string} * @memberof RequestableObjectReference */ 'description'?: string; /** * Type of the object. * @type {string} * @memberof RequestableObjectReference */ 'type'?: RequestableObjectReferenceTypeEnum; } export const RequestableObjectReferenceTypeEnum = { AccessProfile: 'ACCESS_PROFILE', Role: 'ROLE', Entitlement: 'ENTITLEMENT' } as const; export type RequestableObjectReferenceTypeEnum = typeof RequestableObjectReferenceTypeEnum[keyof typeof RequestableObjectReferenceTypeEnum]; /** * * @export * @interface RequestedAccountRef */ export interface RequestedAccountRef { /** * Display name of the account for the user * @type {string} * @memberof RequestedAccountRef */ 'name'?: string; /** * * @type {DtoType} * @memberof RequestedAccountRef */ 'type'?: DtoType; /** * The uuid for the account * @type {string} * @memberof RequestedAccountRef */ 'accountUuid'?: string | null; /** * The native identity for the account * @type {string} * @memberof RequestedAccountRef */ 'accountId'?: string | null; /** * Display name of the source for the account * @type {string} * @memberof RequestedAccountRef */ 'sourceName'?: string; } /** * Details of the Entitlement criteria * @export * @interface SodExemptCriteria */ export interface SodExemptCriteria { /** * If the entitlement already belonged to the user or not. * @type {boolean} * @memberof SodExemptCriteria */ 'existing'?: boolean; /** * * @type {DtoType} * @memberof SodExemptCriteria */ 'type'?: DtoType; /** * Entitlement ID * @type {string} * @memberof SodExemptCriteria */ 'id'?: string; /** * Entitlement name * @type {string} * @memberof SodExemptCriteria */ 'name'?: string; } /** * SOD policy. * @export * @interface SodPolicyDto */ export interface SodPolicyDto { /** * SOD policy DTO type. * @type {string} * @memberof SodPolicyDto */ 'type'?: SodPolicyDtoTypeEnum; /** * SOD policy ID. * @type {string} * @memberof SodPolicyDto */ 'id'?: string; /** * SOD policy display name. * @type {string} * @memberof SodPolicyDto */ 'name'?: string; } export const SodPolicyDtoTypeEnum = { SodPolicy: 'SOD_POLICY' } as const; export type SodPolicyDtoTypeEnum = typeof SodPolicyDtoTypeEnum[keyof typeof SodPolicyDtoTypeEnum]; /** * The inner object representing the completed SOD Violation check * @export * @interface SodViolationCheckResult */ export interface SodViolationCheckResult { /** * * @type {ErrorMessageDto} * @memberof SodViolationCheckResult */ 'message'?: ErrorMessageDto; /** * Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on completion of the violation check. * @type {{ [key: string]: string; }} * @memberof SodViolationCheckResult */ 'clientMetadata'?: { [key: string]: string; } | null; /** * * @type {Array} * @memberof SodViolationCheckResult */ 'violationContexts'?: Array | null; /** * A list of the SOD policies that were violated. * @type {Array} * @memberof SodViolationCheckResult */ 'violatedPolicies'?: Array | null; } /** * The contextual information of the violated criteria * @export * @interface SodViolationContext */ export interface SodViolationContext { /** * * @type {SodPolicyDto} * @memberof SodViolationContext */ 'policy'?: SodPolicyDto; /** * * @type {SodViolationContextConflictingAccessCriteria} * @memberof SodViolationContext */ 'conflictingAccessCriteria'?: SodViolationContextConflictingAccessCriteria; } /** * An object referencing a completed SOD violation check * @export * @interface SodViolationContextCheckCompleted */ export interface SodViolationContextCheckCompleted { /** * The status of SOD violation check * @type {string} * @memberof SodViolationContextCheckCompleted */ 'state'?: SodViolationContextCheckCompletedStateEnum | null; /** * The id of the Violation check event * @type {string} * @memberof SodViolationContextCheckCompleted */ 'uuid'?: string | null; /** * * @type {SodViolationCheckResult} * @memberof SodViolationContextCheckCompleted */ 'violationCheckResult'?: SodViolationCheckResult; } export const SodViolationContextCheckCompletedStateEnum = { Success: 'SUCCESS', Error: 'ERROR' } as const; export type SodViolationContextCheckCompletedStateEnum = typeof SodViolationContextCheckCompletedStateEnum[keyof typeof SodViolationContextCheckCompletedStateEnum]; /** * The object which contains the left and right hand side of the entitlements that got violated according to the policy. * @export * @interface SodViolationContextConflictingAccessCriteria */ export interface SodViolationContextConflictingAccessCriteria { /** * * @type {SodViolationContextConflictingAccessCriteriaLeftCriteria} * @memberof SodViolationContextConflictingAccessCriteria */ 'leftCriteria'?: SodViolationContextConflictingAccessCriteriaLeftCriteria; /** * * @type {SodViolationContextConflictingAccessCriteriaLeftCriteria} * @memberof SodViolationContextConflictingAccessCriteria */ 'rightCriteria'?: SodViolationContextConflictingAccessCriteriaLeftCriteria; } /** * * @export * @interface SodViolationContextConflictingAccessCriteriaLeftCriteria */ export interface SodViolationContextConflictingAccessCriteriaLeftCriteria { /** * * @type {Array} * @memberof SodViolationContextConflictingAccessCriteriaLeftCriteria */ 'criteriaList'?: Array; } /** * AccessRequestApprovalsApi - axios parameter creator * @export */ export const AccessRequestApprovalsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Use this endpoint to approve an access request approval. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action. * @summary Approve access request approval * @param {string} approvalId Approval ID. * @param {CommentDto} [commentDto] Reviewer\'s comment. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ approveAccessRequestV1: async (approvalId: string, commentDto?: CommentDto, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'approvalId' is not null or undefined assertParamExists('approveAccessRequestV1', 'approvalId', approvalId) const localVarPath = `/access-request-approvals/v1/{approvalId}/approve` .replace(`{${"approvalId"}}`, encodeURIComponent(String(approvalId))); // 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'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(commentDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Use this API to forward an access request approval to a new owner. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action. * @summary Forward access request approval * @param {string} approvalId Approval ID. * @param {ForwardApprovalDto} forwardApprovalDto Information about the forwarded approval. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ forwardAccessRequestV1: async (approvalId: string, forwardApprovalDto: ForwardApprovalDto, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'approvalId' is not null or undefined assertParamExists('forwardAccessRequestV1', 'approvalId', approvalId) // verify required parameter 'forwardApprovalDto' is not null or undefined assertParamExists('forwardAccessRequestV1', 'forwardApprovalDto', forwardApprovalDto) const localVarPath = `/access-request-approvals/v1/{approvalId}/forward` .replace(`{${"approvalId"}}`, encodeURIComponent(String(approvalId))); // 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'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(forwardApprovalDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Use this API to return the number of pending, approved and rejected access requests approvals. See the \"owner-id\" query parameter for authorization information. info. * @summary Get access requests approvals number * @param {string} [ownerId] The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. * @param {string} [fromDate] This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAccessRequestApprovalSummaryV1: async (ownerId?: string, fromDate?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/access-request-approvals/v1/approval-summary`; // 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 (ownerId !== undefined) { localVarQueryParameter['owner-id'] = ownerId; } if (fromDate !== undefined) { localVarQueryParameter['from-date'] = fromDate; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This API endpoint returns the list of approvers for the given access request id. * @summary Access request approvers * @param {string} accessRequestId Access Request ID. * @param {number} [limit] Max number of results to return. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. * @param {boolean} [count] If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAccessRequestApproversV1: async (accessRequestId: string, limit?: number, offset?: number, count?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accessRequestId' is not null or undefined assertParamExists('listAccessRequestApproversV1', 'accessRequestId', accessRequestId) const localVarPath = `/access-request-approvals/v1/{accessRequestId}/approvers` .replace(`{${"accessRequestId"}}`, encodeURIComponent(String(accessRequestId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (count !== undefined) { localVarQueryParameter['count'] = count; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This endpoint returns list of completed approvals. See *owner-id* query parameter below for authorization info. * @summary Completed access request approvals list * @param {string} [ownerId] If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. * @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* * @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: **created, modified** * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listCompletedApprovalsV1: async (ownerId?: string, limit?: number, offset?: number, count?: boolean, filters?: string, sorters?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/access-request-approvals/v1/completed`; // 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 (ownerId !== undefined) { localVarQueryParameter['owner-id'] = ownerId; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (count !== undefined) { localVarQueryParameter['count'] = count; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } if (sorters !== undefined) { localVarQueryParameter['sorters'] = sorters; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This endpoint returns a list of pending approvals. See \"owner-id\" query parameter below for authorization info. * @summary Pending access request approvals list * @param {string} [ownerId] If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. * @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* **created**: *gt, lt, ge, le, eq, in* * @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listPendingApprovalsV1: async (ownerId?: string, limit?: number, offset?: number, count?: boolean, filters?: string, sorters?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/access-request-approvals/v1/pending`; // 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 (ownerId !== undefined) { localVarQueryParameter['owner-id'] = ownerId; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (count !== undefined) { localVarQueryParameter['count'] = count; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } if (sorters !== undefined) { localVarQueryParameter['sorters'] = sorters; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Use this API to reject an access request approval. Only the owner of the approval and admin users are allowed to perform this action. * @summary Reject access request approval * @param {string} approvalId Approval ID. * @param {CommentDto} commentDto Reviewer\'s comment. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ rejectAccessRequestV1: async (approvalId: string, commentDto: CommentDto, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'approvalId' is not null or undefined assertParamExists('rejectAccessRequestV1', 'approvalId', approvalId) // verify required parameter 'commentDto' is not null or undefined assertParamExists('rejectAccessRequestV1', 'commentDto', commentDto) const localVarPath = `/access-request-approvals/v1/{approvalId}/reject` .replace(`{${"approvalId"}}`, encodeURIComponent(String(approvalId))); // 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'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(commentDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * AccessRequestApprovalsApi - functional programming interface * @export */ export const AccessRequestApprovalsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AccessRequestApprovalsApiAxiosParamCreator(configuration) return { /** * Use this endpoint to approve an access request approval. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action. * @summary Approve access request approval * @param {string} approvalId Approval ID. * @param {CommentDto} [commentDto] Reviewer\'s comment. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async approveAccessRequestV1(approvalId: string, commentDto?: CommentDto, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.approveAccessRequestV1(approvalId, commentDto, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccessRequestApprovalsApi.approveAccessRequestV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Use this API to forward an access request approval to a new owner. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action. * @summary Forward access request approval * @param {string} approvalId Approval ID. * @param {ForwardApprovalDto} forwardApprovalDto Information about the forwarded approval. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async forwardAccessRequestV1(approvalId: string, forwardApprovalDto: ForwardApprovalDto, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.forwardAccessRequestV1(approvalId, forwardApprovalDto, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccessRequestApprovalsApi.forwardAccessRequestV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Use this API to return the number of pending, approved and rejected access requests approvals. See the \"owner-id\" query parameter for authorization information. info. * @summary Get access requests approvals number * @param {string} [ownerId] The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. * @param {string} [fromDate] This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getAccessRequestApprovalSummaryV1(ownerId?: string, fromDate?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccessRequestApprovalSummaryV1(ownerId, fromDate, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccessRequestApprovalsApi.getAccessRequestApprovalSummaryV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This API endpoint returns the list of approvers for the given access request id. * @summary Access request approvers * @param {string} accessRequestId Access Request ID. * @param {number} [limit] Max number of results to return. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. * @param {boolean} [count] If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async listAccessRequestApproversV1(accessRequestId: string, limit?: number, offset?: number, count?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAccessRequestApproversV1(accessRequestId, limit, offset, count, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccessRequestApprovalsApi.listAccessRequestApproversV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This endpoint returns list of completed approvals. See *owner-id* query parameter below for authorization info. * @summary Completed access request approvals list * @param {string} [ownerId] If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. * @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* * @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: **created, modified** * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async listCompletedApprovalsV1(ownerId?: string, limit?: number, offset?: number, count?: boolean, filters?: string, sorters?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listCompletedApprovalsV1(ownerId, limit, offset, count, filters, sorters, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccessRequestApprovalsApi.listCompletedApprovalsV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This endpoint returns a list of pending approvals. See \"owner-id\" query parameter below for authorization info. * @summary Pending access request approvals list * @param {string} [ownerId] If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. * @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* **created**: *gt, lt, ge, le, eq, in* * @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async listPendingApprovalsV1(ownerId?: string, limit?: number, offset?: number, count?: boolean, filters?: string, sorters?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listPendingApprovalsV1(ownerId, limit, offset, count, filters, sorters, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccessRequestApprovalsApi.listPendingApprovalsV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Use this API to reject an access request approval. Only the owner of the approval and admin users are allowed to perform this action. * @summary Reject access request approval * @param {string} approvalId Approval ID. * @param {CommentDto} commentDto Reviewer\'s comment. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async rejectAccessRequestV1(approvalId: string, commentDto: CommentDto, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rejectAccessRequestV1(approvalId, commentDto, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccessRequestApprovalsApi.rejectAccessRequestV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AccessRequestApprovalsApi - factory interface * @export */ export const AccessRequestApprovalsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AccessRequestApprovalsApiFp(configuration) return { /** * Use this endpoint to approve an access request approval. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action. * @summary Approve access request approval * @param {AccessRequestApprovalsApiApproveAccessRequestV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ approveAccessRequestV1(requestParameters: AccessRequestApprovalsApiApproveAccessRequestV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.approveAccessRequestV1(requestParameters.approvalId, requestParameters.commentDto, axiosOptions).then((request) => request(axios, basePath)); }, /** * Use this API to forward an access request approval to a new owner. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action. * @summary Forward access request approval * @param {AccessRequestApprovalsApiForwardAccessRequestV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ forwardAccessRequestV1(requestParameters: AccessRequestApprovalsApiForwardAccessRequestV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.forwardAccessRequestV1(requestParameters.approvalId, requestParameters.forwardApprovalDto, axiosOptions).then((request) => request(axios, basePath)); }, /** * Use this API to return the number of pending, approved and rejected access requests approvals. See the \"owner-id\" query parameter for authorization information. info. * @summary Get access requests approvals number * @param {AccessRequestApprovalsApiGetAccessRequestApprovalSummaryV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAccessRequestApprovalSummaryV1(requestParameters: AccessRequestApprovalsApiGetAccessRequestApprovalSummaryV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccessRequestApprovalSummaryV1(requestParameters.ownerId, requestParameters.fromDate, axiosOptions).then((request) => request(axios, basePath)); }, /** * This API endpoint returns the list of approvers for the given access request id. * @summary Access request approvers * @param {AccessRequestApprovalsApiListAccessRequestApproversV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listAccessRequestApproversV1(requestParameters: AccessRequestApprovalsApiListAccessRequestApproversV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listAccessRequestApproversV1(requestParameters.accessRequestId, requestParameters.limit, requestParameters.offset, requestParameters.count, axiosOptions).then((request) => request(axios, basePath)); }, /** * This endpoint returns list of completed approvals. See *owner-id* query parameter below for authorization info. * @summary Completed access request approvals list * @param {AccessRequestApprovalsApiListCompletedApprovalsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listCompletedApprovalsV1(requestParameters: AccessRequestApprovalsApiListCompletedApprovalsV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listCompletedApprovalsV1(requestParameters.ownerId, requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, axiosOptions).then((request) => request(axios, basePath)); }, /** * This endpoint returns a list of pending approvals. See \"owner-id\" query parameter below for authorization info. * @summary Pending access request approvals list * @param {AccessRequestApprovalsApiListPendingApprovalsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listPendingApprovalsV1(requestParameters: AccessRequestApprovalsApiListPendingApprovalsV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listPendingApprovalsV1(requestParameters.ownerId, requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, axiosOptions).then((request) => request(axios, basePath)); }, /** * Use this API to reject an access request approval. Only the owner of the approval and admin users are allowed to perform this action. * @summary Reject access request approval * @param {AccessRequestApprovalsApiRejectAccessRequestV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ rejectAccessRequestV1(requestParameters: AccessRequestApprovalsApiRejectAccessRequestV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.rejectAccessRequestV1(requestParameters.approvalId, requestParameters.commentDto, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for approveAccessRequestV1 operation in AccessRequestApprovalsApi. * @export * @interface AccessRequestApprovalsApiApproveAccessRequestV1Request */ export interface AccessRequestApprovalsApiApproveAccessRequestV1Request { /** * Approval ID. * @type {string} * @memberof AccessRequestApprovalsApiApproveAccessRequestV1 */ readonly approvalId: string /** * Reviewer\'s comment. * @type {CommentDto} * @memberof AccessRequestApprovalsApiApproveAccessRequestV1 */ readonly commentDto?: CommentDto } /** * Request parameters for forwardAccessRequestV1 operation in AccessRequestApprovalsApi. * @export * @interface AccessRequestApprovalsApiForwardAccessRequestV1Request */ export interface AccessRequestApprovalsApiForwardAccessRequestV1Request { /** * Approval ID. * @type {string} * @memberof AccessRequestApprovalsApiForwardAccessRequestV1 */ readonly approvalId: string /** * Information about the forwarded approval. * @type {ForwardApprovalDto} * @memberof AccessRequestApprovalsApiForwardAccessRequestV1 */ readonly forwardApprovalDto: ForwardApprovalDto } /** * Request parameters for getAccessRequestApprovalSummaryV1 operation in AccessRequestApprovalsApi. * @export * @interface AccessRequestApprovalsApiGetAccessRequestApprovalSummaryV1Request */ export interface AccessRequestApprovalsApiGetAccessRequestApprovalSummaryV1Request { /** * The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. * @type {string} * @memberof AccessRequestApprovalsApiGetAccessRequestApprovalSummaryV1 */ readonly ownerId?: string /** * This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. * @type {string} * @memberof AccessRequestApprovalsApiGetAccessRequestApprovalSummaryV1 */ readonly fromDate?: string } /** * Request parameters for listAccessRequestApproversV1 operation in AccessRequestApprovalsApi. * @export * @interface AccessRequestApprovalsApiListAccessRequestApproversV1Request */ export interface AccessRequestApprovalsApiListAccessRequestApproversV1Request { /** * Access Request ID. * @type {string} * @memberof AccessRequestApprovalsApiListAccessRequestApproversV1 */ readonly accessRequestId: string /** * Max number of results to return. * @type {number} * @memberof AccessRequestApprovalsApiListAccessRequestApproversV1 */ readonly limit?: number /** * Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. * @type {number} * @memberof AccessRequestApprovalsApiListAccessRequestApproversV1 */ readonly offset?: number /** * If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. * @type {boolean} * @memberof AccessRequestApprovalsApiListAccessRequestApproversV1 */ readonly count?: boolean } /** * Request parameters for listCompletedApprovalsV1 operation in AccessRequestApprovalsApi. * @export * @interface AccessRequestApprovalsApiListCompletedApprovalsV1Request */ export interface AccessRequestApprovalsApiListCompletedApprovalsV1Request { /** * If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. * @type {string} * @memberof AccessRequestApprovalsApiListCompletedApprovalsV1 */ readonly ownerId?: 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 AccessRequestApprovalsApiListCompletedApprovalsV1 */ 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 AccessRequestApprovalsApiListCompletedApprovalsV1 */ readonly offset?: number /** * If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {boolean} * @memberof AccessRequestApprovalsApiListCompletedApprovalsV1 */ readonly count?: boolean /** * Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* * @type {string} * @memberof AccessRequestApprovalsApiListCompletedApprovalsV1 */ readonly filters?: string /** * Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** * @type {string} * @memberof AccessRequestApprovalsApiListCompletedApprovalsV1 */ readonly sorters?: string } /** * Request parameters for listPendingApprovalsV1 operation in AccessRequestApprovalsApi. * @export * @interface AccessRequestApprovalsApiListPendingApprovalsV1Request */ export interface AccessRequestApprovalsApiListPendingApprovalsV1Request { /** * If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. * @type {string} * @memberof AccessRequestApprovalsApiListPendingApprovalsV1 */ readonly ownerId?: 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 AccessRequestApprovalsApiListPendingApprovalsV1 */ 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 AccessRequestApprovalsApiListPendingApprovalsV1 */ readonly offset?: number /** * If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {boolean} * @memberof AccessRequestApprovalsApiListPendingApprovalsV1 */ readonly count?: boolean /** * Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* **created**: *gt, lt, ge, le, eq, in* * @type {string} * @memberof AccessRequestApprovalsApiListPendingApprovalsV1 */ readonly filters?: string /** * Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** * @type {string} * @memberof AccessRequestApprovalsApiListPendingApprovalsV1 */ readonly sorters?: string } /** * Request parameters for rejectAccessRequestV1 operation in AccessRequestApprovalsApi. * @export * @interface AccessRequestApprovalsApiRejectAccessRequestV1Request */ export interface AccessRequestApprovalsApiRejectAccessRequestV1Request { /** * Approval ID. * @type {string} * @memberof AccessRequestApprovalsApiRejectAccessRequestV1 */ readonly approvalId: string /** * Reviewer\'s comment. * @type {CommentDto} * @memberof AccessRequestApprovalsApiRejectAccessRequestV1 */ readonly commentDto: CommentDto } /** * AccessRequestApprovalsApi - object-oriented interface * @export * @class AccessRequestApprovalsApi * @extends {BaseAPI} */ export class AccessRequestApprovalsApi extends BaseAPI { /** * Use this endpoint to approve an access request approval. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action. * @summary Approve access request approval * @param {AccessRequestApprovalsApiApproveAccessRequestV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AccessRequestApprovalsApi */ public approveAccessRequestV1(requestParameters: AccessRequestApprovalsApiApproveAccessRequestV1Request, axiosOptions?: RawAxiosRequestConfig) { return AccessRequestApprovalsApiFp(this.configuration).approveAccessRequestV1(requestParameters.approvalId, requestParameters.commentDto, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Use this API to forward an access request approval to a new owner. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action. * @summary Forward access request approval * @param {AccessRequestApprovalsApiForwardAccessRequestV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AccessRequestApprovalsApi */ public forwardAccessRequestV1(requestParameters: AccessRequestApprovalsApiForwardAccessRequestV1Request, axiosOptions?: RawAxiosRequestConfig) { return AccessRequestApprovalsApiFp(this.configuration).forwardAccessRequestV1(requestParameters.approvalId, requestParameters.forwardApprovalDto, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Use this API to return the number of pending, approved and rejected access requests approvals. See the \"owner-id\" query parameter for authorization information. info. * @summary Get access requests approvals number * @param {AccessRequestApprovalsApiGetAccessRequestApprovalSummaryV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AccessRequestApprovalsApi */ public getAccessRequestApprovalSummaryV1(requestParameters: AccessRequestApprovalsApiGetAccessRequestApprovalSummaryV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return AccessRequestApprovalsApiFp(this.configuration).getAccessRequestApprovalSummaryV1(requestParameters.ownerId, requestParameters.fromDate, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This API endpoint returns the list of approvers for the given access request id. * @summary Access request approvers * @param {AccessRequestApprovalsApiListAccessRequestApproversV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AccessRequestApprovalsApi */ public listAccessRequestApproversV1(requestParameters: AccessRequestApprovalsApiListAccessRequestApproversV1Request, axiosOptions?: RawAxiosRequestConfig) { return AccessRequestApprovalsApiFp(this.configuration).listAccessRequestApproversV1(requestParameters.accessRequestId, requestParameters.limit, requestParameters.offset, requestParameters.count, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This endpoint returns list of completed approvals. See *owner-id* query parameter below for authorization info. * @summary Completed access request approvals list * @param {AccessRequestApprovalsApiListCompletedApprovalsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AccessRequestApprovalsApi */ public listCompletedApprovalsV1(requestParameters: AccessRequestApprovalsApiListCompletedApprovalsV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return AccessRequestApprovalsApiFp(this.configuration).listCompletedApprovalsV1(requestParameters.ownerId, requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This endpoint returns a list of pending approvals. See \"owner-id\" query parameter below for authorization info. * @summary Pending access request approvals list * @param {AccessRequestApprovalsApiListPendingApprovalsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AccessRequestApprovalsApi */ public listPendingApprovalsV1(requestParameters: AccessRequestApprovalsApiListPendingApprovalsV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return AccessRequestApprovalsApiFp(this.configuration).listPendingApprovalsV1(requestParameters.ownerId, requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Use this API to reject an access request approval. Only the owner of the approval and admin users are allowed to perform this action. * @summary Reject access request approval * @param {AccessRequestApprovalsApiRejectAccessRequestV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AccessRequestApprovalsApi */ public rejectAccessRequestV1(requestParameters: AccessRequestApprovalsApiRejectAccessRequestV1Request, axiosOptions?: RawAxiosRequestConfig) { return AccessRequestApprovalsApiFp(this.configuration).rejectAccessRequestV1(requestParameters.approvalId, requestParameters.commentDto, axiosOptions).then((request) => request(this.axios, this.basePath)); } }