@sailpoint/api-client 2.2.37 → 2.2.39
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.
- package/dist/access_requests/api.d.ts +24 -12
- package/dist/access_requests/api.js +9 -9
- package/dist/access_requests/api.js.map +1 -1
- package/dist/data_access_security/api.d.ts +47 -15
- package/dist/data_access_security/api.js +4 -4
- package/dist/data_access_security/api.js.map +1 -1
- package/dist/esm/access_requests/api.js +9 -9
- package/dist/esm/data_access_security/api.js +4 -4
- package/dist/esm/nerm/common.js +2 -2
- package/dist/esm/nermv2025/common.js +2 -2
- package/dist/esm/sod_controls/api.js +25 -65
- package/dist/esm/sod_violations/api.js +25 -65
- package/dist/nerm/common.js +2 -2
- package/dist/nerm/common.js.map +1 -1
- package/dist/nermv2025/common.js +2 -2
- package/dist/nermv2025/common.js.map +1 -1
- package/dist/sod_controls/api.d.ts +10 -50
- package/dist/sod_controls/api.js +25 -65
- package/dist/sod_controls/api.js.map +1 -1
- package/dist/sod_violations/api.d.ts +10 -50
- package/dist/sod_violations/api.js +25 -65
- package/dist/sod_violations/api.js.map +1 -1
- package/package.json +1 -1
|
@@ -192,20 +192,16 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
192
192
|
* Returns a single policy violation by ID for the current tenant. Access is allowed if the caller has the read scope (`idn:sod-violation:read`) or is an owner of the violation (direct or via governance group). Returns 403 Forbidden if the violation exists but the caller has neither the read scope nor ownership. Returns 404 Not Found if the violation does not exist for the tenant. Embedded references (`owner`, `target`, `policy`, and references inside `appliedControls`) use `ReferenceResponse`: `id` and `type` are always present; `name` is included when display metadata resolves.
|
|
193
193
|
* @summary Get policy violation by ID
|
|
194
194
|
* @param {string} id The ID of the policy violation to fetch
|
|
195
|
-
* @param {string} [xSailPointExperimental] Use this header to enable this experimental API.
|
|
196
195
|
* @param {*} [axiosOptions] Override http request option.
|
|
197
196
|
* @throws {RequiredError}
|
|
198
197
|
*/
|
|
199
|
-
getViolationV1: function (id,
|
|
198
|
+
getViolationV1: function (id, axiosOptions) {
|
|
200
199
|
if (axiosOptions === void 0) { axiosOptions = {}; }
|
|
201
200
|
return __awaiter(_this, void 0, void 0, function () {
|
|
202
201
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
203
202
|
return __generator(this, function (_a) {
|
|
204
203
|
// verify required parameter 'id' is not null or undefined
|
|
205
204
|
assertParamExists('getViolationV1', 'id', id);
|
|
206
|
-
if (xSailPointExperimental === undefined) {
|
|
207
|
-
xSailPointExperimental = 'true';
|
|
208
|
-
}
|
|
209
205
|
localVarPath = "/violations/v1/{id}"
|
|
210
206
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
211
207
|
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -215,9 +211,6 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
215
211
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
|
|
216
212
|
localVarHeaderParameter = {};
|
|
217
213
|
localVarQueryParameter = {};
|
|
218
|
-
if (xSailPointExperimental != null) {
|
|
219
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
220
|
-
}
|
|
221
214
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
222
215
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
223
216
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
@@ -231,7 +224,6 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
231
224
|
/**
|
|
232
225
|
* Returns a paged list of policy violations where the current user is the owner (directly assigned or via a governance group they belong to). No permission scope is required; caller identity is required. Supports the same collection parameters as GET /violations (limit, offset, count, filters, sorters), including the same filter field whitelist and processing (normalization, pruning of not-yet-persisted name predicates). The owner filter is implicit (current user); **do not** use `ownerId` in filters for this endpoint. Embedded references in each violation follow `ReferenceResponse` (`id`, `type`, and optional `name` when metadata resolves).
|
|
233
226
|
* @summary List My Policy Violations
|
|
234
|
-
* @param {string} [xSailPointExperimental] Use this header to enable this experimental API.
|
|
235
227
|
* @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.
|
|
236
228
|
* @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.
|
|
237
229
|
* @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.
|
|
@@ -240,14 +232,11 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
240
232
|
* @param {*} [axiosOptions] Override http request option.
|
|
241
233
|
* @throws {RequiredError}
|
|
242
234
|
*/
|
|
243
|
-
listMyViolationsV1: function (
|
|
235
|
+
listMyViolationsV1: function (limit, offset, count, filters, sorters, axiosOptions) {
|
|
244
236
|
if (axiosOptions === void 0) { axiosOptions = {}; }
|
|
245
237
|
return __awaiter(_this, void 0, void 0, function () {
|
|
246
238
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
247
239
|
return __generator(this, function (_a) {
|
|
248
|
-
if (xSailPointExperimental === undefined) {
|
|
249
|
-
xSailPointExperimental = 'true';
|
|
250
|
-
}
|
|
251
240
|
localVarPath = "/my-violations/v1";
|
|
252
241
|
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
253
242
|
if (configuration) {
|
|
@@ -271,9 +260,6 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
271
260
|
if (sorters !== undefined) {
|
|
272
261
|
localVarQueryParameter['sorters'] = sorters;
|
|
273
262
|
}
|
|
274
|
-
if (xSailPointExperimental != null) {
|
|
275
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
276
|
-
}
|
|
277
263
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
278
264
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
265
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
@@ -287,7 +273,6 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
287
273
|
/**
|
|
288
274
|
* Returns a paged list of policy violations for the current tenant. Requires the read scope (idn:sod-violation:read). This endpoint uses the standard collection parameters defined in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters/). This endpoint supports standard V3 collection parameters: `limit`, `offset`, `count`, `filters`, and `sorters`. Embedded references in each violation (`owner`, `target`, `policy`, and references inside `appliedControls`) follow the `ReferenceResponse` schema: `id` and `type` are always present; `name` is included when display metadata resolves. Filters and sorters are validated against a fixed whitelist of fields to ensure safe queries and to align with underlying database indexes.
|
|
289
275
|
* @summary List Policy Violations
|
|
290
|
-
* @param {string} [xSailPointExperimental] Use this header to enable this experimental API.
|
|
291
276
|
* @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.
|
|
292
277
|
* @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.
|
|
293
278
|
* @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.
|
|
@@ -296,14 +281,11 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
296
281
|
* @param {*} [axiosOptions] Override http request option.
|
|
297
282
|
* @throws {RequiredError}
|
|
298
283
|
*/
|
|
299
|
-
listViolationsV1: function (
|
|
284
|
+
listViolationsV1: function (limit, offset, count, filters, sorters, axiosOptions) {
|
|
300
285
|
if (axiosOptions === void 0) { axiosOptions = {}; }
|
|
301
286
|
return __awaiter(_this, void 0, void 0, function () {
|
|
302
287
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
303
288
|
return __generator(this, function (_a) {
|
|
304
|
-
if (xSailPointExperimental === undefined) {
|
|
305
|
-
xSailPointExperimental = 'true';
|
|
306
|
-
}
|
|
307
289
|
localVarPath = "/violations/v1";
|
|
308
290
|
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
309
291
|
if (configuration) {
|
|
@@ -327,9 +309,6 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
327
309
|
if (sorters !== undefined) {
|
|
328
310
|
localVarQueryParameter['sorters'] = sorters;
|
|
329
311
|
}
|
|
330
|
-
if (xSailPointExperimental != null) {
|
|
331
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
332
|
-
}
|
|
333
312
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
334
313
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
335
314
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
@@ -345,11 +324,10 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
345
324
|
* @summary Reassign policy violation
|
|
346
325
|
* @param {string} id The ID of the policy violation to fetch
|
|
347
326
|
* @param {Violationreassigninput} violationreassigninput Data needed to reassign a Policy Violation
|
|
348
|
-
* @param {string} [xSailPointExperimental] Use this header to enable this experimental API.
|
|
349
327
|
* @param {*} [axiosOptions] Override http request option.
|
|
350
328
|
* @throws {RequiredError}
|
|
351
329
|
*/
|
|
352
|
-
moveViolationV1: function (id, violationreassigninput,
|
|
330
|
+
moveViolationV1: function (id, violationreassigninput, axiosOptions) {
|
|
353
331
|
if (axiosOptions === void 0) { axiosOptions = {}; }
|
|
354
332
|
return __awaiter(_this, void 0, void 0, function () {
|
|
355
333
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -358,9 +336,6 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
358
336
|
assertParamExists('moveViolationV1', 'id', id);
|
|
359
337
|
// verify required parameter 'violationreassigninput' is not null or undefined
|
|
360
338
|
assertParamExists('moveViolationV1', 'violationreassigninput', violationreassigninput);
|
|
361
|
-
if (xSailPointExperimental === undefined) {
|
|
362
|
-
xSailPointExperimental = 'true';
|
|
363
|
-
}
|
|
364
339
|
localVarPath = "/violations/v1/{id}/reassign"
|
|
365
340
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
366
341
|
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -371,9 +346,6 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
371
346
|
localVarHeaderParameter = {};
|
|
372
347
|
localVarQueryParameter = {};
|
|
373
348
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
374
|
-
if (xSailPointExperimental != null) {
|
|
375
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
376
|
-
}
|
|
377
349
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
378
350
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
379
351
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
@@ -390,11 +362,10 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
390
362
|
* @summary Apply control to violation
|
|
391
363
|
* @param {string} id The ID of the policy violation to fetch
|
|
392
364
|
* @param {Appliedcontrolcreate} appliedcontrolcreate Data needed to apply a control to a Policy Violation
|
|
393
|
-
* @param {string} [xSailPointExperimental] Use this header to enable this experimental API.
|
|
394
365
|
* @param {*} [axiosOptions] Override http request option.
|
|
395
366
|
* @throws {RequiredError}
|
|
396
367
|
*/
|
|
397
|
-
startApplyControlV1: function (id, appliedcontrolcreate,
|
|
368
|
+
startApplyControlV1: function (id, appliedcontrolcreate, axiosOptions) {
|
|
398
369
|
if (axiosOptions === void 0) { axiosOptions = {}; }
|
|
399
370
|
return __awaiter(_this, void 0, void 0, function () {
|
|
400
371
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -403,9 +374,6 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
403
374
|
assertParamExists('startApplyControlV1', 'id', id);
|
|
404
375
|
// verify required parameter 'appliedcontrolcreate' is not null or undefined
|
|
405
376
|
assertParamExists('startApplyControlV1', 'appliedcontrolcreate', appliedcontrolcreate);
|
|
406
|
-
if (xSailPointExperimental === undefined) {
|
|
407
|
-
xSailPointExperimental = 'true';
|
|
408
|
-
}
|
|
409
377
|
localVarPath = "/violations/v1/{id}/controls"
|
|
410
378
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
411
379
|
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -416,9 +384,6 @@ export var SODViolationsApiAxiosParamCreator = function (configuration) {
|
|
|
416
384
|
localVarHeaderParameter = {};
|
|
417
385
|
localVarQueryParameter = {};
|
|
418
386
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
419
|
-
if (xSailPointExperimental != null) {
|
|
420
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
421
|
-
}
|
|
422
387
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
423
388
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
424
389
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
@@ -511,17 +476,16 @@ export var SODViolationsApiFp = function (configuration) {
|
|
|
511
476
|
* Returns a single policy violation by ID for the current tenant. Access is allowed if the caller has the read scope (`idn:sod-violation:read`) or is an owner of the violation (direct or via governance group). Returns 403 Forbidden if the violation exists but the caller has neither the read scope nor ownership. Returns 404 Not Found if the violation does not exist for the tenant. Embedded references (`owner`, `target`, `policy`, and references inside `appliedControls`) use `ReferenceResponse`: `id` and `type` are always present; `name` is included when display metadata resolves.
|
|
512
477
|
* @summary Get policy violation by ID
|
|
513
478
|
* @param {string} id The ID of the policy violation to fetch
|
|
514
|
-
* @param {string} [xSailPointExperimental] Use this header to enable this experimental API.
|
|
515
479
|
* @param {*} [axiosOptions] Override http request option.
|
|
516
480
|
* @throws {RequiredError}
|
|
517
481
|
*/
|
|
518
|
-
getViolationV1: function (id,
|
|
482
|
+
getViolationV1: function (id, axiosOptions) {
|
|
519
483
|
var _a, _b, _c;
|
|
520
484
|
return __awaiter(this, void 0, void 0, function () {
|
|
521
485
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
522
486
|
return __generator(this, function (_d) {
|
|
523
487
|
switch (_d.label) {
|
|
524
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getViolationV1(id,
|
|
488
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getViolationV1(id, axiosOptions)];
|
|
525
489
|
case 1:
|
|
526
490
|
localVarAxiosArgs = _d.sent();
|
|
527
491
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -534,7 +498,6 @@ export var SODViolationsApiFp = function (configuration) {
|
|
|
534
498
|
/**
|
|
535
499
|
* Returns a paged list of policy violations where the current user is the owner (directly assigned or via a governance group they belong to). No permission scope is required; caller identity is required. Supports the same collection parameters as GET /violations (limit, offset, count, filters, sorters), including the same filter field whitelist and processing (normalization, pruning of not-yet-persisted name predicates). The owner filter is implicit (current user); **do not** use `ownerId` in filters for this endpoint. Embedded references in each violation follow `ReferenceResponse` (`id`, `type`, and optional `name` when metadata resolves).
|
|
536
500
|
* @summary List My Policy Violations
|
|
537
|
-
* @param {string} [xSailPointExperimental] Use this header to enable this experimental API.
|
|
538
501
|
* @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.
|
|
539
502
|
* @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.
|
|
540
503
|
* @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.
|
|
@@ -543,13 +506,13 @@ export var SODViolationsApiFp = function (configuration) {
|
|
|
543
506
|
* @param {*} [axiosOptions] Override http request option.
|
|
544
507
|
* @throws {RequiredError}
|
|
545
508
|
*/
|
|
546
|
-
listMyViolationsV1: function (
|
|
509
|
+
listMyViolationsV1: function (limit, offset, count, filters, sorters, axiosOptions) {
|
|
547
510
|
var _a, _b, _c;
|
|
548
511
|
return __awaiter(this, void 0, void 0, function () {
|
|
549
512
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
550
513
|
return __generator(this, function (_d) {
|
|
551
514
|
switch (_d.label) {
|
|
552
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listMyViolationsV1(
|
|
515
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listMyViolationsV1(limit, offset, count, filters, sorters, axiosOptions)];
|
|
553
516
|
case 1:
|
|
554
517
|
localVarAxiosArgs = _d.sent();
|
|
555
518
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -562,7 +525,6 @@ export var SODViolationsApiFp = function (configuration) {
|
|
|
562
525
|
/**
|
|
563
526
|
* Returns a paged list of policy violations for the current tenant. Requires the read scope (idn:sod-violation:read). This endpoint uses the standard collection parameters defined in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters/). This endpoint supports standard V3 collection parameters: `limit`, `offset`, `count`, `filters`, and `sorters`. Embedded references in each violation (`owner`, `target`, `policy`, and references inside `appliedControls`) follow the `ReferenceResponse` schema: `id` and `type` are always present; `name` is included when display metadata resolves. Filters and sorters are validated against a fixed whitelist of fields to ensure safe queries and to align with underlying database indexes.
|
|
564
527
|
* @summary List Policy Violations
|
|
565
|
-
* @param {string} [xSailPointExperimental] Use this header to enable this experimental API.
|
|
566
528
|
* @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.
|
|
567
529
|
* @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.
|
|
568
530
|
* @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.
|
|
@@ -571,13 +533,13 @@ export var SODViolationsApiFp = function (configuration) {
|
|
|
571
533
|
* @param {*} [axiosOptions] Override http request option.
|
|
572
534
|
* @throws {RequiredError}
|
|
573
535
|
*/
|
|
574
|
-
listViolationsV1: function (
|
|
536
|
+
listViolationsV1: function (limit, offset, count, filters, sorters, axiosOptions) {
|
|
575
537
|
var _a, _b, _c;
|
|
576
538
|
return __awaiter(this, void 0, void 0, function () {
|
|
577
539
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
578
540
|
return __generator(this, function (_d) {
|
|
579
541
|
switch (_d.label) {
|
|
580
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listViolationsV1(
|
|
542
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listViolationsV1(limit, offset, count, filters, sorters, axiosOptions)];
|
|
581
543
|
case 1:
|
|
582
544
|
localVarAxiosArgs = _d.sent();
|
|
583
545
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -592,17 +554,16 @@ export var SODViolationsApiFp = function (configuration) {
|
|
|
592
554
|
* @summary Reassign policy violation
|
|
593
555
|
* @param {string} id The ID of the policy violation to fetch
|
|
594
556
|
* @param {Violationreassigninput} violationreassigninput Data needed to reassign a Policy Violation
|
|
595
|
-
* @param {string} [xSailPointExperimental] Use this header to enable this experimental API.
|
|
596
557
|
* @param {*} [axiosOptions] Override http request option.
|
|
597
558
|
* @throws {RequiredError}
|
|
598
559
|
*/
|
|
599
|
-
moveViolationV1: function (id, violationreassigninput,
|
|
560
|
+
moveViolationV1: function (id, violationreassigninput, axiosOptions) {
|
|
600
561
|
var _a, _b, _c;
|
|
601
562
|
return __awaiter(this, void 0, void 0, function () {
|
|
602
563
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
603
564
|
return __generator(this, function (_d) {
|
|
604
565
|
switch (_d.label) {
|
|
605
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.moveViolationV1(id, violationreassigninput,
|
|
566
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.moveViolationV1(id, violationreassigninput, axiosOptions)];
|
|
606
567
|
case 1:
|
|
607
568
|
localVarAxiosArgs = _d.sent();
|
|
608
569
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -617,17 +578,16 @@ export var SODViolationsApiFp = function (configuration) {
|
|
|
617
578
|
* @summary Apply control to violation
|
|
618
579
|
* @param {string} id The ID of the policy violation to fetch
|
|
619
580
|
* @param {Appliedcontrolcreate} appliedcontrolcreate Data needed to apply a control to a Policy Violation
|
|
620
|
-
* @param {string} [xSailPointExperimental] Use this header to enable this experimental API.
|
|
621
581
|
* @param {*} [axiosOptions] Override http request option.
|
|
622
582
|
* @throws {RequiredError}
|
|
623
583
|
*/
|
|
624
|
-
startApplyControlV1: function (id, appliedcontrolcreate,
|
|
584
|
+
startApplyControlV1: function (id, appliedcontrolcreate, axiosOptions) {
|
|
625
585
|
var _a, _b, _c;
|
|
626
586
|
return __awaiter(this, void 0, void 0, function () {
|
|
627
587
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
628
588
|
return __generator(this, function (_d) {
|
|
629
589
|
switch (_d.label) {
|
|
630
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.startApplyControlV1(id, appliedcontrolcreate,
|
|
590
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.startApplyControlV1(id, appliedcontrolcreate, axiosOptions)];
|
|
631
591
|
case 1:
|
|
632
592
|
localVarAxiosArgs = _d.sent();
|
|
633
593
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -700,7 +660,7 @@ export var SODViolationsApiFactory = function (configuration, basePath, axios) {
|
|
|
700
660
|
* @throws {RequiredError}
|
|
701
661
|
*/
|
|
702
662
|
getViolationV1: function (requestParameters, axiosOptions) {
|
|
703
|
-
return localVarFp.getViolationV1(requestParameters.id,
|
|
663
|
+
return localVarFp.getViolationV1(requestParameters.id, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
704
664
|
},
|
|
705
665
|
/**
|
|
706
666
|
* Returns a paged list of policy violations where the current user is the owner (directly assigned or via a governance group they belong to). No permission scope is required; caller identity is required. Supports the same collection parameters as GET /violations (limit, offset, count, filters, sorters), including the same filter field whitelist and processing (normalization, pruning of not-yet-persisted name predicates). The owner filter is implicit (current user); **do not** use `ownerId` in filters for this endpoint. Embedded references in each violation follow `ReferenceResponse` (`id`, `type`, and optional `name` when metadata resolves).
|
|
@@ -711,7 +671,7 @@ export var SODViolationsApiFactory = function (configuration, basePath, axios) {
|
|
|
711
671
|
*/
|
|
712
672
|
listMyViolationsV1: function (requestParameters, axiosOptions) {
|
|
713
673
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
714
|
-
return localVarFp.listMyViolationsV1(requestParameters.
|
|
674
|
+
return localVarFp.listMyViolationsV1(requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
715
675
|
},
|
|
716
676
|
/**
|
|
717
677
|
* Returns a paged list of policy violations for the current tenant. Requires the read scope (idn:sod-violation:read). This endpoint uses the standard collection parameters defined in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters/). This endpoint supports standard V3 collection parameters: `limit`, `offset`, `count`, `filters`, and `sorters`. Embedded references in each violation (`owner`, `target`, `policy`, and references inside `appliedControls`) follow the `ReferenceResponse` schema: `id` and `type` are always present; `name` is included when display metadata resolves. Filters and sorters are validated against a fixed whitelist of fields to ensure safe queries and to align with underlying database indexes.
|
|
@@ -722,7 +682,7 @@ export var SODViolationsApiFactory = function (configuration, basePath, axios) {
|
|
|
722
682
|
*/
|
|
723
683
|
listViolationsV1: function (requestParameters, axiosOptions) {
|
|
724
684
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
725
|
-
return localVarFp.listViolationsV1(requestParameters.
|
|
685
|
+
return localVarFp.listViolationsV1(requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
726
686
|
},
|
|
727
687
|
/**
|
|
728
688
|
* Reassigns the specified policy violation to a new owner. Callers without the `idn:sod-violation:manage` scope may only reassign violations they own (directly, or via a governance group they belong to).
|
|
@@ -732,7 +692,7 @@ export var SODViolationsApiFactory = function (configuration, basePath, axios) {
|
|
|
732
692
|
* @throws {RequiredError}
|
|
733
693
|
*/
|
|
734
694
|
moveViolationV1: function (requestParameters, axiosOptions) {
|
|
735
|
-
return localVarFp.moveViolationV1(requestParameters.id, requestParameters.violationreassigninput,
|
|
695
|
+
return localVarFp.moveViolationV1(requestParameters.id, requestParameters.violationreassigninput, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
736
696
|
},
|
|
737
697
|
/**
|
|
738
698
|
* Applies a compensating control to the specified policy violation. Callers without the `idn:sod-violation:manage` scope may only apply a control to violations they own (directly, or via a governance group they belong to).
|
|
@@ -742,7 +702,7 @@ export var SODViolationsApiFactory = function (configuration, basePath, axios) {
|
|
|
742
702
|
* @throws {RequiredError}
|
|
743
703
|
*/
|
|
744
704
|
startApplyControlV1: function (requestParameters, axiosOptions) {
|
|
745
|
-
return localVarFp.startApplyControlV1(requestParameters.id, requestParameters.appliedcontrolcreate,
|
|
705
|
+
return localVarFp.startApplyControlV1(requestParameters.id, requestParameters.appliedcontrolcreate, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
746
706
|
},
|
|
747
707
|
/**
|
|
748
708
|
* This API is used to check if granting some additional accesses (entitlements, access profiles, or roles) would cause the subject to be in violation of any SOD policies. Returns the violations that would be caused.
|
|
@@ -787,7 +747,7 @@ var SODViolationsApi = /** @class */ (function (_super) {
|
|
|
787
747
|
*/
|
|
788
748
|
SODViolationsApi.prototype.getViolationV1 = function (requestParameters, axiosOptions) {
|
|
789
749
|
var _this = this;
|
|
790
|
-
return SODViolationsApiFp(this.configuration).getViolationV1(requestParameters.id,
|
|
750
|
+
return SODViolationsApiFp(this.configuration).getViolationV1(requestParameters.id, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
791
751
|
};
|
|
792
752
|
/**
|
|
793
753
|
* Returns a paged list of policy violations where the current user is the owner (directly assigned or via a governance group they belong to). No permission scope is required; caller identity is required. Supports the same collection parameters as GET /violations (limit, offset, count, filters, sorters), including the same filter field whitelist and processing (normalization, pruning of not-yet-persisted name predicates). The owner filter is implicit (current user); **do not** use `ownerId` in filters for this endpoint. Embedded references in each violation follow `ReferenceResponse` (`id`, `type`, and optional `name` when metadata resolves).
|
|
@@ -800,7 +760,7 @@ var SODViolationsApi = /** @class */ (function (_super) {
|
|
|
800
760
|
SODViolationsApi.prototype.listMyViolationsV1 = function (requestParameters, axiosOptions) {
|
|
801
761
|
var _this = this;
|
|
802
762
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
803
|
-
return SODViolationsApiFp(this.configuration).listMyViolationsV1(requestParameters.
|
|
763
|
+
return SODViolationsApiFp(this.configuration).listMyViolationsV1(requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
804
764
|
};
|
|
805
765
|
/**
|
|
806
766
|
* Returns a paged list of policy violations for the current tenant. Requires the read scope (idn:sod-violation:read). This endpoint uses the standard collection parameters defined in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters/). This endpoint supports standard V3 collection parameters: `limit`, `offset`, `count`, `filters`, and `sorters`. Embedded references in each violation (`owner`, `target`, `policy`, and references inside `appliedControls`) follow the `ReferenceResponse` schema: `id` and `type` are always present; `name` is included when display metadata resolves. Filters and sorters are validated against a fixed whitelist of fields to ensure safe queries and to align with underlying database indexes.
|
|
@@ -813,7 +773,7 @@ var SODViolationsApi = /** @class */ (function (_super) {
|
|
|
813
773
|
SODViolationsApi.prototype.listViolationsV1 = function (requestParameters, axiosOptions) {
|
|
814
774
|
var _this = this;
|
|
815
775
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
816
|
-
return SODViolationsApiFp(this.configuration).listViolationsV1(requestParameters.
|
|
776
|
+
return SODViolationsApiFp(this.configuration).listViolationsV1(requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
817
777
|
};
|
|
818
778
|
/**
|
|
819
779
|
* Reassigns the specified policy violation to a new owner. Callers without the `idn:sod-violation:manage` scope may only reassign violations they own (directly, or via a governance group they belong to).
|
|
@@ -825,7 +785,7 @@ var SODViolationsApi = /** @class */ (function (_super) {
|
|
|
825
785
|
*/
|
|
826
786
|
SODViolationsApi.prototype.moveViolationV1 = function (requestParameters, axiosOptions) {
|
|
827
787
|
var _this = this;
|
|
828
|
-
return SODViolationsApiFp(this.configuration).moveViolationV1(requestParameters.id, requestParameters.violationreassigninput,
|
|
788
|
+
return SODViolationsApiFp(this.configuration).moveViolationV1(requestParameters.id, requestParameters.violationreassigninput, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
829
789
|
};
|
|
830
790
|
/**
|
|
831
791
|
* Applies a compensating control to the specified policy violation. Callers without the `idn:sod-violation:manage` scope may only apply a control to violations they own (directly, or via a governance group they belong to).
|
|
@@ -837,7 +797,7 @@ var SODViolationsApi = /** @class */ (function (_super) {
|
|
|
837
797
|
*/
|
|
838
798
|
SODViolationsApi.prototype.startApplyControlV1 = function (requestParameters, axiosOptions) {
|
|
839
799
|
var _this = this;
|
|
840
|
-
return SODViolationsApiFp(this.configuration).startApplyControlV1(requestParameters.id, requestParameters.appliedcontrolcreate,
|
|
800
|
+
return SODViolationsApiFp(this.configuration).startApplyControlV1(requestParameters.id, requestParameters.appliedcontrolcreate, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
841
801
|
};
|
|
842
802
|
/**
|
|
843
803
|
* This API is used to check if granting some additional accesses (entitlements, access profiles, or roles) would cause the subject to be in violation of any SOD policies. Returns the violations that would be caused.
|
package/dist/nerm/common.js
CHANGED
|
@@ -257,8 +257,8 @@ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configu
|
|
|
257
257
|
// header such as X-SailPoint-SDK forces a CORS preflight that tenants do
|
|
258
258
|
// not allow, which blocks the request outright.
|
|
259
259
|
if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
|
|
260
|
-
headers['X-SailPoint-SDK'] = 'typescript-2.2.
|
|
261
|
-
userAgent = "SailPoint-SDK-TypeScript/2.2.
|
|
260
|
+
headers['X-SailPoint-SDK'] = 'typescript-2.2.39';
|
|
261
|
+
userAgent = "SailPoint-SDK-TypeScript/2.2.39";
|
|
262
262
|
if ((configuration === null || configuration === void 0 ? void 0 : configuration.consumerIdentifier) && (configuration === null || configuration === void 0 ? void 0 : configuration.consumerVersion)) {
|
|
263
263
|
userAgent += " (".concat(configuration.consumerIdentifier, "/").concat(configuration.consumerVersion, ")");
|
|
264
264
|
}
|
package/dist/nerm/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../nerm/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,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE;QACjD,MAAM,IAAI,oBAAa,CAAC,SAAS,EAAE,6BAAsB,SAAS,iDAAuC,YAAY,MAAG,CAAC,CAAC;KAC7H;AAC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jC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * NERM API\n * The NERM API accesss and modifies resources in your environment.\n *\n * The version of the OpenAPI document: 1.0.0\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 ...{'Accept': 'application/json'},\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-2.2.37';\n let userAgent = `SailPoint-SDK-TypeScript/2.2.37`;\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?.nermBasePath) + 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"]}
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../nerm/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,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE;QACjD,MAAM,IAAI,oBAAa,CAAC,SAAS,EAAE,6BAAsB,SAAS,iDAAuC,YAAY,MAAG,CAAC,CAAC;KAC7H;AACL,CAAC,CAAA;AAJY,QA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*/\n/* eslint-disable */\n/**\n * NERM API\n * The NERM API accesss and modifies resources in your environment.\n *\n * The version of the OpenAPI document: 1.0.0\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 ...{'Accept': 'application/json'},\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-2.2.39';\n let userAgent = `SailPoint-SDK-TypeScript/2.2.39`;\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?.nermBasePath) + 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"]}
|
package/dist/nermv2025/common.js
CHANGED
|
@@ -257,8 +257,8 @@ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configu
|
|
|
257
257
|
// header such as X-SailPoint-SDK forces a CORS preflight that tenants do
|
|
258
258
|
// not allow, which blocks the request outright.
|
|
259
259
|
if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
|
|
260
|
-
headers['X-SailPoint-SDK'] = 'typescript-2.2.
|
|
261
|
-
userAgent = "SailPoint-SDK-TypeScript/2.2.
|
|
260
|
+
headers['X-SailPoint-SDK'] = 'typescript-2.2.39';
|
|
261
|
+
userAgent = "SailPoint-SDK-TypeScript/2.2.39";
|
|
262
262
|
if ((configuration === null || configuration === void 0 ? void 0 : configuration.consumerIdentifier) && (configuration === null || configuration === void 0 ? void 0 : configuration.consumerVersion)) {
|
|
263
263
|
userAgent += " (".concat(configuration.consumerIdentifier, "/").concat(configuration.consumerVersion, ")");
|
|
264
264
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../nermv2025/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,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE;QACjD,MAAM,IAAI,oBAAa,CAAC,SAAS,EAAE,6BAAsB,SAAS,iDAAuC,YAAY,MAAG,CAAC,CAAC;KAC7H;AACL,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B;AAED;;;GAGG;AACI,IAAM,iBAAiB,GAAG,UAAgB,MAAW,EAAE,YAAoB,EAAE,aAA6B;;;;;;yBACzG,CAAA,aAAa,IAAI,aAAa,CAAC,MAAM,CAAA,EAArC,wBAAqC;yBACT,CAAA,OAAO,aAAa,CAAC,MAAM,KAAK,UAAU,CAAA,EAA1C,wBAA0C;oBAChE,qBAAM,aAAa,CAAC,MAAM,CAAC,YAAY,CAAC,EAAA;;oBAAxC,KAAA,SAAwC,CAAA;;wBACxC,qBAAM,aAAa,CAAC,MAAM,EAAA;;oBAA1B,KAAA,SAA0B,CAAA;;;oBAF1B,mBAAmB,KAEO;oBAChC,MAAM,CAAC,YAAY,CAAC,GAAG,mBAAmB,CAAC;;;;;;CAElD,CAAA;AAPY,QAAA,iBAAiB,qBAO7B;AAED;;;GAGG;AACI,IAAM,oBAAoB,GAAG,UAAU,MAAW,EAAE,aAA6B;IACpF,IAAI,aAAa,IAAI,CAAC,aAAa,CAA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AK,CAAC,OAAO,mCAAI,oBAAoB,CAAC,CAAC;oCACpE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;oCACxB,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;oCAC1B,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;oCACxB,IAAI,KAAK,CAAC,QAAQ,EAAE;wCAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;wCACrC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC;wCAC7C,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;qCACpC;oCACD,MAAM,KAAK,CAAC;iCACf;gCACD,MAAM,KAAK,CAAC;4BAChB,CAAC,CAAC,EAAC;;;;KACN,CAAC;AACN,CAAC,CAAA;AA7CY,QAAA,qBAAqB,yBA6CjC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * NERM API v2025\n * The NERM API v2025 accesss and modifies resources in your environment.\n *\n * The version of the OpenAPI document: 1.0.0\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 ...{'Accept': 'application/json'},\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-2.2.37';\n let userAgent = `SailPoint-SDK-TypeScript/2.2.37`;\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?.nermBasePath) + 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"]}
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../nermv2025/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,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE;QACjD,MAAM,IAAI,oBAAa,CAAC,SAAS,EAAE,6BAAsB,SAAS,iDAAuC,YAAY,MAAG,CAAC,CAAC;KAC7H;AACL,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B;AAED;;;GAGG;AACI,IAAM,iBAAiB,GAAG,UAAgB,MAAW,EAAE,YAAoB,EAAE,aAA6B;;;;;;yBACzG,CAAA,aAAa,IAAI,aAAa,CAAC,MAAM,CAAA,EAArC,wBAAqC;yBACT,CAAA,OAAO,aAAa,CAAC,MAAM,KAAK,UAAU,CAAA,EAA1C,wBAA0C;oBAChE,qBAAM,aAAa,CAAC,MAAM,CAAC,YAAY,CAAC,EAAA;;oBAAxC,KAAA,SAAwC,CAAA;;wBACxC,qBAAM,aAAa,CAAC,MAAM,EAAA;;oBAA1B,KAAA,SAA0B,CAAA;;;oBAF1B,mBAAmB,KAEO;oBAChC,MAAM,CAAC,YAAY,CAAC,GAAG,mBAAmB,CAAC;;;;;;CAElD,CAAA;AAPY,QAAA,iBAAiB,qBAO7B;AAED;;;GAGG;AACI,IAAM,oBAAoB,GAAG,UAAU,MAAW,EAAE,aAA6B;IACpF,IAAI,aAAa,IAAI,CAAC,aAAa,CAAC,QAAQ,IA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AO,mCAAI,oBAAoB,CAAC,CAAC;oCACpE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;oCACxB,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;oCAC1B,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;oCACxB,IAAI,KAAK,CAAC,QAAQ,EAAE;wCAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;wCACrC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC;wCAC7C,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;qCACpC;oCACD,MAAM,KAAK,CAAC;iCACf;gCACD,MAAM,KAAK,CAAC;4BAChB,CAAC,CAAC,EAAC;;;;KACN,CAAC;AACN,CAAC,CAAA;AA7CY,QAAA,qBAAqB,yBA6CjC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * NERM API v2025\n * The NERM API v2025 accesss and modifies resources in your environment.\n *\n * The version of the OpenAPI document: 1.0.0\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 ...{'Accept': 'application/json'},\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-2.2.39';\n let userAgent = `SailPoint-SDK-TypeScript/2.2.39`;\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?.nermBasePath) + 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"]}
|