@sailpoint/api-client 2.2.38 → 2.2.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/access_requests/api.d.ts +12 -12
  2. package/dist/access_requests/api.js +9 -9
  3. package/dist/access_requests/api.js.map +1 -1
  4. package/dist/certifications/api.d.ts +3 -3
  5. package/dist/certifications/api.js +2 -2
  6. package/dist/certifications/api.js.map +1 -1
  7. package/dist/custom_forms/api.d.ts +20 -8
  8. package/dist/custom_forms/api.js +18 -9
  9. package/dist/custom_forms/api.js.map +1 -1
  10. package/dist/esm/access_requests/api.js +9 -9
  11. package/dist/esm/certifications/api.js +2 -2
  12. package/dist/esm/custom_forms/api.js +18 -9
  13. package/dist/esm/gov_certification/api.js +5565 -0
  14. package/dist/esm/gov_certification/base.js +83 -0
  15. package/dist/esm/gov_certification/common.js +287 -0
  16. package/dist/esm/gov_certification/configuration.js +42 -0
  17. package/dist/esm/gov_certification/index.js +15 -0
  18. package/dist/esm/index.js +6 -0
  19. package/dist/esm/jit_activation_convert/api.js +226 -0
  20. package/dist/esm/jit_activation_convert/base.js +83 -0
  21. package/dist/esm/jit_activation_convert/common.js +287 -0
  22. package/dist/esm/jit_activation_convert/configuration.js +42 -0
  23. package/dist/esm/jit_activation_convert/index.js +15 -0
  24. package/dist/esm/nerm/common.js +2 -2
  25. package/dist/esm/nermv2025/common.js +2 -2
  26. package/dist/esm/privilege_criteria/api.js +2 -2
  27. package/dist/esm/sod_controls/api.js +25 -65
  28. package/dist/esm/sod_violations/api.js +25 -65
  29. package/dist/esm/sources/api.js +88 -0
  30. package/dist/gov_certification/api.d.ts +7599 -0
  31. package/dist/gov_certification/api.js +5576 -0
  32. package/dist/gov_certification/api.js.map +1 -0
  33. package/dist/gov_certification/base.d.ts +66 -0
  34. package/dist/gov_certification/base.js +90 -0
  35. package/dist/gov_certification/base.js.map +1 -0
  36. package/dist/gov_certification/common.d.ts +65 -0
  37. package/dist/gov_certification/common.js +300 -0
  38. package/dist/gov_certification/common.js.map +1 -0
  39. package/dist/gov_certification/configuration.d.ts +91 -0
  40. package/dist/gov_certification/configuration.js +46 -0
  41. package/dist/gov_certification/configuration.js.map +1 -0
  42. package/dist/gov_certification/index.d.ts +13 -0
  43. package/dist/gov_certification/index.js +32 -0
  44. package/dist/gov_certification/index.js.map +1 -0
  45. package/dist/index.d.ts +6 -0
  46. package/dist/index.js +240 -234
  47. package/dist/index.js.map +1 -1
  48. package/dist/jit_activation_convert/api.d.ts +241 -0
  49. package/dist/jit_activation_convert/api.js +236 -0
  50. package/dist/jit_activation_convert/api.js.map +1 -0
  51. package/dist/jit_activation_convert/base.d.ts +66 -0
  52. package/dist/jit_activation_convert/base.js +90 -0
  53. package/dist/jit_activation_convert/base.js.map +1 -0
  54. package/dist/jit_activation_convert/common.d.ts +65 -0
  55. package/dist/jit_activation_convert/common.js +300 -0
  56. package/dist/jit_activation_convert/common.js.map +1 -0
  57. package/dist/jit_activation_convert/configuration.d.ts +91 -0
  58. package/dist/jit_activation_convert/configuration.js +46 -0
  59. package/dist/jit_activation_convert/configuration.js.map +1 -0
  60. package/dist/jit_activation_convert/index.d.ts +13 -0
  61. package/dist/jit_activation_convert/index.js +32 -0
  62. package/dist/jit_activation_convert/index.js.map +1 -0
  63. package/dist/nerm/common.js +2 -2
  64. package/dist/nerm/common.js.map +1 -1
  65. package/dist/nermv2025/common.js +2 -2
  66. package/dist/nermv2025/common.js.map +1 -1
  67. package/dist/privilege_criteria/api.d.ts +3 -3
  68. package/dist/privilege_criteria/api.js +2 -2
  69. package/dist/privilege_criteria/api.js.map +1 -1
  70. package/dist/sod_controls/api.d.ts +10 -50
  71. package/dist/sod_controls/api.js +25 -65
  72. package/dist/sod_controls/api.js.map +1 -1
  73. package/dist/sod_violations/api.d.ts +10 -50
  74. package/dist/sod_violations/api.js +25 -65
  75. package/dist/sod_violations/api.js.map +1 -1
  76. package/dist/sources/api.d.ts +87 -0
  77. package/dist/sources/api.js +88 -0
  78. package/dist/sources/api.js.map +1 -1
  79. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../jit_activation_convert/api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKH,gDAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,mCAA4N;AAE5N,aAAa;AACb,+BAAmG;AAsBtF,QAAA,iDAAiD,GAAG;IAC7D,GAAG,EAAE,KAAK;IACV,QAAQ,EAAE,UAAU;CACd,CAAC;AA8BE,QAAA,4CAA4C,GAAG;IACxD,GAAG,EAAE,KAAK;IACV,QAAQ,EAAE,UAAU;CACd,CAAC;AA8DX;;;;GAIG;AAEU,QAAA,YAAY,GAAG;IACxB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACZ,CAAC;AAgCX;;;GAGG;AACI,IAAM,wCAAwC,GAAG,UAAU,aAA6B;IAAvC,iBA+CvD;IA9CG,OAAO;QACH;;;;;;;WAOG;QACH,sCAAsC,EAAE,UAAO,mCAAwE,EAAE,sBAA+B,EAAE,YAAwC;YAAxC,6BAAA,EAAA,iBAAwC;;;;oBAC9L,2FAA2F;oBAC3F,IAAA,0BAAiB,EAAC,wCAAwC,EAAE,qCAAqC,EAAE,mCAAmC,CAAC,CAAA;oBACvI,IAAI,sBAAsB,KAAK,SAAS,EAAE;wBACtC,sBAAsB,GAAG,MAAM,CAAC;qBACnC;oBAEK,YAAY,GAAG,oCAAoC,CAAC;oBAEpD,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;oBAE7D,IAAI,aAAa,EAAE;wBACf,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;qBAC3C;oBAEK,sBAAsB,uBAAK,MAAM,EAAE,MAAM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,KAAK,EAAE,KAAI,CAAC,QAAQ,CAAC,EAAlC,CAAkC,CAAC,CAAC;IACrQ,CAAC;IACL,8BAAC;AAAD,CAAC,AAZD,CAA6C,cAAO,GAYnD;AAZY,0DAAuB","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Identity Security Cloud API - JIT Activation Convert\n * 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.\n *\n * The version of the OpenAPI document: v1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';\nimport type { RequestArgs } from './base';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';\n\n/**\n * \n * @export\n * @interface ConvertEntitlementConnectionRequest\n */\nexport interface ConvertEntitlementConnectionRequest {\n /**\n * The ID of the entitlement connection to convert.\n * @type {string}\n * @memberof ConvertEntitlementConnectionRequest\n */\n 'connectionId': string;\n /**\n * The assignment type to convert the entitlement connection to.\n * @type {string}\n * @memberof ConvertEntitlementConnectionRequest\n */\n 'targetType': ConvertEntitlementConnectionRequestTargetTypeEnum;\n}\n\nexport const ConvertEntitlementConnectionRequestTargetTypeEnum = {\n Jit: 'JIT',\n Standing: 'STANDING'\n} as const;\n\nexport type ConvertEntitlementConnectionRequestTargetTypeEnum = typeof ConvertEntitlementConnectionRequestTargetTypeEnum[keyof typeof ConvertEntitlementConnectionRequestTargetTypeEnum];\n\n/**\n * \n * @export\n * @interface ConvertEntitlementConnectionResponse\n */\nexport interface ConvertEntitlementConnectionResponse {\n /**\n * The ID of the converted entitlement connection.\n * @type {string}\n * @memberof ConvertEntitlementConnectionResponse\n */\n 'connectionId': string;\n /**\n * The current assignment type of the entitlement connection, not the target type.\n * @type {string}\n * @memberof ConvertEntitlementConnectionResponse\n */\n 'type': ConvertEntitlementConnectionResponseTypeEnum;\n /**\n * The current state of the entitlement connection. Conversion starts as PENDING.\n * @type {string}\n * @memberof ConvertEntitlementConnectionResponse\n */\n 'state': string;\n}\n\nexport const ConvertEntitlementConnectionResponseTypeEnum = {\n Jit: 'JIT',\n Standing: 'STANDING'\n} as const;\n\nexport type ConvertEntitlementConnectionResponseTypeEnum = typeof ConvertEntitlementConnectionResponseTypeEnum[keyof typeof ConvertEntitlementConnectionResponseTypeEnum];\n\n/**\n * \n * @export\n * @interface ErrorMessageDto\n */\nexport interface ErrorMessageDto {\n /**\n * The locale for the message text, a BCP 47 language tag.\n * @type {string}\n * @memberof ErrorMessageDto\n */\n 'locale'?: string | null;\n /**\n * \n * @type {LocaleOrigin}\n * @memberof ErrorMessageDto\n */\n 'localeOrigin'?: LocaleOrigin | null;\n /**\n * Actual text of the error message in the indicated locale.\n * @type {string}\n * @memberof ErrorMessageDto\n */\n 'text'?: string;\n}\n\n\n/**\n * \n * @export\n * @interface ErrorResponseDto\n */\nexport interface ErrorResponseDto {\n /**\n * Fine-grained error code providing more detail of the error.\n * @type {string}\n * @memberof ErrorResponseDto\n */\n 'detailCode'?: string;\n /**\n * Unique tracking id for the error.\n * @type {string}\n * @memberof ErrorResponseDto\n */\n 'trackingId'?: string;\n /**\n * Generic localized reason for error\n * @type {Array<ErrorMessageDto>}\n * @memberof ErrorResponseDto\n */\n 'messages'?: Array<ErrorMessageDto>;\n /**\n * Plain-text descriptive reasons to provide additional detail to the text provided in the messages field\n * @type {Array<ErrorMessageDto>}\n * @memberof ErrorResponseDto\n */\n 'causes'?: Array<ErrorMessageDto>;\n}\n/**\n * 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.\n * @export\n * @enum {string}\n */\n\nexport const LocaleOrigin = {\n Default: 'DEFAULT',\n Request: 'REQUEST'\n} as const;\n\nexport type LocaleOrigin = typeof LocaleOrigin[keyof typeof LocaleOrigin];\n\n\n/**\n * \n * @export\n * @interface StartEntitlementConnectionConversionV1401Response\n */\nexport interface StartEntitlementConnectionConversionV1401Response {\n /**\n * A message describing the error\n * @type {any}\n * @memberof StartEntitlementConnectionConversionV1401Response\n */\n 'error'?: any;\n}\n/**\n * \n * @export\n * @interface StartEntitlementConnectionConversionV1429Response\n */\nexport interface StartEntitlementConnectionConversionV1429Response {\n /**\n * A message describing the error\n * @type {any}\n * @memberof StartEntitlementConnectionConversionV1429Response\n */\n 'message'?: any;\n}\n\n/**\n * JITActivationConvertApi - axios parameter creator\n * @export\n */\nexport const JITActivationConvertApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Initiates an asynchronous workflow to convert the assignment type of an entitlement connection between `STANDING` and `JIT` (Just-In-Time Privileged). The response is returned with HTTP 202 Accepted while the conversion workflow initializes. \n * @summary Convert entitlement connection assignment type\n * @param {ConvertEntitlementConnectionRequest} convertEntitlementConnectionRequest \n * @param {string} [xSailPointExperimental] Use this header to enable this experimental API.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n startEntitlementConnectionConversionV1: async (convertEntitlementConnectionRequest: ConvertEntitlementConnectionRequest, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'convertEntitlementConnectionRequest' is not null or undefined\n assertParamExists('startEntitlementConnectionConversionV1', 'convertEntitlementConnectionRequest', convertEntitlementConnectionRequest)\n if (xSailPointExperimental === undefined) {\n xSailPointExperimental = 'true';\n }\n \n const localVarPath = `/convert-entitlement-connection/v1`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n if (xSailPointExperimental != null) {\n localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);\n }\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(convertEntitlementConnectionRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n axiosOptions: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * JITActivationConvertApi - functional programming interface\n * @export\n */\nexport const JITActivationConvertApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = JITActivationConvertApiAxiosParamCreator(configuration)\n return {\n /**\n * Initiates an asynchronous workflow to convert the assignment type of an entitlement connection between `STANDING` and `JIT` (Just-In-Time Privileged). The response is returned with HTTP 202 Accepted while the conversion workflow initializes. \n * @summary Convert entitlement connection assignment type\n * @param {ConvertEntitlementConnectionRequest} convertEntitlementConnectionRequest \n * @param {string} [xSailPointExperimental] Use this header to enable this experimental API.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n async startEntitlementConnectionConversionV1(convertEntitlementConnectionRequest: ConvertEntitlementConnectionRequest, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConvertEntitlementConnectionResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.startEntitlementConnectionConversionV1(convertEntitlementConnectionRequest, xSailPointExperimental, axiosOptions);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['JITActivationConvertApi.startEntitlementConnectionConversionV1']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * JITActivationConvertApi - factory interface\n * @export\n */\nexport const JITActivationConvertApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = JITActivationConvertApiFp(configuration)\n return {\n /**\n * Initiates an asynchronous workflow to convert the assignment type of an entitlement connection between `STANDING` and `JIT` (Just-In-Time Privileged). The response is returned with HTTP 202 Accepted while the conversion workflow initializes. \n * @summary Convert entitlement connection assignment type\n * @param {JITActivationConvertApiStartEntitlementConnectionConversionV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n startEntitlementConnectionConversionV1(requestParameters: JITActivationConvertApiStartEntitlementConnectionConversionV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<ConvertEntitlementConnectionResponse> {\n return localVarFp.startEntitlementConnectionConversionV1(requestParameters.convertEntitlementConnectionRequest, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for startEntitlementConnectionConversionV1 operation in JITActivationConvertApi.\n * @export\n * @interface JITActivationConvertApiStartEntitlementConnectionConversionV1Request\n */\nexport interface JITActivationConvertApiStartEntitlementConnectionConversionV1Request {\n /**\n * \n * @type {ConvertEntitlementConnectionRequest}\n * @memberof JITActivationConvertApiStartEntitlementConnectionConversionV1\n */\n readonly convertEntitlementConnectionRequest: ConvertEntitlementConnectionRequest\n\n /**\n * Use this header to enable this experimental API.\n * @type {string}\n * @memberof JITActivationConvertApiStartEntitlementConnectionConversionV1\n */\n readonly xSailPointExperimental?: string\n}\n\n/**\n * JITActivationConvertApi - object-oriented interface\n * @export\n * @class JITActivationConvertApi\n * @extends {BaseAPI}\n */\nexport class JITActivationConvertApi extends BaseAPI {\n /**\n * Initiates an asynchronous workflow to convert the assignment type of an entitlement connection between `STANDING` and `JIT` (Just-In-Time Privileged). The response is returned with HTTP 202 Accepted while the conversion workflow initializes. \n * @summary Convert entitlement connection assignment type\n * @param {JITActivationConvertApiStartEntitlementConnectionConversionV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n * @memberof JITActivationConvertApi\n */\n public startEntitlementConnectionConversionV1(requestParameters: JITActivationConvertApiStartEntitlementConnectionConversionV1Request, axiosOptions?: RawAxiosRequestConfig) {\n return JITActivationConvertApiFp(this.configuration).startEntitlementConnectionConversionV1(requestParameters.convertEntitlementConnectionRequest, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n"]}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Identity Security Cloud API - JIT Activation Convert
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface RequestArgs
29
+ */
30
+ export interface RequestArgs {
31
+ url: string;
32
+ axiosOptions: RawAxiosRequestConfig;
33
+ }
34
+ /**
35
+ *
36
+ * @export
37
+ * @class BaseAPI
38
+ */
39
+ export declare class BaseAPI {
40
+ protected basePath: string;
41
+ protected axios: AxiosInstance;
42
+ protected configuration: Configuration | undefined;
43
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export declare class RequiredError extends Error {
52
+ field: string;
53
+ constructor(field: string, msg?: string);
54
+ }
55
+ interface ServerMap {
56
+ [key: string]: {
57
+ url: string;
58
+ description: string;
59
+ }[];
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const operationServerMap: ServerMap;
66
+ export {};
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Identity Security Cloud API - JIT Activation Convert
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __importDefault = (this && this.__importDefault) || function (mod) {
31
+ return (mod && mod.__esModule) ? mod : { "default": mod };
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
35
+ var axios_1 = __importDefault(require("axios"));
36
+ exports.BASE_PATH = "https://sailpoint.api.identitynow.com".replace(/\/+$/, "");
37
+ /**
38
+ *
39
+ * @export
40
+ */
41
+ exports.COLLECTION_FORMATS = {
42
+ csv: ",",
43
+ ssv: " ",
44
+ tsv: "\t",
45
+ pipes: "|",
46
+ };
47
+ /**
48
+ *
49
+ * @export
50
+ * @class BaseAPI
51
+ */
52
+ var BaseAPI = /** @class */ (function () {
53
+ function BaseAPI(configuration, basePath, axios) {
54
+ if (basePath === void 0) { basePath = exports.BASE_PATH; }
55
+ if (axios === void 0) { axios = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.axiosInstance) !== null && _a !== void 0 ? _a : axios_1.default; }
56
+ var _a;
57
+ this.basePath = basePath;
58
+ this.axios = axios;
59
+ if (configuration) {
60
+ this.configuration = configuration;
61
+ this.basePath = configuration.basePath || this.basePath;
62
+ }
63
+ }
64
+ return BaseAPI;
65
+ }());
66
+ exports.BaseAPI = BaseAPI;
67
+ ;
68
+ /**
69
+ *
70
+ * @export
71
+ * @class RequiredError
72
+ * @extends {Error}
73
+ */
74
+ var RequiredError = /** @class */ (function (_super) {
75
+ __extends(RequiredError, _super);
76
+ function RequiredError(field, msg) {
77
+ var _this = _super.call(this, msg) || this;
78
+ _this.field = field;
79
+ _this.name = "RequiredError";
80
+ return _this;
81
+ }
82
+ return RequiredError;
83
+ }(Error));
84
+ exports.RequiredError = RequiredError;
85
+ /**
86
+ *
87
+ * @export
88
+ */
89
+ exports.operationServerMap = {};
90
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../jit_activation_convert/base.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;AAOH,gDAAgC;AAEnB,QAAA,SAAS,GAAG,uCAAuC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAErF;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAYF;;;;GAIG;AACH;IAGI,iBAAY,aAA6B,EAAY,QAA4B,EAAY,KAAkE;QAA1G,yBAAA,EAAA,WAAmB,iBAAS;QAAY,sBAAA,EAAA,cAAuB,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,aAAa,mCAAI,eAAW;;QAA1G,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6D;QAC3J,IAAI,aAAa,EAAE;YACf,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC;SAC3D;IACL,CAAC;IACL,cAAC;AAAD,CAAC,AATD,IASC;AATY,0BAAO;AASnB,CAAC;AAEF;;;;;GAKG;AACH;IAAmC,iCAAK;IACpC,uBAAmB,KAAa,EAAE,GAAY;QAA9C,YACI,kBAAM,GAAG,CAAC,SAEb;QAHkB,WAAK,GAAL,KAAK,CAAQ;QAE5B,KAAI,CAAC,IAAI,GAAG,eAAe,CAAA;;IAC/B,CAAC;IACL,oBAAC;AAAD,CAAC,AALD,CAAmC,KAAK,GAKvC;AALY,sCAAa;AAc1B;;;GAGG;AACU,QAAA,kBAAkB,GAAc,EAC5C,CAAA","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Identity Security Cloud API - JIT Activation Convert\n * 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.\n *\n * The version of the OpenAPI document: v1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sailpoint.api.identitynow.com\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n axiosOptions: RawAxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = configuration?.axiosInstance ?? globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath || this.basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\n/**\n *\n * @export\n */\nexport const operationServerMap: ServerMap = {\n}\n"]}
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Identity Security Cloud API - JIT Activation Convert
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from "../configuration";
13
+ import type { RequestArgs } from "./base";
14
+ import type { AxiosInstance, AxiosResponse } from 'axios';
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const DUMMY_BASE_URL = "https://example.com";
20
+ /**
21
+ *
22
+ * @throws {RequiredError}
23
+ * @export
24
+ */
25
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
+ /**
27
+ *
28
+ * @export
29
+ */
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
+ /**
32
+ *
33
+ * @export
34
+ */
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
+ /**
37
+ *
38
+ * @export
39
+ */
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
+ /**
42
+ *
43
+ * @export
44
+ */
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
+ /**
47
+ *
48
+ * @export
49
+ */
50
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
+ /**
52
+ *
53
+ * @export
54
+ */
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
+ /**
57
+ *
58
+ * @export
59
+ */
60
+ export declare const toPathString: (url: URL) => string;
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -0,0 +1,300 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Identity Security Cloud API - JIT Activation Convert
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
26
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
27
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
28
+ return new (P || (P = Promise))(function (resolve, reject) {
29
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
30
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
31
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
32
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
33
+ });
34
+ };
35
+ var __generator = (this && this.__generator) || function (thisArg, body) {
36
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
37
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
38
+ function verb(n) { return function (v) { return step([n, v]); }; }
39
+ function step(op) {
40
+ if (f) throw new TypeError("Generator is already executing.");
41
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
42
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
43
+ if (y = 0, t) op = [op[0] & 2, t.value];
44
+ switch (op[0]) {
45
+ case 0: case 1: t = op; break;
46
+ case 4: _.label++; return { value: op[1], done: false };
47
+ case 5: _.label++; y = op[1]; op = [0]; continue;
48
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
49
+ default:
50
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
51
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
52
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
53
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
54
+ if (t[2]) _.ops.pop();
55
+ _.trys.pop(); continue;
56
+ }
57
+ op = body.call(thisArg, _);
58
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
59
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
60
+ }
61
+ };
62
+ Object.defineProperty(exports, "__esModule", { value: true });
63
+ exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
64
+ var base_1 = require("./base");
65
+ /**
66
+ *
67
+ * @export
68
+ */
69
+ exports.DUMMY_BASE_URL = 'https://example.com';
70
+ /**
71
+ *
72
+ * @throws {RequiredError}
73
+ * @export
74
+ */
75
+ var assertParamExists = function (functionName, paramName, paramValue) {
76
+ if (paramValue === null || paramValue === undefined) {
77
+ throw new base_1.RequiredError(paramName, "Required parameter ".concat(paramName, " was null or undefined when calling ").concat(functionName, "."));
78
+ }
79
+ };
80
+ exports.assertParamExists = assertParamExists;
81
+ /**
82
+ *
83
+ * @export
84
+ */
85
+ var setApiKeyToObject = function (object, keyParamName, configuration) {
86
+ return __awaiter(this, void 0, void 0, function () {
87
+ var localVarApiKeyValue, _a;
88
+ return __generator(this, function (_b) {
89
+ switch (_b.label) {
90
+ case 0:
91
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
92
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
93
+ return [4 /*yield*/, configuration.apiKey(keyParamName)];
94
+ case 1:
95
+ _a = _b.sent();
96
+ return [3 /*break*/, 4];
97
+ case 2: return [4 /*yield*/, configuration.apiKey];
98
+ case 3:
99
+ _a = _b.sent();
100
+ _b.label = 4;
101
+ case 4:
102
+ localVarApiKeyValue = _a;
103
+ object[keyParamName] = localVarApiKeyValue;
104
+ _b.label = 5;
105
+ case 5: return [2 /*return*/];
106
+ }
107
+ });
108
+ });
109
+ };
110
+ exports.setApiKeyToObject = setApiKeyToObject;
111
+ /**
112
+ *
113
+ * @export
114
+ */
115
+ var setBasicAuthToObject = function (object, configuration) {
116
+ if (configuration && (configuration.username || configuration.password)) {
117
+ object["auth"] = { username: configuration.username, password: configuration.password };
118
+ }
119
+ };
120
+ exports.setBasicAuthToObject = setBasicAuthToObject;
121
+ /**
122
+ *
123
+ * @export
124
+ */
125
+ var setBearerAuthToObject = function (object, configuration) {
126
+ return __awaiter(this, void 0, void 0, function () {
127
+ var accessToken, _a;
128
+ return __generator(this, function (_b) {
129
+ switch (_b.label) {
130
+ case 0:
131
+ if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
132
+ if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
133
+ return [4 /*yield*/, configuration.accessToken()];
134
+ case 1:
135
+ _a = _b.sent();
136
+ return [3 /*break*/, 4];
137
+ case 2: return [4 /*yield*/, configuration.accessToken];
138
+ case 3:
139
+ _a = _b.sent();
140
+ _b.label = 4;
141
+ case 4:
142
+ accessToken = _a;
143
+ object["Authorization"] = "Bearer " + accessToken;
144
+ _b.label = 5;
145
+ case 5: return [2 /*return*/];
146
+ }
147
+ });
148
+ });
149
+ };
150
+ exports.setBearerAuthToObject = setBearerAuthToObject;
151
+ /**
152
+ *
153
+ * @export
154
+ */
155
+ var setOAuthToObject = function (object, name, scopes, configuration) {
156
+ return __awaiter(this, void 0, void 0, function () {
157
+ var localVarAccessTokenValue, _a;
158
+ return __generator(this, function (_b) {
159
+ switch (_b.label) {
160
+ case 0:
161
+ if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
162
+ if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
163
+ return [4 /*yield*/, configuration.accessToken(name, scopes)];
164
+ case 1:
165
+ _a = _b.sent();
166
+ return [3 /*break*/, 4];
167
+ case 2: return [4 /*yield*/, configuration.accessToken];
168
+ case 3:
169
+ _a = _b.sent();
170
+ _b.label = 4;
171
+ case 4:
172
+ localVarAccessTokenValue = _a;
173
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
174
+ _b.label = 5;
175
+ case 5: return [2 /*return*/];
176
+ }
177
+ });
178
+ });
179
+ };
180
+ exports.setOAuthToObject = setOAuthToObject;
181
+ function setFlattenedQueryParams(urlSearchParams, parameter, key) {
182
+ if (key === void 0) { key = ""; }
183
+ if (parameter == null)
184
+ return;
185
+ if (typeof parameter === "object") {
186
+ if (Array.isArray(parameter)) {
187
+ parameter.forEach(function (item) { return setFlattenedQueryParams(urlSearchParams, item, key); });
188
+ }
189
+ else {
190
+ Object.keys(parameter).forEach(function (currentKey) {
191
+ return setFlattenedQueryParams(urlSearchParams, parameter[currentKey], "".concat(key).concat(key !== '' ? '.' : '').concat(currentKey));
192
+ });
193
+ }
194
+ }
195
+ else {
196
+ if (urlSearchParams.has(key)) {
197
+ urlSearchParams.append(key, parameter);
198
+ }
199
+ else {
200
+ urlSearchParams.set(key, parameter);
201
+ }
202
+ }
203
+ }
204
+ /**
205
+ *
206
+ * @export
207
+ */
208
+ var setSearchParams = function (url) {
209
+ var objects = [];
210
+ for (var _i = 1; _i < arguments.length; _i++) {
211
+ objects[_i - 1] = arguments[_i];
212
+ }
213
+ var searchParams = new URLSearchParams(url.search);
214
+ setFlattenedQueryParams(searchParams, objects);
215
+ url.search = searchParams.toString();
216
+ };
217
+ exports.setSearchParams = setSearchParams;
218
+ /**
219
+ *
220
+ * @export
221
+ */
222
+ var serializeDataIfNeeded = function (value, requestOptions, configuration) {
223
+ var nonString = typeof value !== 'string';
224
+ var needsSerialization = nonString && configuration && configuration.isJsonMime
225
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
226
+ : nonString;
227
+ return needsSerialization
228
+ ? JSON.stringify(value !== undefined ? value : {})
229
+ : (value || "");
230
+ };
231
+ exports.serializeDataIfNeeded = serializeDataIfNeeded;
232
+ /**
233
+ *
234
+ * @export
235
+ */
236
+ var toPathString = function (url) {
237
+ return url.pathname + url.search + url.hash;
238
+ };
239
+ exports.toPathString = toPathString;
240
+ /**
241
+ *
242
+ * @export
243
+ */
244
+ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
245
+ var _this = this;
246
+ return function (axios, basePath) {
247
+ if (axios === void 0) { axios = globalAxios; }
248
+ if (basePath === void 0) { basePath = BASE_PATH; }
249
+ return __awaiter(_this, void 0, void 0, function () {
250
+ var headers, userAgent, axiosRequestArgs;
251
+ var _a;
252
+ return __generator(this, function (_b) {
253
+ switch (_b.label) {
254
+ case 0:
255
+ headers = __assign({}, axiosArgs.axiosOptions.headers);
256
+ // Node-only headers. Browsers reject a User-Agent override, and a custom
257
+ // header such as X-SailPoint-SDK forces a CORS preflight that tenants do
258
+ // not allow, which blocks the request outright.
259
+ if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
260
+ headers['X-SailPoint-SDK'] = 'typescript-1.0.0';
261
+ userAgent = "SailPoint-SDK-TypeScript/1.0.0";
262
+ if ((configuration === null || configuration === void 0 ? void 0 : configuration.consumerIdentifier) && (configuration === null || configuration === void 0 ? void 0 : configuration.consumerVersion)) {
263
+ userAgent += " (".concat(configuration.consumerIdentifier, "/").concat(configuration.consumerVersion, ")");
264
+ }
265
+ userAgent += " (".concat(process.platform, "; ").concat(process.arch, ") Node/").concat(process.versions.node, " (openapi-generator/7.12.0)");
266
+ headers['User-Agent'] = userAgent;
267
+ }
268
+ if (!configuration.experimental && ("X-SailPoint-Experimental" in headers)) {
269
+ throw new Error("You are using Experimental APIs. Set configuration.experimental = True to enable these APIs in the SDK.");
270
+ }
271
+ else if (configuration.experimental == true && ("X-SailPoint-Experimental" in headers)) {
272
+ console.log("Warning: You are using Experimental APIs");
273
+ }
274
+ return [4 /*yield*/, (0, exports.setBearerAuthToObject)(headers, configuration)];
275
+ case 1:
276
+ _b.sent();
277
+ axiosRequestArgs = __assign(__assign({}, axiosArgs.axiosOptions), { url: (basePath || (configuration === null || configuration === void 0 ? void 0 : configuration.basePath)) + axiosArgs.url, headers: headers });
278
+ return [2 /*return*/, axios.request(axiosRequestArgs).catch(function (error) {
279
+ var _a;
280
+ if ((error === null || error === void 0 ? void 0 : error.isAxiosError) === true) {
281
+ var clean = new Error((_a = error.message) !== null && _a !== void 0 ? _a : 'API request failed');
282
+ clean.name = 'ApiError';
283
+ clean.stack = error.stack;
284
+ clean.code = error.code;
285
+ if (error.response) {
286
+ clean.status = error.response.status;
287
+ clean.statusText = error.response.statusText;
288
+ clean.data = error.response.data;
289
+ }
290
+ throw clean;
291
+ }
292
+ throw error;
293
+ })];
294
+ }
295
+ });
296
+ });
297
+ };
298
+ };
299
+ exports.createRequestFunction = createRequestFunction;
300
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../jit_activation_convert/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMH,+BAAuC;AAEvC;;;GAGG;AACU,QAAA,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACI,IAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KA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AAM,KAAK,CAAC;4BAChB,CAAC,CAAC,EAAC;;;;KACN,CAAC;AACN,CAAC,CAAA;AA5CY,QAAA,qBAAqB,yBA4CjC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Identity Security Cloud API - JIT Activation Convert\n * 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.\n *\n * The version of the OpenAPI document: v1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"../configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n } \n else {\n Object.keys(parameter).forEach(currentKey => \n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n } \n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n } \n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return async <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const headers: Record<string, any> = {\n ...axiosArgs.axiosOptions.headers,\n }\n\n // Node-only headers. Browsers reject a User-Agent override, and a custom\n // header such as X-SailPoint-SDK forces a CORS preflight that tenants do\n // not allow, which blocks the request outright.\n if (typeof process !== 'undefined' && process.versions?.node) {\n headers['X-SailPoint-SDK'] = 'typescript-1.0.0';\n let userAgent = `SailPoint-SDK-TypeScript/1.0.0`;\n if (configuration?.consumerIdentifier && configuration?.consumerVersion) {\n userAgent += ` (${configuration.consumerIdentifier}/${configuration.consumerVersion})`;\n }\n userAgent += ` (${process.platform}; ${process.arch}) Node/${process.versions.node} (openapi-generator/7.12.0)`;\n headers['User-Agent'] = userAgent;\n }\n\n if(!configuration.experimental && (\"X-SailPoint-Experimental\" in headers)) {\n throw new Error(\"You are using Experimental APIs. Set configuration.experimental = True to enable these APIs in the SDK.\")\n } else if(configuration.experimental == true && (\"X-SailPoint-Experimental\" in headers)) {\n console.log(\"Warning: You are using Experimental APIs\")\n }\n\n await setBearerAuthToObject(headers, configuration);\n\n const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (basePath || configuration?.basePath) + axiosArgs.url, headers};\n return axios.request<T, R>(axiosRequestArgs).catch((error: any) => {\n if (error?.isAxiosError === true) {\n const clean: any = new Error(error.message ?? 'API request failed');\n clean.name = 'ApiError';\n clean.stack = error.stack;\n clean.code = error.code;\n if (error.response) {\n clean.status = error.response.status;\n clean.statusText = error.response.statusText;\n clean.data = error.response.data;\n }\n throw clean;\n }\n throw error;\n });\n };\n}\n"]}